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

Method #consumeStyleReference

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

Source from the content-addressed store, hash-verified

494 }
495
496 #consumeStyleReference() {
497 var token = this.#makeToken("STYLE_REF");
498 var value = this.#consumeChar();
499 while (this.#isAlpha(this.#currentChar()) || this.#currentChar() === "-") {
500 value += this.#consumeChar();
501 }
502 token.value = value;
503 token.end = this.#position;
504 return token;
505 }
506
507 #consumeTemplateLogic() {
508 var token = this.#makeToken("IDENTIFIER");

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