| Module: lib | |
| FILE fqName:p3 fileName:/p3/foo.kt | |
| FUN name:setContent visibility:public modality:FINAL returnType:kotlin.Int | |
| VALUE_PARAMETER kind:Regular name:content index:0 type:@[MyInlineable] kotlin.Function0<kotlin.Unit> | |
| BLOCK_BODY | |
| CALL 'public abstract fun invoke (): R of kotlin.Function0 declared in kotlin.Function0' type=kotlin.Unit origin=INVOKE | |
| ARG <this>: GET_VAR 'content: @[MyInlineable] kotlin.Function0<kotlin.Unit> declared in p3.setContent' type=@[MyInlineable] kotlin.Function0<kotlin.Unit> origin=VARIABLE_AS_FUNCTION | |
| RETURN type=kotlin.Nothing from='public final fun setContent (content: @[MyInlineable] kotlin.Function0<kotlin.Unit>): kotlin.Int declared in p3' | |
| CONST Int type=kotlin.Int value=3 | |
| Module: main | |
| FILE fqName:<root> fileName:/main.kt | |
| FUN name:Greeting visibility:public modality:FINAL returnType:kotlin.Unit | |
| VALUE_PARAMETER kind:Regular name:name index:0 type:kotlin.String | |
| annotations: | |
| MyInlineable | |
| BLOCK_BODY | |
| CALL 'public final fun show (str: kotlin.String): kotlin.Unit declared in <root>' type=kotlin.Unit origin=null | |
| ARG str: STRING_CONCATENATION type=kotlin.String | |
| CONST String type=kotlin.String value="hi " | |
| GET_VAR 'name: kotlin.String declared in <root>.Greeting' type=kotlin.String origin=null | |
| CONST String type=kotlin.String value="!" | |
| FUN name:box visibility:public modality:FINAL returnType:kotlin.String | |
| BLOCK_BODY | |
| VAR name:result type:kotlin.Int [val] | |
| CALL 'public final fun test (): kotlin.Int declared in <root>' type=kotlin.Int origin=null | |
| RETURN type=kotlin.Nothing from='public final fun box (): kotlin.String declared in <root>' | |
| WHEN type=kotlin.String origin=IF | |
| BRANCH | |
| if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ | |
| ARG arg0: GET_VAR 'val result: kotlin.Int declared in <root>.box' type=kotlin.Int origin=null | |
| ARG arg1: CONST Int type=kotlin.Int value=3 | |
| then: CONST String type=kotlin.String value="OK" | |
| BRANCH | |
| if: CONST Boolean type=kotlin.Boolean value=true | |
| then: STRING_CONCATENATION type=kotlin.String | |
| CONST String type=kotlin.String value="Fail: " | |
| GET_VAR 'val result: kotlin.Int declared in <root>.box' type=kotlin.Int origin=null | |
| FUN name:show visibility:public modality:FINAL returnType:kotlin.Unit | |
| VALUE_PARAMETER kind:Regular name:str index:0 type:kotlin.String | |
| BLOCK_BODY | |
| FUN name:test visibility:public modality:FINAL returnType:kotlin.Int | |
| BLOCK_BODY | |
| RETURN type=kotlin.Nothing from='public final fun test (): kotlin.Int declared in <root>' | |
| CALL 'public final fun setContent (content: @[MyInlineable] kotlin.Function0<kotlin.Unit>): kotlin.Int declared in p3' type=kotlin.Int origin=null | |
| ARG content: FUN_EXPR type=kotlin.Function0<kotlin.Unit> origin=LAMBDA | |
| FUN LOCAL_FUNCTION_FOR_LAMBDA name:<anonymous> visibility:local modality:FINAL returnType:kotlin.Unit | |
| BLOCK_BODY | |
| CALL 'public final fun Greeting (name: kotlin.String): kotlin.Unit declared in <root>' type=kotlin.Unit origin=null | |
| ARG name: CONST String type=kotlin.String value="test" |