summaryrefslogtreecommitdiff
path: root/test/prism/snapshots/seattlerb/defs_endless_command_rescue.txt
diff options
context:
space:
mode:
authorBenoit Daloze <eregontp@gmail.com>2023-11-20 17:43:26 +0100
committergit <svn-admin@ruby-lang.org>2023-11-22 12:15:20 +0000
commit018e6abf8509c7de2a8efb49741d594b15f49fbf (patch)
tree73063cfd93412f02dbeb4981eabb73c84160be83 /test/prism/snapshots/seattlerb/defs_endless_command_rescue.txt
parentea60bf912caa3ea193b7673b59b0113c1e708609 (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/seattlerb/defs_endless_command_rescue.txt')
-rw-r--r--test/prism/snapshots/seattlerb/defs_endless_command_rescue.txt8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/prism/snapshots/seattlerb/defs_endless_command_rescue.txt b/test/prism/snapshots/seattlerb/defs_endless_command_rescue.txt
index cfa1d12086..9e6a4b5db5 100644
--- a/test/prism/snapshots/seattlerb/defs_endless_command_rescue.txt
+++ b/test/prism/snapshots/seattlerb/defs_endless_command_rescue.txt
@@ -10,13 +10,13 @@
│ @ CallNode (location: (1,4)-(1,5))
│ ├── receiver: ∅
│ ├── call_operator_loc: ∅
+ │ ├── name: :x
│ ├── message_loc: (1,4)-(1,5) = "x"
│ ├── opening_loc: ∅
│ ├── arguments: ∅
│ ├── closing_loc: ∅
│ ├── block: ∅
- │ ├── flags: variable_call
- │ └── name: :x
+ │ └── flags: variable_call
├── parameters: ∅
├── body:
│ @ StatementsNode (location: (1,20)-(1,45))
@@ -26,6 +26,7 @@
│ │ @ CallNode (location: (1,20)-(1,35))
│ │ ├── receiver: ∅
│ │ ├── call_operator_loc: ∅
+ │ │ ├── name: :other_method
│ │ ├── message_loc: (1,20)-(1,32) = "other_method"
│ │ ├── opening_loc: ∅
│ │ ├── arguments:
@@ -36,8 +37,7 @@
│ │ │ └── flags: ∅
│ │ ├── closing_loc: ∅
│ │ ├── block: ∅
- │ │ ├── flags: ∅
- │ │ └── name: :other_method
+ │ │ └── flags: ∅
│ ├── keyword_loc: (1,36)-(1,42) = "rescue"
│ └── rescue_expression:
│ @ IntegerNode (location: (1,43)-(1,45))