diff options
Diffstat (limited to 'src/CommentsAPI.kt')
-rw-r--r-- | src/CommentsAPI.kt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/CommentsAPI.kt b/src/CommentsAPI.kt index fd281899..4d324d9d 100644 --- a/src/CommentsAPI.kt +++ b/src/CommentsAPI.kt @@ -7,7 +7,8 @@ import org.jetbrains.jet.lang.psi.JetDeclaration fun BindingContext.getDocumentation(descriptor: DeclarationDescriptor): KDoc? { val psiElement = DescriptorToSourceUtils.descriptorToDeclaration(descriptor) - if (psiElement == null) throw IllegalArgumentException("$descriptor doesn't have connection to source code, is it synthetic?") + if (psiElement == null) + throw IllegalArgumentException("$descriptor doesn't have connection to source code, is it synthetic?") return psiElement.previousSiblings().takeWhile { it !is JetDeclaration }.firstOrNull { it is KDoc } as KDoc? } |