Skip to content

Commit

Permalink
Avoid clashing with the getter field
Browse files Browse the repository at this point in the history
  • Loading branch information
martinbonnin committed Aug 2, 2024
1 parent 1bb2514 commit 9fb3041
Show file tree
Hide file tree
Showing 41 changed files with 258 additions and 202 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ internal class EnumAsEnumBuilder(
.indent()
.add(
values.map {
CodeBlock.of("%N", it.targetName.escapeKotlinReservedWordInEnum())
CodeBlock.of("%T.%N", ClassName(packageName, simpleName), it.targetName.escapeKotlinReservedWordInEnum())
}.joinToCode(",\n")
)
.unindent()
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ enum Gravity {

# an enum value that clashes with the rawValue type
String

field
}

enum GravityAsEnum {
Expand All @@ -39,4 +41,6 @@ enum GravityAsEnum {

"an enum value that clashes with the rawValue type"
String

field
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 9fb3041

Please sign in to comment.