Skip to content

Commit

Permalink
Make private
Browse files Browse the repository at this point in the history
  • Loading branch information
vmishenev committed Oct 19, 2022
1 parent 3751efc commit 7e9efc9
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -1018,7 +1018,7 @@ private class DokkaDescriptorVisitor(
org.jetbrains.kotlin.types.Variance.OUT_VARIANCE -> Covariance(this)
}

fun descriptorToAnyDeclaration(descriptor: DeclarationDescriptor): PsiElement? {
private fun descriptorToAnyDeclaration(descriptor: DeclarationDescriptor): PsiElement? {
val effectiveReferencedDescriptors = DescriptorToSourceUtils.getEffectiveReferencedDescriptors(descriptor)
//take any
return effectiveReferencedDescriptors.firstOrNull()?.let { DescriptorToSourceUtils.getSourceFromDescriptor(it) }
Expand Down

0 comments on commit 7e9efc9

Please sign in to comment.