anchor.diff:          }
         } else {
           // Not in a package, include all libraries of the context.
  -        contextPathList = _contextPathList;
  +        contextPaths = _contextPathSet;
         }
       } else {
         // In Blaze workspaces, consider declarations from the entire context
  -      contextPathList = _contextPathList;
  +      contextPaths = _contextPathSet;
       }
   
       var contextLibraries = <Library>[];
       _addLibrariesWithPaths(
         contextLibraries,
  -      contextPathList,
  +      contextPaths,
         excludingLibraryOfPath: path,
       );
   
  
positive.code:       _addKnownLibraries(dependencyLibraries);
      }
  
      var contextPathList = <String>[];
      if (!_analysisContext.contextRoot.workspace.isBlaze) {
        _Package? package;
        for (var candidatePackage in _packages) {
  
negative.code:       }
  
        if (package != null) {
          List<String> contextPathList = contextPaths = [];
          var containingFolder = package.folderInRootContaining(path);
          if (containingFolder != null) {
            for (var contextPath in _contextPathSet) {
              // `lib/` can see only libraries in `lib/`.
              // `test/` can see libraries in `lib/` and in `test/`.
              if (package.containsInLib(contextPath) ||
  