(parser)
| 5195 | this.args = { value: rhs }; |
| 5196 | } |
| 5197 | static parse(parser) { |
| 5198 | var op = parser.matchAnyToken("first", "last", "random"); |
| 5199 | if (!op) return; |
| 5200 | parser.matchAnyToken("in", "from", "of"); |
| 5201 | var rhs = parser.requireElement("unaryExpression"); |
| 5202 | return new _PositionalExpression(rhs, op.value); |
| 5203 | } |
| 5204 | resolve(context, { value: rhsVal }) { |
| 5205 | if (rhsVal && !Array.isArray(rhsVal)) { |
| 5206 | if (rhsVal.children) { |
nothing calls this directly
no test coverage detected