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

Function checkModule

packages/tools/docgen/src/Checker.ts:219–238  ·  view source on GitHub ↗
(module: Domain.Module)

Source from the content-addressed store, hash-verified

217 * @since 0.6.0
218 */
219export function checkModule(module: Domain.Module) {
220 return Effect.gen(function*() {
221 const functionsErrors = yield* checkFunctions(module.functions)
222 const classesErrors = yield* checkClasses(module.classes)
223 const constantsErrors = yield* checkConstants(module.constants)
224 const interfacesErrors = yield* checkInterfaces(module.interfaces)
225 const typeAliasesErrors = yield* checkTypeAliases(module.typeAliases)
226 const namespacesErrors = yield* checkNamespaces(module.namespaces)
227 const exportsErrors = yield* checkExports(module.exports)
228 return Array.flatten([
229 functionsErrors,
230 classesErrors,
231 constantsErrors,
232 interfacesErrors,
233 typeAliasesErrors,
234 namespacesErrors,
235 exportsErrors
236 ])
237 }).pipe(Effect.provideService(Parser.Source, module.source))
238}
239
240/**
241 * Validates every documented declaration in a collection of parsed modules.

Callers

nothing calls this directly

Calls 8

checkFunctionsFunction · 0.85
checkClassesFunction · 0.85
checkConstantsFunction · 0.85
checkInterfacesFunction · 0.85
checkTypeAliasesFunction · 0.85
checkExportsFunction · 0.85
checkNamespacesFunction · 0.70
pipeMethod · 0.65

Tested by

no test coverage detected