Skip to content
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

Format assert statements. #1320

Merged
merged 3 commits into from
Nov 13, 2023
Merged

Format assert statements. #1320

merged 3 commits into from
Nov 13, 2023

Conversation

kallentu
Copy link
Member

This looks really similar to how asserts were formatted in the old formatter.
It's also similar logic to assert initializers, but we need constructors done first and then I'll handle that after.

I assume we have test logic for comments in ListPieces and general statements so I didn't add any extra for that, but if you think otherwise, let me know!

@kallentu kallentu requested review from munificent and removed request for munificent November 13, 2023 19:19
@kallentu
Copy link
Member Author

Oh wait, before reviewing, let me push another commit. I forgot to push this one.

@kallentu kallentu requested a review from munificent November 13, 2023 19:26
@kallentu
Copy link
Member Author

Okay, should be ready for review now!

Copy link
Member

@munificent munificent left a comment

Choose a reason for hiding this comment

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

This is great!

lib/src/front_end/ast_node_visitor.dart Show resolved Hide resolved
@kallentu kallentu merged commit f565eb3 into main Nov 13, 2023
7 checks passed
@kallentu kallentu deleted the assert branch November 13, 2023 19:54
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