FIR: introduce & use various comparators to sort members while de/serialization

#KT-41018 fixed
This commit is contained in:
Jinseong Jeon
2020-08-13 23:17:30 -07:00
committed by Mikhail Zarechenskiy
parent 91c021c699
commit e8157a5488
81 changed files with 1106 additions and 554 deletions
@@ -1,14 +1,14 @@
public final class Some : R|kotlin/Any| {
public constructor(): R|test/Some|
public final companion object Companion : R|kotlin/Any| {
private constructor(): R|test/Some.Companion|
public final annotation class TestAnnotation : R|kotlin/Annotation| {
public constructor(): R|test/Some.Companion.TestAnnotation|
}
private constructor(): R|test/Some.Companion|
}
public constructor(): R|test/Some|
}
@@ -1,13 +1,13 @@
public final enum class Test : R|kotlin/Enum<test/Test>| {
public final static fun valueOf(value: R|kotlin/String|): R|test/Test| {
}
public final static fun values(): R|kotlin/Array<test/Test>| {
}
private constructor(a: R|kotlin/Int|): R|test/Test|
public final static enum entry A: R|test/Test|
public final static enum entry B: R|test/Test|
public final static fun values(): R|kotlin/Array<test/Test>| {
}
public final static fun valueOf(value: R|kotlin/String|): R|test/Test| {
}
}
@@ -1,6 +1,4 @@
public final class InheritMethodsDifferentReturnTypes : R|kotlin/Any| {
public constructor(): R|test/InheritMethodsDifferentReturnTypes|
public abstract interface Sub : R|test/InheritMethodsDifferentReturnTypes.Super1|, R|test/InheritMethodsDifferentReturnTypes.Super2| {
}
@@ -18,4 +16,6 @@ public final class InheritMethodsDifferentReturnTypes : R|kotlin/Any| {
}
public constructor(): R|test/InheritMethodsDifferentReturnTypes|
}
@@ -1,6 +1,4 @@
public final class InheritMethodsDifferentReturnTypesGeneric : R|kotlin/Any| {
public constructor(): R|test/InheritMethodsDifferentReturnTypesGeneric|
public abstract interface Sub : R|test/InheritMethodsDifferentReturnTypesGeneric.Super1<kotlin/String, kotlin/CharSequence>|, R|test/InheritMethodsDifferentReturnTypesGeneric.Super2<kotlin/CharSequence, kotlin/String>| {
}
@@ -18,4 +16,6 @@ public final class InheritMethodsDifferentReturnTypesGeneric : R|kotlin/Any| {
}
public constructor(): R|test/InheritMethodsDifferentReturnTypesGeneric|
}
@@ -1,9 +1,9 @@
public open class InnerClass : R|kotlin/Any| {
public constructor(): R|test/InnerClass|
public open inner class Inner : R|kotlin/Any| {
public constructor(): R|test/InnerClass.Inner|
}
public constructor(): R|test/InnerClass|
}
@@ -1,9 +1,9 @@
public open class NestedClass : R|kotlin/Any| {
public constructor(): R|test/NestedClass|
public open class Nested : R|kotlin/Any| {
public constructor(): R|test/NestedClass.Nested|
}
public constructor(): R|test/NestedClass|
}
@@ -1,6 +1,4 @@
public final class A : R|kotlin/Any| {
public constructor(): R|test/A|
public final object B : R|kotlin/Any| {
public final fun foo(a: R|kotlin/Int|): R|kotlin/String|
@@ -8,4 +6,6 @@ public final class A : R|kotlin/Any| {
}
public constructor(): R|test/A|
}
@@ -1,9 +1,10 @@
public final class UnboundWildcard : R|kotlin/Any| {
public abstract interface MyClass<T : R|kotlin/CharSequence?|> : R|kotlin/Any| {
}
public final fun foo(): R|test/UnboundWildcard.MyClass<*>?|
public constructor(): R|test/UnboundWildcard|
public abstract interface MyClass<T : R|kotlin/CharSequence?|> : R|kotlin/Any| {
}
}
@@ -1,9 +1,10 @@
public final class StarProjection : R|kotlin/Any| {
public abstract interface MyClass<T : R|kotlin/CharSequence?|> : R|kotlin/Any| {
}
public final fun foo(): R|test/StarProjection.MyClass<*>|
public constructor(): R|test/StarProjection|
public abstract interface MyClass<T : R|kotlin/CharSequence?|> : R|kotlin/Any| {
}
}