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

Method #consumeStyleReference

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

Source from the content-addressed store, hash-verified

403 return token;
404 }
405 #consumeStyleReference() {
406 var token = this.#makeToken("STYLE_REF");
407 var value = this.#consumeChar();
408 while (this.#isAlpha(this.#currentChar()) || this.#currentChar() === "-") {
409 value += this.#consumeChar();
410 }
411 token.value = value;
412 token.end = this.#position;
413 return token;
414 }
415 #consumeTemplateLogic() {
416 var token = this.#makeToken("IDENTIFIER");
417 this.#consumeChar();

Callers 1

#tokenizeMethod · 0.95

Calls 4

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

Tested by

no test coverage detected