Skip to content

Commit

Permalink
Revert change in ComposeContentEmitterReturningValues
Browse files Browse the repository at this point in the history
  • Loading branch information
mrmans0n committed Jun 9, 2023
1 parent 84d5c01 commit 4fa894a
Showing 1 changed file with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,6 @@ class ComposeContentEmitterReturningValues : ComposeKtVisitor {
// We don't want to analyze composables that are extension functions, as they might be things like
// BoxScope which are legit, and we want to avoid false positives.
.filter { it.hasBlockBody() }
// Same applies to context receivers: we could have a BoxScope/ColumnScope/RowScope and it'd be legit.
// We don't have a way to know for sure, so we'd better avoid the issue altogether.
.filter { it.contextReceivers.isEmpty() }
// We want only methods with a body
.filterNot { it.hasReceiverType }
// Now we want to get the count of direct emitters in them: the composables we know for a fact that output UI
Expand Down

0 comments on commit 4fa894a

Please sign in to comment.