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

Function add

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

Source from the content-addressed store, hash-verified

2229function seeTargetNames(link: ParsedInlineLink): ReadonlySet<string> {
2230 const names = new Set<string>()
2231 const add = (target: string) => {
2232 for (const normalized of normalizeSeeTarget(target)) {
2233 const parts = normalized.split(".").filter((part) => part.length > 0)
2234 for (const part of parts) names.add(part)
2235 if (parts.length > 0) names.add(parts.join("."))
2236 }
2237 }
2238 add(link.target)
2239 if (link.text !== null) add(link.text)
2240 return names

Callers 1

seeTargetNamesFunction · 0.70

Calls 5

normalizeSeeTargetFunction · 0.85
filterMethod · 0.80
joinMethod · 0.80
addMethod · 0.65
splitMethod · 0.45

Tested by

no test coverage detected