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
@@ -37,17 +37,17 @@ class C {
}
fun f(<this>: A<Int>, <this>: A<String>, <this>: B) {
<this>.<get-a>().toFloat() /*~> Unit */
<this>.<get-a>().<get-length>() /*~> Unit */
<this>.<get-b>() /*~> Unit */
fun f(_context_receiver_0: A<Int>, _context_receiver_1: A<String>, _context_receiver_2: B) {
_context_receiver_0.<get-a>().toFloat() /*~> Unit */
_context_receiver_1.<get-a>().<get-length>() /*~> Unit */
_context_receiver_2.<get-b>() /*~> Unit */
}
val C.p: Int
get(<this>: A<Int>, <this>: A<String>, <this>: B): Int {
<this>.<get-a>().toFloat() /*~> Unit */
<this>.<get-a>().<get-length>() /*~> Unit */
<this>.<get-b>() /*~> Unit */
get(_context_receiver_0: A<Int>, _context_receiver_1: A<String>, _context_receiver_2: B): Int {
_context_receiver_0.<get-a>().toFloat() /*~> Unit */
_context_receiver_1.<get-a>().<get-length>() /*~> Unit */
_context_receiver_2.<get-b>() /*~> Unit */
<this>.<get-c>() /*~> Unit */
<this>.<get-c>() /*~> Unit */
<this>.<get-c>() /*~> Unit */