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