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

Unified Diff: pkg/front_end/lib/src/fasta/kernel/body_builder.dart

Issue 2739853003: Report a parse error when recovery fails. (Closed)
Patch Set: Update status files. 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
« no previous file with comments | « no previous file | tests/co19/co19-kernel.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/front_end/lib/src/fasta/kernel/body_builder.dart
diff --git a/pkg/front_end/lib/src/fasta/kernel/body_builder.dart b/pkg/front_end/lib/src/fasta/kernel/body_builder.dart
index 1130b7eb97119c22df6e5a5e0c13fca8daff079b..79a849015579127157fedcbd0e1bae8b78cd2f80 100644
--- a/pkg/front_end/lib/src/fasta/kernel/body_builder.dart
+++ b/pkg/front_end/lib/src/fasta/kernel/body_builder.dart
@@ -2212,8 +2212,8 @@ class BodyBuilder extends ScopeListener<JumpTarget> implements BuilderHelper {
if (trailing.contains(token.stringValue) && trailing.contains(expected)) {
arguments.putIfAbsent("actual", () => token.value);
handleRecoverableError(token, ErrorKind.ExpectedButGot, arguments);
+ return token;
}
- return token;
}
return super.handleUnrecoverableError(token, kind, arguments);
}
« no previous file with comments | « no previous file | tests/co19/co19-kernel.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698