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

Unified Diff: pkg/compiler/lib/src/resolution/enum_creator.dart

Issue 1932183003: Handle deserialized compilation of closures (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 4 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
Index: pkg/compiler/lib/src/resolution/enum_creator.dart
diff --git a/pkg/compiler/lib/src/resolution/enum_creator.dart b/pkg/compiler/lib/src/resolution/enum_creator.dart
index 6b0acfa4bca4f54a083c9aa986427800c9c7ab17..70761bc3cda069823fbc86862a1c2dd7f1253ab2 100644
--- a/pkg/compiler/lib/src/resolution/enum_creator.dart
+++ b/pkg/compiler/lib/src/resolution/enum_creator.dart
@@ -247,15 +247,15 @@ class EnumCreator {
enumClass.addMember(constructor, reporter);
List<EnumConstantElement> enumValues = <EnumConstantElement>[];
- VariableList variableList =
- new VariableList(builder.modifiers(isStatic: true, isConst: true));
- variableList.type = enumType;
int index = 0;
List<Node> valueReferences = <Node>[];
List<LiteralMapEntry> mapEntries = <LiteralMapEntry>[];
for (Link<Node> link = node.names.nodes; !link.isEmpty; link = link.tail) {
Identifier name = link.head;
AstBuilder valueBuilder = new AstBuilder(name.token.charOffset);
+ VariableList variableList =
+ new VariableList(valueBuilder.modifiers(isStatic: true, isConst: true));
Siggi Cherem (dart-lang) 2016/04/30 00:08:11 nit: dartfmt
Johnni Winther 2016/04/30 09:23:55 That's IntelliJ for you! (copied the lines from ab
+ variableList.type = enumType;
// Add reference for the `values` field.
valueReferences.add(valueBuilder.reference(name));

Powered by Google App Engine
This is Rietveld 408576698