We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b92be07 + 72c5a6d commit 43b38a5Copy full SHA for 43b38a5
lib/unparser/emitter/dsym.rb
@@ -33,7 +33,7 @@ def emit_str_child(value)
33
34
def emit_begin_child(component)
35
write('#{')
36
- visit(unwrap_single_begin(component))
+ visit(unwrap_single_begin(component)) if component.children.any?
37
write('}')
38
end
39
end # DSym
test/corpus/semantic/literal.rb
@@ -12,3 +12,4 @@
12
10.2e10000000000
13
-10.2e10000000000
14
w(foo bar)
15
+{ "#{}": {} }
0 commit comments