Chromium Code Reviews| 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 |