FIR2IR: add extension receiver parameters to functions

This commit is contained in:
Mikhail Glukhikh
2019-07-17 15:21:34 +03:00
parent be3fe9495c
commit 63b7fa70f9
63 changed files with 393 additions and 158 deletions
@@ -24,13 +24,15 @@ FILE fqName:<root> fileName:/destructuring1.kt
BLOCK_BODY
DELEGATING_CONSTRUCTOR_CALL 'public constructor <init> () [primary] declared in kotlin.Any'
INSTANCE_INITIALIZER_CALL classDescriptor='CLASS OBJECT name:B modality:FINAL visibility:public superTypes:[kotlin.Any]'
FUN name:component1 visibility:public modality:FINAL <> ($this:<root>.B) returnType:kotlin.Int
FUN name:component1 visibility:public modality:FINAL <> ($this:<root>.B, $receiver:<root>.A) returnType:kotlin.Int
$this: VALUE_PARAMETER name:<this> type:<root>.B
$receiver: VALUE_PARAMETER name:<this> type:<root>.A
BLOCK_BODY
RETURN type=kotlin.Nothing from='public final fun component1 (): kotlin.Int declared in <root>.B'
CONST Int type=kotlin.Int value=1
FUN name:component2 visibility:public modality:FINAL <> ($this:<root>.B) returnType:kotlin.Int
FUN name:component2 visibility:public modality:FINAL <> ($this:<root>.B, $receiver:<root>.A) returnType:kotlin.Int
$this: VALUE_PARAMETER name:<this> type:<root>.B
$receiver: VALUE_PARAMETER name:<this> type:<root>.A
BLOCK_BODY
RETURN type=kotlin.Nothing from='public final fun component2 (): kotlin.Int declared in <root>.B'
CONST Int type=kotlin.Int value=2
@@ -47,7 +49,8 @@ FILE fqName:<root> fileName:/destructuring1.kt
overridden:
public open fun toString (): kotlin.String declared in kotlin.Any
$this: VALUE_PARAMETER name:<this> type:kotlin.Any
FUN name:test visibility:public modality:FINAL <> () returnType:kotlin.Unit
FUN name:test visibility:public modality:FINAL <> ($receiver:<root>.B) returnType:kotlin.Unit
$receiver: VALUE_PARAMETER name:<this> type:<root>.B
BLOCK_BODY
VAR name:<destruct> type:<root>.A [val]
GET_OBJECT 'CLASS OBJECT name:A modality:FINAL visibility:public superTypes:[kotlin.Any]' type=<root>.A