Represent class instance initialization "as from resolve".
This commit is contained in:
committed by
Dmitry Petrov
parent
c3c758c7cc
commit
1b5dd50359
@@ -0,0 +1,41 @@
|
||||
FILE /initBlock.kt
|
||||
CLASS CLASS Test1
|
||||
CONSTRUCTOR public constructor Test1()
|
||||
BLOCK_BODY
|
||||
INSTANCE_INITIALIZER_CALL classDescriptor=Test1
|
||||
ANONYMOUS_INITIALIZER Test1
|
||||
BLOCK_BODY
|
||||
CALL .println type=kotlin.Unit operator=null
|
||||
CLASS CLASS Test2
|
||||
CONSTRUCTOR public constructor Test2(/*0*/ x: kotlin.Int)
|
||||
BLOCK_BODY
|
||||
SET_BACKING_FIELD x type=kotlin.Unit operator=null
|
||||
GET_VAR x type=kotlin.Int operator=INITIALIZE_PROPERTY_FROM_PARAMETER
|
||||
INSTANCE_INITIALIZER_CALL classDescriptor=Test2
|
||||
PROPERTY public final val x: kotlin.Int
|
||||
EXPRESSION_BODY
|
||||
GET_VAR x type=kotlin.Int operator=INITIALIZE_PROPERTY_FROM_PARAMETER
|
||||
ANONYMOUS_INITIALIZER Test2
|
||||
BLOCK_BODY
|
||||
CALL .println type=kotlin.Unit operator=null
|
||||
CLASS CLASS Test3
|
||||
ANONYMOUS_INITIALIZER Test3
|
||||
BLOCK_BODY
|
||||
CALL .println type=kotlin.Unit operator=null
|
||||
CONSTRUCTOR public constructor Test3()
|
||||
BLOCK_BODY
|
||||
DELEGATING_CONSTRUCTOR_CALL Any
|
||||
INSTANCE_INITIALIZER_CALL classDescriptor=Test3
|
||||
CLASS CLASS Test4
|
||||
ANONYMOUS_INITIALIZER Test4
|
||||
BLOCK_BODY
|
||||
CALL .println type=kotlin.Unit operator=null
|
||||
message: CONST String type=kotlin.String value='1'
|
||||
CONSTRUCTOR public constructor Test4()
|
||||
BLOCK_BODY
|
||||
DELEGATING_CONSTRUCTOR_CALL Any
|
||||
INSTANCE_INITIALIZER_CALL classDescriptor=Test4
|
||||
ANONYMOUS_INITIALIZER Test4
|
||||
BLOCK_BODY
|
||||
CALL .println type=kotlin.Unit operator=null
|
||||
message: CONST String type=kotlin.String value='2'
|
||||
Reference in New Issue
Block a user