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 9930bd826fdbf5bf4391e158c81ff156bd4c5fad..6a2bcfa4d7fa3623f283f2deb8ea9f59032905c6 100644 |
--- a/pkg/compiler/lib/src/resolution/enum_creator.dart |
+++ b/pkg/compiler/lib/src/resolution/enum_creator.dart |
@@ -58,7 +58,7 @@ class AstBuilder { |
Keyword keyword = Keyword.keywords[text]; |
Token token; |
if (keyword != null) { |
- token = new KeywordToken(Keyword.keywords[text], charOffset); |
+ token = new KeywordToken(keyword, charOffset); |
} else { |
token = stringToken(text); |
} |