getResolvedLibrary method
Uses the analyzer to resolve and return the library result for this file,
which includes the LibraryElement
.
Implementation
Future<ResolvedLibraryResult?> getResolvedLibrary() async {
final result = await _analysisContextCollection
.contextFor(path)
.currentSession
.getResolvedLibrary(path);
return result is ResolvedLibraryResult ? result : null;
}