summaryrefslogtreecommitdiff
path: root/lib/prism/desugar_compiler.rb
diff options
context:
space:
mode:
authorBenoit Daloze <eregontp@gmail.com>2023-11-20 17:43:26 +0100
committergit <svn-admin@ruby-lang.org>2023-11-22 12:15:20 +0000
commit018e6abf8509c7de2a8efb49741d594b15f49fbf (patch)
tree73063cfd93412f02dbeb4981eabb73c84160be83 /lib/prism/desugar_compiler.rb
parentea60bf912caa3ea193b7673b59b0113c1e708609 (diff)
[ruby/prism] Move CallNode#name field between receiver and arguments
* The same order as in source code. * CallOrWriteNode, CallOperatorWriteNode, CallAndWriteNode already have the correct order so it was also inconsistent with them. https://github.com/ruby/prism/commit/4434e4bc22
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 1fba370613..f92ca9e475 100644
--- a/lib/prism/desugar_compiler.rb
+++ b/lib/prism/desugar_compiler.rb
@@ -159,13 +159,13 @@ module Prism
CallNode.new(
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),
nil,
nil,
0,
- node.operator_loc.slice.chomp("="),
node.location
),
node.operator_loc.copy(start_offset: node.operator_loc.end_offset - 1, length: 1),