Skip to content

Commit 9ab71ed

Browse files
committed
include methods and accessors when suppressing symbols
1 parent 5eb3137 commit 9ab71ed

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/compiler/checker.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)