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
+3
@@ -142,6 +142,7 @@ data class Test1 {
|
||||
// Public signature: /Test1.<init>|-2901047261480922149[0]
|
||||
// Public signature debug description: <init>(kotlin.Array<kotlin.String>;kotlin.CharArray;kotlin.BooleanArray;kotlin.ByteArray;kotlin.ShortArray;kotlin.IntArray;kotlin.LongArray;kotlin.FloatArray;kotlin.DoubleArray){}
|
||||
constructor(stringArray: Array<String>, charArray: CharArray, booleanArray: BooleanArray, byteArray: ByteArray, shortArray: ShortArray, intArray: IntArray, longArray: LongArray, floatArray: FloatArray, doubleArray: DoubleArray) /* primary */
|
||||
|
||||
// CHECK JVM_IR:
|
||||
// Mangled name: Test1#component1(){}kotlin.Array<kotlin.String>
|
||||
// Public signature: /Test1.component1|2673462985803256369[0]
|
||||
@@ -298,6 +299,7 @@ data class Test2<T : Any?> {
|
||||
// Public signature: /Test2.<init>|-6569388914691766420[0]
|
||||
// Public signature debug description: <init>(kotlin.Array<1:0>){}
|
||||
constructor(genericArray: Array<T>) /* primary */
|
||||
|
||||
// CHECK JVM_IR:
|
||||
// Mangled name: Test2#component1(){}kotlin.Array<1:0>
|
||||
// Public signature: /Test2.component1|-8550302254215159930[0]
|
||||
@@ -374,6 +376,7 @@ data class Test3 {
|
||||
// Public signature: /Test3.<init>|2034455610636948474[0]
|
||||
// Public signature debug description: <init>(kotlin.Array<kotlin.Any>?){}
|
||||
constructor(anyArrayN: Array<Any>?) /* primary */
|
||||
|
||||
// CHECK JVM_IR:
|
||||
// Mangled name: Test3#component1(){}kotlin.Array<kotlin.Any>?
|
||||
// Public signature: /Test3.component1|3443609172722853741[0]
|
||||
|
||||
@@ -52,6 +52,7 @@ data class Test1 {
|
||||
// Public signature: /Test1.<init>|3237794121889594884[0]
|
||||
// Public signature debug description: <init>(kotlin.Int;kotlin.String;kotlin.Any){}
|
||||
constructor(x: Int, y: String, z: Any) /* primary */
|
||||
|
||||
// CHECK JVM_IR:
|
||||
// Mangled name: Test1#component1(){}kotlin.Int
|
||||
// Public signature: /Test1.component1|-8217597213800111288[0]
|
||||
@@ -148,6 +149,7 @@ data class Test2 {
|
||||
// Public signature: /Test2.<init>|-8205545948568413246[0]
|
||||
// Public signature debug description: <init>(kotlin.Any?){}
|
||||
constructor(x: Any?) /* primary */
|
||||
|
||||
// CHECK JVM_IR:
|
||||
// Mangled name: Test2#component1(){}kotlin.Any?
|
||||
// Public signature: /Test2.component1|-9062417290864755441[0]
|
||||
@@ -269,6 +271,7 @@ data class Test3 {
|
||||
// Public signature: /Test3.<init>|8878758829470622568[0]
|
||||
// Public signature debug description: <init>(kotlin.Double;kotlin.Double?;kotlin.Float;kotlin.Float?){}
|
||||
constructor(d: Double, dn: Double?, f: Float, df: Float?) /* primary */
|
||||
|
||||
// CHECK JVM_IR:
|
||||
// Mangled name: Test3#component1(){}kotlin.Double
|
||||
// Public signature: /Test3.component1|2948120330742694173[0]
|
||||
|
||||
@@ -22,6 +22,7 @@ data class Test1<T : Any?> {
|
||||
// Public signature: /Test1.<init>|-8731461708390519279[0]
|
||||
// Public signature debug description: <init>(1:0){}
|
||||
constructor(x: T) /* primary */
|
||||
|
||||
// CHECK JVM_IR:
|
||||
// Mangled name: Test1#component1(){}1:0
|
||||
// Public signature: /Test1.component1|2393470133763651536[0]
|
||||
@@ -98,6 +99,7 @@ data class Test2<T : Number> {
|
||||
// Public signature: /Test2.<init>|-8731461708390519279[0]
|
||||
// Public signature debug description: <init>(1:0){}
|
||||
constructor(x: T) /* primary */
|
||||
|
||||
// CHECK JVM_IR:
|
||||
// Mangled name: Test2#component1(){}1:0
|
||||
// Public signature: /Test2.component1|2393470133763651536[0]
|
||||
@@ -174,6 +176,7 @@ data class Test3<T : Any?> {
|
||||
// Public signature: /Test3.<init>|-6703374673612964420[0]
|
||||
// Public signature debug description: <init>(kotlin.collections.List<1:0>){}
|
||||
constructor(x: List<T>) /* primary */
|
||||
|
||||
// CHECK JVM_IR:
|
||||
// Mangled name: Test3#component1(){}kotlin.collections.List<1:0>
|
||||
// Public signature: /Test3.component1|-4141154284195946749[0]
|
||||
@@ -250,6 +253,7 @@ data class Test4 {
|
||||
// Public signature: /Test4.<init>|-9211757031347255021[0]
|
||||
// Public signature debug description: <init>(kotlin.collections.List<kotlin.String>){}
|
||||
constructor(x: List<String>) /* primary */
|
||||
|
||||
// CHECK JVM_IR:
|
||||
// Mangled name: Test4#component1(){}kotlin.collections.List<kotlin.String>
|
||||
// Public signature: /Test4.component1|-4918334505452908017[0]
|
||||
|
||||
@@ -7,6 +7,7 @@ data object DataObject {
|
||||
// Public signature: /DataObject.<init>|-5645683436151566731[0]
|
||||
// Public signature debug description: <init>(){}
|
||||
private constructor() /* primary */
|
||||
|
||||
// CHECK JVM_IR:
|
||||
// Mangled name: DataObject#equals(kotlin.Any?){}kotlin.Boolean
|
||||
// Public signature: /DataObject.equals|722809408929142791[0]
|
||||
|
||||
@@ -26,6 +26,7 @@ sealed class A : CharSequence {
|
||||
// Public signature: /A.B.<init>|2804354480087813081[0]
|
||||
// Public signature debug description: <init>(kotlin.CharSequence){}
|
||||
constructor(c: CharSequence) /* primary */
|
||||
|
||||
// CHECK JVM_IR:
|
||||
// Mangled name: A.B#get(kotlin.Int){}kotlin.Char
|
||||
// Public signature: /A.B.get|6519934306502810002[0]
|
||||
|
||||
@@ -22,6 +22,7 @@ data class TestData {
|
||||
// Public signature: /TestData.<init>|-7885966204384349687[0]
|
||||
// Public signature debug description: <init>(kotlin.Nothing?){}
|
||||
constructor(nn: Nothing?) /* primary */
|
||||
|
||||
// CHECK JVM_IR:
|
||||
// Mangled name: TestData#component1(){}kotlin.Nothing?
|
||||
// Public signature: /TestData.component1|137173073680766068[0]
|
||||
@@ -98,6 +99,7 @@ value class TestInline {
|
||||
// Public signature: /TestInline.<init>|-7885966204384349687[0]
|
||||
// Public signature debug description: <init>(kotlin.Nothing?){}
|
||||
constructor(nn: Nothing?) /* primary */
|
||||
|
||||
// CHECK JVM_IR:
|
||||
// Mangled name: TestInline#equals(kotlin.Any?){}kotlin.Boolean
|
||||
// Public signature: /TestInline.equals|722809408929142791[0]
|
||||
|
||||
@@ -22,6 +22,7 @@ data class A {
|
||||
// Public signature: /A.<init>|-5182794243525578284[0]
|
||||
// Public signature debug description: <init>(kotlin.Int){}
|
||||
constructor(x: Int) /* primary */
|
||||
|
||||
// CHECK JVM_IR:
|
||||
// Mangled name: A#component1(){}kotlin.Int
|
||||
// Public signature: /A.component1|-8217597213800111288[0]
|
||||
|
||||
Vendored
+2
@@ -22,6 +22,7 @@ data class A {
|
||||
// Public signature: /A.<init>|-2423641970729475329[0]
|
||||
// Public signature debug description: <init>(kotlin.Function2<A,kotlin.String,kotlin.Unit>){}
|
||||
constructor(runA: @ExtensionFunctionType Function2<A, String, Unit>) /* primary */
|
||||
|
||||
// CHECK JVM_IR:
|
||||
// Mangled name: A#component1(){}kotlin.Function2<A,kotlin.String,kotlin.Unit>
|
||||
// Public signature: /A.component1|793860828130635274[0]
|
||||
@@ -98,6 +99,7 @@ data class B {
|
||||
// Public signature: /B.<init>|4518179880532599055[0]
|
||||
// Public signature debug description: <init>(kotlin.Any){}
|
||||
constructor(x: Any) /* primary */
|
||||
|
||||
// CHECK JVM_IR:
|
||||
// Mangled name: B#component1(){}kotlin.Any
|
||||
// Public signature: /B.component1|2325042746135573536[0]
|
||||
|
||||
@@ -37,6 +37,7 @@ open data class ValidatedProperties {
|
||||
// Public signature: /ValidatedProperties.<init>|9140439783797628932[0]
|
||||
// Public signature debug description: <init>(kotlin.String;kotlin.String){}
|
||||
constructor(test1: String, test2: String) /* primary */
|
||||
|
||||
// CHECK JVM_IR:
|
||||
// Mangled name: ValidatedProperties#component1(){}kotlin.String
|
||||
// Public signature: /ValidatedProperties.component1|-7481405593404337796[0]
|
||||
|
||||
Reference in New Issue
Block a user