[FIR IDE] Add unwrapping substitution overrides which doesn't affect function's signature
Also, do not use PSI to restore SUBSTITUTION_OVERRIDE function/property symbols
This commit is contained in:
committed by
teamcityserver
parent
2766dc938b
commit
fa8bb47bdf
+4
@@ -0,0 +1,4 @@
|
||||
KtFunctionCall:
|
||||
argumentMapping = { 1 -> (r: kotlin.Int) }
|
||||
targetFunction = /A.foo(<dispatch receiver>: A<kotlin.String>, r: kotlin.Int): kotlin.Unit
|
||||
substitutor = <map substitutor: {R = kotlin/Int}>
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
KtFunctionCall:
|
||||
argumentMapping = { 1 -> (r: kotlin.Int) }
|
||||
targetFunction = /A.foo(<dispatch receiver>: A<kotlin.String>, r: kotlin.Int): kotlin.Unit
|
||||
targetFunction = /A.foo(<dispatch receiver>: A<T>, r: R): kotlin.Unit
|
||||
substitutor = <map substitutor: {R = kotlin/Int}>
|
||||
+2
-2
@@ -1,4 +1,4 @@
|
||||
Resolved to:
|
||||
0: (in kotlin.collections.IntIterator) abstract operator fun hasNext(): kotlin.Boolean
|
||||
1: (in kotlin.collections.IntIterator) operator fun next(): kotlin.Int
|
||||
0: (in kotlin.collections.IntIterator) operator fun next(): kotlin.Int
|
||||
1: (in kotlin.collections.Iterator) operator fun hasNext(): kotlin.Boolean
|
||||
2: (in kotlin.ranges.IntProgression) open operator fun iterator(): kotlin.collections.IntIterator
|
||||
+2
-2
@@ -1,4 +1,4 @@
|
||||
Resolved to:
|
||||
0: (in kotlin.collections.CharIterator) abstract operator fun hasNext(): kotlin.Boolean
|
||||
1: (in kotlin.collections.CharIterator) operator fun next(): kotlin.Char
|
||||
0: (in kotlin.collections.CharIterator) operator fun next(): kotlin.Char
|
||||
1: (in kotlin.collections.Iterator) operator fun hasNext(): kotlin.Boolean
|
||||
2: (in kotlin.text) operator fun kotlin.CharSequence.iterator(): kotlin.collections.CharIterator
|
||||
@@ -442,7 +442,7 @@ KtFunctionSymbol:
|
||||
|
||||
KtFunctionSymbol:
|
||||
annotationsList: []
|
||||
callableIdIfNonLocal: kotlin/collections/MutableList.isEmpty
|
||||
callableIdIfNonLocal: kotlin/collections/List.isEmpty
|
||||
hasStableParameterNames: true
|
||||
isExtension: false
|
||||
isExternal: false
|
||||
@@ -461,7 +461,7 @@ KtFunctionSymbol:
|
||||
typeParameters: []
|
||||
valueParameters: []
|
||||
visibility: Public
|
||||
getDispatchReceiver(): kotlin/collections/MutableList<E>
|
||||
getDispatchReceiver(): kotlin/collections/List<E>
|
||||
deprecationStatus: null
|
||||
|
||||
KtFunctionSymbol:
|
||||
@@ -516,10 +516,10 @@ KtFunctionSymbol:
|
||||
|
||||
KtKotlinPropertySymbol:
|
||||
annotationsList: []
|
||||
callableIdIfNonLocal: kotlin/collections/MutableList.size
|
||||
getter: null
|
||||
callableIdIfNonLocal: kotlin/collections/List.size
|
||||
getter: KtPropertyGetterSymbol(<getter>)
|
||||
hasBackingField: false
|
||||
hasGetter: false
|
||||
hasGetter: true
|
||||
hasSetter: false
|
||||
initializer: null
|
||||
isConst: false
|
||||
@@ -539,7 +539,7 @@ KtKotlinPropertySymbol:
|
||||
symbolKind: CLASS_MEMBER
|
||||
typeParameters: []
|
||||
visibility: Public
|
||||
getDispatchReceiver(): kotlin/collections/MutableList<E>
|
||||
getDispatchReceiver(): kotlin/collections/List<E>
|
||||
deprecationStatus: null
|
||||
getterDeprecationStatus: null
|
||||
javaGetterName: getSize
|
||||
|
||||
Vendored
+15
@@ -0,0 +1,15 @@
|
||||
package test
|
||||
|
||||
class Foo
|
||||
|
||||
abstract class Base<T> {
|
||||
fun noGeneric() {}
|
||||
|
||||
fun withOuterGeneric(t: T) {}
|
||||
|
||||
fun <TT> withOwnGeneric(tt: TT) {}
|
||||
|
||||
fun <TT> withOuterAndOwnGeneric(t: T, tt: TT) {}
|
||||
}
|
||||
|
||||
class <caret>ClassWithGenericBase : Base<Foo>()
|
||||
Vendored
+45
@@ -0,0 +1,45 @@
|
||||
KtFunctionSymbol:
|
||||
callableIdIfNonLocal: test/Base.noGeneric
|
||||
name: noGeneric
|
||||
origin: SOURCE
|
||||
getDispatchReceiver(): test/Base<T>
|
||||
|
||||
KtFunctionSymbol:
|
||||
callableIdIfNonLocal: test/ClassWithGenericBase.withOuterGeneric
|
||||
name: withOuterGeneric
|
||||
origin: SOURCE
|
||||
getDispatchReceiver(): test/ClassWithGenericBase
|
||||
|
||||
KtFunctionSymbol:
|
||||
callableIdIfNonLocal: test/Base.withOwnGeneric
|
||||
name: withOwnGeneric
|
||||
origin: SOURCE
|
||||
getDispatchReceiver(): test/Base<T>
|
||||
|
||||
KtFunctionSymbol:
|
||||
callableIdIfNonLocal: test/ClassWithGenericBase.withOuterAndOwnGeneric
|
||||
name: withOuterAndOwnGeneric
|
||||
origin: SOURCE
|
||||
getDispatchReceiver(): test/ClassWithGenericBase
|
||||
|
||||
KtFunctionSymbol:
|
||||
callableIdIfNonLocal: kotlin/Any.equals
|
||||
name: equals
|
||||
origin: LIBRARY
|
||||
getDispatchReceiver(): kotlin/Any
|
||||
|
||||
KtFunctionSymbol:
|
||||
callableIdIfNonLocal: kotlin/Any.hashCode
|
||||
name: hashCode
|
||||
origin: LIBRARY
|
||||
getDispatchReceiver(): kotlin/Any
|
||||
|
||||
KtFunctionSymbol:
|
||||
callableIdIfNonLocal: kotlin/Any.toString
|
||||
name: toString
|
||||
origin: LIBRARY
|
||||
getDispatchReceiver(): kotlin/Any
|
||||
|
||||
KtConstructorSymbol:
|
||||
callableIdIfNonLocal: null
|
||||
origin: SOURCE_MEMBER_GENERATED
|
||||
Vendored
+15
@@ -0,0 +1,15 @@
|
||||
package test
|
||||
|
||||
class Foo
|
||||
|
||||
abstract class Base<T> {
|
||||
val noGeneric: Foo? = null
|
||||
|
||||
val withOuterGeneric: T? = null
|
||||
|
||||
val <TT> TT.withOwnGeneric: TT? get() = null
|
||||
|
||||
val <TT> TT.withOuterAndOwnGeneric: T? get() = null
|
||||
}
|
||||
|
||||
class <caret>ClassWithGenericBase : Base<Foo>()
|
||||
Vendored
+45
@@ -0,0 +1,45 @@
|
||||
KtKotlinPropertySymbol:
|
||||
callableIdIfNonLocal: test/Base.noGeneric
|
||||
name: noGeneric
|
||||
origin: SOURCE
|
||||
getDispatchReceiver(): test/Base<T>
|
||||
|
||||
KtKotlinPropertySymbol:
|
||||
callableIdIfNonLocal: test/ClassWithGenericBase.withOuterGeneric
|
||||
name: withOuterGeneric
|
||||
origin: SOURCE
|
||||
getDispatchReceiver(): test/ClassWithGenericBase
|
||||
|
||||
KtKotlinPropertySymbol:
|
||||
callableIdIfNonLocal: test/Base.withOwnGeneric
|
||||
name: withOwnGeneric
|
||||
origin: SOURCE
|
||||
getDispatchReceiver(): test/Base<T>
|
||||
|
||||
KtKotlinPropertySymbol:
|
||||
callableIdIfNonLocal: test/ClassWithGenericBase.withOuterAndOwnGeneric
|
||||
name: withOuterAndOwnGeneric
|
||||
origin: SOURCE
|
||||
getDispatchReceiver(): test/ClassWithGenericBase
|
||||
|
||||
KtFunctionSymbol:
|
||||
callableIdIfNonLocal: kotlin/Any.equals
|
||||
name: equals
|
||||
origin: LIBRARY
|
||||
getDispatchReceiver(): kotlin/Any
|
||||
|
||||
KtFunctionSymbol:
|
||||
callableIdIfNonLocal: kotlin/Any.hashCode
|
||||
name: hashCode
|
||||
origin: LIBRARY
|
||||
getDispatchReceiver(): kotlin/Any
|
||||
|
||||
KtFunctionSymbol:
|
||||
callableIdIfNonLocal: kotlin/Any.toString
|
||||
name: toString
|
||||
origin: LIBRARY
|
||||
getDispatchReceiver(): kotlin/Any
|
||||
|
||||
KtConstructorSymbol:
|
||||
callableIdIfNonLocal: null
|
||||
origin: SOURCE_MEMBER_GENERATED
|
||||
Vendored
+20
@@ -0,0 +1,20 @@
|
||||
package test
|
||||
|
||||
class SomeClass1
|
||||
class SomeClass2
|
||||
|
||||
interface InterfaceWithFunBase<T1, T2> {
|
||||
fun noGenerics_InterfaceWithFunBase() {}
|
||||
|
||||
fun withOuterGenericT1_InterfaceWithFunBase(): T1 {}
|
||||
|
||||
fun withOuterGenericT2_InterfaceWithFunBase(): T2 {}
|
||||
}
|
||||
|
||||
interface InterfaceWithFun<T> : InterfaceWithFunBase<SomeClass1, T> {
|
||||
fun noGenerics_InterfaceWithFun() {}
|
||||
|
||||
fun withOuterGeneric_InterfaceWithFun(): T {}
|
||||
}
|
||||
|
||||
abstract class <caret>ClassWithInterfaceWithFun : InterfaceWithFun<SomeClass2>
|
||||
Vendored
+51
@@ -0,0 +1,51 @@
|
||||
KtFunctionSymbol:
|
||||
callableIdIfNonLocal: test/InterfaceWithFun.noGenerics_InterfaceWithFun
|
||||
name: noGenerics_InterfaceWithFun
|
||||
origin: SOURCE
|
||||
getDispatchReceiver(): test/InterfaceWithFun<T>
|
||||
|
||||
KtFunctionSymbol:
|
||||
callableIdIfNonLocal: test/ClassWithInterfaceWithFun.withOuterGeneric_InterfaceWithFun
|
||||
name: withOuterGeneric_InterfaceWithFun
|
||||
origin: SOURCE
|
||||
getDispatchReceiver(): test/ClassWithInterfaceWithFun
|
||||
|
||||
KtFunctionSymbol:
|
||||
callableIdIfNonLocal: test/InterfaceWithFunBase.noGenerics_InterfaceWithFunBase
|
||||
name: noGenerics_InterfaceWithFunBase
|
||||
origin: SOURCE
|
||||
getDispatchReceiver(): test/InterfaceWithFunBase<T1, T2>
|
||||
|
||||
KtFunctionSymbol:
|
||||
callableIdIfNonLocal: test/InterfaceWithFun.withOuterGenericT1_InterfaceWithFunBase
|
||||
name: withOuterGenericT1_InterfaceWithFunBase
|
||||
origin: SOURCE
|
||||
getDispatchReceiver(): test/InterfaceWithFun<T>
|
||||
|
||||
KtFunctionSymbol:
|
||||
callableIdIfNonLocal: test/ClassWithInterfaceWithFun.withOuterGenericT2_InterfaceWithFunBase
|
||||
name: withOuterGenericT2_InterfaceWithFunBase
|
||||
origin: SOURCE
|
||||
getDispatchReceiver(): test/ClassWithInterfaceWithFun
|
||||
|
||||
KtFunctionSymbol:
|
||||
callableIdIfNonLocal: kotlin/Any.equals
|
||||
name: equals
|
||||
origin: LIBRARY
|
||||
getDispatchReceiver(): kotlin/Any
|
||||
|
||||
KtFunctionSymbol:
|
||||
callableIdIfNonLocal: kotlin/Any.hashCode
|
||||
name: hashCode
|
||||
origin: LIBRARY
|
||||
getDispatchReceiver(): kotlin/Any
|
||||
|
||||
KtFunctionSymbol:
|
||||
callableIdIfNonLocal: kotlin/Any.toString
|
||||
name: toString
|
||||
origin: LIBRARY
|
||||
getDispatchReceiver(): kotlin/Any
|
||||
|
||||
KtConstructorSymbol:
|
||||
callableIdIfNonLocal: null
|
||||
origin: SOURCE_MEMBER_GENERATED
|
||||
Vendored
+31
@@ -0,0 +1,31 @@
|
||||
package test
|
||||
|
||||
class SomeClass1
|
||||
class SomeClass2
|
||||
|
||||
interface InterfaceWithValBase<T1, T2> {
|
||||
val noGenerics_InterfaceWithValBase: SomeClass1
|
||||
|
||||
val withOuterGenericT1_InterfaceWithValBase: T1
|
||||
|
||||
val withOuterGenericT2_InterfaceWithValBase: T2
|
||||
|
||||
val <Own> Own.withOwnGeneric_InterfaceWithValBase: SomeClass1
|
||||
|
||||
val <Own> Own.withOwnAndOuterGenericT1_InterfaceWithValBase: T1
|
||||
|
||||
val <Own> Own.withOwnAndOuterGenericT2_InterfaceWithValBase: T2
|
||||
}
|
||||
|
||||
interface InterfaceWithVal<T> : InterfaceWithValBase<SomeClass1, T> {
|
||||
val noGenerics_InterfaceWithVal: SomeClass1
|
||||
|
||||
val withOuterGeneric_InterfaceWithVal: T
|
||||
|
||||
val <Own> Own.withOwnGeneric_InterfaceWithVal: SomeClass1
|
||||
|
||||
val <Own> Own.withOwnAndOuterGeneric_InterfaceWithVal: T
|
||||
}
|
||||
|
||||
|
||||
abstract class <caret>ClassWithInterfaceWithVal : InterfaceWithVal<SomeClass2>
|
||||
Vendored
+81
@@ -0,0 +1,81 @@
|
||||
KtKotlinPropertySymbol:
|
||||
callableIdIfNonLocal: test/InterfaceWithVal.noGenerics_InterfaceWithVal
|
||||
name: noGenerics_InterfaceWithVal
|
||||
origin: SOURCE
|
||||
getDispatchReceiver(): test/InterfaceWithVal<T>
|
||||
|
||||
KtKotlinPropertySymbol:
|
||||
callableIdIfNonLocal: test/ClassWithInterfaceWithVal.withOuterGeneric_InterfaceWithVal
|
||||
name: withOuterGeneric_InterfaceWithVal
|
||||
origin: SOURCE
|
||||
getDispatchReceiver(): test/ClassWithInterfaceWithVal
|
||||
|
||||
KtKotlinPropertySymbol:
|
||||
callableIdIfNonLocal: test/InterfaceWithVal.withOwnGeneric_InterfaceWithVal
|
||||
name: withOwnGeneric_InterfaceWithVal
|
||||
origin: SOURCE
|
||||
getDispatchReceiver(): test/InterfaceWithVal<T>
|
||||
|
||||
KtKotlinPropertySymbol:
|
||||
callableIdIfNonLocal: test/ClassWithInterfaceWithVal.withOwnAndOuterGeneric_InterfaceWithVal
|
||||
name: withOwnAndOuterGeneric_InterfaceWithVal
|
||||
origin: SOURCE
|
||||
getDispatchReceiver(): test/ClassWithInterfaceWithVal
|
||||
|
||||
KtKotlinPropertySymbol:
|
||||
callableIdIfNonLocal: test/InterfaceWithValBase.noGenerics_InterfaceWithValBase
|
||||
name: noGenerics_InterfaceWithValBase
|
||||
origin: SOURCE
|
||||
getDispatchReceiver(): test/InterfaceWithValBase<T1, T2>
|
||||
|
||||
KtKotlinPropertySymbol:
|
||||
callableIdIfNonLocal: test/InterfaceWithVal.withOuterGenericT1_InterfaceWithValBase
|
||||
name: withOuterGenericT1_InterfaceWithValBase
|
||||
origin: SOURCE
|
||||
getDispatchReceiver(): test/InterfaceWithVal<T>
|
||||
|
||||
KtKotlinPropertySymbol:
|
||||
callableIdIfNonLocal: test/ClassWithInterfaceWithVal.withOuterGenericT2_InterfaceWithValBase
|
||||
name: withOuterGenericT2_InterfaceWithValBase
|
||||
origin: SOURCE
|
||||
getDispatchReceiver(): test/ClassWithInterfaceWithVal
|
||||
|
||||
KtKotlinPropertySymbol:
|
||||
callableIdIfNonLocal: test/InterfaceWithValBase.withOwnGeneric_InterfaceWithValBase
|
||||
name: withOwnGeneric_InterfaceWithValBase
|
||||
origin: SOURCE
|
||||
getDispatchReceiver(): test/InterfaceWithValBase<T1, T2>
|
||||
|
||||
KtKotlinPropertySymbol:
|
||||
callableIdIfNonLocal: test/InterfaceWithVal.withOwnAndOuterGenericT1_InterfaceWithValBase
|
||||
name: withOwnAndOuterGenericT1_InterfaceWithValBase
|
||||
origin: SOURCE
|
||||
getDispatchReceiver(): test/InterfaceWithVal<T>
|
||||
|
||||
KtKotlinPropertySymbol:
|
||||
callableIdIfNonLocal: test/ClassWithInterfaceWithVal.withOwnAndOuterGenericT2_InterfaceWithValBase
|
||||
name: withOwnAndOuterGenericT2_InterfaceWithValBase
|
||||
origin: SOURCE
|
||||
getDispatchReceiver(): test/ClassWithInterfaceWithVal
|
||||
|
||||
KtFunctionSymbol:
|
||||
callableIdIfNonLocal: kotlin/Any.equals
|
||||
name: equals
|
||||
origin: LIBRARY
|
||||
getDispatchReceiver(): kotlin/Any
|
||||
|
||||
KtFunctionSymbol:
|
||||
callableIdIfNonLocal: kotlin/Any.hashCode
|
||||
name: hashCode
|
||||
origin: LIBRARY
|
||||
getDispatchReceiver(): kotlin/Any
|
||||
|
||||
KtFunctionSymbol:
|
||||
callableIdIfNonLocal: kotlin/Any.toString
|
||||
name: toString
|
||||
origin: LIBRARY
|
||||
getDispatchReceiver(): kotlin/Any
|
||||
|
||||
KtConstructorSymbol:
|
||||
callableIdIfNonLocal: null
|
||||
origin: SOURCE_MEMBER_GENERATED
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
// DO_NOT_CHECK_SYMBOL_RESTORE
|
||||
package test
|
||||
|
||||
class SomeClass
|
||||
|
||||
fun <Outer> topLevel() {
|
||||
open class Base {
|
||||
fun withOuter(): Outer? = null
|
||||
}
|
||||
|
||||
class <caret>Child : Base() {
|
||||
fun noGenerics() {}
|
||||
}
|
||||
}
|
||||
+33
@@ -0,0 +1,33 @@
|
||||
KtFunctionSymbol:
|
||||
callableIdIfNonLocal: null
|
||||
name: noGenerics
|
||||
origin: SOURCE
|
||||
getDispatchReceiver(): test/Child<Outer>
|
||||
|
||||
KtFunctionSymbol:
|
||||
callableIdIfNonLocal: null
|
||||
name: withOuter
|
||||
origin: SOURCE
|
||||
getDispatchReceiver(): test/Base<Outer>
|
||||
|
||||
KtFunctionSymbol:
|
||||
callableIdIfNonLocal: kotlin/Any.equals
|
||||
name: equals
|
||||
origin: LIBRARY
|
||||
getDispatchReceiver(): kotlin/Any
|
||||
|
||||
KtFunctionSymbol:
|
||||
callableIdIfNonLocal: kotlin/Any.hashCode
|
||||
name: hashCode
|
||||
origin: LIBRARY
|
||||
getDispatchReceiver(): kotlin/Any
|
||||
|
||||
KtFunctionSymbol:
|
||||
callableIdIfNonLocal: kotlin/Any.toString
|
||||
name: toString
|
||||
origin: LIBRARY
|
||||
getDispatchReceiver(): kotlin/Any
|
||||
|
||||
KtConstructorSymbol:
|
||||
callableIdIfNonLocal: null
|
||||
origin: SOURCE_MEMBER_GENERATED
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
// DO_NOT_CHECK_SYMBOL_RESTORE
|
||||
package test
|
||||
|
||||
class SomeClass
|
||||
|
||||
fun <Outer> topLevel() {
|
||||
open class Base<T> {
|
||||
fun withOuter(): Outer? = null
|
||||
fun withOuterAndOwn(t: T): Outer? = null
|
||||
}
|
||||
|
||||
class <caret>Child : Base<SomeClass>() {
|
||||
fun noGenerics() {}
|
||||
}
|
||||
}
|
||||
+39
@@ -0,0 +1,39 @@
|
||||
KtFunctionSymbol:
|
||||
callableIdIfNonLocal: null
|
||||
name: noGenerics
|
||||
origin: SOURCE
|
||||
getDispatchReceiver(): test/Child<Outer>
|
||||
|
||||
KtFunctionSymbol:
|
||||
callableIdIfNonLocal: null
|
||||
name: withOuter
|
||||
origin: SOURCE
|
||||
getDispatchReceiver(): test/Base<T, Outer>
|
||||
|
||||
KtFunctionSymbol:
|
||||
callableIdIfNonLocal: null
|
||||
name: withOuterAndOwn
|
||||
origin: SOURCE
|
||||
getDispatchReceiver(): test/Child<Outer>
|
||||
|
||||
KtFunctionSymbol:
|
||||
callableIdIfNonLocal: kotlin/Any.equals
|
||||
name: equals
|
||||
origin: LIBRARY
|
||||
getDispatchReceiver(): kotlin/Any
|
||||
|
||||
KtFunctionSymbol:
|
||||
callableIdIfNonLocal: kotlin/Any.hashCode
|
||||
name: hashCode
|
||||
origin: LIBRARY
|
||||
getDispatchReceiver(): kotlin/Any
|
||||
|
||||
KtFunctionSymbol:
|
||||
callableIdIfNonLocal: kotlin/Any.toString
|
||||
name: toString
|
||||
origin: LIBRARY
|
||||
getDispatchReceiver(): kotlin/Any
|
||||
|
||||
KtConstructorSymbol:
|
||||
callableIdIfNonLocal: null
|
||||
origin: SOURCE_MEMBER_GENERATED
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
package test
|
||||
|
||||
class SomeClass
|
||||
|
||||
open class TopLevel<Outer> {
|
||||
open inner class Base {
|
||||
fun noGeneric() {}
|
||||
fun withOuter(): Outer? = null
|
||||
}
|
||||
inner class <caret>Child : Base()
|
||||
}
|
||||
|
||||
+34
@@ -0,0 +1,34 @@
|
||||
KtFunctionSymbol:
|
||||
callableIdIfNonLocal: test/TopLevel.Base.noGeneric
|
||||
name: noGeneric
|
||||
origin: SOURCE
|
||||
getDispatchReceiver(): test/TopLevel.Base<Outer>
|
||||
|
||||
KtFunctionSymbol:
|
||||
callableIdIfNonLocal: test/TopLevel.Base.withOuter
|
||||
name: withOuter
|
||||
origin: SOURCE
|
||||
getDispatchReceiver(): test/TopLevel.Base<Outer>
|
||||
|
||||
KtFunctionSymbol:
|
||||
callableIdIfNonLocal: kotlin/Any.equals
|
||||
name: equals
|
||||
origin: LIBRARY
|
||||
getDispatchReceiver(): kotlin/Any
|
||||
|
||||
KtFunctionSymbol:
|
||||
callableIdIfNonLocal: kotlin/Any.hashCode
|
||||
name: hashCode
|
||||
origin: LIBRARY
|
||||
getDispatchReceiver(): kotlin/Any
|
||||
|
||||
KtFunctionSymbol:
|
||||
callableIdIfNonLocal: kotlin/Any.toString
|
||||
name: toString
|
||||
origin: LIBRARY
|
||||
getDispatchReceiver(): kotlin/Any
|
||||
|
||||
KtConstructorSymbol:
|
||||
callableIdIfNonLocal: null
|
||||
origin: SOURCE_MEMBER_GENERATED
|
||||
getDispatchReceiver(): test/TopLevel<Outer>
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
package test
|
||||
|
||||
class SomeClass
|
||||
|
||||
open class TopLevel<Outer> {
|
||||
open inner class Base<T> {
|
||||
fun noGeneric() {}
|
||||
fun withOuter(): Outer? = null
|
||||
fun withOwnAndOuter(t: T): Outer? = null
|
||||
}
|
||||
|
||||
inner class <caret>Child : Base<SomeClass>()
|
||||
}
|
||||
+40
@@ -0,0 +1,40 @@
|
||||
KtFunctionSymbol:
|
||||
callableIdIfNonLocal: test/TopLevel.Base.noGeneric
|
||||
name: noGeneric
|
||||
origin: SOURCE
|
||||
getDispatchReceiver(): test/TopLevel.Base<T, Outer>
|
||||
|
||||
KtFunctionSymbol:
|
||||
callableIdIfNonLocal: test/TopLevel.Base.withOuter
|
||||
name: withOuter
|
||||
origin: SOURCE
|
||||
getDispatchReceiver(): test/TopLevel.Base<T, Outer>
|
||||
|
||||
KtFunctionSymbol:
|
||||
callableIdIfNonLocal: test/TopLevel.Child.withOwnAndOuter
|
||||
name: withOwnAndOuter
|
||||
origin: SOURCE
|
||||
getDispatchReceiver(): test/TopLevel.Child<Outer>
|
||||
|
||||
KtFunctionSymbol:
|
||||
callableIdIfNonLocal: kotlin/Any.equals
|
||||
name: equals
|
||||
origin: LIBRARY
|
||||
getDispatchReceiver(): kotlin/Any
|
||||
|
||||
KtFunctionSymbol:
|
||||
callableIdIfNonLocal: kotlin/Any.hashCode
|
||||
name: hashCode
|
||||
origin: LIBRARY
|
||||
getDispatchReceiver(): kotlin/Any
|
||||
|
||||
KtFunctionSymbol:
|
||||
callableIdIfNonLocal: kotlin/Any.toString
|
||||
name: toString
|
||||
origin: LIBRARY
|
||||
getDispatchReceiver(): kotlin/Any
|
||||
|
||||
KtConstructorSymbol:
|
||||
callableIdIfNonLocal: null
|
||||
origin: SOURCE_MEMBER_GENERATED
|
||||
getDispatchReceiver(): test/TopLevel<Outer>
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
package test
|
||||
|
||||
class SomeClass
|
||||
|
||||
open class TopLevel<Outer> {
|
||||
open inner class Base {
|
||||
fun noGeneric() {}
|
||||
fun withOuter(): Outer? = null
|
||||
}
|
||||
}
|
||||
|
||||
class OtherTopLevel : TopLevel<SomeClass>() {
|
||||
inner class <caret>Child : Base()
|
||||
}
|
||||
+34
@@ -0,0 +1,34 @@
|
||||
KtFunctionSymbol:
|
||||
callableIdIfNonLocal: test/TopLevel.Base.noGeneric
|
||||
name: noGeneric
|
||||
origin: SOURCE
|
||||
getDispatchReceiver(): test/TopLevel.Base<Outer>
|
||||
|
||||
KtFunctionSymbol:
|
||||
callableIdIfNonLocal: test/OtherTopLevel.Child.withOuter
|
||||
name: withOuter
|
||||
origin: SOURCE
|
||||
getDispatchReceiver(): test/OtherTopLevel.Child
|
||||
|
||||
KtFunctionSymbol:
|
||||
callableIdIfNonLocal: kotlin/Any.equals
|
||||
name: equals
|
||||
origin: LIBRARY
|
||||
getDispatchReceiver(): kotlin/Any
|
||||
|
||||
KtFunctionSymbol:
|
||||
callableIdIfNonLocal: kotlin/Any.hashCode
|
||||
name: hashCode
|
||||
origin: LIBRARY
|
||||
getDispatchReceiver(): kotlin/Any
|
||||
|
||||
KtFunctionSymbol:
|
||||
callableIdIfNonLocal: kotlin/Any.toString
|
||||
name: toString
|
||||
origin: LIBRARY
|
||||
getDispatchReceiver(): kotlin/Any
|
||||
|
||||
KtConstructorSymbol:
|
||||
callableIdIfNonLocal: null
|
||||
origin: SOURCE_MEMBER_GENERATED
|
||||
getDispatchReceiver(): test/OtherTopLevel
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
package test
|
||||
|
||||
class SomeClass
|
||||
|
||||
open class TopLevel<Outer> {
|
||||
open inner class Base {
|
||||
fun noGeneric() {}
|
||||
fun withOuter(): Outer? = null
|
||||
}
|
||||
}
|
||||
|
||||
class OtherTopLevel<T> : TopLevel<T>() {
|
||||
inner class <caret>Child : Base()
|
||||
}
|
||||
+34
@@ -0,0 +1,34 @@
|
||||
KtFunctionSymbol:
|
||||
callableIdIfNonLocal: test/TopLevel.Base.noGeneric
|
||||
name: noGeneric
|
||||
origin: SOURCE
|
||||
getDispatchReceiver(): test/TopLevel.Base<Outer>
|
||||
|
||||
KtFunctionSymbol:
|
||||
callableIdIfNonLocal: test/OtherTopLevel.Child.withOuter
|
||||
name: withOuter
|
||||
origin: SOURCE
|
||||
getDispatchReceiver(): test/OtherTopLevel.Child<T>
|
||||
|
||||
KtFunctionSymbol:
|
||||
callableIdIfNonLocal: kotlin/Any.equals
|
||||
name: equals
|
||||
origin: LIBRARY
|
||||
getDispatchReceiver(): kotlin/Any
|
||||
|
||||
KtFunctionSymbol:
|
||||
callableIdIfNonLocal: kotlin/Any.hashCode
|
||||
name: hashCode
|
||||
origin: LIBRARY
|
||||
getDispatchReceiver(): kotlin/Any
|
||||
|
||||
KtFunctionSymbol:
|
||||
callableIdIfNonLocal: kotlin/Any.toString
|
||||
name: toString
|
||||
origin: LIBRARY
|
||||
getDispatchReceiver(): kotlin/Any
|
||||
|
||||
KtConstructorSymbol:
|
||||
callableIdIfNonLocal: null
|
||||
origin: SOURCE_MEMBER_GENERATED
|
||||
getDispatchReceiver(): test/OtherTopLevel<T>
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
package test
|
||||
|
||||
class SomeClass
|
||||
|
||||
open class TopLevel<Outer> {
|
||||
open inner class Base<T> {
|
||||
fun noGeneric() {}
|
||||
fun withOuter(): Outer? = null
|
||||
fun withOwnAndOuter(t: T): Outer? = null
|
||||
}
|
||||
}
|
||||
|
||||
class OtherTopLevel : TopLevel<SomeClass>() {
|
||||
inner class <caret>Child : Base<SomeClass>()
|
||||
}
|
||||
+40
@@ -0,0 +1,40 @@
|
||||
KtFunctionSymbol:
|
||||
callableIdIfNonLocal: test/TopLevel.Base.noGeneric
|
||||
name: noGeneric
|
||||
origin: SOURCE
|
||||
getDispatchReceiver(): test/TopLevel.Base<T, Outer>
|
||||
|
||||
KtFunctionSymbol:
|
||||
callableIdIfNonLocal: test/OtherTopLevel.Child.withOuter
|
||||
name: withOuter
|
||||
origin: SOURCE
|
||||
getDispatchReceiver(): test/OtherTopLevel.Child
|
||||
|
||||
KtFunctionSymbol:
|
||||
callableIdIfNonLocal: test/OtherTopLevel.Child.withOwnAndOuter
|
||||
name: withOwnAndOuter
|
||||
origin: SOURCE
|
||||
getDispatchReceiver(): test/OtherTopLevel.Child
|
||||
|
||||
KtFunctionSymbol:
|
||||
callableIdIfNonLocal: kotlin/Any.equals
|
||||
name: equals
|
||||
origin: LIBRARY
|
||||
getDispatchReceiver(): kotlin/Any
|
||||
|
||||
KtFunctionSymbol:
|
||||
callableIdIfNonLocal: kotlin/Any.hashCode
|
||||
name: hashCode
|
||||
origin: LIBRARY
|
||||
getDispatchReceiver(): kotlin/Any
|
||||
|
||||
KtFunctionSymbol:
|
||||
callableIdIfNonLocal: kotlin/Any.toString
|
||||
name: toString
|
||||
origin: LIBRARY
|
||||
getDispatchReceiver(): kotlin/Any
|
||||
|
||||
KtConstructorSymbol:
|
||||
callableIdIfNonLocal: null
|
||||
origin: SOURCE_MEMBER_GENERATED
|
||||
getDispatchReceiver(): test/OtherTopLevel
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
package test
|
||||
|
||||
class SomeClass
|
||||
|
||||
abstract class <caret>MyList : java.util.Collection<SomeClass>
|
||||
+99
@@ -0,0 +1,99 @@
|
||||
KtFunctionSymbol:
|
||||
callableIdIfNonLocal: java/util/Collection.size
|
||||
name: size
|
||||
origin: JAVA
|
||||
getDispatchReceiver(): java/util/Collection<E>
|
||||
|
||||
KtFunctionSymbol:
|
||||
callableIdIfNonLocal: java/util/Collection.isEmpty
|
||||
name: isEmpty
|
||||
origin: JAVA
|
||||
getDispatchReceiver(): java/util/Collection<E>
|
||||
|
||||
KtFunctionSymbol:
|
||||
callableIdIfNonLocal: java/util/Collection.contains
|
||||
name: contains
|
||||
origin: JAVA
|
||||
getDispatchReceiver(): java/util/Collection<E>
|
||||
|
||||
KtFunctionSymbol:
|
||||
callableIdIfNonLocal: test/MyList.iterator
|
||||
name: iterator
|
||||
origin: JAVA
|
||||
getDispatchReceiver(): test/MyList
|
||||
|
||||
KtFunctionSymbol:
|
||||
callableIdIfNonLocal: java/util/Collection.toArray
|
||||
name: toArray
|
||||
origin: JAVA
|
||||
getDispatchReceiver(): java/util/Collection<E>
|
||||
|
||||
KtFunctionSymbol:
|
||||
callableIdIfNonLocal: java/util/Collection.toArray
|
||||
name: toArray
|
||||
origin: JAVA
|
||||
getDispatchReceiver(): java/util/Collection<E>
|
||||
|
||||
KtFunctionSymbol:
|
||||
callableIdIfNonLocal: test/MyList.add
|
||||
name: add
|
||||
origin: JAVA
|
||||
getDispatchReceiver(): test/MyList
|
||||
|
||||
KtFunctionSymbol:
|
||||
callableIdIfNonLocal: java/util/Collection.remove
|
||||
name: remove
|
||||
origin: JAVA
|
||||
getDispatchReceiver(): java/util/Collection<E>
|
||||
|
||||
KtFunctionSymbol:
|
||||
callableIdIfNonLocal: java/util/Collection.containsAll
|
||||
name: containsAll
|
||||
origin: JAVA
|
||||
getDispatchReceiver(): java/util/Collection<E>
|
||||
|
||||
KtFunctionSymbol:
|
||||
callableIdIfNonLocal: test/MyList.addAll
|
||||
name: addAll
|
||||
origin: JAVA
|
||||
getDispatchReceiver(): test/MyList
|
||||
|
||||
KtFunctionSymbol:
|
||||
callableIdIfNonLocal: java/util/Collection.removeAll
|
||||
name: removeAll
|
||||
origin: JAVA
|
||||
getDispatchReceiver(): java/util/Collection<E>
|
||||
|
||||
KtFunctionSymbol:
|
||||
callableIdIfNonLocal: java/util/Collection.retainAll
|
||||
name: retainAll
|
||||
origin: JAVA
|
||||
getDispatchReceiver(): java/util/Collection<E>
|
||||
|
||||
KtFunctionSymbol:
|
||||
callableIdIfNonLocal: java/util/Collection.clear
|
||||
name: clear
|
||||
origin: JAVA
|
||||
getDispatchReceiver(): java/util/Collection<E>
|
||||
|
||||
KtFunctionSymbol:
|
||||
callableIdIfNonLocal: kotlin/Any.equals
|
||||
name: equals
|
||||
origin: LIBRARY
|
||||
getDispatchReceiver(): kotlin/Any
|
||||
|
||||
KtFunctionSymbol:
|
||||
callableIdIfNonLocal: kotlin/Any.hashCode
|
||||
name: hashCode
|
||||
origin: LIBRARY
|
||||
getDispatchReceiver(): kotlin/Any
|
||||
|
||||
KtFunctionSymbol:
|
||||
callableIdIfNonLocal: kotlin/Any.toString
|
||||
name: toString
|
||||
origin: LIBRARY
|
||||
getDispatchReceiver(): kotlin/Any
|
||||
|
||||
KtConstructorSymbol:
|
||||
callableIdIfNonLocal: null
|
||||
origin: SOURCE_MEMBER_GENERATED
|
||||
+1
-5
@@ -1,7 +1,5 @@
|
||||
// DO_NOT_CHECK_SYMBOL_RESTORE
|
||||
package test
|
||||
|
||||
|
||||
interface OtherInterface
|
||||
|
||||
interface TwoParams<T, TT>
|
||||
@@ -14,6 +12,4 @@ interface MyInterface<T> {
|
||||
|
||||
class Foo
|
||||
|
||||
abstract class MyClass : MyInterface<Foo>
|
||||
|
||||
// class: test/MyClass
|
||||
abstract class <caret>MyClass : MyInterface<Foo>
|
||||
+33
@@ -0,0 +1,33 @@
|
||||
KtFunctionSymbol:
|
||||
callableIdIfNonLocal: test/MyClass.funWithOuterAndOwnGenericsAndBounds
|
||||
name: funWithOuterAndOwnGenericsAndBounds
|
||||
origin: SOURCE
|
||||
getDispatchReceiver(): test/MyClass
|
||||
|
||||
KtKotlinPropertySymbol:
|
||||
callableIdIfNonLocal: test/MyClass.propWithOuterAndOwnGenericsAndBounds
|
||||
name: propWithOuterAndOwnGenericsAndBounds
|
||||
origin: SOURCE
|
||||
getDispatchReceiver(): test/MyClass
|
||||
|
||||
KtFunctionSymbol:
|
||||
callableIdIfNonLocal: kotlin/Any.equals
|
||||
name: equals
|
||||
origin: LIBRARY
|
||||
getDispatchReceiver(): kotlin/Any
|
||||
|
||||
KtFunctionSymbol:
|
||||
callableIdIfNonLocal: kotlin/Any.hashCode
|
||||
name: hashCode
|
||||
origin: LIBRARY
|
||||
getDispatchReceiver(): kotlin/Any
|
||||
|
||||
KtFunctionSymbol:
|
||||
callableIdIfNonLocal: kotlin/Any.toString
|
||||
name: toString
|
||||
origin: LIBRARY
|
||||
getDispatchReceiver(): kotlin/Any
|
||||
|
||||
KtConstructorSymbol:
|
||||
callableIdIfNonLocal: null
|
||||
origin: SOURCE_MEMBER_GENERATED
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
package test
|
||||
|
||||
interface ClassA
|
||||
interface ClassB
|
||||
|
||||
interface MyInterface<T> {
|
||||
val <Own : ClassA> Own.withOwnGeneric_InterfaceWithValBase: ClassA
|
||||
val <Own : T> Own.withOwnAndOuterGenericAsTypeBound_InterfaceWithValBase: ClassA
|
||||
}
|
||||
|
||||
abstract class <caret>Inheritor : MyInterface<ClassB>
|
||||
+33
@@ -0,0 +1,33 @@
|
||||
KtKotlinPropertySymbol:
|
||||
callableIdIfNonLocal: test/MyInterface.withOwnGeneric_InterfaceWithValBase
|
||||
name: withOwnGeneric_InterfaceWithValBase
|
||||
origin: SOURCE
|
||||
getDispatchReceiver(): test/MyInterface<T>
|
||||
|
||||
KtKotlinPropertySymbol:
|
||||
callableIdIfNonLocal: test/Inheritor.withOwnAndOuterGenericAsTypeBound_InterfaceWithValBase
|
||||
name: withOwnAndOuterGenericAsTypeBound_InterfaceWithValBase
|
||||
origin: SOURCE
|
||||
getDispatchReceiver(): test/Inheritor
|
||||
|
||||
KtFunctionSymbol:
|
||||
callableIdIfNonLocal: kotlin/Any.equals
|
||||
name: equals
|
||||
origin: LIBRARY
|
||||
getDispatchReceiver(): kotlin/Any
|
||||
|
||||
KtFunctionSymbol:
|
||||
callableIdIfNonLocal: kotlin/Any.hashCode
|
||||
name: hashCode
|
||||
origin: LIBRARY
|
||||
getDispatchReceiver(): kotlin/Any
|
||||
|
||||
KtFunctionSymbol:
|
||||
callableIdIfNonLocal: kotlin/Any.toString
|
||||
name: toString
|
||||
origin: LIBRARY
|
||||
getDispatchReceiver(): kotlin/Any
|
||||
|
||||
KtConstructorSymbol:
|
||||
callableIdIfNonLocal: null
|
||||
origin: SOURCE_MEMBER_GENERATED
|
||||
Vendored
+14
@@ -0,0 +1,14 @@
|
||||
// DO_NOT_CHECK_SYMBOL_RESTORE
|
||||
package test
|
||||
|
||||
class SomeClass
|
||||
|
||||
fun <Outer> topLevel() {
|
||||
open class Base {
|
||||
fun withOuter(): Outer? = null
|
||||
}
|
||||
|
||||
class Child : Base() {}
|
||||
|
||||
Child().<caret>withOuter()
|
||||
}
|
||||
Vendored
+23
@@ -0,0 +1,23 @@
|
||||
KtFunctionSymbol:
|
||||
annotationsList: []
|
||||
callableIdIfNonLocal: null
|
||||
hasStableParameterNames: true
|
||||
isExtension: false
|
||||
isExternal: false
|
||||
isInfix: false
|
||||
isInline: false
|
||||
isOperator: false
|
||||
isOverride: false
|
||||
isStatic: false
|
||||
isSuspend: false
|
||||
modality: FINAL
|
||||
name: withOuter
|
||||
origin: SOURCE
|
||||
receiverType: null
|
||||
returnType: Outer?
|
||||
symbolKind: CLASS_MEMBER
|
||||
typeParameters: []
|
||||
valueParameters: []
|
||||
visibility: Public
|
||||
getDispatchReceiver(): test/Base<Outer>
|
||||
deprecationStatus: null
|
||||
+23
@@ -0,0 +1,23 @@
|
||||
KtFunctionSymbol:
|
||||
annotationsList: []
|
||||
callableIdIfNonLocal: test/TopLevel.Child.withOuter
|
||||
hasStableParameterNames: true
|
||||
isExtension: false
|
||||
isExternal: false
|
||||
isInfix: false
|
||||
isInline: false
|
||||
isOperator: false
|
||||
isOverride: false
|
||||
isStatic: false
|
||||
isSuspend: false
|
||||
modality: FINAL
|
||||
name: withOuter
|
||||
origin: SOURCE
|
||||
receiverType: null
|
||||
returnType: Outer?
|
||||
symbolKind: CLASS_MEMBER
|
||||
typeParameters: []
|
||||
valueParameters: []
|
||||
visibility: Public
|
||||
getDispatchReceiver(): test/TopLevel<Outer>.test/TopLevel.Base<test/SomeClass>
|
||||
deprecationStatus: null
|
||||
Vendored
+16
@@ -0,0 +1,16 @@
|
||||
// DO_NOT_CHECK_SYMBOL_RESTORE
|
||||
package test
|
||||
|
||||
class SomeClass
|
||||
|
||||
class TopLevel<Outer> {
|
||||
inner open class Base<T> {
|
||||
fun withOuter(): Outer? = null
|
||||
}
|
||||
|
||||
inner class Child : Base<SomeClass> {}
|
||||
|
||||
fun usage() {
|
||||
Child().<caret>withOuter()
|
||||
}
|
||||
}
|
||||
Vendored
+23
@@ -0,0 +1,23 @@
|
||||
KtFunctionSymbol:
|
||||
annotationsList: []
|
||||
callableIdIfNonLocal: test/TopLevel.Base.withOuter
|
||||
hasStableParameterNames: true
|
||||
isExtension: false
|
||||
isExternal: false
|
||||
isInfix: false
|
||||
isInline: false
|
||||
isOperator: false
|
||||
isOverride: false
|
||||
isStatic: false
|
||||
isSuspend: false
|
||||
modality: FINAL
|
||||
name: withOuter
|
||||
origin: SOURCE
|
||||
receiverType: null
|
||||
returnType: Outer?
|
||||
symbolKind: CLASS_MEMBER
|
||||
typeParameters: []
|
||||
valueParameters: []
|
||||
visibility: Public
|
||||
getDispatchReceiver(): test/TopLevel.Base<T, Outer>
|
||||
deprecationStatus: null
|
||||
Reference in New Issue
Block a user