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

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

Issue 2950923002: Add type inference for null-aware method invocations. (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 3f17f013a85e380f550975d930e337c856db58f4..ac704c49ac9075d2ca31664c090224d8049583de 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
@@ -211,12 +211,10 @@ class TypeInferenceListener
void mapLiteralExit(MapLiteral expression, DartType typeContext) =>
debugExpressionExit("mapLiteral", expression, typeContext);
- bool methodInvocationEnter(
- MethodInvocation expression, DartType typeContext) =>
+ bool methodInvocationEnter(Expression expression, DartType typeContext) =>
debugExpressionEnter("methodInvocation", expression, typeContext);
- void methodInvocationExit(
- MethodInvocation expression, DartType inferredType) =>
+ void methodInvocationExit(Expression expression, DartType inferredType) =>
debugExpressionExit("methodInvocation", expression, inferredType);
bool notEnter(Not expression, DartType typeContext) =>

Powered by Google App Engine
This is Rietveld 408576698