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