Fix some qualified type relevances#1377
Draft
datho7561 wants to merge 1065 commits into
Draft
Conversation
Signed-off-by: Rob Stryker <stryker@redhat.com>
Signed-off-by: Snjezana Peco <snjezana.peco@redhat.com>
Signed-off-by: Snjezana Peco <snjezana.peco@redhat.com>
This is new Java 23 syntax. This PR should make 6 new tests pass (mostly from the java 23 completion suite) This PR also incorporates eclipse-jdt#3479, I forget specifically why, but it's needed. - Fixes to the javac AST converter - I did a hack in the converter to recover the following case, since javac doesn't handle it currently: ```java import module public class HelloWorld { } ``` - Adjust module completion relevance based on if it's required by the current module Signed-off-by: David Thompson <davthomp@redhat.com>
Complete type and method parameters after `@param` in Javadoc preceeding type and method declarations Signed-off-by: David Thompson <davthomp@redhat.com>
when underlying VarSymbol is error
For Blocks and Lambdas
* unused variables * unqualified access * switch from internal classes to api
This causes 6 regerssions because 'possible this escape' is now reported. Signed-off-by: David Thompson <davthomp@redhat.com>
- fix a bug related to ordering of tag names
- get `@param| ` completion to work as expected
- use `DOMCompletionUtil.findParent` instead of only checking the direct
parent when calculating the node to use as context for completion
(in the case of nodes within `Javadoc`)
- split out `MemberRef` and `MethodRef` to their own completion cases
- for now these are stubs
- move the logic for type completion for `@see` and `@link` under the
TagElement section, as it should be handled differently than the
"default completion":
- improve handling of qualified references
- for the time being, suggest nothing when completing a type from a
specific module.
i.e. `@see java.base/java.util.|` no longer gives any results.
Signed-off-by: David Thompson <davthomp@redhat.com>
Also needed but missed.
Note that there are two code paths: one through `MemberRef` and another through an `@link` or `@see` `TagElement`. This is because the AST conversion tests expect the following to be a `TextElement` instead of a `MemberRef`: ```java /** * @see MyClass# */ ``` (and also:) ```java /** * @see # */ ``` However, the completion tests expect completion for MyClass' members to work in this case. Fixes eclipse-jdt#1103 Signed-off-by: David Thompson <davthomp@redhat.com>
* Type parameters * Annotations * Relevance
* Support type restriction for SwitchCase * Support for QualifiedType * Fix CompletionContext.getExpectedTypesSignatures()
Author
|
it regressed; I'll need to figure out why: |
7f19ad0 to
4dafcdf
Compare
Author
|
Fixes 1, breaks 1 |
It wasn't counting qualified types in case statements as qualified, for instance. Signed-off-by: David Thompson <davthomp@redhat.com>
4dafcdf to
0ae2a07
Compare
73d28b4 to
aa8f401
Compare
4082278 to
ebc593c
Compare
11c94f4 to
99440ba
Compare
6dc0d95 to
25a5a08
Compare
b1b4e0e to
309f390
Compare
685330d to
959d707
Compare
2dbfcc7 to
6e1fd32
Compare
0b01689 to
87ead9e
Compare
6d23874 to
c8f8d92
Compare
055e846 to
18452eb
Compare
411dfec to
ac3eb19
Compare
5738537 to
9962d57
Compare
284e150 to
4bae1aa
Compare
4bae1aa to
c00ff74
Compare
dd7aa18 to
fbe5e1a
Compare
2fcc4f8 to
b7970ce
Compare
86c88a2 to
4ccbd95
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
It wasn't counting qualified types in case statements as qualified, for instance.