-
-
Notifications
You must be signed in to change notification settings - Fork 352
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Improve comment handling in lambda parameters and local variables (
#6076) Print inline comments on the same line as their element Do not crash for comments inside lambda parameters Attribute comments to local variable default expressions Previously comments like `int a = /* foo */ 5` were attributed to the CtLocalVariable, which did not print them (as they appear within and not before/after).
- Loading branch information
1 parent
77a8226
commit 4c8531f
Showing
3 changed files
with
52 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters