-
Notifications
You must be signed in to change notification settings - Fork 1
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
Move the DOM-based search into the javac bundle #1221
Move the DOM-based search into the javac bundle #1221
Conversation
c906abc
to
b53a413
Compare
That can make a lot of sense for now. |
Extension point is already submitted upstream but not yet merged. This branch will likely need a careful application when being merged, so please (when appropriate) just give your approval but do not merge it yourself. I will handle it. This PR is slightly different from the upstream one, and we may need to reorder the commits so as to minimize the affects. |
4fd4717
to
2ce4b23
Compare
Signed-off-by: Rob Stryker <[email protected]>
9fb5c87
to
d568f49
Compare
e05d5af
to
77abe2a
Compare
Extra strategy in MatchLocator to use DOM, and tweaks in various Locators to properly handle DOM. Tests in JavaSearchTests help a lot (currently ~130/270 passing) It basically clones and adapt some methods and adapt them to DOM, A new flag is introduced to decide the strategy. Done-ish (often with remaining issues) * FieldLocator * LocalVariableLocator * MethodLocator * SuperTypeReferenceLocator * TypeDeclarationLocator * TypeParameterLocator * TypeReferenceLocator TODO: * AndLocator * ModuleLocator * PackageDeclarationLocator * PackageReferenceLocator * OrLocator * VariableLocator Make some match locator work with DOM Fix NPE, convert 4 errors to fails Signed-off-by: Rob Stryker <[email protected]> Handle match files in the order they arrived Signed-off-by: Rob Stryker <[email protected]> Fix testBug251827b and 5 others - import declarations java element must be found Signed-off-by: Rob Stryker <[email protected]> Move the DOM-based search into the javac bundle Signed-off-by: Rob Stryker <[email protected]> Cleanup Signed-off-by: Rob Stryker <[email protected]>
77abe2a
to
8b6d476
Compare
Signed-off-by: Rob Stryker <[email protected]>
This was a bit messy, but I ended up removing the following commits from history:
Then I cherry-picked them as part of this PR, and then I squashed some together. So this PR included the commit still up for submission at jdt.core main repo (extension point) and the next 6 commits rebased, cleaned up, and squashed. So... that... looks good now. |
No description provided.