Mark KtDestructuringDeclarationReference as multi reference entity
This change fixes tests related to components: - org.jetbrains.kotlin.idea.codeInsight.InsertImportOnPasteTestGenerated$Copy.testMultiDeclaration - org.jetbrains.kotlin.idea.codeInsight.InsertImportOnPasteTestGenerated$Cut.testMultiDeclaration Initially, it was marked as multi reference in https://github.com/JetBrains/intellij-community/blob/388ff78e61a7e0599c85b07766a03d956d7583da/plugins/kotlin/frontend-independent/src/org/jetbrains/kotlin/idea/references/KtDestructuringDeclarationReference.kt#L14 But then this change was lost during commonization of this implementation with FIR ^KTIJ-19815 Fixed
This commit is contained in:
+2
-1
@@ -11,10 +11,11 @@ import com.intellij.util.IncorrectOperationException
|
||||
import org.jetbrains.kotlin.name.Name
|
||||
import org.jetbrains.kotlin.psi.KtDestructuringDeclaration
|
||||
import org.jetbrains.kotlin.psi.KtDestructuringDeclarationEntry
|
||||
import org.jetbrains.kotlin.idea.references.KtMultiReference
|
||||
|
||||
abstract class KtDestructuringDeclarationReference(
|
||||
element: KtDestructuringDeclarationEntry
|
||||
) : AbstractKtReference<KtDestructuringDeclarationEntry>(element) {
|
||||
) : KtMultiReference<KtDestructuringDeclarationEntry>(element) {
|
||||
|
||||
override fun getRangeInElement() = TextRange(0, element.textLength)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user