MCPcopy Create free account
hub / github.com/angular/angular / TcbExpressionOp

Class TcbExpressionOp

packages/compiler/src/typecheck/ops/expression.ts:57–75  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55 * Executing this operation returns nothing.
56 */
57export 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.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected