(filePath: string)
| 102 | index: state.blockIndex, |
| 103 | }, |
| 104 | ]) |
| 105 | ); |
| 106 | |
| 107 | const finalizeParserState = |
| 108 | (filePath: string) => |
| 109 | (state: ParserState): Effect.Effect<readonly CodeBlock[], never, never> => |
| 110 | pipe( |
| 111 | state.inBlock, |
| 112 | Match.value, |
| 113 | Match.when(true, () => logUnclosedBlock(filePath, state)), |
| 114 | Match.when(false, () => Effect.succeed(state.blocks)), |
| 115 | Match.exhaustive |
no test coverage detected