File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -2904,7 +2904,11 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker {
29042904 function getSymbolLinks(symbol: Symbol): SymbolLinks {
29052905 if (symbol.flags & SymbolFlags.Transient) return (symbol as TransientSymbol).links;
29062906 const id = getSymbolId(symbol);
2907- if (sourceFileWithoutResolvedSignatureCaching && symbol.valueDeclaration && (isFunctionExpressionOrArrowFunction(symbol.valueDeclaration) || tryGetRootParameterDeclaration(symbol.valueDeclaration)) && getSourceFileOfNode(symbol.valueDeclaration) === sourceFileWithoutResolvedSignatureCaching) {
2907+ if (
2908+ sourceFileWithoutResolvedSignatureCaching && symbol.valueDeclaration &&
2909+ (isFunctionExpressionOrArrowFunction(symbol.valueDeclaration) || isMethodDeclaration(symbol.valueDeclaration) || isAccessor(symbol.valueDeclaration) || tryGetRootParameterDeclaration(symbol.valueDeclaration)) &&
2910+ getSourceFileOfNode(symbol.valueDeclaration) === sourceFileWithoutResolvedSignatureCaching
2911+ ) {
29082912 symbolLinksWithoutResolvedSignatureCaching ??= [];
29092913 return symbolLinksWithoutResolvedSignatureCaching[id] ??= new SymbolLinks();
29102914 }
You can’t perform that action at this time.
0 commit comments