Index: pkg/analyzer/lib/src/generated/resolver.dart |
diff --git a/pkg/analyzer/lib/src/generated/resolver.dart b/pkg/analyzer/lib/src/generated/resolver.dart |
index 3c113ced4feaf4ce0f45571f2920509d5c2be858..88860d108fafb52ca74c03a91b1a6e8827f45a09 100644 |
--- a/pkg/analyzer/lib/src/generated/resolver.dart |
+++ b/pkg/analyzer/lib/src/generated/resolver.dart |
@@ -9846,6 +9846,23 @@ class TypeResolverVisitor extends ScopedVisitor { |
} |
@override |
+ Object visitGenericFunctionType(GenericFunctionType node) { |
+ DartType returnType = node.returnType?.type ?? DynamicTypeImpl.instance; |
+ List<TypeParameterElement> typeParameters = node |
+ .typeParameters.typeParameters |
+ .map((TypeParameter parameter) => |
+ parameter.element as TypeParameterElement) |
+ .toList(); |
+ List<ParameterElement> parameters = node.parameters.parameters |
+ .map((FormalParameter parameter) => parameter.element) |
+ .toList(); |
+ (node as GenericFunctionTypeImpl).type = |
+ new FunctionTypeImpl.forGenericFunctionType( |
+ typeParameters, DartType.EMPTY_LIST, returnType, parameters, false); |
+ return null; |
+ } |
+ |
+ @override |
Object visitMethodDeclaration(MethodDeclaration node) { |
super.visitMethodDeclaration(node); |
ExecutableElementImpl element = node.element as ExecutableElementImpl; |