Skip to content

Commit 62e2010

Browse files
committed
Reorganize the hierarchy of builders
1 parent 3d979d7 commit 62e2010

24 files changed

+493
-492
lines changed

core/common/src/LocalDate.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public expect class LocalDate : Comparable<LocalDate> {
6363
* There is a collection of predefined formats in [LocalDate.Formats].
6464
*/
6565
@Suppress("FunctionName")
66-
public fun Format(block: DateFormatBuilder.() -> Unit): DateTimeFormat<LocalDate>
66+
public fun Format(block: DateTimeFormatBuilder.WithDate.() -> Unit): DateTimeFormat<LocalDate>
6767

6868
internal val MIN: LocalDate
6969
internal val MAX: LocalDate

core/common/src/LocalDateTime.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public expect class LocalDateTime : Comparable<LocalDateTime> {
6565
* There is a collection of predefined formats in [LocalDateTime.Formats].
6666
*/
6767
@Suppress("FunctionName")
68-
public fun Format(builder: DateTimeFormatBuilder.() -> Unit): DateTimeFormat<LocalDateTime>
68+
public fun Format(builder: DateTimeFormatBuilder.WithDateTime.() -> Unit): DateTimeFormat<LocalDateTime>
6969

7070
internal val MIN: LocalDateTime
7171
internal val MAX: LocalDateTime

core/common/src/LocalTime.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ public expect class LocalTime : Comparable<LocalTime> {
105105
* There is a collection of predefined formats in [LocalTime.Formats].
106106
*/
107107
@Suppress("FunctionName")
108-
public fun Format(builder: TimeFormatBuilderFields.() -> Unit): DateTimeFormat<LocalTime>
108+
public fun Format(builder: DateTimeFormatBuilder.WithTime.() -> Unit): DateTimeFormat<LocalTime>
109109

110110
internal val MIN: LocalTime
111111
internal val MAX: LocalTime

core/common/src/UtcOffset.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,12 +70,12 @@ public expect class UtcOffset {
7070
*
7171
* Since [UtcOffset] values are rarely formatted and parsed on their own,
7272
* instances of [DateTimeFormat] obtained here will likely need to be passed to
73-
* [UtcOffsetFormatBuilderFields.appendOffset] in a format builder for a larger data structure.
73+
* [DateTimeFormatBuilder.WithUtcOffset.appendOffset] in a format builder for a larger data structure.
7474
*
7575
* There is a collection of predefined formats in [UtcOffset.Formats].
7676
*/
7777
@Suppress("FunctionName")
78-
public fun Format(block: UtcOffsetFormatBuilderFields.() -> Unit): DateTimeFormat<UtcOffset>
78+
public fun Format(block: DateTimeFormatBuilder.WithUtcOffset.() -> Unit): DateTimeFormat<UtcOffset>
7979
}
8080

8181
/**

0 commit comments

Comments
 (0)