Skip to content

Commit d3e5ece

Browse files
committed
Rename getSignaturesFromCallLike to getUninstantiatedSignatures
1 parent 79f53bd commit d3e5ece

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/compiler/checker.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42626,7 +42626,10 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker {
4262642626
return undefined;
4262742627
}
4262842628

42629-
function getSignaturesFromCallLike(node: CallLikeExpression): readonly Signature[] {
42629+
/**
42630+
* Gets generic signatures from the function's/constructor's type.
42631+
*/
42632+
function getUninstantiatedSignatures(node: CallLikeExpression): readonly Signature[] {
4263042633
switch (node.kind) {
4263142634
case SyntaxKind.CallExpression:
4263242635
case SyntaxKind.Decorator:
@@ -42717,14 +42720,14 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker {
4271742720

4271842721
if (isCallLikeExpression(node.parent)) {
4271942722
return getTypeParameterConstraintForPositionAcrossSignatures(
42720-
getSignaturesFromCallLike(node.parent),
42723+
getUninstantiatedSignatures(node.parent),
4272142724
typeArgumentPosition,
4272242725
);
4272342726
}
4272442727

4272542728
if (isDecorator(node.parent.parent)) {
4272642729
return getTypeParameterConstraintForPositionAcrossSignatures(
42727-
getSignaturesFromCallLike(node.parent.parent),
42730+
getUninstantiatedSignatures(node.parent.parent),
4272842731
typeArgumentPosition,
4272942732
);
4273042733
}

0 commit comments

Comments
 (0)