Generate parameter declarations for fake overrides

This commit is contained in:
Dmitry Petrov
2017-05-02 12:02:31 +03:00
parent fa4dc26814
commit 78a601af87
160 changed files with 1204 additions and 12 deletions
@@ -36,3 +36,4 @@ FILE /coercionInLoop.kt
GET_VAR 'tmp0: Int' type=kotlin.Int origin=null
RETURN type=kotlin.Nothing from='box(): String'
CONST String type=kotlin.String value='OK'
@@ -2,8 +2,12 @@ FILE /integerCoercionToT.kt
CLASS INTERFACE CPointed
$this: VALUE_PARAMETER this@CPointed: CPointed
FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean
$this: VALUE_PARAMETER this@Any: Any
VALUE_PARAMETER value-parameter other: kotlin.Any?
FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int
$this: VALUE_PARAMETER this@Any: Any
FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String
$this: VALUE_PARAMETER this@Any: Any
FUN public inline fun <reified T : CPointed> CPointed.reinterpret(): T
TYPE_PARAMETER <reified T : CPointed>
$receiver: VALUE_PARAMETER this@reinterpret: CPointed
@@ -18,8 +22,12 @@ FILE /integerCoercionToT.kt
DELEGATING_CONSTRUCTOR_CALL 'constructor Any()'
INSTANCE_INITIALIZER_CALL classDescriptor='CInt32VarX'
FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean
$this: VALUE_PARAMETER this@Any: Any
VALUE_PARAMETER value-parameter other: kotlin.Any?
FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int
$this: VALUE_PARAMETER this@Any: Any
FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String
$this: VALUE_PARAMETER this@Any: Any
TYPEALIAS typealias CInt32Var = CInt32VarX<Int> type=CInt32VarX<kotlin.Int>
PROPERTY public var <T_INT : kotlin.Int> CInt32VarX<T_INT>.value: T_INT
FUN public fun CInt32VarX<T_INT>.<get-value>(): T_INT
@@ -49,8 +57,12 @@ FILE /integerCoercionToT.kt
GET_FIELD 'value: Int' type=kotlin.Int origin=null
receiver: GET_VAR 'this@IdType: IdType' type=IdType origin=null
FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean
$this: VALUE_PARAMETER this@Any: Any
VALUE_PARAMETER value-parameter other: kotlin.Any?
FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int
$this: VALUE_PARAMETER this@Any: Any
FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String
$this: VALUE_PARAMETER this@Any: Any
FUN public fun foo(value: IdType, cv: CInt32Var /* = CInt32VarX<kotlin.Int> */): kotlin.Unit
VALUE_PARAMETER value-parameter value: IdType
VALUE_PARAMETER value-parameter cv: CInt32Var /* = CInt32VarX<kotlin.Int> */
@@ -59,3 +71,4 @@ FILE /integerCoercionToT.kt
$receiver: GET_VAR 'value-parameter cv: CInt32Var /* = CInt32VarX<Int> */' type=CInt32Var /* = CInt32VarX<kotlin.Int> */ origin=null
value: CALL '<get-value>(): Int' type=kotlin.Int origin=GET_PROPERTY
$this: GET_VAR 'value-parameter value: IdType' type=IdType origin=null
@@ -18,8 +18,12 @@ FILE /typeAliasCtorForGenericClass.kt
GET_FIELD 'q: Q' type=Q origin=null
receiver: GET_VAR 'this@A: A<Q>' type=A<Q> origin=null
FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean
$this: VALUE_PARAMETER this@Any: Any
VALUE_PARAMETER value-parameter other: kotlin.Any?
FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int
$this: VALUE_PARAMETER this@Any: Any
FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String
$this: VALUE_PARAMETER this@Any: Any
TYPEALIAS typealias B = A<X> type=A<X>
TYPEALIAS typealias B2 = A<A<T>> type=A<A<T>>
FUN public fun bar(): kotlin.Unit
@@ -30,3 +34,4 @@ FILE /typeAliasCtorForGenericClass.kt
VAR val b2: B2<kotlin.Int> /* = A<A<kotlin.Int>> */
CALL 'constructor A(A<Int>)' type=A<A<kotlin.Int>> origin=null
q: GET_VAR 'b: B<Int> /* = A<Int> */' type=B<kotlin.Int> /* = A<kotlin.Int> */ origin=null