File tree 1 file changed +2
-3
lines changed 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -17212,8 +17212,7 @@ namespace ts {
17212
17212
}
17213
17213
17214
17214
function isContextSensitiveFunctionLikeDeclaration(node: FunctionLikeDeclaration): boolean {
17215
- return (!isFunctionDeclaration(node) || isInJSFile(node) && !!getTypeForDeclarationFromJSDocComment(node)) &&
17216
- (hasContextSensitiveParameters(node) || hasContextSensitiveReturnExpression(node));
17215
+ return hasContextSensitiveParameters(node) || hasContextSensitiveReturnExpression(node);
17217
17216
}
17218
17217
17219
17218
function hasContextSensitiveReturnExpression(node: FunctionLikeDeclaration) {
@@ -17222,7 +17221,7 @@ namespace ts {
17222
17221
}
17223
17222
17224
17223
function isContextSensitiveFunctionOrObjectLiteralMethod(func: Node): func is FunctionExpression | ArrowFunction | MethodDeclaration {
17225
- return (isInJSFile(func) && isFunctionDeclaration(func) || isFunctionExpressionOrArrowFunction(func) || isObjectLiteralMethod(func)) &&
17224
+ return (isFunctionExpressionOrArrowFunction(func) || isObjectLiteralMethod(func)) &&
17226
17225
isContextSensitiveFunctionLikeDeclaration(func);
17227
17226
}
17228
17227
You can’t perform that action at this time.
0 commit comments