-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #35 from MercuryTechnologies/tagged-object-option
Configurable sum of product styling
- Loading branch information
Showing
11 changed files
with
319 additions
and
31 deletions.
There are no files selected for viewing
14 changes: 14 additions & 0 deletions
14
.golden/kotlinEnumSumOfProductWithTaggedObjectAndSingleNullarySpec/golden
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
@JsonClassDiscriminator("tag") | ||
@Parcelize | ||
@Serializable | ||
sealed class Enum : Parcelable { | ||
@Parcelize | ||
@Serializable | ||
@SerialName("dataCons0") | ||
data class DataCons0(val contents: Record0) : Enum() | ||
|
||
@Parcelize | ||
@Serializable | ||
@SerialName("dataCons1") | ||
object DataCons1 : Enum() | ||
} |
14 changes: 14 additions & 0 deletions
14
.golden/kotlinEnumSumOfProductWithTaggedObjectStyleSpec/golden
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
@JsonClassDiscriminator("tag") | ||
@Parcelize | ||
@Serializable | ||
sealed class Enum : Parcelable { | ||
@Parcelize | ||
@Serializable | ||
@SerialName("dataCons0") | ||
data class DataCons0(val contents: Record0) : Enum() | ||
|
||
@Parcelize | ||
@Serializable | ||
@SerialName("dataCons1") | ||
data class DataCons1(val contents: Record1) : Enum() | ||
} |
6 changes: 6 additions & 0 deletions
6
.golden/kotlinRecord0SumOfProductWithTaggedObjectAndSingleNullarySpec/golden
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
@Parcelize | ||
@Serializable | ||
data class Record0( | ||
val record0Field0: Int, | ||
val record0Field1: Int, | ||
) : Parcelable |
6 changes: 6 additions & 0 deletions
6
.golden/kotlinRecord0SumOfProductWithTaggedObjectStyleSpec/golden
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
@Parcelize | ||
@Serializable | ||
data class Record0( | ||
val record0Field0: Int, | ||
val record0Field1: Int, | ||
) : Parcelable |
6 changes: 6 additions & 0 deletions
6
.golden/kotlinRecord1SumOfProductWithTaggedObjectStyleSpec/golden
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
@Parcelize | ||
@Serializable | ||
data class Record1( | ||
val record1Field0: Int, | ||
val record1Field1: Int, | ||
) : Parcelable |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.