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

Unified Diff: pkg/kernel/lib/analyzer/loader.dart

Issue 2617963002: Option to include redirecting factories. (Closed)
Patch Set: Changed upstream branch, no code changes. Created 3 years, 11 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/kernel/lib/analyzer/ast_from_analyzer.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « pkg/kernel/lib/analyzer/ast_from_analyzer.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698