summaryrefslogtreecommitdiff
path: root/lib/prism/desugar_compiler.rb
diff options
context:
space:
mode:
authorJemma Issroff <jemmaissroff@gmail.com>2023-10-26 15:02:27 -0300
committergit <svn-admin@ruby-lang.org>2023-10-26 18:47:50 +0000
commit7e4ee92de225473d3ad3ac8d0a27bd02a2905738 (patch)
tree32dcd2d4305bcba802b82e319799339ef942a38b /lib/prism/desugar_compiler.rb
parenta082e560bb3b875dfcce5ff4743a04e76e008d46 (diff)
[ruby/prism] Add KeywordSplat flag to ArgumentsNode
Method calls with keyword splat args compile differently than without since they merge the keyword arg hash with the keyword splat hash. We know this information at parse time, so can set a flag which the compiler can use. https://github.com/ruby/prism/commit/e5f8a9a3cd
Diffstat (limited to 'lib/prism/desugar_compiler.rb')
-rw-r--r--lib/prism/desugar_compiler.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/prism/desugar_compiler.rb b/lib/prism/desugar_compiler.rb
index 232c6ecb37..3624217686 100644
--- a/lib/prism/desugar_compiler.rb
+++ b/lib/prism/desugar_compiler.rb
@@ -161,7 +161,7 @@ module Prism
nil,
node.operator_loc.copy(length: node.operator_loc.length - 1),
nil,
- ArgumentsNode.new([node.value], node.value.location),
+ ArgumentsNode.new([node.value], 0, node.value.location),
nil,
nil,
0,