Move test data for NavigateTo*Library tests to a more specific folder
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
// IntelliJ API Decompiler stub source generated from a class file
|
||||
// Implementation of methods is not available
|
||||
|
||||
package testData.libraries
|
||||
|
||||
[[public abstract class AbstractClass() {
|
||||
}]]
|
||||
@@ -0,0 +1,22 @@
|
||||
// IntelliJ API Decompiler stub source generated from a class file
|
||||
// Implementation of methods is not available
|
||||
|
||||
package testData.libraries
|
||||
|
||||
[[public abstract class ClassWithAbstractAndOpenMembers() {
|
||||
[public abstract val abstractVal: kotlin.String]
|
||||
|
||||
[public abstract var abstractVar: kotlin.String]
|
||||
|
||||
[public open val openVal: kotlin.String] /* compiled code */
|
||||
|
||||
[public open val openValWithGetter: kotlin.String] /* compiled code */
|
||||
|
||||
[public open var openVar: kotlin.String] /* compiled code */
|
||||
|
||||
[public open var openVarWithGetter: kotlin.String] /* compiled code */
|
||||
|
||||
[public abstract fun abstractFun(): kotlin.Unit]
|
||||
|
||||
[public open fun openFun(): kotlin.Unit { /* compiled code */ }]
|
||||
}]]
|
||||
@@ -0,0 +1,8 @@
|
||||
// IntelliJ API Decompiler stub source generated from a class file
|
||||
// Implementation of methods is not available
|
||||
|
||||
package testData.libraries
|
||||
|
||||
[[public final class ClassWithConstructor(a: kotlin.String, b: kotlin.Any) {
|
||||
[internal final val a: kotlin.String] /* compiled code */
|
||||
}]]
|
||||
@@ -0,0 +1,14 @@
|
||||
// IntelliJ API Decompiler stub source generated from a class file
|
||||
// Implementation of methods is not available
|
||||
|
||||
package testData.libraries
|
||||
|
||||
[[public final enum class Color(rgb: kotlin.Int) : kotlin.Enum<testData.libraries.Color> {
|
||||
[internal final val rgb: kotlin.Int] /* compiled code */
|
||||
|
||||
[[BLUE]]
|
||||
|
||||
[[GREEN]]
|
||||
|
||||
[[RED]]
|
||||
}]]
|
||||
@@ -0,0 +1,38 @@
|
||||
// IntelliJ API Decompiler stub source generated from a class file
|
||||
// Implementation of methods is not available
|
||||
|
||||
package testData.libraries
|
||||
|
||||
[public val globalVal: testData.libraries.Pair<kotlin.Int, kotlin.String>] /* compiled code */
|
||||
|
||||
[public val globalValWithGetter: kotlin.Long] /* compiled code */
|
||||
|
||||
[public val kotlin.Int.exProp: kotlin.Int] /* compiled code */
|
||||
|
||||
[public val kotlin.String.exProp: kotlin.String] /* compiled code */
|
||||
|
||||
[public val <T> testData.libraries.Pair<T, T>.exProp: kotlin.String] /* compiled code */
|
||||
|
||||
[public fun <T : kotlin.CharSequence> funWithTypeParam(t: T): kotlin.Unit { /* compiled code */ }]
|
||||
|
||||
[public fun <T : kotlin.Number> funWithTypeParam(t: T): kotlin.Unit { /* compiled code */ }]
|
||||
|
||||
[public fun func(): kotlin.Unit { /* compiled code */ }]
|
||||
|
||||
[public fun func(cs: kotlin.CharSequence): kotlin.Unit { /* compiled code */ }]
|
||||
|
||||
[public fun func(a: kotlin.Int, b: kotlin.Int): kotlin.Unit { /* compiled code */ }]
|
||||
|
||||
[public fun func(a: kotlin.Int, b: kotlin.String = /* compiled code */): kotlin.Unit { /* compiled code */ }]
|
||||
|
||||
[public fun func(str: kotlin.String): kotlin.Unit { /* compiled code */ }]
|
||||
|
||||
[public fun <T> genericFunc(): T { /* compiled code */ }]
|
||||
|
||||
[public fun main(args: kotlin.Array<kotlin.String>): kotlin.Unit { /* compiled code */ }]
|
||||
|
||||
[public fun processDouble(d: kotlin.Double): kotlin.Unit { /* compiled code */ }]
|
||||
|
||||
[public fun processDouble(d: testData.libraries.Double): kotlin.Unit { /* compiled code */ }]
|
||||
|
||||
[kotlin.inline public fun <T> T.filter(predicate: (T) -> kotlin.Boolean): T? { /* compiled code */ }]
|
||||
@@ -0,0 +1,8 @@
|
||||
// IntelliJ API Decompiler stub source generated from a class file
|
||||
// Implementation of methods is not available
|
||||
|
||||
package testData.libraries
|
||||
|
||||
[[public object NamedObject {
|
||||
[public final val objectMember: kotlin.Int] /* compiled code */
|
||||
}]]
|
||||
@@ -0,0 +1,7 @@
|
||||
// IntelliJ API Decompiler stub source generated from a class file
|
||||
// Implementation of methods is not available
|
||||
|
||||
package testData.libraries
|
||||
|
||||
[[public final class SimpleClass() {
|
||||
}]]
|
||||
@@ -0,0 +1,7 @@
|
||||
// IntelliJ API Decompiler stub source generated from a class file
|
||||
// Implementation of methods is not available
|
||||
|
||||
package testData.libraries
|
||||
|
||||
[public trait SimpleTrait {
|
||||
}]
|
||||
@@ -0,0 +1,7 @@
|
||||
// IntelliJ API Decompiler stub source generated from a class file
|
||||
// Implementation of methods is not available
|
||||
|
||||
package testData.libraries
|
||||
|
||||
[[public final class SimpleTraitImpl() : testData.libraries.SimpleTrait {
|
||||
}]]
|
||||
@@ -0,0 +1,16 @@
|
||||
// IntelliJ API Decompiler stub source generated from a class file
|
||||
// Implementation of methods is not available
|
||||
|
||||
package testData.libraries
|
||||
|
||||
[[public final class WithInnerAndObject() {
|
||||
[[public class object {
|
||||
[internal final fun foo(): kotlin.Unit { /* compiled code */ }]
|
||||
}]]
|
||||
|
||||
[[internal final class MyInner() {
|
||||
[internal trait MyInnerInner {
|
||||
[internal abstract fun innerInnerMethod(): kotlin.Unit]
|
||||
}]
|
||||
}]]
|
||||
}]]
|
||||
@@ -0,0 +1,9 @@
|
||||
// IntelliJ API Decompiler stub source generated from a class file
|
||||
// Implementation of methods is not available
|
||||
|
||||
package testData.libraries
|
||||
|
||||
[[public final class WithTraitClassObject() {
|
||||
[[public class object : testData.libraries.SimpleTrait {
|
||||
}]]
|
||||
}]]
|
||||
@@ -0,0 +1,6 @@
|
||||
package testData.libraries
|
||||
|
||||
import kotlin as gogland
|
||||
|
||||
public fun func(str : gogland.String) {
|
||||
}
|
||||
@@ -0,0 +1,121 @@
|
||||
package testData.libraries
|
||||
|
||||
public trait SimpleTrait {
|
||||
}
|
||||
|
||||
public class SimpleClass {
|
||||
}
|
||||
|
||||
public class SimpleTraitImpl : SimpleTrait {
|
||||
}
|
||||
|
||||
public class WithInnerAndObject {
|
||||
class object {
|
||||
fun foo() {
|
||||
}
|
||||
}
|
||||
|
||||
class MyInner {
|
||||
trait MyInnerInner {
|
||||
fun innerInnerMethod()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public class WithTraitClassObject {
|
||||
class object : SimpleTrait
|
||||
}
|
||||
|
||||
public abstract class AbstractClass {
|
||||
}
|
||||
|
||||
public object NamedObject {
|
||||
public val objectMember: Int = 1
|
||||
}
|
||||
|
||||
public enum class Color(val rgb : Int) {
|
||||
RED : Color(0xFF0000)
|
||||
GREEN : Color(0x00FF00)
|
||||
BLUE : Color(0x0000FF)
|
||||
}
|
||||
|
||||
public abstract class 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 abstractVar : String
|
||||
public open var openVar : String = ""
|
||||
public open var openVarWithGetter : String
|
||||
get() {
|
||||
return "239"
|
||||
}
|
||||
set(value) {
|
||||
}
|
||||
}
|
||||
|
||||
public class ClassWithConstructor(val a: String, b: Any)
|
||||
|
||||
public fun main(args : Array<String>) {
|
||||
}
|
||||
|
||||
public val globalVal : Pair<Int, String> = Pair(239, "239")
|
||||
|
||||
public val globalValWithGetter : Long
|
||||
get() {
|
||||
return System.currentTimeMillis()
|
||||
}
|
||||
|
||||
public val String.exProp : String
|
||||
get() {
|
||||
return this
|
||||
}
|
||||
|
||||
public val Int.exProp : Int
|
||||
get() {
|
||||
return this
|
||||
}
|
||||
|
||||
public class Pair<A, B>(val first: A, val second: B)
|
||||
|
||||
public val <T> Pair<T, T>.exProp : String
|
||||
get() {
|
||||
return "${this.first} : ${this.second}"
|
||||
}
|
||||
|
||||
public fun func(a : Int, b : String = "55") {
|
||||
}
|
||||
|
||||
public fun func(a : Int, b : Int) {
|
||||
}
|
||||
|
||||
public fun func() {
|
||||
}
|
||||
|
||||
public fun func(cs : CharSequence) {
|
||||
}
|
||||
|
||||
public fun <T> genericFunc() : T = throw Exception()
|
||||
|
||||
public inline fun <T> T.filter(predicate: (T)-> Boolean) : T? = this
|
||||
|
||||
|
||||
public class Double
|
||||
|
||||
public fun processDouble(d: Double) {}
|
||||
|
||||
public fun processDouble(d: kotlin.Double) {}
|
||||
|
||||
|
||||
public fun <T: CharSequence> funWithTypeParam(t: T) {
|
||||
}
|
||||
|
||||
public fun <T: Number> funWithTypeParam(t: T) {
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
import testData.libraries.*
|
||||
|
||||
fun foo() {
|
||||
WithInnerAndObject.foo()
|
||||
}
|
||||
|
||||
// main.kt
|
||||
//public class <1>WithInnerAndObject {
|
||||
// class object {
|
||||
// fun <2>foo() {
|
||||
@@ -0,0 +1,6 @@
|
||||
import testData.libraries.*
|
||||
|
||||
val x: ClassWithConstructor = ClassWithConstructor("abc", 239)
|
||||
|
||||
// main.kt
|
||||
//public class <1><2>ClassWithConstructor(val a: String, b: Any)
|
||||
@@ -0,0 +1,8 @@
|
||||
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 : Color(0xFF0000)
|
||||
@@ -0,0 +1,7 @@
|
||||
import testData.libraries.*
|
||||
|
||||
val v = 5.filter { it % 2 == 1 }
|
||||
|
||||
// main.kt
|
||||
//public inline fun <T> T.<1>filter(predicate: (T)-> Boolean) : T? = this
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
import testData.libraries.*
|
||||
|
||||
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 <2>Pair<A, B>(val first: A, val second: B)
|
||||
//
|
||||
//public val <T> Pair<T, T>.<3>exProp : String
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
import testData.libraries.*
|
||||
|
||||
fun test() {
|
||||
genericFunc<String>()
|
||||
}
|
||||
|
||||
// main.kt
|
||||
//public fun <T> <1>genericFunc() : T = throw Exception()
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
import testData.libraries.*
|
||||
|
||||
|
||||
fun test() {
|
||||
val s : String = genericFunc()
|
||||
}
|
||||
|
||||
// main.kt
|
||||
//public fun <T> <1>genericFunc() : T = throw Exception()
|
||||
@@ -0,0 +1,17 @@
|
||||
import testData.libraries.*
|
||||
|
||||
fun foo() {
|
||||
func(5)
|
||||
func(5, "5")
|
||||
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,11 @@
|
||||
import testData.libraries.*
|
||||
|
||||
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,7 @@
|
||||
import testData.libraries.*
|
||||
|
||||
val x = NamedObject.objectMember
|
||||
|
||||
// main.kt
|
||||
//public object <1>NamedObject {
|
||||
// public val <2>objectMember: Int = 1
|
||||
@@ -0,0 +1,12 @@
|
||||
import testData.libraries.*
|
||||
|
||||
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) {
|
||||
@@ -0,0 +1,22 @@
|
||||
import testData.libraries.*
|
||||
|
||||
fun foo(a : ClassWithAbstractAndOpenMembers) {
|
||||
a.abstractVar = "v"
|
||||
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,11 @@
|
||||
import testData.libraries.*
|
||||
|
||||
fun foo() {
|
||||
func("5")
|
||||
func(5)
|
||||
}
|
||||
|
||||
// extra.kt
|
||||
//public fun <1>func(str : gogland.String) {
|
||||
// main.kt
|
||||
//public fun <2>func(a : Int, b : String = "55") {
|
||||
@@ -0,0 +1,13 @@
|
||||
import testData.libraries.*
|
||||
|
||||
fun foo() {
|
||||
processDouble(1.0);
|
||||
processDouble(Double())
|
||||
}
|
||||
|
||||
// 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