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

Unified Diff: pkg/analyzer/lib/src/context/builder.dart

Issue 2912573002: Log the analysis options path. (Closed)
Patch Set: Created 3 years, 7 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/analysis_server/lib/src/server/driver.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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(
« no previous file with comments | « pkg/analysis_server/lib/src/server/driver.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698