MCPcopy Create free account
hub / github.com/cortex-js/compute-engine / consumeLine

Method consumeLine

src/common/markdown-block.ts:273–280  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

271 }
272
273 consumeLine() {
274 while (!this.atEnd() && this.peek() !== '\n') {
275 this.consume();
276 }
277 if (!this.atEnd() && this.peek() === '\n') {
278 this.consume();
279 }
280 }
281
282 peekLine(): string {
283 const currentPos = this.pos;

Callers 2

parseBlocksMethod · 0.95
skipEmptyLinesMethod · 0.95

Calls 3

consumeMethod · 0.80
atEndMethod · 0.45
peekMethod · 0.45

Tested by

no test coverage detected