From 044e1b86602662c78bb2ed12b9d645ab10b23429 Mon Sep 17 00:00:00 2001 From: Ilya Ryzhenkov Date: Fri, 11 Jul 2014 17:11:35 +0400 Subject: Setup test framework and empty DocumentationModel to kickstart test development. --- src/CommentsAPI.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/CommentsAPI.kt') 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?") -- cgit