MCPcopy Create free account
hub / github.com/Effect-TS/effect / inlineLinkSymbol

Function inlineLinkSymbol

packages/tools/jsdocs/src/Jsdocs.ts:1798–1810  ·  view source on GitHub ↗
(
  symbol: ts.Symbol,
  cwd: string,
  checker: ts.TypeChecker
)

Source from the content-addressed store, hash-verified

1796}
1797
1798function inlineLinkSymbol(
1799 symbol: ts.Symbol,
1800 cwd: string,
1801 checker: ts.TypeChecker
1802): ParsedInlineLinkSymbol | undefined {
1803 const target = resolvedSymbolTarget(symbol, checker)
1804 const declaration = target.valueDeclaration ?? target.declarations?.[0]
1805 if (declaration === undefined) return undefined
1806 return {
1807 file: normalizeFile(cwd, declaration.getSourceFile().fileName),
1808 range: nodeRange(declaration)
1809 }
1810}
1811
1812function attachSeeLinkSymbolsFromSourceFile<
1813 T extends ParsedModuleTags | ParsedDeclarationTags | ParsedNamespaceTags | ParsedMemberTags

Callers 1

Calls 3

resolvedSymbolTargetFunction · 0.85
normalizeFileFunction · 0.85
nodeRangeFunction · 0.85

Tested by

no test coverage detected