anchor.diff:  
     @Deprecated('This method exists temporary until AnalysisSession migration.')
     static Future<ResolvedLibraryResult> tmp(LibraryElement library) async {
  -    var libraryPath = library.source.fullName;
       var session = library.session;
       if (session != null) {
  -      return await session.getResolvedLibrary(libraryPath);
  +      return session.getResolvedLibraryByElement(library);
       } else {
         var units = <ResolvedUnitResult>[];
         var analysisContext = library.context;
  
positive.code:         units.add(ResolvedUnitResultImpl(null, path, unitSource.uri, true,
              content, lineInfo, unitSource != library.source, unit, const []));
        }
        return ResolvedLibraryResultImpl(null, libraryPath, library.source.uri,
            library, library.context.typeProvider, units);
      }
  
negative.code:             unitSource != library.source,
              unit, const []));
        }
        var libraryPath = library.source.fullName;
        return ParsedLibraryResultImpl(
            null, libraryPath, library.source.uri, units);
      }
  