| 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 6c782fa809cee5281d8f736e5f307b183ba0efc0..50db79161cab990df939a00c2bdc7c6078ea3810 100644
|
| --- a/pkg/analyzer/lib/src/generated/parser.dart
|
| +++ b/pkg/analyzer/lib/src/generated/parser.dart
|
| @@ -4243,7 +4243,8 @@ class Parser {
|
| } else if (_matches(TokenType.PERIOD) ||
|
| _matches(TokenType.QUESTION_PERIOD)) {
|
| if (_matches(TokenType.QUESTION_PERIOD) && !allowConditional) {
|
| - _reportErrorForCurrentToken(ParserErrorCode.INVALID_OPERATOR_FOR_SUPER);
|
| + _reportErrorForCurrentToken(
|
| + ParserErrorCode.INVALID_OPERATOR_FOR_SUPER, [_currentToken.lexeme]);
|
| }
|
| Token operator = getAndAdvance();
|
| return new PropertyAccess(prefix, operator, parseSimpleIdentifier());
|
| @@ -5678,8 +5679,9 @@ class Parser {
|
| }
|
| Token functionDefinition = getAndAdvance();
|
| if (_matchesKeyword(Keyword.RETURN)) {
|
| - _reportErrorForToken(
|
| - ParserErrorCode.UNEXPECTED_TOKEN, getAndAdvance());
|
| + _reportErrorForToken(ParserErrorCode.UNEXPECTED_TOKEN, _currentToken,
|
| + [_currentToken.lexeme]);
|
| + _advance();
|
| }
|
| Expression expression = parseExpression2();
|
| Token semicolon = null;
|
|
|