Minor: change rendering of class objects' types in completion
This commit is contained in:
@@ -187,10 +187,7 @@ public class LookupElementFactory(
|
||||
if (descriptor.getExtensionReceiverParameter() != null) {
|
||||
val container = descriptor.getContainingDeclaration()
|
||||
val containerPresentation = if (container is ClassDescriptor) {
|
||||
if (container.getKind() != ClassKind.CLASS_OBJECT)
|
||||
DescriptorUtils.getFqNameFromTopLevelClass(container).toString()
|
||||
else
|
||||
"class object for " + DescriptorUtils.getFqNameFromTopLevelClass(container.getContainingDeclaration())
|
||||
DescriptorUtils.getFqNameFromTopLevelClass(container).toString()
|
||||
}
|
||||
else {
|
||||
DescriptorUtils.getFqName(container).toString()
|
||||
|
||||
@@ -10,4 +10,4 @@ class R {
|
||||
}
|
||||
}
|
||||
|
||||
// EXIST: { itemText: "f", tailText: "() for B in class object for R" }
|
||||
// EXIST: { itemText: "f", tailText: "() for B in R.Default" }
|
||||
|
||||
Reference in New Issue
Block a user