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
+6
-6
@@ -15,16 +15,16 @@ class Delegate {
|
||||
get
|
||||
set
|
||||
|
||||
operator fun getValue(<this>: Int, thisRef: Any?, property: KProperty<*>): String {
|
||||
operator fun getValue(_context_receiver_0: Int, thisRef: Any?, property: KProperty<*>): String {
|
||||
{ // BLOCK
|
||||
<set-operationScore>(<set-?> = <get-operationScore>().plus(other = <this>))
|
||||
<set-operationScore>(<set-?> = <get-operationScore>().plus(other = _context_receiver_0))
|
||||
}
|
||||
return <this>.<get-delegateValue>()
|
||||
}
|
||||
|
||||
operator fun setValue(<this>: Int, thisRef: Any?, property: KProperty<*>, value: String) {
|
||||
operator fun setValue(_context_receiver_0: Int, thisRef: Any?, property: KProperty<*>, value: String) {
|
||||
{ // BLOCK
|
||||
<set-operationScore>(<set-?> = <get-operationScore>().plus(other = <this>))
|
||||
<set-operationScore>(<set-?> = <get-operationScore>().plus(other = _context_receiver_0))
|
||||
}
|
||||
<this>.<set-delegateValue>(<set-?> = value)
|
||||
}
|
||||
@@ -43,10 +43,10 @@ class Result {
|
||||
var s: String /* by */
|
||||
field = Delegate()
|
||||
get(): String {
|
||||
return <this>.#s$delegate.getValue(<this> = <this>.#contextReceiverField0, thisRef = <this>, property = Result::s)
|
||||
return <this>.#s$delegate.getValue(_context_receiver_0 = <this>.#contextReceiverField0, thisRef = <this>, property = Result::s)
|
||||
}
|
||||
set(<set-?>: String) {
|
||||
return <this>.#s$delegate.setValue(<this> = <this>.#contextReceiverField0, thisRef = <this>, property = Result::s, value = <set-?>)
|
||||
return <this>.#s$delegate.setValue(_context_receiver_0 = <this>.#contextReceiverField0, thisRef = <this>, property = Result::s, value = <set-?>)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user