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); |