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

Method #isLineComment

www/js/_hyperscript.esm.js:565–568  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

563 }
564 // ----- Main tokenization loop -----
565 #isLineComment() {
566 var c = this.#currentChar(), n = this.#nextChar(), n2 = this.#charAt(2);
567 return c === "-" && n === "-" && (this.#isWhitespace(n2) || n2 === "" || n2 === "-") || c === "/" && n === "/" && (this.#isWhitespace(n2) || n2 === "" || n2 === "/");
568 }
569 #tokenize() {
570 while (this.#position < this.#source.length) {
571 if (this.#isLineComment()) {

Callers 1

#tokenizeMethod · 0.95

Calls 4

#currentCharMethod · 0.95
#nextCharMethod · 0.95
#charAtMethod · 0.95
#isWhitespaceMethod · 0.95

Tested by

no test coverage detected