Hello,
Maybe I misunderstand the AST model but why there is no TypeReference.getDeclaredResolvedFields() method?
When a field has a generic type it would be useful to "put it into the context of a specific declaring reference".
Eg.
class SomeClass<T> {
List<T> field;
}
class Subclass extends SomeClass<Integer> {}
When I enumerate the fields of
(Subclass.findTypeGlobally as ClassDeclaration).extendedClass
it would be very useful to query the resolved type of
field, ie.
List<Integer> (instead of
List<T> that can be queried by
ClassDeclaration.getDeclaredFields()).
Thanks.
Norbi