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

Unified Diff: pkg/front_end/lib/src/fasta/source/stack_listener.dart

Issue 2930673002: Implement initializer asserts. (Closed)
Patch Set: Address comments and tweak error recovery. Created 3 years, 6 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 | « pkg/front_end/lib/src/fasta/source/outline_builder.dart ('k') | pkg/front_end/messages.yaml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/front_end/lib/src/fasta/source/stack_listener.dart
diff --git a/pkg/front_end/lib/src/fasta/source/stack_listener.dart b/pkg/front_end/lib/src/fasta/source/stack_listener.dart
index ee7ca7b282a77af29d46e2205ef7245bac197338..650c0a18285675373865503a31c5dafffcc5c2ea 100644
--- a/pkg/front_end/lib/src/fasta/source/stack_listener.dart
+++ b/pkg/front_end/lib/src/fasta/source/stack_listener.dart
@@ -230,10 +230,15 @@ abstract class StackListener extends Listener {
}
@override
- void handleRecoverExpression(Token token) {
+ void handleRecoverExpression(Token token, FastaMessage message) {
debugEvent("RecoverExpression");
}
+ void handleExtraneousExpression(Token token, FastaMessage message) {
+ debugEvent("ExtraneousExpression");
+ pop(); // Discard the extraneous expression.
+ }
+
@override
void endCaseExpression(Token colon) {
debugEvent("CaseExpression");
« no previous file with comments | « pkg/front_end/lib/src/fasta/source/outline_builder.dart ('k') | pkg/front_end/messages.yaml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698