FIR2IR: make *Assign call origins closer to PSI2IR

#KT-60261 In Progress
This commit is contained in:
Mikhail Glukhikh
2023-10-02 10:28:30 +02:00
committed by Space Team
parent 13ae4abe52
commit c4ec576a99
14 changed files with 50 additions and 74 deletions
@@ -11,7 +11,7 @@
@5:4..7:5 FUN name:test1 visibility:public modality:FINAL <> ($this:test.Host) returnType:kotlin.Unit
@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=null
@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:16..17 CONST Int type=kotlin.Int value=1
@-1:-1..-1 FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:kotlin.Boolean [fake_override,operator]
@@ -29,18 +29,18 @@
@12:0..14:1 FUN name:test2 visibility:public modality:FINAL <> ($receiver:test.Host) returnType:kotlin.Unit
@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=null
@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: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=null
@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: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>
@20:25..22:1 BLOCK_BODY
@21:4..12 CALL 'public final fun plusAssign (x: kotlin.Int): kotlin.Unit [operator] declared in test.Host' type=kotlin.Unit origin=null
@21:4..12 CALL 'public final fun plusAssign (x: kotlin.Int): kotlin.Unit [operator] declared in test.Host' type=kotlin.Unit origin=PLUSEQ
@21:4..7 CALL 'public abstract fun invoke (): R of kotlin.Function0 [operator] declared in kotlin.Function0' type=test.Host origin=INVOKE
@21:4..5 GET_VAR 'a: kotlin.Function0<test.Host> declared in test.test4' type=kotlin.Function0<test.Host> origin=VARIABLE_AS_FUNCTION
@21:11..12 CONST Int type=kotlin.Int value=1