Generate IrTypeParameter and IrValueParameter declarations
This commit is contained in:
@@ -6,6 +6,7 @@ FILE /sealedClasses.kt
|
||||
INSTANCE_INITIALIZER_CALL classDescriptor='Expr'
|
||||
CLASS CLASS Const
|
||||
CONSTRUCTOR public constructor Const(number: kotlin.Double)
|
||||
VALUE_PARAMETER value-parameter number: kotlin.Double
|
||||
BLOCK_BODY
|
||||
DELEGATING_CONSTRUCTOR_CALL 'constructor Expr()'
|
||||
INSTANCE_INITIALIZER_CALL classDescriptor='Const'
|
||||
@@ -14,12 +15,15 @@ FILE /sealedClasses.kt
|
||||
EXPRESSION_BODY
|
||||
GET_VAR 'value-parameter number: Double' type=kotlin.Double origin=INITIALIZE_PROPERTY_FROM_PARAMETER
|
||||
FUN DEFAULT_PROPERTY_ACCESSOR public final fun <get-number>(): kotlin.Double
|
||||
$this: VALUE_PARAMETER <receiver: Const>
|
||||
BLOCK_BODY
|
||||
RETURN type=kotlin.Nothing from='<get-number>(): Double'
|
||||
GET_FIELD 'number: Double' type=kotlin.Double origin=null
|
||||
receiver: GET_VAR '<receiver: Const>' type=Expr.Const origin=null
|
||||
CLASS CLASS Sum
|
||||
CONSTRUCTOR public constructor Sum(e1: Expr, e2: Expr)
|
||||
VALUE_PARAMETER value-parameter e1: Expr
|
||||
VALUE_PARAMETER value-parameter e2: Expr
|
||||
BLOCK_BODY
|
||||
DELEGATING_CONSTRUCTOR_CALL 'constructor Expr()'
|
||||
INSTANCE_INITIALIZER_CALL classDescriptor='Sum'
|
||||
@@ -28,6 +32,7 @@ FILE /sealedClasses.kt
|
||||
EXPRESSION_BODY
|
||||
GET_VAR 'value-parameter e1: Expr' type=Expr origin=INITIALIZE_PROPERTY_FROM_PARAMETER
|
||||
FUN DEFAULT_PROPERTY_ACCESSOR public final fun <get-e1>(): Expr
|
||||
$this: VALUE_PARAMETER <receiver: Sum>
|
||||
BLOCK_BODY
|
||||
RETURN type=kotlin.Nothing from='<get-e1>(): Expr'
|
||||
GET_FIELD 'e1: Expr' type=Expr origin=null
|
||||
@@ -37,6 +42,7 @@ FILE /sealedClasses.kt
|
||||
EXPRESSION_BODY
|
||||
GET_VAR 'value-parameter e2: Expr' type=Expr origin=INITIALIZE_PROPERTY_FROM_PARAMETER
|
||||
FUN DEFAULT_PROPERTY_ACCESSOR public final fun <get-e2>(): Expr
|
||||
$this: VALUE_PARAMETER <receiver: Sum>
|
||||
BLOCK_BODY
|
||||
RETURN type=kotlin.Nothing from='<get-e2>(): Expr'
|
||||
GET_FIELD 'e2: Expr' type=Expr origin=null
|
||||
|
||||
Reference in New Issue
Block a user