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

Function markFqnCollisions

packages/tools/jsdocs/src/Jsdocs.ts:2200–2204  ·  view source on GitHub ↗
(apis: ReadonlyArray<JSDocApi>)

Source from the content-addressed store, hash-verified

2198}
2199
2200function markFqnCollisions(apis: ReadonlyArray<JSDocApi>): ReadonlyArray<JSDocApi> {
2201 const counts = new Map<string, number>()
2202 for (const api of apis) counts.set(api.apiFqn, (counts.get(api.apiFqn) ?? 0) + 1)
2203 return apis.map((api) => ({ ...api, hasFqnCollision: (counts.get(api.apiFqn) ?? 0) > 1 }))
2204}
2205
2206function normalizeSeeTarget(target: string): ReadonlyArray<string> {
2207 const withoutKind = target.replace(/:[A-Za-z]+$/, "")

Callers 1

buildJSDocApisFunction · 0.85

Calls 3

setMethod · 0.65
getMethod · 0.65
mapMethod · 0.45

Tested by

no test coverage detected