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

Function normalizeSeeTarget

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

Source from the content-addressed store, hash-verified

2256}
2257
2258function normalizeSeeTarget(target: string): ReadonlyArray<string> {
2259 const withoutKind = target.replace(/:[A-Za-z]+$/, "")
2260 const out = [withoutKind]
2261 if (withoutKind.endsWith("_")) out.push(withoutKind.slice(0, -1))
2262 return Array.from(new Set(out.filter((item) => item.length > 0)))
2263}
2264
2265function sourceRangeKey(file: string, range: readonly [number, number]): string {
2266 return `${file}:${range[0]}:${range[1]}`

Callers 2

addFunction · 0.85

Calls 5

sliceMethod · 0.80
fromMethod · 0.80
pushMethod · 0.65
replaceMethod · 0.45
filterMethod · 0.45

Tested by

no test coverage detected