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/whitequark/newline_in_hash_argument.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/whitequark/newline_in_hash_argument.txt')
-rw-r--r-- | test/prism/snapshots/whitequark/newline_in_hash_argument.txt | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/test/prism/snapshots/whitequark/newline_in_hash_argument.txt b/test/prism/snapshots/whitequark/newline_in_hash_argument.txt index 43791501f3..6bfce489dc 100644 --- a/test/prism/snapshots/whitequark/newline_in_hash_argument.txt +++ b/test/prism/snapshots/whitequark/newline_in_hash_argument.txt @@ -8,13 +8,13 @@ │ │ @ CallNode (location: (1,5)-(1,8)) │ │ ├── receiver: ∅ │ │ ├── call_operator_loc: ∅ + │ │ ├── name: :foo │ │ ├── message_loc: (1,5)-(1,8) = "foo" │ │ ├── opening_loc: ∅ │ │ ├── arguments: ∅ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ - │ │ ├── flags: variable_call - │ │ └── name: :foo + │ │ └── flags: variable_call │ ├── conditions: (length: 2) │ │ ├── @ InNode (location: (2,0)-(4,4)) │ │ │ ├── pattern: @@ -74,14 +74,15 @@ │ │ @ CallNode (location: (10,0)-(10,3)) │ │ ├── receiver: ∅ │ │ ├── call_operator_loc: ∅ + │ │ ├── name: :obj │ │ ├── message_loc: (10,0)-(10,3) = "obj" │ │ ├── opening_loc: ∅ │ │ ├── arguments: ∅ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ - │ │ ├── flags: variable_call - │ │ └── name: :obj + │ │ └── flags: variable_call │ ├── call_operator_loc: (10,3)-(10,4) = "." + │ ├── name: :set │ ├── message_loc: (10,4)-(10,7) = "set" │ ├── opening_loc: ∅ │ ├── arguments: @@ -103,21 +104,21 @@ │ │ └── flags: ∅ │ ├── closing_loc: ∅ │ ├── block: ∅ - │ ├── flags: ∅ - │ └── name: :set + │ └── flags: ∅ └── @ CallNode (location: (13,0)-(14,1)) ├── receiver: │ @ CallNode (location: (13,0)-(13,3)) │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ + │ ├── name: :obj │ ├── message_loc: (13,0)-(13,3) = "obj" │ ├── opening_loc: ∅ │ ├── arguments: ∅ │ ├── closing_loc: ∅ │ ├── block: ∅ - │ ├── flags: variable_call - │ └── name: :obj + │ └── flags: variable_call ├── call_operator_loc: (13,3)-(13,4) = "." + ├── name: :set ├── message_loc: (13,4)-(13,7) = "set" ├── opening_loc: ∅ ├── arguments: @@ -139,5 +140,4 @@ │ └── flags: ∅ ├── closing_loc: ∅ ├── block: ∅ - ├── flags: ∅ - └── name: :set + └── flags: ∅ |