| Index: pkg/analyzer/lib/src/context/builder.dart
|
| diff --git a/pkg/analyzer/lib/src/context/builder.dart b/pkg/analyzer/lib/src/context/builder.dart
|
| index 0b300e585e123bcdf0d72df4fe77e0f1b7ac02ca..f9bd738fc30e892b2ecd8f544e8a43a535dfec80 100644
|
| --- a/pkg/analyzer/lib/src/context/builder.dart
|
| +++ b/pkg/analyzer/lib/src/context/builder.dart
|
| @@ -142,10 +142,11 @@ class ContextBuilder {
|
| *
|
| * *Note:* This method is not yet fully implemented and should not be used.
|
| */
|
| - AnalysisContext buildContext(String path) {
|
| + AnalysisContext buildContext(String path, {void verbosePrint(String text)}) {
|
| InternalAnalysisContext context =
|
| AnalysisEngine.instance.createAnalysisContext();
|
| - AnalysisOptions options = getAnalysisOptions(path);
|
| + AnalysisOptions options =
|
| + getAnalysisOptions(path, verbosePrint: verbosePrint);
|
| context.contentCache = contentCache;
|
| context.sourceFactory = createSourceFactory(path, options);
|
| context.analysisOptions = options;
|
| @@ -159,9 +160,11 @@ class ContextBuilder {
|
| * Return an analysis driver that is configured correctly to analyze code in
|
| * the directory with the given [path].
|
| */
|
| - AnalysisDriver buildDriver(ContextRoot contextRoot) {
|
| + AnalysisDriver buildDriver(ContextRoot contextRoot,
|
| + {void verbosePrint(String text)}) {
|
| String path = contextRoot.root;
|
| - AnalysisOptions options = getAnalysisOptions(path);
|
| + AnalysisOptions options =
|
| + getAnalysisOptions(path, verbosePrint: verbosePrint);
|
| //_processAnalysisOptions(context, optionMap);
|
| final sf = createSourceFactory(path, options);
|
| AnalysisDriver driver = new AnalysisDriver(
|
|
|