-
-
Notifications
You must be signed in to change notification settings - Fork 52
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
Fixes #350 by adding missing HEREDOC handling #351
Conversation
Sorry, got the issue number wrong. Fixed the title. |
@vidarh Your fix appears valid. And I'm going to merge it. But I'd still love if unparser would only generate heredocs if the AST can only be produced by a heredoc. There is a duality where: A) Some I've yet to find a rule about the signagure in the Also I think heredoc vs not heredoc should be a different AST node, and I hope I'll do another OSS cycle this weekend to look deeper into your PR. Thanks so far! |
@vidarh I'm coming back to this now, your test is not failing without the code fix:
|
I can reproduce it via: #350 (comment), which is odd. |
|
here was the coverage hole detected by mutant https://github.com/mbj/unparser/actions/runs/6700137747/job/18205557341#step:4:623 |
Unparser::Emitter::OpAssign was lacking an
emit_heredoc_reminders
method.