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

Function inlineLinkSymbol

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

Source from the content-addressed store, hash-verified

1745}
1746
1747function inlineLinkSymbol(
1748 symbol: ts.Symbol,
1749 cwd: string,
1750 checker: ts.TypeChecker
1751): ParsedInlineLinkSymbol | undefined {
1752 const target = resolvedSymbolTarget(symbol, checker)
1753 const declaration = target.valueDeclaration ?? target.declarations?.[0]
1754 if (declaration === undefined) return undefined
1755 return {
1756 file: normalizeFile(cwd, declaration.getSourceFile().fileName),
1757 range: nodeRange(declaration)
1758 }
1759}
1760
1761function attachSeeLinkSymbolsFromSourceFile<
1762 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