An alternative implementation is to pass a boolean in constructorBuilder() of FunctionSpec. Not sure if this is the recommended way and happy to do that instead. I guess the problem is that a func can never be marked as convenience but there are other modifiers which can cause a problem anyway so I think the current solution is fine.
closes https://github.com/outfoxx/swiftpoet/issues/83
An alternative implementation is to pass a boolean in
constructorBuilder()
ofFunctionSpec
. Not sure if this is the recommended way and happy to do that instead. I guess the problem is that afunc
can never be marked asconvenience
but there are other modifiers which can cause a problem anyway so I think the current solution is fine.