diff --git a/compiler/testData/ir/irCfg/expressionFun.txt b/compiler/testData/ir/irCfg/expressionFun.txt index f7f80b28a8d..41fdd142771 100644 --- a/compiler/testData/ir/irCfg/expressionFun.txt +++ b/compiler/testData/ir/irCfg/expressionFun.txt @@ -2,11 +2,11 @@ // FUN: foo BB 0 CONTENT - 1 FUN public fun foo(arg: kotlin.Int): kotlin.Int + 1 FUN name:foo visibility:public modality:FINAL <> (arg:kotlin.Int) returnType:Int flags: 2 GET_VAR 'value-parameter arg: Int' type=kotlin.Int origin=null - 3 RETURN type=kotlin.Nothing from='foo(Int): Int' + 3 RETURN type=kotlin.Nothing from=foo(Int): Int' OUTGOING -> NONE - Function exit: FUN public fun foo(arg: kotlin.Int): kotlin.Int + Function exit: FUN name:foo visibility:public modality:FINAL <> (arg:kotlin.Int) returnType:Int flags: // END FUN: foo diff --git a/compiler/testData/ir/irCfg/expressionUnit.txt b/compiler/testData/ir/irCfg/expressionUnit.txt index 4f4b004993b..7e6ebacbf11 100644 --- a/compiler/testData/ir/irCfg/expressionUnit.txt +++ b/compiler/testData/ir/irCfg/expressionUnit.txt @@ -2,11 +2,11 @@ // FUN: foo BB 0 CONTENT - 1 FUN public fun foo(): kotlin.Unit + 1 FUN name:foo visibility:public modality:FINAL <> () returnType:Unit flags: 2 GET_OBJECT 'Unit' type=kotlin.Unit - 3 RETURN type=kotlin.Nothing from='foo(): Unit' + 3 RETURN type=kotlin.Nothing from=foo(): Unit' OUTGOING -> NONE - Function exit: FUN public fun foo(): kotlin.Unit + Function exit: FUN name:foo visibility:public modality:FINAL <> () returnType:Unit flags: // END FUN: foo diff --git a/compiler/testData/ir/irCfg/loop/digitCount.txt b/compiler/testData/ir/irCfg/loop/digitCount.txt index 6ab5aecab3a..039cde6f5ae 100644 --- a/compiler/testData/ir/irCfg/loop/digitCount.txt +++ b/compiler/testData/ir/irCfg/loop/digitCount.txt @@ -2,11 +2,11 @@ // FUN: digitCountInNumber BB 0 CONTENT - 1 FUN public fun digitCountInNumber(n: kotlin.Int, m: kotlin.Int): kotlin.Int - 2 CONST Int type=kotlin.Int value='0' - 3 VAR var count: kotlin.Int + 1 FUN name:digitCountInNumber visibility:public modality:FINAL <> (n:kotlin.Int, m:kotlin.Int) returnType:Int flags: + 2 CONST Int type=kotlin.Int value=0 + 3 VAR name:count type:kotlin.Int flags:var 4 GET_VAR 'value-parameter n: Int' type=kotlin.Int origin=null - 5 VAR var number: kotlin.Int + 5 VAR name:number type:kotlin.Int flags:var 6 DO_WHILE label=null origin=DO_WHILE_LOOP OUTGOING -> BB 1 Do..while entry: DO_WHILE label=null origin=DO_WHILE_LOOP @@ -17,7 +17,7 @@ CONTENT 1 WHEN type=kotlin.Unit origin=null 2 GET_VAR 'value-parameter m: Int' type=kotlin.Int origin=null 3 GET_VAR 'number: Int' type=kotlin.Int origin=null - 4 CONST Int type=kotlin.Int value='10' + 4 CONST Int type=kotlin.Int value=10 5 CALL 'rem(Int): Int' type=kotlin.Int origin=PERC OUTGOING -> BB 2 CALL 'EQEQ(Any?, Any?): Boolean' type=kotlin.Boolean origin=EQEQ @@ -26,7 +26,7 @@ INCOMING <- BB 1 CALL 'EQEQ(Any?, Any?): Boolean' type=kotlin.Boolean origin=EQEQ CONTENT 1 GET_VAR 'count: Int' type=kotlin.Int origin=POSTFIX_INCR - 2 VAR IR_TEMPORARY_VARIABLE val tmp0: kotlin.Int + 2 VAR IR_TEMPORARY_VARIABLE name:tmp0 type:kotlin.Int flags:val 3 SET_VAR 'count: Int' type=kotlin.Unit origin=POSTFIX_INCR 4 GET_VAR 'tmp0: Int' type=kotlin.Int origin=null 5 TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit @@ -38,7 +38,7 @@ INCOMING <- BB 2 CONTENT 1 SET_VAR 'number: Int' type=kotlin.Unit origin=DIVEQ 2 GET_VAR 'number: Int' type=kotlin.Int origin=null - 3 CONST Int type=kotlin.Int value='0' + 3 CONST Int type=kotlin.Int value=0 4 CALL 'compareTo(Int): Int' type=kotlin.Int origin=GT OUTGOING -> BB 4, 5 CALL 'GT0(Int): Boolean' type=kotlin.Boolean origin=GT @@ -59,9 +59,9 @@ INCOMING <- BB 5 Do..while exit: DO_WHILE label=null origin=DO_WHILE_LOOP CONTENT 1 GET_VAR 'count: Int' type=kotlin.Int origin=null - 2 RETURN type=kotlin.Nothing from='digitCountInNumber(Int, Int): Int' + 2 RETURN type=kotlin.Nothing from=digitCountInNumber(Int, Int): Int' OUTGOING -> NONE - Function exit: FUN public fun digitCountInNumber(n: kotlin.Int, m: kotlin.Int): kotlin.Int + Function exit: FUN name:digitCountInNumber visibility:public modality:FINAL <> (n:kotlin.Int, m:kotlin.Int) returnType:Int flags: // END FUN: digitCountInNumber diff --git a/compiler/testData/ir/irCfg/loop/factorial.txt b/compiler/testData/ir/irCfg/loop/factorial.txt index 082de1357cb..dcdc130d499 100644 --- a/compiler/testData/ir/irCfg/loop/factorial.txt +++ b/compiler/testData/ir/irCfg/loop/factorial.txt @@ -2,14 +2,14 @@ // FUN: factorial BB 0 CONTENT - 1 FUN public fun factorial(i: kotlin.Int): kotlin.Int - 2 CONST Int type=kotlin.Int value='1' - 3 VAR var result: kotlin.Int - 4 CONST Int type=kotlin.Int value='2' + 1 FUN name:factorial visibility:public modality:FINAL <> (i:kotlin.Int) returnType:Int flags: + 2 CONST Int type=kotlin.Int value=1 + 3 VAR name:result type:kotlin.Int flags:var + 4 CONST Int type=kotlin.Int value=2 5 GET_VAR 'value-parameter i: Int' type=kotlin.Int origin=null 6 CALL 'rangeTo(Int): IntRange' type=kotlin.ranges.IntRange origin=RANGE 7 CALL 'iterator(): IntIterator' type=kotlin.collections.IntIterator origin=FOR_LOOP_ITERATOR - 8 VAR FOR_LOOP_ITERATOR val tmp0_iterator: kotlin.collections.IntIterator + 8 VAR FOR_LOOP_ITERATOR name:tmp0_iterator type:kotlin.collections.IntIterator flags:val 9 WHILE label=null origin=FOR_LOOP_INNER_WHILE OUTGOING -> BB 1 While entry: WHILE label=null origin=FOR_LOOP_INNER_WHILE @@ -26,7 +26,7 @@ INCOMING <- BB 1 CONTENT 1 GET_VAR 'tmp0_iterator: IntIterator' type=kotlin.collections.IntIterator origin=null 2 CALL 'next(): Int' type=kotlin.Int origin=FOR_LOOP_NEXT - 3 VAR FOR_LOOP_VARIABLE val j: kotlin.Int + 3 VAR FOR_LOOP_VARIABLE name:j type:kotlin.Int flags:val 4 SET_VAR 'result: Int' type=kotlin.Unit origin=MULTEQ OUTGOING -> BB 1 While entry: WHILE label=null origin=FOR_LOOP_INNER_WHILE @@ -41,9 +41,9 @@ INCOMING <- BB 3 While exit: WHILE label=null origin=FOR_LOOP_INNER_WHILE CONTENT 1 GET_VAR 'result: Int' type=kotlin.Int origin=null - 2 RETURN type=kotlin.Nothing from='factorial(Int): Int' + 2 RETURN type=kotlin.Nothing from=factorial(Int): Int' OUTGOING -> NONE - Function exit: FUN public fun factorial(i: kotlin.Int): kotlin.Int + Function exit: FUN name:factorial visibility:public modality:FINAL <> (i:kotlin.Int) returnType:Int flags: // END FUN: factorial diff --git a/compiler/testData/ir/irCfg/loop/isPerfect.txt b/compiler/testData/ir/irCfg/loop/isPerfect.txt index 821efeba597..e8ed6ee3d39 100644 --- a/compiler/testData/ir/irCfg/loop/isPerfect.txt +++ b/compiler/testData/ir/irCfg/loop/isPerfect.txt @@ -2,16 +2,16 @@ // FUN: isPerfect BB 0 CONTENT - 1 FUN public fun isPerfect(n: kotlin.Int): kotlin.Boolean - 2 CONST Int type=kotlin.Int value='1' - 3 VAR var sum: kotlin.Int - 4 CONST Int type=kotlin.Int value='2' + 1 FUN name:isPerfect visibility:public modality:FINAL <> (n:kotlin.Int) returnType:Boolean flags: + 2 CONST Int type=kotlin.Int value=1 + 3 VAR name:sum type:kotlin.Int flags:var + 4 CONST Int type=kotlin.Int value=2 5 GET_VAR 'value-parameter n: Int' type=kotlin.Int origin=null - 6 CONST Int type=kotlin.Int value='2' + 6 CONST Int type=kotlin.Int value=2 7 CALL 'div(Int): Int' type=kotlin.Int origin=DIV 8 CALL 'rangeTo(Int): IntRange' type=kotlin.ranges.IntRange origin=RANGE 9 CALL 'iterator(): IntIterator' type=kotlin.collections.IntIterator origin=FOR_LOOP_ITERATOR - 10 VAR FOR_LOOP_ITERATOR val tmp0_iterator: kotlin.collections.IntIterator + 10 VAR FOR_LOOP_ITERATOR name:tmp0_iterator type:kotlin.collections.IntIterator flags:val 11 WHILE label=null origin=FOR_LOOP_INNER_WHILE OUTGOING -> BB 1 While entry: WHILE label=null origin=FOR_LOOP_INNER_WHILE @@ -28,12 +28,12 @@ INCOMING <- BB 1 CONTENT 1 GET_VAR 'tmp0_iterator: IntIterator' type=kotlin.collections.IntIterator origin=null 2 CALL 'next(): Int' type=kotlin.Int origin=FOR_LOOP_NEXT - 3 VAR FOR_LOOP_VARIABLE val m: kotlin.Int + 3 VAR FOR_LOOP_VARIABLE name:m type:kotlin.Int flags:val 4 WHEN type=kotlin.Unit origin=null 5 GET_VAR 'value-parameter n: Int' type=kotlin.Int origin=null 6 GET_VAR 'm: Int' type=kotlin.Int origin=null 7 CALL 'rem(Int): Int' type=kotlin.Int origin=PERC - 8 CONST Int type=kotlin.Int value='0' + 8 CONST Int type=kotlin.Int value=0 9 CALL 'compareTo(Int): Int' type=kotlin.Int origin=GT OUTGOING -> BB 3, 4 CALL 'GT0(Int): Boolean' type=kotlin.Boolean origin=GT @@ -81,9 +81,9 @@ CONTENT 1 GET_VAR 'sum: Int' type=kotlin.Int origin=null 2 GET_VAR 'value-parameter n: Int' type=kotlin.Int origin=null 3 CALL 'EQEQ(Any?, Any?): Boolean' type=kotlin.Boolean origin=EQEQ - 4 RETURN type=kotlin.Nothing from='isPerfect(Int): Boolean' + 4 RETURN type=kotlin.Nothing from=isPerfect(Int): Boolean' OUTGOING -> NONE - Function exit: FUN public fun isPerfect(n: kotlin.Int): kotlin.Boolean + Function exit: FUN name:isPerfect visibility:public modality:FINAL <> (n:kotlin.Int) returnType:Boolean flags: // END FUN: isPerfect diff --git a/compiler/testData/ir/irCfg/returnUnit.txt b/compiler/testData/ir/irCfg/returnUnit.txt index 7e2f46aef2d..40bc840234f 100644 --- a/compiler/testData/ir/irCfg/returnUnit.txt +++ b/compiler/testData/ir/irCfg/returnUnit.txt @@ -2,11 +2,11 @@ // FUN: foo BB 0 CONTENT - 1 FUN public fun foo(): kotlin.Unit + 1 FUN name:foo visibility:public modality:FINAL <> () returnType:Unit flags: 2 GET_OBJECT 'Unit' type=kotlin.Unit - 3 RETURN type=kotlin.Nothing from='foo(): Unit' + 3 RETURN type=kotlin.Nothing from=foo(): Unit' OUTGOING -> NONE - Function exit: FUN public fun foo(): kotlin.Unit + Function exit: FUN name:foo visibility:public modality:FINAL <> () returnType:Unit flags: // END FUN: foo diff --git a/compiler/testData/ir/irCfg/sequentialFun.txt b/compiler/testData/ir/irCfg/sequentialFun.txt index 6be37bda118..5e230fb70bc 100644 --- a/compiler/testData/ir/irCfg/sequentialFun.txt +++ b/compiler/testData/ir/irCfg/sequentialFun.txt @@ -2,15 +2,15 @@ // FUN: foo BB 0 CONTENT - 1 FUN public fun foo(arg: kotlin.Int): kotlin.Int + 1 FUN name:foo visibility:public modality:FINAL <> (arg:kotlin.Int) returnType:Int flags: 2 GET_VAR 'value-parameter arg: Int' type=kotlin.Int origin=null - 3 CONST Int type=kotlin.Int value='2' + 3 CONST Int type=kotlin.Int value=2 4 CALL 'times(Int): Int' type=kotlin.Int origin=MUL - 5 VAR val dbl: kotlin.Int + 5 VAR name:dbl type:kotlin.Int flags:val 6 GET_VAR 'dbl: Int' type=kotlin.Int origin=null - 7 RETURN type=kotlin.Nothing from='foo(Int): Int' + 7 RETURN type=kotlin.Nothing from=foo(Int): Int' OUTGOING -> NONE - Function exit: FUN public fun foo(arg: kotlin.Int): kotlin.Int + Function exit: FUN name:foo visibility:public modality:FINAL <> (arg:kotlin.Int) returnType:Int flags: // END FUN: foo diff --git a/compiler/testData/ir/irCfg/simpleFun.txt b/compiler/testData/ir/irCfg/simpleFun.txt index 540fccda2ea..16e26c231f8 100644 --- a/compiler/testData/ir/irCfg/simpleFun.txt +++ b/compiler/testData/ir/irCfg/simpleFun.txt @@ -2,9 +2,9 @@ // FUN: foo BB 0 CONTENT - 1 FUN public fun foo(): kotlin.Unit + 1 FUN name:foo visibility:public modality:FINAL <> () returnType:Unit flags: OUTGOING -> NONE - Function exit: FUN public fun foo(): kotlin.Unit + Function exit: FUN name:foo visibility:public modality:FINAL <> () returnType:Unit flags: // END FUN: foo diff --git a/compiler/testData/ir/irCfg/simpleReturn.txt b/compiler/testData/ir/irCfg/simpleReturn.txt index 42b933f7828..7fad1c157c0 100644 --- a/compiler/testData/ir/irCfg/simpleReturn.txt +++ b/compiler/testData/ir/irCfg/simpleReturn.txt @@ -2,11 +2,11 @@ // FUN: foo BB 0 CONTENT - 1 FUN public fun foo(): kotlin.Unit + 1 FUN name:foo visibility:public modality:FINAL <> () returnType:Unit flags: 2 GET_OBJECT 'Unit' type=kotlin.Unit - 3 RETURN type=kotlin.Nothing from='foo(): Unit' + 3 RETURN type=kotlin.Nothing from=foo(): Unit' OUTGOING -> NONE - Function exit: FUN public fun foo(): kotlin.Unit + Function exit: FUN name:foo visibility:public modality:FINAL <> () returnType:Unit flags: // END FUN: foo diff --git a/compiler/testData/ir/irCfg/when/cascadeIf.txt b/compiler/testData/ir/irCfg/when/cascadeIf.txt index 00f2d34f4d4..5eae6b27fac 100644 --- a/compiler/testData/ir/irCfg/when/cascadeIf.txt +++ b/compiler/testData/ir/irCfg/when/cascadeIf.txt @@ -2,7 +2,7 @@ // FUN: compare BB 0 CONTENT - 1 FUN public fun compare(x: kotlin.Int, y: kotlin.Int): kotlin.Int + 1 FUN name:compare visibility:public modality:FINAL <> (x:kotlin.Int, y:kotlin.Int) returnType:Int flags: 2 WHEN type=kotlin.Int origin=WHEN 3 GET_VAR 'value-parameter x: Int' type=kotlin.Int origin=null 4 GET_VAR 'value-parameter y: Int' type=kotlin.Int origin=null @@ -23,35 +23,35 @@ INCOMING <- BB 1 CALL 'LT0(Int): Boolean' type=kotlin.Boolean origin=LT CONTENT OUTGOING -> BB 5 - CONST Boolean type=kotlin.Boolean value='true' + CONST Boolean type=kotlin.Boolean value=true BB 3 INCOMING <- BB 0 CALL 'GT0(Int): Boolean' type=kotlin.Boolean origin=GT CONTENT - 1 CONST Int type=kotlin.Int value='1' + 1 CONST Int type=kotlin.Int value=1 OUTGOING -> BB 6 When exit: WHEN type=kotlin.Int origin=WHEN BB 4 INCOMING <- BB 1 CALL 'LT0(Int): Boolean' type=kotlin.Boolean origin=LT CONTENT - 1 CONST Int type=kotlin.Int value='-1' + 1 CONST Int type=kotlin.Int value=-1 OUTGOING -> BB 6 When exit: WHEN type=kotlin.Int origin=WHEN BB 5 INCOMING <- BB 2 - CONST Boolean type=kotlin.Boolean value='true' + CONST Boolean type=kotlin.Boolean value=true CONTENT - 1 CONST Int type=kotlin.Int value='0' + 1 CONST Int type=kotlin.Int value=0 OUTGOING -> BB 6 When exit: WHEN type=kotlin.Int origin=WHEN BB 6 INCOMING <- BB 3, 4, 5 When exit: WHEN type=kotlin.Int origin=WHEN CONTENT - 1 RETURN type=kotlin.Nothing from='compare(Int, Int): Int' + 1 RETURN type=kotlin.Nothing from=compare(Int, Int): Int' OUTGOING -> NONE - Function exit: FUN public fun compare(x: kotlin.Int, y: kotlin.Int): kotlin.Int + Function exit: FUN name:compare visibility:public modality:FINAL <> (x:kotlin.Int, y:kotlin.Int) returnType:Int flags: // END FUN: compare diff --git a/compiler/testData/ir/irCfg/when/emptyWhen.txt b/compiler/testData/ir/irCfg/when/emptyWhen.txt index 4ac02015210..df30d8542a0 100644 --- a/compiler/testData/ir/irCfg/when/emptyWhen.txt +++ b/compiler/testData/ir/irCfg/when/emptyWhen.txt @@ -2,24 +2,24 @@ // FUN: empty BB 0 CONTENT - 1 FUN public fun empty(): kotlin.Int + 1 FUN name:empty visibility:public modality:FINAL <> () returnType:Int flags: 2 WHEN type=kotlin.Int origin=WHEN OUTGOING -> BB 1 - CONST Boolean type=kotlin.Boolean value='true' + CONST Boolean type=kotlin.Boolean value=true BB 1 INCOMING <- BB 0 - CONST Boolean type=kotlin.Boolean value='true' + CONST Boolean type=kotlin.Boolean value=true CONTENT - 1 CONST Int type=kotlin.Int value='42' + 1 CONST Int type=kotlin.Int value=42 OUTGOING -> BB 2 When exit: WHEN type=kotlin.Int origin=WHEN BB 2 INCOMING <- BB 1 When exit: WHEN type=kotlin.Int origin=WHEN CONTENT - 1 RETURN type=kotlin.Nothing from='empty(): Int' + 1 RETURN type=kotlin.Nothing from=empty(): Int' OUTGOING -> NONE - Function exit: FUN public fun empty(): kotlin.Int + Function exit: FUN name:empty visibility:public modality:FINAL <> () returnType:Int flags: // END FUN: empty diff --git a/compiler/testData/ir/irCfg/when/expressionIf.txt b/compiler/testData/ir/irCfg/when/expressionIf.txt index e8c3ea64715..bc22d646bfd 100644 --- a/compiler/testData/ir/irCfg/when/expressionIf.txt +++ b/compiler/testData/ir/irCfg/when/expressionIf.txt @@ -2,7 +2,7 @@ // FUN: max BB 0 CONTENT - 1 FUN public fun max(x: kotlin.Int, y: kotlin.Int): kotlin.Int + 1 FUN name:max visibility:public modality:FINAL <> (x:kotlin.Int, y:kotlin.Int) returnType:Int flags: 2 WHEN type=kotlin.Int origin=null 3 GET_VAR 'value-parameter x: Int' type=kotlin.Int origin=null 4 GET_VAR 'value-parameter y: Int' type=kotlin.Int origin=null @@ -14,7 +14,7 @@ INCOMING <- BB 0 CALL 'GT0(Int): Boolean' type=kotlin.Boolean origin=GT CONTENT OUTGOING -> BB 3 - CONST Boolean type=kotlin.Boolean value='true' + CONST Boolean type=kotlin.Boolean value=true BB 2 INCOMING <- BB 0 CALL 'GT0(Int): Boolean' type=kotlin.Boolean origin=GT @@ -24,7 +24,7 @@ OUTGOING -> BB 4 When exit: WHEN type=kotlin.Int origin=null BB 3 INCOMING <- BB 1 - CONST Boolean type=kotlin.Boolean value='true' + CONST Boolean type=kotlin.Boolean value=true CONTENT 1 GET_VAR 'value-parameter y: Int' type=kotlin.Int origin=null OUTGOING -> BB 4 @@ -33,9 +33,9 @@ BB 4 INCOMING <- BB 2, 3 When exit: WHEN type=kotlin.Int origin=null CONTENT - 1 RETURN type=kotlin.Nothing from='max(Int, Int): Int' + 1 RETURN type=kotlin.Nothing from=max(Int, Int): Int' OUTGOING -> NONE - Function exit: FUN public fun max(x: kotlin.Int, y: kotlin.Int): kotlin.Int + Function exit: FUN name:max visibility:public modality:FINAL <> (x:kotlin.Int, y:kotlin.Int) returnType:Int flags: // END FUN: max diff --git a/compiler/testData/ir/irCfg/when/ifChain.txt b/compiler/testData/ir/irCfg/when/ifChain.txt index 05e7baa50ba..2322beb7ddd 100644 --- a/compiler/testData/ir/irCfg/when/ifChain.txt +++ b/compiler/testData/ir/irCfg/when/ifChain.txt @@ -2,10 +2,10 @@ // FUN: minBiRoot BB 0 CONTENT - 1 FUN public fun minBiRoot(a: kotlin.Double, b: kotlin.Double, c: kotlin.Double): kotlin.Double + 1 FUN name:minBiRoot visibility:public modality:FINAL <> (a:kotlin.Double, b:kotlin.Double, c:kotlin.Double) returnType:Double flags: 2 WHEN type=kotlin.Unit origin=null 3 GET_VAR 'value-parameter a: Double' type=kotlin.Double origin=null - 4 CONST Double type=kotlin.Double value='0.0' + 4 CONST Double type=kotlin.Double value=0.0 OUTGOING -> BB 1, 6 CALL 'EQEQ(Any?, Any?): Boolean' type=kotlin.Boolean origin=EQEQ BB 1 @@ -14,17 +14,17 @@ INCOMING <- BB 0 CONTENT 1 WHEN type=kotlin.Unit origin=null 2 GET_VAR 'value-parameter b: Double' type=kotlin.Double origin=null - 3 CONST Double type=kotlin.Double value='0.0' + 3 CONST Double type=kotlin.Double value=0.0 OUTGOING -> BB 2, 3 CALL 'EQEQ(Any?, Any?): Boolean' type=kotlin.Boolean origin=EQEQ BB 2 INCOMING <- BB 1 CALL 'EQEQ(Any?, Any?): Boolean' type=kotlin.Boolean origin=EQEQ CONTENT - 1 CONST Double type=kotlin.Double value='1.0' - 2 RETURN type=kotlin.Nothing from='minBiRoot(Double, Double, Double): Double' + 1 CONST Double type=kotlin.Double value=1.0 + 2 RETURN type=kotlin.Nothing from=minBiRoot(Double, Double, Double): Double' OUTGOING -> NONE - Function exit: FUN public fun minBiRoot(a: kotlin.Double, b: kotlin.Double, c: kotlin.Double): kotlin.Double + Function exit: FUN name:minBiRoot visibility:public modality:FINAL <> (a:kotlin.Double, b:kotlin.Double, c:kotlin.Double) returnType:Double flags: BB 3 INCOMING <- BB 1 CALL 'EQEQ(Any?, Any?): Boolean' type=kotlin.Boolean origin=EQEQ @@ -33,10 +33,10 @@ CONTENT 2 CALL 'unaryMinus(): Double' type=kotlin.Double origin=UMINUS 3 GET_VAR 'value-parameter b: Double' type=kotlin.Double origin=null 4 CALL 'div(Double): Double' type=kotlin.Double origin=DIV - 5 VAR val bc: kotlin.Double + 5 VAR name:bc type:kotlin.Double flags:val 6 WHEN type=kotlin.Unit origin=null 7 GET_VAR 'bc: Double' type=kotlin.Double origin=null - 8 CONST Double type=kotlin.Double value='0.0' + 8 CONST Double type=kotlin.Double value=0.0 9 CALL 'compareTo(Double): Int' type=kotlin.Int origin=LT OUTGOING -> BB 4, 5 CALL 'LT0(Int): Boolean' type=kotlin.Boolean origin=LT @@ -44,19 +44,19 @@ BB 4 INCOMING <- BB 3 CALL 'LT0(Int): Boolean' type=kotlin.Boolean origin=LT CONTENT - 1 CONST Double type=kotlin.Double value='2.0' - 2 RETURN type=kotlin.Nothing from='minBiRoot(Double, Double, Double): Double' + 1 CONST Double type=kotlin.Double value=2.0 + 2 RETURN type=kotlin.Nothing from=minBiRoot(Double, Double, Double): Double' OUTGOING -> NONE - Function exit: FUN public fun minBiRoot(a: kotlin.Double, b: kotlin.Double, c: kotlin.Double): kotlin.Double + Function exit: FUN name:minBiRoot visibility:public modality:FINAL <> (a:kotlin.Double, b:kotlin.Double, c:kotlin.Double) returnType:Double flags: BB 5 INCOMING <- BB 3 CALL 'LT0(Int): Boolean' type=kotlin.Boolean origin=LT CONTENT 1 GET_VAR 'bc: Double' type=kotlin.Double origin=null 2 CALL 'unaryMinus(): Double' type=kotlin.Double origin=UMINUS - 3 RETURN type=kotlin.Nothing from='minBiRoot(Double, Double, Double): Double' + 3 RETURN type=kotlin.Nothing from=minBiRoot(Double, Double, Double): Double' OUTGOING -> NONE - Function exit: FUN public fun minBiRoot(a: kotlin.Double, b: kotlin.Double, c: kotlin.Double): kotlin.Double + Function exit: FUN name:minBiRoot visibility:public modality:FINAL <> (a:kotlin.Double, b:kotlin.Double, c:kotlin.Double) returnType:Double flags: BB 6 INCOMING <- BB 0 CALL 'EQEQ(Any?, Any?): Boolean' type=kotlin.Boolean origin=EQEQ @@ -64,16 +64,16 @@ CONTENT 1 GET_VAR 'value-parameter b: Double' type=kotlin.Double origin=null 2 GET_VAR 'value-parameter b: Double' type=kotlin.Double origin=null 3 CALL 'times(Double): Double' type=kotlin.Double origin=MUL - 4 CONST Int type=kotlin.Int value='4' + 4 CONST Int type=kotlin.Int value=4 5 GET_VAR 'value-parameter a: Double' type=kotlin.Double origin=null 6 CALL 'times(Double): Double' type=kotlin.Double origin=MUL 7 GET_VAR 'value-parameter c: Double' type=kotlin.Double origin=null 8 CALL 'times(Double): Double' type=kotlin.Double origin=MUL 9 CALL 'minus(Double): Double' type=kotlin.Double origin=MINUS - 10 VAR val d: kotlin.Double + 10 VAR name:d type:kotlin.Double flags:val 11 WHEN type=kotlin.Unit origin=null 12 GET_VAR 'd: Double' type=kotlin.Double origin=null - 13 CONST Double type=kotlin.Double value='0.0' + 13 CONST Double type=kotlin.Double value=0.0 14 CALL 'compareTo(Double): Int' type=kotlin.Int origin=LT OUTGOING -> BB 7, 8 CALL 'LT0(Int): Boolean' type=kotlin.Boolean origin=LT @@ -81,10 +81,10 @@ BB 7 INCOMING <- BB 6 CALL 'LT0(Int): Boolean' type=kotlin.Boolean origin=LT CONTENT - 1 CONST Double type=kotlin.Double value='3.0' - 2 RETURN type=kotlin.Nothing from='minBiRoot(Double, Double, Double): Double' + 1 CONST Double type=kotlin.Double value=3.0 + 2 RETURN type=kotlin.Nothing from=minBiRoot(Double, Double, Double): Double' OUTGOING -> NONE - Function exit: FUN public fun minBiRoot(a: kotlin.Double, b: kotlin.Double, c: kotlin.Double): kotlin.Double + Function exit: FUN name:minBiRoot visibility:public modality:FINAL <> (a:kotlin.Double, b:kotlin.Double, c:kotlin.Double) returnType:Double flags: BB 8 INCOMING <- BB 6 CALL 'LT0(Int): Boolean' type=kotlin.Boolean origin=LT @@ -93,20 +93,20 @@ CONTENT 2 CALL 'unaryMinus(): Double' type=kotlin.Double origin=UMINUS 3 GET_VAR 'd: Double' type=kotlin.Double origin=null 4 CALL 'plus(Double): Double' type=kotlin.Double origin=PLUS - 5 CONST Int type=kotlin.Int value='2' + 5 CONST Int type=kotlin.Int value=2 6 GET_VAR 'value-parameter a: Double' type=kotlin.Double origin=null 7 CALL 'times(Double): Double' type=kotlin.Double origin=MUL 8 CALL 'div(Double): Double' type=kotlin.Double origin=DIV - 9 VAR val y1: kotlin.Double + 9 VAR name:y1 type:kotlin.Double flags:val 10 GET_VAR 'value-parameter b: Double' type=kotlin.Double origin=null 11 CALL 'unaryMinus(): Double' type=kotlin.Double origin=UMINUS 12 GET_VAR 'd: Double' type=kotlin.Double origin=null 13 CALL 'minus(Double): Double' type=kotlin.Double origin=MINUS - 14 CONST Int type=kotlin.Int value='2' + 14 CONST Int type=kotlin.Int value=2 15 GET_VAR 'value-parameter a: Double' type=kotlin.Double origin=null 16 CALL 'times(Double): Double' type=kotlin.Double origin=MUL 17 CALL 'div(Double): Double' type=kotlin.Double origin=DIV - 18 VAR val y2: kotlin.Double + 18 VAR name:y2 type:kotlin.Double flags:val 19 WHEN type=kotlin.Double origin=null 20 GET_VAR 'y1: Double' type=kotlin.Double origin=null 21 GET_VAR 'y2: Double' type=kotlin.Double origin=null @@ -118,7 +118,7 @@ INCOMING <- BB 8 CALL 'GT0(Int): Boolean' type=kotlin.Boolean origin=GT CONTENT OUTGOING -> BB 11 - CONST Boolean type=kotlin.Boolean value='true' + CONST Boolean type=kotlin.Boolean value=true BB 10 INCOMING <- BB 8 CALL 'GT0(Int): Boolean' type=kotlin.Boolean origin=GT @@ -128,7 +128,7 @@ OUTGOING -> BB 12 When exit: WHEN type=kotlin.Double origin=null BB 11 INCOMING <- BB 9 - CONST Boolean type=kotlin.Boolean value='true' + CONST Boolean type=kotlin.Boolean value=true CONTENT 1 GET_VAR 'y2: Double' type=kotlin.Double origin=null OUTGOING -> BB 12 @@ -137,10 +137,10 @@ BB 12 INCOMING <- BB 10, 11 When exit: WHEN type=kotlin.Double origin=null CONTENT - 1 VAR val y3: kotlin.Double + 1 VAR name:y3 type:kotlin.Double flags:val 2 WHEN type=kotlin.Double origin=null 3 GET_VAR 'y3: Double' type=kotlin.Double origin=null - 4 CONST Double type=kotlin.Double value='0.0' + 4 CONST Double type=kotlin.Double value=0.0 5 CALL 'compareTo(Double): Int' type=kotlin.Int origin=LT OUTGOING -> BB 13, 14 CALL 'LT0(Int): Boolean' type=kotlin.Boolean origin=LT @@ -149,17 +149,17 @@ INCOMING <- BB 12 CALL 'LT0(Int): Boolean' type=kotlin.Boolean origin=LT CONTENT OUTGOING -> BB 15 - CONST Boolean type=kotlin.Boolean value='true' + CONST Boolean type=kotlin.Boolean value=true BB 14 INCOMING <- BB 12 CALL 'LT0(Int): Boolean' type=kotlin.Boolean origin=LT CONTENT - 1 CONST Double type=kotlin.Double value='4.0' + 1 CONST Double type=kotlin.Double value=4.0 OUTGOING -> BB 16 When exit: WHEN type=kotlin.Double origin=null BB 15 INCOMING <- BB 13 - CONST Boolean type=kotlin.Boolean value='true' + CONST Boolean type=kotlin.Boolean value=true CONTENT 1 GET_VAR 'y3: Double' type=kotlin.Double origin=null 2 CALL 'unaryMinus(): Double' type=kotlin.Double origin=UMINUS @@ -169,9 +169,9 @@ BB 16 INCOMING <- BB 14, 15 When exit: WHEN type=kotlin.Double origin=null CONTENT - 1 RETURN type=kotlin.Nothing from='minBiRoot(Double, Double, Double): Double' + 1 RETURN type=kotlin.Nothing from=minBiRoot(Double, Double, Double): Double' OUTGOING -> NONE - Function exit: FUN public fun minBiRoot(a: kotlin.Double, b: kotlin.Double, c: kotlin.Double): kotlin.Double + Function exit: FUN name:minBiRoot visibility:public modality:FINAL <> (a:kotlin.Double, b:kotlin.Double, c:kotlin.Double) returnType:Double flags: // END FUN: minBiRoot diff --git a/compiler/testData/ir/irCfg/when/whenReturn.txt b/compiler/testData/ir/irCfg/when/whenReturn.txt index 078317f60fc..b5612e5ea96 100644 --- a/compiler/testData/ir/irCfg/when/whenReturn.txt +++ b/compiler/testData/ir/irCfg/when/whenReturn.txt @@ -2,12 +2,12 @@ // FUN: toString BB 0 CONTENT - 1 FUN public fun toString(grade: kotlin.String): kotlin.String + 1 FUN name:toString visibility:public modality:FINAL <> (grade:kotlin.String) returnType:String flags: 2 GET_VAR 'value-parameter grade: String' type=kotlin.String origin=null - 3 VAR IR_TEMPORARY_VARIABLE val tmp0_subject: kotlin.String + 3 VAR IR_TEMPORARY_VARIABLE name:tmp0_subject type:kotlin.String flags:val 4 WHEN type=kotlin.Nothing origin=WHEN 5 GET_VAR 'tmp0_subject: String' type=kotlin.String origin=null - 6 CONST String type=kotlin.String value='A' + 6 CONST String type=kotlin.String value=A OUTGOING -> BB 1, 5 CALL 'EQEQ(Any?, Any?): Boolean' type=kotlin.Boolean origin=EQEQ BB 1 @@ -15,7 +15,7 @@ INCOMING <- BB 0 CALL 'EQEQ(Any?, Any?): Boolean' type=kotlin.Boolean origin=EQEQ CONTENT 1 GET_VAR 'tmp0_subject: String' type=kotlin.String origin=null - 2 CONST String type=kotlin.String value='B' + 2 CONST String type=kotlin.String value=B OUTGOING -> BB 2, 6 CALL 'EQEQ(Any?, Any?): Boolean' type=kotlin.Boolean origin=EQEQ BB 2 @@ -23,7 +23,7 @@ INCOMING <- BB 1 CALL 'EQEQ(Any?, Any?): Boolean' type=kotlin.Boolean origin=EQEQ CONTENT 1 GET_VAR 'tmp0_subject: String' type=kotlin.String origin=null - 2 CONST String type=kotlin.String value='C' + 2 CONST String type=kotlin.String value=C OUTGOING -> BB 3, 7 CALL 'EQEQ(Any?, Any?): Boolean' type=kotlin.Boolean origin=EQEQ BB 3 @@ -31,7 +31,7 @@ INCOMING <- BB 2 CALL 'EQEQ(Any?, Any?): Boolean' type=kotlin.Boolean origin=EQEQ CONTENT 1 GET_VAR 'tmp0_subject: String' type=kotlin.String origin=null - 2 CONST String type=kotlin.String value='D' + 2 CONST String type=kotlin.String value=D OUTGOING -> BB 4, 8 CALL 'EQEQ(Any?, Any?): Boolean' type=kotlin.Boolean origin=EQEQ BB 4 @@ -39,55 +39,55 @@ INCOMING <- BB 3 CALL 'EQEQ(Any?, Any?): Boolean' type=kotlin.Boolean origin=EQEQ CONTENT OUTGOING -> BB 9, 10 - CONST Boolean type=kotlin.Boolean value='true' + CONST Boolean type=kotlin.Boolean value=true BB 5 INCOMING <- BB 0 CALL 'EQEQ(Any?, Any?): Boolean' type=kotlin.Boolean origin=EQEQ CONTENT - 1 CONST String type=kotlin.String value='Excellent' - 2 RETURN type=kotlin.Nothing from='toString(String): String' + 1 CONST String type=kotlin.String value=Excellent + 2 RETURN type=kotlin.Nothing from=toString(String): String' OUTGOING -> NONE - Function exit: FUN public fun toString(grade: kotlin.String): kotlin.String + Function exit: FUN name:toString visibility:public modality:FINAL <> (grade:kotlin.String) returnType:String flags: BB 6 INCOMING <- BB 1 CALL 'EQEQ(Any?, Any?): Boolean' type=kotlin.Boolean origin=EQEQ CONTENT - 1 CONST String type=kotlin.String value='Good' - 2 RETURN type=kotlin.Nothing from='toString(String): String' + 1 CONST String type=kotlin.String value=Good + 2 RETURN type=kotlin.Nothing from=toString(String): String' OUTGOING -> NONE - Function exit: FUN public fun toString(grade: kotlin.String): kotlin.String + Function exit: FUN name:toString visibility:public modality:FINAL <> (grade:kotlin.String) returnType:String flags: BB 7 INCOMING <- BB 2 CALL 'EQEQ(Any?, Any?): Boolean' type=kotlin.Boolean origin=EQEQ CONTENT - 1 CONST String type=kotlin.String value='Mediocre' - 2 RETURN type=kotlin.Nothing from='toString(String): String' + 1 CONST String type=kotlin.String value=Mediocre + 2 RETURN type=kotlin.Nothing from=toString(String): String' OUTGOING -> NONE - Function exit: FUN public fun toString(grade: kotlin.String): kotlin.String + Function exit: FUN name:toString visibility:public modality:FINAL <> (grade:kotlin.String) returnType:String flags: BB 8 INCOMING <- BB 3 CALL 'EQEQ(Any?, Any?): Boolean' type=kotlin.Boolean origin=EQEQ CONTENT - 1 CONST String type=kotlin.String value='Fair' - 2 RETURN type=kotlin.Nothing from='toString(String): String' + 1 CONST String type=kotlin.String value=Fair + 2 RETURN type=kotlin.Nothing from=toString(String): String' OUTGOING -> NONE - Function exit: FUN public fun toString(grade: kotlin.String): kotlin.String + Function exit: FUN name:toString visibility:public modality:FINAL <> (grade:kotlin.String) returnType:String flags: BB 9 INCOMING <- BB 4 - CONST Boolean type=kotlin.Boolean value='true' + CONST Boolean type=kotlin.Boolean value=true CONTENT - 1 CONST String type=kotlin.String value='Failure' - 2 RETURN type=kotlin.Nothing from='toString(String): String' + 1 CONST String type=kotlin.String value=Failure + 2 RETURN type=kotlin.Nothing from=toString(String): String' OUTGOING -> NONE - Function exit: FUN public fun toString(grade: kotlin.String): kotlin.String + Function exit: FUN name:toString visibility:public modality:FINAL <> (grade:kotlin.String) returnType:String flags: BB 10 INCOMING <- BB 4 - CONST Boolean type=kotlin.Boolean value='true' + CONST Boolean type=kotlin.Boolean value=true CONTENT - 1 CONST String type=kotlin.String value='???' - 2 RETURN type=kotlin.Nothing from='toString(String): String' + 1 CONST String type=kotlin.String value=??? + 2 RETURN type=kotlin.Nothing from=toString(String): String' OUTGOING -> NONE - Function exit: FUN public fun toString(grade: kotlin.String): kotlin.String + Function exit: FUN name:toString visibility:public modality:FINAL <> (grade:kotlin.String) returnType:String flags: // END FUN: toString diff --git a/compiler/testData/ir/irText/classes/abstractMembers.txt b/compiler/testData/ir/irText/classes/abstractMembers.txt index 1105f7b4809..541807a11e4 100644 --- a/compiler/testData/ir/irText/classes/abstractMembers.txt +++ b/compiler/testData/ir/irText/classes/abstractMembers.txt @@ -1,46 +1,46 @@ -FILE /abstractMembers.kt - CLASS CLASS AbstractClass - $this: VALUE_PARAMETER this@AbstractClass: AbstractClass - CONSTRUCTOR public constructor AbstractClass() +FILE fqName: fileName:/abstractMembers.kt + CLASS CLASS name:AbstractClass modality:ABSTRACT visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:AbstractClass flags: + CONSTRUCTOR visibility:public <> () returnType:AbstractClass flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='AbstractClass' - FUN public abstract fun abstractFun(): kotlin.Unit - $this: VALUE_PARAMETER this@AbstractClass: AbstractClass - PROPERTY public abstract val abstractVal: kotlin.Int - FUN DEFAULT_PROPERTY_ACCESSOR public abstract fun (): kotlin.Int - $this: VALUE_PARAMETER this@AbstractClass: AbstractClass - PROPERTY public abstract var abstractVar: kotlin.Int - FUN DEFAULT_PROPERTY_ACCESSOR public abstract fun (): kotlin.Int - $this: VALUE_PARAMETER this@AbstractClass: AbstractClass - FUN DEFAULT_PROPERTY_ACCESSOR public abstract fun (: kotlin.Int): kotlin.Unit - $this: VALUE_PARAMETER this@AbstractClass: AbstractClass - VALUE_PARAMETER value-parameter : kotlin.Int - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any - CLASS INTERFACE Interface - $this: VALUE_PARAMETER this@Interface: Interface - FUN public abstract fun abstractFun(): kotlin.Unit - $this: VALUE_PARAMETER this@Interface: Interface - PROPERTY public abstract val abstractVal: kotlin.Int - FUN DEFAULT_PROPERTY_ACCESSOR public abstract fun (): kotlin.Int - $this: VALUE_PARAMETER this@Interface: Interface - PROPERTY public abstract var abstractVar: kotlin.Int - FUN DEFAULT_PROPERTY_ACCESSOR public abstract fun (): kotlin.Int - $this: VALUE_PARAMETER this@Interface: Interface - FUN DEFAULT_PROPERTY_ACCESSOR public abstract fun (: kotlin.Int): kotlin.Unit - $this: VALUE_PARAMETER this@Interface: Interface - VALUE_PARAMETER value-parameter : kotlin.Int - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any + FUN name:abstractFun visibility:public modality:ABSTRACT <> ($this:AbstractClass) returnType:Unit flags: + $this: VALUE_PARAMETER name: type:AbstractClass flags: + PROPERTY name:abstractVal type:kotlin.Int visibility:public modality:ABSTRACT flags:val + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:ABSTRACT <> ($this:AbstractClass) returnType:Int flags: + $this: VALUE_PARAMETER name: type:AbstractClass flags: + PROPERTY name:abstractVar type:kotlin.Int visibility:public modality:ABSTRACT flags:var + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:ABSTRACT <> ($this:AbstractClass) returnType:Int flags: + $this: VALUE_PARAMETER name: type:AbstractClass flags: + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:ABSTRACT <> ($this:AbstractClass, :kotlin.Int) returnType:Unit flags: + $this: VALUE_PARAMETER name: type:AbstractClass flags: + VALUE_PARAMETER name: index:0 type:kotlin.Int flags: + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + CLASS INTERFACE name:Interface modality:ABSTRACT visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Interface flags: + FUN name:abstractFun visibility:public modality:ABSTRACT <> ($this:Interface) returnType:Unit flags: + $this: VALUE_PARAMETER name: type:Interface flags: + PROPERTY name:abstractVal type:kotlin.Int visibility:public modality:ABSTRACT flags:val + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:ABSTRACT <> ($this:Interface) returnType:Int flags: + $this: VALUE_PARAMETER name: type:Interface flags: + PROPERTY name:abstractVar type:kotlin.Int visibility:public modality:ABSTRACT flags:var + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:ABSTRACT <> ($this:Interface) returnType:Int flags: + $this: VALUE_PARAMETER name: type:Interface flags: + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:ABSTRACT <> ($this:Interface, :kotlin.Int) returnType:Unit flags: + $this: VALUE_PARAMETER name: type:Interface flags: + VALUE_PARAMETER name: index:0 type:kotlin.Int flags: + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: diff --git a/compiler/testData/ir/irText/classes/argumentReorderingInDelegatingConstructorCall.txt b/compiler/testData/ir/irText/classes/argumentReorderingInDelegatingConstructorCall.txt index 42ba986af49..12acd8c3907 100644 --- a/compiler/testData/ir/irText/classes/argumentReorderingInDelegatingConstructorCall.txt +++ b/compiler/testData/ir/irText/classes/argumentReorderingInDelegatingConstructorCall.txt @@ -1,106 +1,106 @@ -FILE /argumentReorderingInDelegatingConstructorCall.kt - CLASS CLASS Base - $this: VALUE_PARAMETER this@Base: Base - CONSTRUCTOR public constructor Base(x: kotlin.Int, y: kotlin.Int) - VALUE_PARAMETER value-parameter x: kotlin.Int - VALUE_PARAMETER value-parameter y: kotlin.Int +FILE fqName: fileName:/argumentReorderingInDelegatingConstructorCall.kt + CLASS CLASS name:Base modality:OPEN visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Base flags: + CONSTRUCTOR visibility:public <> (x:kotlin.Int, y:kotlin.Int) returnType:Base flags: + VALUE_PARAMETER name:x index:0 type:kotlin.Int flags: + VALUE_PARAMETER name:y index:1 type:kotlin.Int flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='Base' - PROPERTY public final val x: kotlin.Int - FIELD PROPERTY_BACKING_FIELD public final val x: kotlin.Int + PROPERTY name:x type:kotlin.Int visibility:public modality:FINAL flags:val + FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.Int visibility:public EXPRESSION_BODY GET_VAR 'value-parameter x: Int' type=kotlin.Int origin=INITIALIZE_PROPERTY_FROM_PARAMETER - FUN DEFAULT_PROPERTY_ACCESSOR public final fun (): kotlin.Int - $this: VALUE_PARAMETER this@Base: Base + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:Base) returnType:Int flags: + $this: VALUE_PARAMETER name: type:Base flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): Int' + RETURN type=kotlin.Nothing from=(): Int' GET_FIELD 'x: Int' type=kotlin.Int origin=null receiver: GET_VAR 'this@Base: Base' type=Base origin=null - PROPERTY public final val y: kotlin.Int - FIELD PROPERTY_BACKING_FIELD public final val y: kotlin.Int + PROPERTY name:y type:kotlin.Int visibility:public modality:FINAL flags:val + FIELD PROPERTY_BACKING_FIELD name:y type:kotlin.Int visibility:public EXPRESSION_BODY GET_VAR 'value-parameter y: Int' type=kotlin.Int origin=INITIALIZE_PROPERTY_FROM_PARAMETER - FUN DEFAULT_PROPERTY_ACCESSOR public final fun (): kotlin.Int - $this: VALUE_PARAMETER this@Base: Base + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:Base) returnType:Int flags: + $this: VALUE_PARAMETER name: type:Base flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): Int' + RETURN type=kotlin.Nothing from=(): Int' GET_FIELD 'y: Int' type=kotlin.Int origin=null receiver: GET_VAR 'this@Base: Base' type=Base origin=null - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any - CLASS CLASS Test1 - $this: VALUE_PARAMETER this@Test1: Test1 - CONSTRUCTOR public constructor Test1(xx: kotlin.Int, yy: kotlin.Int) - VALUE_PARAMETER value-parameter xx: kotlin.Int - VALUE_PARAMETER value-parameter yy: kotlin.Int + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + CLASS CLASS name:Test1 modality:FINAL visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Test1 flags: + CONSTRUCTOR visibility:public <> (xx:kotlin.Int, yy:kotlin.Int) returnType:Test1 flags: + VALUE_PARAMETER name:xx index:0 type:kotlin.Int flags: + VALUE_PARAMETER name:yy index:1 type:kotlin.Int flags: BLOCK_BODY BLOCK type=kotlin.Unit origin=ARGUMENTS_REORDERING_FOR_CALL - VAR IR_TEMPORARY_VARIABLE val tmp0_y: kotlin.Int + VAR IR_TEMPORARY_VARIABLE name:tmp0_y type:kotlin.Int flags:val GET_VAR 'value-parameter yy: Int' type=kotlin.Int origin=null - VAR IR_TEMPORARY_VARIABLE val tmp1_x: kotlin.Int + VAR IR_TEMPORARY_VARIABLE name:tmp1_x type:kotlin.Int flags:val GET_VAR 'value-parameter xx: Int' type=kotlin.Int origin=null DELEGATING_CONSTRUCTOR_CALL 'constructor Base(Int, Int)' x: GET_VAR 'tmp1_x: Int' type=kotlin.Int origin=null y: GET_VAR 'tmp0_y: Int' type=kotlin.Int origin=null INSTANCE_INITIALIZER_CALL classDescriptor='Test1' - PROPERTY FAKE_OVERRIDE public final override val x: kotlin.Int - FUN FAKE_OVERRIDE public final override fun (): kotlin.Int - $this: VALUE_PARAMETER this@Base: Base - PROPERTY FAKE_OVERRIDE public final override val y: kotlin.Int - FUN FAKE_OVERRIDE public final override fun (): kotlin.Int - $this: VALUE_PARAMETER this@Base: Base - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any - CLASS CLASS Test2 - $this: VALUE_PARAMETER this@Test2: Test2 - CONSTRUCTOR public constructor Test2(xx: kotlin.Int, yy: kotlin.Int) - VALUE_PARAMETER value-parameter xx: kotlin.Int - VALUE_PARAMETER value-parameter yy: kotlin.Int + PROPERTY FAKE_OVERRIDE name:x type:kotlin.Int visibility:public modality:FINAL flags:val + FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:Base) returnType:Int flags: + $this: VALUE_PARAMETER name: type:Base flags: + PROPERTY FAKE_OVERRIDE name:y type:kotlin.Int visibility:public modality:FINAL flags:val + FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:Base) returnType:Int flags: + $this: VALUE_PARAMETER name: type:Base flags: + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + CLASS CLASS name:Test2 modality:FINAL visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Test2 flags: + CONSTRUCTOR visibility:public <> (xx:kotlin.Int, yy:kotlin.Int) returnType:Test2 flags: + VALUE_PARAMETER name:xx index:0 type:kotlin.Int flags: + VALUE_PARAMETER name:yy index:1 type:kotlin.Int flags: BLOCK_BODY BLOCK type=kotlin.Unit origin=ARGUMENTS_REORDERING_FOR_CALL - VAR IR_TEMPORARY_VARIABLE val tmp0_y: kotlin.Int + VAR IR_TEMPORARY_VARIABLE name:tmp0_y type:kotlin.Int flags:val GET_VAR 'value-parameter yy: Int' type=kotlin.Int origin=null - VAR IR_TEMPORARY_VARIABLE val tmp1_x: kotlin.Int + VAR IR_TEMPORARY_VARIABLE name:tmp1_x type:kotlin.Int flags:val GET_VAR 'value-parameter xx: Int' type=kotlin.Int origin=null DELEGATING_CONSTRUCTOR_CALL 'constructor Base(Int, Int)' x: GET_VAR 'tmp1_x: Int' type=kotlin.Int origin=null y: GET_VAR 'tmp0_y: Int' type=kotlin.Int origin=null INSTANCE_INITIALIZER_CALL classDescriptor='Test2' - CONSTRUCTOR public constructor Test2(xxx: kotlin.Int, yyy: kotlin.Int, a: kotlin.Any) - VALUE_PARAMETER value-parameter xxx: kotlin.Int - VALUE_PARAMETER value-parameter yyy: kotlin.Int - VALUE_PARAMETER value-parameter a: kotlin.Any + CONSTRUCTOR visibility:public <> (xxx:kotlin.Int, yyy:kotlin.Int, a:kotlin.Any) returnType:Test2 flags: + VALUE_PARAMETER name:xxx index:0 type:kotlin.Int flags: + VALUE_PARAMETER name:yyy index:1 type:kotlin.Int flags: + VALUE_PARAMETER name:a index:2 type:kotlin.Any flags: BLOCK_BODY BLOCK type=kotlin.Unit origin=ARGUMENTS_REORDERING_FOR_CALL - VAR IR_TEMPORARY_VARIABLE val tmp0_yy: kotlin.Int + VAR IR_TEMPORARY_VARIABLE name:tmp0_yy type:kotlin.Int flags:val GET_VAR 'value-parameter yyy: Int' type=kotlin.Int origin=null - VAR IR_TEMPORARY_VARIABLE val tmp1_xx: kotlin.Int + VAR IR_TEMPORARY_VARIABLE name:tmp1_xx type:kotlin.Int flags:val GET_VAR 'value-parameter xxx: Int' type=kotlin.Int origin=null DELEGATING_CONSTRUCTOR_CALL 'constructor Test2(Int, Int)' xx: GET_VAR 'tmp1_xx: Int' type=kotlin.Int origin=null yy: GET_VAR 'tmp0_yy: Int' type=kotlin.Int origin=null - PROPERTY FAKE_OVERRIDE public final override val x: kotlin.Int - FUN FAKE_OVERRIDE public final override fun (): kotlin.Int - $this: VALUE_PARAMETER this@Base: Base - PROPERTY FAKE_OVERRIDE public final override val y: kotlin.Int - FUN FAKE_OVERRIDE public final override fun (): kotlin.Int - $this: VALUE_PARAMETER this@Base: Base - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any + PROPERTY FAKE_OVERRIDE name:x type:kotlin.Int visibility:public modality:FINAL flags:val + FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:Base) returnType:Int flags: + $this: VALUE_PARAMETER name: type:Base flags: + PROPERTY FAKE_OVERRIDE name:y type:kotlin.Int visibility:public modality:FINAL flags:val + FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:Base) returnType:Int flags: + $this: VALUE_PARAMETER name: type:Base flags: + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: diff --git a/compiler/testData/ir/irText/classes/classMembers.txt b/compiler/testData/ir/irText/classes/classMembers.txt index 4ce0c328e80..0e3557da618 100644 --- a/compiler/testData/ir/irText/classes/classMembers.txt +++ b/compiler/testData/ir/irText/classes/classMembers.txt @@ -1,148 +1,148 @@ -FILE /classMembers.kt - CLASS CLASS C - $this: VALUE_PARAMETER this@C: C - CONSTRUCTOR public constructor C(x: kotlin.Int, y: kotlin.Int, z: kotlin.Int = ...) - VALUE_PARAMETER value-parameter x: kotlin.Int - VALUE_PARAMETER value-parameter y: kotlin.Int - VALUE_PARAMETER value-parameter z: kotlin.Int = ... +FILE fqName: fileName:/classMembers.kt + CLASS CLASS name:C modality:FINAL visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:C flags: + CONSTRUCTOR visibility:public <> (x:kotlin.Int, y:kotlin.Int, z:kotlin.Int) returnType:C flags: + VALUE_PARAMETER name:x index:0 type:kotlin.Int flags: + VALUE_PARAMETER name:y index:1 type:kotlin.Int flags: + VALUE_PARAMETER name:z index:2 type:kotlin.Int flags: EXPRESSION_BODY - CONST Int type=kotlin.Int value='1' + CONST Int type=kotlin.Int value=1 BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='C' - PROPERTY public final val y: kotlin.Int - FIELD PROPERTY_BACKING_FIELD public final val y: kotlin.Int + PROPERTY name:y type:kotlin.Int visibility:public modality:FINAL flags:val + FIELD PROPERTY_BACKING_FIELD name:y type:kotlin.Int visibility:public EXPRESSION_BODY GET_VAR 'value-parameter y: Int' type=kotlin.Int origin=INITIALIZE_PROPERTY_FROM_PARAMETER - FUN DEFAULT_PROPERTY_ACCESSOR public final fun (): kotlin.Int - $this: VALUE_PARAMETER this@C: C + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:C) returnType:Int flags: + $this: VALUE_PARAMETER name: type:C flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): Int' + RETURN type=kotlin.Nothing from=(): Int' GET_FIELD 'y: Int' type=kotlin.Int origin=null receiver: GET_VAR 'this@C: C' type=C origin=null - PROPERTY public final var z: kotlin.Int - FIELD PROPERTY_BACKING_FIELD public final var z: kotlin.Int + PROPERTY name:z type:kotlin.Int visibility:public modality:FINAL flags:var + FIELD PROPERTY_BACKING_FIELD name:z type:kotlin.Int visibility:public EXPRESSION_BODY GET_VAR 'value-parameter z: Int = ...' type=kotlin.Int origin=INITIALIZE_PROPERTY_FROM_PARAMETER - FUN DEFAULT_PROPERTY_ACCESSOR public final fun (): kotlin.Int - $this: VALUE_PARAMETER this@C: C + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:C) returnType:Int flags: + $this: VALUE_PARAMETER name: type:C flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): Int' + RETURN type=kotlin.Nothing from=(): Int' GET_FIELD 'z: Int' type=kotlin.Int origin=null receiver: GET_VAR 'this@C: C' type=C origin=null - FUN DEFAULT_PROPERTY_ACCESSOR public final fun (: kotlin.Int): kotlin.Unit - $this: VALUE_PARAMETER this@C: C - VALUE_PARAMETER value-parameter : kotlin.Int + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:C, :kotlin.Int) returnType:Unit flags: + $this: VALUE_PARAMETER name: type:C flags: + VALUE_PARAMETER name: index:0 type:kotlin.Int flags: BLOCK_BODY SET_FIELD 'z: Int' type=kotlin.Unit origin=null receiver: GET_VAR 'this@C: C' type=C origin=null value: GET_VAR 'value-parameter : Int' type=kotlin.Int origin=null - CONSTRUCTOR public constructor C() + CONSTRUCTOR visibility:public <> () returnType:C flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor C(Int, Int, Int = ...)' - 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 - FIELD PROPERTY_BACKING_FIELD public final val property: kotlin.Int = 0 + 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 name:property type:kotlin.Int visibility:public modality:FINAL flags:val + FIELD PROPERTY_BACKING_FIELD name:property type:kotlin.Int visibility:public EXPRESSION_BODY - CONST Int type=kotlin.Int value='0' - FUN DEFAULT_PROPERTY_ACCESSOR public final fun (): kotlin.Int - $this: VALUE_PARAMETER this@C: C + CONST Int type=kotlin.Int value=0 + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:C) returnType:Int flags: + $this: VALUE_PARAMETER name: type:C flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): Int' + RETURN type=kotlin.Nothing from=(): Int' GET_FIELD 'property: Int' type=kotlin.Int origin=null receiver: GET_VAR 'this@C: C' type=C origin=null - PROPERTY public final val propertyWithGet: kotlin.Int - FUN public final fun (): kotlin.Int - $this: VALUE_PARAMETER this@C: C + PROPERTY name:propertyWithGet type:kotlin.Int visibility:public modality:FINAL flags:val + FUN name: visibility:public modality:FINAL <> ($this:C) returnType:Int flags: + $this: VALUE_PARAMETER name: type:C flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): Int' - CONST Int type=kotlin.Int value='42' - PROPERTY public final var propertyWithGetAndSet: kotlin.Int - FUN public final fun (): kotlin.Int - $this: VALUE_PARAMETER this@C: C + RETURN type=kotlin.Nothing from=(): Int' + CONST Int type=kotlin.Int value=42 + PROPERTY name:propertyWithGetAndSet type:kotlin.Int visibility:public modality:FINAL flags:var + FUN name: visibility:public modality:FINAL <> ($this:C) returnType:Int flags: + $this: VALUE_PARAMETER name: type:C flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): Int' + RETURN type=kotlin.Nothing from=(): Int' CALL '(): Int' type=kotlin.Int origin=GET_PROPERTY $this: GET_VAR 'this@C: C' type=C origin=null - FUN public final fun (value: kotlin.Int): kotlin.Unit - $this: VALUE_PARAMETER this@C: C - VALUE_PARAMETER value-parameter value: kotlin.Int + FUN name: visibility:public modality:FINAL <> ($this:C, value:kotlin.Int) returnType:Unit flags: + $this: VALUE_PARAMETER name: type:C flags: + VALUE_PARAMETER name:value index:0 type:kotlin.Int flags: BLOCK_BODY CALL '(Int): Unit' type=kotlin.Unit origin=EQ $this: GET_VAR 'this@C: C' type=C origin=null : GET_VAR 'value-parameter value: Int' type=kotlin.Int origin=null - FUN public final fun function(): kotlin.Unit - $this: VALUE_PARAMETER this@C: C + FUN name:function visibility:public modality:FINAL <> ($this:C) returnType:Unit flags: + $this: VALUE_PARAMETER name: type:C flags: BLOCK_BODY CALL 'println(Any?): Unit' type=kotlin.Unit origin=null - message: CONST String type=kotlin.String value='1' - FUN public final fun kotlin.Int.memberExtensionFunction(): kotlin.Unit - $this: VALUE_PARAMETER this@C: C - $receiver: VALUE_PARAMETER this@memberExtensionFunction: Int + message: CONST String type=kotlin.String value=1 + FUN name:memberExtensionFunction visibility:public modality:FINAL <> ($this:C, $receiver:kotlin.Int) returnType:Unit flags: + $this: VALUE_PARAMETER name: type:C flags: + $receiver: VALUE_PARAMETER name: type:kotlin.Int flags: BLOCK_BODY CALL 'println(Any?): Unit' type=kotlin.Unit origin=null - message: CONST String type=kotlin.String value='2' - CLASS CLASS NestedClass - $this: VALUE_PARAMETER this@NestedClass: NestedClass - CONSTRUCTOR public constructor NestedClass() + message: CONST String type=kotlin.String value=2 + CLASS CLASS name:NestedClass modality:FINAL visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:C.NestedClass flags: + CONSTRUCTOR visibility:public <> () returnType:C.NestedClass flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='NestedClass' - FUN public final fun function(): kotlin.Unit - $this: VALUE_PARAMETER this@NestedClass: NestedClass + FUN name:function visibility:public modality:FINAL <> ($this:C.NestedClass) returnType:Unit flags: + $this: VALUE_PARAMETER name: type:C.NestedClass flags: BLOCK_BODY CALL 'println(Any?): Unit' type=kotlin.Unit origin=null - message: CONST String type=kotlin.String value='3' - FUN public final fun kotlin.Int.memberExtensionFunction(): kotlin.Unit - $this: VALUE_PARAMETER this@NestedClass: NestedClass - $receiver: VALUE_PARAMETER this@memberExtensionFunction: Int + message: CONST String type=kotlin.String value=3 + FUN name:memberExtensionFunction visibility:public modality:FINAL <> ($this:C.NestedClass, $receiver:kotlin.Int) returnType:Unit flags: + $this: VALUE_PARAMETER name: type:C.NestedClass flags: + $receiver: VALUE_PARAMETER name: type:kotlin.Int flags: BLOCK_BODY CALL 'println(Any?): Unit' type=kotlin.Unit origin=null - message: CONST String type=kotlin.String value='4' - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any - CLASS INTERFACE NestedInterface - $this: VALUE_PARAMETER this@NestedInterface: NestedInterface - FUN public abstract fun foo(): kotlin.Unit - $this: VALUE_PARAMETER this@NestedInterface: NestedInterface - FUN public open fun bar(): kotlin.Unit - $this: VALUE_PARAMETER this@NestedInterface: NestedInterface + message: CONST String type=kotlin.String value=4 + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + CLASS INTERFACE name:NestedInterface modality:ABSTRACT visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:C.NestedInterface flags: + FUN name:foo visibility:public modality:ABSTRACT <> ($this:C.NestedInterface) returnType:Unit flags: + $this: VALUE_PARAMETER name: type:C.NestedInterface flags: + FUN name:bar visibility:public modality:OPEN <> ($this:C.NestedInterface) returnType:Unit flags: + $this: VALUE_PARAMETER name: type:C.NestedInterface flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='bar(): Unit' + RETURN type=kotlin.Nothing from=bar(): Unit' CALL 'foo(): Unit' type=kotlin.Unit origin=null $this: GET_VAR 'this@NestedInterface: NestedInterface' type=C.NestedInterface origin=null - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any - CLASS OBJECT companion object of C - $this: VALUE_PARAMETER this@Companion: Companion - CONSTRUCTOR private constructor Companion() + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + CLASS OBJECT name:Companion modality:FINAL visibility:public flags:companion + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:C.Companion flags: + CONSTRUCTOR visibility:private <> () returnType:C.Companion flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='companion object of C' - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: diff --git a/compiler/testData/ir/irText/classes/classes.txt b/compiler/testData/ir/irText/classes/classes.txt index 3406829e92e..dc0ff645212 100644 --- a/compiler/testData/ir/irText/classes/classes.txt +++ b/compiler/testData/ir/irText/classes/classes.txt @@ -1,80 +1,80 @@ -FILE /classes.kt - CLASS CLASS TestClass - $this: VALUE_PARAMETER this@TestClass: TestClass - CONSTRUCTOR public constructor TestClass() +FILE fqName: fileName:/classes.kt + CLASS CLASS name:TestClass modality:FINAL visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:TestClass flags: + CONSTRUCTOR visibility:public <> () returnType:TestClass flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='TestClass' - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any - CLASS INTERFACE TestInterface - $this: VALUE_PARAMETER this@TestInterface: TestInterface - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any - CLASS OBJECT TestObject - $this: VALUE_PARAMETER this@TestObject: TestObject - CONSTRUCTOR private constructor TestObject() + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + CLASS INTERFACE name:TestInterface modality:ABSTRACT visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:TestInterface flags: + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + CLASS OBJECT name:TestObject modality:FINAL visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:TestObject flags: + CONSTRUCTOR visibility:private <> () returnType:TestObject flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='TestObject' - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any - CLASS ANNOTATION_CLASS TestAnnotationClass - $this: VALUE_PARAMETER this@TestAnnotationClass: TestAnnotationClass - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any - CLASS ENUM_CLASS TestEnumClass - $this: VALUE_PARAMETER this@TestEnumClass: TestEnumClass - CONSTRUCTOR private constructor TestEnumClass() + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + CLASS ANNOTATION_CLASS name:TestAnnotationClass modality:FINAL visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:TestAnnotationClass flags: + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + CLASS ENUM_CLASS name:TestEnumClass modality:FINAL visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:TestEnumClass flags: + CONSTRUCTOR visibility:private <> () returnType:TestEnumClass flags: BLOCK_BODY ENUM_CONSTRUCTOR_CALL 'constructor Enum(String, Int)' >: null INSTANCE_INITIALIZER_CALL classDescriptor='TestEnumClass' - FUN FAKE_OVERRIDE protected final override fun clone(): kotlin.Any - $this: VALUE_PARAMETER this@Enum: Enum - FUN FAKE_OVERRIDE protected/*protected and package*/ final override fun finalize(): kotlin.Unit - $this: VALUE_PARAMETER this@Enum: Enum - FUN FAKE_OVERRIDE public final override fun getDeclaringClass(): java.lang.Class! - $this: VALUE_PARAMETER this@Enum: Enum - FUN FAKE_OVERRIDE public final override fun compareTo(other: TestEnumClass): kotlin.Int - $this: VALUE_PARAMETER this@Enum: Enum - VALUE_PARAMETER value-parameter other: TestEnumClass - FUN FAKE_OVERRIDE public final override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Enum: Enum - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public final override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Enum: Enum - PROPERTY FAKE_OVERRIDE public final override val name: kotlin.String - FUN FAKE_OVERRIDE public final override fun (): kotlin.String - $this: VALUE_PARAMETER this@Enum: Enum - PROPERTY FAKE_OVERRIDE public final override val ordinal: kotlin.Int - FUN FAKE_OVERRIDE public final override fun (): kotlin.Int - $this: VALUE_PARAMETER this@Enum: Enum - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Enum: Enum - FUN ENUM_CLASS_SPECIAL_MEMBER public final fun values(): kotlin.Array + FUN FAKE_OVERRIDE name:clone visibility:protected modality:FINAL <> ($this:kotlin.Enum) returnType:Any flags: + $this: VALUE_PARAMETER name: type:kotlin.Enum flags: + FUN FAKE_OVERRIDE name:finalize visibility:protected/*protected and package*/ modality:FINAL <> ($this:kotlin.Enum) returnType:Unit flags: + $this: VALUE_PARAMETER name: type:kotlin.Enum flags: + FUN FAKE_OVERRIDE name:getDeclaringClass visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:(java.lang.Class<(TestEnumClass..TestEnumClass?)>..java.lang.Class<(TestEnumClass..TestEnumClass?)>?) flags: + $this: VALUE_PARAMETER name: type:kotlin.Enum flags: + FUN FAKE_OVERRIDE name:compareTo visibility:public modality:FINAL <> ($this:kotlin.Enum, other:TestEnumClass) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Enum flags: + VALUE_PARAMETER name:other index:0 type:TestEnumClass flags: + FUN FAKE_OVERRIDE name:equals visibility:public modality:FINAL <> ($this:kotlin.Enum, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Enum flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Enum flags: + PROPERTY FAKE_OVERRIDE name:name type:kotlin.String visibility:public modality:FINAL flags:val + FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Enum flags: + PROPERTY FAKE_OVERRIDE name:ordinal type:kotlin.Int visibility:public modality:FINAL flags:val + FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Enum flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Enum) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Enum flags: + FUN ENUM_CLASS_SPECIAL_MEMBER name:values visibility:public modality:FINAL <> () returnType:Array flags: SYNTHETIC_BODY kind=ENUM_VALUES - FUN ENUM_CLASS_SPECIAL_MEMBER public final fun valueOf(value: kotlin.String): TestEnumClass - VALUE_PARAMETER value-parameter value: kotlin.String + FUN ENUM_CLASS_SPECIAL_MEMBER name:valueOf visibility:public modality:FINAL <> (value:kotlin.String) returnType:TestEnumClass flags: + VALUE_PARAMETER name:value index:0 type:kotlin.String flags: SYNTHETIC_BODY kind=ENUM_VALUEOF diff --git a/compiler/testData/ir/irText/classes/companionObject.txt b/compiler/testData/ir/irText/classes/companionObject.txt index f47975751b5..dfec159bd59 100644 --- a/compiler/testData/ir/irText/classes/companionObject.txt +++ b/compiler/testData/ir/irText/classes/companionObject.txt @@ -1,54 +1,54 @@ -FILE /companionObject.kt - CLASS CLASS Test1 - $this: VALUE_PARAMETER this@Test1: Test1 - CONSTRUCTOR public constructor Test1() +FILE fqName: fileName:/companionObject.kt + CLASS CLASS name:Test1 modality:FINAL visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Test1 flags: + CONSTRUCTOR visibility:public <> () returnType:Test1 flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='Test1' - CLASS OBJECT companion object of Test1 - $this: VALUE_PARAMETER this@Companion: Companion - CONSTRUCTOR private constructor Companion() + CLASS OBJECT name:Companion modality:FINAL visibility:public flags:companion + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Test1.Companion flags: + CONSTRUCTOR visibility:private <> () returnType:Test1.Companion flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='companion object of Test1' - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any - CLASS CLASS Test2 - $this: VALUE_PARAMETER this@Test2: Test2 - CONSTRUCTOR public constructor Test2() + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + CLASS CLASS name:Test2 modality:FINAL visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Test2 flags: + CONSTRUCTOR visibility:public <> () returnType:Test2 flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='Test2' - CLASS OBJECT companion object of Test2Named - $this: VALUE_PARAMETER this@Named: Named - CONSTRUCTOR private constructor Named() + CLASS OBJECT name:Named modality:FINAL visibility:public flags:companion + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Test2.Named flags: + CONSTRUCTOR visibility:private <> () returnType:Test2.Named flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='companion object of Test2Named' - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: diff --git a/compiler/testData/ir/irText/classes/dataClassWithArrayMembers.txt b/compiler/testData/ir/irText/classes/dataClassWithArrayMembers.txt index c61c6cee876..2be3f817dd6 100644 --- a/compiler/testData/ir/irText/classes/dataClassWithArrayMembers.txt +++ b/compiler/testData/ir/irText/classes/dataClassWithArrayMembers.txt @@ -1,203 +1,203 @@ -FILE /dataClassWithArrayMembers.kt - CLASS CLASS Test1 - $this: VALUE_PARAMETER this@Test1: Test1 - CONSTRUCTOR public constructor Test1(stringArray: kotlin.Array, charArray: kotlin.CharArray, booleanArray: kotlin.BooleanArray, byteArray: kotlin.ByteArray, shortArray: kotlin.ShortArray, intArray: kotlin.IntArray, longArray: kotlin.LongArray, floatArray: kotlin.FloatArray, doubleArray: kotlin.DoubleArray) - VALUE_PARAMETER value-parameter stringArray: kotlin.Array - VALUE_PARAMETER value-parameter charArray: kotlin.CharArray - VALUE_PARAMETER value-parameter booleanArray: kotlin.BooleanArray - VALUE_PARAMETER value-parameter byteArray: kotlin.ByteArray - VALUE_PARAMETER value-parameter shortArray: kotlin.ShortArray - VALUE_PARAMETER value-parameter intArray: kotlin.IntArray - VALUE_PARAMETER value-parameter longArray: kotlin.LongArray - VALUE_PARAMETER value-parameter floatArray: kotlin.FloatArray - VALUE_PARAMETER value-parameter doubleArray: kotlin.DoubleArray +FILE fqName: fileName:/dataClassWithArrayMembers.kt + CLASS CLASS name:Test1 modality:FINAL visibility:public flags:data + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Test1 flags: + CONSTRUCTOR visibility:public <> (stringArray:kotlin.Array, charArray:kotlin.CharArray, booleanArray:kotlin.BooleanArray, byteArray:kotlin.ByteArray, shortArray:kotlin.ShortArray, intArray:kotlin.IntArray, longArray:kotlin.LongArray, floatArray:kotlin.FloatArray, doubleArray:kotlin.DoubleArray) returnType:Test1 flags: + VALUE_PARAMETER name:stringArray index:0 type:kotlin.Array flags: + VALUE_PARAMETER name:charArray index:1 type:kotlin.CharArray flags: + VALUE_PARAMETER name:booleanArray index:2 type:kotlin.BooleanArray flags: + VALUE_PARAMETER name:byteArray index:3 type:kotlin.ByteArray flags: + VALUE_PARAMETER name:shortArray index:4 type:kotlin.ShortArray flags: + VALUE_PARAMETER name:intArray index:5 type:kotlin.IntArray flags: + VALUE_PARAMETER name:longArray index:6 type:kotlin.LongArray flags: + VALUE_PARAMETER name:floatArray index:7 type:kotlin.FloatArray flags: + VALUE_PARAMETER name:doubleArray index:8 type:kotlin.DoubleArray flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='Test1' - PROPERTY public final val stringArray: kotlin.Array - FIELD PROPERTY_BACKING_FIELD public final val stringArray: kotlin.Array + PROPERTY name:stringArray type:kotlin.Array visibility:public modality:FINAL flags:val + FIELD PROPERTY_BACKING_FIELD name:stringArray type:kotlin.Array visibility:public EXPRESSION_BODY GET_VAR 'value-parameter stringArray: Array' type=kotlin.Array origin=INITIALIZE_PROPERTY_FROM_PARAMETER - FUN DEFAULT_PROPERTY_ACCESSOR public final fun (): kotlin.Array - $this: VALUE_PARAMETER this@Test1: Test1 + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:Test1) returnType:Array flags: + $this: VALUE_PARAMETER name: type:Test1 flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): Array' + RETURN type=kotlin.Nothing from=(): Array' GET_FIELD 'stringArray: Array' type=kotlin.Array origin=null receiver: GET_VAR 'this@Test1: Test1' type=Test1 origin=null - PROPERTY public final val charArray: kotlin.CharArray - FIELD PROPERTY_BACKING_FIELD public final val charArray: kotlin.CharArray + PROPERTY name:charArray type:kotlin.CharArray visibility:public modality:FINAL flags:val + FIELD PROPERTY_BACKING_FIELD name:charArray type:kotlin.CharArray visibility:public EXPRESSION_BODY GET_VAR 'value-parameter charArray: CharArray' type=kotlin.CharArray origin=INITIALIZE_PROPERTY_FROM_PARAMETER - FUN DEFAULT_PROPERTY_ACCESSOR public final fun (): kotlin.CharArray - $this: VALUE_PARAMETER this@Test1: Test1 + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:Test1) returnType:CharArray flags: + $this: VALUE_PARAMETER name: type:Test1 flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): CharArray' + RETURN type=kotlin.Nothing from=(): CharArray' GET_FIELD 'charArray: CharArray' type=kotlin.CharArray origin=null receiver: GET_VAR 'this@Test1: Test1' type=Test1 origin=null - PROPERTY public final val booleanArray: kotlin.BooleanArray - FIELD PROPERTY_BACKING_FIELD public final val booleanArray: kotlin.BooleanArray + PROPERTY name:booleanArray type:kotlin.BooleanArray visibility:public modality:FINAL flags:val + FIELD PROPERTY_BACKING_FIELD name:booleanArray type:kotlin.BooleanArray visibility:public EXPRESSION_BODY GET_VAR 'value-parameter booleanArray: BooleanArray' type=kotlin.BooleanArray origin=INITIALIZE_PROPERTY_FROM_PARAMETER - FUN DEFAULT_PROPERTY_ACCESSOR public final fun (): kotlin.BooleanArray - $this: VALUE_PARAMETER this@Test1: Test1 + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:Test1) returnType:BooleanArray flags: + $this: VALUE_PARAMETER name: type:Test1 flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): BooleanArray' + RETURN type=kotlin.Nothing from=(): BooleanArray' GET_FIELD 'booleanArray: BooleanArray' type=kotlin.BooleanArray origin=null receiver: GET_VAR 'this@Test1: Test1' type=Test1 origin=null - PROPERTY public final val byteArray: kotlin.ByteArray - FIELD PROPERTY_BACKING_FIELD public final val byteArray: kotlin.ByteArray + PROPERTY name:byteArray type:kotlin.ByteArray visibility:public modality:FINAL flags:val + FIELD PROPERTY_BACKING_FIELD name:byteArray type:kotlin.ByteArray visibility:public EXPRESSION_BODY GET_VAR 'value-parameter byteArray: ByteArray' type=kotlin.ByteArray origin=INITIALIZE_PROPERTY_FROM_PARAMETER - FUN DEFAULT_PROPERTY_ACCESSOR public final fun (): kotlin.ByteArray - $this: VALUE_PARAMETER this@Test1: Test1 + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:Test1) returnType:ByteArray flags: + $this: VALUE_PARAMETER name: type:Test1 flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): ByteArray' + RETURN type=kotlin.Nothing from=(): ByteArray' GET_FIELD 'byteArray: ByteArray' type=kotlin.ByteArray origin=null receiver: GET_VAR 'this@Test1: Test1' type=Test1 origin=null - PROPERTY public final val shortArray: kotlin.ShortArray - FIELD PROPERTY_BACKING_FIELD public final val shortArray: kotlin.ShortArray + PROPERTY name:shortArray type:kotlin.ShortArray visibility:public modality:FINAL flags:val + FIELD PROPERTY_BACKING_FIELD name:shortArray type:kotlin.ShortArray visibility:public EXPRESSION_BODY GET_VAR 'value-parameter shortArray: ShortArray' type=kotlin.ShortArray origin=INITIALIZE_PROPERTY_FROM_PARAMETER - FUN DEFAULT_PROPERTY_ACCESSOR public final fun (): kotlin.ShortArray - $this: VALUE_PARAMETER this@Test1: Test1 + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:Test1) returnType:ShortArray flags: + $this: VALUE_PARAMETER name: type:Test1 flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): ShortArray' + RETURN type=kotlin.Nothing from=(): ShortArray' GET_FIELD 'shortArray: ShortArray' type=kotlin.ShortArray origin=null receiver: GET_VAR 'this@Test1: Test1' type=Test1 origin=null - PROPERTY public final val intArray: kotlin.IntArray - FIELD PROPERTY_BACKING_FIELD public final val intArray: kotlin.IntArray + PROPERTY name:intArray type:kotlin.IntArray visibility:public modality:FINAL flags:val + FIELD PROPERTY_BACKING_FIELD name:intArray type:kotlin.IntArray visibility:public EXPRESSION_BODY GET_VAR 'value-parameter intArray: IntArray' type=kotlin.IntArray origin=INITIALIZE_PROPERTY_FROM_PARAMETER - FUN DEFAULT_PROPERTY_ACCESSOR public final fun (): kotlin.IntArray - $this: VALUE_PARAMETER this@Test1: Test1 + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:Test1) returnType:IntArray flags: + $this: VALUE_PARAMETER name: type:Test1 flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): IntArray' + RETURN type=kotlin.Nothing from=(): IntArray' GET_FIELD 'intArray: IntArray' type=kotlin.IntArray origin=null receiver: GET_VAR 'this@Test1: Test1' type=Test1 origin=null - PROPERTY public final val longArray: kotlin.LongArray - FIELD PROPERTY_BACKING_FIELD public final val longArray: kotlin.LongArray + PROPERTY name:longArray type:kotlin.LongArray visibility:public modality:FINAL flags:val + FIELD PROPERTY_BACKING_FIELD name:longArray type:kotlin.LongArray visibility:public EXPRESSION_BODY GET_VAR 'value-parameter longArray: LongArray' type=kotlin.LongArray origin=INITIALIZE_PROPERTY_FROM_PARAMETER - FUN DEFAULT_PROPERTY_ACCESSOR public final fun (): kotlin.LongArray - $this: VALUE_PARAMETER this@Test1: Test1 + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:Test1) returnType:LongArray flags: + $this: VALUE_PARAMETER name: type:Test1 flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): LongArray' + RETURN type=kotlin.Nothing from=(): LongArray' GET_FIELD 'longArray: LongArray' type=kotlin.LongArray origin=null receiver: GET_VAR 'this@Test1: Test1' type=Test1 origin=null - PROPERTY public final val floatArray: kotlin.FloatArray - FIELD PROPERTY_BACKING_FIELD public final val floatArray: kotlin.FloatArray + PROPERTY name:floatArray type:kotlin.FloatArray visibility:public modality:FINAL flags:val + FIELD PROPERTY_BACKING_FIELD name:floatArray type:kotlin.FloatArray visibility:public EXPRESSION_BODY GET_VAR 'value-parameter floatArray: FloatArray' type=kotlin.FloatArray origin=INITIALIZE_PROPERTY_FROM_PARAMETER - FUN DEFAULT_PROPERTY_ACCESSOR public final fun (): kotlin.FloatArray - $this: VALUE_PARAMETER this@Test1: Test1 + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:Test1) returnType:FloatArray flags: + $this: VALUE_PARAMETER name: type:Test1 flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): FloatArray' + RETURN type=kotlin.Nothing from=(): FloatArray' GET_FIELD 'floatArray: FloatArray' type=kotlin.FloatArray origin=null receiver: GET_VAR 'this@Test1: Test1' type=Test1 origin=null - PROPERTY public final val doubleArray: kotlin.DoubleArray - FIELD PROPERTY_BACKING_FIELD public final val doubleArray: kotlin.DoubleArray + PROPERTY name:doubleArray type:kotlin.DoubleArray visibility:public modality:FINAL flags:val + FIELD PROPERTY_BACKING_FIELD name:doubleArray type:kotlin.DoubleArray visibility:public EXPRESSION_BODY GET_VAR 'value-parameter doubleArray: DoubleArray' type=kotlin.DoubleArray origin=INITIALIZE_PROPERTY_FROM_PARAMETER - FUN DEFAULT_PROPERTY_ACCESSOR public final fun (): kotlin.DoubleArray - $this: VALUE_PARAMETER this@Test1: Test1 + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:Test1) returnType:DoubleArray flags: + $this: VALUE_PARAMETER name: type:Test1 flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): DoubleArray' + RETURN type=kotlin.Nothing from=(): DoubleArray' GET_FIELD 'doubleArray: DoubleArray' type=kotlin.DoubleArray origin=null receiver: GET_VAR 'this@Test1: Test1' type=Test1 origin=null - FUN GENERATED_DATA_CLASS_MEMBER public final operator fun component1(): kotlin.Array - $this: VALUE_PARAMETER this@Test1: Test1 + FUN GENERATED_DATA_CLASS_MEMBER name:component1 visibility:public modality:FINAL <> ($this:Test1) returnType:Array flags: + $this: VALUE_PARAMETER name: type:Test1 flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='component1(): Array' + RETURN type=kotlin.Nothing from=component1(): Array' CALL '(): Array' type=kotlin.Array origin=GET_PROPERTY $this: GET_VAR 'this@Test1: Test1' type=Test1 origin=null - FUN GENERATED_DATA_CLASS_MEMBER public final operator fun component2(): kotlin.CharArray - $this: VALUE_PARAMETER this@Test1: Test1 + FUN GENERATED_DATA_CLASS_MEMBER name:component2 visibility:public modality:FINAL <> ($this:Test1) returnType:CharArray flags: + $this: VALUE_PARAMETER name: type:Test1 flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='component2(): CharArray' + RETURN type=kotlin.Nothing from=component2(): CharArray' CALL '(): CharArray' type=kotlin.CharArray origin=GET_PROPERTY $this: GET_VAR 'this@Test1: Test1' type=Test1 origin=null - FUN GENERATED_DATA_CLASS_MEMBER public final operator fun component3(): kotlin.BooleanArray - $this: VALUE_PARAMETER this@Test1: Test1 + FUN GENERATED_DATA_CLASS_MEMBER name:component3 visibility:public modality:FINAL <> ($this:Test1) returnType:BooleanArray flags: + $this: VALUE_PARAMETER name: type:Test1 flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='component3(): BooleanArray' + RETURN type=kotlin.Nothing from=component3(): BooleanArray' CALL '(): BooleanArray' type=kotlin.BooleanArray origin=GET_PROPERTY $this: GET_VAR 'this@Test1: Test1' type=Test1 origin=null - FUN GENERATED_DATA_CLASS_MEMBER public final operator fun component4(): kotlin.ByteArray - $this: VALUE_PARAMETER this@Test1: Test1 + FUN GENERATED_DATA_CLASS_MEMBER name:component4 visibility:public modality:FINAL <> ($this:Test1) returnType:ByteArray flags: + $this: VALUE_PARAMETER name: type:Test1 flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='component4(): ByteArray' + RETURN type=kotlin.Nothing from=component4(): ByteArray' CALL '(): ByteArray' type=kotlin.ByteArray origin=GET_PROPERTY $this: GET_VAR 'this@Test1: Test1' type=Test1 origin=null - FUN GENERATED_DATA_CLASS_MEMBER public final operator fun component5(): kotlin.ShortArray - $this: VALUE_PARAMETER this@Test1: Test1 + FUN GENERATED_DATA_CLASS_MEMBER name:component5 visibility:public modality:FINAL <> ($this:Test1) returnType:ShortArray flags: + $this: VALUE_PARAMETER name: type:Test1 flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='component5(): ShortArray' + RETURN type=kotlin.Nothing from=component5(): ShortArray' CALL '(): ShortArray' type=kotlin.ShortArray origin=GET_PROPERTY $this: GET_VAR 'this@Test1: Test1' type=Test1 origin=null - FUN GENERATED_DATA_CLASS_MEMBER public final operator fun component6(): kotlin.IntArray - $this: VALUE_PARAMETER this@Test1: Test1 + FUN GENERATED_DATA_CLASS_MEMBER name:component6 visibility:public modality:FINAL <> ($this:Test1) returnType:IntArray flags: + $this: VALUE_PARAMETER name: type:Test1 flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='component6(): IntArray' + RETURN type=kotlin.Nothing from=component6(): IntArray' CALL '(): IntArray' type=kotlin.IntArray origin=GET_PROPERTY $this: GET_VAR 'this@Test1: Test1' type=Test1 origin=null - FUN GENERATED_DATA_CLASS_MEMBER public final operator fun component7(): kotlin.LongArray - $this: VALUE_PARAMETER this@Test1: Test1 + FUN GENERATED_DATA_CLASS_MEMBER name:component7 visibility:public modality:FINAL <> ($this:Test1) returnType:LongArray flags: + $this: VALUE_PARAMETER name: type:Test1 flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='component7(): LongArray' + RETURN type=kotlin.Nothing from=component7(): LongArray' CALL '(): LongArray' type=kotlin.LongArray origin=GET_PROPERTY $this: GET_VAR 'this@Test1: Test1' type=Test1 origin=null - FUN GENERATED_DATA_CLASS_MEMBER public final operator fun component8(): kotlin.FloatArray - $this: VALUE_PARAMETER this@Test1: Test1 + FUN GENERATED_DATA_CLASS_MEMBER name:component8 visibility:public modality:FINAL <> ($this:Test1) returnType:FloatArray flags: + $this: VALUE_PARAMETER name: type:Test1 flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='component8(): FloatArray' + RETURN type=kotlin.Nothing from=component8(): FloatArray' CALL '(): FloatArray' type=kotlin.FloatArray origin=GET_PROPERTY $this: GET_VAR 'this@Test1: Test1' type=Test1 origin=null - FUN GENERATED_DATA_CLASS_MEMBER public final operator fun component9(): kotlin.DoubleArray - $this: VALUE_PARAMETER this@Test1: Test1 + FUN GENERATED_DATA_CLASS_MEMBER name:component9 visibility:public modality:FINAL <> ($this:Test1) returnType:DoubleArray flags: + $this: VALUE_PARAMETER name: type:Test1 flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='component9(): DoubleArray' + RETURN type=kotlin.Nothing from=component9(): DoubleArray' CALL '(): DoubleArray' type=kotlin.DoubleArray origin=GET_PROPERTY $this: GET_VAR 'this@Test1: Test1' type=Test1 origin=null - FUN GENERATED_DATA_CLASS_MEMBER public final fun copy(stringArray: kotlin.Array = ..., charArray: kotlin.CharArray = ..., booleanArray: kotlin.BooleanArray = ..., byteArray: kotlin.ByteArray = ..., shortArray: kotlin.ShortArray = ..., intArray: kotlin.IntArray = ..., longArray: kotlin.LongArray = ..., floatArray: kotlin.FloatArray = ..., doubleArray: kotlin.DoubleArray = ...): Test1 - $this: VALUE_PARAMETER this@Test1: Test1 - VALUE_PARAMETER value-parameter stringArray: kotlin.Array = ... + FUN GENERATED_DATA_CLASS_MEMBER name:copy visibility:public modality:FINAL <> ($this:Test1, stringArray:kotlin.Array, charArray:kotlin.CharArray, booleanArray:kotlin.BooleanArray, byteArray:kotlin.ByteArray, shortArray:kotlin.ShortArray, intArray:kotlin.IntArray, longArray:kotlin.LongArray, floatArray:kotlin.FloatArray, doubleArray:kotlin.DoubleArray) returnType:Test1 flags: + $this: VALUE_PARAMETER name: type:Test1 flags: + VALUE_PARAMETER name:stringArray index:0 type:kotlin.Array flags: EXPRESSION_BODY CALL '(): Array' type=kotlin.Array origin=GET_PROPERTY $this: GET_VAR 'this@Test1: Test1' type=Test1 origin=null - VALUE_PARAMETER value-parameter charArray: kotlin.CharArray = ... + VALUE_PARAMETER name:charArray index:1 type:kotlin.CharArray flags: EXPRESSION_BODY CALL '(): CharArray' type=kotlin.CharArray origin=GET_PROPERTY $this: GET_VAR 'this@Test1: Test1' type=Test1 origin=null - VALUE_PARAMETER value-parameter booleanArray: kotlin.BooleanArray = ... + VALUE_PARAMETER name:booleanArray index:2 type:kotlin.BooleanArray flags: EXPRESSION_BODY CALL '(): BooleanArray' type=kotlin.BooleanArray origin=GET_PROPERTY $this: GET_VAR 'this@Test1: Test1' type=Test1 origin=null - VALUE_PARAMETER value-parameter byteArray: kotlin.ByteArray = ... + VALUE_PARAMETER name:byteArray index:3 type:kotlin.ByteArray flags: EXPRESSION_BODY CALL '(): ByteArray' type=kotlin.ByteArray origin=GET_PROPERTY $this: GET_VAR 'this@Test1: Test1' type=Test1 origin=null - VALUE_PARAMETER value-parameter shortArray: kotlin.ShortArray = ... + VALUE_PARAMETER name:shortArray index:4 type:kotlin.ShortArray flags: EXPRESSION_BODY CALL '(): ShortArray' type=kotlin.ShortArray origin=GET_PROPERTY $this: GET_VAR 'this@Test1: Test1' type=Test1 origin=null - VALUE_PARAMETER value-parameter intArray: kotlin.IntArray = ... + VALUE_PARAMETER name:intArray index:5 type:kotlin.IntArray flags: EXPRESSION_BODY CALL '(): IntArray' type=kotlin.IntArray origin=GET_PROPERTY $this: GET_VAR 'this@Test1: Test1' type=Test1 origin=null - VALUE_PARAMETER value-parameter longArray: kotlin.LongArray = ... + VALUE_PARAMETER name:longArray index:6 type:kotlin.LongArray flags: EXPRESSION_BODY CALL '(): LongArray' type=kotlin.LongArray origin=GET_PROPERTY $this: GET_VAR 'this@Test1: Test1' type=Test1 origin=null - VALUE_PARAMETER value-parameter floatArray: kotlin.FloatArray = ... + VALUE_PARAMETER name:floatArray index:7 type:kotlin.FloatArray flags: EXPRESSION_BODY CALL '(): FloatArray' type=kotlin.FloatArray origin=GET_PROPERTY $this: GET_VAR 'this@Test1: Test1' type=Test1 origin=null - VALUE_PARAMETER value-parameter doubleArray: kotlin.DoubleArray = ... + VALUE_PARAMETER name:doubleArray index:8 type:kotlin.DoubleArray flags: EXPRESSION_BODY CALL '(): DoubleArray' type=kotlin.DoubleArray origin=GET_PROPERTY $this: GET_VAR 'this@Test1: Test1' type=Test1 origin=null BLOCK_BODY - RETURN type=kotlin.Nothing from='copy(Array = ..., CharArray = ..., BooleanArray = ..., ByteArray = ..., ShortArray = ..., IntArray = ..., LongArray = ..., FloatArray = ..., DoubleArray = ...): Test1' + RETURN type=kotlin.Nothing from=copy(Array = ..., CharArray = ..., BooleanArray = ..., ByteArray = ..., ShortArray = ..., IntArray = ..., LongArray = ..., FloatArray = ..., DoubleArray = ...): Test1' CALL 'constructor Test1(Array, CharArray, BooleanArray, ByteArray, ShortArray, IntArray, LongArray, FloatArray, DoubleArray)' type=Test1 origin=null stringArray: GET_VAR 'value-parameter stringArray: Array = ...' type=kotlin.Array origin=null charArray: GET_VAR 'value-parameter charArray: CharArray = ...' type=kotlin.CharArray origin=null @@ -208,62 +208,62 @@ FILE /dataClassWithArrayMembers.kt longArray: GET_VAR 'value-parameter longArray: LongArray = ...' type=kotlin.LongArray origin=null floatArray: GET_VAR 'value-parameter floatArray: FloatArray = ...' type=kotlin.FloatArray origin=null doubleArray: GET_VAR 'value-parameter doubleArray: DoubleArray = ...' type=kotlin.DoubleArray origin=null - FUN GENERATED_DATA_CLASS_MEMBER public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Test1: Test1 + FUN GENERATED_DATA_CLASS_MEMBER name:toString visibility:public modality:OPEN <> ($this:Test1) returnType:String flags: + $this: VALUE_PARAMETER name: type:Test1 flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='toString(): String' + 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='stringArray=' + CONST String type=kotlin.String value=Test1( + CONST String type=kotlin.String value=stringArray= CALL 'dataClassArrayMemberToString(Any?): String' type=kotlin.String origin=null arg0: CALL '(): Array' type=kotlin.Array origin=GET_PROPERTY $this: GET_VAR 'this@Test1: Test1' type=Test1 origin=null - CONST String type=kotlin.String value=', ' - CONST String type=kotlin.String value='charArray=' + CONST String type=kotlin.String value=, + CONST String type=kotlin.String value=charArray= CALL 'dataClassArrayMemberToString(Any?): String' type=kotlin.String origin=null arg0: CALL '(): CharArray' type=kotlin.CharArray origin=GET_PROPERTY $this: GET_VAR 'this@Test1: Test1' type=Test1 origin=null - CONST String type=kotlin.String value=', ' - CONST String type=kotlin.String value='booleanArray=' + CONST String type=kotlin.String value=, + CONST String type=kotlin.String value=booleanArray= CALL 'dataClassArrayMemberToString(Any?): String' type=kotlin.String origin=null arg0: CALL '(): BooleanArray' type=kotlin.BooleanArray origin=GET_PROPERTY $this: GET_VAR 'this@Test1: Test1' type=Test1 origin=null - CONST String type=kotlin.String value=', ' - CONST String type=kotlin.String value='byteArray=' + CONST String type=kotlin.String value=, + CONST String type=kotlin.String value=byteArray= CALL 'dataClassArrayMemberToString(Any?): String' type=kotlin.String origin=null arg0: CALL '(): ByteArray' type=kotlin.ByteArray origin=GET_PROPERTY $this: GET_VAR 'this@Test1: Test1' type=Test1 origin=null - CONST String type=kotlin.String value=', ' - CONST String type=kotlin.String value='shortArray=' + CONST String type=kotlin.String value=, + CONST String type=kotlin.String value=shortArray= CALL 'dataClassArrayMemberToString(Any?): String' type=kotlin.String origin=null arg0: CALL '(): ShortArray' type=kotlin.ShortArray origin=GET_PROPERTY $this: GET_VAR 'this@Test1: Test1' type=Test1 origin=null - CONST String type=kotlin.String value=', ' - CONST String type=kotlin.String value='intArray=' + CONST String type=kotlin.String value=, + CONST String type=kotlin.String value=intArray= CALL 'dataClassArrayMemberToString(Any?): String' type=kotlin.String origin=null arg0: CALL '(): IntArray' type=kotlin.IntArray origin=GET_PROPERTY $this: GET_VAR 'this@Test1: Test1' type=Test1 origin=null - CONST String type=kotlin.String value=', ' - CONST String type=kotlin.String value='longArray=' + CONST String type=kotlin.String value=, + CONST String type=kotlin.String value=longArray= CALL 'dataClassArrayMemberToString(Any?): String' type=kotlin.String origin=null arg0: CALL '(): LongArray' type=kotlin.LongArray origin=GET_PROPERTY $this: GET_VAR 'this@Test1: Test1' type=Test1 origin=null - CONST String type=kotlin.String value=', ' - CONST String type=kotlin.String value='floatArray=' + CONST String type=kotlin.String value=, + CONST String type=kotlin.String value=floatArray= CALL 'dataClassArrayMemberToString(Any?): String' type=kotlin.String origin=null arg0: CALL '(): FloatArray' type=kotlin.FloatArray origin=GET_PROPERTY $this: GET_VAR 'this@Test1: Test1' type=Test1 origin=null - CONST String type=kotlin.String value=', ' - CONST String type=kotlin.String value='doubleArray=' + CONST String type=kotlin.String value=, + CONST String type=kotlin.String value=doubleArray= CALL 'dataClassArrayMemberToString(Any?): String' type=kotlin.String origin=null arg0: CALL '(): DoubleArray' type=kotlin.DoubleArray origin=GET_PROPERTY $this: GET_VAR 'this@Test1: Test1' type=Test1 origin=null - CONST String type=kotlin.String value=')' - FUN GENERATED_DATA_CLASS_MEMBER public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Test1: Test1 + CONST String type=kotlin.String value=) + FUN GENERATED_DATA_CLASS_MEMBER name:hashCode visibility:public modality:OPEN <> ($this:Test1) returnType:Int flags: + $this: VALUE_PARAMETER name: type:Test1 flags: BLOCK_BODY - VAR IR_TEMPORARY_VARIABLE var tmp0_result: kotlin.Int - CONST Int type=kotlin.Int value='0' + VAR IR_TEMPORARY_VARIABLE name:tmp0_result type:kotlin.Int flags:var + CONST Int type=kotlin.Int value=0 SET_VAR 'tmp0_result: Int' type=kotlin.Unit origin=EQ CALL 'dataClassArrayMemberHashCode(Any): Int' type=kotlin.Int origin=null arg0: CALL '(): Array' type=kotlin.Array origin=GET_PROPERTY @@ -272,7 +272,7 @@ FILE /dataClassWithArrayMembers.kt CALL 'plus(Int): Int' type=kotlin.Int origin=null $this: CALL 'times(Int): Int' type=kotlin.Int origin=null $this: GET_VAR 'tmp0_result: Int' type=kotlin.Int origin=null - other: CONST Int type=kotlin.Int value='31' + other: CONST Int type=kotlin.Int value=31 other: CALL 'dataClassArrayMemberHashCode(Any): Int' type=kotlin.Int origin=null arg0: CALL '(): CharArray' type=kotlin.CharArray origin=GET_PROPERTY $this: GET_VAR 'this@Test1: Test1' type=Test1 origin=null @@ -280,7 +280,7 @@ FILE /dataClassWithArrayMembers.kt CALL 'plus(Int): Int' type=kotlin.Int origin=null $this: CALL 'times(Int): Int' type=kotlin.Int origin=null $this: GET_VAR 'tmp0_result: Int' type=kotlin.Int origin=null - other: CONST Int type=kotlin.Int value='31' + other: CONST Int type=kotlin.Int value=31 other: CALL 'dataClassArrayMemberHashCode(Any): Int' type=kotlin.Int origin=null arg0: CALL '(): BooleanArray' type=kotlin.BooleanArray origin=GET_PROPERTY $this: GET_VAR 'this@Test1: Test1' type=Test1 origin=null @@ -288,7 +288,7 @@ FILE /dataClassWithArrayMembers.kt CALL 'plus(Int): Int' type=kotlin.Int origin=null $this: CALL 'times(Int): Int' type=kotlin.Int origin=null $this: GET_VAR 'tmp0_result: Int' type=kotlin.Int origin=null - other: CONST Int type=kotlin.Int value='31' + other: CONST Int type=kotlin.Int value=31 other: CALL 'dataClassArrayMemberHashCode(Any): Int' type=kotlin.Int origin=null arg0: CALL '(): ByteArray' type=kotlin.ByteArray origin=GET_PROPERTY $this: GET_VAR 'this@Test1: Test1' type=Test1 origin=null @@ -296,7 +296,7 @@ FILE /dataClassWithArrayMembers.kt CALL 'plus(Int): Int' type=kotlin.Int origin=null $this: CALL 'times(Int): Int' type=kotlin.Int origin=null $this: GET_VAR 'tmp0_result: Int' type=kotlin.Int origin=null - other: CONST Int type=kotlin.Int value='31' + other: CONST Int type=kotlin.Int value=31 other: CALL 'dataClassArrayMemberHashCode(Any): Int' type=kotlin.Int origin=null arg0: CALL '(): ShortArray' type=kotlin.ShortArray origin=GET_PROPERTY $this: GET_VAR 'this@Test1: Test1' type=Test1 origin=null @@ -304,7 +304,7 @@ FILE /dataClassWithArrayMembers.kt CALL 'plus(Int): Int' type=kotlin.Int origin=null $this: CALL 'times(Int): Int' type=kotlin.Int origin=null $this: GET_VAR 'tmp0_result: Int' type=kotlin.Int origin=null - other: CONST Int type=kotlin.Int value='31' + other: CONST Int type=kotlin.Int value=31 other: CALL 'dataClassArrayMemberHashCode(Any): Int' type=kotlin.Int origin=null arg0: CALL '(): IntArray' type=kotlin.IntArray origin=GET_PROPERTY $this: GET_VAR 'this@Test1: Test1' type=Test1 origin=null @@ -312,7 +312,7 @@ FILE /dataClassWithArrayMembers.kt CALL 'plus(Int): Int' type=kotlin.Int origin=null $this: CALL 'times(Int): Int' type=kotlin.Int origin=null $this: GET_VAR 'tmp0_result: Int' type=kotlin.Int origin=null - other: CONST Int type=kotlin.Int value='31' + other: CONST Int type=kotlin.Int value=31 other: CALL 'dataClassArrayMemberHashCode(Any): Int' type=kotlin.Int origin=null arg0: CALL '(): LongArray' type=kotlin.LongArray origin=GET_PROPERTY $this: GET_VAR 'this@Test1: Test1' type=Test1 origin=null @@ -320,7 +320,7 @@ FILE /dataClassWithArrayMembers.kt CALL 'plus(Int): Int' type=kotlin.Int origin=null $this: CALL 'times(Int): Int' type=kotlin.Int origin=null $this: GET_VAR 'tmp0_result: Int' type=kotlin.Int origin=null - other: CONST Int type=kotlin.Int value='31' + other: CONST Int type=kotlin.Int value=31 other: CALL 'dataClassArrayMemberHashCode(Any): Int' type=kotlin.Int origin=null arg0: CALL '(): FloatArray' type=kotlin.FloatArray origin=GET_PROPERTY $this: GET_VAR 'this@Test1: Test1' type=Test1 origin=null @@ -328,30 +328,30 @@ FILE /dataClassWithArrayMembers.kt CALL 'plus(Int): Int' type=kotlin.Int origin=null $this: CALL 'times(Int): Int' type=kotlin.Int origin=null $this: GET_VAR 'tmp0_result: Int' type=kotlin.Int origin=null - other: CONST Int type=kotlin.Int value='31' + other: CONST Int type=kotlin.Int value=31 other: CALL 'dataClassArrayMemberHashCode(Any): Int' type=kotlin.Int origin=null arg0: CALL '(): DoubleArray' type=kotlin.DoubleArray origin=GET_PROPERTY $this: GET_VAR 'this@Test1: Test1' type=Test1 origin=null - RETURN type=kotlin.Nothing from='hashCode(): Int' + RETURN type=kotlin.Nothing from=hashCode(): Int' GET_VAR 'tmp0_result: Int' type=kotlin.Int origin=null - FUN GENERATED_DATA_CLASS_MEMBER public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Test1: Test1 - VALUE_PARAMETER value-parameter other: kotlin.Any? + FUN GENERATED_DATA_CLASS_MEMBER name:equals visibility:public modality:OPEN <> ($this:Test1, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:Test1 flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: BLOCK_BODY WHEN type=kotlin.Unit origin=null BRANCH if: CALL 'EQEQEQ(Any?, Any?): Boolean' type=kotlin.Boolean origin=EQEQEQ arg0: GET_VAR 'this@Test1: Test1' type=Test1 origin=null arg1: GET_VAR 'value-parameter other: Any?' type=kotlin.Any? origin=null - then: RETURN type=kotlin.Nothing from='equals(Any?): Boolean' - CONST Boolean type=kotlin.Boolean value='true' + then: RETURN type=kotlin.Nothing from=equals(Any?): Boolean' + CONST Boolean type=kotlin.Boolean value=true WHEN type=kotlin.Unit origin=null BRANCH if: TYPE_OP type=kotlin.Boolean origin=NOT_INSTANCEOF typeOperand=Test1 GET_VAR 'value-parameter other: Any?' type=kotlin.Any? origin=null - then: RETURN type=kotlin.Nothing from='equals(Any?): Boolean' - CONST Boolean type=kotlin.Boolean value='false' - VAR IR_TEMPORARY_VARIABLE val tmp0_other_with_cast: Test1 + then: RETURN type=kotlin.Nothing from=equals(Any?): Boolean' + CONST Boolean type=kotlin.Boolean value=false + VAR IR_TEMPORARY_VARIABLE name:tmp0_other_with_cast type:Test1 flags:val TYPE_OP type=Test1 origin=CAST typeOperand=Test1 GET_VAR 'value-parameter other: Any?' type=kotlin.Any? origin=null WHEN type=kotlin.Unit origin=null @@ -362,8 +362,8 @@ FILE /dataClassWithArrayMembers.kt $this: GET_VAR 'this@Test1: Test1' type=Test1 origin=null arg1: CALL '(): Array' type=kotlin.Array origin=GET_PROPERTY $this: GET_VAR 'tmp0_other_with_cast: Test1' type=Test1 origin=null - then: RETURN type=kotlin.Nothing from='equals(Any?): Boolean' - CONST Boolean type=kotlin.Boolean value='false' + then: RETURN type=kotlin.Nothing from=equals(Any?): Boolean' + CONST Boolean type=kotlin.Boolean value=false WHEN type=kotlin.Unit origin=null BRANCH if: CALL 'NOT(Boolean): Boolean' type=kotlin.Boolean origin=EXCLEQ @@ -372,8 +372,8 @@ FILE /dataClassWithArrayMembers.kt $this: GET_VAR 'this@Test1: Test1' type=Test1 origin=null arg1: CALL '(): CharArray' type=kotlin.CharArray origin=GET_PROPERTY $this: GET_VAR 'tmp0_other_with_cast: Test1' type=Test1 origin=null - then: RETURN type=kotlin.Nothing from='equals(Any?): Boolean' - CONST Boolean type=kotlin.Boolean value='false' + then: RETURN type=kotlin.Nothing from=equals(Any?): Boolean' + CONST Boolean type=kotlin.Boolean value=false WHEN type=kotlin.Unit origin=null BRANCH if: CALL 'NOT(Boolean): Boolean' type=kotlin.Boolean origin=EXCLEQ @@ -382,8 +382,8 @@ FILE /dataClassWithArrayMembers.kt $this: GET_VAR 'this@Test1: Test1' type=Test1 origin=null arg1: CALL '(): BooleanArray' type=kotlin.BooleanArray origin=GET_PROPERTY $this: GET_VAR 'tmp0_other_with_cast: Test1' type=Test1 origin=null - then: RETURN type=kotlin.Nothing from='equals(Any?): Boolean' - CONST Boolean type=kotlin.Boolean value='false' + then: RETURN type=kotlin.Nothing from=equals(Any?): Boolean' + CONST Boolean type=kotlin.Boolean value=false WHEN type=kotlin.Unit origin=null BRANCH if: CALL 'NOT(Boolean): Boolean' type=kotlin.Boolean origin=EXCLEQ @@ -392,8 +392,8 @@ FILE /dataClassWithArrayMembers.kt $this: GET_VAR 'this@Test1: Test1' type=Test1 origin=null arg1: CALL '(): ByteArray' type=kotlin.ByteArray origin=GET_PROPERTY $this: GET_VAR 'tmp0_other_with_cast: Test1' type=Test1 origin=null - then: RETURN type=kotlin.Nothing from='equals(Any?): Boolean' - CONST Boolean type=kotlin.Boolean value='false' + then: RETURN type=kotlin.Nothing from=equals(Any?): Boolean' + CONST Boolean type=kotlin.Boolean value=false WHEN type=kotlin.Unit origin=null BRANCH if: CALL 'NOT(Boolean): Boolean' type=kotlin.Boolean origin=EXCLEQ @@ -402,8 +402,8 @@ FILE /dataClassWithArrayMembers.kt $this: GET_VAR 'this@Test1: Test1' type=Test1 origin=null arg1: CALL '(): ShortArray' type=kotlin.ShortArray origin=GET_PROPERTY $this: GET_VAR 'tmp0_other_with_cast: Test1' type=Test1 origin=null - then: RETURN type=kotlin.Nothing from='equals(Any?): Boolean' - CONST Boolean type=kotlin.Boolean value='false' + then: RETURN type=kotlin.Nothing from=equals(Any?): Boolean' + CONST Boolean type=kotlin.Boolean value=false WHEN type=kotlin.Unit origin=null BRANCH if: CALL 'NOT(Boolean): Boolean' type=kotlin.Boolean origin=EXCLEQ @@ -412,8 +412,8 @@ FILE /dataClassWithArrayMembers.kt $this: GET_VAR 'this@Test1: Test1' type=Test1 origin=null arg1: CALL '(): IntArray' type=kotlin.IntArray origin=GET_PROPERTY $this: GET_VAR 'tmp0_other_with_cast: Test1' type=Test1 origin=null - then: RETURN type=kotlin.Nothing from='equals(Any?): Boolean' - CONST Boolean type=kotlin.Boolean value='false' + then: RETURN type=kotlin.Nothing from=equals(Any?): Boolean' + CONST Boolean type=kotlin.Boolean value=false WHEN type=kotlin.Unit origin=null BRANCH if: CALL 'NOT(Boolean): Boolean' type=kotlin.Boolean origin=EXCLEQ @@ -422,8 +422,8 @@ FILE /dataClassWithArrayMembers.kt $this: GET_VAR 'this@Test1: Test1' type=Test1 origin=null arg1: CALL '(): LongArray' type=kotlin.LongArray origin=GET_PROPERTY $this: GET_VAR 'tmp0_other_with_cast: Test1' type=Test1 origin=null - then: RETURN type=kotlin.Nothing from='equals(Any?): Boolean' - CONST Boolean type=kotlin.Boolean value='false' + then: RETURN type=kotlin.Nothing from=equals(Any?): Boolean' + CONST Boolean type=kotlin.Boolean value=false WHEN type=kotlin.Unit origin=null BRANCH if: CALL 'NOT(Boolean): Boolean' type=kotlin.Boolean origin=EXCLEQ @@ -432,8 +432,8 @@ FILE /dataClassWithArrayMembers.kt $this: GET_VAR 'this@Test1: Test1' type=Test1 origin=null arg1: CALL '(): FloatArray' type=kotlin.FloatArray origin=GET_PROPERTY $this: GET_VAR 'tmp0_other_with_cast: Test1' type=Test1 origin=null - then: RETURN type=kotlin.Nothing from='equals(Any?): Boolean' - CONST Boolean type=kotlin.Boolean value='false' + then: RETURN type=kotlin.Nothing from=equals(Any?): Boolean' + CONST Boolean type=kotlin.Boolean value=false WHEN type=kotlin.Unit origin=null BRANCH if: CALL 'NOT(Boolean): Boolean' type=kotlin.Boolean origin=EXCLEQ @@ -442,85 +442,85 @@ FILE /dataClassWithArrayMembers.kt $this: GET_VAR 'this@Test1: Test1' type=Test1 origin=null arg1: CALL '(): DoubleArray' type=kotlin.DoubleArray origin=GET_PROPERTY $this: GET_VAR 'tmp0_other_with_cast: Test1' type=Test1 origin=null - then: RETURN type=kotlin.Nothing from='equals(Any?): Boolean' - CONST Boolean type=kotlin.Boolean value='false' - RETURN type=kotlin.Nothing from='equals(Any?): Boolean' - CONST Boolean type=kotlin.Boolean value='true' - CLASS CLASS Test2 - $this: VALUE_PARAMETER this@Test2: Test2 - TYPE_PARAMETER - CONSTRUCTOR public constructor Test2(genericArray: kotlin.Array) - VALUE_PARAMETER value-parameter genericArray: kotlin.Array + then: RETURN type=kotlin.Nothing from=equals(Any?): Boolean' + CONST Boolean type=kotlin.Boolean value=false + RETURN type=kotlin.Nothing from=equals(Any?): Boolean' + CONST Boolean type=kotlin.Boolean value=true + CLASS CLASS name:Test2 modality:FINAL visibility:public flags:data + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Test2 flags: + TYPE_PARAMETER name:T index:0 variance: upperBounds:[kotlin.Any?] + CONSTRUCTOR visibility:public <> (genericArray:kotlin.Array) returnType:Test2 flags: + VALUE_PARAMETER name:genericArray index:0 type:kotlin.Array flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='Test2' - PROPERTY public final val genericArray: kotlin.Array - FIELD PROPERTY_BACKING_FIELD public final val genericArray: kotlin.Array + PROPERTY name:genericArray type:kotlin.Array visibility:public modality:FINAL flags:val + FIELD PROPERTY_BACKING_FIELD name:genericArray type:kotlin.Array visibility:public EXPRESSION_BODY GET_VAR 'value-parameter genericArray: Array' type=kotlin.Array origin=INITIALIZE_PROPERTY_FROM_PARAMETER - FUN DEFAULT_PROPERTY_ACCESSOR public final fun (): kotlin.Array - $this: VALUE_PARAMETER this@Test2: Test2 + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:Test2) returnType:Array flags: + $this: VALUE_PARAMETER name: type:Test2 flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): Array' + RETURN type=kotlin.Nothing from=(): Array' GET_FIELD 'genericArray: Array' type=kotlin.Array origin=null receiver: GET_VAR 'this@Test2: Test2' type=Test2 origin=null - FUN GENERATED_DATA_CLASS_MEMBER public final operator fun component1(): kotlin.Array - $this: VALUE_PARAMETER this@Test2: Test2 + FUN GENERATED_DATA_CLASS_MEMBER name:component1 visibility:public modality:FINAL <> ($this:Test2) returnType:Array flags: + $this: VALUE_PARAMETER name: type:Test2 flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='component1(): Array' + RETURN type=kotlin.Nothing from=component1(): Array' CALL '(): Array' type=kotlin.Array origin=GET_PROPERTY $this: GET_VAR 'this@Test2: Test2' type=Test2 origin=null - FUN GENERATED_DATA_CLASS_MEMBER public final fun copy(genericArray: kotlin.Array = ...): Test2 - $this: VALUE_PARAMETER this@Test2: Test2 - VALUE_PARAMETER value-parameter genericArray: kotlin.Array = ... + FUN GENERATED_DATA_CLASS_MEMBER name:copy visibility:public modality:FINAL <> ($this:Test2, genericArray:kotlin.Array) returnType:Test2 flags: + $this: VALUE_PARAMETER name: type:Test2 flags: + VALUE_PARAMETER name:genericArray index:0 type:kotlin.Array flags: EXPRESSION_BODY CALL '(): Array' type=kotlin.Array origin=GET_PROPERTY $this: GET_VAR 'this@Test2: Test2' type=Test2 origin=null BLOCK_BODY - RETURN type=kotlin.Nothing from='copy(Array = ...): Test2' + RETURN type=kotlin.Nothing from=copy(Array = ...): Test2' CALL 'constructor Test2(Array)' type=Test2 origin=null : null genericArray: GET_VAR 'value-parameter genericArray: Array = ...' type=kotlin.Array origin=null - FUN GENERATED_DATA_CLASS_MEMBER public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Test2: Test2 + FUN GENERATED_DATA_CLASS_MEMBER name:toString visibility:public modality:OPEN <> ($this:Test2) returnType:String flags: + $this: VALUE_PARAMETER name: type:Test2 flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='toString(): String' + RETURN type=kotlin.Nothing from=toString(): String' STRING_CONCATENATION type=kotlin.String - CONST String type=kotlin.String value='Test2(' - CONST String type=kotlin.String value='genericArray=' + CONST String type=kotlin.String value=Test2( + CONST String type=kotlin.String value=genericArray= CALL 'dataClassArrayMemberToString(Any?): String' type=kotlin.String origin=null arg0: CALL '(): Array' type=kotlin.Array origin=GET_PROPERTY $this: GET_VAR 'this@Test2: Test2' type=Test2 origin=null - CONST String type=kotlin.String value=')' - FUN GENERATED_DATA_CLASS_MEMBER public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Test2: Test2 + CONST String type=kotlin.String value=) + FUN GENERATED_DATA_CLASS_MEMBER name:hashCode visibility:public modality:OPEN <> ($this:Test2) returnType:Int flags: + $this: VALUE_PARAMETER name: type:Test2 flags: BLOCK_BODY - VAR IR_TEMPORARY_VARIABLE var tmp0_result: kotlin.Int - CONST Int type=kotlin.Int value='0' + VAR IR_TEMPORARY_VARIABLE name:tmp0_result type:kotlin.Int flags:var + CONST Int type=kotlin.Int value=0 SET_VAR 'tmp0_result: Int' type=kotlin.Unit origin=EQ CALL 'dataClassArrayMemberHashCode(Any): Int' type=kotlin.Int origin=null arg0: CALL '(): Array' type=kotlin.Array origin=GET_PROPERTY $this: GET_VAR 'this@Test2: Test2' type=Test2 origin=null - RETURN type=kotlin.Nothing from='hashCode(): Int' + RETURN type=kotlin.Nothing from=hashCode(): Int' GET_VAR 'tmp0_result: Int' type=kotlin.Int origin=null - FUN GENERATED_DATA_CLASS_MEMBER public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Test2: Test2 - VALUE_PARAMETER value-parameter other: kotlin.Any? + FUN GENERATED_DATA_CLASS_MEMBER name:equals visibility:public modality:OPEN <> ($this:Test2, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:Test2 flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: BLOCK_BODY WHEN type=kotlin.Unit origin=null BRANCH if: CALL 'EQEQEQ(Any?, Any?): Boolean' type=kotlin.Boolean origin=EQEQEQ arg0: GET_VAR 'this@Test2: Test2' type=Test2 origin=null arg1: GET_VAR 'value-parameter other: Any?' type=kotlin.Any? origin=null - then: RETURN type=kotlin.Nothing from='equals(Any?): Boolean' - CONST Boolean type=kotlin.Boolean value='true' + then: RETURN type=kotlin.Nothing from=equals(Any?): Boolean' + CONST Boolean type=kotlin.Boolean value=true WHEN type=kotlin.Unit origin=null BRANCH if: TYPE_OP type=kotlin.Boolean origin=NOT_INSTANCEOF typeOperand=Test2 GET_VAR 'value-parameter other: Any?' type=kotlin.Any? origin=null - then: RETURN type=kotlin.Nothing from='equals(Any?): Boolean' - CONST Boolean type=kotlin.Boolean value='false' - VAR IR_TEMPORARY_VARIABLE val tmp0_other_with_cast: Test2 + then: RETURN type=kotlin.Nothing from=equals(Any?): Boolean' + CONST Boolean type=kotlin.Boolean value=false + VAR IR_TEMPORARY_VARIABLE name:tmp0_other_with_cast type:Test2 flags:val TYPE_OP type=Test2 origin=CAST typeOperand=Test2 GET_VAR 'value-parameter other: Any?' type=kotlin.Any? origin=null WHEN type=kotlin.Unit origin=null @@ -531,94 +531,94 @@ FILE /dataClassWithArrayMembers.kt $this: GET_VAR 'this@Test2: Test2' type=Test2 origin=null arg1: CALL '(): Array' type=kotlin.Array origin=GET_PROPERTY $this: GET_VAR 'tmp0_other_with_cast: Test2' type=Test2 origin=null - then: RETURN type=kotlin.Nothing from='equals(Any?): Boolean' - CONST Boolean type=kotlin.Boolean value='false' - RETURN type=kotlin.Nothing from='equals(Any?): Boolean' - CONST Boolean type=kotlin.Boolean value='true' - CLASS CLASS Test3 - $this: VALUE_PARAMETER this@Test3: Test3 - CONSTRUCTOR public constructor Test3(anyArrayN: kotlin.Array?) - VALUE_PARAMETER value-parameter anyArrayN: kotlin.Array? + then: RETURN type=kotlin.Nothing from=equals(Any?): Boolean' + CONST Boolean type=kotlin.Boolean value=false + RETURN type=kotlin.Nothing from=equals(Any?): Boolean' + CONST Boolean type=kotlin.Boolean value=true + CLASS CLASS name:Test3 modality:FINAL visibility:public flags:data + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Test3 flags: + CONSTRUCTOR visibility:public <> (anyArrayN:kotlin.Array?) returnType:Test3 flags: + VALUE_PARAMETER name:anyArrayN index:0 type:kotlin.Array? flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='Test3' - PROPERTY public final val anyArrayN: kotlin.Array? - FIELD PROPERTY_BACKING_FIELD public final val anyArrayN: kotlin.Array? + PROPERTY name:anyArrayN type:kotlin.Array? visibility:public modality:FINAL flags:val + FIELD PROPERTY_BACKING_FIELD name:anyArrayN type:kotlin.Array? visibility:public EXPRESSION_BODY GET_VAR 'value-parameter anyArrayN: Array?' type=kotlin.Array? origin=INITIALIZE_PROPERTY_FROM_PARAMETER - FUN DEFAULT_PROPERTY_ACCESSOR public final fun (): kotlin.Array? - $this: VALUE_PARAMETER this@Test3: Test3 + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:Test3) returnType:Array? flags: + $this: VALUE_PARAMETER name: type:Test3 flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): Array?' + RETURN type=kotlin.Nothing from=(): Array?' GET_FIELD 'anyArrayN: Array?' type=kotlin.Array? origin=null receiver: GET_VAR 'this@Test3: Test3' type=Test3 origin=null - FUN GENERATED_DATA_CLASS_MEMBER public final operator fun component1(): kotlin.Array? - $this: VALUE_PARAMETER this@Test3: Test3 + FUN GENERATED_DATA_CLASS_MEMBER name:component1 visibility:public modality:FINAL <> ($this:Test3) returnType:Array? flags: + $this: VALUE_PARAMETER name: type:Test3 flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='component1(): Array?' + RETURN type=kotlin.Nothing from=component1(): Array?' CALL '(): Array?' type=kotlin.Array? origin=GET_PROPERTY $this: GET_VAR 'this@Test3: Test3' type=Test3 origin=null - FUN GENERATED_DATA_CLASS_MEMBER public final fun copy(anyArrayN: kotlin.Array? = ...): Test3 - $this: VALUE_PARAMETER this@Test3: Test3 - VALUE_PARAMETER value-parameter anyArrayN: kotlin.Array? = ... + FUN GENERATED_DATA_CLASS_MEMBER name:copy visibility:public modality:FINAL <> ($this:Test3, anyArrayN:kotlin.Array?) returnType:Test3 flags: + $this: VALUE_PARAMETER name: type:Test3 flags: + VALUE_PARAMETER name:anyArrayN index:0 type:kotlin.Array? flags: EXPRESSION_BODY CALL '(): Array?' type=kotlin.Array? origin=GET_PROPERTY $this: GET_VAR 'this@Test3: Test3' type=Test3 origin=null BLOCK_BODY - RETURN type=kotlin.Nothing from='copy(Array? = ...): Test3' + RETURN type=kotlin.Nothing from=copy(Array? = ...): Test3' CALL 'constructor Test3(Array?)' type=Test3 origin=null anyArrayN: GET_VAR 'value-parameter anyArrayN: Array? = ...' type=kotlin.Array? origin=null - FUN GENERATED_DATA_CLASS_MEMBER public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Test3: Test3 + FUN GENERATED_DATA_CLASS_MEMBER name:toString visibility:public modality:OPEN <> ($this:Test3) returnType:String flags: + $this: VALUE_PARAMETER name: type:Test3 flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='toString(): String' + RETURN type=kotlin.Nothing from=toString(): String' STRING_CONCATENATION type=kotlin.String - CONST String type=kotlin.String value='Test3(' - CONST String type=kotlin.String value='anyArrayN=' + CONST String type=kotlin.String value=Test3( + CONST String type=kotlin.String value=anyArrayN= CALL 'dataClassArrayMemberToString(Any?): String' type=kotlin.String origin=null arg0: CALL '(): Array?' type=kotlin.Array? origin=GET_PROPERTY $this: GET_VAR 'this@Test3: Test3' type=Test3 origin=null - CONST String type=kotlin.String value=')' - FUN GENERATED_DATA_CLASS_MEMBER public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Test3: Test3 + CONST String type=kotlin.String value=) + FUN GENERATED_DATA_CLASS_MEMBER name:hashCode visibility:public modality:OPEN <> ($this:Test3) returnType:Int flags: + $this: VALUE_PARAMETER name: type:Test3 flags: BLOCK_BODY - VAR IR_TEMPORARY_VARIABLE var tmp0_result: kotlin.Int - CONST Int type=kotlin.Int value='0' + VAR IR_TEMPORARY_VARIABLE name:tmp0_result type:kotlin.Int flags:var + CONST Int type=kotlin.Int value=0 SET_VAR 'tmp0_result: Int' type=kotlin.Unit origin=EQ BLOCK type=kotlin.Int origin=null - VAR IR_TEMPORARY_VARIABLE val tmp1: kotlin.Array? + VAR IR_TEMPORARY_VARIABLE name:tmp1 type:kotlin.Array? flags:val CALL '(): Array?' type=kotlin.Array? origin=GET_PROPERTY $this: GET_VAR 'this@Test3: Test3' type=Test3 origin=null WHEN type=kotlin.Int origin=null BRANCH if: CALL 'EQEQ(Any?, Any?): Boolean' type=kotlin.Boolean origin=EQEQ arg0: GET_VAR 'tmp1: Array?' type=kotlin.Array? origin=null - arg1: CONST Null type=kotlin.Nothing? value='null' - then: CONST Int type=kotlin.Int value='0' + arg1: CONST Null type=kotlin.Nothing? value=null + then: CONST Int type=kotlin.Int value=0 BRANCH - if: CONST Boolean type=kotlin.Boolean value='true' + if: CONST Boolean type=kotlin.Boolean value=true then: CALL 'dataClassArrayMemberHashCode(Any): Int' type=kotlin.Int origin=null arg0: GET_VAR 'tmp1: Array?' type=kotlin.Array? origin=null - RETURN type=kotlin.Nothing from='hashCode(): Int' + RETURN type=kotlin.Nothing from=hashCode(): Int' GET_VAR 'tmp0_result: Int' type=kotlin.Int origin=null - FUN GENERATED_DATA_CLASS_MEMBER public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Test3: Test3 - VALUE_PARAMETER value-parameter other: kotlin.Any? + FUN GENERATED_DATA_CLASS_MEMBER name:equals visibility:public modality:OPEN <> ($this:Test3, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:Test3 flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: BLOCK_BODY WHEN type=kotlin.Unit origin=null BRANCH if: CALL 'EQEQEQ(Any?, Any?): Boolean' type=kotlin.Boolean origin=EQEQEQ arg0: GET_VAR 'this@Test3: Test3' type=Test3 origin=null arg1: GET_VAR 'value-parameter other: Any?' type=kotlin.Any? origin=null - then: RETURN type=kotlin.Nothing from='equals(Any?): Boolean' - CONST Boolean type=kotlin.Boolean value='true' + then: RETURN type=kotlin.Nothing from=equals(Any?): Boolean' + CONST Boolean type=kotlin.Boolean value=true WHEN type=kotlin.Unit origin=null BRANCH if: TYPE_OP type=kotlin.Boolean origin=NOT_INSTANCEOF typeOperand=Test3 GET_VAR 'value-parameter other: Any?' type=kotlin.Any? origin=null - then: RETURN type=kotlin.Nothing from='equals(Any?): Boolean' - CONST Boolean type=kotlin.Boolean value='false' - VAR IR_TEMPORARY_VARIABLE val tmp0_other_with_cast: Test3 + then: RETURN type=kotlin.Nothing from=equals(Any?): Boolean' + CONST Boolean type=kotlin.Boolean value=false + VAR IR_TEMPORARY_VARIABLE name:tmp0_other_with_cast type:Test3 flags:val TYPE_OP type=Test3 origin=CAST typeOperand=Test3 GET_VAR 'value-parameter other: Any?' type=kotlin.Any? origin=null WHEN type=kotlin.Unit origin=null @@ -629,7 +629,8 @@ FILE /dataClassWithArrayMembers.kt $this: GET_VAR 'this@Test3: Test3' type=Test3 origin=null arg1: CALL '(): Array?' type=kotlin.Array? origin=GET_PROPERTY $this: GET_VAR 'tmp0_other_with_cast: Test3' type=Test3 origin=null - then: RETURN type=kotlin.Nothing from='equals(Any?): Boolean' - CONST Boolean type=kotlin.Boolean value='false' - RETURN type=kotlin.Nothing from='equals(Any?): Boolean' - CONST Boolean type=kotlin.Boolean value='true' + then: RETURN type=kotlin.Nothing from=equals(Any?): Boolean' + CONST Boolean type=kotlin.Boolean value=false + RETURN type=kotlin.Nothing from=equals(Any?): Boolean' + CONST Boolean type=kotlin.Boolean value=true + diff --git a/compiler/testData/ir/irText/classes/dataClasses.txt b/compiler/testData/ir/irText/classes/dataClasses.txt index bb004d533f5..48a4c55d6eb 100644 --- a/compiler/testData/ir/irText/classes/dataClasses.txt +++ b/compiler/testData/ir/irText/classes/dataClasses.txt @@ -1,104 +1,104 @@ -FILE /dataClasses.kt - CLASS CLASS Test1 - $this: VALUE_PARAMETER this@Test1: Test1 - CONSTRUCTOR public constructor Test1(x: kotlin.Int, y: kotlin.String, z: kotlin.Any) - VALUE_PARAMETER value-parameter x: kotlin.Int - VALUE_PARAMETER value-parameter y: kotlin.String - VALUE_PARAMETER value-parameter z: kotlin.Any +FILE fqName: fileName:/dataClasses.kt + CLASS CLASS name:Test1 modality:FINAL visibility:public flags:data + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Test1 flags: + CONSTRUCTOR visibility:public <> (x:kotlin.Int, y:kotlin.String, z:kotlin.Any) returnType:Test1 flags: + VALUE_PARAMETER name:x index:0 type:kotlin.Int flags: + VALUE_PARAMETER name:y index:1 type:kotlin.String flags: + VALUE_PARAMETER name:z index:2 type:kotlin.Any flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='Test1' - PROPERTY public final val x: kotlin.Int - FIELD PROPERTY_BACKING_FIELD public final val x: kotlin.Int + PROPERTY name:x type:kotlin.Int visibility:public modality:FINAL flags:val + FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.Int visibility:public EXPRESSION_BODY GET_VAR 'value-parameter x: Int' type=kotlin.Int origin=INITIALIZE_PROPERTY_FROM_PARAMETER - FUN DEFAULT_PROPERTY_ACCESSOR public final fun (): kotlin.Int - $this: VALUE_PARAMETER this@Test1: Test1 + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:Test1) returnType:Int flags: + $this: VALUE_PARAMETER name: type:Test1 flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): Int' + RETURN type=kotlin.Nothing from=(): Int' GET_FIELD 'x: Int' type=kotlin.Int origin=null receiver: GET_VAR 'this@Test1: Test1' type=Test1 origin=null - PROPERTY public final val y: kotlin.String - FIELD PROPERTY_BACKING_FIELD public final val y: kotlin.String + PROPERTY name:y type:kotlin.String visibility:public modality:FINAL flags:val + FIELD PROPERTY_BACKING_FIELD name:y type:kotlin.String visibility:public EXPRESSION_BODY GET_VAR 'value-parameter y: String' type=kotlin.String origin=INITIALIZE_PROPERTY_FROM_PARAMETER - FUN DEFAULT_PROPERTY_ACCESSOR public final fun (): kotlin.String - $this: VALUE_PARAMETER this@Test1: Test1 + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:Test1) returnType:String flags: + $this: VALUE_PARAMETER name: type:Test1 flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): String' + RETURN type=kotlin.Nothing from=(): String' GET_FIELD 'y: String' type=kotlin.String origin=null receiver: GET_VAR 'this@Test1: Test1' type=Test1 origin=null - PROPERTY public final val z: kotlin.Any - FIELD PROPERTY_BACKING_FIELD public final val z: kotlin.Any + PROPERTY name:z type:kotlin.Any visibility:public modality:FINAL flags:val + FIELD PROPERTY_BACKING_FIELD name:z type:kotlin.Any visibility:public EXPRESSION_BODY GET_VAR 'value-parameter z: Any' type=kotlin.Any origin=INITIALIZE_PROPERTY_FROM_PARAMETER - FUN DEFAULT_PROPERTY_ACCESSOR public final fun (): kotlin.Any - $this: VALUE_PARAMETER this@Test1: Test1 + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:Test1) returnType:Any flags: + $this: VALUE_PARAMETER name: type:Test1 flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): Any' + RETURN type=kotlin.Nothing from=(): Any' GET_FIELD 'z: Any' type=kotlin.Any origin=null receiver: GET_VAR 'this@Test1: Test1' type=Test1 origin=null - FUN GENERATED_DATA_CLASS_MEMBER public final operator fun component1(): kotlin.Int - $this: VALUE_PARAMETER this@Test1: Test1 + FUN GENERATED_DATA_CLASS_MEMBER name:component1 visibility:public modality:FINAL <> ($this:Test1) returnType:Int flags: + $this: VALUE_PARAMETER name: type:Test1 flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='component1(): Int' + RETURN type=kotlin.Nothing from=component1(): Int' CALL '(): Int' type=kotlin.Int origin=GET_PROPERTY $this: GET_VAR 'this@Test1: Test1' type=Test1 origin=null - FUN GENERATED_DATA_CLASS_MEMBER public final operator fun component2(): kotlin.String - $this: VALUE_PARAMETER this@Test1: Test1 + FUN GENERATED_DATA_CLASS_MEMBER name:component2 visibility:public modality:FINAL <> ($this:Test1) returnType:String flags: + $this: VALUE_PARAMETER name: type:Test1 flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='component2(): String' + RETURN type=kotlin.Nothing from=component2(): String' CALL '(): String' type=kotlin.String origin=GET_PROPERTY $this: GET_VAR 'this@Test1: Test1' type=Test1 origin=null - FUN GENERATED_DATA_CLASS_MEMBER public final operator fun component3(): kotlin.Any - $this: VALUE_PARAMETER this@Test1: Test1 + FUN GENERATED_DATA_CLASS_MEMBER name:component3 visibility:public modality:FINAL <> ($this:Test1) returnType:Any flags: + $this: VALUE_PARAMETER name: type:Test1 flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='component3(): Any' + RETURN type=kotlin.Nothing from=component3(): Any' CALL '(): Any' type=kotlin.Any origin=GET_PROPERTY $this: GET_VAR 'this@Test1: Test1' type=Test1 origin=null - FUN GENERATED_DATA_CLASS_MEMBER public final fun copy(x: kotlin.Int = ..., y: kotlin.String = ..., z: kotlin.Any = ...): Test1 - $this: VALUE_PARAMETER this@Test1: Test1 - VALUE_PARAMETER value-parameter x: kotlin.Int = ... + FUN GENERATED_DATA_CLASS_MEMBER name:copy visibility:public modality:FINAL <> ($this:Test1, x:kotlin.Int, y:kotlin.String, z:kotlin.Any) returnType:Test1 flags: + $this: VALUE_PARAMETER name: type:Test1 flags: + VALUE_PARAMETER name:x index:0 type:kotlin.Int flags: EXPRESSION_BODY CALL '(): Int' type=kotlin.Int origin=GET_PROPERTY $this: GET_VAR 'this@Test1: Test1' type=Test1 origin=null - VALUE_PARAMETER value-parameter y: kotlin.String = ... + VALUE_PARAMETER name:y index:1 type:kotlin.String flags: EXPRESSION_BODY CALL '(): String' type=kotlin.String origin=GET_PROPERTY $this: GET_VAR 'this@Test1: Test1' type=Test1 origin=null - VALUE_PARAMETER value-parameter z: kotlin.Any = ... + VALUE_PARAMETER name:z index:2 type:kotlin.Any flags: EXPRESSION_BODY CALL '(): Any' type=kotlin.Any origin=GET_PROPERTY $this: GET_VAR 'this@Test1: Test1' type=Test1 origin=null BLOCK_BODY - RETURN type=kotlin.Nothing from='copy(Int = ..., String = ..., Any = ...): Test1' + RETURN type=kotlin.Nothing from=copy(Int = ..., String = ..., Any = ...): Test1' CALL 'constructor Test1(Int, String, Any)' type=Test1 origin=null x: GET_VAR 'value-parameter x: Int = ...' type=kotlin.Int origin=null y: GET_VAR 'value-parameter y: String = ...' type=kotlin.String origin=null z: GET_VAR 'value-parameter z: Any = ...' type=kotlin.Any origin=null - FUN GENERATED_DATA_CLASS_MEMBER public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Test1: Test1 + FUN GENERATED_DATA_CLASS_MEMBER name:toString visibility:public modality:OPEN <> ($this:Test1) returnType:String flags: + $this: VALUE_PARAMETER name: type:Test1 flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='toString(): String' + 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=' + CONST String type=kotlin.String value=Test1( + CONST String type=kotlin.String value=x= CALL '(): Int' type=kotlin.Int origin=GET_PROPERTY $this: GET_VAR 'this@Test1: Test1' type=Test1 origin=null - CONST String type=kotlin.String value=', ' - CONST String type=kotlin.String value='y=' + CONST String type=kotlin.String value=, + CONST String type=kotlin.String value=y= CALL '(): String' type=kotlin.String origin=GET_PROPERTY $this: GET_VAR 'this@Test1: Test1' type=Test1 origin=null - CONST String type=kotlin.String value=', ' - CONST String type=kotlin.String value='z=' + CONST String type=kotlin.String value=, + CONST String type=kotlin.String value=z= CALL '(): Any' type=kotlin.Any origin=GET_PROPERTY $this: GET_VAR 'this@Test1: Test1' type=Test1 origin=null - CONST String type=kotlin.String value=')' - FUN GENERATED_DATA_CLASS_MEMBER public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Test1: Test1 + CONST String type=kotlin.String value=) + FUN GENERATED_DATA_CLASS_MEMBER name:hashCode visibility:public modality:OPEN <> ($this:Test1) returnType:Int flags: + $this: VALUE_PARAMETER name: type:Test1 flags: BLOCK_BODY - VAR IR_TEMPORARY_VARIABLE var tmp0_result: kotlin.Int - CONST Int type=kotlin.Int value='0' + VAR IR_TEMPORARY_VARIABLE name:tmp0_result type:kotlin.Int flags:var + CONST Int type=kotlin.Int value=0 SET_VAR 'tmp0_result: Int' type=kotlin.Unit origin=EQ CALL 'hashCode(): Int' type=kotlin.Int origin=null $this: CALL '(): Int' type=kotlin.Int origin=GET_PROPERTY @@ -107,7 +107,7 @@ FILE /dataClasses.kt CALL 'plus(Int): Int' type=kotlin.Int origin=null $this: CALL 'times(Int): Int' type=kotlin.Int origin=null $this: GET_VAR 'tmp0_result: Int' type=kotlin.Int origin=null - other: CONST Int type=kotlin.Int value='31' + other: CONST Int type=kotlin.Int value=31 other: CALL 'hashCode(): Int' type=kotlin.Int origin=null $this: CALL '(): String' type=kotlin.String origin=GET_PROPERTY $this: GET_VAR 'this@Test1: Test1' type=Test1 origin=null @@ -115,30 +115,30 @@ FILE /dataClasses.kt CALL 'plus(Int): Int' type=kotlin.Int origin=null $this: CALL 'times(Int): Int' type=kotlin.Int origin=null $this: GET_VAR 'tmp0_result: Int' type=kotlin.Int origin=null - other: CONST Int type=kotlin.Int value='31' + other: CONST Int type=kotlin.Int value=31 other: CALL 'hashCode(): Int' type=kotlin.Int origin=null $this: CALL '(): Any' type=kotlin.Any origin=GET_PROPERTY $this: GET_VAR 'this@Test1: Test1' type=Test1 origin=null - RETURN type=kotlin.Nothing from='hashCode(): Int' + RETURN type=kotlin.Nothing from=hashCode(): Int' GET_VAR 'tmp0_result: Int' type=kotlin.Int origin=null - FUN GENERATED_DATA_CLASS_MEMBER public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Test1: Test1 - VALUE_PARAMETER value-parameter other: kotlin.Any? + FUN GENERATED_DATA_CLASS_MEMBER name:equals visibility:public modality:OPEN <> ($this:Test1, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:Test1 flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: BLOCK_BODY WHEN type=kotlin.Unit origin=null BRANCH if: CALL 'EQEQEQ(Any?, Any?): Boolean' type=kotlin.Boolean origin=EQEQEQ arg0: GET_VAR 'this@Test1: Test1' type=Test1 origin=null arg1: GET_VAR 'value-parameter other: Any?' type=kotlin.Any? origin=null - then: RETURN type=kotlin.Nothing from='equals(Any?): Boolean' - CONST Boolean type=kotlin.Boolean value='true' + then: RETURN type=kotlin.Nothing from=equals(Any?): Boolean' + CONST Boolean type=kotlin.Boolean value=true WHEN type=kotlin.Unit origin=null BRANCH if: TYPE_OP type=kotlin.Boolean origin=NOT_INSTANCEOF typeOperand=Test1 GET_VAR 'value-parameter other: Any?' type=kotlin.Any? origin=null - then: RETURN type=kotlin.Nothing from='equals(Any?): Boolean' - CONST Boolean type=kotlin.Boolean value='false' - VAR IR_TEMPORARY_VARIABLE val tmp0_other_with_cast: Test1 + then: RETURN type=kotlin.Nothing from=equals(Any?): Boolean' + CONST Boolean type=kotlin.Boolean value=false + VAR IR_TEMPORARY_VARIABLE name:tmp0_other_with_cast type:Test1 flags:val TYPE_OP type=Test1 origin=CAST typeOperand=Test1 GET_VAR 'value-parameter other: Any?' type=kotlin.Any? origin=null WHEN type=kotlin.Unit origin=null @@ -149,8 +149,8 @@ FILE /dataClasses.kt $this: GET_VAR 'this@Test1: Test1' type=Test1 origin=null arg1: CALL '(): Int' type=kotlin.Int origin=GET_PROPERTY $this: GET_VAR 'tmp0_other_with_cast: Test1' type=Test1 origin=null - then: RETURN type=kotlin.Nothing from='equals(Any?): Boolean' - CONST Boolean type=kotlin.Boolean value='false' + then: RETURN type=kotlin.Nothing from=equals(Any?): Boolean' + CONST Boolean type=kotlin.Boolean value=false WHEN type=kotlin.Unit origin=null BRANCH if: CALL 'NOT(Boolean): Boolean' type=kotlin.Boolean origin=EXCLEQ @@ -159,8 +159,8 @@ FILE /dataClasses.kt $this: GET_VAR 'this@Test1: Test1' type=Test1 origin=null arg1: CALL '(): String' type=kotlin.String origin=GET_PROPERTY $this: GET_VAR 'tmp0_other_with_cast: Test1' type=Test1 origin=null - then: RETURN type=kotlin.Nothing from='equals(Any?): Boolean' - CONST Boolean type=kotlin.Boolean value='false' + then: RETURN type=kotlin.Nothing from=equals(Any?): Boolean' + CONST Boolean type=kotlin.Boolean value=false WHEN type=kotlin.Unit origin=null BRANCH if: CALL 'NOT(Boolean): Boolean' type=kotlin.Boolean origin=EXCLEQ @@ -169,93 +169,93 @@ FILE /dataClasses.kt $this: GET_VAR 'this@Test1: Test1' type=Test1 origin=null arg1: CALL '(): Any' type=kotlin.Any origin=GET_PROPERTY $this: GET_VAR 'tmp0_other_with_cast: Test1' type=Test1 origin=null - then: RETURN type=kotlin.Nothing from='equals(Any?): Boolean' - CONST Boolean type=kotlin.Boolean value='false' - RETURN type=kotlin.Nothing from='equals(Any?): Boolean' - CONST Boolean type=kotlin.Boolean value='true' - CLASS CLASS Test2 - $this: VALUE_PARAMETER this@Test2: Test2 - CONSTRUCTOR public constructor Test2(x: kotlin.Any?) - VALUE_PARAMETER value-parameter x: kotlin.Any? + then: RETURN type=kotlin.Nothing from=equals(Any?): Boolean' + CONST Boolean type=kotlin.Boolean value=false + RETURN type=kotlin.Nothing from=equals(Any?): Boolean' + CONST Boolean type=kotlin.Boolean value=true + CLASS CLASS name:Test2 modality:FINAL visibility:public flags:data + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Test2 flags: + CONSTRUCTOR visibility:public <> (x:kotlin.Any?) returnType:Test2 flags: + VALUE_PARAMETER name:x index:0 type:kotlin.Any? flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='Test2' - PROPERTY public final val x: kotlin.Any? - FIELD PROPERTY_BACKING_FIELD public final val x: kotlin.Any? + PROPERTY name:x type:kotlin.Any? visibility:public modality:FINAL flags:val + FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.Any? visibility:public EXPRESSION_BODY GET_VAR 'value-parameter x: Any?' type=kotlin.Any? origin=INITIALIZE_PROPERTY_FROM_PARAMETER - FUN DEFAULT_PROPERTY_ACCESSOR public final fun (): kotlin.Any? - $this: VALUE_PARAMETER this@Test2: Test2 + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:Test2) returnType:Any? flags: + $this: VALUE_PARAMETER name: type:Test2 flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): Any?' + RETURN type=kotlin.Nothing from=(): Any?' GET_FIELD 'x: Any?' type=kotlin.Any? origin=null receiver: GET_VAR 'this@Test2: Test2' type=Test2 origin=null - FUN GENERATED_DATA_CLASS_MEMBER public final operator fun component1(): kotlin.Any? - $this: VALUE_PARAMETER this@Test2: Test2 + FUN GENERATED_DATA_CLASS_MEMBER name:component1 visibility:public modality:FINAL <> ($this:Test2) returnType:Any? flags: + $this: VALUE_PARAMETER name: type:Test2 flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='component1(): Any?' + RETURN type=kotlin.Nothing from=component1(): Any?' CALL '(): Any?' type=kotlin.Any? origin=GET_PROPERTY $this: GET_VAR 'this@Test2: Test2' type=Test2 origin=null - FUN GENERATED_DATA_CLASS_MEMBER public final fun copy(x: kotlin.Any? = ...): Test2 - $this: VALUE_PARAMETER this@Test2: Test2 - VALUE_PARAMETER value-parameter x: kotlin.Any? = ... + FUN GENERATED_DATA_CLASS_MEMBER name:copy visibility:public modality:FINAL <> ($this:Test2, x:kotlin.Any?) returnType:Test2 flags: + $this: VALUE_PARAMETER name: type:Test2 flags: + VALUE_PARAMETER name:x index:0 type:kotlin.Any? flags: EXPRESSION_BODY CALL '(): Any?' type=kotlin.Any? origin=GET_PROPERTY $this: GET_VAR 'this@Test2: Test2' type=Test2 origin=null BLOCK_BODY - RETURN type=kotlin.Nothing from='copy(Any? = ...): Test2' + RETURN type=kotlin.Nothing from=copy(Any? = ...): Test2' CALL 'constructor Test2(Any?)' type=Test2 origin=null x: GET_VAR 'value-parameter x: Any? = ...' type=kotlin.Any? origin=null - FUN GENERATED_DATA_CLASS_MEMBER public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Test2: Test2 + FUN GENERATED_DATA_CLASS_MEMBER name:toString visibility:public modality:OPEN <> ($this:Test2) returnType:String flags: + $this: VALUE_PARAMETER name: type:Test2 flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='toString(): String' + RETURN type=kotlin.Nothing from=toString(): String' STRING_CONCATENATION type=kotlin.String - CONST String type=kotlin.String value='Test2(' - CONST String type=kotlin.String value='x=' + CONST String type=kotlin.String value=Test2( + CONST String type=kotlin.String value=x= CALL '(): Any?' type=kotlin.Any? origin=GET_PROPERTY $this: GET_VAR 'this@Test2: Test2' type=Test2 origin=null - CONST String type=kotlin.String value=')' - FUN GENERATED_DATA_CLASS_MEMBER public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Test2: Test2 + CONST String type=kotlin.String value=) + FUN GENERATED_DATA_CLASS_MEMBER name:hashCode visibility:public modality:OPEN <> ($this:Test2) returnType:Int flags: + $this: VALUE_PARAMETER name: type:Test2 flags: BLOCK_BODY - VAR IR_TEMPORARY_VARIABLE var tmp0_result: kotlin.Int - CONST Int type=kotlin.Int value='0' + VAR IR_TEMPORARY_VARIABLE name:tmp0_result type:kotlin.Int flags:var + CONST Int type=kotlin.Int value=0 SET_VAR 'tmp0_result: Int' type=kotlin.Unit origin=EQ BLOCK type=kotlin.Int origin=null - VAR IR_TEMPORARY_VARIABLE val tmp1: kotlin.Any? + VAR IR_TEMPORARY_VARIABLE name:tmp1 type:kotlin.Any? flags:val CALL '(): Any?' type=kotlin.Any? origin=GET_PROPERTY $this: GET_VAR 'this@Test2: Test2' type=Test2 origin=null WHEN type=kotlin.Int origin=null BRANCH if: CALL 'EQEQ(Any?, Any?): Boolean' type=kotlin.Boolean origin=EQEQ arg0: GET_VAR 'tmp1: Any?' type=kotlin.Any? origin=null - arg1: CONST Null type=kotlin.Nothing? value='null' - then: CONST Int type=kotlin.Int value='0' + arg1: CONST Null type=kotlin.Nothing? value=null + then: CONST Int type=kotlin.Int value=0 BRANCH - if: CONST Boolean type=kotlin.Boolean value='true' + if: CONST Boolean type=kotlin.Boolean value=true then: CALL 'hashCode(): Int' type=kotlin.Int origin=null $this: GET_VAR 'tmp1: Any?' type=kotlin.Any? origin=null - RETURN type=kotlin.Nothing from='hashCode(): Int' + RETURN type=kotlin.Nothing from=hashCode(): Int' GET_VAR 'tmp0_result: Int' type=kotlin.Int origin=null - FUN GENERATED_DATA_CLASS_MEMBER public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Test2: Test2 - VALUE_PARAMETER value-parameter other: kotlin.Any? + FUN GENERATED_DATA_CLASS_MEMBER name:equals visibility:public modality:OPEN <> ($this:Test2, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:Test2 flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: BLOCK_BODY WHEN type=kotlin.Unit origin=null BRANCH if: CALL 'EQEQEQ(Any?, Any?): Boolean' type=kotlin.Boolean origin=EQEQEQ arg0: GET_VAR 'this@Test2: Test2' type=Test2 origin=null arg1: GET_VAR 'value-parameter other: Any?' type=kotlin.Any? origin=null - then: RETURN type=kotlin.Nothing from='equals(Any?): Boolean' - CONST Boolean type=kotlin.Boolean value='true' + then: RETURN type=kotlin.Nothing from=equals(Any?): Boolean' + CONST Boolean type=kotlin.Boolean value=true WHEN type=kotlin.Unit origin=null BRANCH if: TYPE_OP type=kotlin.Boolean origin=NOT_INSTANCEOF typeOperand=Test2 GET_VAR 'value-parameter other: Any?' type=kotlin.Any? origin=null - then: RETURN type=kotlin.Nothing from='equals(Any?): Boolean' - CONST Boolean type=kotlin.Boolean value='false' - VAR IR_TEMPORARY_VARIABLE val tmp0_other_with_cast: Test2 + then: RETURN type=kotlin.Nothing from=equals(Any?): Boolean' + CONST Boolean type=kotlin.Boolean value=false + VAR IR_TEMPORARY_VARIABLE name:tmp0_other_with_cast type:Test2 flags:val TYPE_OP type=Test2 origin=CAST typeOperand=Test2 GET_VAR 'value-parameter other: Any?' type=kotlin.Any? origin=null WHEN type=kotlin.Unit origin=null @@ -266,8 +266,8 @@ FILE /dataClasses.kt $this: GET_VAR 'this@Test2: Test2' type=Test2 origin=null arg1: CALL '(): Any?' type=kotlin.Any? origin=GET_PROPERTY $this: GET_VAR 'tmp0_other_with_cast: Test2' type=Test2 origin=null - then: RETURN type=kotlin.Nothing from='equals(Any?): Boolean' - CONST Boolean type=kotlin.Boolean value='false' - RETURN type=kotlin.Nothing from='equals(Any?): Boolean' - CONST Boolean type=kotlin.Boolean value='true' + then: RETURN type=kotlin.Nothing from=equals(Any?): Boolean' + CONST Boolean type=kotlin.Boolean value=false + RETURN type=kotlin.Nothing from=equals(Any?): Boolean' + CONST Boolean type=kotlin.Boolean value=true diff --git a/compiler/testData/ir/irText/classes/dataClassesGeneric.txt b/compiler/testData/ir/irText/classes/dataClassesGeneric.txt index b10be6d2246..286c9fd5824 100644 --- a/compiler/testData/ir/irText/classes/dataClassesGeneric.txt +++ b/compiler/testData/ir/irText/classes/dataClassesGeneric.txt @@ -1,90 +1,90 @@ -FILE /dataClassesGeneric.kt - CLASS CLASS Test1 - $this: VALUE_PARAMETER this@Test1: Test1 - TYPE_PARAMETER - CONSTRUCTOR public constructor Test1(x: T) - VALUE_PARAMETER value-parameter x: T +FILE fqName: fileName:/dataClassesGeneric.kt + CLASS CLASS name:Test1 modality:FINAL visibility:public flags:data + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Test1 flags: + TYPE_PARAMETER name:T index:0 variance: upperBounds:[kotlin.Any?] + CONSTRUCTOR visibility:public <> (x:T) returnType:Test1 flags: + VALUE_PARAMETER name:x index:0 type:T flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='Test1' - PROPERTY public final val x: T - FIELD PROPERTY_BACKING_FIELD public final val x: T + PROPERTY name:x type:T visibility:public modality:FINAL flags:val + FIELD PROPERTY_BACKING_FIELD name:x type:T visibility:public EXPRESSION_BODY GET_VAR 'value-parameter x: T' type=T origin=INITIALIZE_PROPERTY_FROM_PARAMETER - FUN DEFAULT_PROPERTY_ACCESSOR public final fun (): T - $this: VALUE_PARAMETER this@Test1: Test1 + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:Test1) returnType:T flags: + $this: VALUE_PARAMETER name: type:Test1 flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): T' + RETURN type=kotlin.Nothing from=(): T' GET_FIELD 'x: T' type=T origin=null receiver: GET_VAR 'this@Test1: Test1' type=Test1 origin=null - FUN GENERATED_DATA_CLASS_MEMBER public final operator fun component1(): T - $this: VALUE_PARAMETER this@Test1: Test1 + FUN GENERATED_DATA_CLASS_MEMBER name:component1 visibility:public modality:FINAL <> ($this:Test1) returnType:T flags: + $this: VALUE_PARAMETER name: type:Test1 flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='component1(): T' + RETURN type=kotlin.Nothing from=component1(): T' CALL '(): T' type=T origin=GET_PROPERTY $this: GET_VAR 'this@Test1: Test1' type=Test1 origin=null - FUN GENERATED_DATA_CLASS_MEMBER public final fun copy(x: T = ...): Test1 - $this: VALUE_PARAMETER this@Test1: Test1 - VALUE_PARAMETER value-parameter x: T = ... + FUN GENERATED_DATA_CLASS_MEMBER name:copy visibility:public modality:FINAL <> ($this:Test1, x:T) returnType:Test1 flags: + $this: VALUE_PARAMETER name: type:Test1 flags: + VALUE_PARAMETER name:x index:0 type:T flags: EXPRESSION_BODY CALL '(): T' type=T origin=GET_PROPERTY $this: GET_VAR 'this@Test1: Test1' type=Test1 origin=null BLOCK_BODY - RETURN type=kotlin.Nothing from='copy(T = ...): Test1' + RETURN type=kotlin.Nothing from=copy(T = ...): Test1' CALL 'constructor Test1(T)' type=Test1 origin=null : null x: GET_VAR 'value-parameter x: T = ...' type=T origin=null - FUN GENERATED_DATA_CLASS_MEMBER public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Test1: Test1 + FUN GENERATED_DATA_CLASS_MEMBER name:toString visibility:public modality:OPEN <> ($this:Test1) returnType:String flags: + $this: VALUE_PARAMETER name: type:Test1 flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='toString(): String' + 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=' + CONST String type=kotlin.String value=Test1( + CONST String type=kotlin.String value=x= CALL '(): T' type=T origin=GET_PROPERTY $this: GET_VAR 'this@Test1: Test1' type=Test1 origin=null - CONST String type=kotlin.String value=')' - FUN GENERATED_DATA_CLASS_MEMBER public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Test1: Test1 + CONST String type=kotlin.String value=) + FUN GENERATED_DATA_CLASS_MEMBER name:hashCode visibility:public modality:OPEN <> ($this:Test1) returnType:Int flags: + $this: VALUE_PARAMETER name: type:Test1 flags: BLOCK_BODY - VAR IR_TEMPORARY_VARIABLE var tmp0_result: kotlin.Int - CONST Int type=kotlin.Int value='0' + VAR IR_TEMPORARY_VARIABLE name:tmp0_result type:kotlin.Int flags:var + CONST Int type=kotlin.Int value=0 SET_VAR 'tmp0_result: Int' type=kotlin.Unit origin=EQ BLOCK type=kotlin.Int origin=null - VAR IR_TEMPORARY_VARIABLE val tmp1: T + VAR IR_TEMPORARY_VARIABLE name:tmp1 type:T flags:val CALL '(): T' type=T origin=GET_PROPERTY $this: GET_VAR 'this@Test1: Test1' type=Test1 origin=null WHEN type=kotlin.Int origin=null BRANCH if: CALL 'EQEQ(Any?, Any?): Boolean' type=kotlin.Boolean origin=EQEQ arg0: GET_VAR 'tmp1: T' type=T origin=null - arg1: CONST Null type=kotlin.Nothing? value='null' - then: CONST Int type=kotlin.Int value='0' + arg1: CONST Null type=kotlin.Nothing? value=null + then: CONST Int type=kotlin.Int value=0 BRANCH - if: CONST Boolean type=kotlin.Boolean value='true' + if: CONST Boolean type=kotlin.Boolean value=true then: CALL 'hashCode(): Int' type=kotlin.Int origin=null $this: TYPE_OP type=kotlin.Any origin=IMPLICIT_CAST typeOperand=kotlin.Any GET_VAR 'tmp1: T' type=T origin=null - RETURN type=kotlin.Nothing from='hashCode(): Int' + RETURN type=kotlin.Nothing from=hashCode(): Int' GET_VAR 'tmp0_result: Int' type=kotlin.Int origin=null - FUN GENERATED_DATA_CLASS_MEMBER public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Test1: Test1 - VALUE_PARAMETER value-parameter other: kotlin.Any? + FUN GENERATED_DATA_CLASS_MEMBER name:equals visibility:public modality:OPEN <> ($this:Test1, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:Test1 flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: BLOCK_BODY WHEN type=kotlin.Unit origin=null BRANCH if: CALL 'EQEQEQ(Any?, Any?): Boolean' type=kotlin.Boolean origin=EQEQEQ arg0: GET_VAR 'this@Test1: Test1' type=Test1 origin=null arg1: GET_VAR 'value-parameter other: Any?' type=kotlin.Any? origin=null - then: RETURN type=kotlin.Nothing from='equals(Any?): Boolean' - CONST Boolean type=kotlin.Boolean value='true' + then: RETURN type=kotlin.Nothing from=equals(Any?): Boolean' + CONST Boolean type=kotlin.Boolean value=true WHEN type=kotlin.Unit origin=null BRANCH if: TYPE_OP type=kotlin.Boolean origin=NOT_INSTANCEOF typeOperand=Test1 GET_VAR 'value-parameter other: Any?' type=kotlin.Any? origin=null - then: RETURN type=kotlin.Nothing from='equals(Any?): Boolean' - CONST Boolean type=kotlin.Boolean value='false' - VAR IR_TEMPORARY_VARIABLE val tmp0_other_with_cast: Test1 + then: RETURN type=kotlin.Nothing from=equals(Any?): Boolean' + CONST Boolean type=kotlin.Boolean value=false + VAR IR_TEMPORARY_VARIABLE name:tmp0_other_with_cast type:Test1 flags:val TYPE_OP type=Test1 origin=CAST typeOperand=Test1 GET_VAR 'value-parameter other: Any?' type=kotlin.Any? origin=null WHEN type=kotlin.Unit origin=null @@ -95,8 +95,8 @@ FILE /dataClassesGeneric.kt $this: GET_VAR 'this@Test1: Test1' type=Test1 origin=null arg1: CALL '(): T' type=T origin=GET_PROPERTY $this: GET_VAR 'tmp0_other_with_cast: Test1' type=Test1 origin=null - then: RETURN type=kotlin.Nothing from='equals(Any?): Boolean' - CONST Boolean type=kotlin.Boolean value='false' - RETURN type=kotlin.Nothing from='equals(Any?): Boolean' - CONST Boolean type=kotlin.Boolean value='true' + then: RETURN type=kotlin.Nothing from=equals(Any?): Boolean' + CONST Boolean type=kotlin.Boolean value=false + RETURN type=kotlin.Nothing from=equals(Any?): Boolean' + CONST Boolean type=kotlin.Boolean value=true diff --git a/compiler/testData/ir/irText/classes/delegatedImplementation.txt b/compiler/testData/ir/irText/classes/delegatedImplementation.txt index 831ca3e6384..29397c830ee 100644 --- a/compiler/testData/ir/irText/classes/delegatedImplementation.txt +++ b/compiler/testData/ir/irText/classes/delegatedImplementation.txt @@ -1,284 +1,284 @@ -FILE /delegatedImplementation.kt - CLASS INTERFACE IBase - $this: VALUE_PARAMETER this@IBase: IBase - FUN public abstract fun foo(x: kotlin.Int, s: kotlin.String): kotlin.Unit - $this: VALUE_PARAMETER this@IBase: IBase - VALUE_PARAMETER value-parameter x: kotlin.Int - VALUE_PARAMETER value-parameter s: kotlin.String - FUN public abstract fun bar(): kotlin.Int - $this: VALUE_PARAMETER this@IBase: IBase - FUN public abstract fun kotlin.String.qux(): kotlin.Unit - $this: VALUE_PARAMETER this@IBase: IBase - $receiver: VALUE_PARAMETER this@qux: String - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any - CLASS OBJECT BaseImpl - $this: VALUE_PARAMETER this@BaseImpl: BaseImpl - CONSTRUCTOR private constructor BaseImpl() +FILE fqName: fileName:/delegatedImplementation.kt + CLASS INTERFACE name:IBase modality:ABSTRACT visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:IBase flags: + FUN name:foo visibility:public modality:ABSTRACT <> ($this:IBase, x:kotlin.Int, s:kotlin.String) returnType:Unit flags: + $this: VALUE_PARAMETER name: type:IBase flags: + VALUE_PARAMETER name:x index:0 type:kotlin.Int flags: + VALUE_PARAMETER name:s index:1 type:kotlin.String flags: + FUN name:bar visibility:public modality:ABSTRACT <> ($this:IBase) returnType:Int flags: + $this: VALUE_PARAMETER name: type:IBase flags: + FUN name:qux visibility:public modality:ABSTRACT <> ($this:IBase, $receiver:kotlin.String) returnType:Unit flags: + $this: VALUE_PARAMETER name: type:IBase flags: + $receiver: VALUE_PARAMETER name: type:kotlin.String flags: + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + CLASS OBJECT name:BaseImpl modality:FINAL visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:BaseImpl flags: + CONSTRUCTOR visibility:private <> () returnType:BaseImpl flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='BaseImpl' - FUN public open override fun foo(x: kotlin.Int, s: kotlin.String): kotlin.Unit - $this: VALUE_PARAMETER this@BaseImpl: BaseImpl - VALUE_PARAMETER value-parameter x: kotlin.Int - VALUE_PARAMETER value-parameter s: kotlin.String + FUN name:foo visibility:public modality:OPEN <> ($this:BaseImpl, x:kotlin.Int, s:kotlin.String) returnType:Unit flags: + $this: VALUE_PARAMETER name: type:BaseImpl flags: + VALUE_PARAMETER name:x index:0 type:kotlin.Int flags: + VALUE_PARAMETER name:s index:1 type:kotlin.String flags: BLOCK_BODY - FUN public open override fun bar(): kotlin.Int - $this: VALUE_PARAMETER this@BaseImpl: BaseImpl + FUN name:bar visibility:public modality:OPEN <> ($this:BaseImpl) returnType:Int flags: + $this: VALUE_PARAMETER name: type:BaseImpl flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='bar(): Int' - CONST Int type=kotlin.Int value='42' - FUN public open override fun kotlin.String.qux(): kotlin.Unit - $this: VALUE_PARAMETER this@BaseImpl: BaseImpl - $receiver: VALUE_PARAMETER this@qux: String + RETURN type=kotlin.Nothing from=bar(): Int' + CONST Int type=kotlin.Int value=42 + FUN name:qux visibility:public modality:OPEN <> ($this:BaseImpl, $receiver:kotlin.String) returnType:Unit flags: + $this: VALUE_PARAMETER name: type:BaseImpl flags: + $receiver: VALUE_PARAMETER name: type:kotlin.String flags: BLOCK_BODY - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any - CLASS INTERFACE IOther - $this: VALUE_PARAMETER this@IOther: IOther - PROPERTY public abstract val x: kotlin.String - FUN DEFAULT_PROPERTY_ACCESSOR public abstract fun (): kotlin.String - $this: VALUE_PARAMETER this@IOther: IOther - PROPERTY public abstract var y: kotlin.Int - FUN DEFAULT_PROPERTY_ACCESSOR public abstract fun (): kotlin.Int - $this: VALUE_PARAMETER this@IOther: IOther - FUN DEFAULT_PROPERTY_ACCESSOR public abstract fun (: kotlin.Int): kotlin.Unit - $this: VALUE_PARAMETER this@IOther: IOther - VALUE_PARAMETER value-parameter : kotlin.Int - PROPERTY public abstract val kotlin.Byte.z1: kotlin.Int - FUN DEFAULT_PROPERTY_ACCESSOR public abstract fun kotlin.Byte.(): kotlin.Int - $this: VALUE_PARAMETER this@IOther: IOther - $receiver: VALUE_PARAMETER this@z1: Byte - PROPERTY public abstract var kotlin.Byte.z2: kotlin.Int - FUN DEFAULT_PROPERTY_ACCESSOR public abstract fun kotlin.Byte.(): kotlin.Int - $this: VALUE_PARAMETER this@IOther: IOther - $receiver: VALUE_PARAMETER this@z2: Byte - FUN DEFAULT_PROPERTY_ACCESSOR public abstract fun kotlin.Byte.(: kotlin.Int): kotlin.Unit - $this: VALUE_PARAMETER this@IOther: IOther - $receiver: VALUE_PARAMETER this@z2: Byte - VALUE_PARAMETER value-parameter : kotlin.Int - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any - FUN public fun otherImpl(x0: kotlin.String, y0: kotlin.Int): IOther - VALUE_PARAMETER value-parameter x0: kotlin.String - VALUE_PARAMETER value-parameter y0: kotlin.Int + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + CLASS INTERFACE name:IOther modality:ABSTRACT visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:IOther flags: + PROPERTY name:x type:kotlin.String visibility:public modality:ABSTRACT flags:val + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:ABSTRACT <> ($this:IOther) returnType:String flags: + $this: VALUE_PARAMETER name: type:IOther flags: + PROPERTY name:y type:kotlin.Int visibility:public modality:ABSTRACT flags:var + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:ABSTRACT <> ($this:IOther) returnType:Int flags: + $this: VALUE_PARAMETER name: type:IOther flags: + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:ABSTRACT <> ($this:IOther, :kotlin.Int) returnType:Unit flags: + $this: VALUE_PARAMETER name: type:IOther flags: + VALUE_PARAMETER name: index:0 type:kotlin.Int flags: + PROPERTY name:z1 type:kotlin.Int visibility:public modality:ABSTRACT flags:val + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:ABSTRACT <> ($this:IOther, $receiver:kotlin.Byte) returnType:Int flags: + $this: VALUE_PARAMETER name: type:IOther flags: + $receiver: VALUE_PARAMETER name: type:kotlin.Byte flags: + PROPERTY name:z2 type:kotlin.Int visibility:public modality:ABSTRACT flags:var + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:ABSTRACT <> ($this:IOther, $receiver:kotlin.Byte) returnType:Int flags: + $this: VALUE_PARAMETER name: type:IOther flags: + $receiver: VALUE_PARAMETER name: type:kotlin.Byte flags: + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:ABSTRACT <> ($this:IOther, $receiver:kotlin.Byte, :kotlin.Int) returnType:Unit flags: + $this: VALUE_PARAMETER name: type:IOther flags: + $receiver: VALUE_PARAMETER name: type:kotlin.Byte flags: + VALUE_PARAMETER name: index:0 type:kotlin.Int flags: + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN name:otherImpl visibility:public modality:FINAL <> (x0:kotlin.String, y0:kotlin.Int) returnType:IOther flags: + VALUE_PARAMETER name:x0 index:0 type:kotlin.String flags: + VALUE_PARAMETER name:y0 index:1 type:kotlin.Int flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='otherImpl(String, Int): IOther' + RETURN type=kotlin.Nothing from=otherImpl(String, Int): IOther' BLOCK type=otherImpl. origin=OBJECT_LITERAL - CLASS CLASS - $this: VALUE_PARAMETER this@: - CONSTRUCTOR public constructor () + CLASS CLASS name: modality:FINAL visibility:local flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:otherImpl. flags: + CONSTRUCTOR visibility:public <> () returnType:otherImpl. flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='' - PROPERTY public open override val x: kotlin.String - FIELD PROPERTY_BACKING_FIELD public open override val x: kotlin.String + PROPERTY name:x type:kotlin.String visibility:public modality:OPEN flags:val + FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.String visibility:public EXPRESSION_BODY GET_VAR 'value-parameter x0: String' type=kotlin.String origin=null - FUN DEFAULT_PROPERTY_ACCESSOR public open override fun (): kotlin.String - $this: VALUE_PARAMETER this@: + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:OPEN <> ($this:otherImpl.) returnType:String flags: + $this: VALUE_PARAMETER name: type:otherImpl. flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): String' + RETURN type=kotlin.Nothing from=(): String' GET_FIELD 'x: String' type=kotlin.String origin=null receiver: GET_VAR 'this@: ' type=otherImpl. origin=null - PROPERTY public open override var y: kotlin.Int - FIELD PROPERTY_BACKING_FIELD public open override var y: kotlin.Int + PROPERTY name:y type:kotlin.Int visibility:public modality:OPEN flags:var + FIELD PROPERTY_BACKING_FIELD name:y type:kotlin.Int visibility:public EXPRESSION_BODY GET_VAR 'value-parameter y0: Int' type=kotlin.Int origin=null - FUN DEFAULT_PROPERTY_ACCESSOR public open override fun (): kotlin.Int - $this: VALUE_PARAMETER this@: + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:OPEN <> ($this:otherImpl.) returnType:Int flags: + $this: VALUE_PARAMETER name: type:otherImpl. flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): Int' + RETURN type=kotlin.Nothing from=(): Int' GET_FIELD 'y: Int' type=kotlin.Int origin=null receiver: GET_VAR 'this@: ' type=otherImpl. origin=null - FUN DEFAULT_PROPERTY_ACCESSOR public open override fun (: kotlin.Int): kotlin.Unit - $this: VALUE_PARAMETER this@: - VALUE_PARAMETER value-parameter : kotlin.Int + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:OPEN <> ($this:otherImpl., :kotlin.Int) returnType:Unit flags: + $this: VALUE_PARAMETER name: type:otherImpl. flags: + VALUE_PARAMETER name: index:0 type:kotlin.Int flags: BLOCK_BODY SET_FIELD 'y: Int' type=kotlin.Unit origin=null receiver: GET_VAR 'this@: ' type=otherImpl. origin=null value: GET_VAR 'value-parameter : Int' type=kotlin.Int origin=null - PROPERTY public open override val kotlin.Byte.z1: kotlin.Int - FUN public open override fun kotlin.Byte.(): kotlin.Int - $this: VALUE_PARAMETER this@: - $receiver: VALUE_PARAMETER this@z1: Byte + PROPERTY name:z1 type:kotlin.Int visibility:public modality:OPEN flags:val + FUN name: visibility:public modality:OPEN <> ($this:otherImpl., $receiver:kotlin.Byte) returnType:Int flags: + $this: VALUE_PARAMETER name: type:otherImpl. flags: + $receiver: VALUE_PARAMETER name: type:kotlin.Byte flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='() on Byte: Int' - CONST Int type=kotlin.Int value='1' - PROPERTY public open override var kotlin.Byte.z2: kotlin.Int - FUN public open override fun kotlin.Byte.(): kotlin.Int - $this: VALUE_PARAMETER this@: - $receiver: VALUE_PARAMETER this@z2: Byte + RETURN type=kotlin.Nothing from=() on Byte: Int' + CONST Int type=kotlin.Int value=1 + PROPERTY name:z2 type:kotlin.Int visibility:public modality:OPEN flags:var + FUN name: visibility:public modality:OPEN <> ($this:otherImpl., $receiver:kotlin.Byte) returnType:Int flags: + $this: VALUE_PARAMETER name: type:otherImpl. flags: + $receiver: VALUE_PARAMETER name: type:kotlin.Byte flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='() on Byte: Int' - CONST Int type=kotlin.Int value='2' - FUN public open override fun kotlin.Byte.(value: kotlin.Int): kotlin.Unit - $this: VALUE_PARAMETER this@: - $receiver: VALUE_PARAMETER this@z2: Byte - VALUE_PARAMETER value-parameter value: kotlin.Int + RETURN type=kotlin.Nothing from=() on Byte: Int' + CONST Int type=kotlin.Int value=2 + FUN name: visibility:public modality:OPEN <> ($this:otherImpl., $receiver:kotlin.Byte, value:kotlin.Int) returnType:Unit flags: + $this: VALUE_PARAMETER name: type:otherImpl. flags: + $receiver: VALUE_PARAMETER name: type:kotlin.Byte flags: + VALUE_PARAMETER name:value index:0 type:kotlin.Int flags: BLOCK_BODY - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: CALL 'constructor ()' type=otherImpl. origin=OBJECT_LITERAL - CLASS CLASS Test1 - $this: VALUE_PARAMETER this@Test1: Test1 - CONSTRUCTOR public constructor Test1() + CLASS CLASS name:Test1 modality:FINAL visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Test1 flags: + CONSTRUCTOR visibility:public <> () returnType:Test1 flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='Test1' - FIELD DELEGATE val `Test1$IBase$delegate`: BaseImpl + FIELD DELEGATE name:Test1$IBase$delegate type:BaseImpl visibility:private EXPRESSION_BODY GET_OBJECT 'BaseImpl' type=BaseImpl - FUN DELEGATED_MEMBER public open override fun bar(): kotlin.Int - $this: VALUE_PARAMETER this@Test1: Test1 + FUN DELEGATED_MEMBER name:bar visibility:public modality:OPEN <> ($this:Test1) returnType:Int flags: + $this: VALUE_PARAMETER name: type:Test1 flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='bar(): Int' + RETURN type=kotlin.Nothing from=bar(): Int' CALL 'bar(): Int' type=kotlin.Int origin=null $this: GET_FIELD '`Test1$IBase$delegate`: BaseImpl' type=BaseImpl origin=null receiver: GET_VAR 'this@Test1: Test1' type=Test1 origin=null - FUN DELEGATED_MEMBER public open override fun foo(x: kotlin.Int, s: kotlin.String): kotlin.Unit - $this: VALUE_PARAMETER this@Test1: Test1 - VALUE_PARAMETER value-parameter x: kotlin.Int - VALUE_PARAMETER value-parameter s: kotlin.String + FUN DELEGATED_MEMBER name:foo visibility:public modality:OPEN <> ($this:Test1, x:kotlin.Int, s:kotlin.String) returnType:Unit flags: + $this: VALUE_PARAMETER name: type:Test1 flags: + VALUE_PARAMETER name:x index:0 type:kotlin.Int flags: + VALUE_PARAMETER name:s index:1 type:kotlin.String flags: BLOCK_BODY CALL 'foo(Int, String): Unit' type=kotlin.Unit origin=null $this: GET_FIELD '`Test1$IBase$delegate`: BaseImpl' type=BaseImpl origin=null receiver: GET_VAR 'this@Test1: Test1' type=Test1 origin=null x: GET_VAR 'value-parameter x: Int' type=kotlin.Int origin=null s: GET_VAR 'value-parameter s: String' type=kotlin.String origin=null - FUN DELEGATED_MEMBER public open override fun kotlin.String.qux(): kotlin.Unit - $this: VALUE_PARAMETER this@Test1: Test1 - $receiver: VALUE_PARAMETER this@qux: String + FUN DELEGATED_MEMBER name:qux visibility:public modality:OPEN <> ($this:Test1, $receiver:kotlin.String) returnType:Unit flags: + $this: VALUE_PARAMETER name: type:Test1 flags: + $receiver: VALUE_PARAMETER name: type:kotlin.String flags: BLOCK_BODY CALL 'qux() on String: Unit' type=kotlin.Unit origin=null $this: GET_FIELD '`Test1$IBase$delegate`: BaseImpl' type=BaseImpl origin=null receiver: GET_VAR 'this@Test1: Test1' type=Test1 origin=null $receiver: GET_VAR 'this@qux: String' type=kotlin.String origin=null - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any - CLASS CLASS Test2 - $this: VALUE_PARAMETER this@Test2: Test2 - CONSTRUCTOR public constructor Test2() + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + CLASS CLASS name:Test2 modality:FINAL visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Test2 flags: + CONSTRUCTOR visibility:public <> () returnType:Test2 flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='Test2' - FIELD DELEGATE val `Test2$IBase$delegate`: BaseImpl + FIELD DELEGATE name:Test2$IBase$delegate type:BaseImpl visibility:private EXPRESSION_BODY GET_OBJECT 'BaseImpl' type=BaseImpl - FUN DELEGATED_MEMBER public open override fun bar(): kotlin.Int - $this: VALUE_PARAMETER this@Test2: Test2 + FUN DELEGATED_MEMBER name:bar visibility:public modality:OPEN <> ($this:Test2) returnType:Int flags: + $this: VALUE_PARAMETER name: type:Test2 flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='bar(): Int' + RETURN type=kotlin.Nothing from=bar(): Int' CALL 'bar(): Int' type=kotlin.Int origin=null $this: GET_FIELD '`Test2$IBase$delegate`: BaseImpl' type=BaseImpl origin=null receiver: GET_VAR 'this@Test2: Test2' type=Test2 origin=null - FUN DELEGATED_MEMBER public open override fun foo(x: kotlin.Int, s: kotlin.String): kotlin.Unit - $this: VALUE_PARAMETER this@Test2: Test2 - VALUE_PARAMETER value-parameter x: kotlin.Int - VALUE_PARAMETER value-parameter s: kotlin.String + FUN DELEGATED_MEMBER name:foo visibility:public modality:OPEN <> ($this:Test2, x:kotlin.Int, s:kotlin.String) returnType:Unit flags: + $this: VALUE_PARAMETER name: type:Test2 flags: + VALUE_PARAMETER name:x index:0 type:kotlin.Int flags: + VALUE_PARAMETER name:s index:1 type:kotlin.String flags: BLOCK_BODY CALL 'foo(Int, String): Unit' type=kotlin.Unit origin=null $this: GET_FIELD '`Test2$IBase$delegate`: BaseImpl' type=BaseImpl origin=null receiver: GET_VAR 'this@Test2: Test2' type=Test2 origin=null x: GET_VAR 'value-parameter x: Int' type=kotlin.Int origin=null s: GET_VAR 'value-parameter s: String' type=kotlin.String origin=null - FUN DELEGATED_MEMBER public open override fun kotlin.String.qux(): kotlin.Unit - $this: VALUE_PARAMETER this@Test2: Test2 - $receiver: VALUE_PARAMETER this@qux: String + FUN DELEGATED_MEMBER name:qux visibility:public modality:OPEN <> ($this:Test2, $receiver:kotlin.String) returnType:Unit flags: + $this: VALUE_PARAMETER name: type:Test2 flags: + $receiver: VALUE_PARAMETER name: type:kotlin.String flags: BLOCK_BODY CALL 'qux() on String: Unit' type=kotlin.Unit origin=null $this: GET_FIELD '`Test2$IBase$delegate`: BaseImpl' type=BaseImpl origin=null receiver: GET_VAR 'this@Test2: Test2' type=Test2 origin=null $receiver: GET_VAR 'this@qux: String' type=kotlin.String origin=null - FIELD DELEGATE val `Test2$IOther$delegate`: IOther + FIELD DELEGATE name:Test2$IOther$delegate type:IOther visibility:private EXPRESSION_BODY CALL 'otherImpl(String, Int): IOther' type=IOther origin=null - x0: CONST String type=kotlin.String value='' - y0: CONST Int type=kotlin.Int value='42' - PROPERTY DELEGATED_MEMBER public open override val kotlin.Byte.z1: kotlin.Int - FUN DELEGATED_MEMBER public open override fun kotlin.Byte.(): kotlin.Int - $this: VALUE_PARAMETER this@Test2: Test2 - $receiver: VALUE_PARAMETER this@z1: Byte + x0: CONST String type=kotlin.String value= + y0: CONST Int type=kotlin.Int value=42 + PROPERTY DELEGATED_MEMBER name:z1 type:kotlin.Int visibility:public modality:OPEN flags:val + FUN DELEGATED_MEMBER name: visibility:public modality:OPEN <> ($this:Test2, $receiver:kotlin.Byte) returnType:Int flags: + $this: VALUE_PARAMETER name: type:Test2 flags: + $receiver: VALUE_PARAMETER name: type:kotlin.Byte flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='() on Byte: Int' + RETURN type=kotlin.Nothing from=() on Byte: Int' CALL '() on Byte: Int' type=kotlin.Int origin=null $this: GET_FIELD '`Test2$IOther$delegate`: IOther' type=IOther origin=null receiver: GET_VAR 'this@Test2: Test2' type=Test2 origin=null $receiver: GET_VAR 'this@z1: Byte' type=kotlin.Byte origin=null - PROPERTY DELEGATED_MEMBER public open override val x: kotlin.String - FUN DELEGATED_MEMBER public open override fun (): kotlin.String - $this: VALUE_PARAMETER this@Test2: Test2 + PROPERTY DELEGATED_MEMBER name:x type:kotlin.String visibility:public modality:OPEN flags:val + FUN DELEGATED_MEMBER name: visibility:public modality:OPEN <> ($this:Test2) returnType:String flags: + $this: VALUE_PARAMETER name: type:Test2 flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): String' + RETURN type=kotlin.Nothing from=(): String' CALL '(): String' type=kotlin.String origin=null $this: GET_FIELD '`Test2$IOther$delegate`: IOther' type=IOther origin=null receiver: GET_VAR 'this@Test2: Test2' type=Test2 origin=null - PROPERTY DELEGATED_MEMBER public open override var kotlin.Byte.z2: kotlin.Int - FUN DELEGATED_MEMBER public open override fun kotlin.Byte.(): kotlin.Int - $this: VALUE_PARAMETER this@Test2: Test2 - $receiver: VALUE_PARAMETER this@z2: Byte + PROPERTY DELEGATED_MEMBER name:z2 type:kotlin.Int visibility:public modality:OPEN flags:var + FUN DELEGATED_MEMBER name: visibility:public modality:OPEN <> ($this:Test2, $receiver:kotlin.Byte) returnType:Int flags: + $this: VALUE_PARAMETER name: type:Test2 flags: + $receiver: VALUE_PARAMETER name: type:kotlin.Byte flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='() on Byte: Int' + RETURN type=kotlin.Nothing from=() on Byte: Int' CALL '() on Byte: Int' type=kotlin.Int origin=null $this: GET_FIELD '`Test2$IOther$delegate`: IOther' type=IOther origin=null receiver: GET_VAR 'this@Test2: Test2' type=Test2 origin=null $receiver: GET_VAR 'this@z2: Byte' type=kotlin.Byte origin=null - FUN DELEGATED_MEMBER public open override fun kotlin.Byte.(: kotlin.Int): kotlin.Unit - $this: VALUE_PARAMETER this@Test2: Test2 - $receiver: VALUE_PARAMETER this@z2: Byte - VALUE_PARAMETER value-parameter : kotlin.Int + FUN DELEGATED_MEMBER name: visibility:public modality:OPEN <> ($this:Test2, $receiver:kotlin.Byte, :kotlin.Int) returnType:Unit flags: + $this: VALUE_PARAMETER name: type:Test2 flags: + $receiver: VALUE_PARAMETER name: type:kotlin.Byte flags: + VALUE_PARAMETER name: index:0 type:kotlin.Int flags: BLOCK_BODY CALL '(Int) on Byte: Unit' type=kotlin.Unit origin=null $this: GET_FIELD '`Test2$IOther$delegate`: IOther' type=IOther origin=null receiver: GET_VAR 'this@Test2: Test2' type=Test2 origin=null $receiver: GET_VAR 'this@z2: Byte' type=kotlin.Byte origin=null : GET_VAR 'value-parameter : Int' type=kotlin.Int origin=null - PROPERTY DELEGATED_MEMBER public open override var y: kotlin.Int - FUN DELEGATED_MEMBER public open override fun (): kotlin.Int - $this: VALUE_PARAMETER this@Test2: Test2 + PROPERTY DELEGATED_MEMBER name:y type:kotlin.Int visibility:public modality:OPEN flags:var + FUN DELEGATED_MEMBER name: visibility:public modality:OPEN <> ($this:Test2) returnType:Int flags: + $this: VALUE_PARAMETER name: type:Test2 flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): Int' + RETURN type=kotlin.Nothing from=(): Int' CALL '(): Int' type=kotlin.Int origin=null $this: GET_FIELD '`Test2$IOther$delegate`: IOther' type=IOther origin=null receiver: GET_VAR 'this@Test2: Test2' type=Test2 origin=null - FUN DELEGATED_MEMBER public open override fun (: kotlin.Int): kotlin.Unit - $this: VALUE_PARAMETER this@Test2: Test2 - VALUE_PARAMETER value-parameter : kotlin.Int + FUN DELEGATED_MEMBER name: visibility:public modality:OPEN <> ($this:Test2, :kotlin.Int) returnType:Unit flags: + $this: VALUE_PARAMETER name: type:Test2 flags: + VALUE_PARAMETER name: index:0 type:kotlin.Int flags: BLOCK_BODY CALL '(Int): Unit' type=kotlin.Unit origin=null $this: GET_FIELD '`Test2$IOther$delegate`: IOther' type=IOther origin=null receiver: GET_VAR 'this@Test2: Test2' type=Test2 origin=null : GET_VAR 'value-parameter : Int' type=kotlin.Int origin=null - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: diff --git a/compiler/testData/ir/irText/classes/delegatedImplementationWithExplicitOverride.txt b/compiler/testData/ir/irText/classes/delegatedImplementationWithExplicitOverride.txt index 1cd3c4f8c11..9e4e9f71902 100644 --- a/compiler/testData/ir/irText/classes/delegatedImplementationWithExplicitOverride.txt +++ b/compiler/testData/ir/irText/classes/delegatedImplementationWithExplicitOverride.txt @@ -1,59 +1,59 @@ -FILE /delegatedImplementationWithExplicitOverride.kt - CLASS INTERFACE IFooBar - $this: VALUE_PARAMETER this@IFooBar: IFooBar - FUN public abstract fun foo(): kotlin.Unit - $this: VALUE_PARAMETER this@IFooBar: IFooBar - FUN public abstract fun bar(): kotlin.Unit - $this: VALUE_PARAMETER this@IFooBar: IFooBar - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any - CLASS OBJECT FooBarImpl - $this: VALUE_PARAMETER this@FooBarImpl: FooBarImpl - CONSTRUCTOR private constructor FooBarImpl() +FILE fqName: fileName:/delegatedImplementationWithExplicitOverride.kt + CLASS INTERFACE name:IFooBar modality:ABSTRACT visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:IFooBar flags: + FUN name:foo visibility:public modality:ABSTRACT <> ($this:IFooBar) returnType:Unit flags: + $this: VALUE_PARAMETER name: type:IFooBar flags: + FUN name:bar visibility:public modality:ABSTRACT <> ($this:IFooBar) returnType:Unit flags: + $this: VALUE_PARAMETER name: type:IFooBar flags: + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + CLASS OBJECT name:FooBarImpl modality:FINAL visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:FooBarImpl flags: + CONSTRUCTOR visibility:private <> () returnType:FooBarImpl flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='FooBarImpl' - FUN public open override fun foo(): kotlin.Unit - $this: VALUE_PARAMETER this@FooBarImpl: FooBarImpl + FUN name:foo visibility:public modality:OPEN <> ($this:FooBarImpl) returnType:Unit flags: + $this: VALUE_PARAMETER name: type:FooBarImpl flags: BLOCK_BODY - FUN public open override fun bar(): kotlin.Unit - $this: VALUE_PARAMETER this@FooBarImpl: FooBarImpl + FUN name:bar visibility:public modality:OPEN <> ($this:FooBarImpl) returnType:Unit flags: + $this: VALUE_PARAMETER name: type:FooBarImpl flags: BLOCK_BODY - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any - CLASS CLASS C - $this: VALUE_PARAMETER this@C: C - CONSTRUCTOR public constructor C() + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + CLASS CLASS name:C modality:FINAL visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:C flags: + CONSTRUCTOR visibility:public <> () returnType:C flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='C' - FIELD DELEGATE val `C$IFooBar$delegate`: FooBarImpl + FIELD DELEGATE name:C$IFooBar$delegate type:FooBarImpl visibility:private EXPRESSION_BODY GET_OBJECT 'FooBarImpl' type=FooBarImpl - FUN DELEGATED_MEMBER public open override fun foo(): kotlin.Unit - $this: VALUE_PARAMETER this@C: C + FUN DELEGATED_MEMBER name:foo visibility:public modality:OPEN <> ($this:C) returnType:Unit flags: + $this: VALUE_PARAMETER name: type:C flags: BLOCK_BODY CALL 'foo(): Unit' type=kotlin.Unit origin=null $this: GET_FIELD '`C$IFooBar$delegate`: FooBarImpl' type=FooBarImpl origin=null receiver: GET_VAR 'this@C: C' type=C origin=null - FUN public open override fun bar(): kotlin.Unit - $this: VALUE_PARAMETER this@C: C + FUN name:bar visibility:public modality:OPEN <> ($this:C) returnType:Unit flags: + $this: VALUE_PARAMETER name: type:C flags: BLOCK_BODY - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: diff --git a/compiler/testData/ir/irText/classes/delegatingConstructorCallToTypeAliasConstructor.txt b/compiler/testData/ir/irText/classes/delegatingConstructorCallToTypeAliasConstructor.txt index d8fbd3ebfd6..b75cb37edf9 100644 --- a/compiler/testData/ir/irText/classes/delegatingConstructorCallToTypeAliasConstructor.txt +++ b/compiler/testData/ir/irText/classes/delegatingConstructorCallToTypeAliasConstructor.txt @@ -1,65 +1,65 @@ -FILE /delegatingConstructorCallToTypeAliasConstructor.kt - CLASS CLASS Cell - $this: VALUE_PARAMETER this@Cell: Cell - TYPE_PARAMETER - CONSTRUCTOR public constructor Cell(value: T) - VALUE_PARAMETER value-parameter value: T +FILE fqName: fileName:/delegatingConstructorCallToTypeAliasConstructor.kt + CLASS CLASS name:Cell modality:OPEN visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Cell flags: + TYPE_PARAMETER name:T index:0 variance: upperBounds:[kotlin.Any?] + CONSTRUCTOR visibility:public <> (value:T) returnType:Cell flags: + VALUE_PARAMETER name:value index:0 type:T flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='Cell' - PROPERTY public final val value: T - FIELD PROPERTY_BACKING_FIELD public final val value: T + PROPERTY name:value type:T visibility:public modality:FINAL flags:val + FIELD PROPERTY_BACKING_FIELD name:value type:T visibility:public EXPRESSION_BODY GET_VAR 'value-parameter value: T' type=T origin=INITIALIZE_PROPERTY_FROM_PARAMETER - FUN DEFAULT_PROPERTY_ACCESSOR public final fun (): T - $this: VALUE_PARAMETER this@Cell: Cell + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:Cell) returnType:T flags: + $this: VALUE_PARAMETER name: type:Cell flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): T' + RETURN type=kotlin.Nothing from=(): T' GET_FIELD 'value: T' type=T origin=null receiver: GET_VAR 'this@Cell: Cell' type=Cell origin=null - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: TYPEALIAS typealias CT = Cell type=Cell TYPEALIAS typealias CStr = Cell type=Cell - CLASS CLASS C1 - $this: VALUE_PARAMETER this@C1: C1 - CONSTRUCTOR public constructor C1() + CLASS CLASS name:C1 modality:FINAL visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:C1 flags: + CONSTRUCTOR visibility:public <> () returnType:C1 flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Cell(String)' : null - value: CONST String type=kotlin.String value='O' + value: CONST String type=kotlin.String value=O INSTANCE_INITIALIZER_CALL classDescriptor='C1' - PROPERTY FAKE_OVERRIDE public final override val value: kotlin.String - FUN FAKE_OVERRIDE public final override fun (): kotlin.String - $this: VALUE_PARAMETER this@Cell: Cell - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any - CLASS CLASS C2 - $this: VALUE_PARAMETER this@C2: C2 - CONSTRUCTOR public constructor C2() + PROPERTY FAKE_OVERRIDE name:value type:kotlin.String visibility:public modality:FINAL flags:val + FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:Cell) returnType:String flags: + $this: VALUE_PARAMETER name: type:Cell flags: + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + CLASS CLASS name:C2 modality:FINAL visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:C2 flags: + CONSTRUCTOR visibility:public <> () returnType:C2 flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Cell(String)' : null - value: CONST String type=kotlin.String value='K' + value: CONST String type=kotlin.String value=K INSTANCE_INITIALIZER_CALL classDescriptor='C2' - PROPERTY FAKE_OVERRIDE public final override val value: kotlin.String - FUN FAKE_OVERRIDE public final override fun (): kotlin.String - $this: VALUE_PARAMETER this@Cell: Cell - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any + PROPERTY FAKE_OVERRIDE name:value type:kotlin.String visibility:public modality:FINAL flags:val + FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:Cell) returnType:String flags: + $this: VALUE_PARAMETER name: type:Cell flags: + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: diff --git a/compiler/testData/ir/irText/classes/delegatingConstructorCallsInSecondaryConstructors.txt b/compiler/testData/ir/irText/classes/delegatingConstructorCallsInSecondaryConstructors.txt index f82261b79e7..b2ed522a22d 100644 --- a/compiler/testData/ir/irText/classes/delegatingConstructorCallsInSecondaryConstructors.txt +++ b/compiler/testData/ir/irText/classes/delegatingConstructorCallsInSecondaryConstructors.txt @@ -1,37 +1,37 @@ -FILE /delegatingConstructorCallsInSecondaryConstructors.kt - CLASS CLASS Base - $this: VALUE_PARAMETER this@Base: Base - CONSTRUCTOR public constructor Base() +FILE fqName: fileName:/delegatingConstructorCallsInSecondaryConstructors.kt + CLASS CLASS name:Base modality:OPEN visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Base flags: + CONSTRUCTOR visibility:public <> () returnType:Base flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='Base' - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any - CLASS CLASS Test - $this: VALUE_PARAMETER this@Test: Test - CONSTRUCTOR public constructor Test() + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + CLASS CLASS name:Test modality:FINAL visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Test flags: + CONSTRUCTOR visibility:public <> () returnType:Test flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Base()' INSTANCE_INITIALIZER_CALL classDescriptor='Test' - CONSTRUCTOR public constructor Test(xx: kotlin.Int) - VALUE_PARAMETER value-parameter xx: kotlin.Int + CONSTRUCTOR visibility:public <> (xx:kotlin.Int) returnType:Test flags: + VALUE_PARAMETER name:xx index:0 type:kotlin.Int flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Base()' INSTANCE_INITIALIZER_CALL classDescriptor='Test' - CONSTRUCTOR public constructor Test(xx: kotlin.Short) - VALUE_PARAMETER value-parameter xx: kotlin.Short + CONSTRUCTOR visibility:public <> (xx:kotlin.Short) returnType:Test flags: + VALUE_PARAMETER name:xx index:0 type:kotlin.Short flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Test()' - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: diff --git a/compiler/testData/ir/irText/classes/enum.txt b/compiler/testData/ir/irText/classes/enum.txt index 25fba0fe8f0..cda8e27ef8c 100644 --- a/compiler/testData/ir/irText/classes/enum.txt +++ b/compiler/testData/ir/irText/classes/enum.txt @@ -1,239 +1,239 @@ -FILE /enum.kt - CLASS ENUM_CLASS TestEnum1 - $this: VALUE_PARAMETER this@TestEnum1: TestEnum1 - CONSTRUCTOR private constructor TestEnum1() +FILE fqName: fileName:/enum.kt + CLASS ENUM_CLASS name:TestEnum1 modality:FINAL visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:TestEnum1 flags: + CONSTRUCTOR visibility:private <> () returnType:TestEnum1 flags: BLOCK_BODY ENUM_CONSTRUCTOR_CALL 'constructor Enum(String, Int)' >: null INSTANCE_INITIALIZER_CALL classDescriptor='TestEnum1' - ENUM_ENTRY enum entry TEST1 + ENUM_ENTRY name:TEST1 init: ENUM_CONSTRUCTOR_CALL 'constructor TestEnum1()' - ENUM_ENTRY enum entry TEST2 + ENUM_ENTRY name:TEST2 init: ENUM_CONSTRUCTOR_CALL 'constructor TestEnum1()' - FUN FAKE_OVERRIDE protected final override fun clone(): kotlin.Any - $this: VALUE_PARAMETER this@Enum: Enum - FUN FAKE_OVERRIDE protected/*protected and package*/ final override fun finalize(): kotlin.Unit - $this: VALUE_PARAMETER this@Enum: Enum - FUN FAKE_OVERRIDE public final override fun getDeclaringClass(): java.lang.Class! - $this: VALUE_PARAMETER this@Enum: Enum - FUN FAKE_OVERRIDE public final override fun compareTo(other: TestEnum1): kotlin.Int - $this: VALUE_PARAMETER this@Enum: Enum - VALUE_PARAMETER value-parameter other: TestEnum1 - FUN FAKE_OVERRIDE public final override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Enum: Enum - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public final override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Enum: Enum - PROPERTY FAKE_OVERRIDE public final override val name: kotlin.String - FUN FAKE_OVERRIDE public final override fun (): kotlin.String - $this: VALUE_PARAMETER this@Enum: Enum - PROPERTY FAKE_OVERRIDE public final override val ordinal: kotlin.Int - FUN FAKE_OVERRIDE public final override fun (): kotlin.Int - $this: VALUE_PARAMETER this@Enum: Enum - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Enum: Enum - FUN ENUM_CLASS_SPECIAL_MEMBER public final fun values(): kotlin.Array + FUN FAKE_OVERRIDE name:clone visibility:protected modality:FINAL <> ($this:kotlin.Enum) returnType:Any flags: + $this: VALUE_PARAMETER name: type:kotlin.Enum flags: + FUN FAKE_OVERRIDE name:finalize visibility:protected/*protected and package*/ modality:FINAL <> ($this:kotlin.Enum) returnType:Unit flags: + $this: VALUE_PARAMETER name: type:kotlin.Enum flags: + FUN FAKE_OVERRIDE name:getDeclaringClass visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:(java.lang.Class<(TestEnum1..TestEnum1?)>..java.lang.Class<(TestEnum1..TestEnum1?)>?) flags: + $this: VALUE_PARAMETER name: type:kotlin.Enum flags: + FUN FAKE_OVERRIDE name:compareTo visibility:public modality:FINAL <> ($this:kotlin.Enum, other:TestEnum1) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Enum flags: + VALUE_PARAMETER name:other index:0 type:TestEnum1 flags: + FUN FAKE_OVERRIDE name:equals visibility:public modality:FINAL <> ($this:kotlin.Enum, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Enum flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Enum flags: + PROPERTY FAKE_OVERRIDE name:name type:kotlin.String visibility:public modality:FINAL flags:val + FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Enum flags: + PROPERTY FAKE_OVERRIDE name:ordinal type:kotlin.Int visibility:public modality:FINAL flags:val + FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Enum flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Enum) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Enum flags: + FUN ENUM_CLASS_SPECIAL_MEMBER name:values visibility:public modality:FINAL <> () returnType:Array flags: SYNTHETIC_BODY kind=ENUM_VALUES - FUN ENUM_CLASS_SPECIAL_MEMBER public final fun valueOf(value: kotlin.String): TestEnum1 - VALUE_PARAMETER value-parameter value: kotlin.String + FUN ENUM_CLASS_SPECIAL_MEMBER name:valueOf visibility:public modality:FINAL <> (value:kotlin.String) returnType:TestEnum1 flags: + VALUE_PARAMETER name:value index:0 type:kotlin.String flags: SYNTHETIC_BODY kind=ENUM_VALUEOF - CLASS ENUM_CLASS TestEnum2 - $this: VALUE_PARAMETER this@TestEnum2: TestEnum2 - CONSTRUCTOR private constructor TestEnum2(x: kotlin.Int) - VALUE_PARAMETER value-parameter x: kotlin.Int + CLASS ENUM_CLASS name:TestEnum2 modality:FINAL visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:TestEnum2 flags: + CONSTRUCTOR visibility:private <> (x:kotlin.Int) returnType:TestEnum2 flags: + VALUE_PARAMETER name:x index:0 type:kotlin.Int flags: BLOCK_BODY ENUM_CONSTRUCTOR_CALL 'constructor Enum(String, Int)' >: null INSTANCE_INITIALIZER_CALL classDescriptor='TestEnum2' - PROPERTY public final val x: kotlin.Int - FIELD PROPERTY_BACKING_FIELD public final val x: kotlin.Int + PROPERTY name:x type:kotlin.Int visibility:public modality:FINAL flags:val + FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.Int visibility:public EXPRESSION_BODY GET_VAR 'value-parameter x: Int' type=kotlin.Int origin=INITIALIZE_PROPERTY_FROM_PARAMETER - FUN DEFAULT_PROPERTY_ACCESSOR public final fun (): kotlin.Int - $this: VALUE_PARAMETER this@TestEnum2: TestEnum2 + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:TestEnum2) returnType:Int flags: + $this: VALUE_PARAMETER name: type:TestEnum2 flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): Int' + RETURN type=kotlin.Nothing from=(): Int' GET_FIELD 'x: Int' type=kotlin.Int origin=null receiver: GET_VAR 'this@TestEnum2: TestEnum2' type=TestEnum2 origin=null - ENUM_ENTRY enum entry TEST1 + ENUM_ENTRY name:TEST1 init: ENUM_CONSTRUCTOR_CALL 'constructor TestEnum2(Int)' - x: CONST Int type=kotlin.Int value='1' - ENUM_ENTRY enum entry TEST2 + x: CONST Int type=kotlin.Int value=1 + ENUM_ENTRY name:TEST2 init: ENUM_CONSTRUCTOR_CALL 'constructor TestEnum2(Int)' - x: CONST Int type=kotlin.Int value='2' - ENUM_ENTRY enum entry TEST3 + x: CONST Int type=kotlin.Int value=2 + ENUM_ENTRY name:TEST3 init: ENUM_CONSTRUCTOR_CALL 'constructor TestEnum2(Int)' - x: CONST Int type=kotlin.Int value='3' - FUN FAKE_OVERRIDE protected final override fun clone(): kotlin.Any - $this: VALUE_PARAMETER this@Enum: Enum - FUN FAKE_OVERRIDE protected/*protected and package*/ final override fun finalize(): kotlin.Unit - $this: VALUE_PARAMETER this@Enum: Enum - FUN FAKE_OVERRIDE public final override fun getDeclaringClass(): java.lang.Class! - $this: VALUE_PARAMETER this@Enum: Enum - FUN FAKE_OVERRIDE public final override fun compareTo(other: TestEnum2): kotlin.Int - $this: VALUE_PARAMETER this@Enum: Enum - VALUE_PARAMETER value-parameter other: TestEnum2 - FUN FAKE_OVERRIDE public final override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Enum: Enum - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public final override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Enum: Enum - PROPERTY FAKE_OVERRIDE public final override val name: kotlin.String - FUN FAKE_OVERRIDE public final override fun (): kotlin.String - $this: VALUE_PARAMETER this@Enum: Enum - PROPERTY FAKE_OVERRIDE public final override val ordinal: kotlin.Int - FUN FAKE_OVERRIDE public final override fun (): kotlin.Int - $this: VALUE_PARAMETER this@Enum: Enum - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Enum: Enum - FUN ENUM_CLASS_SPECIAL_MEMBER public final fun values(): kotlin.Array + x: CONST Int type=kotlin.Int value=3 + FUN FAKE_OVERRIDE name:clone visibility:protected modality:FINAL <> ($this:kotlin.Enum) returnType:Any flags: + $this: VALUE_PARAMETER name: type:kotlin.Enum flags: + FUN FAKE_OVERRIDE name:finalize visibility:protected/*protected and package*/ modality:FINAL <> ($this:kotlin.Enum) returnType:Unit flags: + $this: VALUE_PARAMETER name: type:kotlin.Enum flags: + FUN FAKE_OVERRIDE name:getDeclaringClass visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:(java.lang.Class<(TestEnum2..TestEnum2?)>..java.lang.Class<(TestEnum2..TestEnum2?)>?) flags: + $this: VALUE_PARAMETER name: type:kotlin.Enum flags: + FUN FAKE_OVERRIDE name:compareTo visibility:public modality:FINAL <> ($this:kotlin.Enum, other:TestEnum2) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Enum flags: + VALUE_PARAMETER name:other index:0 type:TestEnum2 flags: + FUN FAKE_OVERRIDE name:equals visibility:public modality:FINAL <> ($this:kotlin.Enum, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Enum flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Enum flags: + PROPERTY FAKE_OVERRIDE name:name type:kotlin.String visibility:public modality:FINAL flags:val + FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Enum flags: + PROPERTY FAKE_OVERRIDE name:ordinal type:kotlin.Int visibility:public modality:FINAL flags:val + FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Enum flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Enum) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Enum flags: + FUN ENUM_CLASS_SPECIAL_MEMBER name:values visibility:public modality:FINAL <> () returnType:Array flags: SYNTHETIC_BODY kind=ENUM_VALUES - FUN ENUM_CLASS_SPECIAL_MEMBER public final fun valueOf(value: kotlin.String): TestEnum2 - VALUE_PARAMETER value-parameter value: kotlin.String + FUN ENUM_CLASS_SPECIAL_MEMBER name:valueOf visibility:public modality:FINAL <> (value:kotlin.String) returnType:TestEnum2 flags: + VALUE_PARAMETER name:value index:0 type:kotlin.String flags: SYNTHETIC_BODY kind=ENUM_VALUEOF - CLASS ENUM_CLASS TestEnum3 - $this: VALUE_PARAMETER this@TestEnum3: TestEnum3 - CONSTRUCTOR private constructor TestEnum3() + CLASS ENUM_CLASS name:TestEnum3 modality:FINAL visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:TestEnum3 flags: + CONSTRUCTOR visibility:private <> () returnType:TestEnum3 flags: BLOCK_BODY ENUM_CONSTRUCTOR_CALL 'constructor Enum(String, Int)' >: null INSTANCE_INITIALIZER_CALL classDescriptor='TestEnum3' - ENUM_ENTRY enum entry TEST + ENUM_ENTRY name:TEST init: ENUM_CONSTRUCTOR_CALL 'constructor TEST()' - class: CLASS ENUM_ENTRY TEST - $this: VALUE_PARAMETER this@TEST: TEST - CONSTRUCTOR private constructor TEST() + class: CLASS ENUM_ENTRY name:TEST modality:FINAL visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:TestEnum3.TEST flags: + CONSTRUCTOR visibility:private <> () returnType:TestEnum3.TEST flags: BLOCK_BODY ENUM_CONSTRUCTOR_CALL 'constructor TestEnum3()' INSTANCE_INITIALIZER_CALL classDescriptor='TEST' - FUN public open override fun foo(): kotlin.Unit - $this: VALUE_PARAMETER this@TEST: TEST + FUN name:foo visibility:public modality:OPEN <> ($this:TestEnum3.TEST) returnType:Unit flags: + $this: VALUE_PARAMETER name: type:TestEnum3.TEST flags: BLOCK_BODY CALL 'println(Any?): Unit' type=kotlin.Unit origin=null - message: CONST String type=kotlin.String value='Hello, world!' - FUN FAKE_OVERRIDE protected final override fun clone(): kotlin.Any - $this: VALUE_PARAMETER this@Enum: Enum - FUN FAKE_OVERRIDE protected/*protected and package*/ final override fun finalize(): kotlin.Unit - $this: VALUE_PARAMETER this@Enum: Enum - FUN FAKE_OVERRIDE public final override fun getDeclaringClass(): java.lang.Class! - $this: VALUE_PARAMETER this@Enum: Enum - FUN FAKE_OVERRIDE public final override fun compareTo(other: TestEnum3): kotlin.Int - $this: VALUE_PARAMETER this@Enum: Enum - VALUE_PARAMETER value-parameter other: TestEnum3 - FUN FAKE_OVERRIDE public final override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Enum: Enum - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public final override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Enum: Enum - PROPERTY FAKE_OVERRIDE public final override val name: kotlin.String - FUN FAKE_OVERRIDE public final override fun (): kotlin.String - $this: VALUE_PARAMETER this@Enum: Enum - PROPERTY FAKE_OVERRIDE public final override val ordinal: kotlin.Int - FUN FAKE_OVERRIDE public final override fun (): kotlin.Int - $this: VALUE_PARAMETER this@Enum: Enum - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Enum: Enum - FUN public abstract fun foo(): kotlin.Unit - $this: VALUE_PARAMETER this@TestEnum3: TestEnum3 - FUN FAKE_OVERRIDE protected final override fun clone(): kotlin.Any - $this: VALUE_PARAMETER this@Enum: Enum - FUN FAKE_OVERRIDE protected/*protected and package*/ final override fun finalize(): kotlin.Unit - $this: VALUE_PARAMETER this@Enum: Enum - FUN FAKE_OVERRIDE public final override fun getDeclaringClass(): java.lang.Class! - $this: VALUE_PARAMETER this@Enum: Enum - FUN FAKE_OVERRIDE public final override fun compareTo(other: TestEnum3): kotlin.Int - $this: VALUE_PARAMETER this@Enum: Enum - VALUE_PARAMETER value-parameter other: TestEnum3 - FUN FAKE_OVERRIDE public final override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Enum: Enum - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public final override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Enum: Enum - PROPERTY FAKE_OVERRIDE public final override val name: kotlin.String - FUN FAKE_OVERRIDE public final override fun (): kotlin.String - $this: VALUE_PARAMETER this@Enum: Enum - PROPERTY FAKE_OVERRIDE public final override val ordinal: kotlin.Int - FUN FAKE_OVERRIDE public final override fun (): kotlin.Int - $this: VALUE_PARAMETER this@Enum: Enum - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Enum: Enum - FUN ENUM_CLASS_SPECIAL_MEMBER public final fun values(): kotlin.Array + message: CONST String type=kotlin.String value=Hello, world! + FUN FAKE_OVERRIDE name:clone visibility:protected modality:FINAL <> ($this:kotlin.Enum) returnType:Any flags: + $this: VALUE_PARAMETER name: type:kotlin.Enum flags: + FUN FAKE_OVERRIDE name:finalize visibility:protected/*protected and package*/ modality:FINAL <> ($this:kotlin.Enum) returnType:Unit flags: + $this: VALUE_PARAMETER name: type:kotlin.Enum flags: + FUN FAKE_OVERRIDE name:getDeclaringClass visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:(java.lang.Class<(TestEnum3..TestEnum3?)>..java.lang.Class<(TestEnum3..TestEnum3?)>?) flags: + $this: VALUE_PARAMETER name: type:kotlin.Enum flags: + FUN FAKE_OVERRIDE name:compareTo visibility:public modality:FINAL <> ($this:kotlin.Enum, other:TestEnum3) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Enum flags: + VALUE_PARAMETER name:other index:0 type:TestEnum3 flags: + FUN FAKE_OVERRIDE name:equals visibility:public modality:FINAL <> ($this:kotlin.Enum, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Enum flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Enum flags: + PROPERTY FAKE_OVERRIDE name:name type:kotlin.String visibility:public modality:FINAL flags:val + FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Enum flags: + PROPERTY FAKE_OVERRIDE name:ordinal type:kotlin.Int visibility:public modality:FINAL flags:val + FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Enum flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Enum) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Enum flags: + FUN name:foo visibility:public modality:ABSTRACT <> ($this:TestEnum3) returnType:Unit flags: + $this: VALUE_PARAMETER name: type:TestEnum3 flags: + FUN FAKE_OVERRIDE name:clone visibility:protected modality:FINAL <> ($this:kotlin.Enum) returnType:Any flags: + $this: VALUE_PARAMETER name: type:kotlin.Enum flags: + FUN FAKE_OVERRIDE name:finalize visibility:protected/*protected and package*/ modality:FINAL <> ($this:kotlin.Enum) returnType:Unit flags: + $this: VALUE_PARAMETER name: type:kotlin.Enum flags: + FUN FAKE_OVERRIDE name:getDeclaringClass visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:(java.lang.Class<(TestEnum3..TestEnum3?)>..java.lang.Class<(TestEnum3..TestEnum3?)>?) flags: + $this: VALUE_PARAMETER name: type:kotlin.Enum flags: + FUN FAKE_OVERRIDE name:compareTo visibility:public modality:FINAL <> ($this:kotlin.Enum, other:TestEnum3) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Enum flags: + VALUE_PARAMETER name:other index:0 type:TestEnum3 flags: + FUN FAKE_OVERRIDE name:equals visibility:public modality:FINAL <> ($this:kotlin.Enum, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Enum flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Enum flags: + PROPERTY FAKE_OVERRIDE name:name type:kotlin.String visibility:public modality:FINAL flags:val + FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Enum flags: + PROPERTY FAKE_OVERRIDE name:ordinal type:kotlin.Int visibility:public modality:FINAL flags:val + FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Enum flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Enum) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Enum flags: + FUN ENUM_CLASS_SPECIAL_MEMBER name:values visibility:public modality:FINAL <> () returnType:Array flags: SYNTHETIC_BODY kind=ENUM_VALUES - FUN ENUM_CLASS_SPECIAL_MEMBER public final fun valueOf(value: kotlin.String): TestEnum3 - VALUE_PARAMETER value-parameter value: kotlin.String + FUN ENUM_CLASS_SPECIAL_MEMBER name:valueOf visibility:public modality:FINAL <> (value:kotlin.String) returnType:TestEnum3 flags: + VALUE_PARAMETER name:value index:0 type:kotlin.String flags: SYNTHETIC_BODY kind=ENUM_VALUEOF - CLASS ENUM_CLASS TestEnum4 - $this: VALUE_PARAMETER this@TestEnum4: TestEnum4 - CONSTRUCTOR private constructor TestEnum4(x: kotlin.Int) - VALUE_PARAMETER value-parameter x: kotlin.Int + CLASS ENUM_CLASS name:TestEnum4 modality:FINAL visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:TestEnum4 flags: + CONSTRUCTOR visibility:private <> (x:kotlin.Int) returnType:TestEnum4 flags: + VALUE_PARAMETER name:x index:0 type:kotlin.Int flags: BLOCK_BODY ENUM_CONSTRUCTOR_CALL 'constructor Enum(String, Int)' >: null INSTANCE_INITIALIZER_CALL classDescriptor='TestEnum4' - PROPERTY public final val x: kotlin.Int - FIELD PROPERTY_BACKING_FIELD public final val x: kotlin.Int + PROPERTY name:x type:kotlin.Int visibility:public modality:FINAL flags:val + FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.Int visibility:public EXPRESSION_BODY GET_VAR 'value-parameter x: Int' type=kotlin.Int origin=INITIALIZE_PROPERTY_FROM_PARAMETER - FUN DEFAULT_PROPERTY_ACCESSOR public final fun (): kotlin.Int - $this: VALUE_PARAMETER this@TestEnum4: TestEnum4 + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:TestEnum4) returnType:Int flags: + $this: VALUE_PARAMETER name: type:TestEnum4 flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): Int' + RETURN type=kotlin.Nothing from=(): Int' GET_FIELD 'x: Int' type=kotlin.Int origin=null receiver: GET_VAR 'this@TestEnum4: TestEnum4' type=TestEnum4 origin=null - ENUM_ENTRY enum entry TEST1 + ENUM_ENTRY name:TEST1 init: ENUM_CONSTRUCTOR_CALL 'constructor TEST1()' - class: CLASS ENUM_ENTRY TEST1 - $this: VALUE_PARAMETER this@TEST1: TEST1 - CONSTRUCTOR private constructor TEST1() + class: CLASS ENUM_ENTRY name:TEST1 modality:FINAL visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:TestEnum4.TEST1 flags: + CONSTRUCTOR visibility:private <> () returnType:TestEnum4.TEST1 flags: BLOCK_BODY ENUM_CONSTRUCTOR_CALL 'constructor TestEnum4(Int)' - x: CONST Int type=kotlin.Int value='1' + x: CONST Int type=kotlin.Int value=1 INSTANCE_INITIALIZER_CALL classDescriptor='TEST1' - FUN public open override fun foo(): kotlin.Unit - $this: VALUE_PARAMETER this@TEST1: TEST1 + FUN name:foo visibility:public modality:OPEN <> ($this:TestEnum4.TEST1) returnType:Unit flags: + $this: VALUE_PARAMETER name: type:TestEnum4.TEST1 flags: BLOCK_BODY CALL 'println(Any?): Unit' type=kotlin.Unit origin=null message: GET_ENUM 'TEST1' type=TestEnum4 - FUN FAKE_OVERRIDE protected final override fun clone(): kotlin.Any - $this: VALUE_PARAMETER this@Enum: Enum - FUN FAKE_OVERRIDE protected/*protected and package*/ final override fun finalize(): kotlin.Unit - $this: VALUE_PARAMETER this@Enum: Enum - FUN FAKE_OVERRIDE public final override fun getDeclaringClass(): java.lang.Class! - $this: VALUE_PARAMETER this@Enum: Enum - FUN FAKE_OVERRIDE public final override fun compareTo(other: TestEnum4): kotlin.Int - $this: VALUE_PARAMETER this@Enum: Enum - VALUE_PARAMETER value-parameter other: TestEnum4 - FUN FAKE_OVERRIDE public final override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Enum: Enum - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public final override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Enum: Enum - PROPERTY FAKE_OVERRIDE public final override val name: kotlin.String - FUN FAKE_OVERRIDE public final override fun (): kotlin.String - $this: VALUE_PARAMETER this@Enum: Enum - PROPERTY FAKE_OVERRIDE public final override val ordinal: kotlin.Int - FUN FAKE_OVERRIDE public final override fun (): kotlin.Int - $this: VALUE_PARAMETER this@Enum: Enum - PROPERTY FAKE_OVERRIDE public final override val x: kotlin.Int - FUN FAKE_OVERRIDE public final override fun (): kotlin.Int - $this: VALUE_PARAMETER this@TestEnum4: TestEnum4 - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Enum: Enum - ENUM_ENTRY enum entry TEST2 + FUN FAKE_OVERRIDE name:clone visibility:protected modality:FINAL <> ($this:kotlin.Enum) returnType:Any flags: + $this: VALUE_PARAMETER name: type:kotlin.Enum flags: + FUN FAKE_OVERRIDE name:finalize visibility:protected/*protected and package*/ modality:FINAL <> ($this:kotlin.Enum) returnType:Unit flags: + $this: VALUE_PARAMETER name: type:kotlin.Enum flags: + FUN FAKE_OVERRIDE name:getDeclaringClass visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:(java.lang.Class<(TestEnum4..TestEnum4?)>..java.lang.Class<(TestEnum4..TestEnum4?)>?) flags: + $this: VALUE_PARAMETER name: type:kotlin.Enum flags: + FUN FAKE_OVERRIDE name:compareTo visibility:public modality:FINAL <> ($this:kotlin.Enum, other:TestEnum4) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Enum flags: + VALUE_PARAMETER name:other index:0 type:TestEnum4 flags: + FUN FAKE_OVERRIDE name:equals visibility:public modality:FINAL <> ($this:kotlin.Enum, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Enum flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Enum flags: + PROPERTY FAKE_OVERRIDE name:name type:kotlin.String visibility:public modality:FINAL flags:val + FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Enum flags: + PROPERTY FAKE_OVERRIDE name:ordinal type:kotlin.Int visibility:public modality:FINAL flags:val + FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Enum flags: + PROPERTY FAKE_OVERRIDE name:x type:kotlin.Int visibility:public modality:FINAL flags:val + FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:TestEnum4) returnType:Int flags: + $this: VALUE_PARAMETER name: type:TestEnum4 flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Enum) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Enum flags: + ENUM_ENTRY name:TEST2 init: ENUM_CONSTRUCTOR_CALL 'constructor TEST2()' - class: CLASS ENUM_ENTRY TEST2 - $this: VALUE_PARAMETER this@TEST2: TEST2 - CONSTRUCTOR private constructor TEST2() + class: CLASS ENUM_ENTRY name:TEST2 modality:FINAL visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:TestEnum4.TEST2 flags: + CONSTRUCTOR visibility:private <> () returnType:TestEnum4.TEST2 flags: BLOCK_BODY ENUM_CONSTRUCTOR_CALL 'constructor TestEnum4(Int)' - x: CONST Int type=kotlin.Int value='2' + x: CONST Int type=kotlin.Int value=2 INSTANCE_INITIALIZER_CALL classDescriptor='TEST2' - PROPERTY public final val z: kotlin.Int - FIELD PROPERTY_BACKING_FIELD public final val z: kotlin.Int - FUN DEFAULT_PROPERTY_ACCESSOR public final fun (): kotlin.Int - $this: VALUE_PARAMETER this@TEST2: TEST2 + PROPERTY name:z type:kotlin.Int visibility:public modality:FINAL flags:val + FIELD PROPERTY_BACKING_FIELD name:z type:kotlin.Int visibility:public + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:TestEnum4.TEST2) returnType:Int flags: + $this: VALUE_PARAMETER name: type:TestEnum4.TEST2 flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): Int' + RETURN type=kotlin.Nothing from=(): Int' GET_FIELD 'z: Int' type=kotlin.Int origin=null receiver: GET_VAR 'this@TEST2: TEST2' type=TestEnum4.TEST2 origin=null ANONYMOUS_INITIALIZER TEST2 @@ -242,117 +242,117 @@ FILE /enum.kt receiver: GET_VAR 'this@TEST2: TEST2' type=TestEnum4.TEST2 origin=null value: CALL '(): Int' type=kotlin.Int origin=GET_PROPERTY $this: GET_VAR 'this@TEST2: TEST2' type=TestEnum4.TEST2 origin=null - FUN public open override fun foo(): kotlin.Unit - $this: VALUE_PARAMETER this@TEST2: TEST2 + FUN name:foo visibility:public modality:OPEN <> ($this:TestEnum4.TEST2) returnType:Unit flags: + $this: VALUE_PARAMETER name: type:TestEnum4.TEST2 flags: BLOCK_BODY CALL 'println(Any?): Unit' type=kotlin.Unit origin=null message: GET_ENUM 'TEST2' type=TestEnum4 - FUN FAKE_OVERRIDE protected final override fun clone(): kotlin.Any - $this: VALUE_PARAMETER this@Enum: Enum - FUN FAKE_OVERRIDE protected/*protected and package*/ final override fun finalize(): kotlin.Unit - $this: VALUE_PARAMETER this@Enum: Enum - FUN FAKE_OVERRIDE public final override fun getDeclaringClass(): java.lang.Class! - $this: VALUE_PARAMETER this@Enum: Enum - FUN FAKE_OVERRIDE public final override fun compareTo(other: TestEnum4): kotlin.Int - $this: VALUE_PARAMETER this@Enum: Enum - VALUE_PARAMETER value-parameter other: TestEnum4 - FUN FAKE_OVERRIDE public final override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Enum: Enum - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public final override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Enum: Enum - PROPERTY FAKE_OVERRIDE public final override val name: kotlin.String - FUN FAKE_OVERRIDE public final override fun (): kotlin.String - $this: VALUE_PARAMETER this@Enum: Enum - PROPERTY FAKE_OVERRIDE public final override val ordinal: kotlin.Int - FUN FAKE_OVERRIDE public final override fun (): kotlin.Int - $this: VALUE_PARAMETER this@Enum: Enum - PROPERTY FAKE_OVERRIDE public final override val x: kotlin.Int - FUN FAKE_OVERRIDE public final override fun (): kotlin.Int - $this: VALUE_PARAMETER this@TestEnum4: TestEnum4 - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Enum: Enum - FUN public abstract fun foo(): kotlin.Unit - $this: VALUE_PARAMETER this@TestEnum4: TestEnum4 - FUN FAKE_OVERRIDE protected final override fun clone(): kotlin.Any - $this: VALUE_PARAMETER this@Enum: Enum - FUN FAKE_OVERRIDE protected/*protected and package*/ final override fun finalize(): kotlin.Unit - $this: VALUE_PARAMETER this@Enum: Enum - FUN FAKE_OVERRIDE public final override fun getDeclaringClass(): java.lang.Class! - $this: VALUE_PARAMETER this@Enum: Enum - FUN FAKE_OVERRIDE public final override fun compareTo(other: TestEnum4): kotlin.Int - $this: VALUE_PARAMETER this@Enum: Enum - VALUE_PARAMETER value-parameter other: TestEnum4 - FUN FAKE_OVERRIDE public final override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Enum: Enum - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public final override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Enum: Enum - PROPERTY FAKE_OVERRIDE public final override val name: kotlin.String - FUN FAKE_OVERRIDE public final override fun (): kotlin.String - $this: VALUE_PARAMETER this@Enum: Enum - PROPERTY FAKE_OVERRIDE public final override val ordinal: kotlin.Int - FUN FAKE_OVERRIDE public final override fun (): kotlin.Int - $this: VALUE_PARAMETER this@Enum: Enum - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Enum: Enum - FUN ENUM_CLASS_SPECIAL_MEMBER public final fun values(): kotlin.Array + FUN FAKE_OVERRIDE name:clone visibility:protected modality:FINAL <> ($this:kotlin.Enum) returnType:Any flags: + $this: VALUE_PARAMETER name: type:kotlin.Enum flags: + FUN FAKE_OVERRIDE name:finalize visibility:protected/*protected and package*/ modality:FINAL <> ($this:kotlin.Enum) returnType:Unit flags: + $this: VALUE_PARAMETER name: type:kotlin.Enum flags: + FUN FAKE_OVERRIDE name:getDeclaringClass visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:(java.lang.Class<(TestEnum4..TestEnum4?)>..java.lang.Class<(TestEnum4..TestEnum4?)>?) flags: + $this: VALUE_PARAMETER name: type:kotlin.Enum flags: + FUN FAKE_OVERRIDE name:compareTo visibility:public modality:FINAL <> ($this:kotlin.Enum, other:TestEnum4) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Enum flags: + VALUE_PARAMETER name:other index:0 type:TestEnum4 flags: + FUN FAKE_OVERRIDE name:equals visibility:public modality:FINAL <> ($this:kotlin.Enum, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Enum flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Enum flags: + PROPERTY FAKE_OVERRIDE name:name type:kotlin.String visibility:public modality:FINAL flags:val + FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Enum flags: + PROPERTY FAKE_OVERRIDE name:ordinal type:kotlin.Int visibility:public modality:FINAL flags:val + FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Enum flags: + PROPERTY FAKE_OVERRIDE name:x type:kotlin.Int visibility:public modality:FINAL flags:val + FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:TestEnum4) returnType:Int flags: + $this: VALUE_PARAMETER name: type:TestEnum4 flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Enum) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Enum flags: + FUN name:foo visibility:public modality:ABSTRACT <> ($this:TestEnum4) returnType:Unit flags: + $this: VALUE_PARAMETER name: type:TestEnum4 flags: + FUN FAKE_OVERRIDE name:clone visibility:protected modality:FINAL <> ($this:kotlin.Enum) returnType:Any flags: + $this: VALUE_PARAMETER name: type:kotlin.Enum flags: + FUN FAKE_OVERRIDE name:finalize visibility:protected/*protected and package*/ modality:FINAL <> ($this:kotlin.Enum) returnType:Unit flags: + $this: VALUE_PARAMETER name: type:kotlin.Enum flags: + FUN FAKE_OVERRIDE name:getDeclaringClass visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:(java.lang.Class<(TestEnum4..TestEnum4?)>..java.lang.Class<(TestEnum4..TestEnum4?)>?) flags: + $this: VALUE_PARAMETER name: type:kotlin.Enum flags: + FUN FAKE_OVERRIDE name:compareTo visibility:public modality:FINAL <> ($this:kotlin.Enum, other:TestEnum4) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Enum flags: + VALUE_PARAMETER name:other index:0 type:TestEnum4 flags: + FUN FAKE_OVERRIDE name:equals visibility:public modality:FINAL <> ($this:kotlin.Enum, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Enum flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Enum flags: + PROPERTY FAKE_OVERRIDE name:name type:kotlin.String visibility:public modality:FINAL flags:val + FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Enum flags: + PROPERTY FAKE_OVERRIDE name:ordinal type:kotlin.Int visibility:public modality:FINAL flags:val + FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Enum flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Enum) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Enum flags: + FUN ENUM_CLASS_SPECIAL_MEMBER name:values visibility:public modality:FINAL <> () returnType:Array flags: SYNTHETIC_BODY kind=ENUM_VALUES - FUN ENUM_CLASS_SPECIAL_MEMBER public final fun valueOf(value: kotlin.String): TestEnum4 - VALUE_PARAMETER value-parameter value: kotlin.String + FUN ENUM_CLASS_SPECIAL_MEMBER name:valueOf visibility:public modality:FINAL <> (value:kotlin.String) returnType:TestEnum4 flags: + VALUE_PARAMETER name:value index:0 type:kotlin.String flags: SYNTHETIC_BODY kind=ENUM_VALUEOF - CLASS ENUM_CLASS TestEnum5 - $this: VALUE_PARAMETER this@TestEnum5: TestEnum5 - CONSTRUCTOR private constructor TestEnum5(x: kotlin.Int = ...) - VALUE_PARAMETER value-parameter x: kotlin.Int = ... + CLASS ENUM_CLASS name:TestEnum5 modality:FINAL visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:TestEnum5 flags: + CONSTRUCTOR visibility:private <> (x:kotlin.Int) returnType:TestEnum5 flags: + VALUE_PARAMETER name:x index:0 type:kotlin.Int flags: EXPRESSION_BODY - CONST Int type=kotlin.Int value='0' + CONST Int type=kotlin.Int value=0 BLOCK_BODY ENUM_CONSTRUCTOR_CALL 'constructor Enum(String, Int)' >: null INSTANCE_INITIALIZER_CALL classDescriptor='TestEnum5' - PROPERTY public final val x: kotlin.Int - FIELD PROPERTY_BACKING_FIELD public final val x: kotlin.Int + PROPERTY name:x type:kotlin.Int visibility:public modality:FINAL flags:val + FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.Int visibility:public EXPRESSION_BODY GET_VAR 'value-parameter x: Int = ...' type=kotlin.Int origin=INITIALIZE_PROPERTY_FROM_PARAMETER - FUN DEFAULT_PROPERTY_ACCESSOR public final fun (): kotlin.Int - $this: VALUE_PARAMETER this@TestEnum5: TestEnum5 + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:TestEnum5) returnType:Int flags: + $this: VALUE_PARAMETER name: type:TestEnum5 flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): Int' + RETURN type=kotlin.Nothing from=(): Int' GET_FIELD 'x: Int' type=kotlin.Int origin=null receiver: GET_VAR 'this@TestEnum5: TestEnum5' type=TestEnum5 origin=null - ENUM_ENTRY enum entry TEST1 + ENUM_ENTRY name:TEST1 init: ENUM_CONSTRUCTOR_CALL 'constructor TestEnum5(Int = ...)' - ENUM_ENTRY enum entry TEST2 + ENUM_ENTRY name:TEST2 init: ENUM_CONSTRUCTOR_CALL 'constructor TestEnum5(Int = ...)' - ENUM_ENTRY enum entry TEST3 + ENUM_ENTRY name:TEST3 init: ENUM_CONSTRUCTOR_CALL 'constructor TestEnum5(Int = ...)' - x: CONST Int type=kotlin.Int value='0' - FUN FAKE_OVERRIDE protected final override fun clone(): kotlin.Any - $this: VALUE_PARAMETER this@Enum: Enum - FUN FAKE_OVERRIDE protected/*protected and package*/ final override fun finalize(): kotlin.Unit - $this: VALUE_PARAMETER this@Enum: Enum - FUN FAKE_OVERRIDE public final override fun getDeclaringClass(): java.lang.Class! - $this: VALUE_PARAMETER this@Enum: Enum - FUN FAKE_OVERRIDE public final override fun compareTo(other: TestEnum5): kotlin.Int - $this: VALUE_PARAMETER this@Enum: Enum - VALUE_PARAMETER value-parameter other: TestEnum5 - FUN FAKE_OVERRIDE public final override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Enum: Enum - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public final override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Enum: Enum - PROPERTY FAKE_OVERRIDE public final override val name: kotlin.String - FUN FAKE_OVERRIDE public final override fun (): kotlin.String - $this: VALUE_PARAMETER this@Enum: Enum - PROPERTY FAKE_OVERRIDE public final override val ordinal: kotlin.Int - FUN FAKE_OVERRIDE public final override fun (): kotlin.Int - $this: VALUE_PARAMETER this@Enum: Enum - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Enum: Enum - FUN ENUM_CLASS_SPECIAL_MEMBER public final fun values(): kotlin.Array + x: CONST Int type=kotlin.Int value=0 + FUN FAKE_OVERRIDE name:clone visibility:protected modality:FINAL <> ($this:kotlin.Enum) returnType:Any flags: + $this: VALUE_PARAMETER name: type:kotlin.Enum flags: + FUN FAKE_OVERRIDE name:finalize visibility:protected/*protected and package*/ modality:FINAL <> ($this:kotlin.Enum) returnType:Unit flags: + $this: VALUE_PARAMETER name: type:kotlin.Enum flags: + FUN FAKE_OVERRIDE name:getDeclaringClass visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:(java.lang.Class<(TestEnum5..TestEnum5?)>..java.lang.Class<(TestEnum5..TestEnum5?)>?) flags: + $this: VALUE_PARAMETER name: type:kotlin.Enum flags: + FUN FAKE_OVERRIDE name:compareTo visibility:public modality:FINAL <> ($this:kotlin.Enum, other:TestEnum5) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Enum flags: + VALUE_PARAMETER name:other index:0 type:TestEnum5 flags: + FUN FAKE_OVERRIDE name:equals visibility:public modality:FINAL <> ($this:kotlin.Enum, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Enum flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Enum flags: + PROPERTY FAKE_OVERRIDE name:name type:kotlin.String visibility:public modality:FINAL flags:val + FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Enum flags: + PROPERTY FAKE_OVERRIDE name:ordinal type:kotlin.Int visibility:public modality:FINAL flags:val + FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Enum flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Enum) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Enum flags: + FUN ENUM_CLASS_SPECIAL_MEMBER name:values visibility:public modality:FINAL <> () returnType:Array flags: SYNTHETIC_BODY kind=ENUM_VALUES - FUN ENUM_CLASS_SPECIAL_MEMBER public final fun valueOf(value: kotlin.String): TestEnum5 - VALUE_PARAMETER value-parameter value: kotlin.String + FUN ENUM_CLASS_SPECIAL_MEMBER name:valueOf visibility:public modality:FINAL <> (value:kotlin.String) returnType:TestEnum5 flags: + VALUE_PARAMETER name:value index:0 type:kotlin.String flags: SYNTHETIC_BODY kind=ENUM_VALUEOF diff --git a/compiler/testData/ir/irText/classes/enumWithSecondaryCtor.txt b/compiler/testData/ir/irText/classes/enumWithSecondaryCtor.txt index 84b2127afd9..1f527d6758b 100644 --- a/compiler/testData/ir/irText/classes/enumWithSecondaryCtor.txt +++ b/compiler/testData/ir/irText/classes/enumWithSecondaryCtor.txt @@ -1,235 +1,235 @@ -FILE /enumWithSecondaryCtor.kt - CLASS ENUM_CLASS Test0 - $this: VALUE_PARAMETER this@Test0: Test0 - CONSTRUCTOR private constructor Test0(x: kotlin.Int) - VALUE_PARAMETER value-parameter x: kotlin.Int +FILE fqName: fileName:/enumWithSecondaryCtor.kt + CLASS ENUM_CLASS name:Test0 modality:FINAL visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Test0 flags: + CONSTRUCTOR visibility:private <> (x:kotlin.Int) returnType:Test0 flags: + VALUE_PARAMETER name:x index:0 type:kotlin.Int flags: BLOCK_BODY ENUM_CONSTRUCTOR_CALL 'constructor Enum(String, Int)' >: null INSTANCE_INITIALIZER_CALL classDescriptor='Test0' - PROPERTY public final val x: kotlin.Int - FIELD PROPERTY_BACKING_FIELD public final val x: kotlin.Int + PROPERTY name:x type:kotlin.Int visibility:public modality:FINAL flags:val + FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.Int visibility:public EXPRESSION_BODY GET_VAR 'value-parameter x: Int' type=kotlin.Int origin=INITIALIZE_PROPERTY_FROM_PARAMETER - FUN DEFAULT_PROPERTY_ACCESSOR public final fun (): kotlin.Int - $this: VALUE_PARAMETER this@Test0: Test0 + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:Test0) returnType:Int flags: + $this: VALUE_PARAMETER name: type:Test0 flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): Int' + RETURN type=kotlin.Nothing from=(): Int' GET_FIELD 'x: Int' type=kotlin.Int origin=null receiver: GET_VAR 'this@Test0: Test0' type=Test0 origin=null - ENUM_ENTRY enum entry ZERO + ENUM_ENTRY name:ZERO init: ENUM_CONSTRUCTOR_CALL 'constructor Test0()' - CONSTRUCTOR private constructor Test0() + CONSTRUCTOR visibility:private <> () returnType:Test0 flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Test0(Int)' - x: CONST Int type=kotlin.Int value='0' - FUN FAKE_OVERRIDE protected final override fun clone(): kotlin.Any - $this: VALUE_PARAMETER this@Enum: Enum - FUN FAKE_OVERRIDE protected/*protected and package*/ final override fun finalize(): kotlin.Unit - $this: VALUE_PARAMETER this@Enum: Enum - FUN FAKE_OVERRIDE public final override fun getDeclaringClass(): java.lang.Class! - $this: VALUE_PARAMETER this@Enum: Enum - FUN FAKE_OVERRIDE public final override fun compareTo(other: Test0): kotlin.Int - $this: VALUE_PARAMETER this@Enum: Enum - VALUE_PARAMETER value-parameter other: Test0 - FUN FAKE_OVERRIDE public final override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Enum: Enum - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public final override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Enum: Enum - PROPERTY FAKE_OVERRIDE public final override val name: kotlin.String - FUN FAKE_OVERRIDE public final override fun (): kotlin.String - $this: VALUE_PARAMETER this@Enum: Enum - PROPERTY FAKE_OVERRIDE public final override val ordinal: kotlin.Int - FUN FAKE_OVERRIDE public final override fun (): kotlin.Int - $this: VALUE_PARAMETER this@Enum: Enum - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Enum: Enum - FUN ENUM_CLASS_SPECIAL_MEMBER public final fun values(): kotlin.Array + x: CONST Int type=kotlin.Int value=0 + FUN FAKE_OVERRIDE name:clone visibility:protected modality:FINAL <> ($this:kotlin.Enum) returnType:Any flags: + $this: VALUE_PARAMETER name: type:kotlin.Enum flags: + FUN FAKE_OVERRIDE name:finalize visibility:protected/*protected and package*/ modality:FINAL <> ($this:kotlin.Enum) returnType:Unit flags: + $this: VALUE_PARAMETER name: type:kotlin.Enum flags: + FUN FAKE_OVERRIDE name:getDeclaringClass visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:(java.lang.Class<(Test0..Test0?)>..java.lang.Class<(Test0..Test0?)>?) flags: + $this: VALUE_PARAMETER name: type:kotlin.Enum flags: + FUN FAKE_OVERRIDE name:compareTo visibility:public modality:FINAL <> ($this:kotlin.Enum, other:Test0) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Enum flags: + VALUE_PARAMETER name:other index:0 type:Test0 flags: + FUN FAKE_OVERRIDE name:equals visibility:public modality:FINAL <> ($this:kotlin.Enum, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Enum flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Enum flags: + PROPERTY FAKE_OVERRIDE name:name type:kotlin.String visibility:public modality:FINAL flags:val + FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Enum flags: + PROPERTY FAKE_OVERRIDE name:ordinal type:kotlin.Int visibility:public modality:FINAL flags:val + FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Enum flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Enum) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Enum flags: + FUN ENUM_CLASS_SPECIAL_MEMBER name:values visibility:public modality:FINAL <> () returnType:Array flags: SYNTHETIC_BODY kind=ENUM_VALUES - FUN ENUM_CLASS_SPECIAL_MEMBER public final fun valueOf(value: kotlin.String): Test0 - VALUE_PARAMETER value-parameter value: kotlin.String + FUN ENUM_CLASS_SPECIAL_MEMBER name:valueOf visibility:public modality:FINAL <> (value:kotlin.String) returnType:Test0 flags: + VALUE_PARAMETER name:value index:0 type:kotlin.String flags: SYNTHETIC_BODY kind=ENUM_VALUEOF - CLASS ENUM_CLASS Test1 - $this: VALUE_PARAMETER this@Test1: Test1 - CONSTRUCTOR private constructor Test1(x: kotlin.Int) - VALUE_PARAMETER value-parameter x: kotlin.Int + CLASS ENUM_CLASS name:Test1 modality:FINAL visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Test1 flags: + CONSTRUCTOR visibility:private <> (x:kotlin.Int) returnType:Test1 flags: + VALUE_PARAMETER name:x index:0 type:kotlin.Int flags: BLOCK_BODY ENUM_CONSTRUCTOR_CALL 'constructor Enum(String, Int)' >: null INSTANCE_INITIALIZER_CALL classDescriptor='Test1' - PROPERTY public final val x: kotlin.Int - FIELD PROPERTY_BACKING_FIELD public final val x: kotlin.Int + PROPERTY name:x type:kotlin.Int visibility:public modality:FINAL flags:val + FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.Int visibility:public EXPRESSION_BODY GET_VAR 'value-parameter x: Int' type=kotlin.Int origin=INITIALIZE_PROPERTY_FROM_PARAMETER - FUN DEFAULT_PROPERTY_ACCESSOR public final fun (): kotlin.Int - $this: VALUE_PARAMETER this@Test1: Test1 + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:Test1) returnType:Int flags: + $this: VALUE_PARAMETER name: type:Test1 flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): Int' + RETURN type=kotlin.Nothing from=(): Int' GET_FIELD 'x: Int' type=kotlin.Int origin=null receiver: GET_VAR 'this@Test1: Test1' type=Test1 origin=null - ENUM_ENTRY enum entry ZERO + ENUM_ENTRY name:ZERO init: ENUM_CONSTRUCTOR_CALL 'constructor Test1()' - ENUM_ENTRY enum entry ONE + ENUM_ENTRY name:ONE init: ENUM_CONSTRUCTOR_CALL 'constructor Test1(Int)' - x: CONST Int type=kotlin.Int value='1' - CONSTRUCTOR private constructor Test1() + x: CONST Int type=kotlin.Int value=1 + CONSTRUCTOR visibility:private <> () returnType:Test1 flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Test1(Int)' - x: CONST Int type=kotlin.Int value='0' - FUN FAKE_OVERRIDE protected final override fun clone(): kotlin.Any - $this: VALUE_PARAMETER this@Enum: Enum - FUN FAKE_OVERRIDE protected/*protected and package*/ final override fun finalize(): kotlin.Unit - $this: VALUE_PARAMETER this@Enum: Enum - FUN FAKE_OVERRIDE public final override fun getDeclaringClass(): java.lang.Class! - $this: VALUE_PARAMETER this@Enum: Enum - FUN FAKE_OVERRIDE public final override fun compareTo(other: Test1): kotlin.Int - $this: VALUE_PARAMETER this@Enum: Enum - VALUE_PARAMETER value-parameter other: Test1 - FUN FAKE_OVERRIDE public final override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Enum: Enum - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public final override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Enum: Enum - PROPERTY FAKE_OVERRIDE public final override val name: kotlin.String - FUN FAKE_OVERRIDE public final override fun (): kotlin.String - $this: VALUE_PARAMETER this@Enum: Enum - PROPERTY FAKE_OVERRIDE public final override val ordinal: kotlin.Int - FUN FAKE_OVERRIDE public final override fun (): kotlin.Int - $this: VALUE_PARAMETER this@Enum: Enum - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Enum: Enum - FUN ENUM_CLASS_SPECIAL_MEMBER public final fun values(): kotlin.Array + x: CONST Int type=kotlin.Int value=0 + FUN FAKE_OVERRIDE name:clone visibility:protected modality:FINAL <> ($this:kotlin.Enum) returnType:Any flags: + $this: VALUE_PARAMETER name: type:kotlin.Enum flags: + FUN FAKE_OVERRIDE name:finalize visibility:protected/*protected and package*/ modality:FINAL <> ($this:kotlin.Enum) returnType:Unit flags: + $this: VALUE_PARAMETER name: type:kotlin.Enum flags: + FUN FAKE_OVERRIDE name:getDeclaringClass visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:(java.lang.Class<(Test1..Test1?)>..java.lang.Class<(Test1..Test1?)>?) flags: + $this: VALUE_PARAMETER name: type:kotlin.Enum flags: + FUN FAKE_OVERRIDE name:compareTo visibility:public modality:FINAL <> ($this:kotlin.Enum, other:Test1) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Enum flags: + VALUE_PARAMETER name:other index:0 type:Test1 flags: + FUN FAKE_OVERRIDE name:equals visibility:public modality:FINAL <> ($this:kotlin.Enum, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Enum flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Enum flags: + PROPERTY FAKE_OVERRIDE name:name type:kotlin.String visibility:public modality:FINAL flags:val + FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Enum flags: + PROPERTY FAKE_OVERRIDE name:ordinal type:kotlin.Int visibility:public modality:FINAL flags:val + FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Enum flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Enum) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Enum flags: + FUN ENUM_CLASS_SPECIAL_MEMBER name:values visibility:public modality:FINAL <> () returnType:Array flags: SYNTHETIC_BODY kind=ENUM_VALUES - FUN ENUM_CLASS_SPECIAL_MEMBER public final fun valueOf(value: kotlin.String): Test1 - VALUE_PARAMETER value-parameter value: kotlin.String + FUN ENUM_CLASS_SPECIAL_MEMBER name:valueOf visibility:public modality:FINAL <> (value:kotlin.String) returnType:Test1 flags: + VALUE_PARAMETER name:value index:0 type:kotlin.String flags: SYNTHETIC_BODY kind=ENUM_VALUEOF - CLASS ENUM_CLASS Test2 - $this: VALUE_PARAMETER this@Test2: Test2 - CONSTRUCTOR private constructor Test2(x: kotlin.Int) - VALUE_PARAMETER value-parameter x: kotlin.Int + CLASS ENUM_CLASS name:Test2 modality:FINAL visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Test2 flags: + CONSTRUCTOR visibility:private <> (x:kotlin.Int) returnType:Test2 flags: + VALUE_PARAMETER name:x index:0 type:kotlin.Int flags: BLOCK_BODY ENUM_CONSTRUCTOR_CALL 'constructor Enum(String, Int)' >: null INSTANCE_INITIALIZER_CALL classDescriptor='Test2' - PROPERTY public final val x: kotlin.Int - FIELD PROPERTY_BACKING_FIELD public final val x: kotlin.Int + PROPERTY name:x type:kotlin.Int visibility:public modality:FINAL flags:val + FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.Int visibility:public EXPRESSION_BODY GET_VAR 'value-parameter x: Int' type=kotlin.Int origin=INITIALIZE_PROPERTY_FROM_PARAMETER - FUN DEFAULT_PROPERTY_ACCESSOR public final fun (): kotlin.Int - $this: VALUE_PARAMETER this@Test2: Test2 + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:Test2) returnType:Int flags: + $this: VALUE_PARAMETER name: type:Test2 flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): Int' + RETURN type=kotlin.Nothing from=(): Int' GET_FIELD 'x: Int' type=kotlin.Int origin=null receiver: GET_VAR 'this@Test2: Test2' type=Test2 origin=null - ENUM_ENTRY enum entry ZERO + ENUM_ENTRY name:ZERO init: ENUM_CONSTRUCTOR_CALL 'constructor ZERO()' - class: CLASS ENUM_ENTRY ZERO - $this: VALUE_PARAMETER this@ZERO: ZERO - CONSTRUCTOR private constructor ZERO() + class: CLASS ENUM_ENTRY name:ZERO modality:FINAL visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Test2.ZERO flags: + CONSTRUCTOR visibility:private <> () returnType:Test2.ZERO flags: BLOCK_BODY ENUM_CONSTRUCTOR_CALL 'constructor Test2()' INSTANCE_INITIALIZER_CALL classDescriptor='ZERO' - FUN public open override fun foo(): kotlin.Unit - $this: VALUE_PARAMETER this@ZERO: ZERO + FUN name:foo visibility:public modality:OPEN <> ($this:Test2.ZERO) returnType:Unit flags: + $this: VALUE_PARAMETER name: type:Test2.ZERO flags: BLOCK_BODY CALL 'println(Any?): Unit' type=kotlin.Unit origin=null - message: CONST String type=kotlin.String value='ZERO' - FUN FAKE_OVERRIDE protected final override fun clone(): kotlin.Any - $this: VALUE_PARAMETER this@Enum: Enum - FUN FAKE_OVERRIDE protected/*protected and package*/ final override fun finalize(): kotlin.Unit - $this: VALUE_PARAMETER this@Enum: Enum - FUN FAKE_OVERRIDE public final override fun getDeclaringClass(): java.lang.Class! - $this: VALUE_PARAMETER this@Enum: Enum - FUN FAKE_OVERRIDE public final override fun compareTo(other: Test2): kotlin.Int - $this: VALUE_PARAMETER this@Enum: Enum - VALUE_PARAMETER value-parameter other: Test2 - FUN FAKE_OVERRIDE public final override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Enum: Enum - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public final override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Enum: Enum - PROPERTY FAKE_OVERRIDE public final override val name: kotlin.String - FUN FAKE_OVERRIDE public final override fun (): kotlin.String - $this: VALUE_PARAMETER this@Enum: Enum - PROPERTY FAKE_OVERRIDE public final override val ordinal: kotlin.Int - FUN FAKE_OVERRIDE public final override fun (): kotlin.Int - $this: VALUE_PARAMETER this@Enum: Enum - PROPERTY FAKE_OVERRIDE public final override val x: kotlin.Int - FUN FAKE_OVERRIDE public final override fun (): kotlin.Int - $this: VALUE_PARAMETER this@Test2: Test2 - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Enum: Enum - ENUM_ENTRY enum entry ONE + message: CONST String type=kotlin.String value=ZERO + FUN FAKE_OVERRIDE name:clone visibility:protected modality:FINAL <> ($this:kotlin.Enum) returnType:Any flags: + $this: VALUE_PARAMETER name: type:kotlin.Enum flags: + FUN FAKE_OVERRIDE name:finalize visibility:protected/*protected and package*/ modality:FINAL <> ($this:kotlin.Enum) returnType:Unit flags: + $this: VALUE_PARAMETER name: type:kotlin.Enum flags: + FUN FAKE_OVERRIDE name:getDeclaringClass visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:(java.lang.Class<(Test2..Test2?)>..java.lang.Class<(Test2..Test2?)>?) flags: + $this: VALUE_PARAMETER name: type:kotlin.Enum flags: + FUN FAKE_OVERRIDE name:compareTo visibility:public modality:FINAL <> ($this:kotlin.Enum, other:Test2) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Enum flags: + VALUE_PARAMETER name:other index:0 type:Test2 flags: + FUN FAKE_OVERRIDE name:equals visibility:public modality:FINAL <> ($this:kotlin.Enum, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Enum flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Enum flags: + PROPERTY FAKE_OVERRIDE name:name type:kotlin.String visibility:public modality:FINAL flags:val + FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Enum flags: + PROPERTY FAKE_OVERRIDE name:ordinal type:kotlin.Int visibility:public modality:FINAL flags:val + FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Enum flags: + PROPERTY FAKE_OVERRIDE name:x type:kotlin.Int visibility:public modality:FINAL flags:val + FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:Test2) returnType:Int flags: + $this: VALUE_PARAMETER name: type:Test2 flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Enum) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Enum flags: + ENUM_ENTRY name:ONE init: ENUM_CONSTRUCTOR_CALL 'constructor ONE()' - class: CLASS ENUM_ENTRY ONE - $this: VALUE_PARAMETER this@ONE: ONE - CONSTRUCTOR private constructor ONE() + class: CLASS ENUM_ENTRY name:ONE modality:FINAL visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Test2.ONE flags: + CONSTRUCTOR visibility:private <> () returnType:Test2.ONE flags: BLOCK_BODY ENUM_CONSTRUCTOR_CALL 'constructor Test2(Int)' - x: CONST Int type=kotlin.Int value='1' + x: CONST Int type=kotlin.Int value=1 INSTANCE_INITIALIZER_CALL classDescriptor='ONE' - FUN public open override fun foo(): kotlin.Unit - $this: VALUE_PARAMETER this@ONE: ONE + FUN name:foo visibility:public modality:OPEN <> ($this:Test2.ONE) returnType:Unit flags: + $this: VALUE_PARAMETER name: type:Test2.ONE flags: BLOCK_BODY CALL 'println(Any?): Unit' type=kotlin.Unit origin=null - message: CONST String type=kotlin.String value='ONE' - FUN FAKE_OVERRIDE protected final override fun clone(): kotlin.Any - $this: VALUE_PARAMETER this@Enum: Enum - FUN FAKE_OVERRIDE protected/*protected and package*/ final override fun finalize(): kotlin.Unit - $this: VALUE_PARAMETER this@Enum: Enum - FUN FAKE_OVERRIDE public final override fun getDeclaringClass(): java.lang.Class! - $this: VALUE_PARAMETER this@Enum: Enum - FUN FAKE_OVERRIDE public final override fun compareTo(other: Test2): kotlin.Int - $this: VALUE_PARAMETER this@Enum: Enum - VALUE_PARAMETER value-parameter other: Test2 - FUN FAKE_OVERRIDE public final override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Enum: Enum - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public final override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Enum: Enum - PROPERTY FAKE_OVERRIDE public final override val name: kotlin.String - FUN FAKE_OVERRIDE public final override fun (): kotlin.String - $this: VALUE_PARAMETER this@Enum: Enum - PROPERTY FAKE_OVERRIDE public final override val ordinal: kotlin.Int - FUN FAKE_OVERRIDE public final override fun (): kotlin.Int - $this: VALUE_PARAMETER this@Enum: Enum - PROPERTY FAKE_OVERRIDE public final override val x: kotlin.Int - FUN FAKE_OVERRIDE public final override fun (): kotlin.Int - $this: VALUE_PARAMETER this@Test2: Test2 - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Enum: Enum - CONSTRUCTOR private constructor Test2() + message: CONST String type=kotlin.String value=ONE + FUN FAKE_OVERRIDE name:clone visibility:protected modality:FINAL <> ($this:kotlin.Enum) returnType:Any flags: + $this: VALUE_PARAMETER name: type:kotlin.Enum flags: + FUN FAKE_OVERRIDE name:finalize visibility:protected/*protected and package*/ modality:FINAL <> ($this:kotlin.Enum) returnType:Unit flags: + $this: VALUE_PARAMETER name: type:kotlin.Enum flags: + FUN FAKE_OVERRIDE name:getDeclaringClass visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:(java.lang.Class<(Test2..Test2?)>..java.lang.Class<(Test2..Test2?)>?) flags: + $this: VALUE_PARAMETER name: type:kotlin.Enum flags: + FUN FAKE_OVERRIDE name:compareTo visibility:public modality:FINAL <> ($this:kotlin.Enum, other:Test2) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Enum flags: + VALUE_PARAMETER name:other index:0 type:Test2 flags: + FUN FAKE_OVERRIDE name:equals visibility:public modality:FINAL <> ($this:kotlin.Enum, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Enum flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Enum flags: + PROPERTY FAKE_OVERRIDE name:name type:kotlin.String visibility:public modality:FINAL flags:val + FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Enum flags: + PROPERTY FAKE_OVERRIDE name:ordinal type:kotlin.Int visibility:public modality:FINAL flags:val + FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Enum flags: + PROPERTY FAKE_OVERRIDE name:x type:kotlin.Int visibility:public modality:FINAL flags:val + FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:Test2) returnType:Int flags: + $this: VALUE_PARAMETER name: type:Test2 flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Enum) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Enum flags: + CONSTRUCTOR visibility:private <> () returnType:Test2 flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Test2(Int)' - x: CONST Int type=kotlin.Int value='0' - FUN public abstract fun foo(): kotlin.Unit - $this: VALUE_PARAMETER this@Test2: Test2 - FUN FAKE_OVERRIDE protected final override fun clone(): kotlin.Any - $this: VALUE_PARAMETER this@Enum: Enum - FUN FAKE_OVERRIDE protected/*protected and package*/ final override fun finalize(): kotlin.Unit - $this: VALUE_PARAMETER this@Enum: Enum - FUN FAKE_OVERRIDE public final override fun getDeclaringClass(): java.lang.Class! - $this: VALUE_PARAMETER this@Enum: Enum - FUN FAKE_OVERRIDE public final override fun compareTo(other: Test2): kotlin.Int - $this: VALUE_PARAMETER this@Enum: Enum - VALUE_PARAMETER value-parameter other: Test2 - FUN FAKE_OVERRIDE public final override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Enum: Enum - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public final override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Enum: Enum - PROPERTY FAKE_OVERRIDE public final override val name: kotlin.String - FUN FAKE_OVERRIDE public final override fun (): kotlin.String - $this: VALUE_PARAMETER this@Enum: Enum - PROPERTY FAKE_OVERRIDE public final override val ordinal: kotlin.Int - FUN FAKE_OVERRIDE public final override fun (): kotlin.Int - $this: VALUE_PARAMETER this@Enum: Enum - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Enum: Enum - FUN ENUM_CLASS_SPECIAL_MEMBER public final fun values(): kotlin.Array + x: CONST Int type=kotlin.Int value=0 + FUN name:foo visibility:public modality:ABSTRACT <> ($this:Test2) returnType:Unit flags: + $this: VALUE_PARAMETER name: type:Test2 flags: + FUN FAKE_OVERRIDE name:clone visibility:protected modality:FINAL <> ($this:kotlin.Enum) returnType:Any flags: + $this: VALUE_PARAMETER name: type:kotlin.Enum flags: + FUN FAKE_OVERRIDE name:finalize visibility:protected/*protected and package*/ modality:FINAL <> ($this:kotlin.Enum) returnType:Unit flags: + $this: VALUE_PARAMETER name: type:kotlin.Enum flags: + FUN FAKE_OVERRIDE name:getDeclaringClass visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:(java.lang.Class<(Test2..Test2?)>..java.lang.Class<(Test2..Test2?)>?) flags: + $this: VALUE_PARAMETER name: type:kotlin.Enum flags: + FUN FAKE_OVERRIDE name:compareTo visibility:public modality:FINAL <> ($this:kotlin.Enum, other:Test2) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Enum flags: + VALUE_PARAMETER name:other index:0 type:Test2 flags: + FUN FAKE_OVERRIDE name:equals visibility:public modality:FINAL <> ($this:kotlin.Enum, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Enum flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Enum flags: + PROPERTY FAKE_OVERRIDE name:name type:kotlin.String visibility:public modality:FINAL flags:val + FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Enum flags: + PROPERTY FAKE_OVERRIDE name:ordinal type:kotlin.Int visibility:public modality:FINAL flags:val + FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Enum flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Enum) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Enum flags: + FUN ENUM_CLASS_SPECIAL_MEMBER name:values visibility:public modality:FINAL <> () returnType:Array flags: SYNTHETIC_BODY kind=ENUM_VALUES - FUN ENUM_CLASS_SPECIAL_MEMBER public final fun valueOf(value: kotlin.String): Test2 - VALUE_PARAMETER value-parameter value: kotlin.String + FUN ENUM_CLASS_SPECIAL_MEMBER name:valueOf visibility:public modality:FINAL <> (value:kotlin.String) returnType:Test2 flags: + VALUE_PARAMETER name:value index:0 type:kotlin.String flags: SYNTHETIC_BODY kind=ENUM_VALUEOF diff --git a/compiler/testData/ir/irText/classes/initBlock.txt b/compiler/testData/ir/irText/classes/initBlock.txt index eca9d205cc2..548f0c15111 100644 --- a/compiler/testData/ir/irText/classes/initBlock.txt +++ b/compiler/testData/ir/irText/classes/initBlock.txt @@ -1,117 +1,117 @@ -FILE /initBlock.kt - CLASS CLASS Test1 - $this: VALUE_PARAMETER this@Test1: Test1 - CONSTRUCTOR public constructor Test1() +FILE fqName: fileName:/initBlock.kt + CLASS CLASS name:Test1 modality:FINAL visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Test1 flags: + CONSTRUCTOR visibility:public <> () returnType:Test1 flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='Test1' ANONYMOUS_INITIALIZER Test1 BLOCK_BODY CALL 'println(): Unit' type=kotlin.Unit origin=null - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any - CLASS CLASS Test2 - $this: VALUE_PARAMETER this@Test2: Test2 - CONSTRUCTOR public constructor Test2(x: kotlin.Int) - VALUE_PARAMETER value-parameter x: kotlin.Int + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + CLASS CLASS name:Test2 modality:FINAL visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Test2 flags: + CONSTRUCTOR visibility:public <> (x:kotlin.Int) returnType:Test2 flags: + VALUE_PARAMETER name:x index:0 type:kotlin.Int flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='Test2' - PROPERTY public final val x: kotlin.Int - FIELD PROPERTY_BACKING_FIELD public final val x: kotlin.Int + PROPERTY name:x type:kotlin.Int visibility:public modality:FINAL flags:val + FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.Int visibility:public EXPRESSION_BODY GET_VAR 'value-parameter x: Int' type=kotlin.Int origin=INITIALIZE_PROPERTY_FROM_PARAMETER - FUN DEFAULT_PROPERTY_ACCESSOR public final fun (): kotlin.Int - $this: VALUE_PARAMETER this@Test2: Test2 + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:Test2) returnType:Int flags: + $this: VALUE_PARAMETER name: type:Test2 flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): Int' + RETURN type=kotlin.Nothing from=(): Int' GET_FIELD 'x: Int' type=kotlin.Int origin=null receiver: GET_VAR 'this@Test2: Test2' type=Test2 origin=null ANONYMOUS_INITIALIZER Test2 BLOCK_BODY CALL 'println(): Unit' type=kotlin.Unit origin=null - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any - CLASS CLASS Test3 - $this: VALUE_PARAMETER this@Test3: Test3 + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + CLASS CLASS name:Test3 modality:FINAL visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Test3 flags: ANONYMOUS_INITIALIZER Test3 BLOCK_BODY CALL 'println(): Unit' type=kotlin.Unit origin=null - CONSTRUCTOR public constructor Test3() + CONSTRUCTOR visibility:public <> () returnType:Test3 flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='Test3' - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any - CLASS CLASS Test4 - $this: VALUE_PARAMETER this@Test4: Test4 + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + CLASS CLASS name:Test4 modality:FINAL visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Test4 flags: ANONYMOUS_INITIALIZER Test4 BLOCK_BODY CALL 'println(Any?): Unit' type=kotlin.Unit origin=null - message: CONST String type=kotlin.String value='1' - CONSTRUCTOR public constructor Test4() + message: CONST String type=kotlin.String value=1 + CONSTRUCTOR visibility:public <> () returnType:Test4 flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='Test4' ANONYMOUS_INITIALIZER Test4 BLOCK_BODY CALL 'println(Any?): Unit' type=kotlin.Unit origin=null - message: CONST String type=kotlin.String value='2' - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any - CLASS CLASS Test5 - $this: VALUE_PARAMETER this@Test5: Test5 - CONSTRUCTOR public constructor Test5() + message: CONST String type=kotlin.String value=2 + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + CLASS CLASS name:Test5 modality:FINAL visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Test5 flags: + CONSTRUCTOR visibility:public <> () returnType:Test5 flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='Test5' ANONYMOUS_INITIALIZER Test5 BLOCK_BODY CALL 'println(Any?): Unit' type=kotlin.Unit origin=null - message: CONST String type=kotlin.String value='1' - CLASS CLASS TestInner - $this: VALUE_PARAMETER this@TestInner: TestInner - CONSTRUCTOR public constructor TestInner() - $outer: VALUE_PARAMETER this@Test5: Test5 + message: CONST String type=kotlin.String value=1 + CLASS CLASS name:TestInner modality:FINAL visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Test5.TestInner flags: + CONSTRUCTOR visibility:public <> ($this:Test5) returnType:Test5.TestInner flags: + $outer: VALUE_PARAMETER name: type:Test5 flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='TestInner' ANONYMOUS_INITIALIZER TestInner BLOCK_BODY CALL 'println(Any?): Unit' type=kotlin.Unit origin=null - message: CONST String type=kotlin.String value='2' - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any + message: CONST String type=kotlin.String value=2 + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: diff --git a/compiler/testData/ir/irText/classes/initVal.txt b/compiler/testData/ir/irText/classes/initVal.txt index 41cf2def39e..af670aecd5c 100644 --- a/compiler/testData/ir/irText/classes/initVal.txt +++ b/compiler/testData/ir/irText/classes/initVal.txt @@ -1,75 +1,75 @@ -FILE /initVal.kt - CLASS CLASS TestInitValFromParameter - $this: VALUE_PARAMETER this@TestInitValFromParameter: TestInitValFromParameter - CONSTRUCTOR public constructor TestInitValFromParameter(x: kotlin.Int) - VALUE_PARAMETER value-parameter x: kotlin.Int +FILE fqName: fileName:/initVal.kt + CLASS CLASS name:TestInitValFromParameter modality:FINAL visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:TestInitValFromParameter flags: + CONSTRUCTOR visibility:public <> (x:kotlin.Int) returnType:TestInitValFromParameter flags: + VALUE_PARAMETER name:x index:0 type:kotlin.Int flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='TestInitValFromParameter' - PROPERTY public final val x: kotlin.Int - FIELD PROPERTY_BACKING_FIELD public final val x: kotlin.Int + PROPERTY name:x type:kotlin.Int visibility:public modality:FINAL flags:val + FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.Int visibility:public EXPRESSION_BODY GET_VAR 'value-parameter x: Int' type=kotlin.Int origin=INITIALIZE_PROPERTY_FROM_PARAMETER - FUN DEFAULT_PROPERTY_ACCESSOR public final fun (): kotlin.Int - $this: VALUE_PARAMETER this@TestInitValFromParameter: TestInitValFromParameter + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:TestInitValFromParameter) returnType:Int flags: + $this: VALUE_PARAMETER name: type:TestInitValFromParameter flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): Int' + RETURN type=kotlin.Nothing from=(): Int' GET_FIELD 'x: Int' type=kotlin.Int origin=null receiver: GET_VAR 'this@TestInitValFromParameter: TestInitValFromParameter' type=TestInitValFromParameter origin=null - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any - CLASS CLASS TestInitValInClass - $this: VALUE_PARAMETER this@TestInitValInClass: TestInitValInClass - CONSTRUCTOR public constructor TestInitValInClass() + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + CLASS CLASS name:TestInitValInClass modality:FINAL visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:TestInitValInClass flags: + CONSTRUCTOR visibility:public <> () returnType:TestInitValInClass flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='TestInitValInClass' - PROPERTY public final val x: kotlin.Int = 0 - FIELD PROPERTY_BACKING_FIELD public final val x: kotlin.Int = 0 + PROPERTY name:x type:kotlin.Int visibility:public modality:FINAL flags:val + FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.Int visibility:public EXPRESSION_BODY - CONST Int type=kotlin.Int value='0' - FUN DEFAULT_PROPERTY_ACCESSOR public final fun (): kotlin.Int - $this: VALUE_PARAMETER this@TestInitValInClass: TestInitValInClass + CONST Int type=kotlin.Int value=0 + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:TestInitValInClass) returnType:Int flags: + $this: VALUE_PARAMETER name: type:TestInitValInClass flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): Int' + RETURN type=kotlin.Nothing from=(): Int' GET_FIELD 'x: Int' type=kotlin.Int origin=null receiver: GET_VAR 'this@TestInitValInClass: TestInitValInClass' type=TestInitValInClass origin=null - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any - CLASS CLASS TestInitValInInitBlock - $this: VALUE_PARAMETER this@TestInitValInInitBlock: TestInitValInInitBlock - CONSTRUCTOR public constructor TestInitValInInitBlock() + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + CLASS CLASS name:TestInitValInInitBlock modality:FINAL visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:TestInitValInInitBlock flags: + CONSTRUCTOR visibility:public <> () returnType:TestInitValInInitBlock flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='TestInitValInInitBlock' - PROPERTY public final val x: kotlin.Int - FIELD PROPERTY_BACKING_FIELD public final val x: kotlin.Int - FUN DEFAULT_PROPERTY_ACCESSOR public final fun (): kotlin.Int - $this: VALUE_PARAMETER this@TestInitValInInitBlock: TestInitValInInitBlock + PROPERTY name:x type:kotlin.Int visibility:public modality:FINAL flags:val + FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.Int visibility:public + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:TestInitValInInitBlock) returnType:Int flags: + $this: VALUE_PARAMETER name: type:TestInitValInInitBlock flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): Int' + RETURN type=kotlin.Nothing from=(): Int' GET_FIELD 'x: Int' type=kotlin.Int origin=null receiver: GET_VAR 'this@TestInitValInInitBlock: TestInitValInInitBlock' type=TestInitValInInitBlock origin=null ANONYMOUS_INITIALIZER TestInitValInInitBlock BLOCK_BODY SET_FIELD 'x: Int' type=kotlin.Unit origin=null receiver: GET_VAR 'this@TestInitValInInitBlock: TestInitValInInitBlock' type=TestInitValInInitBlock origin=null - value: CONST Int type=kotlin.Int value='0' - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any + value: CONST Int type=kotlin.Int value=0 + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: diff --git a/compiler/testData/ir/irText/classes/initVar.txt b/compiler/testData/ir/irText/classes/initVar.txt index a2aac136153..422bebb48bc 100644 --- a/compiler/testData/ir/irText/classes/initVar.txt +++ b/compiler/testData/ir/irText/classes/initVar.txt @@ -1,82 +1,82 @@ -FILE /initVar.kt - CLASS CLASS TestInitVarFromParameter - $this: VALUE_PARAMETER this@TestInitVarFromParameter: TestInitVarFromParameter - CONSTRUCTOR public constructor TestInitVarFromParameter(x: kotlin.Int) - VALUE_PARAMETER value-parameter x: kotlin.Int +FILE fqName: fileName:/initVar.kt + CLASS CLASS name:TestInitVarFromParameter modality:FINAL visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:TestInitVarFromParameter flags: + CONSTRUCTOR visibility:public <> (x:kotlin.Int) returnType:TestInitVarFromParameter flags: + VALUE_PARAMETER name:x index:0 type:kotlin.Int flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='TestInitVarFromParameter' - PROPERTY public final var x: kotlin.Int - FIELD PROPERTY_BACKING_FIELD public final var x: kotlin.Int + PROPERTY name:x type:kotlin.Int visibility:public modality:FINAL flags:var + FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.Int visibility:public EXPRESSION_BODY GET_VAR 'value-parameter x: Int' type=kotlin.Int origin=INITIALIZE_PROPERTY_FROM_PARAMETER - FUN DEFAULT_PROPERTY_ACCESSOR public final fun (): kotlin.Int - $this: VALUE_PARAMETER this@TestInitVarFromParameter: TestInitVarFromParameter + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:TestInitVarFromParameter) returnType:Int flags: + $this: VALUE_PARAMETER name: type:TestInitVarFromParameter flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): Int' + RETURN type=kotlin.Nothing from=(): Int' GET_FIELD 'x: Int' type=kotlin.Int origin=null receiver: GET_VAR 'this@TestInitVarFromParameter: TestInitVarFromParameter' type=TestInitVarFromParameter origin=null - FUN DEFAULT_PROPERTY_ACCESSOR public final fun (: kotlin.Int): kotlin.Unit - $this: VALUE_PARAMETER this@TestInitVarFromParameter: TestInitVarFromParameter - VALUE_PARAMETER value-parameter : kotlin.Int + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:TestInitVarFromParameter, :kotlin.Int) returnType:Unit flags: + $this: VALUE_PARAMETER name: type:TestInitVarFromParameter flags: + VALUE_PARAMETER name: index:0 type:kotlin.Int flags: BLOCK_BODY SET_FIELD 'x: Int' type=kotlin.Unit origin=null receiver: GET_VAR 'this@TestInitVarFromParameter: TestInitVarFromParameter' type=TestInitVarFromParameter origin=null value: GET_VAR 'value-parameter : Int' type=kotlin.Int origin=null - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any - CLASS CLASS TestInitVarInClass - $this: VALUE_PARAMETER this@TestInitVarInClass: TestInitVarInClass - CONSTRUCTOR public constructor TestInitVarInClass() + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + CLASS CLASS name:TestInitVarInClass modality:FINAL visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:TestInitVarInClass flags: + CONSTRUCTOR visibility:public <> () returnType:TestInitVarInClass flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='TestInitVarInClass' - PROPERTY public final var x: kotlin.Int - FIELD PROPERTY_BACKING_FIELD public final var x: kotlin.Int + PROPERTY name:x type:kotlin.Int visibility:public modality:FINAL flags:var + FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.Int visibility:public EXPRESSION_BODY - CONST Int type=kotlin.Int value='0' - FUN DEFAULT_PROPERTY_ACCESSOR public final fun (): kotlin.Int - $this: VALUE_PARAMETER this@TestInitVarInClass: TestInitVarInClass + CONST Int type=kotlin.Int value=0 + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:TestInitVarInClass) returnType:Int flags: + $this: VALUE_PARAMETER name: type:TestInitVarInClass flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): Int' + RETURN type=kotlin.Nothing from=(): Int' GET_FIELD 'x: Int' type=kotlin.Int origin=null receiver: GET_VAR 'this@TestInitVarInClass: TestInitVarInClass' type=TestInitVarInClass origin=null - FUN DEFAULT_PROPERTY_ACCESSOR public final fun (: kotlin.Int): kotlin.Unit - $this: VALUE_PARAMETER this@TestInitVarInClass: TestInitVarInClass - VALUE_PARAMETER value-parameter : kotlin.Int + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:TestInitVarInClass, :kotlin.Int) returnType:Unit flags: + $this: VALUE_PARAMETER name: type:TestInitVarInClass flags: + VALUE_PARAMETER name: index:0 type:kotlin.Int flags: BLOCK_BODY SET_FIELD 'x: Int' type=kotlin.Unit origin=null receiver: GET_VAR 'this@TestInitVarInClass: TestInitVarInClass' type=TestInitVarInClass origin=null value: GET_VAR 'value-parameter : Int' type=kotlin.Int origin=null - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any - CLASS CLASS TestInitVarInInitBlock - $this: VALUE_PARAMETER this@TestInitVarInInitBlock: TestInitVarInInitBlock - CONSTRUCTOR public constructor TestInitVarInInitBlock() + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + CLASS CLASS name:TestInitVarInInitBlock modality:FINAL visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:TestInitVarInInitBlock flags: + CONSTRUCTOR visibility:public <> () returnType:TestInitVarInInitBlock flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='TestInitVarInInitBlock' - PROPERTY public final var x: kotlin.Int - FIELD PROPERTY_BACKING_FIELD public final var x: kotlin.Int - FUN DEFAULT_PROPERTY_ACCESSOR public final fun (): kotlin.Int - $this: VALUE_PARAMETER this@TestInitVarInInitBlock: TestInitVarInInitBlock + PROPERTY name:x type:kotlin.Int visibility:public modality:FINAL flags:var + FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.Int visibility:public + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:TestInitVarInInitBlock) returnType:Int flags: + $this: VALUE_PARAMETER name: type:TestInitVarInInitBlock flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): Int' + RETURN type=kotlin.Nothing from=(): Int' GET_FIELD 'x: Int' type=kotlin.Int origin=null receiver: GET_VAR 'this@TestInitVarInInitBlock: TestInitVarInInitBlock' type=TestInitVarInInitBlock origin=null - FUN DEFAULT_PROPERTY_ACCESSOR public final fun (: kotlin.Int): kotlin.Unit - $this: VALUE_PARAMETER this@TestInitVarInInitBlock: TestInitVarInInitBlock - VALUE_PARAMETER value-parameter : kotlin.Int + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:TestInitVarInInitBlock, :kotlin.Int) returnType:Unit flags: + $this: VALUE_PARAMETER name: type:TestInitVarInInitBlock flags: + VALUE_PARAMETER name: index:0 type:kotlin.Int flags: BLOCK_BODY SET_FIELD 'x: Int' type=kotlin.Unit origin=null receiver: GET_VAR 'this@TestInitVarInInitBlock: TestInitVarInInitBlock' type=TestInitVarInInitBlock origin=null @@ -85,57 +85,57 @@ FILE /initVar.kt BLOCK_BODY CALL '(Int): Unit' type=kotlin.Unit origin=EQ $this: GET_VAR 'this@TestInitVarInInitBlock: TestInitVarInInitBlock' type=TestInitVarInInitBlock origin=null - : CONST Int type=kotlin.Int value='0' - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any - CLASS CLASS TestInitVarWithCustomSetter - $this: VALUE_PARAMETER this@TestInitVarWithCustomSetter: TestInitVarWithCustomSetter - CONSTRUCTOR public constructor TestInitVarWithCustomSetter() + : CONST Int type=kotlin.Int value=0 + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + CLASS CLASS name:TestInitVarWithCustomSetter modality:FINAL visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:TestInitVarWithCustomSetter flags: + CONSTRUCTOR visibility:public <> () returnType:TestInitVarWithCustomSetter flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='TestInitVarWithCustomSetter' - PROPERTY public final var x: kotlin.Int - FIELD PROPERTY_BACKING_FIELD public final var x: kotlin.Int + PROPERTY name:x type:kotlin.Int visibility:public modality:FINAL flags:var + FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.Int visibility:public EXPRESSION_BODY - CONST Int type=kotlin.Int value='0' - FUN DEFAULT_PROPERTY_ACCESSOR public final fun (): kotlin.Int - $this: VALUE_PARAMETER this@TestInitVarWithCustomSetter: TestInitVarWithCustomSetter + CONST Int type=kotlin.Int value=0 + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:TestInitVarWithCustomSetter) returnType:Int flags: + $this: VALUE_PARAMETER name: type:TestInitVarWithCustomSetter flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): Int' + RETURN type=kotlin.Nothing from=(): Int' GET_FIELD 'x: Int' type=kotlin.Int origin=null receiver: GET_VAR 'this@TestInitVarWithCustomSetter: TestInitVarWithCustomSetter' type=TestInitVarWithCustomSetter origin=null - FUN public final fun (value: kotlin.Int): kotlin.Unit - $this: VALUE_PARAMETER this@TestInitVarWithCustomSetter: TestInitVarWithCustomSetter - VALUE_PARAMETER value-parameter value: kotlin.Int + FUN name: visibility:public modality:FINAL <> ($this:TestInitVarWithCustomSetter, value:kotlin.Int) returnType:Unit flags: + $this: VALUE_PARAMETER name: type:TestInitVarWithCustomSetter flags: + VALUE_PARAMETER name:value index:0 type:kotlin.Int flags: BLOCK_BODY SET_FIELD 'x: Int' type=kotlin.Unit origin=EQ receiver: GET_VAR 'this@TestInitVarWithCustomSetter: TestInitVarWithCustomSetter' type=TestInitVarWithCustomSetter origin=null value: GET_VAR 'value-parameter value: Int' type=kotlin.Int origin=null - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any - CLASS CLASS TestInitVarWithCustomSetterWithExplicitCtor - $this: VALUE_PARAMETER this@TestInitVarWithCustomSetterWithExplicitCtor: TestInitVarWithCustomSetterWithExplicitCtor - PROPERTY public final var x: kotlin.Int - FIELD PROPERTY_BACKING_FIELD public final var x: kotlin.Int - FUN DEFAULT_PROPERTY_ACCESSOR public final fun (): kotlin.Int - $this: VALUE_PARAMETER this@TestInitVarWithCustomSetterWithExplicitCtor: TestInitVarWithCustomSetterWithExplicitCtor + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + CLASS CLASS name:TestInitVarWithCustomSetterWithExplicitCtor modality:FINAL visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:TestInitVarWithCustomSetterWithExplicitCtor flags: + PROPERTY name:x type:kotlin.Int visibility:public modality:FINAL flags:var + FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.Int visibility:public + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:TestInitVarWithCustomSetterWithExplicitCtor) returnType:Int flags: + $this: VALUE_PARAMETER name: type:TestInitVarWithCustomSetterWithExplicitCtor flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): Int' + RETURN type=kotlin.Nothing from=(): Int' GET_FIELD 'x: Int' type=kotlin.Int origin=null receiver: GET_VAR 'this@TestInitVarWithCustomSetterWithExplicitCtor: TestInitVarWithCustomSetterWithExplicitCtor' type=TestInitVarWithCustomSetterWithExplicitCtor origin=null - FUN public final fun (value: kotlin.Int): kotlin.Unit - $this: VALUE_PARAMETER this@TestInitVarWithCustomSetterWithExplicitCtor: TestInitVarWithCustomSetterWithExplicitCtor - VALUE_PARAMETER value-parameter value: kotlin.Int + FUN name: visibility:public modality:FINAL <> ($this:TestInitVarWithCustomSetterWithExplicitCtor, value:kotlin.Int) returnType:Unit flags: + $this: VALUE_PARAMETER name: type:TestInitVarWithCustomSetterWithExplicitCtor flags: + VALUE_PARAMETER name:value index:0 type:kotlin.Int flags: BLOCK_BODY SET_FIELD 'x: Int' type=kotlin.Unit origin=EQ receiver: GET_VAR 'this@TestInitVarWithCustomSetterWithExplicitCtor: TestInitVarWithCustomSetterWithExplicitCtor' type=TestInitVarWithCustomSetterWithExplicitCtor origin=null @@ -144,47 +144,47 @@ FILE /initVar.kt BLOCK_BODY CALL '(Int): Unit' type=kotlin.Unit origin=EQ $this: GET_VAR 'this@TestInitVarWithCustomSetterWithExplicitCtor: TestInitVarWithCustomSetterWithExplicitCtor' type=TestInitVarWithCustomSetterWithExplicitCtor origin=null - value: CONST Int type=kotlin.Int value='0' - CONSTRUCTOR public constructor TestInitVarWithCustomSetterWithExplicitCtor() + value: CONST Int type=kotlin.Int value=0 + CONSTRUCTOR visibility:public <> () returnType:TestInitVarWithCustomSetterWithExplicitCtor flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='TestInitVarWithCustomSetterWithExplicitCtor' - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any - CLASS CLASS TestInitVarWithCustomSetterInCtor - $this: VALUE_PARAMETER this@TestInitVarWithCustomSetterInCtor: TestInitVarWithCustomSetterInCtor - PROPERTY public final var x: kotlin.Int - FIELD PROPERTY_BACKING_FIELD public final var x: kotlin.Int - FUN DEFAULT_PROPERTY_ACCESSOR public final fun (): kotlin.Int - $this: VALUE_PARAMETER this@TestInitVarWithCustomSetterInCtor: TestInitVarWithCustomSetterInCtor + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + CLASS CLASS name:TestInitVarWithCustomSetterInCtor modality:FINAL visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:TestInitVarWithCustomSetterInCtor flags: + PROPERTY name:x type:kotlin.Int visibility:public modality:FINAL flags:var + FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.Int visibility:public + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:TestInitVarWithCustomSetterInCtor) returnType:Int flags: + $this: VALUE_PARAMETER name: type:TestInitVarWithCustomSetterInCtor flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): Int' + RETURN type=kotlin.Nothing from=(): Int' GET_FIELD 'x: Int' type=kotlin.Int origin=null receiver: GET_VAR 'this@TestInitVarWithCustomSetterInCtor: TestInitVarWithCustomSetterInCtor' type=TestInitVarWithCustomSetterInCtor origin=null - FUN public final fun (value: kotlin.Int): kotlin.Unit - $this: VALUE_PARAMETER this@TestInitVarWithCustomSetterInCtor: TestInitVarWithCustomSetterInCtor - VALUE_PARAMETER value-parameter value: kotlin.Int + FUN name: visibility:public modality:FINAL <> ($this:TestInitVarWithCustomSetterInCtor, value:kotlin.Int) returnType:Unit flags: + $this: VALUE_PARAMETER name: type:TestInitVarWithCustomSetterInCtor flags: + VALUE_PARAMETER name:value index:0 type:kotlin.Int flags: BLOCK_BODY SET_FIELD 'x: Int' type=kotlin.Unit origin=EQ receiver: GET_VAR 'this@TestInitVarWithCustomSetterInCtor: TestInitVarWithCustomSetterInCtor' type=TestInitVarWithCustomSetterInCtor origin=null value: GET_VAR 'value-parameter value: Int' type=kotlin.Int origin=null - CONSTRUCTOR public constructor TestInitVarWithCustomSetterInCtor() + CONSTRUCTOR visibility:public <> () returnType:TestInitVarWithCustomSetterInCtor flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='TestInitVarWithCustomSetterInCtor' CALL '(Int): Unit' type=kotlin.Unit origin=EQ $this: GET_VAR 'this@TestInitVarWithCustomSetterInCtor: TestInitVarWithCustomSetterInCtor' type=TestInitVarWithCustomSetterInCtor origin=null - value: CONST Int type=kotlin.Int value='42' - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any + value: CONST Int type=kotlin.Int value=42 + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: diff --git a/compiler/testData/ir/irText/classes/innerClass.txt b/compiler/testData/ir/irText/classes/innerClass.txt index babcd785c6d..18e3711eb81 100644 --- a/compiler/testData/ir/irText/classes/innerClass.txt +++ b/compiler/testData/ir/irText/classes/innerClass.txt @@ -1,44 +1,44 @@ -FILE /innerClass.kt - CLASS CLASS Outer - $this: VALUE_PARAMETER this@Outer: Outer - CONSTRUCTOR public constructor Outer() +FILE fqName: fileName:/innerClass.kt + CLASS CLASS name:Outer modality:FINAL visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Outer flags: + CONSTRUCTOR visibility:public <> () returnType:Outer flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='Outer' - CLASS CLASS TestInnerClass - $this: VALUE_PARAMETER this@TestInnerClass: TestInnerClass - CONSTRUCTOR public constructor TestInnerClass() - $outer: VALUE_PARAMETER this@Outer: Outer + CLASS CLASS name:TestInnerClass modality:OPEN visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Outer.TestInnerClass flags: + CONSTRUCTOR visibility:public <> ($this:Outer) returnType:Outer.TestInnerClass flags: + $outer: VALUE_PARAMETER name: type:Outer flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='TestInnerClass' - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any - CLASS CLASS DerivedInnerClass - $this: VALUE_PARAMETER this@DerivedInnerClass: DerivedInnerClass - CONSTRUCTOR public constructor DerivedInnerClass() - $outer: VALUE_PARAMETER this@Outer: Outer + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + CLASS CLASS name:DerivedInnerClass modality:FINAL visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Outer.DerivedInnerClass flags: + CONSTRUCTOR visibility:public <> ($this:Outer) returnType:Outer.DerivedInnerClass flags: + $outer: VALUE_PARAMETER name: type:Outer flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor TestInnerClass()' $this: GET_VAR 'this@Outer: Outer' type=Outer origin=null INSTANCE_INITIALIZER_CALL classDescriptor='DerivedInnerClass' - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: diff --git a/compiler/testData/ir/irText/classes/innerClassWithDelegatingConstructor.txt b/compiler/testData/ir/irText/classes/innerClassWithDelegatingConstructor.txt index 9e81dd41e8a..51f52f3e1ab 100644 --- a/compiler/testData/ir/irText/classes/innerClassWithDelegatingConstructor.txt +++ b/compiler/testData/ir/irText/classes/innerClassWithDelegatingConstructor.txt @@ -1,46 +1,46 @@ -FILE /innerClassWithDelegatingConstructor.kt - CLASS CLASS Outer - $this: VALUE_PARAMETER this@Outer: Outer - CONSTRUCTOR public constructor Outer() +FILE fqName: fileName:/innerClassWithDelegatingConstructor.kt + CLASS CLASS name:Outer modality:FINAL visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Outer flags: + CONSTRUCTOR visibility:public <> () returnType:Outer flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='Outer' - CLASS CLASS Inner - $this: VALUE_PARAMETER this@Inner: Inner - CONSTRUCTOR public constructor Inner(x: kotlin.Int) - $outer: VALUE_PARAMETER this@Outer: Outer - VALUE_PARAMETER value-parameter x: kotlin.Int + CLASS CLASS name:Inner modality:FINAL visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Outer.Inner flags: + CONSTRUCTOR visibility:public <> ($this:Outer, x:kotlin.Int) returnType:Outer.Inner flags: + $outer: VALUE_PARAMETER name: type:Outer flags: + VALUE_PARAMETER name:x index:0 type:kotlin.Int flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='Inner' - PROPERTY public final val x: kotlin.Int - FIELD PROPERTY_BACKING_FIELD public final val x: kotlin.Int + PROPERTY name:x type:kotlin.Int visibility:public modality:FINAL flags:val + FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.Int visibility:public EXPRESSION_BODY GET_VAR 'value-parameter x: Int' type=kotlin.Int origin=INITIALIZE_PROPERTY_FROM_PARAMETER - FUN DEFAULT_PROPERTY_ACCESSOR public final fun (): kotlin.Int - $this: VALUE_PARAMETER this@Inner: Inner + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:Outer.Inner) returnType:Int flags: + $this: VALUE_PARAMETER name: type:Outer.Inner flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): Int' + RETURN type=kotlin.Nothing from=(): Int' GET_FIELD 'x: Int' type=kotlin.Int origin=null receiver: GET_VAR 'this@Inner: Inner' type=Outer.Inner origin=null - CONSTRUCTOR public constructor Inner() - $outer: VALUE_PARAMETER this@Outer: Outer + CONSTRUCTOR visibility:public <> ($this:Outer) returnType:Outer.Inner flags: + $outer: VALUE_PARAMETER name: type:Outer flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Inner(Int)' $this: GET_VAR 'this@Outer: Outer' type=Outer origin=null - x: CONST Int type=kotlin.Int value='0' - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any + x: CONST Int type=kotlin.Int value=0 + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: diff --git a/compiler/testData/ir/irText/classes/lambdaInDataClassDefaultParameter.txt b/compiler/testData/ir/irText/classes/lambdaInDataClassDefaultParameter.txt index e61c321fffd..a2085721390 100644 --- a/compiler/testData/ir/irText/classes/lambdaInDataClassDefaultParameter.txt +++ b/compiler/testData/ir/irText/classes/lambdaInDataClassDefaultParameter.txt @@ -1,85 +1,85 @@ -FILE /lambdaInDataClassDefaultParameter.kt - CLASS CLASS A - $this: VALUE_PARAMETER this@A: A - CONSTRUCTOR public constructor A(runA: A.(kotlin.String) -> kotlin.Unit = ...) - VALUE_PARAMETER value-parameter runA: A.(kotlin.String) -> kotlin.Unit = ... +FILE fqName: fileName:/lambdaInDataClassDefaultParameter.kt + CLASS CLASS name:A modality:FINAL visibility:public flags:data + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:A flags: + CONSTRUCTOR visibility:public <> (runA:A.(kotlin.String) -> kotlin.Unit) returnType:A flags: + VALUE_PARAMETER name:runA index:0 type:A.(kotlin.String) -> kotlin.Unit flags: EXPRESSION_BODY BLOCK type=A.(kotlin.String) -> kotlin.Unit origin=LAMBDA - FUN LOCAL_FUNCTION_FOR_LAMBDA local final fun A.(it: kotlin.String): kotlin.Unit - $receiver: VALUE_PARAMETER this@: A - VALUE_PARAMETER value-parameter it: kotlin.String + FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> ($receiver:A, it:kotlin.String) returnType:Unit flags: + $receiver: VALUE_PARAMETER name: type:A flags: + VALUE_PARAMETER name:it index:0 type:kotlin.String flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(String) on A: Unit' + RETURN type=kotlin.Nothing from=(String) on A: Unit' GET_OBJECT 'Unit' type=kotlin.Unit FUNCTION_REFERENCE '(String) on A: Unit' type=A.(kotlin.String) -> kotlin.Unit origin=LAMBDA BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='A' - PROPERTY public final val runA: A.(kotlin.String) -> kotlin.Unit - FIELD PROPERTY_BACKING_FIELD public final val runA: A.(kotlin.String) -> kotlin.Unit + PROPERTY name:runA type:A.(kotlin.String) -> kotlin.Unit visibility:public modality:FINAL flags:val + FIELD PROPERTY_BACKING_FIELD name:runA type:A.(kotlin.String) -> kotlin.Unit visibility:public EXPRESSION_BODY GET_VAR 'value-parameter runA: A.(String) -> Unit = ...' type=A.(kotlin.String) -> kotlin.Unit origin=INITIALIZE_PROPERTY_FROM_PARAMETER - FUN DEFAULT_PROPERTY_ACCESSOR public final fun (): A.(kotlin.String) -> kotlin.Unit - $this: VALUE_PARAMETER this@A: A + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:A) returnType:[@kotlin.ExtensionFunctionType] Function2 flags: + $this: VALUE_PARAMETER name: type:A flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): A.(String) -> Unit' + RETURN type=kotlin.Nothing from=(): A.(String) -> Unit' GET_FIELD 'runA: A.(String) -> Unit' type=A.(kotlin.String) -> kotlin.Unit origin=null receiver: GET_VAR 'this@A: A' type=A origin=null - FUN GENERATED_DATA_CLASS_MEMBER public final operator fun component1(): A.(kotlin.String) -> kotlin.Unit - $this: VALUE_PARAMETER this@A: A + FUN GENERATED_DATA_CLASS_MEMBER name:component1 visibility:public modality:FINAL <> ($this:A) returnType:[@kotlin.ExtensionFunctionType] Function2 flags: + $this: VALUE_PARAMETER name: type:A flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='component1(): A.(String) -> Unit' + RETURN type=kotlin.Nothing from=component1(): A.(String) -> Unit' CALL '(): A.(String) -> Unit' type=A.(kotlin.String) -> kotlin.Unit origin=GET_PROPERTY $this: GET_VAR 'this@A: A' type=A origin=null - FUN GENERATED_DATA_CLASS_MEMBER public final fun copy(runA: A.(kotlin.String) -> kotlin.Unit = ...): A - $this: VALUE_PARAMETER this@A: A - VALUE_PARAMETER value-parameter runA: A.(kotlin.String) -> kotlin.Unit = ... + FUN GENERATED_DATA_CLASS_MEMBER name:copy visibility:public modality:FINAL <> ($this:A, runA:A.(kotlin.String) -> kotlin.Unit) returnType:A flags: + $this: VALUE_PARAMETER name: type:A flags: + VALUE_PARAMETER name:runA index:0 type:A.(kotlin.String) -> kotlin.Unit flags: EXPRESSION_BODY CALL '(): A.(String) -> Unit' type=A.(kotlin.String) -> kotlin.Unit origin=GET_PROPERTY $this: GET_VAR 'this@A: A' type=A origin=null BLOCK_BODY - RETURN type=kotlin.Nothing from='copy(A.(String) -> Unit = ...): A' + RETURN type=kotlin.Nothing from=copy(A.(String) -> Unit = ...): A' CALL 'constructor A(A.(String) -> Unit = ...)' type=A origin=null runA: GET_VAR 'value-parameter runA: A.(String) -> Unit = ...' type=A.(kotlin.String) -> kotlin.Unit origin=null - FUN GENERATED_DATA_CLASS_MEMBER public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@A: A + FUN GENERATED_DATA_CLASS_MEMBER name:toString visibility:public modality:OPEN <> ($this:A) returnType:String flags: + $this: VALUE_PARAMETER name: type:A flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='toString(): String' + RETURN type=kotlin.Nothing from=toString(): String' STRING_CONCATENATION type=kotlin.String - CONST String type=kotlin.String value='A(' - CONST String type=kotlin.String value='runA=' + CONST String type=kotlin.String value=A( + CONST String type=kotlin.String value=runA= CALL '(): A.(String) -> Unit' type=A.(kotlin.String) -> kotlin.Unit origin=GET_PROPERTY $this: GET_VAR 'this@A: A' type=A origin=null - CONST String type=kotlin.String value=')' - FUN GENERATED_DATA_CLASS_MEMBER public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@A: A + CONST String type=kotlin.String value=) + FUN GENERATED_DATA_CLASS_MEMBER name:hashCode visibility:public modality:OPEN <> ($this:A) returnType:Int flags: + $this: VALUE_PARAMETER name: type:A flags: BLOCK_BODY - VAR IR_TEMPORARY_VARIABLE var tmp0_result: kotlin.Int - CONST Int type=kotlin.Int value='0' + VAR IR_TEMPORARY_VARIABLE name:tmp0_result type:kotlin.Int flags:var + CONST Int type=kotlin.Int value=0 SET_VAR 'tmp0_result: Int' type=kotlin.Unit origin=EQ CALL 'hashCode(): Int' type=kotlin.Int origin=null $this: CALL '(): A.(String) -> Unit' type=A.(kotlin.String) -> kotlin.Unit origin=GET_PROPERTY $this: GET_VAR 'this@A: A' type=A origin=null - RETURN type=kotlin.Nothing from='hashCode(): Int' + RETURN type=kotlin.Nothing from=hashCode(): Int' GET_VAR 'tmp0_result: Int' type=kotlin.Int origin=null - FUN GENERATED_DATA_CLASS_MEMBER public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@A: A - VALUE_PARAMETER value-parameter other: kotlin.Any? + FUN GENERATED_DATA_CLASS_MEMBER name:equals visibility:public modality:OPEN <> ($this:A, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:A flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: BLOCK_BODY WHEN type=kotlin.Unit origin=null BRANCH if: CALL 'EQEQEQ(Any?, Any?): Boolean' type=kotlin.Boolean origin=EQEQEQ arg0: GET_VAR 'this@A: A' type=A origin=null arg1: GET_VAR 'value-parameter other: Any?' type=kotlin.Any? origin=null - then: RETURN type=kotlin.Nothing from='equals(Any?): Boolean' - CONST Boolean type=kotlin.Boolean value='true' + then: RETURN type=kotlin.Nothing from=equals(Any?): Boolean' + CONST Boolean type=kotlin.Boolean value=true WHEN type=kotlin.Unit origin=null BRANCH if: TYPE_OP type=kotlin.Boolean origin=NOT_INSTANCEOF typeOperand=A GET_VAR 'value-parameter other: Any?' type=kotlin.Any? origin=null - then: RETURN type=kotlin.Nothing from='equals(Any?): Boolean' - CONST Boolean type=kotlin.Boolean value='false' - VAR IR_TEMPORARY_VARIABLE val tmp0_other_with_cast: A + then: RETURN type=kotlin.Nothing from=equals(Any?): Boolean' + CONST Boolean type=kotlin.Boolean value=false + VAR IR_TEMPORARY_VARIABLE name:tmp0_other_with_cast type:A flags:val TYPE_OP type=A origin=CAST typeOperand=A GET_VAR 'value-parameter other: Any?' type=kotlin.Any? origin=null WHEN type=kotlin.Unit origin=null @@ -90,98 +90,98 @@ FILE /lambdaInDataClassDefaultParameter.kt $this: GET_VAR 'this@A: A' type=A origin=null arg1: CALL '(): A.(String) -> Unit' type=A.(kotlin.String) -> kotlin.Unit origin=GET_PROPERTY $this: GET_VAR 'tmp0_other_with_cast: A' type=A origin=null - then: RETURN type=kotlin.Nothing from='equals(Any?): Boolean' - CONST Boolean type=kotlin.Boolean value='false' - RETURN type=kotlin.Nothing from='equals(Any?): Boolean' - CONST Boolean type=kotlin.Boolean value='true' - CLASS CLASS B - $this: VALUE_PARAMETER this@B: B - CONSTRUCTOR public constructor B(x: kotlin.Any = ...) - VALUE_PARAMETER value-parameter x: kotlin.Any = ... + then: RETURN type=kotlin.Nothing from=equals(Any?): Boolean' + CONST Boolean type=kotlin.Boolean value=false + RETURN type=kotlin.Nothing from=equals(Any?): Boolean' + CONST Boolean type=kotlin.Boolean value=true + CLASS CLASS name:B modality:FINAL visibility:public flags:data + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:B flags: + CONSTRUCTOR visibility:public <> (x:kotlin.Any) returnType:B flags: + VALUE_PARAMETER name:x index:0 type:kotlin.Any flags: EXPRESSION_BODY BLOCK type=B.. origin=OBJECT_LITERAL - CLASS CLASS - $this: VALUE_PARAMETER this@: - CONSTRUCTOR public constructor () + CLASS CLASS name: modality:FINAL visibility:local flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:B.. flags: + CONSTRUCTOR visibility:public <> () returnType:B.. flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='' - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: CALL 'constructor ()' type=B.. origin=OBJECT_LITERAL BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='B' - PROPERTY public final val x: kotlin.Any - FIELD PROPERTY_BACKING_FIELD public final val x: kotlin.Any + PROPERTY name:x type:kotlin.Any visibility:public modality:FINAL flags:val + FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.Any visibility:public EXPRESSION_BODY GET_VAR 'value-parameter x: Any = ...' type=kotlin.Any origin=INITIALIZE_PROPERTY_FROM_PARAMETER - FUN DEFAULT_PROPERTY_ACCESSOR public final fun (): kotlin.Any - $this: VALUE_PARAMETER this@B: B + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:B) returnType:Any flags: + $this: VALUE_PARAMETER name: type:B flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): Any' + RETURN type=kotlin.Nothing from=(): Any' GET_FIELD 'x: Any' type=kotlin.Any origin=null receiver: GET_VAR 'this@B: B' type=B origin=null - FUN GENERATED_DATA_CLASS_MEMBER public final operator fun component1(): kotlin.Any - $this: VALUE_PARAMETER this@B: B + FUN GENERATED_DATA_CLASS_MEMBER name:component1 visibility:public modality:FINAL <> ($this:B) returnType:Any flags: + $this: VALUE_PARAMETER name: type:B flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='component1(): Any' + RETURN type=kotlin.Nothing from=component1(): Any' CALL '(): Any' type=kotlin.Any origin=GET_PROPERTY $this: GET_VAR 'this@B: B' type=B origin=null - FUN GENERATED_DATA_CLASS_MEMBER public final fun copy(x: kotlin.Any = ...): B - $this: VALUE_PARAMETER this@B: B - VALUE_PARAMETER value-parameter x: kotlin.Any = ... + FUN GENERATED_DATA_CLASS_MEMBER name:copy visibility:public modality:FINAL <> ($this:B, x:kotlin.Any) returnType:B flags: + $this: VALUE_PARAMETER name: type:B flags: + VALUE_PARAMETER name:x index:0 type:kotlin.Any flags: EXPRESSION_BODY CALL '(): Any' type=kotlin.Any origin=GET_PROPERTY $this: GET_VAR 'this@B: B' type=B origin=null BLOCK_BODY - RETURN type=kotlin.Nothing from='copy(Any = ...): B' + RETURN type=kotlin.Nothing from=copy(Any = ...): B' CALL 'constructor B(Any = ...)' type=B origin=null x: GET_VAR 'value-parameter x: Any = ...' type=kotlin.Any origin=null - FUN GENERATED_DATA_CLASS_MEMBER public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@B: B + FUN GENERATED_DATA_CLASS_MEMBER name:toString visibility:public modality:OPEN <> ($this:B) returnType:String flags: + $this: VALUE_PARAMETER name: type:B flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='toString(): String' + RETURN type=kotlin.Nothing from=toString(): String' STRING_CONCATENATION type=kotlin.String - CONST String type=kotlin.String value='B(' - CONST String type=kotlin.String value='x=' + CONST String type=kotlin.String value=B( + CONST String type=kotlin.String value=x= CALL '(): Any' type=kotlin.Any origin=GET_PROPERTY $this: GET_VAR 'this@B: B' type=B origin=null - CONST String type=kotlin.String value=')' - FUN GENERATED_DATA_CLASS_MEMBER public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@B: B + CONST String type=kotlin.String value=) + FUN GENERATED_DATA_CLASS_MEMBER name:hashCode visibility:public modality:OPEN <> ($this:B) returnType:Int flags: + $this: VALUE_PARAMETER name: type:B flags: BLOCK_BODY - VAR IR_TEMPORARY_VARIABLE var tmp0_result: kotlin.Int - CONST Int type=kotlin.Int value='0' + VAR IR_TEMPORARY_VARIABLE name:tmp0_result type:kotlin.Int flags:var + CONST Int type=kotlin.Int value=0 SET_VAR 'tmp0_result: Int' type=kotlin.Unit origin=EQ CALL 'hashCode(): Int' type=kotlin.Int origin=null $this: CALL '(): Any' type=kotlin.Any origin=GET_PROPERTY $this: GET_VAR 'this@B: B' type=B origin=null - RETURN type=kotlin.Nothing from='hashCode(): Int' + RETURN type=kotlin.Nothing from=hashCode(): Int' GET_VAR 'tmp0_result: Int' type=kotlin.Int origin=null - FUN GENERATED_DATA_CLASS_MEMBER public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@B: B - VALUE_PARAMETER value-parameter other: kotlin.Any? + FUN GENERATED_DATA_CLASS_MEMBER name:equals visibility:public modality:OPEN <> ($this:B, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:B flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: BLOCK_BODY WHEN type=kotlin.Unit origin=null BRANCH if: CALL 'EQEQEQ(Any?, Any?): Boolean' type=kotlin.Boolean origin=EQEQEQ arg0: GET_VAR 'this@B: B' type=B origin=null arg1: GET_VAR 'value-parameter other: Any?' type=kotlin.Any? origin=null - then: RETURN type=kotlin.Nothing from='equals(Any?): Boolean' - CONST Boolean type=kotlin.Boolean value='true' + then: RETURN type=kotlin.Nothing from=equals(Any?): Boolean' + CONST Boolean type=kotlin.Boolean value=true WHEN type=kotlin.Unit origin=null BRANCH if: TYPE_OP type=kotlin.Boolean origin=NOT_INSTANCEOF typeOperand=B GET_VAR 'value-parameter other: Any?' type=kotlin.Any? origin=null - then: RETURN type=kotlin.Nothing from='equals(Any?): Boolean' - CONST Boolean type=kotlin.Boolean value='false' - VAR IR_TEMPORARY_VARIABLE val tmp0_other_with_cast: B + then: RETURN type=kotlin.Nothing from=equals(Any?): Boolean' + CONST Boolean type=kotlin.Boolean value=false + VAR IR_TEMPORARY_VARIABLE name:tmp0_other_with_cast type:B flags:val TYPE_OP type=B origin=CAST typeOperand=B GET_VAR 'value-parameter other: Any?' type=kotlin.Any? origin=null WHEN type=kotlin.Unit origin=null @@ -192,7 +192,8 @@ FILE /lambdaInDataClassDefaultParameter.kt $this: GET_VAR 'this@B: B' type=B origin=null arg1: CALL '(): Any' type=kotlin.Any origin=GET_PROPERTY $this: GET_VAR 'tmp0_other_with_cast: B' type=B origin=null - then: RETURN type=kotlin.Nothing from='equals(Any?): Boolean' - CONST Boolean type=kotlin.Boolean value='false' - RETURN type=kotlin.Nothing from='equals(Any?): Boolean' - CONST Boolean type=kotlin.Boolean value='true' + then: RETURN type=kotlin.Nothing from=equals(Any?): Boolean' + CONST Boolean type=kotlin.Boolean value=false + RETURN type=kotlin.Nothing from=equals(Any?): Boolean' + CONST Boolean type=kotlin.Boolean value=true + diff --git a/compiler/testData/ir/irText/classes/localClasses.txt b/compiler/testData/ir/irText/classes/localClasses.txt index 2f7eab8209a..cedf20b5683 100644 --- a/compiler/testData/ir/irText/classes/localClasses.txt +++ b/compiler/testData/ir/irText/classes/localClasses.txt @@ -1,22 +1,22 @@ -FILE /localClasses.kt - FUN public fun outer(): kotlin.Unit +FILE fqName: fileName:/localClasses.kt + FUN name:outer visibility:public modality:FINAL <> () returnType:Unit flags: BLOCK_BODY - CLASS CLASS LocalClass - $this: VALUE_PARAMETER this@LocalClass: LocalClass - CONSTRUCTOR public constructor LocalClass() + CLASS CLASS name:LocalClass modality:FINAL visibility:local flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:outer.LocalClass flags: + CONSTRUCTOR visibility:public <> () returnType:outer.LocalClass flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='LocalClass' - FUN public final fun foo(): kotlin.Unit - $this: VALUE_PARAMETER this@LocalClass: LocalClass + FUN name:foo visibility:public modality:FINAL <> ($this:outer.LocalClass) returnType:Unit flags: + $this: VALUE_PARAMETER name: type:outer.LocalClass flags: BLOCK_BODY - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: CALL 'foo(): Unit' type=kotlin.Unit origin=null $this: CALL 'constructor LocalClass()' type=outer.LocalClass origin=null diff --git a/compiler/testData/ir/irText/classes/objectLiteralExpressions.txt b/compiler/testData/ir/irText/classes/objectLiteralExpressions.txt index 2f3463b7347..6d99d1d189f 100644 --- a/compiler/testData/ir/irText/classes/objectLiteralExpressions.txt +++ b/compiler/testData/ir/irText/classes/objectLiteralExpressions.txt @@ -1,141 +1,141 @@ -FILE /objectLiteralExpressions.kt - CLASS INTERFACE IFoo - $this: VALUE_PARAMETER this@IFoo: IFoo - FUN public abstract fun foo(): kotlin.Unit - $this: VALUE_PARAMETER this@IFoo: IFoo - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any - PROPERTY public val test1: kotlin.Any - FIELD PROPERTY_BACKING_FIELD public val test1: kotlin.Any +FILE fqName: fileName:/objectLiteralExpressions.kt + CLASS INTERFACE name:IFoo modality:ABSTRACT visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:IFoo flags: + FUN name:foo visibility:public modality:ABSTRACT <> ($this:IFoo) returnType:Unit flags: + $this: VALUE_PARAMETER name: type:IFoo flags: + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + PROPERTY name:test1 type:kotlin.Any visibility:public modality:FINAL flags:val + FIELD PROPERTY_BACKING_FIELD name:test1 type:kotlin.Any visibility:public EXPRESSION_BODY BLOCK type=test1. origin=OBJECT_LITERAL - CLASS CLASS - $this: VALUE_PARAMETER this@: - CONSTRUCTOR public constructor () + CLASS CLASS name: modality:FINAL visibility:local flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:test1. flags: + CONSTRUCTOR visibility:public <> () returnType:test1. flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='' - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: CALL 'constructor ()' type=test1. origin=OBJECT_LITERAL - FUN DEFAULT_PROPERTY_ACCESSOR public fun (): kotlin.Any + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:Any flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): Any' + RETURN type=kotlin.Nothing from=(): Any' GET_FIELD 'test1: Any' type=kotlin.Any origin=null - PROPERTY public val test2: IFoo - FIELD PROPERTY_BACKING_FIELD public val test2: IFoo + PROPERTY name:test2 type:IFoo visibility:public modality:FINAL flags:val + FIELD PROPERTY_BACKING_FIELD name:test2 type:IFoo visibility:public EXPRESSION_BODY BLOCK type=test2. origin=OBJECT_LITERAL - CLASS CLASS - $this: VALUE_PARAMETER this@: - CONSTRUCTOR public constructor () + CLASS CLASS name: modality:FINAL visibility:local flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:test2. flags: + CONSTRUCTOR visibility:public <> () returnType:test2. flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='' - FUN public open override fun foo(): kotlin.Unit - $this: VALUE_PARAMETER this@: + FUN name:foo visibility:public modality:OPEN <> ($this:test2.) returnType:Unit flags: + $this: VALUE_PARAMETER name: type:test2. flags: BLOCK_BODY CALL 'println(Any?): Unit' type=kotlin.Unit origin=null - message: CONST String type=kotlin.String value='foo' - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any + message: CONST String type=kotlin.String value=foo + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: CALL 'constructor ()' type=test2. origin=OBJECT_LITERAL - FUN DEFAULT_PROPERTY_ACCESSOR public fun (): IFoo + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:IFoo flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): IFoo' + RETURN type=kotlin.Nothing from=(): IFoo' GET_FIELD 'test2: IFoo' type=IFoo origin=null - CLASS CLASS Outer - $this: VALUE_PARAMETER this@Outer: Outer - CONSTRUCTOR public constructor Outer() + CLASS CLASS name:Outer modality:FINAL visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Outer flags: + CONSTRUCTOR visibility:public <> () returnType:Outer flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='Outer' - CLASS CLASS Inner - $this: VALUE_PARAMETER this@Inner: Inner - CONSTRUCTOR public constructor Inner() - $outer: VALUE_PARAMETER this@Outer: Outer + CLASS CLASS name:Inner modality:ABSTRACT visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Outer.Inner flags: + CONSTRUCTOR visibility:public <> ($this:Outer) returnType:Outer.Inner flags: + $outer: VALUE_PARAMETER name: type:Outer flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='Inner' - FUN FAKE_OVERRIDE public abstract override fun foo(): kotlin.Unit - $this: VALUE_PARAMETER this@IFoo: IFoo - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any - FUN public final fun test3(): Outer.Inner - $this: VALUE_PARAMETER this@Outer: Outer + FUN FAKE_OVERRIDE name:foo visibility:public modality:ABSTRACT <> ($this:IFoo) returnType:Unit flags: + $this: VALUE_PARAMETER name: type:IFoo flags: + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN name:test3 visibility:public modality:FINAL <> ($this:Outer) returnType:Inner flags: + $this: VALUE_PARAMETER name: type:Outer flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='test3(): Outer.Inner' + RETURN type=kotlin.Nothing from=test3(): Outer.Inner' BLOCK type=Outer.test3. origin=OBJECT_LITERAL - CLASS CLASS - $this: VALUE_PARAMETER this@: - CONSTRUCTOR public constructor () + CLASS CLASS name: modality:FINAL visibility:local flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Outer.test3. flags: + CONSTRUCTOR visibility:public <> () returnType:Outer.test3. flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Inner()' $this: GET_VAR 'this@Outer: Outer' type=Outer origin=null INSTANCE_INITIALIZER_CALL classDescriptor='' - FUN public open override fun foo(): kotlin.Unit - $this: VALUE_PARAMETER this@: + FUN name:foo visibility:public modality:OPEN <> ($this:Outer.test3.) returnType:Unit flags: + $this: VALUE_PARAMETER name: type:Outer.test3. flags: BLOCK_BODY CALL 'println(Any?): Unit' type=kotlin.Unit origin=null - message: CONST String type=kotlin.String value='foo' - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any + message: CONST String type=kotlin.String value=foo + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: CALL 'constructor ()' type=Outer.test3. origin=OBJECT_LITERAL - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any - FUN public fun Outer.test4(): Outer.Inner - $receiver: VALUE_PARAMETER this@test4: Outer + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN name:test4 visibility:public modality:FINAL <> ($receiver:Outer) returnType:Inner flags: + $receiver: VALUE_PARAMETER name: type:Outer flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='test4() on Outer: Outer.Inner' + RETURN type=kotlin.Nothing from=test4() on Outer: Outer.Inner' BLOCK type=test4. origin=OBJECT_LITERAL - CLASS CLASS - $this: VALUE_PARAMETER this@: - CONSTRUCTOR public constructor () + CLASS CLASS name: modality:FINAL visibility:local flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:test4. flags: + CONSTRUCTOR visibility:public <> () returnType:test4. flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Inner()' $this: GET_VAR 'this@test4: Outer' type=Outer origin=null INSTANCE_INITIALIZER_CALL classDescriptor='' - FUN public open override fun foo(): kotlin.Unit - $this: VALUE_PARAMETER this@: + FUN name:foo visibility:public modality:OPEN <> ($this:test4.) returnType:Unit flags: + $this: VALUE_PARAMETER name: type:test4. flags: BLOCK_BODY CALL 'println(Any?): Unit' type=kotlin.Unit origin=null - message: CONST String type=kotlin.String value='foo' - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any + message: CONST String type=kotlin.String value=foo + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: CALL 'constructor ()' type=test4. origin=OBJECT_LITERAL diff --git a/compiler/testData/ir/irText/classes/objectWithInitializers.txt b/compiler/testData/ir/irText/classes/objectWithInitializers.txt index 04f18825af8..62951d94daa 100644 --- a/compiler/testData/ir/irText/classes/objectWithInitializers.txt +++ b/compiler/testData/ir/irText/classes/objectWithInitializers.txt @@ -1,39 +1,39 @@ -FILE /objectWithInitializers.kt - CLASS CLASS Base - $this: VALUE_PARAMETER this@Base: Base - CONSTRUCTOR public constructor Base() +FILE fqName: fileName:/objectWithInitializers.kt + CLASS CLASS name:Base modality:ABSTRACT visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Base flags: + CONSTRUCTOR visibility:public <> () returnType:Base flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='Base' - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any - CLASS OBJECT Test - $this: VALUE_PARAMETER this@Test: Test - CONSTRUCTOR private constructor Test() + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + CLASS OBJECT name:Test modality:FINAL visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Test flags: + CONSTRUCTOR visibility:private <> () returnType:Test flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Base()' INSTANCE_INITIALIZER_CALL classDescriptor='Test' - PROPERTY public final val x: kotlin.Int = 1 - FIELD PROPERTY_BACKING_FIELD public final val x: kotlin.Int = 1 + PROPERTY name:x type:kotlin.Int visibility:public modality:FINAL flags:val + FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.Int visibility:public EXPRESSION_BODY - CONST Int type=kotlin.Int value='1' - FUN DEFAULT_PROPERTY_ACCESSOR public final fun (): kotlin.Int - $this: VALUE_PARAMETER this@Test: Test + CONST Int type=kotlin.Int value=1 + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:Test) returnType:Int flags: + $this: VALUE_PARAMETER name: type:Test flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): Int' + RETURN type=kotlin.Nothing from=(): Int' GET_FIELD 'x: Int' type=kotlin.Int origin=null receiver: GET_VAR 'this@Test: Test' type=Test origin=null - PROPERTY public final val y: kotlin.Int - FIELD PROPERTY_BACKING_FIELD public final val y: kotlin.Int - FUN DEFAULT_PROPERTY_ACCESSOR public final fun (): kotlin.Int - $this: VALUE_PARAMETER this@Test: Test + PROPERTY name:y type:kotlin.Int visibility:public modality:FINAL flags:val + FIELD PROPERTY_BACKING_FIELD name:y type:kotlin.Int visibility:public + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:Test) returnType:Int flags: + $this: VALUE_PARAMETER name: type:Test flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): Int' + RETURN type=kotlin.Nothing from=(): Int' GET_FIELD 'y: Int' type=kotlin.Int origin=null receiver: GET_VAR 'this@Test: Test' type=Test origin=null ANONYMOUS_INITIALIZER Test @@ -42,11 +42,11 @@ FILE /objectWithInitializers.kt receiver: GET_VAR 'this@Test: Test' type=Test origin=null value: CALL '(): Int' type=kotlin.Int origin=GET_PROPERTY $this: GET_VAR 'this@Test: Test' type=Test origin=null - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: diff --git a/compiler/testData/ir/irText/classes/outerClassAccess.txt b/compiler/testData/ir/irText/classes/outerClassAccess.txt index ede9c781a8f..2adf336940b 100644 --- a/compiler/testData/ir/irText/classes/outerClassAccess.txt +++ b/compiler/testData/ir/irText/classes/outerClassAccess.txt @@ -1,64 +1,64 @@ -FILE /outerClassAccess.kt - CLASS CLASS Outer - $this: VALUE_PARAMETER this@Outer: Outer - CONSTRUCTOR public constructor Outer() +FILE fqName: fileName:/outerClassAccess.kt + CLASS CLASS name:Outer modality:FINAL visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Outer flags: + CONSTRUCTOR visibility:public <> () returnType:Outer flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='Outer' - FUN public final fun foo(): kotlin.Unit - $this: VALUE_PARAMETER this@Outer: Outer + FUN name:foo visibility:public modality:FINAL <> ($this:Outer) returnType:Unit flags: + $this: VALUE_PARAMETER name: type:Outer flags: BLOCK_BODY - CLASS CLASS Inner - $this: VALUE_PARAMETER this@Inner: Inner - CONSTRUCTOR public constructor Inner() - $outer: VALUE_PARAMETER this@Outer: Outer + CLASS CLASS name:Inner modality:FINAL visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Outer.Inner flags: + CONSTRUCTOR visibility:public <> ($this:Outer) returnType:Outer.Inner flags: + $outer: VALUE_PARAMETER name: type:Outer flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='Inner' - FUN public final fun test(): kotlin.Unit - $this: VALUE_PARAMETER this@Inner: Inner + FUN name:test visibility:public modality:FINAL <> ($this:Outer.Inner) returnType:Unit flags: + $this: VALUE_PARAMETER name: type:Outer.Inner flags: BLOCK_BODY CALL 'foo(): Unit' type=kotlin.Unit origin=null $this: GET_VAR 'this@Outer: Outer' type=Outer origin=null - CLASS CLASS Inner2 - $this: VALUE_PARAMETER this@Inner2: Inner2 - CONSTRUCTOR public constructor Inner2() - $outer: VALUE_PARAMETER this@Inner: Inner + CLASS CLASS name:Inner2 modality:FINAL visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Outer.Inner.Inner2 flags: + CONSTRUCTOR visibility:public <> ($this:Outer.Inner) returnType:Outer.Inner.Inner2 flags: + $outer: VALUE_PARAMETER name: type:Outer.Inner flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='Inner2' - FUN public final fun test2(): kotlin.Unit - $this: VALUE_PARAMETER this@Inner2: Inner2 + FUN name:test2 visibility:public modality:FINAL <> ($this:Outer.Inner.Inner2) returnType:Unit flags: + $this: VALUE_PARAMETER name: type:Outer.Inner.Inner2 flags: BLOCK_BODY CALL 'test(): Unit' type=kotlin.Unit origin=null $this: GET_VAR 'this@Inner: Inner' type=Outer.Inner origin=null CALL 'foo(): Unit' type=kotlin.Unit origin=null $this: GET_VAR 'this@Outer: Outer' type=Outer origin=null - FUN public final fun Outer.test3(): kotlin.Unit - $this: VALUE_PARAMETER this@Inner2: Inner2 - $receiver: VALUE_PARAMETER this@test3: Outer + FUN name:test3 visibility:public modality:FINAL <> ($this:Outer.Inner.Inner2, $receiver:Outer) returnType:Unit flags: + $this: VALUE_PARAMETER name: type:Outer.Inner.Inner2 flags: + $receiver: VALUE_PARAMETER name: type:Outer flags: BLOCK_BODY CALL 'foo(): Unit' type=kotlin.Unit origin=null $this: GET_VAR 'this@test3: Outer' type=Outer origin=null - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: diff --git a/compiler/testData/ir/irText/classes/primaryConstructor.txt b/compiler/testData/ir/irText/classes/primaryConstructor.txt index 62bbe51b83e..281d2c4e267 100644 --- a/compiler/testData/ir/irText/classes/primaryConstructor.txt +++ b/compiler/testData/ir/irText/classes/primaryConstructor.txt @@ -1,98 +1,98 @@ -FILE /primaryConstructor.kt - CLASS CLASS Test1 - $this: VALUE_PARAMETER this@Test1: Test1 - CONSTRUCTOR public constructor Test1(x: kotlin.Int, y: kotlin.Int) - VALUE_PARAMETER value-parameter x: kotlin.Int - VALUE_PARAMETER value-parameter y: kotlin.Int +FILE fqName: fileName:/primaryConstructor.kt + CLASS CLASS name:Test1 modality:FINAL visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Test1 flags: + CONSTRUCTOR visibility:public <> (x:kotlin.Int, y:kotlin.Int) returnType:Test1 flags: + VALUE_PARAMETER name:x index:0 type:kotlin.Int flags: + VALUE_PARAMETER name:y index:1 type:kotlin.Int flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='Test1' - PROPERTY public final val x: kotlin.Int - FIELD PROPERTY_BACKING_FIELD public final val x: kotlin.Int + PROPERTY name:x type:kotlin.Int visibility:public modality:FINAL flags:val + FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.Int visibility:public EXPRESSION_BODY GET_VAR 'value-parameter x: Int' type=kotlin.Int origin=INITIALIZE_PROPERTY_FROM_PARAMETER - FUN DEFAULT_PROPERTY_ACCESSOR public final fun (): kotlin.Int - $this: VALUE_PARAMETER this@Test1: Test1 + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:Test1) returnType:Int flags: + $this: VALUE_PARAMETER name: type:Test1 flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): Int' + RETURN type=kotlin.Nothing from=(): Int' GET_FIELD 'x: Int' type=kotlin.Int origin=null receiver: GET_VAR 'this@Test1: Test1' type=Test1 origin=null - PROPERTY public final val y: kotlin.Int - FIELD PROPERTY_BACKING_FIELD public final val y: kotlin.Int + PROPERTY name:y type:kotlin.Int visibility:public modality:FINAL flags:val + FIELD PROPERTY_BACKING_FIELD name:y type:kotlin.Int visibility:public EXPRESSION_BODY GET_VAR 'value-parameter y: Int' type=kotlin.Int origin=INITIALIZE_PROPERTY_FROM_PARAMETER - FUN DEFAULT_PROPERTY_ACCESSOR public final fun (): kotlin.Int - $this: VALUE_PARAMETER this@Test1: Test1 + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:Test1) returnType:Int flags: + $this: VALUE_PARAMETER name: type:Test1 flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): Int' + RETURN type=kotlin.Nothing from=(): Int' GET_FIELD 'y: Int' type=kotlin.Int origin=null receiver: GET_VAR 'this@Test1: Test1' type=Test1 origin=null - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any - CLASS CLASS Test2 - $this: VALUE_PARAMETER this@Test2: Test2 - CONSTRUCTOR public constructor Test2(x: kotlin.Int, y: kotlin.Int) - VALUE_PARAMETER value-parameter x: kotlin.Int - VALUE_PARAMETER value-parameter y: kotlin.Int + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + CLASS CLASS name:Test2 modality:FINAL visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Test2 flags: + CONSTRUCTOR visibility:public <> (x:kotlin.Int, y:kotlin.Int) returnType:Test2 flags: + VALUE_PARAMETER name:x index:0 type:kotlin.Int flags: + VALUE_PARAMETER name:y index:1 type:kotlin.Int flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='Test2' - PROPERTY public final val y: kotlin.Int - FIELD PROPERTY_BACKING_FIELD public final val y: kotlin.Int + PROPERTY name:y type:kotlin.Int visibility:public modality:FINAL flags:val + FIELD PROPERTY_BACKING_FIELD name:y type:kotlin.Int visibility:public EXPRESSION_BODY GET_VAR 'value-parameter y: Int' type=kotlin.Int origin=INITIALIZE_PROPERTY_FROM_PARAMETER - FUN DEFAULT_PROPERTY_ACCESSOR public final fun (): kotlin.Int - $this: VALUE_PARAMETER this@Test2: Test2 + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:Test2) returnType:Int flags: + $this: VALUE_PARAMETER name: type:Test2 flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): Int' + RETURN type=kotlin.Nothing from=(): Int' GET_FIELD 'y: Int' type=kotlin.Int origin=null receiver: GET_VAR 'this@Test2: Test2' type=Test2 origin=null - PROPERTY public final val x: kotlin.Int - FIELD PROPERTY_BACKING_FIELD public final val x: kotlin.Int + PROPERTY name:x type:kotlin.Int visibility:public modality:FINAL flags:val + FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.Int visibility:public EXPRESSION_BODY GET_VAR 'value-parameter x: Int' type=kotlin.Int origin=null - FUN DEFAULT_PROPERTY_ACCESSOR public final fun (): kotlin.Int - $this: VALUE_PARAMETER this@Test2: Test2 + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:Test2) returnType:Int flags: + $this: VALUE_PARAMETER name: type:Test2 flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): Int' + RETURN type=kotlin.Nothing from=(): Int' GET_FIELD 'x: Int' type=kotlin.Int origin=null receiver: GET_VAR 'this@Test2: Test2' type=Test2 origin=null - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any - CLASS CLASS Test3 - $this: VALUE_PARAMETER this@Test3: Test3 - CONSTRUCTOR public constructor Test3(x: kotlin.Int, y: kotlin.Int) - VALUE_PARAMETER value-parameter x: kotlin.Int - VALUE_PARAMETER value-parameter y: kotlin.Int + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + CLASS CLASS name:Test3 modality:FINAL visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Test3 flags: + CONSTRUCTOR visibility:public <> (x:kotlin.Int, y:kotlin.Int) returnType:Test3 flags: + VALUE_PARAMETER name:x index:0 type:kotlin.Int flags: + VALUE_PARAMETER name:y index:1 type:kotlin.Int flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='Test3' - PROPERTY public final val y: kotlin.Int - FIELD PROPERTY_BACKING_FIELD public final val y: kotlin.Int + PROPERTY name:y type:kotlin.Int visibility:public modality:FINAL flags:val + FIELD PROPERTY_BACKING_FIELD name:y type:kotlin.Int visibility:public EXPRESSION_BODY GET_VAR 'value-parameter y: Int' type=kotlin.Int origin=INITIALIZE_PROPERTY_FROM_PARAMETER - FUN DEFAULT_PROPERTY_ACCESSOR public final fun (): kotlin.Int - $this: VALUE_PARAMETER this@Test3: Test3 + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:Test3) returnType:Int flags: + $this: VALUE_PARAMETER name: type:Test3 flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): Int' + RETURN type=kotlin.Nothing from=(): Int' GET_FIELD 'y: Int' type=kotlin.Int origin=null receiver: GET_VAR 'this@Test3: Test3' type=Test3 origin=null - PROPERTY public final val x: kotlin.Int - FIELD PROPERTY_BACKING_FIELD public final val x: kotlin.Int - FUN DEFAULT_PROPERTY_ACCESSOR public final fun (): kotlin.Int - $this: VALUE_PARAMETER this@Test3: Test3 + PROPERTY name:x type:kotlin.Int visibility:public modality:FINAL flags:val + FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.Int visibility:public + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:Test3) returnType:Int flags: + $this: VALUE_PARAMETER name: type:Test3 flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): Int' + RETURN type=kotlin.Nothing from=(): Int' GET_FIELD 'x: Int' type=kotlin.Int origin=null receiver: GET_VAR 'this@Test3: Test3' type=Test3 origin=null ANONYMOUS_INITIALIZER Test3 @@ -100,11 +100,11 @@ FILE /primaryConstructor.kt SET_FIELD 'x: Int' type=kotlin.Unit origin=null receiver: GET_VAR 'this@Test3: Test3' type=Test3 origin=null value: GET_VAR 'value-parameter x: Int' type=kotlin.Int origin=null - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: diff --git a/compiler/testData/ir/irText/classes/primaryConstructorWithSuperConstructorCall.txt b/compiler/testData/ir/irText/classes/primaryConstructorWithSuperConstructorCall.txt index 20eba078155..d8cc92bc458 100644 --- a/compiler/testData/ir/irText/classes/primaryConstructorWithSuperConstructorCall.txt +++ b/compiler/testData/ir/irText/classes/primaryConstructorWithSuperConstructorCall.txt @@ -1,82 +1,82 @@ -FILE /primaryConstructorWithSuperConstructorCall.kt - CLASS CLASS Base - $this: VALUE_PARAMETER this@Base: Base - CONSTRUCTOR public constructor Base() +FILE fqName: fileName:/primaryConstructorWithSuperConstructorCall.kt + CLASS CLASS name:Base modality:OPEN visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Base flags: + CONSTRUCTOR visibility:public <> () returnType:Base flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='Base' - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any - CLASS CLASS TestImplicitPrimaryConstructor - $this: VALUE_PARAMETER this@TestImplicitPrimaryConstructor: TestImplicitPrimaryConstructor - CONSTRUCTOR public constructor TestImplicitPrimaryConstructor() + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + CLASS CLASS name:TestImplicitPrimaryConstructor modality:FINAL visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:TestImplicitPrimaryConstructor flags: + CONSTRUCTOR visibility:public <> () returnType:TestImplicitPrimaryConstructor flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Base()' INSTANCE_INITIALIZER_CALL classDescriptor='TestImplicitPrimaryConstructor' - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any - CLASS CLASS TestExplicitPrimaryConstructor - $this: VALUE_PARAMETER this@TestExplicitPrimaryConstructor: TestExplicitPrimaryConstructor - CONSTRUCTOR public constructor TestExplicitPrimaryConstructor() + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + CLASS CLASS name:TestExplicitPrimaryConstructor modality:FINAL visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:TestExplicitPrimaryConstructor flags: + CONSTRUCTOR visibility:public <> () returnType:TestExplicitPrimaryConstructor flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Base()' INSTANCE_INITIALIZER_CALL classDescriptor='TestExplicitPrimaryConstructor' - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any - CLASS CLASS TestWithDelegatingConstructor - $this: VALUE_PARAMETER this@TestWithDelegatingConstructor: TestWithDelegatingConstructor - CONSTRUCTOR public constructor TestWithDelegatingConstructor(x: kotlin.Int, y: kotlin.Int) - VALUE_PARAMETER value-parameter x: kotlin.Int - VALUE_PARAMETER value-parameter y: kotlin.Int + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + CLASS CLASS name:TestWithDelegatingConstructor modality:FINAL visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:TestWithDelegatingConstructor flags: + CONSTRUCTOR visibility:public <> (x:kotlin.Int, y:kotlin.Int) returnType:TestWithDelegatingConstructor flags: + VALUE_PARAMETER name:x index:0 type:kotlin.Int flags: + VALUE_PARAMETER name:y index:1 type:kotlin.Int flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Base()' INSTANCE_INITIALIZER_CALL classDescriptor='TestWithDelegatingConstructor' - PROPERTY public final val x: kotlin.Int - FIELD PROPERTY_BACKING_FIELD public final val x: kotlin.Int + PROPERTY name:x type:kotlin.Int visibility:public modality:FINAL flags:val + FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.Int visibility:public EXPRESSION_BODY GET_VAR 'value-parameter x: Int' type=kotlin.Int origin=INITIALIZE_PROPERTY_FROM_PARAMETER - FUN DEFAULT_PROPERTY_ACCESSOR public final fun (): kotlin.Int - $this: VALUE_PARAMETER this@TestWithDelegatingConstructor: TestWithDelegatingConstructor + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:TestWithDelegatingConstructor) returnType:Int flags: + $this: VALUE_PARAMETER name: type:TestWithDelegatingConstructor flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): Int' + RETURN type=kotlin.Nothing from=(): Int' GET_FIELD 'x: Int' type=kotlin.Int origin=null receiver: GET_VAR 'this@TestWithDelegatingConstructor: TestWithDelegatingConstructor' type=TestWithDelegatingConstructor origin=null - PROPERTY public final val y: kotlin.Int - FIELD PROPERTY_BACKING_FIELD public final val y: kotlin.Int + PROPERTY name:y type:kotlin.Int visibility:public modality:FINAL flags:val + FIELD PROPERTY_BACKING_FIELD name:y type:kotlin.Int visibility:public EXPRESSION_BODY GET_VAR 'value-parameter y: Int' type=kotlin.Int origin=INITIALIZE_PROPERTY_FROM_PARAMETER - FUN DEFAULT_PROPERTY_ACCESSOR public final fun (): kotlin.Int - $this: VALUE_PARAMETER this@TestWithDelegatingConstructor: TestWithDelegatingConstructor + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:TestWithDelegatingConstructor) returnType:Int flags: + $this: VALUE_PARAMETER name: type:TestWithDelegatingConstructor flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): Int' + RETURN type=kotlin.Nothing from=(): Int' GET_FIELD 'y: Int' type=kotlin.Int origin=null receiver: GET_VAR 'this@TestWithDelegatingConstructor: TestWithDelegatingConstructor' type=TestWithDelegatingConstructor origin=null - CONSTRUCTOR public constructor TestWithDelegatingConstructor(x: kotlin.Int) - VALUE_PARAMETER value-parameter x: kotlin.Int + CONSTRUCTOR visibility:public <> (x:kotlin.Int) returnType:TestWithDelegatingConstructor flags: + VALUE_PARAMETER name:x index:0 type:kotlin.Int flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor TestWithDelegatingConstructor(Int, Int)' x: GET_VAR 'value-parameter x: Int' type=kotlin.Int origin=null - y: CONST Int type=kotlin.Int value='0' - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any + y: CONST Int type=kotlin.Int value=0 + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: diff --git a/compiler/testData/ir/irText/classes/qualifiedSuperCalls.txt b/compiler/testData/ir/irText/classes/qualifiedSuperCalls.txt index 5ffcb6a9b16..03583619801 100644 --- a/compiler/testData/ir/irText/classes/qualifiedSuperCalls.txt +++ b/compiler/testData/ir/irText/classes/qualifiedSuperCalls.txt @@ -1,68 +1,68 @@ -FILE /qualifiedSuperCalls.kt - CLASS INTERFACE ILeft - $this: VALUE_PARAMETER this@ILeft: ILeft - FUN public open fun foo(): kotlin.Unit - $this: VALUE_PARAMETER this@ILeft: ILeft +FILE fqName: fileName:/qualifiedSuperCalls.kt + CLASS INTERFACE name:ILeft modality:ABSTRACT visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:ILeft flags: + FUN name:foo visibility:public modality:OPEN <> ($this:ILeft) returnType:Unit flags: + $this: VALUE_PARAMETER name: type:ILeft flags: BLOCK_BODY - PROPERTY public open val bar: kotlin.Int - FUN public open fun (): kotlin.Int - $this: VALUE_PARAMETER this@ILeft: ILeft + PROPERTY name:bar type:kotlin.Int visibility:public modality:OPEN flags:val + FUN name: visibility:public modality:OPEN <> ($this:ILeft) returnType:Int flags: + $this: VALUE_PARAMETER name: type:ILeft flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): Int' - CONST Int type=kotlin.Int value='1' - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any - CLASS INTERFACE IRight - $this: VALUE_PARAMETER this@IRight: IRight - FUN public open fun foo(): kotlin.Unit - $this: VALUE_PARAMETER this@IRight: IRight + RETURN type=kotlin.Nothing from=(): Int' + CONST Int type=kotlin.Int value=1 + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + CLASS INTERFACE name:IRight modality:ABSTRACT visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:IRight flags: + FUN name:foo visibility:public modality:OPEN <> ($this:IRight) returnType:Unit flags: + $this: VALUE_PARAMETER name: type:IRight flags: BLOCK_BODY - PROPERTY public open val bar: kotlin.Int - FUN public open fun (): kotlin.Int - $this: VALUE_PARAMETER this@IRight: IRight + PROPERTY name:bar type:kotlin.Int visibility:public modality:OPEN flags:val + FUN name: visibility:public modality:OPEN <> ($this:IRight) returnType:Int flags: + $this: VALUE_PARAMETER name: type:IRight flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): Int' - CONST Int type=kotlin.Int value='2' - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any - CLASS CLASS CBoth - $this: VALUE_PARAMETER this@CBoth: CBoth - CONSTRUCTOR public constructor CBoth() + RETURN type=kotlin.Nothing from=(): Int' + CONST Int type=kotlin.Int value=2 + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + CLASS CLASS name:CBoth modality:FINAL visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:CBoth flags: + CONSTRUCTOR visibility:public <> () returnType:CBoth flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='CBoth' - FUN public open override fun foo(): kotlin.Unit - $this: VALUE_PARAMETER this@CBoth: CBoth + FUN name:foo visibility:public modality:OPEN <> ($this:CBoth) returnType:Unit flags: + $this: VALUE_PARAMETER name: type:CBoth flags: BLOCK_BODY CALL 'foo(): Unit' superQualifier=ILeft type=kotlin.Unit origin=null $this: GET_VAR 'this@CBoth: CBoth' type=CBoth origin=null CALL 'foo(): Unit' superQualifier=IRight type=kotlin.Unit origin=null $this: GET_VAR 'this@CBoth: CBoth' type=CBoth origin=null - PROPERTY public open override val bar: kotlin.Int - FUN public open override fun (): kotlin.Int - $this: VALUE_PARAMETER this@CBoth: CBoth + PROPERTY name:bar type:kotlin.Int visibility:public modality:OPEN flags:val + FUN name: visibility:public modality:OPEN <> ($this:CBoth) returnType:Int flags: + $this: VALUE_PARAMETER name: type:CBoth flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): Int' + RETURN type=kotlin.Nothing from=(): Int' CALL 'plus(Int): Int' type=kotlin.Int origin=PLUS $this: CALL '(): Int' superQualifier=ILeft type=kotlin.Int origin=GET_PROPERTY $this: GET_VAR 'this@CBoth: CBoth' type=CBoth origin=null other: CALL '(): Int' superQualifier=IRight type=kotlin.Int origin=GET_PROPERTY $this: GET_VAR 'this@CBoth: CBoth' type=CBoth origin=null - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: diff --git a/compiler/testData/ir/irText/classes/sealedClasses.txt b/compiler/testData/ir/irText/classes/sealedClasses.txt index 14407cb973a..eaf6e16aed0 100644 --- a/compiler/testData/ir/irText/classes/sealedClasses.txt +++ b/compiler/testData/ir/irText/classes/sealedClasses.txt @@ -1,87 +1,87 @@ -FILE /sealedClasses.kt - CLASS CLASS Expr - $this: VALUE_PARAMETER this@Expr: Expr - CONSTRUCTOR private constructor Expr() +FILE fqName: fileName:/sealedClasses.kt + CLASS CLASS name:Expr modality:SEALED visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Expr flags: + CONSTRUCTOR visibility:private <> () returnType:Expr flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='Expr' - CLASS CLASS Const - $this: VALUE_PARAMETER this@Const: Const - CONSTRUCTOR public constructor Const(number: kotlin.Double) - VALUE_PARAMETER value-parameter number: kotlin.Double + CLASS CLASS name:Const modality:FINAL visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Expr.Const flags: + CONSTRUCTOR visibility:public <> (number:kotlin.Double) returnType:Expr.Const flags: + VALUE_PARAMETER name:number index:0 type:kotlin.Double flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Expr()' INSTANCE_INITIALIZER_CALL classDescriptor='Const' - PROPERTY public final val number: kotlin.Double - FIELD PROPERTY_BACKING_FIELD public final val number: kotlin.Double + PROPERTY name:number type:kotlin.Double visibility:public modality:FINAL flags:val + FIELD PROPERTY_BACKING_FIELD name:number type:kotlin.Double visibility:public EXPRESSION_BODY GET_VAR 'value-parameter number: Double' type=kotlin.Double origin=INITIALIZE_PROPERTY_FROM_PARAMETER - FUN DEFAULT_PROPERTY_ACCESSOR public final fun (): kotlin.Double - $this: VALUE_PARAMETER this@Const: Const + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:Expr.Const) returnType:Double flags: + $this: VALUE_PARAMETER name: type:Expr.Const flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): Double' + RETURN type=kotlin.Nothing from=(): Double' GET_FIELD 'number: Double' type=kotlin.Double origin=null receiver: GET_VAR 'this@Const: Const' type=Expr.Const origin=null - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any - CLASS CLASS Sum - $this: VALUE_PARAMETER this@Sum: Sum - CONSTRUCTOR public constructor Sum(e1: Expr, e2: Expr) - VALUE_PARAMETER value-parameter e1: Expr - VALUE_PARAMETER value-parameter e2: Expr + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + CLASS CLASS name:Sum modality:FINAL visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Expr.Sum flags: + CONSTRUCTOR visibility:public <> (e1:Expr, e2:Expr) returnType:Expr.Sum flags: + VALUE_PARAMETER name:e1 index:0 type:Expr flags: + VALUE_PARAMETER name:e2 index:1 type:Expr flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Expr()' INSTANCE_INITIALIZER_CALL classDescriptor='Sum' - PROPERTY public final val e1: Expr - FIELD PROPERTY_BACKING_FIELD public final val e1: Expr + PROPERTY name:e1 type:Expr visibility:public modality:FINAL flags:val + FIELD PROPERTY_BACKING_FIELD name:e1 type:Expr visibility:public EXPRESSION_BODY GET_VAR 'value-parameter e1: Expr' type=Expr origin=INITIALIZE_PROPERTY_FROM_PARAMETER - FUN DEFAULT_PROPERTY_ACCESSOR public final fun (): Expr - $this: VALUE_PARAMETER this@Sum: Sum + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:Expr.Sum) returnType:Expr flags: + $this: VALUE_PARAMETER name: type:Expr.Sum flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): Expr' + RETURN type=kotlin.Nothing from=(): Expr' GET_FIELD 'e1: Expr' type=Expr origin=null receiver: GET_VAR 'this@Sum: Sum' type=Expr.Sum origin=null - PROPERTY public final val e2: Expr - FIELD PROPERTY_BACKING_FIELD public final val e2: Expr + PROPERTY name:e2 type:Expr visibility:public modality:FINAL flags:val + FIELD PROPERTY_BACKING_FIELD name:e2 type:Expr visibility:public EXPRESSION_BODY GET_VAR 'value-parameter e2: Expr' type=Expr origin=INITIALIZE_PROPERTY_FROM_PARAMETER - FUN DEFAULT_PROPERTY_ACCESSOR public final fun (): Expr - $this: VALUE_PARAMETER this@Sum: Sum + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:Expr.Sum) returnType:Expr flags: + $this: VALUE_PARAMETER name: type:Expr.Sum flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): Expr' + RETURN type=kotlin.Nothing from=(): Expr' GET_FIELD 'e2: Expr' type=Expr origin=null receiver: GET_VAR 'this@Sum: Sum' type=Expr.Sum origin=null - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any - CLASS OBJECT NotANumber - $this: VALUE_PARAMETER this@NotANumber: NotANumber - CONSTRUCTOR private constructor NotANumber() + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + CLASS OBJECT name:NotANumber modality:FINAL visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Expr.NotANumber flags: + CONSTRUCTOR visibility:private <> () returnType:Expr.NotANumber flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Expr()' INSTANCE_INITIALIZER_CALL classDescriptor='NotANumber' - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: diff --git a/compiler/testData/ir/irText/classes/secondaryConstructorWithInitializersFromClassBody.txt b/compiler/testData/ir/irText/classes/secondaryConstructorWithInitializersFromClassBody.txt index 7a7ca1a9fd2..4c736726a75 100644 --- a/compiler/testData/ir/irText/classes/secondaryConstructorWithInitializersFromClassBody.txt +++ b/compiler/testData/ir/irText/classes/secondaryConstructorWithInitializersFromClassBody.txt @@ -1,73 +1,73 @@ -FILE /secondaryConstructorWithInitializersFromClassBody.kt - CLASS CLASS Base - $this: VALUE_PARAMETER this@Base: Base - CONSTRUCTOR public constructor Base() +FILE fqName: fileName:/secondaryConstructorWithInitializersFromClassBody.kt + CLASS CLASS name:Base modality:OPEN visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Base flags: + CONSTRUCTOR visibility:public <> () returnType:Base flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='Base' - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any - CLASS CLASS TestProperty - $this: VALUE_PARAMETER this@TestProperty: TestProperty - PROPERTY public final val x: kotlin.Int = 0 - FIELD PROPERTY_BACKING_FIELD public final val x: kotlin.Int = 0 + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + CLASS CLASS name:TestProperty modality:FINAL visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:TestProperty flags: + PROPERTY name:x type:kotlin.Int visibility:public modality:FINAL flags:val + FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.Int visibility:public EXPRESSION_BODY - CONST Int type=kotlin.Int value='0' - FUN DEFAULT_PROPERTY_ACCESSOR public final fun (): kotlin.Int - $this: VALUE_PARAMETER this@TestProperty: TestProperty + CONST Int type=kotlin.Int value=0 + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:TestProperty) returnType:Int flags: + $this: VALUE_PARAMETER name: type:TestProperty flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): Int' + RETURN type=kotlin.Nothing from=(): Int' GET_FIELD 'x: Int' type=kotlin.Int origin=null receiver: GET_VAR 'this@TestProperty: TestProperty' type=TestProperty origin=null - CONSTRUCTOR public constructor TestProperty() + CONSTRUCTOR visibility:public <> () returnType:TestProperty flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Base()' INSTANCE_INITIALIZER_CALL classDescriptor='TestProperty' - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any - CLASS CLASS TestInitBlock - $this: VALUE_PARAMETER this@TestInitBlock: TestInitBlock - PROPERTY public final val x: kotlin.Int - FIELD PROPERTY_BACKING_FIELD public final val x: kotlin.Int - FUN DEFAULT_PROPERTY_ACCESSOR public final fun (): kotlin.Int - $this: VALUE_PARAMETER this@TestInitBlock: TestInitBlock + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + CLASS CLASS name:TestInitBlock modality:FINAL visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:TestInitBlock flags: + PROPERTY name:x type:kotlin.Int visibility:public modality:FINAL flags:val + FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.Int visibility:public + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:TestInitBlock) returnType:Int flags: + $this: VALUE_PARAMETER name: type:TestInitBlock flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): Int' + RETURN type=kotlin.Nothing from=(): Int' GET_FIELD 'x: Int' type=kotlin.Int origin=null receiver: GET_VAR 'this@TestInitBlock: TestInitBlock' type=TestInitBlock origin=null ANONYMOUS_INITIALIZER TestInitBlock BLOCK_BODY SET_FIELD 'x: Int' type=kotlin.Unit origin=null receiver: GET_VAR 'this@TestInitBlock: TestInitBlock' type=TestInitBlock origin=null - value: CONST Int type=kotlin.Int value='0' - CONSTRUCTOR public constructor TestInitBlock() + value: CONST Int type=kotlin.Int value=0 + CONSTRUCTOR visibility:public <> () returnType:TestInitBlock flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Base()' INSTANCE_INITIALIZER_CALL classDescriptor='TestInitBlock' - CONSTRUCTOR public constructor TestInitBlock(z: kotlin.Any) - VALUE_PARAMETER value-parameter z: kotlin.Any + CONSTRUCTOR visibility:public <> (z:kotlin.Any) returnType:TestInitBlock flags: + VALUE_PARAMETER name:z index:0 type:kotlin.Any flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Base()' INSTANCE_INITIALIZER_CALL classDescriptor='TestInitBlock' - CONSTRUCTOR public constructor TestInitBlock(y: kotlin.Int) - VALUE_PARAMETER value-parameter y: kotlin.Int + CONSTRUCTOR visibility:public <> (y:kotlin.Int) returnType:TestInitBlock flags: + VALUE_PARAMETER name:y index:0 type:kotlin.Int flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor TestInitBlock()' - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: diff --git a/compiler/testData/ir/irText/classes/secondaryConstructors.txt b/compiler/testData/ir/irText/classes/secondaryConstructors.txt index ef5757edf1a..832339c1105 100644 --- a/compiler/testData/ir/irText/classes/secondaryConstructors.txt +++ b/compiler/testData/ir/irText/classes/secondaryConstructors.txt @@ -1,20 +1,20 @@ -FILE /secondaryConstructors.kt - CLASS CLASS C - $this: VALUE_PARAMETER this@C: C - CONSTRUCTOR public constructor C() +FILE fqName: fileName:/secondaryConstructors.kt + CLASS CLASS name:C modality:FINAL visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:C flags: + CONSTRUCTOR visibility:public <> () returnType:C flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor C(Int)' - x: CONST Int type=kotlin.Int value='0' - CONSTRUCTOR public constructor C(x: kotlin.Int) - VALUE_PARAMETER value-parameter x: kotlin.Int + x: CONST Int type=kotlin.Int value=0 + CONSTRUCTOR visibility:public <> (x:kotlin.Int) returnType:C flags: + VALUE_PARAMETER name:x index:0 type:kotlin.Int flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='C' - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: diff --git a/compiler/testData/ir/irText/classes/superCalls.txt b/compiler/testData/ir/irText/classes/superCalls.txt index 7fb67bf102e..7114ade158e 100644 --- a/compiler/testData/ir/irText/classes/superCalls.txt +++ b/compiler/testData/ir/irText/classes/superCalls.txt @@ -1,53 +1,53 @@ -FILE /superCalls.kt - CLASS CLASS Base - $this: VALUE_PARAMETER this@Base: Base - CONSTRUCTOR public constructor Base() +FILE fqName: fileName:/superCalls.kt + CLASS CLASS name:Base modality:OPEN visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Base flags: + CONSTRUCTOR visibility:public <> () returnType:Base flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='Base' - FUN public open fun foo(): kotlin.Unit - $this: VALUE_PARAMETER this@Base: Base + FUN name:foo visibility:public modality:OPEN <> ($this:Base) returnType:Unit flags: + $this: VALUE_PARAMETER name: type:Base flags: BLOCK_BODY - PROPERTY public open val bar: kotlin.String = "" - FIELD PROPERTY_BACKING_FIELD public open val bar: kotlin.String = "" + PROPERTY name:bar type:kotlin.String visibility:public modality:OPEN flags:val + FIELD PROPERTY_BACKING_FIELD name:bar type:kotlin.String visibility:public EXPRESSION_BODY - CONST String type=kotlin.String value='' - FUN DEFAULT_PROPERTY_ACCESSOR public open fun (): kotlin.String - $this: VALUE_PARAMETER this@Base: Base + CONST String type=kotlin.String value= + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:OPEN <> ($this:Base) returnType:String flags: + $this: VALUE_PARAMETER name: type:Base flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): String' + RETURN type=kotlin.Nothing from=(): String' GET_FIELD 'bar: String' type=kotlin.String origin=null receiver: GET_VAR 'this@Base: Base' type=Base origin=null - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any - CLASS CLASS Derived - $this: VALUE_PARAMETER this@Derived: Derived - CONSTRUCTOR public constructor Derived() + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + CLASS CLASS name:Derived modality:FINAL visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Derived flags: + CONSTRUCTOR visibility:public <> () returnType:Derived flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Base()' INSTANCE_INITIALIZER_CALL classDescriptor='Derived' - FUN public open override fun foo(): kotlin.Unit - $this: VALUE_PARAMETER this@Derived: Derived + FUN name:foo visibility:public modality:OPEN <> ($this:Derived) returnType:Unit flags: + $this: VALUE_PARAMETER name: type:Derived flags: BLOCK_BODY CALL 'foo(): Unit' superQualifier=Base type=kotlin.Unit origin=null $this: GET_VAR 'this@Derived: Derived' type=Derived origin=null - PROPERTY public open override val bar: kotlin.String - FUN public open override fun (): kotlin.String - $this: VALUE_PARAMETER this@Derived: Derived + PROPERTY name:bar type:kotlin.String visibility:public modality:OPEN flags:val + FUN name: visibility:public modality:OPEN <> ($this:Derived) returnType:String flags: + $this: VALUE_PARAMETER name: type:Derived flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): String' + RETURN type=kotlin.Nothing from=(): String' CALL '(): String' superQualifier=Base type=kotlin.String origin=GET_PROPERTY $this: GET_VAR 'this@Derived: Derived' type=Derived origin=null - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: diff --git a/compiler/testData/ir/irText/declarations/catchParameterInTopLevelProperty.txt b/compiler/testData/ir/irText/declarations/catchParameterInTopLevelProperty.txt index 593e46e6e14..e990b1a231d 100644 --- a/compiler/testData/ir/irText/declarations/catchParameterInTopLevelProperty.txt +++ b/compiler/testData/ir/irText/declarations/catchParameterInTopLevelProperty.txt @@ -1,13 +1,14 @@ -FILE /catchParameterInTopLevelProperty.kt - PROPERTY public val test: kotlin.Unit - FIELD PROPERTY_BACKING_FIELD public val test: kotlin.Unit +FILE fqName: fileName:/catchParameterInTopLevelProperty.kt + PROPERTY name:test type:kotlin.Unit visibility:public modality:FINAL flags:val + FIELD PROPERTY_BACKING_FIELD name:test type:kotlin.Unit visibility:public EXPRESSION_BODY TRY type=kotlin.Unit try: BLOCK type=kotlin.Unit origin=null CATCH parameter=e: Throwable - VAR CATCH_PARAMETER val e: kotlin.Throwable + VAR CATCH_PARAMETER name:e type:kotlin.Throwable flags:val BLOCK type=kotlin.Unit origin=null - FUN DEFAULT_PROPERTY_ACCESSOR public fun (): kotlin.Unit + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:Unit flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): Unit' + RETURN type=kotlin.Nothing from=(): Unit' GET_FIELD 'test: Unit' type=kotlin.Unit origin=null + diff --git a/compiler/testData/ir/irText/declarations/classLevelProperties.txt b/compiler/testData/ir/irText/declarations/classLevelProperties.txt index 76df61fdbb3..88815dcab79 100644 --- a/compiler/testData/ir/irText/declarations/classLevelProperties.txt +++ b/compiler/testData/ir/irText/declarations/classLevelProperties.txt @@ -1,118 +1,118 @@ -FILE /classLevelProperties.kt - CLASS CLASS C - $this: VALUE_PARAMETER this@C: C - CONSTRUCTOR public constructor C() +FILE fqName: fileName:/classLevelProperties.kt + CLASS CLASS name:C modality:FINAL visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:C flags: + CONSTRUCTOR visibility:public <> () returnType:C flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='C' - PROPERTY public final val test1: kotlin.Int = 0 - FIELD PROPERTY_BACKING_FIELD public final val test1: kotlin.Int = 0 + PROPERTY name:test1 type:kotlin.Int visibility:public modality:FINAL flags:val + FIELD PROPERTY_BACKING_FIELD name:test1 type:kotlin.Int visibility:public EXPRESSION_BODY - CONST Int type=kotlin.Int value='0' - FUN DEFAULT_PROPERTY_ACCESSOR public final fun (): kotlin.Int - $this: VALUE_PARAMETER this@C: C + CONST Int type=kotlin.Int value=0 + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:C) returnType:Int flags: + $this: VALUE_PARAMETER name: type:C flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): Int' + RETURN type=kotlin.Nothing from=(): Int' GET_FIELD 'test1: Int' type=kotlin.Int origin=null receiver: GET_VAR 'this@C: C' type=C origin=null - PROPERTY public final val test2: kotlin.Int - FUN public final fun (): kotlin.Int - $this: VALUE_PARAMETER this@C: C + PROPERTY name:test2 type:kotlin.Int visibility:public modality:FINAL flags:val + FUN name: visibility:public modality:FINAL <> ($this:C) returnType:Int flags: + $this: VALUE_PARAMETER name: type:C flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): Int' - CONST Int type=kotlin.Int value='0' - PROPERTY public final var test3: kotlin.Int - FIELD PROPERTY_BACKING_FIELD public final var test3: kotlin.Int + RETURN type=kotlin.Nothing from=(): Int' + CONST Int type=kotlin.Int value=0 + PROPERTY name:test3 type:kotlin.Int visibility:public modality:FINAL flags:var + FIELD PROPERTY_BACKING_FIELD name:test3 type:kotlin.Int visibility:public EXPRESSION_BODY - CONST Int type=kotlin.Int value='0' - FUN DEFAULT_PROPERTY_ACCESSOR public final fun (): kotlin.Int - $this: VALUE_PARAMETER this@C: C + CONST Int type=kotlin.Int value=0 + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:C) returnType:Int flags: + $this: VALUE_PARAMETER name: type:C flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): Int' + RETURN type=kotlin.Nothing from=(): Int' GET_FIELD 'test3: Int' type=kotlin.Int origin=null receiver: GET_VAR 'this@C: C' type=C origin=null - FUN DEFAULT_PROPERTY_ACCESSOR public final fun (: kotlin.Int): kotlin.Unit - $this: VALUE_PARAMETER this@C: C - VALUE_PARAMETER value-parameter : kotlin.Int + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:C, :kotlin.Int) returnType:Unit flags: + $this: VALUE_PARAMETER name: type:C flags: + VALUE_PARAMETER name: index:0 type:kotlin.Int flags: BLOCK_BODY SET_FIELD 'test3: Int' type=kotlin.Unit origin=null receiver: GET_VAR 'this@C: C' type=C origin=null value: GET_VAR 'value-parameter : Int' type=kotlin.Int origin=null - PROPERTY public final var test4: kotlin.Int - FIELD PROPERTY_BACKING_FIELD public final var test4: kotlin.Int + PROPERTY name:test4 type:kotlin.Int visibility:public modality:FINAL flags:var + FIELD PROPERTY_BACKING_FIELD name:test4 type:kotlin.Int visibility:public EXPRESSION_BODY - CONST Int type=kotlin.Int value='1' - FUN DEFAULT_PROPERTY_ACCESSOR public final fun (): kotlin.Int - $this: VALUE_PARAMETER this@C: C + CONST Int type=kotlin.Int value=1 + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:C) returnType:Int flags: + $this: VALUE_PARAMETER name: type:C flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): Int' + RETURN type=kotlin.Nothing from=(): Int' GET_FIELD 'test4: Int' type=kotlin.Int origin=null receiver: GET_VAR 'this@C: C' type=C origin=null - FUN public final fun (value: kotlin.Int): kotlin.Unit - $this: VALUE_PARAMETER this@C: C - VALUE_PARAMETER value-parameter value: kotlin.Int + FUN name: visibility:public modality:FINAL <> ($this:C, value:kotlin.Int) returnType:Unit flags: + $this: VALUE_PARAMETER name: type:C flags: + VALUE_PARAMETER name:value index:0 type:kotlin.Int flags: BLOCK_BODY SET_FIELD 'test4: Int' type=kotlin.Unit origin=EQ receiver: GET_VAR 'this@C: C' type=C origin=null value: GET_VAR 'value-parameter value: Int' type=kotlin.Int origin=null - PROPERTY public final var test5: kotlin.Int - FIELD PROPERTY_BACKING_FIELD public final var test5: kotlin.Int + PROPERTY name:test5 type:kotlin.Int visibility:public modality:FINAL flags:var + FIELD PROPERTY_BACKING_FIELD name:test5 type:kotlin.Int visibility:public EXPRESSION_BODY - CONST Int type=kotlin.Int value='1' - FUN DEFAULT_PROPERTY_ACCESSOR public final fun (): kotlin.Int - $this: VALUE_PARAMETER this@C: C + CONST Int type=kotlin.Int value=1 + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:C) returnType:Int flags: + $this: VALUE_PARAMETER name: type:C flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): Int' + RETURN type=kotlin.Nothing from=(): Int' GET_FIELD 'test5: Int' type=kotlin.Int origin=null receiver: GET_VAR 'this@C: C' type=C origin=null - FUN private final fun (: kotlin.Int): kotlin.Unit - $this: VALUE_PARAMETER this@C: C - VALUE_PARAMETER value-parameter : kotlin.Int + FUN name: visibility:private modality:FINAL <> ($this:C, :kotlin.Int) returnType:Unit flags: + $this: VALUE_PARAMETER name: type:C flags: + VALUE_PARAMETER name: index:0 type:kotlin.Int flags: BLOCK_BODY SET_FIELD 'test5: Int' type=kotlin.Unit origin=null receiver: GET_VAR 'this@C: C' type=C origin=null value: GET_VAR 'value-parameter : Int' type=kotlin.Int origin=null - PROPERTY public final val test6: kotlin.Int = 1 - FIELD PROPERTY_BACKING_FIELD public final val test6: kotlin.Int = 1 + PROPERTY name:test6 type:kotlin.Int visibility:public modality:FINAL flags:val + FIELD PROPERTY_BACKING_FIELD name:test6 type:kotlin.Int visibility:public EXPRESSION_BODY - CONST Int type=kotlin.Int value='1' - FUN public final fun (): kotlin.Int - $this: VALUE_PARAMETER this@C: C + CONST Int type=kotlin.Int value=1 + FUN name: visibility:public modality:FINAL <> ($this:C) returnType:Int flags: + $this: VALUE_PARAMETER name: type:C flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): Int' + RETURN type=kotlin.Nothing from=(): Int' GET_FIELD 'test6: Int' type=kotlin.Int origin=null receiver: GET_VAR 'this@C: C' type=C origin=null - PROPERTY public final val test7: kotlin.Int - FIELD DELEGATE val `test7$delegate`: kotlin.Lazy + PROPERTY name:test7 type:kotlin.Int visibility:public modality:FINAL flags:delegatedmval + FIELD DELEGATE name:test7$delegate type:kotlin.Lazy visibility:private EXPRESSION_BODY CALL 'lazy(() -> Int): Lazy' type=kotlin.Lazy origin=null : Int initializer: BLOCK type=() -> kotlin.Int origin=LAMBDA - FUN LOCAL_FUNCTION_FOR_LAMBDA local final fun (): kotlin.Int + FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> () returnType:Int flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): Int' - CONST Int type=kotlin.Int value='42' + RETURN type=kotlin.Nothing from=(): Int' + CONST Int type=kotlin.Int value=42 FUNCTION_REFERENCE '(): Int' type=() -> kotlin.Int origin=LAMBDA - FUN DELEGATED_PROPERTY_ACCESSOR public final fun (): kotlin.Int - $this: VALUE_PARAMETER this@C: C + FUN DELEGATED_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:C) returnType:Int flags: + $this: VALUE_PARAMETER name: type:C flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): Int' + RETURN type=kotlin.Nothing from=(): Int' CALL 'getValue(Any?, KProperty<*>) on Lazy: Int' type=kotlin.Int origin=null : Int $receiver: GET_FIELD '`test7$delegate`: Lazy' type=kotlin.Lazy origin=null receiver: GET_VAR 'this@C: C' type=C origin=null thisRef: GET_VAR 'this@C: C' type=C origin=null property: PROPERTY_REFERENCE 'test7: Int' field=null getter='(): Int' setter=null type=kotlin.reflect.KProperty1 origin=PROPERTY_REFERENCE_FOR_DELEGATE - PROPERTY public final var test8: kotlin.Int - FIELD DELEGATE val `test8$delegate`: kotlin.collections.HashMap /* = java.util.HashMap */ + PROPERTY name:test8 type:kotlin.Int visibility:public modality:FINAL flags:delegatedmvar + FIELD DELEGATE name:test8$delegate type:kotlin.collections.HashMap /* = java.util.HashMap */ visibility:private EXPRESSION_BODY CALL 'hashMapOf(): HashMap /* = HashMap */' type=kotlin.collections.HashMap /* = java.util.HashMap */ origin=null : String : Int - FUN DELEGATED_PROPERTY_ACCESSOR public final fun (): kotlin.Int - $this: VALUE_PARAMETER this@C: C + FUN DELEGATED_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:C) returnType:Int flags: + $this: VALUE_PARAMETER name: type:C flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): Int' + RETURN type=kotlin.Nothing from=(): Int' CALL 'getValue(Any?, KProperty<*>) on MutableMap: Int' type=kotlin.Int origin=null : Int : Int @@ -120,11 +120,11 @@ FILE /classLevelProperties.kt receiver: GET_VAR 'this@C: C' type=C origin=null thisRef: GET_VAR 'this@C: C' type=C origin=null property: PROPERTY_REFERENCE 'test8: Int' field=null getter='(): Int' setter='(Int): Unit' type=kotlin.reflect.KMutableProperty1 origin=PROPERTY_REFERENCE_FOR_DELEGATE - FUN DELEGATED_PROPERTY_ACCESSOR public final fun (: kotlin.Int): kotlin.Unit - $this: VALUE_PARAMETER this@C: C - VALUE_PARAMETER value-parameter : kotlin.Int + FUN DELEGATED_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:C, :kotlin.Int) returnType:Unit flags: + $this: VALUE_PARAMETER name: type:C flags: + VALUE_PARAMETER name: index:0 type:kotlin.Int flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(Int): Unit' + RETURN type=kotlin.Nothing from=(Int): Unit' CALL 'setValue(Any?, KProperty<*>, Int) on MutableMap: Unit' type=kotlin.Unit origin=null : Int $receiver: GET_FIELD '`test8$delegate`: HashMap /* = HashMap */' type=kotlin.collections.HashMap /* = java.util.HashMap */ origin=null @@ -132,11 +132,11 @@ FILE /classLevelProperties.kt thisRef: GET_VAR 'this@C: C' type=C origin=null property: PROPERTY_REFERENCE 'test8: Int' field=null getter='(): Int' setter='(Int): Unit' type=kotlin.reflect.KMutableProperty1 origin=PROPERTY_REFERENCE_FOR_DELEGATE value: GET_VAR 'value-parameter : Int' type=kotlin.Int origin=null - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: diff --git a/compiler/testData/ir/irText/declarations/defaultArguments.txt b/compiler/testData/ir/irText/declarations/defaultArguments.txt index 5bde4be461a..71b8ba2b016 100644 --- a/compiler/testData/ir/irText/declarations/defaultArguments.txt +++ b/compiler/testData/ir/irText/declarations/defaultArguments.txt @@ -1,21 +1,21 @@ -FILE /defaultArguments.kt - FUN public fun test1(x: kotlin.Int, y: kotlin.Int = ..., z: kotlin.String = ...): kotlin.Unit - VALUE_PARAMETER value-parameter x: kotlin.Int - VALUE_PARAMETER value-parameter y: kotlin.Int = ... +FILE fqName: fileName:/defaultArguments.kt + FUN name:test1 visibility:public modality:FINAL <> (x:kotlin.Int, y:kotlin.Int, z:kotlin.String) returnType:Unit flags: + VALUE_PARAMETER name:x index:0 type:kotlin.Int flags: + VALUE_PARAMETER name:y index:1 type:kotlin.Int flags: EXPRESSION_BODY - CONST Int type=kotlin.Int value='0' - VALUE_PARAMETER value-parameter z: kotlin.String = ... + CONST Int type=kotlin.Int value=0 + VALUE_PARAMETER name:z index:2 type:kotlin.String flags: EXPRESSION_BODY - CONST String type=kotlin.String value='abc' + CONST String type=kotlin.String value=abc BLOCK_BODY - FUN local final fun local(xx: kotlin.Int = ..., yy: kotlin.Int = ..., zz: kotlin.String = ...): kotlin.Unit - VALUE_PARAMETER value-parameter xx: kotlin.Int = ... + FUN name:local visibility:local modality:FINAL <> (xx:kotlin.Int, yy:kotlin.Int, zz:kotlin.String) returnType:Unit flags: + VALUE_PARAMETER name:xx index:0 type:kotlin.Int flags: EXPRESSION_BODY GET_VAR 'value-parameter x: Int' type=kotlin.Int origin=null - VALUE_PARAMETER value-parameter yy: kotlin.Int = ... + VALUE_PARAMETER name:yy index:1 type:kotlin.Int flags: EXPRESSION_BODY GET_VAR 'value-parameter y: Int = ...' type=kotlin.Int origin=null - VALUE_PARAMETER value-parameter zz: kotlin.String = ... + VALUE_PARAMETER name:zz index:2 type:kotlin.String flags: EXPRESSION_BODY GET_VAR 'value-parameter z: String = ...' type=kotlin.String origin=null BLOCK_BODY diff --git a/compiler/testData/ir/irText/declarations/delegatedProperties.txt b/compiler/testData/ir/irText/declarations/delegatedProperties.txt index 02e7fd5fe25..fc80fdbbd07 100644 --- a/compiler/testData/ir/irText/declarations/delegatedProperties.txt +++ b/compiler/testData/ir/irText/declarations/delegatedProperties.txt @@ -1,70 +1,70 @@ -FILE /delegatedProperties.kt - PROPERTY public val test1: kotlin.Int - FIELD DELEGATE val `test1$delegate`: kotlin.Lazy +FILE fqName: fileName:/delegatedProperties.kt + PROPERTY name:test1 type:kotlin.Int visibility:public modality:FINAL flags:delegatedmval + FIELD DELEGATE name:test1$delegate type:kotlin.Lazy visibility:private EXPRESSION_BODY CALL 'lazy(() -> Int): Lazy' type=kotlin.Lazy origin=null : Int initializer: BLOCK type=() -> kotlin.Int origin=LAMBDA - FUN LOCAL_FUNCTION_FOR_LAMBDA local final fun (): kotlin.Int + FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> () returnType:Int flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): Int' - CONST Int type=kotlin.Int value='42' + RETURN type=kotlin.Nothing from=(): Int' + CONST Int type=kotlin.Int value=42 FUNCTION_REFERENCE '(): Int' type=() -> kotlin.Int origin=LAMBDA - FUN DELEGATED_PROPERTY_ACCESSOR public fun (): kotlin.Int + FUN DELEGATED_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:Int flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): Int' + RETURN type=kotlin.Nothing from=(): Int' CALL 'getValue(Any?, KProperty<*>) on Lazy: Int' type=kotlin.Int origin=null : Int $receiver: GET_FIELD '`test1$delegate`: Lazy' type=kotlin.Lazy origin=null - thisRef: CONST Null type=kotlin.Nothing? value='null' + thisRef: CONST Null type=kotlin.Nothing? value=null property: PROPERTY_REFERENCE 'test1: Int' field=null getter='(): Int' setter=null type=kotlin.reflect.KProperty0 origin=PROPERTY_REFERENCE_FOR_DELEGATE - CLASS CLASS C - $this: VALUE_PARAMETER this@C: C - CONSTRUCTOR public constructor C(map: kotlin.collections.MutableMap) - VALUE_PARAMETER value-parameter map: kotlin.collections.MutableMap + CLASS CLASS name:C modality:FINAL visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:C flags: + CONSTRUCTOR visibility:public <> (map:kotlin.collections.MutableMap) returnType:C flags: + VALUE_PARAMETER name:map index:0 type:kotlin.collections.MutableMap flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='C' - PROPERTY public final val map: kotlin.collections.MutableMap - FIELD PROPERTY_BACKING_FIELD public final val map: kotlin.collections.MutableMap + PROPERTY name:map type:kotlin.collections.MutableMap visibility:public modality:FINAL flags:val + FIELD PROPERTY_BACKING_FIELD name:map type:kotlin.collections.MutableMap visibility:public EXPRESSION_BODY GET_VAR 'value-parameter map: MutableMap' type=kotlin.collections.MutableMap origin=INITIALIZE_PROPERTY_FROM_PARAMETER - FUN DEFAULT_PROPERTY_ACCESSOR public final fun (): kotlin.collections.MutableMap - $this: VALUE_PARAMETER this@C: C + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:C) returnType:MutableMap flags: + $this: VALUE_PARAMETER name: type:C flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): MutableMap' + RETURN type=kotlin.Nothing from=(): MutableMap' GET_FIELD 'map: MutableMap' type=kotlin.collections.MutableMap origin=null receiver: GET_VAR 'this@C: C' type=C origin=null - PROPERTY public final val test2: kotlin.Int - FIELD DELEGATE val `test2$delegate`: kotlin.Lazy + PROPERTY name:test2 type:kotlin.Int visibility:public modality:FINAL flags:delegatedmval + FIELD DELEGATE name:test2$delegate type:kotlin.Lazy visibility:private EXPRESSION_BODY CALL 'lazy(() -> Int): Lazy' type=kotlin.Lazy origin=null : Int initializer: BLOCK type=() -> kotlin.Int origin=LAMBDA - FUN LOCAL_FUNCTION_FOR_LAMBDA local final fun (): kotlin.Int + FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> () returnType:Int flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): Int' - CONST Int type=kotlin.Int value='42' + RETURN type=kotlin.Nothing from=(): Int' + CONST Int type=kotlin.Int value=42 FUNCTION_REFERENCE '(): Int' type=() -> kotlin.Int origin=LAMBDA - FUN DELEGATED_PROPERTY_ACCESSOR public final fun (): kotlin.Int - $this: VALUE_PARAMETER this@C: C + FUN DELEGATED_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:C) returnType:Int flags: + $this: VALUE_PARAMETER name: type:C flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): Int' + RETURN type=kotlin.Nothing from=(): Int' CALL 'getValue(Any?, KProperty<*>) on Lazy: Int' type=kotlin.Int origin=null : Int $receiver: GET_FIELD '`test2$delegate`: Lazy' type=kotlin.Lazy origin=null receiver: GET_VAR 'this@C: C' type=C origin=null thisRef: GET_VAR 'this@C: C' type=C origin=null property: PROPERTY_REFERENCE 'test2: Int' field=null getter='(): Int' setter=null type=kotlin.reflect.KProperty1 origin=PROPERTY_REFERENCE_FOR_DELEGATE - PROPERTY public final var test3: kotlin.Any - FIELD DELEGATE val `test3$delegate`: kotlin.collections.MutableMap + PROPERTY name:test3 type:kotlin.Any visibility:public modality:FINAL flags:delegatedmvar + FIELD DELEGATE name:test3$delegate type:kotlin.collections.MutableMap visibility:private EXPRESSION_BODY CALL '(): MutableMap' type=kotlin.collections.MutableMap origin=GET_PROPERTY $this: GET_VAR 'this@C: C' type=C origin=null - FUN DELEGATED_PROPERTY_ACCESSOR public final fun (): kotlin.Any - $this: VALUE_PARAMETER this@C: C + FUN DELEGATED_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:C) returnType:Any flags: + $this: VALUE_PARAMETER name: type:C flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): Any' + RETURN type=kotlin.Nothing from=(): Any' CALL 'getValue(Any?, KProperty<*>) on MutableMap: Any' type=kotlin.Any origin=null : Any : Any @@ -72,11 +72,11 @@ FILE /delegatedProperties.kt receiver: GET_VAR 'this@C: C' type=C origin=null thisRef: GET_VAR 'this@C: C' type=C origin=null property: PROPERTY_REFERENCE 'test3: Any' field=null getter='(): Any' setter='(Any): Unit' type=kotlin.reflect.KMutableProperty1 origin=PROPERTY_REFERENCE_FOR_DELEGATE - FUN DELEGATED_PROPERTY_ACCESSOR public final fun (: kotlin.Any): kotlin.Unit - $this: VALUE_PARAMETER this@C: C - VALUE_PARAMETER value-parameter : kotlin.Any + FUN DELEGATED_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:C, :kotlin.Any) returnType:Unit flags: + $this: VALUE_PARAMETER name: type:C flags: + VALUE_PARAMETER name: index:0 type:kotlin.Any flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(Any): Unit' + RETURN type=kotlin.Nothing from=(Any): Unit' CALL 'setValue(Any?, KProperty<*>, Any) on MutableMap: Unit' type=kotlin.Unit origin=null : Any $receiver: GET_FIELD '`test3$delegate`: MutableMap' type=kotlin.collections.MutableMap origin=null @@ -84,36 +84,36 @@ FILE /delegatedProperties.kt thisRef: GET_VAR 'this@C: C' type=C origin=null property: PROPERTY_REFERENCE 'test3: Any' field=null getter='(): Any' setter='(Any): Unit' type=kotlin.reflect.KMutableProperty1 origin=PROPERTY_REFERENCE_FOR_DELEGATE value: GET_VAR 'value-parameter : Any' type=kotlin.Any origin=null - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any - PROPERTY public var test4: kotlin.Any - FIELD DELEGATE val `test4$delegate`: kotlin.collections.HashMap /* = java.util.HashMap */ + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + PROPERTY name:test4 type:kotlin.Any visibility:public modality:FINAL flags:delegatedmvar + FIELD DELEGATE name:test4$delegate type:kotlin.collections.HashMap /* = java.util.HashMap */ visibility:private EXPRESSION_BODY CALL 'hashMapOf(): HashMap /* = HashMap */' type=kotlin.collections.HashMap /* = java.util.HashMap */ origin=null : String : Any - FUN DELEGATED_PROPERTY_ACCESSOR public fun (): kotlin.Any + FUN DELEGATED_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:Any flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): Any' + RETURN type=kotlin.Nothing from=(): Any' CALL 'getValue(Any?, KProperty<*>) on MutableMap: Any' type=kotlin.Any origin=null : Any : Any $receiver: GET_FIELD '`test4$delegate`: HashMap /* = HashMap */' type=kotlin.collections.HashMap /* = java.util.HashMap */ origin=null - thisRef: CONST Null type=kotlin.Nothing? value='null' + thisRef: CONST Null type=kotlin.Nothing? value=null property: PROPERTY_REFERENCE 'test4: Any' field=null getter='(): Any' setter='(Any): Unit' type=kotlin.reflect.KMutableProperty0 origin=PROPERTY_REFERENCE_FOR_DELEGATE - FUN DELEGATED_PROPERTY_ACCESSOR public fun (: kotlin.Any): kotlin.Unit - VALUE_PARAMETER value-parameter : kotlin.Any + FUN DELEGATED_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> (:kotlin.Any) returnType:Unit flags: + VALUE_PARAMETER name: index:0 type:kotlin.Any flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(Any): Unit' + RETURN type=kotlin.Nothing from=(Any): Unit' CALL 'setValue(Any?, KProperty<*>, Any) on MutableMap: Unit' type=kotlin.Unit origin=null : Any $receiver: GET_FIELD '`test4$delegate`: HashMap /* = HashMap */' type=kotlin.collections.HashMap /* = java.util.HashMap */ origin=null - thisRef: CONST Null type=kotlin.Nothing? value='null' + thisRef: CONST Null type=kotlin.Nothing? value=null property: PROPERTY_REFERENCE 'test4: Any' field=null getter='(): Any' setter='(Any): Unit' type=kotlin.reflect.KMutableProperty0 origin=PROPERTY_REFERENCE_FOR_DELEGATE value: GET_VAR 'value-parameter : Any' type=kotlin.Any origin=null diff --git a/compiler/testData/ir/irText/declarations/fakeOverrides.txt b/compiler/testData/ir/irText/declarations/fakeOverrides.txt index bc9f050ca37..30b64f67bb9 100644 --- a/compiler/testData/ir/irText/declarations/fakeOverrides.txt +++ b/compiler/testData/ir/irText/declarations/fakeOverrides.txt @@ -1,71 +1,71 @@ -FILE /fakeOverrides.kt - CLASS INTERFACE IFooStr - $this: VALUE_PARAMETER this@IFooStr: IFooStr - FUN public abstract fun foo(x: kotlin.String): kotlin.Unit - $this: VALUE_PARAMETER this@IFooStr: IFooStr - VALUE_PARAMETER value-parameter x: kotlin.String - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any - CLASS INTERFACE IBar - $this: VALUE_PARAMETER this@IBar: IBar - PROPERTY public abstract val bar: kotlin.Int - FUN DEFAULT_PROPERTY_ACCESSOR public abstract fun (): kotlin.Int - $this: VALUE_PARAMETER this@IBar: IBar - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any - CLASS CLASS CFoo - $this: VALUE_PARAMETER this@CFoo: CFoo - TYPE_PARAMETER - CONSTRUCTOR public constructor CFoo() +FILE fqName: fileName:/fakeOverrides.kt + CLASS INTERFACE name:IFooStr modality:ABSTRACT visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:IFooStr flags: + FUN name:foo visibility:public modality:ABSTRACT <> ($this:IFooStr, x:kotlin.String) returnType:Unit flags: + $this: VALUE_PARAMETER name: type:IFooStr flags: + VALUE_PARAMETER name:x index:0 type:kotlin.String flags: + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + CLASS INTERFACE name:IBar modality:ABSTRACT visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:IBar flags: + PROPERTY name:bar type:kotlin.Int visibility:public modality:ABSTRACT flags:val + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:ABSTRACT <> ($this:IBar) returnType:Int flags: + $this: VALUE_PARAMETER name: type:IBar flags: + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + CLASS CLASS name:CFoo modality:ABSTRACT visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:CFoo flags: + TYPE_PARAMETER name:T index:0 variance: upperBounds:[kotlin.Any?] + CONSTRUCTOR visibility:public <> () returnType:CFoo flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='CFoo' - FUN public final fun foo(x: T): kotlin.Unit - $this: VALUE_PARAMETER this@CFoo: CFoo - VALUE_PARAMETER value-parameter x: T + FUN name:foo visibility:public modality:FINAL <> ($this:CFoo, x:T) returnType:Unit flags: + $this: VALUE_PARAMETER name: type:CFoo flags: + VALUE_PARAMETER name:x index:0 type:T flags: BLOCK_BODY - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any - CLASS CLASS Test1 - $this: VALUE_PARAMETER this@Test1: Test1 - CONSTRUCTOR public constructor Test1() + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + CLASS CLASS name:Test1 modality:FINAL visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Test1 flags: + CONSTRUCTOR visibility:public <> () returnType:Test1 flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor CFoo()' : String INSTANCE_INITIALIZER_CALL classDescriptor='Test1' - PROPERTY public open override val bar: kotlin.Int = 42 - FIELD PROPERTY_BACKING_FIELD public open override val bar: kotlin.Int = 42 + PROPERTY name:bar type:kotlin.Int visibility:public modality:OPEN flags:val + FIELD PROPERTY_BACKING_FIELD name:bar type:kotlin.Int visibility:public EXPRESSION_BODY - CONST Int type=kotlin.Int value='42' - FUN DEFAULT_PROPERTY_ACCESSOR public open override fun (): kotlin.Int - $this: VALUE_PARAMETER this@Test1: Test1 + CONST Int type=kotlin.Int value=42 + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:OPEN <> ($this:Test1) returnType:Int flags: + $this: VALUE_PARAMETER name: type:Test1 flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): Int' + RETURN type=kotlin.Nothing from=(): Int' GET_FIELD 'bar: Int' type=kotlin.Int origin=null receiver: GET_VAR 'this@Test1: Test1' type=Test1 origin=null - FUN FAKE_OVERRIDE public final override fun foo(x: kotlin.String): kotlin.Unit - $this: VALUE_PARAMETER this@CFoo: CFoo - VALUE_PARAMETER value-parameter x: kotlin.String - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any + FUN FAKE_OVERRIDE name:foo visibility:public modality:FINAL <> ($this:CFoo, x:kotlin.String) returnType:Unit flags: + $this: VALUE_PARAMETER name: type:CFoo flags: + VALUE_PARAMETER name:x index:0 type:kotlin.String flags: + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: diff --git a/compiler/testData/ir/irText/declarations/fileWithAnnotations.txt b/compiler/testData/ir/irText/declarations/fileWithAnnotations.txt index a0da359d9dd..f1fd1b671ee 100644 --- a/compiler/testData/ir/irText/declarations/fileWithAnnotations.txt +++ b/compiler/testData/ir/irText/declarations/fileWithAnnotations.txt @@ -1,14 +1,14 @@ -FILE /fileWithAnnotations.kt +FILE fqName: fileName:/fileWithAnnotations.kt fileAnnotations: @kotlin.jvm.JvmName(name = "FileWithAnnotations") - FUN public fun foo(): kotlin.Unit + FUN name:foo visibility:public modality:FINAL <> () returnType:Unit flags: BLOCK_BODY - PROPERTY public val bar: kotlin.Int = 42 - FIELD PROPERTY_BACKING_FIELD public val bar: kotlin.Int = 42 + PROPERTY name:bar type:kotlin.Int visibility:public modality:FINAL flags:val + FIELD PROPERTY_BACKING_FIELD name:bar type:kotlin.Int visibility:public EXPRESSION_BODY - CONST Int type=kotlin.Int value='42' - FUN DEFAULT_PROPERTY_ACCESSOR public fun (): kotlin.Int + CONST Int type=kotlin.Int value=42 + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:Int flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): Int' + RETURN type=kotlin.Nothing from=(): Int' GET_FIELD 'bar: Int' type=kotlin.Int origin=null diff --git a/compiler/testData/ir/irText/declarations/interfaceProperties.txt b/compiler/testData/ir/irText/declarations/interfaceProperties.txt index 8dca5de27ba..ac79231d14e 100644 --- a/compiler/testData/ir/irText/declarations/interfaceProperties.txt +++ b/compiler/testData/ir/irText/declarations/interfaceProperties.txt @@ -1,36 +1,36 @@ -FILE /interfaceProperties.kt - CLASS INTERFACE C - $this: VALUE_PARAMETER this@C: C - PROPERTY public abstract val test1: kotlin.Int - FUN DEFAULT_PROPERTY_ACCESSOR public abstract fun (): kotlin.Int - $this: VALUE_PARAMETER this@C: C - PROPERTY public open val test2: kotlin.Int - FUN public open fun (): kotlin.Int - $this: VALUE_PARAMETER this@C: C +FILE fqName: fileName:/interfaceProperties.kt + CLASS INTERFACE name:C modality:ABSTRACT visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:C flags: + PROPERTY name:test1 type:kotlin.Int visibility:public modality:ABSTRACT flags:val + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:ABSTRACT <> ($this:C) returnType:Int flags: + $this: VALUE_PARAMETER name: type:C flags: + PROPERTY name:test2 type:kotlin.Int visibility:public modality:OPEN flags:val + FUN name: visibility:public modality:OPEN <> ($this:C) returnType:Int flags: + $this: VALUE_PARAMETER name: type:C flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): Int' - CONST Int type=kotlin.Int value='0' - PROPERTY public abstract var test3: kotlin.Int - FUN DEFAULT_PROPERTY_ACCESSOR public abstract fun (): kotlin.Int - $this: VALUE_PARAMETER this@C: C - FUN DEFAULT_PROPERTY_ACCESSOR public abstract fun (: kotlin.Int): kotlin.Unit - $this: VALUE_PARAMETER this@C: C - VALUE_PARAMETER value-parameter : kotlin.Int - PROPERTY public open var test4: kotlin.Int - FUN public open fun (): kotlin.Int - $this: VALUE_PARAMETER this@C: C + RETURN type=kotlin.Nothing from=(): Int' + CONST Int type=kotlin.Int value=0 + PROPERTY name:test3 type:kotlin.Int visibility:public modality:ABSTRACT flags:var + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:ABSTRACT <> ($this:C) returnType:Int flags: + $this: VALUE_PARAMETER name: type:C flags: + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:ABSTRACT <> ($this:C, :kotlin.Int) returnType:Unit flags: + $this: VALUE_PARAMETER name: type:C flags: + VALUE_PARAMETER name: index:0 type:kotlin.Int flags: + PROPERTY name:test4 type:kotlin.Int visibility:public modality:OPEN flags:var + FUN name: visibility:public modality:OPEN <> ($this:C) returnType:Int flags: + $this: VALUE_PARAMETER name: type:C flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): Int' - CONST Int type=kotlin.Int value='0' - FUN public open fun (value: kotlin.Int): kotlin.Unit - $this: VALUE_PARAMETER this@C: C - VALUE_PARAMETER value-parameter value: kotlin.Int + RETURN type=kotlin.Nothing from=(): Int' + CONST Int type=kotlin.Int value=0 + FUN name: visibility:public modality:OPEN <> ($this:C, value:kotlin.Int) returnType:Unit flags: + $this: VALUE_PARAMETER name: type:C flags: + VALUE_PARAMETER name:value index:0 type:kotlin.Int flags: BLOCK_BODY - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: diff --git a/compiler/testData/ir/irText/declarations/localDelegatedProperties.txt b/compiler/testData/ir/irText/declarations/localDelegatedProperties.txt index 612350304ab..9bdd6ae8d50 100644 --- a/compiler/testData/ir/irText/declarations/localDelegatedProperties.txt +++ b/compiler/testData/ir/irText/declarations/localDelegatedProperties.txt @@ -1,58 +1,58 @@ -FILE /localDelegatedProperties.kt - FUN public fun test1(): kotlin.Unit +FILE fqName: fileName:/localDelegatedProperties.kt + FUN name:test1 visibility:public modality:FINAL <> () returnType:Unit flags: BLOCK_BODY - LOCAL_DELEGATED_PROPERTY val x: kotlin.Int - VAR DELEGATE val `x$delegate`: kotlin.Lazy + LOCAL_DELEGATED_PROPERTY name:x type:kotlin.Int flags:val + VAR DELEGATE name:x$delegate type:kotlin.Lazy flags:val CALL 'lazy(() -> Int): Lazy' type=kotlin.Lazy origin=null : Int initializer: BLOCK type=() -> kotlin.Int origin=LAMBDA - FUN LOCAL_FUNCTION_FOR_LAMBDA local final fun (): kotlin.Int + FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> () returnType:Int flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): Int' - CONST Int type=kotlin.Int value='42' + RETURN type=kotlin.Nothing from=(): Int' + CONST Int type=kotlin.Int value=42 FUNCTION_REFERENCE '(): Int' type=() -> kotlin.Int origin=LAMBDA - FUN DELEGATED_PROPERTY_ACCESSOR local final fun (): kotlin.Int + FUN DELEGATED_PROPERTY_ACCESSOR name: visibility:local modality:FINAL <> () returnType:Int flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): Int' + RETURN type=kotlin.Nothing from=(): Int' CALL 'getValue(Any?, KProperty<*>) on Lazy: Int' type=kotlin.Int origin=null : Int $receiver: GET_VAR '`x$delegate`: Lazy' type=kotlin.Lazy origin=null - thisRef: CONST Null type=kotlin.Nothing? value='null' + thisRef: CONST Null type=kotlin.Nothing? value=null property: LOCAL_DELEGATED_PROPERTY_REFERENCE 'x: Int' delegate='`x$delegate`: Lazy' getter='(): Int' setter=null type=kotlin.reflect.KProperty0 origin=PROPERTY_REFERENCE_FOR_DELEGATE CALL 'println(Int): Unit' type=kotlin.Unit origin=null message: CALL '(): Int' type=kotlin.Int origin=GET_LOCAL_PROPERTY - FUN public fun test2(): kotlin.Unit + FUN name:test2 visibility:public modality:FINAL <> () returnType:Unit flags: BLOCK_BODY - LOCAL_DELEGATED_PROPERTY var x: kotlin.Int - VAR DELEGATE val `x$delegate`: kotlin.collections.HashMap /* = java.util.HashMap */ + LOCAL_DELEGATED_PROPERTY name:x type:kotlin.Int flags:var + VAR DELEGATE name:x$delegate type:kotlin.collections.HashMap /* = java.util.HashMap */ flags:val CALL 'hashMapOf(): HashMap /* = HashMap */' type=kotlin.collections.HashMap /* = java.util.HashMap */ origin=null : String : Int - FUN DELEGATED_PROPERTY_ACCESSOR local final fun (): kotlin.Int + FUN DELEGATED_PROPERTY_ACCESSOR name: visibility:local modality:FINAL <> () returnType:Int flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): Int' + RETURN type=kotlin.Nothing from=(): Int' CALL 'getValue(Any?, KProperty<*>) on MutableMap: Int' type=kotlin.Int origin=null : Int : Int $receiver: GET_VAR '`x$delegate`: HashMap /* = HashMap */' type=kotlin.collections.HashMap /* = java.util.HashMap */ origin=null - thisRef: CONST Null type=kotlin.Nothing? value='null' + thisRef: CONST Null type=kotlin.Nothing? value=null property: LOCAL_DELEGATED_PROPERTY_REFERENCE 'x: Int' delegate='`x$delegate`: HashMap /* = HashMap */' getter='(): Int' setter='(Int): Unit' type=kotlin.reflect.KMutableProperty0 origin=PROPERTY_REFERENCE_FOR_DELEGATE - FUN DELEGATED_PROPERTY_ACCESSOR local final fun (value: kotlin.Int): kotlin.Unit - VALUE_PARAMETER value-parameter value: kotlin.Int + FUN DELEGATED_PROPERTY_ACCESSOR name: visibility:local modality:FINAL <> (value:kotlin.Int) returnType:Unit flags: + VALUE_PARAMETER name:value index:0 type:kotlin.Int flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(Int): Unit' + RETURN type=kotlin.Nothing from=(Int): Unit' CALL 'setValue(Any?, KProperty<*>, Int) on MutableMap: Unit' type=kotlin.Unit origin=null : Int $receiver: GET_VAR '`x$delegate`: HashMap /* = HashMap */' type=kotlin.collections.HashMap /* = java.util.HashMap */ origin=null - thisRef: CONST Null type=kotlin.Nothing? value='null' + thisRef: CONST Null type=kotlin.Nothing? value=null property: LOCAL_DELEGATED_PROPERTY_REFERENCE 'x: Int' delegate='`x$delegate`: HashMap /* = HashMap */' getter='(): Int' setter='(Int): Unit' type=kotlin.reflect.KMutableProperty0 origin=PROPERTY_REFERENCE_FOR_DELEGATE value: GET_VAR 'value-parameter value: Int' type=kotlin.Int origin=null TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit CALL '(Int): Unit' type=kotlin.Int origin=EQ - value: CONST Int type=kotlin.Int value='0' + value: CONST Int type=kotlin.Int value=0 TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit BLOCK type=kotlin.Int origin=POSTFIX_INCR - VAR IR_TEMPORARY_VARIABLE val tmp0: kotlin.Int + VAR IR_TEMPORARY_VARIABLE name:tmp0 type:kotlin.Int flags:val CALL '(): Int' type=kotlin.Int origin=POSTFIX_INCR TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit CALL '(Int): Unit' type=kotlin.Int origin=POSTFIX_INCR @@ -63,4 +63,5 @@ FILE /localDelegatedProperties.kt CALL '(Int): Unit' type=kotlin.Int origin=PLUSEQ value: CALL 'plus(Int): Int' type=kotlin.Int origin=PLUSEQ $this: CALL '(): Int' type=kotlin.Int origin=PLUSEQ - other: CONST Int type=kotlin.Int value='1' + other: CONST Int type=kotlin.Int value=1 + diff --git a/compiler/testData/ir/irText/declarations/localDelegatedPropertyWithSuspendOperators.txt b/compiler/testData/ir/irText/declarations/localDelegatedPropertyWithSuspendOperators.txt index c1b5cffa012..2b5830a17a6 100644 --- a/compiler/testData/ir/irText/declarations/localDelegatedPropertyWithSuspendOperators.txt +++ b/compiler/testData/ir/irText/declarations/localDelegatedPropertyWithSuspendOperators.txt @@ -1,47 +1,47 @@ -FILE /localDelegatedPropertyWithSuspendOperators.kt - CLASS CLASS A - $this: VALUE_PARAMETER this@A: A - CONSTRUCTOR public constructor A() +FILE fqName: fileName:/localDelegatedPropertyWithSuspendOperators.kt + CLASS CLASS name:A modality:FINAL visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:A flags: + CONSTRUCTOR visibility:public <> () returnType:A flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='A' - PROPERTY public final var z: kotlin.Int - FIELD PROPERTY_BACKING_FIELD public final var z: kotlin.Int + PROPERTY name:z type:kotlin.Int visibility:public modality:FINAL flags:var + FIELD PROPERTY_BACKING_FIELD name:z type:kotlin.Int visibility:public EXPRESSION_BODY - CONST Int type=kotlin.Int value='42' - FUN DEFAULT_PROPERTY_ACCESSOR public final fun (): kotlin.Int - $this: VALUE_PARAMETER this@A: A + CONST Int type=kotlin.Int value=42 + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:A) returnType:Int flags: + $this: VALUE_PARAMETER name: type:A flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): Int' + RETURN type=kotlin.Nothing from=(): Int' GET_FIELD 'z: Int' type=kotlin.Int origin=null receiver: GET_VAR 'this@A: A' type=A origin=null - FUN DEFAULT_PROPERTY_ACCESSOR public final fun (: kotlin.Int): kotlin.Unit - $this: VALUE_PARAMETER this@A: A - VALUE_PARAMETER value-parameter : kotlin.Int + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:A, :kotlin.Int) returnType:Unit flags: + $this: VALUE_PARAMETER name: type:A flags: + VALUE_PARAMETER name: index:0 type:kotlin.Int flags: BLOCK_BODY SET_FIELD 'z: Int' type=kotlin.Unit origin=null receiver: GET_VAR 'this@A: A' type=A origin=null value: GET_VAR 'value-parameter : Int' type=kotlin.Int origin=null - FUN public final suspend operator fun getValue(thisRef: kotlin.Any?, property: kotlin.reflect.KProperty<*>): kotlin.Int - $this: VALUE_PARAMETER this@A: A - VALUE_PARAMETER value-parameter thisRef: kotlin.Any? - VALUE_PARAMETER value-parameter property: kotlin.reflect.KProperty<*> + FUN name:getValue visibility:public modality:FINAL <> ($this:A, thisRef:kotlin.Any?, property:kotlin.reflect.KProperty<*>) returnType:Int flags:suspend + $this: VALUE_PARAMETER name: type:A flags: + VALUE_PARAMETER name:thisRef index:0 type:kotlin.Any? flags: + VALUE_PARAMETER name:property index:1 type:kotlin.reflect.KProperty<*> flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='getValue(Any?, KProperty<*>): Int' + RETURN type=kotlin.Nothing from=getValue(Any?, KProperty<*>): Int' CALL '(): Int' type=kotlin.Int origin=GET_PROPERTY $this: GET_VAR 'this@A: A' type=A origin=null - FUN public final suspend operator fun setValue(thisRef: kotlin.Any?, property: kotlin.reflect.KProperty<*>, value: kotlin.Int): kotlin.Unit - $this: VALUE_PARAMETER this@A: A - VALUE_PARAMETER value-parameter thisRef: kotlin.Any? - VALUE_PARAMETER value-parameter property: kotlin.reflect.KProperty<*> - VALUE_PARAMETER value-parameter value: kotlin.Int + FUN name:setValue visibility:public modality:FINAL <> ($this:A, thisRef:kotlin.Any?, property:kotlin.reflect.KProperty<*>, value:kotlin.Int) returnType:Unit flags:suspend + $this: VALUE_PARAMETER name: type:A flags: + VALUE_PARAMETER name:thisRef index:0 type:kotlin.Any? flags: + VALUE_PARAMETER name:property index:1 type:kotlin.reflect.KProperty<*> flags: + VALUE_PARAMETER name:value index:2 type:kotlin.Int flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='setValue(Any?, KProperty<*>, Int): Unit' + RETURN type=kotlin.Nothing from=setValue(Any?, KProperty<*>, Int): Unit' CALL 'suspendCoroutineOrReturn(crossinline (Continuation) -> Any?): Unit' type=kotlin.Unit origin=null : Unit block: BLOCK type=(kotlin.coroutines.experimental.Continuation) -> kotlin.Any origin=LAMBDA - FUN LOCAL_FUNCTION_FOR_LAMBDA local final fun (x: kotlin.coroutines.experimental.Continuation): kotlin.Any - VALUE_PARAMETER value-parameter x: kotlin.coroutines.experimental.Continuation + FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> (x:kotlin.coroutines.experimental.Continuation) returnType:Any flags: + VALUE_PARAMETER name:x index:0 type:kotlin.coroutines.experimental.Continuation flags: BLOCK_BODY CALL '(Int): Unit' type=kotlin.Unit origin=EQ $this: GET_VAR 'this@A: A' type=A origin=null @@ -49,68 +49,69 @@ FILE /localDelegatedPropertyWithSuspendOperators.kt CALL 'resume(Unit): Unit' type=kotlin.Unit origin=null $this: GET_VAR 'value-parameter x: Continuation' type=kotlin.coroutines.experimental.Continuation origin=null value: GET_OBJECT 'Unit' type=kotlin.Unit - RETURN type=kotlin.Nothing from='(Continuation): Any' + RETURN type=kotlin.Nothing from=(Continuation): Any' CALL '(): Any' type=kotlin.Any origin=GET_PROPERTY FUNCTION_REFERENCE '(Continuation): Any' type=(kotlin.coroutines.experimental.Continuation) -> kotlin.Any origin=LAMBDA - FUN public final suspend operator fun provideDelegate(host: kotlin.Any?, p: kotlin.Any): A - $this: VALUE_PARAMETER this@A: A - VALUE_PARAMETER value-parameter host: kotlin.Any? - VALUE_PARAMETER value-parameter p: kotlin.Any + FUN name:provideDelegate visibility:public modality:FINAL <> ($this:A, host:kotlin.Any?, p:kotlin.Any) returnType:A flags:suspend + $this: VALUE_PARAMETER name: type:A flags: + VALUE_PARAMETER name:host index:0 type:kotlin.Any? flags: + VALUE_PARAMETER name:p index:1 type:kotlin.Any flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='provideDelegate(Any?, Any): A' + RETURN type=kotlin.Nothing from=provideDelegate(Any?, Any): A' CALL 'suspendCoroutineOrReturn(crossinline (Continuation) -> Any?): A' type=A origin=null : A block: BLOCK type=(kotlin.coroutines.experimental.Continuation) -> kotlin.Any origin=LAMBDA - FUN LOCAL_FUNCTION_FOR_LAMBDA local final fun (x: kotlin.coroutines.experimental.Continuation): kotlin.Any - VALUE_PARAMETER value-parameter x: kotlin.coroutines.experimental.Continuation + FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> (x:kotlin.coroutines.experimental.Continuation) returnType:Any flags: + VALUE_PARAMETER name:x index:0 type:kotlin.coroutines.experimental.Continuation flags: BLOCK_BODY CALL 'resume(A): Unit' type=kotlin.Unit origin=null $this: GET_VAR 'value-parameter x: Continuation' type=kotlin.coroutines.experimental.Continuation origin=null value: GET_VAR 'this@A: A' type=A origin=null - RETURN type=kotlin.Nothing from='(Continuation): Any' + RETURN type=kotlin.Nothing from=(Continuation): Any' CALL '(): Any' type=kotlin.Any origin=GET_PROPERTY FUNCTION_REFERENCE '(Continuation): Any' type=(kotlin.coroutines.experimental.Continuation) -> kotlin.Any origin=LAMBDA - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any - FUN public suspend fun test(): kotlin.Unit + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN name:test visibility:public modality:FINAL <> () returnType:Unit flags:suspend BLOCK_BODY - LOCAL_DELEGATED_PROPERTY val testVal: kotlin.Int - VAR DELEGATE val `testVal$delegate`: A + LOCAL_DELEGATED_PROPERTY name:testVal type:kotlin.Int flags:val + VAR DELEGATE name:testVal$delegate type:A flags:val CALL 'provideDelegate(Any?, Any): A' type=A origin=null $this: CALL 'constructor A()' type=A origin=null - host: CONST Null type=kotlin.Nothing? value='null' + host: CONST Null type=kotlin.Nothing? value=null p: LOCAL_DELEGATED_PROPERTY_REFERENCE 'testVal: Int' delegate='`testVal$delegate`: A' getter='(): Int' setter=null type=kotlin.reflect.KProperty0 origin=PROPERTY_REFERENCE_FOR_DELEGATE - FUN DELEGATED_PROPERTY_ACCESSOR local final suspend fun (): kotlin.Int + FUN DELEGATED_PROPERTY_ACCESSOR name: visibility:local modality:FINAL <> () returnType:Int flags:suspend BLOCK_BODY - RETURN type=kotlin.Nothing from='(): Int' + RETURN type=kotlin.Nothing from=(): Int' CALL 'getValue(Any?, KProperty<*>): Int' type=kotlin.Int origin=null $this: GET_VAR '`testVal$delegate`: A' type=A origin=null - thisRef: CONST Null type=kotlin.Nothing? value='null' + thisRef: CONST Null type=kotlin.Nothing? value=null property: LOCAL_DELEGATED_PROPERTY_REFERENCE 'testVal: Int' delegate='`testVal$delegate`: A' getter='(): Int' setter=null type=kotlin.reflect.KProperty0 origin=PROPERTY_REFERENCE_FOR_DELEGATE - LOCAL_DELEGATED_PROPERTY var testVar: kotlin.Int - VAR DELEGATE val `testVar$delegate`: A + LOCAL_DELEGATED_PROPERTY name:testVar type:kotlin.Int flags:var + VAR DELEGATE name:testVar$delegate type:A flags:val CALL 'provideDelegate(Any?, Any): A' type=A origin=null $this: CALL 'constructor A()' type=A origin=null - host: CONST Null type=kotlin.Nothing? value='null' + host: CONST Null type=kotlin.Nothing? value=null p: LOCAL_DELEGATED_PROPERTY_REFERENCE 'testVar: Int' delegate='`testVar$delegate`: A' getter='(): Int' setter='(Int): Unit' type=kotlin.reflect.KMutableProperty0 origin=PROPERTY_REFERENCE_FOR_DELEGATE - FUN DELEGATED_PROPERTY_ACCESSOR local final suspend fun (): kotlin.Int + FUN DELEGATED_PROPERTY_ACCESSOR name: visibility:local modality:FINAL <> () returnType:Int flags:suspend BLOCK_BODY - RETURN type=kotlin.Nothing from='(): Int' + RETURN type=kotlin.Nothing from=(): Int' CALL 'getValue(Any?, KProperty<*>): Int' type=kotlin.Int origin=null $this: GET_VAR '`testVar$delegate`: A' type=A origin=null - thisRef: CONST Null type=kotlin.Nothing? value='null' + thisRef: CONST Null type=kotlin.Nothing? value=null property: LOCAL_DELEGATED_PROPERTY_REFERENCE 'testVar: Int' delegate='`testVar$delegate`: A' getter='(): Int' setter='(Int): Unit' type=kotlin.reflect.KMutableProperty0 origin=PROPERTY_REFERENCE_FOR_DELEGATE - FUN DELEGATED_PROPERTY_ACCESSOR local final suspend fun (value: kotlin.Int): kotlin.Unit - VALUE_PARAMETER value-parameter value: kotlin.Int + FUN DELEGATED_PROPERTY_ACCESSOR name: visibility:local modality:FINAL <> (value:kotlin.Int) returnType:Unit flags:suspend + VALUE_PARAMETER name:value index:0 type:kotlin.Int flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(Int): Unit' + RETURN type=kotlin.Nothing from=(Int): Unit' CALL 'setValue(Any?, KProperty<*>, Int): Unit' type=kotlin.Unit origin=null $this: GET_VAR '`testVar$delegate`: A' type=A origin=null - thisRef: CONST Null type=kotlin.Nothing? value='null' + thisRef: CONST Null type=kotlin.Nothing? value=null property: LOCAL_DELEGATED_PROPERTY_REFERENCE 'testVar: Int' delegate='`testVar$delegate`: A' getter='(): Int' setter='(Int): Unit' type=kotlin.reflect.KMutableProperty0 origin=PROPERTY_REFERENCE_FOR_DELEGATE value: GET_VAR 'value-parameter value: Int' type=kotlin.Int origin=null + diff --git a/compiler/testData/ir/irText/declarations/localVarInDoWhile.txt b/compiler/testData/ir/irText/declarations/localVarInDoWhile.txt index cb43498d9fb..34dc1e443fd 100644 --- a/compiler/testData/ir/irText/declarations/localVarInDoWhile.txt +++ b/compiler/testData/ir/irText/declarations/localVarInDoWhile.txt @@ -1,12 +1,13 @@ -FILE /localVarInDoWhile.kt - FUN public fun foo(): kotlin.Unit +FILE fqName: fileName:/localVarInDoWhile.kt + FUN name:foo visibility:public modality:FINAL <> () returnType:Unit flags: BLOCK_BODY BLOCK type=kotlin.Unit origin=null DO_WHILE label=null origin=DO_WHILE_LOOP body: COMPOSITE type=kotlin.Unit origin=null - VAR val x: kotlin.Int = 42 - CONST Int type=kotlin.Int value='42' + VAR name:x type:kotlin.Int flags:val + CONST Int type=kotlin.Int value=42 condition: CALL 'NOT(Boolean): Boolean' type=kotlin.Boolean origin=EXCLEQ arg0: CALL 'EQEQ(Any?, Any?): Boolean' type=kotlin.Boolean origin=EXCLEQ arg0: GET_VAR 'x: Int' type=kotlin.Int origin=null - arg1: CONST Int type=kotlin.Int value='42' + arg1: CONST Int type=kotlin.Int value=42 + diff --git a/compiler/testData/ir/irText/declarations/packageLevelProperties.txt b/compiler/testData/ir/irText/declarations/packageLevelProperties.txt index b50fbbbb0a0..e44370c9ce6 100644 --- a/compiler/testData/ir/irText/declarations/packageLevelProperties.txt +++ b/compiler/testData/ir/irText/declarations/packageLevelProperties.txt @@ -1,106 +1,106 @@ -FILE /packageLevelProperties.kt - PROPERTY public val test1: kotlin.Int = 0 - FIELD PROPERTY_BACKING_FIELD public val test1: kotlin.Int = 0 +FILE fqName: fileName:/packageLevelProperties.kt + PROPERTY name:test1 type:kotlin.Int visibility:public modality:FINAL flags:val + FIELD PROPERTY_BACKING_FIELD name:test1 type:kotlin.Int visibility:public EXPRESSION_BODY - CONST Int type=kotlin.Int value='0' - FUN DEFAULT_PROPERTY_ACCESSOR public fun (): kotlin.Int + CONST Int type=kotlin.Int value=0 + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:Int flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): Int' + RETURN type=kotlin.Nothing from=(): Int' GET_FIELD 'test1: Int' type=kotlin.Int origin=null - PROPERTY public val test2: kotlin.Int - FUN public fun (): kotlin.Int + PROPERTY name:test2 type:kotlin.Int visibility:public modality:FINAL flags:val + FUN name: visibility:public modality:FINAL <> () returnType:Int flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): Int' - CONST Int type=kotlin.Int value='0' - PROPERTY public var test3: kotlin.Int - FIELD PROPERTY_BACKING_FIELD public var test3: kotlin.Int + RETURN type=kotlin.Nothing from=(): Int' + CONST Int type=kotlin.Int value=0 + PROPERTY name:test3 type:kotlin.Int visibility:public modality:FINAL flags:var + FIELD PROPERTY_BACKING_FIELD name:test3 type:kotlin.Int visibility:public EXPRESSION_BODY - CONST Int type=kotlin.Int value='0' - FUN DEFAULT_PROPERTY_ACCESSOR public fun (): kotlin.Int + CONST Int type=kotlin.Int value=0 + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:Int flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): Int' + RETURN type=kotlin.Nothing from=(): Int' GET_FIELD 'test3: Int' type=kotlin.Int origin=null - FUN DEFAULT_PROPERTY_ACCESSOR public fun (: kotlin.Int): kotlin.Unit - VALUE_PARAMETER value-parameter : kotlin.Int + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> (:kotlin.Int) returnType:Unit flags: + VALUE_PARAMETER name: index:0 type:kotlin.Int flags: BLOCK_BODY SET_FIELD 'test3: Int' type=kotlin.Unit origin=null value: GET_VAR 'value-parameter : Int' type=kotlin.Int origin=null - PROPERTY public var test4: kotlin.Int - FIELD PROPERTY_BACKING_FIELD public var test4: kotlin.Int + PROPERTY name:test4 type:kotlin.Int visibility:public modality:FINAL flags:var + FIELD PROPERTY_BACKING_FIELD name:test4 type:kotlin.Int visibility:public EXPRESSION_BODY - CONST Int type=kotlin.Int value='1' - FUN DEFAULT_PROPERTY_ACCESSOR public fun (): kotlin.Int + CONST Int type=kotlin.Int value=1 + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:Int flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): Int' + RETURN type=kotlin.Nothing from=(): Int' GET_FIELD 'test4: Int' type=kotlin.Int origin=null - FUN public fun (value: kotlin.Int): kotlin.Unit - VALUE_PARAMETER value-parameter value: kotlin.Int + FUN name: visibility:public modality:FINAL <> (value:kotlin.Int) returnType:Unit flags: + VALUE_PARAMETER name:value index:0 type:kotlin.Int flags: BLOCK_BODY SET_FIELD 'test4: Int' type=kotlin.Unit origin=EQ value: GET_VAR 'value-parameter value: Int' type=kotlin.Int origin=null - PROPERTY public var test5: kotlin.Int - FIELD PROPERTY_BACKING_FIELD public var test5: kotlin.Int + PROPERTY name:test5 type:kotlin.Int visibility:public modality:FINAL flags:var + FIELD PROPERTY_BACKING_FIELD name:test5 type:kotlin.Int visibility:public EXPRESSION_BODY - CONST Int type=kotlin.Int value='1' - FUN DEFAULT_PROPERTY_ACCESSOR public fun (): kotlin.Int + CONST Int type=kotlin.Int value=1 + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:Int flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): Int' + RETURN type=kotlin.Nothing from=(): Int' GET_FIELD 'test5: Int' type=kotlin.Int origin=null - FUN private fun (: kotlin.Int): kotlin.Unit - VALUE_PARAMETER value-parameter : kotlin.Int + FUN name: visibility:private modality:FINAL <> (:kotlin.Int) returnType:Unit flags: + VALUE_PARAMETER name: index:0 type:kotlin.Int flags: BLOCK_BODY SET_FIELD 'test5: Int' type=kotlin.Unit origin=null value: GET_VAR 'value-parameter : Int' type=kotlin.Int origin=null - PROPERTY public val test6: kotlin.Int = 1 - FIELD PROPERTY_BACKING_FIELD public val test6: kotlin.Int = 1 + PROPERTY name:test6 type:kotlin.Int visibility:public modality:FINAL flags:val + FIELD PROPERTY_BACKING_FIELD name:test6 type:kotlin.Int visibility:public EXPRESSION_BODY - CONST Int type=kotlin.Int value='1' - FUN public fun (): kotlin.Int + CONST Int type=kotlin.Int value=1 + FUN name: visibility:public modality:FINAL <> () returnType:Int flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): Int' + RETURN type=kotlin.Nothing from=(): Int' GET_FIELD 'test6: Int' type=kotlin.Int origin=null - PROPERTY public val test7: kotlin.Int - FIELD DELEGATE val `test7$delegate`: kotlin.Lazy + PROPERTY name:test7 type:kotlin.Int visibility:public modality:FINAL flags:delegatedmval + FIELD DELEGATE name:test7$delegate type:kotlin.Lazy visibility:private EXPRESSION_BODY CALL 'lazy(() -> Int): Lazy' type=kotlin.Lazy origin=null : Int initializer: BLOCK type=() -> kotlin.Int origin=LAMBDA - FUN LOCAL_FUNCTION_FOR_LAMBDA local final fun (): kotlin.Int + FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> () returnType:Int flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): Int' - CONST Int type=kotlin.Int value='42' + RETURN type=kotlin.Nothing from=(): Int' + CONST Int type=kotlin.Int value=42 FUNCTION_REFERENCE '(): Int' type=() -> kotlin.Int origin=LAMBDA - FUN DELEGATED_PROPERTY_ACCESSOR public fun (): kotlin.Int + FUN DELEGATED_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:Int flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): Int' + RETURN type=kotlin.Nothing from=(): Int' CALL 'getValue(Any?, KProperty<*>) on Lazy: Int' type=kotlin.Int origin=null : Int $receiver: GET_FIELD '`test7$delegate`: Lazy' type=kotlin.Lazy origin=null - thisRef: CONST Null type=kotlin.Nothing? value='null' + thisRef: CONST Null type=kotlin.Nothing? value=null property: PROPERTY_REFERENCE 'test7: Int' field=null getter='(): Int' setter=null type=kotlin.reflect.KProperty0 origin=PROPERTY_REFERENCE_FOR_DELEGATE - PROPERTY public var test8: kotlin.Int - FIELD DELEGATE val `test8$delegate`: kotlin.collections.HashMap /* = java.util.HashMap */ + PROPERTY name:test8 type:kotlin.Int visibility:public modality:FINAL flags:delegatedmvar + FIELD DELEGATE name:test8$delegate type:kotlin.collections.HashMap /* = java.util.HashMap */ visibility:private EXPRESSION_BODY CALL 'hashMapOf(): HashMap /* = HashMap */' type=kotlin.collections.HashMap /* = java.util.HashMap */ origin=null : String : Int - FUN DELEGATED_PROPERTY_ACCESSOR public fun (): kotlin.Int + FUN DELEGATED_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:Int flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): Int' + RETURN type=kotlin.Nothing from=(): Int' CALL 'getValue(Any?, KProperty<*>) on MutableMap: Int' type=kotlin.Int origin=null : Int : Int $receiver: GET_FIELD '`test8$delegate`: HashMap /* = HashMap */' type=kotlin.collections.HashMap /* = java.util.HashMap */ origin=null - thisRef: CONST Null type=kotlin.Nothing? value='null' + thisRef: CONST Null type=kotlin.Nothing? value=null property: PROPERTY_REFERENCE 'test8: Int' field=null getter='(): Int' setter='(Int): Unit' type=kotlin.reflect.KMutableProperty0 origin=PROPERTY_REFERENCE_FOR_DELEGATE - FUN DELEGATED_PROPERTY_ACCESSOR public fun (: kotlin.Int): kotlin.Unit - VALUE_PARAMETER value-parameter : kotlin.Int + FUN DELEGATED_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> (:kotlin.Int) returnType:Unit flags: + VALUE_PARAMETER name: index:0 type:kotlin.Int flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(Int): Unit' + RETURN type=kotlin.Nothing from=(Int): Unit' CALL 'setValue(Any?, KProperty<*>, Int) on MutableMap: Unit' type=kotlin.Unit origin=null : Int $receiver: GET_FIELD '`test8$delegate`: HashMap /* = HashMap */' type=kotlin.collections.HashMap /* = java.util.HashMap */ origin=null - thisRef: CONST Null type=kotlin.Nothing? value='null' + thisRef: CONST Null type=kotlin.Nothing? value=null property: PROPERTY_REFERENCE 'test8: Int' field=null getter='(): Int' setter='(Int): Unit' type=kotlin.reflect.KMutableProperty0 origin=PROPERTY_REFERENCE_FOR_DELEGATE value: GET_VAR 'value-parameter : Int' type=kotlin.Int origin=null diff --git a/compiler/testData/ir/irText/declarations/parameters/class.txt b/compiler/testData/ir/irText/declarations/parameters/class.txt index 973dbf2bbb6..87d69073e99 100644 --- a/compiler/testData/ir/irText/declarations/parameters/class.txt +++ b/compiler/testData/ir/irText/declarations/parameters/class.txt @@ -1,65 +1,65 @@ -FILE /class.kt - CLASS INTERFACE TestInterface - $this: VALUE_PARAMETER this@TestInterface: TestInterface - TYPE_PARAMETER - CLASS INTERFACE TestNestedInterface - $this: VALUE_PARAMETER this@TestNestedInterface: TestNestedInterface - TYPE_PARAMETER - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any - CLASS CLASS Test - $this: VALUE_PARAMETER this@Test: Test - TYPE_PARAMETER - CONSTRUCTOR public constructor Test() +FILE fqName: fileName:/class.kt + CLASS INTERFACE name:TestInterface modality:ABSTRACT visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:TestInterface flags: + TYPE_PARAMETER name:T index:0 variance: upperBounds:[kotlin.Any?] + CLASS INTERFACE name:TestNestedInterface modality:ABSTRACT visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:TestInterface.TestNestedInterface flags: + TYPE_PARAMETER name:TT index:0 variance: upperBounds:[kotlin.Any?] + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + CLASS CLASS name:Test modality:FINAL visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Test flags: + TYPE_PARAMETER name:T0 index:0 variance: upperBounds:[kotlin.Any?] + CONSTRUCTOR visibility:public <> () returnType:Test flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='Test' - CLASS CLASS TestNested - $this: VALUE_PARAMETER this@TestNested: TestNested - TYPE_PARAMETER - CONSTRUCTOR public constructor TestNested() + CLASS CLASS name:TestNested modality:FINAL visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Test.TestNested flags: + TYPE_PARAMETER name:T1 index:0 variance: upperBounds:[kotlin.Any?] + CONSTRUCTOR visibility:public <> () returnType:Test.TestNested flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='TestNested' - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any - CLASS CLASS TestInner - $this: VALUE_PARAMETER this@TestInner: TestInner - TYPE_PARAMETER - CONSTRUCTOR public constructor TestInner() - $outer: VALUE_PARAMETER this@Test: Test + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + CLASS CLASS name:TestInner modality:FINAL visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Test.TestInner flags: + TYPE_PARAMETER name:T2 index:0 variance: upperBounds:[kotlin.Any?] + CONSTRUCTOR visibility:public <> ($this:Test) returnType:Test.TestInner flags: + $outer: VALUE_PARAMETER name: type:Test flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='TestInner' - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: diff --git a/compiler/testData/ir/irText/declarations/parameters/constructor.txt b/compiler/testData/ir/irText/declarations/parameters/constructor.txt index 90f96f3b99d..f861be53f13 100644 --- a/compiler/testData/ir/irText/declarations/parameters/constructor.txt +++ b/compiler/testData/ir/irText/declarations/parameters/constructor.txt @@ -1,172 +1,172 @@ -FILE /constructor.kt - CLASS CLASS Test1 - $this: VALUE_PARAMETER this@Test1: Test1 - TYPE_PARAMETER - TYPE_PARAMETER - CONSTRUCTOR public constructor Test1(x: T1, y: T2) - VALUE_PARAMETER value-parameter x: T1 - VALUE_PARAMETER value-parameter y: T2 +FILE fqName: fileName:/constructor.kt + CLASS CLASS name:Test1 modality:FINAL visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Test1 flags: + TYPE_PARAMETER name:T1 index:0 variance: upperBounds:[kotlin.Any?] + TYPE_PARAMETER name:T2 index:1 variance: upperBounds:[kotlin.Any?] + CONSTRUCTOR visibility:public <> (x:T1, y:T2) returnType:Test1 flags: + VALUE_PARAMETER name:x index:0 type:T1 flags: + VALUE_PARAMETER name:y index:1 type:T2 flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='Test1' - PROPERTY public final val x: T1 - FIELD PROPERTY_BACKING_FIELD public final val x: T1 + PROPERTY name:x type:T1 visibility:public modality:FINAL flags:val + FIELD PROPERTY_BACKING_FIELD name:x type:T1 visibility:public EXPRESSION_BODY GET_VAR 'value-parameter x: T1' type=T1 origin=INITIALIZE_PROPERTY_FROM_PARAMETER - FUN DEFAULT_PROPERTY_ACCESSOR public final fun (): T1 - $this: VALUE_PARAMETER this@Test1: Test1 + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:Test1) returnType:T1 flags: + $this: VALUE_PARAMETER name: type:Test1 flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): T1' + RETURN type=kotlin.Nothing from=(): T1' GET_FIELD 'x: T1' type=T1 origin=null receiver: GET_VAR 'this@Test1: Test1' type=Test1 origin=null - PROPERTY public final val y: T2 - FIELD PROPERTY_BACKING_FIELD public final val y: T2 + PROPERTY name:y type:T2 visibility:public modality:FINAL flags:val + FIELD PROPERTY_BACKING_FIELD name:y type:T2 visibility:public EXPRESSION_BODY GET_VAR 'value-parameter y: T2' type=T2 origin=INITIALIZE_PROPERTY_FROM_PARAMETER - FUN DEFAULT_PROPERTY_ACCESSOR public final fun (): T2 - $this: VALUE_PARAMETER this@Test1: Test1 + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:Test1) returnType:T2 flags: + $this: VALUE_PARAMETER name: type:Test1 flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): T2' + RETURN type=kotlin.Nothing from=(): T2' GET_FIELD 'y: T2' type=T2 origin=null receiver: GET_VAR 'this@Test1: Test1' type=Test1 origin=null - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any - CLASS CLASS Test2 - $this: VALUE_PARAMETER this@Test2: Test2 - CONSTRUCTOR public constructor Test2(x: kotlin.Int, y: kotlin.String) - VALUE_PARAMETER value-parameter x: kotlin.Int - VALUE_PARAMETER value-parameter y: kotlin.String + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + CLASS CLASS name:Test2 modality:FINAL visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Test2 flags: + CONSTRUCTOR visibility:public <> (x:kotlin.Int, y:kotlin.String) returnType:Test2 flags: + VALUE_PARAMETER name:x index:0 type:kotlin.Int flags: + VALUE_PARAMETER name:y index:1 type:kotlin.String flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='Test2' - PROPERTY public final val y: kotlin.String - FIELD PROPERTY_BACKING_FIELD public final val y: kotlin.String + PROPERTY name:y type:kotlin.String visibility:public modality:FINAL flags:val + FIELD PROPERTY_BACKING_FIELD name:y type:kotlin.String visibility:public EXPRESSION_BODY GET_VAR 'value-parameter y: String' type=kotlin.String origin=INITIALIZE_PROPERTY_FROM_PARAMETER - FUN DEFAULT_PROPERTY_ACCESSOR public final fun (): kotlin.String - $this: VALUE_PARAMETER this@Test2: Test2 + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:Test2) returnType:String flags: + $this: VALUE_PARAMETER name: type:Test2 flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): String' + RETURN type=kotlin.Nothing from=(): String' GET_FIELD 'y: String' type=kotlin.String origin=null receiver: GET_VAR 'this@Test2: Test2' type=Test2 origin=null - CLASS CLASS TestInner - $this: VALUE_PARAMETER this@TestInner: TestInner - TYPE_PARAMETER - CONSTRUCTOR public constructor TestInner(z: Z) - $outer: VALUE_PARAMETER this@Test2: Test2 - VALUE_PARAMETER value-parameter z: Z + CLASS CLASS name:TestInner modality:FINAL visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Test2.TestInner flags: + TYPE_PARAMETER name:Z index:0 variance: upperBounds:[kotlin.Any?] + CONSTRUCTOR visibility:public <> ($this:Test2, z:Z) returnType:Test2.TestInner flags: + $outer: VALUE_PARAMETER name: type:Test2 flags: + VALUE_PARAMETER name:z index:0 type:Z flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='TestInner' - PROPERTY public final val z: Z - FIELD PROPERTY_BACKING_FIELD public final val z: Z + PROPERTY name:z type:Z visibility:public modality:FINAL flags:val + FIELD PROPERTY_BACKING_FIELD name:z type:Z visibility:public EXPRESSION_BODY GET_VAR 'value-parameter z: Z' type=Z origin=INITIALIZE_PROPERTY_FROM_PARAMETER - FUN DEFAULT_PROPERTY_ACCESSOR public final fun (): Z - $this: VALUE_PARAMETER this@TestInner: TestInner + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:Test2.TestInner) returnType:Z flags: + $this: VALUE_PARAMETER name: type:Test2.TestInner flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): Z' + RETURN type=kotlin.Nothing from=(): Z' GET_FIELD 'z: Z' type=Z origin=null receiver: GET_VAR 'this@TestInner: TestInner' type=Test2.TestInner origin=null - CONSTRUCTOR public constructor TestInner(z: Z, i: kotlin.Int) - $outer: VALUE_PARAMETER this@Test2: Test2 - VALUE_PARAMETER value-parameter z: Z - VALUE_PARAMETER value-parameter i: kotlin.Int + CONSTRUCTOR visibility:public <> ($this:Test2, z:Z, i:kotlin.Int) returnType:Test2.TestInner flags: + $outer: VALUE_PARAMETER name: type:Test2 flags: + VALUE_PARAMETER name:z index:0 type:Z flags: + VALUE_PARAMETER name:i index:1 type:kotlin.Int flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor TestInner(Z)' : Z $this: GET_VAR 'this@Test2: Test2' type=Test2 origin=null z: GET_VAR 'value-parameter z: Z' type=Z origin=null - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any - CLASS CLASS Test3 - $this: VALUE_PARAMETER this@Test3: Test3 - CONSTRUCTOR public constructor Test3(x: kotlin.Int, y: kotlin.String = ...) - VALUE_PARAMETER value-parameter x: kotlin.Int - VALUE_PARAMETER value-parameter y: kotlin.String = ... + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + CLASS CLASS name:Test3 modality:FINAL visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Test3 flags: + CONSTRUCTOR visibility:public <> (x:kotlin.Int, y:kotlin.String) returnType:Test3 flags: + VALUE_PARAMETER name:x index:0 type:kotlin.Int flags: + VALUE_PARAMETER name:y index:1 type:kotlin.String flags: EXPRESSION_BODY - CONST String type=kotlin.String value='' + CONST String type=kotlin.String value= BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='Test3' - PROPERTY public final val x: kotlin.Int - FIELD PROPERTY_BACKING_FIELD public final val x: kotlin.Int + PROPERTY name:x type:kotlin.Int visibility:public modality:FINAL flags:val + FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.Int visibility:public EXPRESSION_BODY GET_VAR 'value-parameter x: Int' type=kotlin.Int origin=INITIALIZE_PROPERTY_FROM_PARAMETER - FUN DEFAULT_PROPERTY_ACCESSOR public final fun (): kotlin.Int - $this: VALUE_PARAMETER this@Test3: Test3 + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:Test3) returnType:Int flags: + $this: VALUE_PARAMETER name: type:Test3 flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): Int' + RETURN type=kotlin.Nothing from=(): Int' GET_FIELD 'x: Int' type=kotlin.Int origin=null receiver: GET_VAR 'this@Test3: Test3' type=Test3 origin=null - PROPERTY public final val y: kotlin.String - FIELD PROPERTY_BACKING_FIELD public final val y: kotlin.String + PROPERTY name:y type:kotlin.String visibility:public modality:FINAL flags:val + FIELD PROPERTY_BACKING_FIELD name:y type:kotlin.String visibility:public EXPRESSION_BODY GET_VAR 'value-parameter y: String = ...' type=kotlin.String origin=INITIALIZE_PROPERTY_FROM_PARAMETER - FUN DEFAULT_PROPERTY_ACCESSOR public final fun (): kotlin.String - $this: VALUE_PARAMETER this@Test3: Test3 + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:Test3) returnType:String flags: + $this: VALUE_PARAMETER name: type:Test3 flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): String' + RETURN type=kotlin.Nothing from=(): String' GET_FIELD 'y: String' type=kotlin.String origin=null receiver: GET_VAR 'this@Test3: Test3' type=Test3 origin=null - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any - CLASS CLASS Test4 - $this: VALUE_PARAMETER this@Test4: Test4 - TYPE_PARAMETER - CONSTRUCTOR public constructor Test4(x: kotlin.Int) - VALUE_PARAMETER value-parameter x: kotlin.Int + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + CLASS CLASS name:Test4 modality:FINAL visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Test4 flags: + TYPE_PARAMETER name:T index:0 variance: upperBounds:[kotlin.Any?] + CONSTRUCTOR visibility:public <> (x:kotlin.Int) returnType:Test4 flags: + VALUE_PARAMETER name:x index:0 type:kotlin.Int flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='Test4' - PROPERTY public final val x: kotlin.Int - FIELD PROPERTY_BACKING_FIELD public final val x: kotlin.Int + PROPERTY name:x type:kotlin.Int visibility:public modality:FINAL flags:val + FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.Int visibility:public EXPRESSION_BODY GET_VAR 'value-parameter x: Int' type=kotlin.Int origin=INITIALIZE_PROPERTY_FROM_PARAMETER - FUN DEFAULT_PROPERTY_ACCESSOR public final fun (): kotlin.Int - $this: VALUE_PARAMETER this@Test4: Test4 + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:Test4) returnType:Int flags: + $this: VALUE_PARAMETER name: type:Test4 flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): Int' + RETURN type=kotlin.Nothing from=(): Int' GET_FIELD 'x: Int' type=kotlin.Int origin=null receiver: GET_VAR 'this@Test4: Test4' type=Test4 origin=null - CONSTRUCTOR public constructor Test4(x: kotlin.Int, y: kotlin.Int = ...) - VALUE_PARAMETER value-parameter x: kotlin.Int - VALUE_PARAMETER value-parameter y: kotlin.Int = ... + CONSTRUCTOR visibility:public <> (x:kotlin.Int, y:kotlin.Int) returnType:Test4 flags: + VALUE_PARAMETER name:x index:0 type:kotlin.Int flags: + VALUE_PARAMETER name:y index:1 type:kotlin.Int flags: EXPRESSION_BODY - CONST Int type=kotlin.Int value='42' + CONST Int type=kotlin.Int value=42 BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Test4(Int)' : T x: CALL 'plus(Int): Int' type=kotlin.Int origin=PLUS $this: GET_VAR 'value-parameter x: Int' type=kotlin.Int origin=null other: GET_VAR 'value-parameter y: Int = ...' type=kotlin.Int origin=null - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: diff --git a/compiler/testData/ir/irText/declarations/parameters/dataClassMembers.txt b/compiler/testData/ir/irText/declarations/parameters/dataClassMembers.txt index 77656fcb331..ff3fa5d1448 100644 --- a/compiler/testData/ir/irText/declarations/parameters/dataClassMembers.txt +++ b/compiler/testData/ir/irText/declarations/parameters/dataClassMembers.txt @@ -1,95 +1,95 @@ -FILE /dataClassMembers.kt - CLASS CLASS Test - $this: VALUE_PARAMETER this@Test: Test - TYPE_PARAMETER - CONSTRUCTOR public constructor Test(x: T, y: kotlin.String = ...) - VALUE_PARAMETER value-parameter x: T - VALUE_PARAMETER value-parameter y: kotlin.String = ... +FILE fqName: fileName:/dataClassMembers.kt + CLASS CLASS name:Test modality:FINAL visibility:public flags:data + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Test flags: + TYPE_PARAMETER name:T index:0 variance: upperBounds:[kotlin.Any?] + CONSTRUCTOR visibility:public <> (x:T, y:kotlin.String) returnType:Test flags: + VALUE_PARAMETER name:x index:0 type:T flags: + VALUE_PARAMETER name:y index:1 type:kotlin.String flags: EXPRESSION_BODY - CONST String type=kotlin.String value='' + CONST String type=kotlin.String value= BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='Test' - PROPERTY public final val x: T - FIELD PROPERTY_BACKING_FIELD public final val x: T + PROPERTY name:x type:T visibility:public modality:FINAL flags:val + FIELD PROPERTY_BACKING_FIELD name:x type:T visibility:public EXPRESSION_BODY GET_VAR 'value-parameter x: T' type=T origin=INITIALIZE_PROPERTY_FROM_PARAMETER - FUN DEFAULT_PROPERTY_ACCESSOR public final fun (): T - $this: VALUE_PARAMETER this@Test: Test + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:Test) returnType:T flags: + $this: VALUE_PARAMETER name: type:Test flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): T' + RETURN type=kotlin.Nothing from=(): T' GET_FIELD 'x: T' type=T origin=null receiver: GET_VAR 'this@Test: Test' type=Test origin=null - PROPERTY public final val y: kotlin.String - FIELD PROPERTY_BACKING_FIELD public final val y: kotlin.String + PROPERTY name:y type:kotlin.String visibility:public modality:FINAL flags:val + FIELD PROPERTY_BACKING_FIELD name:y type:kotlin.String visibility:public EXPRESSION_BODY GET_VAR 'value-parameter y: String = ...' type=kotlin.String origin=INITIALIZE_PROPERTY_FROM_PARAMETER - FUN DEFAULT_PROPERTY_ACCESSOR public final fun (): kotlin.String - $this: VALUE_PARAMETER this@Test: Test + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:Test) returnType:String flags: + $this: VALUE_PARAMETER name: type:Test flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): String' + RETURN type=kotlin.Nothing from=(): String' GET_FIELD 'y: String' type=kotlin.String origin=null receiver: GET_VAR 'this@Test: Test' type=Test origin=null - FUN GENERATED_DATA_CLASS_MEMBER public final operator fun component1(): T - $this: VALUE_PARAMETER this@Test: Test + FUN GENERATED_DATA_CLASS_MEMBER name:component1 visibility:public modality:FINAL <> ($this:Test) returnType:T flags: + $this: VALUE_PARAMETER name: type:Test flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='component1(): T' + RETURN type=kotlin.Nothing from=component1(): T' CALL '(): T' type=T origin=GET_PROPERTY $this: GET_VAR 'this@Test: Test' type=Test origin=null - FUN GENERATED_DATA_CLASS_MEMBER public final operator fun component2(): kotlin.String - $this: VALUE_PARAMETER this@Test: Test + FUN GENERATED_DATA_CLASS_MEMBER name:component2 visibility:public modality:FINAL <> ($this:Test) returnType:String flags: + $this: VALUE_PARAMETER name: type:Test flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='component2(): String' + RETURN type=kotlin.Nothing from=component2(): String' CALL '(): String' type=kotlin.String origin=GET_PROPERTY $this: GET_VAR 'this@Test: Test' type=Test origin=null - FUN GENERATED_DATA_CLASS_MEMBER public final fun copy(x: T = ..., y: kotlin.String = ...): Test - $this: VALUE_PARAMETER this@Test: Test - VALUE_PARAMETER value-parameter x: T = ... + FUN GENERATED_DATA_CLASS_MEMBER name:copy visibility:public modality:FINAL <> ($this:Test, x:T, y:kotlin.String) returnType:Test flags: + $this: VALUE_PARAMETER name: type:Test flags: + VALUE_PARAMETER name:x index:0 type:T flags: EXPRESSION_BODY CALL '(): T' type=T origin=GET_PROPERTY $this: GET_VAR 'this@Test: Test' type=Test origin=null - VALUE_PARAMETER value-parameter y: kotlin.String = ... + VALUE_PARAMETER name:y index:1 type:kotlin.String flags: EXPRESSION_BODY CALL '(): String' type=kotlin.String origin=GET_PROPERTY $this: GET_VAR 'this@Test: Test' type=Test origin=null BLOCK_BODY - RETURN type=kotlin.Nothing from='copy(T = ..., String = ...): Test' + RETURN type=kotlin.Nothing from=copy(T = ..., String = ...): Test' CALL 'constructor Test(T, String = ...)' type=Test origin=null : null x: GET_VAR 'value-parameter x: T = ...' type=T origin=null y: GET_VAR 'value-parameter y: String = ...' type=kotlin.String origin=null - FUN GENERATED_DATA_CLASS_MEMBER public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Test: Test + FUN GENERATED_DATA_CLASS_MEMBER name:toString visibility:public modality:OPEN <> ($this:Test) returnType:String flags: + $this: VALUE_PARAMETER name: type:Test flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='toString(): String' + RETURN type=kotlin.Nothing from=toString(): String' STRING_CONCATENATION type=kotlin.String - CONST String type=kotlin.String value='Test(' - CONST String type=kotlin.String value='x=' + CONST String type=kotlin.String value=Test( + CONST String type=kotlin.String value=x= CALL '(): T' type=T origin=GET_PROPERTY $this: GET_VAR 'this@Test: Test' type=Test origin=null - CONST String type=kotlin.String value=', ' - CONST String type=kotlin.String value='y=' + CONST String type=kotlin.String value=, + CONST String type=kotlin.String value=y= CALL '(): String' type=kotlin.String origin=GET_PROPERTY $this: GET_VAR 'this@Test: Test' type=Test origin=null - CONST String type=kotlin.String value=')' - FUN GENERATED_DATA_CLASS_MEMBER public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Test: Test + CONST String type=kotlin.String value=) + FUN GENERATED_DATA_CLASS_MEMBER name:hashCode visibility:public modality:OPEN <> ($this:Test) returnType:Int flags: + $this: VALUE_PARAMETER name: type:Test flags: BLOCK_BODY - VAR IR_TEMPORARY_VARIABLE var tmp0_result: kotlin.Int - CONST Int type=kotlin.Int value='0' + VAR IR_TEMPORARY_VARIABLE name:tmp0_result type:kotlin.Int flags:var + CONST Int type=kotlin.Int value=0 SET_VAR 'tmp0_result: Int' type=kotlin.Unit origin=EQ BLOCK type=kotlin.Int origin=null - VAR IR_TEMPORARY_VARIABLE val tmp1: T + VAR IR_TEMPORARY_VARIABLE name:tmp1 type:T flags:val CALL '(): T' type=T origin=GET_PROPERTY $this: GET_VAR 'this@Test: Test' type=Test origin=null WHEN type=kotlin.Int origin=null BRANCH if: CALL 'EQEQ(Any?, Any?): Boolean' type=kotlin.Boolean origin=EQEQ arg0: GET_VAR 'tmp1: T' type=T origin=null - arg1: CONST Null type=kotlin.Nothing? value='null' - then: CONST Int type=kotlin.Int value='0' + arg1: CONST Null type=kotlin.Nothing? value=null + then: CONST Int type=kotlin.Int value=0 BRANCH - if: CONST Boolean type=kotlin.Boolean value='true' + if: CONST Boolean type=kotlin.Boolean value=true then: CALL 'hashCode(): Int' type=kotlin.Int origin=null $this: TYPE_OP type=kotlin.Any origin=IMPLICIT_CAST typeOperand=kotlin.Any GET_VAR 'tmp1: T' type=T origin=null @@ -97,30 +97,30 @@ FILE /dataClassMembers.kt CALL 'plus(Int): Int' type=kotlin.Int origin=null $this: CALL 'times(Int): Int' type=kotlin.Int origin=null $this: GET_VAR 'tmp0_result: Int' type=kotlin.Int origin=null - other: CONST Int type=kotlin.Int value='31' + other: CONST Int type=kotlin.Int value=31 other: CALL 'hashCode(): Int' type=kotlin.Int origin=null $this: CALL '(): String' type=kotlin.String origin=GET_PROPERTY $this: GET_VAR 'this@Test: Test' type=Test origin=null - RETURN type=kotlin.Nothing from='hashCode(): Int' + RETURN type=kotlin.Nothing from=hashCode(): Int' GET_VAR 'tmp0_result: Int' type=kotlin.Int origin=null - FUN GENERATED_DATA_CLASS_MEMBER public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Test: Test - VALUE_PARAMETER value-parameter other: kotlin.Any? + FUN GENERATED_DATA_CLASS_MEMBER name:equals visibility:public modality:OPEN <> ($this:Test, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:Test flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: BLOCK_BODY WHEN type=kotlin.Unit origin=null BRANCH if: CALL 'EQEQEQ(Any?, Any?): Boolean' type=kotlin.Boolean origin=EQEQEQ arg0: GET_VAR 'this@Test: Test' type=Test origin=null arg1: GET_VAR 'value-parameter other: Any?' type=kotlin.Any? origin=null - then: RETURN type=kotlin.Nothing from='equals(Any?): Boolean' - CONST Boolean type=kotlin.Boolean value='true' + then: RETURN type=kotlin.Nothing from=equals(Any?): Boolean' + CONST Boolean type=kotlin.Boolean value=true WHEN type=kotlin.Unit origin=null BRANCH if: TYPE_OP type=kotlin.Boolean origin=NOT_INSTANCEOF typeOperand=Test GET_VAR 'value-parameter other: Any?' type=kotlin.Any? origin=null - then: RETURN type=kotlin.Nothing from='equals(Any?): Boolean' - CONST Boolean type=kotlin.Boolean value='false' - VAR IR_TEMPORARY_VARIABLE val tmp0_other_with_cast: Test + then: RETURN type=kotlin.Nothing from=equals(Any?): Boolean' + CONST Boolean type=kotlin.Boolean value=false + VAR IR_TEMPORARY_VARIABLE name:tmp0_other_with_cast type:Test flags:val TYPE_OP type=Test origin=CAST typeOperand=Test GET_VAR 'value-parameter other: Any?' type=kotlin.Any? origin=null WHEN type=kotlin.Unit origin=null @@ -131,8 +131,8 @@ FILE /dataClassMembers.kt $this: GET_VAR 'this@Test: Test' type=Test origin=null arg1: CALL '(): T' type=T origin=GET_PROPERTY $this: GET_VAR 'tmp0_other_with_cast: Test' type=Test origin=null - then: RETURN type=kotlin.Nothing from='equals(Any?): Boolean' - CONST Boolean type=kotlin.Boolean value='false' + then: RETURN type=kotlin.Nothing from=equals(Any?): Boolean' + CONST Boolean type=kotlin.Boolean value=false WHEN type=kotlin.Unit origin=null BRANCH if: CALL 'NOT(Boolean): Boolean' type=kotlin.Boolean origin=EXCLEQ @@ -141,8 +141,8 @@ FILE /dataClassMembers.kt $this: GET_VAR 'this@Test: Test' type=Test origin=null arg1: CALL '(): String' type=kotlin.String origin=GET_PROPERTY $this: GET_VAR 'tmp0_other_with_cast: Test' type=Test origin=null - then: RETURN type=kotlin.Nothing from='equals(Any?): Boolean' - CONST Boolean type=kotlin.Boolean value='false' - RETURN type=kotlin.Nothing from='equals(Any?): Boolean' - CONST Boolean type=kotlin.Boolean value='true' + then: RETURN type=kotlin.Nothing from=equals(Any?): Boolean' + CONST Boolean type=kotlin.Boolean value=false + RETURN type=kotlin.Nothing from=equals(Any?): Boolean' + CONST Boolean type=kotlin.Boolean value=true diff --git a/compiler/testData/ir/irText/declarations/parameters/defaultPropertyAccessors.txt b/compiler/testData/ir/irText/declarations/parameters/defaultPropertyAccessors.txt index ab710b11a14..04d0fd37600 100644 --- a/compiler/testData/ir/irText/declarations/parameters/defaultPropertyAccessors.txt +++ b/compiler/testData/ir/irText/declarations/parameters/defaultPropertyAccessors.txt @@ -1,108 +1,108 @@ -FILE /defaultPropertyAccessors.kt - PROPERTY public val test1: kotlin.Int = 42 - FIELD PROPERTY_BACKING_FIELD public val test1: kotlin.Int = 42 +FILE fqName: fileName:/defaultPropertyAccessors.kt + PROPERTY name:test1 type:kotlin.Int visibility:public modality:FINAL flags:val + FIELD PROPERTY_BACKING_FIELD name:test1 type:kotlin.Int visibility:public EXPRESSION_BODY - CONST Int type=kotlin.Int value='42' - FUN DEFAULT_PROPERTY_ACCESSOR public fun (): kotlin.Int + CONST Int type=kotlin.Int value=42 + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:Int flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): Int' + RETURN type=kotlin.Nothing from=(): Int' GET_FIELD 'test1: Int' type=kotlin.Int origin=null - PROPERTY public var test2: kotlin.Int - FIELD PROPERTY_BACKING_FIELD public var test2: kotlin.Int + PROPERTY name:test2 type:kotlin.Int visibility:public modality:FINAL flags:var + FIELD PROPERTY_BACKING_FIELD name:test2 type:kotlin.Int visibility:public EXPRESSION_BODY - CONST Int type=kotlin.Int value='42' - FUN DEFAULT_PROPERTY_ACCESSOR public fun (): kotlin.Int + CONST Int type=kotlin.Int value=42 + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:Int flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): Int' + RETURN type=kotlin.Nothing from=(): Int' GET_FIELD 'test2: Int' type=kotlin.Int origin=null - FUN DEFAULT_PROPERTY_ACCESSOR public fun (: kotlin.Int): kotlin.Unit - VALUE_PARAMETER value-parameter : kotlin.Int + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> (:kotlin.Int) returnType:Unit flags: + VALUE_PARAMETER name: index:0 type:kotlin.Int flags: BLOCK_BODY SET_FIELD 'test2: Int' type=kotlin.Unit origin=null value: GET_VAR 'value-parameter : Int' type=kotlin.Int origin=null - CLASS CLASS Host - $this: VALUE_PARAMETER this@Host: Host - CONSTRUCTOR public constructor Host() + CLASS CLASS name:Host modality:FINAL visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Host flags: + CONSTRUCTOR visibility:public <> () returnType:Host flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='Host' - PROPERTY public final val testMember1: kotlin.Int = 42 - FIELD PROPERTY_BACKING_FIELD public final val testMember1: kotlin.Int = 42 + PROPERTY name:testMember1 type:kotlin.Int visibility:public modality:FINAL flags:val + FIELD PROPERTY_BACKING_FIELD name:testMember1 type:kotlin.Int visibility:public EXPRESSION_BODY - CONST Int type=kotlin.Int value='42' - FUN DEFAULT_PROPERTY_ACCESSOR public final fun (): kotlin.Int - $this: VALUE_PARAMETER this@Host: Host + CONST Int type=kotlin.Int value=42 + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:Host) returnType:Int flags: + $this: VALUE_PARAMETER name: type:Host flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): Int' + RETURN type=kotlin.Nothing from=(): Int' GET_FIELD 'testMember1: Int' type=kotlin.Int origin=null receiver: GET_VAR 'this@Host: Host' type=Host origin=null - PROPERTY public final var testMember2: kotlin.Int - FIELD PROPERTY_BACKING_FIELD public final var testMember2: kotlin.Int + PROPERTY name:testMember2 type:kotlin.Int visibility:public modality:FINAL flags:var + FIELD PROPERTY_BACKING_FIELD name:testMember2 type:kotlin.Int visibility:public EXPRESSION_BODY - CONST Int type=kotlin.Int value='42' - FUN DEFAULT_PROPERTY_ACCESSOR public final fun (): kotlin.Int - $this: VALUE_PARAMETER this@Host: Host + CONST Int type=kotlin.Int value=42 + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:Host) returnType:Int flags: + $this: VALUE_PARAMETER name: type:Host flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): Int' + RETURN type=kotlin.Nothing from=(): Int' GET_FIELD 'testMember2: Int' type=kotlin.Int origin=null receiver: GET_VAR 'this@Host: Host' type=Host origin=null - FUN DEFAULT_PROPERTY_ACCESSOR public final fun (: kotlin.Int): kotlin.Unit - $this: VALUE_PARAMETER this@Host: Host - VALUE_PARAMETER value-parameter : kotlin.Int + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:Host, :kotlin.Int) returnType:Unit flags: + $this: VALUE_PARAMETER name: type:Host flags: + VALUE_PARAMETER name: index:0 type:kotlin.Int flags: BLOCK_BODY SET_FIELD 'testMember2: Int' type=kotlin.Unit origin=null receiver: GET_VAR 'this@Host: Host' type=Host origin=null value: GET_VAR 'value-parameter : Int' type=kotlin.Int origin=null - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any - CLASS CLASS InPrimaryCtor - $this: VALUE_PARAMETER this@InPrimaryCtor: InPrimaryCtor - TYPE_PARAMETER - CONSTRUCTOR public constructor InPrimaryCtor(testInPrimaryCtor1: T, testInPrimaryCtor2: kotlin.Int = ...) - VALUE_PARAMETER value-parameter testInPrimaryCtor1: T - VALUE_PARAMETER value-parameter testInPrimaryCtor2: kotlin.Int = ... + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + CLASS CLASS name:InPrimaryCtor modality:FINAL visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:InPrimaryCtor flags: + TYPE_PARAMETER name:T index:0 variance: upperBounds:[kotlin.Any?] + CONSTRUCTOR visibility:public <> (testInPrimaryCtor1:T, testInPrimaryCtor2:kotlin.Int) returnType:InPrimaryCtor flags: + VALUE_PARAMETER name:testInPrimaryCtor1 index:0 type:T flags: + VALUE_PARAMETER name:testInPrimaryCtor2 index:1 type:kotlin.Int flags: EXPRESSION_BODY - CONST Int type=kotlin.Int value='42' + CONST Int type=kotlin.Int value=42 BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='InPrimaryCtor' - PROPERTY public final val testInPrimaryCtor1: T - FIELD PROPERTY_BACKING_FIELD public final val testInPrimaryCtor1: T + PROPERTY name:testInPrimaryCtor1 type:T visibility:public modality:FINAL flags:val + FIELD PROPERTY_BACKING_FIELD name:testInPrimaryCtor1 type:T visibility:public EXPRESSION_BODY GET_VAR 'value-parameter testInPrimaryCtor1: T' type=T origin=INITIALIZE_PROPERTY_FROM_PARAMETER - FUN DEFAULT_PROPERTY_ACCESSOR public final fun (): T - $this: VALUE_PARAMETER this@InPrimaryCtor: InPrimaryCtor + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:InPrimaryCtor) returnType:T flags: + $this: VALUE_PARAMETER name: type:InPrimaryCtor flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): T' + RETURN type=kotlin.Nothing from=(): T' GET_FIELD 'testInPrimaryCtor1: T' type=T origin=null receiver: GET_VAR 'this@InPrimaryCtor: InPrimaryCtor' type=InPrimaryCtor origin=null - PROPERTY public final var testInPrimaryCtor2: kotlin.Int - FIELD PROPERTY_BACKING_FIELD public final var testInPrimaryCtor2: kotlin.Int + PROPERTY name:testInPrimaryCtor2 type:kotlin.Int visibility:public modality:FINAL flags:var + FIELD PROPERTY_BACKING_FIELD name:testInPrimaryCtor2 type:kotlin.Int visibility:public EXPRESSION_BODY GET_VAR 'value-parameter testInPrimaryCtor2: Int = ...' type=kotlin.Int origin=INITIALIZE_PROPERTY_FROM_PARAMETER - FUN DEFAULT_PROPERTY_ACCESSOR public final fun (): kotlin.Int - $this: VALUE_PARAMETER this@InPrimaryCtor: InPrimaryCtor + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:InPrimaryCtor) returnType:Int flags: + $this: VALUE_PARAMETER name: type:InPrimaryCtor flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): Int' + RETURN type=kotlin.Nothing from=(): Int' GET_FIELD 'testInPrimaryCtor2: Int' type=kotlin.Int origin=null receiver: GET_VAR 'this@InPrimaryCtor: InPrimaryCtor' type=InPrimaryCtor origin=null - FUN DEFAULT_PROPERTY_ACCESSOR public final fun (: kotlin.Int): kotlin.Unit - $this: VALUE_PARAMETER this@InPrimaryCtor: InPrimaryCtor - VALUE_PARAMETER value-parameter : kotlin.Int + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:InPrimaryCtor, :kotlin.Int) returnType:Unit flags: + $this: VALUE_PARAMETER name: type:InPrimaryCtor flags: + VALUE_PARAMETER name: index:0 type:kotlin.Int flags: BLOCK_BODY SET_FIELD 'testInPrimaryCtor2: Int' type=kotlin.Unit origin=null receiver: GET_VAR 'this@InPrimaryCtor: InPrimaryCtor' type=InPrimaryCtor origin=null value: GET_VAR 'value-parameter : Int' type=kotlin.Int origin=null - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: diff --git a/compiler/testData/ir/irText/declarations/parameters/delegatedMembers.txt b/compiler/testData/ir/irText/declarations/parameters/delegatedMembers.txt index c508085aa80..4660d6b48b6 100644 --- a/compiler/testData/ir/irText/declarations/parameters/delegatedMembers.txt +++ b/compiler/testData/ir/irText/declarations/parameters/delegatedMembers.txt @@ -1,41 +1,41 @@ -FILE /delegatedMembers.kt - CLASS INTERFACE IBase - $this: VALUE_PARAMETER this@IBase: IBase - TYPE_PARAMETER - FUN public abstract fun foo(x: kotlin.Int): kotlin.Unit - $this: VALUE_PARAMETER this@IBase: IBase - VALUE_PARAMETER value-parameter x: kotlin.Int - PROPERTY public abstract val bar: kotlin.Int - FUN DEFAULT_PROPERTY_ACCESSOR public abstract fun (): kotlin.Int - $this: VALUE_PARAMETER this@IBase: IBase - FUN public abstract fun qux(t: T, x: X): kotlin.Unit - TYPE_PARAMETER - $this: VALUE_PARAMETER this@IBase: IBase - VALUE_PARAMETER value-parameter t: T - VALUE_PARAMETER value-parameter x: X - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any - CLASS CLASS Test - $this: VALUE_PARAMETER this@Test: Test - TYPE_PARAMETER - CONSTRUCTOR public constructor Test(impl: IBase) - VALUE_PARAMETER value-parameter impl: IBase +FILE fqName: fileName:/delegatedMembers.kt + CLASS INTERFACE name:IBase modality:ABSTRACT visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:IBase flags: + TYPE_PARAMETER name:T index:0 variance: upperBounds:[kotlin.Any?] + FUN name:foo visibility:public modality:ABSTRACT <> ($this:IBase, x:kotlin.Int) returnType:Unit flags: + $this: VALUE_PARAMETER name: type:IBase flags: + VALUE_PARAMETER name:x index:0 type:kotlin.Int flags: + PROPERTY name:bar type:kotlin.Int visibility:public modality:ABSTRACT flags:val + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:ABSTRACT <> ($this:IBase) returnType:Int flags: + $this: VALUE_PARAMETER name: type:IBase flags: + FUN name:qux visibility:public modality:ABSTRACT ($this:IBase, t:T, x:X) returnType:Unit flags: + TYPE_PARAMETER name:X index:0 variance: upperBounds:[kotlin.Any?] + $this: VALUE_PARAMETER name: type:IBase flags: + VALUE_PARAMETER name:t index:0 type:T flags: + VALUE_PARAMETER name:x index:1 type:X flags: + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + CLASS CLASS name:Test modality:FINAL visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Test flags: + TYPE_PARAMETER name:TT index:0 variance: upperBounds:[kotlin.Any?] + CONSTRUCTOR visibility:public <> (impl:IBase) returnType:Test flags: + VALUE_PARAMETER name:impl index:0 type:IBase flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='Test' - FIELD DELEGATE val `Test$IBase$delegate`: IBase + FIELD DELEGATE name:Test$IBase$delegate type:IBase visibility:private EXPRESSION_BODY GET_VAR 'value-parameter impl: IBase' type=IBase origin=null - FUN DELEGATED_MEMBER public open override fun qux(t: TT, x: X): kotlin.Unit - TYPE_PARAMETER - $this: VALUE_PARAMETER this@Test: Test - VALUE_PARAMETER value-parameter t: TT - VALUE_PARAMETER value-parameter x: X + FUN DELEGATED_MEMBER name:qux visibility:public modality:OPEN ($this:Test, t:TT, x:X) returnType:Unit flags: + TYPE_PARAMETER name:X index:0 variance: upperBounds:[kotlin.Any?] + $this: VALUE_PARAMETER name: type:Test flags: + VALUE_PARAMETER name:t index:0 type:TT flags: + VALUE_PARAMETER name:x index:1 type:X flags: BLOCK_BODY CALL 'qux(TT, X): Unit' type=kotlin.Unit origin=null : null @@ -44,27 +44,27 @@ FILE /delegatedMembers.kt t: GET_VAR 'value-parameter t: TT' type=TT origin=null x: TYPE_OP type=X origin=IMPLICIT_CAST typeOperand=X GET_VAR 'value-parameter x: X' type=X origin=null - FUN DELEGATED_MEMBER public open override fun foo(x: kotlin.Int): kotlin.Unit - $this: VALUE_PARAMETER this@Test: Test - VALUE_PARAMETER value-parameter x: kotlin.Int + FUN DELEGATED_MEMBER name:foo visibility:public modality:OPEN <> ($this:Test, x:kotlin.Int) returnType:Unit flags: + $this: VALUE_PARAMETER name: type:Test flags: + VALUE_PARAMETER name:x index:0 type:kotlin.Int flags: BLOCK_BODY CALL 'foo(Int): Unit' type=kotlin.Unit origin=null $this: GET_FIELD '`Test$IBase$delegate`: IBase' type=IBase origin=null receiver: GET_VAR 'this@Test: Test' type=Test origin=null x: GET_VAR 'value-parameter x: Int' type=kotlin.Int origin=null - PROPERTY DELEGATED_MEMBER public open override val bar: kotlin.Int - FUN DELEGATED_MEMBER public open override fun (): kotlin.Int - $this: VALUE_PARAMETER this@Test: Test + PROPERTY DELEGATED_MEMBER name:bar type:kotlin.Int visibility:public modality:OPEN flags:val + FUN DELEGATED_MEMBER name: visibility:public modality:OPEN <> ($this:Test) returnType:Int flags: + $this: VALUE_PARAMETER name: type:Test flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): Int' + RETURN type=kotlin.Nothing from=(): Int' CALL '(): Int' type=kotlin.Int origin=null $this: GET_FIELD '`Test$IBase$delegate`: IBase' type=IBase origin=null receiver: GET_VAR 'this@Test: Test' type=Test origin=null - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: diff --git a/compiler/testData/ir/irText/declarations/parameters/fun.txt b/compiler/testData/ir/irText/declarations/parameters/fun.txt index 95da047c03d..d3b9e397a92 100644 --- a/compiler/testData/ir/irText/declarations/parameters/fun.txt +++ b/compiler/testData/ir/irText/declarations/parameters/fun.txt @@ -1,49 +1,49 @@ -FILE /fun.kt - FUN public fun test1(i: kotlin.Int, j: T): kotlin.Unit - TYPE_PARAMETER - VALUE_PARAMETER value-parameter i: kotlin.Int - VALUE_PARAMETER value-parameter j: T +FILE fqName: fileName:/fun.kt + FUN name:test1 visibility:public modality:FINAL (i:kotlin.Int, j:T) returnType:Unit flags: + TYPE_PARAMETER name:T index:0 variance: upperBounds:[kotlin.Any?] + VALUE_PARAMETER name:i index:0 type:kotlin.Int flags: + VALUE_PARAMETER name:j index:1 type:T flags: BLOCK_BODY - FUN public fun test2(i: kotlin.Int = ..., j: kotlin.String = ...): kotlin.Unit - VALUE_PARAMETER value-parameter i: kotlin.Int = ... + FUN name:test2 visibility:public modality:FINAL <> (i:kotlin.Int, j:kotlin.String) returnType:Unit flags: + VALUE_PARAMETER name:i index:0 type:kotlin.Int flags: EXPRESSION_BODY - CONST Int type=kotlin.Int value='0' - VALUE_PARAMETER value-parameter j: kotlin.String = ... + CONST Int type=kotlin.Int value=0 + VALUE_PARAMETER name:j index:1 type:kotlin.String flags: EXPRESSION_BODY - CONST String type=kotlin.String value='' + CONST String type=kotlin.String value= BLOCK_BODY - FUN public fun test3(vararg args: kotlin.String): kotlin.Unit - VALUE_PARAMETER value-parameter vararg args: kotlin.String + FUN name:test3 visibility:public modality:FINAL <> (args:kotlin.Array) returnType:Unit flags: + VALUE_PARAMETER name:args index:0 type:kotlin.Array varargElementType:kotlin.String flags:vararg BLOCK_BODY - FUN public fun kotlin.String.textExt1(i: kotlin.Int, j: kotlin.String): kotlin.Unit - $receiver: VALUE_PARAMETER this@textExt1: String - VALUE_PARAMETER value-parameter i: kotlin.Int - VALUE_PARAMETER value-parameter j: kotlin.String + FUN name:textExt1 visibility:public modality:FINAL <> ($receiver:kotlin.String, i:kotlin.Int, j:kotlin.String) returnType:Unit flags: + $receiver: VALUE_PARAMETER name: type:kotlin.String flags: + VALUE_PARAMETER name:i index:0 type:kotlin.Int flags: + VALUE_PARAMETER name:j index:1 type:kotlin.String flags: BLOCK_BODY - CLASS CLASS Host - $this: VALUE_PARAMETER this@Host: Host - CONSTRUCTOR public constructor Host() + CLASS CLASS name:Host modality:FINAL visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Host flags: + CONSTRUCTOR visibility:public <> () returnType:Host flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='Host' - FUN public final fun kotlin.String.testMembetExt1(i: kotlin.Int, j: kotlin.String): kotlin.Unit - $this: VALUE_PARAMETER this@Host: Host - $receiver: VALUE_PARAMETER this@testMembetExt1: String - VALUE_PARAMETER value-parameter i: kotlin.Int - VALUE_PARAMETER value-parameter j: kotlin.String + FUN name:testMembetExt1 visibility:public modality:FINAL <> ($this:Host, $receiver:kotlin.String, i:kotlin.Int, j:kotlin.String) returnType:Unit flags: + $this: VALUE_PARAMETER name: type:Host flags: + $receiver: VALUE_PARAMETER name: type:kotlin.String flags: + VALUE_PARAMETER name:i index:0 type:kotlin.Int flags: + VALUE_PARAMETER name:j index:1 type:kotlin.String flags: BLOCK_BODY - FUN public final fun kotlin.String.testMembetExt2(i: kotlin.Int, j: T): kotlin.Unit - TYPE_PARAMETER - $this: VALUE_PARAMETER this@Host: Host - $receiver: VALUE_PARAMETER this@testMembetExt2: String - VALUE_PARAMETER value-parameter i: kotlin.Int - VALUE_PARAMETER value-parameter j: T + FUN name:testMembetExt2 visibility:public modality:FINAL ($this:Host, $receiver:kotlin.String, i:kotlin.Int, j:T) returnType:Unit flags: + TYPE_PARAMETER name:T index:0 variance: upperBounds:[kotlin.Any?] + $this: VALUE_PARAMETER name: type:Host flags: + $receiver: VALUE_PARAMETER name: type:kotlin.String flags: + VALUE_PARAMETER name:i index:0 type:kotlin.Int flags: + VALUE_PARAMETER name:j index:1 type:T flags: BLOCK_BODY - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: diff --git a/compiler/testData/ir/irText/declarations/parameters/genericInnerClass.txt b/compiler/testData/ir/irText/declarations/parameters/genericInnerClass.txt index f9c7b5202a4..28186b70c8a 100644 --- a/compiler/testData/ir/irText/declarations/parameters/genericInnerClass.txt +++ b/compiler/testData/ir/irText/declarations/parameters/genericInnerClass.txt @@ -1,36 +1,36 @@ -FILE /genericInnerClass.kt - CLASS CLASS Outer - $this: VALUE_PARAMETER this@Outer: Outer - TYPE_PARAMETER - CONSTRUCTOR public constructor Outer() +FILE fqName: fileName:/genericInnerClass.kt + CLASS CLASS name:Outer modality:FINAL visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Outer flags: + TYPE_PARAMETER name:T1 index:0 variance: upperBounds:[kotlin.Any?] + CONSTRUCTOR visibility:public <> () returnType:Outer flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='Outer' - CLASS CLASS Inner - $this: VALUE_PARAMETER this@Inner: Inner - TYPE_PARAMETER - CONSTRUCTOR public constructor Inner() - $outer: VALUE_PARAMETER this@Outer: Outer + CLASS CLASS name:Inner modality:FINAL visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Outer.Inner flags: + TYPE_PARAMETER name:T2 index:0 variance: upperBounds:[kotlin.Any?] + CONSTRUCTOR visibility:public <> ($this:Outer) returnType:Outer.Inner flags: + $outer: VALUE_PARAMETER name: type:Outer flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='Inner' - FUN public final fun foo(x1: T1, x2: T2): kotlin.Unit - $this: VALUE_PARAMETER this@Inner: Inner - VALUE_PARAMETER value-parameter x1: T1 - VALUE_PARAMETER value-parameter x2: T2 + FUN name:foo visibility:public modality:FINAL <> ($this:Outer.Inner, x1:T1, x2:T2) returnType:Unit flags: + $this: VALUE_PARAMETER name: type:Outer.Inner flags: + VALUE_PARAMETER name:x1 index:0 type:T1 flags: + VALUE_PARAMETER name:x2 index:1 type:T2 flags: BLOCK_BODY - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: diff --git a/compiler/testData/ir/irText/declarations/parameters/lambdas.txt b/compiler/testData/ir/irText/declarations/parameters/lambdas.txt index bd63e4337f6..298a7a0afae 100644 --- a/compiler/testData/ir/irText/declarations/parameters/lambdas.txt +++ b/compiler/testData/ir/irText/declarations/parameters/lambdas.txt @@ -1,60 +1,60 @@ -FILE /lambdas.kt - PROPERTY public val test1: (kotlin.String) -> kotlin.String - FIELD PROPERTY_BACKING_FIELD public val test1: (kotlin.String) -> kotlin.String +FILE fqName: fileName:/lambdas.kt + PROPERTY name:test1 type:(kotlin.String) -> kotlin.String visibility:public modality:FINAL flags:val + FIELD PROPERTY_BACKING_FIELD name:test1 type:(kotlin.String) -> kotlin.String visibility:public EXPRESSION_BODY BLOCK type=(kotlin.String) -> kotlin.String origin=LAMBDA - FUN LOCAL_FUNCTION_FOR_LAMBDA local final fun (it: kotlin.String): kotlin.String - VALUE_PARAMETER value-parameter it: kotlin.String + FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> (it:kotlin.String) returnType:String flags: + VALUE_PARAMETER name:it index:0 type:kotlin.String flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(String): String' + RETURN type=kotlin.Nothing from=(String): String' GET_VAR 'value-parameter it: String' type=kotlin.String origin=null FUNCTION_REFERENCE '(String): String' type=(kotlin.String) -> kotlin.String origin=LAMBDA - FUN DEFAULT_PROPERTY_ACCESSOR public fun (): (kotlin.String) -> kotlin.String + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:Function1 flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): (String) -> String' + RETURN type=kotlin.Nothing from=(): (String) -> String' GET_FIELD 'test1: (String) -> String' type=(kotlin.String) -> kotlin.String origin=null - PROPERTY public val test2: kotlin.Any.(kotlin.Any) -> kotlin.Any - FIELD PROPERTY_BACKING_FIELD public val test2: kotlin.Any.(kotlin.Any) -> kotlin.Any + PROPERTY name:test2 type:kotlin.Any.(kotlin.Any) -> kotlin.Any visibility:public modality:FINAL flags:val + FIELD PROPERTY_BACKING_FIELD name:test2 type:kotlin.Any.(kotlin.Any) -> kotlin.Any visibility:public EXPRESSION_BODY BLOCK type=kotlin.Any.(kotlin.Any) -> kotlin.Int origin=LAMBDA - FUN LOCAL_FUNCTION_FOR_LAMBDA local final fun kotlin.Any.(it: kotlin.Any): kotlin.Int - $receiver: VALUE_PARAMETER this@: Any - VALUE_PARAMETER value-parameter it: kotlin.Any + FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> ($receiver:kotlin.Any, it:kotlin.Any) returnType:Int flags: + $receiver: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:it index:0 type:kotlin.Any flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(Any) on Any: Int' + RETURN type=kotlin.Nothing from=(Any) on Any: Int' CALL 'hashCode(): Int' type=kotlin.Int origin=null $this: GET_VAR 'value-parameter it: Any' type=kotlin.Any origin=null FUNCTION_REFERENCE '(Any) on Any: Int' type=kotlin.Any.(kotlin.Any) -> kotlin.Int origin=LAMBDA - FUN DEFAULT_PROPERTY_ACCESSOR public fun (): kotlin.Any.(kotlin.Any) -> kotlin.Any + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:[@kotlin.ExtensionFunctionType] Function2 flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): Any.(Any) -> Any' + RETURN type=kotlin.Nothing from=(): Any.(Any) -> Any' GET_FIELD 'test2: Any.(Any) -> Any' type=kotlin.Any.(kotlin.Any) -> kotlin.Any origin=null - PROPERTY public val test3: (kotlin.Int, kotlin.Int) -> kotlin.Unit - FIELD PROPERTY_BACKING_FIELD public val test3: (kotlin.Int, kotlin.Int) -> kotlin.Unit + PROPERTY name:test3 type:(kotlin.Int, kotlin.Int) -> kotlin.Unit visibility:public modality:FINAL flags:val + FIELD PROPERTY_BACKING_FIELD name:test3 type:(kotlin.Int, kotlin.Int) -> kotlin.Unit visibility:public EXPRESSION_BODY BLOCK type=(kotlin.Int, kotlin.Int) -> kotlin.Unit origin=LAMBDA - FUN LOCAL_FUNCTION_FOR_LAMBDA local final fun (i: kotlin.Int, j: kotlin.Int): kotlin.Unit - VALUE_PARAMETER value-parameter i: kotlin.Int - VALUE_PARAMETER value-parameter j: kotlin.Int + FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> (i:kotlin.Int, j:kotlin.Int) returnType:Unit flags: + VALUE_PARAMETER name:i index:0 type:kotlin.Int flags: + VALUE_PARAMETER name:j index:1 type:kotlin.Int flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(Int, Int): Unit' + RETURN type=kotlin.Nothing from=(Int, Int): Unit' GET_OBJECT 'Unit' type=kotlin.Unit FUNCTION_REFERENCE '(Int, Int): Unit' type=(kotlin.Int, kotlin.Int) -> kotlin.Unit origin=LAMBDA - FUN DEFAULT_PROPERTY_ACCESSOR public fun (): (kotlin.Int, kotlin.Int) -> kotlin.Unit + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:Function2 flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): (Int, Int) -> Unit' + RETURN type=kotlin.Nothing from=(): (Int, Int) -> Unit' GET_FIELD 'test3: (Int, Int) -> Unit' type=(kotlin.Int, kotlin.Int) -> kotlin.Unit origin=null - PROPERTY public val test4: (kotlin.Int, kotlin.Int) -> kotlin.Unit - FIELD PROPERTY_BACKING_FIELD public val test4: (kotlin.Int, kotlin.Int) -> kotlin.Unit + PROPERTY name:test4 type:(kotlin.Int, kotlin.Int) -> kotlin.Unit visibility:public modality:FINAL flags:val + FIELD PROPERTY_BACKING_FIELD name:test4 type:(kotlin.Int, kotlin.Int) -> kotlin.Unit visibility:public EXPRESSION_BODY BLOCK type=(kotlin.Int, kotlin.Int) -> kotlin.Unit origin=ANONYMOUS_FUNCTION - FUN local final fun (i: kotlin.Int, j: kotlin.Int): kotlin.Unit - VALUE_PARAMETER value-parameter i: kotlin.Int - VALUE_PARAMETER value-parameter j: kotlin.Int + FUN name: visibility:local modality:FINAL <> (i:kotlin.Int, j:kotlin.Int) returnType:Unit flags: + VALUE_PARAMETER name:i index:0 type:kotlin.Int flags: + VALUE_PARAMETER name:j index:1 type:kotlin.Int flags: BLOCK_BODY FUNCTION_REFERENCE '(Int, Int): Unit' type=(kotlin.Int, kotlin.Int) -> kotlin.Unit origin=ANONYMOUS_FUNCTION - FUN DEFAULT_PROPERTY_ACCESSOR public fun (): (kotlin.Int, kotlin.Int) -> kotlin.Unit + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:Function2 flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): (Int, Int) -> Unit' + RETURN type=kotlin.Nothing from=(): (Int, Int) -> Unit' GET_FIELD 'test4: (Int, Int) -> Unit' type=(kotlin.Int, kotlin.Int) -> kotlin.Unit origin=null diff --git a/compiler/testData/ir/irText/declarations/parameters/localFun.txt b/compiler/testData/ir/irText/declarations/parameters/localFun.txt index 51e6eee308b..add8a7f83a1 100644 --- a/compiler/testData/ir/irText/declarations/parameters/localFun.txt +++ b/compiler/testData/ir/irText/declarations/parameters/localFun.txt @@ -1,26 +1,26 @@ -FILE /localFun.kt - FUN public fun outer(): kotlin.Unit - TYPE_PARAMETER +FILE fqName: fileName:/localFun.kt + FUN name:outer visibility:public modality:FINAL () returnType:Unit flags: + TYPE_PARAMETER name:TT index:0 variance: upperBounds:[kotlin.Any?] BLOCK_BODY - FUN local final fun test1(i: kotlin.Int, j: T): kotlin.Unit - TYPE_PARAMETER - VALUE_PARAMETER value-parameter i: kotlin.Int - VALUE_PARAMETER value-parameter j: T + FUN name:test1 visibility:local modality:FINAL (i:kotlin.Int, j:T) returnType:Unit flags: + TYPE_PARAMETER name:T index:0 variance: upperBounds:[kotlin.Any?] + VALUE_PARAMETER name:i index:0 type:kotlin.Int flags: + VALUE_PARAMETER name:j index:1 type:T flags: BLOCK_BODY - FUN local final fun test2(i: kotlin.Int = ..., j: kotlin.String = ...): kotlin.Unit - VALUE_PARAMETER value-parameter i: kotlin.Int = ... + FUN name:test2 visibility:local modality:FINAL <> (i:kotlin.Int, j:kotlin.String) returnType:Unit flags: + VALUE_PARAMETER name:i index:0 type:kotlin.Int flags: EXPRESSION_BODY - CONST Int type=kotlin.Int value='0' - VALUE_PARAMETER value-parameter j: kotlin.String = ... + CONST Int type=kotlin.Int value=0 + VALUE_PARAMETER name:j index:1 type:kotlin.String flags: EXPRESSION_BODY - CONST String type=kotlin.String value='' + CONST String type=kotlin.String value= BLOCK_BODY - FUN local final fun test3(vararg args: kotlin.String): kotlin.Unit - VALUE_PARAMETER value-parameter vararg args: kotlin.String + FUN name:test3 visibility:local modality:FINAL <> (args:kotlin.Array) returnType:Unit flags: + VALUE_PARAMETER name:args index:0 type:kotlin.Array varargElementType:kotlin.String flags:vararg BLOCK_BODY - FUN local final fun kotlin.String.textExt1(i: kotlin.Int, j: TT): kotlin.Unit - $receiver: VALUE_PARAMETER this@textExt1: String - VALUE_PARAMETER value-parameter i: kotlin.Int - VALUE_PARAMETER value-parameter j: TT + FUN name:textExt1 visibility:local modality:FINAL <> ($receiver:kotlin.String, i:kotlin.Int, j:TT) returnType:Unit flags: + $receiver: VALUE_PARAMETER name: type:kotlin.String flags: + VALUE_PARAMETER name:i index:0 type:kotlin.Int flags: + VALUE_PARAMETER name:j index:1 type:TT flags: BLOCK_BODY diff --git a/compiler/testData/ir/irText/declarations/parameters/propertyAccessors.txt b/compiler/testData/ir/irText/declarations/parameters/propertyAccessors.txt index f731ca45100..75e4cd1cca3 100644 --- a/compiler/testData/ir/irText/declarations/parameters/propertyAccessors.txt +++ b/compiler/testData/ir/irText/declarations/parameters/propertyAccessors.txt @@ -1,115 +1,115 @@ -FILE /propertyAccessors.kt - PROPERTY public val test1: kotlin.Int - FUN public fun (): kotlin.Int +FILE fqName: fileName:/propertyAccessors.kt + PROPERTY name:test1 type:kotlin.Int visibility:public modality:FINAL flags:val + FUN name: visibility:public modality:FINAL <> () returnType:Int flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): Int' - CONST Int type=kotlin.Int value='42' - PROPERTY public var test2: kotlin.Int - FUN public fun (): kotlin.Int + RETURN type=kotlin.Nothing from=(): Int' + CONST Int type=kotlin.Int value=42 + PROPERTY name:test2 type:kotlin.Int visibility:public modality:FINAL flags:var + FUN name: visibility:public modality:FINAL <> () returnType:Int flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): Int' - CONST Int type=kotlin.Int value='42' - FUN public fun (value: kotlin.Int): kotlin.Unit - VALUE_PARAMETER value-parameter value: kotlin.Int + RETURN type=kotlin.Nothing from=(): Int' + CONST Int type=kotlin.Int value=42 + FUN name: visibility:public modality:FINAL <> (value:kotlin.Int) returnType:Unit flags: + VALUE_PARAMETER name:value index:0 type:kotlin.Int flags: BLOCK_BODY - PROPERTY public val kotlin.String.testExt1: kotlin.Int - FUN public fun kotlin.String.(): kotlin.Int - $receiver: VALUE_PARAMETER this@testExt1: String + PROPERTY name:testExt1 type:kotlin.Int visibility:public modality:FINAL flags:val + FUN name: visibility:public modality:FINAL <> ($receiver:kotlin.String) returnType:Int flags: + $receiver: VALUE_PARAMETER name: type:kotlin.String flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='() on String: Int' - CONST Int type=kotlin.Int value='42' - PROPERTY public var kotlin.String.testExt2: kotlin.Int - FUN public fun kotlin.String.(): kotlin.Int - $receiver: VALUE_PARAMETER this@testExt2: String + RETURN type=kotlin.Nothing from=() on String: Int' + CONST Int type=kotlin.Int value=42 + PROPERTY name:testExt2 type:kotlin.Int visibility:public modality:FINAL flags:var + FUN name: visibility:public modality:FINAL <> ($receiver:kotlin.String) returnType:Int flags: + $receiver: VALUE_PARAMETER name: type:kotlin.String flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='() on String: Int' - CONST Int type=kotlin.Int value='42' - FUN public fun kotlin.String.(value: kotlin.Int): kotlin.Unit - $receiver: VALUE_PARAMETER this@testExt2: String - VALUE_PARAMETER value-parameter value: kotlin.Int + RETURN type=kotlin.Nothing from=() on String: Int' + CONST Int type=kotlin.Int value=42 + FUN name: visibility:public modality:FINAL <> ($receiver:kotlin.String, value:kotlin.Int) returnType:Unit flags: + $receiver: VALUE_PARAMETER name: type:kotlin.String flags: + VALUE_PARAMETER name:value index:0 type:kotlin.Int flags: BLOCK_BODY - PROPERTY public val T.testExt3: kotlin.Int - FUN public fun T.(): kotlin.Int - $receiver: VALUE_PARAMETER this@testExt3: T + PROPERTY name:testExt3 type:kotlin.Int visibility:public modality:FINAL flags:val + FUN name: visibility:public modality:FINAL <> ($receiver:T) returnType:Int flags: + $receiver: VALUE_PARAMETER name: type:T flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='() on T: Int' - CONST Int type=kotlin.Int value='42' - PROPERTY public var T.testExt4: kotlin.Int - FUN public fun T.(): kotlin.Int - $receiver: VALUE_PARAMETER this@testExt4: T + RETURN type=kotlin.Nothing from=() on T: Int' + CONST Int type=kotlin.Int value=42 + PROPERTY name:testExt4 type:kotlin.Int visibility:public modality:FINAL flags:var + FUN name: visibility:public modality:FINAL <> ($receiver:T) returnType:Int flags: + $receiver: VALUE_PARAMETER name: type:T flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='() on T: Int' - CONST Int type=kotlin.Int value='42' - FUN public fun T.(value: kotlin.Int): kotlin.Unit - $receiver: VALUE_PARAMETER this@testExt4: T - VALUE_PARAMETER value-parameter value: kotlin.Int + RETURN type=kotlin.Nothing from=() on T: Int' + CONST Int type=kotlin.Int value=42 + FUN name: visibility:public modality:FINAL <> ($receiver:T, value:kotlin.Int) returnType:Unit flags: + $receiver: VALUE_PARAMETER name: type:T flags: + VALUE_PARAMETER name:value index:0 type:kotlin.Int flags: BLOCK_BODY - CLASS CLASS Host - $this: VALUE_PARAMETER this@Host: Host - TYPE_PARAMETER - CONSTRUCTOR public constructor Host() + CLASS CLASS name:Host modality:FINAL visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Host flags: + TYPE_PARAMETER name:T index:0 variance: upperBounds:[kotlin.Any?] + CONSTRUCTOR visibility:public <> () returnType:Host flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='Host' - PROPERTY public final val testMem1: kotlin.Int - FUN public final fun (): kotlin.Int - $this: VALUE_PARAMETER this@Host: Host + PROPERTY name:testMem1 type:kotlin.Int visibility:public modality:FINAL flags:val + FUN name: visibility:public modality:FINAL <> ($this:Host) returnType:Int flags: + $this: VALUE_PARAMETER name: type:Host flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): Int' - CONST Int type=kotlin.Int value='42' - PROPERTY public final var testMem2: kotlin.Int - FUN public final fun (): kotlin.Int - $this: VALUE_PARAMETER this@Host: Host + RETURN type=kotlin.Nothing from=(): Int' + CONST Int type=kotlin.Int value=42 + PROPERTY name:testMem2 type:kotlin.Int visibility:public modality:FINAL flags:var + FUN name: visibility:public modality:FINAL <> ($this:Host) returnType:Int flags: + $this: VALUE_PARAMETER name: type:Host flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): Int' - CONST Int type=kotlin.Int value='42' - FUN public final fun (value: kotlin.Int): kotlin.Unit - $this: VALUE_PARAMETER this@Host: Host - VALUE_PARAMETER value-parameter value: kotlin.Int + RETURN type=kotlin.Nothing from=(): Int' + CONST Int type=kotlin.Int value=42 + FUN name: visibility:public modality:FINAL <> ($this:Host, value:kotlin.Int) returnType:Unit flags: + $this: VALUE_PARAMETER name: type:Host flags: + VALUE_PARAMETER name:value index:0 type:kotlin.Int flags: BLOCK_BODY - PROPERTY public final val kotlin.String.testMemExt1: kotlin.Int - FUN public final fun kotlin.String.(): kotlin.Int - $this: VALUE_PARAMETER this@Host: Host - $receiver: VALUE_PARAMETER this@testMemExt1: String + PROPERTY name:testMemExt1 type:kotlin.Int visibility:public modality:FINAL flags:val + FUN name: visibility:public modality:FINAL <> ($this:Host, $receiver:kotlin.String) returnType:Int flags: + $this: VALUE_PARAMETER name: type:Host flags: + $receiver: VALUE_PARAMETER name: type:kotlin.String flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='() on String: Int' - CONST Int type=kotlin.Int value='42' - PROPERTY public final var kotlin.String.testMemExt2: kotlin.Int - FUN public final fun kotlin.String.(): kotlin.Int - $this: VALUE_PARAMETER this@Host: Host - $receiver: VALUE_PARAMETER this@testMemExt2: String + RETURN type=kotlin.Nothing from=() on String: Int' + CONST Int type=kotlin.Int value=42 + PROPERTY name:testMemExt2 type:kotlin.Int visibility:public modality:FINAL flags:var + FUN name: visibility:public modality:FINAL <> ($this:Host, $receiver:kotlin.String) returnType:Int flags: + $this: VALUE_PARAMETER name: type:Host flags: + $receiver: VALUE_PARAMETER name: type:kotlin.String flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='() on String: Int' - CONST Int type=kotlin.Int value='42' - FUN public final fun kotlin.String.(value: kotlin.Int): kotlin.Unit - $this: VALUE_PARAMETER this@Host: Host - $receiver: VALUE_PARAMETER this@testMemExt2: String - VALUE_PARAMETER value-parameter value: kotlin.Int + RETURN type=kotlin.Nothing from=() on String: Int' + CONST Int type=kotlin.Int value=42 + FUN name: visibility:public modality:FINAL <> ($this:Host, $receiver:kotlin.String, value:kotlin.Int) returnType:Unit flags: + $this: VALUE_PARAMETER name: type:Host flags: + $receiver: VALUE_PARAMETER name: type:kotlin.String flags: + VALUE_PARAMETER name:value index:0 type:kotlin.Int flags: BLOCK_BODY - PROPERTY public final val TT.testMemExt3: kotlin.Int - FUN public final fun TT.(): kotlin.Int - $this: VALUE_PARAMETER this@Host: Host - $receiver: VALUE_PARAMETER this@testMemExt3: TT + PROPERTY name:testMemExt3 type:kotlin.Int visibility:public modality:FINAL flags:val + FUN name: visibility:public modality:FINAL <> ($this:Host, $receiver:TT) returnType:Int flags: + $this: VALUE_PARAMETER name: type:Host flags: + $receiver: VALUE_PARAMETER name: type:TT flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='() on TT: Int' - CONST Int type=kotlin.Int value='42' - PROPERTY public final var TT.testMemExt4: kotlin.Int - FUN public final fun TT.(): kotlin.Int - $this: VALUE_PARAMETER this@Host: Host - $receiver: VALUE_PARAMETER this@testMemExt4: TT + RETURN type=kotlin.Nothing from=() on TT: Int' + CONST Int type=kotlin.Int value=42 + PROPERTY name:testMemExt4 type:kotlin.Int visibility:public modality:FINAL flags:var + FUN name: visibility:public modality:FINAL <> ($this:Host, $receiver:TT) returnType:Int flags: + $this: VALUE_PARAMETER name: type:Host flags: + $receiver: VALUE_PARAMETER name: type:TT flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='() on TT: Int' - CONST Int type=kotlin.Int value='42' - FUN public final fun TT.(value: kotlin.Int): kotlin.Unit - $this: VALUE_PARAMETER this@Host: Host - $receiver: VALUE_PARAMETER this@testMemExt4: TT - VALUE_PARAMETER value-parameter value: kotlin.Int + RETURN type=kotlin.Nothing from=() on TT: Int' + CONST Int type=kotlin.Int value=42 + FUN name: visibility:public modality:FINAL <> ($this:Host, $receiver:TT, value:kotlin.Int) returnType:Unit flags: + $this: VALUE_PARAMETER name: type:Host flags: + $receiver: VALUE_PARAMETER name: type:TT flags: + VALUE_PARAMETER name:value index:0 type:kotlin.Int flags: BLOCK_BODY - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: diff --git a/compiler/testData/ir/irText/declarations/primaryCtorDefaultArguments.txt b/compiler/testData/ir/irText/declarations/primaryCtorDefaultArguments.txt index ee24f9bb6ba..90d590939e2 100644 --- a/compiler/testData/ir/irText/declarations/primaryCtorDefaultArguments.txt +++ b/compiler/testData/ir/irText/declarations/primaryCtorDefaultArguments.txt @@ -1,28 +1,28 @@ -FILE /primaryCtorDefaultArguments.kt - CLASS CLASS Test - $this: VALUE_PARAMETER this@Test: Test - CONSTRUCTOR public constructor Test(x: kotlin.Int = ...) - VALUE_PARAMETER value-parameter x: kotlin.Int = ... +FILE fqName: fileName:/primaryCtorDefaultArguments.kt + CLASS CLASS name:Test modality:FINAL visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Test flags: + CONSTRUCTOR visibility:public <> (x:kotlin.Int) returnType:Test flags: + VALUE_PARAMETER name:x index:0 type:kotlin.Int flags: EXPRESSION_BODY - CONST Int type=kotlin.Int value='0' + CONST Int type=kotlin.Int value=0 BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='Test' - PROPERTY public final val x: kotlin.Int - FIELD PROPERTY_BACKING_FIELD public final val x: kotlin.Int + PROPERTY name:x type:kotlin.Int visibility:public modality:FINAL flags:val + FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.Int visibility:public EXPRESSION_BODY GET_VAR 'value-parameter x: Int = ...' type=kotlin.Int origin=INITIALIZE_PROPERTY_FROM_PARAMETER - FUN DEFAULT_PROPERTY_ACCESSOR public final fun (): kotlin.Int - $this: VALUE_PARAMETER this@Test: Test + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:Test) returnType:Int flags: + $this: VALUE_PARAMETER name: type:Test flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): Int' + RETURN type=kotlin.Nothing from=(): Int' GET_FIELD 'x: Int' type=kotlin.Int origin=null receiver: GET_VAR 'this@Test: Test' type=Test origin=null - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: diff --git a/compiler/testData/ir/irText/declarations/primaryCtorProperties.txt b/compiler/testData/ir/irText/declarations/primaryCtorProperties.txt index baaa12d837d..64463d39224 100644 --- a/compiler/testData/ir/irText/declarations/primaryCtorProperties.txt +++ b/compiler/testData/ir/irText/declarations/primaryCtorProperties.txt @@ -1,44 +1,44 @@ -FILE /primaryCtorProperties.kt - CLASS CLASS C - $this: VALUE_PARAMETER this@C: C - CONSTRUCTOR public constructor C(test1: kotlin.Int, test2: kotlin.Int) - VALUE_PARAMETER value-parameter test1: kotlin.Int - VALUE_PARAMETER value-parameter test2: kotlin.Int +FILE fqName: fileName:/primaryCtorProperties.kt + CLASS CLASS name:C modality:FINAL visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:C flags: + CONSTRUCTOR visibility:public <> (test1:kotlin.Int, test2:kotlin.Int) returnType:C flags: + VALUE_PARAMETER name:test1 index:0 type:kotlin.Int flags: + VALUE_PARAMETER name:test2 index:1 type:kotlin.Int flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='C' - PROPERTY public final val test1: kotlin.Int - FIELD PROPERTY_BACKING_FIELD public final val test1: kotlin.Int + PROPERTY name:test1 type:kotlin.Int visibility:public modality:FINAL flags:val + FIELD PROPERTY_BACKING_FIELD name:test1 type:kotlin.Int visibility:public EXPRESSION_BODY GET_VAR 'value-parameter test1: Int' type=kotlin.Int origin=INITIALIZE_PROPERTY_FROM_PARAMETER - FUN DEFAULT_PROPERTY_ACCESSOR public final fun (): kotlin.Int - $this: VALUE_PARAMETER this@C: C + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:C) returnType:Int flags: + $this: VALUE_PARAMETER name: type:C flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): Int' + RETURN type=kotlin.Nothing from=(): Int' GET_FIELD 'test1: Int' type=kotlin.Int origin=null receiver: GET_VAR 'this@C: C' type=C origin=null - PROPERTY public final var test2: kotlin.Int - FIELD PROPERTY_BACKING_FIELD public final var test2: kotlin.Int + PROPERTY name:test2 type:kotlin.Int visibility:public modality:FINAL flags:var + FIELD PROPERTY_BACKING_FIELD name:test2 type:kotlin.Int visibility:public EXPRESSION_BODY GET_VAR 'value-parameter test2: Int' type=kotlin.Int origin=INITIALIZE_PROPERTY_FROM_PARAMETER - FUN DEFAULT_PROPERTY_ACCESSOR public final fun (): kotlin.Int - $this: VALUE_PARAMETER this@C: C + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:C) returnType:Int flags: + $this: VALUE_PARAMETER name: type:C flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): Int' + RETURN type=kotlin.Nothing from=(): Int' GET_FIELD 'test2: Int' type=kotlin.Int origin=null receiver: GET_VAR 'this@C: C' type=C origin=null - FUN DEFAULT_PROPERTY_ACCESSOR public final fun (: kotlin.Int): kotlin.Unit - $this: VALUE_PARAMETER this@C: C - VALUE_PARAMETER value-parameter : kotlin.Int + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:C, :kotlin.Int) returnType:Unit flags: + $this: VALUE_PARAMETER name: type:C flags: + VALUE_PARAMETER name: index:0 type:kotlin.Int flags: BLOCK_BODY SET_FIELD 'test2: Int' type=kotlin.Unit origin=null receiver: GET_VAR 'this@C: C' type=C origin=null value: GET_VAR 'value-parameter : Int' type=kotlin.Int origin=null - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: diff --git a/compiler/testData/ir/irText/declarations/provideDelegate/differentReceivers.txt b/compiler/testData/ir/irText/declarations/provideDelegate/differentReceivers.txt index 3151789b2b9..dbc2e9f9f21 100644 --- a/compiler/testData/ir/irText/declarations/provideDelegate/differentReceivers.txt +++ b/compiler/testData/ir/irText/declarations/provideDelegate/differentReceivers.txt @@ -1,77 +1,77 @@ -FILE /differentReceivers.kt - CLASS CLASS MyClass - $this: VALUE_PARAMETER this@MyClass: MyClass - CONSTRUCTOR public constructor MyClass(value: kotlin.String) - VALUE_PARAMETER value-parameter value: kotlin.String +FILE fqName: fileName:/differentReceivers.kt + CLASS CLASS name:MyClass modality:FINAL visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:MyClass flags: + CONSTRUCTOR visibility:public <> (value:kotlin.String) returnType:MyClass flags: + VALUE_PARAMETER name:value index:0 type:kotlin.String flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='MyClass' - PROPERTY public final val value: kotlin.String - FIELD PROPERTY_BACKING_FIELD public final val value: kotlin.String + PROPERTY name:value type:kotlin.String visibility:public modality:FINAL flags:val + FIELD PROPERTY_BACKING_FIELD name:value type:kotlin.String visibility:public EXPRESSION_BODY GET_VAR 'value-parameter value: String' type=kotlin.String origin=INITIALIZE_PROPERTY_FROM_PARAMETER - FUN DEFAULT_PROPERTY_ACCESSOR public final fun (): kotlin.String - $this: VALUE_PARAMETER this@MyClass: MyClass + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:MyClass) returnType:String flags: + $this: VALUE_PARAMETER name: type:MyClass flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): String' + RETURN type=kotlin.Nothing from=(): String' GET_FIELD 'value: String' type=kotlin.String origin=null receiver: GET_VAR 'this@MyClass: MyClass' type=MyClass origin=null - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any - FUN public operator fun MyClass.provideDelegate(host: kotlin.Any?, p: kotlin.Any): kotlin.String - $receiver: VALUE_PARAMETER this@provideDelegate: MyClass - VALUE_PARAMETER value-parameter host: kotlin.Any? - VALUE_PARAMETER value-parameter p: kotlin.Any + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN name:provideDelegate visibility:public modality:FINAL <> ($receiver:MyClass, host:kotlin.Any?, p:kotlin.Any) returnType:String flags: + $receiver: VALUE_PARAMETER name: type:MyClass flags: + VALUE_PARAMETER name:host index:0 type:kotlin.Any? flags: + VALUE_PARAMETER name:p index:1 type:kotlin.Any flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='provideDelegate(Any?, Any) on MyClass: String' + RETURN type=kotlin.Nothing from=provideDelegate(Any?, Any) on MyClass: String' CALL '(): String' type=kotlin.String origin=GET_PROPERTY $this: GET_VAR 'this@provideDelegate: MyClass' type=MyClass origin=null - FUN public operator fun kotlin.String.getValue(receiver: kotlin.Any?, p: kotlin.Any): kotlin.String - $receiver: VALUE_PARAMETER this@getValue: String - VALUE_PARAMETER value-parameter receiver: kotlin.Any? - VALUE_PARAMETER value-parameter p: kotlin.Any + FUN name:getValue visibility:public modality:FINAL <> ($receiver:kotlin.String, receiver:kotlin.Any?, p:kotlin.Any) returnType:String flags: + $receiver: VALUE_PARAMETER name: type:kotlin.String flags: + VALUE_PARAMETER name:receiver index:0 type:kotlin.Any? flags: + VALUE_PARAMETER name:p index:1 type:kotlin.Any flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='getValue(Any?, Any) on String: String' + RETURN type=kotlin.Nothing from=getValue(Any?, Any) on String: String' GET_VAR 'this@getValue: String' type=kotlin.String origin=null - PROPERTY public val testO: kotlin.String - FIELD DELEGATE val `testO$delegate`: kotlin.String + PROPERTY name:testO type:kotlin.String visibility:public modality:FINAL flags:delegatedmval + FIELD DELEGATE name:testO$delegate type:kotlin.String visibility:private EXPRESSION_BODY CALL 'provideDelegate(Any?, Any) on MyClass: String' type=kotlin.String origin=null $receiver: CALL 'constructor MyClass(String)' type=MyClass origin=null - value: CONST String type=kotlin.String value='O' - host: CONST Null type=kotlin.Nothing? value='null' + value: CONST String type=kotlin.String value=O + host: CONST Null type=kotlin.Nothing? value=null p: PROPERTY_REFERENCE 'testO: String' field=null getter='(): String' setter=null type=kotlin.reflect.KProperty0 origin=PROPERTY_REFERENCE_FOR_DELEGATE - FUN DELEGATED_PROPERTY_ACCESSOR public fun (): kotlin.String + FUN DELEGATED_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:String flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): String' + RETURN type=kotlin.Nothing from=(): String' CALL 'getValue(Any?, Any) on String: String' type=kotlin.String origin=null $receiver: GET_FIELD '`testO$delegate`: String' type=kotlin.String origin=null - receiver: CONST Null type=kotlin.Nothing? value='null' + receiver: CONST Null type=kotlin.Nothing? value=null p: PROPERTY_REFERENCE 'testO: String' field=null getter='(): String' setter=null type=kotlin.reflect.KProperty0 origin=PROPERTY_REFERENCE_FOR_DELEGATE - PROPERTY public val testK: kotlin.String - FIELD DELEGATE val `testK$delegate`: kotlin.String + PROPERTY name:testK type:kotlin.String visibility:public modality:FINAL flags:delegatedmval + FIELD DELEGATE name:testK$delegate type:kotlin.String visibility:private EXPRESSION_BODY - CONST String type=kotlin.String value='K' - FUN DELEGATED_PROPERTY_ACCESSOR public fun (): kotlin.String + CONST String type=kotlin.String value=K + FUN DELEGATED_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:String flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): String' + RETURN type=kotlin.Nothing from=(): String' CALL 'getValue(Any?, Any) on String: String' type=kotlin.String origin=null $receiver: GET_FIELD '`testK$delegate`: String' type=kotlin.String origin=null - receiver: CONST Null type=kotlin.Nothing? value='null' + receiver: CONST Null type=kotlin.Nothing? value=null p: PROPERTY_REFERENCE 'testK: String' field=null getter='(): String' setter=null type=kotlin.reflect.KProperty0 origin=PROPERTY_REFERENCE_FOR_DELEGATE - PROPERTY public val testOK: kotlin.String - FIELD PROPERTY_BACKING_FIELD public val testOK: kotlin.String + PROPERTY name:testOK type:kotlin.String visibility:public modality:FINAL flags:val + FIELD PROPERTY_BACKING_FIELD name:testOK type:kotlin.String visibility:public EXPRESSION_BODY CALL 'plus(Any?): String' type=kotlin.String origin=PLUS $this: CALL '(): String' type=kotlin.String origin=GET_PROPERTY other: CALL '(): String' type=kotlin.String origin=GET_PROPERTY - FUN DEFAULT_PROPERTY_ACCESSOR public fun (): kotlin.String + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:String flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): String' + RETURN type=kotlin.Nothing from=(): String' GET_FIELD 'testOK: String' type=kotlin.String origin=null diff --git a/compiler/testData/ir/irText/declarations/provideDelegate/local.txt b/compiler/testData/ir/irText/declarations/provideDelegate/local.txt index 9fe30522b46..112aa310450 100644 --- a/compiler/testData/ir/irText/declarations/provideDelegate/local.txt +++ b/compiler/testData/ir/irText/declarations/provideDelegate/local.txt @@ -1,83 +1,83 @@ -FILE /local.kt - CLASS CLASS Delegate - $this: VALUE_PARAMETER this@Delegate: Delegate - CONSTRUCTOR public constructor Delegate(value: kotlin.String) - VALUE_PARAMETER value-parameter value: kotlin.String +FILE fqName: fileName:/local.kt + CLASS CLASS name:Delegate modality:FINAL visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Delegate flags: + CONSTRUCTOR visibility:public <> (value:kotlin.String) returnType:Delegate flags: + VALUE_PARAMETER name:value index:0 type:kotlin.String flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='Delegate' - PROPERTY public final val value: kotlin.String - FIELD PROPERTY_BACKING_FIELD public final val value: kotlin.String + PROPERTY name:value type:kotlin.String visibility:public modality:FINAL flags:val + FIELD PROPERTY_BACKING_FIELD name:value type:kotlin.String visibility:public EXPRESSION_BODY GET_VAR 'value-parameter value: String' type=kotlin.String origin=INITIALIZE_PROPERTY_FROM_PARAMETER - FUN DEFAULT_PROPERTY_ACCESSOR public final fun (): kotlin.String - $this: VALUE_PARAMETER this@Delegate: Delegate + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:Delegate) returnType:String flags: + $this: VALUE_PARAMETER name: type:Delegate flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): String' + RETURN type=kotlin.Nothing from=(): String' GET_FIELD 'value: String' type=kotlin.String origin=null receiver: GET_VAR 'this@Delegate: Delegate' type=Delegate origin=null - FUN public final operator fun getValue(thisRef: kotlin.Any?, property: kotlin.Any?): kotlin.String - $this: VALUE_PARAMETER this@Delegate: Delegate - VALUE_PARAMETER value-parameter thisRef: kotlin.Any? - VALUE_PARAMETER value-parameter property: kotlin.Any? + FUN name:getValue visibility:public modality:FINAL <> ($this:Delegate, thisRef:kotlin.Any?, property:kotlin.Any?) returnType:String flags: + $this: VALUE_PARAMETER name: type:Delegate flags: + VALUE_PARAMETER name:thisRef index:0 type:kotlin.Any? flags: + VALUE_PARAMETER name:property index:1 type:kotlin.Any? flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='getValue(Any?, Any?): String' + RETURN type=kotlin.Nothing from=getValue(Any?, Any?): String' CALL '(): String' type=kotlin.String origin=GET_PROPERTY $this: GET_VAR 'this@Delegate: Delegate' type=Delegate origin=null - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any - CLASS CLASS DelegateProvider - $this: VALUE_PARAMETER this@DelegateProvider: DelegateProvider - CONSTRUCTOR public constructor DelegateProvider(value: kotlin.String) - VALUE_PARAMETER value-parameter value: kotlin.String + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + CLASS CLASS name:DelegateProvider modality:FINAL visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:DelegateProvider flags: + CONSTRUCTOR visibility:public <> (value:kotlin.String) returnType:DelegateProvider flags: + VALUE_PARAMETER name:value index:0 type:kotlin.String flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='DelegateProvider' - PROPERTY public final val value: kotlin.String - FIELD PROPERTY_BACKING_FIELD public final val value: kotlin.String + PROPERTY name:value type:kotlin.String visibility:public modality:FINAL flags:val + FIELD PROPERTY_BACKING_FIELD name:value type:kotlin.String visibility:public EXPRESSION_BODY GET_VAR 'value-parameter value: String' type=kotlin.String origin=INITIALIZE_PROPERTY_FROM_PARAMETER - FUN DEFAULT_PROPERTY_ACCESSOR public final fun (): kotlin.String - $this: VALUE_PARAMETER this@DelegateProvider: DelegateProvider + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:DelegateProvider) returnType:String flags: + $this: VALUE_PARAMETER name: type:DelegateProvider flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): String' + RETURN type=kotlin.Nothing from=(): String' GET_FIELD 'value: String' type=kotlin.String origin=null receiver: GET_VAR 'this@DelegateProvider: DelegateProvider' type=DelegateProvider origin=null - FUN public final operator fun provideDelegate(thisRef: kotlin.Any?, property: kotlin.Any?): Delegate - $this: VALUE_PARAMETER this@DelegateProvider: DelegateProvider - VALUE_PARAMETER value-parameter thisRef: kotlin.Any? - VALUE_PARAMETER value-parameter property: kotlin.Any? + FUN name:provideDelegate visibility:public modality:FINAL <> ($this:DelegateProvider, thisRef:kotlin.Any?, property:kotlin.Any?) returnType:Delegate flags: + $this: VALUE_PARAMETER name: type:DelegateProvider flags: + VALUE_PARAMETER name:thisRef index:0 type:kotlin.Any? flags: + VALUE_PARAMETER name:property index:1 type:kotlin.Any? flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='provideDelegate(Any?, Any?): Delegate' + RETURN type=kotlin.Nothing from=provideDelegate(Any?, Any?): Delegate' CALL 'constructor Delegate(String)' type=Delegate origin=null value: CALL '(): String' type=kotlin.String origin=GET_PROPERTY $this: GET_VAR 'this@DelegateProvider: DelegateProvider' type=DelegateProvider origin=null - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any - FUN public fun foo(): kotlin.Unit + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN name:foo visibility:public modality:FINAL <> () returnType:Unit flags: BLOCK_BODY - LOCAL_DELEGATED_PROPERTY val testMember: kotlin.String - VAR DELEGATE val `testMember$delegate`: Delegate + LOCAL_DELEGATED_PROPERTY name:testMember type:kotlin.String flags:val + VAR DELEGATE name:testMember$delegate type:Delegate flags:val CALL 'provideDelegate(Any?, Any?): Delegate' type=Delegate origin=null $this: CALL 'constructor DelegateProvider(String)' type=DelegateProvider origin=null - value: CONST String type=kotlin.String value='OK' - thisRef: CONST Null type=kotlin.Nothing? value='null' + value: CONST String type=kotlin.String value=OK + thisRef: CONST Null type=kotlin.Nothing? value=null property: LOCAL_DELEGATED_PROPERTY_REFERENCE 'testMember: String' delegate='`testMember$delegate`: Delegate' getter='(): String' setter=null type=kotlin.reflect.KProperty0 origin=PROPERTY_REFERENCE_FOR_DELEGATE - FUN DELEGATED_PROPERTY_ACCESSOR local final fun (): kotlin.String + FUN DELEGATED_PROPERTY_ACCESSOR name: visibility:local modality:FINAL <> () returnType:String flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): String' + RETURN type=kotlin.Nothing from=(): String' CALL 'getValue(Any?, Any?): String' type=kotlin.String origin=null $this: GET_VAR '`testMember$delegate`: Delegate' type=Delegate origin=null - thisRef: CONST Null type=kotlin.Nothing? value='null' + thisRef: CONST Null type=kotlin.Nothing? value=null property: LOCAL_DELEGATED_PROPERTY_REFERENCE 'testMember: String' delegate='`testMember$delegate`: Delegate' getter='(): String' setter=null type=kotlin.reflect.KProperty0 origin=PROPERTY_REFERENCE_FOR_DELEGATE diff --git a/compiler/testData/ir/irText/declarations/provideDelegate/localDifferentReceivers.txt b/compiler/testData/ir/irText/declarations/provideDelegate/localDifferentReceivers.txt index 091090741c5..8e2f0ed9efd 100644 --- a/compiler/testData/ir/irText/declarations/provideDelegate/localDifferentReceivers.txt +++ b/compiler/testData/ir/irText/declarations/provideDelegate/localDifferentReceivers.txt @@ -1,73 +1,73 @@ -FILE /localDifferentReceivers.kt - CLASS CLASS MyClass - $this: VALUE_PARAMETER this@MyClass: MyClass - CONSTRUCTOR public constructor MyClass(value: kotlin.String) - VALUE_PARAMETER value-parameter value: kotlin.String +FILE fqName: fileName:/localDifferentReceivers.kt + CLASS CLASS name:MyClass modality:FINAL visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:MyClass flags: + CONSTRUCTOR visibility:public <> (value:kotlin.String) returnType:MyClass flags: + VALUE_PARAMETER name:value index:0 type:kotlin.String flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='MyClass' - PROPERTY public final val value: kotlin.String - FIELD PROPERTY_BACKING_FIELD public final val value: kotlin.String + PROPERTY name:value type:kotlin.String visibility:public modality:FINAL flags:val + FIELD PROPERTY_BACKING_FIELD name:value type:kotlin.String visibility:public EXPRESSION_BODY GET_VAR 'value-parameter value: String' type=kotlin.String origin=INITIALIZE_PROPERTY_FROM_PARAMETER - FUN DEFAULT_PROPERTY_ACCESSOR public final fun (): kotlin.String - $this: VALUE_PARAMETER this@MyClass: MyClass + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:MyClass) returnType:String flags: + $this: VALUE_PARAMETER name: type:MyClass flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): String' + RETURN type=kotlin.Nothing from=(): String' GET_FIELD 'value: String' type=kotlin.String origin=null receiver: GET_VAR 'this@MyClass: MyClass' type=MyClass origin=null - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any - FUN public operator fun MyClass.provideDelegate(host: kotlin.Any?, p: kotlin.Any): kotlin.String - $receiver: VALUE_PARAMETER this@provideDelegate: MyClass - VALUE_PARAMETER value-parameter host: kotlin.Any? - VALUE_PARAMETER value-parameter p: kotlin.Any + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN name:provideDelegate visibility:public modality:FINAL <> ($receiver:MyClass, host:kotlin.Any?, p:kotlin.Any) returnType:String flags: + $receiver: VALUE_PARAMETER name: type:MyClass flags: + VALUE_PARAMETER name:host index:0 type:kotlin.Any? flags: + VALUE_PARAMETER name:p index:1 type:kotlin.Any flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='provideDelegate(Any?, Any) on MyClass: String' + RETURN type=kotlin.Nothing from=provideDelegate(Any?, Any) on MyClass: String' CALL '(): String' type=kotlin.String origin=GET_PROPERTY $this: GET_VAR 'this@provideDelegate: MyClass' type=MyClass origin=null - FUN public operator fun kotlin.String.getValue(receiver: kotlin.Any?, p: kotlin.Any): kotlin.String - $receiver: VALUE_PARAMETER this@getValue: String - VALUE_PARAMETER value-parameter receiver: kotlin.Any? - VALUE_PARAMETER value-parameter p: kotlin.Any + FUN name:getValue visibility:public modality:FINAL <> ($receiver:kotlin.String, receiver:kotlin.Any?, p:kotlin.Any) returnType:String flags: + $receiver: VALUE_PARAMETER name: type:kotlin.String flags: + VALUE_PARAMETER name:receiver index:0 type:kotlin.Any? flags: + VALUE_PARAMETER name:p index:1 type:kotlin.Any flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='getValue(Any?, Any) on String: String' + RETURN type=kotlin.Nothing from=getValue(Any?, Any) on String: String' GET_VAR 'this@getValue: String' type=kotlin.String origin=null - FUN public fun box(): kotlin.String + FUN name:box visibility:public modality:FINAL <> () returnType:String flags: BLOCK_BODY - LOCAL_DELEGATED_PROPERTY val testO: kotlin.String - VAR DELEGATE val `testO$delegate`: kotlin.String + LOCAL_DELEGATED_PROPERTY name:testO type:kotlin.String flags:val + VAR DELEGATE name:testO$delegate type:kotlin.String flags:val CALL 'provideDelegate(Any?, Any) on MyClass: String' type=kotlin.String origin=null $receiver: CALL 'constructor MyClass(String)' type=MyClass origin=null - value: CONST String type=kotlin.String value='O' - host: CONST Null type=kotlin.Nothing? value='null' + value: CONST String type=kotlin.String value=O + host: CONST Null type=kotlin.Nothing? value=null p: LOCAL_DELEGATED_PROPERTY_REFERENCE 'testO: String' delegate='`testO$delegate`: String' getter='(): String' setter=null type=kotlin.reflect.KProperty0 origin=PROPERTY_REFERENCE_FOR_DELEGATE - FUN DELEGATED_PROPERTY_ACCESSOR local final fun (): kotlin.String + FUN DELEGATED_PROPERTY_ACCESSOR name: visibility:local modality:FINAL <> () returnType:String flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): String' + RETURN type=kotlin.Nothing from=(): String' CALL 'getValue(Any?, Any) on String: String' type=kotlin.String origin=null $receiver: GET_VAR '`testO$delegate`: String' type=kotlin.String origin=null - receiver: CONST Null type=kotlin.Nothing? value='null' + receiver: CONST Null type=kotlin.Nothing? value=null p: LOCAL_DELEGATED_PROPERTY_REFERENCE 'testO: String' delegate='`testO$delegate`: String' getter='(): String' setter=null type=kotlin.reflect.KProperty0 origin=PROPERTY_REFERENCE_FOR_DELEGATE - LOCAL_DELEGATED_PROPERTY val testK: kotlin.String - VAR DELEGATE val `testK$delegate`: kotlin.String - CONST String type=kotlin.String value='K' - FUN DELEGATED_PROPERTY_ACCESSOR local final fun (): kotlin.String + LOCAL_DELEGATED_PROPERTY name:testK type:kotlin.String flags:val + VAR DELEGATE name:testK$delegate type:kotlin.String flags:val + CONST String type=kotlin.String value=K + FUN DELEGATED_PROPERTY_ACCESSOR name: visibility:local modality:FINAL <> () returnType:String flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): String' + RETURN type=kotlin.Nothing from=(): String' CALL 'getValue(Any?, Any) on String: String' type=kotlin.String origin=null $receiver: GET_VAR '`testK$delegate`: String' type=kotlin.String origin=null - receiver: CONST Null type=kotlin.Nothing? value='null' + receiver: CONST Null type=kotlin.Nothing? value=null p: LOCAL_DELEGATED_PROPERTY_REFERENCE 'testK: String' delegate='`testK$delegate`: String' getter='(): String' setter=null type=kotlin.reflect.KProperty0 origin=PROPERTY_REFERENCE_FOR_DELEGATE - VAR val testOK: kotlin.String + VAR name:testOK type:kotlin.String flags:val CALL 'plus(Any?): String' type=kotlin.String origin=PLUS $this: CALL '(): String' type=kotlin.String origin=GET_LOCAL_PROPERTY other: CALL '(): String' type=kotlin.String origin=GET_LOCAL_PROPERTY - RETURN type=kotlin.Nothing from='box(): String' + RETURN type=kotlin.Nothing from=box(): String' GET_VAR 'testOK: String' type=kotlin.String origin=null diff --git a/compiler/testData/ir/irText/declarations/provideDelegate/member.txt b/compiler/testData/ir/irText/declarations/provideDelegate/member.txt index ad84f02305a..ade88831848 100644 --- a/compiler/testData/ir/irText/declarations/provideDelegate/member.txt +++ b/compiler/testData/ir/irText/declarations/provideDelegate/member.txt @@ -1,97 +1,97 @@ -FILE /member.kt - CLASS CLASS Delegate - $this: VALUE_PARAMETER this@Delegate: Delegate - CONSTRUCTOR public constructor Delegate(value: kotlin.String) - VALUE_PARAMETER value-parameter value: kotlin.String +FILE fqName: fileName:/member.kt + CLASS CLASS name:Delegate modality:FINAL visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Delegate flags: + CONSTRUCTOR visibility:public <> (value:kotlin.String) returnType:Delegate flags: + VALUE_PARAMETER name:value index:0 type:kotlin.String flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='Delegate' - PROPERTY public final val value: kotlin.String - FIELD PROPERTY_BACKING_FIELD public final val value: kotlin.String + PROPERTY name:value type:kotlin.String visibility:public modality:FINAL flags:val + FIELD PROPERTY_BACKING_FIELD name:value type:kotlin.String visibility:public EXPRESSION_BODY GET_VAR 'value-parameter value: String' type=kotlin.String origin=INITIALIZE_PROPERTY_FROM_PARAMETER - FUN DEFAULT_PROPERTY_ACCESSOR public final fun (): kotlin.String - $this: VALUE_PARAMETER this@Delegate: Delegate + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:Delegate) returnType:String flags: + $this: VALUE_PARAMETER name: type:Delegate flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): String' + RETURN type=kotlin.Nothing from=(): String' GET_FIELD 'value: String' type=kotlin.String origin=null receiver: GET_VAR 'this@Delegate: Delegate' type=Delegate origin=null - FUN public final operator fun getValue(thisRef: kotlin.Any?, property: kotlin.Any?): kotlin.String - $this: VALUE_PARAMETER this@Delegate: Delegate - VALUE_PARAMETER value-parameter thisRef: kotlin.Any? - VALUE_PARAMETER value-parameter property: kotlin.Any? + FUN name:getValue visibility:public modality:FINAL <> ($this:Delegate, thisRef:kotlin.Any?, property:kotlin.Any?) returnType:String flags: + $this: VALUE_PARAMETER name: type:Delegate flags: + VALUE_PARAMETER name:thisRef index:0 type:kotlin.Any? flags: + VALUE_PARAMETER name:property index:1 type:kotlin.Any? flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='getValue(Any?, Any?): String' + RETURN type=kotlin.Nothing from=getValue(Any?, Any?): String' CALL '(): String' type=kotlin.String origin=GET_PROPERTY $this: GET_VAR 'this@Delegate: Delegate' type=Delegate origin=null - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any - CLASS CLASS DelegateProvider - $this: VALUE_PARAMETER this@DelegateProvider: DelegateProvider - CONSTRUCTOR public constructor DelegateProvider(value: kotlin.String) - VALUE_PARAMETER value-parameter value: kotlin.String + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + CLASS CLASS name:DelegateProvider modality:FINAL visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:DelegateProvider flags: + CONSTRUCTOR visibility:public <> (value:kotlin.String) returnType:DelegateProvider flags: + VALUE_PARAMETER name:value index:0 type:kotlin.String flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='DelegateProvider' - PROPERTY public final val value: kotlin.String - FIELD PROPERTY_BACKING_FIELD public final val value: kotlin.String + PROPERTY name:value type:kotlin.String visibility:public modality:FINAL flags:val + FIELD PROPERTY_BACKING_FIELD name:value type:kotlin.String visibility:public EXPRESSION_BODY GET_VAR 'value-parameter value: String' type=kotlin.String origin=INITIALIZE_PROPERTY_FROM_PARAMETER - FUN DEFAULT_PROPERTY_ACCESSOR public final fun (): kotlin.String - $this: VALUE_PARAMETER this@DelegateProvider: DelegateProvider + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:DelegateProvider) returnType:String flags: + $this: VALUE_PARAMETER name: type:DelegateProvider flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): String' + RETURN type=kotlin.Nothing from=(): String' GET_FIELD 'value: String' type=kotlin.String origin=null receiver: GET_VAR 'this@DelegateProvider: DelegateProvider' type=DelegateProvider origin=null - FUN public final operator fun provideDelegate(thisRef: kotlin.Any?, property: kotlin.Any?): Delegate - $this: VALUE_PARAMETER this@DelegateProvider: DelegateProvider - VALUE_PARAMETER value-parameter thisRef: kotlin.Any? - VALUE_PARAMETER value-parameter property: kotlin.Any? + FUN name:provideDelegate visibility:public modality:FINAL <> ($this:DelegateProvider, thisRef:kotlin.Any?, property:kotlin.Any?) returnType:Delegate flags: + $this: VALUE_PARAMETER name: type:DelegateProvider flags: + VALUE_PARAMETER name:thisRef index:0 type:kotlin.Any? flags: + VALUE_PARAMETER name:property index:1 type:kotlin.Any? flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='provideDelegate(Any?, Any?): Delegate' + RETURN type=kotlin.Nothing from=provideDelegate(Any?, Any?): Delegate' CALL 'constructor Delegate(String)' type=Delegate origin=null value: CALL '(): String' type=kotlin.String origin=GET_PROPERTY $this: GET_VAR 'this@DelegateProvider: DelegateProvider' type=DelegateProvider origin=null - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any - CLASS CLASS Host - $this: VALUE_PARAMETER this@Host: Host - CONSTRUCTOR public constructor Host() + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + CLASS CLASS name:Host modality:FINAL visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Host flags: + CONSTRUCTOR visibility:public <> () returnType:Host flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='Host' - PROPERTY public final val testMember: kotlin.String - FIELD DELEGATE val `testMember$delegate`: Delegate + PROPERTY name:testMember type:kotlin.String visibility:public modality:FINAL flags:delegatedmval + FIELD DELEGATE name:testMember$delegate type:Delegate visibility:private EXPRESSION_BODY CALL 'provideDelegate(Any?, Any?): Delegate' type=Delegate origin=null $this: CALL 'constructor DelegateProvider(String)' type=DelegateProvider origin=null - value: CONST String type=kotlin.String value='OK' + value: CONST String type=kotlin.String value=OK thisRef: GET_VAR 'this@Host: Host' type=Host origin=null property: PROPERTY_REFERENCE 'testMember: String' field=null getter='(): String' setter=null type=kotlin.reflect.KProperty1 origin=PROPERTY_REFERENCE_FOR_DELEGATE - FUN DELEGATED_PROPERTY_ACCESSOR public final fun (): kotlin.String - $this: VALUE_PARAMETER this@Host: Host + FUN DELEGATED_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:Host) returnType:String flags: + $this: VALUE_PARAMETER name: type:Host flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): String' + RETURN type=kotlin.Nothing from=(): String' CALL 'getValue(Any?, Any?): String' type=kotlin.String origin=null $this: GET_FIELD '`testMember$delegate`: Delegate' type=Delegate origin=null receiver: GET_VAR 'this@Host: Host' type=Host origin=null thisRef: GET_VAR 'this@Host: Host' type=Host origin=null property: PROPERTY_REFERENCE 'testMember: String' field=null getter='(): String' setter=null type=kotlin.reflect.KProperty1 origin=PROPERTY_REFERENCE_FOR_DELEGATE - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: diff --git a/compiler/testData/ir/irText/declarations/provideDelegate/memberExtension.txt b/compiler/testData/ir/irText/declarations/provideDelegate/memberExtension.txt index 0a5659b1e28..05083fd9281 100644 --- a/compiler/testData/ir/irText/declarations/provideDelegate/memberExtension.txt +++ b/compiler/testData/ir/irText/declarations/provideDelegate/memberExtension.txt @@ -1,88 +1,88 @@ -FILE /memberExtension.kt - CLASS OBJECT Host - $this: VALUE_PARAMETER this@Host: Host - CONSTRUCTOR private constructor Host() +FILE fqName: fileName:/memberExtension.kt + CLASS OBJECT name:Host modality:FINAL visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Host flags: + CONSTRUCTOR visibility:private <> () returnType:Host flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='Host' - CLASS CLASS StringDelegate - $this: VALUE_PARAMETER this@StringDelegate: StringDelegate - CONSTRUCTOR public constructor StringDelegate(s: kotlin.String) - VALUE_PARAMETER value-parameter s: kotlin.String + CLASS CLASS name:StringDelegate modality:FINAL visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Host.StringDelegate flags: + CONSTRUCTOR visibility:public <> (s:kotlin.String) returnType:Host.StringDelegate flags: + VALUE_PARAMETER name:s index:0 type:kotlin.String flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='StringDelegate' - PROPERTY public final val s: kotlin.String - FIELD PROPERTY_BACKING_FIELD public final val s: kotlin.String + PROPERTY name:s type:kotlin.String visibility:public modality:FINAL flags:val + FIELD PROPERTY_BACKING_FIELD name:s type:kotlin.String visibility:public EXPRESSION_BODY GET_VAR 'value-parameter s: String' type=kotlin.String origin=INITIALIZE_PROPERTY_FROM_PARAMETER - FUN DEFAULT_PROPERTY_ACCESSOR public final fun (): kotlin.String - $this: VALUE_PARAMETER this@StringDelegate: StringDelegate + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:Host.StringDelegate) returnType:String flags: + $this: VALUE_PARAMETER name: type:Host.StringDelegate flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): String' + RETURN type=kotlin.Nothing from=(): String' GET_FIELD 's: String' type=kotlin.String origin=null receiver: GET_VAR 'this@StringDelegate: StringDelegate' type=Host.StringDelegate origin=null - FUN public final operator fun getValue(receiver: kotlin.String, p: kotlin.Any): kotlin.String - $this: VALUE_PARAMETER this@StringDelegate: StringDelegate - VALUE_PARAMETER value-parameter receiver: kotlin.String - VALUE_PARAMETER value-parameter p: kotlin.Any + FUN name:getValue visibility:public modality:FINAL <> ($this:Host.StringDelegate, receiver:kotlin.String, p:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:Host.StringDelegate flags: + VALUE_PARAMETER name:receiver index:0 type:kotlin.String flags: + VALUE_PARAMETER name:p index:1 type:kotlin.Any flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='getValue(String, Any): String' + RETURN type=kotlin.Nothing from=getValue(String, Any): String' CALL 'plus(Any?): String' type=kotlin.String origin=PLUS $this: GET_VAR 'value-parameter receiver: String' type=kotlin.String origin=null other: CALL '(): String' type=kotlin.String origin=GET_PROPERTY $this: GET_VAR 'this@StringDelegate: StringDelegate' type=Host.StringDelegate origin=null - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any - FUN public final operator fun kotlin.String.provideDelegate(host: kotlin.Any?, p: kotlin.Any): Host.StringDelegate - $this: VALUE_PARAMETER this@Host: Host - $receiver: VALUE_PARAMETER this@provideDelegate: String - VALUE_PARAMETER value-parameter host: kotlin.Any? - VALUE_PARAMETER value-parameter p: kotlin.Any + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN name:provideDelegate visibility:public modality:FINAL <> ($this:Host, $receiver:kotlin.String, host:kotlin.Any?, p:kotlin.Any) returnType:StringDelegate flags: + $this: VALUE_PARAMETER name: type:Host flags: + $receiver: VALUE_PARAMETER name: type:kotlin.String flags: + VALUE_PARAMETER name:host index:0 type:kotlin.Any? flags: + VALUE_PARAMETER name:p index:1 type:kotlin.Any flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='provideDelegate(Any?, Any) on String: Host.StringDelegate' + RETURN type=kotlin.Nothing from=provideDelegate(Any?, Any) on String: Host.StringDelegate' CALL 'constructor StringDelegate(String)' type=Host.StringDelegate origin=null s: GET_VAR 'this@provideDelegate: String' type=kotlin.String origin=null - PROPERTY public final val kotlin.String.plusK: kotlin.String - FIELD DELEGATE val `plusK$delegate`: Host.StringDelegate + PROPERTY name:plusK type:kotlin.String visibility:public modality:FINAL flags:delegatedmval + FIELD DELEGATE name:plusK$delegate type:Host.StringDelegate visibility:private EXPRESSION_BODY CALL 'provideDelegate(Any?, Any) on String: Host.StringDelegate' type=Host.StringDelegate origin=null $this: GET_VAR 'this@Host: Host' type=Host origin=null - $receiver: CONST String type=kotlin.String value='K' + $receiver: CONST String type=kotlin.String value=K host: GET_VAR 'this@Host: Host' type=Host origin=null p: PROPERTY_REFERENCE 'plusK: String on String' field=null getter='() on String: String' setter=null type=kotlin.reflect.KProperty2 origin=PROPERTY_REFERENCE_FOR_DELEGATE - FUN DELEGATED_PROPERTY_ACCESSOR public final fun kotlin.String.(): kotlin.String - $this: VALUE_PARAMETER this@Host: Host - $receiver: VALUE_PARAMETER this@plusK: String + FUN DELEGATED_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:Host, $receiver:kotlin.String) returnType:String flags: + $this: VALUE_PARAMETER name: type:Host flags: + $receiver: VALUE_PARAMETER name: type:kotlin.String flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='() on String: String' + RETURN type=kotlin.Nothing from=() on String: String' CALL 'getValue(String, Any): String' type=kotlin.String origin=null $this: GET_FIELD '`plusK$delegate`: Host.StringDelegate' type=Host.StringDelegate origin=null receiver: GET_VAR 'this@Host: Host' type=Host origin=null receiver: GET_VAR 'this@plusK: String' type=kotlin.String origin=null p: PROPERTY_REFERENCE 'plusK: String on String' field=null getter='() on String: String' setter=null type=kotlin.reflect.KProperty2 origin=PROPERTY_REFERENCE_FOR_DELEGATE - PROPERTY public final val ok: kotlin.String - FIELD PROPERTY_BACKING_FIELD public final val ok: kotlin.String + PROPERTY name:ok type:kotlin.String visibility:public modality:FINAL flags:val + FIELD PROPERTY_BACKING_FIELD name:ok type:kotlin.String visibility:public EXPRESSION_BODY CALL '() on String: String' type=kotlin.String origin=GET_PROPERTY $this: GET_VAR 'this@Host: Host' type=Host origin=null - $receiver: CONST String type=kotlin.String value='O' - FUN DEFAULT_PROPERTY_ACCESSOR public final fun (): kotlin.String - $this: VALUE_PARAMETER this@Host: Host + $receiver: CONST String type=kotlin.String value=O + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:Host) returnType:String flags: + $this: VALUE_PARAMETER name: type:Host flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): String' + RETURN type=kotlin.Nothing from=(): String' GET_FIELD 'ok: String' type=kotlin.String origin=null receiver: GET_VAR 'this@Host: Host' type=Host origin=null - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: diff --git a/compiler/testData/ir/irText/declarations/provideDelegate/topLevel.txt b/compiler/testData/ir/irText/declarations/provideDelegate/topLevel.txt index 88c18ffdf3c..dc58de751c7 100644 --- a/compiler/testData/ir/irText/declarations/provideDelegate/topLevel.txt +++ b/compiler/testData/ir/irText/declarations/provideDelegate/topLevel.txt @@ -1,82 +1,82 @@ -FILE /topLevel.kt - CLASS CLASS Delegate - $this: VALUE_PARAMETER this@Delegate: Delegate - CONSTRUCTOR public constructor Delegate(value: kotlin.String) - VALUE_PARAMETER value-parameter value: kotlin.String +FILE fqName: fileName:/topLevel.kt + CLASS CLASS name:Delegate modality:FINAL visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Delegate flags: + CONSTRUCTOR visibility:public <> (value:kotlin.String) returnType:Delegate flags: + VALUE_PARAMETER name:value index:0 type:kotlin.String flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='Delegate' - PROPERTY public final val value: kotlin.String - FIELD PROPERTY_BACKING_FIELD public final val value: kotlin.String + PROPERTY name:value type:kotlin.String visibility:public modality:FINAL flags:val + FIELD PROPERTY_BACKING_FIELD name:value type:kotlin.String visibility:public EXPRESSION_BODY GET_VAR 'value-parameter value: String' type=kotlin.String origin=INITIALIZE_PROPERTY_FROM_PARAMETER - FUN DEFAULT_PROPERTY_ACCESSOR public final fun (): kotlin.String - $this: VALUE_PARAMETER this@Delegate: Delegate + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:Delegate) returnType:String flags: + $this: VALUE_PARAMETER name: type:Delegate flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): String' + RETURN type=kotlin.Nothing from=(): String' GET_FIELD 'value: String' type=kotlin.String origin=null receiver: GET_VAR 'this@Delegate: Delegate' type=Delegate origin=null - FUN public final operator fun getValue(thisRef: kotlin.Any?, property: kotlin.Any?): kotlin.String - $this: VALUE_PARAMETER this@Delegate: Delegate - VALUE_PARAMETER value-parameter thisRef: kotlin.Any? - VALUE_PARAMETER value-parameter property: kotlin.Any? + FUN name:getValue visibility:public modality:FINAL <> ($this:Delegate, thisRef:kotlin.Any?, property:kotlin.Any?) returnType:String flags: + $this: VALUE_PARAMETER name: type:Delegate flags: + VALUE_PARAMETER name:thisRef index:0 type:kotlin.Any? flags: + VALUE_PARAMETER name:property index:1 type:kotlin.Any? flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='getValue(Any?, Any?): String' + RETURN type=kotlin.Nothing from=getValue(Any?, Any?): String' CALL '(): String' type=kotlin.String origin=GET_PROPERTY $this: GET_VAR 'this@Delegate: Delegate' type=Delegate origin=null - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any - CLASS CLASS DelegateProvider - $this: VALUE_PARAMETER this@DelegateProvider: DelegateProvider - CONSTRUCTOR public constructor DelegateProvider(value: kotlin.String) - VALUE_PARAMETER value-parameter value: kotlin.String + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + CLASS CLASS name:DelegateProvider modality:FINAL visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:DelegateProvider flags: + CONSTRUCTOR visibility:public <> (value:kotlin.String) returnType:DelegateProvider flags: + VALUE_PARAMETER name:value index:0 type:kotlin.String flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='DelegateProvider' - PROPERTY public final val value: kotlin.String - FIELD PROPERTY_BACKING_FIELD public final val value: kotlin.String + PROPERTY name:value type:kotlin.String visibility:public modality:FINAL flags:val + FIELD PROPERTY_BACKING_FIELD name:value type:kotlin.String visibility:public EXPRESSION_BODY GET_VAR 'value-parameter value: String' type=kotlin.String origin=INITIALIZE_PROPERTY_FROM_PARAMETER - FUN DEFAULT_PROPERTY_ACCESSOR public final fun (): kotlin.String - $this: VALUE_PARAMETER this@DelegateProvider: DelegateProvider + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:DelegateProvider) returnType:String flags: + $this: VALUE_PARAMETER name: type:DelegateProvider flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): String' + RETURN type=kotlin.Nothing from=(): String' GET_FIELD 'value: String' type=kotlin.String origin=null receiver: GET_VAR 'this@DelegateProvider: DelegateProvider' type=DelegateProvider origin=null - FUN public final operator fun provideDelegate(thisRef: kotlin.Any?, property: kotlin.Any?): Delegate - $this: VALUE_PARAMETER this@DelegateProvider: DelegateProvider - VALUE_PARAMETER value-parameter thisRef: kotlin.Any? - VALUE_PARAMETER value-parameter property: kotlin.Any? + FUN name:provideDelegate visibility:public modality:FINAL <> ($this:DelegateProvider, thisRef:kotlin.Any?, property:kotlin.Any?) returnType:Delegate flags: + $this: VALUE_PARAMETER name: type:DelegateProvider flags: + VALUE_PARAMETER name:thisRef index:0 type:kotlin.Any? flags: + VALUE_PARAMETER name:property index:1 type:kotlin.Any? flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='provideDelegate(Any?, Any?): Delegate' + RETURN type=kotlin.Nothing from=provideDelegate(Any?, Any?): Delegate' CALL 'constructor Delegate(String)' type=Delegate origin=null value: CALL '(): String' type=kotlin.String origin=GET_PROPERTY $this: GET_VAR 'this@DelegateProvider: DelegateProvider' type=DelegateProvider origin=null - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any - PROPERTY public val testTopLevel: kotlin.String - FIELD DELEGATE val `testTopLevel$delegate`: Delegate + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + PROPERTY name:testTopLevel type:kotlin.String visibility:public modality:FINAL flags:delegatedmval + FIELD DELEGATE name:testTopLevel$delegate type:Delegate visibility:private EXPRESSION_BODY CALL 'provideDelegate(Any?, Any?): Delegate' type=Delegate origin=null $this: CALL 'constructor DelegateProvider(String)' type=DelegateProvider origin=null - value: CONST String type=kotlin.String value='OK' - thisRef: CONST Null type=kotlin.Nothing? value='null' + value: CONST String type=kotlin.String value=OK + thisRef: CONST Null type=kotlin.Nothing? value=null property: PROPERTY_REFERENCE 'testTopLevel: String' field=null getter='(): String' setter=null type=kotlin.reflect.KProperty0 origin=PROPERTY_REFERENCE_FOR_DELEGATE - FUN DELEGATED_PROPERTY_ACCESSOR public fun (): kotlin.String + FUN DELEGATED_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:String flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): String' + RETURN type=kotlin.Nothing from=(): String' CALL 'getValue(Any?, Any?): String' type=kotlin.String origin=null $this: GET_FIELD '`testTopLevel$delegate`: Delegate' type=Delegate origin=null - thisRef: CONST Null type=kotlin.Nothing? value='null' + thisRef: CONST Null type=kotlin.Nothing? value=null property: PROPERTY_REFERENCE 'testTopLevel: String' field=null getter='(): String' setter=null type=kotlin.reflect.KProperty0 origin=PROPERTY_REFERENCE_FOR_DELEGATE diff --git a/compiler/testData/ir/irText/declarations/typeAlias.txt b/compiler/testData/ir/irText/declarations/typeAlias.txt index fbf5bcd31c6..5856ec300f2 100644 --- a/compiler/testData/ir/irText/declarations/typeAlias.txt +++ b/compiler/testData/ir/irText/declarations/typeAlias.txt @@ -1,20 +1,20 @@ -FILE /typeAlias.kt +FILE fqName: fileName:/typeAlias.kt TYPEALIAS typealias Test1 = String type=kotlin.String - FUN public fun foo(): kotlin.Unit + FUN name:foo visibility:public modality:FINAL <> () returnType:Unit flags: BLOCK_BODY TYPEALIAS typealias TestLocal = String type=kotlin.String - CLASS CLASS C - $this: VALUE_PARAMETER this@C: C - CONSTRUCTOR public constructor C() + CLASS CLASS name:C modality:FINAL visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:C flags: + CONSTRUCTOR visibility:public <> () returnType:C flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='C' TYPEALIAS typealias TestNested = String type=kotlin.String - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: diff --git a/compiler/testData/ir/irText/errors/suppressedNonPublicCall.txt b/compiler/testData/ir/irText/errors/suppressedNonPublicCall.txt index 159ba28135b..8be19778cbe 100644 --- a/compiler/testData/ir/irText/errors/suppressedNonPublicCall.txt +++ b/compiler/testData/ir/irText/errors/suppressedNonPublicCall.txt @@ -1,22 +1,22 @@ -FILE /suppressedNonPublicCall.kt - CLASS CLASS C - $this: VALUE_PARAMETER this@C: C - CONSTRUCTOR public constructor C() +FILE fqName: fileName:/suppressedNonPublicCall.kt + CLASS CLASS name:C modality:FINAL visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:C flags: + CONSTRUCTOR visibility:public <> () returnType:C flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='C' - FUN internal final fun bar(): kotlin.Unit - $this: VALUE_PARAMETER this@C: C + FUN name:bar visibility:internal modality:FINAL <> ($this:C) returnType:Unit flags: + $this: VALUE_PARAMETER name: type:C flags: BLOCK_BODY - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any - FUN public inline fun C.foo(): kotlin.Unit - $receiver: VALUE_PARAMETER this@foo: C + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN name:foo visibility:public modality:FINAL <> ($receiver:C) returnType:Unit flags:inline + $receiver: VALUE_PARAMETER name: type:C flags: BLOCK_BODY CALL 'bar(): Unit' type=kotlin.Unit origin=null $this: GET_VAR 'this@foo: C' type=C origin=null diff --git a/compiler/testData/ir/irText/errors/unresolvedReference.txt b/compiler/testData/ir/irText/errors/unresolvedReference.txt index 81492b09acb..440938ef06b 100644 --- a/compiler/testData/ir/irText/errors/unresolvedReference.txt +++ b/compiler/testData/ir/irText/errors/unresolvedReference.txt @@ -1,36 +1,36 @@ -FILE /unresolvedReference.kt - PROPERTY public val test1: [ERROR : Type for unresolved] - FIELD PROPERTY_BACKING_FIELD public val test1: [ERROR : Type for unresolved] +FILE fqName: fileName:/unresolvedReference.kt + PROPERTY name:test1 type:[ERROR : Type for unresolved] visibility:public modality:FINAL flags:val + FIELD PROPERTY_BACKING_FIELD name:test1 type:[ERROR : Type for unresolved] visibility:public EXPRESSION_BODY ERROR_CALL '' type=[ERROR : ] - FUN DEFAULT_PROPERTY_ACCESSOR public fun (): [ERROR : Type for unresolved] + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:[ERROR : Type for unresolved] flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): [ERROR : Type for unresolved]' + RETURN type=kotlin.Nothing from=(): [ERROR : Type for unresolved]' GET_FIELD 'test1: [ERROR : Type for unresolved]' type=[ERROR : Type for unresolved] origin=null - PROPERTY public val test2: [ERROR : Unresolved] - FIELD PROPERTY_BACKING_FIELD public val test2: [ERROR : Unresolved] + PROPERTY name:test2 type:[ERROR : Unresolved] visibility:public modality:FINAL flags:val + FIELD PROPERTY_BACKING_FIELD name:test2 type:[ERROR : Unresolved] visibility:public EXPRESSION_BODY ERROR_CALL '' type=[ERROR : ] - FUN DEFAULT_PROPERTY_ACCESSOR public fun (): [ERROR : Unresolved] + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:[ERROR : Unresolved] flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): [ERROR : Unresolved]' + RETURN type=kotlin.Nothing from=(): [ERROR : Unresolved]' GET_FIELD 'test2: [ERROR : Unresolved]' type=[ERROR : Unresolved] origin=null - PROPERTY public val test3: [ERROR : Type for 42.unresolved(56)] - FIELD PROPERTY_BACKING_FIELD public val test3: [ERROR : Type for 42.unresolved(56)] + PROPERTY name:test3 type:[ERROR : Type for 42.unresolved(56)] visibility:public modality:FINAL flags:val + FIELD PROPERTY_BACKING_FIELD name:test3 type:[ERROR : Type for 42.unresolved(56)] visibility:public EXPRESSION_BODY ERROR_CALL '' type=[ERROR : ] - receiver: CONST Int type=kotlin.Int value='42' - CONST Int type=kotlin.Int value='56' - FUN DEFAULT_PROPERTY_ACCESSOR public fun (): [ERROR : Type for 42.unresolved(56)] + receiver: CONST Int type=kotlin.Int value=42 + CONST Int type=kotlin.Int value=56 + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:[ERROR : Type for 42.unresolved(56)] flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): [ERROR : Type for 42.unresolved(56)]' + RETURN type=kotlin.Nothing from=(): [ERROR : Type for 42.unresolved(56)]' GET_FIELD 'test3: [ERROR : Type for 42.unresolved(56)]' type=[ERROR : Type for 42.unresolved(56)] origin=null - PROPERTY public val test4: [ERROR : Type for 42 *] - FIELD PROPERTY_BACKING_FIELD public val test4: [ERROR : Type for 42 *] + PROPERTY name:test4 type:[ERROR : Type for 42 *] visibility:public modality:FINAL flags:val + FIELD PROPERTY_BACKING_FIELD name:test4 type:[ERROR : Type for 42 *] visibility:public EXPRESSION_BODY ERROR_EXPR '' type=[ERROR : ] - FUN DEFAULT_PROPERTY_ACCESSOR public fun (): [ERROR : Type for 42 *] + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:[ERROR : Type for 42 *] flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): [ERROR : Type for 42 *]' + RETURN type=kotlin.Nothing from=(): [ERROR : Type for 42 *]' GET_FIELD 'test4: [ERROR : Type for 42 *]' type=[ERROR : Type for 42 *] origin=null diff --git a/compiler/testData/ir/irText/expressions/argumentMappedWithError.txt b/compiler/testData/ir/irText/expressions/argumentMappedWithError.txt index e85f4b1cbab..04f418254c5 100644 --- a/compiler/testData/ir/irText/expressions/argumentMappedWithError.txt +++ b/compiler/testData/ir/irText/expressions/argumentMappedWithError.txt @@ -1,19 +1,20 @@ -FILE /argumentMappedWithError.kt - FUN public fun kotlin.Number.convert(): R - TYPE_PARAMETER - $receiver: VALUE_PARAMETER this@convert: Number +FILE fqName: fileName:/argumentMappedWithError.kt + FUN name:convert visibility:public modality:FINAL ($receiver:kotlin.Number) returnType:R flags: + TYPE_PARAMETER name:R index:0 variance: upperBounds:[kotlin.Number] + $receiver: VALUE_PARAMETER name: type:kotlin.Number flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='convert() on Number: R' + RETURN type=kotlin.Nothing from=convert() on Number: R' CALL 'TODO(): Nothing' type=kotlin.Nothing origin=null - FUN public fun foo(arg: kotlin.Number): kotlin.Unit - VALUE_PARAMETER value-parameter arg: kotlin.Number + FUN name:foo visibility:public modality:FINAL <> (arg:kotlin.Number) returnType:Unit flags: + VALUE_PARAMETER name:arg index:0 type:kotlin.Number flags: BLOCK_BODY - FUN public fun main(args: kotlin.Array): kotlin.Unit - VALUE_PARAMETER value-parameter args: kotlin.Array + FUN name:main visibility:public modality:FINAL <> (args:kotlin.Array) returnType:Unit flags: + VALUE_PARAMETER name:args index:0 type:kotlin.Array flags: BLOCK_BODY - VAR val x: kotlin.Int = 0 - CONST Int type=kotlin.Int value='0' + VAR name:x type:kotlin.Int flags:val + CONST Int type=kotlin.Int value=0 CALL 'foo(Number): Unit' type=kotlin.Unit origin=null arg: CALL 'convert() on Number: Number' type=kotlin.Number origin=null : Number $receiver: GET_VAR 'x: Int' type=kotlin.Int origin=null + diff --git a/compiler/testData/ir/irText/expressions/arrayAccess.txt b/compiler/testData/ir/irText/expressions/arrayAccess.txt index 690880f5943..2baf64233b5 100644 --- a/compiler/testData/ir/irText/expressions/arrayAccess.txt +++ b/compiler/testData/ir/irText/expressions/arrayAccess.txt @@ -1,25 +1,25 @@ -FILE /arrayAccess.kt - PROPERTY public val p: kotlin.Int = 0 - FIELD PROPERTY_BACKING_FIELD public val p: kotlin.Int = 0 +FILE fqName: fileName:/arrayAccess.kt + PROPERTY name:p type:kotlin.Int visibility:public modality:FINAL flags:val + FIELD PROPERTY_BACKING_FIELD name:p type:kotlin.Int visibility:public EXPRESSION_BODY - CONST Int type=kotlin.Int value='0' - FUN DEFAULT_PROPERTY_ACCESSOR public fun (): kotlin.Int + CONST Int type=kotlin.Int value=0 + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:Int flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): Int' + RETURN type=kotlin.Nothing from=(): Int' GET_FIELD 'p: Int' type=kotlin.Int origin=null - FUN public fun foo(): kotlin.Int + FUN name:foo visibility:public modality:FINAL <> () returnType:Int flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='foo(): Int' - CONST Int type=kotlin.Int value='1' - FUN public fun test(a: kotlin.IntArray): kotlin.Int - VALUE_PARAMETER value-parameter a: kotlin.IntArray + RETURN type=kotlin.Nothing from=foo(): Int' + CONST Int type=kotlin.Int value=1 + FUN name:test visibility:public modality:FINAL <> (a:kotlin.IntArray) returnType:Int flags: + VALUE_PARAMETER name:a index:0 type:kotlin.IntArray flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='test(IntArray): Int' + RETURN type=kotlin.Nothing from=test(IntArray): Int' CALL 'plus(Int): Int' type=kotlin.Int origin=PLUS $this: CALL 'plus(Int): Int' type=kotlin.Int origin=PLUS $this: CALL 'get(Int): Int' type=kotlin.Int origin=GET_ARRAY_ELEMENT $this: GET_VAR 'value-parameter a: IntArray' type=kotlin.IntArray origin=null - index: CONST Int type=kotlin.Int value='0' + index: CONST Int type=kotlin.Int value=0 other: CALL 'get(Int): Int' type=kotlin.Int origin=GET_ARRAY_ELEMENT $this: GET_VAR 'value-parameter a: IntArray' type=kotlin.IntArray origin=null index: CALL '(): Int' type=kotlin.Int origin=GET_PROPERTY diff --git a/compiler/testData/ir/irText/expressions/arrayAssignment.txt b/compiler/testData/ir/irText/expressions/arrayAssignment.txt index 8e393d3b75a..7d6ea3fd181 100644 --- a/compiler/testData/ir/irText/expressions/arrayAssignment.txt +++ b/compiler/testData/ir/irText/expressions/arrayAssignment.txt @@ -1,28 +1,28 @@ -FILE /arrayAssignment.kt - FUN public fun test(): kotlin.Unit +FILE fqName: fileName:/arrayAssignment.kt + FUN name:test visibility:public modality:FINAL <> () returnType:Unit flags: BLOCK_BODY - VAR val x: kotlin.IntArray + VAR name:x type:kotlin.IntArray flags:val CALL 'intArrayOf(vararg Int): IntArray' type=kotlin.IntArray origin=null elements: VARARG type=IntArray varargElementType=Int - CONST Int type=kotlin.Int value='1' - CONST Int type=kotlin.Int value='2' - CONST Int type=kotlin.Int value='3' + CONST Int type=kotlin.Int value=1 + CONST Int type=kotlin.Int value=2 + CONST Int type=kotlin.Int value=3 CALL 'set(Int, Int): Unit' type=kotlin.Unit origin=EQ $this: GET_VAR 'x: IntArray' type=kotlin.IntArray origin=null - index: CONST Int type=kotlin.Int value='1' - value: CONST Int type=kotlin.Int value='0' - FUN public fun foo(): kotlin.Int + index: CONST Int type=kotlin.Int value=1 + value: CONST Int type=kotlin.Int value=0 + FUN name:foo visibility:public modality:FINAL <> () returnType:Int flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='foo(): Int' - CONST Int type=kotlin.Int value='1' - FUN public fun test2(): kotlin.Unit + RETURN type=kotlin.Nothing from=foo(): Int' + CONST Int type=kotlin.Int value=1 + FUN name:test2 visibility:public modality:FINAL <> () returnType:Unit flags: BLOCK_BODY CALL 'set(Int, Int): Unit' type=kotlin.Unit origin=EQ $this: CALL 'intArrayOf(vararg Int): IntArray' type=kotlin.IntArray origin=null elements: VARARG type=IntArray varargElementType=Int - CONST Int type=kotlin.Int value='1' - CONST Int type=kotlin.Int value='2' - CONST Int type=kotlin.Int value='3' + CONST Int type=kotlin.Int value=1 + CONST Int type=kotlin.Int value=2 + CONST Int type=kotlin.Int value=3 index: CALL 'foo(): Int' type=kotlin.Int origin=null - value: CONST Int type=kotlin.Int value='1' + value: CONST Int type=kotlin.Int value=1 diff --git a/compiler/testData/ir/irText/expressions/arrayAugmentedAssignment1.txt b/compiler/testData/ir/irText/expressions/arrayAugmentedAssignment1.txt index ab32aa2a621..edc81cb8e37 100644 --- a/compiler/testData/ir/irText/expressions/arrayAugmentedAssignment1.txt +++ b/compiler/testData/ir/irText/expressions/arrayAugmentedAssignment1.txt @@ -1,49 +1,49 @@ -FILE /arrayAugmentedAssignment1.kt - FUN public fun foo(): kotlin.IntArray +FILE fqName: fileName:/arrayAugmentedAssignment1.kt + FUN name:foo visibility:public modality:FINAL <> () returnType:IntArray flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='foo(): IntArray' + RETURN type=kotlin.Nothing from=foo(): IntArray' CALL 'intArrayOf(vararg Int): IntArray' type=kotlin.IntArray origin=null elements: VARARG type=IntArray varargElementType=Int - CONST Int type=kotlin.Int value='1' - CONST Int type=kotlin.Int value='2' - CONST Int type=kotlin.Int value='3' - FUN public fun bar(): kotlin.Int + CONST Int type=kotlin.Int value=1 + CONST Int type=kotlin.Int value=2 + CONST Int type=kotlin.Int value=3 + FUN name:bar visibility:public modality:FINAL <> () returnType:Int flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='bar(): Int' - CONST Int type=kotlin.Int value='42' - CLASS CLASS C - $this: VALUE_PARAMETER this@C: C - CONSTRUCTOR public constructor C(x: kotlin.IntArray) - VALUE_PARAMETER value-parameter x: kotlin.IntArray + RETURN type=kotlin.Nothing from=bar(): Int' + CONST Int type=kotlin.Int value=42 + CLASS CLASS name:C modality:FINAL visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:C flags: + CONSTRUCTOR visibility:public <> (x:kotlin.IntArray) returnType:C flags: + VALUE_PARAMETER name:x index:0 type:kotlin.IntArray flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='C' - PROPERTY public final val x: kotlin.IntArray - FIELD PROPERTY_BACKING_FIELD public final val x: kotlin.IntArray + PROPERTY name:x type:kotlin.IntArray visibility:public modality:FINAL flags:val + FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.IntArray visibility:public EXPRESSION_BODY GET_VAR 'value-parameter x: IntArray' type=kotlin.IntArray origin=INITIALIZE_PROPERTY_FROM_PARAMETER - FUN DEFAULT_PROPERTY_ACCESSOR public final fun (): kotlin.IntArray - $this: VALUE_PARAMETER this@C: C + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:C) returnType:IntArray flags: + $this: VALUE_PARAMETER name: type:C flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): IntArray' + RETURN type=kotlin.Nothing from=(): IntArray' GET_FIELD 'x: IntArray' type=kotlin.IntArray origin=null receiver: GET_VAR 'this@C: C' type=C origin=null - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any - FUN public fun testVariable(): kotlin.Unit + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN name:testVariable visibility:public modality:FINAL <> () returnType:Unit flags: BLOCK_BODY - VAR var x: kotlin.IntArray + VAR name:x type:kotlin.IntArray flags:var CALL 'foo(): IntArray' type=kotlin.IntArray origin=null BLOCK type=kotlin.Unit origin=PLUSEQ - VAR IR_TEMPORARY_VARIABLE val tmp0_array: kotlin.IntArray + VAR IR_TEMPORARY_VARIABLE name:tmp0_array type:kotlin.IntArray flags:val GET_VAR 'x: IntArray' type=kotlin.IntArray origin=null - VAR IR_TEMPORARY_VARIABLE val tmp1_index0: kotlin.Int - CONST Int type=kotlin.Int value='0' + VAR IR_TEMPORARY_VARIABLE name:tmp1_index0 type:kotlin.Int flags:val + CONST Int type=kotlin.Int value=0 CALL 'set(Int, Int): Unit' type=kotlin.Unit origin=PLUSEQ $this: GET_VAR 'tmp0_array: IntArray' type=kotlin.IntArray origin=null index: GET_VAR 'tmp1_index0: Int' type=kotlin.Int origin=null @@ -51,13 +51,13 @@ FILE /arrayAugmentedAssignment1.kt $this: CALL 'get(Int): Int' type=kotlin.Int origin=PLUSEQ $this: GET_VAR 'tmp0_array: IntArray' type=kotlin.IntArray origin=null index: GET_VAR 'tmp1_index0: Int' type=kotlin.Int origin=null - other: CONST Int type=kotlin.Int value='1' - FUN public fun testCall(): kotlin.Unit + other: CONST Int type=kotlin.Int value=1 + FUN name:testCall visibility:public modality:FINAL <> () returnType:Unit flags: BLOCK_BODY BLOCK type=kotlin.Unit origin=MULTEQ - VAR IR_TEMPORARY_VARIABLE val tmp0_array: kotlin.IntArray + VAR IR_TEMPORARY_VARIABLE name:tmp0_array type:kotlin.IntArray flags:val CALL 'foo(): IntArray' type=kotlin.IntArray origin=null - VAR IR_TEMPORARY_VARIABLE val tmp1_index0: kotlin.Int + VAR IR_TEMPORARY_VARIABLE name:tmp1_index0 type:kotlin.Int flags:val CALL 'bar(): Int' type=kotlin.Int origin=null CALL 'set(Int, Int): Unit' type=kotlin.Unit origin=MULTEQ $this: GET_VAR 'tmp0_array: IntArray' type=kotlin.IntArray origin=null @@ -66,18 +66,18 @@ FILE /arrayAugmentedAssignment1.kt $this: CALL 'get(Int): Int' type=kotlin.Int origin=MULTEQ $this: GET_VAR 'tmp0_array: IntArray' type=kotlin.IntArray origin=null index: GET_VAR 'tmp1_index0: Int' type=kotlin.Int origin=null - other: CONST Int type=kotlin.Int value='2' - FUN public fun testMember(c: C): kotlin.Unit - VALUE_PARAMETER value-parameter c: C + other: CONST Int type=kotlin.Int value=2 + FUN name:testMember visibility:public modality:FINAL <> (c:C) returnType:Unit flags: + VALUE_PARAMETER name:c index:0 type:C flags: BLOCK_BODY TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit BLOCK type=kotlin.Int origin=POSTFIX_INCR - VAR IR_TEMPORARY_VARIABLE val tmp0_array: kotlin.IntArray + VAR IR_TEMPORARY_VARIABLE name:tmp0_array type:kotlin.IntArray flags:val CALL '(): IntArray' type=kotlin.IntArray origin=GET_PROPERTY $this: GET_VAR 'value-parameter c: C' type=C origin=null - VAR IR_TEMPORARY_VARIABLE val tmp1_index0: kotlin.Int - CONST Int type=kotlin.Int value='0' - VAR IR_TEMPORARY_VARIABLE val tmp2: kotlin.Int + VAR IR_TEMPORARY_VARIABLE name:tmp1_index0 type:kotlin.Int flags:val + CONST Int type=kotlin.Int value=0 + VAR IR_TEMPORARY_VARIABLE name:tmp2 type:kotlin.Int flags:val CALL 'get(Int): Int' type=kotlin.Int origin=POSTFIX_INCR $this: GET_VAR 'tmp0_array: IntArray' type=kotlin.IntArray origin=null index: GET_VAR 'tmp1_index0: Int' type=kotlin.Int origin=null diff --git a/compiler/testData/ir/irText/expressions/arrayAugmentedAssignment2.txt b/compiler/testData/ir/irText/expressions/arrayAugmentedAssignment2.txt index a3d1873ab2b..490e3491c7f 100644 --- a/compiler/testData/ir/irText/expressions/arrayAugmentedAssignment2.txt +++ b/compiler/testData/ir/irText/expressions/arrayAugmentedAssignment2.txt @@ -1,39 +1,39 @@ -FILE /arrayAugmentedAssignment2.kt - CLASS INTERFACE IA - $this: VALUE_PARAMETER this@IA: IA - FUN public abstract operator fun get(index: kotlin.String): kotlin.Int - $this: VALUE_PARAMETER this@IA: IA - VALUE_PARAMETER value-parameter index: kotlin.String - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any - CLASS INTERFACE IB - $this: VALUE_PARAMETER this@IB: IB - FUN public abstract operator fun IA.set(index: kotlin.String, value: kotlin.Int): kotlin.Unit - $this: VALUE_PARAMETER this@IB: IB - $receiver: VALUE_PARAMETER this@set: IA - VALUE_PARAMETER value-parameter index: kotlin.String - VALUE_PARAMETER value-parameter value: kotlin.Int - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any - FUN public fun IB.test(a: IA): kotlin.Unit - $receiver: VALUE_PARAMETER this@test: IB - VALUE_PARAMETER value-parameter a: IA +FILE fqName: fileName:/arrayAugmentedAssignment2.kt + CLASS INTERFACE name:IA modality:ABSTRACT visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:IA flags: + FUN name:get visibility:public modality:ABSTRACT <> ($this:IA, index:kotlin.String) returnType:Int flags: + $this: VALUE_PARAMETER name: type:IA flags: + VALUE_PARAMETER name:index index:0 type:kotlin.String flags: + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + CLASS INTERFACE name:IB modality:ABSTRACT visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:IB flags: + FUN name:set visibility:public modality:ABSTRACT <> ($this:IB, $receiver:IA, index:kotlin.String, value:kotlin.Int) returnType:Unit flags: + $this: VALUE_PARAMETER name: type:IB flags: + $receiver: VALUE_PARAMETER name: type:IA flags: + VALUE_PARAMETER name:index index:0 type:kotlin.String flags: + VALUE_PARAMETER name:value index:1 type:kotlin.Int flags: + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN name:test visibility:public modality:FINAL <> ($receiver:IB, a:IA) returnType:Unit flags: + $receiver: VALUE_PARAMETER name: type:IB flags: + VALUE_PARAMETER name:a index:0 type:IA flags: BLOCK_BODY BLOCK type=kotlin.Unit origin=PLUSEQ - VAR IR_TEMPORARY_VARIABLE val tmp0_array: IA + VAR IR_TEMPORARY_VARIABLE name:tmp0_array type:IA flags:val GET_VAR 'value-parameter a: IA' type=IA origin=null - VAR IR_TEMPORARY_VARIABLE val tmp1_index0: kotlin.String - CONST String type=kotlin.String value='' + VAR IR_TEMPORARY_VARIABLE name:tmp1_index0 type:kotlin.String flags:val + CONST String type=kotlin.String value= CALL 'set(String, Int) on IA: Unit' type=kotlin.Unit origin=PLUSEQ $this: GET_VAR 'this@test: IB' type=IB origin=null $receiver: GET_VAR 'tmp0_array: IA' type=IA origin=null @@ -42,5 +42,5 @@ FILE /arrayAugmentedAssignment2.kt $this: CALL 'get(String): Int' type=kotlin.Int origin=PLUSEQ $this: GET_VAR 'tmp0_array: IA' type=IA origin=null index: GET_VAR 'tmp1_index0: String' type=kotlin.String origin=null - other: CONST Int type=kotlin.Int value='42' + other: CONST Int type=kotlin.Int value=42 diff --git a/compiler/testData/ir/irText/expressions/assignments.txt b/compiler/testData/ir/irText/expressions/assignments.txt index 04bc45ccad1..e2f9249d2e0 100644 --- a/compiler/testData/ir/irText/expressions/assignments.txt +++ b/compiler/testData/ir/irText/expressions/assignments.txt @@ -1,49 +1,49 @@ -FILE /assignments.kt - CLASS CLASS Ref - $this: VALUE_PARAMETER this@Ref: Ref - CONSTRUCTOR public constructor Ref(x: kotlin.Int) - VALUE_PARAMETER value-parameter x: kotlin.Int +FILE fqName: fileName:/assignments.kt + CLASS CLASS name:Ref modality:FINAL visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Ref flags: + CONSTRUCTOR visibility:public <> (x:kotlin.Int) returnType:Ref flags: + VALUE_PARAMETER name:x index:0 type:kotlin.Int flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='Ref' - PROPERTY public final var x: kotlin.Int - FIELD PROPERTY_BACKING_FIELD public final var x: kotlin.Int + PROPERTY name:x type:kotlin.Int visibility:public modality:FINAL flags:var + FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.Int visibility:public EXPRESSION_BODY GET_VAR 'value-parameter x: Int' type=kotlin.Int origin=INITIALIZE_PROPERTY_FROM_PARAMETER - FUN DEFAULT_PROPERTY_ACCESSOR public final fun (): kotlin.Int - $this: VALUE_PARAMETER this@Ref: Ref + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:Ref) returnType:Int flags: + $this: VALUE_PARAMETER name: type:Ref flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): Int' + RETURN type=kotlin.Nothing from=(): Int' GET_FIELD 'x: Int' type=kotlin.Int origin=null receiver: GET_VAR 'this@Ref: Ref' type=Ref origin=null - FUN DEFAULT_PROPERTY_ACCESSOR public final fun (: kotlin.Int): kotlin.Unit - $this: VALUE_PARAMETER this@Ref: Ref - VALUE_PARAMETER value-parameter : kotlin.Int + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:Ref, :kotlin.Int) returnType:Unit flags: + $this: VALUE_PARAMETER name: type:Ref flags: + VALUE_PARAMETER name: index:0 type:kotlin.Int flags: BLOCK_BODY SET_FIELD 'x: Int' type=kotlin.Unit origin=null receiver: GET_VAR 'this@Ref: Ref' type=Ref origin=null value: GET_VAR 'value-parameter : Int' type=kotlin.Int origin=null - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any - FUN public fun test1(): kotlin.Unit + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN name:test1 visibility:public modality:FINAL <> () returnType:Unit flags: BLOCK_BODY - VAR var x: kotlin.Int - CONST Int type=kotlin.Int value='0' + VAR name:x type:kotlin.Int flags:var + CONST Int type=kotlin.Int value=0 SET_VAR 'x: Int' type=kotlin.Unit origin=EQ - CONST Int type=kotlin.Int value='1' + CONST Int type=kotlin.Int value=1 SET_VAR 'x: Int' type=kotlin.Unit origin=EQ CALL 'plus(Int): Int' type=kotlin.Int origin=PLUS $this: GET_VAR 'x: Int' type=kotlin.Int origin=null - other: CONST Int type=kotlin.Int value='1' - FUN public fun test2(r: Ref): kotlin.Unit - VALUE_PARAMETER value-parameter r: Ref + other: CONST Int type=kotlin.Int value=1 + FUN name:test2 visibility:public modality:FINAL <> (r:Ref) returnType:Unit flags: + VALUE_PARAMETER name:r index:0 type:Ref flags: BLOCK_BODY CALL '(Int): Unit' type=kotlin.Unit origin=EQ $this: GET_VAR 'value-parameter r: Ref' type=Ref origin=null - : CONST Int type=kotlin.Int value='0' + : CONST Int type=kotlin.Int value=0 diff --git a/compiler/testData/ir/irText/expressions/augmentedAssignment1.txt b/compiler/testData/ir/irText/expressions/augmentedAssignment1.txt index 08b301df64a..d25a03ea26f 100644 --- a/compiler/testData/ir/irText/expressions/augmentedAssignment1.txt +++ b/compiler/testData/ir/irText/expressions/augmentedAssignment1.txt @@ -1,66 +1,66 @@ -FILE /augmentedAssignment1.kt - PROPERTY public var p: kotlin.Int - FIELD PROPERTY_BACKING_FIELD public var p: kotlin.Int +FILE fqName: fileName:/augmentedAssignment1.kt + PROPERTY name:p type:kotlin.Int visibility:public modality:FINAL flags:var + FIELD PROPERTY_BACKING_FIELD name:p type:kotlin.Int visibility:public EXPRESSION_BODY - CONST Int type=kotlin.Int value='0' - FUN DEFAULT_PROPERTY_ACCESSOR public fun (): kotlin.Int + CONST Int type=kotlin.Int value=0 + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:Int flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): Int' + RETURN type=kotlin.Nothing from=(): Int' GET_FIELD 'p: Int' type=kotlin.Int origin=null - FUN DEFAULT_PROPERTY_ACCESSOR public fun (: kotlin.Int): kotlin.Unit - VALUE_PARAMETER value-parameter : kotlin.Int + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> (:kotlin.Int) returnType:Unit flags: + VALUE_PARAMETER name: index:0 type:kotlin.Int flags: BLOCK_BODY SET_FIELD 'p: Int' type=kotlin.Unit origin=null value: GET_VAR 'value-parameter : Int' type=kotlin.Int origin=null - FUN public fun testVariable(): kotlin.Unit + FUN name:testVariable visibility:public modality:FINAL <> () returnType:Unit flags: BLOCK_BODY - VAR var x: kotlin.Int - CONST Int type=kotlin.Int value='0' + VAR name:x type:kotlin.Int flags:var + CONST Int type=kotlin.Int value=0 SET_VAR 'x: Int' type=kotlin.Unit origin=PLUSEQ CALL 'plus(Int): Int' type=kotlin.Int origin=PLUSEQ $this: GET_VAR 'x: Int' type=kotlin.Int origin=PLUSEQ - other: CONST Int type=kotlin.Int value='1' + other: CONST Int type=kotlin.Int value=1 SET_VAR 'x: Int' type=kotlin.Unit origin=MINUSEQ CALL 'minus(Int): Int' type=kotlin.Int origin=MINUSEQ $this: GET_VAR 'x: Int' type=kotlin.Int origin=MINUSEQ - other: CONST Int type=kotlin.Int value='2' + other: CONST Int type=kotlin.Int value=2 SET_VAR 'x: Int' type=kotlin.Unit origin=MULTEQ CALL 'times(Int): Int' type=kotlin.Int origin=MULTEQ $this: GET_VAR 'x: Int' type=kotlin.Int origin=MULTEQ - other: CONST Int type=kotlin.Int value='3' + other: CONST Int type=kotlin.Int value=3 SET_VAR 'x: Int' type=kotlin.Unit origin=DIVEQ CALL 'div(Int): Int' type=kotlin.Int origin=DIVEQ $this: GET_VAR 'x: Int' type=kotlin.Int origin=DIVEQ - other: CONST Int type=kotlin.Int value='4' + other: CONST Int type=kotlin.Int value=4 SET_VAR 'x: Int' type=kotlin.Unit origin=PERCEQ CALL 'rem(Int): Int' type=kotlin.Int origin=PERCEQ $this: GET_VAR 'x: Int' type=kotlin.Int origin=PERCEQ - other: CONST Int type=kotlin.Int value='5' - FUN public fun testProperty(): kotlin.Unit + other: CONST Int type=kotlin.Int value=5 + FUN name:testProperty visibility:public modality:FINAL <> () returnType:Unit flags: BLOCK_BODY BLOCK type=kotlin.Unit origin=PLUSEQ CALL '(Int): Unit' type=kotlin.Unit origin=PLUSEQ : CALL 'plus(Int): Int' type=kotlin.Int origin=PLUSEQ $this: CALL '(): Int' type=kotlin.Int origin=PLUSEQ - other: CONST Int type=kotlin.Int value='1' + other: CONST Int type=kotlin.Int value=1 BLOCK type=kotlin.Unit origin=MINUSEQ CALL '(Int): Unit' type=kotlin.Unit origin=MINUSEQ : CALL 'minus(Int): Int' type=kotlin.Int origin=MINUSEQ $this: CALL '(): Int' type=kotlin.Int origin=MINUSEQ - other: CONST Int type=kotlin.Int value='2' + other: CONST Int type=kotlin.Int value=2 BLOCK type=kotlin.Unit origin=MULTEQ CALL '(Int): Unit' type=kotlin.Unit origin=MULTEQ : CALL 'times(Int): Int' type=kotlin.Int origin=MULTEQ $this: CALL '(): Int' type=kotlin.Int origin=MULTEQ - other: CONST Int type=kotlin.Int value='3' + other: CONST Int type=kotlin.Int value=3 BLOCK type=kotlin.Unit origin=DIVEQ CALL '(Int): Unit' type=kotlin.Unit origin=DIVEQ : CALL 'div(Int): Int' type=kotlin.Int origin=DIVEQ $this: CALL '(): Int' type=kotlin.Int origin=DIVEQ - other: CONST Int type=kotlin.Int value='4' + other: CONST Int type=kotlin.Int value=4 BLOCK type=kotlin.Unit origin=PERCEQ CALL '(Int): Unit' type=kotlin.Unit origin=PERCEQ : CALL 'rem(Int): Int' type=kotlin.Int origin=PERCEQ $this: CALL '(): Int' type=kotlin.Int origin=PERCEQ - other: CONST Int type=kotlin.Int value='5' + other: CONST Int type=kotlin.Int value=5 diff --git a/compiler/testData/ir/irText/expressions/augmentedAssignment2.txt b/compiler/testData/ir/irText/expressions/augmentedAssignment2.txt index 94bbd8d79f5..d7093d7d452 100644 --- a/compiler/testData/ir/irText/expressions/augmentedAssignment2.txt +++ b/compiler/testData/ir/irText/expressions/augmentedAssignment2.txt @@ -1,84 +1,84 @@ -FILE /augmentedAssignment2.kt - CLASS CLASS A - $this: VALUE_PARAMETER this@A: A - CONSTRUCTOR public constructor A() +FILE fqName: fileName:/augmentedAssignment2.kt + CLASS CLASS name:A modality:FINAL visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:A flags: + CONSTRUCTOR visibility:public <> () returnType:A flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='A' - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any - FUN public operator fun A.plusAssign(s: kotlin.String): kotlin.Unit - $receiver: VALUE_PARAMETER this@plusAssign: A - VALUE_PARAMETER value-parameter s: kotlin.String + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN name:plusAssign visibility:public modality:FINAL <> ($receiver:A, s:kotlin.String) returnType:Unit flags: + $receiver: VALUE_PARAMETER name: type:A flags: + VALUE_PARAMETER name:s index:0 type:kotlin.String flags: BLOCK_BODY - FUN public operator fun A.minusAssign(s: kotlin.String): kotlin.Unit - $receiver: VALUE_PARAMETER this@minusAssign: A - VALUE_PARAMETER value-parameter s: kotlin.String + FUN name:minusAssign visibility:public modality:FINAL <> ($receiver:A, s:kotlin.String) returnType:Unit flags: + $receiver: VALUE_PARAMETER name: type:A flags: + VALUE_PARAMETER name:s index:0 type:kotlin.String flags: BLOCK_BODY - FUN public operator fun A.timesAssign(s: kotlin.String): kotlin.Unit - $receiver: VALUE_PARAMETER this@timesAssign: A - VALUE_PARAMETER value-parameter s: kotlin.String + FUN name:timesAssign visibility:public modality:FINAL <> ($receiver:A, s:kotlin.String) returnType:Unit flags: + $receiver: VALUE_PARAMETER name: type:A flags: + VALUE_PARAMETER name:s index:0 type:kotlin.String flags: BLOCK_BODY - FUN public operator fun A.divAssign(s: kotlin.String): kotlin.Unit - $receiver: VALUE_PARAMETER this@divAssign: A - VALUE_PARAMETER value-parameter s: kotlin.String + FUN name:divAssign visibility:public modality:FINAL <> ($receiver:A, s:kotlin.String) returnType:Unit flags: + $receiver: VALUE_PARAMETER name: type:A flags: + VALUE_PARAMETER name:s index:0 type:kotlin.String flags: BLOCK_BODY - FUN public operator fun A.modAssign(s: kotlin.String): kotlin.Unit - $receiver: VALUE_PARAMETER this@modAssign: A - VALUE_PARAMETER value-parameter s: kotlin.String + FUN name:modAssign visibility:public modality:FINAL <> ($receiver:A, s:kotlin.String) returnType:Unit flags: + $receiver: VALUE_PARAMETER name: type:A flags: + VALUE_PARAMETER name:s index:0 type:kotlin.String flags: BLOCK_BODY - PROPERTY public val p: A - FIELD PROPERTY_BACKING_FIELD public val p: A + PROPERTY name:p type:A visibility:public modality:FINAL flags:val + FIELD PROPERTY_BACKING_FIELD name:p type:A visibility:public EXPRESSION_BODY CALL 'constructor A()' type=A origin=null - FUN DEFAULT_PROPERTY_ACCESSOR public fun (): A + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:A flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): A' + RETURN type=kotlin.Nothing from=(): A' GET_FIELD 'p: A' type=A origin=null - FUN public fun testVariable(): kotlin.Unit + FUN name:testVariable visibility:public modality:FINAL <> () returnType:Unit flags: BLOCK_BODY - VAR val a: A + VAR name:a type:A flags:val CALL 'constructor A()' type=A origin=null CALL 'plusAssign(String) on A: Unit' type=kotlin.Unit origin=PLUSEQ $receiver: GET_VAR 'a: A' type=A origin=PLUSEQ - s: CONST String type=kotlin.String value='+=' + s: CONST String type=kotlin.String value=+= CALL 'minusAssign(String) on A: Unit' type=kotlin.Unit origin=MINUSEQ $receiver: GET_VAR 'a: A' type=A origin=MINUSEQ - s: CONST String type=kotlin.String value='-=' + s: CONST String type=kotlin.String value=-= CALL 'timesAssign(String) on A: Unit' type=kotlin.Unit origin=MULTEQ $receiver: GET_VAR 'a: A' type=A origin=MULTEQ - s: CONST String type=kotlin.String value='*=' + s: CONST String type=kotlin.String value=*= CALL 'divAssign(String) on A: Unit' type=kotlin.Unit origin=DIVEQ $receiver: GET_VAR 'a: A' type=A origin=DIVEQ - s: CONST String type=kotlin.String value='/=' + s: CONST String type=kotlin.String value=/= CALL 'modAssign(String) on A: Unit' type=kotlin.Unit origin=PERCEQ $receiver: GET_VAR 'a: A' type=A origin=PERCEQ - s: CONST String type=kotlin.String value='*=' - FUN public fun testProperty(): kotlin.Unit + s: CONST String type=kotlin.String value=*= + FUN name:testProperty visibility:public modality:FINAL <> () returnType:Unit flags: BLOCK_BODY BLOCK type=kotlin.Unit origin=PLUSEQ CALL 'plusAssign(String) on A: Unit' type=kotlin.Unit origin=PLUSEQ $receiver: CALL '(): A' type=A origin=PLUSEQ - s: CONST String type=kotlin.String value='+=' + s: CONST String type=kotlin.String value=+= BLOCK type=kotlin.Unit origin=MINUSEQ CALL 'minusAssign(String) on A: Unit' type=kotlin.Unit origin=MINUSEQ $receiver: CALL '(): A' type=A origin=MINUSEQ - s: CONST String type=kotlin.String value='-=' + s: CONST String type=kotlin.String value=-= BLOCK type=kotlin.Unit origin=MULTEQ CALL 'timesAssign(String) on A: Unit' type=kotlin.Unit origin=MULTEQ $receiver: CALL '(): A' type=A origin=MULTEQ - s: CONST String type=kotlin.String value='*=' + s: CONST String type=kotlin.String value=*= BLOCK type=kotlin.Unit origin=DIVEQ CALL 'divAssign(String) on A: Unit' type=kotlin.Unit origin=DIVEQ $receiver: CALL '(): A' type=A origin=DIVEQ - s: CONST String type=kotlin.String value='/=' + s: CONST String type=kotlin.String value=/= BLOCK type=kotlin.Unit origin=PERCEQ CALL 'modAssign(String) on A: Unit' type=kotlin.Unit origin=PERCEQ $receiver: CALL '(): A' type=A origin=PERCEQ - s: CONST String type=kotlin.String value='%=' + s: CONST String type=kotlin.String value=%= diff --git a/compiler/testData/ir/irText/expressions/augmentedAssignmentWithExpression.txt b/compiler/testData/ir/irText/expressions/augmentedAssignmentWithExpression.txt index 337981be87a..209272fe793 100644 --- a/compiler/testData/ir/irText/expressions/augmentedAssignmentWithExpression.txt +++ b/compiler/testData/ir/irText/expressions/augmentedAssignmentWithExpression.txt @@ -1,47 +1,47 @@ -FILE /augmentedAssignmentWithExpression.kt - CLASS CLASS Host - $this: VALUE_PARAMETER this@Host: Host - CONSTRUCTOR public constructor Host() +FILE fqName: fileName:/augmentedAssignmentWithExpression.kt + CLASS CLASS name:Host modality:FINAL visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Host flags: + CONSTRUCTOR visibility:public <> () returnType:Host flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='Host' - FUN public final operator fun plusAssign(x: kotlin.Int): kotlin.Unit - $this: VALUE_PARAMETER this@Host: Host - VALUE_PARAMETER value-parameter x: kotlin.Int + FUN name:plusAssign visibility:public modality:FINAL <> ($this:Host, x:kotlin.Int) returnType:Unit flags: + $this: VALUE_PARAMETER name: type:Host flags: + VALUE_PARAMETER name:x index:0 type:kotlin.Int flags: BLOCK_BODY - FUN public final fun test1(): kotlin.Unit - $this: VALUE_PARAMETER this@Host: Host + FUN name:test1 visibility:public modality:FINAL <> ($this:Host) returnType:Unit flags: + $this: VALUE_PARAMETER name: type:Host flags: BLOCK_BODY CALL 'plusAssign(Int): Unit' type=kotlin.Unit origin=PLUSEQ $this: GET_VAR 'this@Host: Host' type=Host origin=PLUSEQ - x: CONST Int type=kotlin.Int value='1' - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any - FUN public fun foo(): Host + x: CONST Int type=kotlin.Int value=1 + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN name:foo visibility:public modality:FINAL <> () returnType:Host flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='foo(): Host' + RETURN type=kotlin.Nothing from=foo(): Host' CALL 'constructor Host()' type=Host origin=null - FUN public fun Host.test2(): kotlin.Unit - $receiver: VALUE_PARAMETER this@test2: Host + FUN name:test2 visibility:public modality:FINAL <> ($receiver:Host) returnType:Unit flags: + $receiver: VALUE_PARAMETER name: type:Host flags: BLOCK_BODY CALL 'plusAssign(Int): Unit' type=kotlin.Unit origin=PLUSEQ $this: GET_VAR 'this@test2: Host' type=Host origin=PLUSEQ - x: CONST Int type=kotlin.Int value='1' - FUN public fun test3(): kotlin.Unit + x: CONST Int type=kotlin.Int value=1 + FUN name:test3 visibility:public modality:FINAL <> () returnType:Unit flags: BLOCK_BODY CALL 'plusAssign(Int): Unit' type=kotlin.Unit origin=PLUSEQ $this: CALL 'foo(): Host' type=Host origin=null - x: CONST Int type=kotlin.Int value='1' - FUN public fun test4(a: () -> Host): kotlin.Unit - VALUE_PARAMETER value-parameter a: () -> Host + x: CONST Int type=kotlin.Int value=1 + FUN name:test4 visibility:public modality:FINAL <> (a:() -> Host) returnType:Unit flags: + VALUE_PARAMETER name:a index:0 type:() -> Host flags: BLOCK_BODY CALL 'plusAssign(Int): Unit' type=kotlin.Unit origin=PLUSEQ $this: CALL 'invoke(): Host' type=Host origin=INVOKE $this: GET_VAR 'value-parameter a: () -> Host' type=() -> Host origin=VARIABLE_AS_FUNCTION - x: CONST Int type=kotlin.Int value='1' + x: CONST Int type=kotlin.Int value=1 diff --git a/compiler/testData/ir/irText/expressions/badBreakContinue.txt b/compiler/testData/ir/irText/expressions/badBreakContinue.txt index a824dfb9cce..4ea66d99b48 100644 --- a/compiler/testData/ir/irText/expressions/badBreakContinue.txt +++ b/compiler/testData/ir/irText/expressions/badBreakContinue.txt @@ -1,28 +1,28 @@ -FILE /badBreakContinue.kt - FUN public fun test1(): kotlin.Unit +FILE fqName: fileName:/badBreakContinue.kt + FUN name:test1 visibility:public modality:FINAL <> () returnType:Unit flags: BLOCK_BODY ERROR_EXPR 'Loop not found for break expression: break' type=kotlin.Nothing ERROR_EXPR 'Loop not found for continue expression: continue' type=kotlin.Nothing - FUN public fun test2(): kotlin.Unit + FUN name:test2 visibility:public modality:FINAL <> () returnType:Unit flags: BLOCK_BODY WHILE label=L1 origin=WHILE_LOOP - condition: CONST Boolean type=kotlin.Boolean value='true' + condition: CONST Boolean type=kotlin.Boolean value=true body: BLOCK type=kotlin.Unit origin=null ERROR_EXPR 'Loop not found for break expression: break@ERROR' type=kotlin.Nothing ERROR_EXPR 'Loop not found for continue expression: continue@ERROR' type=kotlin.Nothing - FUN public fun test3(): kotlin.Unit + FUN name:test3 visibility:public modality:FINAL <> () returnType:Unit flags: BLOCK_BODY WHILE label=L1 origin=WHILE_LOOP - condition: CONST Boolean type=kotlin.Boolean value='true' + condition: CONST Boolean type=kotlin.Boolean value=true body: BLOCK type=kotlin.Unit origin=null - VAR val lambda: () -> kotlin.Nothing + VAR name:lambda type:() -> kotlin.Nothing flags:val BLOCK type=() -> kotlin.Nothing origin=LAMBDA - FUN LOCAL_FUNCTION_FOR_LAMBDA local final fun (): kotlin.Nothing + FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> () returnType:Nothing flags: BLOCK_BODY ERROR_EXPR 'Loop not found for break expression: break@L1' type=kotlin.Nothing ERROR_EXPR 'Loop not found for continue expression: continue@L1' type=kotlin.Nothing FUNCTION_REFERENCE '(): Nothing' type=() -> kotlin.Nothing origin=LAMBDA - FUN public fun test4(): kotlin.Unit + FUN name:test4 visibility:public modality:FINAL <> () returnType:Unit flags: BLOCK_BODY WHILE label=null origin=WHILE_LOOP condition: ERROR_EXPR 'Loop not found for break expression: break' type=kotlin.Nothing diff --git a/compiler/testData/ir/irText/expressions/bangbang.txt b/compiler/testData/ir/irText/expressions/bangbang.txt index ce169014d6b..9ddee8e6d6c 100644 --- a/compiler/testData/ir/irText/expressions/bangbang.txt +++ b/compiler/testData/ir/irText/expressions/bangbang.txt @@ -1,46 +1,46 @@ -FILE /bangbang.kt - FUN public fun test1(a: kotlin.Any?): kotlin.Any - VALUE_PARAMETER value-parameter a: kotlin.Any? +FILE fqName: fileName:/bangbang.kt + FUN name:test1 visibility:public modality:FINAL <> (a:kotlin.Any?) returnType:Any flags: + VALUE_PARAMETER name:a index:0 type:kotlin.Any? flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='test1(Any?): Any' + RETURN type=kotlin.Nothing from=test1(Any?): Any' BLOCK type=kotlin.Any origin=EXCLEXCL - VAR IR_TEMPORARY_VARIABLE val tmp0_notnull: kotlin.Any? + VAR IR_TEMPORARY_VARIABLE name:tmp0_notnull type:kotlin.Any? flags:val GET_VAR 'value-parameter a: Any?' type=kotlin.Any? origin=null WHEN type=kotlin.Any origin=null BRANCH if: CALL 'EQEQ(Any?, Any?): Boolean' type=kotlin.Boolean origin=EQEQ arg0: GET_VAR 'tmp0_notnull: Any?' type=kotlin.Any? origin=null - arg1: CONST Null type=kotlin.Nothing? value='null' + arg1: CONST Null type=kotlin.Nothing? value=null then: CALL 'THROW_NPE(): Nothing' type=kotlin.Nothing origin=EXCLEXCL BRANCH - if: CONST Boolean type=kotlin.Boolean value='true' + if: CONST Boolean type=kotlin.Boolean value=true then: GET_VAR 'tmp0_notnull: Any?' type=kotlin.Any? origin=null - FUN public fun test2(a: kotlin.Any?): kotlin.Int - VALUE_PARAMETER value-parameter a: kotlin.Any? + FUN name:test2 visibility:public modality:FINAL <> (a:kotlin.Any?) returnType:Int flags: + VALUE_PARAMETER name:a index:0 type:kotlin.Any? flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='test2(Any?): Int' + RETURN type=kotlin.Nothing from=test2(Any?): Int' BLOCK type=kotlin.Int origin=EXCLEXCL - VAR IR_TEMPORARY_VARIABLE val tmp1_notnull: kotlin.Int? + VAR IR_TEMPORARY_VARIABLE name:tmp1_notnull type:kotlin.Int? flags:val BLOCK type=kotlin.Int? origin=SAFE_CALL - VAR IR_TEMPORARY_VARIABLE val tmp0_safe_receiver: kotlin.Any? + VAR IR_TEMPORARY_VARIABLE name:tmp0_safe_receiver type:kotlin.Any? flags:val GET_VAR 'value-parameter a: Any?' type=kotlin.Any? origin=null WHEN type=kotlin.Int? origin=SAFE_CALL BRANCH if: CALL 'EQEQ(Any?, Any?): Boolean' type=kotlin.Boolean origin=EQEQ arg0: GET_VAR 'tmp0_safe_receiver: Any?' type=kotlin.Any? origin=null - arg1: CONST Null type=kotlin.Nothing? value='null' - then: CONST Null type=kotlin.Nothing? value='null' + arg1: CONST Null type=kotlin.Nothing? value=null + then: CONST Null type=kotlin.Nothing? value=null BRANCH - if: CONST Boolean type=kotlin.Boolean value='true' + if: CONST Boolean type=kotlin.Boolean value=true then: CALL 'hashCode(): Int' type=kotlin.Int origin=null $this: GET_VAR 'tmp0_safe_receiver: Any?' type=kotlin.Any? origin=null WHEN type=kotlin.Int origin=null BRANCH if: CALL 'EQEQ(Any?, Any?): Boolean' type=kotlin.Boolean origin=EQEQ arg0: GET_VAR 'tmp1_notnull: Int?' type=kotlin.Int? origin=null - arg1: CONST Null type=kotlin.Nothing? value='null' + arg1: CONST Null type=kotlin.Nothing? value=null then: CALL 'THROW_NPE(): Nothing' type=kotlin.Nothing origin=EXCLEXCL BRANCH - if: CONST Boolean type=kotlin.Boolean value='true' + if: CONST Boolean type=kotlin.Boolean value=true then: GET_VAR 'tmp1_notnull: Int?' type=kotlin.Int? origin=null diff --git a/compiler/testData/ir/irText/expressions/booleanConstsInAndAndOrOr.txt b/compiler/testData/ir/irText/expressions/booleanConstsInAndAndOrOr.txt index 82b0d519a6b..422297ed1a1 100644 --- a/compiler/testData/ir/irText/expressions/booleanConstsInAndAndOrOr.txt +++ b/compiler/testData/ir/irText/expressions/booleanConstsInAndAndOrOr.txt @@ -1,26 +1,26 @@ -FILE /booleanConstsInAndAndOrOr.kt - FUN public fun test1(b: kotlin.Boolean): kotlin.Unit - VALUE_PARAMETER value-parameter b: kotlin.Boolean +FILE fqName: fileName:/booleanConstsInAndAndOrOr.kt + FUN name:test1 visibility:public modality:FINAL <> (b:kotlin.Boolean) returnType:Unit flags: + VALUE_PARAMETER name:b index:0 type:kotlin.Boolean flags: BLOCK_BODY TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit WHEN type=kotlin.Boolean origin=ANDAND BRANCH if: GET_VAR 'value-parameter b: Boolean' type=kotlin.Boolean origin=null - then: RETURN type=kotlin.Nothing from='test1(Boolean): Unit' + then: RETURN type=kotlin.Nothing from=test1(Boolean): Unit' GET_OBJECT 'Unit' type=kotlin.Unit BRANCH - if: CONST Boolean type=kotlin.Boolean value='true' - then: CONST Boolean type=kotlin.Boolean value='false' - FUN public fun test2(b: kotlin.Boolean): kotlin.Unit - VALUE_PARAMETER value-parameter b: kotlin.Boolean + if: CONST Boolean type=kotlin.Boolean value=true + then: CONST Boolean type=kotlin.Boolean value=false + FUN name:test2 visibility:public modality:FINAL <> (b:kotlin.Boolean) returnType:Unit flags: + VALUE_PARAMETER name:b index:0 type:kotlin.Boolean flags: BLOCK_BODY TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit WHEN type=kotlin.Boolean origin=OROR BRANCH if: GET_VAR 'value-parameter b: Boolean' type=kotlin.Boolean origin=null - then: CONST Boolean type=kotlin.Boolean value='true' + then: CONST Boolean type=kotlin.Boolean value=true BRANCH - if: CONST Boolean type=kotlin.Boolean value='true' - then: RETURN type=kotlin.Nothing from='test2(Boolean): Unit' + if: CONST Boolean type=kotlin.Boolean value=true + then: RETURN type=kotlin.Nothing from=test2(Boolean): Unit' GET_OBJECT 'Unit' type=kotlin.Unit diff --git a/compiler/testData/ir/irText/expressions/booleanOperators.txt b/compiler/testData/ir/irText/expressions/booleanOperators.txt index 6aefb34f364..c21c746d0d4 100644 --- a/compiler/testData/ir/irText/expressions/booleanOperators.txt +++ b/compiler/testData/ir/irText/expressions/booleanOperators.txt @@ -1,41 +1,41 @@ -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 +FILE fqName: fileName:/booleanOperators.kt + FUN name:test1 visibility:public modality:FINAL <> (a:kotlin.Boolean, b:kotlin.Boolean) returnType:Boolean flags: + VALUE_PARAMETER name:a index:0 type:kotlin.Boolean flags: + VALUE_PARAMETER name:b index:1 type:kotlin.Boolean flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='test1(Boolean, Boolean): Boolean' + RETURN type=kotlin.Nothing from=test1(Boolean, Boolean): Boolean' WHEN type=kotlin.Boolean origin=ANDAND BRANCH if: GET_VAR 'value-parameter a: Boolean' type=kotlin.Boolean origin=null then: GET_VAR 'value-parameter b: Boolean' type=kotlin.Boolean origin=null BRANCH - 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 + if: CONST Boolean type=kotlin.Boolean value=true + then: CONST Boolean type=kotlin.Boolean value=false + FUN name:test2 visibility:public modality:FINAL <> (a:kotlin.Boolean, b:kotlin.Boolean) returnType:Boolean flags: + VALUE_PARAMETER name:a index:0 type:kotlin.Boolean flags: + VALUE_PARAMETER name:b index:1 type:kotlin.Boolean flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='test2(Boolean, Boolean): Boolean' + RETURN type=kotlin.Nothing from=test2(Boolean, Boolean): Boolean' WHEN type=kotlin.Boolean origin=OROR BRANCH if: GET_VAR 'value-parameter a: Boolean' type=kotlin.Boolean origin=null - then: CONST Boolean type=kotlin.Boolean value='true' + then: CONST Boolean type=kotlin.Boolean value=true BRANCH - if: CONST Boolean type=kotlin.Boolean value='true' + 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 + FUN name:test1x visibility:public modality:FINAL <> (a:kotlin.Boolean, b:kotlin.Boolean) returnType:Boolean flags: + VALUE_PARAMETER name:a index:0 type:kotlin.Boolean flags: + VALUE_PARAMETER name:b index:1 type:kotlin.Boolean flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='test1x(Boolean, Boolean): Boolean' + 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 + FUN name:test2x visibility:public modality:FINAL <> (a:kotlin.Boolean, b:kotlin.Boolean) returnType:Boolean flags: + VALUE_PARAMETER name:a index:0 type:kotlin.Boolean flags: + VALUE_PARAMETER name:b index:1 type:kotlin.Boolean flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='test2x(Boolean, Boolean): Boolean' + RETURN type=kotlin.Nothing from=test2x(Boolean, Boolean): Boolean' CALL 'or(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 diff --git a/compiler/testData/ir/irText/expressions/boundCallableReferences.txt b/compiler/testData/ir/irText/expressions/boundCallableReferences.txt index 43cf75cfd9e..3e75a0331b2 100644 --- a/compiler/testData/ir/irText/expressions/boundCallableReferences.txt +++ b/compiler/testData/ir/irText/expressions/boundCallableReferences.txt @@ -1,58 +1,58 @@ -FILE /boundCallableReferences.kt - CLASS CLASS A - $this: VALUE_PARAMETER this@A: A - CONSTRUCTOR public constructor A() +FILE fqName: fileName:/boundCallableReferences.kt + CLASS CLASS name:A modality:FINAL visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:A flags: + CONSTRUCTOR visibility:public <> () returnType:A flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='A' - FUN public final fun foo(): kotlin.Unit - $this: VALUE_PARAMETER this@A: A + FUN name:foo visibility:public modality:FINAL <> ($this:A) returnType:Unit flags: + $this: VALUE_PARAMETER name: type:A flags: BLOCK_BODY - PROPERTY public final val bar: kotlin.Int = 0 - FIELD PROPERTY_BACKING_FIELD public final val bar: kotlin.Int = 0 + PROPERTY name:bar type:kotlin.Int visibility:public modality:FINAL flags:val + FIELD PROPERTY_BACKING_FIELD name:bar type:kotlin.Int visibility:public EXPRESSION_BODY - CONST Int type=kotlin.Int value='0' - FUN DEFAULT_PROPERTY_ACCESSOR public final fun (): kotlin.Int - $this: VALUE_PARAMETER this@A: A + CONST Int type=kotlin.Int value=0 + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:A) returnType:Int flags: + $this: VALUE_PARAMETER name: type:A flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): Int' + RETURN type=kotlin.Nothing from=(): Int' GET_FIELD 'bar: Int' type=kotlin.Int origin=null receiver: GET_VAR 'this@A: A' type=A origin=null - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any - FUN public fun A.qux(): kotlin.Unit - $receiver: VALUE_PARAMETER this@qux: A + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN name:qux visibility:public modality:FINAL <> ($receiver:A) returnType:Unit flags: + $receiver: VALUE_PARAMETER name: type:A flags: BLOCK_BODY - PROPERTY public val test1: kotlin.reflect.KFunction0 - FIELD PROPERTY_BACKING_FIELD public val test1: kotlin.reflect.KFunction0 + PROPERTY name:test1 type:kotlin.reflect.KFunction0 visibility:public modality:FINAL flags:val + FIELD PROPERTY_BACKING_FIELD name:test1 type:kotlin.reflect.KFunction0 visibility:public EXPRESSION_BODY FUNCTION_REFERENCE 'foo(): Unit' type=kotlin.reflect.KFunction0 origin=null $this: CALL 'constructor A()' type=A origin=null - FUN DEFAULT_PROPERTY_ACCESSOR public fun (): kotlin.reflect.KFunction0 + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:KFunction0 flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): KFunction0' + RETURN type=kotlin.Nothing from=(): KFunction0' GET_FIELD 'test1: KFunction0' type=kotlin.reflect.KFunction0 origin=null - PROPERTY public val test2: kotlin.reflect.KProperty0 - FIELD PROPERTY_BACKING_FIELD public val test2: kotlin.reflect.KProperty0 + PROPERTY name:test2 type:kotlin.reflect.KProperty0 visibility:public modality:FINAL flags:val + FIELD PROPERTY_BACKING_FIELD name:test2 type:kotlin.reflect.KProperty0 visibility:public EXPRESSION_BODY PROPERTY_REFERENCE 'bar: Int' field=null getter='(): Int' setter=null type=kotlin.reflect.KProperty0 origin=null $this: CALL 'constructor A()' type=A origin=null - FUN DEFAULT_PROPERTY_ACCESSOR public fun (): kotlin.reflect.KProperty0 + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:KProperty0 flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): KProperty0' + RETURN type=kotlin.Nothing from=(): KProperty0' GET_FIELD 'test2: KProperty0' type=kotlin.reflect.KProperty0 origin=null - PROPERTY public val test3: kotlin.reflect.KFunction0 - FIELD PROPERTY_BACKING_FIELD public val test3: kotlin.reflect.KFunction0 + PROPERTY name:test3 type:kotlin.reflect.KFunction0 visibility:public modality:FINAL flags:val + FIELD PROPERTY_BACKING_FIELD name:test3 type:kotlin.reflect.KFunction0 visibility:public EXPRESSION_BODY FUNCTION_REFERENCE 'qux() on A: Unit' type=kotlin.reflect.KFunction0 origin=null $receiver: CALL 'constructor A()' type=A origin=null - FUN DEFAULT_PROPERTY_ACCESSOR public fun (): kotlin.reflect.KFunction0 + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:KFunction0 flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): KFunction0' + RETURN type=kotlin.Nothing from=(): KFunction0' GET_FIELD 'test3: KFunction0' type=kotlin.reflect.KFunction0 origin=null diff --git a/compiler/testData/ir/irText/expressions/boxOk.txt b/compiler/testData/ir/irText/expressions/boxOk.txt index 2b98be391f1..f027bbdf968 100644 --- a/compiler/testData/ir/irText/expressions/boxOk.txt +++ b/compiler/testData/ir/irText/expressions/boxOk.txt @@ -1,6 +1,6 @@ -FILE /boxOk.kt - FUN public fun box(): kotlin.String +FILE fqName: fileName:/boxOk.kt + FUN name:box visibility:public modality:FINAL <> () returnType:String flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='box(): String' - CONST String type=kotlin.String value='OK' + RETURN type=kotlin.Nothing from=box(): String' + CONST String type=kotlin.String value=OK diff --git a/compiler/testData/ir/irText/expressions/breakContinue.txt b/compiler/testData/ir/irText/expressions/breakContinue.txt index 17b8eccd899..bc89158b708 100644 --- a/compiler/testData/ir/irText/expressions/breakContinue.txt +++ b/compiler/testData/ir/irText/expressions/breakContinue.txt @@ -1,59 +1,59 @@ -FILE /breakContinue.kt - FUN public fun test1(): kotlin.Unit +FILE fqName: fileName:/breakContinue.kt + FUN name:test1 visibility:public modality:FINAL <> () returnType:Unit flags: BLOCK_BODY WHILE label=null origin=WHILE_LOOP - condition: CONST Boolean type=kotlin.Boolean value='true' + condition: CONST Boolean type=kotlin.Boolean value=true body: BLOCK type=kotlin.Unit origin=null BREAK label=null loop.label=null BLOCK type=kotlin.Unit origin=null DO_WHILE label=null origin=DO_WHILE_LOOP body: COMPOSITE type=kotlin.Unit origin=null BREAK label=null loop.label=null - condition: CONST Boolean type=kotlin.Boolean value='true' + condition: CONST Boolean type=kotlin.Boolean value=true WHILE label=null origin=WHILE_LOOP - condition: CONST Boolean type=kotlin.Boolean value='true' + condition: CONST Boolean type=kotlin.Boolean value=true body: BLOCK type=kotlin.Unit origin=null CONTINUE label=null loop.label=null BLOCK type=kotlin.Unit origin=null DO_WHILE label=null origin=DO_WHILE_LOOP body: COMPOSITE type=kotlin.Unit origin=null CONTINUE label=null loop.label=null - condition: CONST Boolean type=kotlin.Boolean value='true' - FUN public fun test2(): kotlin.Unit + condition: CONST Boolean type=kotlin.Boolean value=true + FUN name:test2 visibility:public modality:FINAL <> () returnType:Unit flags: BLOCK_BODY WHILE label=OUTER origin=WHILE_LOOP - condition: CONST Boolean type=kotlin.Boolean value='true' + condition: CONST Boolean type=kotlin.Boolean value=true body: BLOCK type=kotlin.Unit origin=null WHILE label=INNER origin=WHILE_LOOP - condition: CONST Boolean type=kotlin.Boolean value='true' + condition: CONST Boolean type=kotlin.Boolean value=true body: BLOCK type=kotlin.Unit origin=null BREAK label=INNER loop.label=INNER BREAK label=OUTER loop.label=OUTER BREAK label=OUTER loop.label=OUTER WHILE label=OUTER origin=WHILE_LOOP - condition: CONST Boolean type=kotlin.Boolean value='true' + condition: CONST Boolean type=kotlin.Boolean value=true body: BLOCK type=kotlin.Unit origin=null WHILE label=INNER origin=WHILE_LOOP - condition: CONST Boolean type=kotlin.Boolean value='true' + condition: CONST Boolean type=kotlin.Boolean value=true body: BLOCK type=kotlin.Unit origin=null CONTINUE label=INNER loop.label=INNER CONTINUE label=OUTER loop.label=OUTER CONTINUE label=OUTER loop.label=OUTER - FUN public fun test3(): kotlin.Unit + FUN name:test3 visibility:public modality:FINAL <> () returnType:Unit flags: BLOCK_BODY WHILE label=L origin=WHILE_LOOP - condition: CONST Boolean type=kotlin.Boolean value='true' + condition: CONST Boolean type=kotlin.Boolean value=true body: BLOCK type=kotlin.Unit origin=null WHILE label=L origin=WHILE_LOOP - condition: CONST Boolean type=kotlin.Boolean value='true' + condition: CONST Boolean type=kotlin.Boolean value=true body: BLOCK type=kotlin.Unit origin=null BREAK label=L loop.label=L BREAK label=L loop.label=L WHILE label=L origin=WHILE_LOOP - condition: CONST Boolean type=kotlin.Boolean value='true' + condition: CONST Boolean type=kotlin.Boolean value=true body: BLOCK type=kotlin.Unit origin=null WHILE label=L origin=WHILE_LOOP - condition: CONST Boolean type=kotlin.Boolean value='true' + condition: CONST Boolean type=kotlin.Boolean value=true body: BLOCK type=kotlin.Unit origin=null CONTINUE label=L loop.label=L CONTINUE label=L loop.label=L diff --git a/compiler/testData/ir/irText/expressions/breakContinueInLoopHeader.txt b/compiler/testData/ir/irText/expressions/breakContinueInLoopHeader.txt index acb9449b8b0..bdbf962569c 100644 --- a/compiler/testData/ir/irText/expressions/breakContinueInLoopHeader.txt +++ b/compiler/testData/ir/irText/expressions/breakContinueInLoopHeader.txt @@ -1,104 +1,104 @@ -FILE /breakContinueInLoopHeader.kt - FUN public fun test1(c: kotlin.Boolean?): kotlin.Unit - VALUE_PARAMETER value-parameter c: kotlin.Boolean? +FILE fqName: fileName:/breakContinueInLoopHeader.kt + FUN name:test1 visibility:public modality:FINAL <> (c:kotlin.Boolean?) returnType:Unit flags: + VALUE_PARAMETER name:c index:0 type:kotlin.Boolean? flags: BLOCK_BODY WHILE label=L origin=WHILE_LOOP - condition: CONST Boolean type=kotlin.Boolean value='true' + condition: CONST Boolean type=kotlin.Boolean value=true body: BLOCK type=kotlin.Unit origin=null WHILE label=L2 origin=WHILE_LOOP condition: BLOCK type=kotlin.Boolean origin=ELVIS - VAR IR_TEMPORARY_VARIABLE val tmp0_elvis_lhs: kotlin.Boolean? + VAR IR_TEMPORARY_VARIABLE name:tmp0_elvis_lhs type:kotlin.Boolean? flags:val GET_VAR 'value-parameter c: Boolean?' type=kotlin.Boolean? origin=null WHEN type=kotlin.Boolean origin=null BRANCH if: CALL 'EQEQ(Any?, Any?): Boolean' type=kotlin.Boolean origin=EQEQ arg0: GET_VAR 'tmp0_elvis_lhs: Boolean?' type=kotlin.Boolean? origin=null - arg1: CONST Null type=kotlin.Nothing? value='null' + arg1: CONST Null type=kotlin.Nothing? value=null then: BREAK label=null loop.label=L BRANCH - if: CONST Boolean type=kotlin.Boolean value='true' + if: CONST Boolean type=kotlin.Boolean value=true then: GET_VAR 'tmp0_elvis_lhs: Boolean?' type=kotlin.Boolean? origin=null - FUN public fun test2(c: kotlin.Boolean?): kotlin.Unit - VALUE_PARAMETER value-parameter c: kotlin.Boolean? + FUN name:test2 visibility:public modality:FINAL <> (c:kotlin.Boolean?) returnType:Unit flags: + VALUE_PARAMETER name:c index:0 type:kotlin.Boolean? flags: BLOCK_BODY WHILE label=L origin=WHILE_LOOP - condition: CONST Boolean type=kotlin.Boolean value='true' + condition: CONST Boolean type=kotlin.Boolean value=true body: BLOCK type=kotlin.Unit origin=null WHILE label=L2 origin=WHILE_LOOP condition: BLOCK type=kotlin.Boolean origin=ELVIS - VAR IR_TEMPORARY_VARIABLE val tmp0_elvis_lhs: kotlin.Boolean? + VAR IR_TEMPORARY_VARIABLE name:tmp0_elvis_lhs type:kotlin.Boolean? flags:val GET_VAR 'value-parameter c: Boolean?' type=kotlin.Boolean? origin=null WHEN type=kotlin.Boolean origin=null BRANCH if: CALL 'EQEQ(Any?, Any?): Boolean' type=kotlin.Boolean origin=EQEQ arg0: GET_VAR 'tmp0_elvis_lhs: Boolean?' type=kotlin.Boolean? origin=null - arg1: CONST Null type=kotlin.Nothing? value='null' + arg1: CONST Null type=kotlin.Nothing? value=null then: CONTINUE label=null loop.label=L BRANCH - if: CONST Boolean type=kotlin.Boolean value='true' + if: CONST Boolean type=kotlin.Boolean value=true then: GET_VAR 'tmp0_elvis_lhs: Boolean?' type=kotlin.Boolean? origin=null - FUN public fun test3(ss: kotlin.collections.List?): kotlin.Unit - VALUE_PARAMETER value-parameter ss: kotlin.collections.List? + FUN name:test3 visibility:public modality:FINAL <> (ss:kotlin.collections.List?) returnType:Unit flags: + VALUE_PARAMETER name:ss index:0 type:kotlin.collections.List? flags: BLOCK_BODY WHILE label=L origin=WHILE_LOOP - condition: CONST Boolean type=kotlin.Boolean value='true' + condition: CONST Boolean type=kotlin.Boolean value=true body: BLOCK type=kotlin.Unit origin=null BLOCK type=kotlin.Unit origin=FOR_LOOP - VAR FOR_LOOP_ITERATOR val tmp1_iterator: kotlin.collections.Iterator + VAR FOR_LOOP_ITERATOR name:tmp1_iterator type:kotlin.collections.Iterator flags:val CALL 'iterator(): Iterator' type=kotlin.collections.Iterator origin=FOR_LOOP_ITERATOR $this: BLOCK type=kotlin.collections.List origin=ELVIS - VAR IR_TEMPORARY_VARIABLE val tmp0_elvis_lhs: kotlin.collections.List? + VAR IR_TEMPORARY_VARIABLE name:tmp0_elvis_lhs type:kotlin.collections.List? flags:val GET_VAR 'value-parameter ss: List?' type=kotlin.collections.List? origin=null WHEN type=kotlin.collections.List origin=null BRANCH if: CALL 'EQEQ(Any?, Any?): Boolean' type=kotlin.Boolean origin=EQEQ arg0: GET_VAR 'tmp0_elvis_lhs: List?' type=kotlin.collections.List? origin=null - arg1: CONST Null type=kotlin.Nothing? value='null' + arg1: CONST Null type=kotlin.Nothing? value=null then: CONTINUE label=null loop.label=L BRANCH - if: CONST Boolean type=kotlin.Boolean value='true' + if: CONST Boolean type=kotlin.Boolean value=true then: GET_VAR 'tmp0_elvis_lhs: List?' type=kotlin.collections.List? origin=null WHILE label=L2 origin=FOR_LOOP_INNER_WHILE condition: CALL 'hasNext(): Boolean' type=kotlin.Boolean origin=FOR_LOOP_HAS_NEXT $this: GET_VAR 'tmp1_iterator: Iterator' type=kotlin.collections.Iterator origin=null body: BLOCK type=kotlin.Unit origin=FOR_LOOP_INNER_WHILE - VAR FOR_LOOP_VARIABLE val s: kotlin.String + VAR FOR_LOOP_VARIABLE name:s type:kotlin.String flags:val CALL 'next(): String' type=kotlin.String origin=FOR_LOOP_NEXT $this: GET_VAR 'tmp1_iterator: Iterator' type=kotlin.collections.Iterator origin=null - FUN public fun test4(ss: kotlin.collections.List?): kotlin.Unit - VALUE_PARAMETER value-parameter ss: kotlin.collections.List? + FUN name:test4 visibility:public modality:FINAL <> (ss:kotlin.collections.List?) returnType:Unit flags: + VALUE_PARAMETER name:ss index:0 type:kotlin.collections.List? flags: BLOCK_BODY WHILE label=L origin=WHILE_LOOP - condition: CONST Boolean type=kotlin.Boolean value='true' + condition: CONST Boolean type=kotlin.Boolean value=true body: BLOCK type=kotlin.Unit origin=null BLOCK type=kotlin.Unit origin=FOR_LOOP - VAR FOR_LOOP_ITERATOR val tmp1_iterator: kotlin.collections.Iterator + VAR FOR_LOOP_ITERATOR name:tmp1_iterator type:kotlin.collections.Iterator flags:val CALL 'iterator(): Iterator' type=kotlin.collections.Iterator origin=FOR_LOOP_ITERATOR $this: BLOCK type=kotlin.collections.List origin=ELVIS - VAR IR_TEMPORARY_VARIABLE val tmp0_elvis_lhs: kotlin.collections.List? + VAR IR_TEMPORARY_VARIABLE name:tmp0_elvis_lhs type:kotlin.collections.List? flags:val GET_VAR 'value-parameter ss: List?' type=kotlin.collections.List? origin=null WHEN type=kotlin.collections.List origin=null BRANCH if: CALL 'EQEQ(Any?, Any?): Boolean' type=kotlin.Boolean origin=EQEQ arg0: GET_VAR 'tmp0_elvis_lhs: List?' type=kotlin.collections.List? origin=null - arg1: CONST Null type=kotlin.Nothing? value='null' + arg1: CONST Null type=kotlin.Nothing? value=null then: BREAK label=null loop.label=L BRANCH - if: CONST Boolean type=kotlin.Boolean value='true' + if: CONST Boolean type=kotlin.Boolean value=true then: GET_VAR 'tmp0_elvis_lhs: List?' type=kotlin.collections.List? origin=null WHILE label=L2 origin=FOR_LOOP_INNER_WHILE condition: CALL 'hasNext(): Boolean' type=kotlin.Boolean origin=FOR_LOOP_HAS_NEXT $this: GET_VAR 'tmp1_iterator: Iterator' type=kotlin.collections.Iterator origin=null body: BLOCK type=kotlin.Unit origin=FOR_LOOP_INNER_WHILE - VAR FOR_LOOP_VARIABLE val s: kotlin.String + VAR FOR_LOOP_VARIABLE name:s type:kotlin.String flags:val CALL 'next(): String' type=kotlin.String origin=FOR_LOOP_NEXT $this: GET_VAR 'tmp1_iterator: Iterator' type=kotlin.collections.Iterator origin=null - FUN public fun test5(): kotlin.Unit + FUN name:test5 visibility:public modality:FINAL <> () returnType:Unit flags: BLOCK_BODY - VAR var i: kotlin.Int - CONST Int type=kotlin.Int value='0' + VAR name:i type:kotlin.Int flags:var + CONST Int type=kotlin.Int value=0 WHILE label=Outer origin=WHILE_LOOP - condition: CONST Boolean type=kotlin.Boolean value='true' + condition: CONST Boolean type=kotlin.Boolean value=true body: BLOCK type=kotlin.Unit origin=null TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit BLOCK type=kotlin.Int origin=PREFIX_INCR @@ -106,8 +106,8 @@ FILE /breakContinueInLoopHeader.kt CALL 'inc(): Int' type=kotlin.Int origin=PREFIX_INCR $this: GET_VAR 'i: Int' type=kotlin.Int origin=PREFIX_INCR GET_VAR 'i: Int' type=kotlin.Int origin=PREFIX_INCR - VAR var j: kotlin.Int - CONST Int type=kotlin.Int value='0' + VAR name:j type:kotlin.Int flags:var + CONST Int type=kotlin.Int value=0 BLOCK type=kotlin.Unit origin=null DO_WHILE label=Inner origin=DO_WHILE_LOOP body: COMPOSITE type=kotlin.Unit origin=null @@ -122,14 +122,15 @@ FILE /breakContinueInLoopHeader.kt if: CALL 'GTEQ0(Int): Boolean' type=kotlin.Boolean origin=GTEQ arg0: CALL 'compareTo(Int): Int' type=kotlin.Int origin=GTEQ $this: GET_VAR 'j: Int' type=kotlin.Int origin=null - other: CONST Int type=kotlin.Int value='3' - then: CONST Boolean type=kotlin.Boolean value='false' + other: CONST Int type=kotlin.Int value=3 + then: CONST Boolean type=kotlin.Boolean value=false BRANCH - if: CONST Boolean type=kotlin.Boolean value='true' + if: CONST Boolean type=kotlin.Boolean value=true then: BREAK label=null loop.label=Inner WHEN type=kotlin.Unit origin=null BRANCH if: CALL 'EQEQ(Any?, Any?): Boolean' type=kotlin.Boolean origin=EQEQ arg0: GET_VAR 'i: Int' type=kotlin.Int origin=null - arg1: CONST Int type=kotlin.Int value='3' + arg1: CONST Int type=kotlin.Int value=3 then: BREAK label=null loop.label=Outer + diff --git a/compiler/testData/ir/irText/expressions/callWithReorderedArguments.txt b/compiler/testData/ir/irText/expressions/callWithReorderedArguments.txt index e2c3927c00d..e86516dd9db 100644 --- a/compiler/testData/ir/irText/expressions/callWithReorderedArguments.txt +++ b/compiler/testData/ir/irText/expressions/callWithReorderedArguments.txt @@ -1,41 +1,41 @@ -FILE /callWithReorderedArguments.kt - FUN public fun foo(a: kotlin.Int, b: kotlin.Int): kotlin.Unit - VALUE_PARAMETER value-parameter a: kotlin.Int - VALUE_PARAMETER value-parameter b: kotlin.Int +FILE fqName: fileName:/callWithReorderedArguments.kt + FUN name:foo visibility:public modality:FINAL <> (a:kotlin.Int, b:kotlin.Int) returnType:Unit flags: + VALUE_PARAMETER name:a index:0 type:kotlin.Int flags: + VALUE_PARAMETER name:b index:1 type:kotlin.Int flags: BLOCK_BODY - FUN public fun noReorder1(): kotlin.Int + FUN name:noReorder1 visibility:public modality:FINAL <> () returnType:Int flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='noReorder1(): Int' - CONST Int type=kotlin.Int value='1' - FUN public fun noReorder2(): kotlin.Int + RETURN type=kotlin.Nothing from=noReorder1(): Int' + CONST Int type=kotlin.Int value=1 + FUN name:noReorder2 visibility:public modality:FINAL <> () returnType:Int flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='noReorder2(): Int' - CONST Int type=kotlin.Int value='2' - FUN public fun reordered1(): kotlin.Int + RETURN type=kotlin.Nothing from=noReorder2(): Int' + CONST Int type=kotlin.Int value=2 + FUN name:reordered1 visibility:public modality:FINAL <> () returnType:Int flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='reordered1(): Int' - CONST Int type=kotlin.Int value='1' - FUN public fun reordered2(): kotlin.Int + RETURN type=kotlin.Nothing from=reordered1(): Int' + CONST Int type=kotlin.Int value=1 + FUN name:reordered2 visibility:public modality:FINAL <> () returnType:Int flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='reordered2(): Int' - CONST Int type=kotlin.Int value='2' - FUN public fun test(): kotlin.Unit + RETURN type=kotlin.Nothing from=reordered2(): Int' + CONST Int type=kotlin.Int value=2 + FUN name:test visibility:public modality:FINAL <> () returnType:Unit flags: BLOCK_BODY CALL 'foo(Int, Int): Unit' type=kotlin.Unit origin=null a: CALL 'noReorder1(): Int' type=kotlin.Int origin=null b: CALL 'noReorder2(): Int' type=kotlin.Int origin=null BLOCK type=kotlin.Unit origin=ARGUMENTS_REORDERING_FOR_CALL - VAR IR_TEMPORARY_VARIABLE val tmp0_b: kotlin.Int + VAR IR_TEMPORARY_VARIABLE name:tmp0_b type:kotlin.Int flags:val CALL 'reordered1(): Int' type=kotlin.Int origin=null - VAR IR_TEMPORARY_VARIABLE val tmp1_a: kotlin.Int + VAR IR_TEMPORARY_VARIABLE name:tmp1_a type:kotlin.Int flags:val CALL 'reordered2(): Int' type=kotlin.Int origin=null CALL 'foo(Int, Int): Unit' type=kotlin.Unit origin=null a: GET_VAR 'tmp1_a: Int' type=kotlin.Int origin=null b: GET_VAR 'tmp0_b: Int' type=kotlin.Int origin=null BLOCK type=kotlin.Unit origin=ARGUMENTS_REORDERING_FOR_CALL - VAR IR_TEMPORARY_VARIABLE val tmp2_b: kotlin.Int - CONST Int type=kotlin.Int value='1' - VAR IR_TEMPORARY_VARIABLE val tmp3_a: kotlin.Int + VAR IR_TEMPORARY_VARIABLE name:tmp2_b type:kotlin.Int flags:val + CONST Int type=kotlin.Int value=1 + VAR IR_TEMPORARY_VARIABLE name:tmp3_a type:kotlin.Int flags:val CALL 'reordered2(): Int' type=kotlin.Int origin=null CALL 'foo(Int, Int): Unit' type=kotlin.Unit origin=null a: GET_VAR 'tmp3_a: Int' type=kotlin.Int origin=null diff --git a/compiler/testData/ir/irText/expressions/callableRefToGenericMember.txt b/compiler/testData/ir/irText/expressions/callableRefToGenericMember.txt index 0d8fff215a3..74e24d81956 100644 --- a/compiler/testData/ir/irText/expressions/callableRefToGenericMember.txt +++ b/compiler/testData/ir/irText/expressions/callableRefToGenericMember.txt @@ -1,44 +1,45 @@ -FILE /callableRefToGenericMember.kt - CLASS CLASS A - $this: VALUE_PARAMETER this@A: A - TYPE_PARAMETER - CONSTRUCTOR public constructor A() +FILE fqName: fileName:/callableRefToGenericMember.kt + CLASS CLASS name:A modality:FINAL visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:A flags: + TYPE_PARAMETER name:T index:0 variance: upperBounds:[kotlin.Any?] + CONSTRUCTOR visibility:public <> () returnType:A flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='A' - FUN public final fun foo(): kotlin.Unit - $this: VALUE_PARAMETER this@A: A + FUN name:foo visibility:public modality:FINAL <> ($this:A) returnType:Unit flags: + $this: VALUE_PARAMETER name: type:A flags: BLOCK_BODY - PROPERTY public final val bar: kotlin.Int = 42 - FIELD PROPERTY_BACKING_FIELD public final val bar: kotlin.Int = 42 + PROPERTY name:bar type:kotlin.Int visibility:public modality:FINAL flags:val + FIELD PROPERTY_BACKING_FIELD name:bar type:kotlin.Int visibility:public EXPRESSION_BODY - CONST Int type=kotlin.Int value='42' - FUN DEFAULT_PROPERTY_ACCESSOR public final fun (): kotlin.Int - $this: VALUE_PARAMETER this@A: A + CONST Int type=kotlin.Int value=42 + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:A) returnType:Int flags: + $this: VALUE_PARAMETER name: type:A flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): Int' + RETURN type=kotlin.Nothing from=(): Int' GET_FIELD 'bar: Int' type=kotlin.Int origin=null receiver: GET_VAR 'this@A: A' type=A origin=null - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any - PROPERTY public val test1: kotlin.reflect.KFunction1, kotlin.Unit> - FIELD PROPERTY_BACKING_FIELD public val test1: kotlin.reflect.KFunction1, kotlin.Unit> + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + PROPERTY name:test1 type:kotlin.reflect.KFunction1, kotlin.Unit> visibility:public modality:FINAL flags:val + FIELD PROPERTY_BACKING_FIELD name:test1 type:kotlin.reflect.KFunction1, kotlin.Unit> visibility:public EXPRESSION_BODY FUNCTION_REFERENCE 'foo(): Unit' type=kotlin.reflect.KFunction1, kotlin.Unit> origin=null - FUN DEFAULT_PROPERTY_ACCESSOR public fun (): kotlin.reflect.KFunction1, kotlin.Unit> + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:KFunction1, Unit> flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): KFunction1, Unit>' + RETURN type=kotlin.Nothing from=(): KFunction1, Unit>' GET_FIELD 'test1: KFunction1, Unit>' type=kotlin.reflect.KFunction1, kotlin.Unit> origin=null - PROPERTY public val test2: kotlin.reflect.KProperty1, kotlin.Int> - FIELD PROPERTY_BACKING_FIELD public val test2: kotlin.reflect.KProperty1, kotlin.Int> + PROPERTY name:test2 type:kotlin.reflect.KProperty1, kotlin.Int> visibility:public modality:FINAL flags:val + FIELD PROPERTY_BACKING_FIELD name:test2 type:kotlin.reflect.KProperty1, kotlin.Int> visibility:public EXPRESSION_BODY PROPERTY_REFERENCE 'bar: Int' field=null getter='(): Int' setter=null type=kotlin.reflect.KProperty1, kotlin.Int> origin=null - FUN DEFAULT_PROPERTY_ACCESSOR public fun (): kotlin.reflect.KProperty1, kotlin.Int> + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:KProperty1, Int> flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): KProperty1, Int>' + RETURN type=kotlin.Nothing from=(): KProperty1, Int>' GET_FIELD 'test2: KProperty1, Int>' type=kotlin.reflect.KProperty1, kotlin.Int> origin=null + diff --git a/compiler/testData/ir/irText/expressions/callableReferenceToImportedFromObject.txt b/compiler/testData/ir/irText/expressions/callableReferenceToImportedFromObject.txt index c182cd879b1..dd6d8501d69 100644 --- a/compiler/testData/ir/irText/expressions/callableReferenceToImportedFromObject.txt +++ b/compiler/testData/ir/irText/expressions/callableReferenceToImportedFromObject.txt @@ -1,65 +1,66 @@ -FILE /callableReferenceToImportedFromObject.kt - CLASS OBJECT Foo - $this: VALUE_PARAMETER this@Foo: Foo - CONSTRUCTOR private constructor Foo() +FILE fqName:test fileName:/callableReferenceToImportedFromObject.kt + CLASS OBJECT name:Foo modality:FINAL visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:test.Foo flags: + CONSTRUCTOR visibility:private <> () returnType:test.Foo flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='Foo' - PROPERTY public final val a: kotlin.String = "" - FIELD PROPERTY_BACKING_FIELD public final val a: kotlin.String = "" + PROPERTY name:a type:kotlin.String visibility:public modality:FINAL flags:val + FIELD PROPERTY_BACKING_FIELD name:a type:kotlin.String visibility:public EXPRESSION_BODY - CONST String type=kotlin.String value='' - FUN DEFAULT_PROPERTY_ACCESSOR public final fun (): kotlin.String - $this: VALUE_PARAMETER this@Foo: Foo + CONST String type=kotlin.String value= + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:test.Foo) returnType:String flags: + $this: VALUE_PARAMETER name: type:test.Foo flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): String' + RETURN type=kotlin.Nothing from=(): String' GET_FIELD 'a: String' type=kotlin.String origin=null receiver: GET_VAR 'this@Foo: Foo' type=test.Foo origin=null - FUN public final fun foo(): kotlin.String - $this: VALUE_PARAMETER this@Foo: Foo + FUN name:foo visibility:public modality:FINAL <> ($this:test.Foo) returnType:String flags: + $this: VALUE_PARAMETER name: type:test.Foo flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='foo(): String' - CONST String type=kotlin.String value='' - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any - PROPERTY public val test1: kotlin.reflect.KProperty0 - FIELD PROPERTY_BACKING_FIELD public val test1: kotlin.reflect.KProperty0 + RETURN type=kotlin.Nothing from=foo(): String' + CONST String type=kotlin.String value= + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + PROPERTY name:test1 type:kotlin.reflect.KProperty0 visibility:public modality:FINAL flags:val + FIELD PROPERTY_BACKING_FIELD name:test1 type:kotlin.reflect.KProperty0 visibility:public EXPRESSION_BODY PROPERTY_REFERENCE 'a: String' field=null getter='(): String' setter=null type=kotlin.reflect.KProperty0 origin=null $this: GET_OBJECT 'Foo' type=test.Foo - FUN DEFAULT_PROPERTY_ACCESSOR public fun (): kotlin.reflect.KProperty0 + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:KProperty0 flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): KProperty0' + RETURN type=kotlin.Nothing from=(): KProperty0' GET_FIELD 'test1: KProperty0' type=kotlin.reflect.KProperty0 origin=null - PROPERTY public val test1a: kotlin.reflect.KProperty0 - FIELD PROPERTY_BACKING_FIELD public val test1a: kotlin.reflect.KProperty0 + PROPERTY name:test1a type:kotlin.reflect.KProperty0 visibility:public modality:FINAL flags:val + FIELD PROPERTY_BACKING_FIELD name:test1a type:kotlin.reflect.KProperty0 visibility:public EXPRESSION_BODY PROPERTY_REFERENCE 'a: String' field=null getter='(): String' setter=null type=kotlin.reflect.KProperty0 origin=null $this: GET_OBJECT 'Foo' type=test.Foo - FUN DEFAULT_PROPERTY_ACCESSOR public fun (): kotlin.reflect.KProperty0 + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:KProperty0 flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): KProperty0' + RETURN type=kotlin.Nothing from=(): KProperty0' GET_FIELD 'test1a: KProperty0' type=kotlin.reflect.KProperty0 origin=null - PROPERTY public val test2: kotlin.reflect.KFunction0 - FIELD PROPERTY_BACKING_FIELD public val test2: kotlin.reflect.KFunction0 + PROPERTY name:test2 type:kotlin.reflect.KFunction0 visibility:public modality:FINAL flags:val + FIELD PROPERTY_BACKING_FIELD name:test2 type:kotlin.reflect.KFunction0 visibility:public EXPRESSION_BODY FUNCTION_REFERENCE 'foo(): String' type=kotlin.reflect.KFunction0 origin=null $this: GET_OBJECT 'Foo' type=test.Foo - FUN DEFAULT_PROPERTY_ACCESSOR public fun (): kotlin.reflect.KFunction0 + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:KFunction0 flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): KFunction0' + RETURN type=kotlin.Nothing from=(): KFunction0' GET_FIELD 'test2: KFunction0' type=kotlin.reflect.KFunction0 origin=null - PROPERTY public val test2a: kotlin.reflect.KFunction0 - FIELD PROPERTY_BACKING_FIELD public val test2a: kotlin.reflect.KFunction0 + PROPERTY name:test2a type:kotlin.reflect.KFunction0 visibility:public modality:FINAL flags:val + FIELD PROPERTY_BACKING_FIELD name:test2a type:kotlin.reflect.KFunction0 visibility:public EXPRESSION_BODY FUNCTION_REFERENCE 'foo(): String' type=kotlin.reflect.KFunction0 origin=null $this: GET_OBJECT 'Foo' type=test.Foo - FUN DEFAULT_PROPERTY_ACCESSOR public fun (): kotlin.reflect.KFunction0 + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:KFunction0 flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): KFunction0' + RETURN type=kotlin.Nothing from=(): KFunction0' GET_FIELD 'test2a: KFunction0' type=kotlin.reflect.KFunction0 origin=null + diff --git a/compiler/testData/ir/irText/expressions/calls.txt b/compiler/testData/ir/irText/expressions/calls.txt index 29f31937d1b..034d6ce9d35 100644 --- a/compiler/testData/ir/irText/expressions/calls.txt +++ b/compiler/testData/ir/irText/expressions/calls.txt @@ -1,44 +1,44 @@ -FILE /calls.kt - FUN public fun foo(x: kotlin.Int, y: kotlin.Int): kotlin.Int - VALUE_PARAMETER value-parameter x: kotlin.Int - VALUE_PARAMETER value-parameter y: kotlin.Int +FILE fqName: fileName:/calls.kt + FUN name:foo visibility:public modality:FINAL <> (x:kotlin.Int, y:kotlin.Int) returnType:Int flags: + VALUE_PARAMETER name:x index:0 type:kotlin.Int flags: + VALUE_PARAMETER name:y index:1 type:kotlin.Int flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='foo(Int, Int): Int' + RETURN type=kotlin.Nothing from=foo(Int, Int): Int' GET_VAR 'value-parameter x: Int' type=kotlin.Int origin=null - FUN public fun bar(x: kotlin.Int): kotlin.Int - VALUE_PARAMETER value-parameter x: kotlin.Int + FUN name:bar visibility:public modality:FINAL <> (x:kotlin.Int) returnType:Int flags: + VALUE_PARAMETER name:x index:0 type:kotlin.Int flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='bar(Int): Int' + RETURN type=kotlin.Nothing from=bar(Int): Int' CALL 'foo(Int, Int): Int' type=kotlin.Int origin=null x: GET_VAR 'value-parameter x: Int' type=kotlin.Int origin=null - y: CONST Int type=kotlin.Int value='1' - FUN public fun qux(x: kotlin.Int): kotlin.Int - VALUE_PARAMETER value-parameter x: kotlin.Int + y: CONST Int type=kotlin.Int value=1 + FUN name:qux visibility:public modality:FINAL <> (x:kotlin.Int) returnType:Int flags: + VALUE_PARAMETER name:x index:0 type:kotlin.Int flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='qux(Int): Int' + RETURN type=kotlin.Nothing from=qux(Int): Int' CALL 'foo(Int, Int): Int' type=kotlin.Int origin=null x: CALL 'foo(Int, Int): Int' type=kotlin.Int origin=null x: GET_VAR 'value-parameter x: Int' type=kotlin.Int origin=null y: GET_VAR 'value-parameter x: Int' type=kotlin.Int origin=null y: GET_VAR 'value-parameter x: Int' type=kotlin.Int origin=null - FUN public fun kotlin.Int.ext1(): kotlin.Int - $receiver: VALUE_PARAMETER this@ext1: Int + FUN name:ext1 visibility:public modality:FINAL <> ($receiver:kotlin.Int) returnType:Int flags: + $receiver: VALUE_PARAMETER name: type:kotlin.Int flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='ext1() on Int: Int' + RETURN type=kotlin.Nothing from=ext1() on Int: Int' GET_VAR 'this@ext1: Int' type=kotlin.Int origin=null - FUN public fun kotlin.Int.ext2(x: kotlin.Int): kotlin.Int - $receiver: VALUE_PARAMETER this@ext2: Int - VALUE_PARAMETER value-parameter x: kotlin.Int + FUN name:ext2 visibility:public modality:FINAL <> ($receiver:kotlin.Int, x:kotlin.Int) returnType:Int flags: + $receiver: VALUE_PARAMETER name: type:kotlin.Int flags: + VALUE_PARAMETER name:x index:0 type:kotlin.Int flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='ext2(Int) on Int: Int' + RETURN type=kotlin.Nothing from=ext2(Int) on Int: Int' CALL 'foo(Int, Int): Int' type=kotlin.Int origin=null x: GET_VAR 'this@ext2: Int' type=kotlin.Int origin=null y: GET_VAR 'value-parameter x: Int' type=kotlin.Int origin=null - FUN public fun kotlin.Int.ext3(x: kotlin.Int): kotlin.Int - $receiver: VALUE_PARAMETER this@ext3: Int - VALUE_PARAMETER value-parameter x: kotlin.Int + FUN name:ext3 visibility:public modality:FINAL <> ($receiver:kotlin.Int, x:kotlin.Int) returnType:Int flags: + $receiver: VALUE_PARAMETER name: type:kotlin.Int flags: + VALUE_PARAMETER name:x index:0 type:kotlin.Int flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='ext3(Int) on Int: Int' + RETURN type=kotlin.Nothing from=ext3(Int) on Int: Int' CALL 'foo(Int, Int): Int' type=kotlin.Int origin=null x: CALL 'ext1() on Int: Int' type=kotlin.Int origin=null $receiver: GET_VAR 'this@ext3: Int' type=kotlin.Int origin=null diff --git a/compiler/testData/ir/irText/expressions/catchParameterAccess.txt b/compiler/testData/ir/irText/expressions/catchParameterAccess.txt index 646970a0a05..0e9fc775220 100644 --- a/compiler/testData/ir/irText/expressions/catchParameterAccess.txt +++ b/compiler/testData/ir/irText/expressions/catchParameterAccess.txt @@ -1,14 +1,14 @@ -FILE /catchParameterAccess.kt - FUN public fun test(f: () -> kotlin.Unit): kotlin.Unit - VALUE_PARAMETER value-parameter f: () -> kotlin.Unit +FILE fqName: fileName:/catchParameterAccess.kt + FUN name:test visibility:public modality:FINAL <> (f:() -> kotlin.Unit) returnType:Unit flags: + VALUE_PARAMETER name:f index:0 type:() -> kotlin.Unit flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='test(() -> Unit): Unit' + RETURN type=kotlin.Nothing from=test(() -> Unit): Unit' TRY type=kotlin.Unit try: BLOCK type=kotlin.Unit origin=null CALL 'invoke(): Unit' type=kotlin.Unit origin=INVOKE $this: GET_VAR 'value-parameter f: () -> Unit' type=() -> kotlin.Unit origin=VARIABLE_AS_FUNCTION CATCH parameter=e: Exception /* = Exception */ - VAR CATCH_PARAMETER val e: kotlin.Exception /* = java.lang.Exception */ + VAR CATCH_PARAMETER name:e type:kotlin.Exception /* = java.lang.Exception */ flags:val BLOCK type=kotlin.Nothing origin=null THROW type=kotlin.Nothing GET_VAR 'e: Exception /* = Exception */' type=kotlin.Exception /* = java.lang.Exception */ origin=null diff --git a/compiler/testData/ir/irText/expressions/chainOfSafeCalls.txt b/compiler/testData/ir/irText/expressions/chainOfSafeCalls.txt index 43eb555c904..c89139fd7b8 100644 --- a/compiler/testData/ir/irText/expressions/chainOfSafeCalls.txt +++ b/compiler/testData/ir/irText/expressions/chainOfSafeCalls.txt @@ -1,78 +1,78 @@ -FILE /chainOfSafeCalls.kt - CLASS CLASS C - $this: VALUE_PARAMETER this@C: C - CONSTRUCTOR public constructor C() +FILE fqName: fileName:/chainOfSafeCalls.kt + CLASS CLASS name:C modality:FINAL visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:C flags: + CONSTRUCTOR visibility:public <> () returnType:C flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='C' - FUN public final fun foo(): C - $this: VALUE_PARAMETER this@C: C + FUN name:foo visibility:public modality:FINAL <> ($this:C) returnType:C flags: + $this: VALUE_PARAMETER name: type:C flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='foo(): C' + RETURN type=kotlin.Nothing from=foo(): C' GET_VAR 'this@C: C' type=C origin=null - FUN public final fun bar(): C? - $this: VALUE_PARAMETER this@C: C + FUN name:bar visibility:public modality:FINAL <> ($this:C) returnType:C? flags: + $this: VALUE_PARAMETER name: type:C flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='bar(): C?' + RETURN type=kotlin.Nothing from=bar(): C?' GET_VAR 'this@C: C' type=C origin=null - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any - FUN public fun test(nc: C?): C? - VALUE_PARAMETER value-parameter nc: C? + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN name:test visibility:public modality:FINAL <> (nc:C?) returnType:C? flags: + VALUE_PARAMETER name:nc index:0 type:C? flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='test(C?): C?' + RETURN type=kotlin.Nothing from=test(C?): C?' BLOCK type=C? origin=SAFE_CALL - VAR IR_TEMPORARY_VARIABLE val tmp3_safe_receiver: C? + VAR IR_TEMPORARY_VARIABLE name:tmp3_safe_receiver type:C? flags:val BLOCK type=C? origin=SAFE_CALL - VAR IR_TEMPORARY_VARIABLE val tmp2_safe_receiver: C? + VAR IR_TEMPORARY_VARIABLE name:tmp2_safe_receiver type:C? flags:val BLOCK type=C? origin=SAFE_CALL - VAR IR_TEMPORARY_VARIABLE val tmp1_safe_receiver: C? + VAR IR_TEMPORARY_VARIABLE name:tmp1_safe_receiver type:C? flags:val BLOCK type=C? origin=SAFE_CALL - VAR IR_TEMPORARY_VARIABLE val tmp0_safe_receiver: C? + VAR IR_TEMPORARY_VARIABLE name:tmp0_safe_receiver type:C? flags:val GET_VAR 'value-parameter nc: C?' type=C? origin=null WHEN type=C? origin=SAFE_CALL BRANCH if: CALL 'EQEQ(Any?, Any?): Boolean' type=kotlin.Boolean origin=EQEQ arg0: GET_VAR 'tmp0_safe_receiver: C?' type=C? origin=null - arg1: CONST Null type=kotlin.Nothing? value='null' - then: CONST Null type=kotlin.Nothing? value='null' + arg1: CONST Null type=kotlin.Nothing? value=null + then: CONST Null type=kotlin.Nothing? value=null BRANCH - if: CONST Boolean type=kotlin.Boolean value='true' + if: CONST Boolean type=kotlin.Boolean value=true then: CALL 'foo(): C' type=C origin=null $this: GET_VAR 'tmp0_safe_receiver: C?' type=C? origin=null WHEN type=C? origin=SAFE_CALL BRANCH if: CALL 'EQEQ(Any?, Any?): Boolean' type=kotlin.Boolean origin=EQEQ arg0: GET_VAR 'tmp1_safe_receiver: C?' type=C? origin=null - arg1: CONST Null type=kotlin.Nothing? value='null' - then: CONST Null type=kotlin.Nothing? value='null' + arg1: CONST Null type=kotlin.Nothing? value=null + then: CONST Null type=kotlin.Nothing? value=null BRANCH - if: CONST Boolean type=kotlin.Boolean value='true' + if: CONST Boolean type=kotlin.Boolean value=true then: CALL 'bar(): C?' type=C? origin=null $this: GET_VAR 'tmp1_safe_receiver: C?' type=C? origin=null WHEN type=C? origin=SAFE_CALL BRANCH if: CALL 'EQEQ(Any?, Any?): Boolean' type=kotlin.Boolean origin=EQEQ arg0: GET_VAR 'tmp2_safe_receiver: C?' type=C? origin=null - arg1: CONST Null type=kotlin.Nothing? value='null' - then: CONST Null type=kotlin.Nothing? value='null' + arg1: CONST Null type=kotlin.Nothing? value=null + then: CONST Null type=kotlin.Nothing? value=null BRANCH - if: CONST Boolean type=kotlin.Boolean value='true' + if: CONST Boolean type=kotlin.Boolean value=true then: CALL 'foo(): C' type=C origin=null $this: GET_VAR 'tmp2_safe_receiver: C?' type=C? origin=null WHEN type=C? origin=SAFE_CALL BRANCH if: CALL 'EQEQ(Any?, Any?): Boolean' type=kotlin.Boolean origin=EQEQ arg0: GET_VAR 'tmp3_safe_receiver: C?' type=C? origin=null - arg1: CONST Null type=kotlin.Nothing? value='null' - then: CONST Null type=kotlin.Nothing? value='null' + arg1: CONST Null type=kotlin.Nothing? value=null + then: CONST Null type=kotlin.Nothing? value=null BRANCH - if: CONST Boolean type=kotlin.Boolean value='true' + if: CONST Boolean type=kotlin.Boolean value=true then: CALL 'foo(): C' type=C origin=null $this: GET_VAR 'tmp3_safe_receiver: C?' type=C? origin=null diff --git a/compiler/testData/ir/irText/expressions/classReference.txt b/compiler/testData/ir/irText/expressions/classReference.txt index 2cd53666a56..d48e20e2a46 100644 --- a/compiler/testData/ir/irText/expressions/classReference.txt +++ b/compiler/testData/ir/irText/expressions/classReference.txt @@ -1,18 +1,18 @@ -FILE /classReference.kt - CLASS CLASS A - $this: VALUE_PARAMETER this@A: A - CONSTRUCTOR public constructor A() +FILE fqName: fileName:/classReference.kt + CLASS CLASS name:A modality:FINAL visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:A flags: + CONSTRUCTOR visibility:public <> () returnType:A flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='A' - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any - FUN public fun test(): kotlin.Unit + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN name:test visibility:public modality:FINAL <> () returnType:Unit flags: BLOCK_BODY TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit CLASS_REFERENCE 'A' type=kotlin.reflect.KClass diff --git a/compiler/testData/ir/irText/expressions/coercionToUnit.txt b/compiler/testData/ir/irText/expressions/coercionToUnit.txt index f34b831840c..912204b3045 100644 --- a/compiler/testData/ir/irText/expressions/coercionToUnit.txt +++ b/compiler/testData/ir/irText/expressions/coercionToUnit.txt @@ -1,56 +1,57 @@ -FILE /coercionToUnit.kt - PROPERTY public val test1: () -> kotlin.Unit - FIELD PROPERTY_BACKING_FIELD public val test1: () -> kotlin.Unit +FILE fqName: fileName:/coercionToUnit.kt + PROPERTY name:test1 type:() -> kotlin.Unit visibility:public modality:FINAL flags:val + FIELD PROPERTY_BACKING_FIELD name:test1 type:() -> kotlin.Unit visibility:public EXPRESSION_BODY BLOCK type=() -> kotlin.Unit origin=LAMBDA - FUN LOCAL_FUNCTION_FOR_LAMBDA local final fun (): kotlin.Unit + FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> () returnType:Unit flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): Unit' + RETURN type=kotlin.Nothing from=(): Unit' TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit - CONST Int type=kotlin.Int value='42' + CONST Int type=kotlin.Int value=42 FUNCTION_REFERENCE '(): Unit' type=() -> kotlin.Unit origin=LAMBDA - FUN DEFAULT_PROPERTY_ACCESSOR public fun (): () -> kotlin.Unit + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:Function0 flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): () -> Unit' + RETURN type=kotlin.Nothing from=(): () -> Unit' GET_FIELD 'test1: () -> Unit' type=() -> kotlin.Unit origin=null - FUN public fun test2(mc: kotlin.collections.MutableCollection): kotlin.Unit - VALUE_PARAMETER value-parameter mc: kotlin.collections.MutableCollection + FUN name:test2 visibility:public modality:FINAL <> (mc:kotlin.collections.MutableCollection) returnType:Unit flags: + VALUE_PARAMETER name:mc index:0 type:kotlin.collections.MutableCollection flags: BLOCK_BODY TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit CALL 'add(String): Boolean' type=kotlin.Boolean origin=null $this: GET_VAR 'value-parameter mc: MutableCollection' type=kotlin.collections.MutableCollection origin=null - element: CONST String type=kotlin.String value='' - FUN public fun test3(): kotlin.Unit + element: CONST String type=kotlin.String value= + FUN name:test3 visibility:public modality:FINAL <> () returnType:Unit flags: BLOCK_BODY TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit BLOCK type=kotlin.Unit? origin=SAFE_CALL - VAR IR_TEMPORARY_VARIABLE val tmp0_safe_receiver: java.io.PrintStream! + VAR IR_TEMPORARY_VARIABLE name:tmp0_safe_receiver type:java.io.PrintStream! flags:val GET_FIELD 'out: PrintStream!' type=java.io.PrintStream! origin=GET_PROPERTY WHEN type=kotlin.Unit? origin=SAFE_CALL BRANCH if: CALL 'EQEQ(Any?, Any?): Boolean' type=kotlin.Boolean origin=EQEQ arg0: GET_VAR 'tmp0_safe_receiver: PrintStream!' type=java.io.PrintStream! origin=null - arg1: CONST Null type=kotlin.Nothing? value='null' - then: CONST Null type=kotlin.Nothing? value='null' + arg1: CONST Null type=kotlin.Nothing? value=null + then: CONST Null type=kotlin.Nothing? value=null BRANCH - if: CONST Boolean type=kotlin.Boolean value='true' + if: CONST Boolean type=kotlin.Boolean value=true then: CALL 'println(String!): Unit' type=kotlin.Unit origin=null $this: TYPE_OP type=java.io.PrintStream origin=IMPLICIT_NOTNULL typeOperand=java.io.PrintStream GET_VAR 'tmp0_safe_receiver: PrintStream!' type=java.io.PrintStream! origin=null - x: CONST String type=kotlin.String value='Hello,' + x: CONST String type=kotlin.String value=Hello, TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit BLOCK type=kotlin.Unit? origin=SAFE_CALL - VAR IR_TEMPORARY_VARIABLE val tmp1_safe_receiver: java.io.PrintStream! + VAR IR_TEMPORARY_VARIABLE name:tmp1_safe_receiver type:java.io.PrintStream! flags:val GET_FIELD 'out: PrintStream!' type=java.io.PrintStream! origin=GET_PROPERTY WHEN type=kotlin.Unit? origin=SAFE_CALL BRANCH if: CALL 'EQEQ(Any?, Any?): Boolean' type=kotlin.Boolean origin=EQEQ arg0: GET_VAR 'tmp1_safe_receiver: PrintStream!' type=java.io.PrintStream! origin=null - arg1: CONST Null type=kotlin.Nothing? value='null' - then: CONST Null type=kotlin.Nothing? value='null' + arg1: CONST Null type=kotlin.Nothing? value=null + then: CONST Null type=kotlin.Nothing? value=null BRANCH - if: CONST Boolean type=kotlin.Boolean value='true' + if: CONST Boolean type=kotlin.Boolean value=true then: CALL 'println(String!): Unit' type=kotlin.Unit origin=null $this: TYPE_OP type=java.io.PrintStream origin=IMPLICIT_NOTNULL typeOperand=java.io.PrintStream GET_VAR 'tmp1_safe_receiver: PrintStream!' type=java.io.PrintStream! origin=null - x: CONST String type=kotlin.String value='world!' + x: CONST String type=kotlin.String value=world! + diff --git a/compiler/testData/ir/irText/expressions/complexAugmentedAssignment.txt b/compiler/testData/ir/irText/expressions/complexAugmentedAssignment.txt index 19eabe41060..019575b5418 100644 --- a/compiler/testData/ir/irText/expressions/complexAugmentedAssignment.txt +++ b/compiler/testData/ir/irText/expressions/complexAugmentedAssignment.txt @@ -1,112 +1,112 @@ -FILE /complexAugmentedAssignment.kt - CLASS OBJECT X1 - $this: VALUE_PARAMETER this@X1: X1 - CONSTRUCTOR private constructor X1() +FILE fqName: fileName:/complexAugmentedAssignment.kt + CLASS OBJECT name:X1 modality:FINAL visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:X1 flags: + CONSTRUCTOR visibility:private <> () returnType:X1 flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='X1' - PROPERTY public final var x1: kotlin.Int - FIELD PROPERTY_BACKING_FIELD public final var x1: kotlin.Int + PROPERTY name:x1 type:kotlin.Int visibility:public modality:FINAL flags:var + FIELD PROPERTY_BACKING_FIELD name:x1 type:kotlin.Int visibility:public EXPRESSION_BODY - CONST Int type=kotlin.Int value='0' - FUN DEFAULT_PROPERTY_ACCESSOR public final fun (): kotlin.Int - $this: VALUE_PARAMETER this@X1: X1 + CONST Int type=kotlin.Int value=0 + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:X1) returnType:Int flags: + $this: VALUE_PARAMETER name: type:X1 flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): Int' + RETURN type=kotlin.Nothing from=(): Int' GET_FIELD 'x1: Int' type=kotlin.Int origin=null receiver: GET_VAR 'this@X1: X1' type=X1 origin=null - FUN DEFAULT_PROPERTY_ACCESSOR public final fun (: kotlin.Int): kotlin.Unit - $this: VALUE_PARAMETER this@X1: X1 - VALUE_PARAMETER value-parameter : kotlin.Int + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:X1, :kotlin.Int) returnType:Unit flags: + $this: VALUE_PARAMETER name: type:X1 flags: + VALUE_PARAMETER name: index:0 type:kotlin.Int flags: BLOCK_BODY SET_FIELD 'x1: Int' type=kotlin.Unit origin=null receiver: GET_VAR 'this@X1: X1' type=X1 origin=null value: GET_VAR 'value-parameter : Int' type=kotlin.Int origin=null - CLASS OBJECT X2 - $this: VALUE_PARAMETER this@X2: X2 - CONSTRUCTOR private constructor X2() + CLASS OBJECT name:X2 modality:FINAL visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:X1.X2 flags: + CONSTRUCTOR visibility:private <> () returnType:X1.X2 flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='X2' - PROPERTY public final var x2: kotlin.Int - FIELD PROPERTY_BACKING_FIELD public final var x2: kotlin.Int + PROPERTY name:x2 type:kotlin.Int visibility:public modality:FINAL flags:var + FIELD PROPERTY_BACKING_FIELD name:x2 type:kotlin.Int visibility:public EXPRESSION_BODY - CONST Int type=kotlin.Int value='0' - FUN DEFAULT_PROPERTY_ACCESSOR public final fun (): kotlin.Int - $this: VALUE_PARAMETER this@X2: X2 + CONST Int type=kotlin.Int value=0 + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:X1.X2) returnType:Int flags: + $this: VALUE_PARAMETER name: type:X1.X2 flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): Int' + RETURN type=kotlin.Nothing from=(): Int' GET_FIELD 'x2: Int' type=kotlin.Int origin=null receiver: GET_VAR 'this@X2: X2' type=X1.X2 origin=null - FUN DEFAULT_PROPERTY_ACCESSOR public final fun (: kotlin.Int): kotlin.Unit - $this: VALUE_PARAMETER this@X2: X2 - VALUE_PARAMETER value-parameter : kotlin.Int + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:X1.X2, :kotlin.Int) returnType:Unit flags: + $this: VALUE_PARAMETER name: type:X1.X2 flags: + VALUE_PARAMETER name: index:0 type:kotlin.Int flags: BLOCK_BODY SET_FIELD 'x2: Int' type=kotlin.Unit origin=null receiver: GET_VAR 'this@X2: X2' type=X1.X2 origin=null value: GET_VAR 'value-parameter : Int' type=kotlin.Int origin=null - CLASS OBJECT X3 - $this: VALUE_PARAMETER this@X3: X3 - CONSTRUCTOR private constructor X3() + CLASS OBJECT name:X3 modality:FINAL visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:X1.X2.X3 flags: + CONSTRUCTOR visibility:private <> () returnType:X1.X2.X3 flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='X3' - PROPERTY public final var x3: kotlin.Int - FIELD PROPERTY_BACKING_FIELD public final var x3: kotlin.Int + PROPERTY name:x3 type:kotlin.Int visibility:public modality:FINAL flags:var + FIELD PROPERTY_BACKING_FIELD name:x3 type:kotlin.Int visibility:public EXPRESSION_BODY - CONST Int type=kotlin.Int value='0' - FUN DEFAULT_PROPERTY_ACCESSOR public final fun (): kotlin.Int - $this: VALUE_PARAMETER this@X3: X3 + CONST Int type=kotlin.Int value=0 + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:X1.X2.X3) returnType:Int flags: + $this: VALUE_PARAMETER name: type:X1.X2.X3 flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): Int' + RETURN type=kotlin.Nothing from=(): Int' GET_FIELD 'x3: Int' type=kotlin.Int origin=null receiver: GET_VAR 'this@X3: X3' type=X1.X2.X3 origin=null - FUN DEFAULT_PROPERTY_ACCESSOR public final fun (: kotlin.Int): kotlin.Unit - $this: VALUE_PARAMETER this@X3: X3 - VALUE_PARAMETER value-parameter : kotlin.Int + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:X1.X2.X3, :kotlin.Int) returnType:Unit flags: + $this: VALUE_PARAMETER name: type:X1.X2.X3 flags: + VALUE_PARAMETER name: index:0 type:kotlin.Int flags: BLOCK_BODY SET_FIELD 'x3: Int' type=kotlin.Unit origin=null receiver: GET_VAR 'this@X3: X3' type=X1.X2.X3 origin=null value: GET_VAR 'value-parameter : Int' type=kotlin.Int origin=null - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any - FUN public fun test1(a: kotlin.IntArray): kotlin.Unit - VALUE_PARAMETER value-parameter a: kotlin.IntArray + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN name:test1 visibility:public modality:FINAL <> (a:kotlin.IntArray) returnType:Unit flags: + VALUE_PARAMETER name:a index:0 type:kotlin.IntArray flags: BLOCK_BODY - VAR var i: kotlin.Int - CONST Int type=kotlin.Int value='0' + VAR name:i type:kotlin.Int flags:var + CONST Int type=kotlin.Int value=0 TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit BLOCK type=kotlin.Int origin=POSTFIX_INCR - VAR IR_TEMPORARY_VARIABLE val tmp1_array: kotlin.IntArray + VAR IR_TEMPORARY_VARIABLE name:tmp1_array type:kotlin.IntArray flags:val GET_VAR 'value-parameter a: IntArray' type=kotlin.IntArray origin=null - VAR IR_TEMPORARY_VARIABLE val tmp2_index0: kotlin.Int + VAR IR_TEMPORARY_VARIABLE name:tmp2_index0 type:kotlin.Int flags:val BLOCK type=kotlin.Int origin=POSTFIX_INCR - VAR IR_TEMPORARY_VARIABLE val tmp0: kotlin.Int + VAR IR_TEMPORARY_VARIABLE name:tmp0 type:kotlin.Int flags:val GET_VAR 'i: Int' type=kotlin.Int origin=POSTFIX_INCR SET_VAR 'i: Int' type=kotlin.Unit origin=POSTFIX_INCR CALL 'inc(): Int' type=kotlin.Int origin=POSTFIX_INCR $this: GET_VAR 'tmp0: Int' type=kotlin.Int origin=null GET_VAR 'tmp0: Int' type=kotlin.Int origin=null - VAR IR_TEMPORARY_VARIABLE val tmp3: kotlin.Int + VAR IR_TEMPORARY_VARIABLE name:tmp3 type:kotlin.Int flags:val CALL 'get(Int): Int' type=kotlin.Int origin=POSTFIX_INCR $this: GET_VAR 'tmp1_array: IntArray' type=kotlin.IntArray origin=null index: GET_VAR 'tmp2_index0: Int' type=kotlin.Int origin=null @@ -116,14 +116,14 @@ FILE /complexAugmentedAssignment.kt value: CALL 'inc(): Int' type=kotlin.Int origin=POSTFIX_INCR $this: GET_VAR 'tmp3: Int' type=kotlin.Int origin=null GET_VAR 'tmp3: Int' type=kotlin.Int origin=null - FUN public fun test2(): kotlin.Unit + FUN name:test2 visibility:public modality:FINAL <> () returnType:Unit flags: BLOCK_BODY TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit BLOCK type=kotlin.Int origin=POSTFIX_INCR - VAR IR_TEMPORARY_VARIABLE val tmp0_this: X1 + VAR IR_TEMPORARY_VARIABLE name:tmp0_this type:X1 flags:val GET_OBJECT 'X1' type=X1 BLOCK type=kotlin.Int origin=POSTFIX_INCR - VAR IR_TEMPORARY_VARIABLE val tmp1: kotlin.Int + VAR IR_TEMPORARY_VARIABLE name:tmp1 type:kotlin.Int flags:val CALL '(): Int' type=kotlin.Int origin=POSTFIX_INCR $this: GET_VAR 'tmp0_this: X1' type=X1 origin=null CALL '(Int): Unit' type=kotlin.Unit origin=POSTFIX_INCR @@ -133,10 +133,10 @@ FILE /complexAugmentedAssignment.kt GET_VAR 'tmp1: Int' type=kotlin.Int origin=null TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit BLOCK type=kotlin.Int origin=POSTFIX_INCR - VAR IR_TEMPORARY_VARIABLE val tmp2_this: X1.X2 + VAR IR_TEMPORARY_VARIABLE name:tmp2_this type:X1.X2 flags:val GET_OBJECT 'X2' type=X1.X2 BLOCK type=kotlin.Int origin=POSTFIX_INCR - VAR IR_TEMPORARY_VARIABLE val tmp3: kotlin.Int + VAR IR_TEMPORARY_VARIABLE name:tmp3 type:kotlin.Int flags:val CALL '(): Int' type=kotlin.Int origin=POSTFIX_INCR $this: GET_VAR 'tmp2_this: X1.X2' type=X1.X2 origin=null CALL '(Int): Unit' type=kotlin.Unit origin=POSTFIX_INCR @@ -146,10 +146,10 @@ FILE /complexAugmentedAssignment.kt GET_VAR 'tmp3: Int' type=kotlin.Int origin=null TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit BLOCK type=kotlin.Int origin=POSTFIX_INCR - VAR IR_TEMPORARY_VARIABLE val tmp4_this: X1.X2.X3 + VAR IR_TEMPORARY_VARIABLE name:tmp4_this type:X1.X2.X3 flags:val GET_OBJECT 'X3' type=X1.X2.X3 BLOCK type=kotlin.Int origin=POSTFIX_INCR - VAR IR_TEMPORARY_VARIABLE val tmp5: kotlin.Int + VAR IR_TEMPORARY_VARIABLE name:tmp5 type:kotlin.Int flags:val CALL '(): Int' type=kotlin.Int origin=POSTFIX_INCR $this: GET_VAR 'tmp4_this: X1.X2.X3' type=X1.X2.X3 origin=null CALL '(Int): Unit' type=kotlin.Unit origin=POSTFIX_INCR @@ -157,52 +157,52 @@ FILE /complexAugmentedAssignment.kt : CALL 'inc(): Int' type=kotlin.Int origin=POSTFIX_INCR $this: GET_VAR 'tmp5: Int' type=kotlin.Int origin=null GET_VAR 'tmp5: Int' type=kotlin.Int origin=null - CLASS CLASS B - $this: VALUE_PARAMETER this@B: B - CONSTRUCTOR public constructor B(s: kotlin.Int = ...) - VALUE_PARAMETER value-parameter s: kotlin.Int = ... + CLASS CLASS name:B modality:FINAL visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:B flags: + CONSTRUCTOR visibility:public <> (s:kotlin.Int) returnType:B flags: + VALUE_PARAMETER name:s index:0 type:kotlin.Int flags: EXPRESSION_BODY - CONST Int type=kotlin.Int value='0' + CONST Int type=kotlin.Int value=0 BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='B' - PROPERTY public final var s: kotlin.Int - FIELD PROPERTY_BACKING_FIELD public final var s: kotlin.Int + PROPERTY name:s type:kotlin.Int visibility:public modality:FINAL flags:var + FIELD PROPERTY_BACKING_FIELD name:s type:kotlin.Int visibility:public EXPRESSION_BODY GET_VAR 'value-parameter s: Int = ...' type=kotlin.Int origin=INITIALIZE_PROPERTY_FROM_PARAMETER - FUN DEFAULT_PROPERTY_ACCESSOR public final fun (): kotlin.Int - $this: VALUE_PARAMETER this@B: B + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:B) returnType:Int flags: + $this: VALUE_PARAMETER name: type:B flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): Int' + RETURN type=kotlin.Nothing from=(): Int' GET_FIELD 's: Int' type=kotlin.Int origin=null receiver: GET_VAR 'this@B: B' type=B origin=null - FUN DEFAULT_PROPERTY_ACCESSOR public final fun (: kotlin.Int): kotlin.Unit - $this: VALUE_PARAMETER this@B: B - VALUE_PARAMETER value-parameter : kotlin.Int + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:B, :kotlin.Int) returnType:Unit flags: + $this: VALUE_PARAMETER name: type:B flags: + VALUE_PARAMETER name: index:0 type:kotlin.Int flags: BLOCK_BODY SET_FIELD 's: Int' type=kotlin.Unit origin=null receiver: GET_VAR 'this@B: B' type=B origin=null value: GET_VAR 'value-parameter : Int' type=kotlin.Int origin=null - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any - CLASS OBJECT Host - $this: VALUE_PARAMETER this@Host: Host - CONSTRUCTOR private constructor Host() + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + CLASS OBJECT name:Host modality:FINAL visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Host flags: + CONSTRUCTOR visibility:private <> () returnType:Host flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='Host' - FUN public final operator fun B.plusAssign(b: B): kotlin.Unit - $this: VALUE_PARAMETER this@Host: Host - $receiver: VALUE_PARAMETER this@plusAssign: B - VALUE_PARAMETER value-parameter b: B + FUN name:plusAssign visibility:public modality:FINAL <> ($this:Host, $receiver:B, b:B) returnType:Unit flags: + $this: VALUE_PARAMETER name: type:Host flags: + $receiver: VALUE_PARAMETER name: type:B flags: + VALUE_PARAMETER name:b index:0 type:B flags: BLOCK_BODY BLOCK type=kotlin.Unit origin=PLUSEQ - VAR IR_TEMPORARY_VARIABLE val tmp0_this: B + VAR IR_TEMPORARY_VARIABLE name:tmp0_this type:B flags:val GET_VAR 'this@plusAssign: B' type=B origin=null CALL '(Int): Unit' type=kotlin.Unit origin=PLUSEQ $this: GET_VAR 'tmp0_this: B' type=B origin=null @@ -211,20 +211,20 @@ FILE /complexAugmentedAssignment.kt $this: GET_VAR 'tmp0_this: B' type=B origin=null other: CALL '(): Int' type=kotlin.Int origin=GET_PROPERTY $this: GET_VAR 'value-parameter b: B' type=B origin=null - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any - FUN public fun Host.test3(v: B): kotlin.Unit - $receiver: VALUE_PARAMETER this@test3: Host - VALUE_PARAMETER value-parameter v: B + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN name:test3 visibility:public modality:FINAL <> ($receiver:Host, v:B) returnType:Unit flags: + $receiver: VALUE_PARAMETER name: type:Host flags: + VALUE_PARAMETER name:v index:0 type:B flags: BLOCK_BODY CALL 'plusAssign(B) on B: Unit' type=kotlin.Unit origin=PLUSEQ $this: GET_VAR 'this@test3: Host' type=Host origin=null $receiver: GET_VAR 'value-parameter v: B' type=B origin=PLUSEQ b: CALL 'constructor B(Int = ...)' type=B origin=null - s: CONST Int type=kotlin.Int value='1000' + s: CONST Int type=kotlin.Int value=1000 diff --git a/compiler/testData/ir/irText/expressions/contructorCall.txt b/compiler/testData/ir/irText/expressions/contructorCall.txt index d313e2bdc07..fa7b9bcb64a 100644 --- a/compiler/testData/ir/irText/expressions/contructorCall.txt +++ b/compiler/testData/ir/irText/expressions/contructorCall.txt @@ -1,23 +1,23 @@ -FILE /contructorCall.kt - CLASS CLASS A - $this: VALUE_PARAMETER this@A: A - CONSTRUCTOR public constructor A() +FILE fqName: fileName:/contructorCall.kt + CLASS CLASS name:A modality:FINAL visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:A flags: + CONSTRUCTOR visibility:public <> () returnType:A flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='A' - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any - PROPERTY public val test: A - FIELD PROPERTY_BACKING_FIELD public val test: A + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + PROPERTY name:test type:A visibility:public modality:FINAL flags:val + FIELD PROPERTY_BACKING_FIELD name:test type:A visibility:public EXPRESSION_BODY CALL 'constructor A()' type=A origin=null - FUN DEFAULT_PROPERTY_ACCESSOR public fun (): A + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:A flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): A' + RETURN type=kotlin.Nothing from=(): A' GET_FIELD 'test: A' type=A origin=null diff --git a/compiler/testData/ir/irText/expressions/conventionComparisons.txt b/compiler/testData/ir/irText/expressions/conventionComparisons.txt index 3ef247cb1ca..a767c8c4e96 100644 --- a/compiler/testData/ir/irText/expressions/conventionComparisons.txt +++ b/compiler/testData/ir/irText/expressions/conventionComparisons.txt @@ -1,65 +1,65 @@ -FILE /conventionComparisons.kt - CLASS INTERFACE IA - $this: VALUE_PARAMETER this@IA: IA - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any - CLASS INTERFACE IB - $this: VALUE_PARAMETER this@IB: IB - FUN public abstract operator fun IA.compareTo(other: IA): kotlin.Int - $this: VALUE_PARAMETER this@IB: IB - $receiver: VALUE_PARAMETER this@compareTo: IA - VALUE_PARAMETER value-parameter other: IA - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any - FUN public fun IB.test1(a1: IA, a2: IA): kotlin.Boolean - $receiver: VALUE_PARAMETER this@test1: IB - VALUE_PARAMETER value-parameter a1: IA - VALUE_PARAMETER value-parameter a2: IA +FILE fqName: fileName:/conventionComparisons.kt + CLASS INTERFACE name:IA modality:ABSTRACT visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:IA flags: + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + CLASS INTERFACE name:IB modality:ABSTRACT visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:IB flags: + FUN name:compareTo visibility:public modality:ABSTRACT <> ($this:IB, $receiver:IA, other:IA) returnType:Int flags: + $this: VALUE_PARAMETER name: type:IB flags: + $receiver: VALUE_PARAMETER name: type:IA flags: + VALUE_PARAMETER name:other index:0 type:IA flags: + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN name:test1 visibility:public modality:FINAL <> ($receiver:IB, a1:IA, a2:IA) returnType:Boolean flags: + $receiver: VALUE_PARAMETER name: type:IB flags: + VALUE_PARAMETER name:a1 index:0 type:IA flags: + VALUE_PARAMETER name:a2 index:1 type:IA flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='test1(IA, IA) on IB: Boolean' + RETURN type=kotlin.Nothing from=test1(IA, IA) on IB: Boolean' CALL 'GT0(Int): Boolean' type=kotlin.Boolean origin=GT arg0: CALL 'compareTo(IA) on IA: Int' type=kotlin.Int origin=GT $this: GET_VAR 'this@test1: IB' type=IB origin=null $receiver: GET_VAR 'value-parameter a1: IA' type=IA origin=null other: GET_VAR 'value-parameter a2: IA' type=IA origin=null - FUN public fun IB.test2(a1: IA, a2: IA): kotlin.Boolean - $receiver: VALUE_PARAMETER this@test2: IB - VALUE_PARAMETER value-parameter a1: IA - VALUE_PARAMETER value-parameter a2: IA + FUN name:test2 visibility:public modality:FINAL <> ($receiver:IB, a1:IA, a2:IA) returnType:Boolean flags: + $receiver: VALUE_PARAMETER name: type:IB flags: + VALUE_PARAMETER name:a1 index:0 type:IA flags: + VALUE_PARAMETER name:a2 index:1 type:IA flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='test2(IA, IA) on IB: Boolean' + RETURN type=kotlin.Nothing from=test2(IA, IA) on IB: Boolean' CALL 'GTEQ0(Int): Boolean' type=kotlin.Boolean origin=GTEQ arg0: CALL 'compareTo(IA) on IA: Int' type=kotlin.Int origin=GTEQ $this: GET_VAR 'this@test2: IB' type=IB origin=null $receiver: GET_VAR 'value-parameter a1: IA' type=IA origin=null other: GET_VAR 'value-parameter a2: IA' type=IA origin=null - FUN public fun IB.test3(a1: IA, a2: IA): kotlin.Boolean - $receiver: VALUE_PARAMETER this@test3: IB - VALUE_PARAMETER value-parameter a1: IA - VALUE_PARAMETER value-parameter a2: IA + FUN name:test3 visibility:public modality:FINAL <> ($receiver:IB, a1:IA, a2:IA) returnType:Boolean flags: + $receiver: VALUE_PARAMETER name: type:IB flags: + VALUE_PARAMETER name:a1 index:0 type:IA flags: + VALUE_PARAMETER name:a2 index:1 type:IA flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='test3(IA, IA) on IB: Boolean' + RETURN type=kotlin.Nothing from=test3(IA, IA) on IB: Boolean' CALL 'LT0(Int): Boolean' type=kotlin.Boolean origin=LT arg0: CALL 'compareTo(IA) on IA: Int' type=kotlin.Int origin=LT $this: GET_VAR 'this@test3: IB' type=IB origin=null $receiver: GET_VAR 'value-parameter a1: IA' type=IA origin=null other: GET_VAR 'value-parameter a2: IA' type=IA origin=null - FUN public fun IB.test4(a1: IA, a2: IA): kotlin.Boolean - $receiver: VALUE_PARAMETER this@test4: IB - VALUE_PARAMETER value-parameter a1: IA - VALUE_PARAMETER value-parameter a2: IA + FUN name:test4 visibility:public modality:FINAL <> ($receiver:IB, a1:IA, a2:IA) returnType:Boolean flags: + $receiver: VALUE_PARAMETER name: type:IB flags: + VALUE_PARAMETER name:a1 index:0 type:IA flags: + VALUE_PARAMETER name:a2 index:1 type:IA flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='test4(IA, IA) on IB: Boolean' + RETURN type=kotlin.Nothing from=test4(IA, IA) on IB: Boolean' CALL 'LTEQ0(Int): Boolean' type=kotlin.Boolean origin=LTEQ arg0: CALL 'compareTo(IA) on IA: Int' type=kotlin.Int origin=LTEQ $this: GET_VAR 'this@test4: IB' type=IB origin=null diff --git a/compiler/testData/ir/irText/expressions/destructuring1.txt b/compiler/testData/ir/irText/expressions/destructuring1.txt index 8c68da1ef2a..1d95bea05df 100644 --- a/compiler/testData/ir/irText/expressions/destructuring1.txt +++ b/compiler/testData/ir/irText/expressions/destructuring1.txt @@ -1,53 +1,53 @@ -FILE /destructuring1.kt - CLASS OBJECT A - $this: VALUE_PARAMETER this@A: A - CONSTRUCTOR private constructor A() +FILE fqName: fileName:/destructuring1.kt + CLASS OBJECT name:A modality:FINAL visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:A flags: + CONSTRUCTOR visibility:private <> () returnType:A flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='A' - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any - CLASS OBJECT B - $this: VALUE_PARAMETER this@B: B - CONSTRUCTOR private constructor B() + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + CLASS OBJECT name:B modality:FINAL visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:B flags: + CONSTRUCTOR visibility:private <> () returnType:B flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='B' - FUN public final operator fun A.component1(): kotlin.Int - $this: VALUE_PARAMETER this@B: B - $receiver: VALUE_PARAMETER this@component1: A + FUN name:component1 visibility:public modality:FINAL <> ($this:B, $receiver:A) returnType:Int flags: + $this: VALUE_PARAMETER name: type:B flags: + $receiver: VALUE_PARAMETER name: type:A flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='component1() on A: Int' - CONST Int type=kotlin.Int value='1' - FUN public final operator fun A.component2(): kotlin.Int - $this: VALUE_PARAMETER this@B: B - $receiver: VALUE_PARAMETER this@component2: A + RETURN type=kotlin.Nothing from=component1() on A: Int' + CONST Int type=kotlin.Int value=1 + FUN name:component2 visibility:public modality:FINAL <> ($this:B, $receiver:A) returnType:Int flags: + $this: VALUE_PARAMETER name: type:B flags: + $receiver: VALUE_PARAMETER name: type:A flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='component2() on A: Int' - CONST Int type=kotlin.Int value='2' - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any - FUN public fun B.test(): kotlin.Unit - $receiver: VALUE_PARAMETER this@test: B + RETURN type=kotlin.Nothing from=component2() on A: Int' + CONST Int type=kotlin.Int value=2 + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN name:test visibility:public modality:FINAL <> ($receiver:B) returnType:Unit flags: + $receiver: VALUE_PARAMETER name: type:B flags: BLOCK_BODY COMPOSITE type=kotlin.Unit origin=DESTRUCTURING_DECLARATION - VAR IR_TEMPORARY_VARIABLE val tmp0_container: A + VAR IR_TEMPORARY_VARIABLE name:tmp0_container type:A flags:val GET_OBJECT 'A' type=A - VAR val x: kotlin.Int + VAR name:x type:kotlin.Int flags:val CALL 'component1() on A: Int' type=kotlin.Int origin=COMPONENT_N(index=1) $this: GET_VAR 'this@test: B' type=B origin=null $receiver: GET_VAR 'tmp0_container: A' type=A origin=null - VAR val y: kotlin.Int + VAR name:y type:kotlin.Int flags:val CALL 'component2() on A: Int' type=kotlin.Int origin=COMPONENT_N(index=2) $this: GET_VAR 'this@test: B' type=B origin=null $receiver: GET_VAR 'tmp0_container: A' type=A origin=null diff --git a/compiler/testData/ir/irText/expressions/destructuringWithUnderscore.txt b/compiler/testData/ir/irText/expressions/destructuringWithUnderscore.txt index a3997936811..5525a447e3c 100644 --- a/compiler/testData/ir/irText/expressions/destructuringWithUnderscore.txt +++ b/compiler/testData/ir/irText/expressions/destructuringWithUnderscore.txt @@ -1,59 +1,59 @@ -FILE /destructuringWithUnderscore.kt - CLASS OBJECT A - $this: VALUE_PARAMETER this@A: A - CONSTRUCTOR private constructor A() +FILE fqName: fileName:/destructuringWithUnderscore.kt + CLASS OBJECT name:A modality:FINAL visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:A flags: + CONSTRUCTOR visibility:private <> () returnType:A flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='A' - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any - CLASS OBJECT B - $this: VALUE_PARAMETER this@B: B - CONSTRUCTOR private constructor B() + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + CLASS OBJECT name:B modality:FINAL visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:B flags: + CONSTRUCTOR visibility:private <> () returnType:B flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='B' - FUN public final operator fun A.component1(): kotlin.Int - $this: VALUE_PARAMETER this@B: B - $receiver: VALUE_PARAMETER this@component1: A + FUN name:component1 visibility:public modality:FINAL <> ($this:B, $receiver:A) returnType:Int flags: + $this: VALUE_PARAMETER name: type:B flags: + $receiver: VALUE_PARAMETER name: type:A flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='component1() on A: Int' - CONST Int type=kotlin.Int value='1' - FUN public final operator fun A.component2(): kotlin.Int - $this: VALUE_PARAMETER this@B: B - $receiver: VALUE_PARAMETER this@component2: A + RETURN type=kotlin.Nothing from=component1() on A: Int' + CONST Int type=kotlin.Int value=1 + FUN name:component2 visibility:public modality:FINAL <> ($this:B, $receiver:A) returnType:Int flags: + $this: VALUE_PARAMETER name: type:B flags: + $receiver: VALUE_PARAMETER name: type:A flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='component2() on A: Int' - CONST Int type=kotlin.Int value='2' - FUN public final operator fun A.component3(): kotlin.Int - $this: VALUE_PARAMETER this@B: B - $receiver: VALUE_PARAMETER this@component3: A + RETURN type=kotlin.Nothing from=component2() on A: Int' + CONST Int type=kotlin.Int value=2 + FUN name:component3 visibility:public modality:FINAL <> ($this:B, $receiver:A) returnType:Int flags: + $this: VALUE_PARAMETER name: type:B flags: + $receiver: VALUE_PARAMETER name: type:A flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='component3() on A: Int' - CONST Int type=kotlin.Int value='3' - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any - FUN public fun B.test(): kotlin.Unit - $receiver: VALUE_PARAMETER this@test: B + RETURN type=kotlin.Nothing from=component3() on A: Int' + CONST Int type=kotlin.Int value=3 + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN name:test visibility:public modality:FINAL <> ($receiver:B) returnType:Unit flags: + $receiver: VALUE_PARAMETER name: type:B flags: BLOCK_BODY COMPOSITE type=kotlin.Unit origin=DESTRUCTURING_DECLARATION - VAR IR_TEMPORARY_VARIABLE val tmp0_container: A + VAR IR_TEMPORARY_VARIABLE name:tmp0_container type:A flags:val GET_OBJECT 'A' type=A - VAR val x: kotlin.Int + VAR name:x type:kotlin.Int flags:val CALL 'component1() on A: Int' type=kotlin.Int origin=COMPONENT_N(index=1) $this: GET_VAR 'this@test: B' type=B origin=null $receiver: GET_VAR 'tmp0_container: A' type=A origin=null - VAR val z: kotlin.Int + VAR name:z type:kotlin.Int flags:val CALL 'component3() on A: Int' type=kotlin.Int origin=COMPONENT_N(index=3) $this: GET_VAR 'this@test: B' type=B origin=null $receiver: GET_VAR 'tmp0_container: A' type=A origin=null diff --git a/compiler/testData/ir/irText/expressions/dotQualified.txt b/compiler/testData/ir/irText/expressions/dotQualified.txt index 56fa036274a..495f8673f60 100644 --- a/compiler/testData/ir/irText/expressions/dotQualified.txt +++ b/compiler/testData/ir/irText/expressions/dotQualified.txt @@ -1,25 +1,25 @@ -FILE /dotQualified.kt - FUN public fun length(s: kotlin.String): kotlin.Int - VALUE_PARAMETER value-parameter s: kotlin.String +FILE fqName: fileName:/dotQualified.kt + FUN name:length visibility:public modality:FINAL <> (s:kotlin.String) returnType:Int flags: + VALUE_PARAMETER name:s index:0 type:kotlin.String flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='length(String): Int' + RETURN type=kotlin.Nothing from=length(String): Int' CALL '(): Int' type=kotlin.Int origin=GET_PROPERTY $this: GET_VAR 'value-parameter s: String' type=kotlin.String origin=null - FUN public fun lengthN(s: kotlin.String?): kotlin.Int? - VALUE_PARAMETER value-parameter s: kotlin.String? + FUN name:lengthN visibility:public modality:FINAL <> (s:kotlin.String?) returnType:Int? flags: + VALUE_PARAMETER name:s index:0 type:kotlin.String? flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='lengthN(String?): Int?' + RETURN type=kotlin.Nothing from=lengthN(String?): Int?' BLOCK type=kotlin.Int? origin=SAFE_CALL - VAR IR_TEMPORARY_VARIABLE val tmp0_safe_receiver: kotlin.String? + VAR IR_TEMPORARY_VARIABLE name:tmp0_safe_receiver type:kotlin.String? flags:val GET_VAR 'value-parameter s: String?' type=kotlin.String? origin=null WHEN type=kotlin.Int? origin=SAFE_CALL BRANCH if: CALL 'EQEQ(Any?, Any?): Boolean' type=kotlin.Boolean origin=EQEQ arg0: GET_VAR 'tmp0_safe_receiver: String?' type=kotlin.String? origin=null - arg1: CONST Null type=kotlin.Nothing? value='null' - then: CONST Null type=kotlin.Nothing? value='null' + arg1: CONST Null type=kotlin.Nothing? value=null + then: CONST Null type=kotlin.Nothing? value=null BRANCH - if: CONST Boolean type=kotlin.Boolean value='true' + if: CONST Boolean type=kotlin.Boolean value=true then: CALL '(): Int' type=kotlin.Int origin=GET_PROPERTY $this: GET_VAR 'tmp0_safe_receiver: String?' type=kotlin.String? origin=null diff --git a/compiler/testData/ir/irText/expressions/elvis.txt b/compiler/testData/ir/irText/expressions/elvis.txt index d20a4c02b13..a146c5baa14 100644 --- a/compiler/testData/ir/irText/expressions/elvis.txt +++ b/compiler/testData/ir/irText/expressions/elvis.txt @@ -1,111 +1,111 @@ -FILE /elvis.kt - PROPERTY public val p: kotlin.Any? = null - FIELD PROPERTY_BACKING_FIELD public val p: kotlin.Any? = null +FILE fqName: fileName:/elvis.kt + PROPERTY name:p type:kotlin.Any? visibility:public modality:FINAL flags:val + FIELD PROPERTY_BACKING_FIELD name:p type:kotlin.Any? visibility:public EXPRESSION_BODY - CONST Null type=kotlin.Nothing? value='null' - FUN DEFAULT_PROPERTY_ACCESSOR public fun (): kotlin.Any? + CONST Null type=kotlin.Nothing? value=null + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:Any? flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): Any?' + RETURN type=kotlin.Nothing from=(): Any?' GET_FIELD 'p: Any?' type=kotlin.Any? origin=null - FUN public fun foo(): kotlin.Any? + FUN name:foo visibility:public modality:FINAL <> () returnType:Any? flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='foo(): Any?' - CONST Null type=kotlin.Nothing? value='null' - FUN public fun test1(a: kotlin.Any?, b: kotlin.Any): kotlin.Any - VALUE_PARAMETER value-parameter a: kotlin.Any? - VALUE_PARAMETER value-parameter b: kotlin.Any + RETURN type=kotlin.Nothing from=foo(): Any?' + CONST Null type=kotlin.Nothing? value=null + FUN name:test1 visibility:public modality:FINAL <> (a:kotlin.Any?, b:kotlin.Any) returnType:Any flags: + VALUE_PARAMETER name:a index:0 type:kotlin.Any? flags: + VALUE_PARAMETER name:b index:1 type:kotlin.Any flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='test1(Any?, Any): Any' + RETURN type=kotlin.Nothing from=test1(Any?, Any): Any' BLOCK type=kotlin.Any origin=ELVIS - VAR IR_TEMPORARY_VARIABLE val tmp0_elvis_lhs: kotlin.Any? + VAR IR_TEMPORARY_VARIABLE name:tmp0_elvis_lhs type:kotlin.Any? flags:val GET_VAR 'value-parameter a: Any?' type=kotlin.Any? origin=null WHEN type=kotlin.Any origin=null BRANCH if: CALL 'EQEQ(Any?, Any?): Boolean' type=kotlin.Boolean origin=EQEQ arg0: GET_VAR 'tmp0_elvis_lhs: Any?' type=kotlin.Any? origin=null - arg1: CONST Null type=kotlin.Nothing? value='null' + arg1: CONST Null type=kotlin.Nothing? value=null then: GET_VAR 'value-parameter b: Any' type=kotlin.Any origin=null BRANCH - if: CONST Boolean type=kotlin.Boolean value='true' + if: CONST Boolean type=kotlin.Boolean value=true then: GET_VAR 'tmp0_elvis_lhs: Any?' type=kotlin.Any? origin=null - FUN public fun test2(a: kotlin.String?, b: kotlin.Any): kotlin.Any - VALUE_PARAMETER value-parameter a: kotlin.String? - VALUE_PARAMETER value-parameter b: kotlin.Any + FUN name:test2 visibility:public modality:FINAL <> (a:kotlin.String?, b:kotlin.Any) returnType:Any flags: + VALUE_PARAMETER name:a index:0 type:kotlin.String? flags: + VALUE_PARAMETER name:b index:1 type:kotlin.Any flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='test2(String?, Any): Any' + RETURN type=kotlin.Nothing from=test2(String?, Any): Any' BLOCK type=kotlin.Any origin=ELVIS - VAR IR_TEMPORARY_VARIABLE val tmp0_elvis_lhs: kotlin.String? + VAR IR_TEMPORARY_VARIABLE name:tmp0_elvis_lhs type:kotlin.String? flags:val GET_VAR 'value-parameter a: String?' type=kotlin.String? origin=null WHEN type=kotlin.Any origin=null BRANCH if: CALL 'EQEQ(Any?, Any?): Boolean' type=kotlin.Boolean origin=EQEQ arg0: GET_VAR 'tmp0_elvis_lhs: String?' type=kotlin.String? origin=null - arg1: CONST Null type=kotlin.Nothing? value='null' + arg1: CONST Null type=kotlin.Nothing? value=null then: GET_VAR 'value-parameter b: Any' type=kotlin.Any origin=null BRANCH - if: CONST Boolean type=kotlin.Boolean value='true' + if: CONST Boolean type=kotlin.Boolean value=true then: GET_VAR 'tmp0_elvis_lhs: String?' type=kotlin.String? origin=null - FUN public fun test3(a: kotlin.Any?, b: kotlin.Any?): kotlin.String - VALUE_PARAMETER value-parameter a: kotlin.Any? - VALUE_PARAMETER value-parameter b: kotlin.Any? + FUN name:test3 visibility:public modality:FINAL <> (a:kotlin.Any?, b:kotlin.Any?) returnType:String flags: + VALUE_PARAMETER name:a index:0 type:kotlin.Any? flags: + VALUE_PARAMETER name:b index:1 type:kotlin.Any? flags: BLOCK_BODY WHEN type=kotlin.Unit origin=null BRANCH if: TYPE_OP type=kotlin.Boolean origin=NOT_INSTANCEOF typeOperand=kotlin.String GET_VAR 'value-parameter b: Any?' type=kotlin.Any? origin=null - then: RETURN type=kotlin.Nothing from='test3(Any?, Any?): String' - CONST String type=kotlin.String value='' + then: RETURN type=kotlin.Nothing from=test3(Any?, Any?): String' + CONST String type=kotlin.String value= WHEN type=kotlin.Unit origin=null BRANCH if: TYPE_OP type=kotlin.Boolean origin=NOT_INSTANCEOF typeOperand=kotlin.String? GET_VAR 'value-parameter a: Any?' type=kotlin.Any? origin=null - then: RETURN type=kotlin.Nothing from='test3(Any?, Any?): String' - CONST String type=kotlin.String value='' - RETURN type=kotlin.Nothing from='test3(Any?, Any?): String' + then: RETURN type=kotlin.Nothing from=test3(Any?, Any?): String' + CONST String type=kotlin.String value= + RETURN type=kotlin.Nothing from=test3(Any?, Any?): String' BLOCK type=kotlin.String origin=ELVIS - VAR IR_TEMPORARY_VARIABLE val tmp0_elvis_lhs: kotlin.Any? + VAR IR_TEMPORARY_VARIABLE name:tmp0_elvis_lhs type:kotlin.Any? flags:val GET_VAR 'value-parameter a: Any?' type=kotlin.Any? origin=null WHEN type=kotlin.String origin=null BRANCH if: CALL 'EQEQ(Any?, Any?): Boolean' type=kotlin.Boolean origin=EQEQ arg0: GET_VAR 'tmp0_elvis_lhs: Any?' type=kotlin.Any? origin=null - arg1: CONST Null type=kotlin.Nothing? value='null' + arg1: CONST Null type=kotlin.Nothing? value=null then: TYPE_OP type=kotlin.String origin=IMPLICIT_CAST typeOperand=kotlin.String GET_VAR 'value-parameter b: Any?' type=kotlin.Any? origin=null BRANCH - if: CONST Boolean type=kotlin.Boolean value='true' + if: CONST Boolean type=kotlin.Boolean value=true then: TYPE_OP type=kotlin.String origin=IMPLICIT_CAST typeOperand=kotlin.String GET_VAR 'tmp0_elvis_lhs: Any?' type=kotlin.Any? origin=null - FUN public fun test4(x: kotlin.Any): kotlin.Any - VALUE_PARAMETER value-parameter x: kotlin.Any + FUN name:test4 visibility:public modality:FINAL <> (x:kotlin.Any) returnType:Any flags: + VALUE_PARAMETER name:x index:0 type:kotlin.Any flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='test4(Any): Any' + RETURN type=kotlin.Nothing from=test4(Any): Any' BLOCK type=kotlin.Any origin=ELVIS - VAR IR_TEMPORARY_VARIABLE val tmp0_elvis_lhs: kotlin.Any? + VAR IR_TEMPORARY_VARIABLE name:tmp0_elvis_lhs type:kotlin.Any? flags:val CALL '(): Any?' type=kotlin.Any? origin=GET_PROPERTY WHEN type=kotlin.Any origin=null BRANCH if: CALL 'EQEQ(Any?, Any?): Boolean' type=kotlin.Boolean origin=EQEQ arg0: GET_VAR 'tmp0_elvis_lhs: Any?' type=kotlin.Any? origin=null - arg1: CONST Null type=kotlin.Nothing? value='null' + arg1: CONST Null type=kotlin.Nothing? value=null then: GET_VAR 'value-parameter x: Any' type=kotlin.Any origin=null BRANCH - if: CONST Boolean type=kotlin.Boolean value='true' + if: CONST Boolean type=kotlin.Boolean value=true then: GET_VAR 'tmp0_elvis_lhs: Any?' type=kotlin.Any? origin=null - FUN public fun test5(x: kotlin.Any): kotlin.Any - VALUE_PARAMETER value-parameter x: kotlin.Any + FUN name:test5 visibility:public modality:FINAL <> (x:kotlin.Any) returnType:Any flags: + VALUE_PARAMETER name:x index:0 type:kotlin.Any flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='test5(Any): Any' + RETURN type=kotlin.Nothing from=test5(Any): Any' BLOCK type=kotlin.Any origin=ELVIS - VAR IR_TEMPORARY_VARIABLE val tmp0_elvis_lhs: kotlin.Any? + VAR IR_TEMPORARY_VARIABLE name:tmp0_elvis_lhs type:kotlin.Any? flags:val CALL 'foo(): Any?' type=kotlin.Any? origin=null WHEN type=kotlin.Any origin=null BRANCH if: CALL 'EQEQ(Any?, Any?): Boolean' type=kotlin.Boolean origin=EQEQ arg0: GET_VAR 'tmp0_elvis_lhs: Any?' type=kotlin.Any? origin=null - arg1: CONST Null type=kotlin.Nothing? value='null' + arg1: CONST Null type=kotlin.Nothing? value=null then: GET_VAR 'value-parameter x: Any' type=kotlin.Any origin=null BRANCH - if: CONST Boolean type=kotlin.Boolean value='true' + if: CONST Boolean type=kotlin.Boolean value=true then: GET_VAR 'tmp0_elvis_lhs: Any?' type=kotlin.Any? origin=null diff --git a/compiler/testData/ir/irText/expressions/enumEntryAsReceiver.txt b/compiler/testData/ir/irText/expressions/enumEntryAsReceiver.txt index c075f320206..92086e0dfac 100644 --- a/compiler/testData/ir/irText/expressions/enumEntryAsReceiver.txt +++ b/compiler/testData/ir/irText/expressions/enumEntryAsReceiver.txt @@ -1,100 +1,100 @@ -FILE /enumEntryAsReceiver.kt - CLASS ENUM_CLASS X - $this: VALUE_PARAMETER this@X: X - CONSTRUCTOR private constructor X() +FILE fqName: fileName:/enumEntryAsReceiver.kt + CLASS ENUM_CLASS name:X modality:FINAL visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:X flags: + CONSTRUCTOR visibility:private <> () returnType:X flags: BLOCK_BODY ENUM_CONSTRUCTOR_CALL 'constructor Enum(String, Int)' >: null INSTANCE_INITIALIZER_CALL classDescriptor='X' - ENUM_ENTRY enum entry B + ENUM_ENTRY name:B init: ENUM_CONSTRUCTOR_CALL 'constructor B()' - class: CLASS ENUM_ENTRY B - $this: VALUE_PARAMETER this@B: B - CONSTRUCTOR private constructor B() + class: CLASS ENUM_ENTRY name:B modality:FINAL visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:X.B flags: + CONSTRUCTOR visibility:private <> () returnType:X.B flags: BLOCK_BODY ENUM_CONSTRUCTOR_CALL 'constructor X()' INSTANCE_INITIALIZER_CALL classDescriptor='B' - PROPERTY public final val value2: kotlin.String = "OK" - FIELD PROPERTY_BACKING_FIELD public final val value2: kotlin.String = "OK" + PROPERTY name:value2 type:kotlin.String visibility:public modality:FINAL flags:val + FIELD PROPERTY_BACKING_FIELD name:value2 type:kotlin.String visibility:public EXPRESSION_BODY - CONST String type=kotlin.String value='OK' - FUN DEFAULT_PROPERTY_ACCESSOR public final fun (): kotlin.String - $this: VALUE_PARAMETER this@B: B + CONST String type=kotlin.String value=OK + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:X.B) returnType:String flags: + $this: VALUE_PARAMETER name: type:X.B flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): String' + RETURN type=kotlin.Nothing from=(): String' GET_FIELD 'value2: String' type=kotlin.String origin=null receiver: GET_VAR 'this@B: B' type=X.B origin=null - PROPERTY public open override val value: () -> kotlin.String - FIELD PROPERTY_BACKING_FIELD public open override val value: () -> kotlin.String + PROPERTY name:value type:() -> kotlin.String visibility:public modality:OPEN flags:val + FIELD PROPERTY_BACKING_FIELD name:value type:() -> kotlin.String visibility:public EXPRESSION_BODY BLOCK type=() -> kotlin.String origin=LAMBDA - FUN LOCAL_FUNCTION_FOR_LAMBDA local final fun (): kotlin.String + FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> () returnType:String flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): String' + RETURN type=kotlin.Nothing from=(): String' CALL '(): String' type=kotlin.String origin=GET_PROPERTY $this: GET_ENUM 'B' type=X.B FUNCTION_REFERENCE '(): String' type=() -> kotlin.String origin=LAMBDA - FUN DEFAULT_PROPERTY_ACCESSOR public open override fun (): () -> kotlin.String - $this: VALUE_PARAMETER this@B: B + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:OPEN <> ($this:X.B) returnType:Function0 flags: + $this: VALUE_PARAMETER name: type:X.B flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): () -> String' + RETURN type=kotlin.Nothing from=(): () -> String' GET_FIELD 'value: () -> String' type=() -> kotlin.String origin=null receiver: GET_VAR 'this@B: B' type=X.B origin=null - FUN FAKE_OVERRIDE protected final override fun clone(): kotlin.Any - $this: VALUE_PARAMETER this@Enum: Enum - FUN FAKE_OVERRIDE protected/*protected and package*/ final override fun finalize(): kotlin.Unit - $this: VALUE_PARAMETER this@Enum: Enum - FUN FAKE_OVERRIDE public final override fun getDeclaringClass(): java.lang.Class! - $this: VALUE_PARAMETER this@Enum: Enum - FUN FAKE_OVERRIDE public final override fun compareTo(other: X): kotlin.Int - $this: VALUE_PARAMETER this@Enum: Enum - VALUE_PARAMETER value-parameter other: X - FUN FAKE_OVERRIDE public final override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Enum: Enum - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public final override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Enum: Enum - PROPERTY FAKE_OVERRIDE public final override val name: kotlin.String - FUN FAKE_OVERRIDE public final override fun (): kotlin.String - $this: VALUE_PARAMETER this@Enum: Enum - PROPERTY FAKE_OVERRIDE public final override val ordinal: kotlin.Int - FUN FAKE_OVERRIDE public final override fun (): kotlin.Int - $this: VALUE_PARAMETER this@Enum: Enum - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Enum: Enum - PROPERTY public abstract val value: () -> kotlin.String - FUN DEFAULT_PROPERTY_ACCESSOR public abstract fun (): () -> kotlin.String - $this: VALUE_PARAMETER this@X: X - FUN FAKE_OVERRIDE protected final override fun clone(): kotlin.Any - $this: VALUE_PARAMETER this@Enum: Enum - FUN FAKE_OVERRIDE protected/*protected and package*/ final override fun finalize(): kotlin.Unit - $this: VALUE_PARAMETER this@Enum: Enum - FUN FAKE_OVERRIDE public final override fun getDeclaringClass(): java.lang.Class! - $this: VALUE_PARAMETER this@Enum: Enum - FUN FAKE_OVERRIDE public final override fun compareTo(other: X): kotlin.Int - $this: VALUE_PARAMETER this@Enum: Enum - VALUE_PARAMETER value-parameter other: X - FUN FAKE_OVERRIDE public final override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Enum: Enum - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public final override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Enum: Enum - PROPERTY FAKE_OVERRIDE public final override val name: kotlin.String - FUN FAKE_OVERRIDE public final override fun (): kotlin.String - $this: VALUE_PARAMETER this@Enum: Enum - PROPERTY FAKE_OVERRIDE public final override val ordinal: kotlin.Int - FUN FAKE_OVERRIDE public final override fun (): kotlin.Int - $this: VALUE_PARAMETER this@Enum: Enum - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Enum: Enum - FUN ENUM_CLASS_SPECIAL_MEMBER public final fun values(): kotlin.Array + FUN FAKE_OVERRIDE name:clone visibility:protected modality:FINAL <> ($this:kotlin.Enum) returnType:Any flags: + $this: VALUE_PARAMETER name: type:kotlin.Enum flags: + FUN FAKE_OVERRIDE name:finalize visibility:protected/*protected and package*/ modality:FINAL <> ($this:kotlin.Enum) returnType:Unit flags: + $this: VALUE_PARAMETER name: type:kotlin.Enum flags: + FUN FAKE_OVERRIDE name:getDeclaringClass visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:(java.lang.Class<(X..X?)>..java.lang.Class<(X..X?)>?) flags: + $this: VALUE_PARAMETER name: type:kotlin.Enum flags: + FUN FAKE_OVERRIDE name:compareTo visibility:public modality:FINAL <> ($this:kotlin.Enum, other:X) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Enum flags: + VALUE_PARAMETER name:other index:0 type:X flags: + FUN FAKE_OVERRIDE name:equals visibility:public modality:FINAL <> ($this:kotlin.Enum, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Enum flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Enum flags: + PROPERTY FAKE_OVERRIDE name:name type:kotlin.String visibility:public modality:FINAL flags:val + FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Enum flags: + PROPERTY FAKE_OVERRIDE name:ordinal type:kotlin.Int visibility:public modality:FINAL flags:val + FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Enum flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Enum) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Enum flags: + PROPERTY name:value type:() -> kotlin.String visibility:public modality:ABSTRACT flags:val + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:ABSTRACT <> ($this:X) returnType:Function0 flags: + $this: VALUE_PARAMETER name: type:X flags: + FUN FAKE_OVERRIDE name:clone visibility:protected modality:FINAL <> ($this:kotlin.Enum) returnType:Any flags: + $this: VALUE_PARAMETER name: type:kotlin.Enum flags: + FUN FAKE_OVERRIDE name:finalize visibility:protected/*protected and package*/ modality:FINAL <> ($this:kotlin.Enum) returnType:Unit flags: + $this: VALUE_PARAMETER name: type:kotlin.Enum flags: + FUN FAKE_OVERRIDE name:getDeclaringClass visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:(java.lang.Class<(X..X?)>..java.lang.Class<(X..X?)>?) flags: + $this: VALUE_PARAMETER name: type:kotlin.Enum flags: + FUN FAKE_OVERRIDE name:compareTo visibility:public modality:FINAL <> ($this:kotlin.Enum, other:X) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Enum flags: + VALUE_PARAMETER name:other index:0 type:X flags: + FUN FAKE_OVERRIDE name:equals visibility:public modality:FINAL <> ($this:kotlin.Enum, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Enum flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Enum flags: + PROPERTY FAKE_OVERRIDE name:name type:kotlin.String visibility:public modality:FINAL flags:val + FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Enum flags: + PROPERTY FAKE_OVERRIDE name:ordinal type:kotlin.Int visibility:public modality:FINAL flags:val + FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Enum flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Enum) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Enum flags: + FUN ENUM_CLASS_SPECIAL_MEMBER name:values visibility:public modality:FINAL <> () returnType:Array flags: SYNTHETIC_BODY kind=ENUM_VALUES - FUN ENUM_CLASS_SPECIAL_MEMBER public final fun valueOf(value: kotlin.String): X - VALUE_PARAMETER value-parameter value: kotlin.String + FUN ENUM_CLASS_SPECIAL_MEMBER name:valueOf visibility:public modality:FINAL <> (value:kotlin.String) returnType:X flags: + VALUE_PARAMETER name:value index:0 type:kotlin.String flags: SYNTHETIC_BODY kind=ENUM_VALUEOF - FUN public fun box(): kotlin.String + FUN name:box visibility:public modality:FINAL <> () returnType:String flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='box(): String' + RETURN type=kotlin.Nothing from=box(): String' CALL 'invoke(): String' type=kotlin.String origin=INVOKE $this: CALL '(): () -> String' type=() -> kotlin.String origin=GET_PROPERTY $this: GET_ENUM 'B' type=X diff --git a/compiler/testData/ir/irText/expressions/equality.txt b/compiler/testData/ir/irText/expressions/equality.txt index 7d7213bfad0..2d2a3c8e0b9 100644 --- a/compiler/testData/ir/irText/expressions/equality.txt +++ b/compiler/testData/ir/irText/expressions/equality.txt @@ -1,26 +1,26 @@ -FILE /equality.kt - FUN public fun test1(a: kotlin.Int, b: kotlin.Int): kotlin.Boolean - VALUE_PARAMETER value-parameter a: kotlin.Int - VALUE_PARAMETER value-parameter b: kotlin.Int +FILE fqName: fileName:/equality.kt + FUN name:test1 visibility:public modality:FINAL <> (a:kotlin.Int, b:kotlin.Int) returnType:Boolean flags: + VALUE_PARAMETER name:a index:0 type:kotlin.Int flags: + VALUE_PARAMETER name:b index:1 type:kotlin.Int flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='test1(Int, Int): Boolean' + RETURN type=kotlin.Nothing from=test1(Int, Int): Boolean' CALL 'EQEQ(Any?, Any?): Boolean' type=kotlin.Boolean origin=EQEQ arg0: GET_VAR 'value-parameter a: Int' type=kotlin.Int origin=null arg1: GET_VAR 'value-parameter b: Int' type=kotlin.Int origin=null - FUN public fun test2(a: kotlin.Int, b: kotlin.Int): kotlin.Boolean - VALUE_PARAMETER value-parameter a: kotlin.Int - VALUE_PARAMETER value-parameter b: kotlin.Int + FUN name:test2 visibility:public modality:FINAL <> (a:kotlin.Int, b:kotlin.Int) returnType:Boolean flags: + VALUE_PARAMETER name:a index:0 type:kotlin.Int flags: + VALUE_PARAMETER name:b index:1 type:kotlin.Int flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='test2(Int, Int): Boolean' + RETURN type=kotlin.Nothing from=test2(Int, Int): Boolean' CALL 'NOT(Boolean): Boolean' type=kotlin.Boolean origin=EXCLEQ arg0: CALL 'EQEQ(Any?, Any?): Boolean' type=kotlin.Boolean origin=EXCLEQ arg0: GET_VAR 'value-parameter a: Int' type=kotlin.Int origin=null arg1: GET_VAR 'value-parameter b: Int' type=kotlin.Int origin=null - FUN public fun test3(a: kotlin.Any?, b: kotlin.Any?): kotlin.Boolean - VALUE_PARAMETER value-parameter a: kotlin.Any? - VALUE_PARAMETER value-parameter b: kotlin.Any? + FUN name:test3 visibility:public modality:FINAL <> (a:kotlin.Any?, b:kotlin.Any?) returnType:Boolean flags: + VALUE_PARAMETER name:a index:0 type:kotlin.Any? flags: + VALUE_PARAMETER name:b index:1 type:kotlin.Any? flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='test3(Any?, Any?): Boolean' + RETURN type=kotlin.Nothing from=test3(Any?, Any?): Boolean' CALL 'EQEQ(Any?, Any?): Boolean' type=kotlin.Boolean origin=EQEQ arg0: GET_VAR 'value-parameter a: Any?' type=kotlin.Any? origin=null arg1: GET_VAR 'value-parameter b: Any?' type=kotlin.Any? origin=null diff --git a/compiler/testData/ir/irText/expressions/extFunInvokeAsFun.txt b/compiler/testData/ir/irText/expressions/extFunInvokeAsFun.txt index e6036fd19fb..cc655ca9cb8 100644 --- a/compiler/testData/ir/irText/expressions/extFunInvokeAsFun.txt +++ b/compiler/testData/ir/irText/expressions/extFunInvokeAsFun.txt @@ -1,17 +1,18 @@ -FILE /extFunInvokeAsFun.kt - FUN public fun with1(receiver: kotlin.Any?, block: kotlin.Any?.() -> kotlin.Unit): kotlin.Unit - VALUE_PARAMETER value-parameter receiver: kotlin.Any? - VALUE_PARAMETER value-parameter block: kotlin.Any?.() -> kotlin.Unit +FILE fqName: fileName:/extFunInvokeAsFun.kt + FUN name:with1 visibility:public modality:FINAL <> (receiver:kotlin.Any?, block:kotlin.Any?.() -> kotlin.Unit) returnType:Unit flags: + VALUE_PARAMETER name:receiver index:0 type:kotlin.Any? flags: + VALUE_PARAMETER name:block index:1 type:kotlin.Any?.() -> kotlin.Unit flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='with1(Any?, Any?.() -> Unit): Unit' + RETURN type=kotlin.Nothing from=with1(Any?, Any?.() -> Unit): Unit' CALL 'invoke(Any?): Unit' type=kotlin.Unit origin=INVOKE $this: GET_VAR 'value-parameter block: Any?.() -> Unit' type=kotlin.Any?.() -> kotlin.Unit origin=VARIABLE_AS_FUNCTION p1: GET_VAR 'value-parameter receiver: Any?' type=kotlin.Any? origin=null - FUN public fun with2(receiver: kotlin.Any?, block: kotlin.Any?.() -> kotlin.Unit): kotlin.Unit - VALUE_PARAMETER value-parameter receiver: kotlin.Any? - VALUE_PARAMETER value-parameter block: kotlin.Any?.() -> kotlin.Unit + FUN name:with2 visibility:public modality:FINAL <> (receiver:kotlin.Any?, block:kotlin.Any?.() -> kotlin.Unit) returnType:Unit flags: + VALUE_PARAMETER name:receiver index:0 type:kotlin.Any? flags: + VALUE_PARAMETER name:block index:1 type:kotlin.Any?.() -> kotlin.Unit flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='with2(Any?, Any?.() -> Unit): Unit' + RETURN type=kotlin.Nothing from=with2(Any?, Any?.() -> Unit): Unit' CALL 'invoke(Any?): Unit' type=kotlin.Unit origin=INVOKE $this: GET_VAR 'value-parameter block: Any?.() -> Unit' type=kotlin.Any?.() -> kotlin.Unit origin=VARIABLE_AS_FUNCTION p1: GET_VAR 'value-parameter receiver: Any?' type=kotlin.Any? origin=null + diff --git a/compiler/testData/ir/irText/expressions/extFunInvokeAsFun__builtinsmodule.txt b/compiler/testData/ir/irText/expressions/extFunInvokeAsFun__builtinsmodule.txt index b346f16e960..64a1f1979fe 100644 --- a/compiler/testData/ir/irText/expressions/extFunInvokeAsFun__builtinsmodule.txt +++ b/compiler/testData/ir/irText/expressions/extFunInvokeAsFun__builtinsmodule.txt @@ -1,11 +1,11 @@ -MODULE_FRAGMENT - EXTERNAL_PACKAGE_FRAGMENT kotlin - CLASS IR_EXTERNAL_DECLARATION_STUB INTERFACE Function1 - TYPE_PARAMETER - TYPE_PARAMETER - FUN IR_EXTERNAL_DECLARATION_STUB public abstract operator fun invoke(p1: P1): R - VALUE_PARAMETER value-parameter p1: P1 - FUN IR_EXTERNAL_DECLARATION_STUB public open override fun equals(other: kotlin.Any?): kotlin.Boolean - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN IR_EXTERNAL_DECLARATION_STUB public open override fun hashCode(): kotlin.Int - FUN IR_EXTERNAL_DECLARATION_STUB public open override fun toString(): kotlin.String +MODULE_FRAGMENT name: + EXTERNAL_PACKAGE_FRAGMENT fqName:kotlin + CLASS IR_EXTERNAL_DECLARATION_STUB INTERFACE name:Function1 modality:ABSTRACT visibility:public flags: + TYPE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:P1 index:0 variance:in upperBounds:[kotlin.Any?] + TYPE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:R index:1 variance:out upperBounds:[kotlin.Any?] + FUN IR_EXTERNAL_DECLARATION_STUB name:invoke visibility:public modality:ABSTRACT <> (p1:P1) returnType:R flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:p1 index:0 type:P1 flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:equals visibility:public modality:OPEN <> (other:kotlin.Any?) returnType:Boolean flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:other index:0 type:kotlin.Any? flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:hashCode visibility:public modality:OPEN <> () returnType:Int flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:toString visibility:public modality:OPEN <> () returnType:String flags: diff --git a/compiler/testData/ir/irText/expressions/extFunSafeInvoke.txt b/compiler/testData/ir/irText/expressions/extFunSafeInvoke.txt index 0b3e9f473d7..7458c6159d8 100644 --- a/compiler/testData/ir/irText/expressions/extFunSafeInvoke.txt +++ b/compiler/testData/ir/irText/expressions/extFunSafeInvoke.txt @@ -1,22 +1,23 @@ -FILE /extFunSafeInvoke.kt - FUN public fun test(receiver: kotlin.Any?, fn: kotlin.Any.(kotlin.Int, kotlin.String) -> kotlin.Unit): kotlin.Unit? - VALUE_PARAMETER value-parameter receiver: kotlin.Any? - VALUE_PARAMETER value-parameter fn: kotlin.Any.(kotlin.Int, kotlin.String) -> kotlin.Unit +FILE fqName: fileName:/extFunSafeInvoke.kt + FUN name:test visibility:public modality:FINAL <> (receiver:kotlin.Any?, fn:kotlin.Any.(kotlin.Int, kotlin.String) -> kotlin.Unit) returnType:Unit? flags: + VALUE_PARAMETER name:receiver index:0 type:kotlin.Any? flags: + VALUE_PARAMETER name:fn index:1 type:kotlin.Any.(kotlin.Int, kotlin.String) -> kotlin.Unit flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='test(Any?, Any.(Int, String) -> Unit): Unit?' + RETURN type=kotlin.Nothing from=test(Any?, Any.(Int, String) -> Unit): Unit?' BLOCK type=kotlin.Unit? origin=SAFE_CALL - VAR IR_TEMPORARY_VARIABLE val tmp0_safe_receiver: kotlin.Any? + VAR IR_TEMPORARY_VARIABLE name:tmp0_safe_receiver type:kotlin.Any? flags:val GET_VAR 'value-parameter receiver: Any?' type=kotlin.Any? origin=null WHEN type=kotlin.Unit? origin=SAFE_CALL BRANCH if: CALL 'EQEQ(Any?, Any?): Boolean' type=kotlin.Boolean origin=EQEQ arg0: GET_VAR 'tmp0_safe_receiver: Any?' type=kotlin.Any? origin=null - arg1: CONST Null type=kotlin.Nothing? value='null' - then: CONST Null type=kotlin.Nothing? value='null' + arg1: CONST Null type=kotlin.Nothing? value=null + then: CONST Null type=kotlin.Nothing? value=null BRANCH - if: CONST Boolean type=kotlin.Boolean value='true' + if: CONST Boolean type=kotlin.Boolean value=true then: CALL 'invoke(Any, Int, String): Unit' type=kotlin.Unit origin=INVOKE $this: GET_VAR 'value-parameter fn: Any.(Int, String) -> Unit' type=kotlin.Any.(kotlin.Int, kotlin.String) -> kotlin.Unit origin=VARIABLE_AS_FUNCTION p1: GET_VAR 'tmp0_safe_receiver: Any?' type=kotlin.Any? origin=null - p2: CONST Int type=kotlin.Int value='42' - p3: CONST String type=kotlin.String value='Hello' + p2: CONST Int type=kotlin.Int value=42 + p3: CONST String type=kotlin.String value=Hello + diff --git a/compiler/testData/ir/irText/expressions/extensionPropertyGetterCall.txt b/compiler/testData/ir/irText/expressions/extensionPropertyGetterCall.txt index 33d3b58b16d..494aff35837 100644 --- a/compiler/testData/ir/irText/expressions/extensionPropertyGetterCall.txt +++ b/compiler/testData/ir/irText/expressions/extensionPropertyGetterCall.txt @@ -1,14 +1,14 @@ -FILE /extensionPropertyGetterCall.kt - PROPERTY public val kotlin.String.okext: kotlin.String - FUN public fun kotlin.String.(): kotlin.String - $receiver: VALUE_PARAMETER this@okext: String +FILE fqName: fileName:/extensionPropertyGetterCall.kt + PROPERTY name:okext type:kotlin.String visibility:public modality:FINAL flags:val + FUN name: visibility:public modality:FINAL <> ($receiver:kotlin.String) returnType:String flags: + $receiver: VALUE_PARAMETER name: type:kotlin.String flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='() on String: String' - CONST String type=kotlin.String value='OK' - FUN public fun kotlin.String.test5(): kotlin.String - $receiver: VALUE_PARAMETER this@test5: String + RETURN type=kotlin.Nothing from=() on String: String' + CONST String type=kotlin.String value=OK + FUN name:test5 visibility:public modality:FINAL <> ($receiver:kotlin.String) returnType:String flags: + $receiver: VALUE_PARAMETER name: type:kotlin.String flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='test5() on String: String' + RETURN type=kotlin.Nothing from=test5() on String: String' CALL '() on String: String' type=kotlin.String origin=GET_PROPERTY $receiver: GET_VAR 'this@test5: String' type=kotlin.String origin=null diff --git a/compiler/testData/ir/irText/expressions/field.txt b/compiler/testData/ir/irText/expressions/field.txt index 098965e9b6e..7550158fb69 100644 --- a/compiler/testData/ir/irText/expressions/field.txt +++ b/compiler/testData/ir/irText/expressions/field.txt @@ -1,27 +1,27 @@ -FILE /field.kt - PROPERTY public var testSimple: kotlin.Int - FIELD PROPERTY_BACKING_FIELD public var testSimple: kotlin.Int +FILE fqName: fileName:/field.kt + PROPERTY name:testSimple type:kotlin.Int visibility:public modality:FINAL flags:var + FIELD PROPERTY_BACKING_FIELD name:testSimple type:kotlin.Int visibility:public EXPRESSION_BODY - CONST Int type=kotlin.Int value='0' - FUN DEFAULT_PROPERTY_ACCESSOR public fun (): kotlin.Int + CONST Int type=kotlin.Int value=0 + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:Int flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): Int' + RETURN type=kotlin.Nothing from=(): Int' GET_FIELD 'testSimple: Int' type=kotlin.Int origin=null - FUN public fun (value: kotlin.Int): kotlin.Unit - VALUE_PARAMETER value-parameter value: kotlin.Int + FUN name: visibility:public modality:FINAL <> (value:kotlin.Int) returnType:Unit flags: + VALUE_PARAMETER name:value index:0 type:kotlin.Int flags: BLOCK_BODY SET_FIELD 'testSimple: Int' type=kotlin.Unit origin=EQ value: GET_VAR 'value-parameter value: Int' type=kotlin.Int origin=null - PROPERTY public var testAugmented: kotlin.Int - FIELD PROPERTY_BACKING_FIELD public var testAugmented: kotlin.Int + PROPERTY name:testAugmented type:kotlin.Int visibility:public modality:FINAL flags:var + FIELD PROPERTY_BACKING_FIELD name:testAugmented type:kotlin.Int visibility:public EXPRESSION_BODY - CONST Int type=kotlin.Int value='0' - FUN DEFAULT_PROPERTY_ACCESSOR public fun (): kotlin.Int + CONST Int type=kotlin.Int value=0 + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:Int flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): Int' + RETURN type=kotlin.Nothing from=(): Int' GET_FIELD 'testAugmented: Int' type=kotlin.Int origin=null - FUN public fun (value: kotlin.Int): kotlin.Unit - VALUE_PARAMETER value-parameter value: kotlin.Int + FUN name: visibility:public modality:FINAL <> (value:kotlin.Int) returnType:Unit flags: + VALUE_PARAMETER name:value index:0 type:kotlin.Int flags: BLOCK_BODY SET_FIELD 'testAugmented: Int' type=kotlin.Unit origin=PLUSEQ value: CALL 'plus(Int): Int' type=kotlin.Int origin=PLUSEQ diff --git a/compiler/testData/ir/irText/expressions/for.txt b/compiler/testData/ir/irText/expressions/for.txt index 6120115586e..aa0f942f86d 100644 --- a/compiler/testData/ir/irText/expressions/for.txt +++ b/compiler/testData/ir/irText/expressions/for.txt @@ -1,53 +1,53 @@ -FILE /for.kt - FUN public fun testEmpty(ss: kotlin.collections.List): kotlin.Unit - VALUE_PARAMETER value-parameter ss: kotlin.collections.List +FILE fqName: fileName:/for.kt + FUN name:testEmpty visibility:public modality:FINAL <> (ss:kotlin.collections.List) returnType:Unit flags: + VALUE_PARAMETER name:ss index:0 type:kotlin.collections.List flags: BLOCK_BODY BLOCK type=kotlin.Unit origin=FOR_LOOP - VAR FOR_LOOP_ITERATOR val tmp0_iterator: kotlin.collections.Iterator + VAR FOR_LOOP_ITERATOR name:tmp0_iterator type:kotlin.collections.Iterator flags:val CALL 'iterator(): Iterator' type=kotlin.collections.Iterator origin=FOR_LOOP_ITERATOR $this: GET_VAR 'value-parameter ss: List' type=kotlin.collections.List origin=null WHILE label=null origin=FOR_LOOP_INNER_WHILE condition: CALL 'hasNext(): Boolean' type=kotlin.Boolean origin=FOR_LOOP_HAS_NEXT $this: GET_VAR 'tmp0_iterator: Iterator' type=kotlin.collections.Iterator origin=null body: BLOCK type=kotlin.Unit origin=FOR_LOOP_INNER_WHILE - VAR FOR_LOOP_VARIABLE val s: kotlin.String + VAR FOR_LOOP_VARIABLE name:s type:kotlin.String flags:val CALL 'next(): String' type=kotlin.String origin=FOR_LOOP_NEXT $this: GET_VAR 'tmp0_iterator: Iterator' type=kotlin.collections.Iterator origin=null - FUN public fun testIterable(ss: kotlin.collections.List): kotlin.Unit - VALUE_PARAMETER value-parameter ss: kotlin.collections.List + FUN name:testIterable visibility:public modality:FINAL <> (ss:kotlin.collections.List) returnType:Unit flags: + VALUE_PARAMETER name:ss index:0 type:kotlin.collections.List flags: BLOCK_BODY BLOCK type=kotlin.Unit origin=FOR_LOOP - VAR FOR_LOOP_ITERATOR val tmp0_iterator: kotlin.collections.Iterator + VAR FOR_LOOP_ITERATOR name:tmp0_iterator type:kotlin.collections.Iterator flags:val CALL 'iterator(): Iterator' type=kotlin.collections.Iterator origin=FOR_LOOP_ITERATOR $this: GET_VAR 'value-parameter ss: List' type=kotlin.collections.List origin=null WHILE label=null origin=FOR_LOOP_INNER_WHILE condition: CALL 'hasNext(): Boolean' type=kotlin.Boolean origin=FOR_LOOP_HAS_NEXT $this: GET_VAR 'tmp0_iterator: Iterator' type=kotlin.collections.Iterator origin=null body: BLOCK type=kotlin.Unit origin=FOR_LOOP_INNER_WHILE - VAR FOR_LOOP_VARIABLE val s: kotlin.String + VAR FOR_LOOP_VARIABLE name:s type:kotlin.String flags:val CALL 'next(): String' type=kotlin.String origin=FOR_LOOP_NEXT $this: GET_VAR 'tmp0_iterator: Iterator' type=kotlin.collections.Iterator origin=null BLOCK type=kotlin.Unit origin=null CALL 'println(Any?): Unit' type=kotlin.Unit origin=null message: GET_VAR 's: String' type=kotlin.String origin=null - FUN public fun testDestructuring(pp: kotlin.collections.List>): kotlin.Unit - VALUE_PARAMETER value-parameter pp: kotlin.collections.List> + FUN name:testDestructuring visibility:public modality:FINAL <> (pp:kotlin.collections.List>) returnType:Unit flags: + VALUE_PARAMETER name:pp index:0 type:kotlin.collections.List> flags: BLOCK_BODY BLOCK type=kotlin.Unit origin=FOR_LOOP - VAR FOR_LOOP_ITERATOR val tmp0_iterator: kotlin.collections.Iterator> + VAR FOR_LOOP_ITERATOR name:tmp0_iterator type:kotlin.collections.Iterator> flags:val CALL 'iterator(): Iterator>' type=kotlin.collections.Iterator> origin=FOR_LOOP_ITERATOR $this: GET_VAR 'value-parameter pp: List>' type=kotlin.collections.List> origin=null WHILE label=null origin=FOR_LOOP_INNER_WHILE condition: CALL 'hasNext(): Boolean' type=kotlin.Boolean origin=FOR_LOOP_HAS_NEXT $this: GET_VAR 'tmp0_iterator: Iterator>' type=kotlin.collections.Iterator> origin=null body: BLOCK type=kotlin.Unit origin=FOR_LOOP_INNER_WHILE - VAR FOR_LOOP_IMPLICIT_VARIABLE val tmp1_loop_parameter: kotlin.Pair + VAR FOR_LOOP_IMPLICIT_VARIABLE name:tmp1_loop_parameter type:kotlin.Pair flags:val CALL 'next(): Pair' type=kotlin.Pair origin=FOR_LOOP_NEXT $this: GET_VAR 'tmp0_iterator: Iterator>' type=kotlin.collections.Iterator> origin=null - VAR val i: kotlin.Int + VAR name:i type:kotlin.Int flags:val CALL 'component1(): Int' type=kotlin.Int origin=COMPONENT_N(index=1) $this: GET_VAR 'tmp1_loop_parameter: Pair' type=kotlin.Pair origin=null - VAR val s: kotlin.String + VAR name:s type:kotlin.String flags:val CALL 'component2(): String' type=kotlin.String origin=COMPONENT_N(index=2) $this: GET_VAR 'tmp1_loop_parameter: Pair' type=kotlin.Pair origin=null BLOCK type=kotlin.Unit origin=null diff --git a/compiler/testData/ir/irText/expressions/forWithBreakContinue.txt b/compiler/testData/ir/irText/expressions/forWithBreakContinue.txt index c28c03210c1..54e5e07a7f0 100644 --- a/compiler/testData/ir/irText/expressions/forWithBreakContinue.txt +++ b/compiler/testData/ir/irText/expressions/forWithBreakContinue.txt @@ -1,44 +1,44 @@ -FILE /forWithBreakContinue.kt - FUN public fun testForBreak1(ss: kotlin.collections.List): kotlin.Unit - VALUE_PARAMETER value-parameter ss: kotlin.collections.List +FILE fqName: fileName:/forWithBreakContinue.kt + FUN name:testForBreak1 visibility:public modality:FINAL <> (ss:kotlin.collections.List) returnType:Unit flags: + VALUE_PARAMETER name:ss index:0 type:kotlin.collections.List flags: BLOCK_BODY BLOCK type=kotlin.Unit origin=FOR_LOOP - VAR FOR_LOOP_ITERATOR val tmp0_iterator: kotlin.collections.Iterator + VAR FOR_LOOP_ITERATOR name:tmp0_iterator type:kotlin.collections.Iterator flags:val CALL 'iterator(): Iterator' type=kotlin.collections.Iterator origin=FOR_LOOP_ITERATOR $this: GET_VAR 'value-parameter ss: List' type=kotlin.collections.List origin=null WHILE label=null origin=FOR_LOOP_INNER_WHILE condition: CALL 'hasNext(): Boolean' type=kotlin.Boolean origin=FOR_LOOP_HAS_NEXT $this: GET_VAR 'tmp0_iterator: Iterator' type=kotlin.collections.Iterator origin=null body: BLOCK type=kotlin.Unit origin=FOR_LOOP_INNER_WHILE - VAR FOR_LOOP_VARIABLE val s: kotlin.String + VAR FOR_LOOP_VARIABLE name:s type:kotlin.String flags:val CALL 'next(): String' type=kotlin.String origin=FOR_LOOP_NEXT $this: GET_VAR 'tmp0_iterator: Iterator' type=kotlin.collections.Iterator origin=null BLOCK type=kotlin.Nothing origin=null BREAK label=null loop.label=null - FUN public fun testForBreak2(ss: kotlin.collections.List): kotlin.Unit - VALUE_PARAMETER value-parameter ss: kotlin.collections.List + FUN name:testForBreak2 visibility:public modality:FINAL <> (ss:kotlin.collections.List) returnType:Unit flags: + VALUE_PARAMETER name:ss index:0 type:kotlin.collections.List flags: BLOCK_BODY BLOCK type=kotlin.Unit origin=FOR_LOOP - VAR FOR_LOOP_ITERATOR val tmp0_iterator: kotlin.collections.Iterator + VAR FOR_LOOP_ITERATOR name:tmp0_iterator type:kotlin.collections.Iterator flags:val CALL 'iterator(): Iterator' type=kotlin.collections.Iterator origin=FOR_LOOP_ITERATOR $this: GET_VAR 'value-parameter ss: List' type=kotlin.collections.List origin=null WHILE label=OUTER origin=FOR_LOOP_INNER_WHILE condition: CALL 'hasNext(): Boolean' type=kotlin.Boolean origin=FOR_LOOP_HAS_NEXT $this: GET_VAR 'tmp0_iterator: Iterator' type=kotlin.collections.Iterator origin=null body: BLOCK type=kotlin.Unit origin=FOR_LOOP_INNER_WHILE - VAR FOR_LOOP_VARIABLE val s1: kotlin.String + VAR FOR_LOOP_VARIABLE name:s1 type:kotlin.String flags:val CALL 'next(): String' type=kotlin.String origin=FOR_LOOP_NEXT $this: GET_VAR 'tmp0_iterator: Iterator' type=kotlin.collections.Iterator origin=null BLOCK type=kotlin.Nothing origin=null BLOCK type=kotlin.Unit origin=FOR_LOOP - VAR FOR_LOOP_ITERATOR val tmp1_iterator: kotlin.collections.Iterator + VAR FOR_LOOP_ITERATOR name:tmp1_iterator type:kotlin.collections.Iterator flags:val CALL 'iterator(): Iterator' type=kotlin.collections.Iterator origin=FOR_LOOP_ITERATOR $this: GET_VAR 'value-parameter ss: List' type=kotlin.collections.List origin=null WHILE label=INNER origin=FOR_LOOP_INNER_WHILE condition: CALL 'hasNext(): Boolean' type=kotlin.Boolean origin=FOR_LOOP_HAS_NEXT $this: GET_VAR 'tmp1_iterator: Iterator' type=kotlin.collections.Iterator origin=null body: BLOCK type=kotlin.Unit origin=FOR_LOOP_INNER_WHILE - VAR FOR_LOOP_VARIABLE val s2: kotlin.String + VAR FOR_LOOP_VARIABLE name:s2 type:kotlin.String flags:val CALL 'next(): String' type=kotlin.String origin=FOR_LOOP_NEXT $this: GET_VAR 'tmp1_iterator: Iterator' type=kotlin.collections.Iterator origin=null BLOCK type=kotlin.Nothing origin=null @@ -46,46 +46,46 @@ FILE /forWithBreakContinue.kt BREAK label=INNER loop.label=INNER BREAK label=null loop.label=INNER BREAK label=OUTER loop.label=OUTER - FUN public fun testForContinue1(ss: kotlin.collections.List): kotlin.Unit - VALUE_PARAMETER value-parameter ss: kotlin.collections.List + FUN name:testForContinue1 visibility:public modality:FINAL <> (ss:kotlin.collections.List) returnType:Unit flags: + VALUE_PARAMETER name:ss index:0 type:kotlin.collections.List flags: BLOCK_BODY BLOCK type=kotlin.Unit origin=FOR_LOOP - VAR FOR_LOOP_ITERATOR val tmp0_iterator: kotlin.collections.Iterator + VAR FOR_LOOP_ITERATOR name:tmp0_iterator type:kotlin.collections.Iterator flags:val CALL 'iterator(): Iterator' type=kotlin.collections.Iterator origin=FOR_LOOP_ITERATOR $this: GET_VAR 'value-parameter ss: List' type=kotlin.collections.List origin=null WHILE label=null origin=FOR_LOOP_INNER_WHILE condition: CALL 'hasNext(): Boolean' type=kotlin.Boolean origin=FOR_LOOP_HAS_NEXT $this: GET_VAR 'tmp0_iterator: Iterator' type=kotlin.collections.Iterator origin=null body: BLOCK type=kotlin.Unit origin=FOR_LOOP_INNER_WHILE - VAR FOR_LOOP_VARIABLE val s: kotlin.String + VAR FOR_LOOP_VARIABLE name:s type:kotlin.String flags:val CALL 'next(): String' type=kotlin.String origin=FOR_LOOP_NEXT $this: GET_VAR 'tmp0_iterator: Iterator' type=kotlin.collections.Iterator origin=null BLOCK type=kotlin.Nothing origin=null CONTINUE label=null loop.label=null - FUN public fun testForContinue2(ss: kotlin.collections.List): kotlin.Unit - VALUE_PARAMETER value-parameter ss: kotlin.collections.List + FUN name:testForContinue2 visibility:public modality:FINAL <> (ss:kotlin.collections.List) returnType:Unit flags: + VALUE_PARAMETER name:ss index:0 type:kotlin.collections.List flags: BLOCK_BODY BLOCK type=kotlin.Unit origin=FOR_LOOP - VAR FOR_LOOP_ITERATOR val tmp0_iterator: kotlin.collections.Iterator + VAR FOR_LOOP_ITERATOR name:tmp0_iterator type:kotlin.collections.Iterator flags:val CALL 'iterator(): Iterator' type=kotlin.collections.Iterator origin=FOR_LOOP_ITERATOR $this: GET_VAR 'value-parameter ss: List' type=kotlin.collections.List origin=null WHILE label=OUTER origin=FOR_LOOP_INNER_WHILE condition: CALL 'hasNext(): Boolean' type=kotlin.Boolean origin=FOR_LOOP_HAS_NEXT $this: GET_VAR 'tmp0_iterator: Iterator' type=kotlin.collections.Iterator origin=null body: BLOCK type=kotlin.Unit origin=FOR_LOOP_INNER_WHILE - VAR FOR_LOOP_VARIABLE val s1: kotlin.String + VAR FOR_LOOP_VARIABLE name:s1 type:kotlin.String flags:val CALL 'next(): String' type=kotlin.String origin=FOR_LOOP_NEXT $this: GET_VAR 'tmp0_iterator: Iterator' type=kotlin.collections.Iterator origin=null BLOCK type=kotlin.Nothing origin=null BLOCK type=kotlin.Unit origin=FOR_LOOP - VAR FOR_LOOP_ITERATOR val tmp1_iterator: kotlin.collections.Iterator + VAR FOR_LOOP_ITERATOR name:tmp1_iterator type:kotlin.collections.Iterator flags:val CALL 'iterator(): Iterator' type=kotlin.collections.Iterator origin=FOR_LOOP_ITERATOR $this: GET_VAR 'value-parameter ss: List' type=kotlin.collections.List origin=null WHILE label=INNER origin=FOR_LOOP_INNER_WHILE condition: CALL 'hasNext(): Boolean' type=kotlin.Boolean origin=FOR_LOOP_HAS_NEXT $this: GET_VAR 'tmp1_iterator: Iterator' type=kotlin.collections.Iterator origin=null body: BLOCK type=kotlin.Unit origin=FOR_LOOP_INNER_WHILE - VAR FOR_LOOP_VARIABLE val s2: kotlin.String + VAR FOR_LOOP_VARIABLE name:s2 type:kotlin.String flags:val CALL 'next(): String' type=kotlin.String origin=FOR_LOOP_NEXT $this: GET_VAR 'tmp1_iterator: Iterator' type=kotlin.collections.Iterator origin=null BLOCK type=kotlin.Nothing origin=null diff --git a/compiler/testData/ir/irText/expressions/forWithImplicitReceivers.txt b/compiler/testData/ir/irText/expressions/forWithImplicitReceivers.txt index 7dccdcc6637..e8f9835db84 100644 --- a/compiler/testData/ir/irText/expressions/forWithImplicitReceivers.txt +++ b/compiler/testData/ir/irText/expressions/forWithImplicitReceivers.txt @@ -1,77 +1,77 @@ -FILE /forWithImplicitReceivers.kt - CLASS OBJECT FiveTimes - $this: VALUE_PARAMETER this@FiveTimes: FiveTimes - CONSTRUCTOR private constructor FiveTimes() +FILE fqName: fileName:/forWithImplicitReceivers.kt + CLASS OBJECT name:FiveTimes modality:FINAL visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:FiveTimes flags: + CONSTRUCTOR visibility:private <> () returnType:FiveTimes flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='FiveTimes' - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any - CLASS CLASS IntCell - $this: VALUE_PARAMETER this@IntCell: IntCell - CONSTRUCTOR public constructor IntCell(value: kotlin.Int) - VALUE_PARAMETER value-parameter value: kotlin.Int + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + CLASS CLASS name:IntCell modality:FINAL visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:IntCell flags: + CONSTRUCTOR visibility:public <> (value:kotlin.Int) returnType:IntCell flags: + VALUE_PARAMETER name:value index:0 type:kotlin.Int flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='IntCell' - PROPERTY public final var value: kotlin.Int - FIELD PROPERTY_BACKING_FIELD public final var value: kotlin.Int + PROPERTY name:value type:kotlin.Int visibility:public modality:FINAL flags:var + FIELD PROPERTY_BACKING_FIELD name:value type:kotlin.Int visibility:public EXPRESSION_BODY GET_VAR 'value-parameter value: Int' type=kotlin.Int origin=INITIALIZE_PROPERTY_FROM_PARAMETER - FUN DEFAULT_PROPERTY_ACCESSOR public final fun (): kotlin.Int - $this: VALUE_PARAMETER this@IntCell: IntCell + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:IntCell) returnType:Int flags: + $this: VALUE_PARAMETER name: type:IntCell flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): Int' + RETURN type=kotlin.Nothing from=(): Int' GET_FIELD 'value: Int' type=kotlin.Int origin=null receiver: GET_VAR 'this@IntCell: IntCell' type=IntCell origin=null - FUN DEFAULT_PROPERTY_ACCESSOR public final fun (: kotlin.Int): kotlin.Unit - $this: VALUE_PARAMETER this@IntCell: IntCell - VALUE_PARAMETER value-parameter : kotlin.Int + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:IntCell, :kotlin.Int) returnType:Unit flags: + $this: VALUE_PARAMETER name: type:IntCell flags: + VALUE_PARAMETER name: index:0 type:kotlin.Int flags: BLOCK_BODY SET_FIELD 'value: Int' type=kotlin.Unit origin=null receiver: GET_VAR 'this@IntCell: IntCell' type=IntCell origin=null value: GET_VAR 'value-parameter : Int' type=kotlin.Int origin=null - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any - CLASS INTERFACE IReceiver - $this: VALUE_PARAMETER this@IReceiver: IReceiver - FUN public open operator fun FiveTimes.iterator(): IntCell - $this: VALUE_PARAMETER this@IReceiver: IReceiver - $receiver: VALUE_PARAMETER this@iterator: FiveTimes + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + CLASS INTERFACE name:IReceiver modality:ABSTRACT visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:IReceiver flags: + FUN name:iterator visibility:public modality:OPEN <> ($this:IReceiver, $receiver:FiveTimes) returnType:IntCell flags: + $this: VALUE_PARAMETER name: type:IReceiver flags: + $receiver: VALUE_PARAMETER name: type:FiveTimes flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='iterator() on FiveTimes: IntCell' + RETURN type=kotlin.Nothing from=iterator() on FiveTimes: IntCell' CALL 'constructor IntCell(Int)' type=IntCell origin=null - value: CONST Int type=kotlin.Int value='5' - FUN public open operator fun IntCell.hasNext(): kotlin.Boolean - $this: VALUE_PARAMETER this@IReceiver: IReceiver - $receiver: VALUE_PARAMETER this@hasNext: IntCell + value: CONST Int type=kotlin.Int value=5 + FUN name:hasNext visibility:public modality:OPEN <> ($this:IReceiver, $receiver:IntCell) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:IReceiver flags: + $receiver: VALUE_PARAMETER name: type:IntCell flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='hasNext() on IntCell: Boolean' + RETURN type=kotlin.Nothing from=hasNext() on IntCell: Boolean' CALL 'GT0(Int): Boolean' type=kotlin.Boolean origin=GT arg0: CALL 'compareTo(Int): Int' type=kotlin.Int origin=GT $this: CALL '(): Int' type=kotlin.Int origin=GET_PROPERTY $this: GET_VAR 'this@hasNext: IntCell' type=IntCell origin=null - other: CONST Int type=kotlin.Int value='0' - FUN public open operator fun IntCell.next(): kotlin.Int - $this: VALUE_PARAMETER this@IReceiver: IReceiver - $receiver: VALUE_PARAMETER this@next: IntCell + other: CONST Int type=kotlin.Int value=0 + FUN name:next visibility:public modality:OPEN <> ($this:IReceiver, $receiver:IntCell) returnType:Int flags: + $this: VALUE_PARAMETER name: type:IReceiver flags: + $receiver: VALUE_PARAMETER name: type:IntCell flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='next() on IntCell: Int' + RETURN type=kotlin.Nothing from=next() on IntCell: Int' BLOCK type=kotlin.Int origin=POSTFIX_DECR - VAR IR_TEMPORARY_VARIABLE val tmp0_this: IntCell + VAR IR_TEMPORARY_VARIABLE name:tmp0_this type:IntCell flags:val GET_VAR 'this@next: IntCell' type=IntCell origin=null BLOCK type=kotlin.Int origin=POSTFIX_DECR - VAR IR_TEMPORARY_VARIABLE val tmp1: kotlin.Int + VAR IR_TEMPORARY_VARIABLE name:tmp1 type:kotlin.Int flags:val CALL '(): Int' type=kotlin.Int origin=POSTFIX_DECR $this: GET_VAR 'tmp0_this: IntCell' type=IntCell origin=null CALL '(Int): Unit' type=kotlin.Unit origin=POSTFIX_DECR @@ -79,18 +79,18 @@ FILE /forWithImplicitReceivers.kt : CALL 'dec(): Int' type=kotlin.Int origin=POSTFIX_DECR $this: GET_VAR 'tmp1: Int' type=kotlin.Int origin=null GET_VAR 'tmp1: Int' type=kotlin.Int origin=null - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any - FUN public fun IReceiver.test(): kotlin.Unit - $receiver: VALUE_PARAMETER this@test: IReceiver + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN name:test visibility:public modality:FINAL <> ($receiver:IReceiver) returnType:Unit flags: + $receiver: VALUE_PARAMETER name: type:IReceiver flags: BLOCK_BODY BLOCK type=kotlin.Unit origin=FOR_LOOP - VAR FOR_LOOP_ITERATOR val tmp0_iterator: IntCell + VAR FOR_LOOP_ITERATOR name:tmp0_iterator type:IntCell flags:val CALL 'iterator() on FiveTimes: IntCell' type=IntCell origin=FOR_LOOP_ITERATOR $this: GET_VAR 'this@test: IReceiver' type=IReceiver origin=null $receiver: GET_OBJECT 'FiveTimes' type=FiveTimes @@ -99,7 +99,7 @@ FILE /forWithImplicitReceivers.kt $this: GET_VAR 'this@test: IReceiver' type=IReceiver origin=null $receiver: GET_VAR 'tmp0_iterator: IntCell' type=IntCell origin=null body: BLOCK type=kotlin.Unit origin=FOR_LOOP_INNER_WHILE - VAR FOR_LOOP_VARIABLE val i: kotlin.Int + VAR FOR_LOOP_VARIABLE name:i type:kotlin.Int flags:val CALL 'next() on IntCell: Int' type=kotlin.Int origin=FOR_LOOP_NEXT $this: GET_VAR 'this@test: IReceiver' type=IReceiver origin=null $receiver: GET_VAR 'tmp0_iterator: IntCell' type=IntCell origin=null diff --git a/compiler/testData/ir/irText/expressions/genericPropertyCall.txt b/compiler/testData/ir/irText/expressions/genericPropertyCall.txt index 39945ed7071..78ec7ca5da8 100644 --- a/compiler/testData/ir/irText/expressions/genericPropertyCall.txt +++ b/compiler/testData/ir/irText/expressions/genericPropertyCall.txt @@ -1,17 +1,17 @@ -FILE /genericPropertyCall.kt - PROPERTY public val T.id: T - FUN public fun T.(): T - $receiver: VALUE_PARAMETER this@id: T +FILE fqName: fileName:/genericPropertyCall.kt + PROPERTY name:id type:T visibility:public modality:FINAL flags:val + FUN name: visibility:public modality:FINAL <> ($receiver:T) returnType:T flags: + $receiver: VALUE_PARAMETER name: type:T flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='() on T: T' + RETURN type=kotlin.Nothing from=() on T: T' GET_VAR 'this@id: T' type=T origin=null - PROPERTY public val test: kotlin.String - FIELD PROPERTY_BACKING_FIELD public val test: kotlin.String + PROPERTY name:test type:kotlin.String visibility:public modality:FINAL flags:val + FIELD PROPERTY_BACKING_FIELD name:test type:kotlin.String visibility:public EXPRESSION_BODY CALL '() on String: String' type=kotlin.String origin=GET_PROPERTY - $receiver: CONST String type=kotlin.String value='abc' - FUN DEFAULT_PROPERTY_ACCESSOR public fun (): kotlin.String + $receiver: CONST String type=kotlin.String value=abc + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:String flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): String' + RETURN type=kotlin.Nothing from=(): String' GET_FIELD 'test: String' type=kotlin.String origin=null diff --git a/compiler/testData/ir/irText/expressions/identity.txt b/compiler/testData/ir/irText/expressions/identity.txt index 288ccfc55f3..287e8df9cf1 100644 --- a/compiler/testData/ir/irText/expressions/identity.txt +++ b/compiler/testData/ir/irText/expressions/identity.txt @@ -1,26 +1,26 @@ -FILE /identity.kt - FUN public fun test1(a: kotlin.Int, b: kotlin.Int): kotlin.Boolean - VALUE_PARAMETER value-parameter a: kotlin.Int - VALUE_PARAMETER value-parameter b: kotlin.Int +FILE fqName: fileName:/identity.kt + FUN name:test1 visibility:public modality:FINAL <> (a:kotlin.Int, b:kotlin.Int) returnType:Boolean flags: + VALUE_PARAMETER name:a index:0 type:kotlin.Int flags: + VALUE_PARAMETER name:b index:1 type:kotlin.Int flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='test1(Int, Int): Boolean' + RETURN type=kotlin.Nothing from=test1(Int, Int): Boolean' CALL 'EQEQEQ(Any?, Any?): Boolean' type=kotlin.Boolean origin=EQEQEQ arg0: GET_VAR 'value-parameter a: Int' type=kotlin.Int origin=null arg1: GET_VAR 'value-parameter b: Int' type=kotlin.Int origin=null - FUN public fun test2(a: kotlin.Int, b: kotlin.Int): kotlin.Boolean - VALUE_PARAMETER value-parameter a: kotlin.Int - VALUE_PARAMETER value-parameter b: kotlin.Int + FUN name:test2 visibility:public modality:FINAL <> (a:kotlin.Int, b:kotlin.Int) returnType:Boolean flags: + VALUE_PARAMETER name:a index:0 type:kotlin.Int flags: + VALUE_PARAMETER name:b index:1 type:kotlin.Int flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='test2(Int, Int): Boolean' + RETURN type=kotlin.Nothing from=test2(Int, Int): Boolean' CALL 'NOT(Boolean): Boolean' type=kotlin.Boolean origin=EXCLEQEQ arg0: CALL 'EQEQEQ(Any?, Any?): Boolean' type=kotlin.Boolean origin=EXCLEQEQ arg0: GET_VAR 'value-parameter a: Int' type=kotlin.Int origin=null arg1: GET_VAR 'value-parameter b: Int' type=kotlin.Int origin=null - FUN public fun test3(a: kotlin.Any?, b: kotlin.Any?): kotlin.Boolean - VALUE_PARAMETER value-parameter a: kotlin.Any? - VALUE_PARAMETER value-parameter b: kotlin.Any? + FUN name:test3 visibility:public modality:FINAL <> (a:kotlin.Any?, b:kotlin.Any?) returnType:Boolean flags: + VALUE_PARAMETER name:a index:0 type:kotlin.Any? flags: + VALUE_PARAMETER name:b index:1 type:kotlin.Any? flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='test3(Any?, Any?): Boolean' + RETURN type=kotlin.Nothing from=test3(Any?, Any?): Boolean' CALL 'EQEQEQ(Any?, Any?): Boolean' type=kotlin.Boolean origin=EQEQEQ arg0: GET_VAR 'value-parameter a: Any?' type=kotlin.Any? origin=null arg1: GET_VAR 'value-parameter b: Any?' type=kotlin.Any? origin=null diff --git a/compiler/testData/ir/irText/expressions/ifElseIf.txt b/compiler/testData/ir/irText/expressions/ifElseIf.txt index 391b73c4d6e..6006c04a059 100644 --- a/compiler/testData/ir/irText/expressions/ifElseIf.txt +++ b/compiler/testData/ir/irText/expressions/ifElseIf.txt @@ -1,22 +1,22 @@ -FILE /ifElseIf.kt - FUN public fun test(i: kotlin.Int): kotlin.Int - VALUE_PARAMETER value-parameter i: kotlin.Int +FILE fqName: fileName:/ifElseIf.kt + FUN name:test visibility:public modality:FINAL <> (i:kotlin.Int) returnType:Int flags: + VALUE_PARAMETER name:i index:0 type:kotlin.Int flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='test(Int): Int' + RETURN type=kotlin.Nothing from=test(Int): Int' WHEN type=kotlin.Int origin=WHEN BRANCH if: CALL 'GT0(Int): Boolean' type=kotlin.Boolean origin=GT arg0: CALL 'compareTo(Int): Int' type=kotlin.Int origin=GT $this: GET_VAR 'value-parameter i: Int' type=kotlin.Int origin=null - other: CONST Int type=kotlin.Int value='0' - then: CONST Int type=kotlin.Int value='1' + other: CONST Int type=kotlin.Int value=0 + then: CONST Int type=kotlin.Int value=1 BRANCH if: CALL 'LT0(Int): Boolean' type=kotlin.Boolean origin=LT arg0: CALL 'compareTo(Int): Int' type=kotlin.Int origin=LT $this: GET_VAR 'value-parameter i: Int' type=kotlin.Int origin=null - other: CONST Int type=kotlin.Int value='0' - then: CONST Int type=kotlin.Int value='-1' + other: CONST Int type=kotlin.Int value=0 + then: CONST Int type=kotlin.Int value=-1 BRANCH - if: CONST Boolean type=kotlin.Boolean value='true' - then: CONST Int type=kotlin.Int value='0' + if: CONST Boolean type=kotlin.Boolean value=true + then: CONST Int type=kotlin.Int value=0 diff --git a/compiler/testData/ir/irText/expressions/implicitCastOnPlatformType.txt b/compiler/testData/ir/irText/expressions/implicitCastOnPlatformType.txt index d23261709c2..3f641084034 100644 --- a/compiler/testData/ir/irText/expressions/implicitCastOnPlatformType.txt +++ b/compiler/testData/ir/irText/expressions/implicitCastOnPlatformType.txt @@ -1,7 +1,8 @@ -FILE /implicitCastOnPlatformType.kt - FUN public fun test(): kotlin.String +FILE fqName: fileName:/implicitCastOnPlatformType.kt + FUN name:test visibility:public modality:FINAL <> () returnType:String flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='test(): String' + RETURN type=kotlin.Nothing from=test(): String' TYPE_OP type=kotlin.String origin=IMPLICIT_NOTNULL typeOperand=kotlin.String CALL 'getProperty(String!): String!' type=kotlin.String! origin=null - key: CONST String type=kotlin.String value='test' + key: CONST String type=kotlin.String value=test + diff --git a/compiler/testData/ir/irText/expressions/in.txt b/compiler/testData/ir/irText/expressions/in.txt index 17639c70587..00240f682c5 100644 --- a/compiler/testData/ir/irText/expressions/in.txt +++ b/compiler/testData/ir/irText/expressions/in.txt @@ -1,36 +1,36 @@ -FILE /in.kt - FUN public fun test1(a: kotlin.Any, x: kotlin.collections.Collection): kotlin.Boolean - VALUE_PARAMETER value-parameter a: kotlin.Any - VALUE_PARAMETER value-parameter x: kotlin.collections.Collection +FILE fqName: fileName:/in.kt + FUN name:test1 visibility:public modality:FINAL <> (a:kotlin.Any, x:kotlin.collections.Collection) returnType:Boolean flags: + VALUE_PARAMETER name:a index:0 type:kotlin.Any flags: + VALUE_PARAMETER name:x index:1 type:kotlin.collections.Collection flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='test1(Any, Collection): Boolean' + RETURN type=kotlin.Nothing from=test1(Any, Collection): Boolean' CALL 'contains(Any): Boolean' type=kotlin.Boolean origin=IN $this: GET_VAR 'value-parameter x: Collection' type=kotlin.collections.Collection origin=null element: GET_VAR 'value-parameter a: Any' type=kotlin.Any origin=null - FUN public fun test2(a: kotlin.Any, x: kotlin.collections.Collection): kotlin.Boolean - VALUE_PARAMETER value-parameter a: kotlin.Any - VALUE_PARAMETER value-parameter x: kotlin.collections.Collection + FUN name:test2 visibility:public modality:FINAL <> (a:kotlin.Any, x:kotlin.collections.Collection) returnType:Boolean flags: + VALUE_PARAMETER name:a index:0 type:kotlin.Any flags: + VALUE_PARAMETER name:x index:1 type:kotlin.collections.Collection flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='test2(Any, Collection): Boolean' + RETURN type=kotlin.Nothing from=test2(Any, Collection): Boolean' CALL 'NOT(Boolean): Boolean' type=kotlin.Boolean origin=NOT_IN arg0: CALL 'contains(Any): Boolean' type=kotlin.Boolean origin=NOT_IN $this: GET_VAR 'value-parameter x: Collection' type=kotlin.collections.Collection origin=null element: GET_VAR 'value-parameter a: Any' type=kotlin.Any origin=null - FUN public fun test3(a: T, x: kotlin.collections.Collection): kotlin.Boolean - TYPE_PARAMETER - VALUE_PARAMETER value-parameter a: T - VALUE_PARAMETER value-parameter x: kotlin.collections.Collection + FUN name:test3 visibility:public modality:FINAL (a:T, x:kotlin.collections.Collection) returnType:Boolean flags: + TYPE_PARAMETER name:T index:0 variance: upperBounds:[kotlin.Any?] + VALUE_PARAMETER name:a index:0 type:T flags: + VALUE_PARAMETER name:x index:1 type:kotlin.collections.Collection flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='test3(T, Collection): Boolean' + RETURN type=kotlin.Nothing from=test3(T, Collection): Boolean' CALL 'contains(T): Boolean' type=kotlin.Boolean origin=IN $this: GET_VAR 'value-parameter x: Collection' type=kotlin.collections.Collection origin=null element: GET_VAR 'value-parameter a: T' type=T origin=null - FUN public fun test4(a: T, x: kotlin.collections.Collection): kotlin.Boolean - TYPE_PARAMETER - VALUE_PARAMETER value-parameter a: T - VALUE_PARAMETER value-parameter x: kotlin.collections.Collection + FUN name:test4 visibility:public modality:FINAL (a:T, x:kotlin.collections.Collection) returnType:Boolean flags: + TYPE_PARAMETER name:T index:0 variance: upperBounds:[kotlin.Any?] + VALUE_PARAMETER name:a index:0 type:T flags: + VALUE_PARAMETER name:x index:1 type:kotlin.collections.Collection flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='test4(T, Collection): Boolean' + RETURN type=kotlin.Nothing from=test4(T, Collection): Boolean' CALL 'NOT(Boolean): Boolean' type=kotlin.Boolean origin=NOT_IN arg0: CALL 'contains(T): Boolean' type=kotlin.Boolean origin=NOT_IN $this: GET_VAR 'value-parameter x: Collection' type=kotlin.collections.Collection origin=null diff --git a/compiler/testData/ir/irText/expressions/incrementDecrement.txt b/compiler/testData/ir/irText/expressions/incrementDecrement.txt index e5abfcac345..7d3eec058b5 100644 --- a/compiler/testData/ir/irText/expressions/incrementDecrement.txt +++ b/compiler/testData/ir/irText/expressions/incrementDecrement.txt @@ -1,107 +1,107 @@ -FILE /incrementDecrement.kt - PROPERTY public var p: kotlin.Int - FIELD PROPERTY_BACKING_FIELD public var p: kotlin.Int +FILE fqName: fileName:/incrementDecrement.kt + PROPERTY name:p type:kotlin.Int visibility:public modality:FINAL flags:var + FIELD PROPERTY_BACKING_FIELD name:p type:kotlin.Int visibility:public EXPRESSION_BODY - CONST Int type=kotlin.Int value='0' - FUN DEFAULT_PROPERTY_ACCESSOR public fun (): kotlin.Int + CONST Int type=kotlin.Int value=0 + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:Int flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): Int' + RETURN type=kotlin.Nothing from=(): Int' GET_FIELD 'p: Int' type=kotlin.Int origin=null - FUN DEFAULT_PROPERTY_ACCESSOR public fun (: kotlin.Int): kotlin.Unit - VALUE_PARAMETER value-parameter : kotlin.Int + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> (:kotlin.Int) returnType:Unit flags: + VALUE_PARAMETER name: index:0 type:kotlin.Int flags: BLOCK_BODY SET_FIELD 'p: Int' type=kotlin.Unit origin=null value: GET_VAR 'value-parameter : Int' type=kotlin.Int origin=null - PROPERTY public val arr: kotlin.IntArray - FIELD PROPERTY_BACKING_FIELD public val arr: kotlin.IntArray + PROPERTY name:arr type:kotlin.IntArray visibility:public modality:FINAL flags:val + FIELD PROPERTY_BACKING_FIELD name:arr type:kotlin.IntArray visibility:public EXPRESSION_BODY CALL 'intArrayOf(vararg Int): IntArray' type=kotlin.IntArray origin=null elements: VARARG type=IntArray varargElementType=Int - CONST Int type=kotlin.Int value='1' - CONST Int type=kotlin.Int value='2' - CONST Int type=kotlin.Int value='3' - FUN DEFAULT_PROPERTY_ACCESSOR public fun (): kotlin.IntArray + CONST Int type=kotlin.Int value=1 + CONST Int type=kotlin.Int value=2 + CONST Int type=kotlin.Int value=3 + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:IntArray flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): IntArray' + RETURN type=kotlin.Nothing from=(): IntArray' GET_FIELD 'arr: IntArray' type=kotlin.IntArray origin=null - FUN public fun testVarPrefix(): kotlin.Unit + FUN name:testVarPrefix visibility:public modality:FINAL <> () returnType:Unit flags: BLOCK_BODY - VAR var x: kotlin.Int - CONST Int type=kotlin.Int value='0' - VAR val x1: kotlin.Int + VAR name:x type:kotlin.Int flags:var + CONST Int type=kotlin.Int value=0 + VAR name:x1 type:kotlin.Int flags:val BLOCK type=kotlin.Int origin=PREFIX_INCR SET_VAR 'x: Int' type=kotlin.Unit origin=PREFIX_INCR CALL 'inc(): Int' type=kotlin.Int origin=PREFIX_INCR $this: GET_VAR 'x: Int' type=kotlin.Int origin=PREFIX_INCR GET_VAR 'x: Int' type=kotlin.Int origin=PREFIX_INCR - VAR val x2: kotlin.Int + VAR name:x2 type:kotlin.Int flags:val BLOCK type=kotlin.Int origin=PREFIX_DECR SET_VAR 'x: Int' type=kotlin.Unit origin=PREFIX_DECR CALL 'dec(): Int' type=kotlin.Int origin=PREFIX_DECR $this: GET_VAR 'x: Int' type=kotlin.Int origin=PREFIX_DECR GET_VAR 'x: Int' type=kotlin.Int origin=PREFIX_DECR - FUN public fun testVarPostfix(): kotlin.Unit + FUN name:testVarPostfix visibility:public modality:FINAL <> () returnType:Unit flags: BLOCK_BODY - VAR var x: kotlin.Int - CONST Int type=kotlin.Int value='0' - VAR val x1: kotlin.Int + VAR name:x type:kotlin.Int flags:var + CONST Int type=kotlin.Int value=0 + VAR name:x1 type:kotlin.Int flags:val BLOCK type=kotlin.Int origin=POSTFIX_INCR - VAR IR_TEMPORARY_VARIABLE val tmp0: kotlin.Int + VAR IR_TEMPORARY_VARIABLE name:tmp0 type:kotlin.Int flags:val GET_VAR 'x: Int' type=kotlin.Int origin=POSTFIX_INCR SET_VAR 'x: Int' type=kotlin.Unit origin=POSTFIX_INCR CALL 'inc(): Int' type=kotlin.Int origin=POSTFIX_INCR $this: GET_VAR 'tmp0: Int' type=kotlin.Int origin=null GET_VAR 'tmp0: Int' type=kotlin.Int origin=null - VAR val x2: kotlin.Int + VAR name:x2 type:kotlin.Int flags:val BLOCK type=kotlin.Int origin=POSTFIX_DECR - VAR IR_TEMPORARY_VARIABLE val tmp1: kotlin.Int + VAR IR_TEMPORARY_VARIABLE name:tmp1 type:kotlin.Int flags:val GET_VAR 'x: Int' type=kotlin.Int origin=POSTFIX_DECR SET_VAR 'x: Int' type=kotlin.Unit origin=POSTFIX_DECR CALL 'dec(): Int' type=kotlin.Int origin=POSTFIX_DECR $this: GET_VAR 'tmp1: Int' type=kotlin.Int origin=null GET_VAR 'tmp1: Int' type=kotlin.Int origin=null - FUN public fun testPropPrefix(): kotlin.Unit + FUN name:testPropPrefix visibility:public modality:FINAL <> () returnType:Unit flags: BLOCK_BODY - VAR val p1: kotlin.Int + VAR name:p1 type:kotlin.Int flags:val BLOCK type=kotlin.Int origin=PREFIX_INCR BLOCK type=kotlin.Int origin=PREFIX_INCR CALL '(Int): Unit' type=kotlin.Unit origin=PREFIX_INCR : CALL 'inc(): Int' type=kotlin.Int origin=PREFIX_INCR $this: CALL '(): Int' type=kotlin.Int origin=PREFIX_INCR CALL '(): Int' type=kotlin.Int origin=PREFIX_INCR - VAR val p2: kotlin.Int + VAR name:p2 type:kotlin.Int flags:val BLOCK type=kotlin.Int origin=PREFIX_DECR BLOCK type=kotlin.Int origin=PREFIX_DECR CALL '(Int): Unit' type=kotlin.Unit origin=PREFIX_DECR : CALL 'dec(): Int' type=kotlin.Int origin=PREFIX_DECR $this: CALL '(): Int' type=kotlin.Int origin=PREFIX_DECR CALL '(): Int' type=kotlin.Int origin=PREFIX_DECR - FUN public fun testPropPostfix(): kotlin.Unit + FUN name:testPropPostfix visibility:public modality:FINAL <> () returnType:Unit flags: BLOCK_BODY - VAR val p1: kotlin.Int + VAR name:p1 type:kotlin.Int flags:val BLOCK type=kotlin.Int origin=POSTFIX_INCR BLOCK type=kotlin.Int origin=POSTFIX_INCR - VAR IR_TEMPORARY_VARIABLE val tmp0: kotlin.Int + VAR IR_TEMPORARY_VARIABLE name:tmp0 type:kotlin.Int flags:val CALL '(): Int' type=kotlin.Int origin=POSTFIX_INCR CALL '(Int): Unit' type=kotlin.Unit origin=POSTFIX_INCR : CALL 'inc(): Int' type=kotlin.Int origin=POSTFIX_INCR $this: GET_VAR 'tmp0: Int' type=kotlin.Int origin=null GET_VAR 'tmp0: Int' type=kotlin.Int origin=null - VAR val p2: kotlin.Int + VAR name:p2 type:kotlin.Int flags:val BLOCK type=kotlin.Int origin=PREFIX_DECR BLOCK type=kotlin.Int origin=PREFIX_DECR CALL '(Int): Unit' type=kotlin.Unit origin=PREFIX_DECR : CALL 'dec(): Int' type=kotlin.Int origin=PREFIX_DECR $this: CALL '(): Int' type=kotlin.Int origin=PREFIX_DECR CALL '(): Int' type=kotlin.Int origin=PREFIX_DECR - FUN public fun testArrayPrefix(): kotlin.Unit + FUN name:testArrayPrefix visibility:public modality:FINAL <> () returnType:Unit flags: BLOCK_BODY - VAR val a1: kotlin.Int + VAR name:a1 type:kotlin.Int flags:val BLOCK type=kotlin.Int origin=PREFIX_INCR - VAR IR_TEMPORARY_VARIABLE val tmp0_array: kotlin.IntArray + VAR IR_TEMPORARY_VARIABLE name:tmp0_array type:kotlin.IntArray flags:val CALL '(): IntArray' type=kotlin.IntArray origin=GET_PROPERTY - VAR IR_TEMPORARY_VARIABLE val tmp1_index0: kotlin.Int - CONST Int type=kotlin.Int value='0' + VAR IR_TEMPORARY_VARIABLE name:tmp1_index0 type:kotlin.Int flags:val + CONST Int type=kotlin.Int value=0 CALL 'set(Int, Int): Unit' type=kotlin.Unit origin=PREFIX_INCR $this: GET_VAR 'tmp0_array: IntArray' type=kotlin.IntArray origin=null index: GET_VAR 'tmp1_index0: Int' type=kotlin.Int origin=null @@ -112,12 +112,12 @@ FILE /incrementDecrement.kt CALL 'get(Int): Int' type=kotlin.Int origin=PREFIX_INCR $this: GET_VAR 'tmp0_array: IntArray' type=kotlin.IntArray origin=null index: GET_VAR 'tmp1_index0: Int' type=kotlin.Int origin=null - VAR val a2: kotlin.Int + VAR name:a2 type:kotlin.Int flags:val BLOCK type=kotlin.Int origin=PREFIX_DECR - VAR IR_TEMPORARY_VARIABLE val tmp2_array: kotlin.IntArray + VAR IR_TEMPORARY_VARIABLE name:tmp2_array type:kotlin.IntArray flags:val CALL '(): IntArray' type=kotlin.IntArray origin=GET_PROPERTY - VAR IR_TEMPORARY_VARIABLE val tmp3_index0: kotlin.Int - CONST Int type=kotlin.Int value='0' + VAR IR_TEMPORARY_VARIABLE name:tmp3_index0 type:kotlin.Int flags:val + CONST Int type=kotlin.Int value=0 CALL 'set(Int, Int): Unit' type=kotlin.Unit origin=PREFIX_DECR $this: GET_VAR 'tmp2_array: IntArray' type=kotlin.IntArray origin=null index: GET_VAR 'tmp3_index0: Int' type=kotlin.Int origin=null @@ -128,15 +128,15 @@ FILE /incrementDecrement.kt CALL 'get(Int): Int' type=kotlin.Int origin=PREFIX_DECR $this: GET_VAR 'tmp2_array: IntArray' type=kotlin.IntArray origin=null index: GET_VAR 'tmp3_index0: Int' type=kotlin.Int origin=null - FUN public fun testArrayPostfix(): kotlin.Unit + FUN name:testArrayPostfix visibility:public modality:FINAL <> () returnType:Unit flags: BLOCK_BODY - VAR val a1: kotlin.Int + VAR name:a1 type:kotlin.Int flags:val BLOCK type=kotlin.Int origin=POSTFIX_INCR - VAR IR_TEMPORARY_VARIABLE val tmp0_array: kotlin.IntArray + VAR IR_TEMPORARY_VARIABLE name:tmp0_array type:kotlin.IntArray flags:val CALL '(): IntArray' type=kotlin.IntArray origin=GET_PROPERTY - VAR IR_TEMPORARY_VARIABLE val tmp1_index0: kotlin.Int - CONST Int type=kotlin.Int value='0' - VAR IR_TEMPORARY_VARIABLE val tmp2: kotlin.Int + VAR IR_TEMPORARY_VARIABLE name:tmp1_index0 type:kotlin.Int flags:val + CONST Int type=kotlin.Int value=0 + VAR IR_TEMPORARY_VARIABLE name:tmp2 type:kotlin.Int flags:val CALL 'get(Int): Int' type=kotlin.Int origin=POSTFIX_INCR $this: GET_VAR 'tmp0_array: IntArray' type=kotlin.IntArray origin=null index: GET_VAR 'tmp1_index0: Int' type=kotlin.Int origin=null @@ -146,13 +146,13 @@ FILE /incrementDecrement.kt value: CALL 'inc(): Int' type=kotlin.Int origin=POSTFIX_INCR $this: GET_VAR 'tmp2: Int' type=kotlin.Int origin=null GET_VAR 'tmp2: Int' type=kotlin.Int origin=null - VAR val a2: kotlin.Int + VAR name:a2 type:kotlin.Int flags:val BLOCK type=kotlin.Int origin=POSTFIX_DECR - VAR IR_TEMPORARY_VARIABLE val tmp3_array: kotlin.IntArray + VAR IR_TEMPORARY_VARIABLE name:tmp3_array type:kotlin.IntArray flags:val CALL '(): IntArray' type=kotlin.IntArray origin=GET_PROPERTY - VAR IR_TEMPORARY_VARIABLE val tmp4_index0: kotlin.Int - CONST Int type=kotlin.Int value='0' - VAR IR_TEMPORARY_VARIABLE val tmp5: kotlin.Int + VAR IR_TEMPORARY_VARIABLE name:tmp4_index0 type:kotlin.Int flags:val + CONST Int type=kotlin.Int value=0 + VAR IR_TEMPORARY_VARIABLE name:tmp5 type:kotlin.Int flags:val CALL 'get(Int): Int' type=kotlin.Int origin=POSTFIX_DECR $this: GET_VAR 'tmp3_array: IntArray' type=kotlin.IntArray origin=null index: GET_VAR 'tmp4_index0: Int' type=kotlin.Int origin=null diff --git a/compiler/testData/ir/irText/expressions/interfaceThisRef.txt b/compiler/testData/ir/irText/expressions/interfaceThisRef.txt index c1c8bd53a55..086aab7a509 100644 --- a/compiler/testData/ir/irText/expressions/interfaceThisRef.txt +++ b/compiler/testData/ir/irText/expressions/interfaceThisRef.txt @@ -1,18 +1,18 @@ -FILE /interfaceThisRef.kt - CLASS INTERFACE IFoo - $this: VALUE_PARAMETER this@IFoo: IFoo - FUN public abstract fun foo(): kotlin.Unit - $this: VALUE_PARAMETER this@IFoo: IFoo - FUN public open fun bar(): kotlin.Unit - $this: VALUE_PARAMETER this@IFoo: IFoo +FILE fqName: fileName:/interfaceThisRef.kt + CLASS INTERFACE name:IFoo modality:ABSTRACT visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:IFoo flags: + FUN name:foo visibility:public modality:ABSTRACT <> ($this:IFoo) returnType:Unit flags: + $this: VALUE_PARAMETER name: type:IFoo flags: + FUN name:bar visibility:public modality:OPEN <> ($this:IFoo) returnType:Unit flags: + $this: VALUE_PARAMETER name: type:IFoo flags: BLOCK_BODY CALL 'foo(): Unit' type=kotlin.Unit origin=null $this: GET_VAR 'this@IFoo: IFoo' type=IFoo origin=null - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: diff --git a/compiler/testData/ir/irText/expressions/jvmInstanceFieldReference.txt b/compiler/testData/ir/irText/expressions/jvmInstanceFieldReference.txt index b2909f9cdea..9721dac3588 100644 --- a/compiler/testData/ir/irText/expressions/jvmInstanceFieldReference.txt +++ b/compiler/testData/ir/irText/expressions/jvmInstanceFieldReference.txt @@ -1,7 +1,7 @@ -FILE /Derived.kt - CLASS CLASS Derived - $this: VALUE_PARAMETER this@Derived: Derived - CONSTRUCTOR public constructor Derived() +FILE fqName: fileName:/Derived.kt + CLASS CLASS name:Derived modality:FINAL visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Derived flags: + CONSTRUCTOR visibility:public <> () returnType:Derived flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Base()' INSTANCE_INITIALIZER_CALL classDescriptor='Derived' @@ -9,27 +9,27 @@ FILE /Derived.kt BLOCK_BODY SET_FIELD 'value: Int' type=kotlin.Unit origin=EQ receiver: GET_VAR 'this@Derived: Derived' type=Derived origin=null - value: CONST Int type=kotlin.Int value='0' - FUN public final fun getValue(): kotlin.Int - $this: VALUE_PARAMETER this@Derived: Derived + value: CONST Int type=kotlin.Int value=0 + FUN name:getValue visibility:public modality:FINAL <> ($this:Derived) returnType:Int flags: + $this: VALUE_PARAMETER name: type:Derived flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='getValue(): Int' + RETURN type=kotlin.Nothing from=getValue(): Int' GET_FIELD 'value: Int' type=kotlin.Int origin=GET_PROPERTY receiver: GET_VAR 'this@Derived: Derived' type=Derived origin=null - FUN public final fun setValue(value: kotlin.Int): kotlin.Unit - $this: VALUE_PARAMETER this@Derived: Derived - VALUE_PARAMETER value-parameter value: kotlin.Int + FUN name:setValue visibility:public modality:FINAL <> ($this:Derived, value:kotlin.Int) returnType:Unit flags: + $this: VALUE_PARAMETER name: type:Derived flags: + VALUE_PARAMETER name:value index:0 type:kotlin.Int flags: BLOCK_BODY SET_FIELD 'value: Int' type=kotlin.Unit origin=EQ receiver: GET_VAR 'this@Derived: Derived' type=Derived origin=null value: GET_VAR 'value-parameter value: Int' type=kotlin.Int origin=null - PROPERTY FAKE_OVERRIDE public final override var value: kotlin.Int - FIELD FAKE_OVERRIDE public final override var value: kotlin.Int - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any + PROPERTY FAKE_OVERRIDE name:value type:kotlin.Int visibility:public modality:FINAL flags:var + FIELD FAKE_OVERRIDE name:value type:kotlin.Int visibility:public + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: diff --git a/compiler/testData/ir/irText/expressions/jvmStaticFieldReference.txt b/compiler/testData/ir/irText/expressions/jvmStaticFieldReference.txt index a3264f0d2fd..8029923df8d 100644 --- a/compiler/testData/ir/irText/expressions/jvmStaticFieldReference.txt +++ b/compiler/testData/ir/irText/expressions/jvmStaticFieldReference.txt @@ -1,48 +1,48 @@ -FILE /jvmStaticFieldReference.kt - FUN public fun testFun(): kotlin.Unit +FILE fqName: fileName:/jvmStaticFieldReference.kt + FUN name:testFun visibility:public modality:FINAL <> () returnType:Unit flags: BLOCK_BODY CALL 'println(String!): Unit' type=kotlin.Unit origin=null $this: TYPE_OP type=java.io.PrintStream origin=IMPLICIT_NOTNULL typeOperand=java.io.PrintStream GET_FIELD 'out: PrintStream!' type=java.io.PrintStream! origin=GET_PROPERTY - x: CONST String type=kotlin.String value='testFun' - PROPERTY public var testProp: kotlin.Any - FUN public fun (): kotlin.Any + x: CONST String type=kotlin.String value=testFun + PROPERTY name:testProp type:kotlin.Any visibility:public modality:FINAL flags:var + FUN name: visibility:public modality:FINAL <> () returnType:Any flags: BLOCK_BODY CALL 'println(String!): Unit' type=kotlin.Unit origin=null $this: TYPE_OP type=java.io.PrintStream origin=IMPLICIT_NOTNULL typeOperand=java.io.PrintStream GET_FIELD 'out: PrintStream!' type=java.io.PrintStream! origin=GET_PROPERTY - x: CONST String type=kotlin.String value='testProp/get' - RETURN type=kotlin.Nothing from='(): Any' - CONST Int type=kotlin.Int value='42' - FUN public fun (value: kotlin.Any): kotlin.Unit - VALUE_PARAMETER value-parameter value: kotlin.Any + x: CONST String type=kotlin.String value=testProp/get + RETURN type=kotlin.Nothing from=(): Any' + CONST Int type=kotlin.Int value=42 + FUN name: visibility:public modality:FINAL <> (value:kotlin.Any) returnType:Unit flags: + VALUE_PARAMETER name:value index:0 type:kotlin.Any flags: BLOCK_BODY CALL 'println(String!): Unit' type=kotlin.Unit origin=null $this: TYPE_OP type=java.io.PrintStream origin=IMPLICIT_NOTNULL typeOperand=java.io.PrintStream GET_FIELD 'out: PrintStream!' type=java.io.PrintStream! origin=GET_PROPERTY - x: CONST String type=kotlin.String value='testProp/set' - CLASS CLASS TestClass - $this: VALUE_PARAMETER this@TestClass: TestClass - CONSTRUCTOR public constructor TestClass() + x: CONST String type=kotlin.String value=testProp/set + CLASS CLASS name:TestClass modality:FINAL visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:TestClass flags: + CONSTRUCTOR visibility:public <> () returnType:TestClass flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='TestClass' - PROPERTY public final val test: kotlin.Int - FIELD PROPERTY_BACKING_FIELD public final val test: kotlin.Int + PROPERTY name:test type:kotlin.Int visibility:public modality:FINAL flags:val + FIELD PROPERTY_BACKING_FIELD name:test type:kotlin.Int visibility:public EXPRESSION_BODY WHEN type=kotlin.Int origin=WHEN BRANCH - if: CONST Boolean type=kotlin.Boolean value='true' + if: CONST Boolean type=kotlin.Boolean value=true then: BLOCK type=kotlin.Int origin=null CALL 'println(String!): Unit' type=kotlin.Unit origin=null $this: TYPE_OP type=java.io.PrintStream origin=IMPLICIT_NOTNULL typeOperand=java.io.PrintStream GET_FIELD 'out: PrintStream!' type=java.io.PrintStream! origin=GET_PROPERTY - x: CONST String type=kotlin.String value='TestClass/test' - CONST Int type=kotlin.Int value='42' - FUN DEFAULT_PROPERTY_ACCESSOR public final fun (): kotlin.Int - $this: VALUE_PARAMETER this@TestClass: TestClass + x: CONST String type=kotlin.String value=TestClass/test + CONST Int type=kotlin.Int value=42 + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:TestClass) returnType:Int flags: + $this: VALUE_PARAMETER name: type:TestClass flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): Int' + RETURN type=kotlin.Nothing from=(): Int' GET_FIELD 'test: Int' type=kotlin.Int origin=null receiver: GET_VAR 'this@TestClass: TestClass' type=TestClass origin=null ANONYMOUS_INITIALIZER TestClass @@ -50,12 +50,12 @@ FILE /jvmStaticFieldReference.kt CALL 'println(String!): Unit' type=kotlin.Unit origin=null $this: TYPE_OP type=java.io.PrintStream origin=IMPLICIT_NOTNULL typeOperand=java.io.PrintStream GET_FIELD 'out: PrintStream!' type=java.io.PrintStream! origin=GET_PROPERTY - x: CONST String type=kotlin.String value='TestClass/init' - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any + x: CONST String type=kotlin.String value=TestClass/init + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: diff --git a/compiler/testData/ir/irText/expressions/kt16904.txt b/compiler/testData/ir/irText/expressions/kt16904.txt index 5a5d019711d..faf563b5de4 100644 --- a/compiler/testData/ir/irText/expressions/kt16904.txt +++ b/compiler/testData/ir/irText/expressions/kt16904.txt @@ -1,102 +1,102 @@ -FILE /kt16904.kt - CLASS CLASS A - $this: VALUE_PARAMETER this@A: A - CONSTRUCTOR public constructor A() +FILE fqName: fileName:/kt16904.kt + CLASS CLASS name:A modality:ABSTRACT visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:A flags: + CONSTRUCTOR visibility:public <> () returnType:A flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='A' - PROPERTY public final val x: B - FIELD PROPERTY_BACKING_FIELD public final val x: B + PROPERTY name:x type:B visibility:public modality:FINAL flags:val + FIELD PROPERTY_BACKING_FIELD name:x type:B visibility:public EXPRESSION_BODY CALL 'constructor B()' type=B origin=null - FUN DEFAULT_PROPERTY_ACCESSOR public final fun (): B - $this: VALUE_PARAMETER this@A: A + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:A) returnType:B flags: + $this: VALUE_PARAMETER name: type:A flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): B' + RETURN type=kotlin.Nothing from=(): B' GET_FIELD 'x: B' type=B origin=null receiver: GET_VAR 'this@A: A' type=A origin=null - PROPERTY public final var y: kotlin.Int - FIELD PROPERTY_BACKING_FIELD public final var y: kotlin.Int + PROPERTY name:y type:kotlin.Int visibility:public modality:FINAL flags:var + FIELD PROPERTY_BACKING_FIELD name:y type:kotlin.Int visibility:public EXPRESSION_BODY - CONST Int type=kotlin.Int value='0' - FUN DEFAULT_PROPERTY_ACCESSOR public final fun (): kotlin.Int - $this: VALUE_PARAMETER this@A: A + CONST Int type=kotlin.Int value=0 + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:A) returnType:Int flags: + $this: VALUE_PARAMETER name: type:A flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): Int' + RETURN type=kotlin.Nothing from=(): Int' GET_FIELD 'y: Int' type=kotlin.Int origin=null receiver: GET_VAR 'this@A: A' type=A origin=null - FUN DEFAULT_PROPERTY_ACCESSOR public final fun (: kotlin.Int): kotlin.Unit - $this: VALUE_PARAMETER this@A: A - VALUE_PARAMETER value-parameter : kotlin.Int + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:A, :kotlin.Int) returnType:Unit flags: + $this: VALUE_PARAMETER name: type:A flags: + VALUE_PARAMETER name: index:0 type:kotlin.Int flags: BLOCK_BODY SET_FIELD 'y: Int' type=kotlin.Unit origin=null receiver: GET_VAR 'this@A: A' type=A origin=null value: GET_VAR 'value-parameter : Int' type=kotlin.Int origin=null - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any - CLASS CLASS B - $this: VALUE_PARAMETER this@B: B - CONSTRUCTOR public constructor B() + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + CLASS CLASS name:B modality:FINAL visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:B flags: + CONSTRUCTOR visibility:public <> () returnType:B flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='B' - FUN public final operator fun plusAssign(x: kotlin.Int): kotlin.Unit - $this: VALUE_PARAMETER this@B: B - VALUE_PARAMETER value-parameter x: kotlin.Int + FUN name:plusAssign visibility:public modality:FINAL <> ($this:B, x:kotlin.Int) returnType:Unit flags: + $this: VALUE_PARAMETER name: type:B flags: + VALUE_PARAMETER name:x index:0 type:kotlin.Int flags: BLOCK_BODY - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any - CLASS CLASS Test1 - $this: VALUE_PARAMETER this@Test1: Test1 - CONSTRUCTOR public constructor Test1() + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + CLASS CLASS name:Test1 modality:FINAL visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Test1 flags: + CONSTRUCTOR visibility:public <> () returnType:Test1 flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor A()' INSTANCE_INITIALIZER_CALL classDescriptor='Test1' BLOCK type=kotlin.Unit origin=PLUSEQ - VAR IR_TEMPORARY_VARIABLE val tmp0_this: Test1 + VAR IR_TEMPORARY_VARIABLE name:tmp0_this type:Test1 flags:val GET_VAR 'this@Test1: Test1' type=Test1 origin=null CALL 'plusAssign(Int): Unit' type=kotlin.Unit origin=PLUSEQ $this: CALL '(): B' type=B origin=PLUSEQ $this: GET_VAR 'tmp0_this: Test1' type=Test1 origin=null - x: CONST Int type=kotlin.Int value='42' + x: CONST Int type=kotlin.Int value=42 BLOCK type=kotlin.Unit origin=PLUSEQ - VAR IR_TEMPORARY_VARIABLE val tmp1_this: Test1 + VAR IR_TEMPORARY_VARIABLE name:tmp1_this type:Test1 flags:val GET_VAR 'this@Test1: Test1' type=Test1 origin=null CALL '(Int): Unit' type=kotlin.Unit origin=PLUSEQ $this: GET_VAR 'tmp1_this: Test1' type=Test1 origin=null : CALL 'plus(Int): Int' type=kotlin.Int origin=PLUSEQ $this: CALL '(): Int' type=kotlin.Int origin=PLUSEQ $this: GET_VAR 'tmp1_this: Test1' type=Test1 origin=null - other: CONST Int type=kotlin.Int value='42' - PROPERTY FAKE_OVERRIDE public final override val x: B - FUN FAKE_OVERRIDE public final override fun (): B - $this: VALUE_PARAMETER this@A: A - PROPERTY FAKE_OVERRIDE public final override var y: kotlin.Int - FUN FAKE_OVERRIDE public final override fun (): kotlin.Int - $this: VALUE_PARAMETER this@A: A - FUN FAKE_OVERRIDE public final override fun (: kotlin.Int): kotlin.Unit - $this: VALUE_PARAMETER this@A: A - VALUE_PARAMETER value-parameter : kotlin.Int - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any - CLASS CLASS Test2 - $this: VALUE_PARAMETER this@Test2: Test2 - CONSTRUCTOR public constructor Test2() + other: CONST Int type=kotlin.Int value=42 + PROPERTY FAKE_OVERRIDE name:x type:B visibility:public modality:FINAL flags:val + FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:A) returnType:B flags: + $this: VALUE_PARAMETER name: type:A flags: + PROPERTY FAKE_OVERRIDE name:y type:kotlin.Int visibility:public modality:FINAL flags:var + FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:A) returnType:Int flags: + $this: VALUE_PARAMETER name: type:A flags: + FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:A, :kotlin.Int) returnType:Unit flags: + $this: VALUE_PARAMETER name: type:A flags: + VALUE_PARAMETER name: index:0 type:kotlin.Int flags: + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + CLASS CLASS name:Test2 modality:FINAL visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Test2 flags: + CONSTRUCTOR visibility:public <> () returnType:Test2 flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor J()' INSTANCE_INITIALIZER_CALL classDescriptor='Test2' @@ -104,14 +104,14 @@ FILE /kt16904.kt BLOCK_BODY SET_FIELD 'field: Int' type=kotlin.Unit origin=EQ receiver: GET_VAR 'this@Test2: Test2' type=Test2 origin=null - value: CONST Int type=kotlin.Int value='42' - PROPERTY FAKE_OVERRIDE public final override var field: kotlin.Int - FIELD FAKE_OVERRIDE public final override var field: kotlin.Int - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any + value: CONST Int type=kotlin.Int value=42 + PROPERTY FAKE_OVERRIDE name:field type:kotlin.Int visibility:public modality:FINAL flags:var + FIELD FAKE_OVERRIDE name:field type:kotlin.Int visibility:public + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: diff --git a/compiler/testData/ir/irText/expressions/kt16905.txt b/compiler/testData/ir/irText/expressions/kt16905.txt index 96ee4d584c6..cfdd35358b3 100644 --- a/compiler/testData/ir/irText/expressions/kt16905.txt +++ b/compiler/testData/ir/irText/expressions/kt16905.txt @@ -1,64 +1,65 @@ -FILE /kt16905.kt - CLASS CLASS Outer - $this: VALUE_PARAMETER this@Outer: Outer - CONSTRUCTOR public constructor Outer() +FILE fqName: fileName:/kt16905.kt + CLASS CLASS name:Outer modality:FINAL visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Outer flags: + CONSTRUCTOR visibility:public <> () returnType:Outer flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='Outer' - CLASS CLASS Inner - $this: VALUE_PARAMETER this@Inner: Inner - CONSTRUCTOR public constructor Inner() - $outer: VALUE_PARAMETER this@Outer: Outer + CLASS CLASS name:Inner modality:OPEN visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Outer.Inner flags: + CONSTRUCTOR visibility:public <> ($this:Outer) returnType:Outer.Inner flags: + $outer: VALUE_PARAMETER name: type:Outer flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='Inner' - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any - CLASS CLASS InnerDerived0 - $this: VALUE_PARAMETER this@InnerDerived0: InnerDerived0 - CONSTRUCTOR public constructor InnerDerived0() - $outer: VALUE_PARAMETER this@Outer: Outer + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + CLASS CLASS name:InnerDerived0 modality:FINAL visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Outer.InnerDerived0 flags: + CONSTRUCTOR visibility:public <> ($this:Outer) returnType:Outer.InnerDerived0 flags: + $outer: VALUE_PARAMETER name: type:Outer flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Inner()' $this: GET_VAR 'this@Outer: Outer' type=Outer origin=null INSTANCE_INITIALIZER_CALL classDescriptor='InnerDerived0' - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any - CLASS CLASS InnerDerived1 - $this: VALUE_PARAMETER this@InnerDerived1: InnerDerived1 - CONSTRUCTOR public constructor InnerDerived1() - $outer: VALUE_PARAMETER this@Outer: Outer + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + CLASS CLASS name:InnerDerived1 modality:FINAL visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Outer.InnerDerived1 flags: + CONSTRUCTOR visibility:public <> ($this:Outer) returnType:Outer.InnerDerived1 flags: + $outer: VALUE_PARAMETER name: type:Outer flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Inner()' $this: GET_VAR 'this@Outer: Outer' type=Outer origin=null INSTANCE_INITIALIZER_CALL classDescriptor='InnerDerived1' - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: TYPEALIAS typealias OI = Outer.Inner type=Outer.Inner - FUN public fun test(): OI /* = Outer.Inner */ + FUN name:test visibility:public modality:FINAL <> () returnType:Inner flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='test(): OI /* = Outer.Inner */' + RETURN type=kotlin.Nothing from=test(): OI /* = Outer.Inner */' CALL 'constructor Inner()' type=Outer.Inner origin=null $this: CALL 'constructor Outer()' type=Outer origin=null + diff --git a/compiler/testData/ir/irText/expressions/lambdaInCAO.txt b/compiler/testData/ir/irText/expressions/lambdaInCAO.txt index 4e2722bda3b..87ea6cb8ee9 100644 --- a/compiler/testData/ir/irText/expressions/lambdaInCAO.txt +++ b/compiler/testData/ir/irText/expressions/lambdaInCAO.txt @@ -1,41 +1,41 @@ -FILE /lambdaInCAO.kt - FUN public operator fun kotlin.Any.plusAssign(lambda: () -> kotlin.Unit): kotlin.Unit - $receiver: VALUE_PARAMETER this@plusAssign: Any - VALUE_PARAMETER value-parameter lambda: () -> kotlin.Unit +FILE fqName: fileName:/lambdaInCAO.kt + FUN name:plusAssign visibility:public modality:FINAL <> ($receiver:kotlin.Any, lambda:() -> kotlin.Unit) returnType:Unit flags: + $receiver: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:lambda index:0 type:() -> kotlin.Unit flags: BLOCK_BODY - FUN public operator fun kotlin.Any.get(index: () -> kotlin.Unit): kotlin.Int - $receiver: VALUE_PARAMETER this@get: Any - VALUE_PARAMETER value-parameter index: () -> kotlin.Unit + FUN name:get visibility:public modality:FINAL <> ($receiver:kotlin.Any, index:() -> kotlin.Unit) returnType:Int flags: + $receiver: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:index index:0 type:() -> kotlin.Unit flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='get(() -> Unit) on Any: Int' - CONST Int type=kotlin.Int value='42' - FUN public operator fun kotlin.Any.set(index: () -> kotlin.Unit, value: kotlin.Int): kotlin.Unit - $receiver: VALUE_PARAMETER this@set: Any - VALUE_PARAMETER value-parameter index: () -> kotlin.Unit - VALUE_PARAMETER value-parameter value: kotlin.Int + RETURN type=kotlin.Nothing from=get(() -> Unit) on Any: Int' + CONST Int type=kotlin.Int value=42 + FUN name:set visibility:public modality:FINAL <> ($receiver:kotlin.Any, index:() -> kotlin.Unit, value:kotlin.Int) returnType:Unit flags: + $receiver: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:index index:0 type:() -> kotlin.Unit flags: + VALUE_PARAMETER name:value index:1 type:kotlin.Int flags: BLOCK_BODY - FUN public fun test1(a: kotlin.Any): kotlin.Unit - VALUE_PARAMETER value-parameter a: kotlin.Any + FUN name:test1 visibility:public modality:FINAL <> (a:kotlin.Any) returnType:Unit flags: + VALUE_PARAMETER name:a index:0 type:kotlin.Any flags: BLOCK_BODY CALL 'plusAssign(() -> Unit) on Any: Unit' type=kotlin.Unit origin=PLUSEQ $receiver: GET_VAR 'value-parameter a: Any' type=kotlin.Any origin=PLUSEQ lambda: BLOCK type=() -> kotlin.Unit origin=LAMBDA - FUN LOCAL_FUNCTION_FOR_LAMBDA local final fun (): kotlin.Unit + FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> () returnType:Unit flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): Unit' + RETURN type=kotlin.Nothing from=(): Unit' GET_OBJECT 'Unit' type=kotlin.Unit FUNCTION_REFERENCE '(): Unit' type=() -> kotlin.Unit origin=LAMBDA - FUN public fun test2(a: kotlin.Any): kotlin.Unit - VALUE_PARAMETER value-parameter a: kotlin.Any + FUN name:test2 visibility:public modality:FINAL <> (a:kotlin.Any) returnType:Unit flags: + VALUE_PARAMETER name:a index:0 type:kotlin.Any flags: BLOCK_BODY BLOCK type=kotlin.Unit origin=PLUSEQ - VAR IR_TEMPORARY_VARIABLE val tmp0_array: kotlin.Any + VAR IR_TEMPORARY_VARIABLE name:tmp0_array type:kotlin.Any flags:val GET_VAR 'value-parameter a: Any' type=kotlin.Any origin=null - VAR IR_TEMPORARY_VARIABLE val tmp1_index0: () -> kotlin.Unit + VAR IR_TEMPORARY_VARIABLE name:tmp1_index0 type:() -> kotlin.Unit flags:val BLOCK type=() -> kotlin.Unit origin=LAMBDA - FUN LOCAL_FUNCTION_FOR_LAMBDA local final fun (): kotlin.Unit + FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> () returnType:Unit flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): Unit' + RETURN type=kotlin.Nothing from=(): Unit' GET_OBJECT 'Unit' type=kotlin.Unit FUNCTION_REFERENCE '(): Unit' type=() -> kotlin.Unit origin=LAMBDA CALL 'set(() -> Unit, Int) on Any: Unit' type=kotlin.Unit origin=PLUSEQ @@ -45,22 +45,22 @@ FILE /lambdaInCAO.kt $this: CALL 'get(() -> Unit) on Any: Int' type=kotlin.Int origin=PLUSEQ $receiver: GET_VAR 'tmp0_array: Any' type=kotlin.Any origin=null index: GET_VAR 'tmp1_index0: () -> Unit' type=() -> kotlin.Unit origin=null - other: CONST Int type=kotlin.Int value='42' - FUN public fun test3(a: kotlin.Any): kotlin.Unit - VALUE_PARAMETER value-parameter a: kotlin.Any + other: CONST Int type=kotlin.Int value=42 + FUN name:test3 visibility:public modality:FINAL <> (a:kotlin.Any) returnType:Unit flags: + VALUE_PARAMETER name:a index:0 type:kotlin.Any flags: BLOCK_BODY TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit BLOCK type=kotlin.Int origin=POSTFIX_INCR - VAR IR_TEMPORARY_VARIABLE val tmp0_array: kotlin.Any + VAR IR_TEMPORARY_VARIABLE name:tmp0_array type:kotlin.Any flags:val GET_VAR 'value-parameter a: Any' type=kotlin.Any origin=null - VAR IR_TEMPORARY_VARIABLE val tmp1_index0: () -> kotlin.Unit + VAR IR_TEMPORARY_VARIABLE name:tmp1_index0 type:() -> kotlin.Unit flags:val BLOCK type=() -> kotlin.Unit origin=LAMBDA - FUN LOCAL_FUNCTION_FOR_LAMBDA local final fun (): kotlin.Unit + FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> () returnType:Unit flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): Unit' + RETURN type=kotlin.Nothing from=(): Unit' GET_OBJECT 'Unit' type=kotlin.Unit FUNCTION_REFERENCE '(): Unit' type=() -> kotlin.Unit origin=LAMBDA - VAR IR_TEMPORARY_VARIABLE val tmp2: kotlin.Int + VAR IR_TEMPORARY_VARIABLE name:tmp2 type:kotlin.Int flags:val CALL 'get(() -> Unit) on Any: Int' type=kotlin.Int origin=POSTFIX_INCR $receiver: GET_VAR 'tmp0_array: Any' type=kotlin.Any origin=null index: GET_VAR 'tmp1_index0: () -> Unit' type=() -> kotlin.Unit origin=null @@ -70,3 +70,4 @@ FILE /lambdaInCAO.kt value: CALL 'inc(): Int' type=kotlin.Int origin=POSTFIX_INCR $this: GET_VAR 'tmp2: Int' type=kotlin.Int origin=null GET_VAR 'tmp2: Int' type=kotlin.Int origin=null + diff --git a/compiler/testData/ir/irText/expressions/literals.txt b/compiler/testData/ir/irText/expressions/literals.txt index 97f01bb0edc..b7bb14a0f34 100644 --- a/compiler/testData/ir/irText/expressions/literals.txt +++ b/compiler/testData/ir/irText/expressions/literals.txt @@ -1,138 +1,138 @@ -FILE /literals.kt - PROPERTY public val test1: kotlin.Int = 1 - FIELD PROPERTY_BACKING_FIELD public val test1: kotlin.Int = 1 +FILE fqName: fileName:/literals.kt + PROPERTY name:test1 type:kotlin.Int visibility:public modality:FINAL flags:val + FIELD PROPERTY_BACKING_FIELD name:test1 type:kotlin.Int visibility:public EXPRESSION_BODY - CONST Int type=kotlin.Int value='1' - FUN DEFAULT_PROPERTY_ACCESSOR public fun (): kotlin.Int + CONST Int type=kotlin.Int value=1 + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:Int flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): Int' + RETURN type=kotlin.Nothing from=(): Int' GET_FIELD 'test1: Int' type=kotlin.Int origin=null - PROPERTY public val test2: kotlin.Int = -1 - FIELD PROPERTY_BACKING_FIELD public val test2: kotlin.Int = -1 + PROPERTY name:test2 type:kotlin.Int visibility:public modality:FINAL flags:val + FIELD PROPERTY_BACKING_FIELD name:test2 type:kotlin.Int visibility:public EXPRESSION_BODY - CONST Int type=kotlin.Int value='-1' - FUN DEFAULT_PROPERTY_ACCESSOR public fun (): kotlin.Int + CONST Int type=kotlin.Int value=-1 + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:Int flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): Int' + RETURN type=kotlin.Nothing from=(): Int' GET_FIELD 'test2: Int' type=kotlin.Int origin=null - PROPERTY public val test3: kotlin.Boolean = true - FIELD PROPERTY_BACKING_FIELD public val test3: kotlin.Boolean = true + PROPERTY name:test3 type:kotlin.Boolean visibility:public modality:FINAL flags:val + FIELD PROPERTY_BACKING_FIELD name:test3 type:kotlin.Boolean visibility:public EXPRESSION_BODY - CONST Boolean type=kotlin.Boolean value='true' - FUN DEFAULT_PROPERTY_ACCESSOR public fun (): kotlin.Boolean + CONST Boolean type=kotlin.Boolean value=true + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:Boolean flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): Boolean' + RETURN type=kotlin.Nothing from=(): Boolean' GET_FIELD 'test3: Boolean' type=kotlin.Boolean origin=null - PROPERTY public val test4: kotlin.Boolean = false - FIELD PROPERTY_BACKING_FIELD public val test4: kotlin.Boolean = false + PROPERTY name:test4 type:kotlin.Boolean visibility:public modality:FINAL flags:val + FIELD PROPERTY_BACKING_FIELD name:test4 type:kotlin.Boolean visibility:public EXPRESSION_BODY - CONST Boolean type=kotlin.Boolean value='false' - FUN DEFAULT_PROPERTY_ACCESSOR public fun (): kotlin.Boolean + CONST Boolean type=kotlin.Boolean value=false + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:Boolean flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): Boolean' + RETURN type=kotlin.Nothing from=(): Boolean' GET_FIELD 'test4: Boolean' type=kotlin.Boolean origin=null - PROPERTY public val test5: kotlin.String = "abc" - FIELD PROPERTY_BACKING_FIELD public val test5: kotlin.String = "abc" + PROPERTY name:test5 type:kotlin.String visibility:public modality:FINAL flags:val + FIELD PROPERTY_BACKING_FIELD name:test5 type:kotlin.String visibility:public EXPRESSION_BODY - CONST String type=kotlin.String value='abc' - FUN DEFAULT_PROPERTY_ACCESSOR public fun (): kotlin.String + CONST String type=kotlin.String value=abc + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:String flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): String' + RETURN type=kotlin.Nothing from=(): String' GET_FIELD 'test5: String' type=kotlin.String origin=null - PROPERTY public val test6: kotlin.Nothing? = null - FIELD PROPERTY_BACKING_FIELD public val test6: kotlin.Nothing? = null + PROPERTY name:test6 type:kotlin.Nothing? visibility:public modality:FINAL flags:val + FIELD PROPERTY_BACKING_FIELD name:test6 type:kotlin.Nothing? visibility:public EXPRESSION_BODY - CONST Null type=kotlin.Nothing? value='null' - FUN DEFAULT_PROPERTY_ACCESSOR public fun (): kotlin.Nothing? + CONST Null type=kotlin.Nothing? value=null + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:Nothing? flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): Nothing?' + RETURN type=kotlin.Nothing from=(): Nothing?' GET_FIELD 'test6: Nothing?' type=kotlin.Nothing? origin=null - PROPERTY public val test7: kotlin.Long = 1.toLong() - FIELD PROPERTY_BACKING_FIELD public val test7: kotlin.Long = 1.toLong() + PROPERTY name:test7 type:kotlin.Long visibility:public modality:FINAL flags:val + FIELD PROPERTY_BACKING_FIELD name:test7 type:kotlin.Long visibility:public EXPRESSION_BODY - CONST Long type=kotlin.Long value='1' - FUN DEFAULT_PROPERTY_ACCESSOR public fun (): kotlin.Long + CONST Long type=kotlin.Long value=1 + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:Long flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): Long' + RETURN type=kotlin.Nothing from=(): Long' GET_FIELD 'test7: Long' type=kotlin.Long origin=null - PROPERTY public val test8: kotlin.Long = -1.toLong() - FIELD PROPERTY_BACKING_FIELD public val test8: kotlin.Long = -1.toLong() + PROPERTY name:test8 type:kotlin.Long visibility:public modality:FINAL flags:val + FIELD PROPERTY_BACKING_FIELD name:test8 type:kotlin.Long visibility:public EXPRESSION_BODY - CONST Long type=kotlin.Long value='-1' - FUN DEFAULT_PROPERTY_ACCESSOR public fun (): kotlin.Long + CONST Long type=kotlin.Long value=-1 + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:Long flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): Long' + RETURN type=kotlin.Nothing from=(): Long' GET_FIELD 'test8: Long' type=kotlin.Long origin=null - PROPERTY public val test9: kotlin.Double = 1.0.toDouble() - FIELD PROPERTY_BACKING_FIELD public val test9: kotlin.Double = 1.0.toDouble() + PROPERTY name:test9 type:kotlin.Double visibility:public modality:FINAL flags:val + FIELD PROPERTY_BACKING_FIELD name:test9 type:kotlin.Double visibility:public EXPRESSION_BODY - CONST Double type=kotlin.Double value='1.0' - FUN DEFAULT_PROPERTY_ACCESSOR public fun (): kotlin.Double + CONST Double type=kotlin.Double value=1.0 + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:Double flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): Double' + RETURN type=kotlin.Nothing from=(): Double' GET_FIELD 'test9: Double' type=kotlin.Double origin=null - PROPERTY public val test10: kotlin.Double = -1.0.toDouble() - FIELD PROPERTY_BACKING_FIELD public val test10: kotlin.Double = -1.0.toDouble() + PROPERTY name:test10 type:kotlin.Double visibility:public modality:FINAL flags:val + FIELD PROPERTY_BACKING_FIELD name:test10 type:kotlin.Double visibility:public EXPRESSION_BODY - CONST Double type=kotlin.Double value='-1.0' - FUN DEFAULT_PROPERTY_ACCESSOR public fun (): kotlin.Double + CONST Double type=kotlin.Double value=-1.0 + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:Double flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): Double' + RETURN type=kotlin.Nothing from=(): Double' GET_FIELD 'test10: Double' type=kotlin.Double origin=null - PROPERTY public val test11: kotlin.Float = 1.0.toFloat() - FIELD PROPERTY_BACKING_FIELD public val test11: kotlin.Float = 1.0.toFloat() + PROPERTY name:test11 type:kotlin.Float visibility:public modality:FINAL flags:val + FIELD PROPERTY_BACKING_FIELD name:test11 type:kotlin.Float visibility:public EXPRESSION_BODY - CONST Float type=kotlin.Float value='1.0' - FUN DEFAULT_PROPERTY_ACCESSOR public fun (): kotlin.Float + CONST Float type=kotlin.Float value=1.0 + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:Float flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): Float' + RETURN type=kotlin.Nothing from=(): Float' GET_FIELD 'test11: Float' type=kotlin.Float origin=null - PROPERTY public val test12: kotlin.Float = -1.0.toFloat() - FIELD PROPERTY_BACKING_FIELD public val test12: kotlin.Float = -1.0.toFloat() + PROPERTY name:test12 type:kotlin.Float visibility:public modality:FINAL flags:val + FIELD PROPERTY_BACKING_FIELD name:test12 type:kotlin.Float visibility:public EXPRESSION_BODY - CONST Float type=kotlin.Float value='-1.0' - FUN DEFAULT_PROPERTY_ACCESSOR public fun (): kotlin.Float + CONST Float type=kotlin.Float value=-1.0 + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:Float flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): Float' + RETURN type=kotlin.Nothing from=(): Float' GET_FIELD 'test12: Float' type=kotlin.Float origin=null - PROPERTY public val test13: kotlin.Char = \u0061 ('a') - FIELD PROPERTY_BACKING_FIELD public val test13: kotlin.Char = \u0061 ('a') + PROPERTY name:test13 type:kotlin.Char visibility:public modality:FINAL flags:val + FIELD PROPERTY_BACKING_FIELD name:test13 type:kotlin.Char visibility:public EXPRESSION_BODY - CONST Char type=kotlin.Char value='a' - FUN DEFAULT_PROPERTY_ACCESSOR public fun (): kotlin.Char + CONST Char type=kotlin.Char value=a + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:Char flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): Char' + RETURN type=kotlin.Nothing from=(): Char' GET_FIELD 'test13: Char' type=kotlin.Char origin=null - PROPERTY public val testB: kotlin.Byte = 1.toByte() - FIELD PROPERTY_BACKING_FIELD public val testB: kotlin.Byte = 1.toByte() + PROPERTY name:testB type:kotlin.Byte visibility:public modality:FINAL flags:val + FIELD PROPERTY_BACKING_FIELD name:testB type:kotlin.Byte visibility:public EXPRESSION_BODY - CONST Byte type=kotlin.Byte value='1' - FUN DEFAULT_PROPERTY_ACCESSOR public fun (): kotlin.Byte + CONST Byte type=kotlin.Byte value=1 + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:Byte flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): Byte' + RETURN type=kotlin.Nothing from=(): Byte' GET_FIELD 'testB: Byte' type=kotlin.Byte origin=null - PROPERTY public val testS: kotlin.Short = 1.toShort() - FIELD PROPERTY_BACKING_FIELD public val testS: kotlin.Short = 1.toShort() + PROPERTY name:testS type:kotlin.Short visibility:public modality:FINAL flags:val + FIELD PROPERTY_BACKING_FIELD name:testS type:kotlin.Short visibility:public EXPRESSION_BODY - CONST Short type=kotlin.Short value='1' - FUN DEFAULT_PROPERTY_ACCESSOR public fun (): kotlin.Short + CONST Short type=kotlin.Short value=1 + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:Short flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): Short' + RETURN type=kotlin.Nothing from=(): Short' GET_FIELD 'testS: Short' type=kotlin.Short origin=null - PROPERTY public val testI: kotlin.Int = 1 - FIELD PROPERTY_BACKING_FIELD public val testI: kotlin.Int = 1 + PROPERTY name:testI type:kotlin.Int visibility:public modality:FINAL flags:val + FIELD PROPERTY_BACKING_FIELD name:testI type:kotlin.Int visibility:public EXPRESSION_BODY - CONST Int type=kotlin.Int value='1' - FUN DEFAULT_PROPERTY_ACCESSOR public fun (): kotlin.Int + CONST Int type=kotlin.Int value=1 + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:Int flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): Int' + RETURN type=kotlin.Nothing from=(): Int' GET_FIELD 'testI: Int' type=kotlin.Int origin=null - PROPERTY public val testL: kotlin.Long = 1.toLong() - FIELD PROPERTY_BACKING_FIELD public val testL: kotlin.Long = 1.toLong() + PROPERTY name:testL type:kotlin.Long visibility:public modality:FINAL flags:val + FIELD PROPERTY_BACKING_FIELD name:testL type:kotlin.Long visibility:public EXPRESSION_BODY - CONST Long type=kotlin.Long value='1' - FUN DEFAULT_PROPERTY_ACCESSOR public fun (): kotlin.Long + CONST Long type=kotlin.Long value=1 + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:Long flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): Long' + RETURN type=kotlin.Nothing from=(): Long' GET_FIELD 'testL: Long' type=kotlin.Long origin=null diff --git a/compiler/testData/ir/irText/expressions/membersImportedFromObject.txt b/compiler/testData/ir/irText/expressions/membersImportedFromObject.txt index 8bdf52dfdd4..e0c77e7e74c 100644 --- a/compiler/testData/ir/irText/expressions/membersImportedFromObject.txt +++ b/compiler/testData/ir/irText/expressions/membersImportedFromObject.txt @@ -1,81 +1,81 @@ -FILE /membersImportedFromObject.kt - CLASS OBJECT A - $this: VALUE_PARAMETER this@A: A - CONSTRUCTOR private constructor A() +FILE fqName: fileName:/membersImportedFromObject.kt + CLASS OBJECT name:A modality:FINAL visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:A flags: + CONSTRUCTOR visibility:private <> () returnType:A flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='A' - FUN public final fun foo(): kotlin.Int - $this: VALUE_PARAMETER this@A: A + FUN name:foo visibility:public modality:FINAL <> ($this:A) returnType:Int flags: + $this: VALUE_PARAMETER name: type:A flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='foo(): Int' - CONST Int type=kotlin.Int value='1' - FUN public final fun kotlin.Int.fooExt(): kotlin.Int - $this: VALUE_PARAMETER this@A: A - $receiver: VALUE_PARAMETER this@fooExt: Int + RETURN type=kotlin.Nothing from=foo(): Int' + CONST Int type=kotlin.Int value=1 + FUN name:fooExt visibility:public modality:FINAL <> ($this:A, $receiver:kotlin.Int) returnType:Int flags: + $this: VALUE_PARAMETER name: type:A flags: + $receiver: VALUE_PARAMETER name: type:kotlin.Int flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='fooExt() on Int: Int' - CONST Int type=kotlin.Int value='2' - PROPERTY public final val bar: kotlin.Int = 42 - FIELD PROPERTY_BACKING_FIELD public final val bar: kotlin.Int = 42 + RETURN type=kotlin.Nothing from=fooExt() on Int: Int' + CONST Int type=kotlin.Int value=2 + PROPERTY name:bar type:kotlin.Int visibility:public modality:FINAL flags:val + FIELD PROPERTY_BACKING_FIELD name:bar type:kotlin.Int visibility:public EXPRESSION_BODY - CONST Int type=kotlin.Int value='42' - FUN DEFAULT_PROPERTY_ACCESSOR public final fun (): kotlin.Int - $this: VALUE_PARAMETER this@A: A + CONST Int type=kotlin.Int value=42 + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:A) returnType:Int flags: + $this: VALUE_PARAMETER name: type:A flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): Int' + RETURN type=kotlin.Nothing from=(): Int' GET_FIELD 'bar: Int' type=kotlin.Int origin=null receiver: GET_VAR 'this@A: A' type=A origin=null - PROPERTY public final val kotlin.Int.barExt: kotlin.Int - FUN public final fun kotlin.Int.(): kotlin.Int - $this: VALUE_PARAMETER this@A: A - $receiver: VALUE_PARAMETER this@barExt: Int + PROPERTY name:barExt type:kotlin.Int visibility:public modality:FINAL flags:val + FUN name: visibility:public modality:FINAL <> ($this:A, $receiver:kotlin.Int) returnType:Int flags: + $this: VALUE_PARAMETER name: type:A flags: + $receiver: VALUE_PARAMETER name: type:kotlin.Int flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='() on Int: Int' - CONST Int type=kotlin.Int value='43' - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any - PROPERTY public val test1: kotlin.Int - FIELD PROPERTY_BACKING_FIELD public val test1: kotlin.Int + RETURN type=kotlin.Nothing from=() on Int: Int' + CONST Int type=kotlin.Int value=43 + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + PROPERTY name:test1 type:kotlin.Int visibility:public modality:FINAL flags:val + FIELD PROPERTY_BACKING_FIELD name:test1 type:kotlin.Int visibility:public EXPRESSION_BODY CALL 'foo(): Int' type=kotlin.Int origin=null $this: GET_OBJECT 'A' type=A - FUN DEFAULT_PROPERTY_ACCESSOR public fun (): kotlin.Int + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:Int flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): Int' + RETURN type=kotlin.Nothing from=(): Int' GET_FIELD 'test1: Int' type=kotlin.Int origin=null - PROPERTY public val test2: kotlin.Int = 42 - FIELD PROPERTY_BACKING_FIELD public val test2: kotlin.Int = 42 + PROPERTY name:test2 type:kotlin.Int visibility:public modality:FINAL flags:val + FIELD PROPERTY_BACKING_FIELD name:test2 type:kotlin.Int visibility:public EXPRESSION_BODY CALL '(): Int' type=kotlin.Int origin=GET_PROPERTY $this: GET_OBJECT 'A' type=A - FUN DEFAULT_PROPERTY_ACCESSOR public fun (): kotlin.Int + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:Int flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): Int' + RETURN type=kotlin.Nothing from=(): Int' GET_FIELD 'test2: Int' type=kotlin.Int origin=null - PROPERTY public val test3: kotlin.Int - FIELD PROPERTY_BACKING_FIELD public val test3: kotlin.Int + PROPERTY name:test3 type:kotlin.Int visibility:public modality:FINAL flags:val + FIELD PROPERTY_BACKING_FIELD name:test3 type:kotlin.Int visibility:public EXPRESSION_BODY CALL 'fooExt() on Int: Int' type=kotlin.Int origin=null $this: GET_OBJECT 'A' type=A - $receiver: CONST Int type=kotlin.Int value='1' - FUN DEFAULT_PROPERTY_ACCESSOR public fun (): kotlin.Int + $receiver: CONST Int type=kotlin.Int value=1 + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:Int flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): Int' + RETURN type=kotlin.Nothing from=(): Int' GET_FIELD 'test3: Int' type=kotlin.Int origin=null - PROPERTY public val test4: kotlin.Int - FIELD PROPERTY_BACKING_FIELD public val test4: kotlin.Int + PROPERTY name:test4 type:kotlin.Int visibility:public modality:FINAL flags:val + FIELD PROPERTY_BACKING_FIELD name:test4 type:kotlin.Int visibility:public EXPRESSION_BODY CALL '() on Int: Int' type=kotlin.Int origin=GET_PROPERTY $this: GET_OBJECT 'A' type=A - $receiver: CONST Int type=kotlin.Int value='1' - FUN DEFAULT_PROPERTY_ACCESSOR public fun (): kotlin.Int + $receiver: CONST Int type=kotlin.Int value=1 + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:Int flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): Int' + RETURN type=kotlin.Nothing from=(): Int' GET_FIELD 'test4: Int' type=kotlin.Int origin=null diff --git a/compiler/testData/ir/irText/expressions/multipleThisReferences.txt b/compiler/testData/ir/irText/expressions/multipleThisReferences.txt index 1bc88a0504e..a16a21407a2 100644 --- a/compiler/testData/ir/irText/expressions/multipleThisReferences.txt +++ b/compiler/testData/ir/irText/expressions/multipleThisReferences.txt @@ -1,103 +1,103 @@ -FILE /multipleThisReferences.kt - CLASS CLASS Outer - $this: VALUE_PARAMETER this@Outer: Outer - CONSTRUCTOR public constructor Outer() +FILE fqName: fileName:/multipleThisReferences.kt + CLASS CLASS name:Outer modality:FINAL visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Outer flags: + CONSTRUCTOR visibility:public <> () returnType:Outer flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='Outer' - CLASS CLASS Inner - $this: VALUE_PARAMETER this@Inner: Inner - CONSTRUCTOR public constructor Inner(x: kotlin.Int) - $outer: VALUE_PARAMETER this@Outer: Outer - VALUE_PARAMETER value-parameter x: kotlin.Int + CLASS CLASS name:Inner modality:OPEN visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Outer.Inner flags: + CONSTRUCTOR visibility:public <> ($this:Outer, x:kotlin.Int) returnType:Outer.Inner flags: + $outer: VALUE_PARAMETER name: type:Outer flags: + VALUE_PARAMETER name:x index:0 type:kotlin.Int flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='Inner' - PROPERTY public final val x: kotlin.Int - FIELD PROPERTY_BACKING_FIELD public final val x: kotlin.Int + PROPERTY name:x type:kotlin.Int visibility:public modality:FINAL flags:val + FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.Int visibility:public EXPRESSION_BODY GET_VAR 'value-parameter x: Int' type=kotlin.Int origin=INITIALIZE_PROPERTY_FROM_PARAMETER - FUN DEFAULT_PROPERTY_ACCESSOR public final fun (): kotlin.Int - $this: VALUE_PARAMETER this@Inner: Inner + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:Outer.Inner) returnType:Int flags: + $this: VALUE_PARAMETER name: type:Outer.Inner flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): Int' + RETURN type=kotlin.Nothing from=(): Int' GET_FIELD 'x: Int' type=kotlin.Int origin=null receiver: GET_VAR 'this@Inner: Inner' type=Outer.Inner origin=null - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any - CLASS CLASS Host - $this: VALUE_PARAMETER this@Host: Host - CONSTRUCTOR public constructor Host(y: kotlin.Int) - VALUE_PARAMETER value-parameter y: kotlin.Int + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + CLASS CLASS name:Host modality:FINAL visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Host flags: + CONSTRUCTOR visibility:public <> (y:kotlin.Int) returnType:Host flags: + VALUE_PARAMETER name:y index:0 type:kotlin.Int flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='Host' - PROPERTY public final val y: kotlin.Int - FIELD PROPERTY_BACKING_FIELD public final val y: kotlin.Int + PROPERTY name:y type:kotlin.Int visibility:public modality:FINAL flags:val + FIELD PROPERTY_BACKING_FIELD name:y type:kotlin.Int visibility:public EXPRESSION_BODY GET_VAR 'value-parameter y: Int' type=kotlin.Int origin=INITIALIZE_PROPERTY_FROM_PARAMETER - FUN DEFAULT_PROPERTY_ACCESSOR public final fun (): kotlin.Int - $this: VALUE_PARAMETER this@Host: Host + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:Host) returnType:Int flags: + $this: VALUE_PARAMETER name: type:Host flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): Int' + RETURN type=kotlin.Nothing from=(): Int' GET_FIELD 'y: Int' type=kotlin.Int origin=null receiver: GET_VAR 'this@Host: Host' type=Host origin=null - FUN public final fun Outer.test(): Outer.Inner - $this: VALUE_PARAMETER this@Host: Host - $receiver: VALUE_PARAMETER this@test: Outer + FUN name:test visibility:public modality:FINAL <> ($this:Host, $receiver:Outer) returnType:Inner flags: + $this: VALUE_PARAMETER name: type:Host flags: + $receiver: VALUE_PARAMETER name: type:Outer flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='test() on Outer: Outer.Inner' + RETURN type=kotlin.Nothing from=test() on Outer: Outer.Inner' BLOCK type=Host.test. origin=OBJECT_LITERAL - CLASS CLASS - $this: VALUE_PARAMETER this@: - CONSTRUCTOR public constructor () + CLASS CLASS name: modality:FINAL visibility:local flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Host.test. flags: + CONSTRUCTOR visibility:public <> () returnType:Host.test. flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Inner(Int)' $this: GET_VAR 'this@test: Outer' type=Outer origin=null - x: CONST Int type=kotlin.Int value='42' + x: CONST Int type=kotlin.Int value=42 INSTANCE_INITIALIZER_CALL classDescriptor='' - PROPERTY public final val xx: kotlin.Int - FIELD PROPERTY_BACKING_FIELD public final val xx: kotlin.Int + PROPERTY name:xx type:kotlin.Int visibility:public modality:FINAL flags:val + FIELD PROPERTY_BACKING_FIELD name:xx type:kotlin.Int visibility:public EXPRESSION_BODY CALL 'plus(Int): Int' type=kotlin.Int origin=PLUS $this: CALL '(): Int' type=kotlin.Int origin=GET_PROPERTY $this: GET_VAR 'this@: ' type=Host.test. origin=null other: CALL '(): Int' type=kotlin.Int origin=GET_PROPERTY $this: GET_VAR 'this@Host: Host' type=Host origin=null - FUN DEFAULT_PROPERTY_ACCESSOR public final fun (): kotlin.Int - $this: VALUE_PARAMETER this@: + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:Host.test.) returnType:Int flags: + $this: VALUE_PARAMETER name: type:Host.test. flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): Int' + RETURN type=kotlin.Nothing from=(): Int' GET_FIELD 'xx: Int' type=kotlin.Int origin=null receiver: GET_VAR 'this@: ' type=Host.test. origin=null - PROPERTY FAKE_OVERRIDE public final override val x: kotlin.Int - FUN FAKE_OVERRIDE public final override fun (): kotlin.Int - $this: VALUE_PARAMETER this@Inner: Inner - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any + PROPERTY FAKE_OVERRIDE name:x type:kotlin.Int visibility:public modality:FINAL flags:val + FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:Outer.Inner) returnType:Int flags: + $this: VALUE_PARAMETER name: type:Outer.Inner flags: + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: CALL 'constructor ()' type=Host.test. origin=OBJECT_LITERAL - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: diff --git a/compiler/testData/ir/irText/expressions/objectAsCallable.txt b/compiler/testData/ir/irText/expressions/objectAsCallable.txt index bff4325d390..1cb3879ff18 100644 --- a/compiler/testData/ir/irText/expressions/objectAsCallable.txt +++ b/compiler/testData/ir/irText/expressions/objectAsCallable.txt @@ -1,82 +1,83 @@ -FILE /objectAsCallable.kt - CLASS OBJECT A - $this: VALUE_PARAMETER this@A: A - CONSTRUCTOR private constructor A() +FILE fqName: fileName:/objectAsCallable.kt + CLASS OBJECT name:A modality:FINAL visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:A flags: + CONSTRUCTOR visibility:private <> () returnType:A flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='A' - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any - CLASS ENUM_CLASS En - $this: VALUE_PARAMETER this@En: En - CONSTRUCTOR private constructor En() + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + CLASS ENUM_CLASS name:En modality:FINAL visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:En flags: + CONSTRUCTOR visibility:private <> () returnType:En flags: BLOCK_BODY ENUM_CONSTRUCTOR_CALL 'constructor Enum(String, Int)' >: null INSTANCE_INITIALIZER_CALL classDescriptor='En' - ENUM_ENTRY enum entry X + ENUM_ENTRY name:X init: ENUM_CONSTRUCTOR_CALL 'constructor En()' - FUN FAKE_OVERRIDE protected final override fun clone(): kotlin.Any - $this: VALUE_PARAMETER this@Enum: Enum - FUN FAKE_OVERRIDE protected/*protected and package*/ final override fun finalize(): kotlin.Unit - $this: VALUE_PARAMETER this@Enum: Enum - FUN FAKE_OVERRIDE public final override fun getDeclaringClass(): java.lang.Class! - $this: VALUE_PARAMETER this@Enum: Enum - FUN FAKE_OVERRIDE public final override fun compareTo(other: En): kotlin.Int - $this: VALUE_PARAMETER this@Enum: Enum - VALUE_PARAMETER value-parameter other: En - FUN FAKE_OVERRIDE public final override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Enum: Enum - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public final override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Enum: Enum - PROPERTY FAKE_OVERRIDE public final override val name: kotlin.String - FUN FAKE_OVERRIDE public final override fun (): kotlin.String - $this: VALUE_PARAMETER this@Enum: Enum - PROPERTY FAKE_OVERRIDE public final override val ordinal: kotlin.Int - FUN FAKE_OVERRIDE public final override fun (): kotlin.Int - $this: VALUE_PARAMETER this@Enum: Enum - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Enum: Enum - FUN ENUM_CLASS_SPECIAL_MEMBER public final fun values(): kotlin.Array + FUN FAKE_OVERRIDE name:clone visibility:protected modality:FINAL <> ($this:kotlin.Enum) returnType:Any flags: + $this: VALUE_PARAMETER name: type:kotlin.Enum flags: + FUN FAKE_OVERRIDE name:finalize visibility:protected/*protected and package*/ modality:FINAL <> ($this:kotlin.Enum) returnType:Unit flags: + $this: VALUE_PARAMETER name: type:kotlin.Enum flags: + FUN FAKE_OVERRIDE name:getDeclaringClass visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:(java.lang.Class<(En..En?)>..java.lang.Class<(En..En?)>?) flags: + $this: VALUE_PARAMETER name: type:kotlin.Enum flags: + FUN FAKE_OVERRIDE name:compareTo visibility:public modality:FINAL <> ($this:kotlin.Enum, other:En) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Enum flags: + VALUE_PARAMETER name:other index:0 type:En flags: + FUN FAKE_OVERRIDE name:equals visibility:public modality:FINAL <> ($this:kotlin.Enum, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Enum flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Enum flags: + PROPERTY FAKE_OVERRIDE name:name type:kotlin.String visibility:public modality:FINAL flags:val + FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Enum flags: + PROPERTY FAKE_OVERRIDE name:ordinal type:kotlin.Int visibility:public modality:FINAL flags:val + FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Enum flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Enum) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Enum flags: + FUN ENUM_CLASS_SPECIAL_MEMBER name:values visibility:public modality:FINAL <> () returnType:Array flags: SYNTHETIC_BODY kind=ENUM_VALUES - FUN ENUM_CLASS_SPECIAL_MEMBER public final fun valueOf(value: kotlin.String): En - VALUE_PARAMETER value-parameter value: kotlin.String + FUN ENUM_CLASS_SPECIAL_MEMBER name:valueOf visibility:public modality:FINAL <> (value:kotlin.String) returnType:En flags: + VALUE_PARAMETER name:value index:0 type:kotlin.String flags: SYNTHETIC_BODY kind=ENUM_VALUEOF - FUN public operator fun A.invoke(i: kotlin.Int): kotlin.Int - $receiver: VALUE_PARAMETER this@invoke: A - VALUE_PARAMETER value-parameter i: kotlin.Int + FUN name:invoke visibility:public modality:FINAL <> ($receiver:A, i:kotlin.Int) returnType:Int flags: + $receiver: VALUE_PARAMETER name: type:A flags: + VALUE_PARAMETER name:i index:0 type:kotlin.Int flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='invoke(Int) on A: Int' + RETURN type=kotlin.Nothing from=invoke(Int) on A: Int' GET_VAR 'value-parameter i: Int' type=kotlin.Int origin=null - FUN public operator fun En.invoke(i: kotlin.Int): kotlin.Int - $receiver: VALUE_PARAMETER this@invoke: En - VALUE_PARAMETER value-parameter i: kotlin.Int + FUN name:invoke visibility:public modality:FINAL <> ($receiver:En, i:kotlin.Int) returnType:Int flags: + $receiver: VALUE_PARAMETER name: type:En flags: + VALUE_PARAMETER name:i index:0 type:kotlin.Int flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='invoke(Int) on En: Int' + RETURN type=kotlin.Nothing from=invoke(Int) on En: Int' GET_VAR 'value-parameter i: Int' type=kotlin.Int origin=null - PROPERTY public val test1: kotlin.Int - FIELD PROPERTY_BACKING_FIELD public val test1: kotlin.Int + PROPERTY name:test1 type:kotlin.Int visibility:public modality:FINAL flags:val + FIELD PROPERTY_BACKING_FIELD name:test1 type:kotlin.Int visibility:public EXPRESSION_BODY CALL 'invoke(Int) on A: Int' type=kotlin.Int origin=INVOKE $receiver: GET_OBJECT 'A' type=A - i: CONST Int type=kotlin.Int value='42' - FUN DEFAULT_PROPERTY_ACCESSOR public fun (): kotlin.Int + i: CONST Int type=kotlin.Int value=42 + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:Int flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): Int' + RETURN type=kotlin.Nothing from=(): Int' GET_FIELD 'test1: Int' type=kotlin.Int origin=null - PROPERTY public val test2: kotlin.Int - FIELD PROPERTY_BACKING_FIELD public val test2: kotlin.Int + PROPERTY name:test2 type:kotlin.Int visibility:public modality:FINAL flags:val + FIELD PROPERTY_BACKING_FIELD name:test2 type:kotlin.Int visibility:public EXPRESSION_BODY CALL 'invoke(Int) on En: Int' type=kotlin.Int origin=INVOKE $receiver: GET_ENUM 'X' type=En - i: CONST Int type=kotlin.Int value='42' - FUN DEFAULT_PROPERTY_ACCESSOR public fun (): kotlin.Int + i: CONST Int type=kotlin.Int value=42 + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:Int flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): Int' + RETURN type=kotlin.Nothing from=(): Int' GET_FIELD 'test2: Int' type=kotlin.Int origin=null + diff --git a/compiler/testData/ir/irText/expressions/objectClassReference.txt b/compiler/testData/ir/irText/expressions/objectClassReference.txt index e506660bb04..5797c4b2681 100644 --- a/compiler/testData/ir/irText/expressions/objectClassReference.txt +++ b/compiler/testData/ir/irText/expressions/objectClassReference.txt @@ -1,18 +1,18 @@ -FILE /objectClassReference.kt - CLASS OBJECT A - $this: VALUE_PARAMETER this@A: A - CONSTRUCTOR private constructor A() +FILE fqName: fileName:/objectClassReference.kt + CLASS OBJECT name:A modality:FINAL visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:A flags: + CONSTRUCTOR visibility:private <> () returnType:A flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='A' - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any - FUN public fun test(): kotlin.Unit + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN name:test visibility:public modality:FINAL <> () returnType:Unit flags: BLOCK_BODY TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit CLASS_REFERENCE 'A' type=kotlin.reflect.KClass diff --git a/compiler/testData/ir/irText/expressions/outerClassInstanceReference.txt b/compiler/testData/ir/irText/expressions/outerClassInstanceReference.txt index b2f13868f91..fba659e699a 100644 --- a/compiler/testData/ir/irText/expressions/outerClassInstanceReference.txt +++ b/compiler/testData/ir/irText/expressions/outerClassInstanceReference.txt @@ -1,38 +1,38 @@ -FILE /outerClassInstanceReference.kt - CLASS CLASS Outer - $this: VALUE_PARAMETER this@Outer: Outer - CONSTRUCTOR public constructor Outer() +FILE fqName: fileName:/outerClassInstanceReference.kt + CLASS CLASS name:Outer modality:FINAL visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Outer flags: + CONSTRUCTOR visibility:public <> () returnType:Outer flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='Outer' - FUN public final fun outer(): kotlin.Unit - $this: VALUE_PARAMETER this@Outer: Outer + FUN name:outer visibility:public modality:FINAL <> ($this:Outer) returnType:Unit flags: + $this: VALUE_PARAMETER name: type:Outer flags: BLOCK_BODY - CLASS CLASS Inner - $this: VALUE_PARAMETER this@Inner: Inner - CONSTRUCTOR public constructor Inner() - $outer: VALUE_PARAMETER this@Outer: Outer + CLASS CLASS name:Inner modality:FINAL visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Outer.Inner flags: + CONSTRUCTOR visibility:public <> ($this:Outer) returnType:Outer.Inner flags: + $outer: VALUE_PARAMETER name: type:Outer flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='Inner' - FUN public final fun inner(): kotlin.Unit - $this: VALUE_PARAMETER this@Inner: Inner + FUN name:inner visibility:public modality:FINAL <> ($this:Outer.Inner) returnType:Unit flags: + $this: VALUE_PARAMETER name: type:Outer.Inner flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='inner(): Unit' + RETURN type=kotlin.Nothing from=inner(): Unit' CALL 'outer(): Unit' type=kotlin.Unit origin=null $this: GET_VAR 'this@Outer: Outer' type=Outer origin=null - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: diff --git a/compiler/testData/ir/irText/expressions/primitiveComparisons.txt b/compiler/testData/ir/irText/expressions/primitiveComparisons.txt index ee605961083..cfbdbdf9fdd 100644 --- a/compiler/testData/ir/irText/expressions/primitiveComparisons.txt +++ b/compiler/testData/ir/irText/expressions/primitiveComparisons.txt @@ -1,216 +1,216 @@ -FILE /primitiveComparisons.kt - FUN public fun btest1(a: kotlin.Byte, b: kotlin.Byte): kotlin.Boolean - VALUE_PARAMETER value-parameter a: kotlin.Byte - VALUE_PARAMETER value-parameter b: kotlin.Byte +FILE fqName: fileName:/primitiveComparisons.kt + FUN name:btest1 visibility:public modality:FINAL <> (a:kotlin.Byte, b:kotlin.Byte) returnType:Boolean flags: + VALUE_PARAMETER name:a index:0 type:kotlin.Byte flags: + VALUE_PARAMETER name:b index:1 type:kotlin.Byte flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='btest1(Byte, Byte): Boolean' + RETURN type=kotlin.Nothing from=btest1(Byte, Byte): Boolean' CALL 'GT0(Int): Boolean' type=kotlin.Boolean origin=GT arg0: CALL 'compareTo(Byte): Int' type=kotlin.Int origin=GT $this: GET_VAR 'value-parameter a: Byte' type=kotlin.Byte origin=null other: GET_VAR 'value-parameter b: Byte' type=kotlin.Byte origin=null - FUN public fun btest2(a: kotlin.Byte, b: kotlin.Byte): kotlin.Boolean - VALUE_PARAMETER value-parameter a: kotlin.Byte - VALUE_PARAMETER value-parameter b: kotlin.Byte + FUN name:btest2 visibility:public modality:FINAL <> (a:kotlin.Byte, b:kotlin.Byte) returnType:Boolean flags: + VALUE_PARAMETER name:a index:0 type:kotlin.Byte flags: + VALUE_PARAMETER name:b index:1 type:kotlin.Byte flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='btest2(Byte, Byte): Boolean' + RETURN type=kotlin.Nothing from=btest2(Byte, Byte): Boolean' CALL 'LT0(Int): Boolean' type=kotlin.Boolean origin=LT arg0: CALL 'compareTo(Byte): Int' type=kotlin.Int origin=LT $this: GET_VAR 'value-parameter a: Byte' type=kotlin.Byte origin=null other: GET_VAR 'value-parameter b: Byte' type=kotlin.Byte origin=null - FUN public fun btest3(a: kotlin.Byte, b: kotlin.Byte): kotlin.Boolean - VALUE_PARAMETER value-parameter a: kotlin.Byte - VALUE_PARAMETER value-parameter b: kotlin.Byte + FUN name:btest3 visibility:public modality:FINAL <> (a:kotlin.Byte, b:kotlin.Byte) returnType:Boolean flags: + VALUE_PARAMETER name:a index:0 type:kotlin.Byte flags: + VALUE_PARAMETER name:b index:1 type:kotlin.Byte flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='btest3(Byte, Byte): Boolean' + RETURN type=kotlin.Nothing from=btest3(Byte, Byte): Boolean' CALL 'GTEQ0(Int): Boolean' type=kotlin.Boolean origin=GTEQ arg0: CALL 'compareTo(Byte): Int' type=kotlin.Int origin=GTEQ $this: GET_VAR 'value-parameter a: Byte' type=kotlin.Byte origin=null other: GET_VAR 'value-parameter b: Byte' type=kotlin.Byte origin=null - FUN public fun btest4(a: kotlin.Byte, b: kotlin.Byte): kotlin.Boolean - VALUE_PARAMETER value-parameter a: kotlin.Byte - VALUE_PARAMETER value-parameter b: kotlin.Byte + FUN name:btest4 visibility:public modality:FINAL <> (a:kotlin.Byte, b:kotlin.Byte) returnType:Boolean flags: + VALUE_PARAMETER name:a index:0 type:kotlin.Byte flags: + VALUE_PARAMETER name:b index:1 type:kotlin.Byte flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='btest4(Byte, Byte): Boolean' + RETURN type=kotlin.Nothing from=btest4(Byte, Byte): Boolean' CALL 'LTEQ0(Int): Boolean' type=kotlin.Boolean origin=LTEQ arg0: CALL 'compareTo(Byte): Int' type=kotlin.Int origin=LTEQ $this: GET_VAR 'value-parameter a: Byte' type=kotlin.Byte origin=null other: GET_VAR 'value-parameter b: Byte' type=kotlin.Byte origin=null - FUN public fun stest1(a: kotlin.Short, b: kotlin.Short): kotlin.Boolean - VALUE_PARAMETER value-parameter a: kotlin.Short - VALUE_PARAMETER value-parameter b: kotlin.Short + FUN name:stest1 visibility:public modality:FINAL <> (a:kotlin.Short, b:kotlin.Short) returnType:Boolean flags: + VALUE_PARAMETER name:a index:0 type:kotlin.Short flags: + VALUE_PARAMETER name:b index:1 type:kotlin.Short flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='stest1(Short, Short): Boolean' + RETURN type=kotlin.Nothing from=stest1(Short, Short): Boolean' CALL 'GT0(Int): Boolean' type=kotlin.Boolean origin=GT arg0: CALL 'compareTo(Short): Int' type=kotlin.Int origin=GT $this: GET_VAR 'value-parameter a: Short' type=kotlin.Short origin=null other: GET_VAR 'value-parameter b: Short' type=kotlin.Short origin=null - FUN public fun stest2(a: kotlin.Short, b: kotlin.Short): kotlin.Boolean - VALUE_PARAMETER value-parameter a: kotlin.Short - VALUE_PARAMETER value-parameter b: kotlin.Short + FUN name:stest2 visibility:public modality:FINAL <> (a:kotlin.Short, b:kotlin.Short) returnType:Boolean flags: + VALUE_PARAMETER name:a index:0 type:kotlin.Short flags: + VALUE_PARAMETER name:b index:1 type:kotlin.Short flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='stest2(Short, Short): Boolean' + RETURN type=kotlin.Nothing from=stest2(Short, Short): Boolean' CALL 'LT0(Int): Boolean' type=kotlin.Boolean origin=LT arg0: CALL 'compareTo(Short): Int' type=kotlin.Int origin=LT $this: GET_VAR 'value-parameter a: Short' type=kotlin.Short origin=null other: GET_VAR 'value-parameter b: Short' type=kotlin.Short origin=null - FUN public fun stest3(a: kotlin.Short, b: kotlin.Short): kotlin.Boolean - VALUE_PARAMETER value-parameter a: kotlin.Short - VALUE_PARAMETER value-parameter b: kotlin.Short + FUN name:stest3 visibility:public modality:FINAL <> (a:kotlin.Short, b:kotlin.Short) returnType:Boolean flags: + VALUE_PARAMETER name:a index:0 type:kotlin.Short flags: + VALUE_PARAMETER name:b index:1 type:kotlin.Short flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='stest3(Short, Short): Boolean' + RETURN type=kotlin.Nothing from=stest3(Short, Short): Boolean' CALL 'GTEQ0(Int): Boolean' type=kotlin.Boolean origin=GTEQ arg0: CALL 'compareTo(Short): Int' type=kotlin.Int origin=GTEQ $this: GET_VAR 'value-parameter a: Short' type=kotlin.Short origin=null other: GET_VAR 'value-parameter b: Short' type=kotlin.Short origin=null - FUN public fun stest4(a: kotlin.Short, b: kotlin.Short): kotlin.Boolean - VALUE_PARAMETER value-parameter a: kotlin.Short - VALUE_PARAMETER value-parameter b: kotlin.Short + FUN name:stest4 visibility:public modality:FINAL <> (a:kotlin.Short, b:kotlin.Short) returnType:Boolean flags: + VALUE_PARAMETER name:a index:0 type:kotlin.Short flags: + VALUE_PARAMETER name:b index:1 type:kotlin.Short flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='stest4(Short, Short): Boolean' + RETURN type=kotlin.Nothing from=stest4(Short, Short): Boolean' CALL 'LTEQ0(Int): Boolean' type=kotlin.Boolean origin=LTEQ arg0: CALL 'compareTo(Short): Int' type=kotlin.Int origin=LTEQ $this: GET_VAR 'value-parameter a: Short' type=kotlin.Short origin=null other: GET_VAR 'value-parameter b: Short' type=kotlin.Short origin=null - FUN public fun itest1(a: kotlin.Int, b: kotlin.Int): kotlin.Boolean - VALUE_PARAMETER value-parameter a: kotlin.Int - VALUE_PARAMETER value-parameter b: kotlin.Int + FUN name:itest1 visibility:public modality:FINAL <> (a:kotlin.Int, b:kotlin.Int) returnType:Boolean flags: + VALUE_PARAMETER name:a index:0 type:kotlin.Int flags: + VALUE_PARAMETER name:b index:1 type:kotlin.Int flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='itest1(Int, Int): Boolean' + RETURN type=kotlin.Nothing from=itest1(Int, Int): Boolean' CALL 'GT0(Int): Boolean' type=kotlin.Boolean origin=GT arg0: CALL 'compareTo(Int): Int' type=kotlin.Int origin=GT $this: GET_VAR 'value-parameter a: Int' type=kotlin.Int origin=null other: GET_VAR 'value-parameter b: Int' type=kotlin.Int origin=null - FUN public fun itest2(a: kotlin.Int, b: kotlin.Int): kotlin.Boolean - VALUE_PARAMETER value-parameter a: kotlin.Int - VALUE_PARAMETER value-parameter b: kotlin.Int + FUN name:itest2 visibility:public modality:FINAL <> (a:kotlin.Int, b:kotlin.Int) returnType:Boolean flags: + VALUE_PARAMETER name:a index:0 type:kotlin.Int flags: + VALUE_PARAMETER name:b index:1 type:kotlin.Int flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='itest2(Int, Int): Boolean' + RETURN type=kotlin.Nothing from=itest2(Int, Int): Boolean' CALL 'LT0(Int): Boolean' type=kotlin.Boolean origin=LT arg0: CALL 'compareTo(Int): Int' type=kotlin.Int origin=LT $this: GET_VAR 'value-parameter a: Int' type=kotlin.Int origin=null other: GET_VAR 'value-parameter b: Int' type=kotlin.Int origin=null - FUN public fun itest3(a: kotlin.Int, b: kotlin.Int): kotlin.Boolean - VALUE_PARAMETER value-parameter a: kotlin.Int - VALUE_PARAMETER value-parameter b: kotlin.Int + FUN name:itest3 visibility:public modality:FINAL <> (a:kotlin.Int, b:kotlin.Int) returnType:Boolean flags: + VALUE_PARAMETER name:a index:0 type:kotlin.Int flags: + VALUE_PARAMETER name:b index:1 type:kotlin.Int flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='itest3(Int, Int): Boolean' + RETURN type=kotlin.Nothing from=itest3(Int, Int): Boolean' CALL 'GTEQ0(Int): Boolean' type=kotlin.Boolean origin=GTEQ arg0: CALL 'compareTo(Int): Int' type=kotlin.Int origin=GTEQ $this: GET_VAR 'value-parameter a: Int' type=kotlin.Int origin=null other: GET_VAR 'value-parameter b: Int' type=kotlin.Int origin=null - FUN public fun itest4(a: kotlin.Int, b: kotlin.Int): kotlin.Boolean - VALUE_PARAMETER value-parameter a: kotlin.Int - VALUE_PARAMETER value-parameter b: kotlin.Int + FUN name:itest4 visibility:public modality:FINAL <> (a:kotlin.Int, b:kotlin.Int) returnType:Boolean flags: + VALUE_PARAMETER name:a index:0 type:kotlin.Int flags: + VALUE_PARAMETER name:b index:1 type:kotlin.Int flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='itest4(Int, Int): Boolean' + RETURN type=kotlin.Nothing from=itest4(Int, Int): Boolean' CALL 'LTEQ0(Int): Boolean' type=kotlin.Boolean origin=LTEQ arg0: CALL 'compareTo(Int): Int' type=kotlin.Int origin=LTEQ $this: GET_VAR 'value-parameter a: Int' type=kotlin.Int origin=null other: GET_VAR 'value-parameter b: Int' type=kotlin.Int origin=null - FUN public fun ltest1(a: kotlin.Long, b: kotlin.Long): kotlin.Boolean - VALUE_PARAMETER value-parameter a: kotlin.Long - VALUE_PARAMETER value-parameter b: kotlin.Long + FUN name:ltest1 visibility:public modality:FINAL <> (a:kotlin.Long, b:kotlin.Long) returnType:Boolean flags: + VALUE_PARAMETER name:a index:0 type:kotlin.Long flags: + VALUE_PARAMETER name:b index:1 type:kotlin.Long flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='ltest1(Long, Long): Boolean' + RETURN type=kotlin.Nothing from=ltest1(Long, Long): Boolean' CALL 'GT0(Int): Boolean' type=kotlin.Boolean origin=GT arg0: CALL 'compareTo(Long): Int' type=kotlin.Int origin=GT $this: GET_VAR 'value-parameter a: Long' type=kotlin.Long origin=null other: GET_VAR 'value-parameter b: Long' type=kotlin.Long origin=null - FUN public fun ltest2(a: kotlin.Long, b: kotlin.Long): kotlin.Boolean - VALUE_PARAMETER value-parameter a: kotlin.Long - VALUE_PARAMETER value-parameter b: kotlin.Long + FUN name:ltest2 visibility:public modality:FINAL <> (a:kotlin.Long, b:kotlin.Long) returnType:Boolean flags: + VALUE_PARAMETER name:a index:0 type:kotlin.Long flags: + VALUE_PARAMETER name:b index:1 type:kotlin.Long flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='ltest2(Long, Long): Boolean' + RETURN type=kotlin.Nothing from=ltest2(Long, Long): Boolean' CALL 'LT0(Int): Boolean' type=kotlin.Boolean origin=LT arg0: CALL 'compareTo(Long): Int' type=kotlin.Int origin=LT $this: GET_VAR 'value-parameter a: Long' type=kotlin.Long origin=null other: GET_VAR 'value-parameter b: Long' type=kotlin.Long origin=null - FUN public fun ltest3(a: kotlin.Long, b: kotlin.Long): kotlin.Boolean - VALUE_PARAMETER value-parameter a: kotlin.Long - VALUE_PARAMETER value-parameter b: kotlin.Long + FUN name:ltest3 visibility:public modality:FINAL <> (a:kotlin.Long, b:kotlin.Long) returnType:Boolean flags: + VALUE_PARAMETER name:a index:0 type:kotlin.Long flags: + VALUE_PARAMETER name:b index:1 type:kotlin.Long flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='ltest3(Long, Long): Boolean' + RETURN type=kotlin.Nothing from=ltest3(Long, Long): Boolean' CALL 'GTEQ0(Int): Boolean' type=kotlin.Boolean origin=GTEQ arg0: CALL 'compareTo(Long): Int' type=kotlin.Int origin=GTEQ $this: GET_VAR 'value-parameter a: Long' type=kotlin.Long origin=null other: GET_VAR 'value-parameter b: Long' type=kotlin.Long origin=null - FUN public fun ltest4(a: kotlin.Long, b: kotlin.Long): kotlin.Boolean - VALUE_PARAMETER value-parameter a: kotlin.Long - VALUE_PARAMETER value-parameter b: kotlin.Long + FUN name:ltest4 visibility:public modality:FINAL <> (a:kotlin.Long, b:kotlin.Long) returnType:Boolean flags: + VALUE_PARAMETER name:a index:0 type:kotlin.Long flags: + VALUE_PARAMETER name:b index:1 type:kotlin.Long flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='ltest4(Long, Long): Boolean' + RETURN type=kotlin.Nothing from=ltest4(Long, Long): Boolean' CALL 'LTEQ0(Int): Boolean' type=kotlin.Boolean origin=LTEQ arg0: CALL 'compareTo(Long): Int' type=kotlin.Int origin=LTEQ $this: GET_VAR 'value-parameter a: Long' type=kotlin.Long origin=null other: GET_VAR 'value-parameter b: Long' type=kotlin.Long origin=null - FUN public fun ftest1(a: kotlin.Float, b: kotlin.Float): kotlin.Boolean - VALUE_PARAMETER value-parameter a: kotlin.Float - VALUE_PARAMETER value-parameter b: kotlin.Float + FUN name:ftest1 visibility:public modality:FINAL <> (a:kotlin.Float, b:kotlin.Float) returnType:Boolean flags: + VALUE_PARAMETER name:a index:0 type:kotlin.Float flags: + VALUE_PARAMETER name:b index:1 type:kotlin.Float flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='ftest1(Float, Float): Boolean' + RETURN type=kotlin.Nothing from=ftest1(Float, Float): Boolean' CALL 'GT0(Int): Boolean' type=kotlin.Boolean origin=GT arg0: CALL 'compareTo(Float): Int' type=kotlin.Int origin=GT $this: GET_VAR 'value-parameter a: Float' type=kotlin.Float origin=null other: GET_VAR 'value-parameter b: Float' type=kotlin.Float origin=null - FUN public fun ftest2(a: kotlin.Float, b: kotlin.Float): kotlin.Boolean - VALUE_PARAMETER value-parameter a: kotlin.Float - VALUE_PARAMETER value-parameter b: kotlin.Float + FUN name:ftest2 visibility:public modality:FINAL <> (a:kotlin.Float, b:kotlin.Float) returnType:Boolean flags: + VALUE_PARAMETER name:a index:0 type:kotlin.Float flags: + VALUE_PARAMETER name:b index:1 type:kotlin.Float flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='ftest2(Float, Float): Boolean' + RETURN type=kotlin.Nothing from=ftest2(Float, Float): Boolean' CALL 'LT0(Int): Boolean' type=kotlin.Boolean origin=LT arg0: CALL 'compareTo(Float): Int' type=kotlin.Int origin=LT $this: GET_VAR 'value-parameter a: Float' type=kotlin.Float origin=null other: GET_VAR 'value-parameter b: Float' type=kotlin.Float origin=null - FUN public fun ftest3(a: kotlin.Float, b: kotlin.Float): kotlin.Boolean - VALUE_PARAMETER value-parameter a: kotlin.Float - VALUE_PARAMETER value-parameter b: kotlin.Float + FUN name:ftest3 visibility:public modality:FINAL <> (a:kotlin.Float, b:kotlin.Float) returnType:Boolean flags: + VALUE_PARAMETER name:a index:0 type:kotlin.Float flags: + VALUE_PARAMETER name:b index:1 type:kotlin.Float flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='ftest3(Float, Float): Boolean' + RETURN type=kotlin.Nothing from=ftest3(Float, Float): Boolean' CALL 'GTEQ0(Int): Boolean' type=kotlin.Boolean origin=GTEQ arg0: CALL 'compareTo(Float): Int' type=kotlin.Int origin=GTEQ $this: GET_VAR 'value-parameter a: Float' type=kotlin.Float origin=null other: GET_VAR 'value-parameter b: Float' type=kotlin.Float origin=null - FUN public fun ftest4(a: kotlin.Float, b: kotlin.Float): kotlin.Boolean - VALUE_PARAMETER value-parameter a: kotlin.Float - VALUE_PARAMETER value-parameter b: kotlin.Float + FUN name:ftest4 visibility:public modality:FINAL <> (a:kotlin.Float, b:kotlin.Float) returnType:Boolean flags: + VALUE_PARAMETER name:a index:0 type:kotlin.Float flags: + VALUE_PARAMETER name:b index:1 type:kotlin.Float flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='ftest4(Float, Float): Boolean' + RETURN type=kotlin.Nothing from=ftest4(Float, Float): Boolean' CALL 'LTEQ0(Int): Boolean' type=kotlin.Boolean origin=LTEQ arg0: CALL 'compareTo(Float): Int' type=kotlin.Int origin=LTEQ $this: GET_VAR 'value-parameter a: Float' type=kotlin.Float origin=null other: GET_VAR 'value-parameter b: Float' type=kotlin.Float origin=null - FUN public fun dtest1(a: kotlin.Double, b: kotlin.Double): kotlin.Boolean - VALUE_PARAMETER value-parameter a: kotlin.Double - VALUE_PARAMETER value-parameter b: kotlin.Double + FUN name:dtest1 visibility:public modality:FINAL <> (a:kotlin.Double, b:kotlin.Double) returnType:Boolean flags: + VALUE_PARAMETER name:a index:0 type:kotlin.Double flags: + VALUE_PARAMETER name:b index:1 type:kotlin.Double flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='dtest1(Double, Double): Boolean' + RETURN type=kotlin.Nothing from=dtest1(Double, Double): Boolean' CALL 'GT0(Int): Boolean' type=kotlin.Boolean origin=GT arg0: CALL 'compareTo(Double): Int' type=kotlin.Int origin=GT $this: GET_VAR 'value-parameter a: Double' type=kotlin.Double origin=null other: GET_VAR 'value-parameter b: Double' type=kotlin.Double origin=null - FUN public fun dtest2(a: kotlin.Double, b: kotlin.Double): kotlin.Boolean - VALUE_PARAMETER value-parameter a: kotlin.Double - VALUE_PARAMETER value-parameter b: kotlin.Double + FUN name:dtest2 visibility:public modality:FINAL <> (a:kotlin.Double, b:kotlin.Double) returnType:Boolean flags: + VALUE_PARAMETER name:a index:0 type:kotlin.Double flags: + VALUE_PARAMETER name:b index:1 type:kotlin.Double flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='dtest2(Double, Double): Boolean' + RETURN type=kotlin.Nothing from=dtest2(Double, Double): Boolean' CALL 'LT0(Int): Boolean' type=kotlin.Boolean origin=LT arg0: CALL 'compareTo(Double): Int' type=kotlin.Int origin=LT $this: GET_VAR 'value-parameter a: Double' type=kotlin.Double origin=null other: GET_VAR 'value-parameter b: Double' type=kotlin.Double origin=null - FUN public fun dtest3(a: kotlin.Double, b: kotlin.Double): kotlin.Boolean - VALUE_PARAMETER value-parameter a: kotlin.Double - VALUE_PARAMETER value-parameter b: kotlin.Double + FUN name:dtest3 visibility:public modality:FINAL <> (a:kotlin.Double, b:kotlin.Double) returnType:Boolean flags: + VALUE_PARAMETER name:a index:0 type:kotlin.Double flags: + VALUE_PARAMETER name:b index:1 type:kotlin.Double flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='dtest3(Double, Double): Boolean' + RETURN type=kotlin.Nothing from=dtest3(Double, Double): Boolean' CALL 'GTEQ0(Int): Boolean' type=kotlin.Boolean origin=GTEQ arg0: CALL 'compareTo(Double): Int' type=kotlin.Int origin=GTEQ $this: GET_VAR 'value-parameter a: Double' type=kotlin.Double origin=null other: GET_VAR 'value-parameter b: Double' type=kotlin.Double origin=null - FUN public fun dtest4(a: kotlin.Double, b: kotlin.Double): kotlin.Boolean - VALUE_PARAMETER value-parameter a: kotlin.Double - VALUE_PARAMETER value-parameter b: kotlin.Double + FUN name:dtest4 visibility:public modality:FINAL <> (a:kotlin.Double, b:kotlin.Double) returnType:Boolean flags: + VALUE_PARAMETER name:a index:0 type:kotlin.Double flags: + VALUE_PARAMETER name:b index:1 type:kotlin.Double flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='dtest4(Double, Double): Boolean' + RETURN type=kotlin.Nothing from=dtest4(Double, Double): Boolean' CALL 'LTEQ0(Int): Boolean' type=kotlin.Boolean origin=LTEQ arg0: CALL 'compareTo(Double): Int' type=kotlin.Int origin=LTEQ $this: GET_VAR 'value-parameter a: Double' type=kotlin.Double origin=null diff --git a/compiler/testData/ir/irText/expressions/primitivesImplicitConversions.txt b/compiler/testData/ir/irText/expressions/primitivesImplicitConversions.txt index d816ee3d468..5b41f5b51f7 100644 --- a/compiler/testData/ir/irText/expressions/primitivesImplicitConversions.txt +++ b/compiler/testData/ir/irText/expressions/primitivesImplicitConversions.txt @@ -1,113 +1,113 @@ -FILE /primitivesImplicitConversions.kt - PROPERTY public val test1: kotlin.Long = 42.toLong() - FIELD PROPERTY_BACKING_FIELD public val test1: kotlin.Long = 42.toLong() +FILE fqName: fileName:/primitivesImplicitConversions.kt + PROPERTY name:test1 type:kotlin.Long visibility:public modality:FINAL flags:val + FIELD PROPERTY_BACKING_FIELD name:test1 type:kotlin.Long visibility:public EXPRESSION_BODY - CONST Long type=kotlin.Long value='42' - FUN DEFAULT_PROPERTY_ACCESSOR public fun (): kotlin.Long + CONST Long type=kotlin.Long value=42 + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:Long flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): Long' + RETURN type=kotlin.Nothing from=(): Long' GET_FIELD 'test1: Long' type=kotlin.Long origin=null - PROPERTY public val test2: kotlin.Short = 42.toShort() - FIELD PROPERTY_BACKING_FIELD public val test2: kotlin.Short = 42.toShort() + PROPERTY name:test2 type:kotlin.Short visibility:public modality:FINAL flags:val + FIELD PROPERTY_BACKING_FIELD name:test2 type:kotlin.Short visibility:public EXPRESSION_BODY - CONST Short type=kotlin.Short value='42' - FUN DEFAULT_PROPERTY_ACCESSOR public fun (): kotlin.Short + CONST Short type=kotlin.Short value=42 + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:Short flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): Short' + RETURN type=kotlin.Nothing from=(): Short' GET_FIELD 'test2: Short' type=kotlin.Short origin=null - PROPERTY public val test3: kotlin.Byte = 42.toByte() - FIELD PROPERTY_BACKING_FIELD public val test3: kotlin.Byte = 42.toByte() + PROPERTY name:test3 type:kotlin.Byte visibility:public modality:FINAL flags:val + FIELD PROPERTY_BACKING_FIELD name:test3 type:kotlin.Byte visibility:public EXPRESSION_BODY - CONST Byte type=kotlin.Byte value='42' - FUN DEFAULT_PROPERTY_ACCESSOR public fun (): kotlin.Byte + CONST Byte type=kotlin.Byte value=42 + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:Byte flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): Byte' + RETURN type=kotlin.Nothing from=(): Byte' GET_FIELD 'test3: Byte' type=kotlin.Byte origin=null - PROPERTY public val test4: kotlin.Long = -42.toLong() - FIELD PROPERTY_BACKING_FIELD public val test4: kotlin.Long = -42.toLong() + PROPERTY name:test4 type:kotlin.Long visibility:public modality:FINAL flags:val + FIELD PROPERTY_BACKING_FIELD name:test4 type:kotlin.Long visibility:public EXPRESSION_BODY TYPE_OP type=kotlin.Long origin=IMPLICIT_INTEGER_COERCION typeOperand=kotlin.Long CALL 'unaryMinus(): Int' type=kotlin.Int origin=null - $this: CONST Int type=kotlin.Int value='42' - FUN DEFAULT_PROPERTY_ACCESSOR public fun (): kotlin.Long + $this: CONST Int type=kotlin.Int value=42 + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:Long flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): Long' + RETURN type=kotlin.Nothing from=(): Long' GET_FIELD 'test4: Long' type=kotlin.Long origin=null - PROPERTY public val test5: kotlin.Short = -42.toShort() - FIELD PROPERTY_BACKING_FIELD public val test5: kotlin.Short = -42.toShort() + PROPERTY name:test5 type:kotlin.Short visibility:public modality:FINAL flags:val + FIELD PROPERTY_BACKING_FIELD name:test5 type:kotlin.Short visibility:public EXPRESSION_BODY TYPE_OP type=kotlin.Short origin=IMPLICIT_INTEGER_COERCION typeOperand=kotlin.Short CALL 'unaryMinus(): Int' type=kotlin.Int origin=null - $this: CONST Int type=kotlin.Int value='42' - FUN DEFAULT_PROPERTY_ACCESSOR public fun (): kotlin.Short + $this: CONST Int type=kotlin.Int value=42 + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:Short flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): Short' + RETURN type=kotlin.Nothing from=(): Short' GET_FIELD 'test5: Short' type=kotlin.Short origin=null - PROPERTY public val test6: kotlin.Byte = -42.toByte() - FIELD PROPERTY_BACKING_FIELD public val test6: kotlin.Byte = -42.toByte() + PROPERTY name:test6 type:kotlin.Byte visibility:public modality:FINAL flags:val + FIELD PROPERTY_BACKING_FIELD name:test6 type:kotlin.Byte visibility:public EXPRESSION_BODY TYPE_OP type=kotlin.Byte origin=IMPLICIT_INTEGER_COERCION typeOperand=kotlin.Byte CALL 'unaryMinus(): Int' type=kotlin.Int origin=null - $this: CONST Int type=kotlin.Int value='42' - FUN DEFAULT_PROPERTY_ACCESSOR public fun (): kotlin.Byte + $this: CONST Int type=kotlin.Int value=42 + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:Byte flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): Byte' + RETURN type=kotlin.Nothing from=(): Byte' GET_FIELD 'test6: Byte' type=kotlin.Byte origin=null - FUN public fun test(): kotlin.Unit + FUN name:test visibility:public modality:FINAL <> () returnType:Unit flags: BLOCK_BODY - VAR val test1: kotlin.Int? = 42 - CONST Int type=kotlin.Int value='42' - VAR val test2: kotlin.Long = 42.toLong() - CONST Long type=kotlin.Long value='42' - VAR val test3: kotlin.Long? = 42.toLong() - CONST Long type=kotlin.Long value='42' - VAR val test4: kotlin.Long? = -1.toLong() - CONST Long type=kotlin.Long value='-1' - VAR val test5: kotlin.Long? = -1.toLong() + VAR name:test1 type:kotlin.Int? flags:val + CONST Int type=kotlin.Int value=42 + VAR name:test2 type:kotlin.Long flags:val + CONST Long type=kotlin.Long value=42 + VAR name:test3 type:kotlin.Long? flags:val + CONST Long type=kotlin.Long value=42 + VAR name:test4 type:kotlin.Long? flags:val + CONST Long type=kotlin.Long value=-1 + VAR name:test5 type:kotlin.Long? flags:val TYPE_OP type=kotlin.Long origin=IMPLICIT_INTEGER_COERCION typeOperand=kotlin.Long CALL 'unaryMinus(): Int' type=kotlin.Int origin=null - $this: CONST Int type=kotlin.Int value='1' - VAR val test6: kotlin.Short? = -1.toShort() + $this: CONST Int type=kotlin.Int value=1 + VAR name:test6 type:kotlin.Short? flags:val TYPE_OP type=kotlin.Short origin=IMPLICIT_INTEGER_COERCION typeOperand=kotlin.Short CALL 'unaryMinus(): Int' type=kotlin.Int origin=null - $this: CONST Int type=kotlin.Int value='1' - VAR val test7: kotlin.Byte? = -1.toByte() + $this: CONST Int type=kotlin.Int value=1 + VAR name:test7 type:kotlin.Byte? flags:val TYPE_OP type=kotlin.Byte origin=IMPLICIT_INTEGER_COERCION typeOperand=kotlin.Byte CALL 'unaryMinus(): Int' type=kotlin.Int origin=null - $this: CONST Int type=kotlin.Int value='1' - FUN public fun testImplicitArguments(x: kotlin.Long = ...): kotlin.Unit - VALUE_PARAMETER value-parameter x: kotlin.Long = ... + $this: CONST Int type=kotlin.Int value=1 + FUN name:testImplicitArguments visibility:public modality:FINAL <> (x:kotlin.Long) returnType:Unit flags: + VALUE_PARAMETER name:x index:0 type:kotlin.Long flags: EXPRESSION_BODY TYPE_OP type=kotlin.Long origin=IMPLICIT_INTEGER_COERCION typeOperand=kotlin.Long CALL 'unaryMinus(): Int' type=kotlin.Int origin=null - $this: CONST Int type=kotlin.Int value='1' + $this: CONST Int type=kotlin.Int value=1 BLOCK_BODY - CLASS CLASS TestImplicitArguments - $this: VALUE_PARAMETER this@TestImplicitArguments: TestImplicitArguments - CONSTRUCTOR public constructor TestImplicitArguments(x: kotlin.Long = ...) - VALUE_PARAMETER value-parameter x: kotlin.Long = ... + CLASS CLASS name:TestImplicitArguments modality:FINAL visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:TestImplicitArguments flags: + CONSTRUCTOR visibility:public <> (x:kotlin.Long) returnType:TestImplicitArguments flags: + VALUE_PARAMETER name:x index:0 type:kotlin.Long flags: EXPRESSION_BODY TYPE_OP type=kotlin.Long origin=IMPLICIT_INTEGER_COERCION typeOperand=kotlin.Long CALL 'unaryMinus(): Int' type=kotlin.Int origin=null - $this: CONST Int type=kotlin.Int value='1' + $this: CONST Int type=kotlin.Int value=1 BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='TestImplicitArguments' - PROPERTY public final val x: kotlin.Long - FIELD PROPERTY_BACKING_FIELD public final val x: kotlin.Long + PROPERTY name:x type:kotlin.Long visibility:public modality:FINAL flags:val + FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.Long visibility:public EXPRESSION_BODY GET_VAR 'value-parameter x: Long = ...' type=kotlin.Long origin=INITIALIZE_PROPERTY_FROM_PARAMETER - FUN DEFAULT_PROPERTY_ACCESSOR public final fun (): kotlin.Long - $this: VALUE_PARAMETER this@TestImplicitArguments: TestImplicitArguments + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:TestImplicitArguments) returnType:Long flags: + $this: VALUE_PARAMETER name: type:TestImplicitArguments flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): Long' + RETURN type=kotlin.Nothing from=(): Long' GET_FIELD 'x: Long' type=kotlin.Long origin=null receiver: GET_VAR 'this@TestImplicitArguments: TestImplicitArguments' type=TestImplicitArguments origin=null - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: diff --git a/compiler/testData/ir/irText/expressions/references.txt b/compiler/testData/ir/irText/expressions/references.txt index 10002d8adea..bb125239488 100644 --- a/compiler/testData/ir/irText/expressions/references.txt +++ b/compiler/testData/ir/irText/expressions/references.txt @@ -1,54 +1,54 @@ -FILE /references.kt - PROPERTY public val ok: kotlin.String = "OK" - FIELD PROPERTY_BACKING_FIELD public val ok: kotlin.String = "OK" +FILE fqName: fileName:/references.kt + PROPERTY name:ok type:kotlin.String visibility:public modality:FINAL flags:val + FIELD PROPERTY_BACKING_FIELD name:ok type:kotlin.String visibility:public EXPRESSION_BODY - CONST String type=kotlin.String value='OK' - FUN DEFAULT_PROPERTY_ACCESSOR public fun (): kotlin.String + CONST String type=kotlin.String value=OK + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:String flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): String' + RETURN type=kotlin.Nothing from=(): String' GET_FIELD 'ok: String' type=kotlin.String origin=null - PROPERTY public val ok2: kotlin.String = "OK" - FIELD PROPERTY_BACKING_FIELD public val ok2: kotlin.String = "OK" + PROPERTY name:ok2 type:kotlin.String visibility:public modality:FINAL flags:val + FIELD PROPERTY_BACKING_FIELD name:ok2 type:kotlin.String visibility:public EXPRESSION_BODY CALL '(): String' type=kotlin.String origin=GET_PROPERTY - FUN DEFAULT_PROPERTY_ACCESSOR public fun (): kotlin.String + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:String flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): String' + RETURN type=kotlin.Nothing from=(): String' GET_FIELD 'ok2: String' type=kotlin.String origin=null - PROPERTY public val ok3: kotlin.String - FUN public fun (): kotlin.String + PROPERTY name:ok3 type:kotlin.String visibility:public modality:FINAL flags:val + FUN name: visibility:public modality:FINAL <> () returnType:String flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): String' - CONST String type=kotlin.String value='OK' - FUN public fun test1(): kotlin.String + RETURN type=kotlin.Nothing from=(): String' + CONST String type=kotlin.String value=OK + FUN name:test1 visibility:public modality:FINAL <> () returnType:String flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='test1(): String' + RETURN type=kotlin.Nothing from=test1(): String' CALL '(): String' type=kotlin.String origin=GET_PROPERTY - FUN public fun test2(x: kotlin.String): kotlin.String - VALUE_PARAMETER value-parameter x: kotlin.String + FUN name:test2 visibility:public modality:FINAL <> (x:kotlin.String) returnType:String flags: + VALUE_PARAMETER name:x index:0 type:kotlin.String flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='test2(String): String' + RETURN type=kotlin.Nothing from=test2(String): String' GET_VAR 'value-parameter x: String' type=kotlin.String origin=null - FUN public fun test3(): kotlin.String + FUN name:test3 visibility:public modality:FINAL <> () returnType:String flags: BLOCK_BODY - VAR val x: kotlin.String = "OK" - CONST String type=kotlin.String value='OK' - RETURN type=kotlin.Nothing from='test3(): String' + VAR name:x type:kotlin.String flags:val + CONST String type=kotlin.String value=OK + RETURN type=kotlin.Nothing from=test3(): String' GET_VAR 'x: String' type=kotlin.String origin=null - FUN public fun test4(): kotlin.String + FUN name:test4 visibility:public modality:FINAL <> () returnType:String flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='test4(): String' + RETURN type=kotlin.Nothing from=test4(): String' CALL '(): String' type=kotlin.String origin=GET_PROPERTY - PROPERTY public val kotlin.String.okext: kotlin.String - FUN public fun kotlin.String.(): kotlin.String - $receiver: VALUE_PARAMETER this@okext: String + PROPERTY name:okext type:kotlin.String visibility:public modality:FINAL flags:val + FUN name: visibility:public modality:FINAL <> ($receiver:kotlin.String) returnType:String flags: + $receiver: VALUE_PARAMETER name: type:kotlin.String flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='() on String: String' - CONST String type=kotlin.String value='OK' - FUN public fun kotlin.String.test5(): kotlin.String - $receiver: VALUE_PARAMETER this@test5: String + RETURN type=kotlin.Nothing from=() on String: String' + CONST String type=kotlin.String value=OK + FUN name:test5 visibility:public modality:FINAL <> ($receiver:kotlin.String) returnType:String flags: + $receiver: VALUE_PARAMETER name: type:kotlin.String flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='test5() on String: String' + RETURN type=kotlin.Nothing from=test5() on String: String' CALL '() on String: String' type=kotlin.String origin=GET_PROPERTY $receiver: GET_VAR 'this@test5: String' type=kotlin.String origin=null diff --git a/compiler/testData/ir/irText/expressions/reflectionLiterals.txt b/compiler/testData/ir/irText/expressions/reflectionLiterals.txt index 136c393e471..b9864f15add 100644 --- a/compiler/testData/ir/irText/expressions/reflectionLiterals.txt +++ b/compiler/testData/ir/irText/expressions/reflectionLiterals.txt @@ -1,86 +1,86 @@ -FILE /reflectionLiterals.kt - CLASS CLASS A - $this: VALUE_PARAMETER this@A: A - CONSTRUCTOR public constructor A() +FILE fqName: fileName:/reflectionLiterals.kt + CLASS CLASS name:A modality:FINAL visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:A flags: + CONSTRUCTOR visibility:public <> () returnType:A flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='A' - FUN public final fun foo(): kotlin.Unit - $this: VALUE_PARAMETER this@A: A + FUN name:foo visibility:public modality:FINAL <> ($this:A) returnType:Unit flags: + $this: VALUE_PARAMETER name: type:A flags: BLOCK_BODY - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any - FUN public fun bar(): kotlin.Unit + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN name:bar visibility:public modality:FINAL <> () returnType:Unit flags: BLOCK_BODY - PROPERTY public val qux: kotlin.Int = 42 - FIELD PROPERTY_BACKING_FIELD public val qux: kotlin.Int = 42 + PROPERTY name:qux type:kotlin.Int visibility:public modality:FINAL flags:val + FIELD PROPERTY_BACKING_FIELD name:qux type:kotlin.Int visibility:public EXPRESSION_BODY - CONST Int type=kotlin.Int value='42' - FUN DEFAULT_PROPERTY_ACCESSOR public fun (): kotlin.Int + CONST Int type=kotlin.Int value=42 + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:Int flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): Int' + RETURN type=kotlin.Nothing from=(): Int' GET_FIELD 'qux: Int' type=kotlin.Int origin=null - PROPERTY public val test1: kotlin.reflect.KClass - FIELD PROPERTY_BACKING_FIELD public val test1: kotlin.reflect.KClass + PROPERTY name:test1 type:kotlin.reflect.KClass visibility:public modality:FINAL flags:val + FIELD PROPERTY_BACKING_FIELD name:test1 type:kotlin.reflect.KClass visibility:public EXPRESSION_BODY CLASS_REFERENCE 'A' type=kotlin.reflect.KClass - FUN DEFAULT_PROPERTY_ACCESSOR public fun (): kotlin.reflect.KClass + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:KClass flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): KClass' + RETURN type=kotlin.Nothing from=(): KClass' GET_FIELD 'test1: KClass' type=kotlin.reflect.KClass origin=null - PROPERTY public val test2: kotlin.reflect.KClass - FIELD PROPERTY_BACKING_FIELD public val test2: kotlin.reflect.KClass + PROPERTY name:test2 type:kotlin.reflect.KClass visibility:public modality:FINAL flags:val + FIELD PROPERTY_BACKING_FIELD name:test2 type:kotlin.reflect.KClass visibility:public EXPRESSION_BODY GET_CLASS type=kotlin.reflect.KClass CALL '(): Int' type=kotlin.Int origin=GET_PROPERTY - FUN DEFAULT_PROPERTY_ACCESSOR public fun (): kotlin.reflect.KClass + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:KClass flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): KClass' + RETURN type=kotlin.Nothing from=(): KClass' GET_FIELD 'test2: KClass' type=kotlin.reflect.KClass origin=null - PROPERTY public val test3: kotlin.reflect.KFunction1 - FIELD PROPERTY_BACKING_FIELD public val test3: kotlin.reflect.KFunction1 + PROPERTY name:test3 type:kotlin.reflect.KFunction1 visibility:public modality:FINAL flags:val + FIELD PROPERTY_BACKING_FIELD name:test3 type:kotlin.reflect.KFunction1 visibility:public EXPRESSION_BODY FUNCTION_REFERENCE 'foo(): Unit' type=kotlin.reflect.KFunction1 origin=null - FUN DEFAULT_PROPERTY_ACCESSOR public fun (): kotlin.reflect.KFunction1 + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:KFunction1 flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): KFunction1' + RETURN type=kotlin.Nothing from=(): KFunction1' GET_FIELD 'test3: KFunction1' type=kotlin.reflect.KFunction1 origin=null - PROPERTY public val test4: kotlin.reflect.KFunction0 - FIELD PROPERTY_BACKING_FIELD public val test4: kotlin.reflect.KFunction0 + PROPERTY name:test4 type:kotlin.reflect.KFunction0 visibility:public modality:FINAL flags:val + FIELD PROPERTY_BACKING_FIELD name:test4 type:kotlin.reflect.KFunction0 visibility:public EXPRESSION_BODY FUNCTION_REFERENCE 'constructor A()' type=kotlin.reflect.KFunction0 origin=null - FUN DEFAULT_PROPERTY_ACCESSOR public fun (): kotlin.reflect.KFunction0 + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:KFunction0 flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): KFunction0' + RETURN type=kotlin.Nothing from=(): KFunction0' GET_FIELD 'test4: KFunction0' type=kotlin.reflect.KFunction0 origin=null - PROPERTY public val test5: kotlin.reflect.KFunction0 - FIELD PROPERTY_BACKING_FIELD public val test5: kotlin.reflect.KFunction0 + PROPERTY name:test5 type:kotlin.reflect.KFunction0 visibility:public modality:FINAL flags:val + FIELD PROPERTY_BACKING_FIELD name:test5 type:kotlin.reflect.KFunction0 visibility:public EXPRESSION_BODY FUNCTION_REFERENCE 'foo(): Unit' type=kotlin.reflect.KFunction0 origin=null $this: CALL 'constructor A()' type=A origin=null - FUN DEFAULT_PROPERTY_ACCESSOR public fun (): kotlin.reflect.KFunction0 + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:KFunction0 flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): KFunction0' + RETURN type=kotlin.Nothing from=(): KFunction0' GET_FIELD 'test5: KFunction0' type=kotlin.reflect.KFunction0 origin=null - PROPERTY public val test6: kotlin.reflect.KFunction0 - FIELD PROPERTY_BACKING_FIELD public val test6: kotlin.reflect.KFunction0 + PROPERTY name:test6 type:kotlin.reflect.KFunction0 visibility:public modality:FINAL flags:val + FIELD PROPERTY_BACKING_FIELD name:test6 type:kotlin.reflect.KFunction0 visibility:public EXPRESSION_BODY FUNCTION_REFERENCE 'bar(): Unit' type=kotlin.reflect.KFunction0 origin=null - FUN DEFAULT_PROPERTY_ACCESSOR public fun (): kotlin.reflect.KFunction0 + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:KFunction0 flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): KFunction0' + RETURN type=kotlin.Nothing from=(): KFunction0' GET_FIELD 'test6: KFunction0' type=kotlin.reflect.KFunction0 origin=null - PROPERTY public val test7: kotlin.reflect.KProperty0 - FIELD PROPERTY_BACKING_FIELD public val test7: kotlin.reflect.KProperty0 + PROPERTY name:test7 type:kotlin.reflect.KProperty0 visibility:public modality:FINAL flags:val + FIELD PROPERTY_BACKING_FIELD name:test7 type:kotlin.reflect.KProperty0 visibility:public EXPRESSION_BODY PROPERTY_REFERENCE 'qux: Int' field=null getter='(): Int' setter=null type=kotlin.reflect.KProperty0 origin=null - FUN DEFAULT_PROPERTY_ACCESSOR public fun (): kotlin.reflect.KProperty0 + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:KProperty0 flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): KProperty0' + RETURN type=kotlin.Nothing from=(): KProperty0' GET_FIELD 'test7: KProperty0' type=kotlin.reflect.KProperty0 origin=null diff --git a/compiler/testData/ir/irText/expressions/safeAssignment.txt b/compiler/testData/ir/irText/expressions/safeAssignment.txt index 6e634cb25cc..d82a4e908e8 100644 --- a/compiler/testData/ir/irText/expressions/safeAssignment.txt +++ b/compiler/testData/ir/irText/expressions/safeAssignment.txt @@ -1,51 +1,51 @@ -FILE /safeAssignment.kt - CLASS CLASS C - $this: VALUE_PARAMETER this@C: C - CONSTRUCTOR public constructor C(x: kotlin.Int) - VALUE_PARAMETER value-parameter x: kotlin.Int +FILE fqName: fileName:/safeAssignment.kt + CLASS CLASS name:C modality:FINAL visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:C flags: + CONSTRUCTOR visibility:public <> (x:kotlin.Int) returnType:C flags: + VALUE_PARAMETER name:x index:0 type:kotlin.Int flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='C' - PROPERTY public final var x: kotlin.Int - FIELD PROPERTY_BACKING_FIELD public final var x: kotlin.Int + PROPERTY name:x type:kotlin.Int visibility:public modality:FINAL flags:var + FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.Int visibility:public EXPRESSION_BODY GET_VAR 'value-parameter x: Int' type=kotlin.Int origin=INITIALIZE_PROPERTY_FROM_PARAMETER - FUN DEFAULT_PROPERTY_ACCESSOR public final fun (): kotlin.Int - $this: VALUE_PARAMETER this@C: C + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:C) returnType:Int flags: + $this: VALUE_PARAMETER name: type:C flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): Int' + RETURN type=kotlin.Nothing from=(): Int' GET_FIELD 'x: Int' type=kotlin.Int origin=null receiver: GET_VAR 'this@C: C' type=C origin=null - FUN DEFAULT_PROPERTY_ACCESSOR public final fun (: kotlin.Int): kotlin.Unit - $this: VALUE_PARAMETER this@C: C - VALUE_PARAMETER value-parameter : kotlin.Int + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:C, :kotlin.Int) returnType:Unit flags: + $this: VALUE_PARAMETER name: type:C flags: + VALUE_PARAMETER name: index:0 type:kotlin.Int flags: BLOCK_BODY SET_FIELD 'x: Int' type=kotlin.Unit origin=null receiver: GET_VAR 'this@C: C' type=C origin=null value: GET_VAR 'value-parameter : Int' type=kotlin.Int origin=null - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any - FUN public fun test(nc: C?): kotlin.Unit - VALUE_PARAMETER value-parameter nc: C? + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN name:test visibility:public modality:FINAL <> (nc:C?) returnType:Unit flags: + VALUE_PARAMETER name:nc index:0 type:C? flags: BLOCK_BODY BLOCK type=kotlin.Unit origin=SAFE_CALL - VAR IR_TEMPORARY_VARIABLE val tmp0_safe_receiver: C? + VAR IR_TEMPORARY_VARIABLE name:tmp0_safe_receiver type:C? flags:val GET_VAR 'value-parameter nc: C?' type=C? origin=null WHEN type=kotlin.Unit origin=SAFE_CALL BRANCH if: CALL 'EQEQ(Any?, Any?): Boolean' type=kotlin.Boolean origin=EQEQ arg0: GET_VAR 'tmp0_safe_receiver: C?' type=C? origin=null - arg1: CONST Null type=kotlin.Nothing? value='null' + arg1: CONST Null type=kotlin.Nothing? value=null then: TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit - CONST Null type=kotlin.Nothing? value='null' + CONST Null type=kotlin.Nothing? value=null BRANCH - if: CONST Boolean type=kotlin.Boolean value='true' + if: CONST Boolean type=kotlin.Boolean value=true then: CALL '(Int): Unit' type=kotlin.Unit origin=EQ $this: GET_VAR 'tmp0_safe_receiver: C?' type=C? origin=null - : CONST Int type=kotlin.Int value='42' + : CONST Int type=kotlin.Int value=42 diff --git a/compiler/testData/ir/irText/expressions/safeCallWithIncrementDecrement.txt b/compiler/testData/ir/irText/expressions/safeCallWithIncrementDecrement.txt index d155d10a9d6..fde326b3fc2 100644 --- a/compiler/testData/ir/irText/expressions/safeCallWithIncrementDecrement.txt +++ b/compiler/testData/ir/irText/expressions/safeCallWithIncrementDecrement.txt @@ -1,76 +1,76 @@ -FILE /safeCallWithIncrementDecrement.kt - CLASS CLASS C - $this: VALUE_PARAMETER this@C: C - CONSTRUCTOR public constructor C() +FILE fqName:test fileName:/safeCallWithIncrementDecrement.kt + CLASS CLASS name:C modality:FINAL visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:test.C flags: + CONSTRUCTOR visibility:public <> () returnType:test.C flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='C' - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any - PROPERTY public var test.C?.p: kotlin.Int - FUN public fun test.C?.(): kotlin.Int - $receiver: VALUE_PARAMETER this@p: C? + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + PROPERTY name:p type:kotlin.Int visibility:public modality:FINAL flags:var + FUN name: visibility:public modality:FINAL <> ($receiver:test.C?) returnType:Int flags: + $receiver: VALUE_PARAMETER name: type:test.C? flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='() on C?: Int' - CONST Int type=kotlin.Int value='42' - FUN public fun test.C?.(value: kotlin.Int): kotlin.Unit - $receiver: VALUE_PARAMETER this@p: C? - VALUE_PARAMETER value-parameter value: kotlin.Int + RETURN type=kotlin.Nothing from=() on C?: Int' + CONST Int type=kotlin.Int value=42 + FUN name: visibility:public modality:FINAL <> ($receiver:test.C?, value:kotlin.Int) returnType:Unit flags: + $receiver: VALUE_PARAMETER name: type:test.C? flags: + VALUE_PARAMETER name:value index:0 type:kotlin.Int flags: BLOCK_BODY - FUN public operator fun kotlin.Int?.inc(): kotlin.Int? - $receiver: VALUE_PARAMETER this@inc: Int? + FUN name:inc visibility:public modality:FINAL <> ($receiver:kotlin.Int?) returnType:Int? flags: + $receiver: VALUE_PARAMETER name: type:kotlin.Int? flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='inc() on Int?: Int?' + RETURN type=kotlin.Nothing from=inc() on Int?: Int?' BLOCK type=kotlin.Int? origin=SAFE_CALL - VAR IR_TEMPORARY_VARIABLE val tmp0_safe_receiver: kotlin.Int? + VAR IR_TEMPORARY_VARIABLE name:tmp0_safe_receiver type:kotlin.Int? flags:val GET_VAR 'this@inc: Int?' type=kotlin.Int? origin=null WHEN type=kotlin.Int? origin=SAFE_CALL BRANCH if: CALL 'EQEQ(Any?, Any?): Boolean' type=kotlin.Boolean origin=EQEQ arg0: GET_VAR 'tmp0_safe_receiver: Int?' type=kotlin.Int? origin=null - arg1: CONST Null type=kotlin.Nothing? value='null' - then: CONST Null type=kotlin.Nothing? value='null' + arg1: CONST Null type=kotlin.Nothing? value=null + then: CONST Null type=kotlin.Nothing? value=null BRANCH - if: CONST Boolean type=kotlin.Boolean value='true' + if: CONST Boolean type=kotlin.Boolean value=true then: CALL 'inc(): Int' type=kotlin.Int origin=null $this: GET_VAR 'tmp0_safe_receiver: Int?' type=kotlin.Int? origin=null - FUN public operator fun kotlin.Int?.get(index: kotlin.Int): kotlin.Int - $receiver: VALUE_PARAMETER this@get: Int? - VALUE_PARAMETER value-parameter index: kotlin.Int + FUN name:get visibility:public modality:FINAL <> ($receiver:kotlin.Int?, index:kotlin.Int) returnType:Int flags: + $receiver: VALUE_PARAMETER name: type:kotlin.Int? flags: + VALUE_PARAMETER name:index index:0 type:kotlin.Int flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='get(Int) on Int?: Int' - CONST Int type=kotlin.Int value='42' - FUN public operator fun kotlin.Int?.set(index: kotlin.Int, value: kotlin.Int): kotlin.Unit - $receiver: VALUE_PARAMETER this@set: Int? - VALUE_PARAMETER value-parameter index: kotlin.Int - VALUE_PARAMETER value-parameter value: kotlin.Int + RETURN type=kotlin.Nothing from=get(Int) on Int?: Int' + CONST Int type=kotlin.Int value=42 + FUN name:set visibility:public modality:FINAL <> ($receiver:kotlin.Int?, index:kotlin.Int, value:kotlin.Int) returnType:Unit flags: + $receiver: VALUE_PARAMETER name: type:kotlin.Int? flags: + VALUE_PARAMETER name:index index:0 type:kotlin.Int flags: + VALUE_PARAMETER name:value index:1 type:kotlin.Int flags: BLOCK_BODY - FUN public fun testProperty(nc: test.C?): kotlin.Unit - VALUE_PARAMETER value-parameter nc: test.C? + FUN name:testProperty visibility:public modality:FINAL <> (nc:test.C?) returnType:Unit flags: + VALUE_PARAMETER name:nc index:0 type:test.C? flags: BLOCK_BODY BLOCK type=kotlin.Unit origin=SAFE_CALL - VAR IR_TEMPORARY_VARIABLE val tmp0_safe_receiver: test.C? + VAR IR_TEMPORARY_VARIABLE name:tmp0_safe_receiver type:test.C? flags:val GET_VAR 'value-parameter nc: C?' type=test.C? origin=null WHEN type=kotlin.Unit origin=SAFE_CALL BRANCH if: CALL 'EQEQ(Any?, Any?): Boolean' type=kotlin.Boolean origin=EQEQ arg0: GET_VAR 'tmp0_safe_receiver: C?' type=test.C? origin=null - arg1: CONST Null type=kotlin.Nothing? value='null' + arg1: CONST Null type=kotlin.Nothing? value=null then: TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit - CONST Null type=kotlin.Nothing? value='null' + CONST Null type=kotlin.Nothing? value=null BRANCH - if: CONST Boolean type=kotlin.Boolean value='true' + if: CONST Boolean type=kotlin.Boolean value=true then: TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit BLOCK type=kotlin.Int origin=POSTFIX_INCR - VAR IR_TEMPORARY_VARIABLE val tmp1_receiver: test.C? + VAR IR_TEMPORARY_VARIABLE name:tmp1_receiver type:test.C? flags:val GET_VAR 'tmp0_safe_receiver: C?' type=test.C? origin=null BLOCK type=kotlin.Int origin=POSTFIX_INCR - VAR IR_TEMPORARY_VARIABLE val tmp2: kotlin.Int + VAR IR_TEMPORARY_VARIABLE name:tmp2 type:kotlin.Int flags:val CALL '() on C?: Int' type=kotlin.Int origin=POSTFIX_INCR $receiver: GET_VAR 'tmp1_receiver: C?' type=test.C? origin=null CALL '(Int) on C?: Unit' type=kotlin.Unit origin=POSTFIX_INCR @@ -78,28 +78,28 @@ FILE /safeCallWithIncrementDecrement.kt value: CALL 'inc() on Int?: Int?' type=kotlin.Int? origin=POSTFIX_INCR $receiver: GET_VAR 'tmp2: Int' type=kotlin.Int origin=null GET_VAR 'tmp2: Int' type=kotlin.Int origin=null - FUN public fun testArrayAccess(nc: test.C?): kotlin.Unit - VALUE_PARAMETER value-parameter nc: test.C? + FUN name:testArrayAccess visibility:public modality:FINAL <> (nc:test.C?) returnType:Unit flags: + VALUE_PARAMETER name:nc index:0 type:test.C? flags: BLOCK_BODY TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit BLOCK type=kotlin.Int origin=POSTFIX_INCR - VAR IR_TEMPORARY_VARIABLE val tmp1_array: kotlin.Int? + VAR IR_TEMPORARY_VARIABLE name:tmp1_array type:kotlin.Int? flags:val BLOCK type=kotlin.Int? origin=SAFE_CALL - VAR IR_TEMPORARY_VARIABLE val tmp0_safe_receiver: test.C? + VAR IR_TEMPORARY_VARIABLE name:tmp0_safe_receiver type:test.C? flags:val GET_VAR 'value-parameter nc: C?' type=test.C? origin=null WHEN type=kotlin.Int? origin=SAFE_CALL BRANCH if: CALL 'EQEQ(Any?, Any?): Boolean' type=kotlin.Boolean origin=EQEQ arg0: GET_VAR 'tmp0_safe_receiver: C?' type=test.C? origin=null - arg1: CONST Null type=kotlin.Nothing? value='null' - then: CONST Null type=kotlin.Nothing? value='null' + arg1: CONST Null type=kotlin.Nothing? value=null + then: CONST Null type=kotlin.Nothing? value=null BRANCH - if: CONST Boolean type=kotlin.Boolean value='true' + if: CONST Boolean type=kotlin.Boolean value=true then: CALL '() on C?: Int' type=kotlin.Int origin=GET_PROPERTY $receiver: GET_VAR 'tmp0_safe_receiver: C?' type=test.C? origin=null - VAR IR_TEMPORARY_VARIABLE val tmp2_index0: kotlin.Int - CONST Int type=kotlin.Int value='0' - VAR IR_TEMPORARY_VARIABLE val tmp3: kotlin.Int + VAR IR_TEMPORARY_VARIABLE name:tmp2_index0 type:kotlin.Int flags:val + CONST Int type=kotlin.Int value=0 + VAR IR_TEMPORARY_VARIABLE name:tmp3 type:kotlin.Int flags:val CALL 'get(Int) on Int?: Int' type=kotlin.Int origin=POSTFIX_INCR $receiver: GET_VAR 'tmp1_array: Int?' type=kotlin.Int? origin=null index: GET_VAR 'tmp2_index0: Int' type=kotlin.Int origin=null diff --git a/compiler/testData/ir/irText/expressions/safeCalls.txt b/compiler/testData/ir/irText/expressions/safeCalls.txt index 9935ea1e620..48832bd8e8d 100644 --- a/compiler/testData/ir/irText/expressions/safeCalls.txt +++ b/compiler/testData/ir/irText/expressions/safeCalls.txt @@ -1,160 +1,160 @@ -FILE /safeCalls.kt - CLASS CLASS Ref - $this: VALUE_PARAMETER this@Ref: Ref - CONSTRUCTOR public constructor Ref(value: kotlin.Int) - VALUE_PARAMETER value-parameter value: kotlin.Int +FILE fqName: fileName:/safeCalls.kt + CLASS CLASS name:Ref modality:FINAL visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Ref flags: + CONSTRUCTOR visibility:public <> (value:kotlin.Int) returnType:Ref flags: + VALUE_PARAMETER name:value index:0 type:kotlin.Int flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='Ref' - PROPERTY public final var value: kotlin.Int - FIELD PROPERTY_BACKING_FIELD public final var value: kotlin.Int + PROPERTY name:value type:kotlin.Int visibility:public modality:FINAL flags:var + FIELD PROPERTY_BACKING_FIELD name:value type:kotlin.Int visibility:public EXPRESSION_BODY GET_VAR 'value-parameter value: Int' type=kotlin.Int origin=INITIALIZE_PROPERTY_FROM_PARAMETER - FUN DEFAULT_PROPERTY_ACCESSOR public final fun (): kotlin.Int - $this: VALUE_PARAMETER this@Ref: Ref + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:Ref) returnType:Int flags: + $this: VALUE_PARAMETER name: type:Ref flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): Int' + RETURN type=kotlin.Nothing from=(): Int' GET_FIELD 'value: Int' type=kotlin.Int origin=null receiver: GET_VAR 'this@Ref: Ref' type=Ref origin=null - FUN DEFAULT_PROPERTY_ACCESSOR public final fun (: kotlin.Int): kotlin.Unit - $this: VALUE_PARAMETER this@Ref: Ref - VALUE_PARAMETER value-parameter : kotlin.Int + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:Ref, :kotlin.Int) returnType:Unit flags: + $this: VALUE_PARAMETER name: type:Ref flags: + VALUE_PARAMETER name: index:0 type:kotlin.Int flags: BLOCK_BODY SET_FIELD 'value: Int' type=kotlin.Unit origin=null receiver: GET_VAR 'this@Ref: Ref' type=Ref origin=null value: GET_VAR 'value-parameter : Int' type=kotlin.Int origin=null - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any - CLASS INTERFACE IHost - $this: VALUE_PARAMETER this@IHost: IHost - FUN public open fun kotlin.String.extLength(): kotlin.Int - $this: VALUE_PARAMETER this@IHost: IHost - $receiver: VALUE_PARAMETER this@extLength: String + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + CLASS INTERFACE name:IHost modality:ABSTRACT visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:IHost flags: + FUN name:extLength visibility:public modality:OPEN <> ($this:IHost, $receiver:kotlin.String) returnType:Int flags: + $this: VALUE_PARAMETER name: type:IHost flags: + $receiver: VALUE_PARAMETER name: type:kotlin.String flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='extLength() on String: Int' + RETURN type=kotlin.Nothing from=extLength() on String: Int' CALL '(): Int' type=kotlin.Int origin=GET_PROPERTY $this: GET_VAR 'this@extLength: String' type=kotlin.String origin=null - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any - FUN public fun test1(x: kotlin.String?): kotlin.Int? - VALUE_PARAMETER value-parameter x: kotlin.String? + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN name:test1 visibility:public modality:FINAL <> (x:kotlin.String?) returnType:Int? flags: + VALUE_PARAMETER name:x index:0 type:kotlin.String? flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='test1(String?): Int?' + RETURN type=kotlin.Nothing from=test1(String?): Int?' BLOCK type=kotlin.Int? origin=SAFE_CALL - VAR IR_TEMPORARY_VARIABLE val tmp0_safe_receiver: kotlin.String? + VAR IR_TEMPORARY_VARIABLE name:tmp0_safe_receiver type:kotlin.String? flags:val GET_VAR 'value-parameter x: String?' type=kotlin.String? origin=null WHEN type=kotlin.Int? origin=SAFE_CALL BRANCH if: CALL 'EQEQ(Any?, Any?): Boolean' type=kotlin.Boolean origin=EQEQ arg0: GET_VAR 'tmp0_safe_receiver: String?' type=kotlin.String? origin=null - arg1: CONST Null type=kotlin.Nothing? value='null' - then: CONST Null type=kotlin.Nothing? value='null' + arg1: CONST Null type=kotlin.Nothing? value=null + then: CONST Null type=kotlin.Nothing? value=null BRANCH - if: CONST Boolean type=kotlin.Boolean value='true' + if: CONST Boolean type=kotlin.Boolean value=true then: CALL '(): Int' type=kotlin.Int origin=GET_PROPERTY $this: GET_VAR 'tmp0_safe_receiver: String?' type=kotlin.String? origin=null - FUN public fun test2(x: kotlin.String?): kotlin.Int? - VALUE_PARAMETER value-parameter x: kotlin.String? + FUN name:test2 visibility:public modality:FINAL <> (x:kotlin.String?) returnType:Int? flags: + VALUE_PARAMETER name:x index:0 type:kotlin.String? flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='test2(String?): Int?' + RETURN type=kotlin.Nothing from=test2(String?): Int?' BLOCK type=kotlin.Int? origin=SAFE_CALL - VAR IR_TEMPORARY_VARIABLE val tmp0_safe_receiver: kotlin.String? + VAR IR_TEMPORARY_VARIABLE name:tmp0_safe_receiver type:kotlin.String? flags:val GET_VAR 'value-parameter x: String?' type=kotlin.String? origin=null WHEN type=kotlin.Int? origin=SAFE_CALL BRANCH if: CALL 'EQEQ(Any?, Any?): Boolean' type=kotlin.Boolean origin=EQEQ arg0: GET_VAR 'tmp0_safe_receiver: String?' type=kotlin.String? origin=null - arg1: CONST Null type=kotlin.Nothing? value='null' - then: CONST Null type=kotlin.Nothing? value='null' + arg1: CONST Null type=kotlin.Nothing? value=null + then: CONST Null type=kotlin.Nothing? value=null BRANCH - if: CONST Boolean type=kotlin.Boolean value='true' + if: CONST Boolean type=kotlin.Boolean value=true then: CALL 'hashCode(): Int' type=kotlin.Int origin=null $this: GET_VAR 'tmp0_safe_receiver: String?' type=kotlin.String? origin=null - FUN public fun test3(x: kotlin.String?, y: kotlin.Any?): kotlin.Boolean? - VALUE_PARAMETER value-parameter x: kotlin.String? - VALUE_PARAMETER value-parameter y: kotlin.Any? + FUN name:test3 visibility:public modality:FINAL <> (x:kotlin.String?, y:kotlin.Any?) returnType:Boolean? flags: + VALUE_PARAMETER name:x index:0 type:kotlin.String? flags: + VALUE_PARAMETER name:y index:1 type:kotlin.Any? flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='test3(String?, Any?): Boolean?' + RETURN type=kotlin.Nothing from=test3(String?, Any?): Boolean?' BLOCK type=kotlin.Boolean? origin=SAFE_CALL - VAR IR_TEMPORARY_VARIABLE val tmp0_safe_receiver: kotlin.String? + VAR IR_TEMPORARY_VARIABLE name:tmp0_safe_receiver type:kotlin.String? flags:val GET_VAR 'value-parameter x: String?' type=kotlin.String? origin=null WHEN type=kotlin.Boolean? origin=SAFE_CALL BRANCH if: CALL 'EQEQ(Any?, Any?): Boolean' type=kotlin.Boolean origin=EQEQ arg0: GET_VAR 'tmp0_safe_receiver: String?' type=kotlin.String? origin=null - arg1: CONST Null type=kotlin.Nothing? value='null' - then: CONST Null type=kotlin.Nothing? value='null' + arg1: CONST Null type=kotlin.Nothing? value=null + then: CONST Null type=kotlin.Nothing? value=null BRANCH - if: CONST Boolean type=kotlin.Boolean value='true' + if: CONST Boolean type=kotlin.Boolean value=true then: CALL 'equals(Any?): Boolean' type=kotlin.Boolean origin=null $this: GET_VAR 'tmp0_safe_receiver: String?' type=kotlin.String? origin=null other: GET_VAR 'value-parameter y: Any?' type=kotlin.Any? origin=null - FUN public fun test4(x: Ref?): kotlin.Unit - VALUE_PARAMETER value-parameter x: Ref? + FUN name:test4 visibility:public modality:FINAL <> (x:Ref?) returnType:Unit flags: + VALUE_PARAMETER name:x index:0 type:Ref? flags: BLOCK_BODY BLOCK type=kotlin.Unit origin=SAFE_CALL - VAR IR_TEMPORARY_VARIABLE val tmp0_safe_receiver: Ref? + VAR IR_TEMPORARY_VARIABLE name:tmp0_safe_receiver type:Ref? flags:val GET_VAR 'value-parameter x: Ref?' type=Ref? origin=null WHEN type=kotlin.Unit origin=SAFE_CALL BRANCH if: CALL 'EQEQ(Any?, Any?): Boolean' type=kotlin.Boolean origin=EQEQ arg0: GET_VAR 'tmp0_safe_receiver: Ref?' type=Ref? origin=null - arg1: CONST Null type=kotlin.Nothing? value='null' + arg1: CONST Null type=kotlin.Nothing? value=null then: TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit - CONST Null type=kotlin.Nothing? value='null' + CONST Null type=kotlin.Nothing? value=null BRANCH - if: CONST Boolean type=kotlin.Boolean value='true' + if: CONST Boolean type=kotlin.Boolean value=true then: CALL '(Int): Unit' type=kotlin.Unit origin=EQ $this: GET_VAR 'tmp0_safe_receiver: Ref?' type=Ref? origin=null - : CONST Int type=kotlin.Int value='0' - FUN public fun IHost.test5(s: kotlin.String?): kotlin.Int? - $receiver: VALUE_PARAMETER this@test5: IHost - VALUE_PARAMETER value-parameter s: kotlin.String? + : CONST Int type=kotlin.Int value=0 + FUN name:test5 visibility:public modality:FINAL <> ($receiver:IHost, s:kotlin.String?) returnType:Int? flags: + $receiver: VALUE_PARAMETER name: type:IHost flags: + VALUE_PARAMETER name:s index:0 type:kotlin.String? flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='test5(String?) on IHost: Int?' + RETURN type=kotlin.Nothing from=test5(String?) on IHost: Int?' BLOCK type=kotlin.Int? origin=SAFE_CALL - VAR IR_TEMPORARY_VARIABLE val tmp0_safe_receiver: kotlin.String? + VAR IR_TEMPORARY_VARIABLE name:tmp0_safe_receiver type:kotlin.String? flags:val GET_VAR 'value-parameter s: String?' type=kotlin.String? origin=null WHEN type=kotlin.Int? origin=SAFE_CALL BRANCH if: CALL 'EQEQ(Any?, Any?): Boolean' type=kotlin.Boolean origin=EQEQ arg0: GET_VAR 'tmp0_safe_receiver: String?' type=kotlin.String? origin=null - arg1: CONST Null type=kotlin.Nothing? value='null' - then: CONST Null type=kotlin.Nothing? value='null' + arg1: CONST Null type=kotlin.Nothing? value=null + then: CONST Null type=kotlin.Nothing? value=null BRANCH - if: CONST Boolean type=kotlin.Boolean value='true' + if: CONST Boolean type=kotlin.Boolean value=true then: CALL 'extLength() on String: Int' type=kotlin.Int origin=null $this: GET_VAR 'this@test5: IHost' type=IHost origin=null $receiver: GET_VAR 'tmp0_safe_receiver: String?' type=kotlin.String? origin=null - FUN public fun kotlin.Int.foo(): kotlin.Int - $receiver: VALUE_PARAMETER this@foo: Int + FUN name:foo visibility:public modality:FINAL <> ($receiver:kotlin.Int) returnType:Int flags: + $receiver: VALUE_PARAMETER name: type:kotlin.Int flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='foo() on Int: Int' - CONST Int type=kotlin.Int value='239' - FUN public fun box(): kotlin.Unit + RETURN type=kotlin.Nothing from=foo() on Int: Int' + CONST Int type=kotlin.Int value=239 + FUN name:box visibility:public modality:FINAL <> () returnType:Unit flags: BLOCK_BODY TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit BLOCK type=kotlin.Int? origin=SAFE_CALL - VAR IR_TEMPORARY_VARIABLE val tmp0_safe_receiver: kotlin.Int - CONST Int type=kotlin.Int value='42' + VAR IR_TEMPORARY_VARIABLE name:tmp0_safe_receiver type:kotlin.Int flags:val + CONST Int type=kotlin.Int value=42 WHEN type=kotlin.Int? origin=SAFE_CALL BRANCH if: CALL 'EQEQ(Any?, Any?): Boolean' type=kotlin.Boolean origin=EQEQ arg0: GET_VAR 'tmp0_safe_receiver: Int' type=kotlin.Int origin=null - arg1: CONST Null type=kotlin.Nothing? value='null' - then: CONST Null type=kotlin.Nothing? value='null' + arg1: CONST Null type=kotlin.Nothing? value=null + then: CONST Null type=kotlin.Nothing? value=null BRANCH - if: CONST Boolean type=kotlin.Boolean value='true' + if: CONST Boolean type=kotlin.Boolean value=true then: CALL 'foo() on Int: Int' type=kotlin.Int origin=null $receiver: GET_VAR 'tmp0_safe_receiver: Int' type=kotlin.Int origin=null diff --git a/compiler/testData/ir/irText/expressions/setFieldWithImplicitCast.txt b/compiler/testData/ir/irText/expressions/setFieldWithImplicitCast.txt index d2bf671fea7..9961c3accf4 100644 --- a/compiler/testData/ir/irText/expressions/setFieldWithImplicitCast.txt +++ b/compiler/testData/ir/irText/expressions/setFieldWithImplicitCast.txt @@ -1,13 +1,13 @@ -FILE /Derived.kt - CLASS CLASS Derived - $this: VALUE_PARAMETER this@Derived: Derived - CONSTRUCTOR public constructor Derived() +FILE fqName: fileName:/Derived.kt + CLASS CLASS name:Derived modality:FINAL visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Derived flags: + CONSTRUCTOR visibility:public <> () returnType:Derived flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Base()' INSTANCE_INITIALIZER_CALL classDescriptor='Derived' - FUN public final fun setValue(v: kotlin.Any): kotlin.Unit - $this: VALUE_PARAMETER this@Derived: Derived - VALUE_PARAMETER value-parameter v: kotlin.Any + FUN name:setValue visibility:public modality:FINAL <> ($this:Derived, v:kotlin.Any) returnType:Unit flags: + $this: VALUE_PARAMETER name: type:Derived flags: + VALUE_PARAMETER name:v index:0 type:kotlin.Any flags: BLOCK_BODY WHEN type=kotlin.Unit origin=null BRANCH @@ -18,13 +18,13 @@ FILE /Derived.kt receiver: GET_VAR 'this@Derived: Derived' type=Derived origin=null value: TYPE_OP type=kotlin.String! origin=IMPLICIT_CAST typeOperand=kotlin.String! GET_VAR 'value-parameter v: Any' type=kotlin.Any origin=null - PROPERTY FAKE_OVERRIDE public final override var value: kotlin.String! - FIELD FAKE_OVERRIDE public final override var value: kotlin.String! - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any + PROPERTY FAKE_OVERRIDE name:value type:kotlin.String! visibility:public modality:FINAL flags:var + FIELD FAKE_OVERRIDE name:value type:kotlin.String! visibility:public + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: diff --git a/compiler/testData/ir/irText/expressions/simpleOperators.txt b/compiler/testData/ir/irText/expressions/simpleOperators.txt index e6cd553d11c..9dc4f41b5e6 100644 --- a/compiler/testData/ir/irText/expressions/simpleOperators.txt +++ b/compiler/testData/ir/irText/expressions/simpleOperators.txt @@ -1,89 +1,89 @@ -FILE /simpleOperators.kt - FUN public fun test1(a: kotlin.Int, b: kotlin.Int): kotlin.Int - VALUE_PARAMETER value-parameter a: kotlin.Int - VALUE_PARAMETER value-parameter b: kotlin.Int +FILE fqName: fileName:/simpleOperators.kt + FUN name:test1 visibility:public modality:FINAL <> (a:kotlin.Int, b:kotlin.Int) returnType:Int flags: + VALUE_PARAMETER name:a index:0 type:kotlin.Int flags: + VALUE_PARAMETER name:b index:1 type:kotlin.Int flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='test1(Int, Int): Int' + RETURN type=kotlin.Nothing from=test1(Int, Int): Int' CALL 'plus(Int): Int' type=kotlin.Int origin=PLUS $this: GET_VAR 'value-parameter a: Int' type=kotlin.Int origin=null other: GET_VAR 'value-parameter b: Int' type=kotlin.Int origin=null - FUN public fun test2(a: kotlin.Int, b: kotlin.Int): kotlin.Int - VALUE_PARAMETER value-parameter a: kotlin.Int - VALUE_PARAMETER value-parameter b: kotlin.Int + FUN name:test2 visibility:public modality:FINAL <> (a:kotlin.Int, b:kotlin.Int) returnType:Int flags: + VALUE_PARAMETER name:a index:0 type:kotlin.Int flags: + VALUE_PARAMETER name:b index:1 type:kotlin.Int flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='test2(Int, Int): Int' + RETURN type=kotlin.Nothing from=test2(Int, Int): Int' CALL 'minus(Int): Int' type=kotlin.Int origin=MINUS $this: GET_VAR 'value-parameter a: Int' type=kotlin.Int origin=null other: GET_VAR 'value-parameter b: Int' type=kotlin.Int origin=null - FUN public fun test3(a: kotlin.Int, b: kotlin.Int): kotlin.Int - VALUE_PARAMETER value-parameter a: kotlin.Int - VALUE_PARAMETER value-parameter b: kotlin.Int + FUN name:test3 visibility:public modality:FINAL <> (a:kotlin.Int, b:kotlin.Int) returnType:Int flags: + VALUE_PARAMETER name:a index:0 type:kotlin.Int flags: + VALUE_PARAMETER name:b index:1 type:kotlin.Int flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='test3(Int, Int): Int' + RETURN type=kotlin.Nothing from=test3(Int, Int): Int' CALL 'times(Int): Int' type=kotlin.Int origin=MUL $this: GET_VAR 'value-parameter a: Int' type=kotlin.Int origin=null other: GET_VAR 'value-parameter b: Int' type=kotlin.Int origin=null - FUN public fun test4(a: kotlin.Int, b: kotlin.Int): kotlin.Int - VALUE_PARAMETER value-parameter a: kotlin.Int - VALUE_PARAMETER value-parameter b: kotlin.Int + FUN name:test4 visibility:public modality:FINAL <> (a:kotlin.Int, b:kotlin.Int) returnType:Int flags: + VALUE_PARAMETER name:a index:0 type:kotlin.Int flags: + VALUE_PARAMETER name:b index:1 type:kotlin.Int flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='test4(Int, Int): Int' + RETURN type=kotlin.Nothing from=test4(Int, Int): Int' CALL 'div(Int): Int' type=kotlin.Int origin=DIV $this: GET_VAR 'value-parameter a: Int' type=kotlin.Int origin=null other: GET_VAR 'value-parameter b: Int' type=kotlin.Int origin=null - FUN public fun test5(a: kotlin.Int, b: kotlin.Int): kotlin.Int - VALUE_PARAMETER value-parameter a: kotlin.Int - VALUE_PARAMETER value-parameter b: kotlin.Int + FUN name:test5 visibility:public modality:FINAL <> (a:kotlin.Int, b:kotlin.Int) returnType:Int flags: + VALUE_PARAMETER name:a index:0 type:kotlin.Int flags: + VALUE_PARAMETER name:b index:1 type:kotlin.Int flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='test5(Int, Int): Int' + RETURN type=kotlin.Nothing from=test5(Int, Int): Int' CALL 'rem(Int): Int' type=kotlin.Int origin=PERC $this: GET_VAR 'value-parameter a: Int' type=kotlin.Int origin=null other: GET_VAR 'value-parameter b: Int' type=kotlin.Int origin=null - FUN public fun test6(a: kotlin.Int, b: kotlin.Int): kotlin.ranges.IntRange - VALUE_PARAMETER value-parameter a: kotlin.Int - VALUE_PARAMETER value-parameter b: kotlin.Int + FUN name:test6 visibility:public modality:FINAL <> (a:kotlin.Int, b:kotlin.Int) returnType:IntRange flags: + VALUE_PARAMETER name:a index:0 type:kotlin.Int flags: + VALUE_PARAMETER name:b index:1 type:kotlin.Int flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='test6(Int, Int): IntRange' + RETURN type=kotlin.Nothing from=test6(Int, Int): IntRange' CALL 'rangeTo(Int): IntRange' type=kotlin.ranges.IntRange origin=RANGE $this: GET_VAR 'value-parameter a: Int' type=kotlin.Int origin=null other: GET_VAR 'value-parameter b: Int' type=kotlin.Int origin=null - FUN public fun test1x(a: kotlin.Int, b: kotlin.Int): kotlin.Int - VALUE_PARAMETER value-parameter a: kotlin.Int - VALUE_PARAMETER value-parameter b: kotlin.Int + FUN name:test1x visibility:public modality:FINAL <> (a:kotlin.Int, b:kotlin.Int) returnType:Int flags: + VALUE_PARAMETER name:a index:0 type:kotlin.Int flags: + VALUE_PARAMETER name:b index:1 type:kotlin.Int flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='test1x(Int, Int): Int' + RETURN type=kotlin.Nothing from=test1x(Int, Int): Int' CALL 'plus(Int): Int' type=kotlin.Int origin=null $this: GET_VAR 'value-parameter a: Int' type=kotlin.Int origin=null other: GET_VAR 'value-parameter b: Int' type=kotlin.Int origin=null - FUN public fun test2x(a: kotlin.Int, b: kotlin.Int): kotlin.Int - VALUE_PARAMETER value-parameter a: kotlin.Int - VALUE_PARAMETER value-parameter b: kotlin.Int + FUN name:test2x visibility:public modality:FINAL <> (a:kotlin.Int, b:kotlin.Int) returnType:Int flags: + VALUE_PARAMETER name:a index:0 type:kotlin.Int flags: + VALUE_PARAMETER name:b index:1 type:kotlin.Int flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='test2x(Int, Int): Int' + RETURN type=kotlin.Nothing from=test2x(Int, Int): Int' CALL 'minus(Int): Int' type=kotlin.Int origin=null $this: GET_VAR 'value-parameter a: Int' type=kotlin.Int origin=null other: GET_VAR 'value-parameter b: Int' type=kotlin.Int origin=null - FUN public fun test3x(a: kotlin.Int, b: kotlin.Int): kotlin.Int - VALUE_PARAMETER value-parameter a: kotlin.Int - VALUE_PARAMETER value-parameter b: kotlin.Int + FUN name:test3x visibility:public modality:FINAL <> (a:kotlin.Int, b:kotlin.Int) returnType:Int flags: + VALUE_PARAMETER name:a index:0 type:kotlin.Int flags: + VALUE_PARAMETER name:b index:1 type:kotlin.Int flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='test3x(Int, Int): Int' + RETURN type=kotlin.Nothing from=test3x(Int, Int): Int' CALL 'times(Int): Int' type=kotlin.Int origin=null $this: GET_VAR 'value-parameter a: Int' type=kotlin.Int origin=null other: GET_VAR 'value-parameter b: Int' type=kotlin.Int origin=null - FUN public fun test4x(a: kotlin.Int, b: kotlin.Int): kotlin.Int - VALUE_PARAMETER value-parameter a: kotlin.Int - VALUE_PARAMETER value-parameter b: kotlin.Int + FUN name:test4x visibility:public modality:FINAL <> (a:kotlin.Int, b:kotlin.Int) returnType:Int flags: + VALUE_PARAMETER name:a index:0 type:kotlin.Int flags: + VALUE_PARAMETER name:b index:1 type:kotlin.Int flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='test4x(Int, Int): Int' + RETURN type=kotlin.Nothing from=test4x(Int, Int): Int' CALL 'div(Int): Int' type=kotlin.Int origin=null $this: GET_VAR 'value-parameter a: Int' type=kotlin.Int origin=null other: GET_VAR 'value-parameter b: Int' type=kotlin.Int origin=null - FUN public fun test5x(a: kotlin.Int, b: kotlin.Int): kotlin.Int - VALUE_PARAMETER value-parameter a: kotlin.Int - VALUE_PARAMETER value-parameter b: kotlin.Int + FUN name:test5x visibility:public modality:FINAL <> (a:kotlin.Int, b:kotlin.Int) returnType:Int flags: + VALUE_PARAMETER name:a index:0 type:kotlin.Int flags: + VALUE_PARAMETER name:b index:1 type:kotlin.Int flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='test5x(Int, Int): Int' + RETURN type=kotlin.Nothing from=test5x(Int, Int): Int' CALL 'mod(Int): Int' type=kotlin.Int origin=null $this: GET_VAR 'value-parameter a: Int' type=kotlin.Int origin=null other: GET_VAR 'value-parameter b: Int' type=kotlin.Int origin=null diff --git a/compiler/testData/ir/irText/expressions/simpleUnaryOperators.txt b/compiler/testData/ir/irText/expressions/simpleUnaryOperators.txt index 948e7cbd9ee..4b790985b33 100644 --- a/compiler/testData/ir/irText/expressions/simpleUnaryOperators.txt +++ b/compiler/testData/ir/irText/expressions/simpleUnaryOperators.txt @@ -1,32 +1,32 @@ -FILE /simpleUnaryOperators.kt - FUN public fun test1(x: kotlin.Int): kotlin.Int - VALUE_PARAMETER value-parameter x: kotlin.Int +FILE fqName: fileName:/simpleUnaryOperators.kt + FUN name:test1 visibility:public modality:FINAL <> (x:kotlin.Int) returnType:Int flags: + VALUE_PARAMETER name:x index:0 type:kotlin.Int flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='test1(Int): Int' + RETURN type=kotlin.Nothing from=test1(Int): Int' CALL 'unaryMinus(): Int' type=kotlin.Int origin=UMINUS $this: GET_VAR 'value-parameter x: Int' type=kotlin.Int origin=null - FUN public fun test2(): kotlin.Int + FUN name:test2 visibility:public modality:FINAL <> () returnType:Int flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='test2(): Int' - CONST Int type=kotlin.Int value='-42' - FUN public fun test3(x: kotlin.Int): kotlin.Int - VALUE_PARAMETER value-parameter x: kotlin.Int + RETURN type=kotlin.Nothing from=test2(): Int' + CONST Int type=kotlin.Int value=-42 + FUN name:test3 visibility:public modality:FINAL <> (x:kotlin.Int) returnType:Int flags: + VALUE_PARAMETER name:x index:0 type:kotlin.Int flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='test3(Int): Int' + RETURN type=kotlin.Nothing from=test3(Int): Int' CALL 'unaryPlus(): Int' type=kotlin.Int origin=UPLUS $this: GET_VAR 'value-parameter x: Int' type=kotlin.Int origin=null - FUN public fun test4(): kotlin.Int + FUN name:test4 visibility:public modality:FINAL <> () returnType:Int flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='test4(): Int' - CONST Int type=kotlin.Int value='42' - FUN public fun test5(x: kotlin.Boolean): kotlin.Boolean - VALUE_PARAMETER value-parameter x: kotlin.Boolean + RETURN type=kotlin.Nothing from=test4(): Int' + CONST Int type=kotlin.Int value=42 + FUN name:test5 visibility:public modality:FINAL <> (x:kotlin.Boolean) returnType:Boolean flags: + VALUE_PARAMETER name:x index:0 type:kotlin.Boolean flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='test5(Boolean): Boolean' + RETURN type=kotlin.Nothing from=test5(Boolean): Boolean' CALL 'not(): Boolean' type=kotlin.Boolean origin=EXCL $this: GET_VAR 'value-parameter x: Boolean' type=kotlin.Boolean origin=null - FUN public fun test6(): kotlin.Boolean + FUN name:test6 visibility:public modality:FINAL <> () returnType:Boolean flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='test6(): Boolean' - CONST Boolean type=kotlin.Boolean value='false' + RETURN type=kotlin.Nothing from=test6(): Boolean' + CONST Boolean type=kotlin.Boolean value=false diff --git a/compiler/testData/ir/irText/expressions/smartCasts.txt b/compiler/testData/ir/irText/expressions/smartCasts.txt index 522b021d551..9aec464723f 100644 --- a/compiler/testData/ir/irText/expressions/smartCasts.txt +++ b/compiler/testData/ir/irText/expressions/smartCasts.txt @@ -1,28 +1,28 @@ -FILE /smartCasts.kt - FUN public fun expectsString(s: kotlin.String): kotlin.Unit - VALUE_PARAMETER value-parameter s: kotlin.String +FILE fqName: fileName:/smartCasts.kt + FUN name:expectsString visibility:public modality:FINAL <> (s:kotlin.String) returnType:Unit flags: + VALUE_PARAMETER name:s index:0 type:kotlin.String flags: BLOCK_BODY - FUN public fun expectsInt(i: kotlin.Int): kotlin.Unit - VALUE_PARAMETER value-parameter i: kotlin.Int + FUN name:expectsInt visibility:public modality:FINAL <> (i:kotlin.Int) returnType:Unit flags: + VALUE_PARAMETER name:i index:0 type:kotlin.Int flags: BLOCK_BODY - FUN public fun overloaded(s: kotlin.String): kotlin.String - VALUE_PARAMETER value-parameter s: kotlin.String + FUN name:overloaded visibility:public modality:FINAL <> (s:kotlin.String) returnType:String flags: + VALUE_PARAMETER name:s index:0 type:kotlin.String flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='overloaded(String): String' + RETURN type=kotlin.Nothing from=overloaded(String): String' GET_VAR 'value-parameter s: String' type=kotlin.String origin=null - FUN public fun overloaded(x: kotlin.Any): kotlin.Any - VALUE_PARAMETER value-parameter x: kotlin.Any + FUN name:overloaded visibility:public modality:FINAL <> (x:kotlin.Any) returnType:Any flags: + VALUE_PARAMETER name:x index:0 type:kotlin.Any flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='overloaded(Any): Any' + RETURN type=kotlin.Nothing from=overloaded(Any): Any' GET_VAR 'value-parameter x: Any' type=kotlin.Any origin=null - FUN public fun test1(x: kotlin.Any): kotlin.Unit - VALUE_PARAMETER value-parameter x: kotlin.Any + FUN name:test1 visibility:public modality:FINAL <> (x:kotlin.Any) returnType:Unit flags: + VALUE_PARAMETER name:x index:0 type:kotlin.Any flags: BLOCK_BODY WHEN type=kotlin.Unit origin=null BRANCH if: TYPE_OP type=kotlin.Boolean origin=NOT_INSTANCEOF typeOperand=kotlin.String GET_VAR 'value-parameter x: Any' type=kotlin.Any origin=null - then: RETURN type=kotlin.Nothing from='test1(Any): Unit' + then: RETURN type=kotlin.Nothing from=test1(Any): Unit' GET_OBJECT 'Unit' type=kotlin.Unit CALL 'println(Int): Unit' type=kotlin.Unit origin=null message: CALL '(): Int' type=kotlin.Int origin=GET_PROPERTY @@ -39,29 +39,29 @@ FILE /smartCasts.kt s: CALL 'overloaded(String): String' type=kotlin.String origin=null s: TYPE_OP type=kotlin.String origin=IMPLICIT_CAST typeOperand=kotlin.String GET_VAR 'value-parameter x: Any' type=kotlin.Any origin=null - FUN public fun test2(x: kotlin.Any): kotlin.String - VALUE_PARAMETER value-parameter x: kotlin.Any + FUN name:test2 visibility:public modality:FINAL <> (x:kotlin.Any) returnType:String flags: + VALUE_PARAMETER name:x index:0 type:kotlin.Any flags: BLOCK_BODY WHEN type=kotlin.Unit origin=null BRANCH if: TYPE_OP type=kotlin.Boolean origin=NOT_INSTANCEOF typeOperand=kotlin.String GET_VAR 'value-parameter x: Any' type=kotlin.Any origin=null - then: RETURN type=kotlin.Nothing from='test2(Any): String' - CONST String type=kotlin.String value='' - RETURN type=kotlin.Nothing from='test2(Any): String' + then: RETURN type=kotlin.Nothing from=test2(Any): String' + CONST String type=kotlin.String value= + RETURN type=kotlin.Nothing from=test2(Any): String' CALL 'overloaded(String): String' type=kotlin.String origin=null s: TYPE_OP type=kotlin.String origin=IMPLICIT_CAST typeOperand=kotlin.String GET_VAR 'value-parameter x: Any' type=kotlin.Any origin=null - FUN public fun test3(x: kotlin.Any): kotlin.String - VALUE_PARAMETER value-parameter x: kotlin.Any + FUN name:test3 visibility:public modality:FINAL <> (x:kotlin.Any) returnType:String flags: + VALUE_PARAMETER name:x index:0 type:kotlin.Any flags: BLOCK_BODY WHEN type=kotlin.Unit origin=null BRANCH if: TYPE_OP type=kotlin.Boolean origin=NOT_INSTANCEOF typeOperand=kotlin.String GET_VAR 'value-parameter x: Any' type=kotlin.Any origin=null - then: RETURN type=kotlin.Nothing from='test3(Any): String' - CONST String type=kotlin.String value='' - RETURN type=kotlin.Nothing from='test3(Any): String' + then: RETURN type=kotlin.Nothing from=test3(Any): String' + CONST String type=kotlin.String value= + RETURN type=kotlin.Nothing from=test3(Any): String' TYPE_OP type=kotlin.String origin=IMPLICIT_CAST typeOperand=kotlin.String GET_VAR 'value-parameter x: Any' type=kotlin.Any origin=null diff --git a/compiler/testData/ir/irText/expressions/smartCastsWithDestructuring.txt b/compiler/testData/ir/irText/expressions/smartCastsWithDestructuring.txt index aa66e46be26..0f1cddf15bd 100644 --- a/compiler/testData/ir/irText/expressions/smartCastsWithDestructuring.txt +++ b/compiler/testData/ir/irText/expressions/smartCastsWithDestructuring.txt @@ -1,48 +1,48 @@ -FILE /smartCastsWithDestructuring.kt - CLASS INTERFACE I1 - $this: VALUE_PARAMETER this@I1: I1 - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any - CLASS INTERFACE I2 - $this: VALUE_PARAMETER this@I2: I2 - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any - FUN public operator fun I1.component1(): kotlin.Int - $receiver: VALUE_PARAMETER this@component1: I1 +FILE fqName: fileName:/smartCastsWithDestructuring.kt + CLASS INTERFACE name:I1 modality:ABSTRACT visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:I1 flags: + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + CLASS INTERFACE name:I2 modality:ABSTRACT visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:I2 flags: + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN name:component1 visibility:public modality:FINAL <> ($receiver:I1) returnType:Int flags: + $receiver: VALUE_PARAMETER name: type:I1 flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='component1() on I1: Int' - CONST Int type=kotlin.Int value='1' - FUN public operator fun I2.component2(): kotlin.String - $receiver: VALUE_PARAMETER this@component2: I2 + RETURN type=kotlin.Nothing from=component1() on I1: Int' + CONST Int type=kotlin.Int value=1 + FUN name:component2 visibility:public modality:FINAL <> ($receiver:I2) returnType:String flags: + $receiver: VALUE_PARAMETER name: type:I2 flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='component2() on I2: String' - CONST String type=kotlin.String value='' - FUN public fun test(x: I1): kotlin.Unit - VALUE_PARAMETER value-parameter x: I1 + RETURN type=kotlin.Nothing from=component2() on I2: String' + CONST String type=kotlin.String value= + FUN name:test visibility:public modality:FINAL <> (x:I1) returnType:Unit flags: + VALUE_PARAMETER name:x index:0 type:I1 flags: BLOCK_BODY WHEN type=kotlin.Unit origin=null BRANCH if: TYPE_OP type=kotlin.Boolean origin=NOT_INSTANCEOF typeOperand=I2 GET_VAR 'value-parameter x: I1' type=I1 origin=null - then: RETURN type=kotlin.Nothing from='test(I1): Unit' + then: RETURN type=kotlin.Nothing from=test(I1): Unit' GET_OBJECT 'Unit' type=kotlin.Unit COMPOSITE type=kotlin.Unit origin=DESTRUCTURING_DECLARATION - VAR IR_TEMPORARY_VARIABLE val tmp0_container: I1 + VAR IR_TEMPORARY_VARIABLE name:tmp0_container type:I1 flags:val GET_VAR 'value-parameter x: I1' type=I1 origin=null - VAR val c1: kotlin.Int + VAR name:c1 type:kotlin.Int flags:val CALL 'component1() on I1: Int' type=kotlin.Int origin=COMPONENT_N(index=1) $receiver: GET_VAR 'tmp0_container: I1' type=I1 origin=null - VAR val c2: kotlin.String + VAR name:c2 type:kotlin.String flags:val CALL 'component2() on I2: String' type=kotlin.String origin=COMPONENT_N(index=2) $receiver: TYPE_OP type=I2 origin=IMPLICIT_CAST typeOperand=I2 GET_VAR 'tmp0_container: I1' type=I1 origin=null diff --git a/compiler/testData/ir/irText/expressions/smoke.kt b/compiler/testData/ir/irText/expressions/smoke.kt deleted file mode 100644 index 932babc79a1..00000000000 --- a/compiler/testData/ir/irText/expressions/smoke.kt +++ /dev/null @@ -1,10 +0,0 @@ -fun testFun(): String { return "OK" } -val testSimpleVal = 1 -val testValWithGetter: Int get() = 42 -var testSimpleVar = 2 -var testVarWithAccessors: Int - get() = 42 - set(v) {} - -// 1 FUN public fun testFun -// 1 PROPERTY public val testSimpleVal diff --git a/compiler/testData/ir/irText/expressions/smoke.txt b/compiler/testData/ir/irText/expressions/smoke.txt deleted file mode 100644 index 4eb73cf7f41..00000000000 --- a/compiler/testData/ir/irText/expressions/smoke.txt +++ /dev/null @@ -1,40 +0,0 @@ -FILE /smoke.kt - FUN public fun testFun(): kotlin.String - BLOCK_BODY - RETURN type=kotlin.Nothing from='testFun(): String' - CONST String type=kotlin.String value='OK' - PROPERTY public val testSimpleVal: kotlin.Int = 1 - FIELD PROPERTY_BACKING_FIELD public val testSimpleVal: kotlin.Int = 1 - EXPRESSION_BODY - CONST Int type=kotlin.Int value='1' - FUN DEFAULT_PROPERTY_ACCESSOR public fun (): kotlin.Int - BLOCK_BODY - RETURN type=kotlin.Nothing from='(): Int' - GET_FIELD 'testSimpleVal: Int' type=kotlin.Int origin=null - PROPERTY public val testValWithGetter: kotlin.Int - FUN public fun (): kotlin.Int - BLOCK_BODY - RETURN type=kotlin.Nothing from='(): Int' - CONST Int type=kotlin.Int value='42' - PROPERTY public var testSimpleVar: kotlin.Int - FIELD PROPERTY_BACKING_FIELD public var testSimpleVar: kotlin.Int - EXPRESSION_BODY - CONST Int type=kotlin.Int value='2' - FUN DEFAULT_PROPERTY_ACCESSOR public fun (): kotlin.Int - BLOCK_BODY - RETURN type=kotlin.Nothing from='(): Int' - GET_FIELD 'testSimpleVar: Int' type=kotlin.Int origin=null - FUN DEFAULT_PROPERTY_ACCESSOR public fun (: kotlin.Int): kotlin.Unit - VALUE_PARAMETER value-parameter : kotlin.Int - BLOCK_BODY - SET_FIELD 'testSimpleVar: Int' type=kotlin.Unit origin=null - value: GET_VAR 'value-parameter : Int' type=kotlin.Int origin=null - PROPERTY public var testVarWithAccessors: kotlin.Int - FUN public fun (): kotlin.Int - BLOCK_BODY - RETURN type=kotlin.Nothing from='(): Int' - CONST Int type=kotlin.Int value='42' - FUN public fun (v: kotlin.Int): kotlin.Unit - VALUE_PARAMETER value-parameter v: kotlin.Int - BLOCK_BODY - diff --git a/compiler/testData/ir/irText/expressions/stringComparisons.txt b/compiler/testData/ir/irText/expressions/stringComparisons.txt index d573293573a..29ffa477862 100644 --- a/compiler/testData/ir/irText/expressions/stringComparisons.txt +++ b/compiler/testData/ir/irText/expressions/stringComparisons.txt @@ -1,36 +1,36 @@ -FILE /stringComparisons.kt - FUN public fun test1(a: kotlin.String, b: kotlin.String): kotlin.Boolean - VALUE_PARAMETER value-parameter a: kotlin.String - VALUE_PARAMETER value-parameter b: kotlin.String +FILE fqName: fileName:/stringComparisons.kt + FUN name:test1 visibility:public modality:FINAL <> (a:kotlin.String, b:kotlin.String) returnType:Boolean flags: + VALUE_PARAMETER name:a index:0 type:kotlin.String flags: + VALUE_PARAMETER name:b index:1 type:kotlin.String flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='test1(String, String): Boolean' + RETURN type=kotlin.Nothing from=test1(String, String): Boolean' CALL 'GT0(Int): Boolean' type=kotlin.Boolean origin=GT arg0: CALL 'compareTo(String): Int' type=kotlin.Int origin=GT $this: GET_VAR 'value-parameter a: String' type=kotlin.String origin=null other: GET_VAR 'value-parameter b: String' type=kotlin.String origin=null - FUN public fun test2(a: kotlin.String, b: kotlin.String): kotlin.Boolean - VALUE_PARAMETER value-parameter a: kotlin.String - VALUE_PARAMETER value-parameter b: kotlin.String + FUN name:test2 visibility:public modality:FINAL <> (a:kotlin.String, b:kotlin.String) returnType:Boolean flags: + VALUE_PARAMETER name:a index:0 type:kotlin.String flags: + VALUE_PARAMETER name:b index:1 type:kotlin.String flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='test2(String, String): Boolean' + RETURN type=kotlin.Nothing from=test2(String, String): Boolean' CALL 'LT0(Int): Boolean' type=kotlin.Boolean origin=LT arg0: CALL 'compareTo(String): Int' type=kotlin.Int origin=LT $this: GET_VAR 'value-parameter a: String' type=kotlin.String origin=null other: GET_VAR 'value-parameter b: String' type=kotlin.String origin=null - FUN public fun test3(a: kotlin.String, b: kotlin.String): kotlin.Boolean - VALUE_PARAMETER value-parameter a: kotlin.String - VALUE_PARAMETER value-parameter b: kotlin.String + FUN name:test3 visibility:public modality:FINAL <> (a:kotlin.String, b:kotlin.String) returnType:Boolean flags: + VALUE_PARAMETER name:a index:0 type:kotlin.String flags: + VALUE_PARAMETER name:b index:1 type:kotlin.String flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='test3(String, String): Boolean' + RETURN type=kotlin.Nothing from=test3(String, String): Boolean' CALL 'GTEQ0(Int): Boolean' type=kotlin.Boolean origin=GTEQ arg0: CALL 'compareTo(String): Int' type=kotlin.Int origin=GTEQ $this: GET_VAR 'value-parameter a: String' type=kotlin.String origin=null other: GET_VAR 'value-parameter b: String' type=kotlin.String origin=null - FUN public fun test4(a: kotlin.String, b: kotlin.String): kotlin.Boolean - VALUE_PARAMETER value-parameter a: kotlin.String - VALUE_PARAMETER value-parameter b: kotlin.String + FUN name:test4 visibility:public modality:FINAL <> (a:kotlin.String, b:kotlin.String) returnType:Boolean flags: + VALUE_PARAMETER name:a index:0 type:kotlin.String flags: + VALUE_PARAMETER name:b index:1 type:kotlin.String flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='test4(String, String): Boolean' + RETURN type=kotlin.Nothing from=test4(String, String): Boolean' CALL 'LTEQ0(Int): Boolean' type=kotlin.Boolean origin=LTEQ arg0: CALL 'compareTo(String): Int' type=kotlin.Int origin=LTEQ $this: GET_VAR 'value-parameter a: String' type=kotlin.String origin=null diff --git a/compiler/testData/ir/irText/expressions/stringPlus.txt b/compiler/testData/ir/irText/expressions/stringPlus.txt index a5a6673143e..875c58ec9dd 100644 --- a/compiler/testData/ir/irText/expressions/stringPlus.txt +++ b/compiler/testData/ir/irText/expressions/stringPlus.txt @@ -1,34 +1,34 @@ -FILE /stringPlus.kt - FUN public fun test1(a: kotlin.String, b: kotlin.Any): kotlin.String - VALUE_PARAMETER value-parameter a: kotlin.String - VALUE_PARAMETER value-parameter b: kotlin.Any +FILE fqName: fileName:/stringPlus.kt + FUN name:test1 visibility:public modality:FINAL <> (a:kotlin.String, b:kotlin.Any) returnType:String flags: + VALUE_PARAMETER name:a index:0 type:kotlin.String flags: + VALUE_PARAMETER name:b index:1 type:kotlin.Any flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='test1(String, Any): String' + RETURN type=kotlin.Nothing from=test1(String, Any): String' CALL 'plus(Any?): String' type=kotlin.String origin=PLUS $this: GET_VAR 'value-parameter a: String' type=kotlin.String origin=null other: GET_VAR 'value-parameter b: Any' type=kotlin.Any origin=null - FUN public fun test2(a: kotlin.String, b: kotlin.Int): kotlin.String - VALUE_PARAMETER value-parameter a: kotlin.String - VALUE_PARAMETER value-parameter b: kotlin.Int + FUN name:test2 visibility:public modality:FINAL <> (a:kotlin.String, b:kotlin.Int) returnType:String flags: + VALUE_PARAMETER name:a index:0 type:kotlin.String flags: + VALUE_PARAMETER name:b index:1 type:kotlin.Int flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='test2(String, Int): String' + RETURN type=kotlin.Nothing from=test2(String, Int): String' CALL 'plus(Any?): String' type=kotlin.String origin=PLUS $this: CALL 'plus(Any?): String' type=kotlin.String origin=PLUS $this: GET_VAR 'value-parameter a: String' type=kotlin.String origin=null - other: CONST String type=kotlin.String value='+' + other: CONST String type=kotlin.String value=+ other: GET_VAR 'value-parameter b: Int' type=kotlin.Int origin=null - FUN public fun test3(a: kotlin.String, b: kotlin.Int): kotlin.String - VALUE_PARAMETER value-parameter a: kotlin.String - VALUE_PARAMETER value-parameter b: kotlin.Int + FUN name:test3 visibility:public modality:FINAL <> (a:kotlin.String, b:kotlin.Int) returnType:String flags: + VALUE_PARAMETER name:a index:0 type:kotlin.String flags: + VALUE_PARAMETER name:b index:1 type:kotlin.Int flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='test3(String, Int): String' + RETURN type=kotlin.Nothing from=test3(String, Int): String' CALL 'plus(Any?): String' type=kotlin.String origin=PLUS $this: CALL 'plus(Any?): String' type=kotlin.String origin=PLUS $this: CALL 'plus(Any?): String' type=kotlin.String origin=PLUS $this: GET_VAR 'value-parameter a: String' type=kotlin.String origin=null - other: CONST String type=kotlin.String value='+' + other: CONST String type=kotlin.String value=+ other: CALL 'plus(Int): Int' type=kotlin.Int origin=PLUS $this: GET_VAR 'value-parameter b: Int' type=kotlin.Int origin=null - other: CONST Int type=kotlin.Int value='1' + other: CONST Int type=kotlin.Int value=1 other: GET_VAR 'value-parameter a: String' type=kotlin.String origin=null diff --git a/compiler/testData/ir/irText/expressions/stringTemplates.txt b/compiler/testData/ir/irText/expressions/stringTemplates.txt index 1d035f60528..95c05102caa 100644 --- a/compiler/testData/ir/irText/expressions/stringTemplates.txt +++ b/compiler/testData/ir/irText/expressions/stringTemplates.txt @@ -1,101 +1,97 @@ -FILE /stringTemplates.kt - FUN public fun foo(): kotlin.String +FILE fqName: fileName:/stringTemplates.kt + FUN name:foo visibility:public modality:FINAL <> () returnType:String flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='foo(): String' - CONST String type=kotlin.String value='' - PROPERTY public val x: kotlin.Int = 42 - FIELD PROPERTY_BACKING_FIELD public val x: kotlin.Int = 42 + RETURN type=kotlin.Nothing from=foo(): String' + CONST String type=kotlin.String value= + PROPERTY name:x type:kotlin.Int visibility:public modality:FINAL flags:val + FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.Int visibility:public EXPRESSION_BODY - CONST Int type=kotlin.Int value='42' - FUN DEFAULT_PROPERTY_ACCESSOR public fun (): kotlin.Int + CONST Int type=kotlin.Int value=42 + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:Int flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): Int' + RETURN type=kotlin.Nothing from=(): Int' GET_FIELD 'x: Int' type=kotlin.Int origin=null - PROPERTY public val test1: kotlin.String = "" - FIELD PROPERTY_BACKING_FIELD public val test1: kotlin.String = "" + PROPERTY name:test1 type:kotlin.String visibility:public modality:FINAL flags:val + FIELD PROPERTY_BACKING_FIELD name:test1 type:kotlin.String visibility:public EXPRESSION_BODY - CONST String type=kotlin.String value='' - FUN DEFAULT_PROPERTY_ACCESSOR public fun (): kotlin.String + CONST String type=kotlin.String value= + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:String flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): String' + RETURN type=kotlin.Nothing from=(): String' GET_FIELD 'test1: String' type=kotlin.String origin=null - PROPERTY public val test2: kotlin.String = "abc" - FIELD PROPERTY_BACKING_FIELD public val test2: kotlin.String = "abc" + PROPERTY name:test2 type:kotlin.String visibility:public modality:FINAL flags:val + FIELD PROPERTY_BACKING_FIELD name:test2 type:kotlin.String visibility:public EXPRESSION_BODY - CONST String type=kotlin.String value='abc' - FUN DEFAULT_PROPERTY_ACCESSOR public fun (): kotlin.String + CONST String type=kotlin.String value=abc + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:String flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): String' + RETURN type=kotlin.Nothing from=(): String' GET_FIELD 'test2: String' type=kotlin.String origin=null - PROPERTY public val test3: kotlin.String = "" - FIELD PROPERTY_BACKING_FIELD public val test3: kotlin.String = "" + PROPERTY name:test3 type:kotlin.String visibility:public modality:FINAL flags:val + FIELD PROPERTY_BACKING_FIELD name:test3 type:kotlin.String visibility:public EXPRESSION_BODY - CONST String type=kotlin.String value='' - FUN DEFAULT_PROPERTY_ACCESSOR public fun (): kotlin.String + CONST String type=kotlin.String value= + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:String flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): String' + RETURN type=kotlin.Nothing from=(): String' GET_FIELD 'test3: String' type=kotlin.String origin=null - PROPERTY public val test4: kotlin.String = "abc" - FIELD PROPERTY_BACKING_FIELD public val test4: kotlin.String = "abc" + PROPERTY name:test4 type:kotlin.String visibility:public modality:FINAL flags:val + FIELD PROPERTY_BACKING_FIELD name:test4 type:kotlin.String visibility:public EXPRESSION_BODY - CONST String type=kotlin.String value='abc' - FUN DEFAULT_PROPERTY_ACCESSOR public fun (): kotlin.String + CONST String type=kotlin.String value=abc + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:String flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): String' + RETURN type=kotlin.Nothing from=(): String' GET_FIELD 'test4: String' type=kotlin.String origin=null - PROPERTY public val test5: kotlin.String = " -abc -" - FIELD PROPERTY_BACKING_FIELD public val test5: kotlin.String = " -abc -" + PROPERTY name:test5 type:kotlin.String visibility:public modality:FINAL flags:val + FIELD PROPERTY_BACKING_FIELD name:test5 type:kotlin.String visibility:public EXPRESSION_BODY STRING_CONCATENATION type=kotlin.String - CONST String type=kotlin.String value=' -' - CONST String type=kotlin.String value='abc' - CONST String type=kotlin.String value=' -' - FUN DEFAULT_PROPERTY_ACCESSOR public fun (): kotlin.String + CONST String type=kotlin.String value= + + CONST String type=kotlin.String value=abc + CONST String type=kotlin.String value= + + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:String flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): String' + RETURN type=kotlin.Nothing from=(): String' GET_FIELD 'test5: String' type=kotlin.String origin=null - PROPERTY public val test6: kotlin.String - FIELD PROPERTY_BACKING_FIELD public val test6: kotlin.String + PROPERTY name:test6 type:kotlin.String visibility:public modality:FINAL flags:val + FIELD PROPERTY_BACKING_FIELD name:test6 type:kotlin.String visibility:public EXPRESSION_BODY STRING_CONCATENATION type=kotlin.String CALL '(): String' type=kotlin.String origin=GET_PROPERTY - CONST String type=kotlin.String value=' ' + CONST String type=kotlin.String value= CALL 'foo(): String' type=kotlin.String origin=null - FUN DEFAULT_PROPERTY_ACCESSOR public fun (): kotlin.String + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:String flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): String' + RETURN type=kotlin.Nothing from=(): String' GET_FIELD 'test6: String' type=kotlin.String origin=null - PROPERTY public val test7: kotlin.String = "" - FIELD PROPERTY_BACKING_FIELD public val test7: kotlin.String = "" + PROPERTY name:test7 type:kotlin.String visibility:public modality:FINAL flags:val + FIELD PROPERTY_BACKING_FIELD name:test7 type:kotlin.String visibility:public EXPRESSION_BODY STRING_CONCATENATION type=kotlin.String CALL '(): String' type=kotlin.String origin=GET_PROPERTY - FUN DEFAULT_PROPERTY_ACCESSOR public fun (): kotlin.String + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:String flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): String' + RETURN type=kotlin.Nothing from=(): String' GET_FIELD 'test7: String' type=kotlin.String origin=null - PROPERTY public val test8: kotlin.String - FIELD PROPERTY_BACKING_FIELD public val test8: kotlin.String + PROPERTY name:test8 type:kotlin.String visibility:public modality:FINAL flags:val + FIELD PROPERTY_BACKING_FIELD name:test8 type:kotlin.String visibility:public EXPRESSION_BODY STRING_CONCATENATION type=kotlin.String CALL 'foo(): String' type=kotlin.String origin=null - FUN DEFAULT_PROPERTY_ACCESSOR public fun (): kotlin.String + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:String flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): String' + RETURN type=kotlin.Nothing from=(): String' GET_FIELD 'test8: String' type=kotlin.String origin=null - PROPERTY public val test9: kotlin.String = "42" - FIELD PROPERTY_BACKING_FIELD public val test9: kotlin.String = "42" + PROPERTY name:test9 type:kotlin.String visibility:public modality:FINAL flags:val + FIELD PROPERTY_BACKING_FIELD name:test9 type:kotlin.String visibility:public EXPRESSION_BODY STRING_CONCATENATION type=kotlin.String CALL '(): Int' type=kotlin.Int origin=GET_PROPERTY - FUN DEFAULT_PROPERTY_ACCESSOR public fun (): kotlin.String + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:String flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): String' + RETURN type=kotlin.Nothing from=(): String' GET_FIELD 'test9: String' type=kotlin.String origin=null diff --git a/compiler/testData/ir/irText/expressions/thisOfGenericOuterClass.txt b/compiler/testData/ir/irText/expressions/thisOfGenericOuterClass.txt index 369bb55328f..6d44037d82a 100644 --- a/compiler/testData/ir/irText/expressions/thisOfGenericOuterClass.txt +++ b/compiler/testData/ir/irText/expressions/thisOfGenericOuterClass.txt @@ -1,90 +1,90 @@ -FILE /thisOfGenericOuterClass.kt - CLASS CLASS Outer - $this: VALUE_PARAMETER this@Outer: Outer - TYPE_PARAMETER - CONSTRUCTOR public constructor Outer(x: T) - VALUE_PARAMETER value-parameter x: T +FILE fqName: fileName:/thisOfGenericOuterClass.kt + CLASS CLASS name:Outer modality:FINAL visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Outer flags: + TYPE_PARAMETER name:T index:0 variance: upperBounds:[kotlin.Any?] + CONSTRUCTOR visibility:public <> (x:T) returnType:Outer flags: + VALUE_PARAMETER name:x index:0 type:T flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='Outer' - PROPERTY public final val x: T - FIELD PROPERTY_BACKING_FIELD public final val x: T + PROPERTY name:x type:T visibility:public modality:FINAL flags:val + FIELD PROPERTY_BACKING_FIELD name:x type:T visibility:public EXPRESSION_BODY GET_VAR 'value-parameter x: T' type=T origin=INITIALIZE_PROPERTY_FROM_PARAMETER - FUN DEFAULT_PROPERTY_ACCESSOR public final fun (): T - $this: VALUE_PARAMETER this@Outer: Outer + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:Outer) returnType:T flags: + $this: VALUE_PARAMETER name: type:Outer flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): T' + RETURN type=kotlin.Nothing from=(): T' GET_FIELD 'x: T' type=T origin=null receiver: GET_VAR 'this@Outer: Outer' type=Outer origin=null - CLASS CLASS Inner - $this: VALUE_PARAMETER this@Inner: Inner - CONSTRUCTOR public constructor Inner(y: kotlin.Int) - $outer: VALUE_PARAMETER this@Outer: Outer - VALUE_PARAMETER value-parameter y: kotlin.Int + CLASS CLASS name:Inner modality:OPEN visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Outer.Inner flags: + CONSTRUCTOR visibility:public <> ($this:Outer, y:kotlin.Int) returnType:Outer.Inner flags: + $outer: VALUE_PARAMETER name: type:Outer flags: + VALUE_PARAMETER name:y index:0 type:kotlin.Int flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='Inner' - PROPERTY public final val y: kotlin.Int - FIELD PROPERTY_BACKING_FIELD public final val y: kotlin.Int + PROPERTY name:y type:kotlin.Int visibility:public modality:FINAL flags:val + FIELD PROPERTY_BACKING_FIELD name:y type:kotlin.Int visibility:public EXPRESSION_BODY GET_VAR 'value-parameter y: Int' type=kotlin.Int origin=INITIALIZE_PROPERTY_FROM_PARAMETER - FUN DEFAULT_PROPERTY_ACCESSOR public final fun (): kotlin.Int - $this: VALUE_PARAMETER this@Inner: Inner + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:Outer.Inner) returnType:Int flags: + $this: VALUE_PARAMETER name: type:Outer.Inner flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): Int' + RETURN type=kotlin.Nothing from=(): Int' GET_FIELD 'y: Int' type=kotlin.Int origin=null receiver: GET_VAR 'this@Inner: Inner' type=Outer.Inner origin=null - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any - FUN public fun Outer.test(): Outer.Inner - $receiver: VALUE_PARAMETER this@test: Outer + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN name:test visibility:public modality:FINAL <> ($receiver:Outer) returnType:Inner flags: + $receiver: VALUE_PARAMETER name: type:Outer flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='test() on Outer: Outer.Inner' + RETURN type=kotlin.Nothing from=test() on Outer: Outer.Inner' BLOCK type=test. origin=OBJECT_LITERAL - CLASS CLASS - $this: VALUE_PARAMETER this@: - CONSTRUCTOR public constructor () + CLASS CLASS name: modality:FINAL visibility:local flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:test. flags: + CONSTRUCTOR visibility:public <> () returnType:test. flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Inner(Int)' $this: GET_VAR 'this@test: Outer' type=Outer origin=null - y: CONST Int type=kotlin.Int value='42' + y: CONST Int type=kotlin.Int value=42 INSTANCE_INITIALIZER_CALL classDescriptor='' - PROPERTY public final val xx: kotlin.Int - FIELD PROPERTY_BACKING_FIELD public final val xx: kotlin.Int + PROPERTY name:xx type:kotlin.Int visibility:public modality:FINAL flags:val + FIELD PROPERTY_BACKING_FIELD name:xx type:kotlin.Int visibility:public EXPRESSION_BODY CALL 'plus(Int): Int' type=kotlin.Int origin=PLUS $this: CALL '(): Int' type=kotlin.Int origin=GET_PROPERTY $this: GET_VAR 'this@test: Outer' type=Outer origin=null other: CALL '(): Int' type=kotlin.Int origin=GET_PROPERTY $this: GET_VAR 'this@: ' type=test. origin=null - FUN DEFAULT_PROPERTY_ACCESSOR public final fun (): kotlin.Int - $this: VALUE_PARAMETER this@: + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:test.) returnType:Int flags: + $this: VALUE_PARAMETER name: type:test. flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): Int' + RETURN type=kotlin.Nothing from=(): Int' GET_FIELD 'xx: Int' type=kotlin.Int origin=null receiver: GET_VAR 'this@: ' type=test. origin=null - PROPERTY FAKE_OVERRIDE public final override val y: kotlin.Int - FUN FAKE_OVERRIDE public final override fun (): kotlin.Int - $this: VALUE_PARAMETER this@Inner: Inner - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any + PROPERTY FAKE_OVERRIDE name:y type:kotlin.Int visibility:public modality:FINAL flags:val + FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:Outer.Inner) returnType:Int flags: + $this: VALUE_PARAMETER name: type:Outer.Inner flags: + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: CALL 'constructor ()' type=test. origin=OBJECT_LITERAL diff --git a/compiler/testData/ir/irText/expressions/throw.txt b/compiler/testData/ir/irText/expressions/throw.txt index 038a395a688..169b8dc6470 100644 --- a/compiler/testData/ir/irText/expressions/throw.txt +++ b/compiler/testData/ir/irText/expressions/throw.txt @@ -1,10 +1,10 @@ -FILE /throw.kt - FUN public fun test1(): kotlin.Unit +FILE fqName: fileName:/throw.kt + FUN name:test1 visibility:public modality:FINAL <> () returnType:Unit flags: BLOCK_BODY THROW type=kotlin.Nothing CALL 'constructor Throwable()' type=kotlin.Throwable origin=null - FUN public fun testImplicitCast(a: kotlin.Any): kotlin.Unit - VALUE_PARAMETER value-parameter a: kotlin.Any + FUN name:testImplicitCast visibility:public modality:FINAL <> (a:kotlin.Any) returnType:Unit flags: + VALUE_PARAMETER name:a index:0 type:kotlin.Any flags: BLOCK_BODY WHEN type=kotlin.Unit origin=null BRANCH diff --git a/compiler/testData/ir/irText/expressions/tryCatch.txt b/compiler/testData/ir/irText/expressions/tryCatch.txt index c5d3456de51..9acca857df9 100644 --- a/compiler/testData/ir/irText/expressions/tryCatch.txt +++ b/compiler/testData/ir/irText/expressions/tryCatch.txt @@ -1,29 +1,29 @@ -FILE /tryCatch.kt - FUN public fun test1(): kotlin.Unit +FILE fqName: fileName:/tryCatch.kt + FUN name:test1 visibility:public modality:FINAL <> () returnType:Unit flags: BLOCK_BODY TRY type=kotlin.Unit try: BLOCK type=kotlin.Unit origin=null CALL 'println(): Unit' type=kotlin.Unit origin=null CATCH parameter=e: Throwable - VAR CATCH_PARAMETER val e: kotlin.Throwable + VAR CATCH_PARAMETER name:e type:kotlin.Throwable flags:val BLOCK type=kotlin.Unit origin=null CALL 'println(): Unit' type=kotlin.Unit origin=null finally: BLOCK type=kotlin.Unit origin=null CALL 'println(): Unit' type=kotlin.Unit origin=null - FUN public fun test2(): kotlin.Int + FUN name:test2 visibility:public modality:FINAL <> () returnType:Int flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='test2(): Int' + RETURN type=kotlin.Nothing from=test2(): Int' TRY type=kotlin.Int try: BLOCK type=kotlin.Int origin=null CALL 'println(): Unit' type=kotlin.Unit origin=null - CONST Int type=kotlin.Int value='42' + CONST Int type=kotlin.Int value=42 CATCH parameter=e: Throwable - VAR CATCH_PARAMETER val e: kotlin.Throwable + VAR CATCH_PARAMETER name:e type:kotlin.Throwable flags:val BLOCK type=kotlin.Int origin=null CALL 'println(): Unit' type=kotlin.Unit origin=null - CONST Int type=kotlin.Int value='24' + CONST Int type=kotlin.Int value=24 finally: TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit BLOCK type=kotlin.Int origin=null CALL 'println(): Unit' type=kotlin.Unit origin=null - CONST Int type=kotlin.Int value='555' + CONST Int type=kotlin.Int value=555 diff --git a/compiler/testData/ir/irText/expressions/tryCatchWithImplicitCast.txt b/compiler/testData/ir/irText/expressions/tryCatchWithImplicitCast.txt index a06cd23a758..dddc97870b5 100644 --- a/compiler/testData/ir/irText/expressions/tryCatchWithImplicitCast.txt +++ b/compiler/testData/ir/irText/expressions/tryCatchWithImplicitCast.txt @@ -1,20 +1,20 @@ -FILE /tryCatchWithImplicitCast.kt - FUN public fun testImplicitCast(a: kotlin.Any): kotlin.Unit - VALUE_PARAMETER value-parameter a: kotlin.Any +FILE fqName: fileName:/tryCatchWithImplicitCast.kt + FUN name:testImplicitCast visibility:public modality:FINAL <> (a:kotlin.Any) returnType:Unit flags: + VALUE_PARAMETER name:a index:0 type:kotlin.Any flags: BLOCK_BODY WHEN type=kotlin.Unit origin=null BRANCH if: TYPE_OP type=kotlin.Boolean origin=NOT_INSTANCEOF typeOperand=kotlin.String GET_VAR 'value-parameter a: Any' type=kotlin.Any origin=null - then: RETURN type=kotlin.Nothing from='testImplicitCast(Any): Unit' + then: RETURN type=kotlin.Nothing from=testImplicitCast(Any): Unit' GET_OBJECT 'Unit' type=kotlin.Unit - VAR val t: kotlin.String + VAR name:t type:kotlin.String flags:val TRY type=kotlin.String try: BLOCK type=kotlin.String origin=null TYPE_OP type=kotlin.String origin=IMPLICIT_CAST typeOperand=kotlin.String GET_VAR 'value-parameter a: Any' type=kotlin.Any origin=null CATCH parameter=e: Throwable - VAR CATCH_PARAMETER val e: kotlin.Throwable + VAR CATCH_PARAMETER name:e type:kotlin.Throwable flags:val BLOCK type=kotlin.String origin=null - CONST String type=kotlin.String value='' + CONST String type=kotlin.String value= diff --git a/compiler/testData/ir/irText/expressions/typeArguments.txt b/compiler/testData/ir/irText/expressions/typeArguments.txt index 1d99963e2b5..c8aeb380885 100644 --- a/compiler/testData/ir/irText/expressions/typeArguments.txt +++ b/compiler/testData/ir/irText/expressions/typeArguments.txt @@ -1,8 +1,8 @@ -FILE /typeArguments.kt - FUN public fun test1(x: kotlin.Any): kotlin.Boolean - VALUE_PARAMETER value-parameter x: kotlin.Any +FILE fqName: fileName:/typeArguments.kt + FUN name:test1 visibility:public modality:FINAL <> (x:kotlin.Any) returnType:Boolean flags: + VALUE_PARAMETER name:x index:0 type:kotlin.Any flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='test1(Any): Boolean' + RETURN type=kotlin.Nothing from=test1(Any): Boolean' WHEN type=kotlin.Boolean origin=ANDAND BRANCH if: TYPE_OP type=kotlin.Boolean origin=INSTANCEOF typeOperand=kotlin.Array<*> @@ -12,6 +12,6 @@ FILE /typeArguments.kt $receiver: TYPE_OP type=kotlin.Array<*> origin=IMPLICIT_CAST typeOperand=kotlin.Array<*> GET_VAR 'value-parameter x: Any' type=kotlin.Any origin=null BRANCH - if: CONST Boolean type=kotlin.Boolean value='true' - then: CONST Boolean type=kotlin.Boolean value='false' + if: CONST Boolean type=kotlin.Boolean value=true + then: CONST Boolean type=kotlin.Boolean value=false diff --git a/compiler/testData/ir/irText/expressions/typeOperators.txt b/compiler/testData/ir/irText/expressions/typeOperators.txt index 12b668f2864..e0186f2c4c0 100644 --- a/compiler/testData/ir/irText/expressions/typeOperators.txt +++ b/compiler/testData/ir/irText/expressions/typeOperators.txt @@ -1,35 +1,35 @@ -FILE /typeOperators.kt - CLASS INTERFACE IThing - $this: VALUE_PARAMETER this@IThing: IThing - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any - FUN public fun test1(x: kotlin.Any): kotlin.Boolean - VALUE_PARAMETER value-parameter x: kotlin.Any +FILE fqName: fileName:/typeOperators.kt + CLASS INTERFACE name:IThing modality:ABSTRACT visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:IThing flags: + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN name:test1 visibility:public modality:FINAL <> (x:kotlin.Any) returnType:Boolean flags: + VALUE_PARAMETER name:x index:0 type:kotlin.Any flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='test1(Any): Boolean' + RETURN type=kotlin.Nothing from=test1(Any): Boolean' TYPE_OP type=kotlin.Boolean origin=INSTANCEOF typeOperand=IThing GET_VAR 'value-parameter x: Any' type=kotlin.Any origin=null - FUN public fun test2(x: kotlin.Any): kotlin.Boolean - VALUE_PARAMETER value-parameter x: kotlin.Any + FUN name:test2 visibility:public modality:FINAL <> (x:kotlin.Any) returnType:Boolean flags: + VALUE_PARAMETER name:x index:0 type:kotlin.Any flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='test2(Any): Boolean' + RETURN type=kotlin.Nothing from=test2(Any): Boolean' TYPE_OP type=kotlin.Boolean origin=NOT_INSTANCEOF typeOperand=IThing GET_VAR 'value-parameter x: Any' type=kotlin.Any origin=null - FUN public fun test3(x: kotlin.Any): IThing - VALUE_PARAMETER value-parameter x: kotlin.Any + FUN name:test3 visibility:public modality:FINAL <> (x:kotlin.Any) returnType:IThing flags: + VALUE_PARAMETER name:x index:0 type:kotlin.Any flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='test3(Any): IThing' + RETURN type=kotlin.Nothing from=test3(Any): IThing' TYPE_OP type=IThing origin=CAST typeOperand=IThing GET_VAR 'value-parameter x: Any' type=kotlin.Any origin=null - FUN public fun test4(x: kotlin.Any): IThing? - VALUE_PARAMETER value-parameter x: kotlin.Any + FUN name:test4 visibility:public modality:FINAL <> (x:kotlin.Any) returnType:IThing? flags: + VALUE_PARAMETER name:x index:0 type:kotlin.Any flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='test4(Any): IThing?' + RETURN type=kotlin.Nothing from=test4(Any): IThing?' TYPE_OP type=IThing? origin=SAFE_CAST typeOperand=IThing GET_VAR 'value-parameter x: Any' type=kotlin.Any origin=null diff --git a/compiler/testData/ir/irText/expressions/values.txt b/compiler/testData/ir/irText/expressions/values.txt index b7d151b0d4e..88a2077a202 100644 --- a/compiler/testData/ir/irText/expressions/values.txt +++ b/compiler/testData/ir/irText/expressions/values.txt @@ -1,101 +1,101 @@ -FILE /values.kt - CLASS ENUM_CLASS Enum - $this: VALUE_PARAMETER this@Enum: Enum - CONSTRUCTOR private constructor Enum() +FILE fqName: fileName:/values.kt + CLASS ENUM_CLASS name:Enum modality:FINAL visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Enum flags: + CONSTRUCTOR visibility:private <> () returnType:Enum flags: BLOCK_BODY ENUM_CONSTRUCTOR_CALL 'constructor Enum(String, Int)' >: null INSTANCE_INITIALIZER_CALL classDescriptor='Enum' - ENUM_ENTRY enum entry A + ENUM_ENTRY name:A init: ENUM_CONSTRUCTOR_CALL 'constructor Enum()' - FUN FAKE_OVERRIDE protected final override fun clone(): kotlin.Any - $this: VALUE_PARAMETER this@Enum: Enum - FUN FAKE_OVERRIDE protected/*protected and package*/ final override fun finalize(): kotlin.Unit - $this: VALUE_PARAMETER this@Enum: Enum - FUN FAKE_OVERRIDE public final override fun getDeclaringClass(): java.lang.Class! - $this: VALUE_PARAMETER this@Enum: Enum - FUN FAKE_OVERRIDE public final override fun compareTo(other: Enum): kotlin.Int - $this: VALUE_PARAMETER this@Enum: Enum - VALUE_PARAMETER value-parameter other: Enum - FUN FAKE_OVERRIDE public final override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Enum: Enum - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public final override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Enum: Enum - PROPERTY FAKE_OVERRIDE public final override val name: kotlin.String - FUN FAKE_OVERRIDE public final override fun (): kotlin.String - $this: VALUE_PARAMETER this@Enum: Enum - PROPERTY FAKE_OVERRIDE public final override val ordinal: kotlin.Int - FUN FAKE_OVERRIDE public final override fun (): kotlin.Int - $this: VALUE_PARAMETER this@Enum: Enum - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Enum: Enum - FUN ENUM_CLASS_SPECIAL_MEMBER public final fun values(): kotlin.Array + FUN FAKE_OVERRIDE name:clone visibility:protected modality:FINAL <> ($this:kotlin.Enum) returnType:Any flags: + $this: VALUE_PARAMETER name: type:kotlin.Enum flags: + FUN FAKE_OVERRIDE name:finalize visibility:protected/*protected and package*/ modality:FINAL <> ($this:kotlin.Enum) returnType:Unit flags: + $this: VALUE_PARAMETER name: type:kotlin.Enum flags: + FUN FAKE_OVERRIDE name:getDeclaringClass visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:(java.lang.Class<(Enum..Enum?)>..java.lang.Class<(Enum..Enum?)>?) flags: + $this: VALUE_PARAMETER name: type:kotlin.Enum flags: + FUN FAKE_OVERRIDE name:compareTo visibility:public modality:FINAL <> ($this:kotlin.Enum, other:Enum) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Enum flags: + VALUE_PARAMETER name:other index:0 type:Enum flags: + FUN FAKE_OVERRIDE name:equals visibility:public modality:FINAL <> ($this:kotlin.Enum, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Enum flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Enum flags: + PROPERTY FAKE_OVERRIDE name:name type:kotlin.String visibility:public modality:FINAL flags:val + FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Enum flags: + PROPERTY FAKE_OVERRIDE name:ordinal type:kotlin.Int visibility:public modality:FINAL flags:val + FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Enum flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Enum) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Enum flags: + FUN ENUM_CLASS_SPECIAL_MEMBER name:values visibility:public modality:FINAL <> () returnType:Array flags: SYNTHETIC_BODY kind=ENUM_VALUES - FUN ENUM_CLASS_SPECIAL_MEMBER public final fun valueOf(value: kotlin.String): Enum - VALUE_PARAMETER value-parameter value: kotlin.String + FUN ENUM_CLASS_SPECIAL_MEMBER name:valueOf visibility:public modality:FINAL <> (value:kotlin.String) returnType:Enum flags: + VALUE_PARAMETER name:value index:0 type:kotlin.String flags: SYNTHETIC_BODY kind=ENUM_VALUEOF - CLASS OBJECT A - $this: VALUE_PARAMETER this@A: A - CONSTRUCTOR private constructor A() + CLASS OBJECT name:A modality:FINAL visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:A flags: + CONSTRUCTOR visibility:private <> () returnType:A flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='A' - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any - PROPERTY public val a: kotlin.Int = 0 - FIELD PROPERTY_BACKING_FIELD public val a: kotlin.Int = 0 + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + PROPERTY name:a type:kotlin.Int visibility:public modality:FINAL flags:val + FIELD PROPERTY_BACKING_FIELD name:a type:kotlin.Int visibility:public EXPRESSION_BODY - CONST Int type=kotlin.Int value='0' - FUN DEFAULT_PROPERTY_ACCESSOR public fun (): kotlin.Int + CONST Int type=kotlin.Int value=0 + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:Int flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): Int' + RETURN type=kotlin.Nothing from=(): Int' GET_FIELD 'a: Int' type=kotlin.Int origin=null - CLASS CLASS Z - $this: VALUE_PARAMETER this@Z: Z - CONSTRUCTOR public constructor Z() + CLASS CLASS name:Z modality:FINAL visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Z flags: + CONSTRUCTOR visibility:public <> () returnType:Z flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='Z' - CLASS OBJECT companion object of Z - $this: VALUE_PARAMETER this@Companion: Companion - CONSTRUCTOR private constructor Companion() + CLASS OBJECT name:Companion modality:FINAL visibility:public flags:companion + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Z.Companion flags: + CONSTRUCTOR visibility:private <> () returnType:Z.Companion flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='companion object of Z' - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any - FUN public fun test1(): Enum + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN name:test1 visibility:public modality:FINAL <> () returnType:Enum flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='test1(): Enum' + RETURN type=kotlin.Nothing from=test1(): Enum' GET_ENUM 'A' type=Enum - FUN public fun test2(): A + FUN name:test2 visibility:public modality:FINAL <> () returnType:A flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='test2(): A' + RETURN type=kotlin.Nothing from=test2(): A' GET_OBJECT 'A' type=A - FUN public fun test3(): kotlin.Int + FUN name:test3 visibility:public modality:FINAL <> () returnType:Int flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='test3(): Int' + RETURN type=kotlin.Nothing from=test3(): Int' CALL '(): Int' type=kotlin.Int origin=GET_PROPERTY - FUN public fun test4(): Z.Companion + FUN name:test4 visibility:public modality:FINAL <> () returnType:Companion flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='test4(): Z.Companion' + RETURN type=kotlin.Nothing from=test4(): Z.Companion' GET_OBJECT 'companion object of Z' type=Z.Companion diff --git a/compiler/testData/ir/irText/expressions/vararg.txt b/compiler/testData/ir/irText/expressions/vararg.txt index a75ae4920c8..230435592fc 100644 --- a/compiler/testData/ir/irText/expressions/vararg.txt +++ b/compiler/testData/ir/irText/expressions/vararg.txt @@ -1,40 +1,40 @@ -FILE /vararg.kt - PROPERTY public val test1: kotlin.Array - FIELD PROPERTY_BACKING_FIELD public val test1: kotlin.Array +FILE fqName: fileName:/vararg.kt + PROPERTY name:test1 type:kotlin.Array visibility:public modality:FINAL flags:val + FIELD PROPERTY_BACKING_FIELD name:test1 type:kotlin.Array visibility:public EXPRESSION_BODY CALL 'arrayOf(vararg String): Array' type=kotlin.Array origin=null : String - FUN DEFAULT_PROPERTY_ACCESSOR public fun (): kotlin.Array + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:Array flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): Array' + RETURN type=kotlin.Nothing from=(): Array' GET_FIELD 'test1: Array' type=kotlin.Array origin=null - PROPERTY public val test2: kotlin.Array - FIELD PROPERTY_BACKING_FIELD public val test2: kotlin.Array + PROPERTY name:test2 type:kotlin.Array visibility:public modality:FINAL flags:val + FIELD PROPERTY_BACKING_FIELD name:test2 type:kotlin.Array visibility:public EXPRESSION_BODY CALL 'arrayOf(vararg String): Array' type=kotlin.Array origin=null : String elements: VARARG type=Array varargElementType=String - CONST String type=kotlin.String value='1' - CONST String type=kotlin.String value='2' - CONST String type=kotlin.String value='3' - FUN DEFAULT_PROPERTY_ACCESSOR public fun (): kotlin.Array + CONST String type=kotlin.String value=1 + CONST String type=kotlin.String value=2 + CONST String type=kotlin.String value=3 + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:Array flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): Array' + RETURN type=kotlin.Nothing from=(): Array' GET_FIELD 'test2: Array' type=kotlin.Array origin=null - PROPERTY public val test3: kotlin.Array - FIELD PROPERTY_BACKING_FIELD public val test3: kotlin.Array + PROPERTY name:test3 type:kotlin.Array visibility:public modality:FINAL flags:val + FIELD PROPERTY_BACKING_FIELD name:test3 type:kotlin.Array visibility:public EXPRESSION_BODY CALL 'arrayOf(vararg String): Array' type=kotlin.Array origin=null : String elements: VARARG type=Array varargElementType=String - CONST String type=kotlin.String value='0' + CONST String type=kotlin.String value=0 SPREAD_ELEMENT CALL '(): Array' type=kotlin.Array origin=GET_PROPERTY SPREAD_ELEMENT CALL '(): Array' type=kotlin.Array origin=GET_PROPERTY - CONST String type=kotlin.String value='4' - FUN DEFAULT_PROPERTY_ACCESSOR public fun (): kotlin.Array + CONST String type=kotlin.String value=4 + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:Array flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): Array' + RETURN type=kotlin.Nothing from=(): Array' GET_FIELD 'test3: Array' type=kotlin.Array origin=null diff --git a/compiler/testData/ir/irText/expressions/varargWithImplicitCast.txt b/compiler/testData/ir/irText/expressions/varargWithImplicitCast.txt index 9cb7029f5f2..37210c45401 100644 --- a/compiler/testData/ir/irText/expressions/varargWithImplicitCast.txt +++ b/compiler/testData/ir/irText/expressions/varargWithImplicitCast.txt @@ -1,28 +1,28 @@ -FILE /varargWithImplicitCast.kt - FUN public fun testScalar(a: kotlin.Any): kotlin.IntArray - VALUE_PARAMETER value-parameter a: kotlin.Any +FILE fqName: fileName:/varargWithImplicitCast.kt + FUN name:testScalar visibility:public modality:FINAL <> (a:kotlin.Any) returnType:IntArray flags: + VALUE_PARAMETER name:a index:0 type:kotlin.Any flags: BLOCK_BODY WHEN type=kotlin.Unit origin=null BRANCH if: TYPE_OP type=kotlin.Boolean origin=NOT_INSTANCEOF typeOperand=kotlin.Int GET_VAR 'value-parameter a: Any' type=kotlin.Any origin=null - then: RETURN type=kotlin.Nothing from='testScalar(Any): IntArray' + then: RETURN type=kotlin.Nothing from=testScalar(Any): IntArray' CALL 'intArrayOf(vararg Int): IntArray' type=kotlin.IntArray origin=null - RETURN type=kotlin.Nothing from='testScalar(Any): IntArray' + RETURN type=kotlin.Nothing from=testScalar(Any): IntArray' CALL 'intArrayOf(vararg Int): IntArray' type=kotlin.IntArray origin=null elements: VARARG type=IntArray varargElementType=Int TYPE_OP type=kotlin.Int origin=IMPLICIT_CAST typeOperand=kotlin.Int GET_VAR 'value-parameter a: Any' type=kotlin.Any origin=null - FUN public fun testSpread(a: kotlin.Any): kotlin.IntArray - VALUE_PARAMETER value-parameter a: kotlin.Any + FUN name:testSpread visibility:public modality:FINAL <> (a:kotlin.Any) returnType:IntArray flags: + VALUE_PARAMETER name:a index:0 type:kotlin.Any flags: BLOCK_BODY WHEN type=kotlin.Unit origin=null BRANCH if: TYPE_OP type=kotlin.Boolean origin=NOT_INSTANCEOF typeOperand=kotlin.IntArray GET_VAR 'value-parameter a: Any' type=kotlin.Any origin=null - then: RETURN type=kotlin.Nothing from='testSpread(Any): IntArray' + then: RETURN type=kotlin.Nothing from=testSpread(Any): IntArray' CALL 'intArrayOf(vararg Int): IntArray' type=kotlin.IntArray origin=null - RETURN type=kotlin.Nothing from='testSpread(Any): IntArray' + RETURN type=kotlin.Nothing from=testSpread(Any): IntArray' CALL 'intArrayOf(vararg Int): IntArray' type=kotlin.IntArray origin=null elements: VARARG type=IntArray varargElementType=Int SPREAD_ELEMENT diff --git a/compiler/testData/ir/irText/expressions/variableAsFunctionCall.txt b/compiler/testData/ir/irText/expressions/variableAsFunctionCall.txt index 74cc65b3d1f..701193382d4 100644 --- a/compiler/testData/ir/irText/expressions/variableAsFunctionCall.txt +++ b/compiler/testData/ir/irText/expressions/variableAsFunctionCall.txt @@ -1,60 +1,60 @@ -FILE /variableAsFunctionCall.kt - FUN public fun kotlin.String.k(): () -> kotlin.String - $receiver: VALUE_PARAMETER this@k: String +FILE fqName: fileName:/variableAsFunctionCall.kt + FUN name:k visibility:public modality:FINAL <> ($receiver:kotlin.String) returnType:Function0 flags: + $receiver: VALUE_PARAMETER name: type:kotlin.String flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='k() on String: () -> String' + RETURN type=kotlin.Nothing from=k() on String: () -> String' BLOCK type=() -> kotlin.String origin=LAMBDA - FUN LOCAL_FUNCTION_FOR_LAMBDA local final fun (): kotlin.String + FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> () returnType:String flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): String' + RETURN type=kotlin.Nothing from=(): String' GET_VAR 'this@k: String' type=kotlin.String origin=null FUNCTION_REFERENCE '(): String' type=() -> kotlin.String origin=LAMBDA - FUN public fun test1(f: () -> kotlin.Unit): kotlin.Unit - VALUE_PARAMETER value-parameter f: () -> kotlin.Unit + FUN name:test1 visibility:public modality:FINAL <> (f:() -> kotlin.Unit) returnType:Unit flags: + VALUE_PARAMETER name:f index:0 type:() -> kotlin.Unit flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='test1(() -> Unit): Unit' + RETURN type=kotlin.Nothing from=test1(() -> Unit): Unit' CALL 'invoke(): Unit' type=kotlin.Unit origin=INVOKE $this: GET_VAR 'value-parameter f: () -> Unit' type=() -> kotlin.Unit origin=VARIABLE_AS_FUNCTION - FUN public fun test2(f: kotlin.String.() -> kotlin.Unit): kotlin.Unit - VALUE_PARAMETER value-parameter f: kotlin.String.() -> kotlin.Unit + FUN name:test2 visibility:public modality:FINAL <> (f:kotlin.String.() -> kotlin.Unit) returnType:Unit flags: + VALUE_PARAMETER name:f index:0 type:kotlin.String.() -> kotlin.Unit flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='test2(String.() -> Unit): Unit' + RETURN type=kotlin.Nothing from=test2(String.() -> Unit): Unit' CALL 'invoke(String): Unit' type=kotlin.Unit origin=INVOKE $this: GET_VAR 'value-parameter f: String.() -> Unit' type=kotlin.String.() -> kotlin.Unit origin=VARIABLE_AS_FUNCTION - p1: CONST String type=kotlin.String value='hello' - FUN public fun test3(): kotlin.String + p1: CONST String type=kotlin.String value=hello + FUN name:test3 visibility:public modality:FINAL <> () returnType:String flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='test3(): String' + RETURN type=kotlin.Nothing from=test3(): String' CALL 'invoke(): String' type=kotlin.String origin=null $this: CALL 'k() on String: () -> String' type=() -> kotlin.String origin=null - $receiver: CONST String type=kotlin.String value='hello' - FUN public fun test4(ns: kotlin.String?): kotlin.String? - VALUE_PARAMETER value-parameter ns: kotlin.String? + $receiver: CONST String type=kotlin.String value=hello + FUN name:test4 visibility:public modality:FINAL <> (ns:kotlin.String?) returnType:String? flags: + VALUE_PARAMETER name:ns index:0 type:kotlin.String? flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='test4(String?): String?' + RETURN type=kotlin.Nothing from=test4(String?): String?' BLOCK type=kotlin.String? origin=SAFE_CALL - VAR IR_TEMPORARY_VARIABLE val tmp1_safe_receiver: (() -> kotlin.String)? + VAR IR_TEMPORARY_VARIABLE name:tmp1_safe_receiver type:(() -> kotlin.String)? flags:val BLOCK type=(() -> kotlin.String)? origin=SAFE_CALL - VAR IR_TEMPORARY_VARIABLE val tmp0_safe_receiver: kotlin.String? + VAR IR_TEMPORARY_VARIABLE name:tmp0_safe_receiver type:kotlin.String? flags:val GET_VAR 'value-parameter ns: String?' type=kotlin.String? origin=null WHEN type=(() -> kotlin.String)? origin=SAFE_CALL BRANCH if: CALL 'EQEQ(Any?, Any?): Boolean' type=kotlin.Boolean origin=EQEQ arg0: GET_VAR 'tmp0_safe_receiver: String?' type=kotlin.String? origin=null - arg1: CONST Null type=kotlin.Nothing? value='null' - then: CONST Null type=kotlin.Nothing? value='null' + arg1: CONST Null type=kotlin.Nothing? value=null + then: CONST Null type=kotlin.Nothing? value=null BRANCH - if: CONST Boolean type=kotlin.Boolean value='true' + if: CONST Boolean type=kotlin.Boolean value=true then: CALL 'k() on String: () -> String' type=() -> kotlin.String origin=null $receiver: GET_VAR 'tmp0_safe_receiver: String?' type=kotlin.String? origin=null WHEN type=kotlin.String? origin=SAFE_CALL BRANCH if: CALL 'EQEQ(Any?, Any?): Boolean' type=kotlin.Boolean origin=EQEQ arg0: GET_VAR 'tmp1_safe_receiver: (() -> String)?' type=(() -> kotlin.String)? origin=null - arg1: CONST Null type=kotlin.Nothing? value='null' - then: CONST Null type=kotlin.Nothing? value='null' + arg1: CONST Null type=kotlin.Nothing? value=null + then: CONST Null type=kotlin.Nothing? value=null BRANCH - if: CONST Boolean type=kotlin.Boolean value='true' + if: CONST Boolean type=kotlin.Boolean value=true then: CALL 'invoke(): String' type=kotlin.String origin=null $this: GET_VAR 'tmp1_safe_receiver: (() -> String)?' type=(() -> kotlin.String)? origin=null diff --git a/compiler/testData/ir/irText/expressions/when.txt b/compiler/testData/ir/irText/expressions/when.txt index 66e794d9d43..b899df3ea04 100644 --- a/compiler/testData/ir/irText/expressions/when.txt +++ b/compiler/testData/ir/irText/expressions/when.txt @@ -1,84 +1,84 @@ -FILE /when.kt - CLASS OBJECT A - $this: VALUE_PARAMETER this@A: A - CONSTRUCTOR private constructor A() +FILE fqName: fileName:/when.kt + CLASS OBJECT name:A modality:FINAL visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:A flags: + CONSTRUCTOR visibility:private <> () returnType:A flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='A' - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any - FUN public fun testWithSubject(x: kotlin.Any?): kotlin.String - VALUE_PARAMETER value-parameter x: kotlin.Any? + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN name:testWithSubject visibility:public modality:FINAL <> (x:kotlin.Any?) returnType:String flags: + VALUE_PARAMETER name:x index:0 type:kotlin.Any? flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='testWithSubject(Any?): String' + RETURN type=kotlin.Nothing from=testWithSubject(Any?): String' BLOCK type=kotlin.String origin=WHEN - VAR IR_TEMPORARY_VARIABLE val tmp0_subject: kotlin.Any? + VAR IR_TEMPORARY_VARIABLE name:tmp0_subject type:kotlin.Any? flags:val GET_VAR 'value-parameter x: Any?' type=kotlin.Any? origin=null WHEN type=kotlin.String origin=WHEN BRANCH if: CALL 'EQEQ(Any?, Any?): Boolean' type=kotlin.Boolean origin=EQEQ arg0: GET_VAR 'tmp0_subject: Any?' type=kotlin.Any? origin=null - arg1: CONST Null type=kotlin.Nothing? value='null' - then: CONST String type=kotlin.String value='null' + arg1: CONST Null type=kotlin.Nothing? value=null + then: CONST String type=kotlin.String value=null BRANCH if: CALL 'EQEQ(Any?, Any?): Boolean' type=kotlin.Boolean origin=EQEQ arg0: GET_VAR 'tmp0_subject: Any?' type=kotlin.Any? origin=null arg1: GET_OBJECT 'A' type=A - then: CONST String type=kotlin.String value='A' + then: CONST String type=kotlin.String value=A BRANCH if: TYPE_OP type=kotlin.Boolean origin=INSTANCEOF typeOperand=kotlin.String GET_VAR 'tmp0_subject: Any?' type=kotlin.Any? origin=null - then: CONST String type=kotlin.String value='String' + then: CONST String type=kotlin.String value=String BRANCH if: CALL 'contains(Any) on Iterable: Boolean' type=kotlin.Boolean origin=IN : Any $receiver: CALL 'setOf(): Set' type=kotlin.collections.Set origin=null : Nothing element: GET_VAR 'tmp0_subject: Any?' type=kotlin.Any? origin=null - then: CONST String type=kotlin.String value='nothingness?' + then: CONST String type=kotlin.String value=nothingness? BRANCH - if: CONST Boolean type=kotlin.Boolean value='true' - then: CONST String type=kotlin.String value='something' - FUN public fun test(x: kotlin.Any?): kotlin.String - VALUE_PARAMETER value-parameter x: kotlin.Any? + if: CONST Boolean type=kotlin.Boolean value=true + then: CONST String type=kotlin.String value=something + FUN name:test visibility:public modality:FINAL <> (x:kotlin.Any?) returnType:String flags: + VALUE_PARAMETER name:x index:0 type:kotlin.Any? flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='test(Any?): String' + RETURN type=kotlin.Nothing from=test(Any?): String' WHEN type=kotlin.String origin=WHEN BRANCH if: CALL 'EQEQ(Any?, Any?): Boolean' type=kotlin.Boolean origin=EQEQ arg0: GET_VAR 'value-parameter x: Any?' type=kotlin.Any? origin=null - arg1: CONST Null type=kotlin.Nothing? value='null' - then: CONST String type=kotlin.String value='null' + arg1: CONST Null type=kotlin.Nothing? value=null + then: CONST String type=kotlin.String value=null BRANCH if: CALL 'EQEQ(Any?, Any?): Boolean' type=kotlin.Boolean origin=EQEQ arg0: GET_VAR 'value-parameter x: Any?' type=kotlin.Any? origin=null arg1: GET_OBJECT 'A' type=A - then: CONST String type=kotlin.String value='A' + then: CONST String type=kotlin.String value=A BRANCH if: TYPE_OP type=kotlin.Boolean origin=INSTANCEOF typeOperand=kotlin.String GET_VAR 'value-parameter x: Any?' type=kotlin.Any? origin=null - then: CONST String type=kotlin.String value='String' + then: CONST String type=kotlin.String value=String BRANCH if: CALL 'contains(Any) on Iterable: Boolean' type=kotlin.Boolean origin=IN : Any $receiver: CALL 'setOf(): Set' type=kotlin.collections.Set origin=null : Nothing element: GET_VAR 'value-parameter x: Any?' type=kotlin.Any? origin=null - then: CONST String type=kotlin.String value='nothingness?' + then: CONST String type=kotlin.String value=nothingness? BRANCH - if: CONST Boolean type=kotlin.Boolean value='true' - then: CONST String type=kotlin.String value='something' - FUN public fun testComma(x: kotlin.Int): kotlin.String - VALUE_PARAMETER value-parameter x: kotlin.Int + if: CONST Boolean type=kotlin.Boolean value=true + then: CONST String type=kotlin.String value=something + FUN name:testComma visibility:public modality:FINAL <> (x:kotlin.Int) returnType:String flags: + VALUE_PARAMETER name:x index:0 type:kotlin.Int flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='testComma(Int): String' + RETURN type=kotlin.Nothing from=testComma(Int): String' BLOCK type=kotlin.String origin=WHEN - VAR IR_TEMPORARY_VARIABLE val tmp0_subject: kotlin.Int + VAR IR_TEMPORARY_VARIABLE name:tmp0_subject type:kotlin.Int flags:val GET_VAR 'value-parameter x: Int' type=kotlin.Int origin=null WHEN type=kotlin.String origin=WHEN BRANCH @@ -90,26 +90,26 @@ FILE /when.kt BRANCH if: CALL 'EQEQ(Any?, Any?): Boolean' type=kotlin.Boolean origin=EQEQ arg0: GET_VAR 'tmp0_subject: Int' type=kotlin.Int origin=null - arg1: CONST Int type=kotlin.Int value='1' - then: CONST Boolean type=kotlin.Boolean value='true' + arg1: CONST Int type=kotlin.Int value=1 + then: CONST Boolean type=kotlin.Boolean value=true BRANCH - if: CONST Boolean type=kotlin.Boolean value='true' + if: CONST Boolean type=kotlin.Boolean value=true then: CALL 'EQEQ(Any?, Any?): Boolean' type=kotlin.Boolean origin=EQEQ arg0: GET_VAR 'tmp0_subject: Int' type=kotlin.Int origin=null - arg1: CONST Int type=kotlin.Int value='2' - then: CONST Boolean type=kotlin.Boolean value='true' + arg1: CONST Int type=kotlin.Int value=2 + then: CONST Boolean type=kotlin.Boolean value=true BRANCH - if: CONST Boolean type=kotlin.Boolean value='true' + if: CONST Boolean type=kotlin.Boolean value=true then: CALL 'EQEQ(Any?, Any?): Boolean' type=kotlin.Boolean origin=EQEQ arg0: GET_VAR 'tmp0_subject: Int' type=kotlin.Int origin=null - arg1: CONST Int type=kotlin.Int value='3' - then: CONST Boolean type=kotlin.Boolean value='true' + arg1: CONST Int type=kotlin.Int value=3 + then: CONST Boolean type=kotlin.Boolean value=true BRANCH - if: CONST Boolean type=kotlin.Boolean value='true' + if: CONST Boolean type=kotlin.Boolean value=true then: CALL 'EQEQ(Any?, Any?): Boolean' type=kotlin.Boolean origin=EQEQ arg0: GET_VAR 'tmp0_subject: Int' type=kotlin.Int origin=null - arg1: CONST Int type=kotlin.Int value='4' - then: CONST String type=kotlin.String value='1234' + arg1: CONST Int type=kotlin.Int value=4 + then: CONST String type=kotlin.String value=1234 BRANCH if: WHEN type=kotlin.Boolean origin=WHEN_COMMA BRANCH @@ -117,34 +117,34 @@ FILE /when.kt BRANCH if: CALL 'EQEQ(Any?, Any?): Boolean' type=kotlin.Boolean origin=EQEQ arg0: GET_VAR 'tmp0_subject: Int' type=kotlin.Int origin=null - arg1: CONST Int type=kotlin.Int value='5' - then: CONST Boolean type=kotlin.Boolean value='true' + arg1: CONST Int type=kotlin.Int value=5 + then: CONST Boolean type=kotlin.Boolean value=true BRANCH - if: CONST Boolean type=kotlin.Boolean value='true' + if: CONST Boolean type=kotlin.Boolean value=true then: CALL 'EQEQ(Any?, Any?): Boolean' type=kotlin.Boolean origin=EQEQ arg0: GET_VAR 'tmp0_subject: Int' type=kotlin.Int origin=null - arg1: CONST Int type=kotlin.Int value='6' - then: CONST Boolean type=kotlin.Boolean value='true' + arg1: CONST Int type=kotlin.Int value=6 + then: CONST Boolean type=kotlin.Boolean value=true BRANCH - if: CONST Boolean type=kotlin.Boolean value='true' + if: CONST Boolean type=kotlin.Boolean value=true then: CALL 'EQEQ(Any?, Any?): Boolean' type=kotlin.Boolean origin=EQEQ arg0: GET_VAR 'tmp0_subject: Int' type=kotlin.Int origin=null - arg1: CONST Int type=kotlin.Int value='7' - then: CONST String type=kotlin.String value='567' + arg1: CONST Int type=kotlin.Int value=7 + then: CONST String type=kotlin.String value=567 BRANCH if: WHEN type=kotlin.Boolean origin=WHEN_COMMA BRANCH if: CALL 'EQEQ(Any?, Any?): Boolean' type=kotlin.Boolean origin=EQEQ arg0: GET_VAR 'tmp0_subject: Int' type=kotlin.Int origin=null - arg1: CONST Int type=kotlin.Int value='8' - then: CONST Boolean type=kotlin.Boolean value='true' + arg1: CONST Int type=kotlin.Int value=8 + then: CONST Boolean type=kotlin.Boolean value=true BRANCH - if: CONST Boolean type=kotlin.Boolean value='true' + if: CONST Boolean type=kotlin.Boolean value=true then: CALL 'EQEQ(Any?, Any?): Boolean' type=kotlin.Boolean origin=EQEQ arg0: GET_VAR 'tmp0_subject: Int' type=kotlin.Int origin=null - arg1: CONST Int type=kotlin.Int value='9' - then: CONST String type=kotlin.String value='89' + arg1: CONST Int type=kotlin.Int value=9 + then: CONST String type=kotlin.String value=89 BRANCH - if: CONST Boolean type=kotlin.Boolean value='true' - then: CONST String type=kotlin.String value='?' + if: CONST Boolean type=kotlin.Boolean value=true + then: CONST String type=kotlin.String value=? diff --git a/compiler/testData/ir/irText/expressions/whenCoercedToUnit.txt b/compiler/testData/ir/irText/expressions/whenCoercedToUnit.txt index 7bf13beea91..366e31a0048 100644 --- a/compiler/testData/ir/irText/expressions/whenCoercedToUnit.txt +++ b/compiler/testData/ir/irText/expressions/whenCoercedToUnit.txt @@ -1,15 +1,15 @@ -FILE /whenCoercedToUnit.kt - FUN public fun foo(x: kotlin.Int): kotlin.Unit - VALUE_PARAMETER value-parameter x: kotlin.Int +FILE fqName: fileName:/whenCoercedToUnit.kt + FUN name:foo visibility:public modality:FINAL <> (x:kotlin.Int) returnType:Unit flags: + VALUE_PARAMETER name:x index:0 type:kotlin.Int flags: BLOCK_BODY BLOCK type=kotlin.Unit origin=WHEN - VAR IR_TEMPORARY_VARIABLE val tmp0_subject: kotlin.Int + VAR IR_TEMPORARY_VARIABLE name:tmp0_subject type:kotlin.Int flags:val GET_VAR 'value-parameter x: Int' type=kotlin.Int origin=null WHEN type=kotlin.Unit origin=WHEN BRANCH if: CALL 'EQEQ(Any?, Any?): Boolean' type=kotlin.Boolean origin=EQEQ arg0: GET_VAR 'tmp0_subject: Int' type=kotlin.Int origin=null - arg1: CONST Int type=kotlin.Int value='0' + arg1: CONST Int type=kotlin.Int value=0 then: TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit - CONST Int type=kotlin.Int value='0' + CONST Int type=kotlin.Int value=0 diff --git a/compiler/testData/ir/irText/expressions/whenElse.txt b/compiler/testData/ir/irText/expressions/whenElse.txt index def71506603..7c78ef2bec5 100644 --- a/compiler/testData/ir/irText/expressions/whenElse.txt +++ b/compiler/testData/ir/irText/expressions/whenElse.txt @@ -1,9 +1,9 @@ -FILE /whenElse.kt - FUN public fun test(): kotlin.Int +FILE fqName: fileName:/whenElse.kt + FUN name:test visibility:public modality:FINAL <> () returnType:Int flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='test(): Int' + RETURN type=kotlin.Nothing from=test(): Int' WHEN type=kotlin.Int origin=WHEN BRANCH - if: CONST Boolean type=kotlin.Boolean value='true' - then: CONST Int type=kotlin.Int value='42' + if: CONST Boolean type=kotlin.Boolean value=true + then: CONST Int type=kotlin.Int value=42 diff --git a/compiler/testData/ir/irText/expressions/whenReturn.txt b/compiler/testData/ir/irText/expressions/whenReturn.txt index c53df485f78..b560f07f1e0 100644 --- a/compiler/testData/ir/irText/expressions/whenReturn.txt +++ b/compiler/testData/ir/irText/expressions/whenReturn.txt @@ -1,39 +1,39 @@ -FILE /whenReturn.kt - FUN public fun toString(grade: kotlin.String): kotlin.String - VALUE_PARAMETER value-parameter grade: kotlin.String +FILE fqName: fileName:/whenReturn.kt + FUN name:toString visibility:public modality:FINAL <> (grade:kotlin.String) returnType:String flags: + VALUE_PARAMETER name:grade index:0 type:kotlin.String flags: BLOCK_BODY BLOCK type=kotlin.Nothing origin=WHEN - VAR IR_TEMPORARY_VARIABLE val tmp0_subject: kotlin.String + VAR IR_TEMPORARY_VARIABLE name:tmp0_subject type:kotlin.String flags:val GET_VAR 'value-parameter grade: String' type=kotlin.String origin=null WHEN type=kotlin.Nothing origin=WHEN BRANCH if: CALL 'EQEQ(Any?, Any?): Boolean' type=kotlin.Boolean origin=EQEQ arg0: GET_VAR 'tmp0_subject: String' type=kotlin.String origin=null - arg1: CONST String type=kotlin.String value='A' - then: RETURN type=kotlin.Nothing from='toString(String): String' - CONST String type=kotlin.String value='Excellent' + arg1: CONST String type=kotlin.String value=A + then: RETURN type=kotlin.Nothing from=toString(String): String' + CONST String type=kotlin.String value=Excellent BRANCH if: CALL 'EQEQ(Any?, Any?): Boolean' type=kotlin.Boolean origin=EQEQ arg0: GET_VAR 'tmp0_subject: String' type=kotlin.String origin=null - arg1: CONST String type=kotlin.String value='B' - then: RETURN type=kotlin.Nothing from='toString(String): String' - CONST String type=kotlin.String value='Good' + arg1: CONST String type=kotlin.String value=B + then: RETURN type=kotlin.Nothing from=toString(String): String' + CONST String type=kotlin.String value=Good BRANCH if: CALL 'EQEQ(Any?, Any?): Boolean' type=kotlin.Boolean origin=EQEQ arg0: GET_VAR 'tmp0_subject: String' type=kotlin.String origin=null - arg1: CONST String type=kotlin.String value='C' - then: RETURN type=kotlin.Nothing from='toString(String): String' - CONST String type=kotlin.String value='Mediocre' + arg1: CONST String type=kotlin.String value=C + then: RETURN type=kotlin.Nothing from=toString(String): String' + CONST String type=kotlin.String value=Mediocre BRANCH if: CALL 'EQEQ(Any?, Any?): Boolean' type=kotlin.Boolean origin=EQEQ arg0: GET_VAR 'tmp0_subject: String' type=kotlin.String origin=null - arg1: CONST String type=kotlin.String value='D' - then: RETURN type=kotlin.Nothing from='toString(String): String' - CONST String type=kotlin.String value='Fair' + arg1: CONST String type=kotlin.String value=D + then: RETURN type=kotlin.Nothing from=toString(String): String' + CONST String type=kotlin.String value=Fair BRANCH - if: CONST Boolean type=kotlin.Boolean value='true' - then: RETURN type=kotlin.Nothing from='toString(String): String' - CONST String type=kotlin.String value='Failure' - RETURN type=kotlin.Nothing from='toString(String): String' - CONST String type=kotlin.String value='???' + if: CONST Boolean type=kotlin.Boolean value=true + then: RETURN type=kotlin.Nothing from=toString(String): String' + CONST String type=kotlin.String value=Failure + RETURN type=kotlin.Nothing from=toString(String): String' + CONST String type=kotlin.String value=??? diff --git a/compiler/testData/ir/irText/expressions/whileDoWhile.txt b/compiler/testData/ir/irText/expressions/whileDoWhile.txt index d65157146cd..d2f1db1e5e7 100644 --- a/compiler/testData/ir/irText/expressions/whileDoWhile.txt +++ b/compiler/testData/ir/irText/expressions/whileDoWhile.txt @@ -1,21 +1,21 @@ -FILE /whileDoWhile.kt - FUN public fun test(): kotlin.Unit +FILE fqName: fileName:/whileDoWhile.kt + FUN name:test visibility:public modality:FINAL <> () returnType:Unit flags: BLOCK_BODY - VAR var x: kotlin.Int - CONST Int type=kotlin.Int value='0' + VAR name:x type:kotlin.Int flags:var + CONST Int type=kotlin.Int value=0 WHILE label=null origin=WHILE_LOOP condition: CALL 'LT0(Int): Boolean' type=kotlin.Boolean origin=LT arg0: CALL 'compareTo(Int): Int' type=kotlin.Int origin=LT $this: GET_VAR 'x: Int' type=kotlin.Int origin=null - other: CONST Int type=kotlin.Int value='0' + other: CONST Int type=kotlin.Int value=0 WHILE label=null origin=WHILE_LOOP condition: CALL 'LT0(Int): Boolean' type=kotlin.Boolean origin=LT arg0: CALL 'compareTo(Int): Int' type=kotlin.Int origin=LT $this: GET_VAR 'x: Int' type=kotlin.Int origin=null - other: CONST Int type=kotlin.Int value='5' + other: CONST Int type=kotlin.Int value=5 body: TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit BLOCK type=kotlin.Int origin=POSTFIX_INCR - VAR IR_TEMPORARY_VARIABLE val tmp0: kotlin.Int + VAR IR_TEMPORARY_VARIABLE name:tmp0 type:kotlin.Int flags:val GET_VAR 'x: Int' type=kotlin.Int origin=POSTFIX_INCR SET_VAR 'x: Int' type=kotlin.Unit origin=POSTFIX_INCR CALL 'inc(): Int' type=kotlin.Int origin=POSTFIX_INCR @@ -25,11 +25,11 @@ FILE /whileDoWhile.kt condition: CALL 'LT0(Int): Boolean' type=kotlin.Boolean origin=LT arg0: CALL 'compareTo(Int): Int' type=kotlin.Int origin=LT $this: GET_VAR 'x: Int' type=kotlin.Int origin=null - other: CONST Int type=kotlin.Int value='10' + other: CONST Int type=kotlin.Int value=10 body: BLOCK type=kotlin.Unit origin=null TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit BLOCK type=kotlin.Int origin=POSTFIX_INCR - VAR IR_TEMPORARY_VARIABLE val tmp1: kotlin.Int + VAR IR_TEMPORARY_VARIABLE name:tmp1 type:kotlin.Int flags:val GET_VAR 'x: Int' type=kotlin.Int origin=POSTFIX_INCR SET_VAR 'x: Int' type=kotlin.Unit origin=POSTFIX_INCR CALL 'inc(): Int' type=kotlin.Int origin=POSTFIX_INCR @@ -40,12 +40,12 @@ FILE /whileDoWhile.kt condition: CALL 'LT0(Int): Boolean' type=kotlin.Boolean origin=LT arg0: CALL 'compareTo(Int): Int' type=kotlin.Int origin=LT $this: GET_VAR 'x: Int' type=kotlin.Int origin=null - other: CONST Int type=kotlin.Int value='0' + other: CONST Int type=kotlin.Int value=0 BLOCK type=kotlin.Unit origin=null DO_WHILE label=null origin=DO_WHILE_LOOP body: TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit BLOCK type=kotlin.Int origin=POSTFIX_INCR - VAR IR_TEMPORARY_VARIABLE val tmp2: kotlin.Int + VAR IR_TEMPORARY_VARIABLE name:tmp2 type:kotlin.Int flags:val GET_VAR 'x: Int' type=kotlin.Int origin=POSTFIX_INCR SET_VAR 'x: Int' type=kotlin.Unit origin=POSTFIX_INCR CALL 'inc(): Int' type=kotlin.Int origin=POSTFIX_INCR @@ -54,13 +54,13 @@ FILE /whileDoWhile.kt condition: CALL 'LT0(Int): Boolean' type=kotlin.Boolean origin=LT arg0: CALL 'compareTo(Int): Int' type=kotlin.Int origin=LT $this: GET_VAR 'x: Int' type=kotlin.Int origin=null - other: CONST Int type=kotlin.Int value='15' + other: CONST Int type=kotlin.Int value=15 BLOCK type=kotlin.Unit origin=null DO_WHILE label=null origin=DO_WHILE_LOOP body: COMPOSITE type=kotlin.Unit origin=null TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit BLOCK type=kotlin.Int origin=POSTFIX_INCR - VAR IR_TEMPORARY_VARIABLE val tmp3: kotlin.Int + VAR IR_TEMPORARY_VARIABLE name:tmp3 type:kotlin.Int flags:val GET_VAR 'x: Int' type=kotlin.Int origin=POSTFIX_INCR SET_VAR 'x: Int' type=kotlin.Unit origin=POSTFIX_INCR CALL 'inc(): Int' type=kotlin.Int origin=POSTFIX_INCR @@ -69,11 +69,11 @@ FILE /whileDoWhile.kt condition: CALL 'LT0(Int): Boolean' type=kotlin.Boolean origin=LT arg0: CALL 'compareTo(Int): Int' type=kotlin.Int origin=LT $this: GET_VAR 'x: Int' type=kotlin.Int origin=null - other: CONST Int type=kotlin.Int value='20' - FUN public fun testSmartcastInCondition(): kotlin.Unit + other: CONST Int type=kotlin.Int value=20 + FUN name:testSmartcastInCondition visibility:public modality:FINAL <> () returnType:Unit flags: BLOCK_BODY - VAR val a: kotlin.Any? = null - CONST Null type=kotlin.Nothing? value='null' + VAR name:a type:kotlin.Any? flags:val + CONST Null type=kotlin.Nothing? value=null WHEN type=kotlin.Unit origin=null BRANCH if: TYPE_OP type=kotlin.Boolean origin=INSTANCEOF typeOperand=kotlin.Boolean diff --git a/compiler/testData/ir/irText/lambdas/anonymousFunction.txt b/compiler/testData/ir/irText/lambdas/anonymousFunction.txt index 80edca80bdf..ffa098bdcdf 100644 --- a/compiler/testData/ir/irText/lambdas/anonymousFunction.txt +++ b/compiler/testData/ir/irText/lambdas/anonymousFunction.txt @@ -1,14 +1,14 @@ -FILE /anonymousFunction.kt - PROPERTY public val anonymous: () -> kotlin.Unit - FIELD PROPERTY_BACKING_FIELD public val anonymous: () -> kotlin.Unit +FILE fqName: fileName:/anonymousFunction.kt + PROPERTY name:anonymous type:() -> kotlin.Unit visibility:public modality:FINAL flags:val + FIELD PROPERTY_BACKING_FIELD name:anonymous type:() -> kotlin.Unit visibility:public EXPRESSION_BODY BLOCK type=() -> kotlin.Unit origin=ANONYMOUS_FUNCTION - FUN local final fun (): kotlin.Unit + FUN name: visibility:local modality:FINAL <> () returnType:Unit flags: BLOCK_BODY CALL 'println(): Unit' type=kotlin.Unit origin=null FUNCTION_REFERENCE '(): Unit' type=() -> kotlin.Unit origin=ANONYMOUS_FUNCTION - FUN DEFAULT_PROPERTY_ACCESSOR public fun (): () -> kotlin.Unit + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:Function0 flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): () -> Unit' + RETURN type=kotlin.Nothing from=(): () -> Unit' GET_FIELD 'anonymous: () -> Unit' type=() -> kotlin.Unit origin=null diff --git a/compiler/testData/ir/irText/lambdas/destructuringInLambda.txt b/compiler/testData/ir/irText/lambdas/destructuringInLambda.txt index 669b1c16aec..d58c9e52d04 100644 --- a/compiler/testData/ir/irText/lambdas/destructuringInLambda.txt +++ b/compiler/testData/ir/irText/lambdas/destructuringInLambda.txt @@ -1,78 +1,78 @@ -FILE /destructuringInLambda.kt - CLASS CLASS A - $this: VALUE_PARAMETER this@A: A - CONSTRUCTOR public constructor A(x: kotlin.Int, y: kotlin.Int) - VALUE_PARAMETER value-parameter x: kotlin.Int - VALUE_PARAMETER value-parameter y: kotlin.Int +FILE fqName: fileName:/destructuringInLambda.kt + CLASS CLASS name:A modality:FINAL visibility:public flags:data + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:A flags: + CONSTRUCTOR visibility:public <> (x:kotlin.Int, y:kotlin.Int) returnType:A flags: + VALUE_PARAMETER name:x index:0 type:kotlin.Int flags: + VALUE_PARAMETER name:y index:1 type:kotlin.Int flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='A' - PROPERTY public final val x: kotlin.Int - FIELD PROPERTY_BACKING_FIELD public final val x: kotlin.Int + PROPERTY name:x type:kotlin.Int visibility:public modality:FINAL flags:val + FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.Int visibility:public EXPRESSION_BODY GET_VAR 'value-parameter x: Int' type=kotlin.Int origin=INITIALIZE_PROPERTY_FROM_PARAMETER - FUN DEFAULT_PROPERTY_ACCESSOR public final fun (): kotlin.Int - $this: VALUE_PARAMETER this@A: A + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:A) returnType:Int flags: + $this: VALUE_PARAMETER name: type:A flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): Int' + RETURN type=kotlin.Nothing from=(): Int' GET_FIELD 'x: Int' type=kotlin.Int origin=null receiver: GET_VAR 'this@A: A' type=A origin=null - PROPERTY public final val y: kotlin.Int - FIELD PROPERTY_BACKING_FIELD public final val y: kotlin.Int + PROPERTY name:y type:kotlin.Int visibility:public modality:FINAL flags:val + FIELD PROPERTY_BACKING_FIELD name:y type:kotlin.Int visibility:public EXPRESSION_BODY GET_VAR 'value-parameter y: Int' type=kotlin.Int origin=INITIALIZE_PROPERTY_FROM_PARAMETER - FUN DEFAULT_PROPERTY_ACCESSOR public final fun (): kotlin.Int - $this: VALUE_PARAMETER this@A: A + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:A) returnType:Int flags: + $this: VALUE_PARAMETER name: type:A flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): Int' + RETURN type=kotlin.Nothing from=(): Int' GET_FIELD 'y: Int' type=kotlin.Int origin=null receiver: GET_VAR 'this@A: A' type=A origin=null - FUN GENERATED_DATA_CLASS_MEMBER public final operator fun component1(): kotlin.Int - $this: VALUE_PARAMETER this@A: A + FUN GENERATED_DATA_CLASS_MEMBER name:component1 visibility:public modality:FINAL <> ($this:A) returnType:Int flags: + $this: VALUE_PARAMETER name: type:A flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='component1(): Int' + RETURN type=kotlin.Nothing from=component1(): Int' CALL '(): Int' type=kotlin.Int origin=GET_PROPERTY $this: GET_VAR 'this@A: A' type=A origin=null - FUN GENERATED_DATA_CLASS_MEMBER public final operator fun component2(): kotlin.Int - $this: VALUE_PARAMETER this@A: A + FUN GENERATED_DATA_CLASS_MEMBER name:component2 visibility:public modality:FINAL <> ($this:A) returnType:Int flags: + $this: VALUE_PARAMETER name: type:A flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='component2(): Int' + RETURN type=kotlin.Nothing from=component2(): Int' CALL '(): Int' type=kotlin.Int origin=GET_PROPERTY $this: GET_VAR 'this@A: A' type=A origin=null - FUN GENERATED_DATA_CLASS_MEMBER public final fun copy(x: kotlin.Int = ..., y: kotlin.Int = ...): A - $this: VALUE_PARAMETER this@A: A - VALUE_PARAMETER value-parameter x: kotlin.Int = ... + FUN GENERATED_DATA_CLASS_MEMBER name:copy visibility:public modality:FINAL <> ($this:A, x:kotlin.Int, y:kotlin.Int) returnType:A flags: + $this: VALUE_PARAMETER name: type:A flags: + VALUE_PARAMETER name:x index:0 type:kotlin.Int flags: EXPRESSION_BODY CALL '(): Int' type=kotlin.Int origin=GET_PROPERTY $this: GET_VAR 'this@A: A' type=A origin=null - VALUE_PARAMETER value-parameter y: kotlin.Int = ... + VALUE_PARAMETER name:y index:1 type:kotlin.Int flags: EXPRESSION_BODY CALL '(): Int' type=kotlin.Int origin=GET_PROPERTY $this: GET_VAR 'this@A: A' type=A origin=null BLOCK_BODY - RETURN type=kotlin.Nothing from='copy(Int = ..., Int = ...): A' + RETURN type=kotlin.Nothing from=copy(Int = ..., Int = ...): A' CALL 'constructor A(Int, Int)' type=A origin=null x: GET_VAR 'value-parameter x: Int = ...' type=kotlin.Int origin=null y: GET_VAR 'value-parameter y: Int = ...' type=kotlin.Int origin=null - FUN GENERATED_DATA_CLASS_MEMBER public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@A: A + FUN GENERATED_DATA_CLASS_MEMBER name:toString visibility:public modality:OPEN <> ($this:A) returnType:String flags: + $this: VALUE_PARAMETER name: type:A flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='toString(): String' + RETURN type=kotlin.Nothing from=toString(): String' STRING_CONCATENATION type=kotlin.String - CONST String type=kotlin.String value='A(' - CONST String type=kotlin.String value='x=' + CONST String type=kotlin.String value=A( + CONST String type=kotlin.String value=x= CALL '(): Int' type=kotlin.Int origin=GET_PROPERTY $this: GET_VAR 'this@A: A' type=A origin=null - CONST String type=kotlin.String value=', ' - CONST String type=kotlin.String value='y=' + CONST String type=kotlin.String value=, + CONST String type=kotlin.String value=y= CALL '(): Int' type=kotlin.Int origin=GET_PROPERTY $this: GET_VAR 'this@A: A' type=A origin=null - CONST String type=kotlin.String value=')' - FUN GENERATED_DATA_CLASS_MEMBER public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@A: A + CONST String type=kotlin.String value=) + FUN GENERATED_DATA_CLASS_MEMBER name:hashCode visibility:public modality:OPEN <> ($this:A) returnType:Int flags: + $this: VALUE_PARAMETER name: type:A flags: BLOCK_BODY - VAR IR_TEMPORARY_VARIABLE var tmp0_result: kotlin.Int - CONST Int type=kotlin.Int value='0' + VAR IR_TEMPORARY_VARIABLE name:tmp0_result type:kotlin.Int flags:var + CONST Int type=kotlin.Int value=0 SET_VAR 'tmp0_result: Int' type=kotlin.Unit origin=EQ CALL 'hashCode(): Int' type=kotlin.Int origin=null $this: CALL '(): Int' type=kotlin.Int origin=GET_PROPERTY @@ -81,30 +81,30 @@ FILE /destructuringInLambda.kt CALL 'plus(Int): Int' type=kotlin.Int origin=null $this: CALL 'times(Int): Int' type=kotlin.Int origin=null $this: GET_VAR 'tmp0_result: Int' type=kotlin.Int origin=null - other: CONST Int type=kotlin.Int value='31' + other: CONST Int type=kotlin.Int value=31 other: CALL 'hashCode(): Int' type=kotlin.Int origin=null $this: CALL '(): Int' type=kotlin.Int origin=GET_PROPERTY $this: GET_VAR 'this@A: A' type=A origin=null - RETURN type=kotlin.Nothing from='hashCode(): Int' + RETURN type=kotlin.Nothing from=hashCode(): Int' GET_VAR 'tmp0_result: Int' type=kotlin.Int origin=null - FUN GENERATED_DATA_CLASS_MEMBER public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@A: A - VALUE_PARAMETER value-parameter other: kotlin.Any? + FUN GENERATED_DATA_CLASS_MEMBER name:equals visibility:public modality:OPEN <> ($this:A, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:A flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: BLOCK_BODY WHEN type=kotlin.Unit origin=null BRANCH if: CALL 'EQEQEQ(Any?, Any?): Boolean' type=kotlin.Boolean origin=EQEQEQ arg0: GET_VAR 'this@A: A' type=A origin=null arg1: GET_VAR 'value-parameter other: Any?' type=kotlin.Any? origin=null - then: RETURN type=kotlin.Nothing from='equals(Any?): Boolean' - CONST Boolean type=kotlin.Boolean value='true' + then: RETURN type=kotlin.Nothing from=equals(Any?): Boolean' + CONST Boolean type=kotlin.Boolean value=true WHEN type=kotlin.Unit origin=null BRANCH if: TYPE_OP type=kotlin.Boolean origin=NOT_INSTANCEOF typeOperand=A GET_VAR 'value-parameter other: Any?' type=kotlin.Any? origin=null - then: RETURN type=kotlin.Nothing from='equals(Any?): Boolean' - CONST Boolean type=kotlin.Boolean value='false' - VAR IR_TEMPORARY_VARIABLE val tmp0_other_with_cast: A + then: RETURN type=kotlin.Nothing from=equals(Any?): Boolean' + CONST Boolean type=kotlin.Boolean value=false + VAR IR_TEMPORARY_VARIABLE name:tmp0_other_with_cast type:A flags:val TYPE_OP type=A origin=CAST typeOperand=A GET_VAR 'value-parameter other: Any?' type=kotlin.Any? origin=null WHEN type=kotlin.Unit origin=null @@ -115,8 +115,8 @@ FILE /destructuringInLambda.kt $this: GET_VAR 'this@A: A' type=A origin=null arg1: CALL '(): Int' type=kotlin.Int origin=GET_PROPERTY $this: GET_VAR 'tmp0_other_with_cast: A' type=A origin=null - then: RETURN type=kotlin.Nothing from='equals(Any?): Boolean' - CONST Boolean type=kotlin.Boolean value='false' + then: RETURN type=kotlin.Nothing from=equals(Any?): Boolean' + CONST Boolean type=kotlin.Boolean value=false WHEN type=kotlin.Unit origin=null BRANCH if: CALL 'NOT(Boolean): Boolean' type=kotlin.Boolean origin=EXCLEQ @@ -125,31 +125,31 @@ FILE /destructuringInLambda.kt $this: GET_VAR 'this@A: A' type=A origin=null arg1: CALL '(): Int' type=kotlin.Int origin=GET_PROPERTY $this: GET_VAR 'tmp0_other_with_cast: A' type=A origin=null - then: RETURN type=kotlin.Nothing from='equals(Any?): Boolean' - CONST Boolean type=kotlin.Boolean value='false' - RETURN type=kotlin.Nothing from='equals(Any?): Boolean' - CONST Boolean type=kotlin.Boolean value='true' - PROPERTY public var fn: (A) -> kotlin.Int - FIELD PROPERTY_BACKING_FIELD public var fn: (A) -> kotlin.Int + then: RETURN type=kotlin.Nothing from=equals(Any?): Boolean' + CONST Boolean type=kotlin.Boolean value=false + RETURN type=kotlin.Nothing from=equals(Any?): Boolean' + CONST Boolean type=kotlin.Boolean value=true + PROPERTY name:fn type:(A) -> kotlin.Int visibility:public modality:FINAL flags:var + FIELD PROPERTY_BACKING_FIELD name:fn type:(A) -> kotlin.Int visibility:public EXPRESSION_BODY BLOCK type=(A) -> kotlin.Int origin=LAMBDA - FUN LOCAL_FUNCTION_FOR_LAMBDA local final fun (: A): kotlin.Int - VALUE_PARAMETER value-parameter : A + FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> (:A) returnType:Int flags: + VALUE_PARAMETER name: index:0 type:A flags: BLOCK_BODY - VAR val y: kotlin.Int + VAR name:y type:kotlin.Int flags:val CALL 'component2(): Int' type=kotlin.Int origin=COMPONENT_N(index=2) $this: GET_VAR 'value-parameter : A' type=A origin=DESTRUCTURING_DECLARATION - RETURN type=kotlin.Nothing from='(A): Int' + RETURN type=kotlin.Nothing from=(A): Int' CALL 'plus(Int): Int' type=kotlin.Int origin=PLUS - $this: CONST Int type=kotlin.Int value='42' + $this: CONST Int type=kotlin.Int value=42 other: GET_VAR 'y: Int' type=kotlin.Int origin=null FUNCTION_REFERENCE '(A): Int' type=(A) -> kotlin.Int origin=LAMBDA - FUN DEFAULT_PROPERTY_ACCESSOR public fun (): (A) -> kotlin.Int + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:Function1 flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): (A) -> Int' + RETURN type=kotlin.Nothing from=(): (A) -> Int' GET_FIELD 'fn: (A) -> Int' type=(A) -> kotlin.Int origin=null - FUN DEFAULT_PROPERTY_ACCESSOR public fun (: (A) -> kotlin.Int): kotlin.Unit - VALUE_PARAMETER value-parameter : (A) -> kotlin.Int + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> (:(A) -> kotlin.Int) returnType:Unit flags: + VALUE_PARAMETER name: index:0 type:(A) -> kotlin.Int flags: BLOCK_BODY SET_FIELD 'fn: (A) -> Int' type=kotlin.Unit origin=null value: GET_VAR 'value-parameter : (A) -> Int' type=(A) -> kotlin.Int origin=null diff --git a/compiler/testData/ir/irText/lambdas/extensionLambda.txt b/compiler/testData/ir/irText/lambdas/extensionLambda.txt index c96889eb034..dc83fbb16d4 100644 --- a/compiler/testData/ir/irText/lambdas/extensionLambda.txt +++ b/compiler/testData/ir/irText/lambdas/extensionLambda.txt @@ -1,16 +1,16 @@ -FILE /extensionLambda.kt - FUN public fun test1(): kotlin.Int +FILE fqName: fileName:/extensionLambda.kt + FUN name:test1 visibility:public modality:FINAL <> () returnType:Int flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='test1(): Int' + RETURN type=kotlin.Nothing from=test1(): Int' CALL 'run(String.() -> Int) on String: Int' type=kotlin.Int origin=null : String : Int - $receiver: CONST String type=kotlin.String value='42' + $receiver: CONST String type=kotlin.String value=42 block: BLOCK type=kotlin.String.() -> kotlin.Int origin=LAMBDA - FUN LOCAL_FUNCTION_FOR_LAMBDA local final fun kotlin.String.(): kotlin.Int - $receiver: VALUE_PARAMETER this@: String + FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> ($receiver:kotlin.String) returnType:Int flags: + $receiver: VALUE_PARAMETER name: type:kotlin.String flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='() on String: Int' + RETURN type=kotlin.Nothing from=() on String: Int' CALL '(): Int' type=kotlin.Int origin=GET_PROPERTY $this: GET_VAR 'this@: String' type=kotlin.String origin=null FUNCTION_REFERENCE '() on String: Int' type=kotlin.String.() -> kotlin.Int origin=LAMBDA diff --git a/compiler/testData/ir/irText/lambdas/justLambda.txt b/compiler/testData/ir/irText/lambdas/justLambda.txt index ab4c07f10e1..6876cc49952 100644 --- a/compiler/testData/ir/irText/lambdas/justLambda.txt +++ b/compiler/testData/ir/irText/lambdas/justLambda.txt @@ -1,28 +1,28 @@ -FILE /justLambda.kt - PROPERTY public val test1: () -> kotlin.Int - FIELD PROPERTY_BACKING_FIELD public val test1: () -> kotlin.Int +FILE fqName: fileName:/justLambda.kt + PROPERTY name:test1 type:() -> kotlin.Int visibility:public modality:FINAL flags:val + FIELD PROPERTY_BACKING_FIELD name:test1 type:() -> kotlin.Int visibility:public EXPRESSION_BODY BLOCK type=() -> kotlin.Int origin=LAMBDA - FUN LOCAL_FUNCTION_FOR_LAMBDA local final fun (): kotlin.Int + FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> () returnType:Int flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): Int' - CONST Int type=kotlin.Int value='42' + RETURN type=kotlin.Nothing from=(): Int' + CONST Int type=kotlin.Int value=42 FUNCTION_REFERENCE '(): Int' type=() -> kotlin.Int origin=LAMBDA - FUN DEFAULT_PROPERTY_ACCESSOR public fun (): () -> kotlin.Int + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:Function0 flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): () -> Int' + RETURN type=kotlin.Nothing from=(): () -> Int' GET_FIELD 'test1: () -> Int' type=() -> kotlin.Int origin=null - PROPERTY public val test2: () -> kotlin.Unit - FIELD PROPERTY_BACKING_FIELD public val test2: () -> kotlin.Unit + PROPERTY name:test2 type:() -> kotlin.Unit visibility:public modality:FINAL flags:val + FIELD PROPERTY_BACKING_FIELD name:test2 type:() -> kotlin.Unit visibility:public EXPRESSION_BODY BLOCK type=() -> kotlin.Unit origin=LAMBDA - FUN LOCAL_FUNCTION_FOR_LAMBDA local final fun (): kotlin.Unit + FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> () returnType:Unit flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): Unit' + RETURN type=kotlin.Nothing from=(): Unit' GET_OBJECT 'Unit' type=kotlin.Unit FUNCTION_REFERENCE '(): Unit' type=() -> kotlin.Unit origin=LAMBDA - FUN DEFAULT_PROPERTY_ACCESSOR public fun (): () -> kotlin.Unit + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:Function0 flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): () -> Unit' + RETURN type=kotlin.Nothing from=(): () -> Unit' GET_FIELD 'test2: () -> Unit' type=() -> kotlin.Unit origin=null diff --git a/compiler/testData/ir/irText/lambdas/localFunction.txt b/compiler/testData/ir/irText/lambdas/localFunction.txt index c16c987e6dd..8a2a507e748 100644 --- a/compiler/testData/ir/irText/lambdas/localFunction.txt +++ b/compiler/testData/ir/irText/lambdas/localFunction.txt @@ -1,13 +1,13 @@ -FILE /localFunction.kt - FUN public fun outer(): kotlin.Unit +FILE fqName: fileName:/localFunction.kt + FUN name:outer visibility:public modality:FINAL <> () returnType:Unit flags: BLOCK_BODY - VAR var x: kotlin.Int - CONST Int type=kotlin.Int value='0' - FUN local final fun local(): kotlin.Unit + VAR name:x type:kotlin.Int flags:var + CONST Int type=kotlin.Int value=0 + FUN name:local visibility:local modality:FINAL <> () returnType:Unit flags: BLOCK_BODY TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit BLOCK type=kotlin.Int origin=POSTFIX_INCR - VAR IR_TEMPORARY_VARIABLE val tmp0: kotlin.Int + VAR IR_TEMPORARY_VARIABLE name:tmp0 type:kotlin.Int flags:val GET_VAR 'x: Int' type=kotlin.Int origin=POSTFIX_INCR SET_VAR 'x: Int' type=kotlin.Unit origin=POSTFIX_INCR CALL 'inc(): Int' type=kotlin.Int origin=POSTFIX_INCR diff --git a/compiler/testData/ir/irText/lambdas/multipleImplicitReceivers.txt b/compiler/testData/ir/irText/lambdas/multipleImplicitReceivers.txt index 54499e06532..121621fc916 100644 --- a/compiler/testData/ir/irText/lambdas/multipleImplicitReceivers.txt +++ b/compiler/testData/ir/irText/lambdas/multipleImplicitReceivers.txt @@ -1,64 +1,64 @@ -FILE /multipleImplicitReceivers.kt - CLASS OBJECT A - $this: VALUE_PARAMETER this@A: A - CONSTRUCTOR private constructor A() +FILE fqName: fileName:/multipleImplicitReceivers.kt + CLASS OBJECT name:A modality:FINAL visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:A flags: + CONSTRUCTOR visibility:private <> () returnType:A flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='A' - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any - CLASS OBJECT B - $this: VALUE_PARAMETER this@B: B - CONSTRUCTOR private constructor B() + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + CLASS OBJECT name:B modality:FINAL visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:B flags: + CONSTRUCTOR visibility:private <> () returnType:B flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='B' - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any - CLASS INTERFACE IFoo - $this: VALUE_PARAMETER this@IFoo: IFoo - PROPERTY public open val A.foo: B - FUN public open fun A.(): B - $this: VALUE_PARAMETER this@IFoo: IFoo - $receiver: VALUE_PARAMETER this@foo: A + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + CLASS INTERFACE name:IFoo modality:ABSTRACT visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:IFoo flags: + PROPERTY name:foo type:B visibility:public modality:OPEN flags:val + FUN name: visibility:public modality:OPEN <> ($this:IFoo, $receiver:A) returnType:B flags: + $this: VALUE_PARAMETER name: type:IFoo flags: + $receiver: VALUE_PARAMETER name: type:A flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='() on A: B' + RETURN type=kotlin.Nothing from=() on A: B' GET_OBJECT 'B' type=B - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any - CLASS INTERFACE IInvoke - $this: VALUE_PARAMETER this@IInvoke: IInvoke - FUN public open operator fun B.invoke(): kotlin.Int - $this: VALUE_PARAMETER this@IInvoke: IInvoke - $receiver: VALUE_PARAMETER this@invoke: B + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + CLASS INTERFACE name:IInvoke modality:ABSTRACT visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:IInvoke flags: + FUN name:invoke visibility:public modality:OPEN <> ($this:IInvoke, $receiver:B) returnType:Int flags: + $this: VALUE_PARAMETER name: type:IInvoke flags: + $receiver: VALUE_PARAMETER name: type:B flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='invoke() on B: Int' - CONST Int type=kotlin.Int value='42' - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any - FUN public fun test(fooImpl: IFoo, invokeImpl: IInvoke): kotlin.Unit - VALUE_PARAMETER value-parameter fooImpl: IFoo - VALUE_PARAMETER value-parameter invokeImpl: IInvoke + RETURN type=kotlin.Nothing from=invoke() on B: Int' + CONST Int type=kotlin.Int value=42 + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN name:test visibility:public modality:FINAL <> (fooImpl:IFoo, invokeImpl:IInvoke) returnType:Unit flags: + VALUE_PARAMETER name:fooImpl index:0 type:IFoo flags: + VALUE_PARAMETER name:invokeImpl index:1 type:IInvoke flags: BLOCK_BODY TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit CALL 'with(A, A.() -> Int): Int' type=kotlin.Int origin=null @@ -66,28 +66,28 @@ FILE /multipleImplicitReceivers.kt : Int receiver: GET_OBJECT 'A' type=A block: BLOCK type=A.() -> kotlin.Int origin=LAMBDA - FUN LOCAL_FUNCTION_FOR_LAMBDA local final fun A.(): kotlin.Int - $receiver: VALUE_PARAMETER this@: A + FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> ($receiver:A) returnType:Int flags: + $receiver: VALUE_PARAMETER name: type:A flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='() on A: Int' + RETURN type=kotlin.Nothing from=() on A: Int' CALL 'with(IFoo, IFoo.() -> Int): Int' type=kotlin.Int origin=null : IFoo : Int receiver: GET_VAR 'value-parameter fooImpl: IFoo' type=IFoo origin=null block: BLOCK type=IFoo.() -> kotlin.Int origin=LAMBDA - FUN LOCAL_FUNCTION_FOR_LAMBDA local final fun IFoo.(): kotlin.Int - $receiver: VALUE_PARAMETER this@: IFoo + FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> ($receiver:IFoo) returnType:Int flags: + $receiver: VALUE_PARAMETER name: type:IFoo flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='() on IFoo: Int' + RETURN type=kotlin.Nothing from=() on IFoo: Int' CALL 'with(IInvoke, IInvoke.() -> Int): Int' type=kotlin.Int origin=null : IInvoke : Int receiver: GET_VAR 'value-parameter invokeImpl: IInvoke' type=IInvoke origin=null block: BLOCK type=IInvoke.() -> kotlin.Int origin=LAMBDA - FUN LOCAL_FUNCTION_FOR_LAMBDA local final fun IInvoke.(): kotlin.Int - $receiver: VALUE_PARAMETER this@: IInvoke + FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> ($receiver:IInvoke) returnType:Int flags: + $receiver: VALUE_PARAMETER name: type:IInvoke flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='() on IInvoke: Int' + RETURN type=kotlin.Nothing from=() on IInvoke: Int' CALL 'invoke() on B: Int' type=kotlin.Int origin=INVOKE $this: GET_VAR 'this@: IInvoke' type=IInvoke origin=null $receiver: CALL '() on A: B' type=B origin=GET_PROPERTY diff --git a/compiler/testData/ir/irText/lambdas/nonLocalReturn.txt b/compiler/testData/ir/irText/lambdas/nonLocalReturn.txt index ec893fa0d5d..fdb63105055 100644 --- a/compiler/testData/ir/irText/lambdas/nonLocalReturn.txt +++ b/compiler/testData/ir/irText/lambdas/nonLocalReturn.txt @@ -1,90 +1,91 @@ -FILE /nonLocalReturn.kt - FUN public fun test0(): kotlin.Unit +FILE fqName: fileName:/nonLocalReturn.kt + FUN name:test0 visibility:public modality:FINAL <> () returnType:Unit flags: BLOCK_BODY CALL 'run(() -> Nothing): Nothing' type=kotlin.Nothing origin=null : Nothing block: BLOCK type=() -> kotlin.Nothing origin=LAMBDA - FUN LOCAL_FUNCTION_FOR_LAMBDA local final fun (): kotlin.Nothing + FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> () returnType:Nothing flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='test0(): Unit' + RETURN type=kotlin.Nothing from=test0(): Unit' GET_OBJECT 'Unit' type=kotlin.Unit FUNCTION_REFERENCE '(): Nothing' type=() -> kotlin.Nothing origin=LAMBDA - FUN public fun test1(): kotlin.Unit + FUN name:test1 visibility:public modality:FINAL <> () returnType:Unit flags: BLOCK_BODY CALL 'run(() -> Unit): Unit' type=kotlin.Unit origin=null : Unit block: BLOCK type=() -> kotlin.Unit origin=LAMBDA - FUN LOCAL_FUNCTION_FOR_LAMBDA local final fun (): kotlin.Unit + FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> () returnType:Unit flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): Unit' + RETURN type=kotlin.Nothing from=(): Unit' GET_OBJECT 'Unit' type=kotlin.Unit FUNCTION_REFERENCE '(): Unit' type=() -> kotlin.Unit origin=LAMBDA - FUN public fun test2(): kotlin.Unit + FUN name:test2 visibility:public modality:FINAL <> () returnType:Unit flags: BLOCK_BODY CALL 'run(() -> Unit): Unit' type=kotlin.Unit origin=null : Unit block: BLOCK type=() -> kotlin.Unit origin=LAMBDA - FUN LOCAL_FUNCTION_FOR_LAMBDA local final fun (): kotlin.Unit + FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> () returnType:Unit flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): Unit' + RETURN type=kotlin.Nothing from=(): Unit' GET_OBJECT 'Unit' type=kotlin.Unit FUNCTION_REFERENCE '(): Unit' type=() -> kotlin.Unit origin=LAMBDA - FUN public fun test3(): kotlin.Unit + FUN name:test3 visibility:public modality:FINAL <> () returnType:Unit flags: BLOCK_BODY CALL 'run(() -> Unit): Unit' type=kotlin.Unit origin=null : Unit block: BLOCK type=() -> kotlin.Unit origin=LAMBDA - FUN LOCAL_FUNCTION_FOR_LAMBDA local final fun (): kotlin.Unit + FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> () returnType:Unit flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): Unit' + RETURN type=kotlin.Nothing from=(): Unit' CALL 'run(() -> Nothing): Nothing' type=kotlin.Nothing origin=null : Nothing block: BLOCK type=() -> kotlin.Nothing origin=LAMBDA - FUN LOCAL_FUNCTION_FOR_LAMBDA local final fun (): kotlin.Nothing + FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> () returnType:Nothing flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): Unit' + RETURN type=kotlin.Nothing from=(): Unit' GET_OBJECT 'Unit' type=kotlin.Unit FUNCTION_REFERENCE '(): Nothing' type=() -> kotlin.Nothing origin=LAMBDA FUNCTION_REFERENCE '(): Unit' type=() -> kotlin.Unit origin=LAMBDA - FUN public fun testLrmFoo1(ints: kotlin.collections.List): kotlin.Unit - VALUE_PARAMETER value-parameter ints: kotlin.collections.List + FUN name:testLrmFoo1 visibility:public modality:FINAL <> (ints:kotlin.collections.List) returnType:Unit flags: + VALUE_PARAMETER name:ints index:0 type:kotlin.collections.List flags: BLOCK_BODY CALL 'forEach((Int) -> Unit) on Iterable: Unit' type=kotlin.Unit origin=null : Int $receiver: GET_VAR 'value-parameter ints: List' type=kotlin.collections.List origin=null action: BLOCK type=(kotlin.Int) -> kotlin.Unit origin=LAMBDA - FUN LOCAL_FUNCTION_FOR_LAMBDA local final fun (it: kotlin.Int): kotlin.Unit - VALUE_PARAMETER value-parameter it: kotlin.Int + FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> (it:kotlin.Int) returnType:Unit flags: + VALUE_PARAMETER name:it index:0 type:kotlin.Int flags: BLOCK_BODY WHEN type=kotlin.Unit origin=null BRANCH if: CALL 'EQEQ(Any?, Any?): Boolean' type=kotlin.Boolean origin=EQEQ arg0: GET_VAR 'value-parameter it: Int' type=kotlin.Int origin=null - arg1: CONST Int type=kotlin.Int value='0' - then: RETURN type=kotlin.Nothing from='(Int): Unit' + arg1: CONST Int type=kotlin.Int value=0 + then: RETURN type=kotlin.Nothing from=(Int): Unit' GET_OBJECT 'Unit' type=kotlin.Unit - RETURN type=kotlin.Nothing from='(Int): Unit' + RETURN type=kotlin.Nothing from=(Int): Unit' CALL 'print(Int): Unit' type=kotlin.Unit origin=null message: GET_VAR 'value-parameter it: Int' type=kotlin.Int origin=null FUNCTION_REFERENCE '(Int): Unit' type=(kotlin.Int) -> kotlin.Unit origin=LAMBDA - FUN public fun testLrmFoo2(ints: kotlin.collections.List): kotlin.Unit - VALUE_PARAMETER value-parameter ints: kotlin.collections.List + FUN name:testLrmFoo2 visibility:public modality:FINAL <> (ints:kotlin.collections.List) returnType:Unit flags: + VALUE_PARAMETER name:ints index:0 type:kotlin.collections.List flags: BLOCK_BODY CALL 'forEach((Int) -> Unit) on Iterable: Unit' type=kotlin.Unit origin=null : Int $receiver: GET_VAR 'value-parameter ints: List' type=kotlin.collections.List origin=null action: BLOCK type=(kotlin.Int) -> kotlin.Unit origin=LAMBDA - FUN LOCAL_FUNCTION_FOR_LAMBDA local final fun (it: kotlin.Int): kotlin.Unit - VALUE_PARAMETER value-parameter it: kotlin.Int + FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> (it:kotlin.Int) returnType:Unit flags: + VALUE_PARAMETER name:it index:0 type:kotlin.Int flags: BLOCK_BODY WHEN type=kotlin.Unit origin=null BRANCH if: CALL 'EQEQ(Any?, Any?): Boolean' type=kotlin.Boolean origin=EQEQ arg0: GET_VAR 'value-parameter it: Int' type=kotlin.Int origin=null - arg1: CONST Int type=kotlin.Int value='0' - then: RETURN type=kotlin.Nothing from='(Int): Unit' + arg1: CONST Int type=kotlin.Int value=0 + then: RETURN type=kotlin.Nothing from=(Int): Unit' GET_OBJECT 'Unit' type=kotlin.Unit - RETURN type=kotlin.Nothing from='(Int): Unit' + RETURN type=kotlin.Nothing from=(Int): Unit' CALL 'print(Int): Unit' type=kotlin.Unit origin=null message: GET_VAR 'value-parameter it: Int' type=kotlin.Int origin=null FUNCTION_REFERENCE '(Int): Unit' type=(kotlin.Int) -> kotlin.Unit origin=LAMBDA + diff --git a/compiler/testData/ir/irText/lambdas/samAdapter.txt b/compiler/testData/ir/irText/lambdas/samAdapter.txt index 5fc6bc58607..be010646208 100644 --- a/compiler/testData/ir/irText/lambdas/samAdapter.txt +++ b/compiler/testData/ir/irText/lambdas/samAdapter.txt @@ -1,14 +1,14 @@ -FILE /samAdapter.kt - FUN public fun test1(): kotlin.Unit +FILE fqName: fileName:/samAdapter.kt + FUN name:test1 visibility:public modality:FINAL <> () returnType:Unit flags: BLOCK_BODY - VAR val hello: java.lang.Runnable + VAR name:hello type:java.lang.Runnable flags:val CALL 'Runnable(() -> Unit): Runnable' type=java.lang.Runnable origin=null function: BLOCK type=() -> kotlin.Unit origin=LAMBDA - FUN LOCAL_FUNCTION_FOR_LAMBDA local final fun (): kotlin.Unit + FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> () returnType:Unit flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): Unit' + RETURN type=kotlin.Nothing from=(): Unit' CALL 'println(Any?): Unit' type=kotlin.Unit origin=null - message: CONST String type=kotlin.String value='Hello, world!' + message: CONST String type=kotlin.String value=Hello, world! FUNCTION_REFERENCE '(): Unit' type=() -> kotlin.Unit origin=LAMBDA CALL 'run(): Unit' type=kotlin.Unit origin=null $this: GET_VAR 'hello: Runnable' type=java.lang.Runnable origin=null diff --git a/compiler/testData/ir/irText/regressions/coercionInLoop.txt b/compiler/testData/ir/irText/regressions/coercionInLoop.txt index 646a5c4797f..3c61a4542cd 100644 --- a/compiler/testData/ir/irText/regressions/coercionInLoop.txt +++ b/compiler/testData/ir/irText/regressions/coercionInLoop.txt @@ -1,14 +1,14 @@ -FILE /coercionInLoop.kt - FUN public fun box(): kotlin.String +FILE fqName: fileName:/coercionInLoop.kt + FUN name:box visibility:public modality:FINAL <> () returnType:String flags: BLOCK_BODY - VAR val a: kotlin.DoubleArray + VAR name:a type:kotlin.DoubleArray flags:val CALL 'constructor DoubleArray(Int)' type=kotlin.DoubleArray origin=null - size: CONST Int type=kotlin.Int value='5' - VAR val x: kotlin.collections.DoubleIterator + size: CONST Int type=kotlin.Int value=5 + VAR name:x type:kotlin.collections.DoubleIterator flags:val CALL 'iterator(): DoubleIterator' type=kotlin.collections.DoubleIterator origin=null $this: GET_VAR 'a: DoubleArray' type=kotlin.DoubleArray origin=null - VAR var i: kotlin.Int - CONST Int type=kotlin.Int value='0' + VAR name:i type:kotlin.Int flags:var + CONST Int type=kotlin.Int value=0 WHILE label=null origin=WHILE_LOOP condition: CALL 'hasNext(): Boolean' type=kotlin.Boolean origin=null $this: GET_VAR 'x: DoubleIterator' type=kotlin.collections.DoubleIterator origin=null @@ -22,18 +22,18 @@ FILE /coercionInLoop.kt index: GET_VAR 'i: Int' type=kotlin.Int origin=null arg1: CALL 'next(): Double' type=kotlin.Double origin=null $this: GET_VAR 'x: DoubleIterator' type=kotlin.collections.DoubleIterator origin=null - then: RETURN type=kotlin.Nothing from='box(): String' + then: RETURN type=kotlin.Nothing from=box(): String' STRING_CONCATENATION type=kotlin.String - CONST String type=kotlin.String value='Fail ' + CONST String type=kotlin.String value=Fail GET_VAR 'i: Int' type=kotlin.Int origin=null TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit BLOCK type=kotlin.Int origin=POSTFIX_INCR - VAR IR_TEMPORARY_VARIABLE val tmp0: kotlin.Int + VAR IR_TEMPORARY_VARIABLE name:tmp0 type:kotlin.Int flags:val GET_VAR 'i: Int' type=kotlin.Int origin=POSTFIX_INCR SET_VAR 'i: Int' type=kotlin.Unit origin=POSTFIX_INCR CALL 'inc(): Int' type=kotlin.Int origin=POSTFIX_INCR $this: GET_VAR 'tmp0: Int' type=kotlin.Int origin=null GET_VAR 'tmp0: Int' type=kotlin.Int origin=null - RETURN type=kotlin.Nothing from='box(): String' - CONST String type=kotlin.String value='OK' + RETURN type=kotlin.Nothing from=box(): String' + CONST String type=kotlin.String value=OK diff --git a/compiler/testData/ir/irText/regressions/integerCoercionToT.txt b/compiler/testData/ir/irText/regressions/integerCoercionToT.txt index b90d7e04f17..571f154f8dd 100644 --- a/compiler/testData/ir/irText/regressions/integerCoercionToT.txt +++ b/compiler/testData/ir/irText/regressions/integerCoercionToT.txt @@ -1,71 +1,71 @@ -FILE /integerCoercionToT.kt - CLASS INTERFACE CPointed - $this: VALUE_PARAMETER this@CPointed: CPointed - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any - FUN public inline fun CPointed.reinterpret(): T - TYPE_PARAMETER - $receiver: VALUE_PARAMETER this@reinterpret: CPointed +FILE fqName: fileName:/integerCoercionToT.kt + CLASS INTERFACE name:CPointed modality:ABSTRACT visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:CPointed flags: + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN name:reinterpret visibility:public modality:FINAL ($receiver:CPointed) returnType:T flags:inline + TYPE_PARAMETER name:T index:0 variance: upperBounds:[CPointed] + $receiver: VALUE_PARAMETER name: type:CPointed flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='reinterpret() on CPointed: T' + RETURN type=kotlin.Nothing from=reinterpret() on CPointed: T' CALL 'TODO(): Nothing' type=kotlin.Nothing origin=null - CLASS CLASS CInt32VarX - $this: VALUE_PARAMETER this@CInt32VarX: CInt32VarX - TYPE_PARAMETER - CONSTRUCTOR public constructor CInt32VarX() + CLASS CLASS name:CInt32VarX modality:FINAL visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:CInt32VarX flags: + TYPE_PARAMETER name:T index:0 variance: upperBounds:[kotlin.Any?] + CONSTRUCTOR visibility:public <> () returnType:CInt32VarX flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='CInt32VarX' - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: TYPEALIAS typealias CInt32Var = CInt32VarX type=CInt32VarX - PROPERTY public var CInt32VarX.value: T_INT - FUN public fun CInt32VarX.(): T_INT - $receiver: VALUE_PARAMETER this@value: CInt32VarX + PROPERTY name:value type:T_INT visibility:public modality:FINAL flags:var + FUN name: visibility:public modality:FINAL <> ($receiver:CInt32VarX) returnType:T_INT flags: + $receiver: VALUE_PARAMETER name: type:CInt32VarX flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='() on CInt32VarX: T_INT' + RETURN type=kotlin.Nothing from=() on CInt32VarX: T_INT' CALL 'TODO(): Nothing' type=kotlin.Nothing origin=null - FUN public fun CInt32VarX.(value: T_INT): kotlin.Unit - $receiver: VALUE_PARAMETER this@value: CInt32VarX - VALUE_PARAMETER value-parameter value: T_INT + FUN name: visibility:public modality:FINAL <> ($receiver:CInt32VarX, value:T_INT) returnType:Unit flags: + $receiver: VALUE_PARAMETER name: type:CInt32VarX flags: + VALUE_PARAMETER name:value index:0 type:T_INT flags: BLOCK_BODY - CLASS CLASS IdType - $this: VALUE_PARAMETER this@IdType: IdType - CONSTRUCTOR public constructor IdType(value: kotlin.Int) - VALUE_PARAMETER value-parameter value: kotlin.Int + CLASS CLASS name:IdType modality:FINAL visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:IdType flags: + CONSTRUCTOR visibility:public <> (value:kotlin.Int) returnType:IdType flags: + VALUE_PARAMETER name:value index:0 type:kotlin.Int flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='IdType' - PROPERTY public final val value: kotlin.Int - FIELD PROPERTY_BACKING_FIELD public final val value: kotlin.Int + PROPERTY name:value type:kotlin.Int visibility:public modality:FINAL flags:val + FIELD PROPERTY_BACKING_FIELD name:value type:kotlin.Int visibility:public EXPRESSION_BODY GET_VAR 'value-parameter value: Int' type=kotlin.Int origin=INITIALIZE_PROPERTY_FROM_PARAMETER - FUN DEFAULT_PROPERTY_ACCESSOR public final fun (): kotlin.Int - $this: VALUE_PARAMETER this@IdType: IdType + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:IdType) returnType:Int flags: + $this: VALUE_PARAMETER name: type:IdType flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): Int' + RETURN type=kotlin.Nothing from=(): Int' GET_FIELD 'value: Int' type=kotlin.Int origin=null receiver: GET_VAR 'this@IdType: IdType' type=IdType origin=null - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any - FUN public fun foo(value: IdType, cv: CInt32Var /* = CInt32VarX */): kotlin.Unit - VALUE_PARAMETER value-parameter value: IdType - VALUE_PARAMETER value-parameter cv: CInt32Var /* = CInt32VarX */ + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN name:foo visibility:public modality:FINAL <> (value:IdType, cv:CInt32Var /* = CInt32VarX */) returnType:Unit flags: + VALUE_PARAMETER name:value index:0 type:IdType flags: + VALUE_PARAMETER name:cv index:1 type:CInt32Var /* = CInt32VarX */ flags: BLOCK_BODY CALL '(Int) on CInt32VarX: Unit' type=kotlin.Unit origin=EQ $receiver: GET_VAR 'value-parameter cv: CInt32Var /* = CInt32VarX */' type=CInt32Var /* = CInt32VarX */ origin=null diff --git a/compiler/testData/ir/irText/regressions/newInference/fixationOrder1.txt b/compiler/testData/ir/irText/regressions/newInference/fixationOrder1.txt index 86277364812..b879d4af9dc 100644 --- a/compiler/testData/ir/irText/regressions/newInference/fixationOrder1.txt +++ b/compiler/testData/ir/irText/regressions/newInference/fixationOrder1.txt @@ -1,44 +1,45 @@ -FILE /fixationOrder1.kt - FUN public fun foo(): (X) -> Y - TYPE_PARAMETER - TYPE_PARAMETER +FILE fqName: fileName:/fixationOrder1.kt + FUN name:foo visibility:public modality:FINAL () returnType:Function1 flags: + TYPE_PARAMETER name:X index:0 variance: upperBounds:[kotlin.Any?] + TYPE_PARAMETER name:Y index:1 variance: upperBounds:[kotlin.Any?] BLOCK_BODY - RETURN type=kotlin.Nothing from='foo(): (X) -> Y' + RETURN type=kotlin.Nothing from=foo(): (X) -> Y' CALL 'TODO(): Nothing' type=kotlin.Nothing origin=null - CLASS INTERFACE Inv2 - $this: VALUE_PARAMETER this@Inv2: Inv2 - TYPE_PARAMETER - TYPE_PARAMETER - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any - FUN public fun check(x: T, y: R, f: (T) -> R): Inv2 - TYPE_PARAMETER - TYPE_PARAMETER - VALUE_PARAMETER value-parameter x: T - VALUE_PARAMETER value-parameter y: R - VALUE_PARAMETER value-parameter f: (T) -> R + CLASS INTERFACE name:Inv2 modality:ABSTRACT visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Inv2 flags: + TYPE_PARAMETER name:A index:0 variance: upperBounds:[kotlin.Any?] + TYPE_PARAMETER name:B index:1 variance: upperBounds:[kotlin.Any?] + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN name:check visibility:public modality:FINAL (x:T, y:R, f:(T) -> R) returnType:Inv2 flags: + TYPE_PARAMETER name:T index:0 variance: upperBounds:[kotlin.Any?] + TYPE_PARAMETER name:R index:1 variance: upperBounds:[kotlin.Any?] + VALUE_PARAMETER name:x index:0 type:T flags: + VALUE_PARAMETER name:y index:1 type:R flags: + VALUE_PARAMETER name:f index:2 type:(T) -> R flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='check(T, R, (T) -> R): Inv2' + RETURN type=kotlin.Nothing from=check(T, R, (T) -> R): Inv2' CALL 'TODO(): Nothing' type=kotlin.Nothing origin=null - FUN public fun test(): Inv2 + FUN name:test visibility:public modality:FINAL <> () returnType:Inv2 flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='test(): Inv2' + RETURN type=kotlin.Nothing from=test(): Inv2' CALL 'check(String, Int, (String) -> Int): Inv2' type=Inv2 origin=null : String : Int - x: CONST String type=kotlin.String value='' - y: CONST Int type=kotlin.Int value='1' + x: CONST String type=kotlin.String value= + y: CONST Int type=kotlin.Int value=1 f: CALL 'foo(): (String) -> Int' type=(kotlin.String) -> kotlin.Int origin=null : String : Int - FUN public fun box(): kotlin.String + FUN name:box visibility:public modality:FINAL <> () returnType:String flags: BLOCK_BODY - VAR val x: Inv2 + VAR name:x type:Inv2 flags:val CALL 'test(): Inv2' type=Inv2 origin=null - RETURN type=kotlin.Nothing from='box(): String' - CONST String type=kotlin.String value='OK' + RETURN type=kotlin.Nothing from=box(): String' + CONST String type=kotlin.String value=OK + diff --git a/compiler/testData/ir/irText/regressions/typeAliasCtorForGenericClass.txt b/compiler/testData/ir/irText/regressions/typeAliasCtorForGenericClass.txt index f015e9ed2d3..202a81d914b 100644 --- a/compiler/testData/ir/irText/regressions/typeAliasCtorForGenericClass.txt +++ b/compiler/testData/ir/irText/regressions/typeAliasCtorForGenericClass.txt @@ -1,38 +1,38 @@ -FILE /typeAliasCtorForGenericClass.kt - CLASS CLASS A - $this: VALUE_PARAMETER this@A: A - TYPE_PARAMETER - CONSTRUCTOR public constructor A(q: Q) - VALUE_PARAMETER value-parameter q: Q +FILE fqName: fileName:/typeAliasCtorForGenericClass.kt + CLASS CLASS name:A modality:FINAL visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:A flags: + TYPE_PARAMETER name:Q index:0 variance: upperBounds:[kotlin.Any?] + CONSTRUCTOR visibility:public <> (q:Q) returnType:A flags: + VALUE_PARAMETER name:q index:0 type:Q flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='A' - PROPERTY public final val q: Q - FIELD PROPERTY_BACKING_FIELD public final val q: Q + PROPERTY name:q type:Q visibility:public modality:FINAL flags:val + FIELD PROPERTY_BACKING_FIELD name:q type:Q visibility:public EXPRESSION_BODY GET_VAR 'value-parameter q: Q' type=Q origin=INITIALIZE_PROPERTY_FROM_PARAMETER - FUN DEFAULT_PROPERTY_ACCESSOR public final fun (): Q - $this: VALUE_PARAMETER this@A: A + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:A) returnType:Q flags: + $this: VALUE_PARAMETER name: type:A flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): Q' + RETURN type=kotlin.Nothing from=(): Q' GET_FIELD 'q: Q' type=Q origin=null receiver: GET_VAR 'this@A: A' type=A origin=null - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: TYPEALIAS typealias B = A type=A TYPEALIAS typealias B2 = A> type=A> - FUN public fun bar(): kotlin.Unit + FUN name:bar visibility:public modality:FINAL <> () returnType:Unit flags: BLOCK_BODY - VAR val b: B /* = A */ + VAR name:b type:B /* = A */ flags:val CALL 'constructor A(Int)' type=A origin=null : null - q: CONST Int type=kotlin.Int value='2' - VAR val b2: B2 /* = A> */ + q: CONST Int type=kotlin.Int value=2 + VAR name:b2 type:B2 /* = A> */ flags:val CALL 'constructor A(A)' type=A> origin=null : null q: GET_VAR 'b: B /* = A */' type=B /* = A */ origin=null diff --git a/compiler/testData/ir/irText/singletons/companion.txt b/compiler/testData/ir/irText/singletons/companion.txt index 098f96dc945..6bc0aec6bd0 100644 --- a/compiler/testData/ir/irText/singletons/companion.txt +++ b/compiler/testData/ir/irText/singletons/companion.txt @@ -1,36 +1,36 @@ -FILE /companion.kt - CLASS CLASS Z - $this: VALUE_PARAMETER this@Z: Z - CONSTRUCTOR public constructor Z() +FILE fqName: fileName:/companion.kt + CLASS CLASS name:Z modality:FINAL visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Z flags: + CONSTRUCTOR visibility:public <> () returnType:Z flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='Z' - FUN public final fun test2(): kotlin.Unit - $this: VALUE_PARAMETER this@Z: Z + FUN name:test2 visibility:public modality:FINAL <> ($this:Z) returnType:Unit flags: + $this: VALUE_PARAMETER name: type:Z flags: BLOCK_BODY CALL 'test(): Unit' type=kotlin.Unit origin=null $this: GET_OBJECT 'companion object of Z' type=Z.Companion - CLASS OBJECT companion object of Z - $this: VALUE_PARAMETER this@Companion: Companion - CONSTRUCTOR private constructor Companion() + CLASS OBJECT name:Companion modality:FINAL visibility:public flags:companion + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Z.Companion flags: + CONSTRUCTOR visibility:private <> () returnType:Z.Companion flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='companion object of Z' - FUN public final fun test(): kotlin.Unit - $this: VALUE_PARAMETER this@Companion: Companion + FUN name:test visibility:public modality:FINAL <> ($this:Z.Companion) returnType:Unit flags: + $this: VALUE_PARAMETER name: type:Z.Companion flags: BLOCK_BODY - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: diff --git a/compiler/testData/ir/irText/singletons/enumEntry.txt b/compiler/testData/ir/irText/singletons/enumEntry.txt index ce3a426361e..a9cec99d139 100644 --- a/compiler/testData/ir/irText/singletons/enumEntry.txt +++ b/compiler/testData/ir/irText/singletons/enumEntry.txt @@ -1,87 +1,87 @@ -FILE /enumEntry.kt - CLASS ENUM_CLASS Z - $this: VALUE_PARAMETER this@Z: Z - CONSTRUCTOR private constructor Z() +FILE fqName: fileName:/enumEntry.kt + CLASS ENUM_CLASS name:Z modality:FINAL visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Z flags: + CONSTRUCTOR visibility:private <> () returnType:Z flags: BLOCK_BODY ENUM_CONSTRUCTOR_CALL 'constructor Enum(String, Int)' >: null INSTANCE_INITIALIZER_CALL classDescriptor='Z' - ENUM_ENTRY enum entry ENTRY + ENUM_ENTRY name:ENTRY init: ENUM_CONSTRUCTOR_CALL 'constructor ENTRY()' - class: CLASS ENUM_ENTRY ENTRY - $this: VALUE_PARAMETER this@ENTRY: ENTRY - CONSTRUCTOR private constructor ENTRY() + class: CLASS ENUM_ENTRY name:ENTRY modality:FINAL visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Z.ENTRY flags: + CONSTRUCTOR visibility:private <> () returnType:Z.ENTRY flags: BLOCK_BODY ENUM_CONSTRUCTOR_CALL 'constructor Z()' INSTANCE_INITIALIZER_CALL classDescriptor='ENTRY' - FUN public final fun test(): kotlin.Unit - $this: VALUE_PARAMETER this@ENTRY: ENTRY + FUN name:test visibility:public modality:FINAL <> ($this:Z.ENTRY) returnType:Unit flags: + $this: VALUE_PARAMETER name: type:Z.ENTRY flags: BLOCK_BODY - CLASS CLASS A - $this: VALUE_PARAMETER this@A: A - CONSTRUCTOR public constructor A() + CLASS CLASS name:A modality:FINAL visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Z.ENTRY.A flags: + CONSTRUCTOR visibility:public <> () returnType:Z.ENTRY.A flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='A' - FUN public final fun test2(): kotlin.Unit - $this: VALUE_PARAMETER this@A: A + FUN name:test2 visibility:public modality:FINAL <> ($this:Z.ENTRY.A) returnType:Unit flags: + $this: VALUE_PARAMETER name: type:Z.ENTRY.A flags: BLOCK_BODY CALL 'test(): Unit' type=kotlin.Unit origin=null $this: GET_ENUM 'ENTRY' type=Z.ENTRY - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE protected final override fun clone(): kotlin.Any - $this: VALUE_PARAMETER this@Enum: Enum - FUN FAKE_OVERRIDE protected/*protected and package*/ final override fun finalize(): kotlin.Unit - $this: VALUE_PARAMETER this@Enum: Enum - FUN FAKE_OVERRIDE public final override fun getDeclaringClass(): java.lang.Class! - $this: VALUE_PARAMETER this@Enum: Enum - FUN FAKE_OVERRIDE public final override fun compareTo(other: Z): kotlin.Int - $this: VALUE_PARAMETER this@Enum: Enum - VALUE_PARAMETER value-parameter other: Z - FUN FAKE_OVERRIDE public final override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Enum: Enum - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public final override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Enum: Enum - PROPERTY FAKE_OVERRIDE public final override val name: kotlin.String - FUN FAKE_OVERRIDE public final override fun (): kotlin.String - $this: VALUE_PARAMETER this@Enum: Enum - PROPERTY FAKE_OVERRIDE public final override val ordinal: kotlin.Int - FUN FAKE_OVERRIDE public final override fun (): kotlin.Int - $this: VALUE_PARAMETER this@Enum: Enum - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Enum: Enum - FUN FAKE_OVERRIDE protected final override fun clone(): kotlin.Any - $this: VALUE_PARAMETER this@Enum: Enum - FUN FAKE_OVERRIDE protected/*protected and package*/ final override fun finalize(): kotlin.Unit - $this: VALUE_PARAMETER this@Enum: Enum - FUN FAKE_OVERRIDE public final override fun getDeclaringClass(): java.lang.Class! - $this: VALUE_PARAMETER this@Enum: Enum - FUN FAKE_OVERRIDE public final override fun compareTo(other: Z): kotlin.Int - $this: VALUE_PARAMETER this@Enum: Enum - VALUE_PARAMETER value-parameter other: Z - FUN FAKE_OVERRIDE public final override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Enum: Enum - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public final override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Enum: Enum - PROPERTY FAKE_OVERRIDE public final override val name: kotlin.String - FUN FAKE_OVERRIDE public final override fun (): kotlin.String - $this: VALUE_PARAMETER this@Enum: Enum - PROPERTY FAKE_OVERRIDE public final override val ordinal: kotlin.Int - FUN FAKE_OVERRIDE public final override fun (): kotlin.Int - $this: VALUE_PARAMETER this@Enum: Enum - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Enum: Enum - FUN ENUM_CLASS_SPECIAL_MEMBER public final fun values(): kotlin.Array + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:clone visibility:protected modality:FINAL <> ($this:kotlin.Enum) returnType:Any flags: + $this: VALUE_PARAMETER name: type:kotlin.Enum flags: + FUN FAKE_OVERRIDE name:finalize visibility:protected/*protected and package*/ modality:FINAL <> ($this:kotlin.Enum) returnType:Unit flags: + $this: VALUE_PARAMETER name: type:kotlin.Enum flags: + FUN FAKE_OVERRIDE name:getDeclaringClass visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:(java.lang.Class<(Z..Z?)>..java.lang.Class<(Z..Z?)>?) flags: + $this: VALUE_PARAMETER name: type:kotlin.Enum flags: + FUN FAKE_OVERRIDE name:compareTo visibility:public modality:FINAL <> ($this:kotlin.Enum, other:Z) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Enum flags: + VALUE_PARAMETER name:other index:0 type:Z flags: + FUN FAKE_OVERRIDE name:equals visibility:public modality:FINAL <> ($this:kotlin.Enum, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Enum flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Enum flags: + PROPERTY FAKE_OVERRIDE name:name type:kotlin.String visibility:public modality:FINAL flags:val + FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Enum flags: + PROPERTY FAKE_OVERRIDE name:ordinal type:kotlin.Int visibility:public modality:FINAL flags:val + FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Enum flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Enum) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Enum flags: + FUN FAKE_OVERRIDE name:clone visibility:protected modality:FINAL <> ($this:kotlin.Enum) returnType:Any flags: + $this: VALUE_PARAMETER name: type:kotlin.Enum flags: + FUN FAKE_OVERRIDE name:finalize visibility:protected/*protected and package*/ modality:FINAL <> ($this:kotlin.Enum) returnType:Unit flags: + $this: VALUE_PARAMETER name: type:kotlin.Enum flags: + FUN FAKE_OVERRIDE name:getDeclaringClass visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:(java.lang.Class<(Z..Z?)>..java.lang.Class<(Z..Z?)>?) flags: + $this: VALUE_PARAMETER name: type:kotlin.Enum flags: + FUN FAKE_OVERRIDE name:compareTo visibility:public modality:FINAL <> ($this:kotlin.Enum, other:Z) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Enum flags: + VALUE_PARAMETER name:other index:0 type:Z flags: + FUN FAKE_OVERRIDE name:equals visibility:public modality:FINAL <> ($this:kotlin.Enum, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Enum flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Enum flags: + PROPERTY FAKE_OVERRIDE name:name type:kotlin.String visibility:public modality:FINAL flags:val + FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Enum flags: + PROPERTY FAKE_OVERRIDE name:ordinal type:kotlin.Int visibility:public modality:FINAL flags:val + FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Enum flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Enum) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Enum flags: + FUN ENUM_CLASS_SPECIAL_MEMBER name:values visibility:public modality:FINAL <> () returnType:Array flags: SYNTHETIC_BODY kind=ENUM_VALUES - FUN ENUM_CLASS_SPECIAL_MEMBER public final fun valueOf(value: kotlin.String): Z - VALUE_PARAMETER value-parameter value: kotlin.String + FUN ENUM_CLASS_SPECIAL_MEMBER name:valueOf visibility:public modality:FINAL <> (value:kotlin.String) returnType:Z flags: + VALUE_PARAMETER name:value index:0 type:kotlin.String flags: SYNTHETIC_BODY kind=ENUM_VALUEOF diff --git a/compiler/testData/ir/irText/singletons/object.txt b/compiler/testData/ir/irText/singletons/object.txt index d000f547529..39116614364 100644 --- a/compiler/testData/ir/irText/singletons/object.txt +++ b/compiler/testData/ir/irText/singletons/object.txt @@ -1,36 +1,36 @@ -FILE /object.kt - CLASS OBJECT Z - $this: VALUE_PARAMETER this@Z: Z - CONSTRUCTOR private constructor Z() +FILE fqName: fileName:/object.kt + CLASS OBJECT name:Z modality:FINAL visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Z flags: + CONSTRUCTOR visibility:private <> () returnType:Z flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='Z' - FUN public final fun test(): kotlin.Unit - $this: VALUE_PARAMETER this@Z: Z + FUN name:test visibility:public modality:FINAL <> ($this:Z) returnType:Unit flags: + $this: VALUE_PARAMETER name: type:Z flags: BLOCK_BODY - CLASS CLASS A - $this: VALUE_PARAMETER this@A: A - CONSTRUCTOR public constructor A() + CLASS CLASS name:A modality:FINAL visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Z.A flags: + CONSTRUCTOR visibility:public <> () returnType:Z.A flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' INSTANCE_INITIALIZER_CALL classDescriptor='A' - FUN public final fun test2(): kotlin.Unit - $this: VALUE_PARAMETER this@A: A + FUN name:test2 visibility:public modality:FINAL <> ($this:Z.A) returnType:Unit flags: + $this: VALUE_PARAMETER name: type:Z.A flags: BLOCK_BODY CALL 'test(): Unit' type=kotlin.Unit origin=null $this: GET_OBJECT 'Z' type=Z - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: diff --git a/compiler/testData/ir/irText/stubs/builtinMap.txt b/compiler/testData/ir/irText/stubs/builtinMap.txt index a276e74227c..cbcf056e005 100644 --- a/compiler/testData/ir/irText/stubs/builtinMap.txt +++ b/compiler/testData/ir/irText/stubs/builtinMap.txt @@ -1,11 +1,11 @@ -FILE /builtinMap.kt - FUN public fun kotlin.collections.Map.plus(pair: kotlin.Pair): kotlin.collections.Map - TYPE_PARAMETER - TYPE_PARAMETER - $receiver: VALUE_PARAMETER this@plus: Map - VALUE_PARAMETER value-parameter pair: kotlin.Pair +FILE fqName: fileName:/builtinMap.kt + FUN name:plus visibility:public modality:FINAL ($receiver:kotlin.collections.Map, pair:kotlin.Pair) returnType:Map flags: + TYPE_PARAMETER name:K index:0 variance: upperBounds:[kotlin.Any?] + TYPE_PARAMETER name:V index:1 variance: upperBounds:[kotlin.Any?] + $receiver: VALUE_PARAMETER name: type:kotlin.collections.Map flags: + VALUE_PARAMETER name:pair index:0 type:kotlin.Pair flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='plus(Pair) on Map: Map' + RETURN type=kotlin.Nothing from=plus(Pair) on Map: Map' WHEN type=kotlin.collections.Map origin=null BRANCH if: CALL 'isEmpty(): Boolean' type=kotlin.Boolean origin=null @@ -15,7 +15,7 @@ FILE /builtinMap.kt : V pair: GET_VAR 'value-parameter pair: Pair' type=kotlin.Pair origin=null BRANCH - if: CONST Boolean type=kotlin.Boolean value='true' + if: CONST Boolean type=kotlin.Boolean value=true then: CALL 'apply(LinkedHashMap /* = LinkedHashMap */.() -> Unit) on LinkedHashMap /* = LinkedHashMap */: LinkedHashMap /* = LinkedHashMap */' type=kotlin.collections.LinkedHashMap /* = java.util.LinkedHashMap */ origin=null : LinkedHashMap /* = LinkedHashMap */ $receiver: CALL 'constructor LinkedHashMap((MutableMap..Map?))' type=java.util.LinkedHashMap origin=null @@ -23,10 +23,10 @@ FILE /builtinMap.kt : null p0: GET_VAR 'this@plus: Map' type=kotlin.collections.Map origin=null block: BLOCK type=kotlin.collections.LinkedHashMap /* = java.util.LinkedHashMap */.() -> kotlin.Unit origin=LAMBDA - FUN LOCAL_FUNCTION_FOR_LAMBDA local final fun kotlin.collections.LinkedHashMap /* = java.util.LinkedHashMap */.(): kotlin.Unit - $receiver: VALUE_PARAMETER this@: LinkedHashMap<(K..K?), (V..V?)> + FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> ($receiver:kotlin.collections.LinkedHashMap /* = java.util.LinkedHashMap */) returnType:Unit flags: + $receiver: VALUE_PARAMETER name: type:kotlin.collections.LinkedHashMap /* = java.util.LinkedHashMap */ flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='() on LinkedHashMap /* = LinkedHashMap */: Unit' + RETURN type=kotlin.Nothing from=() on LinkedHashMap /* = LinkedHashMap */: Unit' TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit CALL 'put(K!, V!): V?' type=V? origin=null $this: GET_VAR 'this@: LinkedHashMap<(K..K?), (V..V?)>' type=kotlin.collections.LinkedHashMap /* = java.util.LinkedHashMap */ origin=null @@ -35,3 +35,4 @@ FILE /builtinMap.kt value: CALL '(): V' type=V origin=GET_PROPERTY $this: GET_VAR 'value-parameter pair: Pair' type=kotlin.Pair origin=null FUNCTION_REFERENCE '() on LinkedHashMap /* = LinkedHashMap */: Unit' type=kotlin.collections.LinkedHashMap /* = java.util.LinkedHashMap */.() -> kotlin.Unit origin=LAMBDA + diff --git a/compiler/testData/ir/irText/stubs/builtinMap__dependenciesoftestmodule.txt b/compiler/testData/ir/irText/stubs/builtinMap__dependenciesoftestmodule.txt index 01b16c4c718..354962fb53a 100644 --- a/compiler/testData/ir/irText/stubs/builtinMap__dependenciesoftestmodule.txt +++ b/compiler/testData/ir/irText/stubs/builtinMap__dependenciesoftestmodule.txt @@ -1,489 +1,489 @@ -MODULE_FRAGMENT - EXTERNAL_PACKAGE_FRAGMENT java.util - CLASS IR_EXTERNAL_DECLARATION_STUB CLASS LinkedHashMap - TYPE_PARAMETER - TYPE_PARAMETER - CONSTRUCTOR IR_EXTERNAL_DECLARATION_STUB public constructor LinkedHashMap() - CONSTRUCTOR IR_EXTERNAL_DECLARATION_STUB public constructor LinkedHashMap(p0: (kotlin.collections.MutableMap..kotlin.collections.Map?)) - VALUE_PARAMETER value-parameter p0: (kotlin.collections.MutableMap..kotlin.collections.Map?) - CONSTRUCTOR IR_EXTERNAL_DECLARATION_STUB public constructor LinkedHashMap(p0: kotlin.Int) - VALUE_PARAMETER value-parameter p0: kotlin.Int - CONSTRUCTOR IR_EXTERNAL_DECLARATION_STUB public constructor LinkedHashMap(p0: kotlin.Int, p1: kotlin.Float) - VALUE_PARAMETER value-parameter p0: kotlin.Int - VALUE_PARAMETER value-parameter p1: kotlin.Float - CONSTRUCTOR IR_EXTERNAL_DECLARATION_STUB public constructor LinkedHashMap(p0: kotlin.Int, p1: kotlin.Float, p2: kotlin.Boolean) - VALUE_PARAMETER value-parameter p0: kotlin.Int - VALUE_PARAMETER value-parameter p1: kotlin.Float - VALUE_PARAMETER value-parameter p2: kotlin.Boolean - FUN IR_EXTERNAL_DECLARATION_STUB invisible_fake open override fun readObject(p0: java.io.ObjectInputStream!): kotlin.Unit - VALUE_PARAMETER value-parameter p0: java.io.ObjectInputStream! - FUN IR_EXTERNAL_DECLARATION_STUB invisible_fake open override fun writeObject(p0: java.io.ObjectOutputStream!): kotlin.Unit - VALUE_PARAMETER value-parameter p0: java.io.ObjectOutputStream! - FUN IR_EXTERNAL_DECLARATION_STUB private open fun linkNodeLast(p0: java.util.LinkedHashMap.Entry!): kotlin.Unit - VALUE_PARAMETER value-parameter p0: java.util.LinkedHashMap.Entry! - FUN IR_EXTERNAL_DECLARATION_STUB private open fun transferLinks(p0: java.util.LinkedHashMap.Entry!, p1: java.util.LinkedHashMap.Entry!): kotlin.Unit - VALUE_PARAMETER value-parameter p0: java.util.LinkedHashMap.Entry! - VALUE_PARAMETER value-parameter p1: java.util.LinkedHashMap.Entry! - FUN IR_EXTERNAL_DECLARATION_STUB protected/*protected and package*/ open fun removeEldestEntry(p0: kotlin.collections.(Mutable)Map.(Mutable)Entry!): kotlin.Boolean - VALUE_PARAMETER value-parameter p0: kotlin.collections.(Mutable)Map.(Mutable)Entry! - FUN IR_EXTERNAL_DECLARATION_STUB public open override fun clone(): kotlin.Any - FUN IR_EXTERNAL_DECLARATION_STUB public open override fun compute(p0: K, p1: java.util.function.BiFunction): V? - VALUE_PARAMETER value-parameter p0: K - VALUE_PARAMETER value-parameter p1: java.util.function.BiFunction - FUN IR_EXTERNAL_DECLARATION_STUB public open override fun computeIfAbsent(p0: K, p1: java.util.function.Function): V - VALUE_PARAMETER value-parameter p0: K - VALUE_PARAMETER value-parameter p1: java.util.function.Function - FUN IR_EXTERNAL_DECLARATION_STUB public open override fun computeIfPresent(p0: K, p1: java.util.function.BiFunction): V? - VALUE_PARAMETER value-parameter p0: K - VALUE_PARAMETER value-parameter p1: java.util.function.BiFunction - FUN IR_EXTERNAL_DECLARATION_STUB public open override fun containsKey(key: K): kotlin.Boolean - VALUE_PARAMETER value-parameter key: K - FUN IR_EXTERNAL_DECLARATION_STUB public open override fun equals(other: kotlin.Any?): kotlin.Boolean - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN IR_EXTERNAL_DECLARATION_STUB public open override fun hashCode(): kotlin.Int - FUN IR_EXTERNAL_DECLARATION_STUB public open override fun isEmpty(): kotlin.Boolean - FUN IR_EXTERNAL_DECLARATION_STUB public open override fun merge(p0: K, p1: V, p2: java.util.function.BiFunction): V? - VALUE_PARAMETER value-parameter p0: K - VALUE_PARAMETER value-parameter p1: V - VALUE_PARAMETER value-parameter p2: java.util.function.BiFunction - FUN IR_EXTERNAL_DECLARATION_STUB public open override fun put(key: K, value: V): V? - VALUE_PARAMETER value-parameter key: K - VALUE_PARAMETER value-parameter value: V - FUN IR_EXTERNAL_DECLARATION_STUB public open override fun putAll(from: kotlin.collections.Map): kotlin.Unit - VALUE_PARAMETER value-parameter from: kotlin.collections.Map - FUN IR_EXTERNAL_DECLARATION_STUB public open override fun putIfAbsent(p0: K, p1: V): V? - VALUE_PARAMETER value-parameter p0: K - VALUE_PARAMETER value-parameter p1: V - FUN IR_EXTERNAL_DECLARATION_STUB public open override fun remove(key: K): V? - VALUE_PARAMETER value-parameter key: K - FUN IR_EXTERNAL_DECLARATION_STUB public open override fun remove(key: K, value: V): kotlin.Boolean - VALUE_PARAMETER value-parameter key: K - VALUE_PARAMETER value-parameter value: V - FUN IR_EXTERNAL_DECLARATION_STUB public open override fun replace(p0: K, p1: V): V? - VALUE_PARAMETER value-parameter p0: K - VALUE_PARAMETER value-parameter p1: V - FUN IR_EXTERNAL_DECLARATION_STUB public open override fun replace(p0: K, p1: V, p2: V): kotlin.Boolean - VALUE_PARAMETER value-parameter p0: K - VALUE_PARAMETER value-parameter p1: V - VALUE_PARAMETER value-parameter p2: V - FUN IR_EXTERNAL_DECLARATION_STUB public open override fun toString(): kotlin.String - PROPERTY IR_EXTERNAL_DECLARATION_STUB public open override val size: kotlin.Int - FUN IR_EXTERNAL_DECLARATION_STUB public open override fun (): kotlin.Int - FUN IR_EXTERNAL_DECLARATION_STUB public open override fun clear(): kotlin.Unit - FUN IR_EXTERNAL_DECLARATION_STUB public open override fun containsValue(value: V): kotlin.Boolean - VALUE_PARAMETER value-parameter value: V - FUN IR_EXTERNAL_DECLARATION_STUB public open override fun forEach(p0: java.util.function.BiConsumer): kotlin.Unit - VALUE_PARAMETER value-parameter p0: java.util.function.BiConsumer - FUN IR_EXTERNAL_DECLARATION_STUB public open override fun get(key: K): V? - VALUE_PARAMETER value-parameter key: K - FUN IR_EXTERNAL_DECLARATION_STUB public open override fun getOrDefault(key: K, defaultValue: V): V - VALUE_PARAMETER value-parameter key: K - VALUE_PARAMETER value-parameter defaultValue: V - FUN IR_EXTERNAL_DECLARATION_STUB public open override fun replaceAll(p0: java.util.function.BiFunction): kotlin.Unit - VALUE_PARAMETER value-parameter p0: java.util.function.BiFunction - PROPERTY IR_EXTERNAL_DECLARATION_STUB public open override val entries: kotlin.collections.MutableSet> - FUN IR_EXTERNAL_DECLARATION_STUB public open override fun (): kotlin.collections.(Mutable)Set!>! - PROPERTY IR_EXTERNAL_DECLARATION_STUB public open override val keys: kotlin.collections.MutableSet - FUN IR_EXTERNAL_DECLARATION_STUB public open override fun (): kotlin.collections.(Mutable)Set! - PROPERTY IR_EXTERNAL_DECLARATION_STUB public open override val values: kotlin.collections.MutableCollection - FUN IR_EXTERNAL_DECLARATION_STUB public open override fun (): kotlin.collections.(Mutable)Collection! - CLASS IR_EXTERNAL_DECLARATION_STUB CLASS LinkedHashIterator - CONSTRUCTOR IR_EXTERNAL_DECLARATION_STUB public/*package*/ constructor LinkedHashIterator() - FUN IR_EXTERNAL_DECLARATION_STUB public final fun remove(): kotlin.Unit - FUN IR_EXTERNAL_DECLARATION_STUB public final operator fun hasNext(): kotlin.Boolean - FUN IR_EXTERNAL_DECLARATION_STUB public open override fun equals(other: kotlin.Any?): kotlin.Boolean - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN IR_EXTERNAL_DECLARATION_STUB public open override fun hashCode(): kotlin.Int - FUN IR_EXTERNAL_DECLARATION_STUB public open override fun toString(): kotlin.String - FUN IR_EXTERNAL_DECLARATION_STUB public/*package*/ final fun nextNode(): java.util.LinkedHashMap.Entry! - PROPERTY IR_EXTERNAL_DECLARATION_STUB public/*package*/ final var current: java.util.LinkedHashMap.Entry! - FIELD IR_EXTERNAL_DECLARATION_STUB public/*package*/ final var current: java.util.LinkedHashMap.Entry! - PROPERTY IR_EXTERNAL_DECLARATION_STUB public/*package*/ final var expectedModCount: kotlin.Int - FIELD IR_EXTERNAL_DECLARATION_STUB public/*package*/ final var expectedModCount: kotlin.Int - PROPERTY IR_EXTERNAL_DECLARATION_STUB public/*package*/ final var next: java.util.LinkedHashMap.Entry! - FIELD IR_EXTERNAL_DECLARATION_STUB public/*package*/ final var next: java.util.LinkedHashMap.Entry! - CLASS IR_EXTERNAL_DECLARATION_STUB CLASS LinkedEntryIterator - CONSTRUCTOR IR_EXTERNAL_DECLARATION_STUB public/*package*/ constructor LinkedEntryIterator() - FUN IR_EXTERNAL_DECLARATION_STUB public final override fun next(): kotlin.collections.(Mutable)Map.(Mutable)Entry! - FUN IR_EXTERNAL_DECLARATION_STUB public final override fun hasNext(): kotlin.Boolean - FUN IR_EXTERNAL_DECLARATION_STUB public final override fun remove(): kotlin.Unit - FUN IR_EXTERNAL_DECLARATION_STUB public open override fun forEachRemaining(p0: java.util.function.Consumer!>): kotlin.Unit - VALUE_PARAMETER value-parameter p0: java.util.function.Consumer!> - FUN IR_EXTERNAL_DECLARATION_STUB public open override fun equals(other: kotlin.Any?): kotlin.Boolean - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN IR_EXTERNAL_DECLARATION_STUB public open override fun hashCode(): kotlin.Int - FUN IR_EXTERNAL_DECLARATION_STUB public open override fun toString(): kotlin.String - FUN IR_EXTERNAL_DECLARATION_STUB public/*package*/ final override fun nextNode(): java.util.LinkedHashMap.Entry! - PROPERTY IR_EXTERNAL_DECLARATION_STUB public/*package*/ final override var current: java.util.LinkedHashMap.Entry! - FIELD IR_EXTERNAL_DECLARATION_STUB public/*package*/ final override var current: java.util.LinkedHashMap.Entry! - PROPERTY IR_EXTERNAL_DECLARATION_STUB public/*package*/ final override var expectedModCount: kotlin.Int - FIELD IR_EXTERNAL_DECLARATION_STUB public/*package*/ final override var expectedModCount: kotlin.Int - PROPERTY IR_EXTERNAL_DECLARATION_STUB public/*package*/ final override var next: java.util.LinkedHashMap.Entry! - FIELD IR_EXTERNAL_DECLARATION_STUB public/*package*/ final override var next: java.util.LinkedHashMap.Entry! - CLASS IR_EXTERNAL_DECLARATION_STUB CLASS LinkedEntrySet - CONSTRUCTOR IR_EXTERNAL_DECLARATION_STUB public/*package*/ constructor LinkedEntrySet() - FUN IR_EXTERNAL_DECLARATION_STUB public final override fun clear(): kotlin.Unit - FUN IR_EXTERNAL_DECLARATION_STUB public final override fun contains(element: kotlin.collections.(Mutable)Map.(Mutable)Entry!): kotlin.Boolean - VALUE_PARAMETER value-parameter element: kotlin.collections.(Mutable)Map.(Mutable)Entry! - FUN IR_EXTERNAL_DECLARATION_STUB public final override fun forEach(p0: java.util.function.Consumer!>!): kotlin.Unit - VALUE_PARAMETER value-parameter p0: java.util.function.Consumer!>! - FUN IR_EXTERNAL_DECLARATION_STUB public final override fun iterator(): kotlin.collections.MutableIterator!> - FUN IR_EXTERNAL_DECLARATION_STUB public final override fun remove(element: kotlin.collections.(Mutable)Map.(Mutable)Entry!): kotlin.Boolean - VALUE_PARAMETER value-parameter element: kotlin.collections.(Mutable)Map.(Mutable)Entry! - FUN IR_EXTERNAL_DECLARATION_STUB public final override fun spliterator(): java.util.Spliterator!> - PROPERTY IR_EXTERNAL_DECLARATION_STUB public final override val size: kotlin.Int - FUN IR_EXTERNAL_DECLARATION_STUB public final override fun (): kotlin.Int - FUN IR_EXTERNAL_DECLARATION_STUB public open override fun toArray(p0: kotlin.Array<(out) T!>!): kotlin.Array<(out) T!>! - TYPE_PARAMETER - VALUE_PARAMETER value-parameter p0: kotlin.Array<(out) T!>! - FUN IR_EXTERNAL_DECLARATION_STUB public open override fun add(element: kotlin.collections.(Mutable)Map.(Mutable)Entry!): kotlin.Boolean - VALUE_PARAMETER value-parameter element: kotlin.collections.(Mutable)Map.(Mutable)Entry! - FUN IR_EXTERNAL_DECLARATION_STUB public open override fun addAll(elements: kotlin.collections.Collection!>): kotlin.Boolean - VALUE_PARAMETER value-parameter elements: kotlin.collections.Collection!> - FUN IR_EXTERNAL_DECLARATION_STUB public open override fun containsAll(elements: kotlin.collections.Collection!>): kotlin.Boolean - VALUE_PARAMETER value-parameter elements: kotlin.collections.Collection!> - FUN IR_EXTERNAL_DECLARATION_STUB public open override fun equals(other: kotlin.Any?): kotlin.Boolean - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN IR_EXTERNAL_DECLARATION_STUB public open override fun hashCode(): kotlin.Int - FUN IR_EXTERNAL_DECLARATION_STUB public open override fun isEmpty(): kotlin.Boolean - FUN IR_EXTERNAL_DECLARATION_STUB public open override fun parallelStream(): java.util.stream.Stream!> - FUN IR_EXTERNAL_DECLARATION_STUB public open override fun removeAll(elements: kotlin.collections.Collection!>): kotlin.Boolean - VALUE_PARAMETER value-parameter elements: kotlin.collections.Collection!> - FUN IR_EXTERNAL_DECLARATION_STUB public open override fun removeIf(p0: java.util.function.Predicate!>): kotlin.Boolean - VALUE_PARAMETER value-parameter p0: java.util.function.Predicate!> - FUN IR_EXTERNAL_DECLARATION_STUB public open override fun retainAll(elements: kotlin.collections.Collection!>): kotlin.Boolean - VALUE_PARAMETER value-parameter elements: kotlin.collections.Collection!> - FUN IR_EXTERNAL_DECLARATION_STUB public open override fun stream(): java.util.stream.Stream!> - FUN IR_EXTERNAL_DECLARATION_STUB public open override fun toArray(): kotlin.Array<(out) kotlin.Any!>! - FUN IR_EXTERNAL_DECLARATION_STUB public open override fun toString(): kotlin.String - PROPERTY IR_EXTERNAL_DECLARATION_STUB invisible_fake const final override val MAX_ARRAY_SIZE: kotlin.Int = 2147483639 - FIELD IR_EXTERNAL_DECLARATION_STUB invisible_fake const final override val MAX_ARRAY_SIZE: kotlin.Int = 2147483639 - FUN IR_EXTERNAL_DECLARATION_STUB invisible_fake open override fun finishToArray(p0: kotlin.Array<(out) T!>!, p1: kotlin.collections.(Mutable)Iterator<*>!): kotlin.Array<(out) T!>! - TYPE_PARAMETER - VALUE_PARAMETER value-parameter p0: kotlin.Array<(out) T!>! - VALUE_PARAMETER value-parameter p1: kotlin.collections.(Mutable)Iterator<*>! - FUN IR_EXTERNAL_DECLARATION_STUB invisible_fake open override fun hugeCapacity(p0: kotlin.Int): kotlin.Int - VALUE_PARAMETER value-parameter p0: kotlin.Int - CLASS IR_EXTERNAL_DECLARATION_STUB CLASS LinkedKeyIterator - CONSTRUCTOR IR_EXTERNAL_DECLARATION_STUB public/*package*/ constructor LinkedKeyIterator() - FUN IR_EXTERNAL_DECLARATION_STUB public final override fun next(): K! - FUN IR_EXTERNAL_DECLARATION_STUB public final override fun hasNext(): kotlin.Boolean - FUN IR_EXTERNAL_DECLARATION_STUB public final override fun remove(): kotlin.Unit - FUN IR_EXTERNAL_DECLARATION_STUB public open override fun forEachRemaining(p0: java.util.function.Consumer): kotlin.Unit - VALUE_PARAMETER value-parameter p0: java.util.function.Consumer - FUN IR_EXTERNAL_DECLARATION_STUB public open override fun equals(other: kotlin.Any?): kotlin.Boolean - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN IR_EXTERNAL_DECLARATION_STUB public open override fun hashCode(): kotlin.Int - FUN IR_EXTERNAL_DECLARATION_STUB public open override fun toString(): kotlin.String - FUN IR_EXTERNAL_DECLARATION_STUB public/*package*/ final override fun nextNode(): java.util.LinkedHashMap.Entry! - PROPERTY IR_EXTERNAL_DECLARATION_STUB public/*package*/ final override var current: java.util.LinkedHashMap.Entry! - FIELD IR_EXTERNAL_DECLARATION_STUB public/*package*/ final override var current: java.util.LinkedHashMap.Entry! - PROPERTY IR_EXTERNAL_DECLARATION_STUB public/*package*/ final override var expectedModCount: kotlin.Int - FIELD IR_EXTERNAL_DECLARATION_STUB public/*package*/ final override var expectedModCount: kotlin.Int - PROPERTY IR_EXTERNAL_DECLARATION_STUB public/*package*/ final override var next: java.util.LinkedHashMap.Entry! - FIELD IR_EXTERNAL_DECLARATION_STUB public/*package*/ final override var next: java.util.LinkedHashMap.Entry! - CLASS IR_EXTERNAL_DECLARATION_STUB CLASS LinkedKeySet - CONSTRUCTOR IR_EXTERNAL_DECLARATION_STUB public/*package*/ constructor LinkedKeySet() - FUN IR_EXTERNAL_DECLARATION_STUB public final override fun clear(): kotlin.Unit - FUN IR_EXTERNAL_DECLARATION_STUB public final override fun contains(element: K!): kotlin.Boolean - VALUE_PARAMETER value-parameter element: K! - FUN IR_EXTERNAL_DECLARATION_STUB public final override fun forEach(p0: java.util.function.Consumer!): kotlin.Unit - VALUE_PARAMETER value-parameter p0: java.util.function.Consumer! - FUN IR_EXTERNAL_DECLARATION_STUB public final override fun iterator(): kotlin.collections.MutableIterator - FUN IR_EXTERNAL_DECLARATION_STUB public final override fun remove(element: K!): kotlin.Boolean - VALUE_PARAMETER value-parameter element: K! - FUN IR_EXTERNAL_DECLARATION_STUB public final override fun spliterator(): java.util.Spliterator - PROPERTY IR_EXTERNAL_DECLARATION_STUB public final override val size: kotlin.Int - FUN IR_EXTERNAL_DECLARATION_STUB public final override fun (): kotlin.Int - FUN IR_EXTERNAL_DECLARATION_STUB public open override fun toArray(p0: kotlin.Array<(out) T!>!): kotlin.Array<(out) T!>! - TYPE_PARAMETER - VALUE_PARAMETER value-parameter p0: kotlin.Array<(out) T!>! - FUN IR_EXTERNAL_DECLARATION_STUB public open override fun add(element: K!): kotlin.Boolean - VALUE_PARAMETER value-parameter element: K! - FUN IR_EXTERNAL_DECLARATION_STUB public open override fun addAll(elements: kotlin.collections.Collection): kotlin.Boolean - VALUE_PARAMETER value-parameter elements: kotlin.collections.Collection - FUN IR_EXTERNAL_DECLARATION_STUB public open override fun containsAll(elements: kotlin.collections.Collection): kotlin.Boolean - VALUE_PARAMETER value-parameter elements: kotlin.collections.Collection - FUN IR_EXTERNAL_DECLARATION_STUB public open override fun equals(other: kotlin.Any?): kotlin.Boolean - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN IR_EXTERNAL_DECLARATION_STUB public open override fun hashCode(): kotlin.Int - FUN IR_EXTERNAL_DECLARATION_STUB public open override fun isEmpty(): kotlin.Boolean - FUN IR_EXTERNAL_DECLARATION_STUB public open override fun parallelStream(): java.util.stream.Stream - FUN IR_EXTERNAL_DECLARATION_STUB public open override fun removeAll(elements: kotlin.collections.Collection): kotlin.Boolean - VALUE_PARAMETER value-parameter elements: kotlin.collections.Collection - FUN IR_EXTERNAL_DECLARATION_STUB public open override fun removeIf(p0: java.util.function.Predicate): kotlin.Boolean - VALUE_PARAMETER value-parameter p0: java.util.function.Predicate - FUN IR_EXTERNAL_DECLARATION_STUB public open override fun retainAll(elements: kotlin.collections.Collection): kotlin.Boolean - VALUE_PARAMETER value-parameter elements: kotlin.collections.Collection - FUN IR_EXTERNAL_DECLARATION_STUB public open override fun stream(): java.util.stream.Stream - FUN IR_EXTERNAL_DECLARATION_STUB public open override fun toArray(): kotlin.Array<(out) kotlin.Any!>! - FUN IR_EXTERNAL_DECLARATION_STUB public open override fun toString(): kotlin.String - PROPERTY IR_EXTERNAL_DECLARATION_STUB invisible_fake const final override val MAX_ARRAY_SIZE: kotlin.Int = 2147483639 - FIELD IR_EXTERNAL_DECLARATION_STUB invisible_fake const final override val MAX_ARRAY_SIZE: kotlin.Int = 2147483639 - FUN IR_EXTERNAL_DECLARATION_STUB invisible_fake open override fun finishToArray(p0: kotlin.Array<(out) T!>!, p1: kotlin.collections.(Mutable)Iterator<*>!): kotlin.Array<(out) T!>! - TYPE_PARAMETER - VALUE_PARAMETER value-parameter p0: kotlin.Array<(out) T!>! - VALUE_PARAMETER value-parameter p1: kotlin.collections.(Mutable)Iterator<*>! - FUN IR_EXTERNAL_DECLARATION_STUB invisible_fake open override fun hugeCapacity(p0: kotlin.Int): kotlin.Int - VALUE_PARAMETER value-parameter p0: kotlin.Int - CLASS IR_EXTERNAL_DECLARATION_STUB CLASS LinkedValueIterator - CONSTRUCTOR IR_EXTERNAL_DECLARATION_STUB public/*package*/ constructor LinkedValueIterator() - FUN IR_EXTERNAL_DECLARATION_STUB public final override fun next(): V! - FUN IR_EXTERNAL_DECLARATION_STUB public final override fun hasNext(): kotlin.Boolean - FUN IR_EXTERNAL_DECLARATION_STUB public final override fun remove(): kotlin.Unit - FUN IR_EXTERNAL_DECLARATION_STUB public open override fun forEachRemaining(p0: java.util.function.Consumer): kotlin.Unit - VALUE_PARAMETER value-parameter p0: java.util.function.Consumer - FUN IR_EXTERNAL_DECLARATION_STUB public open override fun equals(other: kotlin.Any?): kotlin.Boolean - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN IR_EXTERNAL_DECLARATION_STUB public open override fun hashCode(): kotlin.Int - FUN IR_EXTERNAL_DECLARATION_STUB public open override fun toString(): kotlin.String - FUN IR_EXTERNAL_DECLARATION_STUB public/*package*/ final override fun nextNode(): java.util.LinkedHashMap.Entry! - PROPERTY IR_EXTERNAL_DECLARATION_STUB public/*package*/ final override var current: java.util.LinkedHashMap.Entry! - FIELD IR_EXTERNAL_DECLARATION_STUB public/*package*/ final override var current: java.util.LinkedHashMap.Entry! - PROPERTY IR_EXTERNAL_DECLARATION_STUB public/*package*/ final override var expectedModCount: kotlin.Int - FIELD IR_EXTERNAL_DECLARATION_STUB public/*package*/ final override var expectedModCount: kotlin.Int - PROPERTY IR_EXTERNAL_DECLARATION_STUB public/*package*/ final override var next: java.util.LinkedHashMap.Entry! - FIELD IR_EXTERNAL_DECLARATION_STUB public/*package*/ final override var next: java.util.LinkedHashMap.Entry! - CLASS IR_EXTERNAL_DECLARATION_STUB CLASS LinkedValues - CONSTRUCTOR IR_EXTERNAL_DECLARATION_STUB public/*package*/ constructor LinkedValues() - FUN IR_EXTERNAL_DECLARATION_STUB public final override fun clear(): kotlin.Unit - FUN IR_EXTERNAL_DECLARATION_STUB public final override fun contains(element: V!): kotlin.Boolean - VALUE_PARAMETER value-parameter element: V! - FUN IR_EXTERNAL_DECLARATION_STUB public final override fun forEach(p0: java.util.function.Consumer!): kotlin.Unit - VALUE_PARAMETER value-parameter p0: java.util.function.Consumer! - FUN IR_EXTERNAL_DECLARATION_STUB public final override fun iterator(): kotlin.collections.MutableIterator - FUN IR_EXTERNAL_DECLARATION_STUB public final override fun spliterator(): java.util.Spliterator - PROPERTY IR_EXTERNAL_DECLARATION_STUB public final override val size: kotlin.Int - FUN IR_EXTERNAL_DECLARATION_STUB public final override fun (): kotlin.Int - FUN IR_EXTERNAL_DECLARATION_STUB public open override fun toArray(p0: kotlin.Array<(out) T!>!): kotlin.Array<(out) T!>! - TYPE_PARAMETER - VALUE_PARAMETER value-parameter p0: kotlin.Array<(out) T!>! - FUN IR_EXTERNAL_DECLARATION_STUB public open override fun add(element: V!): kotlin.Boolean - VALUE_PARAMETER value-parameter element: V! - FUN IR_EXTERNAL_DECLARATION_STUB public open override fun addAll(elements: kotlin.collections.Collection): kotlin.Boolean - VALUE_PARAMETER value-parameter elements: kotlin.collections.Collection - FUN IR_EXTERNAL_DECLARATION_STUB public open override fun containsAll(elements: kotlin.collections.Collection): kotlin.Boolean - VALUE_PARAMETER value-parameter elements: kotlin.collections.Collection - FUN IR_EXTERNAL_DECLARATION_STUB public open override fun equals(other: kotlin.Any?): kotlin.Boolean - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN IR_EXTERNAL_DECLARATION_STUB public open override fun hashCode(): kotlin.Int - FUN IR_EXTERNAL_DECLARATION_STUB public open override fun isEmpty(): kotlin.Boolean - FUN IR_EXTERNAL_DECLARATION_STUB public open override fun parallelStream(): java.util.stream.Stream - FUN IR_EXTERNAL_DECLARATION_STUB public open override fun remove(element: V!): kotlin.Boolean - VALUE_PARAMETER value-parameter element: V! - FUN IR_EXTERNAL_DECLARATION_STUB public open override fun removeAll(elements: kotlin.collections.Collection): kotlin.Boolean - VALUE_PARAMETER value-parameter elements: kotlin.collections.Collection - FUN IR_EXTERNAL_DECLARATION_STUB public open override fun removeIf(p0: java.util.function.Predicate): kotlin.Boolean - VALUE_PARAMETER value-parameter p0: java.util.function.Predicate - FUN IR_EXTERNAL_DECLARATION_STUB public open override fun retainAll(elements: kotlin.collections.Collection): kotlin.Boolean - VALUE_PARAMETER value-parameter elements: kotlin.collections.Collection - FUN IR_EXTERNAL_DECLARATION_STUB public open override fun stream(): java.util.stream.Stream - FUN IR_EXTERNAL_DECLARATION_STUB public open override fun toArray(): kotlin.Array<(out) kotlin.Any!>! - FUN IR_EXTERNAL_DECLARATION_STUB public open override fun toString(): kotlin.String - PROPERTY IR_EXTERNAL_DECLARATION_STUB invisible_fake const final override val MAX_ARRAY_SIZE: kotlin.Int = 2147483639 - FIELD IR_EXTERNAL_DECLARATION_STUB invisible_fake const final override val MAX_ARRAY_SIZE: kotlin.Int = 2147483639 - FUN IR_EXTERNAL_DECLARATION_STUB invisible_fake open override fun finishToArray(p0: kotlin.Array<(out) T!>!, p1: kotlin.collections.(Mutable)Iterator<*>!): kotlin.Array<(out) T!>! - TYPE_PARAMETER - VALUE_PARAMETER value-parameter p0: kotlin.Array<(out) T!>! - VALUE_PARAMETER value-parameter p1: kotlin.collections.(Mutable)Iterator<*>! - FUN IR_EXTERNAL_DECLARATION_STUB invisible_fake open override fun hugeCapacity(p0: kotlin.Int): kotlin.Int - VALUE_PARAMETER value-parameter p0: kotlin.Int - FUN IR_EXTERNAL_DECLARATION_STUB public/*package*/ final override fun capacity(): kotlin.Int - FUN IR_EXTERNAL_DECLARATION_STUB public/*package*/ final override fun getNode(p0: kotlin.Int, p1: kotlin.Any!): java.util.HashMap.Node! - VALUE_PARAMETER value-parameter p0: kotlin.Int - VALUE_PARAMETER value-parameter p1: kotlin.Any! - FUN IR_EXTERNAL_DECLARATION_STUB public/*package*/ final override fun loadFactor(): kotlin.Float - FUN IR_EXTERNAL_DECLARATION_STUB public/*package*/ final override fun putMapEntries(p0: (kotlin.collections.MutableMap..kotlin.collections.Map?), p1: kotlin.Boolean): kotlin.Unit - VALUE_PARAMETER value-parameter p0: (kotlin.collections.MutableMap..kotlin.collections.Map?) - VALUE_PARAMETER value-parameter p1: kotlin.Boolean - FUN IR_EXTERNAL_DECLARATION_STUB public/*package*/ final override fun putVal(p0: kotlin.Int, p1: K!, p2: V!, p3: kotlin.Boolean, p4: kotlin.Boolean): V! - VALUE_PARAMETER value-parameter p0: kotlin.Int - VALUE_PARAMETER value-parameter p1: K! - VALUE_PARAMETER value-parameter p2: V! - VALUE_PARAMETER value-parameter p3: kotlin.Boolean - VALUE_PARAMETER value-parameter p4: kotlin.Boolean - FUN IR_EXTERNAL_DECLARATION_STUB public/*package*/ final override fun removeNode(p0: kotlin.Int, p1: kotlin.Any!, p2: kotlin.Any!, p3: kotlin.Boolean, p4: kotlin.Boolean): java.util.HashMap.Node! - VALUE_PARAMETER value-parameter p0: kotlin.Int - VALUE_PARAMETER value-parameter p1: kotlin.Any! - VALUE_PARAMETER value-parameter p2: kotlin.Any! - VALUE_PARAMETER value-parameter p3: kotlin.Boolean - VALUE_PARAMETER value-parameter p4: kotlin.Boolean - FUN IR_EXTERNAL_DECLARATION_STUB public/*package*/ final override fun resize(): kotlin.Array<(out) java.util.HashMap.Node!>! - FUN IR_EXTERNAL_DECLARATION_STUB public/*package*/ final override fun treeifyBin(p0: kotlin.Array<(out) java.util.HashMap.Node!>!, p1: kotlin.Int): kotlin.Unit - VALUE_PARAMETER value-parameter p0: kotlin.Array<(out) java.util.HashMap.Node!>! - VALUE_PARAMETER value-parameter p1: kotlin.Int - PROPERTY IR_EXTERNAL_DECLARATION_STUB public/*package*/ final override val loadFactor: kotlin.Float - FIELD IR_EXTERNAL_DECLARATION_STUB public/*package*/ final override val loadFactor: kotlin.Float - PROPERTY IR_EXTERNAL_DECLARATION_STUB public/*package*/ final override var entrySet: kotlin.collections.(Mutable)Set!>! - FIELD IR_EXTERNAL_DECLARATION_STUB public/*package*/ final override var entrySet: kotlin.collections.(Mutable)Set!>! - PROPERTY IR_EXTERNAL_DECLARATION_STUB public/*package*/ final override var keySet: kotlin.collections.(Mutable)Set! - FIELD IR_EXTERNAL_DECLARATION_STUB public/*package*/ final override var keySet: kotlin.collections.(Mutable)Set! - PROPERTY IR_EXTERNAL_DECLARATION_STUB public/*package*/ final override var modCount: kotlin.Int - FIELD IR_EXTERNAL_DECLARATION_STUB public/*package*/ final override var modCount: kotlin.Int - PROPERTY IR_EXTERNAL_DECLARATION_STUB public/*package*/ final override var size: kotlin.Int - FIELD IR_EXTERNAL_DECLARATION_STUB public/*package*/ final override var size: kotlin.Int - PROPERTY IR_EXTERNAL_DECLARATION_STUB public/*package*/ final override var table: kotlin.Array<(out) java.util.HashMap.Node!>! - FIELD IR_EXTERNAL_DECLARATION_STUB public/*package*/ final override var table: kotlin.Array<(out) java.util.HashMap.Node!>! - PROPERTY IR_EXTERNAL_DECLARATION_STUB public/*package*/ final override var threshold: kotlin.Int - FIELD IR_EXTERNAL_DECLARATION_STUB public/*package*/ final override var threshold: kotlin.Int - PROPERTY IR_EXTERNAL_DECLARATION_STUB public/*package*/ final override var values: kotlin.collections.(Mutable)Collection! - FIELD IR_EXTERNAL_DECLARATION_STUB public/*package*/ final override var values: kotlin.collections.(Mutable)Collection! - PROPERTY IR_EXTERNAL_DECLARATION_STUB public/*package*/ final val accessOrder: kotlin.Boolean - FIELD IR_EXTERNAL_DECLARATION_STUB public/*package*/ final val accessOrder: kotlin.Boolean - PROPERTY IR_EXTERNAL_DECLARATION_STUB public/*package*/ final var head: java.util.LinkedHashMap.Entry! - FIELD IR_EXTERNAL_DECLARATION_STUB public/*package*/ final var head: java.util.LinkedHashMap.Entry! - PROPERTY IR_EXTERNAL_DECLARATION_STUB public/*package*/ final var tail: java.util.LinkedHashMap.Entry! - FIELD IR_EXTERNAL_DECLARATION_STUB public/*package*/ final var tail: java.util.LinkedHashMap.Entry! - CLASS IR_EXTERNAL_DECLARATION_STUB CLASS Entry - TYPE_PARAMETER - TYPE_PARAMETER - CONSTRUCTOR IR_EXTERNAL_DECLARATION_STUB public/*package*/ constructor Entry(p0: kotlin.Int, p1: K!, p2: V!, p3: java.util.HashMap.Node!) - VALUE_PARAMETER value-parameter p0: kotlin.Int - VALUE_PARAMETER value-parameter p1: K! - VALUE_PARAMETER value-parameter p2: V! - VALUE_PARAMETER value-parameter p3: java.util.HashMap.Node! - FUN IR_EXTERNAL_DECLARATION_STUB public final override fun equals(other: kotlin.Any?): kotlin.Boolean - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN IR_EXTERNAL_DECLARATION_STUB public final override fun hashCode(): kotlin.Int - FUN IR_EXTERNAL_DECLARATION_STUB public final override fun setValue(newValue: V!): V! - VALUE_PARAMETER value-parameter newValue: V! - FUN IR_EXTERNAL_DECLARATION_STUB public final override fun toString(): kotlin.String - PROPERTY IR_EXTERNAL_DECLARATION_STUB public final override val key: K! - FUN IR_EXTERNAL_DECLARATION_STUB public final override fun (): K! - PROPERTY IR_EXTERNAL_DECLARATION_STUB public final override val value: V! - FUN IR_EXTERNAL_DECLARATION_STUB public final override fun (): V! - PROPERTY IR_EXTERNAL_DECLARATION_STUB public/*package*/ final override val hash: kotlin.Int - FIELD IR_EXTERNAL_DECLARATION_STUB public/*package*/ final override val hash: kotlin.Int - PROPERTY IR_EXTERNAL_DECLARATION_STUB public/*package*/ final override val key: K! - FIELD IR_EXTERNAL_DECLARATION_STUB public/*package*/ final override val key: K! - PROPERTY IR_EXTERNAL_DECLARATION_STUB public/*package*/ final override var next: java.util.HashMap.Node! - FIELD IR_EXTERNAL_DECLARATION_STUB public/*package*/ final override var next: java.util.HashMap.Node! - PROPERTY IR_EXTERNAL_DECLARATION_STUB public/*package*/ final override var value: V! - FIELD IR_EXTERNAL_DECLARATION_STUB public/*package*/ final override var value: V! - PROPERTY IR_EXTERNAL_DECLARATION_STUB public/*package*/ final var after: java.util.LinkedHashMap.Entry! - FIELD IR_EXTERNAL_DECLARATION_STUB public/*package*/ final var after: java.util.LinkedHashMap.Entry! - PROPERTY IR_EXTERNAL_DECLARATION_STUB public/*package*/ final var before: java.util.LinkedHashMap.Entry! - FIELD IR_EXTERNAL_DECLARATION_STUB public/*package*/ final var before: java.util.LinkedHashMap.Entry! - FUN IR_EXTERNAL_DECLARATION_STUB public/*package*/ open override fun afterNodeAccess(p0: java.util.HashMap.Node!): kotlin.Unit - VALUE_PARAMETER value-parameter p0: java.util.HashMap.Node! - FUN IR_EXTERNAL_DECLARATION_STUB public/*package*/ open override fun afterNodeInsertion(p0: kotlin.Boolean): kotlin.Unit - VALUE_PARAMETER value-parameter p0: kotlin.Boolean - FUN IR_EXTERNAL_DECLARATION_STUB public/*package*/ open override fun afterNodeRemoval(p0: java.util.HashMap.Node!): kotlin.Unit - VALUE_PARAMETER value-parameter p0: java.util.HashMap.Node! - FUN IR_EXTERNAL_DECLARATION_STUB public/*package*/ open override fun internalWriteEntries(p0: java.io.ObjectOutputStream!): kotlin.Unit - VALUE_PARAMETER value-parameter p0: java.io.ObjectOutputStream! - FUN IR_EXTERNAL_DECLARATION_STUB public/*package*/ open override fun newNode(p0: kotlin.Int, p1: K!, p2: V!, p3: java.util.HashMap.Node!): java.util.HashMap.Node! - VALUE_PARAMETER value-parameter p0: kotlin.Int - VALUE_PARAMETER value-parameter p1: K! - VALUE_PARAMETER value-parameter p2: V! - VALUE_PARAMETER value-parameter p3: java.util.HashMap.Node! - FUN IR_EXTERNAL_DECLARATION_STUB public/*package*/ open override fun newTreeNode(p0: kotlin.Int, p1: K!, p2: V!, p3: java.util.HashMap.Node!): java.util.HashMap.TreeNode! - VALUE_PARAMETER value-parameter p0: kotlin.Int - VALUE_PARAMETER value-parameter p1: K! - VALUE_PARAMETER value-parameter p2: V! - VALUE_PARAMETER value-parameter p3: java.util.HashMap.Node! - FUN IR_EXTERNAL_DECLARATION_STUB public/*package*/ open override fun reinitialize(): kotlin.Unit - FUN IR_EXTERNAL_DECLARATION_STUB public/*package*/ open override fun replacementNode(p0: java.util.HashMap.Node!, p1: java.util.HashMap.Node!): java.util.HashMap.Node! - VALUE_PARAMETER value-parameter p0: java.util.HashMap.Node! - VALUE_PARAMETER value-parameter p1: java.util.HashMap.Node! - FUN IR_EXTERNAL_DECLARATION_STUB public/*package*/ open override fun replacementTreeNode(p0: java.util.HashMap.Node!, p1: java.util.HashMap.Node!): java.util.HashMap.TreeNode! - VALUE_PARAMETER value-parameter p0: java.util.HashMap.Node! - VALUE_PARAMETER value-parameter p1: java.util.HashMap.Node! - FUN IR_EXTERNAL_DECLARATION_STUB invisible_fake open override fun eq(p0: kotlin.Any!, p1: kotlin.Any!): kotlin.Boolean - VALUE_PARAMETER value-parameter p0: kotlin.Any! - VALUE_PARAMETER value-parameter p1: kotlin.Any! - PROPERTY IR_EXTERNAL_DECLARATION_STUB private const final val serialVersionUID: kotlin.Long = 3801124242820219131.toLong() - FIELD IR_EXTERNAL_DECLARATION_STUB private const final val serialVersionUID: kotlin.Long = 3801124242820219131.toLong() - PROPERTY IR_EXTERNAL_DECLARATION_STUB public/*package*/ const final override val DEFAULT_INITIAL_CAPACITY: kotlin.Int = 16 - FIELD IR_EXTERNAL_DECLARATION_STUB public/*package*/ const final override val DEFAULT_INITIAL_CAPACITY: kotlin.Int = 16 - PROPERTY IR_EXTERNAL_DECLARATION_STUB public/*package*/ const final override val DEFAULT_LOAD_FACTOR: kotlin.Float = 0.75.toFloat() - FIELD IR_EXTERNAL_DECLARATION_STUB public/*package*/ const final override val DEFAULT_LOAD_FACTOR: kotlin.Float = 0.75.toFloat() - PROPERTY IR_EXTERNAL_DECLARATION_STUB public/*package*/ const final override val MAXIMUM_CAPACITY: kotlin.Int = 1073741824 - FIELD IR_EXTERNAL_DECLARATION_STUB public/*package*/ const final override val MAXIMUM_CAPACITY: kotlin.Int = 1073741824 - PROPERTY IR_EXTERNAL_DECLARATION_STUB public/*package*/ const final override val MIN_TREEIFY_CAPACITY: kotlin.Int = 64 - FIELD IR_EXTERNAL_DECLARATION_STUB public/*package*/ const final override val MIN_TREEIFY_CAPACITY: kotlin.Int = 64 - PROPERTY IR_EXTERNAL_DECLARATION_STUB public/*package*/ const final override val TREEIFY_THRESHOLD: kotlin.Int = 8 - FIELD IR_EXTERNAL_DECLARATION_STUB public/*package*/ const final override val TREEIFY_THRESHOLD: kotlin.Int = 8 - PROPERTY IR_EXTERNAL_DECLARATION_STUB public/*package*/ const final override val UNTREEIFY_THRESHOLD: kotlin.Int = 6 - FIELD IR_EXTERNAL_DECLARATION_STUB public/*package*/ const final override val UNTREEIFY_THRESHOLD: kotlin.Int = 6 - FUN IR_EXTERNAL_DECLARATION_STUB public/*package*/ final override fun hash(p0: kotlin.Any!): kotlin.Int - VALUE_PARAMETER value-parameter p0: kotlin.Any! - FUN IR_EXTERNAL_DECLARATION_STUB public/*package*/ final override fun tableSizeFor(p0: kotlin.Int): kotlin.Int - VALUE_PARAMETER value-parameter p0: kotlin.Int - FUN IR_EXTERNAL_DECLARATION_STUB public/*package*/ open override fun comparableClassFor(p0: kotlin.Any!): java.lang.Class<*>! - VALUE_PARAMETER value-parameter p0: kotlin.Any! - FUN IR_EXTERNAL_DECLARATION_STUB public/*package*/ open override fun compareComparables(p0: java.lang.Class<*>!, p1: kotlin.Any!, p2: kotlin.Any!): kotlin.Int - VALUE_PARAMETER value-parameter p0: java.lang.Class<*>! - VALUE_PARAMETER value-parameter p1: kotlin.Any! - VALUE_PARAMETER value-parameter p2: kotlin.Any! - EXTERNAL_PACKAGE_FRAGMENT kotlin.collections - CLASS IR_EXTERNAL_DECLARATION_STUB INTERFACE Map - TYPE_PARAMETER - TYPE_PARAMETER - FUN IR_EXTERNAL_DECLARATION_STUB @kotlin.SinceKotlin @kotlin.internal.PlatformDependent public open fun getOrDefault(key: K, defaultValue: @kotlin.UnsafeVariance V): V - VALUE_PARAMETER value-parameter key: K - VALUE_PARAMETER value-parameter defaultValue: @kotlin.UnsafeVariance V - FUN IR_EXTERNAL_DECLARATION_STUB public abstract fun containsKey(key: K): kotlin.Boolean - VALUE_PARAMETER value-parameter key: K - FUN IR_EXTERNAL_DECLARATION_STUB public abstract fun containsValue(value: @kotlin.UnsafeVariance V): kotlin.Boolean - VALUE_PARAMETER value-parameter value: @kotlin.UnsafeVariance V - FUN IR_EXTERNAL_DECLARATION_STUB public abstract fun isEmpty(): kotlin.Boolean - FUN IR_EXTERNAL_DECLARATION_STUB public abstract operator fun get(key: K): V? - VALUE_PARAMETER value-parameter key: K - PROPERTY IR_EXTERNAL_DECLARATION_STUB public abstract val entries: kotlin.collections.Set> - FUN IR_EXTERNAL_DECLARATION_STUB public abstract fun (): kotlin.collections.Set> - PROPERTY IR_EXTERNAL_DECLARATION_STUB public abstract val keys: kotlin.collections.Set - FUN IR_EXTERNAL_DECLARATION_STUB public abstract fun (): kotlin.collections.Set - PROPERTY IR_EXTERNAL_DECLARATION_STUB public abstract val size: kotlin.Int - FUN IR_EXTERNAL_DECLARATION_STUB public abstract fun (): kotlin.Int - PROPERTY IR_EXTERNAL_DECLARATION_STUB public abstract val values: kotlin.collections.Collection - FUN IR_EXTERNAL_DECLARATION_STUB public abstract fun (): kotlin.collections.Collection - CLASS IR_EXTERNAL_DECLARATION_STUB INTERFACE Entry - TYPE_PARAMETER - TYPE_PARAMETER - PROPERTY IR_EXTERNAL_DECLARATION_STUB public abstract val key: K - FUN IR_EXTERNAL_DECLARATION_STUB public abstract fun (): K - PROPERTY IR_EXTERNAL_DECLARATION_STUB public abstract val value: V - FUN IR_EXTERNAL_DECLARATION_STUB public abstract fun (): V - FUN IR_EXTERNAL_DECLARATION_STUB public open override fun equals(other: kotlin.Any?): kotlin.Boolean - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN IR_EXTERNAL_DECLARATION_STUB public open override fun hashCode(): kotlin.Int - FUN IR_EXTERNAL_DECLARATION_STUB public open override fun toString(): kotlin.String - FUN IR_EXTERNAL_DECLARATION_STUB public open fun forEach(p0: java.util.function.BiConsumer): kotlin.Unit - VALUE_PARAMETER value-parameter p0: java.util.function.BiConsumer - FUN IR_EXTERNAL_DECLARATION_STUB public open override fun equals(other: kotlin.Any?): kotlin.Boolean - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN IR_EXTERNAL_DECLARATION_STUB public open override fun hashCode(): kotlin.Int - FUN IR_EXTERNAL_DECLARATION_STUB public open override fun toString(): kotlin.String - EXTERNAL_PACKAGE_FRAGMENT kotlin.collections - FUN IR_EXTERNAL_DECLARATION_STUB public fun mapOf(pair: kotlin.Pair): kotlin.collections.Map - TYPE_PARAMETER - TYPE_PARAMETER - VALUE_PARAMETER value-parameter pair: kotlin.Pair - EXTERNAL_PACKAGE_FRAGMENT kotlin - CLASS IR_EXTERNAL_DECLARATION_STUB CLASS Pair - TYPE_PARAMETER - TYPE_PARAMETER - CONSTRUCTOR IR_EXTERNAL_DECLARATION_STUB public constructor Pair(first: A, second: B) - VALUE_PARAMETER value-parameter first: A - VALUE_PARAMETER value-parameter second: B - FUN IR_EXTERNAL_DECLARATION_STUB public final fun copy(first: A = ..., second: B = ...): kotlin.Pair - VALUE_PARAMETER value-parameter first: A = ... +MODULE_FRAGMENT name: + EXTERNAL_PACKAGE_FRAGMENT fqName:java.util + CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:LinkedHashMap modality:OPEN visibility:public flags: + TYPE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:K index:0 variance: upperBounds:[kotlin.Any!] + TYPE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:V index:1 variance: upperBounds:[kotlin.Any!] + CONSTRUCTOR IR_EXTERNAL_DECLARATION_STUB visibility:public <> () returnType:java.util.LinkedHashMap flags: + CONSTRUCTOR IR_EXTERNAL_DECLARATION_STUB visibility:public <> (p0:(kotlin.collections.MutableMap..kotlin.collections.Map?)) returnType:java.util.LinkedHashMap flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:p0 index:0 type:(kotlin.collections.MutableMap..kotlin.collections.Map?) flags: + CONSTRUCTOR IR_EXTERNAL_DECLARATION_STUB visibility:public <> (p0:kotlin.Int) returnType:java.util.LinkedHashMap flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:p0 index:0 type:kotlin.Int flags: + CONSTRUCTOR IR_EXTERNAL_DECLARATION_STUB visibility:public <> (p0:kotlin.Int, p1:kotlin.Float) returnType:java.util.LinkedHashMap flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:p0 index:0 type:kotlin.Int flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:p1 index:1 type:kotlin.Float flags: + CONSTRUCTOR IR_EXTERNAL_DECLARATION_STUB visibility:public <> (p0:kotlin.Int, p1:kotlin.Float, p2:kotlin.Boolean) returnType:java.util.LinkedHashMap flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:p0 index:0 type:kotlin.Int flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:p1 index:1 type:kotlin.Float flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:p2 index:2 type:kotlin.Boolean flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:readObject visibility:invisible_fake modality:OPEN <> (p0:java.io.ObjectInputStream!) returnType:Unit flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:p0 index:0 type:java.io.ObjectInputStream! flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:writeObject visibility:invisible_fake modality:OPEN <> (p0:java.io.ObjectOutputStream!) returnType:Unit flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:p0 index:0 type:java.io.ObjectOutputStream! flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:linkNodeLast visibility:private modality:OPEN <> (p0:java.util.LinkedHashMap.Entry!) returnType:Unit flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:p0 index:0 type:java.util.LinkedHashMap.Entry! flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:transferLinks visibility:private modality:OPEN <> (p0:java.util.LinkedHashMap.Entry!, p1:java.util.LinkedHashMap.Entry!) returnType:Unit flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:p0 index:0 type:java.util.LinkedHashMap.Entry! flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:p1 index:1 type:java.util.LinkedHashMap.Entry! flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:removeEldestEntry visibility:protected/*protected and package*/ modality:OPEN <> (p0:kotlin.collections.(Mutable)Map.(Mutable)Entry!) returnType:Boolean flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:p0 index:0 type:kotlin.collections.(Mutable)Map.(Mutable)Entry! flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:clone visibility:public modality:OPEN <> () returnType:Any flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:compute visibility:public modality:OPEN <> (p0:K, p1:java.util.function.BiFunction) returnType:V? flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:p0 index:0 type:K flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:p1 index:1 type:java.util.function.BiFunction flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:computeIfAbsent visibility:public modality:OPEN <> (p0:K, p1:java.util.function.Function) returnType:V flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:p0 index:0 type:K flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:p1 index:1 type:java.util.function.Function flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:computeIfPresent visibility:public modality:OPEN <> (p0:K, p1:java.util.function.BiFunction) returnType:V? flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:p0 index:0 type:K flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:p1 index:1 type:java.util.function.BiFunction flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:containsKey visibility:public modality:OPEN <> (key:K) returnType:Boolean flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:key index:0 type:K flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:equals visibility:public modality:OPEN <> (other:kotlin.Any?) returnType:Boolean flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:other index:0 type:kotlin.Any? flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:hashCode visibility:public modality:OPEN <> () returnType:Int flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:isEmpty visibility:public modality:OPEN <> () returnType:Boolean flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:merge visibility:public modality:OPEN <> (p0:K, p1:V, p2:java.util.function.BiFunction) returnType:V? flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:p0 index:0 type:K flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:p1 index:1 type:V flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:p2 index:2 type:java.util.function.BiFunction flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:put visibility:public modality:OPEN <> (key:K, value:V) returnType:V? flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:key index:0 type:K flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:value index:1 type:V flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:putAll visibility:public modality:OPEN <> (from:kotlin.collections.Map) returnType:Unit flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:from index:0 type:kotlin.collections.Map flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:putIfAbsent visibility:public modality:OPEN <> (p0:K, p1:V) returnType:V? flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:p0 index:0 type:K flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:p1 index:1 type:V flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:remove visibility:public modality:OPEN <> (key:K) returnType:V? flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:key index:0 type:K flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:remove visibility:public modality:OPEN <> (key:K, value:V) returnType:Boolean flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:key index:0 type:K flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:value index:1 type:V flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:replace visibility:public modality:OPEN <> (p0:K, p1:V) returnType:V? flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:p0 index:0 type:K flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:p1 index:1 type:V flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:replace visibility:public modality:OPEN <> (p0:K, p1:V, p2:V) returnType:Boolean flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:p0 index:0 type:K flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:p1 index:1 type:V flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:p2 index:2 type:V flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:toString visibility:public modality:OPEN <> () returnType:String flags: + PROPERTY IR_EXTERNAL_DECLARATION_STUB name:size type:kotlin.Int visibility:public modality:OPEN flags:val + FUN IR_EXTERNAL_DECLARATION_STUB name: visibility:public modality:OPEN <> () returnType:Int flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:clear visibility:public modality:OPEN <> () returnType:Unit flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:containsValue visibility:public modality:OPEN <> (value:V) returnType:Boolean flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:value index:0 type:V flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:forEach visibility:public modality:OPEN <> (p0:java.util.function.BiConsumer) returnType:Unit flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:p0 index:0 type:java.util.function.BiConsumer flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:get visibility:public modality:OPEN <> (key:K) returnType:V? flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:key index:0 type:K flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:getOrDefault visibility:public modality:OPEN <> (key:K, defaultValue:V) returnType:V flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:key index:0 type:K flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:defaultValue index:1 type:V flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:replaceAll visibility:public modality:OPEN <> (p0:java.util.function.BiFunction) returnType:Unit flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:p0 index:0 type:java.util.function.BiFunction flags: + PROPERTY IR_EXTERNAL_DECLARATION_STUB name:entries type:kotlin.collections.MutableSet> visibility:public modality:OPEN flags:val + FUN IR_EXTERNAL_DECLARATION_STUB name: visibility:public modality:OPEN <> () returnType:(kotlin.collections.MutableSet<(kotlin.collections.MutableMap.MutableEntry<(K..K?), (V..V?)>..kotlin.collections.Map.Entry<(K..K?), (V..V?)>?)>..kotlin.collections.Set<(kotlin.collections.MutableMap.MutableEntry<(K..K?), (V..V?)>..kotlin.collections.Map.Entry<(K..K?), (V..V?)>?)>?) flags: + PROPERTY IR_EXTERNAL_DECLARATION_STUB name:keys type:kotlin.collections.MutableSet visibility:public modality:OPEN flags:val + FUN IR_EXTERNAL_DECLARATION_STUB name: visibility:public modality:OPEN <> () returnType:(kotlin.collections.MutableSet<(K..K?)>..kotlin.collections.Set<(K..K?)>?) flags: + PROPERTY IR_EXTERNAL_DECLARATION_STUB name:values type:kotlin.collections.MutableCollection visibility:public modality:OPEN flags:val + FUN IR_EXTERNAL_DECLARATION_STUB name: visibility:public modality:OPEN <> () returnType:(kotlin.collections.MutableCollection<(V..V?)>..kotlin.collections.Collection<(V..V?)>?) flags: + CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:LinkedHashIterator modality:ABSTRACT visibility:public/*package*/ flags: + CONSTRUCTOR IR_EXTERNAL_DECLARATION_STUB visibility:public/*package*/ <> () returnType:java.util.LinkedHashMap.LinkedHashIterator flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:remove visibility:public modality:FINAL <> () returnType:Unit flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:hasNext visibility:public modality:FINAL <> () returnType:Boolean flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:equals visibility:public modality:OPEN <> (other:kotlin.Any?) returnType:Boolean flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:other index:0 type:kotlin.Any? flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:hashCode visibility:public modality:OPEN <> () returnType:Int flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:toString visibility:public modality:OPEN <> () returnType:String flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:nextNode visibility:public/*package*/ modality:FINAL <> () returnType:(java.util.LinkedHashMap.Entry<(K..K?), (V..V?)>..java.util.LinkedHashMap.Entry<(K..K?), (V..V?)>?) flags: + PROPERTY IR_EXTERNAL_DECLARATION_STUB name:current type:java.util.LinkedHashMap.Entry! visibility:public/*package*/ modality:FINAL flags:var + FIELD IR_EXTERNAL_DECLARATION_STUB name:current type:java.util.LinkedHashMap.Entry! visibility:public/*package*/ + PROPERTY IR_EXTERNAL_DECLARATION_STUB name:expectedModCount type:kotlin.Int visibility:public/*package*/ modality:FINAL flags:var + FIELD IR_EXTERNAL_DECLARATION_STUB name:expectedModCount type:kotlin.Int visibility:public/*package*/ + PROPERTY IR_EXTERNAL_DECLARATION_STUB name:next type:java.util.LinkedHashMap.Entry! visibility:public/*package*/ modality:FINAL flags:var + FIELD IR_EXTERNAL_DECLARATION_STUB name:next type:java.util.LinkedHashMap.Entry! visibility:public/*package*/ + CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:LinkedEntryIterator modality:FINAL visibility:public/*package*/ flags: + CONSTRUCTOR IR_EXTERNAL_DECLARATION_STUB visibility:public/*package*/ <> () returnType:java.util.LinkedHashMap.LinkedEntryIterator flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:next visibility:public modality:FINAL <> () returnType:(kotlin.collections.MutableMap.MutableEntry<(K..K?), (V..V?)>..kotlin.collections.Map.Entry<(K..K?), (V..V?)>?) flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:hasNext visibility:public modality:FINAL <> () returnType:Boolean flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:remove visibility:public modality:FINAL <> () returnType:Unit flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:forEachRemaining visibility:public modality:OPEN <> (p0:java.util.function.Consumer!>) returnType:Unit flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:p0 index:0 type:java.util.function.Consumer!> flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:equals visibility:public modality:OPEN <> (other:kotlin.Any?) returnType:Boolean flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:other index:0 type:kotlin.Any? flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:hashCode visibility:public modality:OPEN <> () returnType:Int flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:toString visibility:public modality:OPEN <> () returnType:String flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:nextNode visibility:public/*package*/ modality:FINAL <> () returnType:(java.util.LinkedHashMap.Entry<(K..K?), (V..V?)>..java.util.LinkedHashMap.Entry<(K..K?), (V..V?)>?) flags: + PROPERTY IR_EXTERNAL_DECLARATION_STUB name:current type:java.util.LinkedHashMap.Entry! visibility:public/*package*/ modality:FINAL flags:var + FIELD IR_EXTERNAL_DECLARATION_STUB name:current type:java.util.LinkedHashMap.Entry! visibility:public/*package*/ + PROPERTY IR_EXTERNAL_DECLARATION_STUB name:expectedModCount type:kotlin.Int visibility:public/*package*/ modality:FINAL flags:var + FIELD IR_EXTERNAL_DECLARATION_STUB name:expectedModCount type:kotlin.Int visibility:public/*package*/ + PROPERTY IR_EXTERNAL_DECLARATION_STUB name:next type:java.util.LinkedHashMap.Entry! visibility:public/*package*/ modality:FINAL flags:var + FIELD IR_EXTERNAL_DECLARATION_STUB name:next type:java.util.LinkedHashMap.Entry! visibility:public/*package*/ + CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:LinkedEntrySet modality:FINAL visibility:public/*package*/ flags: + CONSTRUCTOR IR_EXTERNAL_DECLARATION_STUB visibility:public/*package*/ <> () returnType:java.util.LinkedHashMap.LinkedEntrySet flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:clear visibility:public modality:FINAL <> () returnType:Unit flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:contains visibility:public modality:FINAL <> (element:kotlin.collections.(Mutable)Map.(Mutable)Entry!) returnType:Boolean flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:element index:0 type:kotlin.collections.(Mutable)Map.(Mutable)Entry! flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:forEach visibility:public modality:FINAL <> (p0:java.util.function.Consumer!>!) returnType:Unit flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:p0 index:0 type:java.util.function.Consumer!>! flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:iterator visibility:public modality:FINAL <> () returnType:MutableIterator<(kotlin.collections.MutableMap.MutableEntry<(K..K?), (V..V?)>..kotlin.collections.Map.Entry<(K..K?), (V..V?)>?)> flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:remove visibility:public modality:FINAL <> (element:kotlin.collections.(Mutable)Map.(Mutable)Entry!) returnType:Boolean flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:element index:0 type:kotlin.collections.(Mutable)Map.(Mutable)Entry! flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:spliterator visibility:public modality:FINAL <> () returnType:Spliterator<(kotlin.collections.MutableMap.MutableEntry<(K..K?), (V..V?)>..kotlin.collections.Map.Entry<(K..K?), (V..V?)>?)> flags: + PROPERTY IR_EXTERNAL_DECLARATION_STUB name:size type:kotlin.Int visibility:public modality:FINAL flags:val + FUN IR_EXTERNAL_DECLARATION_STUB name: visibility:public modality:FINAL <> () returnType:Int flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:toArray visibility:public modality:OPEN (p0:kotlin.Array<(out) T!>!) returnType:(kotlin.Array<(T..T?)>..kotlin.Array?) flags: + TYPE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:T index:0 variance: upperBounds:[kotlin.Any!] + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:p0 index:0 type:kotlin.Array<(out) T!>! flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:add visibility:public modality:OPEN <> (element:kotlin.collections.(Mutable)Map.(Mutable)Entry!) returnType:Boolean flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:element index:0 type:kotlin.collections.(Mutable)Map.(Mutable)Entry! flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:addAll visibility:public modality:OPEN <> (elements:kotlin.collections.Collection!>) returnType:Boolean flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:elements index:0 type:kotlin.collections.Collection!> flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:containsAll visibility:public modality:OPEN <> (elements:kotlin.collections.Collection!>) returnType:Boolean flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:elements index:0 type:kotlin.collections.Collection!> flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:equals visibility:public modality:OPEN <> (other:kotlin.Any?) returnType:Boolean flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:other index:0 type:kotlin.Any? flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:hashCode visibility:public modality:OPEN <> () returnType:Int flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:isEmpty visibility:public modality:OPEN <> () returnType:Boolean flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:parallelStream visibility:public modality:OPEN <> () returnType:Stream<(kotlin.collections.MutableMap.MutableEntry<(K..K?), (V..V?)>..kotlin.collections.Map.Entry<(K..K?), (V..V?)>?)> flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:removeAll visibility:public modality:OPEN <> (elements:kotlin.collections.Collection!>) returnType:Boolean flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:elements index:0 type:kotlin.collections.Collection!> flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:removeIf visibility:public modality:OPEN <> (p0:java.util.function.Predicate!>) returnType:Boolean flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:p0 index:0 type:java.util.function.Predicate!> flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:retainAll visibility:public modality:OPEN <> (elements:kotlin.collections.Collection!>) returnType:Boolean flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:elements index:0 type:kotlin.collections.Collection!> flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:stream visibility:public modality:OPEN <> () returnType:Stream<(kotlin.collections.MutableMap.MutableEntry<(K..K?), (V..V?)>..kotlin.collections.Map.Entry<(K..K?), (V..V?)>?)> flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:toArray visibility:public modality:OPEN <> () returnType:(kotlin.Array<(kotlin.Any..kotlin.Any?)>..kotlin.Array?) flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:toString visibility:public modality:OPEN <> () returnType:String flags: + PROPERTY IR_EXTERNAL_DECLARATION_STUB name:MAX_ARRAY_SIZE type:kotlin.Int visibility:invisible_fake modality:FINAL flags:constmval + FIELD IR_EXTERNAL_DECLARATION_STUB name:MAX_ARRAY_SIZE type:kotlin.Int visibility:invisible_fake + FUN IR_EXTERNAL_DECLARATION_STUB name:finishToArray visibility:invisible_fake modality:OPEN (p0:kotlin.Array<(out) T!>!, p1:kotlin.collections.(Mutable)Iterator<*>!) returnType:(kotlin.Array<(T..T?)>..kotlin.Array?) flags: + TYPE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:T index:0 variance: upperBounds:[kotlin.Any!] + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:p0 index:0 type:kotlin.Array<(out) T!>! flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:p1 index:1 type:kotlin.collections.(Mutable)Iterator<*>! flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:hugeCapacity visibility:invisible_fake modality:OPEN <> (p0:kotlin.Int) returnType:Int flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:p0 index:0 type:kotlin.Int flags: + CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:LinkedKeyIterator modality:FINAL visibility:public/*package*/ flags: + CONSTRUCTOR IR_EXTERNAL_DECLARATION_STUB visibility:public/*package*/ <> () returnType:java.util.LinkedHashMap.LinkedKeyIterator flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:next visibility:public modality:FINAL <> () returnType:(K..K?) flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:hasNext visibility:public modality:FINAL <> () returnType:Boolean flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:remove visibility:public modality:FINAL <> () returnType:Unit flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:forEachRemaining visibility:public modality:OPEN <> (p0:java.util.function.Consumer) returnType:Unit flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:p0 index:0 type:java.util.function.Consumer flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:equals visibility:public modality:OPEN <> (other:kotlin.Any?) returnType:Boolean flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:other index:0 type:kotlin.Any? flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:hashCode visibility:public modality:OPEN <> () returnType:Int flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:toString visibility:public modality:OPEN <> () returnType:String flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:nextNode visibility:public/*package*/ modality:FINAL <> () returnType:(java.util.LinkedHashMap.Entry<(K..K?), (V..V?)>..java.util.LinkedHashMap.Entry<(K..K?), (V..V?)>?) flags: + PROPERTY IR_EXTERNAL_DECLARATION_STUB name:current type:java.util.LinkedHashMap.Entry! visibility:public/*package*/ modality:FINAL flags:var + FIELD IR_EXTERNAL_DECLARATION_STUB name:current type:java.util.LinkedHashMap.Entry! visibility:public/*package*/ + PROPERTY IR_EXTERNAL_DECLARATION_STUB name:expectedModCount type:kotlin.Int visibility:public/*package*/ modality:FINAL flags:var + FIELD IR_EXTERNAL_DECLARATION_STUB name:expectedModCount type:kotlin.Int visibility:public/*package*/ + PROPERTY IR_EXTERNAL_DECLARATION_STUB name:next type:java.util.LinkedHashMap.Entry! visibility:public/*package*/ modality:FINAL flags:var + FIELD IR_EXTERNAL_DECLARATION_STUB name:next type:java.util.LinkedHashMap.Entry! visibility:public/*package*/ + CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:LinkedKeySet modality:FINAL visibility:public/*package*/ flags: + CONSTRUCTOR IR_EXTERNAL_DECLARATION_STUB visibility:public/*package*/ <> () returnType:java.util.LinkedHashMap.LinkedKeySet flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:clear visibility:public modality:FINAL <> () returnType:Unit flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:contains visibility:public modality:FINAL <> (element:K!) returnType:Boolean flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:element index:0 type:K! flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:forEach visibility:public modality:FINAL <> (p0:java.util.function.Consumer!) returnType:Unit flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:p0 index:0 type:java.util.function.Consumer! flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:iterator visibility:public modality:FINAL <> () returnType:MutableIterator<(K..K?)> flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:remove visibility:public modality:FINAL <> (element:K!) returnType:Boolean flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:element index:0 type:K! flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:spliterator visibility:public modality:FINAL <> () returnType:Spliterator<(K..K?)> flags: + PROPERTY IR_EXTERNAL_DECLARATION_STUB name:size type:kotlin.Int visibility:public modality:FINAL flags:val + FUN IR_EXTERNAL_DECLARATION_STUB name: visibility:public modality:FINAL <> () returnType:Int flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:toArray visibility:public modality:OPEN (p0:kotlin.Array<(out) T!>!) returnType:(kotlin.Array<(T..T?)>..kotlin.Array?) flags: + TYPE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:T index:0 variance: upperBounds:[kotlin.Any!] + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:p0 index:0 type:kotlin.Array<(out) T!>! flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:add visibility:public modality:OPEN <> (element:K!) returnType:Boolean flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:element index:0 type:K! flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:addAll visibility:public modality:OPEN <> (elements:kotlin.collections.Collection) returnType:Boolean flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:elements index:0 type:kotlin.collections.Collection flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:containsAll visibility:public modality:OPEN <> (elements:kotlin.collections.Collection) returnType:Boolean flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:elements index:0 type:kotlin.collections.Collection flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:equals visibility:public modality:OPEN <> (other:kotlin.Any?) returnType:Boolean flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:other index:0 type:kotlin.Any? flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:hashCode visibility:public modality:OPEN <> () returnType:Int flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:isEmpty visibility:public modality:OPEN <> () returnType:Boolean flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:parallelStream visibility:public modality:OPEN <> () returnType:Stream<(K..K?)> flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:removeAll visibility:public modality:OPEN <> (elements:kotlin.collections.Collection) returnType:Boolean flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:elements index:0 type:kotlin.collections.Collection flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:removeIf visibility:public modality:OPEN <> (p0:java.util.function.Predicate) returnType:Boolean flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:p0 index:0 type:java.util.function.Predicate flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:retainAll visibility:public modality:OPEN <> (elements:kotlin.collections.Collection) returnType:Boolean flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:elements index:0 type:kotlin.collections.Collection flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:stream visibility:public modality:OPEN <> () returnType:Stream<(K..K?)> flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:toArray visibility:public modality:OPEN <> () returnType:(kotlin.Array<(kotlin.Any..kotlin.Any?)>..kotlin.Array?) flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:toString visibility:public modality:OPEN <> () returnType:String flags: + PROPERTY IR_EXTERNAL_DECLARATION_STUB name:MAX_ARRAY_SIZE type:kotlin.Int visibility:invisible_fake modality:FINAL flags:constmval + FIELD IR_EXTERNAL_DECLARATION_STUB name:MAX_ARRAY_SIZE type:kotlin.Int visibility:invisible_fake + FUN IR_EXTERNAL_DECLARATION_STUB name:finishToArray visibility:invisible_fake modality:OPEN (p0:kotlin.Array<(out) T!>!, p1:kotlin.collections.(Mutable)Iterator<*>!) returnType:(kotlin.Array<(T..T?)>..kotlin.Array?) flags: + TYPE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:T index:0 variance: upperBounds:[kotlin.Any!] + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:p0 index:0 type:kotlin.Array<(out) T!>! flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:p1 index:1 type:kotlin.collections.(Mutable)Iterator<*>! flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:hugeCapacity visibility:invisible_fake modality:OPEN <> (p0:kotlin.Int) returnType:Int flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:p0 index:0 type:kotlin.Int flags: + CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:LinkedValueIterator modality:FINAL visibility:public/*package*/ flags: + CONSTRUCTOR IR_EXTERNAL_DECLARATION_STUB visibility:public/*package*/ <> () returnType:java.util.LinkedHashMap.LinkedValueIterator flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:next visibility:public modality:FINAL <> () returnType:(V..V?) flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:hasNext visibility:public modality:FINAL <> () returnType:Boolean flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:remove visibility:public modality:FINAL <> () returnType:Unit flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:forEachRemaining visibility:public modality:OPEN <> (p0:java.util.function.Consumer) returnType:Unit flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:p0 index:0 type:java.util.function.Consumer flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:equals visibility:public modality:OPEN <> (other:kotlin.Any?) returnType:Boolean flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:other index:0 type:kotlin.Any? flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:hashCode visibility:public modality:OPEN <> () returnType:Int flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:toString visibility:public modality:OPEN <> () returnType:String flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:nextNode visibility:public/*package*/ modality:FINAL <> () returnType:(java.util.LinkedHashMap.Entry<(K..K?), (V..V?)>..java.util.LinkedHashMap.Entry<(K..K?), (V..V?)>?) flags: + PROPERTY IR_EXTERNAL_DECLARATION_STUB name:current type:java.util.LinkedHashMap.Entry! visibility:public/*package*/ modality:FINAL flags:var + FIELD IR_EXTERNAL_DECLARATION_STUB name:current type:java.util.LinkedHashMap.Entry! visibility:public/*package*/ + PROPERTY IR_EXTERNAL_DECLARATION_STUB name:expectedModCount type:kotlin.Int visibility:public/*package*/ modality:FINAL flags:var + FIELD IR_EXTERNAL_DECLARATION_STUB name:expectedModCount type:kotlin.Int visibility:public/*package*/ + PROPERTY IR_EXTERNAL_DECLARATION_STUB name:next type:java.util.LinkedHashMap.Entry! visibility:public/*package*/ modality:FINAL flags:var + FIELD IR_EXTERNAL_DECLARATION_STUB name:next type:java.util.LinkedHashMap.Entry! visibility:public/*package*/ + CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:LinkedValues modality:FINAL visibility:public/*package*/ flags: + CONSTRUCTOR IR_EXTERNAL_DECLARATION_STUB visibility:public/*package*/ <> () returnType:java.util.LinkedHashMap.LinkedValues flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:clear visibility:public modality:FINAL <> () returnType:Unit flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:contains visibility:public modality:FINAL <> (element:V!) returnType:Boolean flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:element index:0 type:V! flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:forEach visibility:public modality:FINAL <> (p0:java.util.function.Consumer!) returnType:Unit flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:p0 index:0 type:java.util.function.Consumer! flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:iterator visibility:public modality:FINAL <> () returnType:MutableIterator<(V..V?)> flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:spliterator visibility:public modality:FINAL <> () returnType:Spliterator<(V..V?)> flags: + PROPERTY IR_EXTERNAL_DECLARATION_STUB name:size type:kotlin.Int visibility:public modality:FINAL flags:val + FUN IR_EXTERNAL_DECLARATION_STUB name: visibility:public modality:FINAL <> () returnType:Int flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:toArray visibility:public modality:OPEN (p0:kotlin.Array<(out) T!>!) returnType:(kotlin.Array<(T..T?)>..kotlin.Array?) flags: + TYPE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:T index:0 variance: upperBounds:[kotlin.Any!] + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:p0 index:0 type:kotlin.Array<(out) T!>! flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:add visibility:public modality:OPEN <> (element:V!) returnType:Boolean flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:element index:0 type:V! flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:addAll visibility:public modality:OPEN <> (elements:kotlin.collections.Collection) returnType:Boolean flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:elements index:0 type:kotlin.collections.Collection flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:containsAll visibility:public modality:OPEN <> (elements:kotlin.collections.Collection) returnType:Boolean flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:elements index:0 type:kotlin.collections.Collection flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:equals visibility:public modality:OPEN <> (other:kotlin.Any?) returnType:Boolean flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:other index:0 type:kotlin.Any? flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:hashCode visibility:public modality:OPEN <> () returnType:Int flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:isEmpty visibility:public modality:OPEN <> () returnType:Boolean flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:parallelStream visibility:public modality:OPEN <> () returnType:Stream<(V..V?)> flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:remove visibility:public modality:OPEN <> (element:V!) returnType:Boolean flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:element index:0 type:V! flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:removeAll visibility:public modality:OPEN <> (elements:kotlin.collections.Collection) returnType:Boolean flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:elements index:0 type:kotlin.collections.Collection flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:removeIf visibility:public modality:OPEN <> (p0:java.util.function.Predicate) returnType:Boolean flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:p0 index:0 type:java.util.function.Predicate flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:retainAll visibility:public modality:OPEN <> (elements:kotlin.collections.Collection) returnType:Boolean flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:elements index:0 type:kotlin.collections.Collection flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:stream visibility:public modality:OPEN <> () returnType:Stream<(V..V?)> flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:toArray visibility:public modality:OPEN <> () returnType:(kotlin.Array<(kotlin.Any..kotlin.Any?)>..kotlin.Array?) flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:toString visibility:public modality:OPEN <> () returnType:String flags: + PROPERTY IR_EXTERNAL_DECLARATION_STUB name:MAX_ARRAY_SIZE type:kotlin.Int visibility:invisible_fake modality:FINAL flags:constmval + FIELD IR_EXTERNAL_DECLARATION_STUB name:MAX_ARRAY_SIZE type:kotlin.Int visibility:invisible_fake + FUN IR_EXTERNAL_DECLARATION_STUB name:finishToArray visibility:invisible_fake modality:OPEN (p0:kotlin.Array<(out) T!>!, p1:kotlin.collections.(Mutable)Iterator<*>!) returnType:(kotlin.Array<(T..T?)>..kotlin.Array?) flags: + TYPE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:T index:0 variance: upperBounds:[kotlin.Any!] + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:p0 index:0 type:kotlin.Array<(out) T!>! flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:p1 index:1 type:kotlin.collections.(Mutable)Iterator<*>! flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:hugeCapacity visibility:invisible_fake modality:OPEN <> (p0:kotlin.Int) returnType:Int flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:p0 index:0 type:kotlin.Int flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:capacity visibility:public/*package*/ modality:FINAL <> () returnType:Int flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:getNode visibility:public/*package*/ modality:FINAL <> (p0:kotlin.Int, p1:kotlin.Any!) returnType:(java.util.HashMap.Node<(K..K?), (V..V?)>..java.util.HashMap.Node<(K..K?), (V..V?)>?) flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:p0 index:0 type:kotlin.Int flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:p1 index:1 type:kotlin.Any! flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:loadFactor visibility:public/*package*/ modality:FINAL <> () returnType:Float flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:putMapEntries visibility:public/*package*/ modality:FINAL <> (p0:(kotlin.collections.MutableMap..kotlin.collections.Map?), p1:kotlin.Boolean) returnType:Unit flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:p0 index:0 type:(kotlin.collections.MutableMap..kotlin.collections.Map?) flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:p1 index:1 type:kotlin.Boolean flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:putVal visibility:public/*package*/ modality:FINAL <> (p0:kotlin.Int, p1:K!, p2:V!, p3:kotlin.Boolean, p4:kotlin.Boolean) returnType:(V..V?) flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:p0 index:0 type:kotlin.Int flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:p1 index:1 type:K! flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:p2 index:2 type:V! flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:p3 index:3 type:kotlin.Boolean flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:p4 index:4 type:kotlin.Boolean flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:removeNode visibility:public/*package*/ modality:FINAL <> (p0:kotlin.Int, p1:kotlin.Any!, p2:kotlin.Any!, p3:kotlin.Boolean, p4:kotlin.Boolean) returnType:(java.util.HashMap.Node<(K..K?), (V..V?)>..java.util.HashMap.Node<(K..K?), (V..V?)>?) flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:p0 index:0 type:kotlin.Int flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:p1 index:1 type:kotlin.Any! flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:p2 index:2 type:kotlin.Any! flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:p3 index:3 type:kotlin.Boolean flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:p4 index:4 type:kotlin.Boolean flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:resize visibility:public/*package*/ modality:FINAL <> () returnType:(kotlin.Array<(java.util.HashMap.Node<(K..K?), (V..V?)>..java.util.HashMap.Node<(K..K?), (V..V?)>?)>..kotlin.Array..java.util.HashMap.Node<(K..K?), (V..V?)>?)>?) flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:treeifyBin visibility:public/*package*/ modality:FINAL <> (p0:kotlin.Array<(out) java.util.HashMap.Node!>!, p1:kotlin.Int) returnType:Unit flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:p0 index:0 type:kotlin.Array<(out) java.util.HashMap.Node!>! flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:p1 index:1 type:kotlin.Int flags: + PROPERTY IR_EXTERNAL_DECLARATION_STUB name:loadFactor type:kotlin.Float visibility:public/*package*/ modality:FINAL flags:val + FIELD IR_EXTERNAL_DECLARATION_STUB name:loadFactor type:kotlin.Float visibility:public/*package*/ + PROPERTY IR_EXTERNAL_DECLARATION_STUB name:entrySet type:kotlin.collections.(Mutable)Set!>! visibility:public/*package*/ modality:FINAL flags:var + FIELD IR_EXTERNAL_DECLARATION_STUB name:entrySet type:kotlin.collections.(Mutable)Set!>! visibility:public/*package*/ + PROPERTY IR_EXTERNAL_DECLARATION_STUB name:keySet type:kotlin.collections.(Mutable)Set! visibility:public/*package*/ modality:FINAL flags:var + FIELD IR_EXTERNAL_DECLARATION_STUB name:keySet type:kotlin.collections.(Mutable)Set! visibility:public/*package*/ + PROPERTY IR_EXTERNAL_DECLARATION_STUB name:modCount type:kotlin.Int visibility:public/*package*/ modality:FINAL flags:var + FIELD IR_EXTERNAL_DECLARATION_STUB name:modCount type:kotlin.Int visibility:public/*package*/ + PROPERTY IR_EXTERNAL_DECLARATION_STUB name:size type:kotlin.Int visibility:public/*package*/ modality:FINAL flags:var + FIELD IR_EXTERNAL_DECLARATION_STUB name:size type:kotlin.Int visibility:public/*package*/ + PROPERTY IR_EXTERNAL_DECLARATION_STUB name:table type:kotlin.Array<(out) java.util.HashMap.Node!>! visibility:public/*package*/ modality:FINAL flags:var + FIELD IR_EXTERNAL_DECLARATION_STUB name:table type:kotlin.Array<(out) java.util.HashMap.Node!>! visibility:public/*package*/ + PROPERTY IR_EXTERNAL_DECLARATION_STUB name:threshold type:kotlin.Int visibility:public/*package*/ modality:FINAL flags:var + FIELD IR_EXTERNAL_DECLARATION_STUB name:threshold type:kotlin.Int visibility:public/*package*/ + PROPERTY IR_EXTERNAL_DECLARATION_STUB name:values type:kotlin.collections.(Mutable)Collection! visibility:public/*package*/ modality:FINAL flags:var + FIELD IR_EXTERNAL_DECLARATION_STUB name:values type:kotlin.collections.(Mutable)Collection! visibility:public/*package*/ + PROPERTY IR_EXTERNAL_DECLARATION_STUB name:accessOrder type:kotlin.Boolean visibility:public/*package*/ modality:FINAL flags:val + FIELD IR_EXTERNAL_DECLARATION_STUB name:accessOrder type:kotlin.Boolean visibility:public/*package*/ + PROPERTY IR_EXTERNAL_DECLARATION_STUB name:head type:java.util.LinkedHashMap.Entry! visibility:public/*package*/ modality:FINAL flags:var + FIELD IR_EXTERNAL_DECLARATION_STUB name:head type:java.util.LinkedHashMap.Entry! visibility:public/*package*/ + PROPERTY IR_EXTERNAL_DECLARATION_STUB name:tail type:java.util.LinkedHashMap.Entry! visibility:public/*package*/ modality:FINAL flags:var + FIELD IR_EXTERNAL_DECLARATION_STUB name:tail type:java.util.LinkedHashMap.Entry! visibility:public/*package*/ + CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Entry modality:OPEN visibility:public/*package*/ flags: + TYPE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:K index:0 variance: upperBounds:[kotlin.Any!] + TYPE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:V index:1 variance: upperBounds:[kotlin.Any!] + CONSTRUCTOR IR_EXTERNAL_DECLARATION_STUB visibility:public/*package*/ <> (p0:kotlin.Int, p1:K!, p2:V!, p3:java.util.HashMap.Node!) returnType:java.util.LinkedHashMap.Entry flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:p0 index:0 type:kotlin.Int flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:p1 index:1 type:K! flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:p2 index:2 type:V! flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:p3 index:3 type:java.util.HashMap.Node! flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:equals visibility:public modality:FINAL <> (other:kotlin.Any?) returnType:Boolean flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:other index:0 type:kotlin.Any? flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:hashCode visibility:public modality:FINAL <> () returnType:Int flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:setValue visibility:public modality:FINAL <> (newValue:V!) returnType:(V..V?) flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:newValue index:0 type:V! flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:toString visibility:public modality:FINAL <> () returnType:String flags: + PROPERTY IR_EXTERNAL_DECLARATION_STUB name:key type:K! visibility:public modality:FINAL flags:val + FUN IR_EXTERNAL_DECLARATION_STUB name: visibility:public modality:FINAL <> () returnType:(K..K?) flags: + PROPERTY IR_EXTERNAL_DECLARATION_STUB name:value type:V! visibility:public modality:FINAL flags:val + FUN IR_EXTERNAL_DECLARATION_STUB name: visibility:public modality:FINAL <> () returnType:(V..V?) flags: + PROPERTY IR_EXTERNAL_DECLARATION_STUB name:hash type:kotlin.Int visibility:public/*package*/ modality:FINAL flags:val + FIELD IR_EXTERNAL_DECLARATION_STUB name:hash type:kotlin.Int visibility:public/*package*/ + PROPERTY IR_EXTERNAL_DECLARATION_STUB name:key type:K! visibility:public/*package*/ modality:FINAL flags:val + FIELD IR_EXTERNAL_DECLARATION_STUB name:key type:K! visibility:public/*package*/ + PROPERTY IR_EXTERNAL_DECLARATION_STUB name:next type:java.util.HashMap.Node! visibility:public/*package*/ modality:FINAL flags:var + FIELD IR_EXTERNAL_DECLARATION_STUB name:next type:java.util.HashMap.Node! visibility:public/*package*/ + PROPERTY IR_EXTERNAL_DECLARATION_STUB name:value type:V! visibility:public/*package*/ modality:FINAL flags:var + FIELD IR_EXTERNAL_DECLARATION_STUB name:value type:V! visibility:public/*package*/ + PROPERTY IR_EXTERNAL_DECLARATION_STUB name:after type:java.util.LinkedHashMap.Entry! visibility:public/*package*/ modality:FINAL flags:var + FIELD IR_EXTERNAL_DECLARATION_STUB name:after type:java.util.LinkedHashMap.Entry! visibility:public/*package*/ + PROPERTY IR_EXTERNAL_DECLARATION_STUB name:before type:java.util.LinkedHashMap.Entry! visibility:public/*package*/ modality:FINAL flags:var + FIELD IR_EXTERNAL_DECLARATION_STUB name:before type:java.util.LinkedHashMap.Entry! visibility:public/*package*/ + FUN IR_EXTERNAL_DECLARATION_STUB name:afterNodeAccess visibility:public/*package*/ modality:OPEN <> (p0:java.util.HashMap.Node!) returnType:Unit flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:p0 index:0 type:java.util.HashMap.Node! flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:afterNodeInsertion visibility:public/*package*/ modality:OPEN <> (p0:kotlin.Boolean) returnType:Unit flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:p0 index:0 type:kotlin.Boolean flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:afterNodeRemoval visibility:public/*package*/ modality:OPEN <> (p0:java.util.HashMap.Node!) returnType:Unit flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:p0 index:0 type:java.util.HashMap.Node! flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:internalWriteEntries visibility:public/*package*/ modality:OPEN <> (p0:java.io.ObjectOutputStream!) returnType:Unit flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:p0 index:0 type:java.io.ObjectOutputStream! flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:newNode visibility:public/*package*/ modality:OPEN <> (p0:kotlin.Int, p1:K!, p2:V!, p3:java.util.HashMap.Node!) returnType:(java.util.HashMap.Node<(K..K?), (V..V?)>..java.util.HashMap.Node<(K..K?), (V..V?)>?) flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:p0 index:0 type:kotlin.Int flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:p1 index:1 type:K! flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:p2 index:2 type:V! flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:p3 index:3 type:java.util.HashMap.Node! flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:newTreeNode visibility:public/*package*/ modality:OPEN <> (p0:kotlin.Int, p1:K!, p2:V!, p3:java.util.HashMap.Node!) returnType:(java.util.HashMap.TreeNode<(K..K?), (V..V?)>..java.util.HashMap.TreeNode<(K..K?), (V..V?)>?) flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:p0 index:0 type:kotlin.Int flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:p1 index:1 type:K! flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:p2 index:2 type:V! flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:p3 index:3 type:java.util.HashMap.Node! flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:reinitialize visibility:public/*package*/ modality:OPEN <> () returnType:Unit flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:replacementNode visibility:public/*package*/ modality:OPEN <> (p0:java.util.HashMap.Node!, p1:java.util.HashMap.Node!) returnType:(java.util.HashMap.Node<(K..K?), (V..V?)>..java.util.HashMap.Node<(K..K?), (V..V?)>?) flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:p0 index:0 type:java.util.HashMap.Node! flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:p1 index:1 type:java.util.HashMap.Node! flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:replacementTreeNode visibility:public/*package*/ modality:OPEN <> (p0:java.util.HashMap.Node!, p1:java.util.HashMap.Node!) returnType:(java.util.HashMap.TreeNode<(K..K?), (V..V?)>..java.util.HashMap.TreeNode<(K..K?), (V..V?)>?) flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:p0 index:0 type:java.util.HashMap.Node! flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:p1 index:1 type:java.util.HashMap.Node! flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:eq visibility:invisible_fake modality:OPEN <> (p0:kotlin.Any!, p1:kotlin.Any!) returnType:Boolean flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:p0 index:0 type:kotlin.Any! flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:p1 index:1 type:kotlin.Any! flags: + PROPERTY IR_EXTERNAL_DECLARATION_STUB name:serialVersionUID type:kotlin.Long visibility:private modality:FINAL flags:constmval + FIELD IR_EXTERNAL_DECLARATION_STUB name:serialVersionUID type:kotlin.Long visibility:private + PROPERTY IR_EXTERNAL_DECLARATION_STUB name:DEFAULT_INITIAL_CAPACITY type:kotlin.Int visibility:public/*package*/ modality:FINAL flags:constmval + FIELD IR_EXTERNAL_DECLARATION_STUB name:DEFAULT_INITIAL_CAPACITY type:kotlin.Int visibility:public/*package*/ + PROPERTY IR_EXTERNAL_DECLARATION_STUB name:DEFAULT_LOAD_FACTOR type:kotlin.Float visibility:public/*package*/ modality:FINAL flags:constmval + FIELD IR_EXTERNAL_DECLARATION_STUB name:DEFAULT_LOAD_FACTOR type:kotlin.Float visibility:public/*package*/ + PROPERTY IR_EXTERNAL_DECLARATION_STUB name:MAXIMUM_CAPACITY type:kotlin.Int visibility:public/*package*/ modality:FINAL flags:constmval + FIELD IR_EXTERNAL_DECLARATION_STUB name:MAXIMUM_CAPACITY type:kotlin.Int visibility:public/*package*/ + PROPERTY IR_EXTERNAL_DECLARATION_STUB name:MIN_TREEIFY_CAPACITY type:kotlin.Int visibility:public/*package*/ modality:FINAL flags:constmval + FIELD IR_EXTERNAL_DECLARATION_STUB name:MIN_TREEIFY_CAPACITY type:kotlin.Int visibility:public/*package*/ + PROPERTY IR_EXTERNAL_DECLARATION_STUB name:TREEIFY_THRESHOLD type:kotlin.Int visibility:public/*package*/ modality:FINAL flags:constmval + FIELD IR_EXTERNAL_DECLARATION_STUB name:TREEIFY_THRESHOLD type:kotlin.Int visibility:public/*package*/ + PROPERTY IR_EXTERNAL_DECLARATION_STUB name:UNTREEIFY_THRESHOLD type:kotlin.Int visibility:public/*package*/ modality:FINAL flags:constmval + FIELD IR_EXTERNAL_DECLARATION_STUB name:UNTREEIFY_THRESHOLD type:kotlin.Int visibility:public/*package*/ + FUN IR_EXTERNAL_DECLARATION_STUB name:hash visibility:public/*package*/ modality:FINAL <> (p0:kotlin.Any!) returnType:Int flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:p0 index:0 type:kotlin.Any! flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:tableSizeFor visibility:public/*package*/ modality:FINAL <> (p0:kotlin.Int) returnType:Int flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:p0 index:0 type:kotlin.Int flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:comparableClassFor visibility:public/*package*/ modality:OPEN <> (p0:kotlin.Any!) returnType:(java.lang.Class<*>..java.lang.Class<*>?) flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:p0 index:0 type:kotlin.Any! flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:compareComparables visibility:public/*package*/ modality:OPEN <> (p0:java.lang.Class<*>!, p1:kotlin.Any!, p2:kotlin.Any!) returnType:Int flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:p0 index:0 type:java.lang.Class<*>! flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:p1 index:1 type:kotlin.Any! flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:p2 index:2 type:kotlin.Any! flags: + EXTERNAL_PACKAGE_FRAGMENT fqName:kotlin.collections + CLASS IR_EXTERNAL_DECLARATION_STUB INTERFACE name:Map modality:ABSTRACT visibility:public flags: + TYPE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:K index:0 variance: upperBounds:[kotlin.Any?] + TYPE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:V index:1 variance:out upperBounds:[kotlin.Any?] + FUN IR_EXTERNAL_DECLARATION_STUB name:getOrDefault visibility:public modality:OPEN <> (key:K, defaultValue:@kotlin.UnsafeVariance V) returnType:V flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:key index:0 type:K flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:defaultValue index:1 type:@kotlin.UnsafeVariance V flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:containsKey visibility:public modality:ABSTRACT <> (key:K) returnType:Boolean flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:key index:0 type:K flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:containsValue visibility:public modality:ABSTRACT <> (value:@kotlin.UnsafeVariance V) returnType:Boolean flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:value index:0 type:@kotlin.UnsafeVariance V flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:isEmpty visibility:public modality:ABSTRACT <> () returnType:Boolean flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:get visibility:public modality:ABSTRACT <> (key:K) returnType:V? flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:key index:0 type:K flags: + PROPERTY IR_EXTERNAL_DECLARATION_STUB name:entries type:kotlin.collections.Set> visibility:public modality:ABSTRACT flags:val + FUN IR_EXTERNAL_DECLARATION_STUB name: visibility:public modality:ABSTRACT <> () returnType:Set> flags: + PROPERTY IR_EXTERNAL_DECLARATION_STUB name:keys type:kotlin.collections.Set visibility:public modality:ABSTRACT flags:val + FUN IR_EXTERNAL_DECLARATION_STUB name: visibility:public modality:ABSTRACT <> () returnType:Set flags: + PROPERTY IR_EXTERNAL_DECLARATION_STUB name:size type:kotlin.Int visibility:public modality:ABSTRACT flags:val + FUN IR_EXTERNAL_DECLARATION_STUB name: visibility:public modality:ABSTRACT <> () returnType:Int flags: + PROPERTY IR_EXTERNAL_DECLARATION_STUB name:values type:kotlin.collections.Collection visibility:public modality:ABSTRACT flags:val + FUN IR_EXTERNAL_DECLARATION_STUB name: visibility:public modality:ABSTRACT <> () returnType:Collection flags: + CLASS IR_EXTERNAL_DECLARATION_STUB INTERFACE name:Entry modality:ABSTRACT visibility:public flags: + TYPE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:K index:0 variance:out upperBounds:[kotlin.Any?] + TYPE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:V index:1 variance:out upperBounds:[kotlin.Any?] + PROPERTY IR_EXTERNAL_DECLARATION_STUB name:key type:K visibility:public modality:ABSTRACT flags:val + FUN IR_EXTERNAL_DECLARATION_STUB name: visibility:public modality:ABSTRACT <> () returnType:K flags: + PROPERTY IR_EXTERNAL_DECLARATION_STUB name:value type:V visibility:public modality:ABSTRACT flags:val + FUN IR_EXTERNAL_DECLARATION_STUB name: visibility:public modality:ABSTRACT <> () returnType:V flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:equals visibility:public modality:OPEN <> (other:kotlin.Any?) returnType:Boolean flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:other index:0 type:kotlin.Any? flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:hashCode visibility:public modality:OPEN <> () returnType:Int flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:toString visibility:public modality:OPEN <> () returnType:String flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:forEach visibility:public modality:OPEN <> (p0:java.util.function.BiConsumer) returnType:Unit flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:p0 index:0 type:java.util.function.BiConsumer flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:equals visibility:public modality:OPEN <> (other:kotlin.Any?) returnType:Boolean flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:other index:0 type:kotlin.Any? flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:hashCode visibility:public modality:OPEN <> () returnType:Int flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:toString visibility:public modality:OPEN <> () returnType:String flags: + EXTERNAL_PACKAGE_FRAGMENT fqName:kotlin.collections + FUN IR_EXTERNAL_DECLARATION_STUB name:mapOf visibility:public modality:FINAL (pair:kotlin.Pair) returnType:Map flags: + TYPE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:K index:0 variance: upperBounds:[kotlin.Any?] + TYPE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:V index:1 variance: upperBounds:[kotlin.Any?] + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:pair index:0 type:kotlin.Pair flags: + EXTERNAL_PACKAGE_FRAGMENT fqName:kotlin + CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Pair modality:FINAL visibility:public flags:data + TYPE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:A index:0 variance:out upperBounds:[kotlin.Any?] + TYPE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:B index:1 variance:out upperBounds:[kotlin.Any?] + CONSTRUCTOR IR_EXTERNAL_DECLARATION_STUB visibility:public <> (first:A, second:B) returnType:kotlin.Pair flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:first index:0 type:A flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:second index:1 type:B flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:copy visibility:public modality:FINAL <> (first:A, second:B) returnType:Pair flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:first index:0 type:A flags: EXPRESSION_BODY ERROR_EXPR 'Stub expression for default value of first' type=A - VALUE_PARAMETER value-parameter second: B = ... + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:second index:1 type:B flags: EXPRESSION_BODY ERROR_EXPR 'Stub expression for default value of second' type=B - FUN IR_EXTERNAL_DECLARATION_STUB public final operator fun component1(): A - FUN IR_EXTERNAL_DECLARATION_STUB public final operator fun component2(): B - PROPERTY IR_EXTERNAL_DECLARATION_STUB public final val first: A - FUN IR_EXTERNAL_DECLARATION_STUB public final fun (): A - PROPERTY IR_EXTERNAL_DECLARATION_STUB public final val second: B - FUN IR_EXTERNAL_DECLARATION_STUB public final fun (): B - FUN IR_EXTERNAL_DECLARATION_STUB public open override fun equals(other: kotlin.Any?): kotlin.Boolean - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN IR_EXTERNAL_DECLARATION_STUB public open override fun hashCode(): kotlin.Int - FUN IR_EXTERNAL_DECLARATION_STUB public open override fun toString(): kotlin.String - FUN IR_EXTERNAL_DECLARATION_STUB @kotlin.internal.InlineOnly public inline fun T.apply(block: T.() -> kotlin.Unit): T - TYPE_PARAMETER - VALUE_PARAMETER value-parameter block: T.() -> kotlin.Unit + FUN IR_EXTERNAL_DECLARATION_STUB name:component1 visibility:public modality:FINAL <> () returnType:A flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:component2 visibility:public modality:FINAL <> () returnType:B flags: + PROPERTY IR_EXTERNAL_DECLARATION_STUB name:first type:A visibility:public modality:FINAL flags:val + FUN IR_EXTERNAL_DECLARATION_STUB name: visibility:public modality:FINAL <> () returnType:A flags: + PROPERTY IR_EXTERNAL_DECLARATION_STUB name:second type:B visibility:public modality:FINAL flags:val + FUN IR_EXTERNAL_DECLARATION_STUB name: visibility:public modality:FINAL <> () returnType:B flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:equals visibility:public modality:OPEN <> (other:kotlin.Any?) returnType:Boolean flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:other index:0 type:kotlin.Any? flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:hashCode visibility:public modality:OPEN <> () returnType:Int flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:toString visibility:public modality:OPEN <> () returnType:String flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:apply visibility:public modality:FINAL (block:T.() -> kotlin.Unit) returnType:T flags:inline + TYPE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:T index:0 variance: upperBounds:[kotlin.Any?] + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:block index:0 type:T.() -> kotlin.Unit flags: diff --git a/compiler/testData/ir/irText/stubs/javaEnum.txt b/compiler/testData/ir/irText/stubs/javaEnum.txt index cdb8fb02f33..043b2f791df 100644 --- a/compiler/testData/ir/irText/stubs/javaEnum.txt +++ b/compiler/testData/ir/irText/stubs/javaEnum.txt @@ -1,9 +1,10 @@ -FILE /javaEnum.kt - PROPERTY public val test: JEnum - FIELD PROPERTY_BACKING_FIELD public val test: JEnum +FILE fqName: fileName:/javaEnum.kt + PROPERTY name:test type:JEnum visibility:public modality:FINAL flags:val + FIELD PROPERTY_BACKING_FIELD name:test type:JEnum visibility:public EXPRESSION_BODY GET_ENUM 'ONE' type=JEnum - FUN DEFAULT_PROPERTY_ACCESSOR public fun (): JEnum + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:JEnum flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): JEnum' + RETURN type=kotlin.Nothing from=(): JEnum' GET_FIELD 'test: JEnum' type=JEnum origin=null + diff --git a/compiler/testData/ir/irText/stubs/javaEnum__testmodule.txt b/compiler/testData/ir/irText/stubs/javaEnum__testmodule.txt index 561ddf5cafa..78c5c00e689 100644 --- a/compiler/testData/ir/irText/stubs/javaEnum__testmodule.txt +++ b/compiler/testData/ir/irText/stubs/javaEnum__testmodule.txt @@ -1,23 +1,23 @@ -MODULE_FRAGMENT - EXTERNAL_PACKAGE_FRAGMENT - CLASS IR_EXTERNAL_DECLARATION_STUB ENUM_CLASS JEnum - CONSTRUCTOR IR_EXTERNAL_DECLARATION_STUB public constructor JEnum() - ENUM_ENTRY IR_EXTERNAL_DECLARATION_STUB enum entry ONE - ENUM_ENTRY IR_EXTERNAL_DECLARATION_STUB enum entry THREE - ENUM_ENTRY IR_EXTERNAL_DECLARATION_STUB enum entry TWO - FUN IR_EXTERNAL_DECLARATION_STUB protected final override fun clone(): kotlin.Any - FUN IR_EXTERNAL_DECLARATION_STUB protected/*protected and package*/ final override fun finalize(): kotlin.Unit - FUN IR_EXTERNAL_DECLARATION_STUB public final override fun getDeclaringClass(): java.lang.Class! - FUN IR_EXTERNAL_DECLARATION_STUB public final override fun compareTo(other: JEnum!): kotlin.Int - VALUE_PARAMETER value-parameter other: JEnum! - FUN IR_EXTERNAL_DECLARATION_STUB public final override fun equals(other: kotlin.Any?): kotlin.Boolean - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN IR_EXTERNAL_DECLARATION_STUB public final override fun hashCode(): kotlin.Int - PROPERTY IR_EXTERNAL_DECLARATION_STUB public final override val name: kotlin.String - FUN IR_EXTERNAL_DECLARATION_STUB public final override fun (): kotlin.String - PROPERTY IR_EXTERNAL_DECLARATION_STUB public final override val ordinal: kotlin.Int - FUN IR_EXTERNAL_DECLARATION_STUB public final override fun (): kotlin.Int - FUN IR_EXTERNAL_DECLARATION_STUB public open override fun toString(): kotlin.String - FUN IR_EXTERNAL_DECLARATION_STUB public final fun valueOf(value: kotlin.String): JEnum - VALUE_PARAMETER value-parameter value: kotlin.String - FUN IR_EXTERNAL_DECLARATION_STUB public final fun values(): kotlin.Array +MODULE_FRAGMENT name: + EXTERNAL_PACKAGE_FRAGMENT fqName: + CLASS IR_EXTERNAL_DECLARATION_STUB ENUM_CLASS name:JEnum modality:FINAL visibility:public flags: + CONSTRUCTOR IR_EXTERNAL_DECLARATION_STUB visibility:public <> () returnType:JEnum flags: + ENUM_ENTRY IR_EXTERNAL_DECLARATION_STUB name:ONE + ENUM_ENTRY IR_EXTERNAL_DECLARATION_STUB name:THREE + ENUM_ENTRY IR_EXTERNAL_DECLARATION_STUB name:TWO + FUN IR_EXTERNAL_DECLARATION_STUB name:clone visibility:protected modality:FINAL <> () returnType:Any flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:finalize visibility:protected/*protected and package*/ modality:FINAL <> () returnType:Unit flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:getDeclaringClass visibility:public modality:FINAL <> () returnType:(java.lang.Class<(JEnum..JEnum?)>..java.lang.Class<(JEnum..JEnum?)>?) flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:compareTo visibility:public modality:FINAL <> (other:JEnum!) returnType:Int flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:other index:0 type:JEnum! flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:equals visibility:public modality:FINAL <> (other:kotlin.Any?) returnType:Boolean flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:other index:0 type:kotlin.Any? flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:hashCode visibility:public modality:FINAL <> () returnType:Int flags: + PROPERTY IR_EXTERNAL_DECLARATION_STUB name:name type:kotlin.String visibility:public modality:FINAL flags:val + FUN IR_EXTERNAL_DECLARATION_STUB name: visibility:public modality:FINAL <> () returnType:String flags: + PROPERTY IR_EXTERNAL_DECLARATION_STUB name:ordinal type:kotlin.Int visibility:public modality:FINAL flags:val + FUN IR_EXTERNAL_DECLARATION_STUB name: visibility:public modality:FINAL <> () returnType:Int flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:toString visibility:public modality:OPEN <> () returnType:String flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:valueOf visibility:public modality:FINAL <> (value:kotlin.String) returnType:JEnum flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:value index:0 type:kotlin.String flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:values visibility:public modality:FINAL <> () returnType:Array flags: diff --git a/compiler/testData/ir/irText/stubs/javaInnerClass.txt b/compiler/testData/ir/irText/stubs/javaInnerClass.txt index 79f68461936..fcec9c55de9 100644 --- a/compiler/testData/ir/irText/stubs/javaInnerClass.txt +++ b/compiler/testData/ir/irText/stubs/javaInnerClass.txt @@ -1,29 +1,30 @@ -FILE /javaInnerClass.kt - CLASS CLASS Test1 - $this: VALUE_PARAMETER this@Test1: Test1 - CONSTRUCTOR public constructor Test1() +FILE fqName: fileName:/javaInnerClass.kt + CLASS CLASS name:Test1 modality:FINAL visibility:public flags: + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:Test1 flags: + CONSTRUCTOR visibility:public <> () returnType:Test1 flags: BLOCK_BODY DELEGATING_CONSTRUCTOR_CALL 'constructor J()' INSTANCE_INITIALIZER_CALL classDescriptor='Test1' - PROPERTY public final val test: J.JInner - FIELD PROPERTY_BACKING_FIELD public final val test: J.JInner + PROPERTY name:test type:J.JInner visibility:public modality:FINAL flags:val + FIELD PROPERTY_BACKING_FIELD name:test type:J.JInner visibility:public EXPRESSION_BODY CALL 'constructor JInner()' type=J.JInner origin=null $this: GET_VAR 'this@Test1: Test1' type=Test1 origin=null - FUN DEFAULT_PROPERTY_ACCESSOR public final fun (): J.JInner - $this: VALUE_PARAMETER this@Test1: Test1 + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:Test1) returnType:JInner flags: + $this: VALUE_PARAMETER name: type:Test1 flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): J.JInner' + RETURN type=kotlin.Nothing from=(): J.JInner' GET_FIELD 'test: J.JInner' type=J.JInner origin=null receiver: GET_VAR 'this@Test1: Test1' type=Test1 origin=null - PROPERTY FAKE_OVERRIDE public final override var x: kotlin.Int - FIELD FAKE_OVERRIDE public final override var x: kotlin.Int - FUN FAKE_OVERRIDE public open override fun bar(): kotlin.Unit - $this: VALUE_PARAMETER this@J: J - FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - $this: VALUE_PARAMETER this@Any: Any - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - $this: VALUE_PARAMETER this@Any: Any - FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - $this: VALUE_PARAMETER this@Any: Any + PROPERTY FAKE_OVERRIDE name:x type:kotlin.Int visibility:public modality:FINAL flags:var + FIELD FAKE_OVERRIDE name:x type:kotlin.Int visibility:public + FUN FAKE_OVERRIDE name:bar visibility:public modality:OPEN <> ($this:J) returnType:Unit flags: + $this: VALUE_PARAMETER name: type:J flags: + FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + $this: VALUE_PARAMETER name: type:kotlin.Any flags: + diff --git a/compiler/testData/ir/irText/stubs/javaInnerClass__testmodule.txt b/compiler/testData/ir/irText/stubs/javaInnerClass__testmodule.txt index 60c46a168ac..335c002b7ac 100644 --- a/compiler/testData/ir/irText/stubs/javaInnerClass__testmodule.txt +++ b/compiler/testData/ir/irText/stubs/javaInnerClass__testmodule.txt @@ -1,20 +1,20 @@ -MODULE_FRAGMENT - EXTERNAL_PACKAGE_FRAGMENT - CLASS IR_EXTERNAL_DECLARATION_STUB CLASS J - CONSTRUCTOR IR_EXTERNAL_DECLARATION_STUB public constructor J() - PROPERTY IR_EXTERNAL_DECLARATION_STUB public final var x: kotlin.Int - FIELD IR_EXTERNAL_DECLARATION_STUB public final var x: kotlin.Int - FUN IR_EXTERNAL_DECLARATION_STUB public open fun bar(): kotlin.Unit - CLASS IR_EXTERNAL_DECLARATION_STUB CLASS JInner - CONSTRUCTOR IR_EXTERNAL_DECLARATION_STUB public constructor JInner() - PROPERTY IR_EXTERNAL_DECLARATION_STUB public final var z: kotlin.Int - FIELD IR_EXTERNAL_DECLARATION_STUB public final var z: kotlin.Int - FUN IR_EXTERNAL_DECLARATION_STUB public open fun foo(): kotlin.Unit - FUN IR_EXTERNAL_DECLARATION_STUB public open override fun equals(other: kotlin.Any?): kotlin.Boolean - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN IR_EXTERNAL_DECLARATION_STUB public open override fun hashCode(): kotlin.Int - FUN IR_EXTERNAL_DECLARATION_STUB public open override fun toString(): kotlin.String - FUN IR_EXTERNAL_DECLARATION_STUB public open override fun equals(other: kotlin.Any?): kotlin.Boolean - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN IR_EXTERNAL_DECLARATION_STUB public open override fun hashCode(): kotlin.Int - FUN IR_EXTERNAL_DECLARATION_STUB public open override fun toString(): kotlin.String +MODULE_FRAGMENT name: + EXTERNAL_PACKAGE_FRAGMENT fqName: + CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:J modality:OPEN visibility:public flags: + CONSTRUCTOR IR_EXTERNAL_DECLARATION_STUB visibility:public <> () returnType:J flags: + PROPERTY IR_EXTERNAL_DECLARATION_STUB name:x type:kotlin.Int visibility:public modality:FINAL flags:var + FIELD IR_EXTERNAL_DECLARATION_STUB name:x type:kotlin.Int visibility:public + FUN IR_EXTERNAL_DECLARATION_STUB name:bar visibility:public modality:OPEN <> () returnType:Unit flags: + CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:JInner modality:OPEN visibility:public flags: + CONSTRUCTOR IR_EXTERNAL_DECLARATION_STUB visibility:public <> () returnType:J.JInner flags: + PROPERTY IR_EXTERNAL_DECLARATION_STUB name:z type:kotlin.Int visibility:public modality:FINAL flags:var + FIELD IR_EXTERNAL_DECLARATION_STUB name:z type:kotlin.Int visibility:public + FUN IR_EXTERNAL_DECLARATION_STUB name:foo visibility:public modality:OPEN <> () returnType:Unit flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:equals visibility:public modality:OPEN <> (other:kotlin.Any?) returnType:Boolean flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:other index:0 type:kotlin.Any? flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:hashCode visibility:public modality:OPEN <> () returnType:Int flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:toString visibility:public modality:OPEN <> () returnType:String flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:equals visibility:public modality:OPEN <> (other:kotlin.Any?) returnType:Boolean flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:other index:0 type:kotlin.Any? flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:hashCode visibility:public modality:OPEN <> () returnType:Int flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:toString visibility:public modality:OPEN <> () returnType:String flags: diff --git a/compiler/testData/ir/irText/stubs/javaNestedClass.txt b/compiler/testData/ir/irText/stubs/javaNestedClass.txt index bcc32027162..ffec7ea5ca4 100644 --- a/compiler/testData/ir/irText/stubs/javaNestedClass.txt +++ b/compiler/testData/ir/irText/stubs/javaNestedClass.txt @@ -1,7 +1,8 @@ -FILE /javaNestedClass.kt - FUN public fun test(jj: J.JJ): kotlin.Unit - VALUE_PARAMETER value-parameter jj: J.JJ +FILE fqName: fileName:/javaNestedClass.kt + FUN name:test visibility:public modality:FINAL <> (jj:J.JJ) returnType:Unit flags: + VALUE_PARAMETER name:jj index:0 type:J.JJ flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='test(J.JJ): Unit' + RETURN type=kotlin.Nothing from=test(J.JJ): Unit' CALL 'foo(): Unit' type=kotlin.Unit origin=null $this: GET_VAR 'value-parameter jj: J.JJ' type=J.JJ origin=null + diff --git a/compiler/testData/ir/irText/stubs/javaNestedClass__testmodule.txt b/compiler/testData/ir/irText/stubs/javaNestedClass__testmodule.txt index e9f96c3baa9..b55faef77d2 100644 --- a/compiler/testData/ir/irText/stubs/javaNestedClass__testmodule.txt +++ b/compiler/testData/ir/irText/stubs/javaNestedClass__testmodule.txt @@ -1,16 +1,16 @@ -MODULE_FRAGMENT - EXTERNAL_PACKAGE_FRAGMENT - CLASS IR_EXTERNAL_DECLARATION_STUB CLASS J - CONSTRUCTOR IR_EXTERNAL_DECLARATION_STUB public constructor J() - CLASS IR_EXTERNAL_DECLARATION_STUB CLASS JJ - CONSTRUCTOR IR_EXTERNAL_DECLARATION_STUB public constructor JJ() - FUN IR_EXTERNAL_DECLARATION_STUB public open fun foo(): kotlin.Unit - FUN IR_EXTERNAL_DECLARATION_STUB public open override fun equals(other: kotlin.Any?): kotlin.Boolean - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN IR_EXTERNAL_DECLARATION_STUB public open override fun hashCode(): kotlin.Int - FUN IR_EXTERNAL_DECLARATION_STUB public open override fun toString(): kotlin.String - FUN IR_EXTERNAL_DECLARATION_STUB public open fun bar(): kotlin.Unit - FUN IR_EXTERNAL_DECLARATION_STUB public open override fun equals(other: kotlin.Any?): kotlin.Boolean - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN IR_EXTERNAL_DECLARATION_STUB public open override fun hashCode(): kotlin.Int - FUN IR_EXTERNAL_DECLARATION_STUB public open override fun toString(): kotlin.String +MODULE_FRAGMENT name: + EXTERNAL_PACKAGE_FRAGMENT fqName: + CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:J modality:OPEN visibility:public flags: + CONSTRUCTOR IR_EXTERNAL_DECLARATION_STUB visibility:public <> () returnType:J flags: + CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:JJ modality:OPEN visibility:public flags: + CONSTRUCTOR IR_EXTERNAL_DECLARATION_STUB visibility:public <> () returnType:J.JJ flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:foo visibility:public modality:OPEN <> () returnType:Unit flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:equals visibility:public modality:OPEN <> (other:kotlin.Any?) returnType:Boolean flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:other index:0 type:kotlin.Any? flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:hashCode visibility:public modality:OPEN <> () returnType:Int flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:toString visibility:public modality:OPEN <> () returnType:String flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:bar visibility:public modality:OPEN <> () returnType:Unit flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:equals visibility:public modality:OPEN <> (other:kotlin.Any?) returnType:Boolean flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:other index:0 type:kotlin.Any? flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:hashCode visibility:public modality:OPEN <> () returnType:Int flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:toString visibility:public modality:OPEN <> () returnType:String flags: diff --git a/compiler/testData/ir/irText/stubs/kotlinInnerClass.txt b/compiler/testData/ir/irText/stubs/kotlinInnerClass.txt index c875167ad20..ff66c00edca 100644 --- a/compiler/testData/ir/irText/stubs/kotlinInnerClass.txt +++ b/compiler/testData/ir/irText/stubs/kotlinInnerClass.txt @@ -1,7 +1,8 @@ -FILE /kotlinInnerClass.kt - FUN public fun test(inner: Outer.Inner): kotlin.Unit - VALUE_PARAMETER value-parameter inner: Outer.Inner +FILE fqName: fileName:/kotlinInnerClass.kt + FUN name:test visibility:public modality:FINAL <> (inner:Outer.Inner) returnType:Unit flags: + VALUE_PARAMETER name:inner index:0 type:Outer.Inner flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='test(Outer.Inner): Unit' + RETURN type=kotlin.Nothing from=test(Outer.Inner): Unit' CALL 'foo(): Unit' type=kotlin.Unit origin=null $this: GET_VAR 'value-parameter inner: Outer.Inner' type=Outer.Inner origin=null + diff --git a/compiler/testData/ir/irText/stubs/kotlinInnerClass__builtinsmodule.txt b/compiler/testData/ir/irText/stubs/kotlinInnerClass__builtinsmodule.txt index 604017c4955..10f7a40b2fe 100644 --- a/compiler/testData/ir/irText/stubs/kotlinInnerClass__builtinsmodule.txt +++ b/compiler/testData/ir/irText/stubs/kotlinInnerClass__builtinsmodule.txt @@ -1,8 +1,8 @@ -MODULE_FRAGMENT - EXTERNAL_PACKAGE_FRAGMENT kotlin - CLASS IR_EXTERNAL_DECLARATION_STUB CLASS Any - CONSTRUCTOR IR_EXTERNAL_DECLARATION_STUB public constructor Any() - FUN IR_EXTERNAL_DECLARATION_STUB public open fun hashCode(): kotlin.Int - FUN IR_EXTERNAL_DECLARATION_STUB public open fun toString(): kotlin.String - FUN IR_EXTERNAL_DECLARATION_STUB public open operator fun equals(other: kotlin.Any?): kotlin.Boolean - VALUE_PARAMETER value-parameter other: kotlin.Any? +MODULE_FRAGMENT name: + EXTERNAL_PACKAGE_FRAGMENT fqName:kotlin + CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Any modality:OPEN visibility:public flags: + CONSTRUCTOR IR_EXTERNAL_DECLARATION_STUB visibility:public <> () returnType:kotlin.Any flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:hashCode visibility:public modality:OPEN <> () returnType:Int flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:toString visibility:public modality:OPEN <> () returnType:String flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:equals visibility:public modality:OPEN <> (other:kotlin.Any?) returnType:Boolean flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:other index:0 type:kotlin.Any? flags: diff --git a/compiler/testData/ir/irText/stubs/simple.txt b/compiler/testData/ir/irText/stubs/simple.txt index 3de7717b528..c28ffb42bd3 100644 --- a/compiler/testData/ir/irText/stubs/simple.txt +++ b/compiler/testData/ir/irText/stubs/simple.txt @@ -1,12 +1,12 @@ -FILE /simple.kt - PROPERTY public val test: kotlin.Int = 4 - FIELD PROPERTY_BACKING_FIELD public val test: kotlin.Int = 4 +FILE fqName: fileName:/simple.kt + PROPERTY name:test type:kotlin.Int visibility:public modality:FINAL flags:val + FIELD PROPERTY_BACKING_FIELD name:test type:kotlin.Int visibility:public EXPRESSION_BODY CALL 'plus(Int): Int' type=kotlin.Int origin=PLUS - $this: CONST Int type=kotlin.Int value='2' - other: CONST Int type=kotlin.Int value='2' - FUN DEFAULT_PROPERTY_ACCESSOR public fun (): kotlin.Int + $this: CONST Int type=kotlin.Int value=2 + other: CONST Int type=kotlin.Int value=2 + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:Int flags: BLOCK_BODY - RETURN type=kotlin.Nothing from='(): Int' + RETURN type=kotlin.Nothing from=(): Int' GET_FIELD 'test: Int' type=kotlin.Int origin=null diff --git a/compiler/testData/ir/irText/stubs/simple__builtinsmodule.txt b/compiler/testData/ir/irText/stubs/simple__builtinsmodule.txt index fb04f45ce57..ab56af17336 100644 --- a/compiler/testData/ir/irText/stubs/simple__builtinsmodule.txt +++ b/compiler/testData/ir/irText/stubs/simple__builtinsmodule.txt @@ -1,134 +1,134 @@ -MODULE_FRAGMENT - EXTERNAL_PACKAGE_FRAGMENT kotlin - CLASS IR_EXTERNAL_DECLARATION_STUB CLASS Int - CONSTRUCTOR IR_EXTERNAL_DECLARATION_STUB private constructor Int() - FUN IR_EXTERNAL_DECLARATION_STUB @kotlin.Deprecated public final operator fun mod(other: kotlin.Byte): kotlin.Int - VALUE_PARAMETER value-parameter other: kotlin.Byte - FUN IR_EXTERNAL_DECLARATION_STUB @kotlin.Deprecated public final operator fun mod(other: kotlin.Double): kotlin.Double - VALUE_PARAMETER value-parameter other: kotlin.Double - FUN IR_EXTERNAL_DECLARATION_STUB @kotlin.Deprecated public final operator fun mod(other: kotlin.Float): kotlin.Float - VALUE_PARAMETER value-parameter other: kotlin.Float - FUN IR_EXTERNAL_DECLARATION_STUB @kotlin.Deprecated public final operator fun mod(other: kotlin.Int): kotlin.Int - VALUE_PARAMETER value-parameter other: kotlin.Int - FUN IR_EXTERNAL_DECLARATION_STUB @kotlin.Deprecated public final operator fun mod(other: kotlin.Long): kotlin.Long - VALUE_PARAMETER value-parameter other: kotlin.Long - FUN IR_EXTERNAL_DECLARATION_STUB @kotlin.Deprecated public final operator fun mod(other: kotlin.Short): kotlin.Int - VALUE_PARAMETER value-parameter other: kotlin.Short - FUN IR_EXTERNAL_DECLARATION_STUB @kotlin.SinceKotlin public final operator fun rem(other: kotlin.Byte): kotlin.Int - VALUE_PARAMETER value-parameter other: kotlin.Byte - FUN IR_EXTERNAL_DECLARATION_STUB @kotlin.SinceKotlin public final operator fun rem(other: kotlin.Double): kotlin.Double - VALUE_PARAMETER value-parameter other: kotlin.Double - FUN IR_EXTERNAL_DECLARATION_STUB @kotlin.SinceKotlin public final operator fun rem(other: kotlin.Float): kotlin.Float - VALUE_PARAMETER value-parameter other: kotlin.Float - FUN IR_EXTERNAL_DECLARATION_STUB @kotlin.SinceKotlin public final operator fun rem(other: kotlin.Int): kotlin.Int - VALUE_PARAMETER value-parameter other: kotlin.Int - FUN IR_EXTERNAL_DECLARATION_STUB @kotlin.SinceKotlin public final operator fun rem(other: kotlin.Long): kotlin.Long - VALUE_PARAMETER value-parameter other: kotlin.Long - FUN IR_EXTERNAL_DECLARATION_STUB @kotlin.SinceKotlin public final operator fun rem(other: kotlin.Short): kotlin.Int - VALUE_PARAMETER value-parameter other: kotlin.Short - CLASS IR_EXTERNAL_DECLARATION_STUB OBJECT companion object of Int - CONSTRUCTOR IR_EXTERNAL_DECLARATION_STUB private constructor Companion() - PROPERTY IR_EXTERNAL_DECLARATION_STUB public const final val MAX_VALUE: kotlin.Int = 2147483647 - FUN IR_EXTERNAL_DECLARATION_STUB public final fun (): kotlin.Int - PROPERTY IR_EXTERNAL_DECLARATION_STUB public const final val MIN_VALUE: kotlin.Int = -2147483648 - FUN IR_EXTERNAL_DECLARATION_STUB public final fun (): kotlin.Int - FUN IR_EXTERNAL_DECLARATION_STUB public open override fun equals(other: kotlin.Any?): kotlin.Boolean - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN IR_EXTERNAL_DECLARATION_STUB public open override fun hashCode(): kotlin.Int - FUN IR_EXTERNAL_DECLARATION_STUB public open override fun toString(): kotlin.String - FUN IR_EXTERNAL_DECLARATION_STUB public final fun inv(): kotlin.Int - FUN IR_EXTERNAL_DECLARATION_STUB public final infix fun and(other: kotlin.Int): kotlin.Int - VALUE_PARAMETER value-parameter other: kotlin.Int - FUN IR_EXTERNAL_DECLARATION_STUB public final infix fun or(other: kotlin.Int): kotlin.Int - VALUE_PARAMETER value-parameter other: kotlin.Int - FUN IR_EXTERNAL_DECLARATION_STUB public final infix fun shl(bitCount: kotlin.Int): kotlin.Int - VALUE_PARAMETER value-parameter bitCount: kotlin.Int - FUN IR_EXTERNAL_DECLARATION_STUB public final infix fun shr(bitCount: kotlin.Int): kotlin.Int - VALUE_PARAMETER value-parameter bitCount: kotlin.Int - FUN IR_EXTERNAL_DECLARATION_STUB public final infix fun ushr(bitCount: kotlin.Int): kotlin.Int - VALUE_PARAMETER value-parameter bitCount: kotlin.Int - FUN IR_EXTERNAL_DECLARATION_STUB public final infix fun xor(other: kotlin.Int): kotlin.Int - VALUE_PARAMETER value-parameter other: kotlin.Int - FUN IR_EXTERNAL_DECLARATION_STUB public final operator fun compareTo(other: kotlin.Byte): kotlin.Int - VALUE_PARAMETER value-parameter other: kotlin.Byte - FUN IR_EXTERNAL_DECLARATION_STUB public final operator fun compareTo(other: kotlin.Double): kotlin.Int - VALUE_PARAMETER value-parameter other: kotlin.Double - FUN IR_EXTERNAL_DECLARATION_STUB public final operator fun compareTo(other: kotlin.Float): kotlin.Int - VALUE_PARAMETER value-parameter other: kotlin.Float - FUN IR_EXTERNAL_DECLARATION_STUB public final operator fun compareTo(other: kotlin.Long): kotlin.Int - VALUE_PARAMETER value-parameter other: kotlin.Long - FUN IR_EXTERNAL_DECLARATION_STUB public final operator fun compareTo(other: kotlin.Short): kotlin.Int - VALUE_PARAMETER value-parameter other: kotlin.Short - FUN IR_EXTERNAL_DECLARATION_STUB public final operator fun dec(): kotlin.Int - FUN IR_EXTERNAL_DECLARATION_STUB public final operator fun div(other: kotlin.Byte): kotlin.Int - VALUE_PARAMETER value-parameter other: kotlin.Byte - FUN IR_EXTERNAL_DECLARATION_STUB public final operator fun div(other: kotlin.Double): kotlin.Double - VALUE_PARAMETER value-parameter other: kotlin.Double - FUN IR_EXTERNAL_DECLARATION_STUB public final operator fun div(other: kotlin.Float): kotlin.Float - VALUE_PARAMETER value-parameter other: kotlin.Float - FUN IR_EXTERNAL_DECLARATION_STUB public final operator fun div(other: kotlin.Int): kotlin.Int - VALUE_PARAMETER value-parameter other: kotlin.Int - FUN IR_EXTERNAL_DECLARATION_STUB public final operator fun div(other: kotlin.Long): kotlin.Long - VALUE_PARAMETER value-parameter other: kotlin.Long - FUN IR_EXTERNAL_DECLARATION_STUB public final operator fun div(other: kotlin.Short): kotlin.Int - VALUE_PARAMETER value-parameter other: kotlin.Short - FUN IR_EXTERNAL_DECLARATION_STUB public final operator fun inc(): kotlin.Int - FUN IR_EXTERNAL_DECLARATION_STUB public final operator fun minus(other: kotlin.Byte): kotlin.Int - VALUE_PARAMETER value-parameter other: kotlin.Byte - FUN IR_EXTERNAL_DECLARATION_STUB public final operator fun minus(other: kotlin.Double): kotlin.Double - VALUE_PARAMETER value-parameter other: kotlin.Double - FUN IR_EXTERNAL_DECLARATION_STUB public final operator fun minus(other: kotlin.Float): kotlin.Float - VALUE_PARAMETER value-parameter other: kotlin.Float - FUN IR_EXTERNAL_DECLARATION_STUB public final operator fun minus(other: kotlin.Int): kotlin.Int - VALUE_PARAMETER value-parameter other: kotlin.Int - FUN IR_EXTERNAL_DECLARATION_STUB public final operator fun minus(other: kotlin.Long): kotlin.Long - VALUE_PARAMETER value-parameter other: kotlin.Long - FUN IR_EXTERNAL_DECLARATION_STUB public final operator fun minus(other: kotlin.Short): kotlin.Int - VALUE_PARAMETER value-parameter other: kotlin.Short - FUN IR_EXTERNAL_DECLARATION_STUB public final operator fun plus(other: kotlin.Byte): kotlin.Int - VALUE_PARAMETER value-parameter other: kotlin.Byte - FUN IR_EXTERNAL_DECLARATION_STUB public final operator fun plus(other: kotlin.Double): kotlin.Double - VALUE_PARAMETER value-parameter other: kotlin.Double - FUN IR_EXTERNAL_DECLARATION_STUB public final operator fun plus(other: kotlin.Float): kotlin.Float - VALUE_PARAMETER value-parameter other: kotlin.Float - FUN IR_EXTERNAL_DECLARATION_STUB public final operator fun plus(other: kotlin.Int): kotlin.Int - VALUE_PARAMETER value-parameter other: kotlin.Int - FUN IR_EXTERNAL_DECLARATION_STUB public final operator fun plus(other: kotlin.Long): kotlin.Long - VALUE_PARAMETER value-parameter other: kotlin.Long - FUN IR_EXTERNAL_DECLARATION_STUB public final operator fun plus(other: kotlin.Short): kotlin.Int - VALUE_PARAMETER value-parameter other: kotlin.Short - FUN IR_EXTERNAL_DECLARATION_STUB public final operator fun rangeTo(other: kotlin.Byte): kotlin.ranges.IntRange - VALUE_PARAMETER value-parameter other: kotlin.Byte - FUN IR_EXTERNAL_DECLARATION_STUB public final operator fun rangeTo(other: kotlin.Int): kotlin.ranges.IntRange - VALUE_PARAMETER value-parameter other: kotlin.Int - FUN IR_EXTERNAL_DECLARATION_STUB public final operator fun rangeTo(other: kotlin.Long): kotlin.ranges.LongRange - VALUE_PARAMETER value-parameter other: kotlin.Long - FUN IR_EXTERNAL_DECLARATION_STUB public final operator fun rangeTo(other: kotlin.Short): kotlin.ranges.IntRange - VALUE_PARAMETER value-parameter other: kotlin.Short - FUN IR_EXTERNAL_DECLARATION_STUB public final operator fun times(other: kotlin.Byte): kotlin.Int - VALUE_PARAMETER value-parameter other: kotlin.Byte - FUN IR_EXTERNAL_DECLARATION_STUB public final operator fun times(other: kotlin.Double): kotlin.Double - VALUE_PARAMETER value-parameter other: kotlin.Double - FUN IR_EXTERNAL_DECLARATION_STUB public final operator fun times(other: kotlin.Float): kotlin.Float - VALUE_PARAMETER value-parameter other: kotlin.Float - FUN IR_EXTERNAL_DECLARATION_STUB public final operator fun times(other: kotlin.Int): kotlin.Int - VALUE_PARAMETER value-parameter other: kotlin.Int - FUN IR_EXTERNAL_DECLARATION_STUB public final operator fun times(other: kotlin.Long): kotlin.Long - VALUE_PARAMETER value-parameter other: kotlin.Long - FUN IR_EXTERNAL_DECLARATION_STUB public final operator fun times(other: kotlin.Short): kotlin.Int - VALUE_PARAMETER value-parameter other: kotlin.Short - FUN IR_EXTERNAL_DECLARATION_STUB public final operator fun unaryMinus(): kotlin.Int - FUN IR_EXTERNAL_DECLARATION_STUB public final operator fun unaryPlus(): kotlin.Int - FUN IR_EXTERNAL_DECLARATION_STUB public open override fun compareTo(other: kotlin.Int): kotlin.Int - VALUE_PARAMETER value-parameter other: kotlin.Int - FUN IR_EXTERNAL_DECLARATION_STUB public open override fun toByte(): kotlin.Byte - FUN IR_EXTERNAL_DECLARATION_STUB public open override fun toChar(): kotlin.Char - FUN IR_EXTERNAL_DECLARATION_STUB public open override fun toDouble(): kotlin.Double - FUN IR_EXTERNAL_DECLARATION_STUB public open override fun toFloat(): kotlin.Float - FUN IR_EXTERNAL_DECLARATION_STUB public open override fun toInt(): kotlin.Int - FUN IR_EXTERNAL_DECLARATION_STUB public open override fun toLong(): kotlin.Long - FUN IR_EXTERNAL_DECLARATION_STUB public open override fun toShort(): kotlin.Short - FUN IR_EXTERNAL_DECLARATION_STUB public open override fun equals(other: kotlin.Any?): kotlin.Boolean - VALUE_PARAMETER value-parameter other: kotlin.Any? - FUN IR_EXTERNAL_DECLARATION_STUB public open override fun hashCode(): kotlin.Int - FUN IR_EXTERNAL_DECLARATION_STUB public open override fun toString(): kotlin.String +MODULE_FRAGMENT name: + EXTERNAL_PACKAGE_FRAGMENT fqName:kotlin + CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:Int modality:FINAL visibility:public flags: + CONSTRUCTOR IR_EXTERNAL_DECLARATION_STUB visibility:private <> () returnType:kotlin.Int flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:mod visibility:public modality:FINAL <> (other:kotlin.Byte) returnType:Int flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:other index:0 type:kotlin.Byte flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:mod visibility:public modality:FINAL <> (other:kotlin.Double) returnType:Double flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:other index:0 type:kotlin.Double flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:mod visibility:public modality:FINAL <> (other:kotlin.Float) returnType:Float flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:other index:0 type:kotlin.Float flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:mod visibility:public modality:FINAL <> (other:kotlin.Int) returnType:Int flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:other index:0 type:kotlin.Int flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:mod visibility:public modality:FINAL <> (other:kotlin.Long) returnType:Long flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:other index:0 type:kotlin.Long flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:mod visibility:public modality:FINAL <> (other:kotlin.Short) returnType:Int flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:other index:0 type:kotlin.Short flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:rem visibility:public modality:FINAL <> (other:kotlin.Byte) returnType:Int flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:other index:0 type:kotlin.Byte flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:rem visibility:public modality:FINAL <> (other:kotlin.Double) returnType:Double flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:other index:0 type:kotlin.Double flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:rem visibility:public modality:FINAL <> (other:kotlin.Float) returnType:Float flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:other index:0 type:kotlin.Float flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:rem visibility:public modality:FINAL <> (other:kotlin.Int) returnType:Int flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:other index:0 type:kotlin.Int flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:rem visibility:public modality:FINAL <> (other:kotlin.Long) returnType:Long flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:other index:0 type:kotlin.Long flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:rem visibility:public modality:FINAL <> (other:kotlin.Short) returnType:Int flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:other index:0 type:kotlin.Short flags: + CLASS IR_EXTERNAL_DECLARATION_STUB OBJECT name:Companion modality:FINAL visibility:public flags:companion + CONSTRUCTOR IR_EXTERNAL_DECLARATION_STUB visibility:private <> () returnType:kotlin.Int.Companion flags: + PROPERTY IR_EXTERNAL_DECLARATION_STUB name:MAX_VALUE type:kotlin.Int visibility:public modality:FINAL flags:constmval + FUN IR_EXTERNAL_DECLARATION_STUB name: visibility:public modality:FINAL <> () returnType:Int flags: + PROPERTY IR_EXTERNAL_DECLARATION_STUB name:MIN_VALUE type:kotlin.Int visibility:public modality:FINAL flags:constmval + FUN IR_EXTERNAL_DECLARATION_STUB name: visibility:public modality:FINAL <> () returnType:Int flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:equals visibility:public modality:OPEN <> (other:kotlin.Any?) returnType:Boolean flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:other index:0 type:kotlin.Any? flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:hashCode visibility:public modality:OPEN <> () returnType:Int flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:toString visibility:public modality:OPEN <> () returnType:String flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:inv visibility:public modality:FINAL <> () returnType:Int flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:and visibility:public modality:FINAL <> (other:kotlin.Int) returnType:Int flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:other index:0 type:kotlin.Int flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:or visibility:public modality:FINAL <> (other:kotlin.Int) returnType:Int flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:other index:0 type:kotlin.Int flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:shl visibility:public modality:FINAL <> (bitCount:kotlin.Int) returnType:Int flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:bitCount index:0 type:kotlin.Int flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:shr visibility:public modality:FINAL <> (bitCount:kotlin.Int) returnType:Int flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:bitCount index:0 type:kotlin.Int flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:ushr visibility:public modality:FINAL <> (bitCount:kotlin.Int) returnType:Int flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:bitCount index:0 type:kotlin.Int flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:xor visibility:public modality:FINAL <> (other:kotlin.Int) returnType:Int flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:other index:0 type:kotlin.Int flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:compareTo visibility:public modality:FINAL <> (other:kotlin.Byte) returnType:Int flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:other index:0 type:kotlin.Byte flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:compareTo visibility:public modality:FINAL <> (other:kotlin.Double) returnType:Int flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:other index:0 type:kotlin.Double flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:compareTo visibility:public modality:FINAL <> (other:kotlin.Float) returnType:Int flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:other index:0 type:kotlin.Float flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:compareTo visibility:public modality:FINAL <> (other:kotlin.Long) returnType:Int flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:other index:0 type:kotlin.Long flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:compareTo visibility:public modality:FINAL <> (other:kotlin.Short) returnType:Int flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:other index:0 type:kotlin.Short flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:dec visibility:public modality:FINAL <> () returnType:Int flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:div visibility:public modality:FINAL <> (other:kotlin.Byte) returnType:Int flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:other index:0 type:kotlin.Byte flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:div visibility:public modality:FINAL <> (other:kotlin.Double) returnType:Double flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:other index:0 type:kotlin.Double flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:div visibility:public modality:FINAL <> (other:kotlin.Float) returnType:Float flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:other index:0 type:kotlin.Float flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:div visibility:public modality:FINAL <> (other:kotlin.Int) returnType:Int flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:other index:0 type:kotlin.Int flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:div visibility:public modality:FINAL <> (other:kotlin.Long) returnType:Long flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:other index:0 type:kotlin.Long flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:div visibility:public modality:FINAL <> (other:kotlin.Short) returnType:Int flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:other index:0 type:kotlin.Short flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:inc visibility:public modality:FINAL <> () returnType:Int flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:minus visibility:public modality:FINAL <> (other:kotlin.Byte) returnType:Int flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:other index:0 type:kotlin.Byte flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:minus visibility:public modality:FINAL <> (other:kotlin.Double) returnType:Double flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:other index:0 type:kotlin.Double flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:minus visibility:public modality:FINAL <> (other:kotlin.Float) returnType:Float flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:other index:0 type:kotlin.Float flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:minus visibility:public modality:FINAL <> (other:kotlin.Int) returnType:Int flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:other index:0 type:kotlin.Int flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:minus visibility:public modality:FINAL <> (other:kotlin.Long) returnType:Long flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:other index:0 type:kotlin.Long flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:minus visibility:public modality:FINAL <> (other:kotlin.Short) returnType:Int flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:other index:0 type:kotlin.Short flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:plus visibility:public modality:FINAL <> (other:kotlin.Byte) returnType:Int flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:other index:0 type:kotlin.Byte flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:plus visibility:public modality:FINAL <> (other:kotlin.Double) returnType:Double flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:other index:0 type:kotlin.Double flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:plus visibility:public modality:FINAL <> (other:kotlin.Float) returnType:Float flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:other index:0 type:kotlin.Float flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:plus visibility:public modality:FINAL <> (other:kotlin.Int) returnType:Int flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:other index:0 type:kotlin.Int flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:plus visibility:public modality:FINAL <> (other:kotlin.Long) returnType:Long flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:other index:0 type:kotlin.Long flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:plus visibility:public modality:FINAL <> (other:kotlin.Short) returnType:Int flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:other index:0 type:kotlin.Short flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:rangeTo visibility:public modality:FINAL <> (other:kotlin.Byte) returnType:IntRange flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:other index:0 type:kotlin.Byte flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:rangeTo visibility:public modality:FINAL <> (other:kotlin.Int) returnType:IntRange flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:other index:0 type:kotlin.Int flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:rangeTo visibility:public modality:FINAL <> (other:kotlin.Long) returnType:LongRange flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:other index:0 type:kotlin.Long flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:rangeTo visibility:public modality:FINAL <> (other:kotlin.Short) returnType:IntRange flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:other index:0 type:kotlin.Short flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:times visibility:public modality:FINAL <> (other:kotlin.Byte) returnType:Int flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:other index:0 type:kotlin.Byte flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:times visibility:public modality:FINAL <> (other:kotlin.Double) returnType:Double flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:other index:0 type:kotlin.Double flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:times visibility:public modality:FINAL <> (other:kotlin.Float) returnType:Float flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:other index:0 type:kotlin.Float flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:times visibility:public modality:FINAL <> (other:kotlin.Int) returnType:Int flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:other index:0 type:kotlin.Int flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:times visibility:public modality:FINAL <> (other:kotlin.Long) returnType:Long flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:other index:0 type:kotlin.Long flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:times visibility:public modality:FINAL <> (other:kotlin.Short) returnType:Int flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:other index:0 type:kotlin.Short flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:unaryMinus visibility:public modality:FINAL <> () returnType:Int flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:unaryPlus visibility:public modality:FINAL <> () returnType:Int flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:compareTo visibility:public modality:OPEN <> (other:kotlin.Int) returnType:Int flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:other index:0 type:kotlin.Int flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:toByte visibility:public modality:OPEN <> () returnType:Byte flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:toChar visibility:public modality:OPEN <> () returnType:Char flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:toDouble visibility:public modality:OPEN <> () returnType:Double flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:toFloat visibility:public modality:OPEN <> () returnType:Float flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:toInt visibility:public modality:OPEN <> () returnType:Int flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:toLong visibility:public modality:OPEN <> () returnType:Long flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:toShort visibility:public modality:OPEN <> () returnType:Short flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:equals visibility:public modality:OPEN <> (other:kotlin.Any?) returnType:Boolean flags: + VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:other index:0 type:kotlin.Any? flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:hashCode visibility:public modality:OPEN <> () returnType:Int flags: + FUN IR_EXTERNAL_DECLARATION_STUB name:toString visibility:public modality:OPEN <> () returnType:String flags: diff --git a/compiler/testData/ir/sourceRanges/augmentedAssignmentWithExpression.txt b/compiler/testData/ir/sourceRanges/augmentedAssignmentWithExpression.txt index 8d50e13e78a..00e039974d5 100644 --- a/compiler/testData/ir/sourceRanges/augmentedAssignmentWithExpression.txt +++ b/compiler/testData/ir/sourceRanges/augmentedAssignmentWithExpression.txt @@ -1,46 +1,46 @@ -@0:0..23:0 FILE /augmentedAssignmentWithExpression.kt - @2:0..8:1 CLASS CLASS Host - @2:0..8:1 VALUE_PARAMETER this@Host: Host - @2:0..8:1 CONSTRUCTOR public constructor Host() +@0:0..23:0 FILE fqName:test fileName:/augmentedAssignmentWithExpression.kt + @2:0..8:1 CLASS CLASS name:Host modality:FINAL visibility:public flags: + @2:0..8:1 VALUE_PARAMETER INSTANCE_RECEIVER name: type:test.Host flags: + @2:0..8:1 CONSTRUCTOR visibility:public <> () returnType:test.Host flags: @2:0..8:1 BLOCK_BODY @2:0..8:1 DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' @2:0..8:1 INSTANCE_INITIALIZER_CALL classDescriptor='Host' - @3:4..38 FUN public final operator fun plusAssign(x: kotlin.Int): kotlin.Unit - @3:4..38 VALUE_PARAMETER this@Host: Host - @3:28..34 VALUE_PARAMETER value-parameter x: kotlin.Int + @3:4..38 FUN name:plusAssign visibility:public modality:FINAL <> ($this:test.Host, x:kotlin.Int) returnType:Unit flags: + @3:4..38 VALUE_PARAMETER name: type:test.Host flags: + @3:28..34 VALUE_PARAMETER name:x index:0 type:kotlin.Int flags: @3:36..38 BLOCK_BODY - @5:4..7:5 FUN public final fun test1(): kotlin.Unit - @5:4..7:5 VALUE_PARAMETER this@Host: Host + @5:4..7:5 FUN name:test1 visibility:public modality:FINAL <> ($this:test.Host) returnType:Unit flags: + @5:4..7:5 VALUE_PARAMETER name: type:test.Host flags: @5:16..7:5 BLOCK_BODY @6:8..17 CALL 'plusAssign(Int): Unit' type=kotlin.Unit origin=PLUSEQ @6:8..12 GET_VAR 'this@Host: Host' type=test.Host origin=PLUSEQ - @6:16..17 CONST Int type=kotlin.Int value='1' - @2:0..8:1 FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - @2:0..8:1 VALUE_PARAMETER this@Any: Any - @-1:-1..-1 VALUE_PARAMETER value-parameter other: kotlin.Any? - @2:0..8:1 FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - @2:0..8:1 VALUE_PARAMETER this@Any: Any - @2:0..8:1 FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - @2:0..8:1 VALUE_PARAMETER this@Any: Any - @10:0..18 FUN public fun foo(): test.Host + @6:16..17 CONST Int type=kotlin.Int value=1 + @2:0..8:1 FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + @2:0..8:1 VALUE_PARAMETER name: type:kotlin.Any flags: + @-1:-1..-1 VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + @2:0..8:1 FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + @2:0..8:1 VALUE_PARAMETER name: type:kotlin.Any flags: + @2:0..8:1 FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + @2:0..8:1 VALUE_PARAMETER name: type:kotlin.Any flags: + @10:0..18 FUN name:foo visibility:public modality:FINAL <> () returnType:Host flags: @10:12..18 BLOCK_BODY - @10:12..18 RETURN type=kotlin.Nothing from='foo(): Host' + @10:12..18 RETURN type=kotlin.Nothing from=foo(): Host' @10:12..18 CALL 'constructor Host()' type=test.Host origin=null - @12:0..14:1 FUN public fun test.Host.test2(): kotlin.Unit - @12:4..8 VALUE_PARAMETER this@test2: Host + @12:0..14:1 FUN name:test2 visibility:public modality:FINAL <> ($receiver:test.Host) returnType:Unit flags: + @12:4..8 VALUE_PARAMETER name: type:test.Host flags: @12:17..14:1 BLOCK_BODY @13:4..13 CALL 'plusAssign(Int): Unit' type=kotlin.Unit origin=PLUSEQ @13:4..8 GET_VAR 'this@test2: Host' type=test.Host origin=PLUSEQ - @13:12..13 CONST Int type=kotlin.Int value='1' - @16:0..18:1 FUN public fun test3(): kotlin.Unit + @13:12..13 CONST Int type=kotlin.Int value=1 + @16:0..18:1 FUN name:test3 visibility:public modality:FINAL <> () returnType:Unit flags: @16:12..18:1 BLOCK_BODY @17:4..14 CALL 'plusAssign(Int): Unit' type=kotlin.Unit origin=PLUSEQ @17:4..9 CALL 'foo(): Host' type=test.Host origin=null - @17:13..14 CONST Int type=kotlin.Int value='1' - @20:0..22:1 FUN public fun test4(a: () -> test.Host): kotlin.Unit - @20:10..23 VALUE_PARAMETER value-parameter a: () -> test.Host + @17:13..14 CONST Int type=kotlin.Int value=1 + @20:0..22:1 FUN name:test4 visibility:public modality:FINAL <> (a:() -> test.Host) returnType:Unit flags: + @20:10..23 VALUE_PARAMETER name:a index:0 type:() -> test.Host flags: @20:25..22:1 BLOCK_BODY @21:4..12 CALL 'plusAssign(Int): Unit' type=kotlin.Unit origin=PLUSEQ @21:4..7 CALL 'invoke(): Host' type=test.Host origin=INVOKE @21:4..5 GET_VAR 'value-parameter a: () -> Host' type=() -> test.Host origin=VARIABLE_AS_FUNCTION - @21:11..12 CONST Int type=kotlin.Int value='1' + @21:11..12 CONST Int type=kotlin.Int value=1 diff --git a/compiler/testData/ir/sourceRanges/kt17108.txt b/compiler/testData/ir/sourceRanges/kt17108.txt index ba9b2d59123..ba2edc107f7 100644 --- a/compiler/testData/ir/sourceRanges/kt17108.txt +++ b/compiler/testData/ir/sourceRanges/kt17108.txt @@ -1,24 +1,24 @@ -@0:0..26:1 FILE /kt17108.kt - @0:0..26:1 CLASS INTERFACE Boolean - @0:0..26:1 VALUE_PARAMETER this@Boolean: Boolean - @5:4..8:38 FUN public abstract operator fun not(): Boolean - @5:4..8:38 VALUE_PARAMETER this@Boolean: Boolean - @10:4..13:42 FUN public abstract infix fun and(other: Boolean): Boolean - @10:4..13:42 VALUE_PARAMETER this@Boolean: Boolean - @13:18..32 VALUE_PARAMETER value-parameter other: Boolean - @15:4..18:41 FUN public abstract infix fun or(other: Boolean): Boolean - @15:4..18:41 VALUE_PARAMETER this@Boolean: Boolean - @18:17..31 VALUE_PARAMETER value-parameter other: Boolean - @20:4..23:42 FUN public abstract infix fun xor(other: Boolean): Boolean - @20:4..23:42 VALUE_PARAMETER this@Boolean: Boolean - @23:18..32 VALUE_PARAMETER value-parameter other: Boolean - @25:4..38 FUN public abstract fun compareTo(other: Boolean): kotlin.Int - @25:4..38 VALUE_PARAMETER this@Boolean: Boolean - @25:18..32 VALUE_PARAMETER value-parameter other: Boolean - @0:0..26:1 FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean - @0:0..26:1 VALUE_PARAMETER this@Any: Any - @-1:-1..-1 VALUE_PARAMETER value-parameter other: kotlin.Any? - @0:0..26:1 FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int - @0:0..26:1 VALUE_PARAMETER this@Any: Any - @0:0..26:1 FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String - @0:0..26:1 VALUE_PARAMETER this@Any: Any +@0:0..26:1 FILE fqName: fileName:/kt17108.kt + @0:0..26:1 CLASS INTERFACE name:Boolean modality:ABSTRACT visibility:public flags: + @0:0..26:1 VALUE_PARAMETER INSTANCE_RECEIVER name: type:Boolean flags: + @5:4..8:38 FUN name:not visibility:public modality:ABSTRACT <> ($this:Boolean) returnType:Boolean flags: + @5:4..8:38 VALUE_PARAMETER name: type:Boolean flags: + @10:4..13:42 FUN name:and visibility:public modality:ABSTRACT <> ($this:Boolean, other:Boolean) returnType:Boolean flags: + @10:4..13:42 VALUE_PARAMETER name: type:Boolean flags: + @13:18..32 VALUE_PARAMETER name:other index:0 type:Boolean flags: + @15:4..18:41 FUN name:or visibility:public modality:ABSTRACT <> ($this:Boolean, other:Boolean) returnType:Boolean flags: + @15:4..18:41 VALUE_PARAMETER name: type:Boolean flags: + @18:17..31 VALUE_PARAMETER name:other index:0 type:Boolean flags: + @20:4..23:42 FUN name:xor visibility:public modality:ABSTRACT <> ($this:Boolean, other:Boolean) returnType:Boolean flags: + @20:4..23:42 VALUE_PARAMETER name: type:Boolean flags: + @23:18..32 VALUE_PARAMETER name:other index:0 type:Boolean flags: + @25:4..38 FUN name:compareTo visibility:public modality:ABSTRACT <> ($this:Boolean, other:Boolean) returnType:Int flags: + @25:4..38 VALUE_PARAMETER name: type:Boolean flags: + @25:18..32 VALUE_PARAMETER name:other index:0 type:Boolean flags: + @0:0..26:1 FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:Boolean flags: + @0:0..26:1 VALUE_PARAMETER name: type:kotlin.Any flags: + @-1:-1..-1 VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: + @0:0..26:1 FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:Int flags: + @0:0..26:1 VALUE_PARAMETER name: type:kotlin.Any flags: + @0:0..26:1 FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:String flags: + @0:0..26:1 VALUE_PARAMETER name: type:kotlin.Any flags: diff --git a/compiler/testData/ir/sourceRanges/synthesizedDataClassMembers.txt b/compiler/testData/ir/sourceRanges/synthesizedDataClassMembers.txt index 46249e18c7b..f9fb8af9bea 100644 --- a/compiler/testData/ir/sourceRanges/synthesizedDataClassMembers.txt +++ b/compiler/testData/ir/sourceRanges/synthesizedDataClassMembers.txt @@ -1,104 +1,104 @@ -@0:0..4:1 FILE /synthesizedDataClassMembers.kt - @0:0..4:1 CLASS CLASS C - @0:0..4:1 VALUE_PARAMETER this@C: C - @0:0..4:1 CONSTRUCTOR public constructor C(x: kotlin.Int, y: kotlin.String, z: kotlin.Any) - @1:8..18 VALUE_PARAMETER value-parameter x: kotlin.Int - @2:8..21 VALUE_PARAMETER value-parameter y: kotlin.String - @3:8..18 VALUE_PARAMETER value-parameter z: kotlin.Any +@0:0..4:1 FILE fqName: fileName:/synthesizedDataClassMembers.kt + @0:0..4:1 CLASS CLASS name:C modality:FINAL visibility:public flags:data + @0:0..4:1 VALUE_PARAMETER INSTANCE_RECEIVER name: type:C flags: + @0:0..4:1 CONSTRUCTOR visibility:public <> (x:kotlin.Int, y:kotlin.String, z:kotlin.Any) returnType:C flags: + @1:8..18 VALUE_PARAMETER name:x index:0 type:kotlin.Int flags: + @2:8..21 VALUE_PARAMETER name:y index:1 type:kotlin.String flags: + @3:8..18 VALUE_PARAMETER name:z index:2 type:kotlin.Any flags: @0:0..4:1 BLOCK_BODY @0:0..4:1 DELEGATING_CONSTRUCTOR_CALL 'constructor Any()' @0:0..4:1 INSTANCE_INITIALIZER_CALL classDescriptor='C' - @1:8..18 PROPERTY public final val x: kotlin.Int - @1:8..18 FIELD PROPERTY_BACKING_FIELD public final val x: kotlin.Int + @1:8..18 PROPERTY name:x type:kotlin.Int visibility:public modality:FINAL flags:val + @1:8..18 FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.Int visibility:public @1:8..18 EXPRESSION_BODY @1:8..18 GET_VAR 'value-parameter x: Int' type=kotlin.Int origin=INITIALIZE_PROPERTY_FROM_PARAMETER - @1:8..18 FUN DEFAULT_PROPERTY_ACCESSOR public final fun (): kotlin.Int - @-1:-1..-1 VALUE_PARAMETER this@C: C + @1:8..18 FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:C) returnType:Int flags: + @-1:-1..-1 VALUE_PARAMETER name: type:C flags: @1:8..18 BLOCK_BODY - @1:8..18 RETURN type=kotlin.Nothing from='(): Int' + @1:8..18 RETURN type=kotlin.Nothing from=(): Int' @1:8..18 GET_FIELD 'x: Int' type=kotlin.Int origin=null @1:8..18 GET_VAR 'this@C: C' type=C origin=null - @2:8..21 PROPERTY public final val y: kotlin.String - @2:8..21 FIELD PROPERTY_BACKING_FIELD public final val y: kotlin.String + @2:8..21 PROPERTY name:y type:kotlin.String visibility:public modality:FINAL flags:val + @2:8..21 FIELD PROPERTY_BACKING_FIELD name:y type:kotlin.String visibility:public @2:8..21 EXPRESSION_BODY @2:8..21 GET_VAR 'value-parameter y: String' type=kotlin.String origin=INITIALIZE_PROPERTY_FROM_PARAMETER - @2:8..21 FUN DEFAULT_PROPERTY_ACCESSOR public final fun (): kotlin.String - @-1:-1..-1 VALUE_PARAMETER this@C: C + @2:8..21 FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:C) returnType:String flags: + @-1:-1..-1 VALUE_PARAMETER name: type:C flags: @2:8..21 BLOCK_BODY - @2:8..21 RETURN type=kotlin.Nothing from='(): String' + @2:8..21 RETURN type=kotlin.Nothing from=(): String' @2:8..21 GET_FIELD 'y: String' type=kotlin.String origin=null @2:8..21 GET_VAR 'this@C: C' type=C origin=null - @3:8..18 PROPERTY public final val z: kotlin.Any - @3:8..18 FIELD PROPERTY_BACKING_FIELD public final val z: kotlin.Any + @3:8..18 PROPERTY name:z type:kotlin.Any visibility:public modality:FINAL flags:val + @3:8..18 FIELD PROPERTY_BACKING_FIELD name:z type:kotlin.Any visibility:public @3:8..18 EXPRESSION_BODY @3:8..18 GET_VAR 'value-parameter z: Any' type=kotlin.Any origin=INITIALIZE_PROPERTY_FROM_PARAMETER - @3:8..18 FUN DEFAULT_PROPERTY_ACCESSOR public final fun (): kotlin.Any - @-1:-1..-1 VALUE_PARAMETER this@C: C + @3:8..18 FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:C) returnType:Any flags: + @-1:-1..-1 VALUE_PARAMETER name: type:C flags: @3:8..18 BLOCK_BODY - @3:8..18 RETURN type=kotlin.Nothing from='(): Any' + @3:8..18 RETURN type=kotlin.Nothing from=(): Any' @3:8..18 GET_FIELD 'z: Any' type=kotlin.Any origin=null @3:8..18 GET_VAR 'this@C: C' type=C origin=null - @1:8..18 FUN GENERATED_DATA_CLASS_MEMBER public final operator fun component1(): kotlin.Int - @-1:-1..-1 VALUE_PARAMETER this@C: C + @1:8..18 FUN GENERATED_DATA_CLASS_MEMBER name:component1 visibility:public modality:FINAL <> ($this:C) returnType:Int flags: + @-1:-1..-1 VALUE_PARAMETER name: type:C flags: @1:8..18 BLOCK_BODY - @1:8..18 RETURN type=kotlin.Nothing from='component1(): Int' + @1:8..18 RETURN type=kotlin.Nothing from=component1(): Int' @1:8..18 CALL '(): Int' type=kotlin.Int origin=GET_PROPERTY @1:8..18 GET_VAR 'this@C: C' type=C origin=null - @2:8..21 FUN GENERATED_DATA_CLASS_MEMBER public final operator fun component2(): kotlin.String - @-1:-1..-1 VALUE_PARAMETER this@C: C + @2:8..21 FUN GENERATED_DATA_CLASS_MEMBER name:component2 visibility:public modality:FINAL <> ($this:C) returnType:String flags: + @-1:-1..-1 VALUE_PARAMETER name: type:C flags: @2:8..21 BLOCK_BODY - @2:8..21 RETURN type=kotlin.Nothing from='component2(): String' + @2:8..21 RETURN type=kotlin.Nothing from=component2(): String' @2:8..21 CALL '(): String' type=kotlin.String origin=GET_PROPERTY @2:8..21 GET_VAR 'this@C: C' type=C origin=null - @3:8..18 FUN GENERATED_DATA_CLASS_MEMBER public final operator fun component3(): kotlin.Any - @-1:-1..-1 VALUE_PARAMETER this@C: C + @3:8..18 FUN GENERATED_DATA_CLASS_MEMBER name:component3 visibility:public modality:FINAL <> ($this:C) returnType:Any flags: + @-1:-1..-1 VALUE_PARAMETER name: type:C flags: @3:8..18 BLOCK_BODY - @3:8..18 RETURN type=kotlin.Nothing from='component3(): Any' + @3:8..18 RETURN type=kotlin.Nothing from=component3(): Any' @3:8..18 CALL '(): Any' type=kotlin.Any origin=GET_PROPERTY @3:8..18 GET_VAR 'this@C: C' type=C origin=null - @0:0..4:1 FUN GENERATED_DATA_CLASS_MEMBER public final fun copy(x: kotlin.Int = ..., y: kotlin.String = ..., z: kotlin.Any = ...): C - @-1:-1..-1 VALUE_PARAMETER this@C: C - @1:8..18 VALUE_PARAMETER value-parameter x: kotlin.Int = ... + @0:0..4:1 FUN GENERATED_DATA_CLASS_MEMBER name:copy visibility:public modality:FINAL <> ($this:C, x:kotlin.Int, y:kotlin.String, z:kotlin.Any) returnType:C flags: + @-1:-1..-1 VALUE_PARAMETER name: type:C flags: + @1:8..18 VALUE_PARAMETER name:x index:0 type:kotlin.Int flags: @0:0..4:1 EXPRESSION_BODY @0:0..4:1 CALL '(): Int' type=kotlin.Int origin=GET_PROPERTY @0:0..4:1 GET_VAR 'this@C: C' type=C origin=null - @2:8..21 VALUE_PARAMETER value-parameter y: kotlin.String = ... + @2:8..21 VALUE_PARAMETER name:y index:1 type:kotlin.String flags: @0:0..4:1 EXPRESSION_BODY @0:0..4:1 CALL '(): String' type=kotlin.String origin=GET_PROPERTY @0:0..4:1 GET_VAR 'this@C: C' type=C origin=null - @3:8..18 VALUE_PARAMETER value-parameter z: kotlin.Any = ... + @3:8..18 VALUE_PARAMETER name:z index:2 type:kotlin.Any flags: @0:0..4:1 EXPRESSION_BODY @0:0..4:1 CALL '(): Any' type=kotlin.Any origin=GET_PROPERTY @0:0..4:1 GET_VAR 'this@C: C' type=C origin=null @0:0..4:1 BLOCK_BODY - @0:0..4:1 RETURN type=kotlin.Nothing from='copy(Int = ..., String = ..., Any = ...): C' + @0:0..4:1 RETURN type=kotlin.Nothing from=copy(Int = ..., String = ..., Any = ...): C' @0:0..4:1 CALL 'constructor C(Int, String, Any)' type=C origin=null @0:0..4:1 GET_VAR 'value-parameter x: Int = ...' type=kotlin.Int origin=null @0:0..4:1 GET_VAR 'value-parameter y: String = ...' type=kotlin.String origin=null @0:0..4:1 GET_VAR 'value-parameter z: Any = ...' type=kotlin.Any origin=null - @0:0..4:1 FUN GENERATED_DATA_CLASS_MEMBER public open override fun toString(): kotlin.String - @-1:-1..-1 VALUE_PARAMETER this@C: C + @0:0..4:1 FUN GENERATED_DATA_CLASS_MEMBER name:toString visibility:public modality:OPEN <> ($this:C) returnType:String flags: + @-1:-1..-1 VALUE_PARAMETER name: type:C flags: @0:0..4:1 BLOCK_BODY - @0:0..4:1 RETURN type=kotlin.Nothing from='toString(): String' + @0:0..4:1 RETURN type=kotlin.Nothing from=toString(): String' @0:0..4:1 STRING_CONCATENATION type=kotlin.String - @0:0..4:1 CONST String type=kotlin.String value='C(' - @0:0..4:1 CONST String type=kotlin.String value='x=' + @0:0..4:1 CONST String type=kotlin.String value=C( + @0:0..4:1 CONST String type=kotlin.String value=x= @0:0..4:1 CALL '(): Int' type=kotlin.Int origin=GET_PROPERTY @0:0..4:1 GET_VAR 'this@C: C' type=C origin=null - @0:0..4:1 CONST String type=kotlin.String value=', ' - @0:0..4:1 CONST String type=kotlin.String value='y=' + @0:0..4:1 CONST String type=kotlin.String value=, + @0:0..4:1 CONST String type=kotlin.String value=y= @0:0..4:1 CALL '(): String' type=kotlin.String origin=GET_PROPERTY @0:0..4:1 GET_VAR 'this@C: C' type=C origin=null - @0:0..4:1 CONST String type=kotlin.String value=', ' - @0:0..4:1 CONST String type=kotlin.String value='z=' + @0:0..4:1 CONST String type=kotlin.String value=, + @0:0..4:1 CONST String type=kotlin.String value=z= @0:0..4:1 CALL '(): Any' type=kotlin.Any origin=GET_PROPERTY @0:0..4:1 GET_VAR 'this@C: C' type=C origin=null - @0:0..4:1 CONST String type=kotlin.String value=')' - @0:0..4:1 FUN GENERATED_DATA_CLASS_MEMBER public open override fun hashCode(): kotlin.Int - @-1:-1..-1 VALUE_PARAMETER this@C: C + @0:0..4:1 CONST String type=kotlin.String value=) + @0:0..4:1 FUN GENERATED_DATA_CLASS_MEMBER name:hashCode visibility:public modality:OPEN <> ($this:C) returnType:Int flags: + @-1:-1..-1 VALUE_PARAMETER name: type:C flags: @0:0..4:1 BLOCK_BODY - @0:0..4:1 VAR IR_TEMPORARY_VARIABLE var tmp0_result: kotlin.Int - @0:0..4:1 CONST Int type=kotlin.Int value='0' + @0:0..4:1 VAR IR_TEMPORARY_VARIABLE name:tmp0_result type:kotlin.Int flags:var + @0:0..4:1 CONST Int type=kotlin.Int value=0 @0:0..4:1 SET_VAR 'tmp0_result: Int' type=kotlin.Unit origin=EQ @0:0..4:1 CALL 'hashCode(): Int' type=kotlin.Int origin=null @0:0..4:1 CALL '(): Int' type=kotlin.Int origin=GET_PROPERTY @@ -107,7 +107,7 @@ @0:0..4:1 CALL 'plus(Int): Int' type=kotlin.Int origin=null @0:0..4:1 CALL 'times(Int): Int' type=kotlin.Int origin=null @0:0..4:1 GET_VAR 'tmp0_result: Int' type=kotlin.Int origin=null - @0:0..4:1 CONST Int type=kotlin.Int value='31' + @0:0..4:1 CONST Int type=kotlin.Int value=31 @0:0..4:1 CALL 'hashCode(): Int' type=kotlin.Int origin=null @0:0..4:1 CALL '(): String' type=kotlin.String origin=GET_PROPERTY @0:0..4:1 GET_VAR 'this@C: C' type=C origin=null @@ -115,30 +115,30 @@ @0:0..4:1 CALL 'plus(Int): Int' type=kotlin.Int origin=null @0:0..4:1 CALL 'times(Int): Int' type=kotlin.Int origin=null @0:0..4:1 GET_VAR 'tmp0_result: Int' type=kotlin.Int origin=null - @0:0..4:1 CONST Int type=kotlin.Int value='31' + @0:0..4:1 CONST Int type=kotlin.Int value=31 @0:0..4:1 CALL 'hashCode(): Int' type=kotlin.Int origin=null @0:0..4:1 CALL '(): Any' type=kotlin.Any origin=GET_PROPERTY @0:0..4:1 GET_VAR 'this@C: C' type=C origin=null - @0:0..4:1 RETURN type=kotlin.Nothing from='hashCode(): Int' + @0:0..4:1 RETURN type=kotlin.Nothing from=hashCode(): Int' @0:0..4:1 GET_VAR 'tmp0_result: Int' type=kotlin.Int origin=null - @0:0..4:1 FUN GENERATED_DATA_CLASS_MEMBER public open override fun equals(other: kotlin.Any?): kotlin.Boolean - @-1:-1..-1 VALUE_PARAMETER this@C: C - @-1:-1..-1 VALUE_PARAMETER value-parameter other: kotlin.Any? + @0:0..4:1 FUN GENERATED_DATA_CLASS_MEMBER name:equals visibility:public modality:OPEN <> ($this:C, other:kotlin.Any?) returnType:Boolean flags: + @-1:-1..-1 VALUE_PARAMETER name: type:C flags: + @-1:-1..-1 VALUE_PARAMETER name:other index:0 type:kotlin.Any? flags: @0:0..4:1 BLOCK_BODY @0:0..4:1 WHEN type=kotlin.Unit origin=null @0:0..4:1 BRANCH @0:0..4:1 CALL 'EQEQEQ(Any?, Any?): Boolean' type=kotlin.Boolean origin=EQEQEQ @0:0..4:1 GET_VAR 'this@C: C' type=C origin=null @0:0..4:1 GET_VAR 'value-parameter other: Any?' type=kotlin.Any? origin=null - @0:0..4:1 RETURN type=kotlin.Nothing from='equals(Any?): Boolean' - @0:0..4:1 CONST Boolean type=kotlin.Boolean value='true' + @0:0..4:1 RETURN type=kotlin.Nothing from=equals(Any?): Boolean' + @0:0..4:1 CONST Boolean type=kotlin.Boolean value=true @0:0..4:1 WHEN type=kotlin.Unit origin=null @0:0..4:1 BRANCH @0:0..4:1 TYPE_OP type=kotlin.Boolean origin=NOT_INSTANCEOF typeOperand=C @0:0..4:1 GET_VAR 'value-parameter other: Any?' type=kotlin.Any? origin=null - @0:0..4:1 RETURN type=kotlin.Nothing from='equals(Any?): Boolean' - @0:0..4:1 CONST Boolean type=kotlin.Boolean value='false' - @0:0..4:1 VAR IR_TEMPORARY_VARIABLE val tmp0_other_with_cast: C + @0:0..4:1 RETURN type=kotlin.Nothing from=equals(Any?): Boolean' + @0:0..4:1 CONST Boolean type=kotlin.Boolean value=false + @0:0..4:1 VAR IR_TEMPORARY_VARIABLE name:tmp0_other_with_cast type:C flags:val @0:0..4:1 TYPE_OP type=C origin=CAST typeOperand=C @0:0..4:1 GET_VAR 'value-parameter other: Any?' type=kotlin.Any? origin=null @0:0..4:1 WHEN type=kotlin.Unit origin=null @@ -149,8 +149,8 @@ @0:0..4:1 GET_VAR 'this@C: C' type=C origin=null @0:0..4:1 CALL '(): Int' type=kotlin.Int origin=GET_PROPERTY @0:0..4:1 GET_VAR 'tmp0_other_with_cast: C' type=C origin=null - @0:0..4:1 RETURN type=kotlin.Nothing from='equals(Any?): Boolean' - @0:0..4:1 CONST Boolean type=kotlin.Boolean value='false' + @0:0..4:1 RETURN type=kotlin.Nothing from=equals(Any?): Boolean' + @0:0..4:1 CONST Boolean type=kotlin.Boolean value=false @0:0..4:1 WHEN type=kotlin.Unit origin=null @0:0..4:1 BRANCH @0:0..4:1 CALL 'NOT(Boolean): Boolean' type=kotlin.Boolean origin=EXCLEQ @@ -159,8 +159,8 @@ @0:0..4:1 GET_VAR 'this@C: C' type=C origin=null @0:0..4:1 CALL '(): String' type=kotlin.String origin=GET_PROPERTY @0:0..4:1 GET_VAR 'tmp0_other_with_cast: C' type=C origin=null - @0:0..4:1 RETURN type=kotlin.Nothing from='equals(Any?): Boolean' - @0:0..4:1 CONST Boolean type=kotlin.Boolean value='false' + @0:0..4:1 RETURN type=kotlin.Nothing from=equals(Any?): Boolean' + @0:0..4:1 CONST Boolean type=kotlin.Boolean value=false @0:0..4:1 WHEN type=kotlin.Unit origin=null @0:0..4:1 BRANCH @0:0..4:1 CALL 'NOT(Boolean): Boolean' type=kotlin.Boolean origin=EXCLEQ @@ -169,7 +169,7 @@ @0:0..4:1 GET_VAR 'this@C: C' type=C origin=null @0:0..4:1 CALL '(): Any' type=kotlin.Any origin=GET_PROPERTY @0:0..4:1 GET_VAR 'tmp0_other_with_cast: C' type=C origin=null - @0:0..4:1 RETURN type=kotlin.Nothing from='equals(Any?): Boolean' - @0:0..4:1 CONST Boolean type=kotlin.Boolean value='false' - @0:0..4:1 RETURN type=kotlin.Nothing from='equals(Any?): Boolean' - @0:0..4:1 CONST Boolean type=kotlin.Boolean value='true' + @0:0..4:1 RETURN type=kotlin.Nothing from=equals(Any?): Boolean' + @0:0..4:1 CONST Boolean type=kotlin.Boolean value=false + @0:0..4:1 RETURN type=kotlin.Nothing from=equals(Any?): Boolean' + @0:0..4:1 CONST Boolean type=kotlin.Boolean value=true diff --git a/compiler/tests/org/jetbrains/kotlin/ir/IrTextTestCaseGenerated.java b/compiler/tests/org/jetbrains/kotlin/ir/IrTextTestCaseGenerated.java index 98c49b8cd53..cebb21f3e73 100644 --- a/compiler/tests/org/jetbrains/kotlin/ir/IrTextTestCaseGenerated.java +++ b/compiler/tests/org/jetbrains/kotlin/ir/IrTextTestCaseGenerated.java @@ -882,12 +882,6 @@ public class IrTextTestCaseGenerated extends AbstractIrTextTestCase { doTest(fileName); } - @TestMetadata("smoke.kt") - public void testSmoke() throws Exception { - String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/expressions/smoke.kt"); - doTest(fileName); - } - @TestMetadata("stringComparisons.kt") public void testStringComparisons() throws Exception { String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/ir/irText/expressions/stringComparisons.kt");