Change lookup tags from interfaces to abstract classes
This commit is contained in:
committed by
Mikhail Glukhikh
parent
a10deb5f69
commit
146a53f18c
@@ -30,4 +30,4 @@ class FirTypeAliasSymbol(
|
||||
|
||||
class TypeAliasLookupTagImpl(
|
||||
override val classId: ClassId
|
||||
) : ConeTypeAliasLookupTag
|
||||
) : ConeTypeAliasLookupTag()
|
||||
|
||||
+3
-5
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user