outfoxx / swiftpoet

Kotlin and Java API for generating .swift source files.
Apache License 2.0
277 stars 26 forks source link

Fix generation functions with 'set' and 'get' names #82

Closed comm1x closed 6 months ago

comm1x commented 1 year ago

The original problem was that FunctionSpecTests.testGenSetFunction() test was failed.

It means you can't generate such code: func set(property: Swift.String) with swift poet. Instead of this you will get set(property) as result.

This PR fix this issue.

dnkoutso commented 6 months ago

I verified this locally and it works.