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

Method expectTokensOptional

src/drivers/sqlite/sql-parse-table.ts:102–110  ·  view source on GitHub ↗
(values: string[])

Source from the content-addressed store, hash-verified

100 }
101
102 expectTokensOptional(values: string[]) {
103 if (values.length === 0) return;
104 if (this.read() === values[0]) {
105 this.next();
106 for (const v of values.slice(1)) {
107 this.expectToken(v);
108 }
109 }
110 }
111
112 expectTokens(values: string[]) {
113 for (const v of values) {

Callers 3

parseCreateTriggerScriptFunction · 0.95
parseCreateViewScriptFunction · 0.95
parseCreateTableScriptFunction · 0.95

Calls 3

readMethod · 0.95
nextMethod · 0.95
expectTokenMethod · 0.95

Tested by

no test coverage detected