Skip to content

Placing comments in the middle of a member access chained expression#1461

Merged
Janther merged 3 commits intomainfrom
chain
Mar 23, 2026
Merged

Placing comments in the middle of a member access chained expression#1461
Janther merged 3 commits intomainfrom
chain

Conversation

@Janther
Copy link
Copy Markdown
Member

@Janther Janther commented Mar 16, 2026

closes #644

By the way, this issue originally was a bit complicated so it got fixed in the ANTLR parser just by us constantly improving the plugin. The thing was that since we fixed it without attempting to fix this issue, there were no tests associated and when we moved to Slang, there was a small regression.

UPDATE: reviewing this, I also moved the printing logic of FunctionCall and IndexAccess into their own file, and updated the isLabel(document) to isLabel(document, value) where not only we check for the label type but also make sure that the value is the one provided since we always use it in this way.

@Janther Janther requested a review from fvictorio March 16, 2026 18:44
@Janther Janther added comments Comments-related issue format Addresses a change in the format labels Mar 16, 2026
@Janther Janther merged commit 5b577be into main Mar 23, 2026
7 checks passed
@Janther Janther deleted the chain branch March 23, 2026 14:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comments Comments-related issue format Addresses a change in the format

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Issue with comment inside property chain

2 participants