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 /test/prism/snapshots/unparser/corpus/literal/since/31.txt | |
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 'test/prism/snapshots/unparser/corpus/literal/since/31.txt')
-rw-r--r-- | test/prism/snapshots/unparser/corpus/literal/since/31.txt | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/prism/snapshots/unparser/corpus/literal/since/31.txt b/test/prism/snapshots/unparser/corpus/literal/since/31.txt index 87d3fb8bf8..0572d6faa9 100644 --- a/test/prism/snapshots/unparser/corpus/literal/since/31.txt +++ b/test/prism/snapshots/unparser/corpus/literal/since/31.txt @@ -26,6 +26,7 @@ │ │ └── @ CallNode (location: (2,2)-(2,7)) │ │ ├── receiver: ∅ │ │ ├── call_operator_loc: ∅ + │ │ ├── name: :bar │ │ ├── message_loc: (2,2)-(2,5) = "bar" │ │ ├── opening_loc: (2,5)-(2,6) = "(" │ │ ├── arguments: ∅ @@ -34,8 +35,7 @@ │ │ │ @ BlockArgumentNode (location: (2,6)-(2,7)) │ │ │ ├── expression: ∅ │ │ │ └── operator_loc: (2,6)-(2,7) = "&" - │ │ ├── flags: ∅ - │ │ └── name: :bar + │ │ └── flags: ∅ │ ├── locals: [:&] │ ├── def_keyword_loc: (1,0)-(1,3) = "def" │ ├── operator_loc: ∅ @@ -68,6 +68,7 @@ │ └── @ CallNode (location: (6,2)-(6,7)) │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ + │ ├── name: :bar │ ├── message_loc: (6,2)-(6,5) = "bar" │ ├── opening_loc: (6,5)-(6,6) = "(" │ ├── arguments: ∅ @@ -76,8 +77,7 @@ │ │ @ BlockArgumentNode (location: (6,6)-(6,7)) │ │ ├── expression: ∅ │ │ └── operator_loc: (6,6)-(6,7) = "&" - │ ├── flags: ∅ - │ └── name: :bar + │ └── flags: ∅ ├── locals: [:a, :&] ├── def_keyword_loc: (5,0)-(5,3) = "def" ├── operator_loc: ∅ |