Index: pkg/analyzer_cli/lib/src/analyzer_impl.dart |
diff --git a/pkg/analyzer_cli/lib/src/analyzer_impl.dart b/pkg/analyzer_cli/lib/src/analyzer_impl.dart |
index 73ff30b2d4a2124085ca2224ae23ddf5a55d0f8d..5df078a224d8cf0899f0adb8f88cb04a38eea996 100644 |
--- a/pkg/analyzer_cli/lib/src/analyzer_impl.dart |
+++ b/pkg/analyzer_cli/lib/src/analyzer_impl.dart |
@@ -266,9 +266,8 @@ class AnalyzerImpl { |
if (analysisDriver != null) { |
String path = librarySource.fullName; |
analysisDriver.priorityFiles = [path]; |
- UnitElementResult elementResult = |
- await analysisDriver.getUnitElement(path); |
- return elementResult.element.library; |
+ AnalysisResult analysisResult = await analysisDriver.getResult(path); |
+ return analysisResult.unit.element.library; |
} else { |
return context.computeLibraryElement(librarySource); |
} |