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

Unified Diff: runtime/vm/token.h

Issue 12210127: First stab at mixins in VM compiler (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 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 | « runtime/vm/symbols.h ('k') | tests/language/language.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/token.h
===================================================================
--- runtime/vm/token.h (revision 18475)
+++ runtime/vm/token.h (working copy)
@@ -185,7 +185,8 @@
KW(kTYPEDEF, "typedef", 0, kPseudoKeyword) \
KW(kVAR, "var", 0, kKeyword) \
KW(kVOID, "void", 0, kKeyword) \
- KW(kWHILE, "while", 0, kKeyword) /* == kLastKeyword */
+ KW(kWHILE, "while", 0, kKeyword) \
+ KW(kWITH, "with", 0, kKeyword) /* == kLastKeyword */
class String;
@@ -207,8 +208,8 @@
};
static const Kind kFirstKeyword = kABSTRACT;
- static const Kind kLastKeyword = kWHILE;
- static const int numKeywords = kWHILE - kABSTRACT + 1;
+ static const Kind kLastKeyword = kWITH;
+ static const int numKeywords = kLastKeyword - kFirstKeyword + 1;
static bool IsAssignmentOperator(Kind tok) {
return kASSIGN <= tok && tok <= kASSIGN_MOD;
« no previous file with comments | « runtime/vm/symbols.h ('k') | tests/language/language.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698