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

Function parseModules

packages/tools/docgen/src/Core.ts:110–118  ·  view source on GitHub ↗
(files: ReadonlyArray<Domain.File>)

Source from the content-addressed store, hash-verified

108) => Effect.forEach(files, writeFileToOutDir, { discard: true })
109
110const parseModules = (files: ReadonlyArray<Domain.File>) =>
111 Parser.parseFiles(files).pipe(
112 Effect.mapError((errors) =>
113 new Domain.DocgenError({
114 message: "[Core.parseModules] The following error(s) occurred while " +
115 `parsing the TypeScript source files:\n${errors.map((errors) => errors.join("\n")).join("\n")}`
116 })
117 )
118 )
119
120/**
121 * Runs the example files for the given modules, type-checking them before execution.

Callers 1

Core.tsFile · 0.85

Calls 3

joinMethod · 0.80
pipeMethod · 0.65
mapMethod · 0.45

Tested by

no test coverage detected