(parser)
| 6561 | this.args = { targetValue: target, amount: amountExpr, ...target.lhs }; |
| 6562 | } |
| 6563 | static parse(parser) { |
| 6564 | if (!parser.matchToken("decrement")) return; |
| 6565 | var amountExpr; |
| 6566 | try { |
| 6567 | parser.pushFollow("by"); |
| 6568 | var target = parser.parseElement("assignableExpression"); |
| 6569 | } finally { |
| 6570 | parser.popFollow(); |
| 6571 | } |
| 6572 | while (target.type === "parenthesized") target = target.expr; |
| 6573 | if (parser.matchToken("by")) { |
| 6574 | amountExpr = parser.requireElement("expression"); |
| 6575 | } |
| 6576 | return new _DecrementCommand(target, amountExpr); |
| 6577 | } |
| 6578 | resolve(context, args) { |
| 6579 | var { targetValue, amount, ...lhs } = args; |
| 6580 | targetValue = targetValue ? parseFloat(targetValue) : 0; |
nothing calls this directly
no test coverage detected