Replicate old backend's naming logic for captured receiver parameter and extension receiver parameters.

Context for determine if a value parameter is captured from outer
context is not directly available after lowering, hence introduce a new
IrDeclarationOrigin for captured receiver parameter to avoid duplicate
calculation.
This commit is contained in:
Jiaxiang Chen
2019-05-14 09:30:20 +09:00
committed by Yan Zhulanow
parent 9760c156a4
commit 2c102ecd57
6 changed files with 51 additions and 7 deletions
-1
View File
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JVM_IR
class A(val value: String)
fun A.test(): String {
@@ -0,0 +1,10 @@
class A() {
fun String.test() {
}
}
// METHOD : A.test(Ljava/lang/String;)V
// VARIABLE : NAME=this TYPE=LA; INDEX=0
// VARIABLE : NAME=$this$test TYPE=Ljava/lang/String; INDEX=1