diff options
| author | Laurenz <laurmaedje@gmail.com> | 2021-06-26 18:07:05 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2021-06-26 18:07:05 +0200 |
| commit | 422b8e640f00977177a5a7250a3c56009eed10c4 (patch) | |
| tree | b1a21718e9511d776a6de47b713e3308bb1baaad /src/syntax/visit.rs | |
| parent | d53c933e4d56e6c0484d81814779ddb1597ee032 (diff) | |
With expressions
Diffstat (limited to 'src/syntax/visit.rs')
| -rw-r--r-- | src/syntax/visit.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/syntax/visit.rs b/src/syntax/visit.rs index a1a848ef..cf819ef0 100644 --- a/src/syntax/visit.rs +++ b/src/syntax/visit.rs @@ -99,6 +99,7 @@ visit! { Expr::Binary(e) => v.visit_binary(e), Expr::Call(e) => v.visit_call(e), Expr::Closure(e) => v.visit_closure(e), + Expr::With(e) => v.visit_with(e), Expr::Let(e) => v.visit_let(e), Expr::If(e) => v.visit_if(e), Expr::While(e) => v.visit_while(e), @@ -176,6 +177,11 @@ visit! { } } + fn visit_with(v, node: &WithExpr) { + v.visit_expr(&node.callee); + v.visit_args(&node.args); + } + fn visit_let(v, node: &LetExpr) { v.visit_binding(&node.binding); if let Some(init) = &node.init { |
