We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
target.parent
1 parent efc7e9d commit e8e7ec6Copy full SHA for e8e7ec6
src/services/services.ts
@@ -2810,7 +2810,7 @@ namespace ts {
2810
function getAncestorCallLikeExpression(node: Node): CallLikeExpression | undefined {
2811
const target = climbPastManyPropertyAccesses(node);
2812
const callLike = target.parent;
2813
- return isCallLikeExpression(callLike) && getInvokedExpression(callLike) === target && callLike;
+ return callLike && isCallLikeExpression(callLike) && getInvokedExpression(callLike) === target && callLike;
2814
}
2815
2816
function tryGetSignatureDeclaration(typeChecker: TypeChecker, node: Node): SignatureDeclaration | undefined {
0 commit comments