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

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

Issue 1306143002: Remove SendResolver.computeSendStructure. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Fix handling of invalid this access. Created 5 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/compiler/lib/src/inferrer/inferrer_visitor.dart ('k') | pkg/compiler/lib/src/js_backend/backend.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/inferrer/simple_types_inferrer.dart
diff --git a/pkg/compiler/lib/src/inferrer/simple_types_inferrer.dart b/pkg/compiler/lib/src/inferrer/simple_types_inferrer.dart
index 42cb1865b31f3f98881a2c53c5f46dd5ecb90ad8..5197d5bfbe3e5314a7f33fd62f38502056227360 100644
--- a/pkg/compiler/lib/src/inferrer/simple_types_inferrer.dart
+++ b/pkg/compiler/lib/src/inferrer/simple_types_inferrer.dart
@@ -850,9 +850,12 @@ class SimpleTypeInferrerVisitor<T>
isCallOnThis = true;
}
} else {
- if (node.receiver != null && elements[node.receiver] is! PrefixElement) {
- // TODO(johnniwinther): Avoid blindly recursing on the receiver.
- receiverType = visit(node.receiver);
+ if (node.receiver != null) {
+ Element receiver = elements[node.receiver];
+ if (receiver is! PrefixElement && receiver is! ClassElement) {
+ // TODO(johnniwinther): Avoid blindly recursing on the receiver.
+ receiverType = visit(node.receiver);
+ }
}
isCallOnThis = isThisOrSuper(node.receiver);
}
« no previous file with comments | « pkg/compiler/lib/src/inferrer/inferrer_visitor.dart ('k') | pkg/compiler/lib/src/js_backend/backend.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698