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

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

Issue 2995553002: Implement type inference for asserts in 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
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 5fdd6102030b16d42cdd7a623de7a6b0ec359762..0256ac57f30164b0766faad26a87cfb01ebf605c 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
@@ -90,6 +90,12 @@ class TypeInferenceListener
void asExpressionExit(AsExpression expression, DartType inferredType) =>
genericExpressionExit("asExpression", expression, inferredType);
+ void assertInitializerEnter(LocalInitializer initializer) =>
+ genericInitializerEnter("assertInitializer", initializer);
+
+ void assertInitializerExit(LocalInitializer initializer) =>
+ genericInitializerExit("assertInitializer", initializer);
+
void assertStatementEnter(AssertStatement statement) =>
genericStatementEnter('assertStatement', statement);
« 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