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

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

Issue 2905353002: Add type inference logic for map literals (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 c7bfd35f644324e177df6b6a0d9c9e2b9177abfc..1284f53371e229af7eb32f5eda4624fef5f785a1 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
@@ -168,6 +168,12 @@ class TypeInferenceListener
void listLiteralExit(ListLiteral expression, DartType inferredType) =>
debugExpressionExit("listLiteral", expression, inferredType);
+ bool mapLiteralEnter(MapLiteral expression, DartType typeContext) =>
+ debugExpressionEnter("mapLiteral", expression, typeContext);
+
+ void mapLiteralExit(MapLiteral expression, DartType typeContext) =>
+ debugExpressionExit("mapLiteral", expression, typeContext);
+
bool methodInvocationEnter(
MethodInvocation expression, DartType typeContext) =>
debugExpressionEnter("methodInvocation", 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