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

Function logUnclosedBlock

scripts/validate-markdown-examples.ts:88–101  ·  view source on GitHub ↗
(filePath: string, state: ParserState)

Source from the content-addressed store, hash-verified

86 ...state,
87 currentBlock: [...state.currentBlock, line ?? ''],
88 })
89 : Effect.succeed(state);
90 };
91
92const 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 ])

Callers 1

finalizeParserStateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected