(filePath: string, state: ParserState)
| 86 | ...state, |
| 87 | currentBlock: [...state.currentBlock, line ?? ''], |
| 88 | }) |
| 89 | : Effect.succeed(state); |
| 90 | }; |
| 91 | |
| 92 | const logUnclosedBlock = (filePath: string, state: ParserState) => |
| 93 | pipe( |
| 94 | `Unclosed code block at ${filePath}:${state.blockStartLine} - treating as complete`, |
| 95 | Console.warn, |
| 96 | Effect.as([ |
| 97 | ...state.blocks, |
| 98 | { |
| 99 | code: state.currentBlock.join('\n'), |
| 100 | file: filePath, |
| 101 | line: state.blockStartLine, |
| 102 | index: state.blockIndex, |
| 103 | }, |
| 104 | ]) |
no outgoing calls
no test coverage detected