Skip to content

Commit

Permalink
Save sequence produced by AA to a List to not recompute it all time
Browse files Browse the repository at this point in the history
  • Loading branch information
whyoleg committed May 28, 2024
1 parent c995194 commit 1b0a533
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,9 @@ internal class DokkaSymbolVisitor(
val syntheticJavaProperties =
namedClassOrObjectSymbol.buildSelfClassType().getSyntheticJavaPropertiesScope()?.getCallableSignatures()
?.map { it.symbol }
?.filterIsInstance<KtSyntheticJavaPropertySymbol>() ?: emptySequence()
?.filterIsInstance<KtSyntheticJavaPropertySymbol>()
?.toList()
.orEmpty()

fun List<KtJavaFieldSymbol>.filterOutSyntheticJavaPropBackingField() =
filterNot { javaField -> syntheticJavaProperties.any { it.hasBackingField && javaField.name == it.name } }
Expand Down

0 comments on commit 1b0a533

Please sign in to comment.