diff options
author | Denis Zharkov <denis.zharkov@jetbrains.com> | 2015-07-09 12:21:49 +0300 |
---|---|---|
committer | Denis Zharkov <denis.zharkov@jetbrains.com> | 2015-07-09 12:21:49 +0300 |
commit | 2f3bd214b78c99d06e4dac9e7ff474fd8f0d7ec5 (patch) | |
tree | fa09c8bb187a46a0a1eacd2d722ab6209935e24e /src/Kotlin/DocumentationBuilder.kt | |
parent | 3921ac60ee89bbd02444f85e8b8b52c7f77c6e27 (diff) | |
download | dokka-2f3bd214b78c99d06e4dac9e7ff474fd8f0d7ec5.tar.gz dokka-2f3bd214b78c99d06e4dac9e7ff474fd8f0d7ec5.tar.bz2 dokka-2f3bd214b78c99d06e4dac9e7ff474fd8f0d7ec5.zip |
Fix project after types enhancement from annotations
Diffstat (limited to 'src/Kotlin/DocumentationBuilder.kt')
-rw-r--r-- | src/Kotlin/DocumentationBuilder.kt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Kotlin/DocumentationBuilder.kt b/src/Kotlin/DocumentationBuilder.kt index 8bbd7743..bea2f6fa 100644 --- a/src/Kotlin/DocumentationBuilder.kt +++ b/src/Kotlin/DocumentationBuilder.kt @@ -115,7 +115,7 @@ class DocumentationBuilder(val resolutionFacade: ResolutionFacade, } fun DeclarationDescriptor.isDeprecated(): Boolean = getAnnotations().any { - DescriptorUtils.getFqName(it.getType().getConstructor().getDeclarationDescriptor()).asString() == "kotlin.deprecated" + DescriptorUtils.getFqName(it.getType().getConstructor().getDeclarationDescriptor()!!).asString() == "kotlin.deprecated" } || (this is ConstructorDescriptor && getContainingDeclaration().isDeprecated()) fun DeclarationDescriptor.signature(): String = when(this) { @@ -664,7 +664,7 @@ class DocumentationBuilder(val resolutionFacade: ResolutionFacade, } fun ReceiverParameterDescriptor.build(): DocumentationNode { - var receiverClass: DeclarationDescriptor = getType().getConstructor().getDeclarationDescriptor() + var receiverClass: DeclarationDescriptor = getType().getConstructor().getDeclarationDescriptor()!! if ((receiverClass as? ClassDescriptor)?.isCompanionObject() ?: false) { receiverClass = receiverClass.getContainingDeclaration()!! } |