Skip to content

Commit b1ac3e8

Browse files
authored
Merge pull request #28 from syossan27/fix/walk-node-type-if
Fix walk processing when node type is if
2 parents f57a807 + e310092 commit b1ac3e8

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)