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

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

Issue 2355413005: Issue 27375. Use ContextBuilder to find analysis options file in analyzer_cli. (Closed)
Patch Set: Created 4 years, 3 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/driver.dart
diff --git a/pkg/analyzer_cli/lib/src/driver.dart b/pkg/analyzer_cli/lib/src/driver.dart
index ec779a7eb8dda662d1fdfe4fb65c148d403fe406..9e32cf0d951015241c42ad50e8f87bdbd0db9a51 100644
--- a/pkg/analyzer_cli/lib/src/driver.dart
+++ b/pkg/analyzer_cli/lib/src/driver.dart
@@ -744,12 +744,8 @@ class Driver implements CommandLineStarter {
exitCode: ErrorSeverity.ERROR.ordinal);
}
} else {
- filePath = AnalysisEngine.ANALYSIS_OPTIONS_FILE;
- file = resourceProvider.getFile(filePath);
- if (!file.exists) {
- filePath = AnalysisEngine.ANALYSIS_OPTIONS_YAML_FILE;
- file = resourceProvider.getFile(filePath);
- }
+ return new ContextBuilder(resourceProvider, null, null)
+ .getOptionsFile(options.sourceFiles.first);
Brian Wilkerson 2016/09/22 22:01:20 I'm not sure how this works. The method getOptions
}
return file;
}
« 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