diff options
author | Kevin Newton <kddnewton@gmail.com> | 2023-11-10 00:02:41 -0500 |
---|---|---|
committer | git <svn-admin@ruby-lang.org> | 2023-11-10 21:50:11 +0000 |
commit | 98e5ea94314340c9be37cc490739fd56c772c16b (patch) | |
tree | 107482ec13783350462fe8e9ce858640db8c64ae /test/prism/snapshots | |
parent | 03aa1092adc33e8cdef417ac941f09c7380fc1ee (diff) | |
download | ruby-98e5ea94314340c9be37cc490739fd56c772c16b.tar.gz |
[ruby/prism] Disallow forwarding in blocks
https://github.com/ruby/prism/commit/2bbd35943c
Diffstat (limited to 'test/prism/snapshots')
-rw-r--r-- | test/prism/snapshots/unparser/corpus/literal/block.txt | 4 | ||||
-rw-r--r-- | test/prism/snapshots/whitequark/blockargs.txt | 8 | ||||
-rw-r--r-- | test/prism/snapshots/whitequark/send_lambda.txt | 2 |
3 files changed, 7 insertions, 7 deletions
diff --git a/test/prism/snapshots/unparser/corpus/literal/block.txt b/test/prism/snapshots/unparser/corpus/literal/block.txt index 2605b6a6b2..ef04ef93d6 100644 --- a/test/prism/snapshots/unparser/corpus/literal/block.txt +++ b/test/prism/snapshots/unparser/corpus/literal/block.txt @@ -226,7 +226,7 @@ │ ├── closing_loc: ∅ │ ├── block: │ │ @ BlockNode (location: (17,4)-(19,1)) - │ │ ├── locals: [:a, :*] + │ │ ├── locals: [:a] │ │ ├── parameters: │ │ │ @ BlockParametersNode (location: (17,6)-(17,12)) │ │ │ ├── parameters: @@ -488,7 +488,7 @@ │ ├── closing_loc: ∅ │ ├── block: │ │ @ BlockNode (location: (32,8)-(34,1)) - │ │ ├── locals: [:*] + │ │ ├── locals: [] │ │ ├── parameters: │ │ │ @ BlockParametersNode (location: (32,10)-(32,13)) │ │ │ ├── parameters: diff --git a/test/prism/snapshots/whitequark/blockargs.txt b/test/prism/snapshots/whitequark/blockargs.txt index ec0296813f..78281ce706 100644 --- a/test/prism/snapshots/whitequark/blockargs.txt +++ b/test/prism/snapshots/whitequark/blockargs.txt @@ -119,7 +119,7 @@ │ ├── closing_loc: ∅ │ ├── block: │ │ @ BlockNode (location: (9,1)-(9,12)) - │ │ ├── locals: [:*, :b] + │ │ ├── locals: [:b] │ │ ├── parameters: │ │ │ @ BlockParametersNode (location: (9,3)-(9,10)) │ │ │ ├── parameters: @@ -265,7 +265,7 @@ │ ├── closing_loc: ∅ │ ├── block: │ │ @ BlockNode (location: (17,1)-(17,8)) - │ │ ├── locals: [:*] + │ │ ├── locals: [] │ │ ├── parameters: │ │ │ @ BlockParametersNode (location: (17,3)-(17,6)) │ │ │ ├── parameters: @@ -379,7 +379,7 @@ │ ├── closing_loc: ∅ │ ├── block: │ │ @ BlockNode (location: (27,1)-(27,15)) - │ │ ├── locals: [:a, :*, :b] + │ │ ├── locals: [:a, :b] │ │ ├── parameters: │ │ │ @ BlockParametersNode (location: (27,3)-(27,13)) │ │ │ ├── parameters: @@ -533,7 +533,7 @@ │ ├── closing_loc: ∅ │ ├── block: │ │ @ BlockNode (location: (35,1)-(35,11)) - │ │ ├── locals: [:a, :*] + │ │ ├── locals: [:a] │ │ ├── parameters: │ │ │ @ BlockParametersNode (location: (35,3)-(35,9)) │ │ │ ├── parameters: diff --git a/test/prism/snapshots/whitequark/send_lambda.txt b/test/prism/snapshots/whitequark/send_lambda.txt index bd3e74119f..b39992d868 100644 --- a/test/prism/snapshots/whitequark/send_lambda.txt +++ b/test/prism/snapshots/whitequark/send_lambda.txt @@ -4,7 +4,7 @@ @ StatementsNode (location: (1,0)-(5,5)) └── body: (length: 3) ├── @ LambdaNode (location: (1,0)-(1,8)) - │ ├── locals: [:*] + │ ├── locals: [] │ ├── operator_loc: (1,0)-(1,2) = "->" │ ├── opening_loc: (1,5)-(1,6) = "{" │ ├── closing_loc: (1,7)-(1,8) = "}" |