diff options
author | Ilya Ryzhenkov <orangy@jetbrains.com> | 2014-07-11 17:11:35 +0400 |
---|---|---|
committer | Ilya Ryzhenkov <orangy@jetbrains.com> | 2014-07-11 17:11:35 +0400 |
commit | 044e1b86602662c78bb2ed12b9d645ab10b23429 (patch) | |
tree | 91ca7ece2011b71fa10d0b184ccfa234fbe3130d /src/CommentsAPI.kt | |
parent | 9fec3e15c94969f98596ac04130af6e2d9368a89 (diff) | |
download | dokka-044e1b86602662c78bb2ed12b9d645ab10b23429.tar.gz dokka-044e1b86602662c78bb2ed12b9d645ab10b23429.tar.bz2 dokka-044e1b86602662c78bb2ed12b9d645ab10b23429.zip |
Setup test framework and empty DocumentationModel to kickstart test development.
Diffstat (limited to 'src/CommentsAPI.kt')
-rw-r--r-- | src/CommentsAPI.kt | 2 |
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?") |