Skip to content

Commit e310092

Browse files
committed
Fix walk processing when node type is if
1 parent f57a807 commit e310092

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ast/walk.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ func Walk(v Visitor, node Node) {
7171

7272
case *If:
7373
Walk(v, n.Condition)
74+
walkStmtList(v, n.Body)
7475
for _, elseif := range n.ElseIf {
7576
Walk(v, elseif)
7677
}

0 commit comments

Comments
 (0)