Completion fallback to DescriptorToSourceUtilsIde.getAnyDeclaration
That's in case if DescriptorToSourceUtils.getSourceFromDescriptor fails #KT-22373 Fixed
This commit is contained in:
committed by
Alexander Podkhalyuzin
parent
74df1208ae
commit
5c8afea68e
+4
-1
@@ -163,7 +163,10 @@ class BasicLookupElementFactory(
|
||||
|
||||
else -> {
|
||||
lookupObject = object : DeclarationLookupObjectImpl(descriptor) {
|
||||
override val psiElement by lazy { DescriptorToSourceUtils.getSourceFromDescriptor(descriptor) }
|
||||
override val psiElement by lazy {
|
||||
DescriptorToSourceUtils.getSourceFromDescriptor(descriptor)
|
||||
?: DescriptorToSourceUtilsIde.getAnyDeclaration(project, descriptor)
|
||||
}
|
||||
|
||||
override fun getIcon(flags: Int) = KotlinDescriptorIconProvider.getIcon(descriptor, psiElement, flags)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user