(moduleJSDoc: ParsedModuleJSDoc | undefined)
| 2481 | function 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) { |
no test coverage detected
searching dependent graphs…