-
Notifications
You must be signed in to change notification settings - Fork 28
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
Conversation
There was a problem hiding this 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)); |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let 'er rip
Updates
wake-format
rule to always emit->
as the match case separator which shows the correct data flow direction.