Default arguments stored in function declarations.

This commit is contained in:
Dmitry Petrov
2016-08-31 18:28:04 +03:00
committed by Dmitry Petrov
parent 2d2100b1b5
commit 865d2c43c7
41 changed files with 197 additions and 106 deletions
@@ -12,7 +12,7 @@ FILE /arrayAugmentedAssignment1.kt
RETURN type=kotlin.Nothing from=bar
CONST Int type=kotlin.Int value='42'
CLASS CLASS C
FUN public constructor C(/*0*/ x: kotlin.IntArray)
CONSTRUCTOR public constructor C(/*0*/ x: kotlin.IntArray)
BLOCK_BODY
SET_BACKING_FIELD x type=kotlin.Unit operator=null
GET_VAR x type=kotlin.IntArray operator=INITIALIZE_PROPERTY_FROM_PARAMETER
+1 -1
View File
@@ -1,6 +1,6 @@
FILE /assignments.kt
CLASS CLASS Ref
FUN public constructor Ref(/*0*/ x: kotlin.Int)
CONSTRUCTOR public constructor Ref(/*0*/ x: kotlin.Int)
BLOCK_BODY
SET_BACKING_FIELD x type=kotlin.Unit operator=null
GET_VAR x type=kotlin.Int operator=INITIALIZE_PROPERTY_FROM_PARAMETER
@@ -1,6 +1,6 @@
FILE /augmentedAssignment2.kt
CLASS CLASS A
FUN public constructor A()
CONSTRUCTOR public constructor A()
BLOCK_BODY
FUN public operator fun A.plusAssign(/*0*/ s: kotlin.String): kotlin.Unit
BLOCK_BODY
@@ -1,6 +1,6 @@
FILE /chainOfSafeCalls.kt
CLASS CLASS C
FUN public constructor C()
CONSTRUCTOR public constructor C()
BLOCK_BODY
FUN public final fun foo(): C
BLOCK_BODY
@@ -1,9 +1,9 @@
FILE /forWithImplicitReceivers.kt
CLASS OBJECT FiveTimes
FUN private constructor FiveTimes()
CONSTRUCTOR private constructor FiveTimes()
BLOCK_BODY
CLASS CLASS IntCell
FUN public constructor IntCell(/*0*/ value: kotlin.Int)
CONSTRUCTOR public constructor IntCell(/*0*/ value: kotlin.Int)
BLOCK_BODY
SET_BACKING_FIELD value type=kotlin.Unit operator=null
GET_VAR value type=kotlin.Int operator=INITIALIZE_PROPERTY_FROM_PARAMETER
@@ -21,7 +21,7 @@ FILE /jvmStaticFieldReference.kt
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()
CONSTRUCTOR public constructor TestClass()
BLOCK_BODY
SET_BACKING_FIELD test type=kotlin.Unit operator=null
WHEN type=kotlin.Int operator=WHEN
@@ -1,6 +1,6 @@
FILE /safeCallWithIncrementDecrement.kt
CLASS CLASS C
FUN public constructor C()
CONSTRUCTOR public constructor C()
BLOCK_BODY
PROPERTY public var test.C?.p: kotlin.Int
PROPERTY_GETTER public fun test.C?.<get-p>(): kotlin.Int
+1 -1
View File
@@ -1,6 +1,6 @@
FILE /safeCalls.kt
CLASS CLASS Ref
FUN public constructor Ref(/*0*/ value: kotlin.Int)
CONSTRUCTOR public constructor Ref(/*0*/ value: kotlin.Int)
BLOCK_BODY
SET_BACKING_FIELD value type=kotlin.Unit operator=null
GET_VAR value type=kotlin.Int operator=INITIALIZE_PROPERTY_FROM_PARAMETER
+4 -4
View File
@@ -1,6 +1,6 @@
FILE /values.kt
CLASS ENUM_CLASS Enum
FUN private constructor Enum()
CONSTRUCTOR private constructor Enum()
BLOCK_BODY
ENUM_CONSTRUCTOR_CALL Enum super
ENUM_ENTRY enum entry A
@@ -10,16 +10,16 @@ FILE /values.kt
FUN public final /*synthesized*/ fun valueOf(/*0*/ value: kotlin.String): Enum
SYNTHETIC_BODY kind=ENUM_VALUEOF
CLASS OBJECT A
FUN private constructor A()
CONSTRUCTOR private constructor A()
BLOCK_BODY
PROPERTY public val a: kotlin.Int = 0
EXPRESSION_BODY
CONST Int type=kotlin.Int value='0'
CLASS CLASS Z
FUN public constructor Z()
CONSTRUCTOR public constructor Z()
BLOCK_BODY
CLASS OBJECT Companion
FUN private constructor Companion()
CONSTRUCTOR private constructor Companion()
BLOCK_BODY
FUN public fun test1(): Enum
BLOCK_BODY
+1 -1
View File
@@ -1,6 +1,6 @@
FILE /when.kt
CLASS OBJECT A
FUN private constructor A()
CONSTRUCTOR private constructor A()
BLOCK_BODY
FUN public fun testWithSubject(/*0*/ x: kotlin.Any?): kotlin.String
BLOCK_BODY