(parser)
| 6242 | }; |
| 6243 | } |
| 6244 | static parse(parser) { |
| 6245 | if (!parser.matchToken("swap")) return; |
| 6246 | try { |
| 6247 | parser.pushFollow("with"); |
| 6248 | var target1 = parser.requireElement("assignableExpression"); |
| 6249 | } finally { |
| 6250 | parser.popFollow(); |
| 6251 | } |
| 6252 | while (target1.type === "parenthesized") target1 = target1.expr; |
| 6253 | parser.requireToken("with"); |
| 6254 | var target2 = parser.requireElement("assignableExpression"); |
| 6255 | while (target2.type === "parenthesized") target2 = target2.expr; |
| 6256 | return new _SwapCommand(target1, target2); |
| 6257 | } |
| 6258 | resolve(context, { value1, value2, root1, index1, root2, index2 }) { |
| 6259 | if (value1 instanceof Element && value2 instanceof Element) { |
| 6260 | var placeholder = document.createComment(""); |
nothing calls this directly
no test coverage detected