[SLC] SymbolLightModifierList: improve equals
^KTIJ-23783
This commit is contained in:
committed by
Space Team
parent
2ec09408d3
commit
c5c79a5fb5
+2
-1
@@ -72,7 +72,8 @@ internal open class SymbolLightModifierList<out T : KtLightElement<KtModifierLis
|
||||
override fun findAnnotation(qualifiedName: String): PsiAnnotation? =
|
||||
lazyAnnotations?.value?.firstOrNull { it.qualifiedName == qualifiedName }
|
||||
|
||||
override fun equals(other: Any?): Boolean = this === other
|
||||
override fun equals(other: Any?): Boolean = this === other || other is SymbolLightModifierList<*> && other.kotlinOrigin == kotlinOrigin
|
||||
|
||||
override fun hashCode(): Int = kotlinOrigin.hashCode()
|
||||
|
||||
override fun hasExplicitModifier(name: String) = hasModifierProperty(name)
|
||||
|
||||
Reference in New Issue
Block a user