Chromium Code Reviews| Index: pkg/analyzer/lib/src/task/strong/rules.dart |
| diff --git a/pkg/analyzer/lib/src/task/strong/rules.dart b/pkg/analyzer/lib/src/task/strong/rules.dart |
| index 3cd6db2a6875935017079a8d1dbf7c4445e32f4d..4ec540a724cccd2d63feb380652b2006b6334c01 100644 |
| --- a/pkg/analyzer/lib/src/task/strong/rules.dart |
| +++ b/pkg/analyzer/lib/src/task/strong/rules.dart |
| @@ -57,10 +57,8 @@ class TypeRules { |
| /// return null. |
| FunctionType getCallMethodType(DartType t) { |
| if (t is InterfaceType) { |
| - ClassElement element = t.element; |
| - InheritanceManager manager = new InheritanceManager(element.library); |
| - FunctionType callType = manager.lookupMemberType(t, "call"); |
| - return callType; |
| + MethodElement callMethod = t.lookUpMethod("call", null); |
| + return callMethod != null ? callMethod.type : null; |
|
Paul Berry
2015/10/29 17:57:47
These two lines could also be collapsed down to ju
Jennifer Messerly
2015/10/29 18:12:42
Doh! Could swear I fixed this ... maybe in another
|
| } |
| return null; |
| } |