| 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 0d2cbc08af064eb694c273ed3920973d8a50b3e4..fedda7e72f5ec33800dfc9b9fd3130ba70ab0904 100644
|
| --- a/pkg/analyzer/lib/src/generated/parser.dart
|
| +++ b/pkg/analyzer/lib/src/generated/parser.dart
|
| @@ -5969,13 +5969,19 @@ class Parser {
|
| } else if (deferredToken != null) {
|
| _reportErrorForCurrentToken(
|
| ParserErrorCode.MISSING_PREFIX_IN_DEFERRED_IMPORT);
|
| - } else if (!_matches(TokenType.SEMICOLON) &&
|
| - _tokenMatchesKeyword(_peek(), Keyword.AS)) {
|
| - _reportErrorForCurrentToken(
|
| - ParserErrorCode.UNEXPECTED_TOKEN, [_currentToken]);
|
| - _advance();
|
| - asToken = getAndAdvance();
|
| - prefix = parseSimpleIdentifier();
|
| + } else if (!_matches(TokenType.SEMICOLON)) {
|
| + Token nextToken = _peek();
|
| + if (_tokenMatchesKeyword(nextToken, Keyword.AS) ||
|
| + _tokenMatchesString(nextToken, _SHOW) ||
|
| + _tokenMatchesString(nextToken, _HIDE)) {
|
| + _reportErrorForCurrentToken(
|
| + ParserErrorCode.UNEXPECTED_TOKEN, [_currentToken]);
|
| + _advance();
|
| + if (_matchesKeyword(Keyword.AS)) {
|
| + asToken = getAndAdvance();
|
| + prefix = parseSimpleIdentifier();
|
| + }
|
| + }
|
| }
|
| List<Combinator> combinators = _parseCombinators();
|
| Token semicolon = _expectSemicolon();
|
|
|