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

Function addAllowed

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

Source from the content-addressed store, hash-verified

2484 const flatModuleBySource = new Map<string, { readonly barrelModule: string; readonly names: ReadonlySet<string> }>()
2485 const namedModuleBySource = new Map<string, ReadonlySet<string>>()
2486 const addAllowed = (source: string, name: string) => {
2487 const names = allowedNamed.get(source) ?? new Set<string>()
2488 names.add(name)
2489 allowedNamed.set(source, names)
2490 }
2491 for (const file of files) {
2492 if (file.imports === undefined) continue
2493 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