MCPcopy Create free account
hub / github.com/effect-app/libs / checkModuleExamples

Function checkModuleExamples

repos/effect/packages/tools/jsdocs/src/Jsdocs.ts:2483–2488  ·  view source on GitHub ↗
(moduleJSDoc: ParsedModuleJSDoc | undefined)

Source from the content-addressed store, hash-verified

2481function createExampleImportPolicy(files: ReadonlyArray<JSDocModelFile>): ExampleImportPolicy {
2482 const allowedNamed = new Map<string, Set<string>>()
2483 const namespaceModuleBySource = new Map<string, { readonly barrelModule: string; readonly name: string }>()
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) {

Callers 1

Calls 3

parseLooseJSDocBlockFunction · 0.85
checkExamplesFunction · 0.85
parseModuleExamplesFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…