Skip to content

fix: prevent argument list comments from moving to next argument#908

Merged
jtkiesel merged 1 commit into
jhipster:mainfrom
jtkiesel:fix/argument-list-comments
May 26, 2026
Merged

fix: prevent argument list comments from moving to next argument#908
jtkiesel merged 1 commit into
jhipster:mainfrom
jtkiesel:fix/argument-list-comments

Conversation

@jtkiesel
Copy link
Copy Markdown
Contributor

What changed with this PR:

Trailing comments on arguments no longer move to be leading comments on the next argument if that argument is a member node. In general, member chain comment attachment is made more solid.

Example

Input

a(
  b, // comment
  c()
);

Output

a(
  b, // comment
  c()
);

@jtkiesel jtkiesel force-pushed the fix/argument-list-comments branch 7 times, most recently from c17e486 to 2f45f39 Compare May 26, 2026 18:52
@jtkiesel jtkiesel force-pushed the fix/argument-list-comments branch from 2f45f39 to 9bfc587 Compare May 26, 2026 19:32
@jtkiesel jtkiesel merged commit ccd0fdd into jhipster:main May 26, 2026
6 checks passed
@jtkiesel jtkiesel deleted the fix/argument-list-comments branch May 26, 2026 21:23
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.

1 participant