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

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

Issue 2795743002: Add context information to driver and add hooks for plugin management (Closed)
Patch Set: Created 3 years, 9 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/context/context_root.dart ('k') | pkg/analyzer/lib/src/dart/analysis/driver.dart » ('j') | 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 493fd19ebf2d6cd907d54dbf1eacd157ae3d61ff..f38236b2450e65b84675f3faf83267263ed7b7a9 100644
--- a/pkg/analyzer/lib/src/context/builder.dart
+++ b/pkg/analyzer/lib/src/context/builder.dart
@@ -7,6 +7,7 @@ library analyzer.src.context.context_builder;
import 'dart:collection';
import 'dart:core';
+import 'package:analyzer/context/context_root.dart';
import 'package:analyzer/context/declared_variables.dart';
import 'package:analyzer/file_system/file_system.dart';
import 'package:analyzer/plugin/resolver_provider.dart';
@@ -157,7 +158,8 @@ class ContextBuilder {
* Return an analysis driver that is configured correctly to analyze code in
* the directory with the given [path].
*/
- AnalysisDriver buildDriver(String path) {
+ AnalysisDriver buildDriver(ContextRoot contextRoot) {
+ String path = contextRoot.root;
AnalysisOptions options = getAnalysisOptions(path);
//_processAnalysisOptions(context, optionMap);
final sf = createSourceFactory(path, options);
@@ -167,7 +169,7 @@ class ContextBuilder {
resourceProvider,
byteStore,
fileContentOverlay,
- path,
+ contextRoot,
sf,
options);
// temporary plugin support:
« no previous file with comments | « pkg/analyzer/lib/context/context_root.dart ('k') | pkg/analyzer/lib/src/dart/analysis/driver.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698