Skip to content

Commit

Permalink
pyast_gen_pass.py file is modified to fix Architype Definition Bug fo…
Browse files Browse the repository at this point in the history
…r Walkers and Nodes
  • Loading branch information
Thamirawaran authored Oct 7, 2024
1 parent 3d5e756 commit 932d577
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions jac/jaclang/compiler/passes/main/pyast_gen_pass.py
Original file line number Diff line number Diff line change
Expand Up @@ -1058,10 +1058,12 @@ def collect_events(
args=[
self.sync(ast3.Constant(value=i.sym_name)),
(
self.sync(
ast3.Constant(
value=f"{i.signature.arch_tag_info.gen.py_ast[0].id}"
)
(self.sync(
ast3.Constant(
value=f"{i.signature.arch_tag_info.gen.py_ast[0].id}"
)
) if hasattr(i.signature.arch_tag_info.gen.py_ast[0], 'id')
else i.signature.arch_tag_info.gen.py_ast[0]
)
if i.signature.arch_tag_info
else self.sync(ast3.Constant(value=None))
Expand Down

0 comments on commit 932d577

Please sign in to comment.