diff options
author | Kevin Newton <[email protected]> | 2024-12-20 16:52:10 -0500 |
---|---|---|
committer | git <[email protected]> | 2025-01-12 18:41:42 +0000 |
commit | 14b9098459b88f94e316ccc9274693e74565739e (patch) | |
tree | 3f0d66e89ab1e4599cc549159eee3db88fd5e0d7 /lib/prism/translation/parser | |
parent | 48749afe61fedcfd59cbd2fcc134c55f5ccef7f8 (diff) |
[ruby/prism] Frozen strings in the AST
https://github.com/ruby/prism/commit/8d9d429155
Diffstat (limited to 'lib/prism/translation/parser')
-rw-r--r-- | lib/prism/translation/parser/compiler.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/prism/translation/parser/compiler.rb b/lib/prism/translation/parser/compiler.rb index e6ffa39d9d..26c5c174f4 100644 --- a/lib/prism/translation/parser/compiler.rb +++ b/lib/prism/translation/parser/compiler.rb @@ -2049,7 +2049,7 @@ module Prism location = appendee.loc location = location.with_expression(location.expression.join(child.loc.expression)) - children[-1] = appendee.updated(:str, [appendee.children.first << child.children.first], location: location) + children[-1] = appendee.updated(:str, ["#{appendee.children.first}#{child.children.first}"], location: location) else children << child end |