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

Function undocumentedSeeLinkTarget

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

Source from the content-addressed store, hash-verified

1784}
1785
1786function undocumentedSeeLinkTarget(
1787 symbol: ts.Symbol,
1788 checker: ts.TypeChecker,
1789 cwd: string
1790): ts.Declaration | undefined {
1791 const localDeclarations = symbolDeclarations(symbol, checker).filter((declaration) =>
1792 isMemberDeclaration(declaration) && isLocalSourceFile(cwd, declaration.getSourceFile())
1793 )
1794 if (localDeclarations.length === 0 || symbolHasPublicJSDoc(symbol, checker)) return undefined
1795 return localDeclarations[0]
1796}
1797
1798function inlineLinkSymbol(
1799 symbol: ts.Symbol,

Callers 1

addJSDocLinkDiagnosticsFunction · 0.85

Calls 5

symbolDeclarationsFunction · 0.85
isMemberDeclarationFunction · 0.85
isLocalSourceFileFunction · 0.85
symbolHasPublicJSDocFunction · 0.85
filterMethod · 0.45

Tested by

no test coverage detected