(parser)
| 8390 | this.args = { from, to, using: usingExpr, over }; |
| 8391 | } |
| 8392 | static parse(parser) { |
| 8393 | if (!parser.matchToken("transition")) return; |
| 8394 | var propExprs = []; |
| 8395 | var from = []; |
| 8396 | var to = []; |
| 8397 | do { |
| 8398 | var follows = parser.pushFollows("from", "to"); |
| 8399 | try { |
| 8400 | propExprs.push(parser.requireElement("expression")); |
| 8401 | } finally { |
| 8402 | parser.popFollows(follows); |
| 8403 | } |
| 8404 | from.push(parser.matchToken("from") ? parser.requireElement("expression") : null); |
| 8405 | parser.requireToken("to"); |
| 8406 | to.push(parser.matchToken("initial") ? "initial" : parser.requireElement("expression")); |
| 8407 | } while (!parser.commandBoundary(parser.currentToken()) && parser.currentToken().value !== "over" && parser.currentToken().value !== "using"); |
| 8408 | var over, usingExpr; |
| 8409 | if (parser.matchToken("over")) { |
| 8410 | over = parser.requireElement("expression"); |
| 8411 | } else if (parser.matchToken("using")) { |
| 8412 | usingExpr = parser.requireElement("expression"); |
| 8413 | } |
| 8414 | return new _TransitionCommand(propExprs, from, to, usingExpr, over); |
| 8415 | } |
| 8416 | resolve(context, { from, to, using, over }) { |
| 8417 | var cmd = this; |
| 8418 | var runtime2 = context.meta.runtime; |
nothing calls this directly
no test coverage detected