diff options
author | Ilya Ryzhenkov <orangy@jetbrains.com> | 2014-07-12 03:25:39 +0400 |
---|---|---|
committer | Ilya Ryzhenkov <orangy@jetbrains.com> | 2014-07-12 03:25:39 +0400 |
commit | d627d2cfdfebcddd63669734efb82dfc66e7c7fe (patch) | |
tree | f0c60789cc4b529b86a6ba028bb2bd8a749d9b4c /src/Analysis | |
parent | 7bc3513935588467d4f848bbe40539664fdbdcf9 (diff) | |
download | dokka-d627d2cfdfebcddd63669734efb82dfc66e7c7fe.tar.gz dokka-d627d2cfdfebcddd63669734efb82dfc66e7c7fe.tar.bz2 dokka-d627d2cfdfebcddd63669734efb82dfc66e7c7fe.zip |
Convert string doc to structured DocumentationContent
Diffstat (limited to 'src/Analysis')
-rw-r--r-- | src/Analysis/CommentsAPI.kt | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/Analysis/CommentsAPI.kt b/src/Analysis/CommentsAPI.kt index 6bdc3716..c8a2ed3c 100644 --- a/src/Analysis/CommentsAPI.kt +++ b/src/Analysis/CommentsAPI.kt @@ -5,10 +5,6 @@ import org.jetbrains.jet.lang.resolve.* import org.jetbrains.jet.kdoc.psi.api.* import org.jetbrains.jet.lang.psi.* -fun BindingContext.getDocumentation(descriptor: DeclarationDescriptor): String { - return getDocumentationElements(descriptor).map { it.extractText() }.join("\n") -} - fun BindingContext.getDocumentationElements(descriptor: DeclarationDescriptor): List<KDoc> { val psiElement = DescriptorToSourceUtils.descriptorToDeclaration(descriptor) if (psiElement == null) |