isInvokedWithinComposable

fun UCallExpression.isInvokedWithinComposable(): Boolean(source)

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

This searches parent declarations until we find a lambda expression or a function, and looks to see if these are Composable.