Standardize context receiver parameter names

Previously, FIR used `_context_receiver_n` while FE10 used `<this>` for
all context receiver parameters. This commit changes the code in FE10
to follow the convention from FIR.
This commit is contained in:
Steven Schäfer
2022-10-04 15:19:30 +02:00
committed by Alexander Udalov
parent 5cf1a88c42
commit 21fef70367
80 changed files with 544 additions and 1728 deletions
@@ -34,15 +34,15 @@ FILE fqName:<root> fileName:/property.kt
public open fun toString (): kotlin.String declared in kotlin.Any
$this: VALUE_PARAMETER name:<this> type:kotlin.Any
PROPERTY name:c visibility:public modality:FINAL [val]
FUN name:<get-c> visibility:public modality:FINAL <> (<this>:<root>.A, <this>:<root>.B) returnType:kotlin.Int
FUN name:<get-c> visibility:public modality:FINAL <> (_context_receiver_0:<root>.A, _context_receiver_1:<root>.B) returnType:kotlin.Int
correspondingProperty: PROPERTY name:c visibility:public modality:FINAL [val]
contextReceiverParametersCount: 2
VALUE_PARAMETER name:<this> index:0 type:<root>.A
VALUE_PARAMETER name:<this> index:1 type:<root>.B
VALUE_PARAMETER name:_context_receiver_0 index:0 type:<root>.A
VALUE_PARAMETER name:_context_receiver_1 index:1 type:<root>.B
BLOCK_BODY
RETURN type=kotlin.Nothing from='public final fun <get-c> (<this>: <root>.A, <this>: <root>.B): kotlin.Int declared in <root>'
RETURN type=kotlin.Nothing from='public final fun <get-c> (_context_receiver_0: <root>.A, _context_receiver_1: <root>.B): kotlin.Int declared in <root>'
CALL 'public final fun plus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=PLUS
$this: CALL 'public abstract fun a (): kotlin.Int declared in <root>.A' type=kotlin.Int origin=null
$this: GET_VAR '<this>: <root>.A declared in <root>.<get-c>' type=<root>.A origin=null
$this: GET_VAR '_context_receiver_0: <root>.A declared in <root>.<get-c>' type=<root>.A origin=null
other: CALL 'public abstract fun b (): kotlin.Int declared in <root>.B' type=kotlin.Int origin=null
$this: GET_VAR '<this>: <root>.B declared in <root>.<get-c>' type=<root>.B origin=null
$this: GET_VAR '_context_receiver_1: <root>.B declared in <root>.<get-c>' type=<root>.B origin=null