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

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

Issue 2738903002: Change the calling conventions for handleUnrecoverableError. (Closed)
Patch Set: Fix a code path I missed in element_listener.dart 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/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 afcabb0fc779ff76d2fb69b8955a7aab78951566..61c0754402d4f69e2d48b99c11c5451ba56c60fb 100644
--- a/pkg/front_end/lib/src/fasta/kernel/body_builder.dart
+++ b/pkg/front_end/lib/src/fasta/kernel/body_builder.dart
@@ -2199,7 +2199,7 @@ class BodyBuilder extends ScopeListener<JumpTarget> implements BuilderHelper {
arguments.putIfAbsent("actual", () => token.value);
handleRecoverableError(token, ErrorKind.ExpectedButGot, arguments);
}
- return token;
+ return newSyntheticToken(token);
}
return super.handleUnrecoverableError(token, kind, arguments);
}
« no previous file with comments | « pkg/compiler/lib/src/parser/element_listener.dart ('k') | pkg/front_end/lib/src/fasta/parser/dart_vm_native.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698