| 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 013ff4603e0d59aa41c2281ac52dc456858b9c1c..07ef20ea86ca9002c5c292c2b36e0b7aafb2f370 100644
|
| --- a/pkg/analyzer/lib/src/generated/parser.dart
|
| +++ b/pkg/analyzer/lib/src/generated/parser.dart
|
| @@ -6561,6 +6561,11 @@ class Parser {
|
| }
|
| }
|
| Token functionDefinition = andAdvance;
|
| + if (_matchesKeyword(Keyword.RETURN)) {
|
| + _reportErrorForToken(
|
| + ParserErrorCode.UNEXPECTED_TOKEN,
|
| + andAdvance);
|
| + }
|
| Expression expression = parseExpression2();
|
| Token semicolon = null;
|
| if (!inExpression) {
|
|
|