Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(848)

Unified Diff: pkg/analyzer/lib/src/generated/parser.dart

Issue 2836983002: Fix exception parsing generic function type syntax (Closed)
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | pkg/analyzer/test/generated/parser_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 ea41c985f8a75d59658d1c4392f2600a62ac7507..58571133ee7eab58999afd80b9c14dd00fb58ff3 100644
--- a/pkg/analyzer/lib/src/generated/parser.dart
+++ b/pkg/analyzer/lib/src/generated/parser.dart
@@ -5653,9 +5653,9 @@ class Parser {
Token next = null;
if (_atGenericFunctionTypeAfterReturnType(startToken)) {
next = skipGenericFunctionTypeAfterReturnType(startToken);
- } else if (_currentToken.keyword == Keyword.VOID &&
- _atGenericFunctionTypeAfterReturnType(_currentToken.next)) {
- next = next.next;
+ } else if (startToken.keyword == Keyword.VOID &&
+ _atGenericFunctionTypeAfterReturnType(startToken.next)) {
+ next = startToken.next;
} else {
next = skipTypeName(startToken);
}
« no previous file with comments | « no previous file | pkg/analyzer/test/generated/parser_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698