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

Method #consumeOp

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

Source from the content-addressed store, hash-verified

503 return token;
504 }
505 #consumeOp() {
506 var token = this.#makeOpToken();
507 var value = this.#consumeChar();
508 while (this.#currentChar() && OP_TABLE[value + this.#currentChar()]) {
509 value += this.#consumeChar();
510 }
511 token.type = OP_TABLE[value];
512 token.value = value;
513 token.end = this.#position;
514 return token;
515 }
516 #consumeString() {
517 var token = this.#makeToken("STRING");
518 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