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

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

Issue 2926763003: Add type inference for complex assignments whose LHS is an index expression. (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 9d575b161bd91831da70b628b53a00e80125bb80..7123076acfc0d99e0003b4f086255be60fefc81c 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
@@ -156,6 +156,12 @@ class TypeInferenceListener
void ifStatementExit(IfStatement statement) =>
debugStatementExit('ifStatement', statement);
+ bool indexAssignEnter(Expression expression, DartType typeContext) =>
+ debugExpressionEnter("indexAssign", expression, typeContext);
+
+ void indexAssignExit(Expression expression, DartType inferredType) =>
+ debugExpressionExit("indexAssign", expression, inferredType);
+
bool intLiteralEnter(IntLiteral expression, DartType typeContext) =>
debugExpressionEnter("intLiteral", expression, typeContext);

Powered by Google App Engine
This is Rietveld 408576698