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

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

Issue 2994533002: Perform type inference on constructor field initializer expressions. (Closed)
Patch Set: Created 3 years, 4 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 020b7606621eb8870d0e952f47d36464fe4db4d1..7d3df939ec58b9a32bfb94d0b9eba87f24667805 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
@@ -170,6 +170,12 @@ class TypeInferenceListener
void expressionStatementExit(ExpressionStatement statement) =>
genericStatementExit('expressionStatement', statement);
+ void fieldInitializerEnter(FieldInitializer initializer) =>
+ genericInitializerEnter("fieldInitializer", initializer);
+
+ void fieldInitializerExit(FieldInitializer initializer) =>
+ genericInitializerExit("fieldInitializer", initializer);
+
void forInStatementEnter(ForInStatement statement) =>
genericStatementEnter('forInStatement', statement);
@@ -258,11 +264,11 @@ class TypeInferenceListener
void mapLiteralExit(MapLiteral expression, DartType typeContext) =>
genericExpressionExit("mapLiteral", expression, typeContext);
+ void methodInvocationBeforeArgs(Expression expression, bool isImplicitCall) {}
+
bool methodInvocationEnter(Expression expression, DartType typeContext) =>
genericExpressionEnter("methodInvocation", expression, typeContext);
- void methodInvocationBeforeArgs(Expression expression, bool isImplicitCall) {}
-
void methodInvocationExit(Expression expression, Arguments arguments,
bool isImplicitCall, DartType inferredType) =>
genericExpressionExit("methodInvocation", expression, inferredType);
« no previous file with comments | « pkg/front_end/lib/src/fasta/kernel/kernel_shadow_ast.dart ('k') | pkg/front_end/testcases/ast_builder.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698