Skip to content

fix: keep comment on root of field access argument#906

Merged
jtkiesel merged 1 commit into
jhipster:mainfrom
jtkiesel:fix/field-access-arg-comment
May 23, 2026
Merged

fix: keep comment on root of field access argument#906
jtkiesel merged 1 commit into
jhipster:mainfrom
jtkiesel:fix/field-access-arg-comment

Conversation

@jtkiesel
Copy link
Copy Markdown
Contributor

What changed with this PR:

Comments on the root of a field access chain are no longer moved to the last field access.

Example

Input

a(
  // comment
  b.c
);

Output

a(
  // comment
  b.c
);

Relative issues or prs:

Closes #899

@jtkiesel jtkiesel merged commit d0398d7 into jhipster:main May 23, 2026
6 checks passed
@jtkiesel jtkiesel deleted the fix/field-access-arg-comment branch May 23, 2026 19:43
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.

[2.9.4] Regression with comment placement

1 participant