Permalink
Browse files

Merge pull request #28 from syossan27/fix/walk-node-type-if

Fix walk processing when node type is if
  • Loading branch information...
2 parents f57a807 + e310092 commit b1ac3e858b14dec160cec7b0965f0ae947c7764b @haya14busa committed on GitHub Jan 11, 2017
Showing with 1 addition and 0 deletions.
  1. +1 −0 ast/walk.go
View
@@ -71,6 +71,7 @@ func Walk(v Visitor, node Node) {
case *If:
Walk(v, n.Condition)
+ walkStmtList(v, n.Body)
for _, elseif := range n.ElseIf {
Walk(v, elseif)
}

0 comments on commit b1ac3e8

Please sign in to comment.