You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: plugins/compose/compiler-hosted/integration-tests/src/jvmTest/kotlin/androidx/compose/compiler/plugins/kotlin/FunctionBodySkippingTransformTests.kt
+23
Original file line number
Diff line number
Diff line change
@@ -1307,6 +1307,29 @@ class FunctionBodySkippingTransformTests(
Copy file name to clipboardExpand all lines: plugins/compose/compiler-hosted/integration-tests/src/jvmTest/resources/golden/androidx.compose.compiler.plugins.kotlin.FunctionBodySkippingTransformTests/testReceiverIssue[useFir = false].txt
Copy file name to clipboardExpand all lines: plugins/compose/compiler-hosted/integration-tests/src/jvmTest/resources/golden/androidx.compose.compiler.plugins.kotlin.FunctionBodySkippingTransformTests/testReceiverIssue[useFir = true].txt
Copy file name to clipboardExpand all lines: plugins/compose/compiler-hosted/integration-tests/src/jvmTest/resources/golden/androidx.compose.compiler.plugins.kotlin.FunctionBodySkippingTransformTestsNoSource/ensureNoGroupsAreAddedToAnExplicitGroupsComposable[useFir = false].txt
Copy file name to clipboardExpand all lines: plugins/compose/compiler-hosted/integration-tests/src/jvmTest/resources/golden/androidx.compose.compiler.plugins.kotlin.FunctionBodySkippingTransformTestsNoSource/ensureNoGroupsAreAddedToAnExplicitGroupsComposable[useFir = true].txt
Copy file name to clipboardExpand all lines: plugins/compose/compiler-hosted/src/main/java/androidx/compose/compiler/plugins/kotlin/lower/ComposableFunctionBodyTransformer.kt
+6-6
Original file line number
Diff line number
Diff line change
@@ -750,8 +750,7 @@ class ComposableFunctionBodyTransformer(
750
750
val body = declaration.body!!
751
751
752
752
val hasExplicitGroups = declaration.hasExplicitGroups
753
-
val isReadOnly = declaration.hasReadOnlyAnnotation ||
754
-
declaration.isComposableDelegatedAccessor()
753
+
val isReadOnly = declaration.hasReadOnlyAnnotation || declaration.isComposableDelegatedAccessor()
755
754
756
755
// An outer group is required if we are a lambda or dynamic method or the runtime doesn't
757
756
// support remember after call. A outer group is explicitly elided by readonly and has
@@ -822,7 +821,7 @@ class ComposableFunctionBodyTransformer(
822
821
scope,
823
822
irFunctionSourceKey()
824
823
)
825
-
collectSourceInformation &&!hasExplicitGroups ->
824
+
collectSourceInformation ->
826
825
irSourceInformationMarkerStart(
827
826
body,
828
827
scope,
@@ -835,7 +834,7 @@ class ComposableFunctionBodyTransformer(
0 commit comments