Skip to content

refactor: Clarify the logic in line_group's grouping function.#108

Merged
JeffFaer merged 1 commit intomainfrom
jfaer/branches
Feb 24, 2026
Merged

refactor: Clarify the logic in line_group's grouping function.#108
JeffFaer merged 1 commit intomainfrom
jfaer/branches

Conversation

@JeffFaer
Copy link
Collaborator

I think this is somewhat easier to understand, at least at face value.

It's a little unfortunate that you still need to dive into the implementation of shouldAddToGroup to understand the interplay with numUnmatchedStartDirectives, but I think this is still a net positive.

I think this is somewhat easier to understand, at least at face value.

It's a little unfortunate that you still need to dive into the
implementation of `shouldAddToGroup` to understand the interplay with
`numUnmatchedStartDirectives`, but I think this is still a net
positive.
Copy link
Member

@KatrinaHoffert KatrinaHoffert left a comment

Choose a reason for hiding this comment

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

I see what you mean about the unfortunate part, but agree it's a net benefit.

@JeffFaer JeffFaer merged commit d484b78 into main Feb 24, 2026
9 checks passed
@JeffFaer JeffFaer deleted the jfaer/branches branch February 24, 2026 21:45
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 participants