Skip to content

Commit

Permalink
Merge branch 'main' into escape-prop-in-builder
Browse files Browse the repository at this point in the history
  • Loading branch information
ebrattli authored Aug 13, 2024
2 parents a6be63d + 47a7770 commit 243d2ef
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ internal fun readFromResponseCodeBlock(
}
.add(
CodeBlock.of(
"%L·=·%L.$fromJson($reader, $customScalarAdapters)\n",
"%N·=·%L.$fromJson($reader, $customScalarAdapters)\n",
property.info.responseName.variableName(),
context.resolver.resolveModelAdapter(property.info.type.modelPath()),
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ internal fun TypeSpec.Builder.withCopyImplementation(className: ClassName): Type
.add("return %T(", className)
.apply {
constructorProperties.forEach {
add("%L,", it.name)
add("%N,", it.name)
}
}
.add(")")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ internal fun TypeSpec.patchKotlinNativeOptionalArrayProperties(): TypeSpec {
FunSpec
.builder("${propertySpec.name}FilterNotNull")
.returns(nonOptionalListType)
.addStatement("return·%L%L.filterNotNull()", propertySpec.name, if (propertySpec.type.isNullable) "?" else "")
.addStatement("return·%N%L.filterNotNull()", propertySpec.name, if (propertySpec.type.isNullable) "?" else "")
.build()
}
return toBuilder()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ internal class CompiledSelectionsBuilder(
private fun IrArgument.codeBlock(): CodeBlock {
val argumentBuilder = CodeBlock.builder()
argumentBuilder.add(
"%T(%T.%L)",
"%T(%T.%N)",
KotlinSymbols.CompiledArgument,
context.resolver.resolveArgumentDefinition(definitionId),
definitionPropertyName,
Expand Down

0 comments on commit 243d2ef

Please sign in to comment.