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

Unified Diff: dart/frog/leg/scanner/keyword.dart

Issue 8953025: Promote "class" and "extends" to keywords (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 years 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 | dart/tests/language/language-leg.status » ('j') | dart/tests/language/language-leg.status » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/frog/leg/scanner/keyword.dart
diff --git a/dart/frog/leg/scanner/keyword.dart b/dart/frog/leg/scanner/keyword.dart
index ab9324edf489726bd108bb5c6b20d364524ca623..06692d3534b98ee2133e2f3521d51cdabad21384 100644
--- a/dart/frog/leg/scanner/keyword.dart
+++ b/dart/frog/leg/scanner/keyword.dart
@@ -9,11 +9,13 @@ class Keyword implements SourceString {
static final Keyword BREAK = const Keyword("break");
static final Keyword CASE = const Keyword("case");
static final Keyword CATCH = const Keyword("catch");
+ static final Keyword CLASS = const Keyword("class");
static final Keyword CONST = const Keyword("const");
static final Keyword CONTINUE = const Keyword("continue");
static final Keyword DEFAULT = const Keyword("default");
static final Keyword DO = const Keyword("do");
static final Keyword ELSE = const Keyword("else");
+ static final Keyword EXTENDS = const Keyword("extends");
static final Keyword FALSE = const Keyword("false");
static final Keyword FINAL = const Keyword("final");
static final Keyword FINALLY = const Keyword("finally");
@@ -37,8 +39,6 @@ class Keyword implements SourceString {
// Pseudo keywords:
static final Keyword ABSTRACT = const Keyword("abstract", true);
static final Keyword ASSERT = const Keyword("assert", true);
- static final Keyword CLASS = const Keyword("class", true);
- static final Keyword EXTENDS = const Keyword("extends", true);
static final Keyword FACTORY = const Keyword("factory", true);
static final Keyword GET = const Keyword("get", true);
static final Keyword IMPLEMENTS = const Keyword("implements", true);
« no previous file with comments | « no previous file | dart/tests/language/language-leg.status » ('j') | dart/tests/language/language-leg.status » ('J')

Powered by Google App Engine
This is Rietveld 408576698