(parser, root)
| 4055 | this.args = { root }; |
| 4056 | } |
| 4057 | static parse(parser, root) { |
| 4058 | if (!parser.matchToken("as")) return; |
| 4059 | parser.matchToken("a") || parser.matchToken("an"); |
| 4060 | var conversion = parser.requireElement("dotOrColonPath").evalStatically(); |
| 4061 | var asExpr = new _AsExpression(root, conversion); |
| 4062 | while (parser.matchOpToken("|")) { |
| 4063 | conversion = parser.requireElement("dotOrColonPath").evalStatically(); |
| 4064 | asExpr = new _AsExpression(asExpr, conversion); |
| 4065 | } |
| 4066 | return parser.parseElement("indirectExpression", asExpr); |
| 4067 | } |
| 4068 | resolve(context, { root: rootVal }) { |
| 4069 | return context.meta.runtime.convertValue(rootVal, this.conversion); |
| 4070 | } |
nothing calls this directly
no test coverage detected