(parser)
| 6601 | }; |
| 6602 | } |
| 6603 | static parse(parser) { |
| 6604 | if (!parser.matchToken("swap")) return; |
| 6605 | try { |
| 6606 | parser.pushFollow("with"); |
| 6607 | var target1 = parser.requireElement("assignableExpression"); |
| 6608 | } finally { |
| 6609 | parser.popFollow(); |
| 6610 | } |
| 6611 | while (target1.type === "parenthesized") target1 = target1.expr; |
| 6612 | parser.requireToken("with"); |
| 6613 | var target2 = parser.requireElement("assignableExpression"); |
| 6614 | while (target2.type === "parenthesized") target2 = target2.expr; |
| 6615 | return new _SwapCommand(target1, target2); |
| 6616 | } |
| 6617 | resolve(context, { value1, value2, root1, index1, root2, index2 }) { |
| 6618 | if (value1 instanceof Element && value2 instanceof Element) { |
| 6619 | var placeholder = document.createComment(""); |
nothing calls this directly
no test coverage detected