Fix error in JSO alias generator

This commit is contained in:
konsoletyper 2015-02-11 23:21:28 +04:00
parent 90f1f19f08
commit 727c02381a

View File

@ -63,7 +63,7 @@ class JSOAliasRenderer implements RendererListener {
if (entry.getValue().methods.isEmpty()) { if (entry.getValue().methods.isEmpty()) {
continue; continue;
} }
writer.append("c").ws().append("=").ws().appendClass(entry.getKey()).append(".prototype").softNewLine(); writer.append("c").ws().append("=").ws().appendClass(entry.getKey()).append(".prototype;").softNewLine();
for (Map.Entry<MethodDescriptor, String> aliasEntry : entry.getValue().methods.entrySet()) { for (Map.Entry<MethodDescriptor, String> aliasEntry : entry.getValue().methods.entrySet()) {
writer.append("c.").append(aliasEntry.getValue()).ws().append("=").ws().append("c.") writer.append("c.").append(aliasEntry.getValue()).ws().append("=").ws().append("c.")
.appendMethod(new MethodReference(entry.getKey(), aliasEntry.getKey())) .appendMethod(new MethodReference(entry.getKey(), aliasEntry.getKey()))