Generate IrTypeParameter and IrValueParameter declarations
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
FILE /variableAsFunctionCall.kt
|
||||
FUN public fun kotlin.String.k(): () -> kotlin.String
|
||||
$receiver: VALUE_PARAMETER <receiver: k() on String: () -> String>
|
||||
BLOCK_BODY
|
||||
RETURN type=kotlin.Nothing from='k() on String: () -> String'
|
||||
BLOCK type=() -> kotlin.String origin=LAMBDA
|
||||
@@ -9,11 +10,13 @@ FILE /variableAsFunctionCall.kt
|
||||
GET_VAR '<receiver: k() on String: () -> String>' type=kotlin.String origin=null
|
||||
CALLABLE_REFERENCE '<anonymous>(): String' type=() -> kotlin.String origin=LAMBDA
|
||||
FUN public fun test1(f: () -> kotlin.Unit): kotlin.Unit
|
||||
VALUE_PARAMETER value-parameter f: () -> kotlin.Unit
|
||||
BLOCK_BODY
|
||||
RETURN type=kotlin.Nothing from='test1(() -> Unit): Unit'
|
||||
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
|
||||
VALUE_PARAMETER value-parameter f: kotlin.String.() -> kotlin.Unit
|
||||
BLOCK_BODY
|
||||
RETURN type=kotlin.Nothing from='test2(String.() -> Unit): Unit'
|
||||
CALL 'invoke() on String: Unit' type=kotlin.Unit origin=INVOKE
|
||||
@@ -26,6 +29,7 @@ FILE /variableAsFunctionCall.kt
|
||||
$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?
|
||||
VALUE_PARAMETER value-parameter ns: kotlin.String?
|
||||
BLOCK_BODY
|
||||
RETURN type=kotlin.Nothing from='test4(String?): String?'
|
||||
BLOCK type=kotlin.String? origin=SAFE_CALL
|
||||
|
||||
Reference in New Issue
Block a user