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
@@ -1,5 +1,7 @@
FILE /booleanOperators.kt
FUN public fun test1(a: kotlin.Boolean, b: kotlin.Boolean): kotlin.Boolean
VALUE_PARAMETER value-parameter a: kotlin.Boolean
VALUE_PARAMETER value-parameter b: kotlin.Boolean
BLOCK_BODY
RETURN type=kotlin.Nothing from='test1(Boolean, Boolean): Boolean'
WHEN type=kotlin.Boolean origin=ANDAND
@@ -10,6 +12,8 @@ FILE /booleanOperators.kt
if: CONST Boolean type=kotlin.Boolean value='true'
then: CONST Boolean type=kotlin.Boolean value='false'
FUN public fun test2(a: kotlin.Boolean, b: kotlin.Boolean): kotlin.Boolean
VALUE_PARAMETER value-parameter a: kotlin.Boolean
VALUE_PARAMETER value-parameter b: kotlin.Boolean
BLOCK_BODY
RETURN type=kotlin.Nothing from='test2(Boolean, Boolean): Boolean'
WHEN type=kotlin.Boolean origin=OROR
@@ -20,12 +24,16 @@ FILE /booleanOperators.kt
if: CONST Boolean type=kotlin.Boolean value='true'
then: GET_VAR 'value-parameter b: Boolean' type=kotlin.Boolean origin=null
FUN public fun test1x(a: kotlin.Boolean, b: kotlin.Boolean): kotlin.Boolean
VALUE_PARAMETER value-parameter a: kotlin.Boolean
VALUE_PARAMETER value-parameter b: kotlin.Boolean
BLOCK_BODY
RETURN type=kotlin.Nothing from='test1x(Boolean, Boolean): Boolean'
CALL 'and(Boolean): Boolean' type=kotlin.Boolean origin=null
$this: GET_VAR 'value-parameter a: Boolean' type=kotlin.Boolean origin=null
other: GET_VAR 'value-parameter b: Boolean' type=kotlin.Boolean origin=null
FUN public fun test2x(a: kotlin.Boolean, b: kotlin.Boolean): kotlin.Boolean
VALUE_PARAMETER value-parameter a: kotlin.Boolean
VALUE_PARAMETER value-parameter b: kotlin.Boolean
BLOCK_BODY
RETURN type=kotlin.Nothing from='test2x(Boolean, Boolean): Boolean'
CALL 'or(Boolean): Boolean' type=kotlin.Boolean origin=null