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

Method consumeWhitespace

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

Source from the content-addressed store, hash-verified

104 return match;
105 }
106 consumeWhitespace() {
107 while (this.token(0, true).type === "WHITESPACE") {
108 this.#consumed.push(this.#tokens.shift());
109 }
110 }
111 consumeUntil(value, type) {
112 var tokenList = [];
113 var currentToken = this.token(0, true);

Callers 4

constructorMethod · 0.45
consumeTokenMethod · 0.45
consumeUntilMethod · 0.45
consumeWhitespaceMethod · 0.45

Calls 1

tokenMethod · 0.45

Tested by

no test coverage detected