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

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

Issue 2903243002: Add type inference logic for cascade expressions. (Closed)
Patch Set: Created 3 years, 7 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/kernel/kernel_shadow_ast.dart ('k') | pkg/front_end/test/fasta/strong.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/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 69f55a3bda86175caf44c142492cc817f64f6ebd..cbc22121465bcf63854865ba5e735f04d7ce020a 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
@@ -78,6 +78,12 @@ class TypeInferenceListener
void boolLiteralExit(BoolLiteral expression, DartType inferredType) =>
debugExpressionExit("boolLiteral", expression, inferredType);
+ bool cascadeExpressionEnter(Let expression, DartType typeContext) =>
+ debugExpressionEnter("cascade", expression, typeContext);
+
+ void cascadeExpressionExit(Let expression, DartType inferredType) =>
+ debugExpressionExit("cascade", expression, inferredType);
+
bool conditionalExpressionEnter(
ConditionalExpression expression, DartType typeContext) =>
debugExpressionEnter("conditionalExpression", expression, typeContext);
« no previous file with comments | « pkg/front_end/lib/src/fasta/kernel/kernel_shadow_ast.dart ('k') | pkg/front_end/test/fasta/strong.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698