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

Unified Diff: pkg/compiler/lib/src/typechecker.dart

Issue 2735763002: Create ResolutionEnqueuer after library loading. (Closed)
Patch Set: Updated cf. comments. 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
Index: pkg/compiler/lib/src/typechecker.dart
diff --git a/pkg/compiler/lib/src/typechecker.dart b/pkg/compiler/lib/src/typechecker.dart
index 057afeef41d89f1435ea2f1922611937cc28f83e..2ef12c16f07f009e3fe1fbb2ddc8fceb5b18d03f 100644
--- a/pkg/compiler/lib/src/typechecker.dart
+++ b/pkg/compiler/lib/src/typechecker.dart
@@ -40,6 +40,7 @@ import 'elements/elements.dart'
TypeDeclarationElement,
TypedElement,
VariableElement;
+import 'enqueue.dart' show DeferredAction;
import 'resolution/class_members.dart' show MembersCreator, ErroneousMember;
import 'resolution/tree_elements.dart' show TreeElements;
import 'tree/tree.dart';
@@ -1992,7 +1993,8 @@ class TypeCheckerVisitor extends Visitor<ResolutionDartType> {
}
if (!hasDefaultCase && expressionType.isEnumType) {
- compiler.enqueuer.resolution.addDeferredAction(executableContext, () {
+ compiler.enqueuer.resolution
+ .addDeferredAction(new DeferredAction(executableContext, () {
Map<ConstantValue, FieldElement> enumValues =
<ConstantValue, FieldElement>{};
List<FieldElement> unreferencedFields = <FieldElement>[];
@@ -2029,7 +2031,7 @@ class TypeCheckerVisitor extends Visitor<ResolutionDartType> {
'enumValues': unreferencedFields.map((e) => e.name).join(', ')
});
}
- });
+ }));
}
}
« no previous file with comments | « pkg/compiler/lib/src/resolution/resolution_common.dart ('k') | pkg/compiler/lib/src/universe/resolution_world_builder.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698