Skip to content
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

Flatten chains of InfixExpressions #436

Closed

Conversation

mickaelistria
Copy link

Fixes #419

@mickaelistria
Copy link
Author

That's annoying: test0106 verifies that in some case, the optimization doesn't happen.
I'm tempted to just ignore the test.

Rob Stryker and others added 28 commits June 8, 2024 11:56
Signed-off-by: Rob Stryker <stryker@redhat.com>
Signed-off-by: Rob Stryker <stryker@redhat.com>
Signed-off-by: Rob Stryker <stryker@redhat.com>
Signed-off-by: Rob Stryker <stryker@redhat.com>
Signed-off-by: Rob Stryker <stryker@redhat.com>
Signed-off-by: Rob Stryker <stryker@redhat.com>
Fixes eclipse-jdt#180, fixes eclipse-jdt#206

Signed-off-by: David Thompson <davthomp@redhat.com>
Makes it not needed to manually add --add-opens to eclipse.ini after
installing.
PDE doesn't handle that so nested workbench still needs the params added
to the launch configuration.
… call

Signed-off-by: Rob Stryker <stryker@redhat.com>
Signed-off-by: Rob Stryker <stryker@redhat.com>
Signed-off-by: Rob Stryker <stryker@redhat.com>
Signed-off-by: Rob Stryker <stryker@redhat.com>
Signed-off-by: Rob Stryker <stryker@redhat.com>
+ move DOM-based selection and completion to codeassist package.
process more contents in JCError nodes
Fix some positions and others.
Honor the search pattern settings.
Signed-off-by: David Thompson <davthomp@redhat.com>
Closes eclipse-jdt#218

Signed-off-by: David Thompson <davthomp@redhat.com>
Closes eclipse-jdt#219

Signed-off-by: David Thompson <davthomp@redhat.com>
Signed-off-by: David Thompson <davthomp@redhat.com>
Signed-off-by: David Thompson <davthomp@redhat.com>
Signed-off-by: Rob Stryker <stryker@redhat.com>
Signed-off-by: Rob Stryker <stryker@redhat.com>
Signed-off-by: Rob Stryker <stryker@redhat.com>
mickaelistria and others added 6 commits June 8, 2024 11:56
* Add some toString to bindings
* Some support for method receiver type
* Some extra JLS version checks
* Improve support for parameterized types and wildcards
* add JavacBindingResolver.resolveAnnotation()
* Resolve lambda to methodBindings
Signed-off-by: Rob Stryker <stryker@redhat.com>
Signed-off-by: Rob Stryker <stryker@redhat.com>
Check for flags before converting enum constant
Signed-off-by: David Thompson <davthomp@redhat.com>
The implementation of this method works directly on a DOM and how the
DOM was produced doesn't matter. So it doesn't have to be part of the
interface.
mickaelistria and others added 13 commits June 8, 2024 18:01
These fixes will make the resolver handle NPEs when the code contains
syntax errors.
When syntax errors exist in the code, the identifiers could be not valid,
on such identifiers don't calculate the source range.
The offset reported for Javadoc comments for the access method
we are currently using is almost always -1.
By accessing the offset value directly reflexively,
we can access the value we really want,
the offset of the `/**` token,
which is stored in a parent class as a private final field.

Signed-off-by: David Thompson <davthomp@redhat.com>
The type annotation are now read from the typeSymbol
as it has done for method annotations.
Signed-off-by: David Thompson <davthomp@redhat.com>
Signed-off-by: David Thompson <davthomp@redhat.com>
Signed-off-by: David Thompson <davthomp@redhat.com>
Use the TypeSymbol when available instead of toString to avoid TypeSignature
creation failures due to toString could provide information in addition to
what is expected by TypeSignature creation.
Rethrow the first throwable encountered

Signed-off-by: David Thompson <davthomp@redhat.com>
Even if it's technically a field access, if all the segments are simple
names without any class names, method invocations, or keywords,
then it should be treated as a qualified name for the purpose of
converting to the JDT AST.

Signed-off-by: David Thompson <davthomp@redhat.com>
@datho7561
Copy link

@mickaelistria what are your thoughts on merging this? Overall to me, it seems it reduces the number of dom conversion test failures.

@mickaelistria
Copy link
Author

I'll rebase and see, but the fact that it's causing other failures is an annoyance I'd like to understand and fix.

Signed-off-by: David Thompson <davthomp@redhat.com>
@robstryker
Copy link

Fixed by #497

@robstryker robstryker closed this Jun 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Chains of binary expressions with same operator should be converted with InfixExpression.extendedOperands
8 participants