(parser, root)
| 4364 | this.args = { root }; |
| 4365 | } |
| 4366 | static parse(parser, root) { |
| 4367 | if (!parser.matchToken("as")) return; |
| 4368 | parser.matchToken("a") || parser.matchToken("an"); |
| 4369 | var conversion = parser.requireElement("dotOrColonPath").evalStatically(); |
| 4370 | var asExpr = new _AsExpression(root, conversion); |
| 4371 | while (parser.matchOpToken("|")) { |
| 4372 | conversion = parser.requireElement("dotOrColonPath").evalStatically(); |
| 4373 | asExpr = new _AsExpression(asExpr, conversion); |
| 4374 | } |
| 4375 | return parser.parseElement("indirectExpression", asExpr); |
| 4376 | } |
| 4377 | resolve(context, { root: rootVal }) { |
| 4378 | return context.meta.runtime.convertValue(rootVal, this.conversion); |
| 4379 | } |
nothing calls this directly
no test coverage detected