(api: JSDocApi, names: ReadonlySet<string>)
| 2241 | } |
| 2242 | |
| 2243 | function 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 | |
| 2252 | function createJSDocApiSeeLinkResolver(apis: ReadonlyArray<JSDocApi>) { |
| 2253 | const byModuleAndName = new Map<string, JSDocApi>() |