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

Method #consumeAttributeReference

src/core/tokenizer.js:463–475  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

461 }
462
463 #consumeAttributeReference() {
464 var token = this.#makeToken("ATTRIBUTE_REF");
465 var value = this.#consumeChar();
466 while (this.#position < this.#source.length && this.#currentChar() !== "]") {
467 value += this.#consumeChar();
468 }
469 if (this.#currentChar() === "]") {
470 value += this.#consumeChar();
471 }
472 token.value = value;
473 token.end = this.#position;
474 return token;
475 }
476
477 #consumeShortAttributeReference() {
478 var token = this.#makeToken("ATTRIBUTE_REF");

Callers 1

#tokenizeMethod · 0.95

Calls 3

#makeTokenMethod · 0.95
#consumeCharMethod · 0.95
#currentCharMethod · 0.95

Tested by

no test coverage detected