-
-
Notifications
You must be signed in to change notification settings - Fork 351
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 FieldReferenceFunction, FieldScopeFunction, SubtypeFilter #1141
Conversation
c47f41d
to
9455886
Compare
d6bf91b
to
098eeac
Compare
Only this PR might need more tests, which would check package and public visible class fields in different packages. |
.forEach(outputConsumer); | ||
} | ||
protected void searchForProtectedField(CtField<?> field, CtConsumer<Object> outputConsumer) { | ||
//protected field can be referred from the scope of current top level type only |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
from the scope of current top level type only
and children
Seems good to me. I'm waiting for the new tests before merging. |
8f9e79b
to
38ca424
Compare
38ca424
to
7500c4c
Compare
The tests of field visibility in other classes and packages were added. It is finished from my point of view. |
Looks like Travis is ill. |
This PR contains FieldReferenceFunction, FieldScopeFunction, SubtypeFilter.
The main purpose is FieldReferenceFunction, which returns all the references to the field. Other two are helper classes which might be useful for others so they are public.
It depends on these PRs
The tests will be added later, because they share a lot with tests of #1136