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

Method consumeToken

www/js/ext/component.js:94–100  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

92 }
93 // ----- Token consuming -----
94 consumeToken() {
95 var match = this.#tokens.shift();
96 this.#consumed.push(match);
97 this.#lastConsumed = match;
98 this.consumeWhitespace();
99 return match;
100 }
101 consumeWhitespace() {
102 while (this.token(0, true).type === "WHITESPACE") {
103 this.#consumed.push(this.#tokens.shift());

Callers 3

matchTokenMethod · 0.45
matchOpTokenMethod · 0.45
matchTokenTypeMethod · 0.45

Calls 1

consumeWhitespaceMethod · 0.45

Tested by

no test coverage detected