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

Method expect

scripts/rubi/wl-parser.ts:203–207  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

201 return t;
202 }
203 private expect(value: string): void {
204 const t = this.next();
205 if (t.kind !== 'punct' || t.value !== value)
206 throw new Error(`expected '${value}', got '${t.value}'`);
207 }
208
209 atEnd(): boolean {
210 return this.i >= this.tokens.length;

Callers 2

parsePrefixMethod · 0.95
parsePostfixMethod · 0.95

Calls 1

nextMethod · 0.95

Tested by

no test coverage detected