chore(doc-gates): keep cordisModuleBodies module-local — knip flags the unused export
This commit is contained in:
@@ -40,8 +40,9 @@ export function contextMergeFiles(
|
|||||||
}
|
}
|
||||||
|
|
||||||
/** Every cordis module-merge body in `sf`: `declare module 'cordis'` (harness
|
/** Every cordis module-merge body in `sf`: `declare module 'cordis'` (harness
|
||||||
* packages) or `declare module './context.ts'` (vendor core), in source order. */
|
* packages) or `declare module './context.ts'` (vendor core), in source order.
|
||||||
export function cordisModuleBodies(sf: ts.SourceFile): ts.ModuleBlock[] {
|
* Module-local: consumers walk blocks through {@link contextMergeFiles}. */
|
||||||
|
function cordisModuleBodies(sf: ts.SourceFile): ts.ModuleBlock[] {
|
||||||
const bodies: ts.ModuleBlock[] = []
|
const bodies: ts.ModuleBlock[] = []
|
||||||
for (const stmt of sf.statements) {
|
for (const stmt of sf.statements) {
|
||||||
if (!ts.isModuleDeclaration(stmt) || !ts.isStringLiteral(stmt.name)) continue
|
if (!ts.isModuleDeclaration(stmt) || !ts.isStringLiteral(stmt.name)) continue
|
||||||
|
|||||||
Reference in New Issue
Block a user