Davide Giuseppe Farella
08/01/2019, 4:17 PMorg.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 - ? )
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 ☹️
val a = uClass.allFields.flatMap { it.annotations.toList() }
val f = uClass.allFields.map { it.text }