| 1234567891011121314151617181920212223242526272829 |
- // This file was generated using gyb. Do not edit it directly. Edit
- // TableRowBuilder.swift.gyb instead.
- // swiftformat:options --allow-partial-wrapping true
- %{
- maximum_column_count = 20
- }%
- /// A result builder for constructing a collection of table columns.
- @resultBuilder
- public struct TableRowBuilder<RowValue> {
- public static func buildBlock() -> EmptyTableRowContent<RowValue> {
- EmptyTableRowContent<RowValue>()
- }
- %for i in range(1, maximum_column_count + 1):
- public static func buildBlock<
- ${", ".join("Content%d: View" % j for j in range(i))}
- >(
- ${", ".join("_ column%d: TableColumn<RowValue, Content%d>" % (j, j) for j in range(i))}
- ) -> TupleTableRowContent${i}<
- RowValue, ${", ".join("Content%d" % j for j in range(i))}
- > {
- TupleTableRowContent${i}(
- ${", ".join("column%d" % j for j in range(i))}
- )
- }
- %end
- }
|