[FIR] Set publishedApiEffectiveVisibility on deserialized declarations

#KT-58641 Fixed
This commit is contained in:
Kirill Rakhman
2023-06-05 13:54:22 +02:00
committed by Space Team
parent 2581139b82
commit ee91ee9403
38 changed files with 737 additions and 37 deletions
@@ -26437,6 +26437,12 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/publishedApi"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS, true);
}
@Test
@TestMetadata("inlineFromFriendModule.kt")
public void testInlineFromFriendModule() throws Exception {
runTest("compiler/testData/codegen/box/publishedApi/inlineFromFriendModule.kt");
}
@Test
@TestMetadata("simple.kt")
public void testSimple() throws Exception {
@@ -26725,6 +26725,12 @@ public class FirJsCodegenBoxTestGenerated extends AbstractFirJsCodegenBoxTest {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/publishedApi"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true);
}
@Test
@TestMetadata("inlineFromFriendModule.kt")
public void testInlineFromFriendModule() throws Exception {
runTest("compiler/testData/codegen/box/publishedApi/inlineFromFriendModule.kt");
}
@Test
@TestMetadata("simple.kt")
public void testSimple() throws Exception {
@@ -2836,6 +2836,12 @@ public class FirLoadK2CompiledJsKotlinTestGenerated extends AbstractFirLoadK2Com
runTest("compiler/testData/loadJava/compiledKotlin/visibility/PropertyInConstructorExplicitVisibility.kt");
}
@Test
@TestMetadata("PublishedApi.kt")
public void testPublishedApi() throws Exception {
runTest("compiler/testData/loadJava/compiledKotlin/visibility/PublishedApi.kt");
}
@Test
@TestMetadata("TopLevelVarWithPrivateSetter.kt")
public void testTopLevelVarWithPrivateSetter() throws Exception {
@@ -26725,6 +26725,12 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/publishedApi"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true);
}
@Test
@TestMetadata("inlineFromFriendModule.kt")
public void testInlineFromFriendModule() throws Exception {
runTest("compiler/testData/codegen/box/publishedApi/inlineFromFriendModule.kt");
}
@Test
@TestMetadata("simple.kt")
public void testSimple() throws Exception {
@@ -26725,6 +26725,12 @@ public class IrJsES6CodegenBoxTestGenerated extends AbstractIrJsES6CodegenBoxTes
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/publishedApi"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR_ES6, true);
}
@Test
@TestMetadata("inlineFromFriendModule.kt")
public void testInlineFromFriendModule() throws Exception {
runTest("compiler/testData/codegen/box/publishedApi/inlineFromFriendModule.kt");
}
@Test
@TestMetadata("simple.kt")
public void testSimple() throws Exception {