MCPcopy Create free account
hub / github.com/bigskysoftware/_hyperscript / consumeToken

Method consumeToken

www/js/_hyperscript.esm.js:99–105  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

97 }
98 // ----- Token consuming -----
99 consumeToken() {
100 var match = this.#tokens.shift();
101 this.#consumed.push(match);
102 this.#lastConsumed = match;
103 this.consumeWhitespace();
104 return match;
105 }
106 consumeWhitespace() {
107 while (this.token(0, true).type === "WHITESPACE") {
108 this.#consumed.push(this.#tokens.shift());

Callers 12

matchTokenMethod · 0.45
matchOpTokenMethod · 0.45
matchTokenTypeMethod · 0.45
consumeTokenMethod · 0.45
#syncToFeatureMethod · 0.45
#syncToCommandMethod · 0.45
parseMethod · 0.45
parseMethod · 0.45
parseMethod · 0.45
parseMethod · 0.45
parseMethod · 0.45
parseMethod · 0.45

Calls 1

consumeWhitespaceMethod · 0.45

Tested by

no test coverage detected