testData format update: detailed descriptor rendering.

This commit is contained in:
Dmitry Petrov
2016-09-06 11:27:06 +03:00
committed by Dmitry Petrov
parent 993c3fe51e
commit 4e112b3f88
92 changed files with 2105 additions and 2100 deletions
+92 -92
View File
@@ -1,134 +1,134 @@
FILE /dataClasses.kt
CLASS CLASS Test1
CONSTRUCTOR public constructor Test1(/*0*/ x: kotlin.Int, /*1*/ y: kotlin.String, /*2*/ z: kotlin.Any)
CONSTRUCTOR public constructor Test1(x: kotlin.Int, y: kotlin.String, z: kotlin.Any)
BLOCK_BODY
DELEGATING_CONSTRUCTOR_CALL Any
SET_BACKING_FIELD x type=kotlin.Unit operator=null
receiver: THIS public final data class Test1 type=Test1
value: GET_VAR x type=kotlin.Int operator=INITIALIZE_PROPERTY_FROM_PARAMETER
SET_BACKING_FIELD y type=kotlin.Unit operator=null
receiver: THIS public final data class Test1 type=Test1
value: GET_VAR y type=kotlin.String operator=INITIALIZE_PROPERTY_FROM_PARAMETER
SET_BACKING_FIELD z type=kotlin.Unit operator=null
receiver: THIS public final data class Test1 type=Test1
value: GET_VAR z type=kotlin.Any operator=INITIALIZE_PROPERTY_FROM_PARAMETER
INSTANCE_INITIALIZER_CALL classDescriptor=Test1
DELEGATING_CONSTRUCTOR_CALL 'constructor Any()'
SET_BACKING_FIELD 'x: Int' type=kotlin.Unit operator=null
receiver: THIS of 'Test1' type=Test1
value: GET_VAR 'value-parameter x: Int' type=kotlin.Int operator=INITIALIZE_PROPERTY_FROM_PARAMETER
SET_BACKING_FIELD 'y: String' type=kotlin.Unit operator=null
receiver: THIS of 'Test1' type=Test1
value: GET_VAR 'value-parameter y: String' type=kotlin.String operator=INITIALIZE_PROPERTY_FROM_PARAMETER
SET_BACKING_FIELD 'z: Any' type=kotlin.Unit operator=null
receiver: THIS of 'Test1' type=Test1
value: GET_VAR 'value-parameter z: Any' type=kotlin.Any operator=INITIALIZE_PROPERTY_FROM_PARAMETER
INSTANCE_INITIALIZER_CALL classDescriptor='Test1'
PROPERTY public final val x: kotlin.Int
EXPRESSION_BODY
GET_VAR x type=kotlin.Int operator=INITIALIZE_PROPERTY_FROM_PARAMETER
GET_VAR 'value-parameter x: Int' type=kotlin.Int operator=INITIALIZE_PROPERTY_FROM_PARAMETER
PROPERTY public final val y: kotlin.String
EXPRESSION_BODY
GET_VAR y type=kotlin.String operator=INITIALIZE_PROPERTY_FROM_PARAMETER
GET_VAR 'value-parameter y: String' type=kotlin.String operator=INITIALIZE_PROPERTY_FROM_PARAMETER
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
GET_VAR 'value-parameter z: Any' type=kotlin.Any operator=INITIALIZE_PROPERTY_FROM_PARAMETER
FUN public final operator fun component1(): kotlin.Int
BLOCK_BODY
RETURN type=kotlin.Nothing from=component1
CALL .<get-x> type=kotlin.Int operator=GET_PROPERTY
$this: THIS public final data class Test1 type=Test1
FUN public final operator /*synthesized*/ fun component2(): kotlin.String
RETURN type=kotlin.Nothing from='component1(): Int'
CALL '<get-x>(): Int' type=kotlin.Int operator=GET_PROPERTY
$this: THIS of 'Test1' type=Test1
FUN public final operator fun component2(): kotlin.String
BLOCK_BODY
RETURN type=kotlin.Nothing from=component2
CALL .<get-y> type=kotlin.String operator=GET_PROPERTY
$this: THIS public final data class Test1 type=Test1
FUN public final operator /*synthesized*/ fun component3(): kotlin.Any
RETURN type=kotlin.Nothing from='component2(): String'
CALL '<get-y>(): String' type=kotlin.String operator=GET_PROPERTY
$this: THIS of 'Test1' type=Test1
FUN public final operator fun component3(): kotlin.Any
BLOCK_BODY
RETURN type=kotlin.Nothing from=component3
CALL .<get-z> type=kotlin.Any operator=GET_PROPERTY
$this: THIS public final data class Test1 type=Test1
FUN public final /*synthesized*/ fun copy(/*0*/ x: kotlin.Int = ..., /*1*/ y: kotlin.String = ..., /*2*/ z: kotlin.Any = ...): Test1
RETURN type=kotlin.Nothing from='component3(): Any'
CALL '<get-z>(): Any' type=kotlin.Any operator=GET_PROPERTY
$this: THIS of 'Test1' type=Test1
FUN public final fun copy(x: kotlin.Int = ..., y: kotlin.String = ..., z: kotlin.Any = ...): Test1
BLOCK_BODY
RETURN type=kotlin.Nothing from=copy
CALL .<init> type=Test1 operator=null
x: GET_VAR x type=kotlin.Int operator=null
y: GET_VAR y type=kotlin.String operator=null
z: GET_VAR z type=kotlin.Any operator=null
FUN public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
RETURN type=kotlin.Nothing from='copy(Int = ..., String = ..., Any = ...): Test1'
CALL 'constructor Test1(Int, String, Any)' type=Test1 operator=null
x: GET_VAR 'value-parameter x: Int = ...' type=kotlin.Int operator=null
y: GET_VAR 'value-parameter y: String = ...' type=kotlin.String operator=null
z: GET_VAR 'value-parameter z: Any = ...' type=kotlin.Any operator=null
FUN public open override fun toString(): kotlin.String
BLOCK_BODY
RETURN type=kotlin.Nothing from=toString
RETURN type=kotlin.Nothing from='toString(): String'
STRING_CONCATENATION type=kotlin.String
CONST String type=kotlin.String value='Test1('
CONST String type=kotlin.String value='x='
CALL .<get-x> type=kotlin.Int operator=GET_PROPERTY
$this: THIS public final data class Test1 type=Test1
CALL '<get-x>(): Int' type=kotlin.Int operator=GET_PROPERTY
$this: THIS of 'Test1' type=Test1
CONST String type=kotlin.String value=', '
CONST String type=kotlin.String value='y='
CALL .<get-y> type=kotlin.String operator=GET_PROPERTY
$this: THIS public final data class Test1 type=Test1
CALL '<get-y>(): String' type=kotlin.String operator=GET_PROPERTY
$this: THIS of 'Test1' type=Test1
CONST String type=kotlin.String value=', '
CONST String type=kotlin.String value='z='
CALL .<get-z> type=kotlin.Any operator=GET_PROPERTY
$this: THIS public final data class Test1 type=Test1
CALL '<get-z>(): Any' type=kotlin.Any operator=GET_PROPERTY
$this: THIS of 'Test1' type=Test1
CONST String type=kotlin.String value=')'
FUN public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
FUN public open override fun hashCode(): kotlin.Int
BLOCK_BODY
VAR val tmp0_result: kotlin.Int
CONST Int type=kotlin.Int value='0'
SET_VAR tmp0_result type=kotlin.Unit operator=EQ
CALL .hashCode type=kotlin.Int operator=null
$this: CALL .<get-x> type=kotlin.Int operator=GET_PROPERTY
$this: THIS public final data class Test1 type=Test1
SET_VAR tmp0_result type=kotlin.Unit operator=EQ
CALL .plus type=kotlin.Int operator=null
$this: CALL .times type=kotlin.Int operator=null
$this: GET_VAR tmp0_result type=kotlin.Int operator=null
SET_VAR 'tmp0_result: Int' type=kotlin.Unit operator=EQ
CALL 'hashCode(): Int' type=kotlin.Int operator=null
$this: CALL '<get-x>(): Int' type=kotlin.Int operator=GET_PROPERTY
$this: THIS of 'Test1' type=Test1
SET_VAR 'tmp0_result: Int' type=kotlin.Unit operator=EQ
CALL 'plus(Int): Int' type=kotlin.Int operator=null
$this: CALL 'times(Int): Int' type=kotlin.Int operator=null
$this: GET_VAR 'tmp0_result: Int' type=kotlin.Int operator=null
other: CONST Int type=kotlin.Int value='31'
other: CALL .hashCode type=kotlin.Int operator=null
$this: CALL .<get-y> type=kotlin.String operator=GET_PROPERTY
$this: THIS public final data class Test1 type=Test1
SET_VAR tmp0_result type=kotlin.Unit operator=EQ
CALL .plus type=kotlin.Int operator=null
$this: CALL .times type=kotlin.Int operator=null
$this: GET_VAR tmp0_result type=kotlin.Int operator=null
other: CALL 'hashCode(): Int' type=kotlin.Int operator=null
$this: CALL '<get-y>(): String' type=kotlin.String operator=GET_PROPERTY
$this: THIS of 'Test1' type=Test1
SET_VAR 'tmp0_result: Int' type=kotlin.Unit operator=EQ
CALL 'plus(Int): Int' type=kotlin.Int operator=null
$this: CALL 'times(Int): Int' type=kotlin.Int operator=null
$this: GET_VAR 'tmp0_result: Int' type=kotlin.Int operator=null
other: CONST Int type=kotlin.Int value='31'
other: CALL .hashCode type=kotlin.Int operator=null
$this: CALL .<get-z> type=kotlin.Any operator=GET_PROPERTY
$this: THIS public final data class Test1 type=Test1
RETURN type=kotlin.Nothing from=hashCode
GET_VAR tmp0_result type=kotlin.Int operator=null
FUN public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
other: CALL 'hashCode(): Int' type=kotlin.Int operator=null
$this: CALL '<get-z>(): Any' type=kotlin.Any operator=GET_PROPERTY
$this: THIS of 'Test1' type=Test1
RETURN type=kotlin.Nothing from='hashCode(): Int'
GET_VAR 'tmp0_result: Int' type=kotlin.Int operator=null
FUN public open override fun equals(other: kotlin.Any?): kotlin.Boolean
BLOCK_BODY
WHEN type=kotlin.Unit operator=null
if: CALL .EQEQEQ type=kotlin.Boolean operator=EQEQEQ
arg0: THIS public final data class Test1 type=Test1
arg1: GET_VAR other type=kotlin.Any? operator=null
then: RETURN type=kotlin.Nothing from=equals
if: CALL 'EQEQEQ(Any?, Any?): Boolean' type=kotlin.Boolean operator=EQEQEQ
arg0: THIS of 'Test1' type=Test1
arg1: GET_VAR 'value-parameter other: Any?' type=kotlin.Any? operator=null
then: RETURN type=kotlin.Nothing from='equals(Any?): Boolean'
CONST Boolean type=kotlin.Boolean value='true'
WHEN type=kotlin.Unit operator=null
if: TYPE_OP operator=NOT_INSTANCEOF typeOperand=Test1
GET_VAR other type=kotlin.Any? operator=null
then: RETURN type=kotlin.Nothing from=equals
GET_VAR 'value-parameter other: Any?' type=kotlin.Any? operator=null
then: RETURN type=kotlin.Nothing from='equals(Any?): Boolean'
CONST Boolean type=kotlin.Boolean value='false'
VAR val tmp0_other_with_cast: Test1
TYPE_OP operator=CAST typeOperand=Test1
GET_VAR other type=kotlin.Any? operator=null
GET_VAR 'value-parameter other: Any?' type=kotlin.Any? operator=null
WHEN type=kotlin.Unit operator=null
if: CALL .NOT type=kotlin.Boolean operator=EXCLEQ
arg0: CALL .EQEQ type=kotlin.Boolean operator=EXCLEQ
arg0: CALL .<get-x> type=kotlin.Int operator=GET_PROPERTY
$this: THIS public final data class Test1 type=Test1
arg1: CALL .<get-x> type=kotlin.Int operator=GET_PROPERTY
$this: GET_VAR tmp0_other_with_cast type=Test1 operator=null
then: RETURN type=kotlin.Nothing from=equals
if: CALL 'NOT(Boolean): Boolean' type=kotlin.Boolean operator=EXCLEQ
arg0: CALL 'EQEQ(Any?, Any?): Boolean' type=kotlin.Boolean operator=EXCLEQ
arg0: CALL '<get-x>(): Int' type=kotlin.Int operator=GET_PROPERTY
$this: THIS of 'Test1' type=Test1
arg1: CALL '<get-x>(): Int' type=kotlin.Int operator=GET_PROPERTY
$this: GET_VAR 'tmp0_other_with_cast: Test1' type=Test1 operator=null
then: RETURN type=kotlin.Nothing from='equals(Any?): Boolean'
CONST Boolean type=kotlin.Boolean value='false'
WHEN type=kotlin.Unit operator=null
if: CALL .NOT type=kotlin.Boolean operator=EXCLEQ
arg0: CALL .EQEQ type=kotlin.Boolean operator=EXCLEQ
arg0: CALL .<get-y> type=kotlin.String operator=GET_PROPERTY
$this: THIS public final data class Test1 type=Test1
arg1: CALL .<get-y> type=kotlin.String operator=GET_PROPERTY
$this: GET_VAR tmp0_other_with_cast type=Test1 operator=null
then: RETURN type=kotlin.Nothing from=equals
if: CALL 'NOT(Boolean): Boolean' type=kotlin.Boolean operator=EXCLEQ
arg0: CALL 'EQEQ(Any?, Any?): Boolean' type=kotlin.Boolean operator=EXCLEQ
arg0: CALL '<get-y>(): String' type=kotlin.String operator=GET_PROPERTY
$this: THIS of 'Test1' type=Test1
arg1: CALL '<get-y>(): String' type=kotlin.String operator=GET_PROPERTY
$this: GET_VAR 'tmp0_other_with_cast: Test1' type=Test1 operator=null
then: RETURN type=kotlin.Nothing from='equals(Any?): Boolean'
CONST Boolean type=kotlin.Boolean value='false'
WHEN type=kotlin.Unit operator=null
if: CALL .NOT type=kotlin.Boolean operator=EXCLEQ
arg0: CALL .EQEQ type=kotlin.Boolean operator=EXCLEQ
arg0: CALL .<get-z> type=kotlin.Any operator=GET_PROPERTY
$this: THIS public final data class Test1 type=Test1
arg1: CALL .<get-z> type=kotlin.Any operator=GET_PROPERTY
$this: GET_VAR tmp0_other_with_cast type=Test1 operator=null
then: RETURN type=kotlin.Nothing from=equals
if: CALL 'NOT(Boolean): Boolean' type=kotlin.Boolean operator=EXCLEQ
arg0: CALL 'EQEQ(Any?, Any?): Boolean' type=kotlin.Boolean operator=EXCLEQ
arg0: CALL '<get-z>(): Any' type=kotlin.Any operator=GET_PROPERTY
$this: THIS of 'Test1' type=Test1
arg1: CALL '<get-z>(): Any' type=kotlin.Any operator=GET_PROPERTY
$this: GET_VAR 'tmp0_other_with_cast: Test1' type=Test1 operator=null
then: RETURN type=kotlin.Nothing from='equals(Any?): Boolean'
CONST Boolean type=kotlin.Boolean value='false'
RETURN type=kotlin.Nothing from=equals
RETURN type=kotlin.Nothing from='equals(Any?): Boolean'
CONST Boolean type=kotlin.Boolean value='true'