paramCount = ((Constructor<?>) member).getParameterTypes().length;
}
SourceInfo newSourceInfo = x.getSourceInfo().makeChild(getClass(),
"Replace JSNI ref for hosted mode");
JsInvocation inner = new JsInvocation(newSourceInfo);
inner.setQualifier(new JsNameRef(newSourceInfo,
"__gwt_makeJavaInvoke"));
inner.getArguments().add(program.getNumberLiteral(paramCount));
JsInvocation outer = new JsInvocation(newSourceInfo);
outer.setQualifier(inner);
JsExpression q = ref.getQualifier();
if (q == null) {
q = program.getNullLiteral();
}
List<JsExpression> arguments = outer.getArguments();
arguments.add(q);
arguments.add(program.getNumberLiteral(dispId));
arguments.addAll(x.getArguments());
accept(outer);