Skip to content

Commit

Permalink
Revert "#1199 (#1234)" (#1238)
Browse files Browse the repository at this point in the history
This reverts commit 2363f58.
  • Loading branch information
rossbacher authored Oct 2, 2021
1 parent a86a921 commit 74e5f0d
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -106,15 +106,14 @@ internal class KotlinModelBuilderExtensionWriter(
addModifiers(KModifier.INLINE)
addModifiers(if (constructorIsNotPublic) KModifier.INTERNAL else KModifier.PUBLIC)

addStatement("val model = ")
addStatement("add(")
beginControlFlow(
"%T(${params.joinToString(", ") { it.name }}).apply",
modelClass
)
addStatement("modelInitializer()")
endControlFlow()

addStatement("add(model)")
addStatement(")")

model.originatingElements().forEach {
addOriginatingElement(it)
Expand Down

0 comments on commit 74e5f0d

Please sign in to comment.