Skip to content

Commit

Permalink
add missing call to ast.rootDecls
Browse files Browse the repository at this point in the history
  • Loading branch information
Techatrix committed Nov 7, 2024
1 parent 1b31950 commit 71f79ab
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/ast.zig
Original file line number Diff line number Diff line change
Expand Up @@ -1568,7 +1568,12 @@ fn iterateChildrenTypeErased(
try callback(context, tree, node_data[node].rhs);
},

.root,
.root => {
for (rootDecls(tree)) |child| {
try callback(context, tree, child);
}
},

.array_init_dot,
.array_init_dot_comma,
.struct_init_dot,
Expand Down

0 comments on commit 71f79ab

Please sign in to comment.