summaryrefslogtreecommitdiff
path: root/lib/prism/desugar_compiler.rb
diff options
context:
space:
mode:
authorKevin Newton <kddnewton@gmail.com>2023-12-06 15:32:53 -0500
committergit <svn-admin@ruby-lang.org>2023-12-06 20:50:02 +0000
commitfe6ee5e92148755b75ffd00ab29611b59a416d5a (patch)
tree9283cde10b67c8daec7c56511f58ed9133569377 /lib/prism/desugar_compiler.rb
parentcbb941f58a236d95d9e95c3f6dbd4510c04351f0 (diff)
[ruby/prism] Move flag position consistently to front
https://github.com/ruby/prism/commit/6e69a81737
Diffstat (limited to 'lib/prism/desugar_compiler.rb')
-rw-r--r--lib/prism/desugar_compiler.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/prism/desugar_compiler.rb b/lib/prism/desugar_compiler.rb
index f92ca9e475..daca02f35e 100644
--- a/lib/prism/desugar_compiler.rb
+++ b/lib/prism/desugar_compiler.rb
@@ -157,15 +157,15 @@ module Prism
*arguments,
node.name_loc,
CallNode.new(
+ 0,
read_class.new(*arguments, node.name_loc),
nil,
node.operator_loc.slice.chomp("="),
node.operator_loc.copy(length: node.operator_loc.length - 1),
nil,
- ArgumentsNode.new([node.value], 0, node.value.location),
+ ArgumentsNode.new(0, [node.value], node.value.location),
nil,
nil,
- 0,
node.location
),
node.operator_loc.copy(start_offset: node.operator_loc.end_offset - 1, length: 1),