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

Unified Diff: pkg/compiler/lib/src/inferrer/inferrer_visitor.dart

Issue 1238783003: Handle deferred access as pre-step in SemanticSendVisitor. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 5 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/compiler/lib/src/inferrer/inferrer_visitor.dart
diff --git a/pkg/compiler/lib/src/inferrer/inferrer_visitor.dart b/pkg/compiler/lib/src/inferrer/inferrer_visitor.dart
index e8af9783dccabcb236a7a7f8aa2d0c2765e0eff2..0e83908c7b5d5e2b8536cf51cc4807d0f2ef1cba 100644
--- a/pkg/compiler/lib/src/inferrer/inferrer_visitor.dart
+++ b/pkg/compiler/lib/src/inferrer/inferrer_visitor.dart
@@ -816,6 +816,11 @@ abstract class InferrerVisitor
return types.dynamicType;
}
+ @override
+ void visitDeferredAccess(Send node, PrefixElement prefix, _) {
+ // Deferred access does not affect inference.
+ }
+
T handleTypeLiteralGet() {
return types.typeType;
}

Powered by Google App Engine
This is Rietveld 408576698