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

Method readUntil

src/common/markdown-block.ts:265–271  ·  view source on GitHub ↗
(char: string)

Source from the content-addressed store, hash-verified

263 }
264
265 readUntil(char: string): string {
266 let result = '';
267 while (!this.atEnd() && this.peek() !== char) {
268 result += this.consume();
269 }
270 return result;
271 }
272
273 consumeLine() {
274 while (!this.atEnd() && this.peek() !== '\n') {

Callers 7

parseHeadingMethod · 0.95
parseBlockquoteMethod · 0.95
parseCodeBlockMethod · 0.95
parseCalloutMethod · 0.95
parseListMethod · 0.95
parseTableMethod · 0.95
parseParagraphMethod · 0.95

Calls 3

consumeMethod · 0.80
atEndMethod · 0.45
peekMethod · 0.45

Tested by

no test coverage detected