MCPcopy Create free account
hub / github.com/breck7/scroll / constantValueAsJsText

Method constantValueAsJsText

external/.scrollLibs.js:19397–19399  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

19395class ParsersParserConstantInt extends AbstractParserConstantParser {}
19396class ParsersParserConstantString extends AbstractParserConstantParser {
19397 get constantValueAsJsText() {
19398 return "`" + Utils.escapeBackTicks(this.constantValue) + "`"
19399 }
19400 get constantValue() {
19401 return this.length ? this.subparticlesToString() : this.getAtomsFrom(2).join(" ")
19402 }

Callers

nothing calls this directly

Calls 1

escapeBackTicksMethod · 0.80

Tested by

no test coverage detected