Chromium Code Reviews| 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)); |