* Similar to `tcbExpression`, this function converts the provided `AST` expression into a * `ts.Expression`, with special handling of the `$event` variable that can be used within event * bindings.
(ast: AST, tcb: Context, scope: Scope)
| 35 | * bindings. |
| 36 | */ |
| 37 | function tcbEventHandlerExpression(ast: AST, tcb: Context, scope: Scope): TcbExpr { |
| 38 | const translator = new TcbEventHandlerTranslator(tcb, scope); |
| 39 | return translator.translate(ast); |
| 40 | } |
| 41 | |
| 42 | /** |
| 43 | * A `TcbOp` which generates code to check event bindings on an element that correspond with the |
no test coverage detected