-
-
Notifications
You must be signed in to change notification settings - Fork 354
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
review: feature: All type members function #1195
Conversation
5def51b
to
b0d12b5
Compare
9c1e35e
to
638658d
Compare
Looks good to me. It's tested by all tests using the refactored methods of CtTypeImpl. One thing: rename SuperHierarchyFunction to InheritanceHierarchyFunction? |
yes, it is. It took some time until it passed all these tests. I am really glad that spoon has that level of tests!
I vote for a name, which contains direction of traversing through inheritance hieararchy, because I already need an opposite function with name like |
I like SuperInheritanceHierarchyFunction, SubInheritanceHierarchyFunction |
638658d
to
664afca
Compare
664afca
to
c7600d3
Compare
If tests pass, then it is finished from my point of view. |
Thanks! |
This PR Introduces two new mapping functions:
SuperHierarchyFunction
- which produces all super classes and super interfaces of inputCtType
AllTypeMembersFunction
- which produces allCtTypeMember
of inputCtType
and all super classes and super interfaces.The
AllTypeMembersFunction
is then used, as example, to implement CtTypeImpl#getAllFields` in a nicer and more correct way.This PR is ready for review.