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/semantic/send.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/semantic/send.txt')
-rw-r--r-- | test/prism/snapshots/unparser/corpus/semantic/send.txt | 56 |
1 files changed, 28 insertions, 28 deletions
diff --git a/test/prism/snapshots/unparser/corpus/semantic/send.txt b/test/prism/snapshots/unparser/corpus/semantic/send.txt index 30e2707edc..7f359ed765 100644 --- a/test/prism/snapshots/unparser/corpus/semantic/send.txt +++ b/test/prism/snapshots/unparser/corpus/semantic/send.txt @@ -6,16 +6,17 @@ ├── @ CallNode (location: (1,0)-(1,3)) │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ + │ ├── name: :foo │ ├── message_loc: (1,0)-(1,3) = "foo" │ ├── opening_loc: ∅ │ ├── arguments: ∅ │ ├── closing_loc: ∅ │ ├── block: ∅ - │ ├── flags: variable_call - │ └── name: :foo + │ └── flags: variable_call ├── @ CallNode (location: (2,0)-(2,6)) │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ + │ ├── name: :foo │ ├── message_loc: (2,0)-(2,3) = "foo" │ ├── opening_loc: (2,3)-(2,4) = "(" │ ├── arguments: @@ -26,8 +27,7 @@ │ │ └── flags: ∅ │ ├── closing_loc: (2,5)-(2,6) = ")" │ ├── block: ∅ - │ ├── flags: ∅ - │ └── name: :foo + │ └── flags: ∅ ├── @ CallNode (location: (4,0)-(4,15)) │ ├── receiver: │ │ @ CallNode (location: (4,0)-(4,10)) @@ -37,14 +37,15 @@ │ │ │ │ @ CallNode (location: (4,0)-(4,1)) │ │ │ │ ├── receiver: ∅ │ │ │ │ ├── call_operator_loc: ∅ + │ │ │ │ ├── name: :a │ │ │ │ ├── message_loc: (4,0)-(4,1) = "a" │ │ │ │ ├── opening_loc: ∅ │ │ │ │ ├── arguments: ∅ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ ├── block: ∅ - │ │ │ │ ├── flags: variable_call - │ │ │ │ └── name: :a + │ │ │ │ └── flags: variable_call │ │ │ ├── call_operator_loc: (4,1)-(4,2) = "." + │ │ │ ├── name: :=== │ │ │ ├── message_loc: (4,2)-(4,5) = "===" │ │ │ ├── opening_loc: (4,5)-(4,6) = "(" │ │ │ ├── arguments: @@ -53,27 +54,27 @@ │ │ │ │ │ └── @ CallNode (location: (4,6)-(4,7)) │ │ │ │ │ ├── receiver: ∅ │ │ │ │ │ ├── call_operator_loc: ∅ + │ │ │ │ │ ├── name: :b │ │ │ │ │ ├── message_loc: (4,6)-(4,7) = "b" │ │ │ │ │ ├── opening_loc: ∅ │ │ │ │ │ ├── arguments: ∅ │ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ │ ├── block: ∅ - │ │ │ │ │ ├── flags: variable_call - │ │ │ │ │ └── name: :b + │ │ │ │ │ └── flags: variable_call │ │ │ │ └── flags: ∅ │ │ │ ├── closing_loc: (4,7)-(4,8) = ")" │ │ │ ├── block: ∅ - │ │ │ ├── flags: ∅ - │ │ │ └── name: :=== + │ │ │ └── flags: ∅ │ │ ├── call_operator_loc: (4,8)-(4,9) = "." + │ │ ├── name: :c │ │ ├── message_loc: (4,9)-(4,10) = "c" │ │ ├── opening_loc: ∅ │ │ ├── arguments: ∅ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ - │ │ ├── flags: ∅ - │ │ └── name: :c + │ │ └── flags: ∅ │ ├── call_operator_loc: ∅ + │ ├── name: :== │ ├── message_loc: (4,11)-(4,13) = "==" │ ├── opening_loc: ∅ │ ├── arguments: @@ -82,31 +83,31 @@ │ │ │ └── @ CallNode (location: (4,14)-(4,15)) │ │ │ ├── receiver: ∅ │ │ │ ├── call_operator_loc: ∅ + │ │ │ ├── name: :d │ │ │ ├── message_loc: (4,14)-(4,15) = "d" │ │ │ ├── opening_loc: ∅ │ │ │ ├── arguments: ∅ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ - │ │ │ ├── flags: variable_call - │ │ │ └── name: :d + │ │ │ └── flags: variable_call │ │ └── flags: ∅ │ ├── closing_loc: ∅ │ ├── block: ∅ - │ ├── flags: ∅ - │ └── name: :== + │ └── flags: ∅ └── @ CallNode (location: (6,0)-(6,15)) ├── receiver: │ @ CallNode (location: (6,0)-(6,1)) │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ + │ ├── name: :a │ ├── message_loc: (6,0)-(6,1) = "a" │ ├── opening_loc: ∅ │ ├── arguments: ∅ │ ├── closing_loc: ∅ │ ├── block: ∅ - │ ├── flags: variable_call - │ └── name: :a + │ └── flags: variable_call ├── call_operator_loc: ∅ + ├── name: :== ├── message_loc: (6,2)-(6,4) = "==" ├── opening_loc: ∅ ├── arguments: @@ -119,22 +120,23 @@ │ │ │ │ @ CallNode (location: (6,5)-(6,6)) │ │ │ │ ├── receiver: ∅ │ │ │ │ ├── call_operator_loc: ∅ + │ │ │ │ ├── name: :d │ │ │ │ ├── message_loc: (6,5)-(6,6) = "d" │ │ │ │ ├── opening_loc: ∅ │ │ │ │ ├── arguments: ∅ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ ├── block: ∅ - │ │ │ │ ├── flags: variable_call - │ │ │ │ └── name: :d + │ │ │ │ └── flags: variable_call │ │ │ ├── call_operator_loc: (6,6)-(6,7) = "." + │ │ │ ├── name: :c │ │ │ ├── message_loc: (6,7)-(6,8) = "c" │ │ │ ├── opening_loc: ∅ │ │ │ ├── arguments: ∅ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ - │ │ │ ├── flags: ∅ - │ │ │ └── name: :c + │ │ │ └── flags: ∅ │ │ ├── call_operator_loc: (6,8)-(6,9) = "." + │ │ ├── name: :=== │ │ ├── message_loc: (6,9)-(6,12) = "===" │ │ ├── opening_loc: (6,12)-(6,13) = "(" │ │ ├── arguments: @@ -143,20 +145,18 @@ │ │ │ │ └── @ CallNode (location: (6,13)-(6,14)) │ │ │ │ ├── receiver: ∅ │ │ │ │ ├── call_operator_loc: ∅ + │ │ │ │ ├── name: :c │ │ │ │ ├── message_loc: (6,13)-(6,14) = "c" │ │ │ │ ├── opening_loc: ∅ │ │ │ │ ├── arguments: ∅ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ ├── block: ∅ - │ │ │ │ ├── flags: variable_call - │ │ │ │ └── name: :c + │ │ │ │ └── flags: variable_call │ │ │ └── flags: ∅ │ │ ├── closing_loc: (6,14)-(6,15) = ")" │ │ ├── block: ∅ - │ │ ├── flags: ∅ - │ │ └── name: :=== + │ │ └── flags: ∅ │ └── flags: ∅ ├── closing_loc: ∅ ├── block: ∅ - ├── flags: ∅ - └── name: :== + └── flags: ∅ |