| 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 bac76fa693b2a243d5946701515ebfc1fe534d98..1824afb47e069744d381805cc86f94d3e1c1b952 100644
|
| --- a/pkg/analyzer/lib/src/generated/parser.dart
|
| +++ b/pkg/analyzer/lib/src/generated/parser.dart
|
| @@ -6570,7 +6570,17 @@ class Parser {
|
| * Skips a block with all containing blocks.
|
| */
|
| void _skipBlock() {
|
| - _currentToken = (_currentToken as BeginToken).endToken.next;
|
| + Token endToken = (_currentToken as BeginToken).endToken;
|
| + if (endToken == null) {
|
| + endToken = _currentToken.next;
|
| + while (!identical(endToken, _currentToken)) {
|
| + _currentToken = endToken;
|
| + endToken = _currentToken.next;
|
| + }
|
| + _reportErrorForToken(ParserErrorCode.EXPECTED_TOKEN, _currentToken.previous, ["}"]);
|
| + } else {
|
| + _currentToken = endToken.next;
|
| + }
|
| }
|
|
|
| /**
|
| @@ -7884,6 +7894,9 @@ class ParserErrorCode extends Enum<ParserErrorCode> implements ErrorCode {
|
|
|
| @override
|
| ErrorType get type => ErrorType.SYNTACTIC_ERROR;
|
| +
|
| + @override
|
| + String get uniqueName => "${runtimeType.toString()}.${name}";
|
| }
|
|
|
| /**
|
|
|