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
@@ -104,6 +104,11 @@ public class CheckLocalVariablesTableTestGenerated extends AbstractCheckLocalVar
runTest("compiler/testData/checkLocalVariablesTable/localFun.kt");
}
@TestMetadata("receiverParameter.kt")
public void testReceiverParameter() throws Exception {
runTest("compiler/testData/checkLocalVariablesTable/receiverParameter.kt");
}
@TestMetadata("underscoreNames.kt")
public void testUnderscoreNames() throws Exception {
runTest("compiler/testData/checkLocalVariablesTable/underscoreNames.kt");