Skip to content

Commit

Permalink
Add some missing Compose annotations (#2080)
Browse files Browse the repository at this point in the history
Caught by K2 now, thankfully.
  • Loading branch information
JakeWharton authored Jun 4, 2024
1 parent f75ba0f commit fa42afa
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ final class app.cash.redwood.layout.composeui/BoxMeasurePolicy : androidx.compos
}
final class app.cash.redwood.layout.composeui/ComposeUiRedwoodLayoutWidgetFactory : app.cash.redwood.layout.widget/RedwoodLayoutWidgetFactory<kotlin/Function2<androidx.compose.runtime/Composer, kotlin/Int, kotlin/Unit>> { // app.cash.redwood.layout.composeui/ComposeUiRedwoodLayoutWidgetFactory|null[0]
constructor <init>() // app.cash.redwood.layout.composeui/ComposeUiRedwoodLayoutWidgetFactory.<init>|<init>(){}[0]
final fun Box(): app.cash.redwood.layout.widget/Box<kotlin/Function0<kotlin/Unit>> // app.cash.redwood.layout.composeui/ComposeUiRedwoodLayoutWidgetFactory.Box|Box(){}[0]
final fun Box(): app.cash.redwood.layout.widget/Box<kotlin/Function2<androidx.compose.runtime/Composer, kotlin/Int, kotlin/Unit>> // app.cash.redwood.layout.composeui/ComposeUiRedwoodLayoutWidgetFactory.Box|Box(){}[0]
final fun Column(): app.cash.redwood.layout.widget/Column<kotlin/Function2<androidx.compose.runtime/Composer, kotlin/Int, kotlin/Unit>> // app.cash.redwood.layout.composeui/ComposeUiRedwoodLayoutWidgetFactory.Column|Column(){}[0]
final fun Row(): app.cash.redwood.layout.widget/Row<kotlin/Function2<androidx.compose.runtime/Composer, kotlin/Int, kotlin/Unit>> // app.cash.redwood.layout.composeui/ComposeUiRedwoodLayoutWidgetFactory.Row|Row(){}[0]
final fun Spacer(): app.cash.redwood.layout.widget/Spacer<kotlin/Function2<androidx.compose.runtime/Composer, kotlin/Int, kotlin/Unit>> // app.cash.redwood.layout.composeui/ComposeUiRedwoodLayoutWidgetFactory.Spacer|Spacer(){}[0]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ class ComposeUiFlexContainerTest(
addAt(childCount, widget)
}

override fun addAt(index: Int, widget: Widget<() -> Unit>) {
override fun addAt(index: Int, widget: Widget<@Composable () -> Unit>) {
delegate.children.insert(index, widget)
childCount++
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import app.cash.redwood.layout.widget.Spacer
import app.cash.redwood.yoga.FlexDirection

public class ComposeUiRedwoodLayoutWidgetFactory : RedwoodLayoutWidgetFactory<@Composable () -> Unit> {
override fun Box(): Box<() -> Unit> = ComposeUiBox()
override fun Box(): Box<@Composable () -> Unit> = ComposeUiBox()
override fun Column(): Column<@Composable () -> Unit> = ComposeUiFlexContainer(FlexDirection.Column)
override fun Row(): Row<@Composable () -> Unit> = ComposeUiFlexContainer(FlexDirection.Row)
override fun Spacer(): Spacer<@Composable () -> Unit> = ComposeUiSpacer()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ class ComposeUiLazyListTest(
addAt(childCount, widget)
}

override fun addAt(index: Int, widget: Widget<() -> Unit>) {
override fun addAt(index: Int, widget: Widget<@Composable () -> Unit>) {
delegate.items.insert(index, widget)
childCount++
}
Expand Down

0 comments on commit fa42afa

Please sign in to comment.