Bryan Herbst
10/29/2020, 7:46 PMButton
to Button-bpaW8jA
) it is a little tricker to find the right ComposablesBryan Herbst
10/29/2020, 7:48 PMUElementHandler
I’m using to get the method and package names:
override fun visitCallExpression(node: UCallExpression) {
val method = node.resolve()
val methodPackage = (method?.containingFile as? PsiJavaFile)?.packageName ?: return
// method.name resolves to "Button-bpaW8jA"
// methodPackage correctly resolves to "androidx.compose.material"
}
Bryan Herbst
10/29/2020, 7:49 PM-
character, but that doesn’t sound ideal.