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

Method #consumeChar

tools/common/_hyperscript.iife.js:258–268  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

256 return this.#source.charAt(this.#position + offset);
257 }
258 #consumeChar() {
259 this.#lastToken = this.#currentChar();
260 this.#position++;
261 if (this.#lastToken === "\n") {
262 this.#line++;
263 this.#column = 0;
264 } else {
265 this.#column++;
266 }
267 return this.#lastToken;
268 }
269 // ----- Context checks -----
270 #inTemplate() {
271 return this.#template && this.#templateBraceCount === 0;

Callers 15

#consumeCommentMethod · 0.95
#consumeWhitespaceMethod · 0.95
#consumeIdReferenceMethod · 0.95
#consumeTemplateLogicMethod · 0.95
#consumeTemplateLineMethod · 0.95
#consumeIdentifierMethod · 0.95
#consumeNumberMethod · 0.95

Calls 1

#currentCharMethod · 0.95

Tested by

no test coverage detected