}
@Override
public void endVisit(JsExprStmt x, JsContext<JsStatement> ctx) {
// Looking for e = caught(e);
JsExpression expr = x.getExpression();
if (!(expr instanceof JsBinaryOperation)) {
return;
}
JsBinaryOperation op = (JsBinaryOperation) expr;
if (!(op.getArg2() instanceof JsInvocation)) {
return;
}
JsInvocation i = (JsInvocation) op.getArg2();
JsExpression q = i.getQualifier();
if (!(q instanceof JsNameRef)) {
return;
}
JsName name = ((JsNameRef) q).getName();