Chromium Code Reviews| Index: runtime/vm/parser.cc |
| =================================================================== |
| --- runtime/vm/parser.cc (revision 2919) |
| +++ runtime/vm/parser.cc (working copy) |
| @@ -2760,6 +2760,9 @@ |
| Warning("'factory' is obsolete, use 'default' instead."); |
| } |
| ConsumeToken(); |
| + if (CurrentToken() != Token::kIDENT) { |
| + ErrorMsg("class name expected"); |
| + } |
| const intptr_t factory_pos = token_index_; |
| QualIdent factory_name; |
| ParseQualIdent(&factory_name); |