Generate navigateToDecompiledLibraryTest from the same test data as navigateToLibrarySourceTest
Change test data format
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
WithInnerAndObject.class
|
||||
public companion <1>object {
|
||||
public final fun <2>foo(): kotlin.Unit { /* compiled code */ }
|
||||
@@ -2,8 +2,4 @@ import testData.libraries.*
|
||||
|
||||
fun foo() {
|
||||
WithInnerAndObject.foo()
|
||||
}
|
||||
|
||||
// main.kt
|
||||
// companion <1>object {
|
||||
// fun <2>foo() {
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
main.kt
|
||||
companion <1>object {
|
||||
fun <2>foo() {
|
||||
@@ -0,0 +1,3 @@
|
||||
ClassWithConstructor.class
|
||||
public final class <1><3>ClassWithConstructor public <2>constructor(a: kotlin.String, b: kotlin.Any) {
|
||||
public <4>constructor(a: kotlin.String) { /* compiled code */ }
|
||||
@@ -2,7 +2,3 @@ import testData.libraries.*
|
||||
|
||||
val x: ClassWithConstructor = ClassWithConstructor("abc", 239)
|
||||
val xx: ClassWithConstructor = ClassWithConstructor("abc")
|
||||
|
||||
// main.kt
|
||||
//public class <1><3>ClassWithConstructor<2>(val a: String, b: Any) {
|
||||
// <4>constructor(a: String): this(a, a)
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
main.kt
|
||||
public class <1><3>ClassWithConstructor<2>(val a: String, b: Any) {
|
||||
<4>constructor(a: String): this(a, a)
|
||||
@@ -0,0 +1,9 @@
|
||||
Color.class
|
||||
public final enum class <1><2>Color private constructor(rgb: kotlin.Int) : kotlin.Enum<testData.libraries.Color> {
|
||||
<3>RED,
|
||||
|
||||
GREEN,
|
||||
|
||||
BLUE;
|
||||
|
||||
public final val <4>rgb: kotlin.Int /* compiled code */
|
||||
+1
-5
@@ -1,8 +1,4 @@
|
||||
import testData.libraries.*
|
||||
|
||||
val color: Color? = Color.RED
|
||||
val rgb = color?.rgb
|
||||
|
||||
// main.kt
|
||||
//public enum class <1><2>Color(val <4>rgb : Int) {
|
||||
// <3>RED(0xFF0000),
|
||||
val rgb = color?.rgb
|
||||
@@ -0,0 +1,3 @@
|
||||
main.kt
|
||||
public enum class <1><2>Color(val <4>rgb : Int) {
|
||||
<3>RED(0xFF0000),
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
MainKt.class
|
||||
public inline fun <T> T.<1>filter(predicate: (T) -> kotlin.Boolean): T? { /* compiled code */ }
|
||||
@@ -1,7 +1,3 @@
|
||||
import testData.libraries.*
|
||||
|
||||
val v = 5.filter { it % 2 == 1 }
|
||||
|
||||
// main.kt
|
||||
//public inline fun <T> T.<1>filter(predicate: (T)-> Boolean) : T? = this
|
||||
|
||||
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
main.kt
|
||||
public inline fun <T> T.<1>filter(predicate: (T)-> Boolean) : T? = this
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
MainKt.class
|
||||
public val kotlin.String.<1>exProp: kotlin.String /* compiled code */
|
||||
|
||||
public val <T> testData.libraries.Pair<T, T>.<3>exProp: kotlin.String /* compiled code */
|
||||
Pair.class
|
||||
public final class Pair<A, B> public <2>constructor(first: A, second: B) {
|
||||
@@ -4,19 +4,4 @@ fun foo() {
|
||||
println("".exProp)
|
||||
val p = Pair(1, 2)
|
||||
println(p.exProp)
|
||||
}
|
||||
|
||||
// main.kt
|
||||
//public val String.<1>exProp : String
|
||||
//get() {
|
||||
// return this
|
||||
//}
|
||||
//
|
||||
//public val Int.exProp : Int
|
||||
//get() {
|
||||
// return this
|
||||
//}
|
||||
//
|
||||
//public class Pair<A, B><2>(val first: A, val second: B)
|
||||
//
|
||||
//public val <T> Pair<T, T>.<3>exProp : String
|
||||
}
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
main.kt
|
||||
public val String.<1>exProp : String
|
||||
get() {
|
||||
return this
|
||||
}
|
||||
|
||||
public val Int.exProp : Int
|
||||
get() {
|
||||
return this
|
||||
}
|
||||
|
||||
public class Pair<A, B><2>(val first: A, val second: B)
|
||||
|
||||
public val <T> Pair<T, T>.<3>exProp : String
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
MainKt.class
|
||||
public fun <T> <1>genericFunc(): T { /* compiled code */ }
|
||||
Vendored
-3
@@ -3,6 +3,3 @@ import testData.libraries.*
|
||||
fun test() {
|
||||
genericFunc<String>()
|
||||
}
|
||||
|
||||
// main.kt
|
||||
//public fun <T> <1>genericFunc() : T = throw Exception()
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
main.kt
|
||||
public fun <T> <1>genericFunc() : T = throw Exception()
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
MainKt.class
|
||||
public fun <T> <1>genericFunc(): T { /* compiled code */ }
|
||||
+1
-4
@@ -3,7 +3,4 @@ import testData.libraries.*
|
||||
|
||||
fun test() {
|
||||
val s : String = genericFunc()
|
||||
}
|
||||
|
||||
// main.kt
|
||||
//public fun <T> <1>genericFunc() : T = throw Exception()
|
||||
}
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
main.kt
|
||||
public fun <T> <1>genericFunc() : T = throw Exception()
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
MainKt.class
|
||||
public fun <4>func(): kotlin.Unit { /* compiled code */ }
|
||||
|
||||
public fun func(cs: kotlin.CharSequence): kotlin.Unit { /* compiled code */ }
|
||||
|
||||
public fun <3>func(a: kotlin.Int, b: kotlin.Int): kotlin.Unit { /* compiled code */ }
|
||||
|
||||
public fun <1><2>func(a: kotlin.Int, b: kotlin.String /* = compiled code */): kotlin.Unit { /* compiled code */ }
|
||||
@@ -6,12 +6,3 @@ fun foo() {
|
||||
func(5, 5)
|
||||
func()
|
||||
}
|
||||
|
||||
// main.kt
|
||||
//public fun <1><2>func(a : Int, b : String = "55") {
|
||||
//}
|
||||
//
|
||||
//public fun <3>func(a : Int, b : Int) {
|
||||
//}
|
||||
//
|
||||
//public fun <4>func() {
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
main.kt
|
||||
public fun <1><2>func(a : Int, b : String = "55") {
|
||||
}
|
||||
|
||||
public fun <3>func(a : Int, b : Int) {
|
||||
}
|
||||
|
||||
public fun <4>func() {
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
MainKt.class
|
||||
public val <1>globalVal: testData.libraries.Pair<kotlin.Int, kotlin.String> /* compiled code */
|
||||
|
||||
public val <2>globalValWithGetter: kotlin.Long /* compiled code */
|
||||
@@ -4,8 +4,3 @@ fun foo() {
|
||||
println(testData.libraries.globalVal)
|
||||
println(globalValWithGetter)
|
||||
}
|
||||
|
||||
// main.kt
|
||||
//public val <1>globalVal : Pair<Int, String> = Pair(239, "239")
|
||||
//
|
||||
//public val <2>globalValWithGetter : Long
|
||||
@@ -0,0 +1,4 @@
|
||||
main.kt
|
||||
public val <1>globalVal : Pair<Int, String> = Pair(239, "239")
|
||||
|
||||
public val <2>globalValWithGetter : Long
|
||||
@@ -0,0 +1,3 @@
|
||||
NamedObject.class
|
||||
public object <1>NamedObject {
|
||||
public final val <2>objectMember: kotlin.Int /* compiled code */
|
||||
@@ -1,7 +1,3 @@
|
||||
import testData.libraries.*
|
||||
|
||||
val x = NamedObject.objectMember
|
||||
|
||||
// main.kt
|
||||
//public object <1>NamedObject {
|
||||
// public val <2>objectMember: Int = 1
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
main.kt
|
||||
public object <1>NamedObject {
|
||||
public val <2>objectMember: Int = 1
|
||||
Vendored
+4
@@ -0,0 +1,4 @@
|
||||
MainKt.class
|
||||
public fun <T : kotlin.CharSequence> <2>funWithTypeParam(t: T): kotlin.Unit { /* compiled code */ }
|
||||
|
||||
public fun <T : kotlin.Number> <1>funWithTypeParam(t: T): kotlin.Unit { /* compiled code */ }
|
||||
@@ -4,9 +4,3 @@ fun main(args: Array<String>) {
|
||||
funWithTypeParam(1)
|
||||
funWithTypeParam("")
|
||||
}
|
||||
|
||||
// main.kt
|
||||
//public fun <T: CharSequence> <2>funWithTypeParam(t: T) {
|
||||
//}
|
||||
//
|
||||
//public fun <T: Number> <1>funWithTypeParam(t: T) {
|
||||
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
main.kt
|
||||
public fun <T: CharSequence> <2>funWithTypeParam(t: T) {
|
||||
}
|
||||
|
||||
public fun <T: Number> <1>funWithTypeParam(t: T) {
|
||||
@@ -0,0 +1,5 @@
|
||||
ClassWithAbstractAndOpenMembers.class
|
||||
public abstract class <1>ClassWithAbstractAndOpenMembers public constructor() {
|
||||
public abstract val abstractVal: kotlin.String
|
||||
|
||||
public abstract var <2><3>abstractVar: kotlin.String
|
||||
@@ -5,18 +5,3 @@ fun foo(a : ClassWithAbstractAndOpenMembers) {
|
||||
println(a.abstractVar)
|
||||
}
|
||||
|
||||
// main.kt
|
||||
//public abstract class <1>ClassWithAbstractAndOpenMembers {
|
||||
// public abstract fun abstractFun()
|
||||
// public open fun openFun() {
|
||||
// }
|
||||
//
|
||||
// public abstract val abstractVal : String
|
||||
// public open val openVal : String = ""
|
||||
// public open val openValWithGetter : String
|
||||
// get() {
|
||||
// return "239"
|
||||
// }
|
||||
//
|
||||
// public abstract var <2><3>abstractVar : String
|
||||
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
main.kt
|
||||
public abstract class <1>ClassWithAbstractAndOpenMembers {
|
||||
public abstract fun abstractFun()
|
||||
public open fun openFun() {
|
||||
}
|
||||
|
||||
public abstract val abstractVal : String
|
||||
public open val openVal : String = ""
|
||||
public open val openValWithGetter : String
|
||||
get() {
|
||||
return "239"
|
||||
}
|
||||
|
||||
public abstract var <2><3>abstractVar : String
|
||||
Vendored
+4
@@ -0,0 +1,4 @@
|
||||
ExtraKt.class
|
||||
public fun <1>func(str: kotlin.String): kotlin.Unit { /* compiled code */ }
|
||||
MainKt.class
|
||||
public fun <2>func(a: kotlin.Int, b: kotlin.String /* = compiled code */): kotlin.Unit { /* compiled code */ }
|
||||
@@ -4,8 +4,3 @@ fun foo() {
|
||||
func("5")
|
||||
func(5)
|
||||
}
|
||||
|
||||
// extra.kt
|
||||
//public fun <1>func(str : kotlin.String) {
|
||||
// main.kt
|
||||
//public fun <2>func(a : Int, b : String = "55") {
|
||||
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
extra.kt
|
||||
public fun <1>func(str : kotlin.String) {
|
||||
main.kt
|
||||
public fun <2>func(a : Int, b : String = "55") {
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
Double.class
|
||||
public final class Double public <3>constructor() {
|
||||
MainKt.class
|
||||
public fun <1>processDouble(d: kotlin.Double): kotlin.Unit { /* compiled code */ }
|
||||
|
||||
public fun <2>processDouble(d: testData.libraries.Double): kotlin.Unit { /* compiled code */ }
|
||||
@@ -4,10 +4,3 @@ fun foo() {
|
||||
processDouble(1.0);
|
||||
processDouble(testData.libraries.Double())
|
||||
}
|
||||
|
||||
// main.kt
|
||||
//public class <3>Double
|
||||
//
|
||||
//public fun <2>processDouble(d: Double) {}
|
||||
//
|
||||
//public fun <1>processDouble(d: kotlin.Double) {}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
main.kt
|
||||
public class <3>Double
|
||||
|
||||
public fun <2>processDouble(d: Double) {}
|
||||
|
||||
public fun <1>processDouble(d: kotlin.Double) {}
|
||||
Reference in New Issue
Block a user