| 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 de44f48971e65f2b8fc457763da74fdd3be2dee2..47c1774921c034749cbf31bf2db93b918e0f1b9a 100644
|
| --- a/pkg/analyzer/lib/src/generated/parser.dart
|
| +++ b/pkg/analyzer/lib/src/generated/parser.dart
|
| @@ -7863,7 +7863,18 @@ class Parser {
|
| } else if (!_tokenMatches(token, TokenType.PERIOD)) {
|
| return token;
|
| }
|
| - return _skipSimpleIdentifier(token.next);
|
| + token = token.next;
|
| + Token nextToken = _skipSimpleIdentifier(token);
|
| + if (nextToken != null) {
|
| + return nextToken;
|
| + } else if (_tokenMatches(token, TokenType.CLOSE_PAREN)
|
| + || _tokenMatches(token, TokenType.COMMA)) {
|
| + // If the `id.` is followed by something that cannot produce a valid
|
| + // structure then assume this is a prefixed identifier but missing the
|
| + // trailing identifier
|
| + return token;
|
| + }
|
| + return null;
|
| }
|
|
|
| /**
|
|
|