Add test for decompiled text
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
// IntelliJ API Decompiler stub source generated from a class file
|
||||
// Implementation of methods is not available
|
||||
|
||||
package test
|
||||
|
||||
kotlin.data dependency.A dependency.B dependency.C internal final class Annotations() {
|
||||
kotlin.inline dependency.A dependency.B dependency.C internal final val p: kotlin.Int /* compiled code */
|
||||
|
||||
kotlin.inline dependency.A dependency.B dependency.C internal final fun f(dependency.A dependency.B dependency.C kotlin.deprecated i: kotlin.Int): kotlin.Unit { /* compiled code */ }
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
package test
|
||||
|
||||
import dependency.*
|
||||
|
||||
data A("a") B(1) C class Annotations {
|
||||
|
||||
inline A("f") B(2) C fun f(A("i") B(3) C deprecated("1") i: Int) {
|
||||
}
|
||||
|
||||
inline A("p") B(3) C val p: Int = 2
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
package dependency
|
||||
|
||||
annotation class A(val s: String)
|
||||
annotation class B(val i: Int)
|
||||
annotation class C
|
||||
@@ -0,0 +1,24 @@
|
||||
// IntelliJ API Decompiler stub source generated from a class file
|
||||
// Implementation of methods is not available
|
||||
|
||||
package test
|
||||
|
||||
internal final class ClassWithClassObject() {
|
||||
internal class object {
|
||||
internal final val a: test.A /* compiled code */
|
||||
|
||||
public final var b: test.B /* compiled code */
|
||||
|
||||
internal final val kotlin.Int.g: kotlin.Int /* compiled code */
|
||||
|
||||
internal final fun <T, K, G> complexFun(a: T, b: K, c: G): G { /* compiled code */ }
|
||||
|
||||
internal final fun f(): kotlin.Unit { /* compiled code */ }
|
||||
|
||||
private final fun privateFun(): kotlin.Unit { /* compiled code */ }
|
||||
|
||||
internal final fun kotlin.Int.f(): kotlin.Unit { /* compiled code */ }
|
||||
}
|
||||
|
||||
internal final fun f(): kotlin.Unit { /* compiled code */ }
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
package test
|
||||
|
||||
class ClassWithClassObject {
|
||||
fun f() {
|
||||
}
|
||||
|
||||
class object {
|
||||
fun f() {
|
||||
}
|
||||
|
||||
fun Int.f() {
|
||||
}
|
||||
|
||||
private fun privateFun() {
|
||||
}
|
||||
|
||||
val a: A = A()
|
||||
|
||||
public var b: B = B()
|
||||
|
||||
val Int.g: Int
|
||||
get() = this + 2
|
||||
|
||||
fun <T, K, G> complexFun(a: T, b: K, c: G): G {
|
||||
throw AssertionError()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class B {
|
||||
}
|
||||
|
||||
class A {
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
// IntelliJ API Decompiler stub source generated from a class file
|
||||
// Implementation of methods is not available
|
||||
|
||||
package test
|
||||
|
||||
public final enum class Enum() : kotlin.Enum<test.Enum>, dependency.Tr {
|
||||
ONE
|
||||
|
||||
THREE
|
||||
|
||||
TWO
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
package dependency
|
||||
|
||||
trait Tr {
|
||||
fun f() {
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
package test
|
||||
|
||||
import dependency.*
|
||||
|
||||
public enum class Enum : Tr {
|
||||
ONE
|
||||
TWO
|
||||
THREE {
|
||||
fun g() {
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
// IntelliJ API Decompiler stub source generated from a class file
|
||||
// Implementation of methods is not available
|
||||
|
||||
package test
|
||||
|
||||
internal final class NestedClasses() {
|
||||
internal final fun f(): kotlin.Unit { /* compiled code */ }
|
||||
|
||||
public final inner class Inner() {
|
||||
internal final fun f(): kotlin.Unit { /* compiled code */ }
|
||||
|
||||
private final inner class II() {
|
||||
internal final fun f(): kotlin.Unit { /* compiled code */ }
|
||||
}
|
||||
}
|
||||
|
||||
private final class Nested() {
|
||||
internal final fun f(): kotlin.Unit { /* compiled code */ }
|
||||
|
||||
internal final inner class NI() {
|
||||
internal final fun f(): kotlin.Unit { /* compiled code */ }
|
||||
}
|
||||
|
||||
public final class NN() {
|
||||
internal final fun f(): kotlin.Unit { /* compiled code */ }
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
package test
|
||||
|
||||
class NestedClasses {
|
||||
fun f() {
|
||||
}
|
||||
|
||||
private class Nested {
|
||||
fun f() {
|
||||
}
|
||||
|
||||
public class NN {
|
||||
fun f() {
|
||||
}
|
||||
}
|
||||
|
||||
inner class NI {
|
||||
fun f() {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public inner class Inner {
|
||||
fun f() {
|
||||
}
|
||||
|
||||
private inner class II {
|
||||
fun f() {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
// IntelliJ API Decompiler stub source generated from a class file
|
||||
// Implementation of methods is not available
|
||||
|
||||
package test
|
||||
|
||||
internal object Object {
|
||||
internal final val kotlin.Int.g: kotlin.Int /* compiled code */
|
||||
|
||||
internal final fun <T, K, G> complexFun(a: T, b: K, c: G): G { /* compiled code */ }
|
||||
|
||||
internal final fun f(): kotlin.Unit { /* compiled code */ }
|
||||
|
||||
private final fun privateFun(): kotlin.Unit { /* compiled code */ }
|
||||
|
||||
internal final fun kotlin.Int.f(): kotlin.Unit { /* compiled code */ }
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
package test
|
||||
|
||||
object Object {
|
||||
fun f() {
|
||||
}
|
||||
|
||||
fun Int.f() {
|
||||
}
|
||||
|
||||
private fun privateFun() {
|
||||
}
|
||||
|
||||
val Int.g: Int
|
||||
get() = this + 2
|
||||
|
||||
fun <T, K, G> complexFun(a: T, b: K, c: G): G {
|
||||
throw AssertionError()
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
// IntelliJ API Decompiler stub source generated from a class file
|
||||
// Implementation of methods is not available
|
||||
|
||||
package test
|
||||
|
||||
internal abstract class SimpleClass() : dependency.D<dependency.Tr, kotlin.Int>, dependency.Tr, kotlin.List<kotlin.String> {
|
||||
internal final val a: dependency.A /* compiled code */
|
||||
|
||||
public final var b: dependency.B /* compiled code */
|
||||
|
||||
internal final val kotlin.Int.g: kotlin.Int /* compiled code */
|
||||
|
||||
internal final fun <T, K, G> complexFun(a: T, b: K, c: G): G { /* compiled code */ }
|
||||
|
||||
internal final fun f(): kotlin.Unit { /* compiled code */ }
|
||||
|
||||
internal final fun g(d: dependency.D<kotlin.String, dependency.Tr>): kotlin.List<dependency.D<dependency.A, kotlin.Int>> { /* compiled code */ }
|
||||
|
||||
private final fun privateFun(): kotlin.Unit { /* compiled code */ }
|
||||
|
||||
internal final fun kotlin.Int.f(): kotlin.Unit { /* compiled code */ }
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
package dependency
|
||||
|
||||
class B {
|
||||
}
|
||||
|
||||
class A {
|
||||
}
|
||||
|
||||
open class D<T, G> {
|
||||
}
|
||||
|
||||
trait Tr {
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
package test
|
||||
|
||||
import dependency.*
|
||||
|
||||
abstract class SimpleClass: D<Tr, Int>(), Tr, List<String> {
|
||||
fun f() {
|
||||
}
|
||||
|
||||
fun g(d: D<String, Tr>): List<D<A, Int>> {
|
||||
throw AssertionError()
|
||||
}
|
||||
|
||||
fun Int.f() {
|
||||
}
|
||||
|
||||
private fun privateFun() {
|
||||
}
|
||||
|
||||
val a: A = A()
|
||||
|
||||
public var b: B = B()
|
||||
|
||||
val Int.g: Int
|
||||
get() = this + 2
|
||||
|
||||
fun <T, K, G> complexFun(a: T, b: K, c: G): G {
|
||||
throw AssertionError()
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
// IntelliJ API Decompiler stub source generated from a class file
|
||||
// Implementation of methods is not available
|
||||
|
||||
package test
|
||||
|
||||
private var i: kotlin.Int /* compiled code */
|
||||
|
||||
internal val p: kotlin.Int /* compiled code */
|
||||
|
||||
internal fun f(): kotlin.Unit { /* compiled code */ }
|
||||
|
||||
internal fun kotlin.Int.plus(i: kotlin.Int): kotlin.Int { /* compiled code */ }
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
package test
|
||||
|
||||
fun f() {}
|
||||
val p = 3
|
||||
private var i = 2
|
||||
|
||||
fun Int.plus(i: Int) = this + i
|
||||
|
||||
class ShouldNotBeVisible1
|
||||
trait ShouldNotBeVisible2
|
||||
Reference in New Issue
Block a user