(context, { thing, from, inElt, withinElt })
| 5506 | return this.scanForwardArray(start, Array.from(array).reverse(), match, wrap); |
| 5507 | } |
| 5508 | resolve(context, { thing, from, inElt, withinElt }) { |
| 5509 | var css = thing.css; |
| 5510 | if (css == null) { |
| 5511 | throw new Error("Expected a CSS value to be returned by " + this.thingElt.sourceFor()); |
| 5512 | } |
| 5513 | if (this.inSearch) { |
| 5514 | if (inElt) { |
| 5515 | if (this.forwardSearch) { |
| 5516 | return this.scanForwardArray(from, inElt, css, this.wrapping); |
| 5517 | } else { |
| 5518 | return this.scanBackwardsArray(from, inElt, css, this.wrapping); |
| 5519 | } |
| 5520 | } |
| 5521 | } else { |
| 5522 | var root = withinElt ?? document.body; |
| 5523 | if (this.forwardSearch) { |
| 5524 | return this.scanForwardQuery(from, root, css, this.wrapping); |
| 5525 | } else { |
| 5526 | return this.scanBackwardsQuery(from, root, css, this.wrapping); |
| 5527 | } |
| 5528 | } |
| 5529 | } |
| 5530 | }; |
| 5531 | var PositionalExpression = class _PositionalExpression extends Expression { |
| 5532 | static grammarName = "positionalExpression"; |
nothing calls this directly
no test coverage detected