Skip to content

Commit

Permalink
fix: supports the new oneof syntax in commands.json
Browse files Browse the repository at this point in the history
  • Loading branch information
rueian committed Oct 19, 2023
1 parent 55961cc commit 6ecaa43
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions hack/cmds/gen.go
Original file line number Diff line number Diff line change
Expand Up @@ -337,6 +337,13 @@ func (n *node) Walk(fn func(node *node)) {
next.Child.Walk(fn)
} else {
fn(next)
if next.Arg.Type == "oneof" {
for _, s := range next.GoStructs() {
for _, ns := range s.NextNodes {
ns.Walk(fn)
}
}
}
}
next = next.Next
}
Expand Down

0 comments on commit 6ecaa43

Please sign in to comment.