Generate IrTypeParameter and IrValueParameter declarations
This commit is contained in:
+22
-2
@@ -1,8 +1,11 @@
|
||||
FILE /classMembers.kt
|
||||
CLASS CLASS C
|
||||
CONSTRUCTOR public constructor C(x: kotlin.Int, y: kotlin.Int, z: kotlin.Int = ...)
|
||||
z: EXPRESSION_BODY
|
||||
CONST Int type=kotlin.Int value='1'
|
||||
VALUE_PARAMETER value-parameter x: kotlin.Int
|
||||
VALUE_PARAMETER value-parameter y: kotlin.Int
|
||||
VALUE_PARAMETER value-parameter z: kotlin.Int = ...
|
||||
EXPRESSION_BODY
|
||||
CONST Int type=kotlin.Int value='1'
|
||||
BLOCK_BODY
|
||||
DELEGATING_CONSTRUCTOR_CALL 'constructor Any()'
|
||||
INSTANCE_INITIALIZER_CALL classDescriptor='C'
|
||||
@@ -11,6 +14,7 @@ FILE /classMembers.kt
|
||||
EXPRESSION_BODY
|
||||
GET_VAR 'value-parameter y: Int' type=kotlin.Int origin=INITIALIZE_PROPERTY_FROM_PARAMETER
|
||||
FUN DEFAULT_PROPERTY_ACCESSOR public final fun <get-y>(): kotlin.Int
|
||||
$this: VALUE_PARAMETER <receiver: C>
|
||||
BLOCK_BODY
|
||||
RETURN type=kotlin.Nothing from='<get-y>(): Int'
|
||||
GET_FIELD 'y: Int' type=kotlin.Int origin=null
|
||||
@@ -20,11 +24,14 @@ FILE /classMembers.kt
|
||||
EXPRESSION_BODY
|
||||
GET_VAR 'value-parameter z: Int = ...' type=kotlin.Int origin=INITIALIZE_PROPERTY_FROM_PARAMETER
|
||||
FUN DEFAULT_PROPERTY_ACCESSOR public final fun <get-z>(): kotlin.Int
|
||||
$this: VALUE_PARAMETER <receiver: C>
|
||||
BLOCK_BODY
|
||||
RETURN type=kotlin.Nothing from='<get-z>(): Int'
|
||||
GET_FIELD 'z: Int' type=kotlin.Int origin=null
|
||||
receiver: GET_VAR '<receiver: C>' type=C origin=null
|
||||
FUN DEFAULT_PROPERTY_ACCESSOR public final fun <set-z>(<set-?>: kotlin.Int): kotlin.Unit
|
||||
$this: VALUE_PARAMETER <receiver: C>
|
||||
VALUE_PARAMETER value-parameter <set-?>: kotlin.Int
|
||||
BLOCK_BODY
|
||||
SET_FIELD 'z: Int' type=kotlin.Unit origin=null
|
||||
receiver: GET_VAR '<receiver: C>' type=C origin=null
|
||||
@@ -40,31 +47,39 @@ FILE /classMembers.kt
|
||||
EXPRESSION_BODY
|
||||
CONST Int type=kotlin.Int value='0'
|
||||
FUN DEFAULT_PROPERTY_ACCESSOR public final fun <get-property>(): kotlin.Int
|
||||
$this: VALUE_PARAMETER <receiver: C>
|
||||
BLOCK_BODY
|
||||
RETURN type=kotlin.Nothing from='<get-property>(): Int'
|
||||
GET_FIELD 'property: Int' type=kotlin.Int origin=null
|
||||
receiver: GET_VAR '<receiver: C>' type=C origin=null
|
||||
PROPERTY public final val propertyWithGet: kotlin.Int
|
||||
FUN public final fun <get-propertyWithGet>(): kotlin.Int
|
||||
$this: VALUE_PARAMETER <receiver: C>
|
||||
BLOCK_BODY
|
||||
RETURN type=kotlin.Nothing from='<get-propertyWithGet>(): Int'
|
||||
CONST Int type=kotlin.Int value='42'
|
||||
PROPERTY public final var propertyWithGetAndSet: kotlin.Int
|
||||
FUN public final fun <get-propertyWithGetAndSet>(): kotlin.Int
|
||||
$this: VALUE_PARAMETER <receiver: C>
|
||||
BLOCK_BODY
|
||||
RETURN type=kotlin.Nothing from='<get-propertyWithGetAndSet>(): Int'
|
||||
CALL '<get-z>(): Int' type=kotlin.Int origin=GET_PROPERTY
|
||||
$this: GET_VAR '<receiver: C>' type=C origin=null
|
||||
FUN public final fun <set-propertyWithGetAndSet>(value: kotlin.Int): kotlin.Unit
|
||||
$this: VALUE_PARAMETER <receiver: C>
|
||||
VALUE_PARAMETER value-parameter value: kotlin.Int
|
||||
BLOCK_BODY
|
||||
CALL '<set-z>(Int): Unit' type=kotlin.Unit origin=EQ
|
||||
$this: GET_VAR '<receiver: C>' type=C origin=null
|
||||
<set-?>: GET_VAR 'value-parameter value: Int' type=kotlin.Int origin=null
|
||||
FUN public final fun function(): kotlin.Unit
|
||||
$this: VALUE_PARAMETER <receiver: C>
|
||||
BLOCK_BODY
|
||||
CALL 'println(Any?): Unit' type=kotlin.Unit origin=null
|
||||
message: CONST String type=kotlin.String value='1'
|
||||
FUN public final fun kotlin.Int.memberExtensionFunction(): kotlin.Unit
|
||||
$this: VALUE_PARAMETER <receiver: C>
|
||||
$receiver: VALUE_PARAMETER <receiver: memberExtensionFunction() on Int: Unit>
|
||||
BLOCK_BODY
|
||||
CALL 'println(Any?): Unit' type=kotlin.Unit origin=null
|
||||
message: CONST String type=kotlin.String value='2'
|
||||
@@ -74,16 +89,21 @@ FILE /classMembers.kt
|
||||
DELEGATING_CONSTRUCTOR_CALL 'constructor Any()'
|
||||
INSTANCE_INITIALIZER_CALL classDescriptor='NestedClass'
|
||||
FUN public final fun function(): kotlin.Unit
|
||||
$this: VALUE_PARAMETER <receiver: NestedClass>
|
||||
BLOCK_BODY
|
||||
CALL 'println(Any?): Unit' type=kotlin.Unit origin=null
|
||||
message: CONST String type=kotlin.String value='3'
|
||||
FUN public final fun kotlin.Int.memberExtensionFunction(): kotlin.Unit
|
||||
$this: VALUE_PARAMETER <receiver: NestedClass>
|
||||
$receiver: VALUE_PARAMETER <receiver: memberExtensionFunction() on Int: Unit>
|
||||
BLOCK_BODY
|
||||
CALL 'println(Any?): Unit' type=kotlin.Unit origin=null
|
||||
message: CONST String type=kotlin.String value='4'
|
||||
CLASS INTERFACE NestedInterface
|
||||
FUN public abstract fun foo(): kotlin.Unit
|
||||
$this: VALUE_PARAMETER <receiver: NestedInterface>
|
||||
FUN public open fun bar(): kotlin.Unit
|
||||
$this: VALUE_PARAMETER <receiver: NestedInterface>
|
||||
BLOCK_BODY
|
||||
RETURN type=kotlin.Nothing from='bar(): Unit'
|
||||
CALL 'foo(): Unit' type=kotlin.Unit origin=null
|
||||
|
||||
Reference in New Issue
Block a user