writer.close();
}
private static TypedProgramReference typedProgramReference(JsName name,
JavaToJavaScriptMap jjsmap, Map<JsName, String> obfuscateMap) {
JMethod method = jjsmap.nameToMethod(name);
if (method != null) {
StringBuilder sb = new StringBuilder();
sb.append(method.getEnclosingType().getName());
sb.append("::");
sb.append(method.getName());
sb.append("(");
for (JType type : method.getOriginalParamTypes()) {
sb.append(type.getJsniSignatureName());
}
sb.append(")");
sb.append(method.getOriginalReturnType().getJsniSignatureName());
String desc = sb.toString();
return new TypedProgramReference("method", desc);
}
JReferenceType type = jjsmap.nameToType(name);