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

Unified Diff: pkg/compiler/lib/src/scanner/keyword.dart

Issue 944813002: Make enum a keyword in dart2js. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix comment. Created 5 years, 10 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 | « no previous file | tests/language/enum_is_keyword_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/scanner/keyword.dart
diff --git a/pkg/compiler/lib/src/scanner/keyword.dart b/pkg/compiler/lib/src/scanner/keyword.dart
index ffcf036dc66ca822c2c7b27aca4331cae04ad9a5..804a0ee3e31a195cef5dd0384780034fe346468f 100644
--- a/pkg/compiler/lib/src/scanner/keyword.dart
+++ b/pkg/compiler/lib/src/scanner/keyword.dart
@@ -19,6 +19,7 @@ class Keyword {
const Keyword("default"),
const Keyword("do"),
const Keyword("else"),
+ const Keyword("enum"),
const Keyword("extends"),
const Keyword("false"),
const Keyword("final"),
@@ -48,7 +49,6 @@ class Keyword {
const Keyword("abstract", isBuiltIn: true),
const Keyword("as", info: AS_INFO, isBuiltIn: true),
const Keyword("dynamic", isBuiltIn: true),
- const Keyword("enum", isBuiltIn: true),
const Keyword("export", isBuiltIn: true),
const Keyword("external", isBuiltIn: true),
const Keyword("factory", isBuiltIn: true),
« no previous file with comments | « no previous file | tests/language/enum_is_keyword_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698