IrOperator -> IrStatementOrigin
This commit is contained in:
committed by
Dmitry Petrov
parent
5386d27284
commit
a8a6477ce5
@@ -2,48 +2,48 @@ FILE /variableAsFunctionCall.kt
|
||||
FUN public fun kotlin.String.k(): () -> kotlin.String
|
||||
BLOCK_BODY
|
||||
RETURN type=kotlin.Nothing from='k() on String: () -> String'
|
||||
BLOCK type=() -> kotlin.String operator=LAMBDA
|
||||
BLOCK type=() -> kotlin.String origin=LAMBDA
|
||||
FUN LOCAL_FUNCTION_FOR_LAMBDA local final fun <anonymous>(): kotlin.String
|
||||
BLOCK_BODY
|
||||
RETURN type=kotlin.Nothing from='<anonymous>(): String'
|
||||
$RECEIVER of 'k() on String: () -> String' type=kotlin.String
|
||||
CALLABLE_REFERENCE '<anonymous>(): String' type=() -> kotlin.String operator=LAMBDA
|
||||
CALLABLE_REFERENCE '<anonymous>(): String' type=() -> kotlin.String origin=LAMBDA
|
||||
FUN public fun test1(f: () -> kotlin.Unit): kotlin.Unit
|
||||
BLOCK_BODY
|
||||
RETURN type=kotlin.Nothing from='test1(() -> Unit): Unit'
|
||||
CALL 'invoke(): Unit' type=kotlin.Unit operator=INVOKE
|
||||
$this: GET_VAR 'value-parameter f: () -> Unit' type=() -> kotlin.Unit operator=VARIABLE_AS_FUNCTION
|
||||
CALL 'invoke(): Unit' type=kotlin.Unit origin=INVOKE
|
||||
$this: GET_VAR 'value-parameter f: () -> Unit' type=() -> kotlin.Unit origin=VARIABLE_AS_FUNCTION
|
||||
FUN public fun test2(f: kotlin.String.() -> kotlin.Unit): kotlin.Unit
|
||||
BLOCK_BODY
|
||||
RETURN type=kotlin.Nothing from='test2(String.() -> Unit): Unit'
|
||||
CALL 'invoke() on String: Unit' type=kotlin.Unit operator=INVOKE
|
||||
$this: GET_VAR 'value-parameter f: String.() -> Unit' type=kotlin.String.() -> kotlin.Unit operator=VARIABLE_AS_FUNCTION
|
||||
CALL 'invoke() on String: Unit' type=kotlin.Unit origin=INVOKE
|
||||
$this: GET_VAR 'value-parameter f: String.() -> Unit' type=kotlin.String.() -> kotlin.Unit origin=VARIABLE_AS_FUNCTION
|
||||
$receiver: CONST String type=kotlin.String value='hello'
|
||||
FUN public fun test3(): kotlin.String
|
||||
BLOCK_BODY
|
||||
RETURN type=kotlin.Nothing from='test3(): String'
|
||||
CALL 'invoke(): String' type=kotlin.String operator=null
|
||||
$this: CALL 'k() on String: () -> String' type=() -> kotlin.String operator=null
|
||||
CALL 'invoke(): String' type=kotlin.String origin=null
|
||||
$this: CALL 'k() on String: () -> String' type=() -> kotlin.String origin=null
|
||||
$receiver: CONST String type=kotlin.String value='hello'
|
||||
FUN public fun test4(ns: kotlin.String?): kotlin.String?
|
||||
BLOCK_BODY
|
||||
RETURN type=kotlin.Nothing from='test4(String?): String?'
|
||||
BLOCK type=kotlin.String? operator=SAFE_CALL
|
||||
BLOCK type=kotlin.String? origin=SAFE_CALL
|
||||
VAR IR_TEMPORARY_VARIABLE val tmp1_safe_receiver: (() -> kotlin.String)?
|
||||
BLOCK type=(() -> kotlin.String)? operator=SAFE_CALL
|
||||
BLOCK type=(() -> kotlin.String)? origin=SAFE_CALL
|
||||
VAR IR_TEMPORARY_VARIABLE val tmp0_safe_receiver: kotlin.String?
|
||||
GET_VAR 'value-parameter ns: String?' type=kotlin.String? operator=null
|
||||
WHEN type=(() -> kotlin.String)? operator=SAFE_CALL
|
||||
if: CALL 'EQEQ(Any?, Any?): Boolean' type=kotlin.Boolean operator=EQEQ
|
||||
arg0: GET_VAR 'tmp0_safe_receiver: String?' type=kotlin.String? operator=null
|
||||
GET_VAR 'value-parameter ns: String?' type=kotlin.String? origin=null
|
||||
WHEN type=(() -> kotlin.String)? origin=SAFE_CALL
|
||||
if: CALL 'EQEQ(Any?, Any?): Boolean' type=kotlin.Boolean origin=EQEQ
|
||||
arg0: GET_VAR 'tmp0_safe_receiver: String?' type=kotlin.String? origin=null
|
||||
arg1: CONST Null type=kotlin.Nothing? value='null'
|
||||
then: CONST Null type=kotlin.Nothing? value='null'
|
||||
else: CALL 'k() on String: () -> String' type=() -> kotlin.String operator=null
|
||||
$this: GET_VAR 'tmp0_safe_receiver: String?' type=kotlin.String? operator=null
|
||||
WHEN type=kotlin.String? operator=SAFE_CALL
|
||||
if: CALL 'EQEQ(Any?, Any?): Boolean' type=kotlin.Boolean operator=EQEQ
|
||||
arg0: GET_VAR 'tmp1_safe_receiver: (() -> String)?' type=(() -> kotlin.String)? operator=null
|
||||
else: CALL 'k() on String: () -> String' type=() -> kotlin.String origin=null
|
||||
$this: GET_VAR 'tmp0_safe_receiver: String?' type=kotlin.String? origin=null
|
||||
WHEN type=kotlin.String? origin=SAFE_CALL
|
||||
if: CALL 'EQEQ(Any?, Any?): Boolean' type=kotlin.Boolean origin=EQEQ
|
||||
arg0: GET_VAR 'tmp1_safe_receiver: (() -> String)?' type=(() -> kotlin.String)? origin=null
|
||||
arg1: CONST Null type=kotlin.Nothing? value='null'
|
||||
then: CONST Null type=kotlin.Nothing? value='null'
|
||||
else: CALL 'invoke(): String' type=kotlin.String operator=null
|
||||
$this: GET_VAR 'tmp1_safe_receiver: (() -> String)?' type=(() -> kotlin.String)? operator=null
|
||||
else: CALL 'invoke(): String' type=kotlin.String origin=null
|
||||
$this: GET_VAR 'tmp1_safe_receiver: (() -> String)?' type=(() -> kotlin.String)? origin=null
|
||||
|
||||
Reference in New Issue
Block a user