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

Method getSelector

external/.scrollLibs.js:23388–23397  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

23386 return true
23387 }
23388 getSelector() {
23389 const parentSelector = this.parent.getSelector()
23390 return this.cue
23391 .split(",")
23392 .map(part => {
23393 if (part.startsWith("&")) return parentSelector + part.substr(1)
23394 return parentSelector ? parentSelector + " " + part : part
23395 })
23396 .join(",")
23397 }
23398 compile() {
23399 const propertyParsers = this.getSubparticles().filter(particle => particle.doesExtend("propertyParser"))
23400 if (!propertyParsers.length) return ""

Callers 1

compileMethod · 0.95

Calls 4

mapMethod · 0.80
splitMethod · 0.80
getSelectorMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected