Minor
This commit is contained in:
+2
-3
@@ -240,8 +240,7 @@ class TypeInstantiationItems(
|
|||||||
lookupElement = lookupElement.assignSmartCompletionPriority(SmartCompletionItemPriority.INSTANTIATION)
|
lookupElement = lookupElement.assignSmartCompletionPriority(SmartCompletionItemPriority.INSTANTIATION)
|
||||||
}
|
}
|
||||||
|
|
||||||
//TODO: cannot use lookupElement from context due to KT-6344
|
class InstantiationLookupElement : LookupElementDecorator<LookupElement>(lookupElement) {
|
||||||
class InstantiationLookupElement(lookupElement: LookupElement) : LookupElementDecorator<LookupElement>(lookupElement) {
|
|
||||||
override fun getLookupString() = lookupString
|
override fun getLookupString() = lookupString
|
||||||
|
|
||||||
override fun getAllLookupStrings() = allLookupStrings
|
override fun getAllLookupStrings() = allLookupStrings
|
||||||
@@ -275,7 +274,7 @@ class TypeInstantiationItems(
|
|||||||
override fun hashCode() = lookupString.hashCode()
|
override fun hashCode() = lookupString.hashCode()
|
||||||
}
|
}
|
||||||
|
|
||||||
return InstantiationLookupElement(lookupElement).addTail(tail)
|
return InstantiationLookupElement().addTail(tail)
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun KotlinType.areTypeParametersUsedInside(freeParameters: Collection<TypeParameterDescriptor>): Boolean {
|
private fun KotlinType.areTypeParametersUsedInside(freeParameters: Collection<TypeParameterDescriptor>): Boolean {
|
||||||
|
|||||||
Reference in New Issue
Block a user