File tree 1 file changed +5
-3
lines changed 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -16023,8 +16023,7 @@ namespace ts {
16023
16023
}
16024
16024
16025
16025
function maybeTypeParameterReference(node: Node) {
16026
- return !(node.kind === SyntaxKind.QualifiedName ||
16027
- node.parent.kind === SyntaxKind.TypeReference && (node.parent as TypeReferenceNode).typeArguments && node === (node.parent as TypeReferenceNode).typeName ||
16026
+ return !(node.parent.kind === SyntaxKind.TypeReference && (node.parent as TypeReferenceNode).typeArguments && node === (node.parent as TypeReferenceNode).typeName ||
16028
16027
node.parent.kind === SyntaxKind.ImportType && (node.parent as ImportTypeNode).typeArguments && node === (node.parent as ImportTypeNode).qualifier);
16029
16028
}
16030
16029
@@ -16053,7 +16052,10 @@ namespace ts {
16053
16052
return true;
16054
16053
case SyntaxKind.MethodDeclaration:
16055
16054
case SyntaxKind.MethodSignature:
16056
- return (!(node as FunctionLikeDeclaration).type && !!(node as FunctionLikeDeclaration).body) || !!forEachChild(node, containsReference);
16055
+ return !(node as FunctionLikeDeclaration).type && !!(node as FunctionLikeDeclaration).body ||
16056
+ some((node as FunctionLikeDeclaration).typeParameters, containsReference) ||
16057
+ some((node as FunctionLikeDeclaration).parameters, containsReference) ||
16058
+ !!(node as FunctionLikeDeclaration).type && containsReference((node as FunctionLikeDeclaration).type!);
16057
16059
}
16058
16060
return !!forEachChild(node, containsReference);
16059
16061
}
You can’t perform that action at this time.
0 commit comments