fix traversing the catch node

This commit is contained in:
z7zmey 2018-02-03 15:24:41 +02:00
parent 1ff58e5cfb
commit ca889c1e78

View File

@ -42,6 +42,11 @@ func (n *Catch) Walk(v walker.Visitor) {
}
}
if n.Variable != nil {
vv := v.GetChildrenVisitor("Variable")
n.Variable.Walk(vv)
}
if n.Stmts != nil {
vv := v.GetChildrenVisitor("Stmts")
for _, nn := range n.Stmts {