[FIR] Remove equality by fir from symbols
This commit is contained in:
@@ -15,11 +15,6 @@ sealed class FirClassLikeSymbol<D>(
|
|||||||
val classId: ClassId
|
val classId: ClassId
|
||||||
) : FirClassifierSymbol<D>() where D : FirClassLikeDeclaration<D>, D : FirSymbolOwner<D> {
|
) : FirClassifierSymbol<D>() where D : FirClassLikeDeclaration<D>, D : FirSymbolOwner<D> {
|
||||||
abstract override fun toLookupTag(): ConeClassLikeLookupTag
|
abstract override fun toLookupTag(): ConeClassLikeLookupTag
|
||||||
|
|
||||||
override fun equals(other: Any?): Boolean =
|
|
||||||
other is FirClassLikeSymbol<*> && fir == other.fir
|
|
||||||
|
|
||||||
override fun hashCode(): Int = fir.hashCode()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
sealed class FirClassSymbol<C : FirClass<C>>(classId: ClassId) : FirClassLikeSymbol<C>(classId) {
|
sealed class FirClassSymbol<C : FirClass<C>>(classId: ClassId) : FirClassLikeSymbol<C>(classId) {
|
||||||
|
|||||||
@@ -17,13 +17,5 @@ class FirTypeParameterSymbol : FirClassifierSymbol<FirTypeParameter>() {
|
|||||||
private val lookupTag = ConeTypeParameterLookupTag(this)
|
private val lookupTag = ConeTypeParameterLookupTag(this)
|
||||||
|
|
||||||
override fun toLookupTag(): ConeTypeParameterLookupTag = lookupTag
|
override fun toLookupTag(): ConeTypeParameterLookupTag = lookupTag
|
||||||
|
|
||||||
override fun equals(other: Any?): Boolean {
|
|
||||||
return other is FirTypeParameterSymbol && fir == other.fir
|
|
||||||
}
|
|
||||||
|
|
||||||
override fun hashCode(): Int {
|
|
||||||
return fir.hashCode()
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user