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

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

Issue 2954823002: Implement type inference for try/catch blocks. (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 ac29a1e1235bc98bc1efecf2c4773b10d0320b63..cf509489f2a4bf33239217ea39ecc73cf0b1f7b5 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
@@ -322,6 +322,18 @@ class TypeInferenceListener
void throwExit(Throw expression, DartType inferredType) =>
debugExpressionExit('throw', expression, inferredType);
+ void tryCatchEnter(TryCatch statement) =>
+ debugStatementEnter('tryCatch', statement);
+
+ void tryCatchExit(TryCatch statement) =>
+ debugStatementExit('tryCatch', statement);
+
+ void tryFinallyEnter(TryFinally statement) =>
+ debugStatementEnter('tryFinally', statement);
+
+ void tryFinallyExit(TryFinally statement) =>
+ debugStatementExit('tryFinally', statement);
+
bool variableAssignEnter(Expression expression, DartType typeContext) =>
debugExpressionEnter("variableAssign", expression, typeContext);
« no previous file with comments | « pkg/front_end/lib/src/fasta/kernel/kernel_shadow_ast.dart ('k') | pkg/front_end/testcases/accessors.dart.direct.expect » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698