Skip to content

Commit 1a2af34

Browse files
committed
Only call resolveName once
1 parent d719d09 commit 1a2af34

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/lib/converter/comments/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -142,9 +142,9 @@ function resolveLocalLink(ref: SymbolReference, node: ts.Node, checker: ts.TypeC
142142
if (!symbols.includes(sym)) symbols.push(sym);
143143
}
144144
};
145-
add(checker.resolveName(ref.path[0].path, node, ts.SymbolFlags.Value, true));
146-
add(checker.resolveName(ref.path[0].path, node, ts.SymbolFlags.Type, true));
147-
add(checker.resolveName(ref.path[0].path, node, ts.SymbolFlags.Namespace, true));
145+
// SymbolFlags.All does not work here, for some reason.
146+
add(checker.resolveName(ref.path[0].path, node,
147+
ts.SymbolFlags.Value | ts.SymbolFlags.Type | ts.SymbolFlags.Namespace, true));
148148
for (let i = 1; i < ref.path.length && symbols.length; i++) {
149149
const { path, navigation } = ref.path[i];
150150
const prev = symbols;

0 commit comments

Comments
 (0)