Skip to content

Instantly share code, notes, and snippets.

@skydoves
Last active March 8, 2024 05:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save skydoves/981629527928d1a9a505a377397bc8b0 to your computer and use it in GitHub Desktop.
Save skydoves/981629527928d1a9a505a377397bc8b0 to your computer and use it in GitHub Desktop.
stability_inference
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