Stylianos Gakis
11/04/2022, 4:35 PMKSFunctionDeclaration
which I know I want to call inside of the body of a function I am generating, is there a way for me to do that in a better way that just doing something like this:
fun FileSpec.Builder.foo() {
addImport(ksFunctionDeclaration.packageName.asString() + ksFunctionDeclaration.simpleName.asString())
addFunction(
FunSpec
.builder()
// stuff
.addStatement("${ksFunctionDeclaration.simpleName}()")
.build()
)
}
I feel like I must be missing some part of the API that simplifies this. or am I wrong?