| 55 | * Executing this operation returns nothing. |
| 56 | */ |
| 57 | export class TcbExpressionOp extends TcbOp { |
| 58 | constructor( |
| 59 | private tcb: Context, |
| 60 | private scope: Scope, |
| 61 | private expression: AST, |
| 62 | ) { |
| 63 | super(); |
| 64 | } |
| 65 | |
| 66 | override get optional() { |
| 67 | return false; |
| 68 | } |
| 69 | |
| 70 | override execute(): null { |
| 71 | const expr = tcbExpression(this.expression, this.tcb, this.scope); |
| 72 | this.scope.addStatement(expr); |
| 73 | return null; |
| 74 | } |
| 75 | } |
| 76 | |
| 77 | /** |
| 78 | * A `TcbOp` which renders an Angular expression inside a conditional context. |
nothing calls this directly
no outgoing calls
no test coverage detected