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

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

Issue 1112843004: Refactor to make visitDynamicSend deprecated. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 8 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/resolved_visitor.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 2de3174c7a14e9d67c40ca8c37a0aaa860f63d7c..e3bdac5f04012ea9547d1802c070bc42183a6f4e 100644
--- a/pkg/compiler/lib/src/inferrer/simple_types_inferrer.dart
+++ b/pkg/compiler/lib/src/inferrer/simple_types_inferrer.dart
@@ -1501,7 +1501,7 @@ class SimpleTypeInferrerVisitor<T>
ast.Node receiver,
Selector selector,
_) {
- return visitDynamicSend(node);
+ return handleDynamicGet(node);
}
@override
@@ -1557,7 +1557,7 @@ class SimpleTypeInferrerVisitor<T>
ast.Send node,
Selector selector,
_) {
- return visitDynamicSend(node);
+ return handleDynamicGet(node);
}
@override
@@ -1705,7 +1705,15 @@ class SimpleTypeInferrerVisitor<T>
sideEffects, inLoop);
}
- T visitDynamicSend(ast.Send node) {
+ T handleDynamicInvoke(ast.Send node) {
+ return _handleDynamicSend(node);
+ }
+
+ T handleDynamicGet(ast.Send node) {
+ return _handleDynamicSend(node);
+ }
+
+ T _handleDynamicSend(ast.Send node) {
Element element = elements[node];
T receiverType;
bool isCallOnThis = false;
« no previous file with comments | « pkg/compiler/lib/src/inferrer/inferrer_visitor.dart ('k') | pkg/compiler/lib/src/resolved_visitor.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698