(type: Type, expression: Expression)
| 129 | expression: Expression; |
| 130 | |
| 131 | constructor(type: Type, expression: Expression) { |
| 132 | super(type); |
| 133 | // Make "as unknown as type" work. |
| 134 | if (expression instanceof AsExpression && expression.type.category == 'any') |
| 135 | expression = expression.expression; |
| 136 | // Do conversion. |
| 137 | this.expression = castExpression(expression, type); |
| 138 | } |
| 139 | |
| 140 | override print(ctx: PrintContext) { |
| 141 | return this.expression.print(ctx); |
nothing calls this directly
no test coverage detected