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

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

Issue 2998573002: Add type inference for invalid constructor initializers. (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
« no previous file with comments | « pkg/front_end/lib/src/fasta/kernel/kernel_shadow_ast.dart ('k') | no next file » | 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 0256ac57f30164b0766faad26a87cfb01ebf605c..df3fcefc2148bddc98d353ad7b4a2ae875ba58b7 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
@@ -232,6 +232,12 @@ class TypeInferenceListener
void intLiteralExit(IntLiteral expression, DartType inferredType) =>
genericExpressionExit("intLiteral", expression, inferredType);
+ void invalidInitializerEnter(LocalInitializer initializer) =>
+ genericInitializerEnter("invalidInitializer", initializer);
+
+ void invalidInitializerExit(LocalInitializer initializer) =>
+ genericInitializerExit("invalidInitializer", initializer);
+
bool isExpressionEnter(IsExpression expression, DartType typeContext) =>
genericExpressionEnter("isExpression", expression, typeContext);
« no previous file with comments | « pkg/front_end/lib/src/fasta/kernel/kernel_shadow_ast.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698