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

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

Issue 1112793003: Refactor SimpleTypeInferrer.visitGetterSend and visitStaticSend. (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 | « no previous file | pkg/compiler/lib/src/inferrer/inferrer_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/concrete_types_inferrer.dart
diff --git a/pkg/compiler/lib/src/inferrer/concrete_types_inferrer.dart b/pkg/compiler/lib/src/inferrer/concrete_types_inferrer.dart
index 2a726ff69370ebeab8a26a6eed34bd6df5dfb305..c742d512f12d7e4eb32ac4740d345aa15ccb85b5 100644
--- a/pkg/compiler/lib/src/inferrer/concrete_types_inferrer.dart
+++ b/pkg/compiler/lib/src/inferrer/concrete_types_inferrer.dart
@@ -2368,21 +2368,10 @@ class TypeInferrerVisitor extends SimpleTypeInferrerVisitor<ConcreteType> {
}
/**
- * Same as super.visitGetterSend except it records the type of nodes in test
+ * Same as super.handleLocalGet except it records the type of nodes in test
* mode.
*/
@override
- ConcreteType visitGetterSend(Send node) {
- if (inferrer.testMode) {
- var element = elements[node];
- if (element is Local) {
- internalError(node, "Unhandled local: $element");
- }
- }
- return super.visitGetterSend(node);
- }
-
- @override
ConcreteType handleLocalGet(Send node, LocalElement local) {
if (inferrer.testMode) {
ConcreteType type = locals.use(local);
« no previous file with comments | « no previous file | pkg/compiler/lib/src/inferrer/inferrer_visitor.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698