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

Unified Diff: pkg/analyzer/lib/src/generated/engine.dart

Issue 1067903002: Changes in analyzer needed for dev_compiler (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: fixes analyzer errors in tests (implement added API)" Created 5 years, 8 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/generated/ast.dart ('k') | pkg/analyzer/lib/src/generated/resolver.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/lib/src/generated/engine.dart
diff --git a/pkg/analyzer/lib/src/generated/engine.dart b/pkg/analyzer/lib/src/generated/engine.dart
index ecb784d15847e29d2a365684df7bffc2df5decc2..4cd2f615d422aee0f4ea59e6192d04b6f26f706f 100644
--- a/pkg/analyzer/lib/src/generated/engine.dart
+++ b/pkg/analyzer/lib/src/generated/engine.dart
@@ -1018,6 +1018,11 @@ class AnalysisContextImpl implements InternalAnalysisContext {
TypeResolverVisitorFactory typeResolverVisitorFactory;
/**
+ * A factory to override how [LibraryResolver] is created.
+ */
+ LibraryResolverFactory libraryResolverFactory;
+
+ /**
* Initialize a newly created analysis context.
*/
AnalysisContextImpl() {
@@ -9031,6 +9036,11 @@ abstract class InternalAnalysisContext implements AnalysisContext {
TypeResolverVisitorFactory get typeResolverVisitorFactory;
/**
+ * A factory to override how [LibraryResolver] is created.
+ */
+ LibraryResolverFactory get libraryResolverFactory;
+
+ /**
* Add the given [source] with the given [information] to this context.
*/
void addSourceInfo(Source source, SourceEntry information);
@@ -10454,7 +10464,10 @@ class ResolveDartLibraryTask extends AnalysisTask {
@override
void internalPerform() {
- _resolver = new LibraryResolver(context);
+ LibraryResolverFactory resolverFactory = context.libraryResolverFactory;
+ _resolver = resolverFactory == null
+ ? new LibraryResolver(context)
+ : resolverFactory(context);
_resolver.resolveLibrary(librarySource, true);
}
}
« no previous file with comments | « pkg/analyzer/lib/src/generated/ast.dart ('k') | pkg/analyzer/lib/src/generated/resolver.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698