Permalink
Browse files

Fix walk processing when node type is if

  • Loading branch information...
1 parent f57a807 commit e3100929c355f308e9058b797e15dcbfbc2e5e2e @syossan27 syossan27 committed Jan 10, 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 e310092

Please sign in to comment.