(parser)
| 5538 | this.args = { value: rhs }; |
| 5539 | } |
| 5540 | static parse(parser) { |
| 5541 | var op = parser.matchAnyToken("first", "last", "random"); |
| 5542 | if (!op) return; |
| 5543 | parser.matchAnyToken("in", "from", "of"); |
| 5544 | var rhs = parser.requireElement("unaryExpression"); |
| 5545 | return new _PositionalExpression(rhs, op.value); |
| 5546 | } |
| 5547 | resolve(context, { value: rhsVal }) { |
| 5548 | if (rhsVal && !Array.isArray(rhsVal)) { |
| 5549 | if (rhsVal.children) { |
nothing calls this directly
no test coverage detected