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

Function consume

src/common/parser.ts:25–30  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

23 }
24
25 consume(): string | undefined {
26 const char = this.peek();
27 if (char !== undefined) this.pos++;
28
29 return char;
30 }
31
32 get atEnd(): boolean {
33 return this.pos >= this.buffer.length;

Callers

nothing calls this directly

Calls 1

peekMethod · 0.45

Tested by

no test coverage detected