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

Unified Diff: dart/lib/compiler/implementation/scanner/keyword.dart

Issue 11103035: The following identifiers are now built-in: (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 2 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/lib/compiler/implementation/scanner/keyword.dart
diff --git a/dart/lib/compiler/implementation/scanner/keyword.dart b/dart/lib/compiler/implementation/scanner/keyword.dart
index be4e6520bcfb259ef854a548340edce98bd7269b..a3696bb52ccfa8e5d9b378d8e0dfea3902c1e2a9 100644
--- a/dart/lib/compiler/implementation/scanner/keyword.dart
+++ b/dart/lib/compiler/implementation/scanner/keyword.dart
@@ -23,9 +23,6 @@ class Keyword implements SourceString {
const Keyword("for"),
const Keyword("if"),
const Keyword("in"),
- // TODO(ahe): Don't think this is a reserved word.
- // See: http://dartbug.com/5579
- const Keyword("is", info: IS_INFO),
const Keyword("new"),
const Keyword("null"),
const Keyword("return"),
@@ -39,28 +36,32 @@ class Keyword implements SourceString {
const Keyword("void"),
const Keyword("while"),
+ // TODO(ahe): Don't think this is a reserved word.
+ // See: http://dartbug.com/5579
+ const Keyword("is", info: IS_INFO),
+
const Keyword("abstract", isBuiltIn: true),
const Keyword("as", info: AS_INFO, isBuiltIn: true),
const Keyword("assert", isBuiltIn: true),
const Keyword("dynamic", isBuiltIn: true),
+ const Keyword("export", isBuiltIn: true),
const Keyword("external", isBuiltIn: true),
const Keyword("factory", isBuiltIn: true),
const Keyword("get", isBuiltIn: true),
const Keyword("implements", isBuiltIn: true),
+ const Keyword("import", isBuiltIn: true),
const Keyword("interface", isBuiltIn: true),
+ const Keyword("library", isBuiltIn: true),
const Keyword("operator", isBuiltIn: true),
+ const Keyword("part", isBuiltIn: true),
const Keyword("set", isBuiltIn: true),
const Keyword("static", isBuiltIn: true),
const Keyword("typedef", isBuiltIn: true),
- const Keyword("export", isPseudo: true),
const Keyword("hide", isPseudo: true),
- const Keyword("import", isPseudo: true),
- const Keyword("library", isPseudo: true),
const Keyword("native", isPseudo: true),
const Keyword("of", isPseudo: true),
const Keyword("on", isPseudo: true),
- const Keyword("part", isPseudo: true),
const Keyword("show", isPseudo: true),
const Keyword("source", isPseudo: true) ];
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698