(parser)
| 6202 | this.args = { targetValue: target, amount: amountExpr, ...target.lhs }; |
| 6203 | } |
| 6204 | static parse(parser) { |
| 6205 | if (!parser.matchToken("decrement")) return; |
| 6206 | var amountExpr; |
| 6207 | try { |
| 6208 | parser.pushFollow("by"); |
| 6209 | var target = parser.parseElement("assignableExpression"); |
| 6210 | } finally { |
| 6211 | parser.popFollow(); |
| 6212 | } |
| 6213 | while (target.type === "parenthesized") target = target.expr; |
| 6214 | if (parser.matchToken("by")) { |
| 6215 | amountExpr = parser.requireElement("expression"); |
| 6216 | } |
| 6217 | return new _DecrementCommand(target, amountExpr); |
| 6218 | } |
| 6219 | resolve(context, args) { |
| 6220 | var { targetValue, amount, ...lhs } = args; |
| 6221 | targetValue = targetValue ? parseFloat(targetValue) : 0; |
nothing calls this directly
no test coverage detected