IR text tests: Stable blank lines between declarations in class
Rework rendering of kt-like dump and signatures dump in order to avoid unstable blank line between declarations of the same level: 1. No blank line for the first declaration inside the member scope of the class. 2. Always a single blank line between each two subsequent declarations inside the member scope of the class.
This commit is contained in:
committed by
Space Team
parent
4532f52898
commit
16d1e85932
Vendored
+1
@@ -47,6 +47,7 @@ data class MyContainer {
|
||||
// Public signature: /MyContainer.<init>|-5182794243525578284[0]
|
||||
// Public signature debug description: <init>(kotlin.Int){}
|
||||
constructor(i: Int) /* primary */
|
||||
|
||||
// CHECK JVM_IR:
|
||||
// Mangled name: MyContainer#component1(){}kotlin.Int
|
||||
// Public signature: /MyContainer.component1|-8217597213800111288[0]
|
||||
|
||||
+1
@@ -27,6 +27,7 @@ data class MyContainer {
|
||||
// Public signature: /MyContainer.<init>|1280618353163213788[0]
|
||||
// Public signature debug description: <init>(kotlin.String){}
|
||||
constructor(s: String) /* primary */
|
||||
|
||||
// CHECK JVM_IR:
|
||||
// Mangled name: MyContainer#component1(){}kotlin.String
|
||||
// Public signature: /MyContainer.component1|-7481405593404337796[0]
|
||||
|
||||
Vendored
+1
@@ -47,6 +47,7 @@ data class Result {
|
||||
// Public signature: /Result.<init>|-5182794243525578284[0]
|
||||
// Public signature debug description: <init>(kotlin.Int){}
|
||||
constructor(i: Int) /* primary */
|
||||
|
||||
// CHECK JVM_IR:
|
||||
// Mangled name: Result#component1(){}kotlin.Int
|
||||
// Public signature: /Result.component1|-8217597213800111288[0]
|
||||
|
||||
-2
@@ -24,7 +24,6 @@ class Circle : Shape {
|
||||
// Mangled name: Canvas
|
||||
// Public signature: /Canvas|null[0]
|
||||
interface Canvas {
|
||||
|
||||
// CHECK:
|
||||
// Mangled name: Canvas{}suffix
|
||||
// Public signature: /Canvas.suffix|-3301965527200666288[0]
|
||||
@@ -46,7 +45,6 @@ interface Canvas {
|
||||
// Mangled name: Shape
|
||||
// Public signature: /Shape|null[0]
|
||||
interface Shape {
|
||||
|
||||
// CHECK JVM_IR:
|
||||
// Mangled name: Shape#draw!Canvas(){}kotlin.String
|
||||
// Public signature: /Shape.draw|-6733499063990640842[0]
|
||||
|
||||
+1
@@ -37,6 +37,7 @@ data class Pair<A : Any?, B : Any?> {
|
||||
// Public signature: /Pair.<init>|3086114026882374588[0]
|
||||
// Public signature debug description: <init>(1:0;1:1){}
|
||||
constructor(first: A, second: B) /* primary */
|
||||
|
||||
// CHECK JVM_IR:
|
||||
// Mangled name: Pair#component1(){}1:0
|
||||
// Public signature: /Pair.component1|2393470133763651536[0]
|
||||
|
||||
-1
@@ -33,7 +33,6 @@ interface Monoid<T : Any?> : Semigroup<T> {
|
||||
// Mangled name: Semigroup
|
||||
// Public signature: /Semigroup|null[0]
|
||||
interface Semigroup<T : Any?> {
|
||||
|
||||
// CHECK JVM_IR:
|
||||
// Mangled name: Semigroup#combine@1:0(1:0){}1:0
|
||||
// Public signature: /Semigroup.combine|-3517256775590682507[0]
|
||||
|
||||
+2
@@ -27,6 +27,7 @@ data class Counter {
|
||||
// Public signature: /Counter.<init>|-5182794243525578284[0]
|
||||
// Public signature debug description: <init>(kotlin.Int){}
|
||||
constructor(i: Int) /* primary */
|
||||
|
||||
// CHECK JVM_IR:
|
||||
// Mangled name: Counter#component1(){}kotlin.Int
|
||||
// Public signature: /Counter.component1|-8217597213800111288[0]
|
||||
@@ -103,6 +104,7 @@ data class CounterConfig {
|
||||
// Public signature: /CounterConfig.<init>|-5182794243525578284[0]
|
||||
// Public signature debug description: <init>(kotlin.Int){}
|
||||
constructor(max: Int) /* primary */
|
||||
|
||||
// CHECK JVM_IR:
|
||||
// Mangled name: CounterConfig#component1(){}kotlin.Int
|
||||
// Public signature: /CounterConfig.component1|-8217597213800111288[0]
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
interface Lazy<T : Any?> {
|
||||
|
||||
}
|
||||
|
||||
fun test1($context_receiver_0: Lazy<Int>, $context_receiver_1: Lazy<CharSequence>) {
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
// Mangled name: Lazy
|
||||
// Public signature: /Lazy|null[0]
|
||||
interface Lazy<T : Any?> {
|
||||
|
||||
}
|
||||
|
||||
// CHECK:
|
||||
|
||||
-1
@@ -14,7 +14,6 @@ class Matrix {
|
||||
// Mangled name: NumberOperations
|
||||
// Public signature: /NumberOperations|null[0]
|
||||
interface NumberOperations {
|
||||
|
||||
// CHECK JVM_IR:
|
||||
// Mangled name: NumberOperations#plus@kotlin.Number(kotlin.Number){}kotlin.Number
|
||||
// Public signature: /NumberOperations.plus|-6518987633126930952[0]
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
// Mangled name: A
|
||||
// Public signature: /A|null[0]
|
||||
interface A {
|
||||
|
||||
// CHECK JVM_IR:
|
||||
// Mangled name: A#a(){}kotlin.Int
|
||||
// Public signature: /A.a|5993980063692763883[0]
|
||||
@@ -19,7 +18,6 @@ interface A {
|
||||
// Mangled name: B
|
||||
// Public signature: /B|null[0]
|
||||
interface B {
|
||||
|
||||
// CHECK JVM_IR:
|
||||
// Mangled name: B#b(){}kotlin.Int
|
||||
// Public signature: /B.b|-6472101675379091489[0]
|
||||
|
||||
+1
@@ -42,6 +42,7 @@ data class Result {
|
||||
// Public signature: /Result.<init>|-5182794243525578284[0]
|
||||
// Public signature debug description: <init>(kotlin.Int){}
|
||||
constructor(i: Int) /* primary */
|
||||
|
||||
// CHECK JVM_IR:
|
||||
// Mangled name: Result#component1(){}kotlin.Int
|
||||
// Public signature: /Result.component1|-8217597213800111288[0]
|
||||
|
||||
Reference in New Issue
Block a user