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

Function checkExamples

repos/effect/packages/tools/jsdocs/src/Jsdocs.ts:2478–2482  ·  view source on GitHub ↗
(
    examples: ReadonlyArray<ParsedExample>,
    range: readonly [number, number] = [0, 0] as const
  )

Source from the content-addressed store, hash-verified

2476 string,
2477 { readonly barrelModule: string; readonly names: ReadonlySet<string> }
2478 >
2479 readonly namedModuleBySource: ReadonlyMap<string, ReadonlySet<string>>
2480}
2481
2482function createExampleImportPolicy(files: ReadonlyArray<JSDocModelFile>): ExampleImportPolicy {
2483 const allowedNamed = new Map<string, Set<string>>()
2484 const namespaceModuleBySource = new Map<string, { readonly barrelModule: string; readonly name: string }>()
2485 const flatModuleBySource = new Map<string, { readonly barrelModule: string; readonly names: ReadonlySet<string> }>()

Callers 4

checkModuleExamplesFunction · 0.85
checkMembersFunction · 0.85
checkNamespacesFunction · 0.85

Calls 2

validateExampleImportsFunction · 0.85
mapMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…