| Index: pkg/analyzer/lib/src/generated/parser.dart
|
| diff --git a/pkg/analyzer/lib/src/generated/parser.dart b/pkg/analyzer/lib/src/generated/parser.dart
|
| index 609fb17f954f41f159e70aa0367c1b94f72729c7..89ae664659ed85cf014a7a85246176b1d40e72b3 100644
|
| --- a/pkg/analyzer/lib/src/generated/parser.dart
|
| +++ b/pkg/analyzer/lib/src/generated/parser.dart
|
| @@ -423,6 +423,9 @@ Object invokeParserMethodImpl(
|
| parser.currentToken = tokenStream;
|
| MethodTrampoline method =
|
| methodTable_Parser['${methodName}_${objects.length}'];
|
| + if (method == null) {
|
| + throw new IllegalArgumentException('There is no method named $methodName');
|
| + }
|
| return method.invoke(parser, objects);
|
| }
|
|
|
| @@ -6234,7 +6237,7 @@ class Parser {
|
| _reportErrorForNode(ParserErrorCode.EXTERNAL_METHOD_WITH_BODY, body);
|
| }
|
| } else if (staticKeyword != null) {
|
| - if (body is EmptyFunctionBody) {
|
| + if (body is EmptyFunctionBody && _parseFunctionBodies) {
|
| _reportErrorForNode(ParserErrorCode.ABSTRACT_STATIC_METHOD, body);
|
| }
|
| }
|
|
|