Skip to content

Commit

Permalink
use %N instead of %L for annotation arg names so keywords are handled (
Browse files Browse the repository at this point in the history
  • Loading branch information
dkilmer committed May 14, 2022
1 parent bd04961 commit 2b2b160
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -41,7 +41,7 @@ public fun KSAnnotation.toAnnotationSpec(): AnnotationSpec {
for (argument in arguments) {
val member = CodeBlock.builder()
val name = argument.name!!.getShortName()
member.add("%L = ", name)
member.add("%N = ", name)
addValueToBlock(argument.value!!, member)
builder.addMember(member.build())
}
Expand Down

0 comments on commit 2b2b160

Please sign in to comment.