aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Analysis/CommentsAPI.kt2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Analysis/CommentsAPI.kt b/src/Analysis/CommentsAPI.kt
index c8a2ed3c..a1823740 100644
--- a/src/Analysis/CommentsAPI.kt
+++ b/src/Analysis/CommentsAPI.kt
@@ -8,7 +8,7 @@ import org.jetbrains.jet.lang.psi.*
fun BindingContext.getDocumentationElements(descriptor: DeclarationDescriptor): List<KDoc> {
val psiElement = DescriptorToSourceUtils.descriptorToDeclaration(descriptor)
if (psiElement == null)
- throw IllegalArgumentException("$descriptor doesn't have connection to source code, is it synthetic?")
+ return listOf()
return psiElement.previousSiblings() // go backwards
.takeWhile { it !is JetDeclaration } // till previous declaration