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

[DOM] NaiveASTFlattener should be sync with ASTFlattener of the JDT.UI #3268

Conversation

subyssurendran666
Copy link
Contributor

@subyssurendran666 subyssurendran666 commented Nov 8, 2024

What it does

The unnamed variables and pattern's DOM and ASTRewrite implemented through #2623. Following items should be added along with that.

  • The Javadoc of both APIs i.e. TypePattern.getPatternVariable() and TypePattern.getPatternVariable2() is same and not clear regarding the difference.
  • The methods in JDT UI's ASTFlattener are kept in sync with NaiveASTFlattener(TypePattern). Hence, the change should be done in NaiveASTFlattener as well and then synced to ASTFlattener.

The Problem has reported here: eclipse-jdt/eclipse.jdt.ui#1764 (comment)

How to test

This PR closes #3261

Author checklist

@subyssurendran666
Copy link
Contributor Author

@mpalat could you please review this PR and share your insights on this ?

@mpalat
Copy link
Contributor

mpalat commented Nov 8, 2024

@mpalat could you please review this PR and share your insights on this ?

Will take a look. Meanwhile, please have a look and follow the process at https://github.com/eclipse-platform/eclipse.platform/blob/master/docs/Eclipse_API_Central_Deprecation_Policy.md when you are looking at deprecating APIs

@subyssurendran666 subyssurendran666 force-pushed the NaiveASTFlattener-should-be-sync-with-ASTFlattener-of-jdt-ui-3261 branch from 79aaaaf to 1de89f4 Compare November 12, 2024 09:39
@subyssurendran666 subyssurendran666 force-pushed the NaiveASTFlattener-should-be-sync-with-ASTFlattener-of-jdt-ui-3261 branch from 1de89f4 to 6c23547 Compare November 26, 2024 11:46
@mpalat mpalat added this to the 4.35 M1 milestone Nov 27, 2024
Copy link
Contributor

@mpalat mpalat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suby,
Let us do some additional cleanup here - Refer to MethodDeclaration - modifiers and see how it got changed. Let us do a similar approach here.

@subyssurendran666 subyssurendran666 force-pushed the NaiveASTFlattener-should-be-sync-with-ASTFlattener-of-jdt-ui-3261 branch 3 times, most recently from 7703e6a to 85849fe Compare December 30, 2024 08:24
@subyssurendran666 subyssurendran666 force-pushed the NaiveASTFlattener-should-be-sync-with-ASTFlattener-of-jdt-ui-3261 branch from 2137102 to b2b5e5a Compare December 31, 2024 04:01
Copy link
Contributor

@mpalat mpalat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1
Please rebase and submit. Thanks

@mpalat mpalat merged commit fb44704 into eclipse-jdt:master Dec 31, 2024
10 checks passed
@laeubi
Copy link
Contributor

laeubi commented Jan 1, 2025

@mpalat @subyssurendran666

There is an javadoc error that fails the build now:

Error:  Failed to execute goal org.apache.maven.plugins:maven-javadoc-plugin:3.11.2:javadoc (attach-javadocs) on project org.eclipse.jdt.doc.isv: An error has occurred in Javadoc report generation: 
Error:  Exit code: 1
Error:  /home/runner/work/tycho/tycho/aggregator/eclipse.platform.common/bundles/org.eclipse.jdt.doc.isv/../../../eclipse.jdt.core/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/TypePattern.java:190: error: unknown tag: Deprecated
Error:  	 * @Deprecated(forRemoval = true, since="2024-07")
Error:  	   ^

* @Deprecated(forRemoval = true, since="2024-07")

I assume this should be a method annotation and not part of the javadoc.

Also the date seems wrong @Deprecated(forRemoval = true, since="2025-03") is probably wanted?

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.

[DOM] NaiveASTFlattener should be sync with ASTFlattener of the JDT.UI
3 participants