diff options
author | Benoit Daloze <eregontp@gmail.com> | 2023-11-20 17:43:26 +0100 |
---|---|---|
committer | git <svn-admin@ruby-lang.org> | 2023-11-22 12:15:20 +0000 |
commit | 018e6abf8509c7de2a8efb49741d594b15f49fbf (patch) | |
tree | 73063cfd93412f02dbeb4981eabb73c84160be83 /lib | |
parent | ea60bf912caa3ea193b7673b59b0113c1e708609 (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')
-rw-r--r-- | lib/prism/desugar_compiler.rb | 2 |
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), |