MCPcopy Create free account
hub / github.com/outerbase/studio / consumeBlock

Method consumeBlock

src/drivers/sqlite/sql-parse-table.ts:50–56  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

48 }
49
50 consumeBlock(): string {
51 if (this.match("(")) {
52 return this.consumeParen().toString();
53 } else {
54 return this.consume();
55 }
56 }
57
58 currentType() {
59 return this.tokens[this.ptr].type;

Callers 1

parseColumnConstraintFunction · 0.80

Calls 4

matchMethod · 0.95
consumeParenMethod · 0.95
consumeMethod · 0.95
toStringMethod · 0.45

Tested by

no test coverage detected