| Index: pkg/analyzer/lib/src/generated/static_type_analyzer.dart
|
| diff --git a/pkg/analyzer/lib/src/generated/static_type_analyzer.dart b/pkg/analyzer/lib/src/generated/static_type_analyzer.dart
|
| index b4ca685b99477835166c32bd459aa2d276ce10b7..6eaefaaad4e96cd1d92c67188343dd93a208e46c 100644
|
| --- a/pkg/analyzer/lib/src/generated/static_type_analyzer.dart
|
| +++ b/pkg/analyzer/lib/src/generated/static_type_analyzer.dart
|
| @@ -493,15 +493,9 @@ class StaticTypeAnalyzer extends SimpleAstVisitor<Object> {
|
| */
|
| @override
|
| Object visitFunctionExpressionInvocation(FunctionExpressionInvocation node) {
|
| - DartType functionStaticType = _getStaticType(node.function);
|
| - DartType staticType;
|
| - if (functionStaticType is FunctionType) {
|
| - staticType = functionStaticType.returnType;
|
| - } else {
|
| - staticType = _dynamicType;
|
| - }
|
| + DartType staticType = _computeInvokeReturnType(node.staticInvokeType);
|
| _recordStaticType(node, staticType);
|
| - DartType functionPropagatedType = node.function.propagatedType;
|
| + DartType functionPropagatedType = node.propagatedInvokeType;
|
| if (functionPropagatedType is FunctionType) {
|
| DartType propagatedType = functionPropagatedType.returnType;
|
| _resolver.recordPropagatedTypeIfBetter(node, propagatedType);
|
|
|