You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In this case, all the annotations are on functions, but I want to generate one extension function per class that contains a function with an annotation. Ideally, the extension includes all the annotations for any implemented abstract classes.
so for each annotation, I find out what class it's in via .parent. Then for each unique parent I generate my extension function by calling .getAllFunctions() and filtering by the @MyAnno annotation.
Two things I see that seem odd to me.
1 - .validate() on the Adult class always returns False. Even if I push it to the next round.
2 - When I iterate over the functions, the ones from the super class (fun one() in this case) always have parent and containingFile set to null
Is this expected? Am I using the library correctly?
The text was updated successfully, but these errors were encountered:
This inherits the method Converter.convert(). While the function's parent is set to PersonToPersonDtoMapper, node.parent.containingFile unexpectedly returns null and node.parent.location is a NonExistLocation.
In this case, all the annotations are on functions, but I want to generate one extension function per class that contains a function with an annotation. Ideally, the extension includes all the annotations for any implemented abstract classes.
A simple example:
so for each annotation, I find out what class it's in via
.parent
. Then for each unique parent I generate my extension function by calling.getAllFunctions()
and filtering by the@MyAnno
annotation.Two things I see that seem odd to me.
1 -
.validate()
on theAdult
class always returnsFalse
. Even if I push it to the next round.2 - When I iterate over the functions, the ones from the super class (
fun one()
in this case) always haveparent
andcontainingFile
set tonull
Is this expected? Am I using the library correctly?
The text was updated successfully, but these errors were encountered: