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

Rewrite match = as -> inside of match #1412

Merged
merged 2 commits into from
Sep 11, 2023
Merged

Conversation

V-FEXrt
Copy link
Contributor

@V-FEXrt V-FEXrt commented Sep 7, 2023

Updates wake-format rule to always emit -> as the match case separator which shows the correct data flow direction.

Copy link
Collaborator

@ag-eitilt ag-eitilt left a comment

Choose a reason for hiding this comment

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

So far as I'm able to read the formatter code, this looks good to me -- the *.wake changes certainly seem to be doing the right things.

@@ -1591,15 +1591,13 @@ wcl::doc Emitter::walk_flag_global(ctx_t ctx, CSTElement node) {

wcl::doc Emitter::walk_guard(ctx_t ctx, CSTElement node) {
MEMO(ctx, node);
MEMO_RET(walk_placeholder(ctx, node));
Copy link
Collaborator

Choose a reason for hiding this comment

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

I assume walk_placeholder is used elsewhere and so doesn't become dead code?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yeah, its the main fallback function

tests/tests.wake Outdated
Copy link
Collaborator

Choose a reason for hiding this comment

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

This file is the only one which seems to be related to testing -- don't the unit/golden tests have to be updated to reflect this as well?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

they do, I missed them

Copy link
Contributor

@JakeSiFive JakeSiFive left a comment

Choose a reason for hiding this comment

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

let 'er rip

@V-FEXrt V-FEXrt merged commit 496287a into master Sep 11, 2023
12 checks passed
@V-FEXrt V-FEXrt deleted the format-rewrite-match-eq branch September 11, 2023 21: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.

3 participants