diff options
author | Błażej Kardyś <bkardys@virtuslab.com> | 2019-11-06 10:55:10 +0100 |
---|---|---|
committer | Błażej Kardyś <bkardys@virtuslab.com> | 2019-11-06 10:55:21 +0100 |
commit | 50d1bf3e2f8aa8340e7ce797eb55aba500b64be3 (patch) | |
tree | 17f6379e2bc7492bac0717362ed011721bd9d241 | |
parent | ae53f0525c676a5483609fdde144594a36d8d582 (diff) | |
download | dokka-50d1bf3e2f8aa8340e7ce797eb55aba500b64be3.tar.gz dokka-50d1bf3e2f8aa8340e7ce797eb55aba500b64be3.tar.bz2 dokka-50d1bf3e2f8aa8340e7ce797eb55aba500b64be3.zip |
Filtering out synthetic functions
-rw-r--r-- | core/src/main/kotlin/DokkaDescriptorVisitor.kt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/core/src/main/kotlin/DokkaDescriptorVisitor.kt b/core/src/main/kotlin/DokkaDescriptorVisitor.kt index 0a026157..01c6959e 100644 --- a/core/src/main/kotlin/DokkaDescriptorVisitor.kt +++ b/core/src/main/kotlin/DokkaDescriptorVisitor.kt @@ -7,6 +7,7 @@ import org.jetbrains.dokka.links.DRI import org.jetbrains.dokka.links.withClass import org.jetbrains.kotlin.descriptors.* import org.jetbrains.kotlin.descriptors.impl.DeclarationDescriptorVisitorEmptyBodies +import org.jetbrains.kotlin.resolve.calls.tower.isSynthesized import org.jetbrains.kotlin.resolve.scopes.DescriptorKindFilter import org.jetbrains.kotlin.resolve.scopes.MemberScope import org.jetbrains.kotlin.idea.kdoc.findKDoc @@ -101,6 +102,7 @@ object DokkaDescriptorVisitor : DeclarationDescriptorVisitorEmptyBodies<Document private fun MemberScope.functions(parent: DRI): List<Function> = getContributedDescriptors(DescriptorKindFilter.FUNCTIONS) { true } .filterIsInstance<FunctionDescriptor>() + .filterNot { it.isSynthesized } .map { visitFunctionDescriptor(it, parent) } private fun MemberScope.properties(parent: DRI): List<Property> = |