MCPcopy Create free account
hub / github.com/RtlZeroMemory/Rezi / expect

Method expect

packages/core/src/constraints/parser.ts:385–389  ·  view source on GitHub ↗
(token: string)

Source from the content-addressed store, hash-verified

383 }
384
385 private expect(token: string): void {
386 if (!this.consumeIf(token)) {
387 this.fail(`Expected "${token}"`);
388 }
389 }
390
391 private consumeIf(token: string): boolean {
392 if (this.source.startsWith(token, this.pos)) {

Callers 4

parseCallMethod · 0.95
parseScopedRefMethod · 0.95
parseWidgetRefMethod · 0.95
mainFunction · 0.80

Calls 2

consumeIfMethod · 0.95
failMethod · 0.95

Tested by

no test coverage detected