aboutsummaryrefslogtreecommitdiffstats
path: root/test/yarp/snapshots
diff options
context:
space:
mode:
authorKevin Newton <kddnewton@gmail.com>2023-09-14 11:19:20 -0400
committergit <svn-admin@ruby-lang.org>2023-09-14 18:31:55 +0000
commitfb1328e4676da4dfc174ccadc57899e2eac96a63 (patch)
tree8ed8cf4e9e214dc7b035ad57befec213e4528d06 /test/yarp/snapshots
parentb098c4247b91b2ba6e3a6d872325d2812f7b5c5f (diff)
downloadruby-fb1328e4676da4dfc174ccadc57899e2eac96a63.tar.gz
[ruby/yarp] Fix multi target parentheses locations
https://github.com/ruby/yarp/commit/7f71527522
Diffstat (limited to 'test/yarp/snapshots')
-rw-r--r--test/yarp/snapshots/seattlerb/masgn_double_paren.txt10
-rw-r--r--test/yarp/snapshots/whitequark/masgn_nested.txt10
2 files changed, 10 insertions, 10 deletions
diff --git a/test/yarp/snapshots/seattlerb/masgn_double_paren.txt b/test/yarp/snapshots/seattlerb/masgn_double_paren.txt
index 3e4fc9af03..d2f8b358c9 100644
--- a/test/yarp/snapshots/seattlerb/masgn_double_paren.txt
+++ b/test/yarp/snapshots/seattlerb/masgn_double_paren.txt
@@ -1,9 +1,9 @@
-@ ProgramNode (location: (1...9))
+@ ProgramNode (location: (0...9))
├── locals: [:a, :b]
└── statements:
- @ StatementsNode (location: (1...9))
+ @ StatementsNode (location: (0...9))
└── body: (length: 1)
- └── @ MultiWriteNode (location: (1...9))
+ └── @ MultiWriteNode (location: (0...9))
├── targets: (length: 1)
│ └── @ MultiTargetNode (location: (1...6))
│ ├── targets: (length: 2)
@@ -15,8 +15,8 @@
│ │ └── depth: 0
│ ├── lparen_loc: (1...2) = "("
│ └── rparen_loc: (5...6) = ")"
- ├── lparen_loc: ∅
- ├── rparen_loc: ∅
+ ├── lparen_loc: (0...1) = "("
+ ├── rparen_loc: (6...7) = ")"
├── operator_loc: (7...8) = "="
└── value:
@ CallNode (location: (8...9))
diff --git a/test/yarp/snapshots/whitequark/masgn_nested.txt b/test/yarp/snapshots/whitequark/masgn_nested.txt
index 30982bf9b7..3a3f07d09b 100644
--- a/test/yarp/snapshots/whitequark/masgn_nested.txt
+++ b/test/yarp/snapshots/whitequark/masgn_nested.txt
@@ -1,9 +1,9 @@
-@ ProgramNode (location: (1...30))
+@ ProgramNode (location: (0...30))
├── locals: [:b, :a, :c]
└── statements:
- @ StatementsNode (location: (1...30))
+ @ StatementsNode (location: (0...30))
└── body: (length: 2)
- ├── @ MultiWriteNode (location: (1...13))
+ ├── @ MultiWriteNode (location: (0...13))
│ ├── targets: (length: 1)
│ │ └── @ MultiTargetNode (location: (1...6))
│ │ ├── targets: (length: 2)
@@ -15,8 +15,8 @@
│ │ │ └── expression: ∅
│ │ ├── lparen_loc: (1...2) = "("
│ │ └── rparen_loc: (5...6) = ")"
- │ ├── lparen_loc: ∅
- │ ├── rparen_loc: ∅
+ │ ├── lparen_loc: (0...1) = "("
+ │ ├── rparen_loc: (6...7) = ")"
│ ├── operator_loc: (8...9) = "="
│ └── value:
│ @ CallNode (location: (10...13))