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

Method #consumeTemplateLogic

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

Source from the content-addressed store, hash-verified

505 }
506
507 #consumeTemplateLogic() {
508 var token = this.#makeToken("IDENTIFIER");
509 this.#consumeChar(); // Don't need the '#'
510 var value = ""
511
512 while(this.#isAlpha(this.#currentChar())) {
513 value += this.#consumeChar();
514 }
515
516 token.value = value;
517 token.end = this.#position;
518
519 return token;
520 }
521
522 #consumeTemplateLine() {
523 var token = this.#makeToken("TEMPLATE_LINE");

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