Deprecated method usage fix
This commit is contained in:
@@ -330,7 +330,7 @@ fun LookupElementFactory.createLookupElementForType(type: JetType): LookupElemen
|
|||||||
|
|
||||||
if (KotlinBuiltIns.isExactFunctionOrExtensionFunctionType(type)) {
|
if (KotlinBuiltIns.isExactFunctionOrExtensionFunctionType(type)) {
|
||||||
val text = IdeDescriptorRenderers.SOURCE_CODE_SHORT_NAMES_IN_TYPES.renderType(type)
|
val text = IdeDescriptorRenderers.SOURCE_CODE_SHORT_NAMES_IN_TYPES.renderType(type)
|
||||||
val baseLookupElement = LookupElementBuilder.create(text).setIcon(JetIcons.LAMBDA)
|
val baseLookupElement = LookupElementBuilder.create(text).withIcon(JetIcons.LAMBDA)
|
||||||
return BaseTypeLookupElement(type, baseLookupElement)
|
return BaseTypeLookupElement(type, baseLookupElement)
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|||||||
Reference in New Issue
Block a user