As requested in issue 2923, visitors of a JsCatch will also
traverse the JsParameter of the catch clause.
Review by: scottb
git-svn-id: https://google-web-toolkit.googlecode.com/svn/trunk@3735 8db76d5a-ed1c-0410-87a9-c151d255dfc7
diff --git a/dev/core/src/com/google/gwt/dev/js/ast/JsCatch.java b/dev/core/src/com/google/gwt/dev/js/ast/JsCatch.java
index 2a46d21..e1d1cd8 100644
--- a/dev/core/src/com/google/gwt/dev/js/ast/JsCatch.java
+++ b/dev/core/src/com/google/gwt/dev/js/ast/JsCatch.java
@@ -28,7 +28,7 @@
private JsExpression condition;
- private final JsParameter param;
+ private JsParameter param;
public JsCatch(SourceInfo sourceInfo, JsScope parent, String ident) {
super(sourceInfo);
@@ -63,6 +63,7 @@
public void traverse(JsVisitor v, JsContext<JsCatch> ctx) {
if (v.visit(this, ctx)) {
+ param = v.accept(param);
if (condition != null) {
condition = v.accept(condition);
}