Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
fun visitPropertyDeclaration(...) { ... }
private fun visitTypeArguments(typeArguments: List<KSTypeArgument>) {
if (typeArguments.isNotEmpty()) {
file += "<"
typeArguments.forEachIndexed { i, arg ->
visitTypeArgument(arg, data = Unit)
if (i < typeArguments.lastIndex) file += ", "
}
file += ">"
}
}
fun visitTypeArgument(typeArgument: KSTypeArgument, ...) { ... }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment