reading constructors from binary classes

This commit is contained in:
Stepan Koltsov
2012-01-08 23:21:59 +04:00
parent 6f04e7c3b0
commit 6d7e4cd030
7 changed files with 65 additions and 1 deletions
@@ -186,6 +186,12 @@ public class ReadClassDataTest extends TestCaseWithTmpdir {
}
List<String> memberStrings = new ArrayList<String>();
for (ConstructorDescriptor constructor : klass.getConstructors()) {
StringBuilder constructorSb = new StringBuilder();
new Serializer(constructorSb).serialize(constructor);
memberStrings.add(constructorSb.toString());
}
JetScope memberScope = klass.getMemberScope(typeArguments);
for (DeclarationDescriptor member : memberScope.getAllDescriptors()) {
@@ -244,6 +250,9 @@ public class ReadClassDataTest extends TestCaseWithTmpdir {
serialize(fun.getModality());
sb.append(" ");
if (fun instanceof ConstructorDescriptor) {
sb.append("/*constructor*/ ");
}
sb.append("fun ");
if (!fun.getTypeParameters().isEmpty()) {
sb.append("<");