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

Unified Diff: pkg/front_end/lib/src/fasta/type_inference/type_inference_listener.dart

Issue 2962583002: Add type inference for break and continue statements. (Closed)
Patch Set: 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
Index: pkg/front_end/lib/src/fasta/type_inference/type_inference_listener.dart
diff --git a/pkg/front_end/lib/src/fasta/type_inference/type_inference_listener.dart b/pkg/front_end/lib/src/fasta/type_inference/type_inference_listener.dart
index c8b3f3588f7f6ca56d900c835350a46c6aac5448..cd2e22a1342046900e4560c08bc79b939f8301bd 100644
--- a/pkg/front_end/lib/src/fasta/type_inference/type_inference_listener.dart
+++ b/pkg/front_end/lib/src/fasta/type_inference/type_inference_listener.dart
@@ -109,6 +109,12 @@ class TypeInferenceListener
void boolLiteralExit(BoolLiteral expression, DartType inferredType) =>
debugExpressionExit("boolLiteral", expression, inferredType);
+ void breakStatementEnter(BreakStatement statement) =>
+ debugStatementEnter('breakStatement', statement);
+
+ void breakStatementExit(BreakStatement statement) =>
+ debugStatementExit('breakStatement', statement);
+
bool cascadeExpressionEnter(Let expression, DartType typeContext) =>
debugExpressionEnter("cascade", expression, typeContext);
@@ -131,6 +137,12 @@ class TypeInferenceListener
InvocationExpression expression, DartType inferredType) =>
debugExpressionExit("constructorInvocation", expression, inferredType);
+ void continueSwitchStatementEnter(ContinueSwitchStatement statement) =>
+ debugStatementEnter('continueSwitchStatement', statement);
+
+ void continueSwitchStatementExit(ContinueSwitchStatement statement) =>
+ debugStatementExit('continueSwitchStatement', statement);
+
void doStatementEnter(DoStatement statement) =>
debugStatementEnter("doStatement", statement);
« no previous file with comments | « pkg/front_end/lib/src/fasta/kernel/kernel_shadow_ast.dart ('k') | pkg/front_end/testcases/inference/switch_continue.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698