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

Function apiMatchesSeeTarget

packages/tools/jsdocs/src/Jsdocs.ts:2243–2250  ·  view source on GitHub ↗
(api: JSDocApi, names: ReadonlySet<string>)

Source from the content-addressed store, hash-verified

2241}
2242
2243function apiMatchesSeeTarget(api: JSDocApi, names: ReadonlySet<string>): boolean {
2244 if (names.size === 0) return true
2245 if (names.has(api.localName) || names.has(api.apiName)) return true
2246 for (const name of names) {
2247 if (api.apiName.endsWith(`.${name}`)) return true
2248 }
2249 return false
2250}
2251
2252function createJSDocApiSeeLinkResolver(apis: ReadonlyArray<JSDocApi>) {
2253 const byModuleAndName = new Map<string, JSDocApi>()

Callers 1

resolveSymbolFunction · 0.85

Calls 1

hasMethod · 0.45

Tested by

no test coverage detected