diff --git a/node/stmt/catch.go b/node/stmt/catch.go index b289c7a..3061f4c 100644 --- a/node/stmt/catch.go +++ b/node/stmt/catch.go @@ -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 {