Refactor calls and related expressions
This commit is contained in:
committed by
Dmitry Petrov
parent
3e11f35918
commit
4ccf3c3590
+8
-8
@@ -2,28 +2,28 @@ IrFile /calls.kt
|
||||
IrFunction public fun foo(/*0*/ x: kotlin.Int, /*1*/ y: kotlin.Int): kotlin.Int
|
||||
IrExpressionBody
|
||||
RETURN type=kotlin.Int
|
||||
VAR x
|
||||
GET_VAR x
|
||||
IrFunction public fun bar(/*0*/ x: kotlin.Int): kotlin.Int
|
||||
IrExpressionBody
|
||||
RETURN type=kotlin.Int
|
||||
CALL .foo
|
||||
x: VAR x
|
||||
x: GET_VAR x
|
||||
y: LITERAL Int type=kotlin.Int value='1'
|
||||
IrFunction public fun qux(/*0*/ x: kotlin.Int): kotlin.Int
|
||||
IrExpressionBody
|
||||
RETURN type=kotlin.Int
|
||||
CALL .foo
|
||||
x: CALL .foo
|
||||
x: VAR x
|
||||
y: VAR x
|
||||
y: VAR x
|
||||
x: GET_VAR x
|
||||
y: GET_VAR x
|
||||
y: GET_VAR x
|
||||
IrFunction public fun kotlin.Int.ext1(): kotlin.Int
|
||||
IrExpressionBody
|
||||
RETURN type=kotlin.Int
|
||||
$RECEIVER of: <root>
|
||||
$RECEIVER of: ext1
|
||||
IrFunction public fun kotlin.Int.ext2(/*0*/ x: kotlin.Int): kotlin.Int
|
||||
IrExpressionBody
|
||||
RETURN type=kotlin.Int
|
||||
CALL .foo
|
||||
x: $RECEIVER of: <root>
|
||||
y: VAR x
|
||||
x: $RECEIVER of: ext2
|
||||
y: GET_VAR x
|
||||
|
||||
+4
-4
@@ -2,10 +2,10 @@ IrFile /dotQualified.kt
|
||||
IrFunction public fun length(/*0*/ s: kotlin.String): kotlin.Int
|
||||
IrExpressionBody
|
||||
RETURN type=kotlin.Int
|
||||
CALL .length PROPERTY_GET
|
||||
$this: VAR s
|
||||
GET_PROPERTY .length
|
||||
$this: GET_VAR s
|
||||
IrFunction public fun lengthN(/*0*/ s: kotlin.String?): kotlin.Int?
|
||||
IrExpressionBody
|
||||
RETURN type=kotlin.Int?
|
||||
CALL ?.length PROPERTY_GET
|
||||
$this: VAR s
|
||||
GET_PROPERTY ?.length
|
||||
$this: GET_VAR s
|
||||
|
||||
@@ -7,5 +7,5 @@ IrFile /extensionPropertyGetterCall.kt
|
||||
IrFunction public fun kotlin.String.test5(): kotlin.String
|
||||
IrExpressionBody
|
||||
RETURN type=kotlin.String
|
||||
CALL .okext PROPERTY_GET
|
||||
GET_PROPERTY .okext
|
||||
$receiver: $RECEIVER of: test5
|
||||
|
||||
+6
-6
@@ -6,7 +6,7 @@ IrFile /references.kt
|
||||
IrProperty public val ok2: kotlin.String = "OK" getter=null setter=null
|
||||
IrExpressionBody
|
||||
RETURN type=kotlin.String
|
||||
CALL .ok PROPERTY_GET
|
||||
GET_PROPERTY .ok
|
||||
IrProperty public val ok3: kotlin.String getter=<get-ok3> setter=null
|
||||
IrPropertyGetter public fun <get-ok3>(): kotlin.String property=ok3
|
||||
IrExpressionBody
|
||||
@@ -15,21 +15,21 @@ IrFile /references.kt
|
||||
IrFunction public fun test1(): kotlin.String
|
||||
IrExpressionBody
|
||||
RETURN type=kotlin.String
|
||||
CALL .ok PROPERTY_GET
|
||||
GET_PROPERTY .ok
|
||||
IrFunction public fun test2(/*0*/ x: kotlin.String): kotlin.String
|
||||
IrExpressionBody
|
||||
RETURN type=kotlin.String
|
||||
VAR x
|
||||
GET_VAR x
|
||||
IrFunction public fun test3(): kotlin.String
|
||||
IrExpressionBody
|
||||
BLOCK type=kotlin.Nothing
|
||||
DUMMY KtProperty
|
||||
RETURN type=kotlin.Nothing
|
||||
VAR x
|
||||
GET_VAR x
|
||||
IrFunction public fun test4(): kotlin.String
|
||||
IrExpressionBody
|
||||
RETURN type=kotlin.String
|
||||
CALL .ok3 PROPERTY_GET
|
||||
GET_PROPERTY .ok3
|
||||
IrProperty public val kotlin.String.okext: kotlin.String getter=<get-okext> setter=null
|
||||
IrPropertyGetter public fun kotlin.String.<get-okext>(): kotlin.String property=okext
|
||||
IrExpressionBody
|
||||
@@ -38,5 +38,5 @@ IrFile /references.kt
|
||||
IrFunction public fun kotlin.String.test5(): kotlin.String
|
||||
IrExpressionBody
|
||||
RETURN type=kotlin.String
|
||||
CALL .okext PROPERTY_GET
|
||||
GET_PROPERTY .okext
|
||||
$receiver: $RECEIVER of: test5
|
||||
|
||||
Reference in New Issue
Block a user