Deserialize annotations on class properties w/o fields

Annotations on properties without backing fields are stored on a special
synthesized method inside the class
This commit is contained in:
Alexander Udalov
2013-07-11 23:03:05 +04:00
parent c853c9be03
commit 87d4e35388
14 changed files with 336 additions and 59 deletions
@@ -60,6 +60,16 @@ public class DescriptorSerializationTestGenerated extends AbstractDescriptorSeri
doTest("compiler/testData/loadKotlin/annotations/classMembers/Getter.kt");
}
@TestMetadata("PropertyField.kt")
public void testPropertyField() throws Exception {
doTest("compiler/testData/loadKotlin/annotations/classMembers/PropertyField.kt");
}
@TestMetadata("PropertyNoField.kt")
public void testPropertyNoField() throws Exception {
doTest("compiler/testData/loadKotlin/annotations/classMembers/PropertyNoField.kt");
}
@TestMetadata("Setter.kt")
public void testSetter() throws Exception {
doTest("compiler/testData/loadKotlin/annotations/classMembers/Setter.kt");
@@ -60,6 +60,16 @@ public class LoadCompiledKotlinTestGenerated extends AbstractLoadCompiledKotlinT
doTestWithAccessors("compiler/testData/loadKotlin/annotations/classMembers/Getter.kt");
}
@TestMetadata("PropertyField.kt")
public void testPropertyField() throws Exception {
doTestWithAccessors("compiler/testData/loadKotlin/annotations/classMembers/PropertyField.kt");
}
@TestMetadata("PropertyNoField.kt")
public void testPropertyNoField() throws Exception {
doTestWithAccessors("compiler/testData/loadKotlin/annotations/classMembers/PropertyNoField.kt");
}
@TestMetadata("Setter.kt")
public void testSetter() throws Exception {
doTestWithAccessors("compiler/testData/loadKotlin/annotations/classMembers/Setter.kt");
@@ -62,6 +62,16 @@ public class LazyResolveNamespaceComparingTestGenerated extends AbstractLazyReso
doTestCheckingPrimaryConstructorsAndAccessors("compiler/testData/loadKotlin/annotations/classMembers/Getter.kt");
}
@TestMetadata("PropertyField.kt")
public void testPropertyField() throws Exception {
doTestCheckingPrimaryConstructorsAndAccessors("compiler/testData/loadKotlin/annotations/classMembers/PropertyField.kt");
}
@TestMetadata("PropertyNoField.kt")
public void testPropertyNoField() throws Exception {
doTestCheckingPrimaryConstructorsAndAccessors("compiler/testData/loadKotlin/annotations/classMembers/PropertyNoField.kt");
}
@TestMetadata("Setter.kt")
public void testSetter() throws Exception {
doTestCheckingPrimaryConstructorsAndAccessors("compiler/testData/loadKotlin/annotations/classMembers/Setter.kt");