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

Unified Diff: pkg/front_end/lib/src/fasta/parser/parser.dart

Issue 2738903002: Change the calling conventions for handleUnrecoverableError. (Closed)
Patch Set: Created 3 years, 9 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
Index: pkg/front_end/lib/src/fasta/parser/parser.dart
diff --git a/pkg/front_end/lib/src/fasta/parser/parser.dart b/pkg/front_end/lib/src/fasta/parser/parser.dart
index ecbe4830c05cf231681d0b393da6e1064ca9ef96..51bdcf924d852c66c29e23d171542e3a25760509 100644
--- a/pkg/front_end/lib/src/fasta/parser/parser.dart
+++ b/pkg/front_end/lib/src/fasta/parser/parser.dart
@@ -3525,7 +3525,7 @@ class Parser {
} else {
arguments ??= {};
arguments.putIfAbsent("actual", () => token.value);
- next = listener.handleUnrecoverableError(token, kind, arguments);
+ next = listener.handleUnrecoverableError(token, kind, arguments)?.next;
}
return next ?? skipToEof(token);
}
@@ -3576,7 +3576,7 @@ class Parser {
listener.handleRecoverableError(token, kind, arguments);
return null;
} else {
- return listener.handleUnrecoverableError(token, kind, arguments);
+ return listener.handleUnrecoverableError(token, kind, arguments)?.next;
}
}
}

Powered by Google App Engine
This is Rietveld 408576698