More safe
This commit is contained in:
@@ -63,7 +63,7 @@ class NotImportedWeigher(private val classifier: ImportableFqNameClassifier) : L
|
||||
class NotImportedStaticMemberWeigher(private val classifier: ImportableFqNameClassifier) : LookupElementWeigher("kotlin.notImportedMember") {
|
||||
override fun weigh(element: LookupElement): Comparable<*>? {
|
||||
if (element.getUserData(ITEM_PRIORITY_KEY) != ItemPriority.STATIC_MEMBER) return null
|
||||
val fqName = (element.`object` as DeclarationLookupObject).importableFqName!!
|
||||
val fqName = (element.`object` as DeclarationLookupObject).importableFqName ?: return null
|
||||
return classifier.classify(fqName.parent(), false)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user