Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(607)

Unified Diff: pkg/analyzer_cli/lib/src/analyzer_impl.dart

Issue 2656233004: Use AnalysisDriver.getErrors() to get cached errors for already analyzed files. (Closed)
Patch Set: Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/analyzer/test/src/dart/analysis/driver_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 186ed823c6c0dbcfc148149a5fd5df9e1a54256f..256b70d9a8a57ace935f72fcc9dc357ea54e532f 100644
--- a/pkg/analyzer_cli/lib/src/analyzer_impl.dart
+++ b/pkg/analyzer_cli/lib/src/analyzer_impl.dart
@@ -132,9 +132,9 @@ class AnalyzerImpl {
for (Source source in sources) {
if (analysisDriver != null) {
String path = source.fullName;
- AnalysisResult analysisResult = await analysisDriver.getResult(path);
+ ErrorsResult errorsResult = await analysisDriver.getErrors(path);
errorInfos.add(new AnalysisErrorInfoImpl(
- analysisResult.errors, analysisResult.lineInfo));
+ errorsResult.errors, errorsResult.lineInfo));
} else {
context.computeErrors(source);
errorInfos.add(context.getErrors(source));
« no previous file with comments | « pkg/analyzer/test/src/dart/analysis/driver_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698