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

Function normalizeSeeTarget

packages/tools/jsdocs/src/Jsdocs.ts:2206–2211  ·  view source on GitHub ↗
(target: string)

Source from the content-addressed store, hash-verified

2204}
2205
2206function normalizeSeeTarget(target: string): ReadonlyArray<string> {
2207 const withoutKind = target.replace(/:[A-Za-z]+$/, "")
2208 const out = [withoutKind]
2209 if (withoutKind.endsWith("_")) out.push(withoutKind.slice(0, -1))
2210 return Array.from(new Set(out.filter((item) => item.length > 0)))
2211}
2212
2213function sourceRangeKey(file: string, range: readonly [number, number]): string {
2214 return `${file}:${range[0]}:${range[1]}`

Callers 2

addFunction · 0.85

Calls 3

pushMethod · 0.80
filterMethod · 0.80
replaceMethod · 0.45

Tested by

no test coverage detected