IR elements fixes & refactorings

This commit is contained in:
Dmitry Petrov
2016-08-05 15:41:07 +03:00
committed by Dmitry Petrov
parent 7879fb7084
commit 64abecf996
27 changed files with 250 additions and 228 deletions
+3 -1
View File
@@ -1,3 +1,5 @@
IrFile /boxOk.kt
IrFunction public fun box(): kotlin.String
??? IrDummyBody
IrExpressionBody
IrReturnExpression type=kotlin.String
IrLiteral String type=kotlin.String value='OK'
+18 -12
View File
@@ -1,21 +1,27 @@
IrFile /smoke.kt
IrFunction public fun testFun(): kotlin.String
IrBlockExpression type=kotlin.Nothing
IrReturnExpression type=kotlin.Nothing
IrStringLiteral OK
IrExpressionBody
IrBlockExpression type=kotlin.Nothing
IrReturnExpression type=kotlin.Nothing
IrLiteral String type=kotlin.String value='OK'
IrProperty public val testSimpleVal: kotlin.Int = 1
IrReturnExpression type=kotlin.Int
IrIntLiteral type=kotlin.Int value=1
IrExpressionBody
IrReturnExpression type=kotlin.Int
IrLiteral Int type=kotlin.Int value='1'
IrProperty public val testValWithGetter: kotlin.Int
IrPropertyGetter public fun <get-testValWithGetter>(): kotlin.Int
IrReturnExpression type=kotlin.Int
IrIntLiteral type=kotlin.Int value=42
IrExpressionBody
IrReturnExpression type=kotlin.Int
IrLiteral Int type=kotlin.Int value='42'
IrProperty public var testSimpleVar: kotlin.Int
IrReturnExpression type=kotlin.Int
IrIntLiteral type=kotlin.Int value=2
IrExpressionBody
IrReturnExpression type=kotlin.Int
IrLiteral Int type=kotlin.Int value='2'
IrProperty public var testVarWithAccessors: kotlin.Int
IrPropertyGetter public fun <get-testVarWithAccessors>(): kotlin.Int
IrReturnExpression type=kotlin.Int
IrIntLiteral type=kotlin.Int value=42
IrExpressionBody
IrReturnExpression type=kotlin.Int
IrLiteral Int type=kotlin.Int value='42'
IrPropertySetter public fun <set-testVarWithAccessors>(/*0*/ v: kotlin.Int): kotlin.Unit
IrBlockExpression type=kotlin.Unit
IrExpressionBody
IrBlockExpression type=kotlin.Unit