Skip to content

Instantly share code, notes, and snippets.

@Morfly
Last active July 18, 2021 11:40
Show Gist options
  • Save Morfly/ef9ddd0dc9351983a4fcaa7c8499bdd6 to your computer and use it in GitHub Desktop.
Save Morfly/ef9ddd0dc9351983a4fcaa7c8499bdd6 to your computer and use it in GitHub Desktop.
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