Generate IrTypeParameter and IrValueParameter declarations
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
FILE /enumWithSecondaryCtor.kt
|
||||
CLASS ENUM_CLASS Test0
|
||||
CONSTRUCTOR private constructor Test0(x: kotlin.Int)
|
||||
VALUE_PARAMETER value-parameter x: kotlin.Int
|
||||
BLOCK_BODY
|
||||
ENUM_CONSTRUCTOR_CALL 'constructor Enum(String, Int)'
|
||||
INSTANCE_INITIALIZER_CALL classDescriptor='Test0'
|
||||
@@ -9,6 +10,7 @@ FILE /enumWithSecondaryCtor.kt
|
||||
EXPRESSION_BODY
|
||||
GET_VAR 'value-parameter x: Int' type=kotlin.Int origin=INITIALIZE_PROPERTY_FROM_PARAMETER
|
||||
FUN DEFAULT_PROPERTY_ACCESSOR public final fun <get-x>(): kotlin.Int
|
||||
$this: VALUE_PARAMETER <receiver: Test0>
|
||||
BLOCK_BODY
|
||||
RETURN type=kotlin.Nothing from='<get-x>(): Int'
|
||||
GET_FIELD 'x: Int' type=kotlin.Int origin=null
|
||||
@@ -25,6 +27,7 @@ FILE /enumWithSecondaryCtor.kt
|
||||
SYNTHETIC_BODY kind=ENUM_VALUEOF
|
||||
CLASS ENUM_CLASS Test1
|
||||
CONSTRUCTOR private constructor Test1(x: kotlin.Int)
|
||||
VALUE_PARAMETER value-parameter x: kotlin.Int
|
||||
BLOCK_BODY
|
||||
ENUM_CONSTRUCTOR_CALL 'constructor Enum(String, Int)'
|
||||
INSTANCE_INITIALIZER_CALL classDescriptor='Test1'
|
||||
@@ -33,6 +36,7 @@ FILE /enumWithSecondaryCtor.kt
|
||||
EXPRESSION_BODY
|
||||
GET_VAR 'value-parameter x: Int' type=kotlin.Int origin=INITIALIZE_PROPERTY_FROM_PARAMETER
|
||||
FUN DEFAULT_PROPERTY_ACCESSOR public final fun <get-x>(): kotlin.Int
|
||||
$this: VALUE_PARAMETER <receiver: Test1>
|
||||
BLOCK_BODY
|
||||
RETURN type=kotlin.Nothing from='<get-x>(): Int'
|
||||
GET_FIELD 'x: Int' type=kotlin.Int origin=null
|
||||
@@ -52,6 +56,7 @@ FILE /enumWithSecondaryCtor.kt
|
||||
SYNTHETIC_BODY kind=ENUM_VALUEOF
|
||||
CLASS ENUM_CLASS Test2
|
||||
CONSTRUCTOR private constructor Test2(x: kotlin.Int)
|
||||
VALUE_PARAMETER value-parameter x: kotlin.Int
|
||||
BLOCK_BODY
|
||||
ENUM_CONSTRUCTOR_CALL 'constructor Enum(String, Int)'
|
||||
INSTANCE_INITIALIZER_CALL classDescriptor='Test2'
|
||||
@@ -60,6 +65,7 @@ FILE /enumWithSecondaryCtor.kt
|
||||
EXPRESSION_BODY
|
||||
GET_VAR 'value-parameter x: Int' type=kotlin.Int origin=INITIALIZE_PROPERTY_FROM_PARAMETER
|
||||
FUN DEFAULT_PROPERTY_ACCESSOR public final fun <get-x>(): kotlin.Int
|
||||
$this: VALUE_PARAMETER <receiver: Test2>
|
||||
BLOCK_BODY
|
||||
RETURN type=kotlin.Nothing from='<get-x>(): Int'
|
||||
GET_FIELD 'x: Int' type=kotlin.Int origin=null
|
||||
@@ -72,6 +78,7 @@ FILE /enumWithSecondaryCtor.kt
|
||||
ENUM_CONSTRUCTOR_CALL 'constructor Test2()'
|
||||
INSTANCE_INITIALIZER_CALL classDescriptor='ZERO'
|
||||
FUN public open override fun foo(): kotlin.Unit
|
||||
$this: VALUE_PARAMETER <receiver: ZERO>
|
||||
BLOCK_BODY
|
||||
CALL 'println(Any?): Unit' type=kotlin.Unit origin=null
|
||||
message: CONST String type=kotlin.String value='ZERO'
|
||||
@@ -84,6 +91,7 @@ FILE /enumWithSecondaryCtor.kt
|
||||
x: CONST Int type=kotlin.Int value='1'
|
||||
INSTANCE_INITIALIZER_CALL classDescriptor='ONE'
|
||||
FUN public open override fun foo(): kotlin.Unit
|
||||
$this: VALUE_PARAMETER <receiver: ONE>
|
||||
BLOCK_BODY
|
||||
CALL 'println(Any?): Unit' type=kotlin.Unit origin=null
|
||||
message: CONST String type=kotlin.String value='ONE'
|
||||
@@ -92,6 +100,7 @@ FILE /enumWithSecondaryCtor.kt
|
||||
DELEGATING_CONSTRUCTOR_CALL 'constructor Test2(Int)'
|
||||
x: CONST Int type=kotlin.Int value='0'
|
||||
FUN public abstract fun foo(): kotlin.Unit
|
||||
$this: VALUE_PARAMETER <receiver: Test2>
|
||||
FUN ENUM_CLASS_SPECIAL_MEMBER public final fun values(): kotlin.Array<Test2>
|
||||
SYNTHETIC_BODY kind=ENUM_VALUES
|
||||
FUN ENUM_CLASS_SPECIAL_MEMBER public final fun valueOf(value: kotlin.String): Test2
|
||||
|
||||
Reference in New Issue
Block a user