[FIR2IR] Properly set statement origin for all parts of += calls

^KT-65649 Fixed
This commit is contained in:
Dmitriy Novozhilov
2024-02-27 11:04:41 +02:00
committed by Space Team
parent e4537cb9f0
commit dd94de3a34
43 changed files with 129 additions and 1294 deletions
@@ -12,7 +12,7 @@
@5:4..7:5 VALUE_PARAMETER name:<this> type:test.Host
@5:16..7:5 BLOCK_BODY
@6:8..17 CALL 'public final fun plusAssign (x: kotlin.Int): kotlin.Unit [operator] declared in test.Host' type=kotlin.Unit origin=PLUSEQ
@6:8..12 GET_VAR '<this>: test.Host declared in test.Host.test1' type=test.Host origin=null
@6:8..12 GET_VAR '<this>: test.Host declared in test.Host.test1' type=test.Host origin=PLUSEQ
@6:16..17 CONST Int type=kotlin.Int value=1
@2:0..8:1 FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:kotlin.Boolean [fake_override,operator]
@2:0..8:1 VALUE_PARAMETER name:<this> type:kotlin.Any
@@ -30,12 +30,12 @@
@12:4..8 VALUE_PARAMETER name:<this> type:test.Host
@12:17..14:1 BLOCK_BODY
@13:4..13 CALL 'public final fun plusAssign (x: kotlin.Int): kotlin.Unit [operator] declared in test.Host' type=kotlin.Unit origin=PLUSEQ
@13:4..8 GET_VAR '<this>: test.Host declared in test.test2' type=test.Host origin=null
@13:4..8 GET_VAR '<this>: test.Host declared in test.test2' type=test.Host origin=PLUSEQ
@13:12..13 CONST Int type=kotlin.Int value=1
@16:0..18:1 FUN name:test3 visibility:public modality:FINAL <> () returnType:kotlin.Unit
@16:12..18:1 BLOCK_BODY
@17:4..14 CALL 'public final fun plusAssign (x: kotlin.Int): kotlin.Unit [operator] declared in test.Host' type=kotlin.Unit origin=PLUSEQ
@17:4..9 CALL 'public final fun foo (): test.Host declared in test' type=test.Host origin=null
@17:4..9 CALL 'public final fun foo (): test.Host declared in test' type=test.Host origin=PLUSEQ
@17:13..14 CONST Int type=kotlin.Int value=1
@20:0..22:1 FUN name:test4 visibility:public modality:FINAL <> (a:kotlin.Function0<test.Host>) returnType:kotlin.Unit
@20:10..23 VALUE_PARAMETER name:a index:0 type:kotlin.Function0<test.Host>