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