From ca889c1e787e2563907f998f0e3100e4f5551910 Mon Sep 17 00:00:00 2001 From: z7zmey Date: Sat, 3 Feb 2018 15:24:41 +0200 Subject: [PATCH] fix traversing the catch node --- node/stmt/catch.go | 5 +++++ 1 file changed, 5 insertions(+) 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 {