[FIR] Make FirDeclaration an abstract class

This commit is contained in:
Dmitriy Novozhilov
2021-06-20 15:23:25 +03:00
parent b3e5c6e079
commit 1324e9223f
142 changed files with 997 additions and 758 deletions
@@ -195,7 +195,7 @@ fun deserializeClassToSymbol(
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 FirStatusOwner && b is FirStatusOwner) {
return FirMemberDeclarationComparator.TypeAndNameComparator.compare(a, b)
}
return 0