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

Function parseModuleDeclarations

packages/tools/docgen/src/Parser.ts:470–475  ·  view source on GitHub ↗
(namespaces: ReadonlyArray<ast.ModuleDeclaration>)

Source from the content-addressed store, hash-verified

468}
469
470const parseModuleDeclarations = (namespaces: ReadonlyArray<ast.ModuleDeclaration>) => {
471 return Effect.forEach(
472 namespaces.filter((md) => md.isExported()),
473 parseModuleDeclaration
474 ).pipe(Effect.map(Array.flatten))
475}
476
477/**
478 * Parses exported namespaces from the current source file.

Callers 2

parseModuleDeclarationFunction · 0.85
Parser.tsFile · 0.85

Calls 4

filterMethod · 0.80
pipeMethod · 0.65
forEachMethod · 0.65
mapMethod · 0.45

Tested by

no test coverage detected