Skip to content

updating metadata of CatchClauses array#1295

Merged
Janther merged 1 commit intomainfrom
preserve-try-statement-empty-line
Oct 29, 2025
Merged

updating metadata of CatchClauses array#1295
Janther merged 1 commit intomainfrom
preserve-try-statement-empty-line

Conversation

@Janther
Copy link
Copy Markdown
Member

@Janther Janther commented Oct 22, 2025

closes #1293

Normally collections don't need a call to updateMetadata since they tend to be items belonging to a single line or printed by printPreservingEmptyLines.

CatchClauses is printed within the TryStatement so we need to take care of updating the loc.

@Janther Janther requested a review from fvictorio October 22, 2025 20:01
@Janther Janther merged commit 0c50634 into main Oct 29, 2025
7 checks passed
@Janther Janther deleted the preserve-try-statement-empty-line branch October 29, 2025 12:20
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.

Formatting removes newline after catch block

2 participants