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

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

Issue 2958813002: Implement type inference for symbol literals. (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..c447eb7610423b4a986b9e9fc9503f1877a47a7b 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
@@ -340,6 +340,12 @@ class TypeInferenceListener
void switchStatementExit(SwitchStatement statement) =>
debugStatementExit('switchStatement', statement);
+ bool symbolLiteralEnter(SymbolLiteral expression, DartType typeContext) =>
+ debugExpressionEnter("symbolLiteral", expression, typeContext);
+
+ void symbolLiteralExit(SymbolLiteral expression, DartType inferredType) =>
+ debugExpressionExit("symbolLiteral", expression, inferredType);
+
bool throwEnter(Throw expression, DartType typeContext) =>
debugExpressionEnter('throw', expression, typeContext);
« no previous file with comments | « pkg/front_end/lib/src/fasta/kernel/kernel_shadow_ast.dart ('k') | pkg/front_end/testcases/inference/symbol_literal.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698