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

Method next

src/drivers/sqlite/sql-parse-table.ts:122–130  ·  view source on GitHub ↗

* Next will skip to valid non-whitespace token * @returns true if there is a next token, false otherwise

()

Source from the content-addressed store, hash-verified

120 * @returns true if there is a next token, false otherwise
121 */
122 next() {
123 for (this.ptr = this.ptr + 1; this.ptr < this.tokens.length; this.ptr++) {
124 if (this.currentType() !== "WHITESPACE") {
125 return true;
126 }
127 }
128
129 return false;
130 }
131
132 match(value: string) {
133 if (this.end()) return false;

Callers 15

parseCreateTriggerScriptFunction · 0.95
parseCreateViewScriptFunction · 0.95
consumeParenMethod · 0.95
consumeMethod · 0.95
consumeIdentifierMethod · 0.95
expectTokenMethod · 0.95
expectTokenOptionalMethod · 0.95
expectTokensOptionalMethod · 0.95
parseCreateTableScriptFunction · 0.95
parseColumnDefFunction · 0.80
parseConstraintConflictFunction · 0.80
parseColumnListFunction · 0.80

Calls 1

currentTypeMethod · 0.95

Tested by

no test coverage detected