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