anchor.diff:        );
       }
   
  -    _fsState._libraryNameToFiles.add(_kind);
       _invalidatesLibrariesOfThisPart();
     }
   
  
positive.code:         );
        }
      } else if (libraryDirective != null) {
        _kind = LibraryFileStateKind(
          file: this,
          name: libraryDirective.name,
        );
      } else if (partOfNameDirective != null) {
        _kind = PartOfNameFileStateKind(
          file: this,
  
negative.code:   }
  
    /// If [kind] is a named library, register it.
    void add(LibraryFileStateKind kind) {
      final name = kind.name;
      if (name != null) {
        final libraries = _map[name] ??= [];
        libraries.add(kind);
      }
    }
  
  