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
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I am using
fold_stmtto 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 multipleExprs however I need to return aDecl::Varand I couldn't find a way to coerce it into anExprso I have dropped down tofold_stmt.I have tried
fold_stmtshowever it never fires and I am unsure whyEDIT:
Obviously a
BlockStmtdoesn't work as it create a block scopeBeta Was this translation helpful? Give feedback.
All reactions