Skip to content

Format enhanced enums. #1096

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Mar 3, 2022
Merged

Format enhanced enums. #1096

merged 3 commits into from
Mar 3, 2022

Conversation

munificent
Copy link
Member

The implementation is straightforward. Most of the new code is copied from similar code for formatting class bodies. (There wasn't enough exact duplication to be worth hoisting it out to something reused.)

I tried to write tests to cover everything I could think of. I also ran this over the enhanced enum language and co19 tests to make sure it could format everything in those.

Fix #1075.

@munificent munificent requested a review from natebosch March 2, 2022 23:57
@munificent munificent merged commit c8ed552 into master Mar 3, 2022
@munificent munificent deleted the enhanced-enums branch March 3, 2022 23:09
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.

dart_style implementation for enhanced enums
2 participants