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_remindersmethod.