MCPcopy Create free account
hub / github.com/CodeForBreakfast/eventsourcing / finalizeParserState

Function finalizeParserState

scripts/validate-markdown-examples.ts:104–112  ·  view source on GitHub ↗
(filePath: string)

Source from the content-addressed store, hash-verified

102 index: state.blockIndex,
103 },
104 ])
105 );
106
107const 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

Callers 1

extractCodeBlocksFunction · 0.85

Calls 1

logUnclosedBlockFunction · 0.85

Tested by

no test coverage detected