( input: LoadingInput, ctx: PipelineContext, )
| 31 | export { initParsers } from './stages/parsing'; |
| 32 | |
| 33 | function* corePipeline( |
| 34 | input: LoadingInput, |
| 35 | ctx: PipelineContext, |
| 36 | ): Generator<PipelineEvent> { |
| 37 | const scanResult = yield* scanning(input, ctx); |
| 38 | |
| 39 | if (ctx.cancelled) return; |
| 40 | |
| 41 | const processingOutput = yield* processing(scanResult, ctx); |
| 42 | |
| 43 | if (ctx.cancelled) return; |
| 44 | |
| 45 | const finalResult = yield* resolving(processingOutput); |
| 46 | |
| 47 | yield { |
| 48 | kind: 'done', |
| 49 | phase: 'resolving', |
| 50 | message: 'Pipeline complete', |
| 51 | result: finalResult, |
| 52 | }; |
| 53 | } |
| 54 | |
| 55 | export function* runPipeline( |
| 56 | input: LoadingInput, |
no test coverage detected