[FIR] Add symbol to all declarations. Get rid of FirSymbolOwner
This commit is contained in:
+3
-3
@@ -191,11 +191,11 @@ fun deserializeClassToSymbol(
|
||||
addCloneForArrayIfNeeded(classId, context.dispatchReceiver)
|
||||
addSerializableIfNeeded(classId)
|
||||
|
||||
declarations.sortWith(object : Comparator<FirDeclaration> {
|
||||
override fun compare(a: FirDeclaration, b: FirDeclaration): Int {
|
||||
declarations.sortWith(object : Comparator<FirDeclaration<*>> {
|
||||
override fun compare(a: FirDeclaration<*>, b: FirDeclaration<*>): Int {
|
||||
// Reorder members based on their type and name only.
|
||||
// See FE 1.0's [DeserializedMemberScope#addMembers].
|
||||
if (a is FirMemberDeclaration && b is FirMemberDeclaration) {
|
||||
if (a is FirMemberDeclaration<*> && b is FirMemberDeclaration<*>) {
|
||||
return FirMemberDeclarationComparator.TypeAndNameComparator.compare(a, b)
|
||||
}
|
||||
return 0
|
||||
|
||||
Reference in New Issue
Block a user