diff --git a/plugins/kotlin/src/main/java/org/vineflower/kotlin/KotlinWriter.java b/plugins/kotlin/src/main/java/org/vineflower/kotlin/KotlinWriter.java index f683d7920..7e756f40e 100644 --- a/plugins/kotlin/src/main/java/org/vineflower/kotlin/KotlinWriter.java +++ b/plugins/kotlin/src/main/java/org/vineflower/kotlin/KotlinWriter.java @@ -462,6 +462,7 @@ private void writeKotlinFile(ClassNode node, TextBuffer buffer, int indent, KPro } } + //TODO update this to use Kotlin's metadata private void writeAnnotationDefinition(ClassNode node, TextBuffer buffer, int indent, KProperty.Data propertyData, Map functions, KConstructor.Data constructorData) { ClassWrapper wrapper = node.getWrapper(); StructClass cl = wrapper.getClassStruct(); @@ -624,7 +625,7 @@ private void writeClassDefinition(ClassNode node, TextBuffer buffer, int indent, buffer.appendIndent(indent); - if (kotlinFlags.visibility != ProtoBuf.Visibility.PUBLIC) { + if (kotlinFlags.visibility != ProtoBuf.Visibility.PUBLIC || DecompilerContext.getOption(KotlinOptions.SHOW_PUBLIC_VISIBILITY)) { buffer.append(ProtobufFlags.toString(kotlinFlags.visibility)).append(' '); } diff --git a/plugins/kotlin/testData/results/pkg/TestAnnotations.dec b/plugins/kotlin/testData/results/pkg/TestAnnotations.dec index 9fea29d52..0657c713c 100644 --- a/plugins/kotlin/testData/results/pkg/TestAnnotations.dec +++ b/plugins/kotlin/testData/results/pkg/TestAnnotations.dec @@ -3,7 +3,7 @@ package pkg import java.lang.annotation.Retention import java.lang.annotation.RetentionPolicy -class TestAnnotations { +public class TestAnnotations { @TestAnnotations.TestAnnotation(first = "test", second = 1) public fun test() { }// 16 diff --git a/plugins/kotlin/testData/results/pkg/TestAnyType.dec b/plugins/kotlin/testData/results/pkg/TestAnyType.dec index ca1baf918..ea18ff3bc 100644 --- a/plugins/kotlin/testData/results/pkg/TestAnyType.dec +++ b/plugins/kotlin/testData/results/pkg/TestAnyType.dec @@ -1,6 +1,6 @@ package pkg -class TestAnyType { +public class TestAnyType { public fun test(param: Any): Int { if (param is java.lang.String) {// 5 return (param as java.lang.String).length();// 6 diff --git a/plugins/kotlin/testData/results/pkg/TestBitwiseFunctions.dec b/plugins/kotlin/testData/results/pkg/TestBitwiseFunctions.dec index ecec103da..2d9c456ac 100644 --- a/plugins/kotlin/testData/results/pkg/TestBitwiseFunctions.dec +++ b/plugins/kotlin/testData/results/pkg/TestBitwiseFunctions.dec @@ -1,6 +1,6 @@ package pkg -class TestBitwiseFunctions { +public class TestBitwiseFunctions { public fun and(a: Int, b: Int): Int { return a and b;// 5 } diff --git a/plugins/kotlin/testData/results/pkg/TestClassDec.dec b/plugins/kotlin/testData/results/pkg/TestClassDec.dec index 05fc5b7a6..011369557 100644 --- a/plugins/kotlin/testData/results/pkg/TestClassDec.dec +++ b/plugins/kotlin/testData/results/pkg/TestClassDec.dec @@ -1,6 +1,6 @@ package pkg -class TestClassDec { +public class TestClassDec { public fun pkg.TestClassDec.Vec2iVal.dot(v: pkg.TestClassDec.Vec2iVal): Int { return `$this$dot`.getX() * v.getX() + `$this$dot`.getY() * v.getY();// 11 } @@ -13,13 +13,13 @@ class TestClassDec { System.out.println(this.dot(vec, vec1));// 20 }// 21 - class EmptyDec { + public class EmptyDec { } - class Vec2i(x: Int, y: Int) { + public class Vec2i(x: Int, y: Int) { } - class Vec2iVal(x: Int, y: Int) { + public class Vec2iVal(x: Int, y: Int) { public final val x: Int public final val y: Int @@ -29,7 +29,7 @@ class TestClassDec { } } - class Vec2iVar(x: Int, y: Int) { + public class Vec2iVar(x: Int, y: Int) { public final var x: Int internal set public final var y: Int diff --git a/plugins/kotlin/testData/results/pkg/TestClassicStringInterpolation.dec b/plugins/kotlin/testData/results/pkg/TestClassicStringInterpolation.dec index 33a12203f..24601e513 100644 --- a/plugins/kotlin/testData/results/pkg/TestClassicStringInterpolation.dec +++ b/plugins/kotlin/testData/results/pkg/TestClassicStringInterpolation.dec @@ -1,6 +1,6 @@ package pkg -class TestClassicStringInterpolation { +public class TestClassicStringInterpolation { public final val x: Int = 5 diff --git a/plugins/kotlin/testData/results/pkg/TestComparison.dec b/plugins/kotlin/testData/results/pkg/TestComparison.dec index cdac5da36..2c26a37fb 100644 --- a/plugins/kotlin/testData/results/pkg/TestComparison.dec +++ b/plugins/kotlin/testData/results/pkg/TestComparison.dec @@ -1,6 +1,6 @@ package pkg -class TestComparison { +public class TestComparison { public fun test2(a: Any, b: Any): Boolean { return a == b;// 5 } diff --git a/plugins/kotlin/testData/results/pkg/TestCompileTimeErrors.dec b/plugins/kotlin/testData/results/pkg/TestCompileTimeErrors.dec index 013bd9fd9..e22882c8c 100644 --- a/plugins/kotlin/testData/results/pkg/TestCompileTimeErrors.dec +++ b/plugins/kotlin/testData/results/pkg/TestCompileTimeErrors.dec @@ -1,6 +1,6 @@ package pkg -class TestCompileTimeErrors { +public class TestCompileTimeErrors { public fun test(i: I): O where O : I, O : pkg.TestCompileTimeErrors.Test { throw new NotImplementedError(null, 1, null);// 10 } @@ -24,7 +24,7 @@ class TestCompileTimeErrors { }; } - interface Test { + public interface Test { public val testValue: Int } } diff --git a/plugins/kotlin/testData/results/pkg/TestConstructors.dec b/plugins/kotlin/testData/results/pkg/TestConstructors.dec index 9e096bc60..507ed2a96 100644 --- a/plugins/kotlin/testData/results/pkg/TestConstructors.dec +++ b/plugins/kotlin/testData/results/pkg/TestConstructors.dec @@ -1,6 +1,6 @@ package pkg -class TestConstructors private constructor() { +public class TestConstructors private constructor() { public constructor(a: Int) : this() {// 4 System.out.println("a = $a");// 5 }// 6 diff --git a/plugins/kotlin/testData/results/pkg/TestContracts.dec b/plugins/kotlin/testData/results/pkg/TestContracts.dec index 00ad4fdcd..596baead0 100644 --- a/plugins/kotlin/testData/results/pkg/TestContracts.dec +++ b/plugins/kotlin/testData/results/pkg/TestContracts.dec @@ -4,7 +4,7 @@ import kotlin.contracts.InvocationKind import kotlin.jvm.internal.SourceDebugExtension @SourceDebugExtension(["SMAP\nTestContracts.kt\nKotlin\n*S Kotlin\n*F\n+ 1 TestContracts.kt\npkg/TestContracts\n+ 2 fake.kt\nkotlin/jvm/internal/FakeKt\n*L\n1#1,56:1\n1#2:57\n*E\n"]) -class TestContracts { +public class TestContracts { public fun testSimpleContract(x: Int?): Int { contract { returns() implies (x != null) diff --git a/plugins/kotlin/testData/results/pkg/TestConvertedK2JOps.dec b/plugins/kotlin/testData/results/pkg/TestConvertedK2JOps.dec index 185e64baa..6471fb986 100644 --- a/plugins/kotlin/testData/results/pkg/TestConvertedK2JOps.dec +++ b/plugins/kotlin/testData/results/pkg/TestConvertedK2JOps.dec @@ -1,6 +1,6 @@ package pkg -class TestConvertedK2JOps { +public class TestConvertedK2JOps { public final val list: List = CollectionsKt.listOf(new java.lang.String[]{"a", "b", "c"}) public final val set: Set = SetsKt.setOf(new java.lang.String[]{"a", "b", "c"}) public final val map: Map = MapsKt.mapOf(new Pair[]{TuplesKt.to("a", "b"), TuplesKt.to("c", "d")}) diff --git a/plugins/kotlin/testData/results/pkg/TestDataClass.dec b/plugins/kotlin/testData/results/pkg/TestDataClass.dec index fc504d576..02357df66 100644 --- a/plugins/kotlin/testData/results/pkg/TestDataClass.dec +++ b/plugins/kotlin/testData/results/pkg/TestDataClass.dec @@ -1,6 +1,6 @@ package pkg -data class TestDataClass(dataClassVal: Regex, variableWithVeryLongName: Int, requestLineWrapsIfTheParamListIsTooLong: List, nullability: String?) { +public data class TestDataClass(dataClassVal: Regex, variableWithVeryLongName: Int, requestLineWrapsIfTheParamListIsTooLong: List, nullability: String?) { public final val dataClassVal: Regex public final val variableWithVeryLongName: Int public final val requestLineWrapsIfTheParamListIsTooLong: List diff --git a/plugins/kotlin/testData/results/pkg/TestDestructors.dec b/plugins/kotlin/testData/results/pkg/TestDestructors.dec index 4e98bb8d8..3950c7ea0 100644 --- a/plugins/kotlin/testData/results/pkg/TestDestructors.dec +++ b/plugins/kotlin/testData/results/pkg/TestDestructors.dec @@ -4,7 +4,7 @@ import kotlin.jvm.functions.Function0 import kotlin.jvm.internal.SourceDebugExtension @SourceDebugExtension(["SMAP\nTestDestructors.kt\nKotlin\n*S Kotlin\n*F\n+ 1 TestDestructors.kt\npkg/TestDestructors\n*L\n1#1,71:1\n68#1,3:72\n68#1,3:75\n*S KotlinDebug\n*F\n+ 1 TestDestructors.kt\npkg/TestDestructors\n*L\n49#1:72,3\n54#1:75,3\n*E\n"]) -class TestDestructors { +public class TestDestructors { public fun destructDataClasses(x: Pair, y: Triple) { System.out.println("${x.component1() as java.lang.String} ${x.component2() as Integer}");// 8 9 System.out.println("${y.component1() as java.lang.Number} ${y.component2() as java.lang.Boolean} ${y.component3() as java.lang.String}");// 11 12 diff --git a/plugins/kotlin/testData/results/pkg/TestExtensionFun.dec b/plugins/kotlin/testData/results/pkg/TestExtensionFun.dec index 1439805c8..4cea41607 100644 --- a/plugins/kotlin/testData/results/pkg/TestExtensionFun.dec +++ b/plugins/kotlin/testData/results/pkg/TestExtensionFun.dec @@ -1,6 +1,6 @@ package pkg -class TestExtensionFun { +public class TestExtensionFun { public fun CharSequence.repeat2(n: Int): String { return StringsKt.repeat(`$this$repeat2`, n);// 5 } diff --git a/plugins/kotlin/testData/results/pkg/TestForRange.dec b/plugins/kotlin/testData/results/pkg/TestForRange.dec index de741b066..52d37ebbe 100644 --- a/plugins/kotlin/testData/results/pkg/TestForRange.dec +++ b/plugins/kotlin/testData/results/pkg/TestForRange.dec @@ -2,7 +2,7 @@ package pkg import kotlin.internal.ProgressionUtilKt -class TestForRange { +public class TestForRange { public fun testInt() { for (int i = 1; i < 11; i++) {// 5 System.out.println(i);// 6 diff --git a/plugins/kotlin/testData/results/pkg/TestFunVarargs.dec b/plugins/kotlin/testData/results/pkg/TestFunVarargs.dec index 84b88115f..6675a5e75 100644 --- a/plugins/kotlin/testData/results/pkg/TestFunVarargs.dec +++ b/plugins/kotlin/testData/results/pkg/TestFunVarargs.dec @@ -2,7 +2,7 @@ package pkg import java.util.Arrays -class TestFunVarargs { +public class TestFunVarargs { public fun printAll(vararg messages: String) { for (java.lang.String m : messages) {// 5 System.out.println(m); diff --git a/plugins/kotlin/testData/results/pkg/TestGenerics.dec b/plugins/kotlin/testData/results/pkg/TestGenerics.dec index 7a8687b66..bff16cc26 100644 --- a/plugins/kotlin/testData/results/pkg/TestGenerics.dec +++ b/plugins/kotlin/testData/results/pkg/TestGenerics.dec @@ -1,6 +1,6 @@ package pkg -class TestGenerics { +public class TestGenerics { public fun genericFun(v: T): T { return (T)v;// 5 } diff --git a/plugins/kotlin/testData/results/pkg/TestIfRange.dec b/plugins/kotlin/testData/results/pkg/TestIfRange.dec index d25bf82c2..082516b9d 100644 --- a/plugins/kotlin/testData/results/pkg/TestIfRange.dec +++ b/plugins/kotlin/testData/results/pkg/TestIfRange.dec @@ -1,6 +1,6 @@ package pkg -class TestIfRange { +public class TestIfRange { public fun testInt(x: Int) { if (1 <= x && x < 11) {// 5 System.out.println(x);// 6 diff --git a/plugins/kotlin/testData/results/pkg/TestInfixFun.dec b/plugins/kotlin/testData/results/pkg/TestInfixFun.dec index abfe471ee..593a13dee 100644 --- a/plugins/kotlin/testData/results/pkg/TestInfixFun.dec +++ b/plugins/kotlin/testData/results/pkg/TestInfixFun.dec @@ -1,6 +1,6 @@ package pkg -class TestInfixFun { +public class TestInfixFun { public fun test() { System.out.println(test$times(2, "Bye "));// 7 }// 8 diff --git a/plugins/kotlin/testData/results/pkg/TestKotlinTypes.dec b/plugins/kotlin/testData/results/pkg/TestKotlinTypes.dec index 276fc610f..7a29e4815 100644 --- a/plugins/kotlin/testData/results/pkg/TestKotlinTypes.dec +++ b/plugins/kotlin/testData/results/pkg/TestKotlinTypes.dec @@ -1,6 +1,6 @@ package pkg -class TestKotlinTypes { +public class TestKotlinTypes { public final val consumer: (Int) -> Unit = TestKotlinTypes::consumer$lambda$0 diff --git a/plugins/kotlin/testData/results/pkg/TestKt.dec b/plugins/kotlin/testData/results/pkg/TestKt.dec index df4e6f663..8079039cb 100644 --- a/plugins/kotlin/testData/results/pkg/TestKt.dec +++ b/plugins/kotlin/testData/results/pkg/TestKt.dec @@ -1,6 +1,6 @@ package pkg -class TestKt { +public class TestKt { public fun test() { System.out.println("Hello, world!");// 5 }// 6 diff --git a/plugins/kotlin/testData/results/pkg/TestLabeledJumps.dec b/plugins/kotlin/testData/results/pkg/TestLabeledJumps.dec index 2b3aceb78..b7e7d0440 100644 --- a/plugins/kotlin/testData/results/pkg/TestLabeledJumps.dec +++ b/plugins/kotlin/testData/results/pkg/TestLabeledJumps.dec @@ -1,6 +1,6 @@ package pkg -class TestLabeledJumps { +public class TestLabeledJumps { public fun testContinue(tester: (Int) -> Boolean) { label24: for (int i = 1; i < 101; i++) {// 5 diff --git a/plugins/kotlin/testData/results/pkg/TestNonInlineLambda.dec b/plugins/kotlin/testData/results/pkg/TestNonInlineLambda.dec index 65159bd07..af1091263 100644 --- a/plugins/kotlin/testData/results/pkg/TestNonInlineLambda.dec +++ b/plugins/kotlin/testData/results/pkg/TestNonInlineLambda.dec @@ -3,7 +3,7 @@ package pkg import kotlin.jvm.internal.Ref.IntRef import kotlin.jvm.internal.Ref.ObjectRef -open class TestNonInlineLambda { +public open class TestNonInlineLambda { public final var intField: Int internal set public final var stringField: String = "" diff --git a/plugins/kotlin/testData/results/pkg/TestNothingReturns.dec b/plugins/kotlin/testData/results/pkg/TestNothingReturns.dec index 5c70135f0..6f9994490 100644 --- a/plugins/kotlin/testData/results/pkg/TestNothingReturns.dec +++ b/plugins/kotlin/testData/results/pkg/TestNothingReturns.dec @@ -1,6 +1,6 @@ package pkg -class TestNothingReturns { +public class TestNothingReturns { public fun loop(): Nothing { while (true) { System.out.println("loop");// 6 diff --git a/plugins/kotlin/testData/results/pkg/TestNullable.dec b/plugins/kotlin/testData/results/pkg/TestNullable.dec index 5cda97427..3abd08d7e 100644 --- a/plugins/kotlin/testData/results/pkg/TestNullable.dec +++ b/plugins/kotlin/testData/results/pkg/TestNullable.dec @@ -1,6 +1,6 @@ package pkg -class TestNullable { +public class TestNullable { public fun nullableParams(v: String, vn: String?) { }// 6 diff --git a/plugins/kotlin/testData/results/pkg/TestNullableOperator.dec b/plugins/kotlin/testData/results/pkg/TestNullableOperator.dec index af8a6f679..cd9b42ef0 100644 --- a/plugins/kotlin/testData/results/pkg/TestNullableOperator.dec +++ b/plugins/kotlin/testData/results/pkg/TestNullableOperator.dec @@ -1,6 +1,6 @@ package pkg -class TestNullableOperator { +public class TestNullableOperator { public fun test(x: Int?): Int { return x ?: 0;// 5 } diff --git a/plugins/kotlin/testData/results/pkg/TestObject.dec b/plugins/kotlin/testData/results/pkg/TestObject.dec index d8b111bfc..f00135141 100644 --- a/plugins/kotlin/testData/results/pkg/TestObject.dec +++ b/plugins/kotlin/testData/results/pkg/TestObject.dec @@ -1,6 +1,6 @@ package pkg -object TestObject private constructor() { +public object TestObject private constructor() { @JvmStatic public TestObject INSTANCE = new TestObject(); diff --git a/plugins/kotlin/testData/results/pkg/TestParams.dec b/plugins/kotlin/testData/results/pkg/TestParams.dec index 56f50eee3..0e8c70410 100644 --- a/plugins/kotlin/testData/results/pkg/TestParams.dec +++ b/plugins/kotlin/testData/results/pkg/TestParams.dec @@ -1,6 +1,6 @@ package pkg -class TestParams { +public class TestParams { public fun printMessageUnit(message: String) { System.out.println(message);// 5 }// 6 diff --git a/plugins/kotlin/testData/results/pkg/TestPoorNames.dec b/plugins/kotlin/testData/results/pkg/TestPoorNames.dec index fbe0a08e6..438f24080 100644 --- a/plugins/kotlin/testData/results/pkg/TestPoorNames.dec +++ b/plugins/kotlin/testData/results/pkg/TestPoorNames.dec @@ -1,6 +1,6 @@ package pkg -class TestPoorNames { +public class TestPoorNames { public final val `Property with spaces`: Int = 42 public final val `Dangerous property name?!`: String = "test" @@ -23,7 +23,7 @@ class TestPoorNames { this.functionWithParameters(42, "test");// 24 }// 25 - class `Class with spaces` { + public class `Class with spaces` { } } diff --git a/plugins/kotlin/testData/results/pkg/TestReflection.dec b/plugins/kotlin/testData/results/pkg/TestReflection.dec index f23832658..9a361598d 100644 --- a/plugins/kotlin/testData/results/pkg/TestReflection.dec +++ b/plugins/kotlin/testData/results/pkg/TestReflection.dec @@ -3,7 +3,7 @@ package pkg import kotlin.jvm.functions.Function1 import kotlin.reflect.KFunction -class TestReflection { +public class TestReflection { public fun testClassReference() { System.out.println(TestReflection::class);// 5 System.out.println(TestReflection::class.java);// 6 diff --git a/plugins/kotlin/testData/results/pkg/TestSafeCasts.dec b/plugins/kotlin/testData/results/pkg/TestSafeCasts.dec index 50038555e..b8130ad0f 100644 --- a/plugins/kotlin/testData/results/pkg/TestSafeCasts.dec +++ b/plugins/kotlin/testData/results/pkg/TestSafeCasts.dec @@ -1,6 +1,6 @@ package pkg -class TestSafeCasts { +public class TestSafeCasts { public fun test(obj: Any): Boolean { var t: Int = obj as? Integer;// 5 if ((obj as? Integer) != null) {// 7 diff --git a/plugins/kotlin/testData/results/pkg/TestSealedHierarchy.dec b/plugins/kotlin/testData/results/pkg/TestSealedHierarchy.dec index 2e488973a..f614e7eca 100644 --- a/plugins/kotlin/testData/results/pkg/TestSealedHierarchy.dec +++ b/plugins/kotlin/testData/results/pkg/TestSealedHierarchy.dec @@ -1,7 +1,7 @@ package pkg -sealed class TestSealedHierarchy protected constructor() { - class TestClass(x: Int) : TestSealedHierarchy() {// 5 +public sealed class TestSealedHierarchy protected constructor() { + public class TestClass(x: Int) : TestSealedHierarchy() {// 5 public final val x: Int init { @@ -9,7 +9,7 @@ sealed class TestSealedHierarchy protected constructor() { } } - object TestObject private constructor() : TestSealedHierarchy() {// 4 + public object TestObject private constructor() : TestSealedHierarchy() {// 4 @JvmStatic public TestSealedHierarchy.TestObject INSTANCE = new TestSealedHierarchy.TestObject(); diff --git a/plugins/kotlin/testData/results/pkg/TestShadowParam.dec b/plugins/kotlin/testData/results/pkg/TestShadowParam.dec index 7633e6dce..fc8c7166b 100644 --- a/plugins/kotlin/testData/results/pkg/TestShadowParam.dec +++ b/plugins/kotlin/testData/results/pkg/TestShadowParam.dec @@ -1,6 +1,6 @@ package pkg -class TestShadowParam { +public class TestShadowParam { public fun test(x: Int) { var xx: Int = x - 1;// 5 6 System.out.println(x - 1);// 7 diff --git a/plugins/kotlin/testData/results/pkg/TestSmartCasts.dec b/plugins/kotlin/testData/results/pkg/TestSmartCasts.dec index ec5d10e7e..e41ab9ed1 100644 --- a/plugins/kotlin/testData/results/pkg/TestSmartCasts.dec +++ b/plugins/kotlin/testData/results/pkg/TestSmartCasts.dec @@ -1,6 +1,6 @@ package pkg -class TestSmartCasts { +public class TestSmartCasts { public fun testWhen(o: Any?): String { if (o is java.lang.String) {// 19 20 return o as java.lang.String;// 21 @@ -72,25 +72,25 @@ class TestSmartCasts { return if (t is TestSmartCasts.X) (t as TestSmartCasts.X).woo(t as java.lang.Iterable) else t.get(0) as java.lang.String;// 83 84 87 } - sealed class A protected constructor() { + public sealed class A protected constructor() { public fun test(): String { return "";// 15 } - class B : TestSmartCasts.A() {// 8 + public class B : TestSmartCasts.A() {// 8 public fun testB(): String { return "B";// 9 } } - class C : TestSmartCasts.A() {// 11 + public class C : TestSmartCasts.A() {// 11 public fun testC(): String { return "C";// 12 } } } - interface X { + public interface X { public open fun Iterable<*>.woo(): String { } diff --git a/plugins/kotlin/testData/results/pkg/TestStringInterpolation.dec b/plugins/kotlin/testData/results/pkg/TestStringInterpolation.dec index ab25b196c..4d9e7b445 100644 --- a/plugins/kotlin/testData/results/pkg/TestStringInterpolation.dec +++ b/plugins/kotlin/testData/results/pkg/TestStringInterpolation.dec @@ -1,6 +1,6 @@ package pkg -class TestStringInterpolation { +public class TestStringInterpolation { public final val x: Int = 5 diff --git a/plugins/kotlin/testData/results/pkg/TestSynchronized.dec b/plugins/kotlin/testData/results/pkg/TestSynchronized.dec index 2de7a9aa0..919ae683a 100644 --- a/plugins/kotlin/testData/results/pkg/TestSynchronized.dec +++ b/plugins/kotlin/testData/results/pkg/TestSynchronized.dec @@ -1,6 +1,6 @@ package pkg -class TestSynchronized { +public class TestSynchronized { public fun test() { synchronized (this) {// 5 System.out.println("Hello");// 6 diff --git a/plugins/kotlin/testData/results/pkg/TestTailrecFunctions.dec b/plugins/kotlin/testData/results/pkg/TestTailrecFunctions.dec index 17098d881..1e55b85bf 100644 --- a/plugins/kotlin/testData/results/pkg/TestTailrecFunctions.dec +++ b/plugins/kotlin/testData/results/pkg/TestTailrecFunctions.dec @@ -1,6 +1,6 @@ package pkg -class TestTailrecFunctions { +public class TestTailrecFunctions { public tailrec fun sum(x: Long, sum: Long): Long { var var5: TestTailrecFunctions = this;// 4 diff --git a/plugins/kotlin/testData/results/pkg/TestTryCatchExpressions.dec b/plugins/kotlin/testData/results/pkg/TestTryCatchExpressions.dec index ccdb2b3e8..512b525fd 100644 --- a/plugins/kotlin/testData/results/pkg/TestTryCatchExpressions.dec +++ b/plugins/kotlin/testData/results/pkg/TestTryCatchExpressions.dec @@ -4,7 +4,7 @@ import java.io.IOException import kotlin.jvm.internal.SourceDebugExtension @SourceDebugExtension(["SMAP\nTestTryCatchExpressions.kt\nKotlin\n*S Kotlin\n*F\n+ 1 TestTryCatchExpressions.kt\npkg/TestTryCatchExpressions\n+ 2 fake.kt\nkotlin/jvm/internal/FakeKt\n*L\n1#1,59:1\n1#2:60\n*E\n"]) -class TestTryCatchExpressions { +public class TestTryCatchExpressions { public fun test0(s: String) { var var2: java.lang.String; try { diff --git a/plugins/kotlin/testData/results/pkg/TestTryFinallyExpressions.dec b/plugins/kotlin/testData/results/pkg/TestTryFinallyExpressions.dec index 18d74e77d..48d0435bd 100644 --- a/plugins/kotlin/testData/results/pkg/TestTryFinallyExpressions.dec +++ b/plugins/kotlin/testData/results/pkg/TestTryFinallyExpressions.dec @@ -4,7 +4,7 @@ import java.io.IOException import kotlin.jvm.internal.SourceDebugExtension @SourceDebugExtension(["SMAP\nTestTryFinallyExpressions.kt\nKotlin\n*S Kotlin\n*F\n+ 1 TestTryFinallyExpressions.kt\npkg/TestTryFinallyExpressions\n+ 2 fake.kt\nkotlin/jvm/internal/FakeKt\n*L\n1#1,52:1\n1#2:53\n*E\n"]) -class TestTryFinallyExpressions { +public class TestTryFinallyExpressions { public fun test0(s: String) { label15: { try { diff --git a/plugins/kotlin/testData/results/pkg/TestVars.dec b/plugins/kotlin/testData/results/pkg/TestVars.dec index daa1a2b34..f26def8f4 100644 --- a/plugins/kotlin/testData/results/pkg/TestVars.dec +++ b/plugins/kotlin/testData/results/pkg/TestVars.dec @@ -1,6 +1,6 @@ package pkg -class TestVars { +public class TestVars { public fun testVar() { System.out.println("initial");// 5 6 }// 9 diff --git a/plugins/kotlin/testData/results/pkg/TestWhen.dec b/plugins/kotlin/testData/results/pkg/TestWhen.dec index f4020d6d1..9e9d818ee 100644 --- a/plugins/kotlin/testData/results/pkg/TestWhen.dec +++ b/plugins/kotlin/testData/results/pkg/TestWhen.dec @@ -1,6 +1,6 @@ package pkg -class TestWhen { +public class TestWhen { public fun testStatement(obj: Any) { if (obj == 1) {// 5 6 System.out.println("1"); diff --git a/plugins/kotlin/testData/results/pkg/TestWhenBoolean.dec b/plugins/kotlin/testData/results/pkg/TestWhenBoolean.dec index ac3133544..297a1d514 100644 --- a/plugins/kotlin/testData/results/pkg/TestWhenBoolean.dec +++ b/plugins/kotlin/testData/results/pkg/TestWhenBoolean.dec @@ -1,6 +1,6 @@ package pkg -class TestWhenBoolean { +public class TestWhenBoolean { public fun testIf(a: Int, b: Int, c: Int, d: Int) { if (a == 1// 6 18 || b == 2// 7 diff --git a/plugins/kotlin/testData/results/pkg/TestWhenControlFlow.dec b/plugins/kotlin/testData/results/pkg/TestWhenControlFlow.dec index 05f8c9e64..cd8bb340d 100644 --- a/plugins/kotlin/testData/results/pkg/TestWhenControlFlow.dec +++ b/plugins/kotlin/testData/results/pkg/TestWhenControlFlow.dec @@ -1,6 +1,6 @@ package pkg -class TestWhenControlFlow { +public class TestWhenControlFlow { public fun test1(x: Int) { var xx: Int = x;// 5