MCPcopy Index your code
hub / github.com/outerbase/studio / expectToken

Method expectToken

src/drivers/sqlite/sql-parse-table.ts:93–96  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

91 }
92
93 expectToken(value: string) {
94 if (!this.match(value)) throw new Error(`Expecting ${value}`);
95 this.next();
96 }
97
98 expectTokenOptional(value: string) {
99 if (this.match(value)) this.next();

Callers 5

parseCreateTriggerScriptFunction · 0.95
parseCreateViewScriptFunction · 0.95
expectTokensOptionalMethod · 0.95
expectTokensMethod · 0.95
parseCreateTableScriptFunction · 0.95

Calls 2

matchMethod · 0.95
nextMethod · 0.95

Tested by

no test coverage detected