Last active
July 18, 2021 11:40
-
-
Save Morfly/ef9ddd0dc9351983a4fcaa7c8499bdd6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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