Skip to content

Conversation

viralpraxis
Copy link
Contributor

Follow-up to #387

bundle exec bin/unparser -e '`#$G`'
(string)
Original-Source:
`#$G`
Generated-Source:
lib/unparser/emitter/xstr.rb:56:in 'Unparser::Emitter::XStr#escape_xstr'
lib/unparser/emitter/xstr.rb:52:in 'Unparser::Emitter::XStr#emit_string'
lib/unparser/emitter/xstr.rb:45:in 'block in Unparser::Emitter::XStr#emit_xstr'
lib/unparser/emitter/xstr.rb:41:in 'Array#each'
lib/unparser/emitter/xstr.rb:41:in 'Unparser::Emitter::XStr#emit_xstr'
lib/unparser/emitter/xstr.rb:16:in 'Unparser::Emitter::XStr#dispatch'
lib/unparser/generation.rb:13:in 'block in Unparser::Generation#write_to_buffer'
lib/unparser/generation.rb:44:in 'Unparser::Generation#with_comments'
lib/unparser/generation.rb:13:in 'Unparser::Generation#write_to_buffer'
<internal:kernel>:91:in 'Kernel#tap'
lib/unparser/generation.rb:236:in 'Unparser::Generation#visit_deep'
lib/unparser/generation.rb:132:in 'block in Unparser::Generation#emit_body'
lib/unparser/generation.rb:138:in 'Unparser::Generation#with_indent'
lib/unparser/generation.rb:122:in 'Unparser::Generation#emit_body'
lib/unparser/emitter/root.rb:11:in 'Unparser::Emitter::Root#dispatch'
lib/unparser/generation.rb:13:in 'block in Unparser::Generation#write_to_buffer'
lib/unparser/generation.rb:44:in 'Unparser::Generation#with_comments'
lib/unparser/generation.rb:13:in 'Unparser::Generation#write_to_buffer'
lib/unparser.rb:148:in 'block in Unparser.unparse_ast'
<internal:kernel>:91:in 'Kernel#tap'
Original-Node:
(xstr
  (gvar :$G))
Generated-Node:
undefined
Error: (string)

Follow-up to mbj#387

```shell
bundle exec bin/unparser -e '`#$G`'
(string)
Original-Source:
`#$G`
Generated-Source:
lib/unparser/emitter/xstr.rb:56:in 'Unparser::Emitter::XStr#escape_xstr'
lib/unparser/emitter/xstr.rb:52:in 'Unparser::Emitter::XStr#emit_string'
lib/unparser/emitter/xstr.rb:45:in 'block in Unparser::Emitter::XStr#emit_xstr'
lib/unparser/emitter/xstr.rb:41:in 'Array#each'
lib/unparser/emitter/xstr.rb:41:in 'Unparser::Emitter::XStr#emit_xstr'
lib/unparser/emitter/xstr.rb:16:in 'Unparser::Emitter::XStr#dispatch'
lib/unparser/generation.rb:13:in 'block in Unparser::Generation#write_to_buffer'
lib/unparser/generation.rb:44:in 'Unparser::Generation#with_comments'
lib/unparser/generation.rb:13:in 'Unparser::Generation#write_to_buffer'
<internal:kernel>:91:in 'Kernel#tap'
lib/unparser/generation.rb:236:in 'Unparser::Generation#visit_deep'
lib/unparser/generation.rb:132:in 'block in Unparser::Generation#emit_body'
lib/unparser/generation.rb:138:in 'Unparser::Generation#with_indent'
lib/unparser/generation.rb:122:in 'Unparser::Generation#emit_body'
lib/unparser/emitter/root.rb:11:in 'Unparser::Emitter::Root#dispatch'
lib/unparser/generation.rb:13:in 'block in Unparser::Generation#write_to_buffer'
lib/unparser/generation.rb:44:in 'Unparser::Generation#with_comments'
lib/unparser/generation.rb:13:in 'Unparser::Generation#write_to_buffer'
lib/unparser.rb:148:in 'block in Unparser.unparse_ast'
<internal:kernel>:91:in 'Kernel#tap'
Original-Node:
(xstr
  (gvar :$G))
Generated-Node:
undefined
Error: (string)
```
@mbj mbj merged commit d9a9dca into mbj:main May 29, 2025
16 checks passed
@viralpraxis viralpraxis deleted the fix-xstr-with-plain-gvar-unparsing branch May 29, 2025 14:45
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