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

Function peek

src/common/parser.ts:21–23  ·  view source on GitHub ↗

Note: Typescript does incorrect data flow analysis on getters. To avoid * this, we use a method instead of a getter.

()

Source from the content-addressed store, hash-verified

19 * this, we use a method instead of a getter.
20 */
21 peek(): string | undefined {
22 return this.buffer[this.pos];
23 }
24
25 consume(): string | undefined {
26 const char = this.peek();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected