From 50d1bf3e2f8aa8340e7ce797eb55aba500b64be3 Mon Sep 17 00:00:00 2001 From: Błażej Kardyś Date: Wed, 6 Nov 2019 10:55:10 +0100 Subject: Filtering out synthetic functions --- core/src/main/kotlin/DokkaDescriptorVisitor.kt | 2 ++ 1 file changed, 2 insertions(+) (limited to 'core/src') 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 = getContributedDescriptors(DescriptorKindFilter.FUNCTIONS) { true } .filterIsInstance() + .filterNot { it.isSynthesized } .map { visitFunctionDescriptor(it, parent) } private fun MemberScope.properties(parent: DRI): List = -- cgit