Index: pkg/analyzer/test/src/task/strong/front_end_inference_test.dart |
diff --git a/pkg/analyzer/test/src/task/strong/front_end_inference_test.dart b/pkg/analyzer/test/src/task/strong/front_end_inference_test.dart |
index ffc750075edb4b27cc5d63473ff001cf303a2aef..7192b59a5737674e7621eebb7d0c0f4928b6b3cd 100644 |
--- a/pkg/analyzer/test/src/task/strong/front_end_inference_test.dart |
+++ b/pkg/analyzer/test/src/task/strong/front_end_inference_test.dart |
@@ -507,6 +507,19 @@ class _InstrumentationVisitor extends RecursiveAstVisitor<Null> { |
_recordTypeArguments(node.methodName.offset, inferredTypeArguments); |
} |
} |
+ var methodElement = node.methodName.staticElement; |
+ if (node.target is SuperExpression && |
+ methodElement is PropertyAccessorElement) { |
+ // This is a hack since analyzer doesn't record .call targets |
+ var getterClass = methodElement.returnType.element; |
+ if (getterClass is ClassElement) { |
+ var target = getterClass.lookUpMethod('call', null) ?? |
+ getterClass.lookUpGetter('call', null); |
+ if (target != null) { |
+ _recordTarget(node.argumentList.offset, target); |
+ } |
+ } |
+ } |
} |
visitPrefixExpression(PrefixExpression node) { |