diff options
author | Kevin Newton <kddnewton@gmail.com> | 2023-11-10 00:09:33 -0500 |
---|---|---|
committer | git <svn-admin@ruby-lang.org> | 2023-11-10 21:50:12 +0000 |
commit | 85db7baccb946c6bb463166acdd0fd7b12568d35 (patch) | |
tree | 016a1b967c539c0a5ff1ded95cd341c8e3871da3 /test | |
parent | 98e5ea94314340c9be37cc490739fd56c772c16b (diff) |
[ruby/prism] Remove extra locals added by ...
https://github.com/ruby/prism/commit/b7850f2d30
Diffstat (limited to 'test')
11 files changed, 26 insertions, 26 deletions
diff --git a/test/prism/errors_test.rb b/test/prism/errors_test.rb index aeea04d04d..ee4736a000 100644 --- a/test/prism/errors_test.rb +++ b/test/prism/errors_test.rb @@ -723,7 +723,7 @@ module Prism nil ), nil, - [:*, :&, :"...", :a], + [:"...", :a], Location(), nil, Location(), @@ -800,7 +800,7 @@ module Prism nil, ParametersNode([], [], nil, [], [], ForwardingParameterNode(), nil), nil, - [:*, :&, :"..."], + [:"..."], Location(), nil, Location(), diff --git a/test/prism/snapshots/methods.txt b/test/prism/snapshots/methods.txt index f89ebbd8e0..4bc8fead19 100644 --- a/test/prism/snapshots/methods.txt +++ b/test/prism/snapshots/methods.txt @@ -189,7 +189,7 @@ │ │ │ @ ForwardingParameterNode (location: (19,6)-(19,9)) │ │ └── block: ∅ │ ├── body: ∅ - │ ├── locals: [:*, :&, :"..."] + │ ├── locals: [:"..."] │ ├── def_keyword_loc: (19,0)-(19,3) = "def" │ ├── operator_loc: ∅ │ ├── lparen_loc: (19,5)-(19,6) = "(" @@ -953,7 +953,7 @@ │ │ ├── block: ∅ │ │ ├── flags: ∅ │ │ └── name: :b - │ ├── locals: [:*, :&, :"..."] + │ ├── locals: [:"..."] │ ├── def_keyword_loc: (112,0)-(112,3) = "def" │ ├── operator_loc: ∅ │ ├── lparen_loc: (112,5)-(112,6) = "(" @@ -995,7 +995,7 @@ │ │ ├── block: ∅ │ │ ├── flags: ∅ │ │ └── name: :b - │ ├── locals: [:*, :&, :"..."] + │ ├── locals: [:"..."] │ ├── def_keyword_loc: (114,0)-(114,3) = "def" │ ├── operator_loc: ∅ │ ├── lparen_loc: (114,5)-(114,6) = "(" @@ -1216,7 +1216,7 @@ │ │ │ │ └── name: :b │ │ │ └── closing_loc: (136,24)-(136,25) = "}" │ │ └── closing_loc: (136,25)-(136,26) = "\"" - │ ├── locals: [:*, :&, :"..."] + │ ├── locals: [:"..."] │ ├── def_keyword_loc: (136,0)-(136,3) = "def" │ ├── operator_loc: ∅ │ ├── lparen_loc: (136,5)-(136,6) = "(" diff --git a/test/prism/snapshots/seattlerb/defn_arg_forward_args.txt b/test/prism/snapshots/seattlerb/defn_arg_forward_args.txt index cfed07646c..a7fa779738 100644 --- a/test/prism/snapshots/seattlerb/defn_arg_forward_args.txt +++ b/test/prism/snapshots/seattlerb/defn_arg_forward_args.txt @@ -39,7 +39,7 @@ │ ├── block: ∅ │ ├── flags: ∅ │ └── name: :b - ├── locals: [:x, :*, :&, :"..."] + ├── locals: [:x, :"..."] ├── def_keyword_loc: (1,0)-(1,3) = "def" ├── operator_loc: ∅ ├── lparen_loc: (1,5)-(1,6) = "(" diff --git a/test/prism/snapshots/seattlerb/defn_args_forward_args.txt b/test/prism/snapshots/seattlerb/defn_args_forward_args.txt index 374ac8adfd..0dff707b29 100644 --- a/test/prism/snapshots/seattlerb/defn_args_forward_args.txt +++ b/test/prism/snapshots/seattlerb/defn_args_forward_args.txt @@ -48,7 +48,7 @@ │ ├── block: ∅ │ ├── flags: ∅ │ └── name: :b - ├── locals: [:x, :y, :z, :*, :&, :"..."] + ├── locals: [:x, :y, :z, :"..."] ├── def_keyword_loc: (1,0)-(1,3) = "def" ├── operator_loc: ∅ ├── lparen_loc: (1,5)-(1,6) = "(" diff --git a/test/prism/snapshots/seattlerb/defn_forward_args.txt b/test/prism/snapshots/seattlerb/defn_forward_args.txt index d86e27427a..6f14c0d1b1 100644 --- a/test/prism/snapshots/seattlerb/defn_forward_args.txt +++ b/test/prism/snapshots/seattlerb/defn_forward_args.txt @@ -34,7 +34,7 @@ │ ├── block: ∅ │ ├── flags: ∅ │ └── name: :b - ├── locals: [:*, :&, :"..."] + ├── locals: [:"..."] ├── def_keyword_loc: (1,0)-(1,3) = "def" ├── operator_loc: ∅ ├── lparen_loc: (1,5)-(1,6) = "(" diff --git a/test/prism/snapshots/seattlerb/defn_forward_args__no_parens.txt b/test/prism/snapshots/seattlerb/defn_forward_args__no_parens.txt index e0b6844969..de87e9757a 100644 --- a/test/prism/snapshots/seattlerb/defn_forward_args__no_parens.txt +++ b/test/prism/snapshots/seattlerb/defn_forward_args__no_parens.txt @@ -34,7 +34,7 @@ │ ├── block: ∅ │ ├── flags: ∅ │ └── name: :m - ├── locals: [:*, :&, :"..."] + ├── locals: [:"..."] ├── def_keyword_loc: (1,0)-(1,3) = "def" ├── operator_loc: ∅ ├── lparen_loc: ∅ diff --git a/test/prism/snapshots/whitequark/endless_method_forwarded_args_legacy.txt b/test/prism/snapshots/whitequark/endless_method_forwarded_args_legacy.txt index 2c048b39f7..07ff89fe29 100644 --- a/test/prism/snapshots/whitequark/endless_method_forwarded_args_legacy.txt +++ b/test/prism/snapshots/whitequark/endless_method_forwarded_args_legacy.txt @@ -34,7 +34,7 @@ │ ├── block: ∅ │ ├── flags: ∅ │ └── name: :bar - ├── locals: [:*, :&, :"..."] + ├── locals: [:"..."] ├── def_keyword_loc: (1,0)-(1,3) = "def" ├── operator_loc: ∅ ├── lparen_loc: (1,7)-(1,8) = "(" diff --git a/test/prism/snapshots/whitequark/forward_arg.txt b/test/prism/snapshots/whitequark/forward_arg.txt index 5c87944e58..1a9aaec90b 100644 --- a/test/prism/snapshots/whitequark/forward_arg.txt +++ b/test/prism/snapshots/whitequark/forward_arg.txt @@ -34,7 +34,7 @@ │ ├── block: ∅ │ ├── flags: ∅ │ └── name: :bar - ├── locals: [:*, :&, :"..."] + ├── locals: [:"..."] ├── def_keyword_loc: (1,0)-(1,3) = "def" ├── operator_loc: ∅ ├── lparen_loc: (1,7)-(1,8) = "(" diff --git a/test/prism/snapshots/whitequark/forward_arg_with_open_args.txt b/test/prism/snapshots/whitequark/forward_arg_with_open_args.txt index 4894f7b6cf..7d7727ad27 100644 --- a/test/prism/snapshots/whitequark/forward_arg_with_open_args.txt +++ b/test/prism/snapshots/whitequark/forward_arg_with_open_args.txt @@ -38,7 +38,7 @@ │ │ │ ├── block: ∅ │ │ │ ├── flags: ∅ │ │ │ └── name: :bar - │ │ ├── locals: [:*, :&, :"..."] + │ │ ├── locals: [:"..."] │ │ ├── def_keyword_loc: (1,1)-(1,4) = "def" │ │ ├── operator_loc: ∅ │ │ ├── lparen_loc: ∅ @@ -82,7 +82,7 @@ │ │ │ ├── block: ∅ │ │ │ ├── flags: ∅ │ │ │ └── name: :bar - │ │ ├── locals: [:*, :&, :"..."] + │ │ ├── locals: [:"..."] │ │ ├── def_keyword_loc: (5,1)-(5,4) = "def" │ │ ├── operator_loc: ∅ │ │ ├── lparen_loc: ∅ @@ -106,7 +106,7 @@ │ │ │ @ ForwardingParameterNode (location: (7,8)-(7,11)) │ │ └── block: ∅ │ ├── body: ∅ - │ ├── locals: [:*, :&, :"..."] + │ ├── locals: [:"..."] │ ├── def_keyword_loc: (7,0)-(7,3) = "def" │ ├── operator_loc: ∅ │ ├── lparen_loc: ∅ @@ -144,7 +144,7 @@ │ │ ├── block: ∅ │ │ ├── flags: ∅ │ │ └── name: :bar - │ ├── locals: [:*, :&, :"..."] + │ ├── locals: [:"..."] │ ├── def_keyword_loc: (10,0)-(10,3) = "def" │ ├── operator_loc: ∅ │ ├── lparen_loc: ∅ @@ -184,7 +184,7 @@ │ │ ├── block: ∅ │ │ ├── flags: ∅ │ │ └── name: :bar - │ ├── locals: [:a, :*, :&, :"..."] + │ ├── locals: [:a, :"..."] │ ├── def_keyword_loc: (12,0)-(12,3) = "def" │ ├── operator_loc: ∅ │ ├── lparen_loc: ∅ @@ -224,7 +224,7 @@ │ │ ├── block: ∅ │ │ ├── flags: ∅ │ │ └── name: :bar - │ ├── locals: [:a, :*, :&, :"..."] + │ ├── locals: [:a, :"..."] │ ├── def_keyword_loc: (16,0)-(16,3) = "def" │ ├── operator_loc: ∅ │ ├── lparen_loc: ∅ @@ -255,7 +255,7 @@ │ │ │ @ ForwardingParameterNode (location: (18,18)-(18,21)) │ │ └── block: ∅ │ ├── body: ∅ - │ ├── locals: [:a, :b, :*, :&, :"..."] + │ ├── locals: [:a, :b, :"..."] │ ├── def_keyword_loc: (18,0)-(18,3) = "def" │ ├── operator_loc: ∅ │ ├── lparen_loc: ∅ @@ -300,7 +300,7 @@ │ │ ├── block: ∅ │ │ ├── flags: ∅ │ │ └── name: :bar - │ ├── locals: [:b, :*, :&, :"..."] + │ ├── locals: [:b, :"..."] │ ├── def_keyword_loc: (21,0)-(21,3) = "def" │ ├── operator_loc: ∅ │ ├── lparen_loc: ∅ @@ -345,7 +345,7 @@ │ │ ├── block: ∅ │ │ ├── flags: ∅ │ │ └── name: :bar - │ ├── locals: [:b, :*, :&, :"..."] + │ ├── locals: [:b, :"..."] │ ├── def_keyword_loc: (25,0)-(25,3) = "def" │ ├── operator_loc: ∅ │ ├── lparen_loc: ∅ @@ -385,7 +385,7 @@ │ ├── block: ∅ │ ├── flags: ∅ │ └── name: :bar - ├── locals: [:a, :*, :&, :"..."] + ├── locals: [:a, :"..."] ├── def_keyword_loc: (27,0)-(27,3) = "def" ├── operator_loc: ∅ ├── lparen_loc: (27,7)-(27,8) = "(" diff --git a/test/prism/snapshots/whitequark/forward_args_legacy.txt b/test/prism/snapshots/whitequark/forward_args_legacy.txt index e66d785bc1..5bca692fab 100644 --- a/test/prism/snapshots/whitequark/forward_args_legacy.txt +++ b/test/prism/snapshots/whitequark/forward_args_legacy.txt @@ -34,7 +34,7 @@ │ │ ├── block: ∅ │ │ ├── flags: ∅ │ │ └── name: :bar - │ ├── locals: [:*, :&, :"..."] + │ ├── locals: [:"..."] │ ├── def_keyword_loc: (1,0)-(1,3) = "def" │ ├── operator_loc: ∅ │ ├── lparen_loc: (1,7)-(1,8) = "(" @@ -56,7 +56,7 @@ │ │ │ @ ForwardingParameterNode (location: (3,8)-(3,11)) │ │ └── block: ∅ │ ├── body: ∅ - │ ├── locals: [:*, :&, :"..."] + │ ├── locals: [:"..."] │ ├── def_keyword_loc: (3,0)-(3,3) = "def" │ ├── operator_loc: ∅ │ ├── lparen_loc: (3,7)-(3,8) = "(" @@ -90,7 +90,7 @@ │ │ └── flags: ∅ │ ├── rparen_loc: (5,23)-(5,24) = ")" │ └── block: ∅ - ├── locals: [:*, :&, :"..."] + ├── locals: [:"..."] ├── def_keyword_loc: (5,0)-(5,3) = "def" ├── operator_loc: ∅ ├── lparen_loc: (5,7)-(5,8) = "(" diff --git a/test/prism/snapshots/whitequark/trailing_forward_arg.txt b/test/prism/snapshots/whitequark/trailing_forward_arg.txt index 450cd0f105..62a884e0e5 100644 --- a/test/prism/snapshots/whitequark/trailing_forward_arg.txt +++ b/test/prism/snapshots/whitequark/trailing_forward_arg.txt @@ -43,7 +43,7 @@ │ ├── block: ∅ │ ├── flags: ∅ │ └── name: :bar - ├── locals: [:a, :b, :*, :&, :"..."] + ├── locals: [:a, :b, :"..."] ├── def_keyword_loc: (1,0)-(1,3) = "def" ├── operator_loc: ∅ ├── lparen_loc: (1,7)-(1,8) = "(" |