[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
@@ -109,7 +109,7 @@ FILE fqName:foo fileName:/AssignmentOperator.kt
t: GET_VAR 'val a: foo.A declared in foo.runMe' type=foo.A origin=null
CALL 'public final fun <set-prop> (<set-?>: kotlin.Int): kotlin.Unit declared in foo.A' type=kotlin.Unit origin=EQ
$this: GET_VAR 'val tmp_0: foo.A declared in foo.runMe' type=foo.A origin=null
<set-?>: CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null
<set-?>: CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=PLUSEQ
$this: CALL 'public final fun <get-prop> (): kotlin.Int declared in foo.A' type=kotlin.Int origin=GET_PROPERTY
$this: GET_VAR 'val tmp_0: foo.A declared in foo.runMe' type=foo.A origin=null
other: CONST Int type=kotlin.Int value=20
@@ -120,7 +120,7 @@ FILE fqName:foo fileName:/AssignmentOperator.kt
t: GET_VAR 'val a: foo.A declared in foo.runMe' type=foo.A origin=null
CALL 'public final fun <set-prop> (<set-?>: kotlin.Int): kotlin.Unit declared in foo.A' type=kotlin.Unit origin=EQ
$this: GET_VAR 'val tmp_1: foo.A declared in foo.runMe' type=foo.A origin=null
<set-?>: CALL 'public final fun minus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null
<set-?>: CALL 'public final fun minus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=MINUSEQ
$this: CALL 'public final fun <get-prop> (): kotlin.Int declared in foo.A' type=kotlin.Int origin=GET_PROPERTY
$this: GET_VAR 'val tmp_1: foo.A declared in foo.runMe' type=foo.A origin=null
other: CONST Int type=kotlin.Int value=20
@@ -131,7 +131,7 @@ FILE fqName:foo fileName:/AssignmentOperator.kt
t: GET_VAR 'val a: foo.A declared in foo.runMe' type=foo.A origin=null
CALL 'public final fun <set-prop> (<set-?>: kotlin.Int): kotlin.Unit declared in foo.A' type=kotlin.Unit origin=EQ
$this: GET_VAR 'val tmp_2: foo.A declared in foo.runMe' type=foo.A origin=null
<set-?>: CALL 'public final fun times (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null
<set-?>: CALL 'public final fun times (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=MULTEQ
$this: CALL 'public final fun <get-prop> (): kotlin.Int declared in foo.A' type=kotlin.Int origin=GET_PROPERTY
$this: GET_VAR 'val tmp_2: foo.A declared in foo.runMe' type=foo.A origin=null
other: CONST Int type=kotlin.Int value=2
@@ -142,7 +142,7 @@ FILE fqName:foo fileName:/AssignmentOperator.kt
t: GET_VAR 'val a: foo.A declared in foo.runMe' type=foo.A origin=null
CALL 'public final fun <set-prop> (<set-?>: kotlin.Int): kotlin.Unit declared in foo.A' type=kotlin.Unit origin=EQ
$this: GET_VAR 'val tmp_3: foo.A declared in foo.runMe' type=foo.A origin=null
<set-?>: CALL 'public final fun div (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null
<set-?>: CALL 'public final fun div (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=DIVEQ
$this: CALL 'public final fun <get-prop> (): kotlin.Int declared in foo.A' type=kotlin.Int origin=GET_PROPERTY
$this: GET_VAR 'val tmp_3: foo.A declared in foo.runMe' type=foo.A origin=null
other: CONST Int type=kotlin.Int value=5
@@ -153,7 +153,7 @@ FILE fqName:foo fileName:/AssignmentOperator.kt
t: GET_VAR 'val a: foo.A declared in foo.runMe' type=foo.A origin=null
CALL 'public final fun <set-prop> (<set-?>: kotlin.Int): kotlin.Unit declared in foo.A' type=kotlin.Unit origin=EQ
$this: GET_VAR 'val tmp_4: foo.A declared in foo.runMe' type=foo.A origin=null
<set-?>: CALL 'public final fun rem (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null
<set-?>: CALL 'public final fun rem (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=PERCEQ
$this: CALL 'public final fun <get-prop> (): kotlin.Int declared in foo.A' type=kotlin.Int origin=GET_PROPERTY
$this: GET_VAR 'val tmp_4: foo.A declared in foo.runMe' type=foo.A origin=null
other: CONST Int type=kotlin.Int value=3