Skip to content

Commit

Permalink
fix: decl file generation bug
Browse files Browse the repository at this point in the history
  • Loading branch information
mtshiba committed Jan 19, 2025
1 parent 1aa3f53 commit 05c86eb
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions crates/py2erg/gen_decl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,21 @@ impl DeclFileGenerator {
self.gen_chunk_decl(chunk);
}
}
Expr::Compound(compound) => {
for chunk in compound.iter() {
self.gen_chunk_decl(chunk);
}
}
Expr::Call(call) => {
for arg in call.args.iter() {
self.gen_chunk_decl(arg);
}
}
Expr::Lambda(lambda) => {
for arg in lambda.body.iter() {
self.gen_chunk_decl(arg);
}
}
_ => {}
}
self.code.push('\n');
Expand Down

0 comments on commit 05c86eb

Please sign in to comment.