| Index: pkg/kernel/lib/analyzer/loader.dart
|
| diff --git a/pkg/kernel/lib/analyzer/loader.dart b/pkg/kernel/lib/analyzer/loader.dart
|
| index 4fb962ee485781f16b56395112489e0870b018f0..1bf5a427b85671bf7f01f78f3b8c9f51750fc2e8 100644
|
| --- a/pkg/kernel/lib/analyzer/loader.dart
|
| +++ b/pkg/kernel/lib/analyzer/loader.dart
|
| @@ -82,6 +82,9 @@ abstract class ReferenceLevelLoader {
|
| ast.Class getSharedMixinApplicationClass(
|
| ast.Library library, ast.Class supertype, ast.Class mixin);
|
| bool get strongMode;
|
| +
|
| + /// Whether or not to include redirecting factories in the output.
|
| + bool get ignoreRedirectingFactories;
|
| }
|
|
|
| class DartLoader implements ReferenceLevelLoader {
|
| @@ -103,12 +106,14 @@ class DartLoader implements ReferenceLevelLoader {
|
| /// so as not to expose partially initialized classes.
|
| final List<ast.Class> temporaryClassWorklist = [];
|
|
|
| + final bool ignoreRedirectingFactories;
|
| +
|
| LibraryElement _libraryBeingLoaded = null;
|
|
|
| bool get strongMode => context.analysisOptions.strongMode;
|
|
|
| DartLoader(this.repository, DartOptions options, Packages packages,
|
| - {DartSdk dartSdk})
|
| + {DartSdk dartSdk, this.ignoreRedirectingFactories: true})
|
| : this.context = createContext(options, packages, dartSdk: dartSdk),
|
| this.applicationRoot = options.applicationRoot;
|
|
|
|
|