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 0d9729b68e03f80565d399a5d6fc18996ca92669..fe070eb8bb33cf764106e2d327e012c722e68132 100644 |
--- a/pkg/analyzer/lib/src/generated/parser.dart |
+++ b/pkg/analyzer/lib/src/generated/parser.dart |
@@ -5126,7 +5126,8 @@ class Parser { |
_peek().matchesAny([ |
TokenType.OPEN_PAREN, |
TokenType.OPEN_CURLY_BRACKET, |
- TokenType.FUNCTION |
+ TokenType.FUNCTION, |
+ TokenType.LT |
])) { |
_validateModifiersForTopLevelFunction(modifiers); |
return _parseFunctionDeclaration( |