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

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

Issue 10540048: Implement 'as' operator. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: No entries in language.status, vm and dartc already implemented 'as'. Created 8 years, 6 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
Index: lib/compiler/implementation/scanner/keyword.dart
diff --git a/lib/compiler/implementation/scanner/keyword.dart b/lib/compiler/implementation/scanner/keyword.dart
index 761c130aee22f805b6a167395df0c27efaef4400..f5153c84fb32a726e689a633c5468eb49a205215 100644
--- a/lib/compiler/implementation/scanner/keyword.dart
+++ b/lib/compiler/implementation/scanner/keyword.dart
@@ -38,6 +38,7 @@ class Keyword implements SourceString {
// Pseudo keywords:
static final Keyword ABSTRACT = const Keyword("abstract", isPseudo: true);
+ static final Keyword AS = const Keyword("as", info: AS_INFO, isPseudo: true);
static final Keyword ASSERT = const Keyword("assert", isPseudo: true);
static final Keyword FACTORY = const Keyword("factory", isPseudo: true);
static final Keyword GET = const Keyword("get", isPseudo: true);
@@ -54,6 +55,7 @@ class Keyword implements SourceString {
static final Keyword TYPEDEF = const Keyword("typedef", isPseudo: true);
static final List<Keyword> values = const <Keyword> [
+ AS,
BREAK,
CASE,
CATCH,

Powered by Google App Engine
This is Rietveld 408576698