(content: string, filePath: string)
| 125 | |
| 126 | const reduceLineToParserState = |
| 127 | (filePath: string) => |
| 128 | (accEffect: Effect.Effect<ParserState, never, never>, line: string, index: number) => |
| 129 | pipe(accEffect, flatMapProcessLine(filePath, index, line)); |
| 130 | |
| 131 | const extractCodeBlocks = (content: string, filePath: string) => { |
| 132 | const lines = content.split('\n'); |
| 133 | return pipe( |
| 134 | lines, |
| 135 | EffectArray.reduce(Effect.succeed(initialParserState), reduceLineToParserState(filePath)), |
| 136 | Effect.flatMap(finalizeParserState(filePath)) |
| 137 | ); |
no test coverage detected