MCPcopy Create free account
hub / github.com/effect-app/libs / inlineLinkSymbol

Function inlineLinkSymbol

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

Source from the content-addressed store, hash-verified

1673 ts.forEachChild(node, visit)
1674 }
1675 visit(sourceFile)
1676 return links
1677}
1678
1679function collectJSDocSeeLinks(sourceFile: ts.SourceFile, block: JSDocBlock): Array<ts.JSDocLink> {
1680 const links: Array<ts.JSDocLink> = []
1681 function inspectJSDoc(node: ts.Node) {
1682 for (const jsdoc of (node as { readonly jsDoc?: ReadonlyArray<ts.JSDoc> }).jsDoc ?? []) {
1683 if (jsdoc.pos !== block.range[0] || jsdoc.end !== block.range[1]) continue
1684 ts.forEachChild(jsdoc, function visit(child) {
1685 if (ts.isJSDocSeeTag(child)) {
1686 ts.forEachChild(child, function visitSeeTag(seeTagChild) {
1687 if (ts.isJSDocLink(seeTagChild)) links.push(seeTagChild)
1688 ts.forEachChild(seeTagChild, visitSeeTag)
1689 })
1690 return

Callers 1

Calls 3

resolvedSymbolTargetFunction · 0.85
normalizeFileFunction · 0.85
nodeRangeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…