diff options
author | Ilya Ryzhenkov <orangy@jetbrains.com> | 2014-10-13 20:14:45 +0400 |
---|---|---|
committer | Ilya Ryzhenkov <orangy@jetbrains.com> | 2014-10-13 20:14:45 +0400 |
commit | 1cb3af902c8f2e3f73e7c78781373f1ab5788772 (patch) | |
tree | 88aaa6a10f0da26d28e9c2792313a2a11cf28356 /src/Analysis/CommentsAPI.kt | |
parent | efd1947722587d15bf1c81a0fd7ca722a7bc6fa8 (diff) | |
download | dokka-1cb3af902c8f2e3f73e7c78781373f1ab5788772.tar.gz dokka-1cb3af902c8f2e3f73e7c78781373f1ab5788772.tar.bz2 dokka-1cb3af902c8f2e3f73e7c78781373f1ab5788772.zip |
Remove BindingContext and migrate to ResolveSession, discover symbols for {code ...} directive.
Diffstat (limited to 'src/Analysis/CommentsAPI.kt')
-rw-r--r-- | src/Analysis/CommentsAPI.kt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Analysis/CommentsAPI.kt b/src/Analysis/CommentsAPI.kt index a17b6aa4..2407de76 100644 --- a/src/Analysis/CommentsAPI.kt +++ b/src/Analysis/CommentsAPI.kt @@ -5,8 +5,8 @@ import org.jetbrains.jet.lang.resolve.* import org.jetbrains.jet.kdoc.psi.api.* import org.jetbrains.jet.lang.psi.* -fun BindingContext.getDocumentationElements(descriptor: DeclarationDescriptor): List<KDoc> { - val psiElement = DescriptorToSourceUtils.descriptorToDeclaration(descriptor) +fun DeclarationDescriptor.getDocumentationElements(): List<KDoc> { + val psiElement = DescriptorToSourceUtils.descriptorToDeclaration(this) if (psiElement == null) return listOf() |