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

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

Issue 2662693002: Call addFile() before getErrors() to actually get errors. (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 | « no previous file | 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 256b70d9a8a57ace935f72fcc9dc357ea54e532f..c8ce07edc06fd4fa8cec3e49f1e5396c7a5ca38d 100644
--- a/pkg/analyzer_cli/lib/src/analyzer_impl.dart
+++ b/pkg/analyzer_cli/lib/src/analyzer_impl.dart
@@ -132,6 +132,7 @@ class AnalyzerImpl {
for (Source source in sources) {
if (analysisDriver != null) {
String path = source.fullName;
+ analysisDriver.addFile(path);
ErrorsResult errorsResult = await analysisDriver.getErrors(path);
errorInfos.add(new AnalysisErrorInfoImpl(
errorsResult.errors, errorsResult.lineInfo));
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698