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/args_assocs_legacy.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/args_assocs_legacy.txt')
-rw-r--r-- | test/prism/snapshots/whitequark/args_assocs_legacy.txt | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/test/prism/snapshots/whitequark/args_assocs_legacy.txt b/test/prism/snapshots/whitequark/args_assocs_legacy.txt index 6730512872..b136bbd322 100644 --- a/test/prism/snapshots/whitequark/args_assocs_legacy.txt +++ b/test/prism/snapshots/whitequark/args_assocs_legacy.txt @@ -6,6 +6,7 @@ ├── @ CallNode (location: (1,0)-(1,14)) │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ + │ ├── name: :fun │ ├── message_loc: (1,0)-(1,3) = "fun" │ ├── opening_loc: (1,3)-(1,4) = "(" │ ├── arguments: @@ -27,11 +28,11 @@ │ │ └── flags: ∅ │ ├── closing_loc: (1,13)-(1,14) = ")" │ ├── block: ∅ - │ ├── flags: ∅ - │ └── name: :fun + │ └── flags: ∅ ├── @ CallNode (location: (3,0)-(3,19)) │ ├── receiver: ∅ │ ├── call_operator_loc: ∅ + │ ├── name: :fun │ ├── message_loc: (3,0)-(3,3) = "fun" │ ├── opening_loc: (3,3)-(3,4) = "(" │ ├── arguments: @@ -58,20 +59,20 @@ │ │ │ @ CallNode (location: (3,16)-(3,19)) │ │ │ ├── receiver: ∅ │ │ │ ├── call_operator_loc: ∅ + │ │ │ ├── name: :baz │ │ │ ├── message_loc: (3,16)-(3,19) = "baz" │ │ │ ├── opening_loc: ∅ │ │ │ ├── arguments: ∅ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ - │ │ │ ├── flags: variable_call - │ │ │ └── name: :baz + │ │ │ └── flags: variable_call │ │ └── operator_loc: (3,15)-(3,16) = "&" - │ ├── flags: ∅ - │ └── name: :fun + │ └── flags: ∅ ├── @ CallNode (location: (5,0)-(5,21)) │ ├── receiver: │ │ @ SelfNode (location: (5,0)-(5,4)) │ ├── call_operator_loc: (5,4)-(5,5) = "." + │ ├── name: :[]= │ ├── message_loc: (5,5)-(5,8) = "[]=" │ ├── opening_loc: ∅ │ ├── arguments: @@ -80,13 +81,13 @@ │ │ │ ├── @ CallNode (location: (5,9)-(5,12)) │ │ │ │ ├── receiver: ∅ │ │ │ │ ├── call_operator_loc: ∅ + │ │ │ │ ├── name: :foo │ │ │ │ ├── message_loc: (5,9)-(5,12) = "foo" │ │ │ │ ├── opening_loc: ∅ │ │ │ │ ├── arguments: ∅ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ ├── block: ∅ - │ │ │ │ ├── flags: variable_call - │ │ │ │ └── name: :foo + │ │ │ │ └── flags: variable_call │ │ │ └── @ KeywordHashNode (location: (5,14)-(5,21)) │ │ │ └── elements: (length: 1) │ │ │ └── @ AssocNode (location: (5,14)-(5,21)) @@ -103,12 +104,12 @@ │ │ └── flags: ∅ │ ├── closing_loc: ∅ │ ├── block: ∅ - │ ├── flags: ∅ - │ └── name: :[]= + │ └── flags: ∅ ├── @ CallNode (location: (7,0)-(7,15)) │ ├── receiver: │ │ @ SelfNode (location: (7,0)-(7,4)) │ ├── call_operator_loc: ∅ + │ ├── name: :[] │ ├── message_loc: (7,4)-(7,15) = "[:bar => 1]" │ ├── opening_loc: (7,4)-(7,5) = "[" │ ├── arguments: @@ -130,8 +131,7 @@ │ │ └── flags: ∅ │ ├── closing_loc: (7,14)-(7,15) = "]" │ ├── block: ∅ - │ ├── flags: ∅ - │ └── name: :[] + │ └── flags: ∅ ├── @ SuperNode (location: (9,0)-(9,17)) │ ├── keyword_loc: (9,0)-(9,5) = "super" │ ├── lparen_loc: (9,5)-(9,6) = "(" |