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; |