Skip to content

Conversation

@munificent
Copy link
Member

In certain locations, if you had multiple inline block comments on the same line, they would get reordered. That in turn would (correctly) trip the formatter's internal "whitespace-only changes" sanity check and lead to it aborting.

Fix #1667.

In certain locations, if you had multiple inline block comments on the same line, they would get reordered. That in turn would (correctly) trip the formatter's internal "whitespace-only changes" sanity check and lead to it aborting.

Fix #1667.
@munificent munificent requested review from kallentu and natebosch April 2, 2025 01:23
@munificent munificent merged commit 4d5edfc into main Apr 2, 2025
5 checks passed
@munificent munificent deleted the 1667-comment-reorder branch April 2, 2025 19:04
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.

Hit a bug in the formatter when formatting dart-sdk/pkg/dev_compiler/test/sourcemap/testfiles/next_through_for_each_loop_test.dart

2 participants