MCPcopy Create free account
hub / github.com/bigskysoftware/_hyperscript / #consumeOp

Method #consumeOp

www/js/_hyperscript-max.js:511–521  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

509 return token;
510 }
511 #consumeOp() {
512 var token = this.#makeOpToken();
513 var value = this.#consumeChar();
514 while (this.#currentChar() && OP_TABLE[value + this.#currentChar()]) {
515 value += this.#consumeChar();
516 }
517 token.type = OP_TABLE[value];
518 token.value = value;
519 token.end = this.#position;
520 return token;
521 }
522 #consumeString() {
523 var token = this.#makeToken("STRING");
524 var startChar = this.#consumeChar();

Callers 1

#tokenizeMethod · 0.95

Calls 3

#makeOpTokenMethod · 0.95
#consumeCharMethod · 0.95
#currentCharMethod · 0.95

Tested by

no test coverage detected