Was going through <an example to generate an IR cl...
# compiler
a
Was going through an example to generate an IR class . What does the
createImplicitParameterDeclarationWithWrappedDescriptor
method do?
u
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.