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

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

Issue 2726783002: echo analysis options information if dartanalyzer --verbose is specified (Closed)
Patch Set: merge Created 3 years, 10 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/lib/src/context/builder.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/driver.dart
diff --git a/pkg/analyzer_cli/lib/src/driver.dart b/pkg/analyzer_cli/lib/src/driver.dart
index f6d67ecabf202b12d3bd3bc63d0d62cba9d88062..464bcda3ea8250e1846ec9a84e7ead6f5447d587 100644
--- a/pkg/analyzer_cli/lib/src/driver.dart
+++ b/pkg/analyzer_cli/lib/src/driver.dart
@@ -748,10 +748,16 @@ class Driver implements CommandLineStarter {
contextRoot = path.absolute(contextRoot);
}
}
+
+ void verbosePrint(String text) {
+ outSink.writeln(text);
+ }
+
AnalysisOptionsImpl contextOptions = new ContextBuilder(
resourceProvider, null, null,
options: options.contextBuilderOptions)
- .getAnalysisOptions(contextRoot);
+ .getAnalysisOptions(contextRoot,
+ verbosePrint: options.verbose ? verbosePrint : null);
contextOptions.trackCacheDependencies = false;
contextOptions.disableCacheFlushing = options.disableCacheFlushing;
« no previous file with comments | « pkg/analyzer/lib/src/context/builder.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698