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

Method #consumeAttributeReference

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

Source from the content-addressed store, hash-verified

372 return token;
373 }
374 #consumeAttributeReference() {
375 var token = this.#makeToken("ATTRIBUTE_REF");
376 var value = this.#consumeChar();
377 while (this.#position < this.#source.length && this.#currentChar() !== "]") {
378 value += this.#consumeChar();
379 }
380 if (this.#currentChar() === "]") {
381 value += this.#consumeChar();
382 }
383 token.value = value;
384 token.end = this.#position;
385 return token;
386 }
387 #consumeShortAttributeReference() {
388 var token = this.#makeToken("ATTRIBUTE_REF");
389 var value = this.#consumeChar();

Callers 1

#tokenizeMethod · 0.95

Calls 3

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

Tested by

no test coverage detected