Desugar synthetic Java properties in psi2ir

This commit is contained in:
Dmitry Petrov
2018-07-18 14:08:14 +03:00
parent 44962b00b2
commit 99a71b9ecc
9 changed files with 49 additions and 13 deletions
@@ -0,0 +1,13 @@
FILE fqName:<root> fileName:/javaSyntheticPropertyAccess.kt
FUN name:test visibility:public modality:FINAL <> (j:J) returnType:kotlin.Unit flags:
VALUE_PARAMETER name:j index:0 type:J flags:
BLOCK_BODY
BLOCK type=kotlin.Unit origin=PLUSEQ
VAR IR_TEMPORARY_VARIABLE name:tmp0_receiver type:J flags:val
GET_VAR 'value-parameter j: J' type=J origin=null
CALL 'setFoo(Int): Unit' type=kotlin.Unit origin=PLUSEQ
$receiver: GET_VAR 'tmp0_receiver: J' type=J origin=null
x: CALL 'plus(Int): Int' type=kotlin.Int origin=PLUSEQ
$this: CALL 'getFoo(): Int' type=kotlin.Int origin=PLUSEQ
$receiver: GET_VAR 'tmp0_receiver: J' type=J origin=null
other: CONST Int type=kotlin.Int value=1