Deserialize annotations from package$src files if needed

For top-level members, we now write a FQ name of the package$src class which
has the member's annotations, and read the correct file in deserialization
This commit is contained in:
Alexander Udalov
2013-07-15 19:38:49 +04:00
parent e63a087ee5
commit cfe9d78015
16 changed files with 181 additions and 13 deletions
@@ -141,6 +141,16 @@ public class DescriptorSerializationTestGenerated extends AbstractDescriptorSeri
doTest("compiler/testData/loadKotlin/annotations/packageMembers/Getter.kt");
}
@TestMetadata("PropertyField.kt")
public void testPropertyField() throws Exception {
doTest("compiler/testData/loadKotlin/annotations/packageMembers/PropertyField.kt");
}
@TestMetadata("PropertyNoField.kt")
public void testPropertyNoField() throws Exception {
doTest("compiler/testData/loadKotlin/annotations/packageMembers/PropertyNoField.kt");
}
@TestMetadata("Setter.kt")
public void testSetter() throws Exception {
doTest("compiler/testData/loadKotlin/annotations/packageMembers/Setter.kt");
@@ -141,6 +141,16 @@ public class LoadCompiledKotlinTestGenerated extends AbstractLoadCompiledKotlinT
doTestWithAccessors("compiler/testData/loadKotlin/annotations/packageMembers/Getter.kt");
}
@TestMetadata("PropertyField.kt")
public void testPropertyField() throws Exception {
doTestWithAccessors("compiler/testData/loadKotlin/annotations/packageMembers/PropertyField.kt");
}
@TestMetadata("PropertyNoField.kt")
public void testPropertyNoField() throws Exception {
doTestWithAccessors("compiler/testData/loadKotlin/annotations/packageMembers/PropertyNoField.kt");
}
@TestMetadata("Setter.kt")
public void testSetter() throws Exception {
doTestWithAccessors("compiler/testData/loadKotlin/annotations/packageMembers/Setter.kt");
@@ -143,6 +143,16 @@ public class LazyResolveNamespaceComparingTestGenerated extends AbstractLazyReso
doTestCheckingPrimaryConstructorsAndAccessors("compiler/testData/loadKotlin/annotations/packageMembers/Getter.kt");
}
@TestMetadata("PropertyField.kt")
public void testPropertyField() throws Exception {
doTestCheckingPrimaryConstructorsAndAccessors("compiler/testData/loadKotlin/annotations/packageMembers/PropertyField.kt");
}
@TestMetadata("PropertyNoField.kt")
public void testPropertyNoField() throws Exception {
doTestCheckingPrimaryConstructorsAndAccessors("compiler/testData/loadKotlin/annotations/packageMembers/PropertyNoField.kt");
}
@TestMetadata("Setter.kt")
public void testSetter() throws Exception {
doTestCheckingPrimaryConstructorsAndAccessors("compiler/testData/loadKotlin/annotations/packageMembers/Setter.kt");