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.
1 parent 47cb73c commit afc7c93Copy full SHA for afc7c93
lib/prism/translation/ruby_parser.rb
@@ -893,6 +893,13 @@ def visit_interpolated_x_string_node(node)
893
visited << result
894
end
895
elsif result[0] == :dstr
896
+ if !visited.empty? && part.parts[0].is_a?(StringNode)
897
+ # If we are in the middle of an implicitly concatenated string,
898
+ # we should not have a bare string as the first part. In this
899
+ # case we need to visit just that first part and then we can
900
+ # push the rest of the parts onto the visited array.
901
+ result[1] = visit(part.parts[0])
902
+ end
903
visited.concat(result[1..-1])
904
else
905
0 commit comments