diff options
author | Simon Ogorodnik <Simon.Ogorodnik@jetbrains.com> | 2016-11-02 19:50:04 +0300 |
---|---|---|
committer | Simon Ogorodnik <Simon.Ogorodnik@jetbrains.com> | 2016-11-02 19:50:04 +0300 |
commit | b64579c6d444a39882ceeef08bdc3eedb584e827 (patch) | |
tree | 2cb0eacd445bffa64f38e3a744db4e2334aea1c6 /core/src/main/kotlin/Kotlin/DocumentationBuilder.kt | |
parent | 8c7ba164d96b8b5018b2eb5ec0717de29c44b172 (diff) | |
download | dokka-b64579c6d444a39882ceeef08bdc3eedb584e827.tar.gz dokka-b64579c6d444a39882ceeef08bdc3eedb584e827.tar.bz2 dokka-b64579c6d444a39882ceeef08bdc3eedb584e827.zip |
Added test and post-review fix
Diffstat (limited to 'core/src/main/kotlin/Kotlin/DocumentationBuilder.kt')
-rw-r--r-- | core/src/main/kotlin/Kotlin/DocumentationBuilder.kt | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/core/src/main/kotlin/Kotlin/DocumentationBuilder.kt b/core/src/main/kotlin/Kotlin/DocumentationBuilder.kt index f09c1fc0..ecb6edf2 100644 --- a/core/src/main/kotlin/Kotlin/DocumentationBuilder.kt +++ b/core/src/main/kotlin/Kotlin/DocumentationBuilder.kt @@ -732,12 +732,11 @@ fun CallableMemberDescriptor.getExtensionClassDescriptor(): ClassifierDescriptor } fun DeclarationDescriptor.signature(): String = when(this) { - is ClassDescriptor, is PackageFragmentDescriptor -> DescriptorUtils.getFqName(this).asString() + is ClassDescriptor, is PackageFragmentDescriptor, is PackageViewDescriptor -> DescriptorUtils.getFqName(this).asString() is PropertyDescriptor -> containingDeclaration.signature() + "$" + name + receiverSignature() is FunctionDescriptor -> containingDeclaration.signature() + "$" + name + parameterSignature() is ValueParameterDescriptor -> containingDeclaration.signature() + "/" + name is TypeParameterDescriptor -> containingDeclaration.signature() + "*" + name - is PackageViewDescriptor -> fqName.toString() else -> throw UnsupportedOperationException("Don't know how to calculate signature for $this") } |