aboutsummaryrefslogtreecommitdiff
path: root/src/CommentsAPI.kt
diff options
context:
space:
mode:
Diffstat (limited to 'src/CommentsAPI.kt')
-rw-r--r--src/CommentsAPI.kt2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/CommentsAPI.kt b/src/CommentsAPI.kt
index 4bfb19e6..21ba1067 100644
--- a/src/CommentsAPI.kt
+++ b/src/CommentsAPI.kt
@@ -6,7 +6,7 @@ import org.jetbrains.jet.lang.resolve.*
import org.jetbrains.jet.kdoc.psi.api.*
import org.jetbrains.jet.lang.psi.JetDeclaration
-fun BindingContext.getComments(descriptor: DeclarationDescriptor): KDoc? {
+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?")