MCPcopy Index your code
hub / github.com/bigskysoftware/_hyperscript / consumeToken

Method consumeToken

tools/common/_hyperscript.iife.js:101–107  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers 13

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