-
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
Fix CompletionContextTests0123 inside JavacConverter #1109
Fix CompletionContextTests0123 inside JavacConverter #1109
Conversation
This seems to fix 2 tests. |
#1110 had no discernably different result. Using the following script:
I noticed the following output:
|
Nevermind. My script didn't account for "FIXED" status. Yes, fixes 2. Looks good to me. Let me know if I should merge. |
Feel free to merge it ASAP. |
int lineEnd = newLine == -1 ? this.rawText.length() - 1 : newLine; | ||
String litText = this.rawText.substring(pos+1, lineEnd); | ||
Expression res = convertStringToLiteral(litText, pos, lineEnd, null); | ||
res.setSourceRange(pos, lineEnd - pos); |
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.
Maybe add something like res.setFlags(res.getFlags() | ASTNode.MALFORMED)
2291e4a
to
57c9a1d
Compare
57c9a1d
to
7710e1c
Compare
9c17bb6
to
4516c31
Compare
a1bf22f
to
0b6fd1c
Compare
7ad387c
to
c52dfb2
Compare
c52dfb2
to
76e9c9c
Compare
838c386
to
40594bf
Compare
15d0bf3
to
811bae7
Compare
c906abc
to
b53a413
Compare
08ec5cf
to
10fe71a
Compare
c2b9da2
to
c640bdc
Compare
Signed-off-by: Rob Stryker <stryker@redhat.com>
Signed-off-by: Rob Stryker <stryker@redhat.com>
7710e1c
to
9efc380
Compare
aa5cb79
into
eclipse-jdtls:dom-with-javac
This broke dom-with-javac somehow. Looking into it. |
This is a proof of concept of adding a specific erroneous / invalid node to the dom tree in all cases, not just completion, and seeing what regressions we get.