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

Function addAllowed

packages/tools/jsdocs/src/Jsdocs.ts:2539–2543  ·  view source on GitHub ↗
(source: string, name: string)

Source from the content-addressed store, hash-verified

2537 const flatModuleBySource = new Map<string, { readonly barrelModule: string; readonly names: ReadonlySet<string> }>()
2538 const namedModuleBySource = new Map<string, ReadonlySet<string>>()
2539 const addAllowed = (source: string, name: string) => {
2540 const names = allowedNamed.get(source) ?? new Set<string>()
2541 names.add(name)
2542 allowedNamed.set(source, names)
2543 }
2544 for (const file of files) {
2545 if (file.imports === undefined) continue
2546 const rootValues = file.declarations.filter((declaration) =>

Callers 1

Calls 3

getMethod · 0.65
addMethod · 0.65
setMethod · 0.65

Tested by

no test coverage detected