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

Function seeTargetNames

packages/tools/jsdocs/src/Jsdocs.ts:2229–2241  ·  view source on GitHub ↗
(link: ParsedInlineLink)

Source from the content-addressed store, hash-verified

2227}
2228
2229function seeTargetNames(link: ParsedInlineLink): ReadonlySet<string> {
2230 const names = new Set<string>()
2231 const add = (target: string) => {
2232 for (const normalized of normalizeSeeTarget(target)) {
2233 const parts = normalized.split(".").filter((part) => part.length > 0)
2234 for (const part of parts) names.add(part)
2235 if (parts.length > 0) names.add(parts.join("."))
2236 }
2237 }
2238 add(link.target)
2239 if (link.text !== null) add(link.text)
2240 return names
2241}
2242
2243function apiMatchesSeeTarget(api: JSDocApi, names: ReadonlySet<string>): boolean {
2244 if (names.size === 0) return true

Callers 1

resolveSymbolFunction · 0.85

Calls 1

addFunction · 0.70

Tested by

no test coverage detected