MCPcopy Index your code
hub / github.com/nodejs/node / tryResolveAlias

Function tryResolveAlias

test/fixtures/snapshot/typescript.js:50837–50843  ·  view source on GitHub ↗
(symbol)

Source from the content-addressed store, hash-verified

50835 return links.aliasTarget;
50836 }
50837 function tryResolveAlias(symbol) {
50838 var links = getSymbolLinks(symbol);
50839 if (links.aliasTarget !== resolvingSymbol) {
50840 return resolveAlias(symbol);
50841 }
50842 return undefined;
50843 }
50844 /**
50845 * Marks a symbol as type-only if its declaration is syntactically type-only.
50846 * If it is not itself marked type-only, but resolves to a type-only alias

Callers 1

getCandidateNameFunction · 0.85

Calls 2

getSymbolLinksFunction · 0.85
resolveAliasFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…