Generate IrTypeParameter and IrValueParameter declarations

This commit is contained in:
Dmitry Petrov
2017-03-15 17:47:46 +03:00
parent 03b664febd
commit 8cea27b5bb
149 changed files with 2251 additions and 331 deletions
@@ -5,8 +5,11 @@ FILE /augmentedAssignmentWithExpression.kt
DELEGATING_CONSTRUCTOR_CALL 'constructor Any()'
INSTANCE_INITIALIZER_CALL classDescriptor='Host'
FUN public final operator fun plusAssign(x: kotlin.Int): kotlin.Unit
$this: VALUE_PARAMETER <receiver: Host>
VALUE_PARAMETER value-parameter x: kotlin.Int
BLOCK_BODY
FUN public final fun test1(): kotlin.Unit
$this: VALUE_PARAMETER <receiver: Host>
BLOCK_BODY
CALL 'plusAssign(Int): Unit' type=kotlin.Unit origin=PLUSEQ
$this: GET_VAR '<receiver: Host>' type=Host origin=null
@@ -16,6 +19,7 @@ FILE /augmentedAssignmentWithExpression.kt
RETURN type=kotlin.Nothing from='foo(): Host'
CALL 'constructor Host()' type=Host origin=null
FUN public fun Host.test2(): kotlin.Unit
$receiver: VALUE_PARAMETER <receiver: test2() on Host: Unit>
BLOCK_BODY
CALL 'plusAssign(Int): Unit' type=kotlin.Unit origin=PLUSEQ
$this: GET_VAR '<receiver: test2() on Host: Unit>' type=Host origin=null
@@ -26,6 +30,7 @@ FILE /augmentedAssignmentWithExpression.kt
$this: CALL 'foo(): Host' type=Host origin=null
x: CONST Int type=kotlin.Int value='1'
FUN public fun test4(a: () -> Host): kotlin.Unit
VALUE_PARAMETER value-parameter a: () -> Host
BLOCK_BODY
CALL 'plusAssign(Int): Unit' type=kotlin.Unit origin=PLUSEQ
$this: CALL 'invoke(): Host' type=Host origin=INVOKE