diff options
author | Haldun Bayhantopcu <haldun@github.com> | 2023-11-21 00:03:18 +0100 |
---|---|---|
committer | git <svn-admin@ruby-lang.org> | 2023-11-20 23:03:23 +0000 |
commit | 36afc11ece39a13bc0ca7ace8267d7a91070946a (patch) | |
tree | 2f53628e991626501cfaf1c1b09c6d64d4aa9e40 /test/prism/snapshots | |
parent | 914640eaddcff7cccbd21fbea84d4ead1e91a5db (diff) | |
download | ruby-36afc11ece39a13bc0ca7ace8267d7a91070946a.tar.gz |
[ruby/prism] Fix locations derived from arguments.
(https://github.com/ruby/prism/pull/1897)
https://github.com/ruby/prism/commit/00b76ef254
Diffstat (limited to 'test/prism/snapshots')
-rw-r--r-- | test/prism/snapshots/super.txt | 8 | ||||
-rw-r--r-- | test/prism/snapshots/unparser/corpus/literal/send.txt | 6 | ||||
-rw-r--r-- | test/prism/snapshots/unparser/corpus/literal/super.txt | 4 |
3 files changed, 9 insertions, 9 deletions
diff --git a/test/prism/snapshots/super.txt b/test/prism/snapshots/super.txt index 96b74ce091..55d7526b37 100644 --- a/test/prism/snapshots/super.txt +++ b/test/prism/snapshots/super.txt @@ -1,7 +1,7 @@ -@ ProgramNode (location: (1,0)-(17,20)) +@ ProgramNode (location: (1,0)-(17,21)) ├── locals: [] └── statements: - @ StatementsNode (location: (1,0)-(17,20)) + @ StatementsNode (location: (1,0)-(17,21)) └── body: (length: 9) ├── @ ForwardingSuperNode (location: (1,0)-(1,5)) │ └── block: ∅ @@ -51,7 +51,7 @@ │ │ ├── closing_loc: ∅ │ │ └── unescaped: "foo" │ └── operator_loc: (9,6)-(9,7) = "&" - ├── @ SuperNode (location: (11,0)-(11,11)) + ├── @ SuperNode (location: (11,0)-(11,12)) │ ├── keyword_loc: (11,0)-(11,5) = "super" │ ├── lparen_loc: (11,5)-(11,6) = "(" │ ├── arguments: ∅ @@ -94,7 +94,7 @@ │ ├── body: ∅ │ ├── opening_loc: (15,15)-(15,16) = "{" │ └── closing_loc: (15,16)-(15,17) = "}" - └── @ SuperNode (location: (17,0)-(17,20)) + └── @ SuperNode (location: (17,0)-(17,21)) ├── keyword_loc: (17,0)-(17,5) = "super" ├── lparen_loc: (17,5)-(17,6) = "(" ├── arguments: diff --git a/test/prism/snapshots/unparser/corpus/literal/send.txt b/test/prism/snapshots/unparser/corpus/literal/send.txt index 5a3e7ce6b3..68a83b210a 100644 --- a/test/prism/snapshots/unparser/corpus/literal/send.txt +++ b/test/prism/snapshots/unparser/corpus/literal/send.txt @@ -1004,7 +1004,7 @@ │ ├── block: ∅ │ ├── flags: ∅ │ └── name: :foo - ├── @ CallNode (location: (58,0)-(58,12)) + ├── @ CallNode (location: (58,0)-(58,13)) │ ├── receiver: │ │ @ CallNode (location: (58,0)-(58,3)) │ │ ├── receiver: ∅ @@ -1178,7 +1178,7 @@ │ ├── block: ∅ │ ├── flags: ∅ │ └── name: :bar - ├── @ CallNode (location: (62,0)-(62,18)) + ├── @ CallNode (location: (62,0)-(62,19)) │ ├── receiver: │ │ @ CallNode (location: (62,0)-(62,3)) │ │ ├── receiver: ∅ @@ -1364,7 +1364,7 @@ │ ├── block: ∅ │ ├── flags: ∅ │ └── name: :bar - ├── @ CallNode (location: (66,0)-(66,26)) + ├── @ CallNode (location: (66,0)-(66,27)) │ ├── receiver: │ │ @ CallNode (location: (66,0)-(66,3)) │ │ ├── receiver: ∅ diff --git a/test/prism/snapshots/unparser/corpus/literal/super.txt b/test/prism/snapshots/unparser/corpus/literal/super.txt index 924c016c7e..3beb41916f 100644 --- a/test/prism/snapshots/unparser/corpus/literal/super.txt +++ b/test/prism/snapshots/unparser/corpus/literal/super.txt @@ -59,7 +59,7 @@ │ │ └── flags: ∅ │ ├── rparen_loc: (4,10)-(4,11) = ")" │ └── block: ∅ - ├── @ SuperNode (location: (5,0)-(5,12)) + ├── @ SuperNode (location: (5,0)-(5,13)) │ ├── keyword_loc: (5,0)-(5,5) = "super" │ ├── lparen_loc: (5,5)-(5,6) = "(" │ ├── arguments: ∅ @@ -78,7 +78,7 @@ │ │ ├── flags: variable_call │ │ └── name: :block │ └── operator_loc: (5,6)-(5,7) = "&" - ├── @ SuperNode (location: (6,0)-(6,15)) + ├── @ SuperNode (location: (6,0)-(6,16)) │ ├── keyword_loc: (6,0)-(6,5) = "super" │ ├── lparen_loc: (6,5)-(6,6) = "(" │ ├── arguments: |