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

Method #possiblePrecedingSymbol

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

Source from the content-addressed store, hash-verified

344 }
345
346 #possiblePrecedingSymbol() {
347 return (
348 this.#isAlpha(this.#lastToken) ||
349 this.#isNumeric(this.#lastToken) ||
350 this.#lastToken === ")" ||
351 this.#lastToken === "\"" ||
352 this.#lastToken === "'" ||
353 this.#lastToken === "`" ||
354 this.#lastToken === "}" ||
355 this.#lastToken === "]"
356 );
357 }
358
359 #isValidSingleQuoteStringStart() {
360 if (this.#tokens.length > 0) {

Callers 1

#tokenizeMethod · 0.95

Calls 2

#isAlphaMethod · 0.95
#isNumericMethod · 0.95

Tested by

no test coverage detected