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:
committed by
Alexander Udalov
parent
5cf1a88c42
commit
21fef70367
Vendored
+9
-9
@@ -47,9 +47,9 @@ var operationScore: Int
|
||||
get
|
||||
set
|
||||
|
||||
operator fun MyContainer.get(<this>: Int, index: Int): Int {
|
||||
operator fun MyContainer.get(_context_receiver_0: Int, index: Int): Int {
|
||||
{ // BLOCK
|
||||
<set-operationScore>(<set-?> = <get-operationScore>().plus(other = <this>))
|
||||
<set-operationScore>(<set-?> = <get-operationScore>().plus(other = _context_receiver_0))
|
||||
}
|
||||
return when {
|
||||
EQEQ(arg0 = index, arg1 = 0) -> <this>.<get-i>()
|
||||
@@ -57,9 +57,9 @@ operator fun MyContainer.get(<this>: Int, index: Int): Int {
|
||||
}
|
||||
}
|
||||
|
||||
operator fun MyContainer.plusAssign(<this>: Int, other: MyContainer) {
|
||||
operator fun MyContainer.plusAssign(_context_receiver_0: Int, other: MyContainer) {
|
||||
{ // BLOCK
|
||||
<set-operationScore>(<set-?> = <get-operationScore>().plus(other = <this>))
|
||||
<set-operationScore>(<set-?> = <get-operationScore>().plus(other = _context_receiver_0))
|
||||
}
|
||||
{ // BLOCK
|
||||
val tmp0_this: MyContainer = <this>
|
||||
@@ -67,9 +67,9 @@ operator fun MyContainer.plusAssign(<this>: Int, other: MyContainer) {
|
||||
}
|
||||
}
|
||||
|
||||
operator fun MyContainer.inc(<this>: Int): MyContainer {
|
||||
operator fun MyContainer.inc(_context_receiver_0: Int): MyContainer {
|
||||
{ // BLOCK
|
||||
<set-operationScore>(<set-?> = <get-operationScore>().plus(other = <this>))
|
||||
<set-operationScore>(<set-?> = <get-operationScore>().plus(other = _context_receiver_0))
|
||||
}
|
||||
return MyContainer(i = <this>.<get-i>().plus(other = 1))
|
||||
}
|
||||
@@ -77,11 +77,11 @@ operator fun MyContainer.inc(<this>: Int): MyContainer {
|
||||
fun box(): String {
|
||||
var myContainer: MyContainer = MyContainer(i = 0)
|
||||
with<Int, Unit>(receiver = 1, block = local fun Int.<anonymous>() {
|
||||
myContainer.plusAssign(<this> = $this$with, other = MyContainer(i = { // BLOCK
|
||||
myContainer.plusAssign(_context_receiver_0 = $this$with, other = MyContainer(i = { // BLOCK
|
||||
val tmp0: MyContainer = myContainer
|
||||
myContainer = tmp0.inc(<this> = $this$with)
|
||||
myContainer = tmp0.inc(_context_receiver_0 = $this$with)
|
||||
tmp0
|
||||
}.get(<this> = $this$with, index = 0)))
|
||||
}.get(_context_receiver_0 = $this$with, index = 0)))
|
||||
}
|
||||
)
|
||||
return when {
|
||||
|
||||
Reference in New Issue
Block a user