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

Method #isLineComment

www/js/_hyperscript-max.js:566–569  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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