https://kotlinlang.org logo
Title
a

Aditya Kurkure

03/08/2023, 3:49 PM
Was going through an example to generate an IR class . What does the
createImplicitParameterDeclarationWithWrappedDescriptor
method do?
u

udalov

03/10/2023, 5:18 PM
To put simply, it creates the value
this
. Reference to this value is used everywhere later where
this
(either explicit or implicit) is used in the program. I’m pretty sure that if you don’t call this method, backend will throw an exception on an attempt to reference
this
or call any method in the class.