I’m trying to work with `org.jetbrains.uast` but i...
# random
d
I’m trying to work with
org.jetbrains.uast
but it’s an hell without any doc 🙂 Actually I wanna create a lint for
@Serializable
class which has fields without `@SerialName`: First use this for get the interested
UClass
( I guess I could do something better - ? )
Copy code
if (node.sourcePsi?.textMatches("@${Serializable::class.simpleName}") == true)
Then I get the `PsiField`s from the
UClass
, but I can’t get the
SerialName
annotation ☹️
Copy code
val a = uClass.allFields.flatMap { it.annotations.toList() }
val f = uClass.allFields.map { it.text }