Skip to content

Commit fc1d6a8

Browse files
committed
Rename getContextuallyTypedThisParameter to getContextualThisParameter
1 parent 5aafc2c commit fc1d6a8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/compiler/checker.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3065,7 +3065,7 @@ namespace ts {
30653065
// Use contextual parameter type if one is available
30663066
let type: Type;
30673067
if (declaration.symbol.name === "this") {
3068-
const thisParameter = getContextuallyTypedThisParameter(func);
3068+
const thisParameter = getContextualThisParameter(func);
30693069
type = thisParameter ? getTypeOfSymbol(thisParameter) : undefined;
30703070
}
30713071
else {
@@ -4695,7 +4695,7 @@ namespace ts {
46954695
minArgumentCount--;
46964696
}
46974697
if (!thisParameter && isObjectLiteralMethod(declaration)) {
4698-
thisParameter = getContextuallyTypedThisParameter(declaration);
4698+
thisParameter = getContextualThisParameter(declaration);
46994699
}
47004700

47014701
const classType = declaration.kind === SyntaxKind.Constructor ?
@@ -9330,7 +9330,7 @@ namespace ts {
93309330
}
93319331
}
93329332

9333-
function getContextuallyTypedThisParameter(func: FunctionLikeDeclaration): Symbol {
9333+
function getContextualThisParameter(func: FunctionLikeDeclaration): Symbol {
93349334
if (isContextSensitiveFunctionOrObjectLiteralMethod(func) && func.kind !== SyntaxKind.ArrowFunction) {
93359335
const contextualSignature = getContextualSignature(func);
93369336
if (contextualSignature) {

0 commit comments

Comments
 (0)