diff options
author | Kevin Newton <kddnewton@gmail.com> | 2023-09-14 11:19:20 -0400 |
---|---|---|
committer | git <svn-admin@ruby-lang.org> | 2023-09-14 18:31:55 +0000 |
commit | fb1328e4676da4dfc174ccadc57899e2eac96a63 (patch) | |
tree | 8ed8cf4e9e214dc7b035ad57befec213e4528d06 /test/yarp/snapshots | |
parent | b098c4247b91b2ba6e3a6d872325d2812f7b5c5f (diff) | |
download | ruby-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.txt | 10 | ||||
-rw-r--r-- | test/yarp/snapshots/whitequark/masgn_nested.txt | 10 |
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)) |