Replies: 1 comment
-
Ah, |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am using
fold_stmt
to mutate my AST and want to insert multiple statements.Initially I tried using
fold_expr()
because I know there isExpr::from_exprs()
which allows me to return multipleExpr
s however I need to return aDecl::Var
and I couldn't find a way to coerce it into anExpr
so I have dropped down tofold_stmt
.I have tried
fold_stmts
however it never fires and I am unsure whyEDIT:
Obviously a
BlockStmt
doesn't work as it create a block scopeBeta Was this translation helpful? Give feedback.
All reactions