File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -3065,7 +3065,7 @@ namespace ts {
3065
3065
// Use contextual parameter type if one is available
3066
3066
let type: Type;
3067
3067
if (declaration.symbol.name === "this") {
3068
- const thisParameter = getContextuallyTypedThisParameter (func);
3068
+ const thisParameter = getContextualThisParameter (func);
3069
3069
type = thisParameter ? getTypeOfSymbol(thisParameter) : undefined;
3070
3070
}
3071
3071
else {
@@ -4695,7 +4695,7 @@ namespace ts {
4695
4695
minArgumentCount--;
4696
4696
}
4697
4697
if (!thisParameter && isObjectLiteralMethod(declaration)) {
4698
- thisParameter = getContextuallyTypedThisParameter (declaration);
4698
+ thisParameter = getContextualThisParameter (declaration);
4699
4699
}
4700
4700
4701
4701
const classType = declaration.kind === SyntaxKind.Constructor ?
@@ -9330,7 +9330,7 @@ namespace ts {
9330
9330
}
9331
9331
}
9332
9332
9333
- function getContextuallyTypedThisParameter (func: FunctionLikeDeclaration): Symbol {
9333
+ function getContextualThisParameter (func: FunctionLikeDeclaration): Symbol {
9334
9334
if (isContextSensitiveFunctionOrObjectLiteralMethod(func) && func.kind !== SyntaxKind.ArrowFunction) {
9335
9335
const contextualSignature = getContextualSignature(func);
9336
9336
if (contextualSignature) {
You can’t perform that action at this time.
0 commit comments