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

Method #consumeTemplateLine

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

Source from the content-addressed store, hash-verified

520 }
521
522 #consumeTemplateLine() {
523 var token = this.#makeToken("TEMPLATE_LINE");
524 token.value = "TEMPLATE_LINE";
525 var content = "";
526 while (this.#currentChar() && !this.#isNewline(this.#currentChar())) {
527 content += this.#consumeChar();
528 }
529 if (this.#currentChar() && this.#isNewline(this.#currentChar())) {
530 this.#consumeChar();
531 content += "\n";
532 this.#templateMode = "indeterminant";
533 }
534 token.content = content;
535 token.end = this.#position;
536 return token;
537 }
538
539 #consumeTemplateIdentifier() {
540 var token = this.#makeToken("IDENTIFIER");

Callers 1

#tokenizeMethod · 0.95

Calls 4

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

Tested by

no test coverage detected