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

Function undocumentedSeeLinkTarget

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

Source from the content-addressed store, hash-verified

1733}
1734
1735function undocumentedSeeLinkTarget(
1736 symbol: ts.Symbol,
1737 checker: ts.TypeChecker,
1738 cwd: string
1739): ts.Declaration | undefined {
1740 const localDeclarations = symbolDeclarations(symbol, checker).filter((declaration) =>
1741 isMemberDeclaration(declaration) && isLocalSourceFile(cwd, declaration.getSourceFile())
1742 )
1743 if (localDeclarations.length === 0 || symbolHasPublicJSDoc(symbol, checker)) return undefined
1744 return localDeclarations[0]
1745}
1746
1747function inlineLinkSymbol(
1748 symbol: ts.Symbol,

Callers 1

addJSDocLinkDiagnosticsFunction · 0.85

Calls 5

symbolDeclarationsFunction · 0.85
isMemberDeclarationFunction · 0.85
isLocalSourceFileFunction · 0.85
symbolHasPublicJSDocFunction · 0.85
filterMethod · 0.80

Tested by

no test coverage detected