Generate IrTypeParameter and IrValueParameter declarations

This commit is contained in:
Dmitry Petrov
2017-03-15 17:47:46 +03:00
parent 03b664febd
commit 8cea27b5bb
149 changed files with 2251 additions and 331 deletions
+14 -3
View File
@@ -1,6 +1,9 @@
FILE /dataClassesGeneric.kt
CLASS CLASS Test1
TYPE_PARAMETER <T>
CONSTRUCTOR public constructor Test1<T>(x: T)
TYPE_PARAMETER <T>
VALUE_PARAMETER value-parameter x: T
BLOCK_BODY
DELEGATING_CONSTRUCTOR_CALL 'constructor Any()'
INSTANCE_INITIALIZER_CALL classDescriptor='Test1'
@@ -9,24 +12,29 @@ FILE /dataClassesGeneric.kt
EXPRESSION_BODY
GET_VAR 'value-parameter x: T' type=T origin=INITIALIZE_PROPERTY_FROM_PARAMETER
FUN DEFAULT_PROPERTY_ACCESSOR public final fun <get-x>(): T
$this: VALUE_PARAMETER <receiver: Test1>
BLOCK_BODY
RETURN type=kotlin.Nothing from='<get-x>(): T'
GET_FIELD 'x: T' type=T origin=null
receiver: GET_VAR '<receiver: Test1>' type=Test1<T> origin=null
FUN GENERATED_DATA_CLASS_MEMBER public final operator fun component1(): T
$this: VALUE_PARAMETER <receiver: Test1>
BLOCK_BODY
RETURN type=kotlin.Nothing from='component1(): T'
CALL '<get-x>(): T' type=T origin=GET_PROPERTY
$this: GET_VAR '<receiver: Test1>' type=Test1<T> origin=null
FUN GENERATED_DATA_CLASS_MEMBER public final fun copy(x: T = ...): Test1<T>
x: EXPRESSION_BODY
CALL '<get-x>(): T' type=T origin=GET_PROPERTY
$this: GET_VAR '<receiver: Test1>' type=Test1<T> origin=null
$this: VALUE_PARAMETER <receiver: Test1>
VALUE_PARAMETER value-parameter x: T = ...
EXPRESSION_BODY
CALL '<get-x>(): T' type=T origin=GET_PROPERTY
$this: GET_VAR '<receiver: Test1>' type=Test1<T> origin=null
BLOCK_BODY
RETURN type=kotlin.Nothing from='copy(T = ...): Test1<T>'
CALL 'constructor Test1(T)' type=Test1<T> origin=null
x: GET_VAR 'value-parameter x: T = ...' type=T origin=null
FUN GENERATED_DATA_CLASS_MEMBER public open override fun toString(): kotlin.String
$this: VALUE_PARAMETER <receiver: Test1>
BLOCK_BODY
RETURN type=kotlin.Nothing from='toString(): String'
STRING_CONCATENATION type=kotlin.String
@@ -36,6 +44,7 @@ FILE /dataClassesGeneric.kt
$this: GET_VAR '<receiver: Test1>' type=Test1<T> origin=null
CONST String type=kotlin.String value=')'
FUN GENERATED_DATA_CLASS_MEMBER public open override fun hashCode(): kotlin.Int
$this: VALUE_PARAMETER <receiver: Test1>
BLOCK_BODY
VAR IR_TEMPORARY_VARIABLE var tmp0_result: kotlin.Int
CONST Int type=kotlin.Int value='0'
@@ -58,6 +67,8 @@ FILE /dataClassesGeneric.kt
RETURN type=kotlin.Nothing from='hashCode(): Int'
GET_VAR 'tmp0_result: Int' type=kotlin.Int origin=null
FUN GENERATED_DATA_CLASS_MEMBER public open override fun equals(other: kotlin.Any?): kotlin.Boolean
$this: VALUE_PARAMETER <receiver: Test1>
VALUE_PARAMETER value-parameter other: kotlin.Any?
BLOCK_BODY
WHEN type=kotlin.Unit origin=null
BRANCH