FIR2IR: support assignments of local variables

This commit is contained in:
Mikhail Glukhikh
2019-05-16 14:24:39 +03:00
parent 68da1a97d1
commit a973a21ec6
15 changed files with 99 additions and 41 deletions
@@ -46,11 +46,16 @@ FILE fqName:<root> fileName:/augmentedAssignment2.kt
BLOCK_BODY
VAR name:a type:<root>.A [val]
CONSTRUCTOR_CALL 'public constructor <init> () [primary] declared in <root>.A' type=<root>.A origin=null
ERROR_CALL 'Unresolved reference: R|<local>/a|' type=IrErrorType
ERROR_CALL 'Unresolved reference: R|<local>/a|' type=IrErrorType
ERROR_CALL 'Unresolved reference: R|<local>/a|' type=IrErrorType
ERROR_CALL 'Unresolved reference: R|<local>/a|' type=IrErrorType
ERROR_CALL 'Unresolved reference: R|<local>/a|' type=IrErrorType
SET_VAR 'val a: <root>.A [val] declared in <root>.testVariable' type=<root>.A origin=null
CONST String type=kotlin.String value="+="
SET_VAR 'val a: <root>.A [val] declared in <root>.testVariable' type=<root>.A origin=null
CONST String type=kotlin.String value="-="
SET_VAR 'val a: <root>.A [val] declared in <root>.testVariable' type=<root>.A origin=null
CONST String type=kotlin.String value="*="
SET_VAR 'val a: <root>.A [val] declared in <root>.testVariable' type=<root>.A origin=null
CONST String type=kotlin.String value="/="
SET_VAR 'val a: <root>.A [val] declared in <root>.testVariable' type=<root>.A origin=null
CONST String type=kotlin.String value="*="
FUN name:testProperty visibility:public modality:FINAL <> () returnType:kotlin.Unit
BLOCK_BODY
SET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:p type:<root>.A visibility:public [final,static] ' type=<root>.A origin=null