Property accessors are now children of IrProperty.

This commit is contained in:
Dmitry Petrov
2016-08-31 12:52:36 +03:00
committed by Dmitry Petrov
parent ed68b3ecd0
commit 917e7bffbd
39 changed files with 222 additions and 221 deletions
@@ -92,10 +92,6 @@ class ClassGenerator(val declarationGenerator: DeclarationGenerator) : Generator
val irMember = declarationGenerator.generateMemberDeclaration(ktDeclaration)
irClass.addMember(irMember)
if (irMember is IrProperty) {
irMember.getter?.let { irClass.addMember(it) }
irMember.setter?.let { irClass.addMember(it) }
}
}
}
}
@@ -36,14 +36,6 @@ class ModuleGenerator(override val context: GeneratorContext) : Generator {
for (ktDeclaration in ktFile.declarations) {
val irDeclaration = irDeclarationGenerator.generateMemberDeclaration(ktDeclaration)
irFile.addDeclaration(irDeclaration)
if (irDeclaration is IrProperty) {
irDeclaration.getter?.let {
irFile.addDeclaration(it)
}
irDeclaration.setter?.let {
irFile.addDeclaration(it)
}
}
}
irModule.addFile(irFile)
@@ -33,4 +33,6 @@ const val LOOP_CONDITION_SLOT = -2
const val SETTER_ARGUMENT_INDEX = 0
const val TRY_RESULT_SLOT = -1
const val FINALLY_EXPRESSION_SLOT = -2
const val NESTED_INITIALIZERS_SLOT = -1
const val NESTED_INITIALIZERS_SLOT = -1
const val PROPERTY_GETTER_SLOT = -1
const val PROPERTY_SETTER_SLOT = -2
@@ -28,8 +28,6 @@ interface IrProperty : IrDeclaration {
override val declarationKind: IrDeclarationKind
get() = IrDeclarationKind.PROPERTY
fun <D> acceptAccessors(visitor: IrElementVisitor<Unit, D>, data: D)
}
interface IrSimpleProperty : IrProperty {
@@ -49,21 +47,33 @@ abstract class IrPropertyBase(
) : IrDeclarationBase(startOffset, endOffset, origin), IrProperty {
override var getter: IrPropertyGetter? = null
set(newGetter) {
newGetter?.run { assert(property == null) { "$newGetter: should not have a property" } }
newGetter?.property = this
newGetter?.assertDetached()
field?.detach()
field = newGetter
newGetter?.setTreeLocation(this, PROPERTY_GETTER_SLOT)
}
override var setter: IrPropertySetter? = null
set(newSetter) {
newSetter?.run { assert(property == null) { "$newSetter: should not have a property" } }
newSetter?.property = this
newSetter?.assertDetached()
field?.detach()
field = newSetter
newSetter?.setTreeLocation(this, PROPERTY_SETTER_SLOT)
}
override fun <D> acceptAccessors(visitor: IrElementVisitor<Unit, D>, data: D) {
getter?.accept(visitor, data)
setter?.accept(visitor, data)
override fun getChild(slot: Int): IrElement? =
when (slot) {
PROPERTY_GETTER_SLOT -> getter
PROPERTY_SETTER_SLOT -> setter
else -> null
}
override fun replaceChild(slot: Int, newChild: IrElement) {
when (slot) {
PROPERTY_GETTER_SLOT -> getter = newChild.assertCast()
PROPERTY_SETTER_SLOT -> setter = newChild.assertCast()
else -> throwNoSuchSlot(slot)
}
}
}
@@ -85,13 +95,13 @@ class IrSimplePropertyImpl(
override fun getChild(slot: Int): IrElement? =
when (slot) {
INITIALIZER_SLOT -> valueInitializer
else -> null
else -> super.getChild(slot)
}
override fun replaceChild(slot: Int, newChild: IrElement) {
when (slot) {
INITIALIZER_SLOT -> valueInitializer = newChild.assertCast()
else -> throwNoSuchSlot(slot)
else -> super.replaceChild(slot, newChild)
}
}
@@ -100,6 +110,8 @@ class IrSimplePropertyImpl(
override fun <D> acceptChildren(visitor: IrElementVisitor<Unit, D>, data: D) {
valueInitializer?.accept(visitor, data)
getter?.accept(visitor, data)
setter?.accept(visitor, data)
}
}
@@ -121,13 +133,13 @@ class IrDelegatedPropertyImpl(
override fun getChild(slot: Int): IrElement? =
when (slot) {
INITIALIZER_SLOT -> delegateInitializer
else -> null
else -> super.getChild(slot)
}
override fun replaceChild(slot: Int, newChild: IrElement) {
when (slot) {
INITIALIZER_SLOT -> delegateInitializer = newChild.assertCast()
else -> throwNoSuchSlot(slot)
else -> super.replaceChild(slot, newChild)
}
}
@@ -136,5 +148,7 @@ class IrDelegatedPropertyImpl(
override fun <D> acceptChildren(visitor: IrElementVisitor<Unit, D>, data: D) {
delegateInitializer.accept(visitor, data)
getter?.accept(visitor, data)
setter?.accept(visitor, data)
}
}
@@ -24,7 +24,6 @@ import org.jetbrains.kotlin.ir.visitors.IrElementVisitor
interface IrPropertyAccessor : IrFunction {
override val descriptor: PropertyAccessorDescriptor
var property: IrProperty?
}
interface IrPropertyGetter : IrPropertyAccessor {
@@ -46,9 +45,7 @@ abstract class IrPropertyAccessorBase(
endOffset: Int,
origin: IrDeclarationOrigin,
body: IrBody
) : IrFunctionBase(startOffset, endOffset, origin, body), IrPropertyAccessor {
override var property: IrProperty? = null
}
) : IrFunctionBase(startOffset, endOffset, origin, body), IrPropertyAccessor
class IrPropertyGetterImpl(
startOffset: Int,
@@ -43,13 +43,13 @@ class RenderIrElementVisitor : IrElementVisitor<String, Nothing?> {
"FUN ${declaration.descriptor.render()}"
override fun visitProperty(declaration: IrProperty, data: Nothing?): String =
"PROPERTY ${declaration.descriptor.render()} getter=${declaration.getter?.name()} setter=${declaration.setter?.name()}"
"PROPERTY ${declaration.descriptor.render()}"
override fun visitPropertyGetter(declaration: IrPropertyGetter, data: Nothing?): String =
"PROPERTY_GETTER ${declaration.descriptor.render()} property=${declaration.property?.name()}"
"PROPERTY_GETTER ${declaration.descriptor.render()}"
override fun visitPropertySetter(declaration: IrPropertySetter, data: Nothing?): String =
"PROPERTY_SETTER ${declaration.descriptor.render()} property=${declaration.property?.name()}"
"PROPERTY_SETTER ${declaration.descriptor.render()}"
override fun visitClass(declaration: IrClass, data: Nothing?): String =
"CLASS ${declaration.descriptor.kind} ${declaration.descriptor.name}"
@@ -6,10 +6,10 @@ FILE /argumentReorderingInDelegatingConstructorCall.kt
GET_VAR x type=kotlin.Int operator=INITIALIZE_PROPERTY_FROM_PARAMETER
SET_BACKING_FIELD y type=kotlin.Unit operator=null
GET_VAR y type=kotlin.Int operator=INITIALIZE_PROPERTY_FROM_PARAMETER
PROPERTY public final val x: kotlin.Int getter=null setter=null
PROPERTY public final val x: kotlin.Int
EXPRESSION_BODY
GET_VAR x type=kotlin.Int operator=INITIALIZE_PROPERTY_FROM_PARAMETER
PROPERTY public final val y: kotlin.Int getter=null setter=null
PROPERTY public final val y: kotlin.Int
EXPRESSION_BODY
GET_VAR y type=kotlin.Int operator=INITIALIZE_PROPERTY_FROM_PARAMETER
CLASS CLASS Test1
+18 -18
View File
@@ -8,10 +8,10 @@ FILE /classMembers.kt
GET_VAR z type=kotlin.Int operator=INITIALIZE_PROPERTY_FROM_PARAMETER
SET_BACKING_FIELD property type=kotlin.Unit operator=null
CONST Int type=kotlin.Int value='0'
PROPERTY public final val y: kotlin.Int getter=null setter=null
PROPERTY public final val y: kotlin.Int
EXPRESSION_BODY
GET_VAR y type=kotlin.Int operator=INITIALIZE_PROPERTY_FROM_PARAMETER
PROPERTY public final var z: kotlin.Int getter=null setter=null
PROPERTY public final var z: kotlin.Int
EXPRESSION_BODY
GET_VAR z type=kotlin.Int operator=INITIALIZE_PROPERTY_FROM_PARAMETER
FUN public constructor C()
@@ -20,25 +20,25 @@ FILE /classMembers.kt
x: CONST Int type=kotlin.Int value='0'
y: CONST Int type=kotlin.Int value='0'
z: CONST Int type=kotlin.Int value='0'
PROPERTY public final val property: kotlin.Int = 0 getter=null setter=null
PROPERTY public final val property: kotlin.Int = 0
EXPRESSION_BODY
CONST Int type=kotlin.Int value='0'
PROPERTY public final val propertyWithGet: kotlin.Int getter=<get-propertyWithGet> setter=null
PROPERTY_GETTER public final fun <get-propertyWithGet>(): kotlin.Int property=propertyWithGet
BLOCK_BODY
RETURN type=kotlin.Nothing from=<get-propertyWithGet>
CONST Int type=kotlin.Int value='42'
PROPERTY public final var propertyWithGetAndSet: kotlin.Int getter=<get-propertyWithGetAndSet> setter=<set-propertyWithGetAndSet>
PROPERTY_GETTER public final fun <get-propertyWithGetAndSet>(): kotlin.Int property=propertyWithGetAndSet
BLOCK_BODY
RETURN type=kotlin.Nothing from=<get-propertyWithGetAndSet>
CALL .<get-z> type=kotlin.Int operator=GET_PROPERTY
PROPERTY public final val propertyWithGet: kotlin.Int
PROPERTY_GETTER public final fun <get-propertyWithGet>(): kotlin.Int
BLOCK_BODY
RETURN type=kotlin.Nothing from=<get-propertyWithGet>
CONST Int type=kotlin.Int value='42'
PROPERTY public final var propertyWithGetAndSet: kotlin.Int
PROPERTY_GETTER public final fun <get-propertyWithGetAndSet>(): kotlin.Int
BLOCK_BODY
RETURN type=kotlin.Nothing from=<get-propertyWithGetAndSet>
CALL .<get-z> type=kotlin.Int operator=GET_PROPERTY
$this: THIS public final class C type=C
PROPERTY_SETTER public final fun <set-propertyWithGetAndSet>(/*0*/ value: kotlin.Int): kotlin.Unit
BLOCK_BODY
CALL .<set-z> type=kotlin.Unit operator=EQ
$this: THIS public final class C type=C
PROPERTY_SETTER public final fun <set-propertyWithGetAndSet>(/*0*/ value: kotlin.Int): kotlin.Unit property=propertyWithGetAndSet
BLOCK_BODY
CALL .<set-z> type=kotlin.Unit operator=EQ
$this: THIS public final class C type=C
<set-?>: GET_VAR value type=kotlin.Int operator=null
<set-?>: GET_VAR value type=kotlin.Int operator=null
FUN public final fun function(): kotlin.Unit
BLOCK_BODY
CALL .println type=kotlin.Unit operator=null
+3 -3
View File
@@ -8,13 +8,13 @@ FILE /dataClasses.kt
GET_VAR y type=kotlin.String operator=INITIALIZE_PROPERTY_FROM_PARAMETER
SET_BACKING_FIELD z type=kotlin.Unit operator=null
GET_VAR z type=kotlin.Any operator=INITIALIZE_PROPERTY_FROM_PARAMETER
PROPERTY public final val x: kotlin.Int getter=null setter=null
PROPERTY public final val x: kotlin.Int
EXPRESSION_BODY
GET_VAR x type=kotlin.Int operator=INITIALIZE_PROPERTY_FROM_PARAMETER
PROPERTY public final val y: kotlin.String getter=null setter=null
PROPERTY public final val y: kotlin.String
EXPRESSION_BODY
GET_VAR y type=kotlin.String operator=INITIALIZE_PROPERTY_FROM_PARAMETER
PROPERTY public final val z: kotlin.Any getter=null setter=null
PROPERTY public final val z: kotlin.Any
EXPRESSION_BODY
GET_VAR z type=kotlin.Any operator=INITIALIZE_PROPERTY_FROM_PARAMETER
FUN public final operator /*synthesized*/ fun component1(): kotlin.Int
+3 -3
View File
@@ -4,7 +4,7 @@ FILE /initVal.kt
BLOCK_BODY
SET_BACKING_FIELD x type=kotlin.Unit operator=null
GET_VAR x type=kotlin.Int operator=INITIALIZE_PROPERTY_FROM_PARAMETER
PROPERTY public final val x: kotlin.Int getter=null setter=null
PROPERTY public final val x: kotlin.Int
EXPRESSION_BODY
GET_VAR x type=kotlin.Int operator=INITIALIZE_PROPERTY_FROM_PARAMETER
CLASS CLASS TestInitValInClass
@@ -12,7 +12,7 @@ FILE /initVal.kt
BLOCK_BODY
SET_BACKING_FIELD x type=kotlin.Unit operator=null
CONST Int type=kotlin.Int value='0'
PROPERTY public final val x: kotlin.Int = 0 getter=null setter=null
PROPERTY public final val x: kotlin.Int = 0
EXPRESSION_BODY
CONST Int type=kotlin.Int value='0'
CLASS CLASS TestInitValInInitBlock
@@ -21,4 +21,4 @@ FILE /initVal.kt
BLOCK type=kotlin.Unit operator=null
SET_BACKING_FIELD x type=kotlin.Unit operator=null
CONST Int type=kotlin.Int value='0'
PROPERTY public final val x: kotlin.Int getter=null setter=null
PROPERTY public final val x: kotlin.Int
+18 -18
View File
@@ -4,7 +4,7 @@ FILE /initVar.kt
BLOCK_BODY
SET_BACKING_FIELD x type=kotlin.Unit operator=null
GET_VAR x type=kotlin.Int operator=INITIALIZE_PROPERTY_FROM_PARAMETER
PROPERTY public final var x: kotlin.Int getter=null setter=null
PROPERTY public final var x: kotlin.Int
EXPRESSION_BODY
GET_VAR x type=kotlin.Int operator=INITIALIZE_PROPERTY_FROM_PARAMETER
CLASS CLASS TestInitVarInClass
@@ -12,7 +12,7 @@ FILE /initVar.kt
BLOCK_BODY
SET_BACKING_FIELD x type=kotlin.Unit operator=null
CONST Int type=kotlin.Int value='0'
PROPERTY public final var x: kotlin.Int getter=null setter=null
PROPERTY public final var x: kotlin.Int
EXPRESSION_BODY
CONST Int type=kotlin.Int value='0'
CLASS CLASS TestInitVarInInitBlock
@@ -22,41 +22,41 @@ FILE /initVar.kt
CALL .<set-x> type=kotlin.Unit operator=EQ
$this: THIS public final class TestInitVarInInitBlock type=TestInitVarInInitBlock
<set-?>: CONST Int type=kotlin.Int value='0'
PROPERTY public final var x: kotlin.Int getter=null setter=null
PROPERTY public final var x: kotlin.Int
CLASS CLASS TestInitVarWithCustomSetter
FUN public constructor TestInitVarWithCustomSetter()
BLOCK_BODY
SET_BACKING_FIELD x type=kotlin.Unit operator=null
CONST Int type=kotlin.Int value='0'
PROPERTY public final var x: kotlin.Int getter=null setter=<set-x>
PROPERTY public final var x: kotlin.Int
EXPRESSION_BODY
CONST Int type=kotlin.Int value='0'
PROPERTY_SETTER public final fun <set-x>(/*0*/ value: kotlin.Int): kotlin.Unit property=x
BLOCK_BODY
SET_BACKING_FIELD x type=kotlin.Unit operator=EQ
GET_VAR value type=kotlin.Int operator=null
PROPERTY_SETTER public final fun <set-x>(/*0*/ value: kotlin.Int): kotlin.Unit
BLOCK_BODY
SET_BACKING_FIELD x type=kotlin.Unit operator=EQ
GET_VAR value type=kotlin.Int operator=null
CLASS CLASS TestInitVarWithCustomSetterWithExplicitCtor
nestedInitializers: BLOCK_BODY
BLOCK type=kotlin.Unit operator=null
CALL .<set-x> type=kotlin.Unit operator=EQ
$this: THIS public final class TestInitVarWithCustomSetterWithExplicitCtor type=TestInitVarWithCustomSetterWithExplicitCtor
value: CONST Int type=kotlin.Int value='0'
PROPERTY public final var x: kotlin.Int getter=null setter=<set-x>
PROPERTY_SETTER public final fun <set-x>(/*0*/ value: kotlin.Int): kotlin.Unit property=x
BLOCK_BODY
SET_BACKING_FIELD x type=kotlin.Unit operator=EQ
GET_VAR value type=kotlin.Int operator=null
PROPERTY public final var x: kotlin.Int
PROPERTY_SETTER public final fun <set-x>(/*0*/ value: kotlin.Int): kotlin.Unit
BLOCK_BODY
SET_BACKING_FIELD x type=kotlin.Unit operator=EQ
GET_VAR value type=kotlin.Int operator=null
FUN public constructor TestInitVarWithCustomSetterWithExplicitCtor()
BLOCK_BODY
DELEGATING_CONSTRUCTOR_CALL Any
NESTED_INITIALIZERS_CALL classDescriptor=TestInitVarWithCustomSetterWithExplicitCtor
CLASS CLASS TestInitVarWithCustomSetterInCtor
nestedInitializers: BLOCK_BODY
PROPERTY public final var x: kotlin.Int getter=null setter=<set-x>
PROPERTY_SETTER public final fun <set-x>(/*0*/ value: kotlin.Int): kotlin.Unit property=x
BLOCK_BODY
SET_BACKING_FIELD x type=kotlin.Unit operator=EQ
GET_VAR value type=kotlin.Int operator=null
PROPERTY public final var x: kotlin.Int
PROPERTY_SETTER public final fun <set-x>(/*0*/ value: kotlin.Int): kotlin.Unit
BLOCK_BODY
SET_BACKING_FIELD x type=kotlin.Unit operator=EQ
GET_VAR value type=kotlin.Int operator=null
FUN public constructor TestInitVarWithCustomSetterInCtor()
BLOCK_BODY
DELEGATING_CONSTRUCTOR_CALL Any
@@ -1,14 +1,14 @@
FILE /objectLiteralExpressions.kt
CLASS INTERFACE IFoo
FUN public abstract fun foo(): kotlin.Unit
PROPERTY public val test1: kotlin.Any getter=null setter=null
PROPERTY public val test1: kotlin.Any
EXPRESSION_BODY
BLOCK type=test1.<no name provided> operator=OBJECT_LITERAL
CLASS CLASS <no name provided>
FUN public constructor <no name provided>()
BLOCK_BODY
CALL .<init> type=test1.<no name provided> operator=OBJECT_LITERAL
PROPERTY public val test2: IFoo getter=null setter=null
PROPERTY public val test2: IFoo
EXPRESSION_BODY
BLOCK type=test2.<no name provided> operator=OBJECT_LITERAL
CLASS CLASS <no name provided>
+6 -6
View File
@@ -6,10 +6,10 @@ FILE /primaryConstructor.kt
GET_VAR x type=kotlin.Int operator=INITIALIZE_PROPERTY_FROM_PARAMETER
SET_BACKING_FIELD y type=kotlin.Unit operator=null
GET_VAR y type=kotlin.Int operator=INITIALIZE_PROPERTY_FROM_PARAMETER
PROPERTY public final val x: kotlin.Int getter=null setter=null
PROPERTY public final val x: kotlin.Int
EXPRESSION_BODY
GET_VAR x type=kotlin.Int operator=INITIALIZE_PROPERTY_FROM_PARAMETER
PROPERTY public final val y: kotlin.Int getter=null setter=null
PROPERTY public final val y: kotlin.Int
EXPRESSION_BODY
GET_VAR y type=kotlin.Int operator=INITIALIZE_PROPERTY_FROM_PARAMETER
CLASS CLASS Test2
@@ -19,10 +19,10 @@ FILE /primaryConstructor.kt
GET_VAR y type=kotlin.Int operator=INITIALIZE_PROPERTY_FROM_PARAMETER
SET_BACKING_FIELD x type=kotlin.Unit operator=null
GET_VAR x type=kotlin.Int operator=null
PROPERTY public final val y: kotlin.Int getter=null setter=null
PROPERTY public final val y: kotlin.Int
EXPRESSION_BODY
GET_VAR y type=kotlin.Int operator=INITIALIZE_PROPERTY_FROM_PARAMETER
PROPERTY public final val x: kotlin.Int getter=null setter=null
PROPERTY public final val x: kotlin.Int
EXPRESSION_BODY
GET_VAR x type=kotlin.Int operator=null
CLASS CLASS Test3
@@ -33,7 +33,7 @@ FILE /primaryConstructor.kt
BLOCK type=kotlin.Unit operator=null
SET_BACKING_FIELD x type=kotlin.Unit operator=null
GET_VAR x type=kotlin.Int operator=null
PROPERTY public final val y: kotlin.Int getter=null setter=null
PROPERTY public final val y: kotlin.Int
EXPRESSION_BODY
GET_VAR y type=kotlin.Int operator=INITIALIZE_PROPERTY_FROM_PARAMETER
PROPERTY public final val x: kotlin.Int getter=null setter=null
PROPERTY public final val x: kotlin.Int
@@ -18,10 +18,10 @@ FILE /primaryConstructorWithSuperConstructorCall.kt
GET_VAR x type=kotlin.Int operator=INITIALIZE_PROPERTY_FROM_PARAMETER
SET_BACKING_FIELD y type=kotlin.Unit operator=null
GET_VAR y type=kotlin.Int operator=INITIALIZE_PROPERTY_FROM_PARAMETER
PROPERTY public final val x: kotlin.Int getter=null setter=null
PROPERTY public final val x: kotlin.Int
EXPRESSION_BODY
GET_VAR x type=kotlin.Int operator=INITIALIZE_PROPERTY_FROM_PARAMETER
PROPERTY public final val y: kotlin.Int getter=null setter=null
PROPERTY public final val y: kotlin.Int
EXPRESSION_BODY
GET_VAR y type=kotlin.Int operator=INITIALIZE_PROPERTY_FROM_PARAMETER
FUN public constructor TestWithDelegatingConstructor(/*0*/ x: kotlin.Int)
+19 -19
View File
@@ -2,19 +2,19 @@ FILE /qualifiedSuperCalls.kt
CLASS INTERFACE ILeft
FUN public open fun foo(): kotlin.Unit
BLOCK_BODY
PROPERTY public open val bar: kotlin.Int getter=<get-bar> setter=null
PROPERTY_GETTER public open fun <get-bar>(): kotlin.Int property=bar
BLOCK_BODY
RETURN type=kotlin.Nothing from=<get-bar>
CONST Int type=kotlin.Int value='1'
PROPERTY public open val bar: kotlin.Int
PROPERTY_GETTER public open fun <get-bar>(): kotlin.Int
BLOCK_BODY
RETURN type=kotlin.Nothing from=<get-bar>
CONST Int type=kotlin.Int value='1'
CLASS INTERFACE IRight
FUN public open fun foo(): kotlin.Unit
BLOCK_BODY
PROPERTY public open val bar: kotlin.Int getter=<get-bar> setter=null
PROPERTY_GETTER public open fun <get-bar>(): kotlin.Int property=bar
BLOCK_BODY
RETURN type=kotlin.Nothing from=<get-bar>
CONST Int type=kotlin.Int value='2'
PROPERTY public open val bar: kotlin.Int
PROPERTY_GETTER public open fun <get-bar>(): kotlin.Int
BLOCK_BODY
RETURN type=kotlin.Nothing from=<get-bar>
CONST Int type=kotlin.Int value='2'
CLASS CLASS CBoth
FUN public constructor CBoth()
BLOCK_BODY
@@ -24,12 +24,12 @@ FILE /qualifiedSuperCalls.kt
$this: THIS public final class CBoth : ILeft, IRight type=ILeft
CALL .foo superQualifier=IRight type=kotlin.Unit operator=null
$this: THIS public final class CBoth : ILeft, IRight type=IRight
PROPERTY public open override /*2*/ val bar: kotlin.Int getter=<get-bar> setter=null
PROPERTY_GETTER public open override /*2*/ fun <get-bar>(): kotlin.Int property=bar
BLOCK_BODY
RETURN type=kotlin.Nothing from=<get-bar>
CALL .plus type=kotlin.Int operator=PLUS
$this: CALL .<get-bar> superQualifier=ILeft type=kotlin.Int operator=GET_PROPERTY
$this: THIS public final class CBoth : ILeft, IRight type=ILeft
other: CALL .<get-bar> superQualifier=IRight type=kotlin.Int operator=GET_PROPERTY
$this: THIS public final class CBoth : ILeft, IRight type=IRight
PROPERTY public open override /*2*/ val bar: kotlin.Int
PROPERTY_GETTER public open override /*2*/ fun <get-bar>(): kotlin.Int
BLOCK_BODY
RETURN type=kotlin.Nothing from=<get-bar>
CALL .plus type=kotlin.Int operator=PLUS
$this: CALL .<get-bar> superQualifier=ILeft type=kotlin.Int operator=GET_PROPERTY
$this: THIS public final class CBoth : ILeft, IRight type=ILeft
other: CALL .<get-bar> superQualifier=IRight type=kotlin.Int operator=GET_PROPERTY
$this: THIS public final class CBoth : ILeft, IRight type=IRight
@@ -6,7 +6,7 @@ FILE /secondaryConstructorWithInitializersFromClassBody.kt
nestedInitializers: BLOCK_BODY
SET_BACKING_FIELD x type=kotlin.Unit operator=null
CONST Int type=kotlin.Int value='0'
PROPERTY public final val x: kotlin.Int = 0 getter=null setter=null
PROPERTY public final val x: kotlin.Int = 0
EXPRESSION_BODY
CONST Int type=kotlin.Int value='0'
FUN public constructor TestProperty()
@@ -18,7 +18,7 @@ FILE /secondaryConstructorWithInitializersFromClassBody.kt
BLOCK type=kotlin.Unit operator=null
SET_BACKING_FIELD x type=kotlin.Unit operator=null
CONST Int type=kotlin.Int value='0'
PROPERTY public final val x: kotlin.Int getter=null setter=null
PROPERTY public final val x: kotlin.Int
FUN public constructor TestInitBlock()
BLOCK_BODY
DELEGATING_CONSTRUCTOR_CALL Base
+7 -7
View File
@@ -6,7 +6,7 @@ FILE /superCalls.kt
CONST String type=kotlin.String value=''
FUN public open fun foo(): kotlin.Unit
BLOCK_BODY
PROPERTY public open val bar: kotlin.String = "" getter=null setter=null
PROPERTY public open val bar: kotlin.String = ""
EXPRESSION_BODY
CONST String type=kotlin.String value=''
CLASS CLASS Derived
@@ -17,9 +17,9 @@ FILE /superCalls.kt
BLOCK_BODY
CALL .foo superQualifier=Base type=kotlin.Unit operator=null
$this: THIS public final class Derived : Base type=Base
PROPERTY public open override /*1*/ val bar: kotlin.String getter=<get-bar> setter=null
PROPERTY_GETTER public open override /*1*/ fun <get-bar>(): kotlin.String property=bar
BLOCK_BODY
RETURN type=kotlin.Nothing from=<get-bar>
CALL .<get-bar> superQualifier=Base type=kotlin.String operator=GET_PROPERTY
$this: THIS public final class Derived : Base type=Base
PROPERTY public open override /*1*/ val bar: kotlin.String
PROPERTY_GETTER public open override /*1*/ fun <get-bar>(): kotlin.String
BLOCK_BODY
RETURN type=kotlin.Nothing from=<get-bar>
CALL .<get-bar> superQualifier=Base type=kotlin.String operator=GET_PROPERTY
$this: THIS public final class Derived : Base type=Base
+1 -1
View File
@@ -1,5 +1,5 @@
FILE /arrayAccess.kt
PROPERTY public val p: kotlin.Int = 0 getter=null setter=null
PROPERTY public val p: kotlin.Int = 0
EXPRESSION_BODY
CONST Int type=kotlin.Int value='0'
FUN public fun foo(): kotlin.Int
@@ -16,7 +16,7 @@ FILE /arrayAugmentedAssignment1.kt
BLOCK_BODY
SET_BACKING_FIELD x type=kotlin.Unit operator=null
GET_VAR x type=kotlin.IntArray operator=INITIALIZE_PROPERTY_FROM_PARAMETER
PROPERTY public final val x: kotlin.IntArray getter=null setter=null
PROPERTY public final val x: kotlin.IntArray
EXPRESSION_BODY
GET_VAR x type=kotlin.IntArray operator=INITIALIZE_PROPERTY_FROM_PARAMETER
FUN public fun testVariable(): kotlin.Unit
+1 -1
View File
@@ -4,7 +4,7 @@ FILE /assignments.kt
BLOCK_BODY
SET_BACKING_FIELD x type=kotlin.Unit operator=null
GET_VAR x type=kotlin.Int operator=INITIALIZE_PROPERTY_FROM_PARAMETER
PROPERTY public final var x: kotlin.Int getter=null setter=null
PROPERTY public final var x: kotlin.Int
EXPRESSION_BODY
GET_VAR x type=kotlin.Int operator=INITIALIZE_PROPERTY_FROM_PARAMETER
FUN public fun test1(): kotlin.Unit
@@ -1,5 +1,5 @@
FILE /augmentedAssignment1.kt
PROPERTY public var p: kotlin.Int getter=null setter=null
PROPERTY public var p: kotlin.Int
EXPRESSION_BODY
CONST Int type=kotlin.Int value='0'
FUN public fun testVariable(): kotlin.Unit
@@ -12,7 +12,7 @@ FILE /augmentedAssignment2.kt
BLOCK_BODY
FUN public operator fun A.modAssign(/*0*/ s: kotlin.String): kotlin.Unit
BLOCK_BODY
PROPERTY public val p: A getter=null setter=null
PROPERTY public val p: A
EXPRESSION_BODY
CALL .<init> type=A operator=null
FUN public fun testVariable(): kotlin.Unit
+1 -1
View File
@@ -1,5 +1,5 @@
FILE /elvis.kt
PROPERTY public val p: kotlin.Any? = null getter=null setter=null
PROPERTY public val p: kotlin.Any? = null
EXPRESSION_BODY
CONST Null type=kotlin.Nothing? value='null'
FUN public fun foo(): kotlin.Any?
@@ -1,9 +1,9 @@
FILE /extensionPropertyGetterCall.kt
PROPERTY public val kotlin.String.okext: kotlin.String getter=<get-okext> setter=null
PROPERTY_GETTER public fun kotlin.String.<get-okext>(): kotlin.String property=okext
BLOCK_BODY
RETURN type=kotlin.Nothing from=<get-okext>
CONST String type=kotlin.String value='OK'
PROPERTY public val kotlin.String.okext: kotlin.String
PROPERTY_GETTER public fun kotlin.String.<get-okext>(): kotlin.String
BLOCK_BODY
RETURN type=kotlin.Nothing from=<get-okext>
CONST String type=kotlin.String value='OK'
FUN public fun kotlin.String.test5(): kotlin.String
BLOCK_BODY
RETURN type=kotlin.Nothing from=test5
+12 -12
View File
@@ -1,17 +1,17 @@
FILE /field.kt
PROPERTY public var testSimple: kotlin.Int getter=null setter=<set-testSimple>
PROPERTY public var testSimple: kotlin.Int
EXPRESSION_BODY
CONST Int type=kotlin.Int value='0'
PROPERTY_SETTER public fun <set-testSimple>(/*0*/ value: kotlin.Int): kotlin.Unit property=testSimple
BLOCK_BODY
SET_BACKING_FIELD testSimple type=kotlin.Unit operator=EQ
GET_VAR value type=kotlin.Int operator=null
PROPERTY public var testAugmented: kotlin.Int getter=null setter=<set-testAugmented>
PROPERTY_SETTER public fun <set-testSimple>(/*0*/ value: kotlin.Int): kotlin.Unit
BLOCK_BODY
SET_BACKING_FIELD testSimple type=kotlin.Unit operator=EQ
GET_VAR value type=kotlin.Int operator=null
PROPERTY public var testAugmented: kotlin.Int
EXPRESSION_BODY
CONST Int type=kotlin.Int value='0'
PROPERTY_SETTER public fun <set-testAugmented>(/*0*/ value: kotlin.Int): kotlin.Unit property=testAugmented
BLOCK_BODY
SET_BACKING_FIELD testAugmented type=kotlin.Unit operator=PLUSEQ
CALL .plus type=kotlin.Int operator=PLUSEQ
$this: GET_BACKING_FIELD testAugmented type=kotlin.Int operator=PLUSEQ
other: GET_VAR value type=kotlin.Int operator=null
PROPERTY_SETTER public fun <set-testAugmented>(/*0*/ value: kotlin.Int): kotlin.Unit
BLOCK_BODY
SET_BACKING_FIELD testAugmented type=kotlin.Unit operator=PLUSEQ
CALL .plus type=kotlin.Int operator=PLUSEQ
$this: GET_BACKING_FIELD testAugmented type=kotlin.Int operator=PLUSEQ
other: GET_VAR value type=kotlin.Int operator=null
@@ -7,7 +7,7 @@ FILE /forWithImplicitReceivers.kt
BLOCK_BODY
SET_BACKING_FIELD value type=kotlin.Unit operator=null
GET_VAR value type=kotlin.Int operator=INITIALIZE_PROPERTY_FROM_PARAMETER
PROPERTY public final var value: kotlin.Int getter=null setter=null
PROPERTY public final var value: kotlin.Int
EXPRESSION_BODY
GET_VAR value type=kotlin.Int operator=INITIALIZE_PROPERTY_FROM_PARAMETER
CLASS INTERFACE IReceiver
@@ -1,8 +1,8 @@
FILE /incrementDecrement.kt
PROPERTY public var p: kotlin.Int getter=null setter=null
PROPERTY public var p: kotlin.Int
EXPRESSION_BODY
CONST Int type=kotlin.Int value='0'
PROPERTY public val arr: kotlin.IntArray getter=null setter=null
PROPERTY public val arr: kotlin.IntArray
EXPRESSION_BODY
CALL .intArrayOf type=kotlin.IntArray operator=null
elements: VARARG type=IntArray varargElementType=Int
@@ -5,21 +5,21 @@ FILE /jvmStaticFieldReference.kt
$this: TYPE_OP operator=IMPLICIT_NOTNULL typeOperand=java.io.PrintStream
CALL .<get-out> type=java.io.PrintStream! operator=GET_PROPERTY
p0: CONST String type=kotlin.String value='testFun'
PROPERTY public var testProp: kotlin.Any getter=<get-testProp> setter=<set-testProp>
PROPERTY_GETTER public fun <get-testProp>(): kotlin.Any property=testProp
BLOCK_BODY
CALL .println type=kotlin.Unit operator=null
$this: TYPE_OP operator=IMPLICIT_NOTNULL typeOperand=java.io.PrintStream
CALL .<get-out> type=java.io.PrintStream! operator=GET_PROPERTY
p0: CONST String type=kotlin.String value='testProp/get'
RETURN type=kotlin.Nothing from=<get-testProp>
CONST Int type=kotlin.Int value='42'
PROPERTY_SETTER public fun <set-testProp>(/*0*/ value: kotlin.Any): kotlin.Unit property=testProp
BLOCK_BODY
CALL .println type=kotlin.Unit operator=null
$this: TYPE_OP operator=IMPLICIT_NOTNULL typeOperand=java.io.PrintStream
CALL .<get-out> type=java.io.PrintStream! operator=GET_PROPERTY
p0: CONST String type=kotlin.String value='testProp/set'
PROPERTY public var testProp: kotlin.Any
PROPERTY_GETTER public fun <get-testProp>(): kotlin.Any
BLOCK_BODY
CALL .println type=kotlin.Unit operator=null
$this: TYPE_OP operator=IMPLICIT_NOTNULL typeOperand=java.io.PrintStream
CALL .<get-out> type=java.io.PrintStream! operator=GET_PROPERTY
p0: CONST String type=kotlin.String value='testProp/get'
RETURN type=kotlin.Nothing from=<get-testProp>
CONST Int type=kotlin.Int value='42'
PROPERTY_SETTER public fun <set-testProp>(/*0*/ value: kotlin.Any): kotlin.Unit
BLOCK_BODY
CALL .println type=kotlin.Unit operator=null
$this: TYPE_OP operator=IMPLICIT_NOTNULL typeOperand=java.io.PrintStream
CALL .<get-out> type=java.io.PrintStream! operator=GET_PROPERTY
p0: CONST String type=kotlin.String value='testProp/set'
CLASS CLASS TestClass
FUN public constructor TestClass()
BLOCK_BODY
@@ -36,7 +36,7 @@ FILE /jvmStaticFieldReference.kt
$this: TYPE_OP operator=IMPLICIT_NOTNULL typeOperand=java.io.PrintStream
CALL .<get-out> type=java.io.PrintStream! operator=GET_PROPERTY
p0: CONST String type=kotlin.String value='TestClass/init'
PROPERTY public final val test: kotlin.Int getter=null setter=null
PROPERTY public final val test: kotlin.Int
EXPRESSION_BODY
WHEN type=kotlin.Int operator=WHEN
else: BLOCK type=kotlin.Int operator=null
+13 -13
View File
@@ -1,40 +1,40 @@
FILE /literals.kt
PROPERTY public val test1: kotlin.Int = 1 getter=null setter=null
PROPERTY public val test1: kotlin.Int = 1
EXPRESSION_BODY
CONST Int type=kotlin.Int value='1'
PROPERTY public val test2: kotlin.Int = -1 getter=null setter=null
PROPERTY public val test2: kotlin.Int = -1
EXPRESSION_BODY
CONST Int type=kotlin.Int value='-1'
PROPERTY public val test3: kotlin.Boolean = true getter=null setter=null
PROPERTY public val test3: kotlin.Boolean = true
EXPRESSION_BODY
CONST Boolean type=kotlin.Boolean value='true'
PROPERTY public val test4: kotlin.Boolean = false getter=null setter=null
PROPERTY public val test4: kotlin.Boolean = false
EXPRESSION_BODY
CONST Boolean type=kotlin.Boolean value='false'
PROPERTY public val test5: kotlin.String = "abc" getter=null setter=null
PROPERTY public val test5: kotlin.String = "abc"
EXPRESSION_BODY
CONST String type=kotlin.String value='abc'
PROPERTY public val test6: kotlin.Nothing? = null getter=null setter=null
PROPERTY public val test6: kotlin.Nothing? = null
EXPRESSION_BODY
CONST Null type=kotlin.Nothing? value='null'
PROPERTY public val test7: kotlin.Long = 1.toLong() getter=null setter=null
PROPERTY public val test7: kotlin.Long = 1.toLong()
EXPRESSION_BODY
CONST Long type=kotlin.Long value='1'
PROPERTY public val test8: kotlin.Long = -1.toLong() getter=null setter=null
PROPERTY public val test8: kotlin.Long = -1.toLong()
EXPRESSION_BODY
CONST Long type=kotlin.Long value='-1'
PROPERTY public val test9: kotlin.Double = 1.0.toDouble() getter=null setter=null
PROPERTY public val test9: kotlin.Double = 1.0.toDouble()
EXPRESSION_BODY
CONST Double type=kotlin.Double value='1.0'
PROPERTY public val test10: kotlin.Double = -1.0.toDouble() getter=null setter=null
PROPERTY public val test10: kotlin.Double = -1.0.toDouble()
EXPRESSION_BODY
CONST Double type=kotlin.Double value='-1.0'
PROPERTY public val test11: kotlin.Float = 1.0.toFloat() getter=null setter=null
PROPERTY public val test11: kotlin.Float = 1.0.toFloat()
EXPRESSION_BODY
CONST Float type=kotlin.Float value='1.0'
PROPERTY public val test12: kotlin.Float = -1.0.toFloat() getter=null setter=null
PROPERTY public val test12: kotlin.Float = -1.0.toFloat()
EXPRESSION_BODY
CONST Float type=kotlin.Float value='-1.0'
PROPERTY public val test13: kotlin.Char = \u0061 ('a') getter=null setter=null
PROPERTY public val test13: kotlin.Char = \u0061 ('a')
EXPRESSION_BODY
CONST Char type=kotlin.Char value='a'
+12 -12
View File
@@ -1,15 +1,15 @@
FILE /references.kt
PROPERTY public val ok: kotlin.String = "OK" getter=null setter=null
PROPERTY public val ok: kotlin.String = "OK"
EXPRESSION_BODY
CONST String type=kotlin.String value='OK'
PROPERTY public val ok2: kotlin.String = "OK" getter=null setter=null
PROPERTY public val ok2: kotlin.String = "OK"
EXPRESSION_BODY
CALL .<get-ok> type=kotlin.String operator=GET_PROPERTY
PROPERTY public val ok3: kotlin.String getter=<get-ok3> setter=null
PROPERTY_GETTER public fun <get-ok3>(): kotlin.String property=ok3
BLOCK_BODY
RETURN type=kotlin.Nothing from=<get-ok3>
CONST String type=kotlin.String value='OK'
PROPERTY public val ok3: kotlin.String
PROPERTY_GETTER public fun <get-ok3>(): kotlin.String
BLOCK_BODY
RETURN type=kotlin.Nothing from=<get-ok3>
CONST String type=kotlin.String value='OK'
FUN public fun test1(): kotlin.String
BLOCK_BODY
RETURN type=kotlin.Nothing from=test1
@@ -28,11 +28,11 @@ FILE /references.kt
BLOCK_BODY
RETURN type=kotlin.Nothing from=test4
CALL .<get-ok3> type=kotlin.String operator=GET_PROPERTY
PROPERTY public val kotlin.String.okext: kotlin.String getter=<get-okext> setter=null
PROPERTY_GETTER public fun kotlin.String.<get-okext>(): kotlin.String property=okext
BLOCK_BODY
RETURN type=kotlin.Nothing from=<get-okext>
CONST String type=kotlin.String value='OK'
PROPERTY public val kotlin.String.okext: kotlin.String
PROPERTY_GETTER public fun kotlin.String.<get-okext>(): kotlin.String
BLOCK_BODY
RETURN type=kotlin.Nothing from=<get-okext>
CONST String type=kotlin.String value='OK'
FUN public fun kotlin.String.test5(): kotlin.String
BLOCK_BODY
RETURN type=kotlin.Nothing from=test5
@@ -2,13 +2,13 @@ FILE /safeCallWithIncrementDecrement.kt
CLASS CLASS C
FUN public constructor C()
BLOCK_BODY
PROPERTY public var test.C?.p: kotlin.Int getter=<get-p> setter=<set-p>
PROPERTY_GETTER public fun test.C?.<get-p>(): kotlin.Int property=p
BLOCK_BODY
RETURN type=kotlin.Nothing from=<get-p>
CONST Int type=kotlin.Int value='42'
PROPERTY_SETTER public fun test.C?.<set-p>(/*0*/ value: kotlin.Int): kotlin.Unit property=p
BLOCK_BODY
PROPERTY public var test.C?.p: kotlin.Int
PROPERTY_GETTER public fun test.C?.<get-p>(): kotlin.Int
BLOCK_BODY
RETURN type=kotlin.Nothing from=<get-p>
CONST Int type=kotlin.Int value='42'
PROPERTY_SETTER public fun test.C?.<set-p>(/*0*/ value: kotlin.Int): kotlin.Unit
BLOCK_BODY
FUN public operator fun kotlin.Int?.inc(): kotlin.Int?
BLOCK_BODY
RETURN type=kotlin.Nothing from=inc
+1 -1
View File
@@ -4,7 +4,7 @@ FILE /safeCalls.kt
BLOCK_BODY
SET_BACKING_FIELD value type=kotlin.Unit operator=null
GET_VAR value type=kotlin.Int operator=INITIALIZE_PROPERTY_FROM_PARAMETER
PROPERTY public final var value: kotlin.Int getter=null setter=null
PROPERTY public final var value: kotlin.Int
EXPRESSION_BODY
GET_VAR value type=kotlin.Int operator=INITIALIZE_PROPERTY_FROM_PARAMETER
CLASS INTERFACE IHost
+14 -14
View File
@@ -3,21 +3,21 @@ FILE /smoke.kt
BLOCK_BODY
RETURN type=kotlin.Nothing from=testFun
CONST String type=kotlin.String value='OK'
PROPERTY public val testSimpleVal: kotlin.Int = 1 getter=null setter=null
PROPERTY public val testSimpleVal: kotlin.Int = 1
EXPRESSION_BODY
CONST Int type=kotlin.Int value='1'
PROPERTY public val testValWithGetter: kotlin.Int getter=<get-testValWithGetter> setter=null
PROPERTY_GETTER public fun <get-testValWithGetter>(): kotlin.Int property=testValWithGetter
BLOCK_BODY
RETURN type=kotlin.Nothing from=<get-testValWithGetter>
CONST Int type=kotlin.Int value='42'
PROPERTY public var testSimpleVar: kotlin.Int getter=null setter=null
PROPERTY public val testValWithGetter: kotlin.Int
PROPERTY_GETTER public fun <get-testValWithGetter>(): kotlin.Int
BLOCK_BODY
RETURN type=kotlin.Nothing from=<get-testValWithGetter>
CONST Int type=kotlin.Int value='42'
PROPERTY public var testSimpleVar: kotlin.Int
EXPRESSION_BODY
CONST Int type=kotlin.Int value='2'
PROPERTY public var testVarWithAccessors: kotlin.Int getter=<get-testVarWithAccessors> setter=<set-testVarWithAccessors>
PROPERTY_GETTER public fun <get-testVarWithAccessors>(): kotlin.Int property=testVarWithAccessors
BLOCK_BODY
RETURN type=kotlin.Nothing from=<get-testVarWithAccessors>
CONST Int type=kotlin.Int value='42'
PROPERTY_SETTER public fun <set-testVarWithAccessors>(/*0*/ v: kotlin.Int): kotlin.Unit property=testVarWithAccessors
BLOCK_BODY
PROPERTY public var testVarWithAccessors: kotlin.Int
PROPERTY_GETTER public fun <get-testVarWithAccessors>(): kotlin.Int
BLOCK_BODY
RETURN type=kotlin.Nothing from=<get-testVarWithAccessors>
CONST Int type=kotlin.Int value='42'
PROPERTY_SETTER public fun <set-testVarWithAccessors>(/*0*/ v: kotlin.Int): kotlin.Unit
BLOCK_BODY
@@ -3,21 +3,21 @@ FILE /stringTemplates.kt
BLOCK_BODY
RETURN type=kotlin.Nothing from=foo
CONST String type=kotlin.String value=''
PROPERTY public val test1: kotlin.String = "" getter=null setter=null
PROPERTY public val test1: kotlin.String = ""
EXPRESSION_BODY
CONST String type=kotlin.String value=''
PROPERTY public val test2: kotlin.String = "abc" getter=null setter=null
PROPERTY public val test2: kotlin.String = "abc"
EXPRESSION_BODY
CONST String type=kotlin.String value='abc'
PROPERTY public val test3: kotlin.String = "" getter=null setter=null
PROPERTY public val test3: kotlin.String = ""
EXPRESSION_BODY
CONST String type=kotlin.String value=''
PROPERTY public val test4: kotlin.String = "abc" getter=null setter=null
PROPERTY public val test4: kotlin.String = "abc"
EXPRESSION_BODY
CONST String type=kotlin.String value='abc'
PROPERTY public val test5: kotlin.String = "
abc
" getter=null setter=null
"
EXPRESSION_BODY
STRING_CONCATENATION type=kotlin.String
CONST String type=kotlin.String value='
@@ -25,7 +25,7 @@ abc
CONST String type=kotlin.String value='abc'
CONST String type=kotlin.String value='
'
PROPERTY public val test6: kotlin.String getter=null setter=null
PROPERTY public val test6: kotlin.String
EXPRESSION_BODY
STRING_CONCATENATION type=kotlin.String
CALL .<get-test1> type=kotlin.String operator=GET_PROPERTY
+1 -1
View File
@@ -8,7 +8,7 @@ FILE /values.kt
CLASS OBJECT A
FUN private constructor A()
BLOCK_BODY
PROPERTY public val a: kotlin.Int = 0 getter=null setter=null
PROPERTY public val a: kotlin.Int = 0
EXPRESSION_BODY
CONST Int type=kotlin.Int value='0'
CLASS CLASS Z
+3 -3
View File
@@ -1,15 +1,15 @@
FILE /vararg.kt
PROPERTY public val test1: kotlin.Array<kotlin.String> getter=null setter=null
PROPERTY public val test1: kotlin.Array<kotlin.String>
EXPRESSION_BODY
CALL .arrayOf type=kotlin.Array<kotlin.String> operator=null
PROPERTY public val test2: kotlin.Array<kotlin.String> getter=null setter=null
PROPERTY public val test2: kotlin.Array<kotlin.String>
EXPRESSION_BODY
CALL .arrayOf type=kotlin.Array<kotlin.String> operator=null
elements: VARARG type=Array<out String> varargElementType=String
CONST String type=kotlin.String value='1'
CONST String type=kotlin.String value='2'
CONST String type=kotlin.String value='3'
PROPERTY public val test3: kotlin.Array<kotlin.String> getter=null setter=null
PROPERTY public val test3: kotlin.Array<kotlin.String>
EXPRESSION_BODY
CALL .arrayOf type=kotlin.Array<kotlin.String> operator=null
elements: VARARG type=Array<out String> varargElementType=String
+1 -1
View File
@@ -1,5 +1,5 @@
FILE /anonymousFunction.kt
PROPERTY public val anonymous: () -> kotlin.Unit getter=null setter=null
PROPERTY public val anonymous: () -> kotlin.Unit
EXPRESSION_BODY
BLOCK type=() -> kotlin.Unit operator=ANONYMOUS_FUNCTION
FUN local final fun <no name provided>(): kotlin.Unit
+1 -1
View File
@@ -1,5 +1,5 @@
FILE /justLambda.kt
PROPERTY public val lambda: () -> kotlin.Int getter=null setter=null
PROPERTY public val lambda: () -> kotlin.Int
EXPRESSION_BODY
BLOCK type=() -> kotlin.Int operator=LAMBDA
FUN local final fun <anonymous>(): kotlin.Int
@@ -6,11 +6,11 @@ FILE /multipleImplicitReceivers.kt
FUN private constructor B()
BLOCK_BODY
CLASS INTERFACE IFoo
PROPERTY public open val A.foo: B getter=<get-foo> setter=null
PROPERTY_GETTER public open fun A.<get-foo>(): B property=foo
BLOCK_BODY
RETURN type=kotlin.Nothing from=<get-foo>
GET_OBJECT B type=B
PROPERTY public open val A.foo: B
PROPERTY_GETTER public open fun A.<get-foo>(): B
BLOCK_BODY
RETURN type=kotlin.Nothing from=<get-foo>
GET_OBJECT B type=B
CLASS INTERFACE IInvoke
FUN public open operator fun B.invoke(): kotlin.Int
BLOCK_BODY