More correct rendering of synthetic extension descriptors
This commit is contained in:
@@ -327,12 +327,12 @@ internal class DescriptorRendererImpl(
|
|||||||
builder.append(" is a module")
|
builder.append(" is a module")
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
builder.append(" ").append(renderMessage("defined in")).append(" ")
|
|
||||||
|
|
||||||
val containingDeclaration = descriptor.getContainingDeclaration()
|
val containingDeclaration = descriptor.containingDeclaration
|
||||||
if (containingDeclaration != null) {
|
if (containingDeclaration != null && containingDeclaration !is ModuleDescriptor) {
|
||||||
|
builder.append(" ").append(renderMessage("defined in")).append(" ")
|
||||||
val fqName = DescriptorUtils.getFqName(containingDeclaration)
|
val fqName = DescriptorUtils.getFqName(containingDeclaration)
|
||||||
builder.append(if (FqName.ROOT.equalsTo(fqName)) "root package" else renderFqName(fqName))
|
builder.append(if (fqName.isRoot) "root package" else renderFqName(fqName))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
private fun renderAnnotations(annotated: Annotated, builder: StringBuilder, needBrackets: Boolean = false) {
|
private fun renderAnnotations(annotated: Annotated, builder: StringBuilder, needBrackets: Boolean = false) {
|
||||||
|
|||||||
Reference in New Issue
Block a user