Fir2Ir: create file level signatures where appropriate

This is godugly code, where a flag for file level signatures is passsed
around.
An alternative would be not to create file level signatures for toplevel
private clases, since those still need unique names, at least on JVM.
But that would break binary compatibility.
Signatures are due for overhaul anyway. Hopefully this code can be
reverted at that point.
This commit is contained in:
Georgy Bronnikov
2022-03-25 22:24:43 +03:00
committed by Alexander Udalov
parent 9d4ab09b41
commit 39bba7973c
23 changed files with 230 additions and 48 deletions
@@ -42100,6 +42100,12 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest
runTest("compiler/testData/codegen/boxInline/private/nestedInPrivateClass.kt");
}
@Test
@TestMetadata("nestedInPrivateClass2.kt")
public void testNestedInPrivateClass2() throws Exception {
runTest("compiler/testData/codegen/boxInline/private/nestedInPrivateClass2.kt");
}
@Test
@TestMetadata("privateClass.kt")
public void testPrivateClass() throws Exception {