Render class object name when verbose.
This commit is contained in:
@@ -560,16 +560,18 @@ public class DescriptorRendererImpl implements DescriptorRenderer {
|
|||||||
}
|
}
|
||||||
|
|
||||||
List<TypeParameterDescriptor> typeParameters = klass.getTypeConstructor().getParameters();
|
List<TypeParameterDescriptor> typeParameters = klass.getTypeConstructor().getParameters();
|
||||||
if (!classObject) {
|
|
||||||
|
if (!classObject || verbose) {
|
||||||
renderName(klass, builder);
|
renderName(klass, builder);
|
||||||
|
}
|
||||||
renderTypeParameters(typeParameters, builder, false);
|
renderTypeParameters(typeParameters, builder, false);
|
||||||
if (classWithPrimaryConstructor) {
|
|
||||||
|
if (!classObject && classWithPrimaryConstructor) {
|
||||||
ConstructorDescriptor primaryConstructor = klass.getUnsubstitutedPrimaryConstructor();
|
ConstructorDescriptor primaryConstructor = klass.getUnsubstitutedPrimaryConstructor();
|
||||||
if (primaryConstructor != null) {
|
if (primaryConstructor != null) {
|
||||||
renderValueParameters(primaryConstructor, builder);
|
renderValueParameters(primaryConstructor, builder);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
if (!klass.equals(KotlinBuiltIns.getInstance().getNothing())) {
|
if (!klass.equals(KotlinBuiltIns.getInstance().getNothing())) {
|
||||||
Collection<JetType> supertypes = klass.getTypeConstructor().getSupertypes();
|
Collection<JetType> supertypes = klass.getTypeConstructor().getSupertypes();
|
||||||
|
|||||||
Reference in New Issue
Block a user