(module: Domain.Module)
| 217 | * @since 0.6.0 |
| 218 | */ |
| 219 | export 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. |
nothing calls this directly
no test coverage detected