-
-
Save skydoves/981629527928d1a9a505a377397bc8b0 to your computer and use it in GitHub Desktop.
stability_inference
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
val fqName = declaration.fqNameWhenAvailable?.toString() ?: "" | |
val typeParameters = declaration.typeParameters | |
val stability: Stability | |
val mask: Int | |
if (KnownStableConstructs.stableTypes.contains(fqName)) { | |
mask = KnownStableConstructs.stableTypes[fqName] ?: 0 | |
stability = Stability.Stable | |
} else | |
// infer stability | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment