Last active
August 12, 2021 05:15
-
-
Save Morfly/c5a0a785de8e06ea402cc07aca9cb687 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
override fun visitTypeArgument(typeArgument: KSTypeArgument, data: Unit) { | |
when (val variance: Variance = typeArgument.variance) { | |
STAR -> { | |
file += "*" | |
return | |
} | |
COVARIANT, CONTRAVARIANT -> { | |
file += variance.label // 'out' or 'in' | |
file += " " | |
} | |
INVARIANT -> { | |
// do nothing | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment