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