Skip to content

Commit

Permalink
all: gofumpt
Browse files Browse the repository at this point in the history
  • Loading branch information
mvdan committed Feb 22, 2025
1 parent ba62f13 commit 77fa354
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions syntax/walk.go
Original file line number Diff line number Diff line change
Expand Up @@ -183,11 +183,13 @@ func walkNilable[N nilableNode](node N, f func(Node) bool) {
Walk(node, f)
}
}

func walkList[N Node](list []N, f func(Node) bool) {
for _, node := range list {
Walk(node, f)
}
}

func walkComments(list []Comment, f func(Node) bool) {
// Note that []Comment does not satisfy the generic constraint []Node.
for i := range list {
Expand Down

0 comments on commit 77fa354

Please sign in to comment.