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

Unified Diff: runtime/vm/parser.cc

Issue 8968021: One small step towards sanity (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
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 | runtime/vm/token.h » ('j') | tests/language/src/PseudoKWTest.dart » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/parser.cc
===================================================================
--- runtime/vm/parser.cc (revision 2528)
+++ runtime/vm/parser.cc (working copy)
@@ -1532,7 +1532,7 @@
const Class& cls = Class::Handle(func.owner());
ASSERT(!cls.IsNull());
- if (IsLiteral("class")) {
+ if (CurrentToken() == Token::kCLASS) {
// Special case: implicit constructor.
// The parser adds an implicit default constructor when a class
// does not have any explicit constructor or factory (see
« no previous file with comments | « no previous file | runtime/vm/token.h » ('j') | tests/language/src/PseudoKWTest.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698