Package-level declarations

Types

Link copied to clipboard
class Name

Represents the qualified name for an element

Link copied to clipboard
object Names

Contains common names used for lint checks.

Link copied to clipboard

Represents a qualified package

Functions

Link copied to clipboard
fun PsiClass.inheritsFrom(name: Name): Boolean
fun PsiType.inheritsFrom(name: Name): Boolean
Link copied to clipboard
fun PsiMethod.isInPackageName(packageName: PackageName): Boolean

Returns whether this has packageName as its package name.

Link copied to clipboard

Returns whether this UExpression is invoked within the body of a Composable function or lambda.

Link copied to clipboard
fun UCallExpression.isNotRemembered(): Boolean

Returns whether this UCallExpression is directly invoked within the body of a Composable function or lambda without being remembered.

Link copied to clipboard
fun UCallExpression.isNotRememberedWithKeys(vararg keyClassNames: Name): Boolean

Returns whether this UCallExpression is directly invoked within the body of a Composable function or lambda without being remembered, or whether it is invoked inside a `remember call without the provided keys.

Link copied to clipboard
fun Name(pkg: PackageName, shortName: String): Name
Link copied to clipboard
fun Package(packageName: String): PackageName
fun Package(packageName: PackageName, shortName: String): PackageName
Link copied to clipboard
fun PsiMethod.toKmFunction(): KmFunction?

Properties

Link copied to clipboard
val PsiMethod.isComposable: Boolean

Returns whether this method is @Composable or not

val ULambdaExpression.isComposable: Boolean

Returns whether this lambda expression is @Composable or not

val UTypeReferenceExpression.isComposable: Boolean

Returns whether this type reference is @Composable or not

val UVariable.isComposable: Boolean

Returns whether this variable's type is @Composable or not

Link copied to clipboard
val PsiType?.isVoidOrUnit: Boolean

Whether this PsiType is void or Unit

Link copied to clipboard
val PsiMethod.returnsUnit: Boolean

Whether this PsiMethod returns Unit