Files
kotlin-fork/compiler/testData/ir/irText/expressions/calls.txt
T
2016-10-18 09:09:04 +03:00

37 lines
1.9 KiB
Plaintext
Vendored

FILE /calls.kt
FUN public fun foo(x: kotlin.Int, y: kotlin.Int): kotlin.Int
BLOCK_BODY
RETURN type=kotlin.Nothing from='foo(Int, Int): Int'
GET_VAR 'value-parameter x: Int' type=kotlin.Int operator=null
FUN public fun bar(x: kotlin.Int): kotlin.Int
BLOCK_BODY
RETURN type=kotlin.Nothing from='bar(Int): Int'
CALL 'foo(Int, Int): Int' type=kotlin.Int operator=null
x: GET_VAR 'value-parameter x: Int' type=kotlin.Int operator=null
y: CONST Int type=kotlin.Int value='1'
FUN public fun qux(x: kotlin.Int): kotlin.Int
BLOCK_BODY
RETURN type=kotlin.Nothing from='qux(Int): Int'
CALL 'foo(Int, Int): Int' type=kotlin.Int operator=null
x: CALL 'foo(Int, Int): Int' type=kotlin.Int operator=null
x: GET_VAR 'value-parameter x: Int' type=kotlin.Int operator=null
y: GET_VAR 'value-parameter x: Int' type=kotlin.Int operator=null
y: GET_VAR 'value-parameter x: Int' type=kotlin.Int operator=null
FUN public fun kotlin.Int.ext1(): kotlin.Int
BLOCK_BODY
RETURN type=kotlin.Nothing from='ext1() on Int: Int'
$RECEIVER of 'ext1() on Int: Int' type=kotlin.Int
FUN public fun kotlin.Int.ext2(x: kotlin.Int): kotlin.Int
BLOCK_BODY
RETURN type=kotlin.Nothing from='ext2(Int) on Int: Int'
CALL 'foo(Int, Int): Int' type=kotlin.Int operator=null
x: $RECEIVER of 'ext2(Int) on Int: Int' type=kotlin.Int
y: GET_VAR 'value-parameter x: Int' type=kotlin.Int operator=null
FUN public fun kotlin.Int.ext3(x: kotlin.Int): kotlin.Int
BLOCK_BODY
RETURN type=kotlin.Nothing from='ext3(Int) on Int: Int'
CALL 'foo(Int, Int): Int' type=kotlin.Int operator=null
x: CALL 'ext1() on Int: Int' type=kotlin.Int operator=null
$receiver: $RECEIVER of 'ext3(Int) on Int: Int' type=kotlin.Int
y: GET_VAR 'value-parameter x: Int' type=kotlin.Int operator=null