Change lookup tags from interfaces to abstract classes

This commit is contained in:
Simon Ogorodnik
2019-06-04 14:36:23 +03:00
committed by Mikhail Glukhikh
parent a10deb5f69
commit 146a53f18c
16 changed files with 37 additions and 34 deletions
@@ -30,4 +30,4 @@ class FirTypeAliasSymbol(
class TypeAliasLookupTagImpl(
override val classId: ClassId
) : ConeTypeAliasLookupTag
) : ConeTypeAliasLookupTag()
@@ -9,16 +9,14 @@ import org.jetbrains.kotlin.fir.declarations.FirTypeParameter
import org.jetbrains.kotlin.fir.symbols.*
import org.jetbrains.kotlin.name.Name
class FirTypeParameterSymbol : AbstractFirBasedSymbol<FirTypeParameter>(), ConeTypeParameterSymbol, ConeTypeParameterLookupTag,
ConeClassifierLookupTagWithFixedSymbol {
class FirTypeParameterSymbol : AbstractFirBasedSymbol<FirTypeParameter>(), ConeTypeParameterSymbol {
override val name: Name
get() = fir.name
override val symbol: ConeClassifierSymbol
get() = this
private val lookupTag = ConeTypeParameterLookupTag(this)
override fun toLookupTag(): ConeTypeParameterLookupTag = this
override fun toLookupTag(): ConeTypeParameterLookupTag = lookupTag
override fun equals(other: Any?): Boolean {
return other is FirTypeParameterSymbol && fir == other.fir