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

Method #isLineComment

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

Source from the content-addressed store, hash-verified

675 // ----- Main tokenization loop -----
676
677 #isLineComment() {
678 var c = this.#currentChar(), n = this.#nextChar(), n2 = this.#charAt(2);
679 return (c === "-" && n === "-" && (this.#isWhitespace(n2) || n2 === "" || n2 === "-"))
680 || (c === "/" && n === "/" && (this.#isWhitespace(n2) || n2 === "" || n2 === "/"));
681 }
682
683 #tokenize() {
684 while (this.#position < this.#source.length) {

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