diff options
Diffstat (limited to 'test/prism')
292 files changed, 0 insertions, 859 deletions
diff --git a/test/prism/errors_test.rb b/test/prism/errors_test.rb index c65fff5167..ea5ecb7cce 100644 --- a/test/prism/errors_test.rb +++ b/test/prism/errors_test.rb @@ -443,7 +443,6 @@ module Prism nil, StatementsNode([ModuleNode([], Location(), ConstantReadNode(:A), nil, Location(), :A)]), [], - 0, Location(), nil, nil, @@ -475,7 +474,6 @@ module Prism nil, BlockNode( [], - 0, nil, StatementsNode([ModuleNode([], Location(), ConstantReadNode(:Foo), nil, Location(), :Foo)]), Location(), @@ -484,7 +482,6 @@ module Prism )] ), [], - 0, Location(), nil, nil, @@ -535,7 +532,6 @@ module Prism )] ), [], - 0, Location(), nil, nil, @@ -576,7 +572,6 @@ module Prism ], [], nil, [], [], nil, nil), nil, [:A, :@a, :$A, :@@a], - 4, Location(), nil, Location(), @@ -648,7 +643,6 @@ module Prism ), nil, [:a, :b, :c], - 3, Location(), nil, Location(), @@ -665,7 +659,6 @@ module Prism def test_do_not_allow_trailing_commas_in_lambda_parameters expected = LambdaNode( [:a, :b], - 2, Location(), Location(), Location(), @@ -734,7 +727,6 @@ module Prism ), nil, [:block, :a], - 2, Location(), nil, Location(), @@ -755,7 +747,6 @@ module Prism ParametersNode([], [], nil, [RequiredParameterNode(0, :a)], [], nil, BlockParameterNode(0, nil, nil, Location())), nil, [:a], - 1, Location(), nil, Location(), @@ -785,7 +776,6 @@ module Prism ), nil, [:a], - 1, Location(), nil, Location(), @@ -814,7 +804,6 @@ module Prism ), nil, [:b, :a], - 2, Location(), nil, Location(), @@ -843,7 +832,6 @@ module Prism ), nil, [:rest, :b], - 2, Location(), nil, Location(), @@ -865,7 +853,6 @@ module Prism ParametersNode([], [], nil, [], [], ForwardingParameterNode(), nil), nil, [], - 0, Location(), nil, Location(), @@ -895,7 +882,6 @@ module Prism ), nil, [:args, :a, :b], - 3, Location(), nil, Location(), @@ -926,7 +912,6 @@ module Prism ), nil, [:args, :a, :b], - 3, Location(), nil, Location(), @@ -957,7 +942,6 @@ module Prism ), nil, [:args, :a, :b], - 3, Location(), nil, Location(), @@ -991,7 +975,6 @@ module Prism ), nil, [:a, :b, :c, :d, :e], - 5, Location(), nil, Location(), @@ -1041,7 +1024,6 @@ module Prism nil, StatementsNode([IntegerNode(IntegerBaseFlags::DECIMAL)]), [], - 0, Location(), nil, Location(), @@ -1058,7 +1040,6 @@ module Prism def test_do_not_allow_forward_arguments_in_lambda_literals expected = LambdaNode( [], - 0, Location(), Location(), Location(), @@ -1083,7 +1064,6 @@ module Prism nil, BlockNode( [], - 0, BlockParametersNode(ParametersNode([], [], nil, [], [], ForwardingParameterNode(), nil), [], Location(), Location()), nil, Location(), @@ -1158,7 +1138,6 @@ module Prism ParametersNode([RequiredParameterNode(0, :a), RequiredParameterNode(0, :b), RequiredParameterNode(ParameterFlags::REPEATED_PARAMETER, :a)], [], nil, [], [], nil, nil), nil, [:a, :b], - 2, Location(), nil, Location(), @@ -1179,7 +1158,6 @@ module Prism ParametersNode([RequiredParameterNode(0, :a), RequiredParameterNode(0, :b)], [], RestParameterNode(ParameterFlags::REPEATED_PARAMETER, :a, Location(), Location()), [], [], nil, nil), nil, [:a, :b], - 2, Location(), nil, Location(), @@ -1199,7 +1177,6 @@ module Prism ParametersNode([RequiredParameterNode(0, :a), RequiredParameterNode(0, :b)], [], nil, [], [], KeywordRestParameterNode(ParameterFlags::REPEATED_PARAMETER, :a, Location(), Location()), nil), nil, [:a, :b], - 2, Location(), nil, Location(), @@ -1219,7 +1196,6 @@ module Prism ParametersNode([RequiredParameterNode(0, :a), RequiredParameterNode(0, :b)], [], nil, [], [], nil, BlockParameterNode(ParameterFlags::REPEATED_PARAMETER, :a, Location(), Location())), nil, [:a, :b], - 2, Location(), nil, Location(), @@ -1239,7 +1215,6 @@ module Prism ParametersNode([], [OptionalParameterNode(0, :a, Location(), Location(), IntegerNode(IntegerBaseFlags::DECIMAL))], RestParameterNode(0, :c, Location(), Location()), [RequiredParameterNode(0, :b)], [], nil, nil), nil, [:a, :b, :c], - 3, Location(), nil, Location(), diff --git a/test/prism/snapshots/arrays.txt b/test/prism/snapshots/arrays.txt index dd84e25b4a..d6b3775698 100644 --- a/test/prism/snapshots/arrays.txt +++ b/test/prism/snapshots/arrays.txt @@ -1067,7 +1067,6 @@ β β βββ expression: β
β β βββ operator_loc: (89,6)-(89,7) = "&" β βββ locals: [] - β βββ locals_body_index: 0 β βββ def_keyword_loc: (88,0)-(88,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: (88,7)-(88,8) = "(" @@ -1848,7 +1847,6 @@ β β βββ closing_loc: (128,13)-(128,14) = "]" β β βββ block: β
β βββ locals: [] - β βββ locals_body_index: 0 β βββ def_keyword_loc: (128,0)-(128,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: (128,5)-(128,6) = "(" @@ -1905,7 +1903,6 @@ β β βββ closing_loc: (130,16)-(130,17) = "]" β β βββ block: β
β βββ locals: [] - β βββ locals_body_index: 0 β βββ def_keyword_loc: (130,0)-(130,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: (130,5)-(130,6) = "(" @@ -1962,7 +1959,6 @@ β β βββ closing_loc: (132,13)-(132,14) = "]" β β βββ block: β
β βββ locals: [] - β βββ locals_body_index: 0 β βββ def_keyword_loc: (132,0)-(132,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: (132,5)-(132,6) = "(" @@ -2021,7 +2017,6 @@ β β βββ closing_loc: (134,16)-(134,17) = "]" β β βββ block: β
β βββ locals: [] - β βββ locals_body_index: 0 β βββ def_keyword_loc: (134,0)-(134,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: (134,5)-(134,6) = "(" @@ -2079,7 +2074,6 @@ β β @ IntegerNode (location: (136,18)-(136,19)) β β βββ flags: decimal β βββ locals: [] - β βββ locals_body_index: 0 β βββ def_keyword_loc: (136,0)-(136,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: (136,5)-(136,6) = "(" @@ -2138,7 +2132,6 @@ β β @ IntegerNode (location: (138,22)-(138,23)) β β βββ flags: decimal β βββ locals: [] - β βββ locals_body_index: 0 β βββ def_keyword_loc: (138,0)-(138,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: (138,5)-(138,6) = "(" @@ -2202,7 +2195,6 @@ β β βββ ensure_clause: β
β β βββ end_keyword_loc: (140,26)-(140,29) = "end" β βββ locals: [] - β βββ locals_body_index: 0 β βββ def_keyword_loc: (140,0)-(140,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: (140,5)-(140,6) = "(" @@ -2268,7 +2260,6 @@ β βββ ensure_clause: β
β βββ end_keyword_loc: (142,29)-(142,32) = "end" βββ locals: [] - βββ locals_body_index: 0 βββ def_keyword_loc: (142,0)-(142,3) = "def" βββ operator_loc: β
βββ lparen_loc: (142,5)-(142,6) = "(" diff --git a/test/prism/snapshots/begin_ensure.txt b/test/prism/snapshots/begin_ensure.txt index b86feefc1d..9af9b9e573 100644 --- a/test/prism/snapshots/begin_ensure.txt +++ b/test/prism/snapshots/begin_ensure.txt @@ -195,7 +195,6 @@ β β β β β βββ block: β β β β β @ BlockNode (location: (15,40)-(21,3)) β β β β β βββ locals: [] - β β β β β βββ locals_body_index: 0 β β β β β βββ parameters: β
β β β β β βββ body: β β β β β β @ StatementsNode (location: (16,2)-(20,5)) @@ -230,7 +229,6 @@ β β β β β β β β βββ block: β β β β β β β β @ BlockNode (location: (18,22)-(19,7)) β β β β β β β β βββ locals: [] - β β β β β β β β βββ locals_body_index: 0 β β β β β β β β βββ parameters: β
β β β β β β β β βββ body: β
β β β β β β β β βββ opening_loc: (18,22)-(18,24) = "do" diff --git a/test/prism/snapshots/blocks.txt b/test/prism/snapshots/blocks.txt index 577a11ab16..398a228fd3 100644 --- a/test/prism/snapshots/blocks.txt +++ b/test/prism/snapshots/blocks.txt @@ -38,7 +38,6 @@ β βββ block: β @ BlockNode (location: (1,9)-(1,16)) β βββ locals: [] - β βββ locals_body_index: 0 β βββ parameters: β
β βββ body: β β @ StatementsNode (location: (1,11)-(1,14)) @@ -90,7 +89,6 @@ β βββ block: β @ BlockNode (location: (3,9)-(5,3)) β βββ locals: [] - β βββ locals_body_index: 0 β βββ parameters: β
β βββ body: β β @ StatementsNode (location: (4,0)-(4,3)) @@ -134,7 +132,6 @@ β βββ block: β @ BlockNode (location: (7,12)-(7,35)) β βββ locals: [:x, :memo] - β βββ locals_body_index: 2 β βββ parameters: β β @ BlockParametersNode (location: (7,14)-(7,23)) β β βββ parameters: @@ -182,7 +179,6 @@ β βββ block: β @ BlockNode (location: (9,4)-(9,10)) β βββ locals: [] - β βββ locals_body_index: 0 β βββ parameters: β
β βββ body: β
β βββ opening_loc: (9,4)-(9,6) = "do" @@ -224,7 +220,6 @@ β β β βββ block: β β β @ BlockNode (location: (11,14)-(11,20)) β β β βββ locals: [] - β β β βββ locals_body_index: 0 β β β βββ parameters: β
β β β βββ body: β
β β β βββ opening_loc: (11,14)-(11,16) = "do" @@ -258,7 +253,6 @@ β βββ block: β @ BlockNode (location: (13,8)-(13,14)) β βββ locals: [] - β βββ locals_body_index: 0 β βββ parameters: β
β βββ body: β
β βββ opening_loc: (13,8)-(13,10) = "do" @@ -301,7 +295,6 @@ β βββ block: β @ BlockNode (location: (15,12)-(15,18)) β βββ locals: [] - β βββ locals_body_index: 0 β βββ parameters: β
β βββ body: β
β βββ opening_loc: (15,12)-(15,14) = "do" @@ -318,7 +311,6 @@ β βββ block: β @ BlockNode (location: (17,4)-(18,3)) β βββ locals: [:a] - β βββ locals_body_index: 1 β βββ parameters: β β @ BlockParametersNode (location: (17,7)-(17,17)) β β βββ parameters: @@ -379,7 +371,6 @@ β βββ block: β @ BlockNode (location: (20,4)-(22,3)) β βββ locals: [] - β βββ locals_body_index: 0 β βββ parameters: β
β βββ body: β β @ BeginNode (location: (21,0)-(22,3)) @@ -410,7 +401,6 @@ β βββ block: β @ BlockNode (location: (24,4)-(29,3)) β βββ locals: [] - β βββ locals_body_index: 0 β βββ parameters: β
β βββ body: β β @ StatementsNode (location: (25,2)-(28,5)) @@ -427,7 +417,6 @@ β β βββ block: β β @ BlockNode (location: (25,6)-(28,5)) β β βββ locals: [] - β β βββ locals_body_index: 0 β β βββ parameters: β
β β βββ body: β β β @ StatementsNode (location: (26,4)-(27,7)) @@ -444,7 +433,6 @@ β β β βββ block: β β β @ BlockNode (location: (26,8)-(27,7)) β β β βββ locals: [] - β β β βββ locals_body_index: 0 β β β βββ parameters: β
β β β βββ body: β
β β β βββ opening_loc: (26,8)-(26,10) = "do" @@ -488,7 +476,6 @@ β βββ block: β @ BlockNode (location: (31,9)-(31,16)) β βββ locals: [] - β βββ locals_body_index: 0 β βββ parameters: β
β βββ body: β β @ StatementsNode (location: (31,11)-(31,14)) @@ -517,7 +504,6 @@ β βββ block: β @ BlockNode (location: (33,4)-(33,24)) β βββ locals: [:x, :y, :z] - β βββ locals_body_index: 3 β βββ parameters: β β @ BlockParametersNode (location: (33,6)-(33,20)) β β βββ parameters: @@ -567,7 +553,6 @@ β βββ block: β @ BlockNode (location: (35,4)-(35,11)) β βββ locals: [:x] - β βββ locals_body_index: 1 β βββ parameters: β β @ BlockParametersNode (location: (35,6)-(35,9)) β β βββ parameters: @@ -608,7 +593,6 @@ β βββ block: β @ BlockNode (location: (38,5)-(39,3)) β βββ locals: [:a] - β βββ locals_body_index: 1 β βββ parameters: β β @ BlockParametersNode (location: (38,8)-(38,11)) β β βββ parameters: @@ -641,7 +625,6 @@ β βββ block: β @ BlockNode (location: (41,5)-(41,12)) β βββ locals: [:a] - β βββ locals_body_index: 1 β βββ parameters: β β @ BlockParametersNode (location: (41,7)-(41,10)) β β βββ parameters: @@ -674,7 +657,6 @@ β βββ block: β @ BlockNode (location: (43,2)-(44,3)) β βββ locals: [] - β βββ locals_body_index: 0 β βββ parameters: β
β βββ body: β
β βββ opening_loc: (43,2)-(43,4) = "do" @@ -691,7 +673,6 @@ β βββ block: β @ BlockNode (location: (46,2)-(46,4)) β βββ locals: [] - β βββ locals_body_index: 0 β βββ parameters: β
β βββ body: β
β βββ opening_loc: (46,2)-(46,3) = "{" @@ -719,7 +700,6 @@ β β βββ block: β β @ BlockNode (location: (48,11)-(52,1)) β β βββ locals: [:a, :b] - β β βββ locals_body_index: 2 β β βββ parameters: β β β @ BlockParametersNode (location: (48,13)-(51,3)) β β β βββ parameters: @@ -765,7 +745,6 @@ βββ block: @ BlockNode (location: (54,4)-(54,17)) βββ locals: [:bar] - βββ locals_body_index: 1 βββ parameters: β @ BlockParametersNode (location: (54,7)-(54,13)) β βββ parameters: diff --git a/test/prism/snapshots/break.txt b/test/prism/snapshots/break.txt index c30231c02d..b7d891f0d6 100644 --- a/test/prism/snapshots/break.txt +++ b/test/prism/snapshots/break.txt @@ -140,7 +140,6 @@ β β βββ block: β β @ BlockNode (location: (23,4)-(23,16)) β β βββ locals: [] - β β βββ locals_body_index: 0 β β βββ parameters: β
β β βββ body: β β β @ StatementsNode (location: (23,6)-(23,14)) @@ -182,7 +181,6 @@ β βββ block: β @ BlockNode (location: (25,4)-(25,17)) β βββ locals: [:a] - β βββ locals_body_index: 1 β βββ parameters: β β @ BlockParametersNode (location: (25,6)-(25,9)) β β βββ parameters: diff --git a/test/prism/snapshots/case.txt b/test/prism/snapshots/case.txt index b8cafca6a0..b74ff535e0 100644 --- a/test/prism/snapshots/case.txt +++ b/test/prism/snapshots/case.txt @@ -439,7 +439,6 @@ βββ block: @ BlockNode (location: (51,7)-(55,3)) βββ locals: [:_1] - βββ locals_body_index: 1 βββ parameters: β @ NumberedParametersNode (location: (51,7)-(55,3)) β βββ maximum: 1 diff --git a/test/prism/snapshots/command_method_call.txt b/test/prism/snapshots/command_method_call.txt index bf9194176d..de6093abbd 100644 --- a/test/prism/snapshots/command_method_call.txt +++ b/test/prism/snapshots/command_method_call.txt @@ -416,7 +416,6 @@ β β βββ closing_loc: β
β β βββ block: β
β βββ locals: [] - β βββ locals_body_index: 0 β βββ def_keyword_loc: (25,0)-(25,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: β
diff --git a/test/prism/snapshots/endless_methods.txt b/test/prism/snapshots/endless_methods.txt index f3f4820dab..7485160a83 100644 --- a/test/prism/snapshots/endless_methods.txt +++ b/test/prism/snapshots/endless_methods.txt @@ -14,7 +14,6 @@ β β βββ @ IntegerNode (location: (1,10)-(1,11)) β β βββ flags: decimal β βββ locals: [] - β βββ locals_body_index: 0 β βββ def_keyword_loc: (1,0)-(1,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: β
@@ -49,7 +48,6 @@ β β βββ closing_loc: β
β β βββ block: β
β βββ locals: [] - β βββ locals_body_index: 0 β βββ def_keyword_loc: (3,0)-(3,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: β
@@ -97,7 +95,6 @@ β βββ closing_loc: β
β βββ block: β
βββ locals: [] - βββ locals_body_index: 0 βββ def_keyword_loc: (5,0)-(5,3) = "def" βββ operator_loc: β
βββ lparen_loc: β
diff --git a/test/prism/snapshots/hashes.txt b/test/prism/snapshots/hashes.txt index 824326e863..5fd0636548 100644 --- a/test/prism/snapshots/hashes.txt +++ b/test/prism/snapshots/hashes.txt @@ -279,7 +279,6 @@ β βββ block: β @ BlockNode (location: (23,4)-(26,3)) β βββ locals: [:b] - β βββ locals_body_index: 0 β βββ parameters: β
β βββ body: β β @ StatementsNode (location: (24,2)-(25,20)) diff --git a/test/prism/snapshots/if.txt b/test/prism/snapshots/if.txt index 76e102d42d..476088de72 100644 --- a/test/prism/snapshots/if.txt +++ b/test/prism/snapshots/if.txt @@ -349,7 +349,6 @@ β βββ block: β @ BlockNode (location: (34,9)-(35,5)) β βββ locals: [:_] - β βββ locals_body_index: 1 β βββ parameters: β β @ BlockParametersNode (location: (34,12)-(34,15)) β β βββ parameters: @@ -392,7 +391,6 @@ β β βββ block: β β @ BlockNode (location: (37,9)-(38,5)) β β βββ locals: [:_] - β β βββ locals_body_index: 1 β β βββ parameters: β β β @ BlockParametersNode (location: (37,12)-(37,15)) β β β βββ parameters: @@ -431,7 +429,6 @@ β β β βββ block: β β β @ BlockNode (location: (40,9)-(41,5)) β β β βββ locals: [:_] - β β β βββ locals_body_index: 1 β β β βββ parameters: β β β β @ BlockParametersNode (location: (40,12)-(40,15)) β β β β βββ parameters: diff --git a/test/prism/snapshots/indented_file_end.txt b/test/prism/snapshots/indented_file_end.txt index 91e8aed58a..aa43ec5a1e 100644 --- a/test/prism/snapshots/indented_file_end.txt +++ b/test/prism/snapshots/indented_file_end.txt @@ -10,7 +10,6 @@ βββ parameters: β
βββ body: β
βββ locals: [] - βββ locals_body_index: 0 βββ def_keyword_loc: (1,4)-(1,7) = "def" βββ operator_loc: β
βββ lparen_loc: β
diff --git a/test/prism/snapshots/keyword_method_names.txt b/test/prism/snapshots/keyword_method_names.txt index 3fdf69971d..9eb0428084 100644 --- a/test/prism/snapshots/keyword_method_names.txt +++ b/test/prism/snapshots/keyword_method_names.txt @@ -10,7 +10,6 @@ β βββ parameters: β
β βββ body: β
β βββ locals: [] - β βββ locals_body_index: 0 β βββ def_keyword_loc: (1,0)-(1,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: β
@@ -25,7 +24,6 @@ β βββ parameters: β
β βββ body: β
β βββ locals: [] - β βββ locals_body_index: 0 β βββ def_keyword_loc: (4,0)-(4,3) = "def" β βββ operator_loc: (4,8)-(4,9) = "." β βββ lparen_loc: β
@@ -63,13 +61,11 @@ β β β βββ block: β β β @ BlockNode (location: (8,6)-(9,5)) β β β βββ locals: [] - β β β βββ locals_body_index: 0 β β β βββ parameters: β
β β β βββ body: β
β β β βββ opening_loc: (8,6)-(8,8) = "do" β β β βββ closing_loc: (9,2)-(9,5) = "end" β β βββ locals: [] - β β βββ locals_body_index: 0 β β βββ def_keyword_loc: (7,8)-(7,11) = "def" β β βββ operator_loc: β
β β βββ lparen_loc: β
@@ -99,7 +95,6 @@ β β βββ block: β
β βββ body: β
β βββ locals: [:a] - β βββ locals_body_index: 1 β βββ def_keyword_loc: (12,0)-(12,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: (12,5)-(12,6) = "(" @@ -114,7 +109,6 @@ β βββ parameters: β
β βββ body: β
β βββ locals: [] - β βββ locals_body_index: 0 β βββ def_keyword_loc: (15,0)-(15,3) = "def" β βββ operator_loc: (15,16)-(15,17) = "." β βββ lparen_loc: β
@@ -142,7 +136,6 @@ β βββ parameters: β
β βββ body: β
β βββ locals: [] - β βββ locals_body_index: 0 β βββ def_keyword_loc: (22,0)-(22,3) = "def" β βββ operator_loc: (22,12)-(22,13) = "." β βββ lparen_loc: β
@@ -157,7 +150,6 @@ β βββ parameters: β
β βββ body: β
β βββ locals: [] - β βββ locals_body_index: 0 β βββ def_keyword_loc: (25,0)-(25,3) = "def" β βββ operator_loc: (25,12)-(25,13) = "." β βββ lparen_loc: β
@@ -172,7 +164,6 @@ βββ parameters: β
βββ body: β
βββ locals: [] - βββ locals_body_index: 0 βββ def_keyword_loc: (28,0)-(28,3) = "def" βββ operator_loc: (28,7)-(28,9) = "::" βββ lparen_loc: β
diff --git a/test/prism/snapshots/lambda.txt b/test/prism/snapshots/lambda.txt index 05e803c62b..6b50f02af7 100644 --- a/test/prism/snapshots/lambda.txt +++ b/test/prism/snapshots/lambda.txt @@ -5,7 +5,6 @@ βββ body: (length: 5) βββ @ LambdaNode (location: (1,0)-(3,4)) β βββ locals: [:foo] - β βββ locals_body_index: 1 β βββ operator_loc: (1,0)-(1,2) = "->" β βββ opening_loc: (3,2)-(3,3) = "{" β βββ closing_loc: (3,3)-(3,4) = "}" @@ -29,7 +28,6 @@ β βββ body: β
βββ @ LambdaNode (location: (5,0)-(5,18)) β βββ locals: [:x] - β βββ locals_body_index: 1 β βββ operator_loc: (5,0)-(5,2) = "->" β βββ opening_loc: (5,15)-(5,16) = "{" β βββ closing_loc: (5,17)-(5,18) = "}" @@ -81,7 +79,6 @@ β βββ body: β
βββ @ LambdaNode (location: (7,0)-(7,15)) β βββ locals: [:a] - β βββ locals_body_index: 1 β βββ operator_loc: (7,0)-(7,2) = "->" β βββ opening_loc: (7,13)-(7,14) = "{" β βββ closing_loc: (7,14)-(7,15) = "}" @@ -132,7 +129,6 @@ β βββ body: β
βββ @ LambdaNode (location: (9,0)-(9,19)) β βββ locals: [:foo] - β βββ locals_body_index: 1 β βββ operator_loc: (9,0)-(9,2) = "->" β βββ opening_loc: (9,13)-(9,15) = "do" β βββ closing_loc: (9,16)-(9,19) = "end" @@ -169,7 +165,6 @@ β βββ body: β
βββ @ LambdaNode (location: (11,0)-(11,18)) βββ locals: [:foo] - βββ locals_body_index: 1 βββ operator_loc: (11,0)-(11,2) = "->" βββ opening_loc: (11,12)-(11,14) = "do" βββ closing_loc: (11,15)-(11,18) = "end" diff --git a/test/prism/snapshots/method_calls.txt b/test/prism/snapshots/method_calls.txt index f40c2158e4..0463d04ab1 100644 --- a/test/prism/snapshots/method_calls.txt +++ b/test/prism/snapshots/method_calls.txt @@ -931,7 +931,6 @@ β βββ block: β @ BlockNode (location: (64,16)-(64,36)) β βββ locals: [:a, :b] - β βββ locals_body_index: 2 β βββ parameters: β β @ BlockParametersNode (location: (64,19)-(64,25)) β β βββ parameters: @@ -1393,7 +1392,6 @@ β βββ block: β @ BlockNode (location: (93,7)-(93,10)) β βββ locals: [] - β βββ locals_body_index: 0 β βββ parameters: β
β βββ body: β
β βββ opening_loc: (93,7)-(93,8) = "{" @@ -1420,7 +1418,6 @@ β βββ block: β @ BlockNode (location: (95,8)-(95,14)) β βββ locals: [] - β βββ locals_body_index: 0 β βββ parameters: β
β βββ body: β β @ StatementsNode (location: (95,10)-(95,12)) @@ -1512,7 +1509,6 @@ β βββ block: β @ BlockNode (location: (101,14)-(101,17)) β βββ locals: [] - β βββ locals_body_index: 0 β βββ parameters: β
β βββ body: β
β βββ opening_loc: (101,14)-(101,15) = "{" @@ -1592,7 +1588,6 @@ β β β β β βββ block: β β β β β @ BlockNode (location: (105,20)-(105,26)) β β β β β βββ locals: [] - β β β β β βββ locals_body_index: 0 β β β β β βββ parameters: β
β β β β β βββ body: β
β β β β β βββ opening_loc: (105,20)-(105,22) = "do" @@ -1642,7 +1637,6 @@ β β β β β βββ block: β β β β β @ BlockNode (location: (107,16)-(107,22)) β β β β β βββ locals: [] - β β β β β βββ locals_body_index: 0 β β β β β βββ parameters: β
β β β β β βββ body: β
β β β β β βββ opening_loc: (107,16)-(107,18) = "do" @@ -1693,7 +1687,6 @@ β β β β βββ block: β β β β @ BlockNode (location: (109,15)-(109,27)) β β β β βββ locals: [] - β β β β βββ locals_body_index: 0 β β β β βββ parameters: β
β β β β βββ body: β β β β β @ StatementsNode (location: (109,18)-(109,23)) @@ -1712,7 +1705,6 @@ β βββ block: β @ BlockNode (location: (109,30)-(109,36)) β βββ locals: [] - β βββ locals_body_index: 0 β βββ parameters: β
β βββ body: β
β βββ opening_loc: (109,30)-(109,32) = "do" @@ -1751,7 +1743,6 @@ β β β βββ block: β β β @ BlockNode (location: (111,18)-(111,24)) β β β βββ locals: [] - β β β βββ locals_body_index: 0 β β β βββ parameters: β
β β β βββ body: β
β β β βββ opening_loc: (111,18)-(111,20) = "do" @@ -1792,7 +1783,6 @@ β β β βββ block: β β β @ BlockNode (location: (113,19)-(113,25)) β β β βββ locals: [] - β β β βββ locals_body_index: 0 β β β βββ parameters: β
β β β βββ body: β
β β β βββ opening_loc: (113,19)-(113,21) = "do" @@ -1827,7 +1817,6 @@ β β β βββ block: β β β @ BlockNode (location: (115,9)-(115,15)) β β β βββ locals: [] - β β β βββ locals_body_index: 0 β β β βββ parameters: β
β β β βββ body: β
β β β βββ opening_loc: (115,9)-(115,11) = "do" @@ -1866,7 +1855,6 @@ β β β βββ block: β β β @ BlockNode (location: (117,16)-(117,24)) β β β βββ locals: [] - β β β βββ locals_body_index: 0 β β β βββ parameters: β
β β β βββ body: β β β β @ StatementsNode (location: (117,19)-(117,20)) @@ -1927,7 +1915,6 @@ β β β βββ block: β β β @ BlockNode (location: (121,8)-(123,7)) β β β βββ locals: [:a] - β β β βββ locals_body_index: 1 β β β βββ parameters: β β β β @ BlockParametersNode (location: (121,11)-(121,14)) β β β β βββ parameters: @@ -2004,7 +1991,6 @@ β β β βββ block: β β β @ BlockNode (location: (128,8)-(130,7)) β β β βββ locals: [:a] - β β β βββ locals_body_index: 1 β β β βββ parameters: β β β β @ BlockParametersNode (location: (128,11)-(128,14)) β β β β βββ parameters: @@ -2060,7 +2046,6 @@ β β βββ block: β β @ BlockNode (location: (133,8)-(134,7)) β β βββ locals: [] - β β βββ locals_body_index: 0 β β βββ parameters: β
β β βββ body: β
β β βββ opening_loc: (133,8)-(133,10) = "do" @@ -2094,7 +2079,6 @@ β β βββ block: β β @ BlockNode (location: (137,7)-(137,9)) β β βββ locals: [] - β β βββ locals_body_index: 0 β β βββ parameters: β
β β βββ body: β
β β βββ opening_loc: (137,7)-(137,8) = "{" @@ -2128,7 +2112,6 @@ β β βββ block: β β @ BlockNode (location: (139,7)-(139,16)) β β βββ locals: [:a] - β β βββ locals_body_index: 1 β β βββ parameters: β β β @ BlockParametersNode (location: (139,9)-(139,12)) β β β βββ parameters: @@ -2171,7 +2154,6 @@ β β βββ block: β β @ BlockNode (location: (141,2)-(141,4)) β β βββ locals: [] - β β βββ locals_body_index: 0 β β βββ parameters: β
β β βββ body: β
β β βββ opening_loc: (141,2)-(141,3) = "{" @@ -2196,7 +2178,6 @@ β β βββ block: β β @ BlockNode (location: (141,9)-(141,11)) β β βββ locals: [] - β β βββ locals_body_index: 0 β β βββ parameters: β
β β βββ body: β
β β βββ opening_loc: (141,9)-(141,10) = "{" @@ -2236,7 +2217,6 @@ β β βββ block: β β @ BlockNode (location: (143,9)-(143,11)) β β βββ locals: [] - β β βββ locals_body_index: 0 β β βββ parameters: β
β β βββ body: β
β β βββ opening_loc: (143,9)-(143,10) = "{" @@ -2342,7 +2322,6 @@ β β βββ closing_loc: β
β β βββ block: β
β βββ locals: [] - β βββ locals_body_index: 0 β βββ def_keyword_loc: (149,0)-(149,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: (149,5)-(149,6) = "(" @@ -2374,7 +2353,6 @@ β β βββ block: β β @ BlockNode (location: (151,11)-(151,16)) β β βββ locals: [] - β β βββ locals_body_index: 0 β β βββ parameters: β
β β βββ body: β β β @ StatementsNode (location: (151,13)-(151,14)) @@ -2405,7 +2383,6 @@ β βββ block: β @ BlockNode (location: (154,4)-(154,6)) β βββ locals: [] - β βββ locals_body_index: 0 β βββ parameters: β
β βββ body: β
β βββ opening_loc: (154,4)-(154,5) = "{" diff --git a/test/prism/snapshots/methods.txt b/test/prism/snapshots/methods.txt index 7f3b61f75d..524f023fe9 100644 --- a/test/prism/snapshots/methods.txt +++ b/test/prism/snapshots/methods.txt @@ -30,7 +30,6 @@ β β βββ block: β
β βββ body: β
β βββ locals: [:bar, :baz] - β βββ locals_body_index: 2 β βββ def_keyword_loc: (1,0)-(1,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: (1,7)-(1,8) = "(" @@ -84,7 +83,6 @@ β β βββ block: β
β βββ body: β
β βββ locals: [:bar, :baz, :optional, :bin, :bag] - β βββ locals_body_index: 5 β βββ def_keyword_loc: (4,0)-(4,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: (4,7)-(4,8) = "(" @@ -109,7 +107,6 @@ β β β βββ end_keyword_loc: (8,15)-(8,18) = "end" β β βββ end_keyword_loc: (8,15)-(8,18) = "end" β βββ locals: [] - β βββ locals_body_index: 0 β βββ def_keyword_loc: (8,0)-(8,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: β
@@ -137,7 +134,6 @@ β βββ parameters: β
β βββ body: β
β βββ locals: [] - β βββ locals_body_index: 0 β βββ def_keyword_loc: (10,0)-(10,3) = "def" β βββ operator_loc: (10,7)-(10,8) = "." β βββ lparen_loc: β
@@ -165,7 +161,6 @@ β βββ parameters: β
β βββ body: β
β βββ locals: [] - β βββ locals_body_index: 0 β βββ def_keyword_loc: (13,0)-(13,3) = "def" β βββ operator_loc: (13,7)-(13,9) = "::" β βββ lparen_loc: β
@@ -180,7 +175,6 @@ β βββ parameters: β
β βββ body: β
β βββ locals: [] - β βββ locals_body_index: 0 β βββ def_keyword_loc: (16,0)-(16,3) = "def" β βββ operator_loc: (16,9)-(16,10) = "." β βββ lparen_loc: β
@@ -203,7 +197,6 @@ β β βββ block: β
β βββ body: β
β βββ locals: [] - β βββ locals_body_index: 0 β βββ def_keyword_loc: (19,0)-(19,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: (19,5)-(19,6) = "(" @@ -219,7 +212,6 @@ β βββ parameters: β
β βββ body: β
β βββ locals: [] - β βββ locals_body_index: 0 β βββ def_keyword_loc: (22,0)-(22,3) = "def" β βββ operator_loc: (22,8)-(22,9) = "." β βββ lparen_loc: β
@@ -243,7 +235,6 @@ β βββ parameters: β
β βββ body: β
β βββ locals: [] - β βββ locals_body_index: 0 β βββ def_keyword_loc: (25,0)-(25,3) = "def" β βββ operator_loc: (25,5)-(25,6) = "." β βββ lparen_loc: β
@@ -259,7 +250,6 @@ β βββ parameters: β
β βββ body: β
β βββ locals: [] - β βββ locals_body_index: 0 β βββ def_keyword_loc: (28,0)-(28,3) = "def" β βββ operator_loc: (28,8)-(28,9) = "." β βββ lparen_loc: β
@@ -285,7 +275,6 @@ β β βββ block: β
β βββ body: β
β βββ locals: [:b] - β βββ locals_body_index: 1 β βββ def_keyword_loc: (31,0)-(31,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: β
@@ -317,7 +306,6 @@ β β βββ block: β
β βββ body: β
β βββ locals: [:b] - β βββ locals_body_index: 1 β βββ def_keyword_loc: (35,0)-(35,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: (35,5)-(35,6) = "(" @@ -344,7 +332,6 @@ β β βββ block: β
β βββ body: β
β βββ locals: [:b] - β βββ locals_body_index: 1 β βββ def_keyword_loc: (38,0)-(38,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: (38,5)-(38,6) = "(" @@ -371,7 +358,6 @@ β β βββ block: β
β βββ body: β
β βββ locals: [] - β βββ locals_body_index: 0 β βββ def_keyword_loc: (41,0)-(41,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: (41,5)-(41,6) = "(" @@ -393,7 +379,6 @@ β βββ parameters: β
β βββ body: β
β βββ locals: [] - β βββ locals_body_index: 0 β βββ def_keyword_loc: (44,7)-(44,10) = "def" β βββ operator_loc: β
β βββ lparen_loc: β
@@ -424,7 +409,6 @@ β β βββ block: β
β βββ body: β
β βββ locals: [:b, :c, :d] - β βββ locals_body_index: 3 β βββ def_keyword_loc: (47,0)-(47,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: β
@@ -439,7 +423,6 @@ β βββ parameters: β
β βββ body: β
β βββ locals: [] - β βββ locals_body_index: 0 β βββ def_keyword_loc: (50,0)-(50,3) = "def" β βββ operator_loc: (50,7)-(50,8) = "." β βββ lparen_loc: β
@@ -472,7 +455,6 @@ β β βββ block: β
β βββ body: β
β βββ locals: [:b, :c] - β βββ locals_body_index: 2 β βββ def_keyword_loc: (53,0)-(53,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: β
@@ -505,7 +487,6 @@ β β βββ block: β
β βββ body: β
β βββ locals: [:b, :c] - β βββ locals_body_index: 2 β βββ def_keyword_loc: (56,0)-(56,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: (56,5)-(56,6) = "(" @@ -538,7 +519,6 @@ β β βββ block: β
β βββ body: β
β βββ locals: [:b, :c] - β βββ locals_body_index: 2 β βββ def_keyword_loc: (59,0)-(59,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: (59,5)-(59,6) = "(" @@ -582,7 +562,6 @@ β β βββ block: β
β βββ body: β
β βββ locals: [:b, :c] - β βββ locals_body_index: 2 β βββ def_keyword_loc: (65,0)-(65,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: β
@@ -596,7 +575,6 @@ β βββ parameters: β
β βββ body: β
β βββ locals: [] - β βββ locals_body_index: 0 β βββ def_keyword_loc: (68,0)-(68,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: (68,5)-(68,6) = "(" @@ -629,7 +607,6 @@ β β βββ block: β
β βββ body: β
β βββ locals: [:b, :c] - β βββ locals_body_index: 2 β βββ def_keyword_loc: (71,0)-(71,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: β
@@ -654,7 +631,6 @@ β β βββ block: β
β βββ body: β
β βββ locals: [:b] - β βββ locals_body_index: 1 β βββ def_keyword_loc: (74,0)-(74,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: β
@@ -690,7 +666,6 @@ β β β βββ end_keyword_loc: (77,29)-(77,32) = "end" β β βββ end_keyword_loc: (77,29)-(77,32) = "end" β βββ locals: [] - β βββ locals_body_index: 0 β βββ def_keyword_loc: (77,0)-(77,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: β
@@ -717,7 +692,6 @@ β β βββ block: β
β βββ body: β
β βββ locals: [:b] - β βββ locals_body_index: 1 β βββ def_keyword_loc: (79,0)-(79,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: β
@@ -744,7 +718,6 @@ β β βββ block: β
β βββ body: β
β βββ locals: [] - β βββ locals_body_index: 0 β βββ def_keyword_loc: (82,0)-(82,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: (82,5)-(82,6) = "(" @@ -768,7 +741,6 @@ β β β βββ flags: decimal β β βββ operator_loc: (86,2)-(86,3) = "=" β βββ locals: [:b] - β βββ locals_body_index: 0 β βββ def_keyword_loc: (85,0)-(85,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: β
@@ -783,7 +755,6 @@ β βββ parameters: β
β βββ body: β
β βββ locals: [] - β βββ locals_body_index: 0 β βββ def_keyword_loc: (89,0)-(89,3) = "def" β βββ operator_loc: (89,8)-(89,9) = "." β βββ lparen_loc: β
@@ -798,7 +769,6 @@ β βββ parameters: β
β βββ body: β
β βββ locals: [] - β βββ locals_body_index: 0 β βββ def_keyword_loc: (92,0)-(92,3) = "def" β βββ operator_loc: (92,8)-(92,9) = "." β βββ lparen_loc: β
@@ -812,7 +782,6 @@ β βββ parameters: β
β βββ body: β
β βββ locals: [] - β βββ locals_body_index: 0 β βββ def_keyword_loc: (95,0)-(95,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: β
@@ -856,7 +825,6 @@ β β βββ closing_loc: β
β β βββ unescaped: "bye" β βββ locals: [] - β βββ locals_body_index: 0 β βββ def_keyword_loc: (98,0)-(98,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: β
@@ -874,7 +842,6 @@ β β βββ @ IntegerNode (location: (103,10)-(103,11)) β β βββ flags: decimal β βββ locals: [] - β βββ locals_body_index: 0 β βββ def_keyword_loc: (103,0)-(103,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: β
@@ -892,7 +859,6 @@ β β βββ @ IntegerNode (location: (104,10)-(104,11)) β β βββ flags: decimal β βββ locals: [] - β βββ locals_body_index: 0 β βββ def_keyword_loc: (104,0)-(104,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: β
@@ -921,7 +887,6 @@ β β βββ @ IntegerNode (location: (106,15)-(106,18)) β β βββ flags: decimal β βββ locals: [:bar] - β βββ locals_body_index: 1 β βββ def_keyword_loc: (106,0)-(106,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: (106,7)-(106,8) = "(" @@ -939,7 +904,6 @@ β β βββ @ IntegerNode (location: (108,10)-(108,13)) β β βββ flags: decimal β βββ locals: [] - β βββ locals_body_index: 0 β βββ def_keyword_loc: (108,0)-(108,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: β
@@ -984,7 +948,6 @@ β β βββ closing_loc: (110,13)-(110,14) = ")" β β βββ block: β
β βββ locals: [] - β βββ locals_body_index: 0 β βββ def_keyword_loc: (110,0)-(110,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: (110,5)-(110,6) = "(" @@ -1023,7 +986,6 @@ β β βββ closing_loc: (112,17)-(112,18) = ")" β β βββ block: β
β βββ locals: [] - β βββ locals_body_index: 0 β βββ def_keyword_loc: (112,0)-(112,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: (112,5)-(112,6) = "(" @@ -1066,7 +1028,6 @@ β β βββ closing_loc: (114,23)-(114,24) = ")" β β βββ block: β
β βββ locals: [] - β βββ locals_body_index: 0 β βββ def_keyword_loc: (114,0)-(114,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: (114,5)-(114,6) = "(" @@ -1100,7 +1061,6 @@ β βββ parameters: β
β βββ body: β
β βββ locals: [] - β βββ locals_body_index: 0 β βββ def_keyword_loc: (116,0)-(116,3) = "def" β βββ operator_loc: (116,11)-(116,12) = "." β βββ lparen_loc: β
@@ -1127,7 +1087,6 @@ β β βββ operator_loc: (119,6)-(119,7) = "&" β βββ body: β
β βββ locals: [:b] - β βββ locals_body_index: 1 β βββ def_keyword_loc: (119,0)-(119,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: β
@@ -1154,7 +1113,6 @@ β β βββ operator_loc: (122,6)-(122,7) = "&" β βββ body: β
β βββ locals: [] - β βββ locals_body_index: 0 β βββ def_keyword_loc: (122,0)-(122,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: (122,5)-(122,6) = "(" @@ -1170,7 +1128,6 @@ β βββ parameters: β
β βββ body: β
β βββ locals: [] - β βββ locals_body_index: 0 β βββ def_keyword_loc: (125,0)-(125,3) = "def" β βββ operator_loc: (125,9)-(125,10) = "." β βββ lparen_loc: β
@@ -1204,7 +1161,6 @@ β βββ parameters: β
β βββ body: β
β βββ locals: [] - β βββ locals_body_index: 0 β βββ def_keyword_loc: (128,0)-(128,3) = "def" β βββ operator_loc: (128,11)-(128,12) = "." β βββ lparen_loc: β
@@ -1219,7 +1175,6 @@ β βββ parameters: β
β βββ body: β
β βββ locals: [] - β βββ locals_body_index: 0 β βββ def_keyword_loc: (131,0)-(131,3) = "def" β βββ operator_loc: (131,8)-(131,9) = "." β βββ lparen_loc: β
@@ -1242,7 +1197,6 @@ β βββ parameters: β
β βββ body: β
β βββ locals: [] - β βββ locals_body_index: 0 β βββ def_keyword_loc: (133,11)-(133,14) = "def" β βββ operator_loc: (133,20)-(133,21) = "." β βββ lparen_loc: β
@@ -1297,7 +1251,6 @@ β β β βββ closing_loc: (136,24)-(136,25) = "}" β β βββ closing_loc: (136,25)-(136,26) = "\"" β βββ locals: [] - β βββ locals_body_index: 0 β βββ def_keyword_loc: (136,0)-(136,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: (136,5)-(136,6) = "(" @@ -1372,7 +1325,6 @@ β β βββ closing_loc: β
β β βββ block: β
β βββ locals: [] - β βββ locals_body_index: 0 β βββ def_keyword_loc: (138,0)-(138,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: β
@@ -1414,7 +1366,6 @@ β β βββ block: β
β βββ body: β
β βββ locals: [:a] - β βββ locals_body_index: 1 β βββ def_keyword_loc: (142,0)-(142,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: (142,7)-(142,8) = "(" @@ -1454,7 +1405,6 @@ β β βββ block: β
β βββ body: β
β βββ locals: [:a] - β βββ locals_body_index: 1 β βββ def_keyword_loc: (145,0)-(145,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: (145,7)-(145,8) = "(" @@ -1494,7 +1444,6 @@ β β βββ block: β
β βββ body: β
β βββ locals: [:a] - β βββ locals_body_index: 1 β βββ def_keyword_loc: (148,0)-(148,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: (148,7)-(148,8) = "(" @@ -1537,7 +1486,6 @@ β β βββ block: β
β βββ body: β
β βββ locals: [:a] - β βββ locals_body_index: 1 β βββ def_keyword_loc: (151,0)-(151,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: (151,7)-(151,8) = "(" @@ -1578,7 +1526,6 @@ β β βββ block: β
β βββ body: β
β βββ locals: [:a] - β βββ locals_body_index: 1 β βββ def_keyword_loc: (154,0)-(154,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: (154,7)-(154,8) = "(" @@ -1619,7 +1566,6 @@ β β βββ block: β
β βββ body: β
β βββ locals: [:a] - β βββ locals_body_index: 1 β βββ def_keyword_loc: (157,0)-(157,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: (157,7)-(157,8) = "(" @@ -1678,7 +1624,6 @@ β β β βββ block: β β β @ BlockNode (location: (161,12)-(161,14)) β β β βββ locals: [] - β β β βββ locals_body_index: 0 β β β βββ parameters: β
β β β βββ body: β
β β β βββ opening_loc: (161,12)-(161,13) = "{" @@ -1686,7 +1631,6 @@ β β βββ closing_loc: β
β β βββ block: β
β βββ locals: [:a] - β βββ locals_body_index: 1 β βββ def_keyword_loc: (160,0)-(160,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: (160,10)-(160,11) = "(" @@ -1711,7 +1655,6 @@ β βββ parameters: β
β βββ body: β
β βββ locals: [] - β βββ locals_body_index: 0 β βββ def_keyword_loc: (165,0)-(165,3) = "def" β βββ operator_loc: (165,7)-(165,8) = "." β βββ lparen_loc: β
@@ -1748,7 +1691,6 @@ β β βββ opening_loc: (167,10)-(167,11) = "[" β β βββ closing_loc: (167,12)-(167,13) = "]" β βββ locals: [] - β βββ locals_body_index: 0 β βββ def_keyword_loc: (167,0)-(167,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: (167,5)-(167,6) = "(" @@ -1795,7 +1737,6 @@ β β βββ block: β
β βββ body: β
β βββ locals: [:x] - β βββ locals_body_index: 1 β βββ def_keyword_loc: (169,0)-(169,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: β
@@ -1842,7 +1783,6 @@ β β βββ block: β
β βββ body: β
β βββ locals: [:x] - β βββ locals_body_index: 1 β βββ def_keyword_loc: (171,0)-(171,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: β
@@ -1889,7 +1829,6 @@ β β βββ block: β
β βββ body: β
β βββ locals: [:x] - β βββ locals_body_index: 1 β βββ def_keyword_loc: (173,0)-(173,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: β
@@ -1922,7 +1861,6 @@ β β βββ block: β
β βββ body: β
β βββ locals: [:x] - β βββ locals_body_index: 1 β βββ def_keyword_loc: (175,0)-(175,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: β
@@ -1960,7 +1898,6 @@ β β βββ expression: β
β β βββ operator_loc: (178,6)-(178,7) = "&" β βββ locals: [] - β βββ locals_body_index: 0 β βββ def_keyword_loc: (177,0)-(177,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: (177,7)-(177,8) = "(" @@ -2008,7 +1945,6 @@ β β β β β β βββ name: :bar β β β β β β βββ depth: 0 β β β β β βββ locals: [:bar] - β β β β β βββ locals_body_index: 1 β β β β β βββ def_keyword_loc: (181,15)-(181,18) = "def" β β β β β βββ operator_loc: β
β β β β β βββ lparen_loc: (181,22)-(181,23) = "(" @@ -2030,7 +1966,6 @@ β β βββ @ IntegerNode (location: (181,41)-(181,42)) β β βββ flags: decimal β βββ locals: [:bar] - β βββ locals_body_index: 1 β βββ def_keyword_loc: (181,0)-(181,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: (181,7)-(181,8) = "(" @@ -2079,7 +2014,6 @@ β βββ @ IntegerNode (location: (183,36)-(183,37)) β βββ flags: decimal βββ locals: [:bar] - βββ locals_body_index: 1 βββ def_keyword_loc: (183,0)-(183,3) = "def" βββ operator_loc: (183,20)-(183,21) = "." βββ lparen_loc: (183,24)-(183,25) = "(" diff --git a/test/prism/snapshots/non_alphanumeric_methods.txt b/test/prism/snapshots/non_alphanumeric_methods.txt index 21bec6eff3..2ed66fe0e2 100644 --- a/test/prism/snapshots/non_alphanumeric_methods.txt +++ b/test/prism/snapshots/non_alphanumeric_methods.txt @@ -10,7 +10,6 @@ β βββ parameters: β
β βββ body: β
β βββ locals: [] - β βββ locals_body_index: 0 β βββ def_keyword_loc: (1,0)-(1,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: β
@@ -24,7 +23,6 @@ β βββ parameters: β
β βββ body: β
β βββ locals: [] - β βββ locals_body_index: 0 β βββ def_keyword_loc: (4,0)-(4,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: β
@@ -38,7 +36,6 @@ β βββ parameters: β
β βββ body: β
β βββ locals: [] - β βββ locals_body_index: 0 β βββ def_keyword_loc: (7,0)-(7,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: β
@@ -52,7 +49,6 @@ β βββ parameters: β
β βββ body: β
β βββ locals: [] - β βββ locals_body_index: 0 β βββ def_keyword_loc: (10,0)-(10,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: β
@@ -67,7 +63,6 @@ β βββ parameters: β
β βββ body: β
β βββ locals: [] - β βββ locals_body_index: 0 β βββ def_keyword_loc: (13,0)-(13,3) = "def" β βββ operator_loc: (13,8)-(13,9) = "." β βββ lparen_loc: β
@@ -81,7 +76,6 @@ β βββ parameters: β
β βββ body: β
β βββ locals: [] - β βββ locals_body_index: 0 β βββ def_keyword_loc: (16,0)-(16,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: β
@@ -95,7 +89,6 @@ β βββ parameters: β
β βββ body: β
β βββ locals: [] - β βββ locals_body_index: 0 β βββ def_keyword_loc: (19,0)-(19,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: β
@@ -109,7 +102,6 @@ β βββ parameters: β
β βββ body: β
β βββ locals: [] - β βββ locals_body_index: 0 β βββ def_keyword_loc: (22,0)-(22,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: β
@@ -142,7 +134,6 @@ β β βββ block: β
β βββ body: β
β βββ locals: [:b] - β βββ locals_body_index: 1 β βββ def_keyword_loc: (27,0)-(27,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: β
@@ -156,7 +147,6 @@ β βββ parameters: β
β βββ body: β
β βββ locals: [] - β βββ locals_body_index: 0 β βββ def_keyword_loc: (30,0)-(30,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: (30,5)-(30,6) = "(" @@ -181,7 +171,6 @@ β β βββ block: β
β βββ body: β
β βββ locals: [:b] - β βββ locals_body_index: 1 β βββ def_keyword_loc: (33,0)-(33,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: β
@@ -196,7 +185,6 @@ β βββ parameters: β
β βββ body: β
β βββ locals: [] - β βββ locals_body_index: 0 β βββ def_keyword_loc: (36,0)-(36,3) = "def" β βββ operator_loc: (36,8)-(36,9) = "." β βββ lparen_loc: β
@@ -210,7 +198,6 @@ β βββ parameters: β
β βββ body: β
β βββ locals: [] - β βββ locals_body_index: 0 β βββ def_keyword_loc: (39,0)-(39,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: β
@@ -224,7 +211,6 @@ β βββ parameters: β
β βββ body: β
β βββ locals: [] - β βββ locals_body_index: 0 β βββ def_keyword_loc: (42,0)-(42,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: β
@@ -238,7 +224,6 @@ β βββ parameters: β
β βββ body: β
β βββ locals: [] - β βββ locals_body_index: 0 β βββ def_keyword_loc: (45,0)-(45,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: β
@@ -262,7 +247,6 @@ β βββ parameters: β
β βββ body: β
β βββ locals: [] - β βββ locals_body_index: 0 β βββ def_keyword_loc: (48,0)-(48,3) = "def" β βββ operator_loc: (48,5)-(48,6) = "." β βββ lparen_loc: β
@@ -276,7 +260,6 @@ β βββ parameters: β
β βββ body: β
β βββ locals: [] - β βββ locals_body_index: 0 β βββ def_keyword_loc: (50,0)-(50,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: β
@@ -290,7 +273,6 @@ β βββ parameters: β
β βββ body: β
β βββ locals: [] - β βββ locals_body_index: 0 β βββ def_keyword_loc: (53,0)-(53,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: β
@@ -304,7 +286,6 @@ β βββ parameters: β
β βββ body: β
β βββ locals: [] - β βββ locals_body_index: 0 β βββ def_keyword_loc: (56,0)-(56,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: β
@@ -318,7 +299,6 @@ β βββ parameters: β
β βββ body: β
β βββ locals: [] - β βββ locals_body_index: 0 β βββ def_keyword_loc: (59,0)-(59,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: β
@@ -332,7 +312,6 @@ β βββ parameters: β
β βββ body: β
β βββ locals: [] - β βββ locals_body_index: 0 β βββ def_keyword_loc: (62,0)-(62,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: β
@@ -346,7 +325,6 @@ β βββ parameters: β
β βββ body: β
β βββ locals: [] - β βββ locals_body_index: 0 β βββ def_keyword_loc: (65,0)-(65,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: β
@@ -360,7 +338,6 @@ β βββ parameters: β
β βββ body: β
β βββ locals: [] - β βββ locals_body_index: 0 β βββ def_keyword_loc: (68,0)-(68,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: β
@@ -374,7 +351,6 @@ β βββ parameters: β
β βββ body: β
β βββ locals: [] - β βββ locals_body_index: 0 β βββ def_keyword_loc: (71,0)-(71,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: β
@@ -388,7 +364,6 @@ β βββ parameters: β
β βββ body: β
β βββ locals: [] - β βββ locals_body_index: 0 β βββ def_keyword_loc: (74,0)-(74,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: β
@@ -402,7 +377,6 @@ β βββ parameters: β
β βββ body: β
β βββ locals: [] - β βββ locals_body_index: 0 β βββ def_keyword_loc: (77,0)-(77,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: β
@@ -416,7 +390,6 @@ β βββ parameters: β
β βββ body: β
β βββ locals: [] - β βββ locals_body_index: 0 β βββ def_keyword_loc: (80,0)-(80,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: β
@@ -430,7 +403,6 @@ β βββ parameters: β
β βββ body: β
β βββ locals: [] - β βββ locals_body_index: 0 β βββ def_keyword_loc: (83,0)-(83,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: β
@@ -444,7 +416,6 @@ β βββ parameters: β
β βββ body: β
β βββ locals: [] - β βββ locals_body_index: 0 β βββ def_keyword_loc: (86,0)-(86,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: β
@@ -458,7 +429,6 @@ β βββ parameters: β
β βββ body: β
β βββ locals: [] - β βββ locals_body_index: 0 β βββ def_keyword_loc: (89,0)-(89,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: β
@@ -472,7 +442,6 @@ β βββ parameters: β
β βββ body: β
β βββ locals: [] - β βββ locals_body_index: 0 β βββ def_keyword_loc: (92,0)-(92,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: β
@@ -486,7 +455,6 @@ β βββ parameters: β
β βββ body: β
β βββ locals: [] - β βββ locals_body_index: 0 β βββ def_keyword_loc: (95,0)-(95,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: β
@@ -501,7 +469,6 @@ β βββ parameters: β
β βββ body: β
β βββ locals: [] - β βββ locals_body_index: 0 β βββ def_keyword_loc: (98,0)-(98,3) = "def" β βββ operator_loc: (98,8)-(98,9) = "." β βββ lparen_loc: β
@@ -515,7 +482,6 @@ β βββ parameters: β
β βββ body: β
β βββ locals: [] - β βββ locals_body_index: 0 β βββ def_keyword_loc: (101,0)-(101,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: β
@@ -529,7 +495,6 @@ βββ parameters: β
βββ body: β
βββ locals: [] - βββ locals_body_index: 0 βββ def_keyword_loc: (104,0)-(104,3) = "def" βββ operator_loc: β
βββ lparen_loc: β
diff --git a/test/prism/snapshots/patterns.txt b/test/prism/snapshots/patterns.txt index 93333ce785..97d2e5637c 100644 --- a/test/prism/snapshots/patterns.txt +++ b/test/prism/snapshots/patterns.txt @@ -488,7 +488,6 @@ β βββ pattern: β β @ LambdaNode (location: (26,7)-(26,17)) β β βββ locals: [] - β β βββ locals_body_index: 0 β β βββ operator_loc: (26,7)-(26,9) = "->" β β βββ opening_loc: (26,10)-(26,11) = "{" β β βββ closing_loc: (26,16)-(26,17) = "}" @@ -1208,7 +1207,6 @@ β β βββ left: β β β @ LambdaNode (location: (52,7)-(52,17)) β β β βββ locals: [] - β β β βββ locals_body_index: 0 β β β βββ operator_loc: (52,7)-(52,9) = "->" β β β βββ opening_loc: (52,10)-(52,11) = "{" β β β βββ closing_loc: (52,16)-(52,17) = "}" @@ -1222,7 +1220,6 @@ β β βββ right: β β β @ LambdaNode (location: (52,21)-(52,31)) β β β βββ locals: [] - β β β βββ locals_body_index: 0 β β β βββ operator_loc: (52,21)-(52,23) = "->" β β β βββ opening_loc: (52,24)-(52,25) = "{" β β β βββ closing_loc: (52,30)-(52,31) = "}" @@ -2822,7 +2819,6 @@ β βββ pattern: β β @ LambdaNode (location: (125,7)-(125,17)) β β βββ locals: [] - β β βββ locals_body_index: 0 β β βββ operator_loc: (125,7)-(125,9) = "->" β β βββ opening_loc: (125,10)-(125,11) = "{" β β βββ closing_loc: (125,16)-(125,17) = "}" @@ -3496,7 +3492,6 @@ β β βββ pattern: β β β @ LambdaNode (location: (152,13)-(152,23)) β β β βββ locals: [] - β β β βββ locals_body_index: 0 β β β βββ operator_loc: (152,13)-(152,15) = "->" β β β βββ opening_loc: (152,16)-(152,17) = "{" β β β βββ closing_loc: (152,22)-(152,23) = "}" @@ -4485,7 +4480,6 @@ β β β β βββ body: (length: 1) β β β β βββ @ LambdaNode (location: (179,13)-(179,23)) β β β β βββ locals: [] - β β β β βββ locals_body_index: 0 β β β β βββ operator_loc: (179,13)-(179,15) = "->" β β β β βββ opening_loc: (179,16)-(179,17) = "{" β β β β βββ closing_loc: (179,22)-(179,23) = "}" @@ -4695,7 +4689,6 @@ β βββ block: β @ BlockNode (location: (198,4)-(200,3)) β βββ locals: [] - β βββ locals_body_index: 0 β βββ parameters: β
β βββ body: β β @ StatementsNode (location: (199,2)-(199,29)) @@ -4786,7 +4779,6 @@ β βββ block: β @ BlockNode (location: (204,7)-(204,19)) β βββ locals: [:_1] - β βββ locals_body_index: 1 β βββ parameters: β β @ NumberedParametersNode (location: (204,7)-(204,19)) β β βββ maximum: 1 diff --git a/test/prism/snapshots/procs.txt b/test/prism/snapshots/procs.txt index 31ae6ece5b..1c3e425c7b 100644 --- a/test/prism/snapshots/procs.txt +++ b/test/prism/snapshots/procs.txt @@ -5,7 +5,6 @@ βββ body: (length: 10) βββ @ LambdaNode (location: (1,0)-(1,21)) β βββ locals: [:a, :b, :c, :d] - β βββ locals_body_index: 4 β βββ operator_loc: (1,0)-(1,2) = "->" β βββ opening_loc: (1,16)-(1,17) = "{" β βββ closing_loc: (1,20)-(1,21) = "}" @@ -43,7 +42,6 @@ β βββ depth: 0 βββ @ LambdaNode (location: (3,0)-(5,3)) β βββ locals: [] - β βββ locals_body_index: 0 β βββ operator_loc: (3,0)-(3,2) = "->" β βββ opening_loc: (3,3)-(3,5) = "do" β βββ closing_loc: (5,0)-(5,3) = "end" @@ -62,7 +60,6 @@ β βββ end_keyword_loc: (5,0)-(5,3) = "end" βββ @ LambdaNode (location: (7,0)-(11,3)) β βββ locals: [] - β βββ locals_body_index: 0 β βββ operator_loc: (7,0)-(7,2) = "->" β βββ opening_loc: (7,3)-(7,5) = "do" β βββ closing_loc: (11,0)-(11,3) = "end" @@ -92,7 +89,6 @@ β βββ end_keyword_loc: (11,0)-(11,3) = "end" βββ @ LambdaNode (location: (13,0)-(13,10)) β βββ locals: [] - β βββ locals_body_index: 0 β βββ operator_loc: (13,0)-(13,2) = "->" β βββ opening_loc: (13,3)-(13,4) = "{" β βββ closing_loc: (13,9)-(13,10) = "}" @@ -112,7 +108,6 @@ β βββ block: β
βββ @ LambdaNode (location: (15,0)-(15,15)) β βββ locals: [] - β βββ locals_body_index: 0 β βββ operator_loc: (15,0)-(15,2) = "->" β βββ opening_loc: (15,3)-(15,5) = "do" β βββ closing_loc: (15,12)-(15,15) = "end" @@ -132,7 +127,6 @@ β βββ block: β
βββ @ LambdaNode (location: (17,0)-(17,29)) β βββ locals: [:a, :b, :c, :d, :e] - β βββ locals_body_index: 5 β βββ operator_loc: (17,0)-(17,2) = "->" β βββ opening_loc: (17,24)-(17,25) = "{" β βββ closing_loc: (17,28)-(17,29) = "}" @@ -182,7 +176,6 @@ β βββ depth: 0 βββ @ LambdaNode (location: (19,0)-(19,40)) β βββ locals: [:a, :b, :c, :d, :e, :f, :g] - β βββ locals_body_index: 7 β βββ operator_loc: (19,0)-(19,2) = "->" β βββ opening_loc: (19,35)-(19,36) = "{" β βββ closing_loc: (19,39)-(19,40) = "}" @@ -242,7 +235,6 @@ β βββ depth: 0 βββ @ LambdaNode (location: (21,0)-(23,3)) β βββ locals: [:a, :b, :c, :d, :e, :f, :g] - β βββ locals_body_index: 7 β βββ operator_loc: (21,0)-(21,2) = "->" β βββ opening_loc: (21,35)-(21,37) = "do" β βββ closing_loc: (23,0)-(23,3) = "end" @@ -302,7 +294,6 @@ β βββ depth: 0 βββ @ LambdaNode (location: (25,0)-(25,25)) β βββ locals: [:a] - β βββ locals_body_index: 1 β βββ operator_loc: (25,0)-(25,2) = "->" β βββ opening_loc: (25,7)-(25,8) = "{" β βββ closing_loc: (25,24)-(25,25) = "}" @@ -328,7 +319,6 @@ β βββ body: (length: 1) β βββ @ LambdaNode (location: (25,9)-(25,23)) β βββ locals: [:b] - β βββ locals_body_index: 1 β βββ operator_loc: (25,9)-(25,11) = "->" β βββ opening_loc: (25,14)-(25,15) = "{" β βββ closing_loc: (25,22)-(25,23) = "}" @@ -373,7 +363,6 @@ β βββ block: β
βββ @ LambdaNode (location: (27,0)-(27,19)) βββ locals: [:a, :b, :c] - βββ locals_body_index: 3 βββ operator_loc: (27,0)-(27,2) = "->" βββ opening_loc: (27,16)-(27,17) = "{" βββ closing_loc: (27,18)-(27,19) = "}" diff --git a/test/prism/snapshots/regex.txt b/test/prism/snapshots/regex.txt index 06c9bc646b..82cb489c4c 100644 --- a/test/prism/snapshots/regex.txt +++ b/test/prism/snapshots/regex.txt @@ -327,7 +327,6 @@ βββ block: @ BlockNode (location: (40,4)-(40,24)) βββ locals: [] - βββ locals_body_index: 0 βββ parameters: β
βββ body: β @ StatementsNode (location: (40,6)-(40,22)) diff --git a/test/prism/snapshots/repeat_parameters.txt b/test/prism/snapshots/repeat_parameters.txt index f680a2f1b9..031a304eb0 100644 --- a/test/prism/snapshots/repeat_parameters.txt +++ b/test/prism/snapshots/repeat_parameters.txt @@ -24,7 +24,6 @@ β β βββ block: β
β βββ body: β
β βββ locals: [:a, :_] - β βββ locals_body_index: 2 β βββ def_keyword_loc: (1,0)-(1,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: (1,7)-(1,8) = "(" @@ -55,7 +54,6 @@ β β βββ block: β
β βββ body: β
β βββ locals: [:a, :_] - β βββ locals_body_index: 2 β βββ def_keyword_loc: (4,0)-(4,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: (4,7)-(4,8) = "(" @@ -89,7 +87,6 @@ β β βββ block: β
β βββ body: β
β βββ locals: [:a, :_, :_b] - β βββ locals_body_index: 3 β βββ def_keyword_loc: (7,0)-(7,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: (7,7)-(7,8) = "(" @@ -126,7 +123,6 @@ β β βββ block: β
β βββ body: β
β βββ locals: [:a, :_, :_b] - β βββ locals_body_index: 3 β βββ def_keyword_loc: (10,0)-(10,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: (10,7)-(10,8) = "(" @@ -187,7 +183,6 @@ β β βββ block: β
β βββ body: β
β βββ locals: [:a, :b, :_c, :d, :e, :f] - β βββ locals_body_index: 6 β βββ def_keyword_loc: (13,0)-(13,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: (13,7)-(13,8) = "(" @@ -221,7 +216,6 @@ β β βββ block: β
β βββ body: β
β βββ locals: [:_a, :b, :c] - β βββ locals_body_index: 3 β βββ def_keyword_loc: (16,0)-(16,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: (16,7)-(16,8) = "(" @@ -279,7 +273,6 @@ β β βββ block: β
β βββ body: β
β βββ locals: [:a, :_b, :c, :d, :e] - β βββ locals_body_index: 5 β βββ def_keyword_loc: (19,0)-(19,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: (19,7)-(19,8) = "(" @@ -317,7 +310,6 @@ β β βββ block: β
β βββ body: β
β βββ locals: [:_a] - β βββ locals_body_index: 1 β βββ def_keyword_loc: (22,0)-(22,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: (22,7)-(22,8) = "(" @@ -347,7 +339,6 @@ β β βββ block: β
β βββ body: β
β βββ locals: [:_a] - β βββ locals_body_index: 1 β βββ def_keyword_loc: (25,0)-(25,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: (25,7)-(25,8) = "(" @@ -383,7 +374,6 @@ β β βββ block: β
β βββ body: β
β βββ locals: [:_a] - β βββ locals_body_index: 1 β βββ def_keyword_loc: (28,0)-(28,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: (28,7)-(28,8) = "(" @@ -413,7 +403,6 @@ β β βββ block: β
β βββ body: β
β βββ locals: [:_a] - β βββ locals_body_index: 1 β βββ def_keyword_loc: (31,0)-(31,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: (31,7)-(31,8) = "(" @@ -443,7 +432,6 @@ β β βββ operator_loc: (34,12)-(34,13) = "&" β βββ body: β
β βββ locals: [:_a] - β βββ locals_body_index: 1 β βββ def_keyword_loc: (34,0)-(34,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: (34,7)-(34,8) = "(" @@ -473,7 +461,6 @@ β βββ block: β
βββ body: β
βββ locals: [:_a] - βββ locals_body_index: 1 βββ def_keyword_loc: (37,0)-(37,3) = "def" βββ operator_loc: β
βββ lparen_loc: (37,7)-(37,8) = "(" diff --git a/test/prism/snapshots/rescue.txt b/test/prism/snapshots/rescue.txt index 939ba115ae..4057b624e7 100644 --- a/test/prism/snapshots/rescue.txt +++ b/test/prism/snapshots/rescue.txt @@ -163,7 +163,6 @@ β βββ block: β @ BlockNode (location: (18,4)-(20,3)) β βββ locals: [:x] - β βββ locals_body_index: 1 β βββ parameters: β β @ BlockParametersNode (location: (18,7)-(18,10)) β β βββ parameters: @@ -314,7 +313,6 @@ β β βββ rescue_expression: β β @ NilNode (location: (26,41)-(26,44)) β βββ locals: [] - β βββ locals_body_index: 0 β βββ def_keyword_loc: (26,0)-(26,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: β
@@ -382,7 +380,6 @@ β β βββ ensure_clause: β
β β βββ end_keyword_loc: (31,0)-(31,3) = "end" β βββ locals: [] - β βββ locals_body_index: 0 β βββ def_keyword_loc: (28,0)-(28,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: β
diff --git a/test/prism/snapshots/seattlerb/TestRubyParserShared.txt b/test/prism/snapshots/seattlerb/TestRubyParserShared.txt index 1232410543..f90f073d72 100644 --- a/test/prism/snapshots/seattlerb/TestRubyParserShared.txt +++ b/test/prism/snapshots/seattlerb/TestRubyParserShared.txt @@ -168,7 +168,6 @@ β β β βββ closing_loc: β
β β β βββ block: β
β β βββ locals: [:a, :b] - β β βββ locals_body_index: 2 β β βββ def_keyword_loc: (52,2)-(52,5) = "def" β β βββ operator_loc: (52,10)-(52,11) = "." β β βββ lparen_loc: (52,12)-(52,13) = "(" @@ -263,7 +262,6 @@ β β β βββ closing_loc: β
β β β βββ block: β
β β βββ locals: [:a, :b] - β β βββ locals_body_index: 2 β β βββ def_keyword_loc: (67,2)-(67,5) = "def" β β βββ operator_loc: β
β β βββ lparen_loc: (67,7)-(67,8) = "(" diff --git a/test/prism/snapshots/seattlerb/args_kw_block.txt b/test/prism/snapshots/seattlerb/args_kw_block.txt index 85a7e856d7..b0f8fa8fd7 100644 --- a/test/prism/snapshots/seattlerb/args_kw_block.txt +++ b/test/prism/snapshots/seattlerb/args_kw_block.txt @@ -30,7 +30,6 @@ β βββ operator_loc: (1,12)-(1,13) = "&" βββ body: β
βββ locals: [:a, :b] - βββ locals_body_index: 2 βββ def_keyword_loc: (1,0)-(1,3) = "def" βββ operator_loc: β
βββ lparen_loc: (1,5)-(1,6) = "(" diff --git a/test/prism/snapshots/seattlerb/block_arg__bare.txt b/test/prism/snapshots/seattlerb/block_arg__bare.txt index 9bf5016ad1..165c2980be 100644 --- a/test/prism/snapshots/seattlerb/block_arg__bare.txt +++ b/test/prism/snapshots/seattlerb/block_arg__bare.txt @@ -23,7 +23,6 @@ β βββ operator_loc: (1,6)-(1,7) = "&" βββ body: β
βββ locals: [] - βββ locals_body_index: 0 βββ def_keyword_loc: (1,0)-(1,3) = "def" βββ operator_loc: β
βββ lparen_loc: (1,5)-(1,6) = "(" diff --git a/test/prism/snapshots/seattlerb/block_arg_kwsplat.txt b/test/prism/snapshots/seattlerb/block_arg_kwsplat.txt index 7429ae0638..392de8559b 100644 --- a/test/prism/snapshots/seattlerb/block_arg_kwsplat.txt +++ b/test/prism/snapshots/seattlerb/block_arg_kwsplat.txt @@ -15,7 +15,6 @@ βββ block: @ BlockNode (location: (1,2)-(1,11)) βββ locals: [:b] - βββ locals_body_index: 1 βββ parameters: β @ BlockParametersNode (location: (1,4)-(1,9)) β βββ parameters: diff --git a/test/prism/snapshots/seattlerb/block_arg_opt_arg_block.txt b/test/prism/snapshots/seattlerb/block_arg_opt_arg_block.txt index a3588b281e..8916d7b9d1 100644 --- a/test/prism/snapshots/seattlerb/block_arg_opt_arg_block.txt +++ b/test/prism/snapshots/seattlerb/block_arg_opt_arg_block.txt @@ -15,7 +15,6 @@ βββ block: @ BlockNode (location: (1,2)-(1,21)) βββ locals: [:b, :c, :d, :e] - βββ locals_body_index: 4 βββ parameters: β @ BlockParametersNode (location: (1,4)-(1,19)) β βββ parameters: diff --git a/test/prism/snapshots/seattlerb/block_arg_opt_splat.txt b/test/prism/snapshots/seattlerb/block_arg_opt_splat.txt index 41d5f0d5e0..3167d249bd 100644 --- a/test/prism/snapshots/seattlerb/block_arg_opt_splat.txt +++ b/test/prism/snapshots/seattlerb/block_arg_opt_splat.txt @@ -15,7 +15,6 @@ βββ block: @ BlockNode (location: (1,2)-(1,20)) βββ locals: [:b, :c, :d] - βββ locals_body_index: 3 βββ parameters: β @ BlockParametersNode (location: (1,4)-(1,18)) β βββ parameters: diff --git a/test/prism/snapshots/seattlerb/block_arg_opt_splat_arg_block_omfg.txt b/test/prism/snapshots/seattlerb/block_arg_opt_splat_arg_block_omfg.txt index baa5f22523..b82f363dc2 100644 --- a/test/prism/snapshots/seattlerb/block_arg_opt_splat_arg_block_omfg.txt +++ b/test/prism/snapshots/seattlerb/block_arg_opt_splat_arg_block_omfg.txt @@ -15,7 +15,6 @@ βββ block: @ BlockNode (location: (1,2)-(1,25)) βββ locals: [:b, :c, :d, :e, :f] - βββ locals_body_index: 5 βββ parameters: β @ BlockParametersNode (location: (1,4)-(1,23)) β βββ parameters: diff --git a/test/prism/snapshots/seattlerb/block_arg_optional.txt b/test/prism/snapshots/seattlerb/block_arg_optional.txt index a5dde7ea58..fe5c06ab7d 100644 --- a/test/prism/snapshots/seattlerb/block_arg_optional.txt +++ b/test/prism/snapshots/seattlerb/block_arg_optional.txt @@ -15,7 +15,6 @@ βββ block: @ BlockNode (location: (1,2)-(1,13)) βββ locals: [:b] - βββ locals_body_index: 1 βββ parameters: β @ BlockParametersNode (location: (1,4)-(1,11)) β βββ parameters: diff --git a/test/prism/snapshots/seattlerb/block_arg_scope.txt b/test/prism/snapshots/seattlerb/block_arg_scope.txt index e17de7cf31..b99cc5e45c 100644 --- a/test/prism/snapshots/seattlerb/block_arg_scope.txt +++ b/test/prism/snapshots/seattlerb/block_arg_scope.txt @@ -15,7 +15,6 @@ βββ block: @ BlockNode (location: (1,2)-(1,12)) βββ locals: [:b, :c] - βββ locals_body_index: 2 βββ parameters: β @ BlockParametersNode (location: (1,4)-(1,10)) β βββ parameters: diff --git a/test/prism/snapshots/seattlerb/block_arg_scope2.txt b/test/prism/snapshots/seattlerb/block_arg_scope2.txt index b71b8fffb1..98b3a7da3a 100644 --- a/test/prism/snapshots/seattlerb/block_arg_scope2.txt +++ b/test/prism/snapshots/seattlerb/block_arg_scope2.txt @@ -15,7 +15,6 @@ βββ block: @ BlockNode (location: (1,2)-(1,14)) βββ locals: [:b, :c, :d] - βββ locals_body_index: 3 βββ parameters: β @ BlockParametersNode (location: (1,3)-(1,12)) β βββ parameters: diff --git a/test/prism/snapshots/seattlerb/block_arg_splat_arg.txt b/test/prism/snapshots/seattlerb/block_arg_splat_arg.txt index f28af4561a..fd5813c983 100644 --- a/test/prism/snapshots/seattlerb/block_arg_splat_arg.txt +++ b/test/prism/snapshots/seattlerb/block_arg_splat_arg.txt @@ -15,7 +15,6 @@ βββ block: @ BlockNode (location: (1,2)-(1,16)) βββ locals: [:b, :c, :d] - βββ locals_body_index: 3 βββ parameters: β @ BlockParametersNode (location: (1,4)-(1,14)) β βββ parameters: diff --git a/test/prism/snapshots/seattlerb/block_args_kwargs.txt b/test/prism/snapshots/seattlerb/block_args_kwargs.txt index 16f0e55314..0975ce3367 100644 --- a/test/prism/snapshots/seattlerb/block_args_kwargs.txt +++ b/test/prism/snapshots/seattlerb/block_args_kwargs.txt @@ -15,7 +15,6 @@ βββ block: @ BlockNode (location: (1,2)-(1,23)) βββ locals: [:kwargs] - βββ locals_body_index: 1 βββ parameters: β @ BlockParametersNode (location: (1,4)-(1,14)) β βββ parameters: diff --git a/test/prism/snapshots/seattlerb/block_args_no_kwargs.txt b/test/prism/snapshots/seattlerb/block_args_no_kwargs.txt index bce9b0e2fa..d47349defb 100644 --- a/test/prism/snapshots/seattlerb/block_args_no_kwargs.txt +++ b/test/prism/snapshots/seattlerb/block_args_no_kwargs.txt @@ -15,7 +15,6 @@ βββ block: @ BlockNode (location: (1,2)-(1,13)) βββ locals: [] - βββ locals_body_index: 0 βββ parameters: β @ BlockParametersNode (location: (1,4)-(1,11)) β βββ parameters: diff --git a/test/prism/snapshots/seattlerb/block_args_opt1.txt b/test/prism/snapshots/seattlerb/block_args_opt1.txt index e7e3fa3ea0..4c06f82954 100644 --- a/test/prism/snapshots/seattlerb/block_args_opt1.txt +++ b/test/prism/snapshots/seattlerb/block_args_opt1.txt @@ -15,7 +15,6 @@ βββ block: @ BlockNode (location: (1,2)-(1,24)) βββ locals: [:a, :b] - βββ locals_body_index: 2 βββ parameters: β @ BlockParametersNode (location: (1,4)-(1,15)) β βββ parameters: diff --git a/test/prism/snapshots/seattlerb/block_args_opt2.txt b/test/prism/snapshots/seattlerb/block_args_opt2.txt index 3b1db514a0..a7fb2d50a6 100644 --- a/test/prism/snapshots/seattlerb/block_args_opt2.txt +++ b/test/prism/snapshots/seattlerb/block_args_opt2.txt @@ -15,7 +15,6 @@ βββ block: @ BlockNode (location: (1,2)-(1,18)) βββ locals: [:b, :c] - βββ locals_body_index: 2 βββ parameters: β @ BlockParametersNode (location: (1,4)-(1,16)) β βββ parameters: diff --git a/test/prism/snapshots/seattlerb/block_args_opt2_2.txt b/test/prism/snapshots/seattlerb/block_args_opt2_2.txt index 05c9e3cf8d..26cfc32887 100644 --- a/test/prism/snapshots/seattlerb/block_args_opt2_2.txt +++ b/test/prism/snapshots/seattlerb/block_args_opt2_2.txt @@ -15,7 +15,6 @@ βββ block: @ BlockNode (location: (1,2)-(1,35)) βββ locals: [:a, :b, :c] - βββ locals_body_index: 3 βββ parameters: β @ BlockParametersNode (location: (1,4)-(1,23)) β βββ parameters: diff --git a/test/prism/snapshots/seattlerb/block_args_opt3.txt b/test/prism/snapshots/seattlerb/block_args_opt3.txt index b0f3dfef77..2eb98c3c90 100644 --- a/test/prism/snapshots/seattlerb/block_args_opt3.txt +++ b/test/prism/snapshots/seattlerb/block_args_opt3.txt @@ -15,7 +15,6 @@ βββ block: @ BlockNode (location: (1,2)-(1,42)) βββ locals: [:a, :b, :c, :d] - βββ locals_body_index: 4 βββ parameters: β @ BlockParametersNode (location: (1,4)-(1,27)) β βββ parameters: diff --git a/test/prism/snapshots/seattlerb/block_break.txt b/test/prism/snapshots/seattlerb/block_break.txt index 063d6b5014..ce61b2f0d1 100644 --- a/test/prism/snapshots/seattlerb/block_break.txt +++ b/test/prism/snapshots/seattlerb/block_break.txt @@ -33,7 +33,6 @@ β βββ block: β @ BlockNode (location: (1,14)-(1,26)) β βββ locals: [:bar] - β βββ locals_body_index: 1 β βββ parameters: β β @ BlockParametersNode (location: (1,17)-(1,22)) β β βββ parameters: diff --git a/test/prism/snapshots/seattlerb/block_call_defn_call_block_call.txt b/test/prism/snapshots/seattlerb/block_call_defn_call_block_call.txt index 6e3cb97b72..2e634dc937 100644 --- a/test/prism/snapshots/seattlerb/block_call_defn_call_block_call.txt +++ b/test/prism/snapshots/seattlerb/block_call_defn_call_block_call.txt @@ -44,7 +44,6 @@ β β β βββ closing_loc: β
β β β βββ block: β
β β βββ locals: [:c] - β β βββ locals_body_index: 1 β β βββ def_keyword_loc: (1,2)-(1,5) = "def" β β βββ operator_loc: β
β β βββ lparen_loc: (1,7)-(1,8) = "(" @@ -75,7 +74,6 @@ βββ block: @ BlockNode (location: (4,5)-(4,11)) βββ locals: [] - βββ locals_body_index: 0 βββ parameters: β
βββ body: β
βββ opening_loc: (4,5)-(4,7) = "do" diff --git a/test/prism/snapshots/seattlerb/block_call_dot_op2_brace_block.txt b/test/prism/snapshots/seattlerb/block_call_dot_op2_brace_block.txt index 79c39dbec9..e46104b868 100644 --- a/test/prism/snapshots/seattlerb/block_call_dot_op2_brace_block.txt +++ b/test/prism/snapshots/seattlerb/block_call_dot_op2_brace_block.txt @@ -41,7 +41,6 @@ β βββ block: β @ BlockNode (location: (1,8)-(1,16)) β βββ locals: [] - β βββ locals_body_index: 0 β βββ parameters: β
β βββ body: β β @ StatementsNode (location: (1,11)-(1,12)) @@ -67,7 +66,6 @@ βββ block: @ BlockNode (location: (1,19)-(1,31)) βββ locals: [:f] - βββ locals_body_index: 1 βββ parameters: β @ BlockParametersNode (location: (1,22)-(1,25)) β βββ parameters: diff --git a/test/prism/snapshots/seattlerb/block_call_dot_op2_cmd_args_do_block.txt b/test/prism/snapshots/seattlerb/block_call_dot_op2_cmd_args_do_block.txt index 2f1f72525a..05d076f8d6 100644 --- a/test/prism/snapshots/seattlerb/block_call_dot_op2_cmd_args_do_block.txt +++ b/test/prism/snapshots/seattlerb/block_call_dot_op2_cmd_args_do_block.txt @@ -41,7 +41,6 @@ β βββ block: β @ BlockNode (location: (1,8)-(1,16)) β βββ locals: [] - β βββ locals_body_index: 0 β βββ parameters: β
β βββ body: β β @ StatementsNode (location: (1,11)-(1,12)) @@ -80,7 +79,6 @@ βββ block: @ BlockNode (location: (1,21)-(1,33)) βββ locals: [:g] - βββ locals_body_index: 1 βββ parameters: β @ BlockParametersNode (location: (1,24)-(1,27)) β βββ parameters: diff --git a/test/prism/snapshots/seattlerb/block_call_operation_colon.txt b/test/prism/snapshots/seattlerb/block_call_operation_colon.txt index 9efe4bd674..9fd13b0dfc 100644 --- a/test/prism/snapshots/seattlerb/block_call_operation_colon.txt +++ b/test/prism/snapshots/seattlerb/block_call_operation_colon.txt @@ -41,7 +41,6 @@ β βββ block: β @ BlockNode (location: (1,6)-(1,12)) β βββ locals: [] - β βββ locals_body_index: 0 β βββ parameters: β
β βββ body: β
β βββ opening_loc: (1,6)-(1,8) = "do" diff --git a/test/prism/snapshots/seattlerb/block_call_operation_dot.txt b/test/prism/snapshots/seattlerb/block_call_operation_dot.txt index bd98be70c8..43c19d3318 100644 --- a/test/prism/snapshots/seattlerb/block_call_operation_dot.txt +++ b/test/prism/snapshots/seattlerb/block_call_operation_dot.txt @@ -41,7 +41,6 @@ β βββ block: β @ BlockNode (location: (1,6)-(1,12)) β βββ locals: [] - β βββ locals_body_index: 0 β βββ parameters: β
β βββ body: β
β βββ opening_loc: (1,6)-(1,8) = "do" diff --git a/test/prism/snapshots/seattlerb/block_call_paren_call_block_call.txt b/test/prism/snapshots/seattlerb/block_call_paren_call_block_call.txt index 2e198fbf28..10c1780d37 100644 --- a/test/prism/snapshots/seattlerb/block_call_paren_call_block_call.txt +++ b/test/prism/snapshots/seattlerb/block_call_paren_call_block_call.txt @@ -54,7 +54,6 @@ βββ block: @ BlockNode (location: (2,4)-(2,10)) βββ locals: [] - βββ locals_body_index: 0 βββ parameters: β
βββ body: β
βββ opening_loc: (2,4)-(2,6) = "do" diff --git a/test/prism/snapshots/seattlerb/block_command_operation_colon.txt b/test/prism/snapshots/seattlerb/block_command_operation_colon.txt index d08fe7ece1..30fd6dafa0 100644 --- a/test/prism/snapshots/seattlerb/block_command_operation_colon.txt +++ b/test/prism/snapshots/seattlerb/block_command_operation_colon.txt @@ -27,7 +27,6 @@ β βββ block: β @ BlockNode (location: (1,5)-(1,11)) β βββ locals: [] - β βββ locals_body_index: 0 β βββ parameters: β
β βββ body: β
β βββ opening_loc: (1,5)-(1,7) = "do" diff --git a/test/prism/snapshots/seattlerb/block_command_operation_dot.txt b/test/prism/snapshots/seattlerb/block_command_operation_dot.txt index a603c6aefc..e4f69d3604 100644 --- a/test/prism/snapshots/seattlerb/block_command_operation_dot.txt +++ b/test/prism/snapshots/seattlerb/block_command_operation_dot.txt @@ -27,7 +27,6 @@ β βββ block: β @ BlockNode (location: (1,5)-(1,11)) β βββ locals: [] - β βββ locals_body_index: 0 β βββ parameters: β
β βββ body: β
β βββ opening_loc: (1,5)-(1,7) = "do" diff --git a/test/prism/snapshots/seattlerb/block_decomp_anon_splat_arg.txt b/test/prism/snapshots/seattlerb/block_decomp_anon_splat_arg.txt index be0081deea..e309ec1f98 100644 --- a/test/prism/snapshots/seattlerb/block_decomp_anon_splat_arg.txt +++ b/test/prism/snapshots/seattlerb/block_decomp_anon_splat_arg.txt @@ -15,7 +15,6 @@ βββ block: @ BlockNode (location: (1,2)-(1,14)) βββ locals: [:a] - βββ locals_body_index: 1 βββ parameters: β @ BlockParametersNode (location: (1,4)-(1,12)) β βββ parameters: diff --git a/test/prism/snapshots/seattlerb/block_decomp_arg_splat.txt b/test/prism/snapshots/seattlerb/block_decomp_arg_splat.txt index b7a45492b4..8d28fa7e02 100644 --- a/test/prism/snapshots/seattlerb/block_decomp_arg_splat.txt +++ b/test/prism/snapshots/seattlerb/block_decomp_arg_splat.txt @@ -15,7 +15,6 @@ βββ block: @ BlockNode (location: (1,2)-(1,14)) βββ locals: [:b] - βββ locals_body_index: 1 βββ parameters: β @ BlockParametersNode (location: (1,4)-(1,12)) β βββ parameters: diff --git a/test/prism/snapshots/seattlerb/block_decomp_arg_splat_arg.txt b/test/prism/snapshots/seattlerb/block_decomp_arg_splat_arg.txt index 6b72016b6f..4f4a82acf5 100644 --- a/test/prism/snapshots/seattlerb/block_decomp_arg_splat_arg.txt +++ b/test/prism/snapshots/seattlerb/block_decomp_arg_splat_arg.txt @@ -15,7 +15,6 @@ βββ block: @ BlockNode (location: (1,2)-(1,18)) βββ locals: [:a, :b, :c] - βββ locals_body_index: 3 βββ parameters: β @ BlockParametersNode (location: (1,4)-(1,16)) β βββ parameters: diff --git a/test/prism/snapshots/seattlerb/block_decomp_splat.txt b/test/prism/snapshots/seattlerb/block_decomp_splat.txt index 91cd1fa2dd..09d3440126 100644 --- a/test/prism/snapshots/seattlerb/block_decomp_splat.txt +++ b/test/prism/snapshots/seattlerb/block_decomp_splat.txt @@ -15,7 +15,6 @@ βββ block: @ BlockNode (location: (1,2)-(1,12)) βββ locals: [:a] - βββ locals_body_index: 1 βββ parameters: β @ BlockParametersNode (location: (1,4)-(1,10)) β βββ parameters: diff --git a/test/prism/snapshots/seattlerb/block_kw.txt b/test/prism/snapshots/seattlerb/block_kw.txt index 3a73f0ec7d..36db338271 100644 --- a/test/prism/snapshots/seattlerb/block_kw.txt +++ b/test/prism/snapshots/seattlerb/block_kw.txt @@ -15,7 +15,6 @@ βββ block: @ BlockNode (location: (1,5)-(1,15)) βββ locals: [:k] - βββ locals_body_index: 1 βββ parameters: β @ BlockParametersNode (location: (1,7)-(1,13)) β βββ parameters: diff --git a/test/prism/snapshots/seattlerb/block_kw__required.txt b/test/prism/snapshots/seattlerb/block_kw__required.txt index d314cc5c70..8a49c8bec7 100644 --- a/test/prism/snapshots/seattlerb/block_kw__required.txt +++ b/test/prism/snapshots/seattlerb/block_kw__required.txt @@ -15,7 +15,6 @@ βββ block: @ BlockNode (location: (1,5)-(1,16)) βββ locals: [:k] - βββ locals_body_index: 1 βββ parameters: β @ BlockParametersNode (location: (1,8)-(1,12)) β βββ parameters: diff --git a/test/prism/snapshots/seattlerb/block_kwarg_lvar.txt b/test/prism/snapshots/seattlerb/block_kwarg_lvar.txt index 360a3e51af..e77bf90a27 100644 --- a/test/prism/snapshots/seattlerb/block_kwarg_lvar.txt +++ b/test/prism/snapshots/seattlerb/block_kwarg_lvar.txt @@ -15,7 +15,6 @@ βββ block: @ BlockNode (location: (1,3)-(1,20)) βββ locals: [:kw] - βββ locals_body_index: 1 βββ parameters: β @ BlockParametersNode (location: (1,5)-(1,15)) β βββ parameters: diff --git a/test/prism/snapshots/seattlerb/block_kwarg_lvar_multiple.txt b/test/prism/snapshots/seattlerb/block_kwarg_lvar_multiple.txt index f651eef4ad..a527c8c993 100644 --- a/test/prism/snapshots/seattlerb/block_kwarg_lvar_multiple.txt +++ b/test/prism/snapshots/seattlerb/block_kwarg_lvar_multiple.txt @@ -15,7 +15,6 @@ βββ block: @ BlockNode (location: (1,3)-(1,33)) βββ locals: [:kw, :kw2] - βββ locals_body_index: 2 βββ parameters: β @ BlockParametersNode (location: (1,5)-(1,28)) β βββ parameters: diff --git a/test/prism/snapshots/seattlerb/block_next.txt b/test/prism/snapshots/seattlerb/block_next.txt index 5c3cc4c2a6..71f2deb2dd 100644 --- a/test/prism/snapshots/seattlerb/block_next.txt +++ b/test/prism/snapshots/seattlerb/block_next.txt @@ -33,7 +33,6 @@ β βββ block: β @ BlockNode (location: (1,13)-(1,25)) β βββ locals: [:bar] - β βββ locals_body_index: 1 β βββ parameters: β β @ BlockParametersNode (location: (1,16)-(1,21)) β β βββ parameters: diff --git a/test/prism/snapshots/seattlerb/block_opt_arg.txt b/test/prism/snapshots/seattlerb/block_opt_arg.txt index 38f678ab82..2e53540491 100644 --- a/test/prism/snapshots/seattlerb/block_opt_arg.txt +++ b/test/prism/snapshots/seattlerb/block_opt_arg.txt @@ -15,7 +15,6 @@ βββ block: @ BlockNode (location: (1,2)-(1,14)) βββ locals: [:b, :c] - βββ locals_body_index: 2 βββ parameters: β @ BlockParametersNode (location: (1,4)-(1,12)) β βββ parameters: diff --git a/test/prism/snapshots/seattlerb/block_opt_splat.txt b/test/prism/snapshots/seattlerb/block_opt_splat.txt index f0182c9cc1..c15380150c 100644 --- a/test/prism/snapshots/seattlerb/block_opt_splat.txt +++ b/test/prism/snapshots/seattlerb/block_opt_splat.txt @@ -15,7 +15,6 @@ βββ block: @ BlockNode (location: (1,2)-(1,17)) βββ locals: [:b, :c] - βββ locals_body_index: 2 βββ parameters: β @ BlockParametersNode (location: (1,4)-(1,15)) β βββ parameters: diff --git a/test/prism/snapshots/seattlerb/block_opt_splat_arg_block_omfg.txt b/test/prism/snapshots/seattlerb/block_opt_splat_arg_block_omfg.txt index 48d8d3e4f2..da383a3c88 100644 --- a/test/prism/snapshots/seattlerb/block_opt_splat_arg_block_omfg.txt +++ b/test/prism/snapshots/seattlerb/block_opt_splat_arg_block_omfg.txt @@ -15,7 +15,6 @@ βββ block: @ BlockNode (location: (1,2)-(1,22)) βββ locals: [:b, :c, :d, :e] - βββ locals_body_index: 4 βββ parameters: β @ BlockParametersNode (location: (1,4)-(1,20)) β βββ parameters: diff --git a/test/prism/snapshots/seattlerb/block_optarg.txt b/test/prism/snapshots/seattlerb/block_optarg.txt index 40e334d1da..5da99aec79 100644 --- a/test/prism/snapshots/seattlerb/block_optarg.txt +++ b/test/prism/snapshots/seattlerb/block_optarg.txt @@ -15,7 +15,6 @@ βββ block: @ BlockNode (location: (1,2)-(1,14)) βββ locals: [:b] - βββ locals_body_index: 1 βββ parameters: β @ BlockParametersNode (location: (1,4)-(1,12)) β βββ parameters: diff --git a/test/prism/snapshots/seattlerb/block_paren_splat.txt b/test/prism/snapshots/seattlerb/block_paren_splat.txt index 5426cad0a3..ebd937904c 100644 --- a/test/prism/snapshots/seattlerb/block_paren_splat.txt +++ b/test/prism/snapshots/seattlerb/block_paren_splat.txt @@ -15,7 +15,6 @@ βββ block: @ BlockNode (location: (1,2)-(1,15)) βββ locals: [:b, :c] - βββ locals_body_index: 2 βββ parameters: β @ BlockParametersNode (location: (1,4)-(1,13)) β βββ parameters: diff --git a/test/prism/snapshots/seattlerb/block_reg_optarg.txt b/test/prism/snapshots/seattlerb/block_reg_optarg.txt index 7643749576..53c43603a7 100644 --- a/test/prism/snapshots/seattlerb/block_reg_optarg.txt +++ b/test/prism/snapshots/seattlerb/block_reg_optarg.txt @@ -15,7 +15,6 @@ βββ block: @ BlockNode (location: (1,2)-(1,17)) βββ locals: [:b, :c] - βββ locals_body_index: 2 βββ parameters: β @ BlockParametersNode (location: (1,4)-(1,15)) β βββ parameters: diff --git a/test/prism/snapshots/seattlerb/block_return.txt b/test/prism/snapshots/seattlerb/block_return.txt index 7d9e29036a..e91f5f2592 100644 --- a/test/prism/snapshots/seattlerb/block_return.txt +++ b/test/prism/snapshots/seattlerb/block_return.txt @@ -34,7 +34,6 @@ βββ block: @ BlockNode (location: (1,15)-(1,27)) βββ locals: [:bar] - βββ locals_body_index: 1 βββ parameters: β @ BlockParametersNode (location: (1,18)-(1,23)) β βββ parameters: diff --git a/test/prism/snapshots/seattlerb/block_scope.txt b/test/prism/snapshots/seattlerb/block_scope.txt index 6537393872..a21a28b993 100644 --- a/test/prism/snapshots/seattlerb/block_scope.txt +++ b/test/prism/snapshots/seattlerb/block_scope.txt @@ -15,7 +15,6 @@ βββ block: @ BlockNode (location: (1,2)-(1,10)) βββ locals: [:b] - βββ locals_body_index: 1 βββ parameters: β @ BlockParametersNode (location: (1,4)-(1,8)) β βββ parameters: β
diff --git a/test/prism/snapshots/seattlerb/block_splat_reg.txt b/test/prism/snapshots/seattlerb/block_splat_reg.txt index 47d3b69463..617ff88622 100644 --- a/test/prism/snapshots/seattlerb/block_splat_reg.txt +++ b/test/prism/snapshots/seattlerb/block_splat_reg.txt @@ -15,7 +15,6 @@ βββ block: @ BlockNode (location: (1,2)-(1,13)) βββ locals: [:b, :c] - βββ locals_body_index: 2 βββ parameters: β @ BlockParametersNode (location: (1,4)-(1,11)) β βββ parameters: diff --git a/test/prism/snapshots/seattlerb/bug169.txt b/test/prism/snapshots/seattlerb/bug169.txt index f3cde864b5..e4fb47a6de 100644 --- a/test/prism/snapshots/seattlerb/bug169.txt +++ b/test/prism/snapshots/seattlerb/bug169.txt @@ -22,7 +22,6 @@ βββ block: @ BlockNode (location: (1,5)-(1,7)) βββ locals: [] - βββ locals_body_index: 0 βββ parameters: β
βββ body: β
βββ opening_loc: (1,5)-(1,6) = "{" diff --git a/test/prism/snapshots/seattlerb/bug236.txt b/test/prism/snapshots/seattlerb/bug236.txt index 07ec809bd1..203a39a793 100644 --- a/test/prism/snapshots/seattlerb/bug236.txt +++ b/test/prism/snapshots/seattlerb/bug236.txt @@ -15,7 +15,6 @@ β βββ block: β @ BlockNode (location: (1,1)-(1,7)) β βββ locals: [:a] - β βββ locals_body_index: 1 β βββ parameters: β β @ BlockParametersNode (location: (1,2)-(1,6)) β β βββ parameters: @@ -49,7 +48,6 @@ βββ block: @ BlockNode (location: (3,1)-(3,6)) βββ locals: [:a] - βββ locals_body_index: 1 βββ parameters: β @ BlockParametersNode (location: (3,2)-(3,5)) β βββ parameters: diff --git a/test/prism/snapshots/seattlerb/bug_187.txt b/test/prism/snapshots/seattlerb/bug_187.txt index 06248a9760..ae72675e5c 100644 --- a/test/prism/snapshots/seattlerb/bug_187.txt +++ b/test/prism/snapshots/seattlerb/bug_187.txt @@ -44,13 +44,11 @@ β β βββ block: β β @ BlockNode (location: (2,4)-(2,10)) β β βββ locals: [] - β β βββ locals_body_index: 0 β β βββ parameters: β
β β βββ body: β
β β βββ opening_loc: (2,4)-(2,6) = "do" β β βββ closing_loc: (2,7)-(2,10) = "end" β βββ locals: [] - β βββ locals_body_index: 0 β βββ def_keyword_loc: (1,8)-(1,11) = "def" β βββ operator_loc: β
β βββ lparen_loc: β
diff --git a/test/prism/snapshots/seattlerb/bug_249.txt b/test/prism/snapshots/seattlerb/bug_249.txt index bc57cfb2ab..569bea14c5 100644 --- a/test/prism/snapshots/seattlerb/bug_249.txt +++ b/test/prism/snapshots/seattlerb/bug_249.txt @@ -35,7 +35,6 @@ β β β β βββ block: β β β β @ BlockNode (location: (1,17)-(4,4)) β β β β βββ locals: [] - β β β β βββ locals_body_index: 0 β β β β βββ parameters: β
β β β β βββ body: β β β β β @ StatementsNode (location: (2,0)-(3,3)) @@ -47,7 +46,6 @@ β β β β β βββ parameters: β
β β β β β βββ body: β
β β β β β βββ locals: [] - β β β β β βββ locals_body_index: 0 β β β β β βββ def_keyword_loc: (2,0)-(2,3) = "def" β β β β β βββ operator_loc: β
β β β β β βββ lparen_loc: β
diff --git a/test/prism/snapshots/seattlerb/bug_args__19.txt b/test/prism/snapshots/seattlerb/bug_args__19.txt index ec17de9a2e..f451bd0172 100644 --- a/test/prism/snapshots/seattlerb/bug_args__19.txt +++ b/test/prism/snapshots/seattlerb/bug_args__19.txt @@ -15,7 +15,6 @@ βββ block: @ BlockNode (location: (1,2)-(1,16)) βββ locals: [:a, :b] - βββ locals_body_index: 2 βββ parameters: β @ BlockParametersNode (location: (1,4)-(1,12)) β βββ parameters: diff --git a/test/prism/snapshots/seattlerb/bug_args_masgn.txt b/test/prism/snapshots/seattlerb/bug_args_masgn.txt index 1ea7d0555e..297979c182 100644 --- a/test/prism/snapshots/seattlerb/bug_args_masgn.txt +++ b/test/prism/snapshots/seattlerb/bug_args_masgn.txt @@ -15,7 +15,6 @@ βββ block: @ BlockNode (location: (1,2)-(1,17)) βββ locals: [:a, :b, :c] - βββ locals_body_index: 3 βββ parameters: β @ BlockParametersNode (location: (1,4)-(1,15)) β βββ parameters: diff --git a/test/prism/snapshots/seattlerb/bug_args_masgn2.txt b/test/prism/snapshots/seattlerb/bug_args_masgn2.txt index 947c9cdfd3..6bec9187b3 100644 --- a/test/prism/snapshots/seattlerb/bug_args_masgn2.txt +++ b/test/prism/snapshots/seattlerb/bug_args_masgn2.txt @@ -15,7 +15,6 @@ βββ block: @ BlockNode (location: (1,2)-(1,22)) βββ locals: [:a, :b, :c, :d] - βββ locals_body_index: 4 βββ parameters: β @ BlockParametersNode (location: (1,4)-(1,20)) β βββ parameters: diff --git a/test/prism/snapshots/seattlerb/bug_args_masgn_outer_parens__19.txt b/test/prism/snapshots/seattlerb/bug_args_masgn_outer_parens__19.txt index 615e6445b7..42a060d02a 100644 --- a/test/prism/snapshots/seattlerb/bug_args_masgn_outer_parens__19.txt +++ b/test/prism/snapshots/seattlerb/bug_args_masgn_outer_parens__19.txt @@ -15,7 +15,6 @@ βββ block: @ BlockNode (location: (1,2)-(1,19)) βββ locals: [:k, :v, :i] - βββ locals_body_index: 3 βββ parameters: β @ BlockParametersNode (location: (1,4)-(1,17)) β βββ parameters: diff --git a/test/prism/snapshots/seattlerb/bug_call_arglist_parens.txt b/test/prism/snapshots/seattlerb/bug_call_arglist_parens.txt index d65ec901c3..8c64721870 100644 --- a/test/prism/snapshots/seattlerb/bug_call_arglist_parens.txt +++ b/test/prism/snapshots/seattlerb/bug_call_arglist_parens.txt @@ -35,7 +35,6 @@ β β βββ closing_loc: β
β β βββ block: β
β βββ locals: [] - β βββ locals_body_index: 0 β βββ def_keyword_loc: (1,6)-(1,9) = "def" β βββ operator_loc: β
β βββ lparen_loc: β
@@ -74,7 +73,6 @@ β β βββ closing_loc: β
β β βββ block: β
β βββ locals: [] - β βββ locals_body_index: 0 β βββ def_keyword_loc: (6,6)-(6,9) = "def" β βββ operator_loc: β
β βββ lparen_loc: (6,11)-(6,12) = "(" diff --git a/test/prism/snapshots/seattlerb/bug_masgn_right.txt b/test/prism/snapshots/seattlerb/bug_masgn_right.txt index d84a59d97f..b4c75c4607 100644 --- a/test/prism/snapshots/seattlerb/bug_masgn_right.txt +++ b/test/prism/snapshots/seattlerb/bug_masgn_right.txt @@ -15,7 +15,6 @@ βββ block: @ BlockNode (location: (1,2)-(1,17)) βββ locals: [:a, :b, :c] - βββ locals_body_index: 3 βββ parameters: β @ BlockParametersNode (location: (1,4)-(1,15)) β βββ parameters: diff --git a/test/prism/snapshots/seattlerb/call_array_block_call.txt b/test/prism/snapshots/seattlerb/call_array_block_call.txt index 521da4a202..e02740e7f5 100644 --- a/test/prism/snapshots/seattlerb/call_array_block_call.txt +++ b/test/prism/snapshots/seattlerb/call_array_block_call.txt @@ -30,7 +30,6 @@ β β βββ block: β β @ BlockNode (location: (1,11)-(1,17)) β β βββ locals: [] - β β βββ locals_body_index: 0 β β βββ parameters: β
β β βββ body: β
β β βββ opening_loc: (1,11)-(1,13) = "do" diff --git a/test/prism/snapshots/seattlerb/call_array_lambda_block_call.txt b/test/prism/snapshots/seattlerb/call_array_lambda_block_call.txt index ad2344e519..c6aa722812 100644 --- a/test/prism/snapshots/seattlerb/call_array_lambda_block_call.txt +++ b/test/prism/snapshots/seattlerb/call_array_lambda_block_call.txt @@ -19,7 +19,6 @@ β βββ elements: (length: 1) β β βββ @ LambdaNode (location: (1,3)-(1,10)) β β βββ locals: [] - β β βββ locals_body_index: 0 β β βββ operator_loc: (1,3)-(1,5) = "->" β β βββ opening_loc: (1,8)-(1,9) = "{" β β βββ closing_loc: (1,9)-(1,10) = "}" @@ -36,7 +35,6 @@ βββ block: @ BlockNode (location: (1,12)-(2,3)) βββ locals: [] - βββ locals_body_index: 0 βββ parameters: β
βββ body: β
βββ opening_loc: (1,12)-(1,14) = "do" diff --git a/test/prism/snapshots/seattlerb/call_begin_call_block_call.txt b/test/prism/snapshots/seattlerb/call_begin_call_block_call.txt index 2ce751ae22..1aa994c8e6 100644 --- a/test/prism/snapshots/seattlerb/call_begin_call_block_call.txt +++ b/test/prism/snapshots/seattlerb/call_begin_call_block_call.txt @@ -41,7 +41,6 @@ β β βββ block: β β @ BlockNode (location: (2,4)-(2,10)) β β βββ locals: [] - β β βββ locals_body_index: 0 β β βββ parameters: β
β β βββ body: β
β β βββ opening_loc: (2,4)-(2,6) = "do" diff --git a/test/prism/snapshots/seattlerb/call_stabby_do_end_with_block.txt b/test/prism/snapshots/seattlerb/call_stabby_do_end_with_block.txt index 180f03b4e3..295a68dcba 100644 --- a/test/prism/snapshots/seattlerb/call_stabby_do_end_with_block.txt +++ b/test/prism/snapshots/seattlerb/call_stabby_do_end_with_block.txt @@ -16,7 +16,6 @@ β βββ arguments: (length: 1) β βββ @ LambdaNode (location: (1,2)-(1,13)) β βββ locals: [] - β βββ locals_body_index: 0 β βββ operator_loc: (1,2)-(1,4) = "->" β βββ opening_loc: (1,5)-(1,7) = "do" β βββ closing_loc: (1,10)-(1,13) = "end" @@ -30,7 +29,6 @@ βββ block: @ BlockNode (location: (1,14)-(1,22)) βββ locals: [] - βββ locals_body_index: 0 βββ parameters: β
βββ body: β @ StatementsNode (location: (1,17)-(1,18)) diff --git a/test/prism/snapshots/seattlerb/call_stabby_with_braces_block.txt b/test/prism/snapshots/seattlerb/call_stabby_with_braces_block.txt index a02923b521..ee2a20aabd 100644 --- a/test/prism/snapshots/seattlerb/call_stabby_with_braces_block.txt +++ b/test/prism/snapshots/seattlerb/call_stabby_with_braces_block.txt @@ -16,7 +16,6 @@ β βββ arguments: (length: 1) β βββ @ LambdaNode (location: (1,2)-(1,10)) β βββ locals: [] - β βββ locals_body_index: 0 β βββ operator_loc: (1,2)-(1,4) = "->" β βββ opening_loc: (1,5)-(1,6) = "{" β βββ closing_loc: (1,9)-(1,10) = "}" @@ -30,7 +29,6 @@ βββ block: @ BlockNode (location: (1,11)-(1,19)) βββ locals: [] - βββ locals_body_index: 0 βββ parameters: β
βββ body: β @ StatementsNode (location: (1,14)-(1,15)) diff --git a/test/prism/snapshots/seattlerb/case_in.txt b/test/prism/snapshots/seattlerb/case_in.txt index 069dec1938..496909e4df 100644 --- a/test/prism/snapshots/seattlerb/case_in.txt +++ b/test/prism/snapshots/seattlerb/case_in.txt @@ -552,7 +552,6 @@ β β β βββ requireds: (length: 2) β β β β βββ @ LambdaNode (location: (70,4)-(70,18)) β β β β β βββ locals: [:b] - β β β β β βββ locals_body_index: 1 β β β β β βββ operator_loc: (70,4)-(70,6) = "->" β β β β β βββ opening_loc: (70,10)-(70,11) = "{" β β β β β βββ closing_loc: (70,17)-(70,18) = "}" diff --git a/test/prism/snapshots/seattlerb/class_comments.txt b/test/prism/snapshots/seattlerb/class_comments.txt index 47e2043df6..5ac05b6be6 100644 --- a/test/prism/snapshots/seattlerb/class_comments.txt +++ b/test/prism/snapshots/seattlerb/class_comments.txt @@ -21,7 +21,6 @@ β βββ parameters: β
β βββ body: β
β βββ locals: [] - β βββ locals_body_index: 0 β βββ def_keyword_loc: (6,2)-(6,5) = "def" β βββ operator_loc: β
β βββ lparen_loc: β
diff --git a/test/prism/snapshots/seattlerb/dasgn_icky2.txt b/test/prism/snapshots/seattlerb/dasgn_icky2.txt index 881c3ce188..e118362f87 100644 --- a/test/prism/snapshots/seattlerb/dasgn_icky2.txt +++ b/test/prism/snapshots/seattlerb/dasgn_icky2.txt @@ -15,7 +15,6 @@ βββ block: @ BlockNode (location: (1,2)-(8,3)) βββ locals: [:v] - βββ locals_body_index: 0 βββ parameters: β
βββ body: β @ StatementsNode (location: (2,2)-(7,5)) diff --git a/test/prism/snapshots/seattlerb/defn_arg_asplat_arg.txt b/test/prism/snapshots/seattlerb/defn_arg_asplat_arg.txt index fc726fe4de..3f2bdf44a4 100644 --- a/test/prism/snapshots/seattlerb/defn_arg_asplat_arg.txt +++ b/test/prism/snapshots/seattlerb/defn_arg_asplat_arg.txt @@ -29,7 +29,6 @@ β βββ block: β
βββ body: β
βββ locals: [:interp, :args] - βββ locals_body_index: 2 βββ def_keyword_loc: (1,0)-(1,3) = "def" βββ operator_loc: β
βββ lparen_loc: (1,8)-(1,9) = "(" diff --git a/test/prism/snapshots/seattlerb/defn_arg_forward_args.txt b/test/prism/snapshots/seattlerb/defn_arg_forward_args.txt index 2068a8011b..4121770c5c 100644 --- a/test/prism/snapshots/seattlerb/defn_arg_forward_args.txt +++ b/test/prism/snapshots/seattlerb/defn_arg_forward_args.txt @@ -41,7 +41,6 @@ β βββ closing_loc: (1,23)-(1,24) = ")" β βββ block: β
βββ locals: [:x] - βββ locals_body_index: 1 βββ 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 b6802c2fd8..178b6ccde7 100644 --- a/test/prism/snapshots/seattlerb/defn_args_forward_args.txt +++ b/test/prism/snapshots/seattlerb/defn_args_forward_args.txt @@ -53,7 +53,6 @@ β βββ closing_loc: (1,35)-(1,36) = ")" β βββ block: β
βββ locals: [:x, :y, :z] - βββ locals_body_index: 3 βββ def_keyword_loc: (1,0)-(1,3) = "def" βββ operator_loc: β
βββ lparen_loc: (1,5)-(1,6) = "(" diff --git a/test/prism/snapshots/seattlerb/defn_comments.txt b/test/prism/snapshots/seattlerb/defn_comments.txt index bc4ba5462b..585aa65c9a 100644 --- a/test/prism/snapshots/seattlerb/defn_comments.txt +++ b/test/prism/snapshots/seattlerb/defn_comments.txt @@ -10,7 +10,6 @@ βββ parameters: β
βββ body: β
βββ locals: [] - βββ locals_body_index: 0 βββ def_keyword_loc: (4,0)-(4,3) = "def" βββ operator_loc: β
βββ lparen_loc: β
diff --git a/test/prism/snapshots/seattlerb/defn_endless_command.txt b/test/prism/snapshots/seattlerb/defn_endless_command.txt index ae1a32bb27..b75ef779bb 100644 --- a/test/prism/snapshots/seattlerb/defn_endless_command.txt +++ b/test/prism/snapshots/seattlerb/defn_endless_command.txt @@ -27,7 +27,6 @@ β βββ closing_loc: β
β βββ block: β
βββ locals: [] - βββ locals_body_index: 0 βββ def_keyword_loc: (1,0)-(1,3) = "def" βββ operator_loc: β
βββ lparen_loc: β
diff --git a/test/prism/snapshots/seattlerb/defn_endless_command_rescue.txt b/test/prism/snapshots/seattlerb/defn_endless_command_rescue.txt index d649437c30..487be865ea 100644 --- a/test/prism/snapshots/seattlerb/defn_endless_command_rescue.txt +++ b/test/prism/snapshots/seattlerb/defn_endless_command_rescue.txt @@ -33,7 +33,6 @@ β @ IntegerNode (location: (1,41)-(1,43)) β βββ flags: decimal βββ locals: [] - βββ locals_body_index: 0 βββ def_keyword_loc: (1,0)-(1,3) = "def" βββ operator_loc: β
βββ lparen_loc: β
diff --git a/test/prism/snapshots/seattlerb/defn_forward_args.txt b/test/prism/snapshots/seattlerb/defn_forward_args.txt index e13c469f87..71a984c811 100644 --- a/test/prism/snapshots/seattlerb/defn_forward_args.txt +++ b/test/prism/snapshots/seattlerb/defn_forward_args.txt @@ -35,7 +35,6 @@ β βββ closing_loc: (1,17)-(1,18) = ")" β βββ block: β
βββ locals: [] - βββ locals_body_index: 0 βββ 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 8b62141c99..4a4d69e4d0 100644 --- a/test/prism/snapshots/seattlerb/defn_forward_args__no_parens.txt +++ b/test/prism/snapshots/seattlerb/defn_forward_args__no_parens.txt @@ -35,7 +35,6 @@ β βββ closing_loc: (2,7)-(2,8) = ")" β βββ block: β
βββ locals: [] - βββ locals_body_index: 0 βββ def_keyword_loc: (1,0)-(1,3) = "def" βββ operator_loc: β
βββ lparen_loc: β
diff --git a/test/prism/snapshots/seattlerb/defn_kwarg_env.txt b/test/prism/snapshots/seattlerb/defn_kwarg_env.txt index c0abf7f99a..f420420fc3 100644 --- a/test/prism/snapshots/seattlerb/defn_kwarg_env.txt +++ b/test/prism/snapshots/seattlerb/defn_kwarg_env.txt @@ -47,7 +47,6 @@ β βββ closing_loc: (1,40)-(1,41) = ")" β βββ block: β
βββ locals: [:testing] - βββ locals_body_index: 1 βββ def_keyword_loc: (1,0)-(1,3) = "def" βββ operator_loc: β
βββ lparen_loc: (1,8)-(1,9) = "(" diff --git a/test/prism/snapshots/seattlerb/defn_kwarg_kwarg.txt b/test/prism/snapshots/seattlerb/defn_kwarg_kwarg.txt index 4bad9a69d9..d0f2cbada6 100644 --- a/test/prism/snapshots/seattlerb/defn_kwarg_kwarg.txt +++ b/test/prism/snapshots/seattlerb/defn_kwarg_kwarg.txt @@ -35,7 +35,6 @@ β βββ block: β
βββ body: β
βββ locals: [:a, :b, :c] - βββ locals_body_index: 3 βββ def_keyword_loc: (1,0)-(1,3) = "def" βββ operator_loc: β
βββ lparen_loc: (1,5)-(1,6) = "(" diff --git a/test/prism/snapshots/seattlerb/defn_kwarg_kwsplat.txt b/test/prism/snapshots/seattlerb/defn_kwarg_kwsplat.txt index 8aafbb0e48..d6e867d77d 100644 --- a/test/prism/snapshots/seattlerb/defn_kwarg_kwsplat.txt +++ b/test/prism/snapshots/seattlerb/defn_kwarg_kwsplat.txt @@ -30,7 +30,6 @@ β βββ block: β
βββ body: β
βββ locals: [:b, :c] - βββ locals_body_index: 2 βββ def_keyword_loc: (1,0)-(1,3) = "def" βββ operator_loc: β
βββ lparen_loc: (1,5)-(1,6) = "(" diff --git a/test/prism/snapshots/seattlerb/defn_kwarg_kwsplat_anon.txt b/test/prism/snapshots/seattlerb/defn_kwarg_kwsplat_anon.txt index d1cab9b225..f5fb41836a 100644 --- a/test/prism/snapshots/seattlerb/defn_kwarg_kwsplat_anon.txt +++ b/test/prism/snapshots/seattlerb/defn_kwarg_kwsplat_anon.txt @@ -30,7 +30,6 @@ β βββ block: β
βββ body: β
βββ locals: [:b] - βββ locals_body_index: 1 βββ def_keyword_loc: (1,0)-(1,3) = "def" βββ operator_loc: β
βββ lparen_loc: (1,5)-(1,6) = "(" diff --git a/test/prism/snapshots/seattlerb/defn_kwarg_lvar.txt b/test/prism/snapshots/seattlerb/defn_kwarg_lvar.txt index 2e920f9a2e..0eae56924c 100644 --- a/test/prism/snapshots/seattlerb/defn_kwarg_lvar.txt +++ b/test/prism/snapshots/seattlerb/defn_kwarg_lvar.txt @@ -34,7 +34,6 @@ β βββ name: :kw β βββ depth: 0 βββ locals: [:kw] - βββ locals_body_index: 1 βββ def_keyword_loc: (1,0)-(1,3) = "def" βββ operator_loc: β
βββ lparen_loc: (1,7)-(1,8) = "(" diff --git a/test/prism/snapshots/seattlerb/defn_kwarg_no_parens.txt b/test/prism/snapshots/seattlerb/defn_kwarg_no_parens.txt index df04231ea4..67d120e13b 100644 --- a/test/prism/snapshots/seattlerb/defn_kwarg_no_parens.txt +++ b/test/prism/snapshots/seattlerb/defn_kwarg_no_parens.txt @@ -25,7 +25,6 @@ β βββ block: β
βββ body: β
βββ locals: [:a] - βββ locals_body_index: 1 βββ def_keyword_loc: (1,0)-(1,3) = "def" βββ operator_loc: β
βββ lparen_loc: β
diff --git a/test/prism/snapshots/seattlerb/defn_kwarg_val.txt b/test/prism/snapshots/seattlerb/defn_kwarg_val.txt index 61c3dd29bd..2b52aff2ca 100644 --- a/test/prism/snapshots/seattlerb/defn_kwarg_val.txt +++ b/test/prism/snapshots/seattlerb/defn_kwarg_val.txt @@ -28,7 +28,6 @@ β βββ block: β
βββ body: β
βββ locals: [:a, :b] - βββ locals_body_index: 2 βββ def_keyword_loc: (1,0)-(1,3) = "def" βββ operator_loc: β
βββ lparen_loc: (1,5)-(1,6) = "(" diff --git a/test/prism/snapshots/seattlerb/defn_no_kwargs.txt b/test/prism/snapshots/seattlerb/defn_no_kwargs.txt index 868fe3d202..0ef0634a53 100644 --- a/test/prism/snapshots/seattlerb/defn_no_kwargs.txt +++ b/test/prism/snapshots/seattlerb/defn_no_kwargs.txt @@ -21,7 +21,6 @@ β βββ block: β
βββ body: β
βββ locals: [] - βββ locals_body_index: 0 βββ def_keyword_loc: (1,0)-(1,3) = "def" βββ operator_loc: β
βββ lparen_loc: (1,5)-(1,6) = "(" diff --git a/test/prism/snapshots/seattlerb/defn_oneliner.txt b/test/prism/snapshots/seattlerb/defn_oneliner.txt index d100d10eab..e700499809 100644 --- a/test/prism/snapshots/seattlerb/defn_oneliner.txt +++ b/test/prism/snapshots/seattlerb/defn_oneliner.txt @@ -39,7 +39,6 @@ β βββ closing_loc: (1,26)-(1,27) = ")" β βββ block: β
βββ locals: [:cmd] - βββ locals_body_index: 1 βββ def_keyword_loc: (1,0)-(1,3) = "def" βββ operator_loc: β
βββ lparen_loc: (1,8)-(1,9) = "(" diff --git a/test/prism/snapshots/seattlerb/defn_oneliner_eq2.txt b/test/prism/snapshots/seattlerb/defn_oneliner_eq2.txt index 31418f1116..be3dd8cb99 100644 --- a/test/prism/snapshots/seattlerb/defn_oneliner_eq2.txt +++ b/test/prism/snapshots/seattlerb/defn_oneliner_eq2.txt @@ -36,7 +36,6 @@ β β βββ @ IntegerNode (location: (2,14)-(2,16)) β β βββ flags: decimal β βββ locals: [:o] - β βββ locals_body_index: 1 β βββ def_keyword_loc: (2,2)-(2,5) = "def" β βββ operator_loc: β
β βββ lparen_loc: (2,8)-(2,9) = "(" diff --git a/test/prism/snapshots/seattlerb/defn_oneliner_noargs.txt b/test/prism/snapshots/seattlerb/defn_oneliner_noargs.txt index 5ca8fcad64..54555b1a23 100644 --- a/test/prism/snapshots/seattlerb/defn_oneliner_noargs.txt +++ b/test/prism/snapshots/seattlerb/defn_oneliner_noargs.txt @@ -22,7 +22,6 @@ β βββ closing_loc: β
β βββ block: β
βββ locals: [] - βββ locals_body_index: 0 βββ def_keyword_loc: (1,0)-(1,3) = "def" βββ operator_loc: β
βββ lparen_loc: β
diff --git a/test/prism/snapshots/seattlerb/defn_oneliner_noargs_parentheses.txt b/test/prism/snapshots/seattlerb/defn_oneliner_noargs_parentheses.txt index 6f02f29508..e0fc4636f1 100644 --- a/test/prism/snapshots/seattlerb/defn_oneliner_noargs_parentheses.txt +++ b/test/prism/snapshots/seattlerb/defn_oneliner_noargs_parentheses.txt @@ -22,7 +22,6 @@ β βββ closing_loc: β
β βββ block: β
βββ locals: [] - βββ locals_body_index: 0 βββ def_keyword_loc: (1,0)-(1,3) = "def" βββ operator_loc: β
βββ lparen_loc: (1,8)-(1,9) = "(" diff --git a/test/prism/snapshots/seattlerb/defn_oneliner_rescue.txt b/test/prism/snapshots/seattlerb/defn_oneliner_rescue.txt index bb23f56c70..3cfd09f16f 100644 --- a/test/prism/snapshots/seattlerb/defn_oneliner_rescue.txt +++ b/test/prism/snapshots/seattlerb/defn_oneliner_rescue.txt @@ -56,7 +56,6 @@ β β βββ ensure_clause: β
β β βββ end_keyword_loc: (5,0)-(5,3) = "end" β βββ locals: [:cmd] - β βββ locals_body_index: 1 β βββ def_keyword_loc: (1,0)-(1,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: (1,8)-(1,9) = "(" @@ -104,7 +103,6 @@ β β βββ rescue_expression: β β @ NilNode (location: (9,21)-(9,24)) β βββ locals: [:cmd] - β βββ locals_body_index: 1 β βββ def_keyword_loc: (8,0)-(8,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: (8,8)-(8,9) = "(" @@ -152,7 +150,6 @@ β βββ rescue_expression: β @ NilNode (location: (13,35)-(13,38)) βββ locals: [:cmd] - βββ locals_body_index: 1 βββ def_keyword_loc: (13,0)-(13,3) = "def" βββ operator_loc: β
βββ lparen_loc: (13,8)-(13,9) = "(" diff --git a/test/prism/snapshots/seattlerb/defn_opt_last_arg.txt b/test/prism/snapshots/seattlerb/defn_opt_last_arg.txt index 05a4cec869..569bc23078 100644 --- a/test/prism/snapshots/seattlerb/defn_opt_last_arg.txt +++ b/test/prism/snapshots/seattlerb/defn_opt_last_arg.txt @@ -25,7 +25,6 @@ β βββ block: β
βββ body: β
βββ locals: [:arg] - βββ locals_body_index: 1 βββ def_keyword_loc: (1,0)-(1,3) = "def" βββ operator_loc: β
βββ lparen_loc: β
diff --git a/test/prism/snapshots/seattlerb/defn_opt_reg.txt b/test/prism/snapshots/seattlerb/defn_opt_reg.txt index 34b1faafa6..f86168513a 100644 --- a/test/prism/snapshots/seattlerb/defn_opt_reg.txt +++ b/test/prism/snapshots/seattlerb/defn_opt_reg.txt @@ -28,7 +28,6 @@ β βββ block: β
βββ body: β
βββ locals: [:a, :b] - βββ locals_body_index: 2 βββ def_keyword_loc: (1,0)-(1,3) = "def" βββ operator_loc: β
βββ lparen_loc: (1,5)-(1,6) = "(" diff --git a/test/prism/snapshots/seattlerb/defn_opt_splat_arg.txt b/test/prism/snapshots/seattlerb/defn_opt_splat_arg.txt index 7cd554222e..ba394bbf1a 100644 --- a/test/prism/snapshots/seattlerb/defn_opt_splat_arg.txt +++ b/test/prism/snapshots/seattlerb/defn_opt_splat_arg.txt @@ -34,7 +34,6 @@ β βββ block: β
βββ body: β
βββ locals: [:a, :b, :c] - βββ locals_body_index: 3 βββ def_keyword_loc: (1,0)-(1,3) = "def" βββ operator_loc: β
βββ lparen_loc: (1,6)-(1,7) = "(" diff --git a/test/prism/snapshots/seattlerb/defn_powarg.txt b/test/prism/snapshots/seattlerb/defn_powarg.txt index 5e756ca342..bce131ad18 100644 --- a/test/prism/snapshots/seattlerb/defn_powarg.txt +++ b/test/prism/snapshots/seattlerb/defn_powarg.txt @@ -23,7 +23,6 @@ β βββ block: β
βββ body: β
βββ locals: [:opts] - βββ locals_body_index: 1 βββ def_keyword_loc: (1,0)-(1,3) = "def" βββ operator_loc: β
βββ lparen_loc: (1,5)-(1,6) = "(" diff --git a/test/prism/snapshots/seattlerb/defn_reg_opt_reg.txt b/test/prism/snapshots/seattlerb/defn_reg_opt_reg.txt index fd68d67329..d079e1b5f3 100644 --- a/test/prism/snapshots/seattlerb/defn_reg_opt_reg.txt +++ b/test/prism/snapshots/seattlerb/defn_reg_opt_reg.txt @@ -36,7 +36,6 @@ β βββ block: β
βββ body: β
βββ locals: [:a, :b, :d] - βββ locals_body_index: 3 βββ def_keyword_loc: (1,0)-(1,3) = "def" βββ operator_loc: β
βββ lparen_loc: (1,5)-(1,6) = "(" diff --git a/test/prism/snapshots/seattlerb/defn_splat_arg.txt b/test/prism/snapshots/seattlerb/defn_splat_arg.txt index a187ae49a8..109fac495a 100644 --- a/test/prism/snapshots/seattlerb/defn_splat_arg.txt +++ b/test/prism/snapshots/seattlerb/defn_splat_arg.txt @@ -26,7 +26,6 @@ β βββ block: β
βββ body: β
βββ locals: [:a] - βββ locals_body_index: 1 βββ def_keyword_loc: (1,0)-(1,3) = "def" βββ operator_loc: β
βββ lparen_loc: (1,5)-(1,6) = "(" diff --git a/test/prism/snapshots/seattlerb/defn_unary_not.txt b/test/prism/snapshots/seattlerb/defn_unary_not.txt index a10614fd2a..df2e3a87bb 100644 --- a/test/prism/snapshots/seattlerb/defn_unary_not.txt +++ b/test/prism/snapshots/seattlerb/defn_unary_not.txt @@ -13,7 +13,6 @@ β βββ body: (length: 1) β βββ @ TrueNode (location: (1,8)-(1,12)) βββ locals: [] - βββ locals_body_index: 0 βββ def_keyword_loc: (1,0)-(1,3) = "def" βββ operator_loc: β
βββ lparen_loc: β
diff --git a/test/prism/snapshots/seattlerb/defns_reserved.txt b/test/prism/snapshots/seattlerb/defns_reserved.txt index 97ed2d542e..96860b49ce 100644 --- a/test/prism/snapshots/seattlerb/defns_reserved.txt +++ b/test/prism/snapshots/seattlerb/defns_reserved.txt @@ -11,7 +11,6 @@ βββ parameters: β
βββ body: β
βββ locals: [] - βββ locals_body_index: 0 βββ def_keyword_loc: (1,0)-(1,3) = "def" βββ operator_loc: (1,8)-(1,9) = "." βββ lparen_loc: β
diff --git a/test/prism/snapshots/seattlerb/defs_as_arg_with_do_block_inside.txt b/test/prism/snapshots/seattlerb/defs_as_arg_with_do_block_inside.txt index 09dfef8a25..24bb14f8e1 100644 --- a/test/prism/snapshots/seattlerb/defs_as_arg_with_do_block_inside.txt +++ b/test/prism/snapshots/seattlerb/defs_as_arg_with_do_block_inside.txt @@ -45,13 +45,11 @@ β β βββ block: β β @ BlockNode (location: (1,18)-(1,25)) β β βββ locals: [] - β β βββ locals_body_index: 0 β β βββ parameters: β
β β βββ body: β
β β βββ opening_loc: (1,18)-(1,20) = "do" β β βββ closing_loc: (1,22)-(1,25) = "end" β βββ locals: [] - β βββ locals_body_index: 0 β βββ def_keyword_loc: (1,2)-(1,5) = "def" β βββ operator_loc: (1,10)-(1,11) = "." β βββ lparen_loc: β
diff --git a/test/prism/snapshots/seattlerb/defs_comments.txt b/test/prism/snapshots/seattlerb/defs_comments.txt index a25b50614d..a2976e7ee2 100644 --- a/test/prism/snapshots/seattlerb/defs_comments.txt +++ b/test/prism/snapshots/seattlerb/defs_comments.txt @@ -11,7 +11,6 @@ βββ parameters: β
βββ body: β
βββ locals: [] - βββ locals_body_index: 0 βββ def_keyword_loc: (4,0)-(4,3) = "def" βββ operator_loc: (4,8)-(4,9) = "." βββ lparen_loc: β
diff --git a/test/prism/snapshots/seattlerb/defs_endless_command.txt b/test/prism/snapshots/seattlerb/defs_endless_command.txt index d9b75ea865..70471e97ad 100644 --- a/test/prism/snapshots/seattlerb/defs_endless_command.txt +++ b/test/prism/snapshots/seattlerb/defs_endless_command.txt @@ -37,7 +37,6 @@ β βββ closing_loc: β
β βββ block: β
βββ locals: [] - βββ locals_body_index: 0 βββ def_keyword_loc: (1,0)-(1,3) = "def" βββ operator_loc: (1,5)-(1,6) = "." βββ lparen_loc: β
diff --git a/test/prism/snapshots/seattlerb/defs_endless_command_rescue.txt b/test/prism/snapshots/seattlerb/defs_endless_command_rescue.txt index 72379d9337..1848d4233e 100644 --- a/test/prism/snapshots/seattlerb/defs_endless_command_rescue.txt +++ b/test/prism/snapshots/seattlerb/defs_endless_command_rescue.txt @@ -43,7 +43,6 @@ β @ IntegerNode (location: (1,43)-(1,45)) β βββ flags: decimal βββ locals: [] - βββ locals_body_index: 0 βββ def_keyword_loc: (1,0)-(1,3) = "def" βββ operator_loc: (1,5)-(1,6) = "." βββ lparen_loc: β
diff --git a/test/prism/snapshots/seattlerb/defs_kwarg.txt b/test/prism/snapshots/seattlerb/defs_kwarg.txt index f96c6264a0..4a481ffe87 100644 --- a/test/prism/snapshots/seattlerb/defs_kwarg.txt +++ b/test/prism/snapshots/seattlerb/defs_kwarg.txt @@ -26,7 +26,6 @@ β βββ block: β
βββ body: β
βββ locals: [:b] - βββ locals_body_index: 1 βββ def_keyword_loc: (1,0)-(1,3) = "def" βββ operator_loc: (1,8)-(1,9) = "." βββ lparen_loc: β
diff --git a/test/prism/snapshots/seattlerb/defs_oneliner.txt b/test/prism/snapshots/seattlerb/defs_oneliner.txt index dbbb5e172b..d32975354d 100644 --- a/test/prism/snapshots/seattlerb/defs_oneliner.txt +++ b/test/prism/snapshots/seattlerb/defs_oneliner.txt @@ -40,7 +40,6 @@ β βββ closing_loc: (1,31)-(1,32) = ")" β βββ block: β
βββ locals: [:cmd] - βββ locals_body_index: 1 βββ def_keyword_loc: (1,0)-(1,3) = "def" βββ operator_loc: (1,8)-(1,9) = "." βββ lparen_loc: (1,13)-(1,14) = "(" diff --git a/test/prism/snapshots/seattlerb/defs_oneliner_eq2.txt b/test/prism/snapshots/seattlerb/defs_oneliner_eq2.txt index 868efde81f..15843bb1f8 100644 --- a/test/prism/snapshots/seattlerb/defs_oneliner_eq2.txt +++ b/test/prism/snapshots/seattlerb/defs_oneliner_eq2.txt @@ -37,7 +37,6 @@ β β βββ @ IntegerNode (location: (2,19)-(2,21)) β β βββ flags: decimal β βββ locals: [:o] - β βββ locals_body_index: 1 β βββ def_keyword_loc: (2,2)-(2,5) = "def" β βββ operator_loc: (2,10)-(2,11) = "." β βββ lparen_loc: (2,13)-(2,14) = "(" diff --git a/test/prism/snapshots/seattlerb/defs_oneliner_rescue.txt b/test/prism/snapshots/seattlerb/defs_oneliner_rescue.txt index 80d0332823..46a65e50d6 100644 --- a/test/prism/snapshots/seattlerb/defs_oneliner_rescue.txt +++ b/test/prism/snapshots/seattlerb/defs_oneliner_rescue.txt @@ -57,7 +57,6 @@ β β βββ ensure_clause: β
β β βββ end_keyword_loc: (5,0)-(5,3) = "end" β βββ locals: [:cmd] - β βββ locals_body_index: 1 β βββ def_keyword_loc: (1,0)-(1,3) = "def" β βββ operator_loc: (1,8)-(1,9) = "." β βββ lparen_loc: (1,13)-(1,14) = "(" @@ -106,7 +105,6 @@ β β βββ rescue_expression: β β @ NilNode (location: (9,21)-(9,24)) β βββ locals: [:cmd] - β βββ locals_body_index: 1 β βββ def_keyword_loc: (8,0)-(8,3) = "def" β βββ operator_loc: (8,8)-(8,9) = "." β βββ lparen_loc: (8,13)-(8,14) = "(" @@ -155,7 +153,6 @@ β βββ rescue_expression: β @ NilNode (location: (13,40)-(13,43)) βββ locals: [:cmd] - βββ locals_body_index: 1 βββ def_keyword_loc: (13,0)-(13,3) = "def" βββ operator_loc: (13,8)-(13,9) = "." βββ lparen_loc: (13,13)-(13,14) = "(" diff --git a/test/prism/snapshots/seattlerb/difficult3_.txt b/test/prism/snapshots/seattlerb/difficult3_.txt index 4d5051d564..f074c49a9f 100644 --- a/test/prism/snapshots/seattlerb/difficult3_.txt +++ b/test/prism/snapshots/seattlerb/difficult3_.txt @@ -15,7 +15,6 @@ βββ block: @ BlockNode (location: (1,2)-(1,18)) βββ locals: [:a, :b, :c] - βββ locals_body_index: 3 βββ parameters: β @ BlockParametersNode (location: (1,4)-(1,16)) β βββ parameters: diff --git a/test/prism/snapshots/seattlerb/difficult3_2.txt b/test/prism/snapshots/seattlerb/difficult3_2.txt index 842c3e86a1..af1a649171 100644 --- a/test/prism/snapshots/seattlerb/difficult3_2.txt +++ b/test/prism/snapshots/seattlerb/difficult3_2.txt @@ -15,7 +15,6 @@ βββ block: @ BlockNode (location: (1,2)-(1,13)) βββ locals: [:a, :b] - βββ locals_body_index: 2 βββ parameters: β @ BlockParametersNode (location: (1,4)-(1,11)) β βββ parameters: diff --git a/test/prism/snapshots/seattlerb/difficult3_3.txt b/test/prism/snapshots/seattlerb/difficult3_3.txt index bfc3a0329b..e49bbcd55a 100644 --- a/test/prism/snapshots/seattlerb/difficult3_3.txt +++ b/test/prism/snapshots/seattlerb/difficult3_3.txt @@ -15,7 +15,6 @@ βββ block: @ BlockNode (location: (1,2)-(1,17)) βββ locals: [:a, :b, :c] - βββ locals_body_index: 3 βββ parameters: β @ BlockParametersNode (location: (1,4)-(1,15)) β βββ parameters: diff --git a/test/prism/snapshots/seattlerb/difficult3_5.txt b/test/prism/snapshots/seattlerb/difficult3_5.txt index 5c62fbed13..793c3f1e11 100644 --- a/test/prism/snapshots/seattlerb/difficult3_5.txt +++ b/test/prism/snapshots/seattlerb/difficult3_5.txt @@ -16,7 +16,6 @@ β βββ arguments: (length: 1) β βββ @ LambdaNode (location: (1,2)-(1,19)) β βββ locals: [] - β βββ locals_body_index: 0 β βββ operator_loc: (1,2)-(1,4) = "->" β βββ opening_loc: (1,7)-(1,8) = "{" β βββ closing_loc: (1,18)-(1,19) = "}" @@ -41,7 +40,6 @@ β βββ block: β @ BlockNode (location: (1,11)-(1,17)) β βββ locals: [] - β βββ locals_body_index: 0 β βββ parameters: β
β βββ body: β
β βββ opening_loc: (1,11)-(1,13) = "do" diff --git a/test/prism/snapshots/seattlerb/difficult3__10.txt b/test/prism/snapshots/seattlerb/difficult3__10.txt index a7dc59371c..0131e44d44 100644 --- a/test/prism/snapshots/seattlerb/difficult3__10.txt +++ b/test/prism/snapshots/seattlerb/difficult3__10.txt @@ -15,7 +15,6 @@ βββ block: @ BlockNode (location: (1,2)-(1,18)) βββ locals: [:a, :b, :c] - βββ locals_body_index: 3 βββ parameters: β @ BlockParametersNode (location: (1,4)-(1,16)) β βββ parameters: diff --git a/test/prism/snapshots/seattlerb/difficult3__11.txt b/test/prism/snapshots/seattlerb/difficult3__11.txt index 5b393885a3..a658b091c2 100644 --- a/test/prism/snapshots/seattlerb/difficult3__11.txt +++ b/test/prism/snapshots/seattlerb/difficult3__11.txt @@ -15,7 +15,6 @@ βββ block: @ BlockNode (location: (1,2)-(1,14)) βββ locals: [:a] - βββ locals_body_index: 1 βββ parameters: β @ BlockParametersNode (location: (1,4)-(1,12)) β βββ parameters: diff --git a/test/prism/snapshots/seattlerb/difficult3__12.txt b/test/prism/snapshots/seattlerb/difficult3__12.txt index 71be50a515..5aa252fe6a 100644 --- a/test/prism/snapshots/seattlerb/difficult3__12.txt +++ b/test/prism/snapshots/seattlerb/difficult3__12.txt @@ -15,7 +15,6 @@ βββ block: @ BlockNode (location: (1,2)-(1,17)) βββ locals: [:a, :b] - βββ locals_body_index: 2 βββ parameters: β @ BlockParametersNode (location: (1,4)-(1,15)) β βββ parameters: diff --git a/test/prism/snapshots/seattlerb/difficult3__6.txt b/test/prism/snapshots/seattlerb/difficult3__6.txt index 77d14c992d..a42a625be7 100644 --- a/test/prism/snapshots/seattlerb/difficult3__6.txt +++ b/test/prism/snapshots/seattlerb/difficult3__6.txt @@ -15,7 +15,6 @@ βββ block: @ BlockNode (location: (1,2)-(1,21)) βββ locals: [:a, :b, :c, :d] - βββ locals_body_index: 4 βββ parameters: β @ BlockParametersNode (location: (1,4)-(1,19)) β βββ parameters: diff --git a/test/prism/snapshots/seattlerb/difficult3__7.txt b/test/prism/snapshots/seattlerb/difficult3__7.txt index c21a92d5ec..b08025804c 100644 --- a/test/prism/snapshots/seattlerb/difficult3__7.txt +++ b/test/prism/snapshots/seattlerb/difficult3__7.txt @@ -15,7 +15,6 @@ βββ block: @ BlockNode (location: (1,2)-(1,17)) βββ locals: [:a, :b] - βββ locals_body_index: 2 βββ parameters: β @ BlockParametersNode (location: (1,4)-(1,15)) β βββ parameters: diff --git a/test/prism/snapshots/seattlerb/difficult3__8.txt b/test/prism/snapshots/seattlerb/difficult3__8.txt index 0c437bddc1..b2b118faef 100644 --- a/test/prism/snapshots/seattlerb/difficult3__8.txt +++ b/test/prism/snapshots/seattlerb/difficult3__8.txt @@ -15,7 +15,6 @@ βββ block: @ BlockNode (location: (1,2)-(1,20)) βββ locals: [:a, :b, :c] - βββ locals_body_index: 3 βββ parameters: β @ BlockParametersNode (location: (1,4)-(1,18)) β βββ parameters: diff --git a/test/prism/snapshots/seattlerb/difficult3__9.txt b/test/prism/snapshots/seattlerb/difficult3__9.txt index eec21b775c..85c10a4432 100644 --- a/test/prism/snapshots/seattlerb/difficult3__9.txt +++ b/test/prism/snapshots/seattlerb/difficult3__9.txt @@ -15,7 +15,6 @@ βββ block: @ BlockNode (location: (1,2)-(1,15)) βββ locals: [:a, :b] - βββ locals_body_index: 2 βββ parameters: β @ BlockParametersNode (location: (1,4)-(1,13)) β βββ parameters: diff --git a/test/prism/snapshots/seattlerb/difficult6_.txt b/test/prism/snapshots/seattlerb/difficult6_.txt index 70cd8b29fc..bf80034fe9 100644 --- a/test/prism/snapshots/seattlerb/difficult6_.txt +++ b/test/prism/snapshots/seattlerb/difficult6_.txt @@ -5,7 +5,6 @@ βββ body: (length: 1) βββ @ LambdaNode (location: (1,0)-(1,25)) βββ locals: [:a, :b] - βββ locals_body_index: 2 βββ operator_loc: (1,0)-(1,2) = "->" βββ opening_loc: (1,13)-(1,14) = "{" βββ closing_loc: (1,24)-(1,25) = "}" diff --git a/test/prism/snapshots/seattlerb/difficult6__7.txt b/test/prism/snapshots/seattlerb/difficult6__7.txt index c43a9712c1..a135b3b41b 100644 --- a/test/prism/snapshots/seattlerb/difficult6__7.txt +++ b/test/prism/snapshots/seattlerb/difficult6__7.txt @@ -36,7 +36,6 @@ βββ block: @ BlockNode (location: (1,8)-(1,11)) βββ locals: [] - βββ locals_body_index: 0 βββ parameters: β
βββ body: β @ StatementsNode (location: (1,9)-(1,10)) diff --git a/test/prism/snapshots/seattlerb/difficult6__8.txt b/test/prism/snapshots/seattlerb/difficult6__8.txt index 956f9a53db..a19057e44b 100644 --- a/test/prism/snapshots/seattlerb/difficult6__8.txt +++ b/test/prism/snapshots/seattlerb/difficult6__8.txt @@ -36,7 +36,6 @@ βββ block: @ BlockNode (location: (1,9)-(1,12)) βββ locals: [] - βββ locals_body_index: 0 βββ parameters: β
βββ body: β @ StatementsNode (location: (1,10)-(1,11)) diff --git a/test/prism/snapshots/seattlerb/difficult7_.txt b/test/prism/snapshots/seattlerb/difficult7_.txt index 0c71a1ad24..40c778cf6c 100644 --- a/test/prism/snapshots/seattlerb/difficult7_.txt +++ b/test/prism/snapshots/seattlerb/difficult7_.txt @@ -27,7 +27,6 @@ β β β βββ block: β β β @ BlockNode (location: (2,18)-(2,33)) β β β βββ locals: [] - β β β βββ locals_body_index: 0 β β β βββ parameters: β
β β β βββ body: β β β β @ StatementsNode (location: (2,20)-(2,31)) diff --git a/test/prism/snapshots/seattlerb/do_bug.txt b/test/prism/snapshots/seattlerb/do_bug.txt index a520f5ba20..fa13e431d5 100644 --- a/test/prism/snapshots/seattlerb/do_bug.txt +++ b/test/prism/snapshots/seattlerb/do_bug.txt @@ -40,7 +40,6 @@ βββ block: @ BlockNode (location: (2,4)-(4,3)) βββ locals: [:c] - βββ locals_body_index: 1 βββ parameters: β @ BlockParametersNode (location: (2,7)-(2,10)) β βββ parameters: diff --git a/test/prism/snapshots/seattlerb/do_lambda.txt b/test/prism/snapshots/seattlerb/do_lambda.txt index 9de71cea2d..4713fb3e4b 100644 --- a/test/prism/snapshots/seattlerb/do_lambda.txt +++ b/test/prism/snapshots/seattlerb/do_lambda.txt @@ -5,7 +5,6 @@ βββ body: (length: 1) βββ @ LambdaNode (location: (1,0)-(1,11)) βββ locals: [] - βββ locals_body_index: 0 βββ operator_loc: (1,0)-(1,2) = "->" βββ opening_loc: (1,5)-(1,7) = "do" βββ closing_loc: (1,8)-(1,11) = "end" diff --git a/test/prism/snapshots/seattlerb/f_kw.txt b/test/prism/snapshots/seattlerb/f_kw.txt index f1aaa471f0..dfb79f98c9 100644 --- a/test/prism/snapshots/seattlerb/f_kw.txt +++ b/test/prism/snapshots/seattlerb/f_kw.txt @@ -25,7 +25,6 @@ β βββ block: β
βββ body: β
βββ locals: [:k] - βββ locals_body_index: 1 βββ def_keyword_loc: (1,0)-(1,3) = "def" βββ operator_loc: β
βββ lparen_loc: β
diff --git a/test/prism/snapshots/seattlerb/f_kw__required.txt b/test/prism/snapshots/seattlerb/f_kw__required.txt index 6f64c71ae4..f72f43e034 100644 --- a/test/prism/snapshots/seattlerb/f_kw__required.txt +++ b/test/prism/snapshots/seattlerb/f_kw__required.txt @@ -22,7 +22,6 @@ β βββ block: β
βββ body: β
βββ locals: [:k] - βββ locals_body_index: 1 βββ def_keyword_loc: (1,0)-(1,3) = "def" βββ operator_loc: β
βββ lparen_loc: β
diff --git a/test/prism/snapshots/seattlerb/iter_args_1.txt b/test/prism/snapshots/seattlerb/iter_args_1.txt index 46775a253d..f76bbfc559 100644 --- a/test/prism/snapshots/seattlerb/iter_args_1.txt +++ b/test/prism/snapshots/seattlerb/iter_args_1.txt @@ -15,7 +15,6 @@ βββ block: @ BlockNode (location: (1,2)-(1,11)) βββ locals: [:a, :b] - βββ locals_body_index: 2 βββ parameters: β @ BlockParametersNode (location: (1,4)-(1,9)) β βββ parameters: diff --git a/test/prism/snapshots/seattlerb/iter_args_10_1.txt b/test/prism/snapshots/seattlerb/iter_args_10_1.txt index 1f607cd2d3..14dbdc3c03 100644 --- a/test/prism/snapshots/seattlerb/iter_args_10_1.txt +++ b/test/prism/snapshots/seattlerb/iter_args_10_1.txt @@ -15,7 +15,6 @@ βββ block: @ BlockNode (location: (1,2)-(1,21)) βββ locals: [:a, :b, :c] - βββ locals_body_index: 3 βββ parameters: β @ BlockParametersNode (location: (1,4)-(1,19)) β βββ parameters: diff --git a/test/prism/snapshots/seattlerb/iter_args_10_2.txt b/test/prism/snapshots/seattlerb/iter_args_10_2.txt index d15486a375..c0bc6d4362 100644 --- a/test/prism/snapshots/seattlerb/iter_args_10_2.txt +++ b/test/prism/snapshots/seattlerb/iter_args_10_2.txt @@ -15,7 +15,6 @@ βββ block: @ BlockNode (location: (1,2)-(1,25)) βββ locals: [:a, :b, :c, :d] - βββ locals_body_index: 4 βββ parameters: β @ BlockParametersNode (location: (1,4)-(1,23)) β βββ parameters: diff --git a/test/prism/snapshots/seattlerb/iter_args_11_1.txt b/test/prism/snapshots/seattlerb/iter_args_11_1.txt index 972a0f1c90..c7f86d414d 100644 --- a/test/prism/snapshots/seattlerb/iter_args_11_1.txt +++ b/test/prism/snapshots/seattlerb/iter_args_11_1.txt @@ -15,7 +15,6 @@ βββ block: @ BlockNode (location: (1,2)-(1,24)) βββ locals: [:a, :b, :c, :d] - βββ locals_body_index: 4 βββ parameters: β @ BlockParametersNode (location: (1,4)-(1,22)) β βββ parameters: diff --git a/test/prism/snapshots/seattlerb/iter_args_11_2.txt b/test/prism/snapshots/seattlerb/iter_args_11_2.txt index 66b82cb507..545f279008 100644 --- a/test/prism/snapshots/seattlerb/iter_args_11_2.txt +++ b/test/prism/snapshots/seattlerb/iter_args_11_2.txt @@ -15,7 +15,6 @@ βββ block: @ BlockNode (location: (1,2)-(1,28)) βββ locals: [:a, :b, :c, :d, :e] - βββ locals_body_index: 5 βββ parameters: β @ BlockParametersNode (location: (1,4)-(1,26)) β βββ parameters: diff --git a/test/prism/snapshots/seattlerb/iter_args_2__19.txt b/test/prism/snapshots/seattlerb/iter_args_2__19.txt index 3d7d251e3b..a905286f47 100644 --- a/test/prism/snapshots/seattlerb/iter_args_2__19.txt +++ b/test/prism/snapshots/seattlerb/iter_args_2__19.txt @@ -15,7 +15,6 @@ βββ block: @ BlockNode (location: (1,2)-(1,14)) βββ locals: [:a, :b] - βββ locals_body_index: 2 βββ parameters: β @ BlockParametersNode (location: (1,4)-(1,12)) β βββ parameters: diff --git a/test/prism/snapshots/seattlerb/iter_args_3.txt b/test/prism/snapshots/seattlerb/iter_args_3.txt index 6cd964d27b..66782f0793 100644 --- a/test/prism/snapshots/seattlerb/iter_args_3.txt +++ b/test/prism/snapshots/seattlerb/iter_args_3.txt @@ -15,7 +15,6 @@ βββ block: @ BlockNode (location: (1,2)-(1,20)) βββ locals: [:a, :b, :c, :d] - βββ locals_body_index: 4 βββ parameters: β @ BlockParametersNode (location: (1,4)-(1,18)) β βββ parameters: diff --git a/test/prism/snapshots/seattlerb/iter_args_4.txt b/test/prism/snapshots/seattlerb/iter_args_4.txt index d2622965d6..c4f2b47a03 100644 --- a/test/prism/snapshots/seattlerb/iter_args_4.txt +++ b/test/prism/snapshots/seattlerb/iter_args_4.txt @@ -15,7 +15,6 @@ βββ block: @ BlockNode (location: (1,2)-(1,16)) βββ locals: [:a, :b, :c] - βββ locals_body_index: 3 βββ parameters: β @ BlockParametersNode (location: (1,4)-(1,14)) β βββ parameters: diff --git a/test/prism/snapshots/seattlerb/iter_args_5.txt b/test/prism/snapshots/seattlerb/iter_args_5.txt index 4f121beccd..44940629b4 100644 --- a/test/prism/snapshots/seattlerb/iter_args_5.txt +++ b/test/prism/snapshots/seattlerb/iter_args_5.txt @@ -15,7 +15,6 @@ βββ block: @ BlockNode (location: (1,2)-(1,13)) βββ locals: [:a, :b] - βββ locals_body_index: 2 βββ parameters: β @ BlockParametersNode (location: (1,4)-(1,11)) β βββ parameters: diff --git a/test/prism/snapshots/seattlerb/iter_args_6.txt b/test/prism/snapshots/seattlerb/iter_args_6.txt index 4e0c8e1150..768a5df47d 100644 --- a/test/prism/snapshots/seattlerb/iter_args_6.txt +++ b/test/prism/snapshots/seattlerb/iter_args_6.txt @@ -15,7 +15,6 @@ βββ block: @ BlockNode (location: (1,2)-(1,18)) βββ locals: [:a, :b, :c] - βββ locals_body_index: 3 βββ parameters: β @ BlockParametersNode (location: (1,4)-(1,16)) β βββ parameters: diff --git a/test/prism/snapshots/seattlerb/iter_args_7_1.txt b/test/prism/snapshots/seattlerb/iter_args_7_1.txt index 5e61efdaae..738c5f71ff 100644 --- a/test/prism/snapshots/seattlerb/iter_args_7_1.txt +++ b/test/prism/snapshots/seattlerb/iter_args_7_1.txt @@ -15,7 +15,6 @@ βββ block: @ BlockNode (location: (1,2)-(1,18)) βββ locals: [:a, :b] - βββ locals_body_index: 2 βββ parameters: β @ BlockParametersNode (location: (1,4)-(1,16)) β βββ parameters: diff --git a/test/prism/snapshots/seattlerb/iter_args_7_2.txt b/test/prism/snapshots/seattlerb/iter_args_7_2.txt index e1fa58d728..da9cf45c0f 100644 --- a/test/prism/snapshots/seattlerb/iter_args_7_2.txt +++ b/test/prism/snapshots/seattlerb/iter_args_7_2.txt @@ -15,7 +15,6 @@ βββ block: @ BlockNode (location: (1,2)-(1,22)) βββ locals: [:a, :b, :c] - βββ locals_body_index: 3 βββ parameters: β @ BlockParametersNode (location: (1,4)-(1,20)) β βββ parameters: diff --git a/test/prism/snapshots/seattlerb/iter_args_8_1.txt b/test/prism/snapshots/seattlerb/iter_args_8_1.txt index 46e1ab5f6b..4811772657 100644 --- a/test/prism/snapshots/seattlerb/iter_args_8_1.txt +++ b/test/prism/snapshots/seattlerb/iter_args_8_1.txt @@ -15,7 +15,6 @@ βββ block: @ BlockNode (location: (1,2)-(1,21)) βββ locals: [:a, :b, :c] - βββ locals_body_index: 3 βββ parameters: β @ BlockParametersNode (location: (1,4)-(1,19)) β βββ parameters: diff --git a/test/prism/snapshots/seattlerb/iter_args_8_2.txt b/test/prism/snapshots/seattlerb/iter_args_8_2.txt index ecce85c3bf..a2019fce1b 100644 --- a/test/prism/snapshots/seattlerb/iter_args_8_2.txt +++ b/test/prism/snapshots/seattlerb/iter_args_8_2.txt @@ -15,7 +15,6 @@ βββ block: @ BlockNode (location: (1,2)-(1,25)) βββ locals: [:a, :b, :c, :d] - βββ locals_body_index: 4 βββ parameters: β @ BlockParametersNode (location: (1,4)-(1,23)) β βββ parameters: diff --git a/test/prism/snapshots/seattlerb/iter_args_9_1.txt b/test/prism/snapshots/seattlerb/iter_args_9_1.txt index cb617efc7c..5655080be4 100644 --- a/test/prism/snapshots/seattlerb/iter_args_9_1.txt +++ b/test/prism/snapshots/seattlerb/iter_args_9_1.txt @@ -15,7 +15,6 @@ βββ block: @ BlockNode (location: (1,2)-(1,17)) βββ locals: [:a, :b] - βββ locals_body_index: 2 βββ parameters: β @ BlockParametersNode (location: (1,4)-(1,15)) β βββ parameters: diff --git a/test/prism/snapshots/seattlerb/iter_args_9_2.txt b/test/prism/snapshots/seattlerb/iter_args_9_2.txt index 1488be20e2..ba21658660 100644 --- a/test/prism/snapshots/seattlerb/iter_args_9_2.txt +++ b/test/prism/snapshots/seattlerb/iter_args_9_2.txt @@ -15,7 +15,6 @@ βββ block: @ BlockNode (location: (1,2)-(1,21)) βββ locals: [:a, :b, :c] - βββ locals_body_index: 3 βββ parameters: β @ BlockParametersNode (location: (1,4)-(1,19)) β βββ parameters: diff --git a/test/prism/snapshots/seattlerb/iter_kwarg.txt b/test/prism/snapshots/seattlerb/iter_kwarg.txt index fc91eaa703..f5968e3340 100644 --- a/test/prism/snapshots/seattlerb/iter_kwarg.txt +++ b/test/prism/snapshots/seattlerb/iter_kwarg.txt @@ -15,7 +15,6 @@ βββ block: @ BlockNode (location: (1,2)-(1,12)) βββ locals: [:b] - βββ locals_body_index: 1 βββ parameters: β @ BlockParametersNode (location: (1,4)-(1,10)) β βββ parameters: diff --git a/test/prism/snapshots/seattlerb/iter_kwarg_kwsplat.txt b/test/prism/snapshots/seattlerb/iter_kwarg_kwsplat.txt index 5fcda7645e..14276baf88 100644 --- a/test/prism/snapshots/seattlerb/iter_kwarg_kwsplat.txt +++ b/test/prism/snapshots/seattlerb/iter_kwarg_kwsplat.txt @@ -15,7 +15,6 @@ βββ block: @ BlockNode (location: (1,2)-(1,17)) βββ locals: [:b, :c] - βββ locals_body_index: 2 βββ parameters: β @ BlockParametersNode (location: (1,4)-(1,15)) β βββ parameters: diff --git a/test/prism/snapshots/seattlerb/lambda_do_vs_brace.txt b/test/prism/snapshots/seattlerb/lambda_do_vs_brace.txt index b0ecdc36e8..afc0d3d56f 100644 --- a/test/prism/snapshots/seattlerb/lambda_do_vs_brace.txt +++ b/test/prism/snapshots/seattlerb/lambda_do_vs_brace.txt @@ -16,7 +16,6 @@ β β βββ arguments: (length: 1) β β βββ @ LambdaNode (location: (1,2)-(1,11)) β β βββ locals: [] - β β βββ locals_body_index: 0 β β βββ operator_loc: (1,2)-(1,4) = "->" β β βββ opening_loc: (1,5)-(1,7) = "do" β β βββ closing_loc: (1,8)-(1,11) = "end" @@ -37,7 +36,6 @@ β β βββ arguments: (length: 1) β β βββ @ LambdaNode (location: (3,2)-(3,7)) β β βββ locals: [] - β β βββ locals_body_index: 0 β β βββ operator_loc: (3,2)-(3,4) = "->" β β βββ opening_loc: (3,5)-(3,6) = "{" β β βββ closing_loc: (3,6)-(3,7) = "}" @@ -58,7 +56,6 @@ β β βββ arguments: (length: 1) β β βββ @ LambdaNode (location: (5,2)-(5,13)) β β βββ locals: [] - β β βββ locals_body_index: 0 β β βββ operator_loc: (5,2)-(5,4) = "->" β β βββ opening_loc: (5,7)-(5,9) = "do" β β βββ closing_loc: (5,10)-(5,13) = "end" @@ -84,7 +81,6 @@ β βββ arguments: (length: 1) β βββ @ LambdaNode (location: (7,2)-(7,9)) β βββ locals: [] - β βββ locals_body_index: 0 β βββ operator_loc: (7,2)-(7,4) = "->" β βββ opening_loc: (7,7)-(7,8) = "{" β βββ closing_loc: (7,8)-(7,9) = "}" diff --git a/test/prism/snapshots/seattlerb/magic_encoding_comment.txt b/test/prism/snapshots/seattlerb/magic_encoding_comment.txt index ce6e432133..9c4ca884d2 100644 --- a/test/prism/snapshots/seattlerb/magic_encoding_comment.txt +++ b/test/prism/snapshots/seattlerb/magic_encoding_comment.txt @@ -36,7 +36,6 @@ β β β βββ unescaped: "perΓ²" β β βββ operator_loc: (2,55)-(2,56) = "=" β βββ locals: [:cosΓ¬] - β βββ locals_body_index: 0 β βββ def_keyword_loc: (2,36)-(2,39) = "def" β βββ operator_loc: (2,44)-(2,45) = "." β βββ lparen_loc: β
diff --git a/test/prism/snapshots/seattlerb/module_comments.txt b/test/prism/snapshots/seattlerb/module_comments.txt index 8e8b2fd9cc..2785187a29 100644 --- a/test/prism/snapshots/seattlerb/module_comments.txt +++ b/test/prism/snapshots/seattlerb/module_comments.txt @@ -19,7 +19,6 @@ β βββ parameters: β
β βββ body: β
β βββ locals: [] - β βββ locals_body_index: 0 β βββ def_keyword_loc: (7,2)-(7,5) = "def" β βββ operator_loc: β
β βββ lparen_loc: β
diff --git a/test/prism/snapshots/seattlerb/parse_def_special_name.txt b/test/prism/snapshots/seattlerb/parse_def_special_name.txt index 1373229932..dfbfe8a391 100644 --- a/test/prism/snapshots/seattlerb/parse_def_special_name.txt +++ b/test/prism/snapshots/seattlerb/parse_def_special_name.txt @@ -10,7 +10,6 @@ βββ parameters: β
βββ body: β
βββ locals: [] - βββ locals_body_index: 0 βββ def_keyword_loc: (1,0)-(1,3) = "def" βββ operator_loc: β
βββ lparen_loc: β
diff --git a/test/prism/snapshots/seattlerb/parse_line_call_no_args.txt b/test/prism/snapshots/seattlerb/parse_line_call_no_args.txt index 1688e88c78..8a0fcd63af 100644 --- a/test/prism/snapshots/seattlerb/parse_line_call_no_args.txt +++ b/test/prism/snapshots/seattlerb/parse_line_call_no_args.txt @@ -15,7 +15,6 @@ βββ block: @ BlockNode (location: (1,2)-(3,3)) βββ locals: [:x, :y] - βββ locals_body_index: 2 βββ parameters: β @ BlockParametersNode (location: (1,5)-(1,11)) β βββ parameters: diff --git a/test/prism/snapshots/seattlerb/parse_line_defn_complex.txt b/test/prism/snapshots/seattlerb/parse_line_defn_complex.txt index cd61a9897e..9a437d367c 100644 --- a/test/prism/snapshots/seattlerb/parse_line_defn_complex.txt +++ b/test/prism/snapshots/seattlerb/parse_line_defn_complex.txt @@ -57,7 +57,6 @@ β βββ name: :y β βββ depth: 0 βββ locals: [:y] - βββ locals_body_index: 1 βββ def_keyword_loc: (1,0)-(1,3) = "def" βββ operator_loc: β
βββ lparen_loc: (1,5)-(1,6) = "(" diff --git a/test/prism/snapshots/seattlerb/parse_line_defn_no_parens.txt b/test/prism/snapshots/seattlerb/parse_line_defn_no_parens.txt index e9d68521e4..74240322ac 100644 --- a/test/prism/snapshots/seattlerb/parse_line_defn_no_parens.txt +++ b/test/prism/snapshots/seattlerb/parse_line_defn_no_parens.txt @@ -10,7 +10,6 @@ β βββ parameters: β
β βββ body: β
β βββ locals: [] - β βββ locals_body_index: 0 β βββ def_keyword_loc: (1,0)-(1,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: β
@@ -24,7 +23,6 @@ βββ parameters: β
βββ body: β
βββ locals: [] - βββ locals_body_index: 0 βββ def_keyword_loc: (5,0)-(5,3) = "def" βββ operator_loc: β
βββ lparen_loc: β
diff --git a/test/prism/snapshots/seattlerb/parse_line_defn_no_parens_args.txt b/test/prism/snapshots/seattlerb/parse_line_defn_no_parens_args.txt index aebf2cf933..8445743293 100644 --- a/test/prism/snapshots/seattlerb/parse_line_defn_no_parens_args.txt +++ b/test/prism/snapshots/seattlerb/parse_line_defn_no_parens_args.txt @@ -21,7 +21,6 @@ β βββ block: β
βββ body: β
βββ locals: [:a] - βββ locals_body_index: 1 βββ def_keyword_loc: (1,0)-(1,3) = "def" βββ operator_loc: β
βββ lparen_loc: β
diff --git a/test/prism/snapshots/seattlerb/parse_line_iter_call_no_parens.txt b/test/prism/snapshots/seattlerb/parse_line_iter_call_no_parens.txt index cd721a3fea..8d9dbf24ab 100644 --- a/test/prism/snapshots/seattlerb/parse_line_iter_call_no_parens.txt +++ b/test/prism/snapshots/seattlerb/parse_line_iter_call_no_parens.txt @@ -28,7 +28,6 @@ βββ block: @ BlockNode (location: (1,4)-(3,3)) βββ locals: [:x, :y] - βββ locals_body_index: 2 βββ parameters: β @ BlockParametersNode (location: (1,7)-(1,13)) β βββ parameters: diff --git a/test/prism/snapshots/seattlerb/parse_line_iter_call_parens.txt b/test/prism/snapshots/seattlerb/parse_line_iter_call_parens.txt index 2fba775aac..663d870137 100644 --- a/test/prism/snapshots/seattlerb/parse_line_iter_call_parens.txt +++ b/test/prism/snapshots/seattlerb/parse_line_iter_call_parens.txt @@ -28,7 +28,6 @@ βββ block: @ BlockNode (location: (1,5)-(3,3)) βββ locals: [:x, :y] - βββ locals_body_index: 2 βββ parameters: β @ BlockParametersNode (location: (1,8)-(1,14)) β βββ parameters: diff --git a/test/prism/snapshots/seattlerb/parse_line_return.txt b/test/prism/snapshots/seattlerb/parse_line_return.txt index fc83061d01..9c4a5a1768 100644 --- a/test/prism/snapshots/seattlerb/parse_line_return.txt +++ b/test/prism/snapshots/seattlerb/parse_line_return.txt @@ -30,7 +30,6 @@ β βββ consequent: β
β βββ end_keyword_loc: (4,8)-(4,11) = "end" βββ locals: [] - βββ locals_body_index: 0 βββ def_keyword_loc: (1,6)-(1,9) = "def" βββ operator_loc: β
βββ lparen_loc: β
diff --git a/test/prism/snapshots/seattlerb/pipe_semicolon.txt b/test/prism/snapshots/seattlerb/pipe_semicolon.txt index cf26a2951e..71fb4fbed5 100644 --- a/test/prism/snapshots/seattlerb/pipe_semicolon.txt +++ b/test/prism/snapshots/seattlerb/pipe_semicolon.txt @@ -25,7 +25,6 @@ βββ block: @ BlockNode (location: (1,4)-(1,18)) βββ locals: [:c] - βββ locals_body_index: 1 βββ parameters: β @ BlockParametersNode (location: (1,7)-(1,14)) β βββ parameters: β
diff --git a/test/prism/snapshots/seattlerb/pipe_space.txt b/test/prism/snapshots/seattlerb/pipe_space.txt index e1a9ebe9df..302d225337 100644 --- a/test/prism/snapshots/seattlerb/pipe_space.txt +++ b/test/prism/snapshots/seattlerb/pipe_space.txt @@ -25,7 +25,6 @@ βββ block: @ BlockNode (location: (1,4)-(1,14)) βββ locals: [] - βββ locals_body_index: 0 βββ parameters: β @ BlockParametersNode (location: (1,7)-(1,10)) β βββ parameters: β
diff --git a/test/prism/snapshots/seattlerb/required_kwarg_no_value.txt b/test/prism/snapshots/seattlerb/required_kwarg_no_value.txt index 922817c191..54595ac5cb 100644 --- a/test/prism/snapshots/seattlerb/required_kwarg_no_value.txt +++ b/test/prism/snapshots/seattlerb/required_kwarg_no_value.txt @@ -26,7 +26,6 @@ β βββ block: β
βββ body: β
βββ locals: [:a, :b] - βββ locals_body_index: 2 βββ def_keyword_loc: (1,0)-(1,3) = "def" βββ operator_loc: β
βββ lparen_loc: β
diff --git a/test/prism/snapshots/seattlerb/rescue_do_end_ensure_result.txt b/test/prism/snapshots/seattlerb/rescue_do_end_ensure_result.txt index 761565352b..76e8ac396a 100644 --- a/test/prism/snapshots/seattlerb/rescue_do_end_ensure_result.txt +++ b/test/prism/snapshots/seattlerb/rescue_do_end_ensure_result.txt @@ -18,7 +18,6 @@ β βββ block: β @ BlockNode (location: (1,5)-(5,3)) β βββ locals: [] - β βββ locals_body_index: 0 β βββ parameters: β
β βββ body: β β @ BeginNode (location: (2,2)-(5,3)) diff --git a/test/prism/snapshots/seattlerb/rescue_do_end_no_raise.txt b/test/prism/snapshots/seattlerb/rescue_do_end_no_raise.txt index 4d6d8f6f18..3f4ea6a780 100644 --- a/test/prism/snapshots/seattlerb/rescue_do_end_no_raise.txt +++ b/test/prism/snapshots/seattlerb/rescue_do_end_no_raise.txt @@ -15,7 +15,6 @@ βββ block: @ BlockNode (location: (1,4)-(9,3)) βββ locals: [] - βββ locals_body_index: 0 βββ parameters: β
βββ body: β @ BeginNode (location: (2,2)-(9,3)) diff --git a/test/prism/snapshots/seattlerb/rescue_do_end_raised.txt b/test/prism/snapshots/seattlerb/rescue_do_end_raised.txt index b702acef56..b3183af989 100644 --- a/test/prism/snapshots/seattlerb/rescue_do_end_raised.txt +++ b/test/prism/snapshots/seattlerb/rescue_do_end_raised.txt @@ -15,7 +15,6 @@ βββ block: @ BlockNode (location: (1,4)-(5,3)) βββ locals: [] - βββ locals_body_index: 0 βββ parameters: β
βββ body: β @ BeginNode (location: (2,2)-(5,3)) diff --git a/test/prism/snapshots/seattlerb/rescue_do_end_rescued.txt b/test/prism/snapshots/seattlerb/rescue_do_end_rescued.txt index c52a5e6a49..f5b7a91a7b 100644 --- a/test/prism/snapshots/seattlerb/rescue_do_end_rescued.txt +++ b/test/prism/snapshots/seattlerb/rescue_do_end_rescued.txt @@ -15,7 +15,6 @@ βββ block: @ BlockNode (location: (1,4)-(9,3)) βββ locals: [] - βββ locals_body_index: 0 βββ parameters: β
βββ body: β @ BeginNode (location: (2,2)-(9,3)) diff --git a/test/prism/snapshots/seattlerb/rescue_in_block.txt b/test/prism/snapshots/seattlerb/rescue_in_block.txt index b13fed1333..f3d42aa548 100644 --- a/test/prism/snapshots/seattlerb/rescue_in_block.txt +++ b/test/prism/snapshots/seattlerb/rescue_in_block.txt @@ -15,7 +15,6 @@ βββ block: @ BlockNode (location: (1,5)-(4,3)) βββ locals: [] - βββ locals_body_index: 0 βββ parameters: β
βββ body: β @ BeginNode (location: (2,0)-(4,3)) diff --git a/test/prism/snapshots/seattlerb/stabby_arg_no_paren.txt b/test/prism/snapshots/seattlerb/stabby_arg_no_paren.txt index dddd22eb23..e665565d38 100644 --- a/test/prism/snapshots/seattlerb/stabby_arg_no_paren.txt +++ b/test/prism/snapshots/seattlerb/stabby_arg_no_paren.txt @@ -5,7 +5,6 @@ βββ body: (length: 1) βββ @ LambdaNode (location: (1,0)-(1,5)) βββ locals: [:a] - βββ locals_body_index: 1 βββ operator_loc: (1,0)-(1,2) = "->" βββ opening_loc: (1,3)-(1,4) = "{" βββ closing_loc: (1,4)-(1,5) = "}" diff --git a/test/prism/snapshots/seattlerb/stabby_arg_opt_splat_arg_block_omfg.txt b/test/prism/snapshots/seattlerb/stabby_arg_opt_splat_arg_block_omfg.txt index d0d5885432..c3d70b6a76 100644 --- a/test/prism/snapshots/seattlerb/stabby_arg_opt_splat_arg_block_omfg.txt +++ b/test/prism/snapshots/seattlerb/stabby_arg_opt_splat_arg_block_omfg.txt @@ -5,7 +5,6 @@ βββ body: (length: 1) βββ @ LambdaNode (location: (1,0)-(1,23)) βββ locals: [:b, :c, :d, :e, :f] - βββ locals_body_index: 5 βββ operator_loc: (1,0)-(1,2) = "->" βββ opening_loc: (1,21)-(1,22) = "{" βββ closing_loc: (1,22)-(1,23) = "}" diff --git a/test/prism/snapshots/seattlerb/stabby_block_iter_call.txt b/test/prism/snapshots/seattlerb/stabby_block_iter_call.txt index 7091596e0b..e51c7d97ed 100644 --- a/test/prism/snapshots/seattlerb/stabby_block_iter_call.txt +++ b/test/prism/snapshots/seattlerb/stabby_block_iter_call.txt @@ -16,7 +16,6 @@ β βββ arguments: (length: 1) β βββ @ LambdaNode (location: (1,2)-(4,3)) β βββ locals: [] - β βββ locals_body_index: 0 β βββ operator_loc: (1,2)-(1,4) = "->" β βββ opening_loc: (1,8)-(1,10) = "do" β βββ closing_loc: (4,0)-(4,3) = "end" @@ -51,7 +50,6 @@ β βββ block: β @ BlockNode (location: (2,4)-(3,3)) β βββ locals: [] - β βββ locals_body_index: 0 β βββ parameters: β
β βββ body: β
β βββ opening_loc: (2,4)-(2,6) = "do" diff --git a/test/prism/snapshots/seattlerb/stabby_block_iter_call_no_target_with_arg.txt b/test/prism/snapshots/seattlerb/stabby_block_iter_call_no_target_with_arg.txt index 6942fa9fd6..9489b13a95 100644 --- a/test/prism/snapshots/seattlerb/stabby_block_iter_call_no_target_with_arg.txt +++ b/test/prism/snapshots/seattlerb/stabby_block_iter_call_no_target_with_arg.txt @@ -16,7 +16,6 @@ β βββ arguments: (length: 1) β βββ @ LambdaNode (location: (1,2)-(4,3)) β βββ locals: [] - β βββ locals_body_index: 0 β βββ operator_loc: (1,2)-(1,4) = "->" β βββ opening_loc: (1,8)-(1,10) = "do" β βββ closing_loc: (4,0)-(4,3) = "end" @@ -46,7 +45,6 @@ β βββ block: β @ BlockNode (location: (2,5)-(3,3)) β βββ locals: [] - β βββ locals_body_index: 0 β βββ parameters: β
β βββ body: β
β βββ opening_loc: (2,5)-(2,7) = "do" diff --git a/test/prism/snapshots/seattlerb/stabby_block_kw.txt b/test/prism/snapshots/seattlerb/stabby_block_kw.txt index 342145bb63..fd6bab809c 100644 --- a/test/prism/snapshots/seattlerb/stabby_block_kw.txt +++ b/test/prism/snapshots/seattlerb/stabby_block_kw.txt @@ -5,7 +5,6 @@ βββ body: (length: 1) βββ @ LambdaNode (location: (1,0)-(1,13)) βββ locals: [:k] - βββ locals_body_index: 1 βββ operator_loc: (1,0)-(1,2) = "->" βββ opening_loc: (1,10)-(1,11) = "{" βββ closing_loc: (1,12)-(1,13) = "}" diff --git a/test/prism/snapshots/seattlerb/stabby_block_kw__required.txt b/test/prism/snapshots/seattlerb/stabby_block_kw__required.txt index ed34442272..b5040d91db 100644 --- a/test/prism/snapshots/seattlerb/stabby_block_kw__required.txt +++ b/test/prism/snapshots/seattlerb/stabby_block_kw__required.txt @@ -5,7 +5,6 @@ βββ body: (length: 1) βββ @ LambdaNode (location: (1,0)-(1,11)) βββ locals: [:k] - βββ locals_body_index: 1 βββ operator_loc: (1,0)-(1,2) = "->" βββ opening_loc: (1,8)-(1,9) = "{" βββ closing_loc: (1,10)-(1,11) = "}" diff --git a/test/prism/snapshots/seattlerb/stabby_proc_scope.txt b/test/prism/snapshots/seattlerb/stabby_proc_scope.txt index 38d9a455cb..898f823f24 100644 --- a/test/prism/snapshots/seattlerb/stabby_proc_scope.txt +++ b/test/prism/snapshots/seattlerb/stabby_proc_scope.txt @@ -5,7 +5,6 @@ βββ body: (length: 1) βββ @ LambdaNode (location: (1,0)-(1,11)) βββ locals: [:a, :b] - βββ locals_body_index: 2 βββ operator_loc: (1,0)-(1,2) = "->" βββ opening_loc: (1,9)-(1,10) = "{" βββ closing_loc: (1,10)-(1,11) = "}" diff --git a/test/prism/snapshots/super.txt b/test/prism/snapshots/super.txt index a3e9069b4a..068e407e9d 100644 --- a/test/prism/snapshots/super.txt +++ b/test/prism/snapshots/super.txt @@ -71,7 +71,6 @@ β βββ block: β @ BlockNode (location: (13,6)-(13,8)) β βββ locals: [] - β βββ locals_body_index: 0 β βββ parameters: β
β βββ body: β
β βββ opening_loc: (13,6)-(13,7) = "{" @@ -93,7 +92,6 @@ β βββ block: β @ BlockNode (location: (15,15)-(15,17)) β βββ locals: [] - β βββ locals_body_index: 0 β βββ parameters: β
β βββ body: β
β βββ opening_loc: (15,15)-(15,16) = "{" diff --git a/test/prism/snapshots/unparser/corpus/literal/block.txt b/test/prism/snapshots/unparser/corpus/literal/block.txt index 17cde39e64..1cf3823e48 100644 --- a/test/prism/snapshots/unparser/corpus/literal/block.txt +++ b/test/prism/snapshots/unparser/corpus/literal/block.txt @@ -15,7 +15,6 @@ β βββ block: β @ BlockNode (location: (1,4)-(2,1)) β βββ locals: [] - β βββ locals_body_index: 0 β βββ parameters: β
β βββ body: β
β βββ opening_loc: (1,4)-(1,5) = "{" @@ -32,7 +31,6 @@ β βββ block: β @ BlockNode (location: (3,4)-(4,1)) β βββ locals: [:a] - β βββ locals_body_index: 1 β βββ parameters: β β @ BlockParametersNode (location: (3,6)-(3,9)) β β βββ parameters: @@ -65,7 +63,6 @@ β βββ block: β @ BlockNode (location: (5,4)-(6,1)) β βββ locals: [:a] - β βββ locals_body_index: 1 β βββ parameters: β β @ BlockParametersNode (location: (5,6)-(5,10)) β β βββ parameters: @@ -99,7 +96,6 @@ β βββ block: β @ BlockNode (location: (7,4)-(8,1)) β βββ locals: [:a, :x] - β βββ locals_body_index: 2 β βββ parameters: β β @ BlockParametersNode (location: (7,6)-(7,13)) β β βββ parameters: @@ -136,7 +132,6 @@ β βββ block: β @ BlockNode (location: (9,4)-(10,1)) β βββ locals: [:a, :b] - β βββ locals_body_index: 2 β βββ parameters: β β @ BlockParametersNode (location: (9,6)-(9,12)) β β βββ parameters: @@ -177,7 +172,6 @@ β βββ block: β @ BlockNode (location: (11,7)-(13,1)) β βββ locals: [] - β βββ locals_body_index: 0 β βββ parameters: β
β βββ body: β β @ StatementsNode (location: (12,2)-(12,5)) @@ -197,7 +191,6 @@ β βββ block: β @ BlockNode (location: (14,4)-(16,1)) β βββ locals: [:a, :b] - β βββ locals_body_index: 2 β βββ parameters: β β @ BlockParametersNode (location: (14,6)-(14,13)) β β βββ parameters: @@ -238,7 +231,6 @@ β βββ block: β @ BlockNode (location: (17,4)-(19,1)) β βββ locals: [:a] - β βββ locals_body_index: 1 β βββ parameters: β β @ BlockParametersNode (location: (17,6)-(17,12)) β β βββ parameters: @@ -279,7 +271,6 @@ β βββ block: β @ BlockNode (location: (20,4)-(22,1)) β βββ locals: [] - β βββ locals_body_index: 0 β βββ parameters: β
β βββ body: β β @ StatementsNode (location: (21,2)-(21,5)) @@ -318,7 +309,6 @@ β βββ block: β @ BlockNode (location: (23,8)-(25,1)) β βββ locals: [:a, :b, :c] - β βββ locals_body_index: 3 β βββ parameters: β β @ BlockParametersNode (location: (23,10)-(23,21)) β β βββ parameters: @@ -385,7 +375,6 @@ β βββ block: β @ BlockNode (location: (26,8)-(27,1)) β βββ locals: [:a, :b] - β βββ locals_body_index: 2 β βββ parameters: β β @ BlockParametersNode (location: (26,10)-(26,17)) β β βββ parameters: @@ -433,7 +422,6 @@ β βββ block: β @ BlockNode (location: (28,8)-(29,1)) β βββ locals: [:a, :b] - β βββ locals_body_index: 2 β βββ parameters: β β @ BlockParametersNode (location: (28,10)-(28,16)) β β βββ parameters: @@ -479,7 +467,6 @@ β βββ block: β @ BlockNode (location: (30,8)-(31,1)) β βββ locals: [:a, :b] - β βββ locals_body_index: 2 β βββ parameters: β β @ BlockParametersNode (location: (30,10)-(30,18)) β β βββ parameters: β
@@ -517,7 +504,6 @@ β βββ block: β @ BlockNode (location: (32,8)-(34,1)) β βββ locals: [] - β βββ locals_body_index: 0 β βββ parameters: β β @ BlockParametersNode (location: (32,10)-(32,13)) β β βββ parameters: @@ -574,7 +560,6 @@ β βββ block: β @ BlockNode (location: (35,8)-(37,1)) β βββ locals: [] - β βββ locals_body_index: 0 β βββ parameters: β β @ BlockParametersNode (location: (35,10)-(35,15)) β β βββ parameters: @@ -635,7 +620,6 @@ β βββ block: β @ BlockNode (location: (38,8)-(40,1)) β βββ locals: [] - β βββ locals_body_index: 0 β βββ parameters: β β @ BlockParametersNode (location: (38,10)-(38,17)) β β βββ parameters: @@ -702,7 +686,6 @@ β βββ block: β @ BlockNode (location: (41,8)-(43,1)) β βββ locals: [:a] - β βββ locals_body_index: 1 β βββ parameters: β β @ BlockParametersNode (location: (41,10)-(41,20)) β β βββ parameters: @@ -772,7 +755,6 @@ β βββ block: β @ BlockNode (location: (44,8)-(46,1)) β βββ locals: [:a, :b] - β βββ locals_body_index: 2 β βββ parameters: β β @ BlockParametersNode (location: (44,10)-(44,18)) β β βββ parameters: @@ -839,7 +821,6 @@ β β βββ block: β β @ BlockNode (location: (47,8)-(48,1)) β β βββ locals: [] - β β βββ locals_body_index: 0 β β βββ parameters: β
β β βββ body: β
β β βββ opening_loc: (47,8)-(47,9) = "{" @@ -863,7 +844,6 @@ β βββ block: β @ BlockNode (location: (49,2)-(51,3)) β βββ locals: [:e] - β βββ locals_body_index: 0 β βββ parameters: β
β βββ body: β β @ BeginNode (location: (50,0)-(51,3)) @@ -899,7 +879,6 @@ β βββ block: β @ BlockNode (location: (52,2)-(56,3)) β βββ locals: [:bar] - β βββ locals_body_index: 0 β βββ parameters: β
β βββ body: β β @ BeginNode (location: (53,2)-(56,3)) @@ -952,7 +931,6 @@ β βββ block: β @ BlockNode (location: (57,2)-(61,3)) β βββ locals: [] - β βββ locals_body_index: 0 β βββ parameters: β
β βββ body: β β @ BeginNode (location: (58,2)-(61,3)) @@ -1022,7 +1000,6 @@ β βββ block: β @ BlockNode (location: (62,2)-(66,3)) β βββ locals: [:exception] - β βββ locals_body_index: 0 β βββ parameters: β
β βββ body: β β @ BeginNode (location: (63,2)-(66,3)) @@ -1095,7 +1072,6 @@ β βββ block: β @ BlockNode (location: (67,2)-(71,3)) β βββ locals: [] - β βββ locals_body_index: 0 β βββ parameters: β
β βββ body: β β @ BeginNode (location: (68,2)-(71,3)) @@ -1163,7 +1139,6 @@ β βββ block: β @ BlockNode (location: (72,2)-(75,3)) β βββ locals: [] - β βββ locals_body_index: 0 β βββ parameters: β
β βββ body: β β @ BeginNode (location: (73,2)-(75,3)) @@ -1208,7 +1183,6 @@ β βββ block: β @ BlockNode (location: (76,2)-(81,3)) β βββ locals: [] - β βββ locals_body_index: 0 β βββ parameters: β
β βββ body: β β @ BeginNode (location: (77,2)-(81,3)) @@ -1267,7 +1241,6 @@ β βββ block: β @ BlockNode (location: (82,2)-(86,3)) β βββ locals: [:exception] - β βββ locals_body_index: 0 β βββ parameters: β
β βββ body: β β @ BeginNode (location: (83,2)-(86,3)) @@ -1338,7 +1311,6 @@ β βββ block: β @ BlockNode (location: (87,2)-(89,3)) β βββ locals: [] - β βββ locals_body_index: 0 β βββ parameters: β
β βββ body: β β @ BeginNode (location: (88,0)-(89,3)) @@ -1366,7 +1338,6 @@ β βββ block: β @ BlockNode (location: (90,2)-(93,3)) β βββ locals: [] - β βββ locals_body_index: 0 β βββ parameters: β
β βββ body: β β @ BeginNode (location: (91,0)-(93,3)) @@ -1401,7 +1372,6 @@ βββ block: @ BlockNode (location: (94,4)-(96,1)) βββ locals: [:_1, :_2] - βββ locals_body_index: 2 βββ parameters: β @ NumberedParametersNode (location: (94,4)-(96,1)) β βββ maximum: 2 diff --git a/test/prism/snapshots/unparser/corpus/literal/class.txt b/test/prism/snapshots/unparser/corpus/literal/class.txt index bb967ca69a..34eb03edb3 100644 --- a/test/prism/snapshots/unparser/corpus/literal/class.txt +++ b/test/prism/snapshots/unparser/corpus/literal/class.txt @@ -208,7 +208,6 @@ β β β βββ closing_loc: β
β β β βββ unescaped: "bar" β β βββ locals: [] - β β βββ locals_body_index: 0 β β βββ def_keyword_loc: (29,2)-(29,5) = "def" β β βββ operator_loc: β
β β βββ lparen_loc: β
diff --git a/test/prism/snapshots/unparser/corpus/literal/def.txt b/test/prism/snapshots/unparser/corpus/literal/def.txt index b6d88a4e0f..f1ee5dd046 100644 --- a/test/prism/snapshots/unparser/corpus/literal/def.txt +++ b/test/prism/snapshots/unparser/corpus/literal/def.txt @@ -80,7 +80,6 @@ β β β βββ end_keyword_loc: (9,0)-(9,3) = "end" β β βββ end_keyword_loc: (9,0)-(9,3) = "end" β βββ locals: [] - β βββ locals_body_index: 0 β βββ def_keyword_loc: (1,0)-(1,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: β
@@ -178,7 +177,6 @@ β β β βββ end_keyword_loc: (19,0)-(19,3) = "end" β β βββ end_keyword_loc: (19,0)-(19,3) = "end" β βββ locals: [] - β βββ locals_body_index: 0 β βββ def_keyword_loc: (11,0)-(11,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: β
@@ -208,7 +206,6 @@ β β βββ block: β
β βββ body: β
β βββ locals: [:bar, :baz] - β βββ locals_body_index: 2 β βββ def_keyword_loc: (21,0)-(21,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: (21,7)-(21,8) = "(" @@ -222,7 +219,6 @@ β βββ parameters: β
β βββ body: β
β βββ locals: [] - β βββ locals_body_index: 0 β βββ def_keyword_loc: (24,0)-(24,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: β
@@ -248,7 +244,6 @@ β β βββ closing_loc: β
β β βββ block: β
β βββ locals: [] - β βββ locals_body_index: 0 β βββ def_keyword_loc: (27,0)-(27,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: β
@@ -316,7 +311,6 @@ β β β βββ end_keyword_loc: (37,0)-(37,3) = "end" β β βββ end_keyword_loc: (37,0)-(37,3) = "end" β βββ locals: [] - β βββ locals_body_index: 0 β βββ def_keyword_loc: (31,0)-(31,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: β
@@ -365,7 +359,6 @@ β β β βββ end_keyword_loc: (43,0)-(43,3) = "end" β β βββ end_keyword_loc: (43,0)-(43,3) = "end" β βββ locals: [] - β βββ locals_body_index: 0 β βββ def_keyword_loc: (39,0)-(39,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: β
@@ -417,7 +410,6 @@ β β βββ ensure_clause: β
β β βββ end_keyword_loc: (49,0)-(49,3) = "end" β βββ locals: [] - β βββ locals_body_index: 0 β βββ def_keyword_loc: (45,0)-(45,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: β
@@ -447,7 +439,6 @@ β β βββ name: :bar β β βββ depth: 0 β βββ locals: [:bar] - β βββ locals_body_index: 1 β βββ def_keyword_loc: (51,0)-(51,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: (51,7)-(51,8) = "(" @@ -480,7 +471,6 @@ β β βββ name: :bar β β βββ depth: 0 β βββ locals: [:bar, :baz] - β βββ locals_body_index: 2 β βββ def_keyword_loc: (55,0)-(55,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: (55,7)-(55,8) = "(" @@ -517,7 +507,6 @@ β β βββ name: :bar β β βββ depth: 0 β βββ locals: [:bar] - β βββ locals_body_index: 1 β βββ def_keyword_loc: (59,0)-(59,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: (59,7)-(59,8) = "(" @@ -562,7 +551,6 @@ β β βββ block: β
β βββ body: β
β βββ locals: [:bar] - β βββ locals_body_index: 1 β βββ def_keyword_loc: (63,0)-(63,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: (63,7)-(63,8) = "(" @@ -596,7 +584,6 @@ β β βββ name: :bar β β βββ depth: 0 β βββ locals: [:bar] - β βββ locals_body_index: 1 β βββ def_keyword_loc: (66,0)-(66,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: (66,7)-(66,8) = "(" @@ -633,7 +620,6 @@ β β βββ name: :bar β β βββ depth: 0 β βββ locals: [:bar, :baz] - β βββ locals_body_index: 2 β βββ def_keyword_loc: (70,0)-(70,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: (70,7)-(70,8) = "(" @@ -662,7 +648,6 @@ β β βββ block: β
β βββ body: β
β βββ locals: [:bar] - β βββ locals_body_index: 1 β βββ def_keyword_loc: (74,0)-(74,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: (74,7)-(74,8) = "(" @@ -699,7 +684,6 @@ β β βββ block: β
β βββ body: β
β βββ locals: [:bar] - β βββ locals_body_index: 1 β βββ def_keyword_loc: (77,0)-(77,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: (77,7)-(77,8) = "(" @@ -736,7 +720,6 @@ β β βββ block: β
β βββ body: β
β βββ locals: [:bar] - β βββ locals_body_index: 1 β βββ def_keyword_loc: (80,0)-(80,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: (80,7)-(80,8) = "(" @@ -775,7 +758,6 @@ β β βββ closing_loc: β
β β βββ block: β
β βββ locals: [] - β βββ locals_body_index: 0 β βββ def_keyword_loc: (83,0)-(83,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: (83,7)-(83,8) = "(" @@ -807,7 +789,6 @@ β β βββ name: :bar β β βββ depth: 0 β βββ locals: [:bar] - β βββ locals_body_index: 1 β βββ def_keyword_loc: (87,0)-(87,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: (87,7)-(87,8) = "(" @@ -842,7 +823,6 @@ β β βββ name: :bar β β βββ depth: 0 β βββ locals: [:bar, :baz] - β βββ locals_body_index: 2 β βββ def_keyword_loc: (91,0)-(91,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: (91,7)-(91,8) = "(" @@ -888,7 +868,6 @@ β β βββ closing_loc: β
β β βββ block: β
β βββ locals: [:baz, :bor] - β βββ locals_body_index: 2 β βββ def_keyword_loc: (95,0)-(95,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: (95,7)-(95,8) = "(" @@ -939,7 +918,6 @@ β β βββ closing_loc: β
β β βββ block: β
β βββ locals: [:baz, :bor, :block] - β βββ locals_body_index: 3 β βββ def_keyword_loc: (99,0)-(99,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: (99,7)-(99,8) = "(" @@ -981,7 +959,6 @@ β β βββ name: :bar β β βββ depth: 0 β βββ locals: [:bar, :baz, :bor] - β βββ locals_body_index: 3 β βββ def_keyword_loc: (103,0)-(103,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: (103,7)-(103,8) = "(" @@ -1020,7 +997,6 @@ β β βββ closing_loc: β
β β βββ block: β
β βββ locals: [:block] - β βββ locals_body_index: 1 β βββ def_keyword_loc: (107,0)-(107,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: (107,7)-(107,8) = "(" @@ -1055,7 +1031,6 @@ β β βββ name: :bar β β βββ depth: 0 β βββ locals: [:bar, :block] - β βββ locals_body_index: 2 β βββ def_keyword_loc: (111,0)-(111,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: (111,7)-(111,8) = "(" @@ -1091,7 +1066,6 @@ β β βββ closing_loc: β
β β βββ block: β
β βββ locals: [] - β βββ locals_body_index: 0 β βββ def_keyword_loc: (115,0)-(115,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: β
@@ -1128,7 +1102,6 @@ β β βββ block: β
β βββ body: β
β βββ locals: [:a] - β βββ locals_body_index: 1 β βββ def_keyword_loc: (120,0)-(120,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: (120,5)-(120,6) = "(" @@ -1165,7 +1138,6 @@ β β βββ block: β
β βββ body: β
β βββ locals: [:bar, :baz] - β βββ locals_body_index: 2 β βββ def_keyword_loc: (123,0)-(123,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: (123,7)-(123,8) = "(" @@ -1201,7 +1173,6 @@ β β β βββ unescaped: "\n" β β βββ closing_loc: (129,0)-(130,0) = " HEREDOC\n" β βββ locals: [] - β βββ locals_body_index: 0 β βββ def_keyword_loc: (126,0)-(126,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: β
@@ -1223,7 +1194,6 @@ β βββ closing_loc: (133,4)-(133,5) = ")" β βββ unescaped: "" βββ locals: [] - βββ locals_body_index: 0 βββ def_keyword_loc: (132,0)-(132,3) = "def" βββ operator_loc: β
βββ lparen_loc: β
diff --git a/test/prism/snapshots/unparser/corpus/literal/defs.txt b/test/prism/snapshots/unparser/corpus/literal/defs.txt index 97bf48af32..c3c9acbbca 100644 --- a/test/prism/snapshots/unparser/corpus/literal/defs.txt +++ b/test/prism/snapshots/unparser/corpus/literal/defs.txt @@ -11,7 +11,6 @@ β βββ parameters: β
β βββ body: β
β βββ locals: [] - β βββ locals_body_index: 0 β βββ def_keyword_loc: (1,0)-(1,3) = "def" β βββ operator_loc: (1,8)-(1,9) = "." β βββ lparen_loc: β
@@ -38,7 +37,6 @@ β β βββ closing_loc: β
β β βββ block: β
β βββ locals: [] - β βββ locals_body_index: 0 β βββ def_keyword_loc: (4,0)-(4,3) = "def" β βββ operator_loc: (4,8)-(4,9) = "." β βββ lparen_loc: β
@@ -75,7 +73,6 @@ β β βββ closing_loc: β
β β βββ block: β
β βββ locals: [] - β βββ locals_body_index: 0 β βββ def_keyword_loc: (8,0)-(8,3) = "def" β βββ operator_loc: (8,8)-(8,9) = "." β βββ lparen_loc: β
@@ -103,7 +100,6 @@ β β βββ closing_loc: β
β β βββ block: β
β βββ locals: [] - β βββ locals_body_index: 0 β βββ def_keyword_loc: (13,0)-(13,3) = "def" β βββ operator_loc: (13,7)-(13,8) = "." β βββ lparen_loc: β
@@ -128,7 +124,6 @@ β β β βββ block: β β β @ BlockNode (location: (17,9)-(18,1)) β β β βββ locals: [:bar] - β β β βββ locals_body_index: 1 β β β βββ parameters: β β β β @ BlockParametersNode (location: (17,11)-(17,16)) β β β β βββ parameters: @@ -166,7 +161,6 @@ β β βββ closing_loc: β
β β βββ block: β
β βββ locals: [] - β βββ locals_body_index: 0 β βββ def_keyword_loc: (17,0)-(17,3) = "def" β βββ operator_loc: (18,2)-(18,3) = "." β βββ lparen_loc: β
@@ -211,7 +205,6 @@ β β βββ closing_loc: β
β β βββ block: β
β βββ locals: [] - β βββ locals_body_index: 0 β βββ def_keyword_loc: (22,0)-(22,3) = "def" β βββ operator_loc: (22,12)-(22,13) = "." β βββ lparen_loc: β
@@ -259,7 +252,6 @@ β β βββ closing_loc: β
β β βββ block: β
β βββ locals: [] - β βββ locals_body_index: 0 β βββ def_keyword_loc: (26,0)-(26,3) = "def" β βββ operator_loc: (26,18)-(26,19) = "." β βββ lparen_loc: β
@@ -297,7 +289,6 @@ β β βββ closing_loc: β
β β βββ block: β
β βββ locals: [] - β βββ locals_body_index: 0 β βββ def_keyword_loc: (30,0)-(30,3) = "def" β βββ operator_loc: (30,14)-(30,15) = "." β βββ lparen_loc: β
@@ -325,7 +316,6 @@ β β βββ closing_loc: β
β β βββ block: β
β βββ locals: [] - β βββ locals_body_index: 0 β βββ def_keyword_loc: (34,0)-(34,3) = "def" β βββ operator_loc: (34,7)-(34,8) = "." β βββ lparen_loc: β
@@ -361,7 +351,6 @@ β βββ closing_loc: β
β βββ block: β
βββ locals: [] - βββ locals_body_index: 0 βββ def_keyword_loc: (38,0)-(38,3) = "def" βββ operator_loc: (38,7)-(38,8) = "." βββ lparen_loc: β
diff --git a/test/prism/snapshots/unparser/corpus/literal/dstr.txt b/test/prism/snapshots/unparser/corpus/literal/dstr.txt index a960746a3e..cc3bfa4b31 100644 --- a/test/prism/snapshots/unparser/corpus/literal/dstr.txt +++ b/test/prism/snapshots/unparser/corpus/literal/dstr.txt @@ -318,7 +318,6 @@ βββ block: @ BlockNode (location: (34,16)-(37,1)) βββ locals: [:x] - βββ locals_body_index: 1 βββ parameters: β @ BlockParametersNode (location: (34,18)-(34,21)) β βββ parameters: diff --git a/test/prism/snapshots/unparser/corpus/literal/if.txt b/test/prism/snapshots/unparser/corpus/literal/if.txt index e4f60f7d28..fbbda9b930 100644 --- a/test/prism/snapshots/unparser/corpus/literal/if.txt +++ b/test/prism/snapshots/unparser/corpus/literal/if.txt @@ -232,7 +232,6 @@ β βββ block: β @ BlockNode (location: (31,7)-(33,1)) β βββ locals: [:pair] - β βββ locals_body_index: 1 β βββ parameters: β β @ BlockParametersNode (location: (31,9)-(31,15)) β β βββ parameters: diff --git a/test/prism/snapshots/unparser/corpus/literal/lambda.txt b/test/prism/snapshots/unparser/corpus/literal/lambda.txt index 3362989554..3594787bca 100644 --- a/test/prism/snapshots/unparser/corpus/literal/lambda.txt +++ b/test/prism/snapshots/unparser/corpus/literal/lambda.txt @@ -15,7 +15,6 @@ β βββ block: β @ BlockNode (location: (1,7)-(2,1)) β βββ locals: [] - β βββ locals_body_index: 0 β βββ parameters: β
β βββ body: β
β βββ opening_loc: (1,7)-(1,8) = "{" @@ -32,7 +31,6 @@ β βββ block: β @ BlockNode (location: (3,7)-(5,1)) β βββ locals: [:a, :b] - β βββ locals_body_index: 2 β βββ parameters: β β @ BlockParametersNode (location: (3,9)-(3,15)) β β βββ parameters: @@ -63,7 +61,6 @@ β βββ closing_loc: (5,0)-(5,1) = "}" βββ @ LambdaNode (location: (6,0)-(7,1)) β βββ locals: [] - β βββ locals_body_index: 0 β βββ operator_loc: (6,0)-(6,2) = "->" β βββ opening_loc: (6,5)-(6,6) = "{" β βββ closing_loc: (7,0)-(7,1) = "}" @@ -76,7 +73,6 @@ β βββ body: β
βββ @ LambdaNode (location: (8,0)-(9,1)) β βββ locals: [:a] - β βββ locals_body_index: 1 β βββ operator_loc: (8,0)-(8,2) = "->" β βββ opening_loc: (8,6)-(8,7) = "{" β βββ closing_loc: (9,0)-(9,1) = "}" @@ -100,7 +96,6 @@ β βββ body: β
βββ @ LambdaNode (location: (10,0)-(11,1)) β βββ locals: [:a, :b] - β βββ locals_body_index: 2 β βββ operator_loc: (10,0)-(10,2) = "->" β βββ opening_loc: (10,9)-(10,10) = "{" β βββ closing_loc: (11,0)-(11,1) = "}" @@ -127,7 +122,6 @@ β βββ body: β
βββ @ LambdaNode (location: (12,0)-(13,1)) βββ locals: [:a, :b, :c] - βββ locals_body_index: 3 βββ operator_loc: (12,0)-(12,2) = "->" βββ opening_loc: (12,12)-(12,13) = "{" βββ closing_loc: (13,0)-(13,1) = "}" diff --git a/test/prism/snapshots/unparser/corpus/literal/literal.txt b/test/prism/snapshots/unparser/corpus/literal/literal.txt index 17df1565c5..e4545d1688 100644 --- a/test/prism/snapshots/unparser/corpus/literal/literal.txt +++ b/test/prism/snapshots/unparser/corpus/literal/literal.txt @@ -1073,7 +1073,6 @@ β βββ block: β @ BlockNode (location: (83,4)-(86,1)) β βββ locals: [] - β βββ locals_body_index: 0 β βββ parameters: β
β βββ body: β β @ StatementsNode (location: (84,2)-(85,7)) diff --git a/test/prism/snapshots/unparser/corpus/literal/module.txt b/test/prism/snapshots/unparser/corpus/literal/module.txt index 178d27ce97..5dd8c03b51 100644 --- a/test/prism/snapshots/unparser/corpus/literal/module.txt +++ b/test/prism/snapshots/unparser/corpus/literal/module.txt @@ -97,7 +97,6 @@ β β βββ closing_loc: β
β β βββ unescaped: "bar" β βββ locals: [] - β βββ locals_body_index: 0 β βββ def_keyword_loc: (13,2)-(13,5) = "def" β βββ operator_loc: β
β βββ lparen_loc: β
diff --git a/test/prism/snapshots/unparser/corpus/literal/send.txt b/test/prism/snapshots/unparser/corpus/literal/send.txt index d2a744c687..18608ca005 100644 --- a/test/prism/snapshots/unparser/corpus/literal/send.txt +++ b/test/prism/snapshots/unparser/corpus/literal/send.txt @@ -162,7 +162,6 @@ β β β β β βββ parameters: β
β β β β β βββ body: β
β β β β β βββ locals: [] - β β β β β βββ locals_body_index: 0 β β β β β βββ def_keyword_loc: (16,6)-(16,9) = "def" β β β β β βββ operator_loc: β
β β β β β βββ lparen_loc: β
@@ -271,7 +270,6 @@ β β βββ parameters: β
β β βββ body: β
β β βββ locals: [] - β β βββ locals_body_index: 0 β β βββ def_keyword_loc: (25,0)-(25,3) = "def" β β βββ operator_loc: (25,8)-(25,9) = "." β β βββ lparen_loc: β
@@ -295,7 +293,6 @@ β β βββ parameters: β
β β βββ body: β
β β βββ locals: [] - β β βββ locals_body_index: 0 β β βββ def_keyword_loc: (27,0)-(27,3) = "def" β β βββ operator_loc: β
β β βββ lparen_loc: β
@@ -376,7 +373,6 @@ β β βββ block: β β @ BlockNode (location: (33,5)-(34,1)) β β βββ locals: [] - β β βββ locals_body_index: 0 β β βββ parameters: β
β β βββ body: β
β β βββ opening_loc: (33,5)-(33,6) = "{" diff --git a/test/prism/snapshots/unparser/corpus/literal/since/27.txt b/test/prism/snapshots/unparser/corpus/literal/since/27.txt index 2099e84209..64f3fd88b3 100644 --- a/test/prism/snapshots/unparser/corpus/literal/since/27.txt +++ b/test/prism/snapshots/unparser/corpus/literal/since/27.txt @@ -5,7 +5,6 @@ βββ body: (length: 2) βββ @ LambdaNode (location: (1,0)-(3,1)) β βββ locals: [:_1, :_2] - β βββ locals_body_index: 2 β βββ operator_loc: (1,0)-(1,2) = "->" β βββ opening_loc: (1,3)-(1,4) = "{" β βββ closing_loc: (3,0)-(3,1) = "}" diff --git a/test/prism/snapshots/unparser/corpus/literal/since/31.txt b/test/prism/snapshots/unparser/corpus/literal/since/31.txt index 09e94d6b7f..142a56ae83 100644 --- a/test/prism/snapshots/unparser/corpus/literal/since/31.txt +++ b/test/prism/snapshots/unparser/corpus/literal/since/31.txt @@ -38,7 +38,6 @@ β β βββ expression: β
β β βββ operator_loc: (2,6)-(2,7) = "&" β βββ locals: [] - β βββ locals_body_index: 0 β βββ def_keyword_loc: (1,0)-(1,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: (1,7)-(1,8) = "(" @@ -83,7 +82,6 @@ β βββ expression: β
β βββ operator_loc: (6,6)-(6,7) = "&" βββ locals: [:a] - βββ locals_body_index: 1 βββ def_keyword_loc: (5,0)-(5,3) = "def" βββ operator_loc: β
βββ lparen_loc: (5,7)-(5,8) = "(" diff --git a/test/prism/snapshots/unparser/corpus/literal/since/32.txt b/test/prism/snapshots/unparser/corpus/literal/since/32.txt index 9b7fa85fe0..ee8dd7f53d 100644 --- a/test/prism/snapshots/unparser/corpus/literal/since/32.txt +++ b/test/prism/snapshots/unparser/corpus/literal/since/32.txt @@ -50,7 +50,6 @@ β β βββ closing_loc: (2,18)-(2,19) = ")" β β βββ block: β
β βββ locals: [:argument] - β βββ locals_body_index: 1 β βββ def_keyword_loc: (1,0)-(1,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: (1,7)-(1,8) = "(" @@ -101,7 +100,6 @@ β βββ closing_loc: (6,17)-(6,18) = ")" β βββ block: β
βββ locals: [:argument] - βββ locals_body_index: 1 βββ def_keyword_loc: (5,0)-(5,3) = "def" βββ operator_loc: β
βββ lparen_loc: (5,7)-(5,8) = "(" diff --git a/test/prism/snapshots/unparser/corpus/literal/super.txt b/test/prism/snapshots/unparser/corpus/literal/super.txt index 14783f63f9..d5a7889919 100644 --- a/test/prism/snapshots/unparser/corpus/literal/super.txt +++ b/test/prism/snapshots/unparser/corpus/literal/super.txt @@ -129,7 +129,6 @@ β β βββ block: β β @ BlockNode (location: (7,8)-(9,1)) β β βββ locals: [] - β β βββ locals_body_index: 0 β β βββ parameters: β
β β βββ body: β β β @ StatementsNode (location: (8,2)-(8,5)) @@ -152,7 +151,6 @@ β βββ block: β @ BlockNode (location: (10,6)-(12,1)) β βββ locals: [] - β βββ locals_body_index: 0 β βββ parameters: β
β βββ body: β β @ StatementsNode (location: (11,2)-(11,5)) @@ -190,7 +188,6 @@ β βββ block: β @ BlockNode (location: (13,9)-(15,1)) β βββ locals: [] - β βββ locals_body_index: 0 β βββ parameters: β
β βββ body: β β @ StatementsNode (location: (14,2)-(14,5)) @@ -215,7 +212,6 @@ β βββ block: β @ BlockNode (location: (16,8)-(18,1)) β βββ locals: [] - β βββ locals_body_index: 0 β βββ parameters: β
β βββ body: β β @ StatementsNode (location: (17,2)-(17,5)) @@ -263,7 +259,6 @@ βββ block: @ BlockNode (location: (19,12)-(21,1)) βββ locals: [] - βββ locals_body_index: 0 βββ parameters: β
βββ body: β @ StatementsNode (location: (20,2)-(20,5)) diff --git a/test/prism/snapshots/unparser/corpus/literal/while.txt b/test/prism/snapshots/unparser/corpus/literal/while.txt index b2138fe9f3..67cd69db03 100644 --- a/test/prism/snapshots/unparser/corpus/literal/while.txt +++ b/test/prism/snapshots/unparser/corpus/literal/while.txt @@ -24,7 +24,6 @@ β β βββ block: β β @ BlockNode (location: (2,6)-(6,3)) β β βββ locals: [:bar, :foo] - β β βββ locals_body_index: 1 β β βββ parameters: β β β @ BlockParametersNode (location: (2,8)-(2,13)) β β β βββ parameters: @@ -135,7 +134,6 @@ β β β βββ block: β
β β βββ operator_loc: (10,6)-(10,7) = "=" β βββ locals: [:foo] - β βββ locals_body_index: 0 β βββ def_keyword_loc: (9,0)-(9,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: β
@@ -284,7 +282,6 @@ β β βββ block: β β @ BlockNode (location: (28,7)-(32,3)) β β βββ locals: [:baz, :foo] - β β βββ locals_body_index: 1 β β βββ parameters: β β β @ BlockParametersNode (location: (28,9)-(28,14)) β β β βββ parameters: @@ -364,7 +361,6 @@ β β βββ block: β β @ BlockNode (location: (36,7)-(40,3)) β β βββ locals: [:foo] - β β βββ locals_body_index: 1 β β βββ parameters: β β β @ BlockParametersNode (location: (36,9)-(36,14)) β β β βββ parameters: @@ -635,7 +631,6 @@ β β β βββ block: β β β @ BlockNode (location: (61,11)-(62,1)) β β β βββ locals: [] - β β β βββ locals_body_index: 0 β β β βββ parameters: β
β β β βββ body: β
β β β βββ opening_loc: (61,11)-(61,12) = "{" @@ -690,7 +685,6 @@ β β βββ block: β β @ BlockNode (location: (70,11)-(71,1)) β β βββ locals: [] - β β βββ locals_body_index: 0 β β βββ parameters: β
β β βββ body: β
β β βββ opening_loc: (70,11)-(70,12) = "{" diff --git a/test/prism/snapshots/unparser/corpus/semantic/block.txt b/test/prism/snapshots/unparser/corpus/semantic/block.txt index 55190730db..4e4b6ea928 100644 --- a/test/prism/snapshots/unparser/corpus/semantic/block.txt +++ b/test/prism/snapshots/unparser/corpus/semantic/block.txt @@ -15,7 +15,6 @@ β βββ block: β @ BlockNode (location: (1,4)-(2,3)) β βββ locals: [] - β βββ locals_body_index: 0 β βββ parameters: β
β βββ body: β
β βββ opening_loc: (1,4)-(1,6) = "do" @@ -32,7 +31,6 @@ β βββ block: β @ BlockNode (location: (4,4)-(6,3)) β βββ locals: [] - β βββ locals_body_index: 0 β βββ parameters: β
β βββ body: β β @ BeginNode (location: (5,0)-(6,3)) @@ -63,7 +61,6 @@ β βββ block: β @ BlockNode (location: (8,4)-(11,3)) β βββ locals: [] - β βββ locals_body_index: 0 β βββ parameters: β
β βββ body: β β @ StatementsNode (location: (9,2)-(10,5)) @@ -89,7 +86,6 @@ β βββ block: β @ BlockNode (location: (13,4)-(14,3)) β βββ locals: [:a] - β βββ locals_body_index: 1 β βββ parameters: β β @ BlockParametersNode (location: (13,7)-(13,10)) β β βββ parameters: @@ -131,7 +127,6 @@ β βββ block: β @ BlockNode (location: (16,12)-(20,3)) β βββ locals: [:a] - β βββ locals_body_index: 1 β βββ parameters: β β @ BlockParametersNode (location: (16,15)-(16,18)) β β βββ parameters: @@ -178,7 +173,6 @@ βββ block: @ BlockNode (location: (22,12)-(26,3)) βββ locals: [] - βββ locals_body_index: 0 βββ parameters: β
βββ body: β @ StatementsNode (location: (25,2)-(25,3)) diff --git a/test/prism/snapshots/unparser/corpus/semantic/def.txt b/test/prism/snapshots/unparser/corpus/semantic/def.txt index 7398cad7a8..b44983c2f3 100644 --- a/test/prism/snapshots/unparser/corpus/semantic/def.txt +++ b/test/prism/snapshots/unparser/corpus/semantic/def.txt @@ -51,7 +51,6 @@ β β βββ opening_loc: (2,2)-(2,3) = "(" β β βββ closing_loc: (2,8)-(2,9) = ")" β βββ locals: [] - β βββ locals_body_index: 0 β βββ def_keyword_loc: (1,0)-(1,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: β
@@ -83,7 +82,6 @@ β @ ConstantReadNode (location: (6,11)-(6,20)) β βββ name: :Exception βββ locals: [] - βββ locals_body_index: 0 βββ def_keyword_loc: (5,0)-(5,3) = "def" βββ operator_loc: β
βββ lparen_loc: β
diff --git a/test/prism/snapshots/unparser/corpus/semantic/while.txt b/test/prism/snapshots/unparser/corpus/semantic/while.txt index a59e5948d5..36bfba5be6 100644 --- a/test/prism/snapshots/unparser/corpus/semantic/while.txt +++ b/test/prism/snapshots/unparser/corpus/semantic/while.txt @@ -20,7 +20,6 @@ β β βββ block: β β @ BlockNode (location: (1,11)-(1,13)) β β βββ locals: [] - β β βββ locals_body_index: 0 β β βββ parameters: β
β β βββ body: β
β β βββ opening_loc: (1,11)-(1,12) = "{" @@ -55,7 +54,6 @@ β β βββ block: β β @ BlockNode (location: (3,9)-(3,11)) β β βββ locals: [] - β β βββ locals_body_index: 0 β β βββ parameters: β
β β βββ body: β
β β βββ opening_loc: (3,9)-(3,10) = "{" @@ -130,7 +128,6 @@ β β β βββ block: β β β @ BlockNode (location: (9,15)-(9,18)) β β β βββ locals: [] - β β β βββ locals_body_index: 0 β β β βββ parameters: β
β β β βββ body: β
β β β βββ opening_loc: (9,15)-(9,16) = "{" @@ -202,7 +199,6 @@ β β βββ block: β β @ BlockNode (location: (15,18)-(18,3)) β β βββ locals: [] - β β βββ locals_body_index: 0 β β βββ parameters: β
β β βββ body: β β β @ StatementsNode (location: (17,2)-(17,3)) diff --git a/test/prism/snapshots/while.txt b/test/prism/snapshots/while.txt index e403efe869..3599bc4bb8 100644 --- a/test/prism/snapshots/while.txt +++ b/test/prism/snapshots/while.txt @@ -136,7 +136,6 @@ β β β β βββ block: β β β β @ BlockNode (location: (13,27)-(13,33)) β β β β βββ locals: [] - β β β β βββ locals_body_index: 0 β β β β βββ parameters: β
β β β β βββ body: β
β β β β βββ opening_loc: (13,27)-(13,29) = "do" @@ -148,7 +147,6 @@ β β β βββ block: β
β β βββ body: β
β β βββ locals: [:a] - β β βββ locals_body_index: 1 β β βββ def_keyword_loc: (13,6)-(13,9) = "def" β β βββ operator_loc: (13,14)-(13,15) = "." β β βββ lparen_loc: β
@@ -194,7 +192,6 @@ β β β β βββ block: β β β β @ BlockNode (location: (15,24)-(15,30)) β β β β βββ locals: [] - β β β β βββ locals_body_index: 0 β β β β βββ parameters: β
β β β β βββ body: β
β β β β βββ opening_loc: (15,24)-(15,26) = "do" @@ -234,7 +231,6 @@ β β β βββ block: β β β @ BlockNode (location: (17,25)-(17,31)) β β β βββ locals: [] - β β β βββ locals_body_index: 0 β β β βββ parameters: β
β β β βββ body: β
β β β βββ opening_loc: (17,25)-(17,27) = "do" @@ -277,7 +273,6 @@ β β β β βββ block: β β β β @ BlockNode (location: (19,29)-(19,35)) β β β β βββ locals: [] - β β β β βββ locals_body_index: 0 β β β β βββ parameters: β
β β β β βββ body: β
β β β β βββ opening_loc: (19,29)-(19,31) = "do" @@ -315,13 +310,11 @@ β β β βββ block: β β β @ BlockNode (location: (21,20)-(21,26)) β β β βββ locals: [] - β β β βββ locals_body_index: 0 β β β βββ parameters: β
β β β βββ body: β
β β β βββ opening_loc: (21,20)-(21,22) = "do" β β β βββ closing_loc: (21,23)-(21,26) = "end" β β βββ locals: [] - β β βββ locals_body_index: 0 β β βββ def_keyword_loc: (21,6)-(21,9) = "def" β β βββ operator_loc: β
β β βββ lparen_loc: β
diff --git a/test/prism/snapshots/whitequark/anonymous_blockarg.txt b/test/prism/snapshots/whitequark/anonymous_blockarg.txt index da760b785f..92cf1504a9 100644 --- a/test/prism/snapshots/whitequark/anonymous_blockarg.txt +++ b/test/prism/snapshots/whitequark/anonymous_blockarg.txt @@ -38,7 +38,6 @@ β βββ expression: β
β βββ operator_loc: (1,16)-(1,17) = "&" βββ locals: [] - βββ locals_body_index: 0 βββ def_keyword_loc: (1,0)-(1,3) = "def" βββ operator_loc: β
βββ lparen_loc: (1,7)-(1,8) = "(" diff --git a/test/prism/snapshots/whitequark/arg.txt b/test/prism/snapshots/whitequark/arg.txt index fc9f701631..38fdb190f3 100644 --- a/test/prism/snapshots/whitequark/arg.txt +++ b/test/prism/snapshots/whitequark/arg.txt @@ -21,7 +21,6 @@ β β βββ block: β
β βββ body: β
β βββ locals: [:foo] - β βββ locals_body_index: 1 β βββ def_keyword_loc: (1,0)-(1,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: (1,5)-(1,6) = "(" @@ -49,7 +48,6 @@ β βββ block: β
βββ body: β
βββ locals: [:foo, :bar] - βββ locals_body_index: 2 βββ def_keyword_loc: (3,0)-(3,3) = "def" βββ operator_loc: β
βββ lparen_loc: (3,5)-(3,6) = "(" diff --git a/test/prism/snapshots/whitequark/arg_duplicate_ignored.txt b/test/prism/snapshots/whitequark/arg_duplicate_ignored.txt index a0778b8f7a..21dc1b7417 100644 --- a/test/prism/snapshots/whitequark/arg_duplicate_ignored.txt +++ b/test/prism/snapshots/whitequark/arg_duplicate_ignored.txt @@ -24,7 +24,6 @@ β β βββ block: β
β βββ body: β
β βββ locals: [:_] - β βββ locals_body_index: 1 β βββ def_keyword_loc: (1,0)-(1,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: (1,7)-(1,8) = "(" @@ -52,7 +51,6 @@ β βββ block: β
βββ body: β
βββ locals: [:_a] - βββ locals_body_index: 1 βββ def_keyword_loc: (3,0)-(3,3) = "def" βββ operator_loc: β
βββ lparen_loc: (3,7)-(3,8) = "(" diff --git a/test/prism/snapshots/whitequark/arg_label.txt b/test/prism/snapshots/whitequark/arg_label.txt index 16366c6e3c..b72ea59a5d 100644 --- a/test/prism/snapshots/whitequark/arg_label.txt +++ b/test/prism/snapshots/whitequark/arg_label.txt @@ -31,7 +31,6 @@ β β βββ closing_loc: β
β β βββ block: β
β βββ locals: [] - β βββ locals_body_index: 0 β βββ def_keyword_loc: (1,0)-(1,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: β
@@ -66,7 +65,6 @@ β β βββ closing_loc: β
β β βββ block: β
β βββ locals: [] - β βββ locals_body_index: 0 β βββ def_keyword_loc: (4,0)-(4,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: (4,7)-(4,8) = "(" @@ -85,7 +83,6 @@ βββ block: @ BlockNode (location: (6,2)-(6,12)) βββ locals: [] - βββ locals_body_index: 0 βββ parameters: β @ BlockParametersNode (location: (6,4)-(6,6)) β βββ parameters: β
diff --git a/test/prism/snapshots/whitequark/arg_scope.txt b/test/prism/snapshots/whitequark/arg_scope.txt index 0a4788f4fd..c04356b8ee 100644 --- a/test/prism/snapshots/whitequark/arg_scope.txt +++ b/test/prism/snapshots/whitequark/arg_scope.txt @@ -15,7 +15,6 @@ βββ block: @ BlockNode (location: (1,6)-(1,13)) βββ locals: [:a] - βββ locals_body_index: 1 βββ parameters: β @ BlockParametersNode (location: (1,7)-(1,11)) β βββ parameters: β
diff --git a/test/prism/snapshots/whitequark/args.txt b/test/prism/snapshots/whitequark/args.txt index 53bd2ebbc3..3468650956 100644 --- a/test/prism/snapshots/whitequark/args.txt +++ b/test/prism/snapshots/whitequark/args.txt @@ -23,7 +23,6 @@ β β βββ operator_loc: (1,6)-(1,7) = "&" β βββ body: β
β βββ locals: [:b] - β βββ locals_body_index: 1 β βββ def_keyword_loc: (1,0)-(1,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: β
@@ -60,7 +59,6 @@ β β βββ block: β
β βββ body: β
β βββ locals: [:a] - β βββ locals_body_index: 1 β βββ def_keyword_loc: (3,0)-(3,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: (3,6)-(3,7) = "(" @@ -91,7 +89,6 @@ β β βββ block: β
β βββ body: β
β βββ locals: [] - β βββ locals_body_index: 0 β βββ def_keyword_loc: (5,0)-(5,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: (5,6)-(5,7) = "(" @@ -125,7 +122,6 @@ β β βββ block: β
β βββ body: β
β βββ locals: [:p] - β βββ locals_body_index: 1 β βββ def_keyword_loc: (7,0)-(7,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: (7,6)-(7,7) = "(" @@ -159,7 +155,6 @@ β β βββ block: β
β βββ body: β
β βββ locals: [:r] - β βββ locals_body_index: 1 β βββ def_keyword_loc: (9,0)-(9,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: (9,6)-(9,7) = "(" @@ -196,7 +191,6 @@ β β βββ block: β
β βββ body: β
β βββ locals: [:r, :p] - β βββ locals_body_index: 2 β βββ def_keyword_loc: (11,0)-(11,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: (11,6)-(11,7) = "(" @@ -230,7 +224,6 @@ β β βββ block: β
β βββ body: β
β βββ locals: [:a] - β βββ locals_body_index: 1 β βββ def_keyword_loc: (13,0)-(13,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: (13,6)-(13,7) = "(" @@ -267,7 +260,6 @@ β β βββ block: β
β βββ body: β
β βββ locals: [:a, :p] - β βββ locals_body_index: 2 β βββ def_keyword_loc: (15,0)-(15,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: (15,6)-(15,7) = "(" @@ -304,7 +296,6 @@ β β βββ block: β
β βββ body: β
β βββ locals: [:a, :r] - β βββ locals_body_index: 2 β βββ def_keyword_loc: (17,0)-(17,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: (17,6)-(17,7) = "(" @@ -344,7 +335,6 @@ β β βββ block: β
β βββ body: β
β βββ locals: [:a, :r, :p] - β βββ locals_body_index: 3 β βββ def_keyword_loc: (19,0)-(19,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: (19,6)-(19,7) = "(" @@ -378,7 +368,6 @@ β β βββ block: β
β βββ body: β
β βββ locals: [:a, :a1] - β βββ locals_body_index: 2 β βββ def_keyword_loc: (21,0)-(21,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: (21,6)-(21,7) = "(" @@ -412,7 +401,6 @@ β β βββ operator_loc: (23,15)-(23,16) = "&" β βββ body: β
β βββ locals: [:foo, :b] - β βββ locals_body_index: 2 β βββ def_keyword_loc: (23,0)-(23,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: (23,6)-(23,7) = "(" @@ -458,7 +446,6 @@ β β βββ operator_loc: (25,30)-(25,31) = "&" β βββ body: β
β βββ locals: [:foo, :bar, :baz, :b] - β βββ locals_body_index: 4 β βββ def_keyword_loc: (25,0)-(25,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: (25,6)-(25,7) = "(" @@ -490,7 +477,6 @@ β β βββ operator_loc: (27,13)-(27,14) = "&" β βββ body: β
β βββ locals: [:baz, :b] - β βββ locals_body_index: 2 β βββ def_keyword_loc: (27,0)-(27,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: β
@@ -522,7 +508,6 @@ β β βββ block: β
β βββ body: β
β βββ locals: [] - β βββ locals_body_index: 0 β βββ def_keyword_loc: (29,0)-(29,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: β
@@ -554,7 +539,6 @@ β β βββ operator_loc: (31,10)-(31,11) = "&" β βββ body: β
β βββ locals: [:r, :b] - β βββ locals_body_index: 2 β βββ def_keyword_loc: (31,0)-(31,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: β
@@ -589,7 +573,6 @@ β β βββ operator_loc: (33,13)-(33,14) = "&" β βββ body: β
β βββ locals: [:r, :p, :b] - β βββ locals_body_index: 3 β βββ def_keyword_loc: (33,0)-(33,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: β
@@ -603,7 +586,6 @@ β βββ parameters: β
β βββ body: β
β βββ locals: [] - β βββ locals_body_index: 0 β βββ def_keyword_loc: (35,0)-(35,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: β
@@ -633,7 +615,6 @@ β β βββ operator_loc: (37,9)-(37,10) = "&" β βββ body: β
β βββ locals: [:a, :b] - β βββ locals_body_index: 2 β βββ def_keyword_loc: (37,0)-(37,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: β
@@ -668,7 +649,6 @@ β β βββ operator_loc: (39,13)-(39,14) = "&" β βββ body: β
β βββ locals: [:a, :r, :b] - β βββ locals_body_index: 3 β βββ def_keyword_loc: (39,0)-(39,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: β
@@ -706,7 +686,6 @@ β β βββ operator_loc: (41,16)-(41,17) = "&" β βββ body: β
β βββ locals: [:a, :r, :p, :b] - β βββ locals_body_index: 4 β βββ def_keyword_loc: (41,0)-(41,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: β
@@ -744,7 +723,6 @@ β β βββ operator_loc: (43,14)-(43,15) = "&" β βββ body: β
β βββ locals: [:a, :o, :b] - β βββ locals_body_index: 3 β βββ def_keyword_loc: (43,0)-(43,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: β
@@ -787,7 +765,6 @@ β β βββ operator_loc: (45,18)-(45,19) = "&" β βββ body: β
β βββ locals: [:a, :o, :r, :b] - β βββ locals_body_index: 4 β βββ def_keyword_loc: (45,0)-(45,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: β
@@ -833,7 +810,6 @@ β β βββ operator_loc: (47,21)-(47,22) = "&" β βββ body: β
β βββ locals: [:a, :o, :r, :p, :b] - β βββ locals_body_index: 5 β βββ def_keyword_loc: (47,0)-(47,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: β
@@ -874,7 +850,6 @@ β β βββ operator_loc: (49,17)-(49,18) = "&" β βββ body: β
β βββ locals: [:a, :o, :p, :b] - β βββ locals_body_index: 4 β βββ def_keyword_loc: (49,0)-(49,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: β
@@ -900,7 +875,6 @@ β β βββ block: β
β βββ body: β
β βββ locals: [:foo] - β βββ locals_body_index: 1 β βββ def_keyword_loc: (51,0)-(51,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: β
@@ -929,7 +903,6 @@ β β βββ block: β
β βββ body: β
β βββ locals: [:foo] - β βββ locals_body_index: 1 β βββ def_keyword_loc: (54,0)-(54,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: β
@@ -964,7 +937,6 @@ β β βββ operator_loc: (57,11)-(57,12) = "&" β βββ body: β
β βββ locals: [:o, :b] - β βββ locals_body_index: 2 β βββ def_keyword_loc: (57,0)-(57,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: β
@@ -1004,7 +976,6 @@ β β βββ operator_loc: (59,15)-(59,16) = "&" β βββ body: β
β βββ locals: [:o, :r, :b] - β βββ locals_body_index: 3 β βββ def_keyword_loc: (59,0)-(59,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: β
@@ -1047,7 +1018,6 @@ β β βββ operator_loc: (61,18)-(61,19) = "&" β βββ body: β
β βββ locals: [:o, :r, :p, :b] - β βββ locals_body_index: 4 β βββ def_keyword_loc: (61,0)-(61,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: β
@@ -1085,7 +1055,6 @@ β βββ operator_loc: (63,14)-(63,15) = "&" βββ body: β
βββ locals: [:o, :p, :b] - βββ locals_body_index: 3 βββ def_keyword_loc: (63,0)-(63,3) = "def" βββ operator_loc: β
βββ lparen_loc: β
diff --git a/test/prism/snapshots/whitequark/begin_cmdarg.txt b/test/prism/snapshots/whitequark/begin_cmdarg.txt index f293656bb9..975f664c86 100644 --- a/test/prism/snapshots/whitequark/begin_cmdarg.txt +++ b/test/prism/snapshots/whitequark/begin_cmdarg.txt @@ -33,7 +33,6 @@ β β βββ block: β β @ BlockNode (location: (1,16)-(1,24)) β β βββ locals: [] - β β βββ locals_body_index: 0 β β βββ parameters: β
β β βββ body: β β β @ StatementsNode (location: (1,19)-(1,20)) diff --git a/test/prism/snapshots/whitequark/blockarg.txt b/test/prism/snapshots/whitequark/blockarg.txt index fd0dac3cb2..70b054e073 100644 --- a/test/prism/snapshots/whitequark/blockarg.txt +++ b/test/prism/snapshots/whitequark/blockarg.txt @@ -23,7 +23,6 @@ β βββ operator_loc: (1,6)-(1,7) = "&" βββ body: β
βββ locals: [:block] - βββ locals_body_index: 1 βββ def_keyword_loc: (1,0)-(1,3) = "def" βββ operator_loc: β
βββ lparen_loc: (1,5)-(1,6) = "(" diff --git a/test/prism/snapshots/whitequark/blockargs.txt b/test/prism/snapshots/whitequark/blockargs.txt index 36610d66bf..fc229453a8 100644 --- a/test/prism/snapshots/whitequark/blockargs.txt +++ b/test/prism/snapshots/whitequark/blockargs.txt @@ -15,7 +15,6 @@ β βββ block: β @ BlockNode (location: (1,1)-(1,5)) β βββ locals: [] - β βββ locals_body_index: 0 β βββ parameters: β
β βββ body: β
β βββ opening_loc: (1,1)-(1,2) = "{" @@ -32,7 +31,6 @@ β βββ block: β @ BlockNode (location: (3,1)-(3,8)) β βββ locals: [] - β βββ locals_body_index: 0 β βββ parameters: β β @ BlockParametersNode (location: (3,3)-(3,6)) β β βββ parameters: β
@@ -54,7 +52,6 @@ β βββ block: β @ BlockNode (location: (5,1)-(5,9)) β βββ locals: [:b] - β βββ locals_body_index: 1 β βββ parameters: β β @ BlockParametersNode (location: (5,3)-(5,7)) β β βββ parameters: @@ -89,7 +86,6 @@ β βββ block: β @ BlockNode (location: (7,1)-(7,16)) β βββ locals: [:baz, :b] - β βββ locals_body_index: 2 β βββ parameters: β β @ BlockParametersNode (location: (7,3)-(7,14)) β β βββ parameters: @@ -129,7 +125,6 @@ β βββ block: β @ BlockNode (location: (9,1)-(9,12)) β βββ locals: [:b] - β βββ locals_body_index: 1 β βββ parameters: β β @ BlockParametersNode (location: (9,3)-(9,10)) β β βββ parameters: @@ -169,7 +164,6 @@ β βββ block: β @ BlockNode (location: (11,1)-(11,16)) β βββ locals: [:r, :p, :b] - β βββ locals_body_index: 3 β βββ parameters: β β @ BlockParametersNode (location: (11,3)-(11,14)) β β βββ parameters: @@ -212,7 +206,6 @@ β βββ block: β @ BlockNode (location: (13,1)-(13,13)) β βββ locals: [:s, :b] - β βββ locals_body_index: 2 β βββ parameters: β β @ BlockParametersNode (location: (13,3)-(13,11)) β β βββ parameters: @@ -252,7 +245,6 @@ β βββ block: β @ BlockNode (location: (15,1)-(15,9)) β βββ locals: [:s] - β βββ locals_body_index: 1 β βββ parameters: β β @ BlockParametersNode (location: (15,3)-(15,7)) β β βββ parameters: @@ -287,7 +279,6 @@ β βββ block: β @ BlockNode (location: (17,1)-(17,8)) β βββ locals: [] - β βββ locals_body_index: 0 β βββ parameters: β β @ BlockParametersNode (location: (17,3)-(17,6)) β β βββ parameters: @@ -322,7 +313,6 @@ β βββ block: β @ BlockNode (location: (19,1)-(21,3)) β βββ locals: [:a] - β βββ locals_body_index: 1 β βββ parameters: β β @ BlockParametersNode (location: (19,3)-(21,1)) β β βββ parameters: β
@@ -347,7 +337,6 @@ β βββ block: β @ BlockNode (location: (23,1)-(23,9)) β βββ locals: [:a] - β βββ locals_body_index: 1 β βββ parameters: β β @ BlockParametersNode (location: (23,3)-(23,7)) β β βββ parameters: β
@@ -372,7 +361,6 @@ β βββ block: β @ BlockNode (location: (25,1)-(25,12)) β βββ locals: [:a, :b] - β βββ locals_body_index: 2 β βββ parameters: β β @ BlockParametersNode (location: (25,3)-(25,10)) β β βββ parameters: @@ -410,7 +398,6 @@ β βββ block: β @ BlockNode (location: (27,1)-(27,15)) β βββ locals: [:a, :b] - β βββ locals_body_index: 2 β βββ parameters: β β @ BlockParametersNode (location: (27,3)-(27,13)) β β βββ parameters: @@ -453,7 +440,6 @@ β βββ block: β @ BlockNode (location: (29,1)-(29,19)) β βββ locals: [:a, :r, :p, :b] - β βββ locals_body_index: 4 β βββ parameters: β β @ BlockParametersNode (location: (29,3)-(29,17)) β β βββ parameters: @@ -499,7 +485,6 @@ β βββ block: β @ BlockNode (location: (31,1)-(31,16)) β βββ locals: [:a, :s, :b] - β βββ locals_body_index: 3 β βββ parameters: β β @ BlockParametersNode (location: (31,3)-(31,14)) β β βββ parameters: @@ -542,7 +527,6 @@ β βββ block: β @ BlockNode (location: (33,1)-(33,12)) β βββ locals: [:a, :s] - β βββ locals_body_index: 2 β βββ parameters: β β @ BlockParametersNode (location: (33,3)-(33,10)) β β βββ parameters: @@ -580,7 +564,6 @@ β βββ block: β @ BlockNode (location: (35,1)-(35,11)) β βββ locals: [:a] - β βββ locals_body_index: 1 β βββ parameters: β β @ BlockParametersNode (location: (35,3)-(35,9)) β β βββ parameters: @@ -618,7 +601,6 @@ β βββ block: β @ BlockNode (location: (37,1)-(37,12)) β βββ locals: [:a, :b] - β βββ locals_body_index: 2 β βββ parameters: β β @ BlockParametersNode (location: (37,3)-(37,10)) β β βββ parameters: @@ -655,7 +637,6 @@ β βββ block: β @ BlockNode (location: (39,1)-(39,11)) β βββ locals: [:a, :c] - β βββ locals_body_index: 2 β βββ parameters: β β @ BlockParametersNode (location: (39,3)-(39,9)) β β βββ parameters: @@ -691,7 +672,6 @@ β βββ block: β @ BlockNode (location: (41,1)-(41,17)) β βββ locals: [:a, :o, :b] - β βββ locals_body_index: 3 β βββ parameters: β β @ BlockParametersNode (location: (41,3)-(41,15)) β β βββ parameters: @@ -737,7 +717,6 @@ β βββ block: β @ BlockNode (location: (43,1)-(43,24)) β βββ locals: [:a, :o, :r, :p, :b] - β βββ locals_body_index: 5 β βββ parameters: β β @ BlockParametersNode (location: (43,3)-(43,22)) β β βββ parameters: @@ -791,7 +770,6 @@ β βββ block: β @ BlockNode (location: (45,1)-(45,27)) β βββ locals: [:a, :o, :o1, :r, :b] - β βββ locals_body_index: 5 β βββ parameters: β β @ BlockParametersNode (location: (45,3)-(45,25)) β β βββ parameters: @@ -850,7 +828,6 @@ β βββ block: β @ BlockNode (location: (47,1)-(47,20)) β βββ locals: [:a, :o, :p, :b] - β βββ locals_body_index: 4 β βββ parameters: β β @ BlockParametersNode (location: (47,3)-(47,18)) β β βββ parameters: @@ -899,7 +876,6 @@ β βββ block: β @ BlockNode (location: (49,1)-(49,9)) β βββ locals: [:a] - β βββ locals_body_index: 1 β βββ parameters: β β @ BlockParametersNode (location: (49,3)-(49,7)) β β βββ parameters: @@ -933,7 +909,6 @@ β βββ block: β @ BlockNode (location: (51,1)-(51,8)) β βββ locals: [:a] - β βββ locals_body_index: 1 β βββ parameters: β β @ BlockParametersNode (location: (51,3)-(51,6)) β β βββ parameters: @@ -966,7 +941,6 @@ β βββ block: β @ BlockNode (location: (53,1)-(53,8)) β βββ locals: [:a] - β βββ locals_body_index: 1 β βββ parameters: β β @ BlockParametersNode (location: (53,3)-(53,6)) β β βββ parameters: @@ -999,7 +973,6 @@ β βββ block: β @ BlockNode (location: (55,1)-(55,8)) β βββ locals: [:a] - β βββ locals_body_index: 1 β βββ parameters: β β @ BlockParametersNode (location: (55,3)-(55,6)) β β βββ parameters: @@ -1032,7 +1005,6 @@ β βββ block: β @ BlockNode (location: (57,1)-(57,17)) β βββ locals: [:foo, :b] - β βββ locals_body_index: 2 β βββ parameters: β β @ BlockParametersNode (location: (57,3)-(57,15)) β β βββ parameters: @@ -1074,7 +1046,6 @@ β βββ block: β @ BlockNode (location: (59,1)-(59,32)) β βββ locals: [:foo, :bar, :baz, :b] - β βββ locals_body_index: 4 β βββ parameters: β β @ BlockParametersNode (location: (59,3)-(59,30)) β β βββ parameters: @@ -1128,7 +1099,6 @@ β βββ block: β @ BlockNode (location: (61,1)-(61,11)) β βββ locals: [:foo] - β βββ locals_body_index: 1 β βββ parameters: β β @ BlockParametersNode (location: (61,3)-(61,9)) β β βββ parameters: @@ -1162,7 +1132,6 @@ β βββ block: β @ BlockNode (location: (63,1)-(63,14)) β βββ locals: [:o, :b] - β βββ locals_body_index: 2 β βββ parameters: β β @ BlockParametersNode (location: (63,3)-(63,12)) β β βββ parameters: @@ -1205,7 +1174,6 @@ β βββ block: β @ BlockNode (location: (65,1)-(65,18)) β βββ locals: [:o, :r, :b] - β βββ locals_body_index: 3 β βββ parameters: β β @ BlockParametersNode (location: (65,3)-(65,16)) β β βββ parameters: @@ -1253,7 +1221,6 @@ β βββ block: β @ BlockNode (location: (67,1)-(67,21)) β βββ locals: [:o, :r, :p, :b] - β βββ locals_body_index: 4 β βββ parameters: β β @ BlockParametersNode (location: (67,3)-(67,19)) β β βββ parameters: @@ -1304,7 +1271,6 @@ β βββ block: β @ BlockNode (location: (69,1)-(69,17)) β βββ locals: [:o, :p, :b] - β βββ locals_body_index: 3 β βββ parameters: β β @ BlockParametersNode (location: (69,3)-(69,15)) β β βββ parameters: @@ -1350,7 +1316,6 @@ βββ block: @ BlockNode (location: (71,1)-(71,7)) βββ locals: [] - βββ locals_body_index: 0 βββ parameters: β @ BlockParametersNode (location: (71,3)-(71,5)) β βββ parameters: β
diff --git a/test/prism/snapshots/whitequark/break_block.txt b/test/prism/snapshots/whitequark/break_block.txt index e27b40e5c9..9322868944 100644 --- a/test/prism/snapshots/whitequark/break_block.txt +++ b/test/prism/snapshots/whitequark/break_block.txt @@ -33,7 +33,6 @@ β βββ block: β @ BlockNode (location: (1,14)-(1,20)) β βββ locals: [] - β βββ locals_body_index: 0 β βββ parameters: β
β βββ body: β
β βββ opening_loc: (1,14)-(1,16) = "do" diff --git a/test/prism/snapshots/whitequark/bug_435.txt b/test/prism/snapshots/whitequark/bug_435.txt index 20210c87df..e08874fa15 100644 --- a/test/prism/snapshots/whitequark/bug_435.txt +++ b/test/prism/snapshots/whitequark/bug_435.txt @@ -13,7 +13,6 @@ β β βββ body: (length: 1) β β βββ @ LambdaNode (location: (1,3)-(1,12)) β β βββ locals: [:foo] - β β βββ locals_body_index: 1 β β βββ operator_loc: (1,3)-(1,5) = "->" β β βββ opening_loc: (1,10)-(1,11) = "{" β β βββ closing_loc: (1,11)-(1,12) = "}" diff --git a/test/prism/snapshots/whitequark/bug_447.txt b/test/prism/snapshots/whitequark/bug_447.txt index 18ee926adf..5b01cc8a18 100644 --- a/test/prism/snapshots/whitequark/bug_447.txt +++ b/test/prism/snapshots/whitequark/bug_447.txt @@ -23,7 +23,6 @@ β βββ block: β @ BlockNode (location: (1,5)-(1,11)) β βββ locals: [] - β βββ locals_body_index: 0 β βββ parameters: β
β βββ body: β
β βββ opening_loc: (1,5)-(1,7) = "do" @@ -50,7 +49,6 @@ βββ block: @ BlockNode (location: (3,8)-(3,14)) βββ locals: [] - βββ locals_body_index: 0 βββ parameters: β
βββ body: β
βββ opening_loc: (3,8)-(3,10) = "do" diff --git a/test/prism/snapshots/whitequark/bug_452.txt b/test/prism/snapshots/whitequark/bug_452.txt index 90c51f2c8c..7410184788 100644 --- a/test/prism/snapshots/whitequark/bug_452.txt +++ b/test/prism/snapshots/whitequark/bug_452.txt @@ -56,7 +56,6 @@ βββ block: @ BlockNode (location: (1,30)-(1,37)) βββ locals: [] - βββ locals_body_index: 0 βββ parameters: β
βββ body: β
βββ opening_loc: (1,30)-(1,32) = "do" diff --git a/test/prism/snapshots/whitequark/bug_466.txt b/test/prism/snapshots/whitequark/bug_466.txt index 7f2f12d32c..a0be5655a1 100644 --- a/test/prism/snapshots/whitequark/bug_466.txt +++ b/test/prism/snapshots/whitequark/bug_466.txt @@ -61,7 +61,6 @@ βββ block: @ BlockNode (location: (1,20)-(1,27)) βββ locals: [] - βββ locals_body_index: 0 βββ parameters: β
βββ body: β
βββ opening_loc: (1,20)-(1,22) = "do" diff --git a/test/prism/snapshots/whitequark/bug_481.txt b/test/prism/snapshots/whitequark/bug_481.txt index 85ec4befb1..f0166388e8 100644 --- a/test/prism/snapshots/whitequark/bug_481.txt +++ b/test/prism/snapshots/whitequark/bug_481.txt @@ -21,7 +21,6 @@ β β βββ parameters: β
β β βββ body: β
β β βββ locals: [] - β β βββ locals_body_index: 0 β β βββ def_keyword_loc: (1,2)-(1,5) = "def" β β βββ operator_loc: β
β β βββ lparen_loc: (1,7)-(1,8) = "(" @@ -44,7 +43,6 @@ βββ block: @ BlockNode (location: (1,22)-(1,28)) βββ locals: [] - βββ locals_body_index: 0 βββ parameters: β
βββ body: β
βββ opening_loc: (1,22)-(1,24) = "do" diff --git a/test/prism/snapshots/whitequark/bug_cmd_string_lookahead.txt b/test/prism/snapshots/whitequark/bug_cmd_string_lookahead.txt index 0b1e8c96a0..50c988fa1f 100644 --- a/test/prism/snapshots/whitequark/bug_cmd_string_lookahead.txt +++ b/test/prism/snapshots/whitequark/bug_cmd_string_lookahead.txt @@ -24,7 +24,6 @@ βββ block: @ BlockNode (location: (1,11)-(1,17)) βββ locals: [] - βββ locals_body_index: 0 βββ parameters: β
βββ body: β
βββ opening_loc: (1,11)-(1,13) = "do" diff --git a/test/prism/snapshots/whitequark/bug_cmdarg.txt b/test/prism/snapshots/whitequark/bug_cmdarg.txt index c3fa59949a..509dd7e818 100644 --- a/test/prism/snapshots/whitequark/bug_cmdarg.txt +++ b/test/prism/snapshots/whitequark/bug_cmdarg.txt @@ -78,7 +78,6 @@ β βββ value: β β @ LambdaNode (location: (5,5)-(5,26)) β β βββ locals: [] - β β βββ locals_body_index: 0 β β βββ operator_loc: (5,5)-(5,7) = "->" β β βββ opening_loc: (5,8)-(5,10) = "do" β β βββ closing_loc: (5,23)-(5,26) = "end" @@ -98,7 +97,6 @@ β β βββ block: β β @ BlockNode (location: (5,16)-(5,22)) β β βββ locals: [] - β β βββ locals_body_index: 0 β β βββ parameters: β
β β βββ body: β
β β βββ opening_loc: (5,16)-(5,18) = "do" diff --git a/test/prism/snapshots/whitequark/bug_def_no_paren_eql_begin.txt b/test/prism/snapshots/whitequark/bug_def_no_paren_eql_begin.txt index 27d57492ab..1b45d0132b 100644 --- a/test/prism/snapshots/whitequark/bug_def_no_paren_eql_begin.txt +++ b/test/prism/snapshots/whitequark/bug_def_no_paren_eql_begin.txt @@ -10,7 +10,6 @@ βββ parameters: β
βββ body: β
βββ locals: [] - βββ locals_body_index: 0 βββ def_keyword_loc: (1,0)-(1,3) = "def" βββ operator_loc: β
βββ lparen_loc: β
diff --git a/test/prism/snapshots/whitequark/bug_do_block_in_call_args.txt b/test/prism/snapshots/whitequark/bug_do_block_in_call_args.txt index 4c0ea27a74..9b95adda35 100644 --- a/test/prism/snapshots/whitequark/bug_do_block_in_call_args.txt +++ b/test/prism/snapshots/whitequark/bug_do_block_in_call_args.txt @@ -35,13 +35,11 @@ β β βββ block: β β @ BlockNode (location: (1,23)-(1,29)) β β βββ locals: [] - β β βββ locals_body_index: 0 β β βββ parameters: β
β β βββ body: β
β β βββ opening_loc: (1,23)-(1,25) = "do" β β βββ closing_loc: (1,26)-(1,29) = "end" β βββ locals: [] - β βββ locals_body_index: 0 β βββ def_keyword_loc: (1,4)-(1,7) = "def" β βββ operator_loc: β
β βββ lparen_loc: β
diff --git a/test/prism/snapshots/whitequark/bug_do_block_in_cmdarg.txt b/test/prism/snapshots/whitequark/bug_do_block_in_cmdarg.txt index 34bd224d31..3946bc1a4a 100644 --- a/test/prism/snapshots/whitequark/bug_do_block_in_cmdarg.txt +++ b/test/prism/snapshots/whitequark/bug_do_block_in_cmdarg.txt @@ -30,7 +30,6 @@ β β βββ block: β β @ BlockNode (location: (1,10)-(1,16)) β β βββ locals: [] - β β βββ locals_body_index: 0 β β βββ parameters: β
β β βββ body: β
β β βββ opening_loc: (1,10)-(1,12) = "do" diff --git a/test/prism/snapshots/whitequark/bug_do_block_in_hash_brace.txt b/test/prism/snapshots/whitequark/bug_do_block_in_hash_brace.txt index 1b26346abf..183d465439 100644 --- a/test/prism/snapshots/whitequark/bug_do_block_in_hash_brace.txt +++ b/test/prism/snapshots/whitequark/bug_do_block_in_hash_brace.txt @@ -44,7 +44,6 @@ β β β β β βββ block: β β β β β @ BlockNode (location: (1,19)-(1,25)) β β β β β βββ locals: [] - β β β β β βββ locals_body_index: 0 β β β β β βββ parameters: β
β β β β β βββ body: β
β β β β β βββ opening_loc: (1,19)-(1,21) = "do" @@ -71,7 +70,6 @@ β β β β βββ block: β β β β @ BlockNode (location: (1,35)-(1,41)) β β β β βββ locals: [] - β β β β βββ locals_body_index: 0 β β β β βββ parameters: β
β β β β βββ body: β
β β β β βββ opening_loc: (1,35)-(1,37) = "do" @@ -114,7 +112,6 @@ β β β β β βββ block: β β β β β @ BlockNode (location: (3,17)-(3,23)) β β β β β βββ locals: [] - β β β β β βββ locals_body_index: 0 β β β β β βββ parameters: β
β β β β β βββ body: β
β β β β β βββ opening_loc: (3,17)-(3,19) = "do" @@ -141,7 +138,6 @@ β β β β βββ block: β β β β @ BlockNode (location: (3,33)-(3,39)) β β β β βββ locals: [] - β β β β βββ locals_body_index: 0 β β β β βββ parameters: β
β β β β βββ body: β
β β β β βββ opening_loc: (3,33)-(3,35) = "do" @@ -191,7 +187,6 @@ β β β β β βββ block: β β β β β @ BlockNode (location: (5,20)-(5,26)) β β β β β βββ locals: [] - β β β β β βββ locals_body_index: 0 β β β β β βββ parameters: β
β β β β β βββ body: β
β β β β β βββ opening_loc: (5,20)-(5,22) = "do" @@ -218,7 +213,6 @@ β β β β βββ block: β β β β @ BlockNode (location: (5,36)-(5,42)) β β β β βββ locals: [] - β β β β βββ locals_body_index: 0 β β β β βββ parameters: β
β β β β βββ body: β
β β β β βββ opening_loc: (5,36)-(5,38) = "do" @@ -268,7 +262,6 @@ β β β β β βββ block: β β β β β @ BlockNode (location: (7,17)-(7,23)) β β β β β βββ locals: [] - β β β β β βββ locals_body_index: 0 β β β β β βββ parameters: β
β β β β β βββ body: β
β β β β β βββ opening_loc: (7,17)-(7,19) = "do" @@ -295,7 +288,6 @@ β β β β βββ block: β β β β @ BlockNode (location: (7,33)-(7,39)) β β β β βββ locals: [] - β β β β βββ locals_body_index: 0 β β β β βββ parameters: β
β β β β βββ body: β
β β β β βββ opening_loc: (7,33)-(7,35) = "do" @@ -338,7 +330,6 @@ β β β β βββ block: β β β β @ BlockNode (location: (9,14)-(9,20)) β β β β βββ locals: [] - β β β β βββ locals_body_index: 0 β β β β βββ parameters: β
β β β β βββ body: β
β β β β βββ opening_loc: (9,14)-(9,16) = "do" @@ -356,7 +347,6 @@ β β β β βββ block: β β β β @ BlockNode (location: (9,29)-(9,35)) β β β β βββ locals: [] - β β β β βββ locals_body_index: 0 β β β β βββ parameters: β
β β β β βββ body: β
β β β β βββ opening_loc: (9,29)-(9,31) = "do" @@ -383,7 +373,6 @@ β β β βββ block: β β β @ BlockNode (location: (9,45)-(9,51)) β β β βββ locals: [] - β β β βββ locals_body_index: 0 β β β βββ parameters: β
β β β βββ body: β
β β β βββ opening_loc: (9,45)-(9,47) = "do" diff --git a/test/prism/snapshots/whitequark/bug_heredoc_do.txt b/test/prism/snapshots/whitequark/bug_heredoc_do.txt index 3877f657c2..bf4dd645fb 100644 --- a/test/prism/snapshots/whitequark/bug_heredoc_do.txt +++ b/test/prism/snapshots/whitequark/bug_heredoc_do.txt @@ -24,7 +24,6 @@ βββ block: @ BlockNode (location: (1,11)-(3,3)) βββ locals: [] - βββ locals_body_index: 0 βββ parameters: β
βββ body: β
βββ opening_loc: (1,11)-(1,13) = "do" diff --git a/test/prism/snapshots/whitequark/bug_lambda_leakage.txt b/test/prism/snapshots/whitequark/bug_lambda_leakage.txt index a8f2721cb8..7178345a22 100644 --- a/test/prism/snapshots/whitequark/bug_lambda_leakage.txt +++ b/test/prism/snapshots/whitequark/bug_lambda_leakage.txt @@ -5,7 +5,6 @@ βββ body: (length: 2) βββ @ LambdaNode (location: (1,0)-(1,12)) β βββ locals: [:scope] - β βββ locals_body_index: 1 β βββ operator_loc: (1,0)-(1,2) = "->" β βββ opening_loc: (1,10)-(1,11) = "{" β βββ closing_loc: (1,11)-(1,12) = "}" diff --git a/test/prism/snapshots/whitequark/class_definition_in_while_cond.txt b/test/prism/snapshots/whitequark/class_definition_in_while_cond.txt index 85c2c96b4f..c02c88e79b 100644 --- a/test/prism/snapshots/whitequark/class_definition_in_while_cond.txt +++ b/test/prism/snapshots/whitequark/class_definition_in_while_cond.txt @@ -34,7 +34,6 @@ β β β β βββ block: β β β β @ BlockNode (location: (1,29)-(1,35)) β β β β βββ locals: [] - β β β β βββ locals_body_index: 0 β β β β βββ parameters: β
β β β β βββ body: β
β β β β βββ opening_loc: (1,29)-(1,31) = "do" @@ -73,7 +72,6 @@ β β β βββ block: β β β @ BlockNode (location: (3,25)-(3,31)) β β β βββ locals: [] - β β β βββ locals_body_index: 0 β β β βββ parameters: β
β β β βββ body: β
β β β βββ opening_loc: (3,25)-(3,27) = "do" @@ -118,7 +116,6 @@ β β β β βββ block: β β β β @ BlockNode (location: (5,24)-(5,30)) β β β β βββ locals: [] - β β β β βββ locals_body_index: 0 β β β β βββ parameters: β
β β β β βββ body: β
β β β β βββ opening_loc: (5,24)-(5,26) = "do" @@ -160,7 +157,6 @@ β β βββ block: β β @ BlockNode (location: (7,21)-(7,27)) β β βββ locals: [] - β β βββ locals_body_index: 0 β β βββ parameters: β
β β βββ body: β
β β βββ opening_loc: (7,21)-(7,23) = "do" diff --git a/test/prism/snapshots/whitequark/const_op_asgn.txt b/test/prism/snapshots/whitequark/const_op_asgn.txt index b2292fcc85..fc6533ccd0 100644 --- a/test/prism/snapshots/whitequark/const_op_asgn.txt +++ b/test/prism/snapshots/whitequark/const_op_asgn.txt @@ -60,7 +60,6 @@ β β @ IntegerNode (location: (7,15)-(7,16)) β β βββ flags: decimal β βββ locals: [] - β βββ locals_body_index: 0 β βββ def_keyword_loc: (7,0)-(7,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: β
@@ -89,7 +88,6 @@ β @ IntegerNode (location: (9,19)-(9,20)) β βββ flags: decimal βββ locals: [] - βββ locals_body_index: 0 βββ def_keyword_loc: (9,0)-(9,3) = "def" βββ operator_loc: β
βββ lparen_loc: β
diff --git a/test/prism/snapshots/whitequark/def.txt b/test/prism/snapshots/whitequark/def.txt index ac91bcf067..d5e1139c4d 100644 --- a/test/prism/snapshots/whitequark/def.txt +++ b/test/prism/snapshots/whitequark/def.txt @@ -10,7 +10,6 @@ β βββ parameters: β
β βββ body: β
β βββ locals: [] - β βββ locals_body_index: 0 β βββ def_keyword_loc: (1,0)-(1,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: β
@@ -24,7 +23,6 @@ β βββ parameters: β
β βββ body: β
β βββ locals: [] - β βββ locals_body_index: 0 β βββ def_keyword_loc: (3,0)-(3,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: β
@@ -38,7 +36,6 @@ β βββ parameters: β
β βββ body: β
β βββ locals: [] - β βββ locals_body_index: 0 β βββ def_keyword_loc: (5,0)-(5,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: β
@@ -52,7 +49,6 @@ β βββ parameters: β
β βββ body: β
β βββ locals: [] - β βββ locals_body_index: 0 β βββ def_keyword_loc: (7,0)-(7,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: β
@@ -66,7 +62,6 @@ β βββ parameters: β
β βββ body: β
β βββ locals: [] - β βββ locals_body_index: 0 β βββ def_keyword_loc: (9,0)-(9,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: β
@@ -80,7 +75,6 @@ βββ parameters: β
βββ body: β
βββ locals: [] - βββ locals_body_index: 0 βββ def_keyword_loc: (11,0)-(11,3) = "def" βββ operator_loc: β
βββ lparen_loc: β
diff --git a/test/prism/snapshots/whitequark/defs.txt b/test/prism/snapshots/whitequark/defs.txt index 82ab7dfc46..616cca6155 100644 --- a/test/prism/snapshots/whitequark/defs.txt +++ b/test/prism/snapshots/whitequark/defs.txt @@ -24,7 +24,6 @@ β βββ parameters: β
β βββ body: β
β βββ locals: [] - β βββ locals_body_index: 0 β βββ def_keyword_loc: (1,0)-(1,3) = "def" β βββ operator_loc: (1,9)-(1,10) = "." β βββ lparen_loc: β
@@ -40,7 +39,6 @@ β βββ parameters: β
β βββ body: β
β βββ locals: [] - β βββ locals_body_index: 0 β βββ def_keyword_loc: (3,0)-(3,3) = "def" β βββ operator_loc: (3,10)-(3,11) = "." β βββ lparen_loc: β
@@ -56,7 +54,6 @@ β βββ parameters: β
β βββ body: β
β βββ locals: [] - β βββ locals_body_index: 0 β βββ def_keyword_loc: (5,0)-(5,3) = "def" β βββ operator_loc: (5,10)-(5,12) = "::" β βββ lparen_loc: β
@@ -71,7 +68,6 @@ β βββ parameters: β
β βββ body: β
β βββ locals: [] - β βββ locals_body_index: 0 β βββ def_keyword_loc: (7,0)-(7,3) = "def" β βββ operator_loc: (7,8)-(7,9) = "." β βββ lparen_loc: β
@@ -86,7 +82,6 @@ βββ parameters: β
βββ body: β
βββ locals: [] - βββ locals_body_index: 0 βββ def_keyword_loc: (9,0)-(9,3) = "def" βββ operator_loc: (9,8)-(9,10) = "::" βββ lparen_loc: β
diff --git a/test/prism/snapshots/whitequark/endless_comparison_method.txt b/test/prism/snapshots/whitequark/endless_comparison_method.txt index 82f574df0d..28ec3843bb 100644 --- a/test/prism/snapshots/whitequark/endless_comparison_method.txt +++ b/test/prism/snapshots/whitequark/endless_comparison_method.txt @@ -33,7 +33,6 @@ β β βββ closing_loc: β
β β βββ block: β
β βββ locals: [:other] - β βββ locals_body_index: 1 β βββ def_keyword_loc: (1,0)-(1,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: (1,6)-(1,7) = "(" @@ -70,7 +69,6 @@ β β βββ closing_loc: β
β β βββ block: β
β βββ locals: [:other] - β βββ locals_body_index: 1 β βββ def_keyword_loc: (3,0)-(3,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: (3,6)-(3,7) = "(" @@ -107,7 +105,6 @@ β β βββ closing_loc: β
β β βββ block: β
β βββ locals: [:other] - β βββ locals_body_index: 1 β βββ def_keyword_loc: (5,0)-(5,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: (5,6)-(5,7) = "(" @@ -144,7 +141,6 @@ β β βββ closing_loc: β
β β βββ block: β
β βββ locals: [:other] - β βββ locals_body_index: 1 β βββ def_keyword_loc: (7,0)-(7,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: (7,6)-(7,7) = "(" @@ -181,7 +177,6 @@ β β βββ closing_loc: β
β β βββ block: β
β βββ locals: [:other] - β βββ locals_body_index: 1 β βββ def_keyword_loc: (9,0)-(9,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: (9,7)-(9,8) = "(" @@ -218,7 +213,6 @@ β βββ closing_loc: β
β βββ block: β
βββ locals: [:other] - βββ locals_body_index: 1 βββ def_keyword_loc: (11,0)-(11,3) = "def" βββ operator_loc: β
βββ lparen_loc: (11,6)-(11,7) = "(" diff --git a/test/prism/snapshots/whitequark/endless_method.txt b/test/prism/snapshots/whitequark/endless_method.txt index 3d681ca459..d2443223bb 100644 --- a/test/prism/snapshots/whitequark/endless_method.txt +++ b/test/prism/snapshots/whitequark/endless_method.txt @@ -14,7 +14,6 @@ β β βββ @ IntegerNode (location: (1,12)-(1,14)) β β βββ flags: decimal β βββ locals: [] - β βββ locals_body_index: 0 β βββ def_keyword_loc: (1,0)-(1,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: (1,7)-(1,8) = "(" @@ -59,7 +58,6 @@ β β βββ closing_loc: β
β β βββ block: β
β βββ locals: [:x] - β βββ locals_body_index: 1 β βββ def_keyword_loc: (3,0)-(3,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: (3,7)-(3,8) = "(" @@ -87,7 +85,6 @@ β β βββ @ IntegerNode (location: (5,16)-(5,18)) β β βββ flags: decimal β βββ locals: [] - β βββ locals_body_index: 0 β βββ def_keyword_loc: (5,0)-(5,3) = "def" β βββ operator_loc: (5,7)-(5,8) = "." β βββ lparen_loc: (5,11)-(5,12) = "(" @@ -142,7 +139,6 @@ β βββ closing_loc: β
β βββ block: β
βββ locals: [:x] - βββ locals_body_index: 1 βββ def_keyword_loc: (7,0)-(7,3) = "def" βββ operator_loc: (7,7)-(7,8) = "." βββ lparen_loc: (7,11)-(7,12) = "(" diff --git a/test/prism/snapshots/whitequark/endless_method_command_syntax.txt b/test/prism/snapshots/whitequark/endless_method_command_syntax.txt index c4db8a106f..334fb39d61 100644 --- a/test/prism/snapshots/whitequark/endless_method_command_syntax.txt +++ b/test/prism/snapshots/whitequark/endless_method_command_syntax.txt @@ -31,7 +31,6 @@ β β βββ closing_loc: β
β β βββ block: β
β βββ locals: [] - β βββ locals_body_index: 0 β βββ def_keyword_loc: (1,0)-(1,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: β
@@ -66,7 +65,6 @@ β β βββ closing_loc: β
β β βββ block: β
β βββ locals: [] - β βββ locals_body_index: 0 β βββ def_keyword_loc: (3,0)-(3,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: (3,7)-(3,8) = "(" @@ -109,7 +107,6 @@ β β βββ closing_loc: β
β β βββ block: β
β βββ locals: [:x] - β βββ locals_body_index: 1 β βββ def_keyword_loc: (5,0)-(5,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: (5,7)-(5,8) = "(" @@ -154,7 +151,6 @@ β β βββ closing_loc: β
β β βββ block: β
β βββ locals: [] - β βββ locals_body_index: 0 β βββ def_keyword_loc: (7,0)-(7,3) = "def" β βββ operator_loc: (7,7)-(7,8) = "." β βββ lparen_loc: β
@@ -199,7 +195,6 @@ β β βββ closing_loc: β
β β βββ block: β
β βββ locals: [] - β βββ locals_body_index: 0 β βββ def_keyword_loc: (9,0)-(9,3) = "def" β βββ operator_loc: (9,7)-(9,8) = "." β βββ lparen_loc: (9,11)-(9,12) = "(" @@ -252,7 +247,6 @@ β β βββ closing_loc: β
β β βββ block: β
β βββ locals: [:x] - β βββ locals_body_index: 1 β βββ def_keyword_loc: (11,0)-(11,3) = "def" β βββ operator_loc: (11,7)-(11,8) = "." β βββ lparen_loc: (11,11)-(11,12) = "(" @@ -321,7 +315,6 @@ β β β βββ closing_loc: (13,58)-(13,59) = "}" β β βββ closing_loc: (13,59)-(13,60) = "\"" β βββ locals: [:x] - β βββ locals_body_index: 1 β βββ def_keyword_loc: (13,0)-(13,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: (13,11)-(13,12) = "(" @@ -391,7 +384,6 @@ β β βββ closing_loc: (15,60)-(15,61) = "}" β βββ closing_loc: (15,61)-(15,62) = "\"" βββ locals: [:x] - βββ locals_body_index: 1 βββ def_keyword_loc: (15,0)-(15,3) = "def" βββ operator_loc: (15,8)-(15,9) = "." βββ lparen_loc: (15,16)-(15,17) = "(" 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 039b014a1c..64a3ffa252 100644 --- a/test/prism/snapshots/whitequark/endless_method_forwarded_args_legacy.txt +++ b/test/prism/snapshots/whitequark/endless_method_forwarded_args_legacy.txt @@ -35,7 +35,6 @@ β βββ closing_loc: (1,22)-(1,23) = ")" β βββ block: β
βββ locals: [] - βββ locals_body_index: 0 βββ def_keyword_loc: (1,0)-(1,3) = "def" βββ operator_loc: β
βββ lparen_loc: (1,7)-(1,8) = "(" diff --git a/test/prism/snapshots/whitequark/endless_method_with_rescue_mod.txt b/test/prism/snapshots/whitequark/endless_method_with_rescue_mod.txt index ba50d04c7b..8f8e770fa9 100644 --- a/test/prism/snapshots/whitequark/endless_method_with_rescue_mod.txt +++ b/test/prism/snapshots/whitequark/endless_method_with_rescue_mod.txt @@ -20,7 +20,6 @@ β β @ IntegerNode (location: (1,19)-(1,20)) β β βββ flags: decimal β βββ locals: [] - β βββ locals_body_index: 0 β βββ def_keyword_loc: (1,0)-(1,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: (1,5)-(1,6) = "(" @@ -45,7 +44,6 @@ β @ IntegerNode (location: (3,24)-(3,25)) β βββ flags: decimal βββ locals: [] - βββ locals_body_index: 0 βββ def_keyword_loc: (3,0)-(3,3) = "def" βββ operator_loc: (3,8)-(3,9) = "." βββ lparen_loc: (3,10)-(3,11) = "(" diff --git a/test/prism/snapshots/whitequark/endless_method_without_args.txt b/test/prism/snapshots/whitequark/endless_method_without_args.txt index 1f02c3f940..b7db96171e 100644 --- a/test/prism/snapshots/whitequark/endless_method_without_args.txt +++ b/test/prism/snapshots/whitequark/endless_method_without_args.txt @@ -14,7 +14,6 @@ β β βββ @ IntegerNode (location: (1,10)-(1,12)) β β βββ flags: decimal β βββ locals: [] - β βββ locals_body_index: 0 β βββ def_keyword_loc: (1,0)-(1,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: β
@@ -37,7 +36,6 @@ β β βββ rescue_expression: β β @ NilNode (location: (3,20)-(3,23)) β βββ locals: [] - β βββ locals_body_index: 0 β βββ def_keyword_loc: (3,0)-(3,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: β
@@ -56,7 +54,6 @@ β β βββ @ IntegerNode (location: (5,15)-(5,17)) β β βββ flags: decimal β βββ locals: [] - β βββ locals_body_index: 0 β βββ def_keyword_loc: (5,0)-(5,3) = "def" β βββ operator_loc: (5,8)-(5,9) = "." β βββ lparen_loc: β
@@ -80,7 +77,6 @@ β βββ rescue_expression: β @ NilNode (location: (7,25)-(7,28)) βββ locals: [] - βββ locals_body_index: 0 βββ def_keyword_loc: (7,0)-(7,3) = "def" βββ operator_loc: (7,8)-(7,9) = "." βββ lparen_loc: β
diff --git a/test/prism/snapshots/whitequark/forward_arg.txt b/test/prism/snapshots/whitequark/forward_arg.txt index 0ec875106d..17504c64e0 100644 --- a/test/prism/snapshots/whitequark/forward_arg.txt +++ b/test/prism/snapshots/whitequark/forward_arg.txt @@ -35,7 +35,6 @@ β βββ closing_loc: (1,21)-(1,22) = ")" β βββ block: β
βββ locals: [] - βββ locals_body_index: 0 βββ 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 a85400a37f..90b4965543 100644 --- a/test/prism/snapshots/whitequark/forward_arg_with_open_args.txt +++ b/test/prism/snapshots/whitequark/forward_arg_with_open_args.txt @@ -39,7 +39,6 @@ β β β βββ closing_loc: (2,9)-(2,10) = ")" β β β βββ block: β
β β βββ locals: [] - β β βββ locals_body_index: 0 β β βββ def_keyword_loc: (1,1)-(1,4) = "def" β β βββ operator_loc: β
β β βββ lparen_loc: β
@@ -84,7 +83,6 @@ β β β βββ closing_loc: (5,21)-(5,22) = ")" β β β βββ block: β
β β βββ locals: [] - β β βββ locals_body_index: 0 β β βββ def_keyword_loc: (5,1)-(5,4) = "def" β β βββ operator_loc: β
β β βββ lparen_loc: β
@@ -109,7 +107,6 @@ β β βββ block: β
β βββ body: β
β βββ locals: [] - β βββ locals_body_index: 0 β βββ def_keyword_loc: (7,0)-(7,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: β
@@ -148,7 +145,6 @@ β β βββ closing_loc: (10,20)-(10,21) = ")" β β βββ block: β
β βββ locals: [] - β βββ locals_body_index: 0 β βββ def_keyword_loc: (10,0)-(10,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: β
@@ -190,7 +186,6 @@ β β βββ closing_loc: (13,9)-(13,10) = ")" β β βββ block: β
β βββ locals: [:a] - β βββ locals_body_index: 1 β βββ def_keyword_loc: (12,0)-(12,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: β
@@ -232,7 +227,6 @@ β β βββ closing_loc: (16,23)-(16,24) = ")" β β βββ block: β
β βββ locals: [:a] - β βββ locals_body_index: 1 β βββ def_keyword_loc: (16,0)-(16,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: β
@@ -266,7 +260,6 @@ β β βββ block: β
β βββ body: β
β βββ locals: [:a, :b] - β βββ locals_body_index: 2 β βββ def_keyword_loc: (18,0)-(18,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: β
@@ -313,7 +306,6 @@ β β βββ closing_loc: (22,9)-(22,10) = ")" β β βββ block: β
β βββ locals: [:b] - β βββ locals_body_index: 1 β βββ def_keyword_loc: (21,0)-(21,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: β
@@ -360,7 +352,6 @@ β β βββ closing_loc: (25,27)-(25,28) = ")" β β βββ block: β
β βββ locals: [:b] - β βββ locals_body_index: 1 β βββ def_keyword_loc: (25,0)-(25,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: β
@@ -402,7 +393,6 @@ β βββ closing_loc: (27,23)-(27,24) = ")" β βββ block: β
βββ locals: [:a] - βββ locals_body_index: 1 βββ 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 d2774737e9..f46967ba50 100644 --- a/test/prism/snapshots/whitequark/forward_args_legacy.txt +++ b/test/prism/snapshots/whitequark/forward_args_legacy.txt @@ -35,7 +35,6 @@ β β βββ closing_loc: (1,21)-(1,22) = ")" β β βββ block: β
β βββ locals: [] - β βββ locals_body_index: 0 β βββ def_keyword_loc: (1,0)-(1,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: (1,7)-(1,8) = "(" @@ -58,7 +57,6 @@ β β βββ block: β
β βββ body: β
β βββ locals: [] - β βββ locals_body_index: 0 β βββ def_keyword_loc: (3,0)-(3,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: (3,7)-(3,8) = "(" @@ -93,7 +91,6 @@ β βββ rparen_loc: (5,23)-(5,24) = ")" β βββ block: β
βββ locals: [] - βββ locals_body_index: 0 βββ def_keyword_loc: (5,0)-(5,3) = "def" βββ operator_loc: β
βββ lparen_loc: (5,7)-(5,8) = "(" diff --git a/test/prism/snapshots/whitequark/forwarded_argument_with_kwrestarg.txt b/test/prism/snapshots/whitequark/forwarded_argument_with_kwrestarg.txt index d7a1d53d83..c06818a98b 100644 --- a/test/prism/snapshots/whitequark/forwarded_argument_with_kwrestarg.txt +++ b/test/prism/snapshots/whitequark/forwarded_argument_with_kwrestarg.txt @@ -50,7 +50,6 @@ β βββ closing_loc: (1,39)-(1,40) = ")" β βββ block: β
βββ locals: [:argument] - βββ locals_body_index: 1 βββ def_keyword_loc: (1,0)-(1,3) = "def" βββ operator_loc: β
βββ lparen_loc: (1,7)-(1,8) = "(" diff --git a/test/prism/snapshots/whitequark/forwarded_argument_with_restarg.txt b/test/prism/snapshots/whitequark/forwarded_argument_with_restarg.txt index df93c463a3..367fad7fec 100644 --- a/test/prism/snapshots/whitequark/forwarded_argument_with_restarg.txt +++ b/test/prism/snapshots/whitequark/forwarded_argument_with_restarg.txt @@ -47,7 +47,6 @@ β βββ closing_loc: (1,37)-(1,38) = ")" β βββ block: β
βββ locals: [:argument] - βββ locals_body_index: 1 βββ def_keyword_loc: (1,0)-(1,3) = "def" βββ operator_loc: β
βββ lparen_loc: (1,7)-(1,8) = "(" diff --git a/test/prism/snapshots/whitequark/forwarded_kwrestarg.txt b/test/prism/snapshots/whitequark/forwarded_kwrestarg.txt index 2d44055e21..adaf111fd7 100644 --- a/test/prism/snapshots/whitequark/forwarded_kwrestarg.txt +++ b/test/prism/snapshots/whitequark/forwarded_kwrestarg.txt @@ -44,7 +44,6 @@ β βββ closing_loc: (1,19)-(1,20) = ")" β βββ block: β
βββ locals: [] - βββ locals_body_index: 0 βββ def_keyword_loc: (1,0)-(1,3) = "def" βββ operator_loc: β
βββ lparen_loc: (1,7)-(1,8) = "(" diff --git a/test/prism/snapshots/whitequark/forwarded_kwrestarg_with_additional_kwarg.txt b/test/prism/snapshots/whitequark/forwarded_kwrestarg_with_additional_kwarg.txt index 5f29c7d61d..a03421455c 100644 --- a/test/prism/snapshots/whitequark/forwarded_kwrestarg_with_additional_kwarg.txt +++ b/test/prism/snapshots/whitequark/forwarded_kwrestarg_with_additional_kwarg.txt @@ -55,7 +55,6 @@ β βββ closing_loc: (1,35)-(1,36) = ")" β βββ block: β
βββ locals: [] - βββ locals_body_index: 0 βββ def_keyword_loc: (1,0)-(1,3) = "def" βββ operator_loc: β
βββ lparen_loc: (1,7)-(1,8) = "(" diff --git a/test/prism/snapshots/whitequark/forwarded_restarg.txt b/test/prism/snapshots/whitequark/forwarded_restarg.txt index ac24409eb4..17ff8894af 100644 --- a/test/prism/snapshots/whitequark/forwarded_restarg.txt +++ b/test/prism/snapshots/whitequark/forwarded_restarg.txt @@ -41,7 +41,6 @@ β βββ closing_loc: (1,17)-(1,18) = ")" β βββ block: β
βββ locals: [] - βββ locals_body_index: 0 βββ def_keyword_loc: (1,0)-(1,3) = "def" βββ operator_loc: β
βββ lparen_loc: (1,7)-(1,8) = "(" diff --git a/test/prism/snapshots/whitequark/kwarg.txt b/test/prism/snapshots/whitequark/kwarg.txt index 6f54b17f6e..5969402356 100644 --- a/test/prism/snapshots/whitequark/kwarg.txt +++ b/test/prism/snapshots/whitequark/kwarg.txt @@ -22,7 +22,6 @@ β βββ block: β
βββ body: β
βββ locals: [:foo] - βββ locals_body_index: 1 βββ def_keyword_loc: (1,0)-(1,3) = "def" βββ operator_loc: β
βββ lparen_loc: (1,5)-(1,6) = "(" diff --git a/test/prism/snapshots/whitequark/kwnilarg.txt b/test/prism/snapshots/whitequark/kwnilarg.txt index 3777a97e60..492f817696 100644 --- a/test/prism/snapshots/whitequark/kwnilarg.txt +++ b/test/prism/snapshots/whitequark/kwnilarg.txt @@ -5,7 +5,6 @@ βββ body: (length: 3) βββ @ LambdaNode (location: (1,0)-(1,12)) β βββ locals: [] - β βββ locals_body_index: 0 β βββ operator_loc: (1,0)-(1,2) = "->" β βββ opening_loc: (1,10)-(1,11) = "{" β βββ closing_loc: (1,11)-(1,12) = "}" @@ -45,7 +44,6 @@ β β βββ block: β
β βββ body: β
β βββ locals: [] - β βββ locals_body_index: 0 β βββ def_keyword_loc: (3,0)-(3,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: (3,5)-(3,6) = "(" @@ -64,7 +62,6 @@ βββ block: @ BlockNode (location: (5,2)-(5,13)) βββ locals: [] - βββ locals_body_index: 0 βββ parameters: β @ BlockParametersNode (location: (5,4)-(5,11)) β βββ parameters: diff --git a/test/prism/snapshots/whitequark/kwoptarg.txt b/test/prism/snapshots/whitequark/kwoptarg.txt index dbe465e80c..cb4e6c39e7 100644 --- a/test/prism/snapshots/whitequark/kwoptarg.txt +++ b/test/prism/snapshots/whitequark/kwoptarg.txt @@ -25,7 +25,6 @@ β βββ block: β
βββ body: β
βββ locals: [:foo] - βββ locals_body_index: 1 βββ def_keyword_loc: (1,0)-(1,3) = "def" βββ operator_loc: β
βββ lparen_loc: (1,5)-(1,6) = "(" diff --git a/test/prism/snapshots/whitequark/kwoptarg_with_kwrestarg_and_forwarded_args.txt b/test/prism/snapshots/whitequark/kwoptarg_with_kwrestarg_and_forwarded_args.txt index d951497293..6d0bdfb817 100644 --- a/test/prism/snapshots/whitequark/kwoptarg_with_kwrestarg_and_forwarded_args.txt +++ b/test/prism/snapshots/whitequark/kwoptarg_with_kwrestarg_and_forwarded_args.txt @@ -50,7 +50,6 @@ β βββ closing_loc: (1,23)-(1,24) = ")" β βββ block: β
βββ locals: [:a] - βββ locals_body_index: 1 βββ def_keyword_loc: (1,0)-(1,3) = "def" βββ operator_loc: β
βββ lparen_loc: (1,5)-(1,6) = "(" diff --git a/test/prism/snapshots/whitequark/kwrestarg_named.txt b/test/prism/snapshots/whitequark/kwrestarg_named.txt index a31787e3d6..d24426aed5 100644 --- a/test/prism/snapshots/whitequark/kwrestarg_named.txt +++ b/test/prism/snapshots/whitequark/kwrestarg_named.txt @@ -23,7 +23,6 @@ β βββ block: β
βββ body: β
βββ locals: [:foo] - βββ locals_body_index: 1 βββ def_keyword_loc: (1,0)-(1,3) = "def" βββ operator_loc: β
βββ lparen_loc: (1,5)-(1,6) = "(" diff --git a/test/prism/snapshots/whitequark/kwrestarg_unnamed.txt b/test/prism/snapshots/whitequark/kwrestarg_unnamed.txt index 92e65deb56..d471e5ab09 100644 --- a/test/prism/snapshots/whitequark/kwrestarg_unnamed.txt +++ b/test/prism/snapshots/whitequark/kwrestarg_unnamed.txt @@ -23,7 +23,6 @@ β βββ block: β
βββ body: β
βββ locals: [] - βββ locals_body_index: 0 βββ def_keyword_loc: (1,0)-(1,3) = "def" βββ operator_loc: β
βββ lparen_loc: (1,5)-(1,6) = "(" diff --git a/test/prism/snapshots/whitequark/lbrace_arg_after_command_args.txt b/test/prism/snapshots/whitequark/lbrace_arg_after_command_args.txt index 61154fb1e3..f877fcd270 100644 --- a/test/prism/snapshots/whitequark/lbrace_arg_after_command_args.txt +++ b/test/prism/snapshots/whitequark/lbrace_arg_after_command_args.txt @@ -30,7 +30,6 @@ βββ block: @ BlockNode (location: (1,9)-(1,22)) βββ locals: [] - βββ locals_body_index: 0 βββ parameters: β
βββ body: β @ StatementsNode (location: (1,11)-(1,20)) @@ -47,7 +46,6 @@ β βββ block: β @ BlockNode (location: (1,13)-(1,20)) β βββ locals: [] - β βββ locals_body_index: 0 β βββ parameters: β
β βββ body: β
β βββ opening_loc: (1,13)-(1,15) = "do" diff --git a/test/prism/snapshots/whitequark/method_definition_in_while_cond.txt b/test/prism/snapshots/whitequark/method_definition_in_while_cond.txt index ca1cd594c5..963686b73e 100644 --- a/test/prism/snapshots/whitequark/method_definition_in_while_cond.txt +++ b/test/prism/snapshots/whitequark/method_definition_in_while_cond.txt @@ -34,7 +34,6 @@ β β β β βββ block: β β β β @ BlockNode (location: (1,22)-(1,28)) β β β β βββ locals: [] - β β β β βββ locals_body_index: 0 β β β β βββ parameters: β
β β β β βββ body: β
β β β β βββ opening_loc: (1,22)-(1,24) = "do" @@ -46,7 +45,6 @@ β β β βββ block: β
β β βββ body: β
β β βββ locals: [:a] - β β βββ locals_body_index: 1 β β βββ def_keyword_loc: (1,6)-(1,9) = "def" β β βββ operator_loc: β
β β βββ lparen_loc: β
@@ -84,13 +82,11 @@ β β β βββ block: β β β @ BlockNode (location: (3,19)-(3,25)) β β β βββ locals: [] - β β β βββ locals_body_index: 0 β β β βββ parameters: β
β β β βββ body: β
β β β βββ opening_loc: (3,19)-(3,21) = "do" β β β βββ closing_loc: (3,22)-(3,25) = "end" β β βββ locals: [] - β β βββ locals_body_index: 0 β β βββ def_keyword_loc: (3,6)-(3,9) = "def" β β βββ operator_loc: β
β β βββ lparen_loc: β
@@ -135,7 +131,6 @@ β β β β βββ block: β β β β @ BlockNode (location: (5,27)-(5,33)) β β β β βββ locals: [] - β β β β βββ locals_body_index: 0 β β β β βββ parameters: β
β β β β βββ body: β
β β β β βββ opening_loc: (5,27)-(5,29) = "do" @@ -147,7 +142,6 @@ β β β βββ block: β
β β βββ body: β
β β βββ locals: [:a] - β β βββ locals_body_index: 1 β β βββ def_keyword_loc: (5,6)-(5,9) = "def" β β βββ operator_loc: (5,14)-(5,15) = "." β β βββ lparen_loc: β
@@ -186,13 +180,11 @@ β β βββ block: β β @ BlockNode (location: (7,24)-(7,30)) β β βββ locals: [] - β β βββ locals_body_index: 0 β β βββ parameters: β
β β βββ body: β
β β βββ opening_loc: (7,24)-(7,26) = "do" β β βββ closing_loc: (7,27)-(7,30) = "end" β βββ locals: [] - β βββ locals_body_index: 0 β βββ def_keyword_loc: (7,6)-(7,9) = "def" β βββ operator_loc: (7,14)-(7,15) = "." β βββ lparen_loc: β
diff --git a/test/prism/snapshots/whitequark/next_block.txt b/test/prism/snapshots/whitequark/next_block.txt index a2d4e9364c..f1d65a44ed 100644 --- a/test/prism/snapshots/whitequark/next_block.txt +++ b/test/prism/snapshots/whitequark/next_block.txt @@ -33,7 +33,6 @@ β βββ block: β @ BlockNode (location: (1,13)-(1,19)) β βββ locals: [] - β βββ locals_body_index: 0 β βββ parameters: β
β βββ body: β
β βββ opening_loc: (1,13)-(1,15) = "do" diff --git a/test/prism/snapshots/whitequark/numbered_args_after_27.txt b/test/prism/snapshots/whitequark/numbered_args_after_27.txt index 0cfffee407..56419adccd 100644 --- a/test/prism/snapshots/whitequark/numbered_args_after_27.txt +++ b/test/prism/snapshots/whitequark/numbered_args_after_27.txt @@ -5,7 +5,6 @@ βββ body: (length: 4) βββ @ LambdaNode (location: (1,0)-(1,17)) β βββ locals: [:_1, :_2, :_3, :_4, :_5, :_6, :_7, :_8, :_9] - β βββ locals_body_index: 9 β βββ operator_loc: (1,0)-(1,2) = "->" β βββ opening_loc: (1,3)-(1,5) = "do" β βββ closing_loc: (1,14)-(1,17) = "end" @@ -36,7 +35,6 @@ β βββ block: β
βββ @ LambdaNode (location: (3,0)-(3,13)) β βββ locals: [:_1, :_2, :_3, :_4, :_5, :_6, :_7, :_8, :_9] - β βββ locals_body_index: 9 β βββ operator_loc: (3,0)-(3,2) = "->" β βββ opening_loc: (3,3)-(3,4) = "{" β βββ closing_loc: (3,12)-(3,13) = "}" @@ -77,7 +75,6 @@ β βββ block: β @ BlockNode (location: (5,2)-(5,16)) β βββ locals: [:_1, :_2, :_3, :_4, :_5, :_6, :_7, :_8, :_9] - β βββ locals_body_index: 9 β βββ parameters: β β @ NumberedParametersNode (location: (5,2)-(5,16)) β β βββ maximum: 9 @@ -117,7 +114,6 @@ βββ block: @ BlockNode (location: (7,2)-(7,13)) βββ locals: [:_1, :_2, :_3, :_4, :_5, :_6, :_7, :_8, :_9] - βββ locals_body_index: 9 βββ parameters: β @ NumberedParametersNode (location: (7,2)-(7,13)) β βββ maximum: 9 diff --git a/test/prism/snapshots/whitequark/numparam_outside_block.txt b/test/prism/snapshots/whitequark/numparam_outside_block.txt index 8ee53070fb..d79aedf7f9 100644 --- a/test/prism/snapshots/whitequark/numparam_outside_block.txt +++ b/test/prism/snapshots/whitequark/numparam_outside_block.txt @@ -85,7 +85,6 @@ β β βββ closing_loc: β
β β βββ block: β
β βββ locals: [] - β βββ locals_body_index: 0 β βββ def_keyword_loc: (7,0)-(7,3) = "def" β βββ operator_loc: (7,8)-(7,9) = "." β βββ lparen_loc: β
diff --git a/test/prism/snapshots/whitequark/optarg.txt b/test/prism/snapshots/whitequark/optarg.txt index ed8c1be940..15ac9e00ef 100644 --- a/test/prism/snapshots/whitequark/optarg.txt +++ b/test/prism/snapshots/whitequark/optarg.txt @@ -26,7 +26,6 @@ β β βββ block: β
β βββ body: β
β βββ locals: [:foo] - β βββ locals_body_index: 1 β βββ def_keyword_loc: (1,0)-(1,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: β
@@ -64,7 +63,6 @@ β βββ block: β
βββ body: β
βββ locals: [:foo, :bar] - βββ locals_body_index: 2 βββ def_keyword_loc: (3,0)-(3,3) = "def" βββ operator_loc: β
βββ lparen_loc: (3,5)-(3,6) = "(" diff --git a/test/prism/snapshots/whitequark/parser_bug_272.txt b/test/prism/snapshots/whitequark/parser_bug_272.txt index 193c324524..f158f255b9 100644 --- a/test/prism/snapshots/whitequark/parser_bug_272.txt +++ b/test/prism/snapshots/whitequark/parser_bug_272.txt @@ -20,7 +20,6 @@ βββ block: @ BlockNode (location: (1,5)-(1,15)) βββ locals: [:c] - βββ locals_body_index: 1 βββ parameters: β @ BlockParametersNode (location: (1,8)-(1,11)) β βββ parameters: diff --git a/test/prism/snapshots/whitequark/parser_bug_490.txt b/test/prism/snapshots/whitequark/parser_bug_490.txt index f33f18623c..9e4cd2bd15 100644 --- a/test/prism/snapshots/whitequark/parser_bug_490.txt +++ b/test/prism/snapshots/whitequark/parser_bug_490.txt @@ -28,7 +28,6 @@ β β β βββ operator_loc: (1,24)-(1,25) = "=" β β βββ end_keyword_loc: (1,31)-(1,34) = "end" β βββ locals: [] - β βββ locals_body_index: 0 β βββ def_keyword_loc: (1,0)-(1,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: β
@@ -65,7 +64,6 @@ β β β βββ name: :C β β βββ end_keyword_loc: (3,36)-(3,39) = "end" β βββ locals: [] - β βββ locals_body_index: 0 β βββ def_keyword_loc: (3,0)-(3,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: β
@@ -100,7 +98,6 @@ β β βββ name: :M β βββ end_keyword_loc: (5,37)-(5,40) = "end" βββ locals: [] - βββ locals_body_index: 0 βββ def_keyword_loc: (5,0)-(5,3) = "def" βββ operator_loc: β
βββ lparen_loc: β
diff --git a/test/prism/snapshots/whitequark/parser_bug_507.txt b/test/prism/snapshots/whitequark/parser_bug_507.txt index 294e78a2f1..7e5fc9ee35 100644 --- a/test/prism/snapshots/whitequark/parser_bug_507.txt +++ b/test/prism/snapshots/whitequark/parser_bug_507.txt @@ -10,7 +10,6 @@ βββ value: β @ LambdaNode (location: (1,4)-(1,19)) β βββ locals: [:args] - β βββ locals_body_index: 1 β βββ operator_loc: (1,4)-(1,6) = "->" β βββ opening_loc: (1,13)-(1,15) = "do" β βββ closing_loc: (1,16)-(1,19) = "end" diff --git a/test/prism/snapshots/whitequark/parser_bug_525.txt b/test/prism/snapshots/whitequark/parser_bug_525.txt index 9fddff9981..a69b8a207f 100644 --- a/test/prism/snapshots/whitequark/parser_bug_525.txt +++ b/test/prism/snapshots/whitequark/parser_bug_525.txt @@ -41,7 +41,6 @@ βββ block: @ BlockNode (location: (1,12)-(1,32)) βββ locals: [] - βββ locals_body_index: 0 βββ parameters: β
βββ body: β @ StatementsNode (location: (1,16)-(1,27)) @@ -58,7 +57,6 @@ β βββ block: β @ BlockNode (location: (1,21)-(1,27)) β βββ locals: [] - β βββ locals_body_index: 0 β βββ parameters: β
β βββ body: β
β βββ opening_loc: (1,21)-(1,23) = "do" diff --git a/test/prism/snapshots/whitequark/parser_bug_604.txt b/test/prism/snapshots/whitequark/parser_bug_604.txt index d0078ca233..2577e3bc55 100644 --- a/test/prism/snapshots/whitequark/parser_bug_604.txt +++ b/test/prism/snapshots/whitequark/parser_bug_604.txt @@ -51,7 +51,6 @@ βββ block: @ BlockNode (location: (1,8)-(1,14)) βββ locals: [] - βββ locals_body_index: 0 βββ parameters: β
βββ body: β
βββ opening_loc: (1,8)-(1,10) = "do" diff --git a/test/prism/snapshots/whitequark/parser_bug_645.txt b/test/prism/snapshots/whitequark/parser_bug_645.txt index a2d0d3d28c..5700f3c3db 100644 --- a/test/prism/snapshots/whitequark/parser_bug_645.txt +++ b/test/prism/snapshots/whitequark/parser_bug_645.txt @@ -5,7 +5,6 @@ βββ body: (length: 1) βββ @ LambdaNode (location: (1,0)-(1,14)) βββ locals: [:arg] - βββ locals_body_index: 1 βββ operator_loc: (1,0)-(1,2) = "->" βββ opening_loc: (1,12)-(1,13) = "{" βββ closing_loc: (1,13)-(1,14) = "}" diff --git a/test/prism/snapshots/whitequark/procarg0.txt b/test/prism/snapshots/whitequark/procarg0.txt index 09b24c2f7c..378c7e5b36 100644 --- a/test/prism/snapshots/whitequark/procarg0.txt +++ b/test/prism/snapshots/whitequark/procarg0.txt @@ -15,7 +15,6 @@ β βββ block: β @ BlockNode (location: (1,2)-(1,18)) β βββ locals: [:foo, :bar] - β βββ locals_body_index: 2 β βββ parameters: β β @ BlockParametersNode (location: (1,4)-(1,16)) β β βββ parameters: @@ -57,7 +56,6 @@ βββ block: @ BlockNode (location: (3,2)-(3,11)) βββ locals: [:foo] - βββ locals_body_index: 1 βββ parameters: β @ BlockParametersNode (location: (3,4)-(3,9)) β βββ parameters: diff --git a/test/prism/snapshots/whitequark/rescue_in_lambda_block.txt b/test/prism/snapshots/whitequark/rescue_in_lambda_block.txt index 1b46b0f258..72b6842f42 100644 --- a/test/prism/snapshots/whitequark/rescue_in_lambda_block.txt +++ b/test/prism/snapshots/whitequark/rescue_in_lambda_block.txt @@ -5,7 +5,6 @@ βββ body: (length: 1) βββ @ LambdaNode (location: (1,0)-(1,17)) βββ locals: [] - βββ locals_body_index: 0 βββ operator_loc: (1,0)-(1,2) = "->" βββ opening_loc: (1,3)-(1,5) = "do" βββ closing_loc: (1,14)-(1,17) = "end" diff --git a/test/prism/snapshots/whitequark/rescue_without_begin_end.txt b/test/prism/snapshots/whitequark/rescue_without_begin_end.txt index b7596e0b0b..22b9b4035e 100644 --- a/test/prism/snapshots/whitequark/rescue_without_begin_end.txt +++ b/test/prism/snapshots/whitequark/rescue_without_begin_end.txt @@ -15,7 +15,6 @@ βββ block: @ BlockNode (location: (1,5)-(1,30)) βββ locals: [] - βββ locals_body_index: 0 βββ parameters: β
βββ body: β @ BeginNode (location: (1,9)-(1,30)) diff --git a/test/prism/snapshots/whitequark/restarg_named.txt b/test/prism/snapshots/whitequark/restarg_named.txt index 02acbfde84..fab9dd9a79 100644 --- a/test/prism/snapshots/whitequark/restarg_named.txt +++ b/test/prism/snapshots/whitequark/restarg_named.txt @@ -23,7 +23,6 @@ β βββ block: β
βββ body: β
βββ locals: [:foo] - βββ locals_body_index: 1 βββ def_keyword_loc: (1,0)-(1,3) = "def" βββ operator_loc: β
βββ lparen_loc: (1,5)-(1,6) = "(" diff --git a/test/prism/snapshots/whitequark/restarg_unnamed.txt b/test/prism/snapshots/whitequark/restarg_unnamed.txt index cf8c57f004..077230f7ba 100644 --- a/test/prism/snapshots/whitequark/restarg_unnamed.txt +++ b/test/prism/snapshots/whitequark/restarg_unnamed.txt @@ -23,7 +23,6 @@ β βββ block: β
βββ body: β
βββ locals: [] - βββ locals_body_index: 0 βββ def_keyword_loc: (1,0)-(1,3) = "def" βββ operator_loc: β
βββ lparen_loc: (1,5)-(1,6) = "(" diff --git a/test/prism/snapshots/whitequark/return_block.txt b/test/prism/snapshots/whitequark/return_block.txt index 4843f13f3b..5b8141e4f3 100644 --- a/test/prism/snapshots/whitequark/return_block.txt +++ b/test/prism/snapshots/whitequark/return_block.txt @@ -34,7 +34,6 @@ βββ block: @ BlockNode (location: (1,15)-(1,21)) βββ locals: [] - βββ locals_body_index: 0 βββ parameters: β
βββ body: β
βββ opening_loc: (1,15)-(1,17) = "do" diff --git a/test/prism/snapshots/whitequark/ruby_bug_10653.txt b/test/prism/snapshots/whitequark/ruby_bug_10653.txt index ed8d43d1f2..2e25978544 100644 --- a/test/prism/snapshots/whitequark/ruby_bug_10653.txt +++ b/test/prism/snapshots/whitequark/ruby_bug_10653.txt @@ -23,7 +23,6 @@ β β βββ block: β β @ BlockNode (location: (1,14)-(1,20)) β β βββ locals: [] - β β βββ locals_body_index: 0 β β βββ parameters: β
β β βββ body: β
β β βββ opening_loc: (1,14)-(1,16) = "do" @@ -46,7 +45,6 @@ β β β βββ block: β β β @ BlockNode (location: (1,27)-(1,33)) β β β βββ locals: [] - β β β βββ locals_body_index: 0 β β β βββ parameters: β
β β β βββ body: β
β β β βββ opening_loc: (1,27)-(1,29) = "do" @@ -73,7 +71,6 @@ β β βββ block: β β @ BlockNode (location: (3,14)-(3,16)) β β βββ locals: [] - β β βββ locals_body_index: 0 β β βββ parameters: β
β β βββ body: β
β β βββ opening_loc: (3,14)-(3,15) = "{" @@ -96,7 +93,6 @@ β β β βββ block: β β β @ BlockNode (location: (3,23)-(3,25)) β β β βββ locals: [] - β β β βββ locals_body_index: 0 β β β βββ parameters: β
β β β βββ body: β
β β β βββ opening_loc: (3,23)-(3,24) = "{" @@ -125,7 +121,6 @@ β βββ block: β @ BlockNode (location: (5,13)-(5,27)) β βββ locals: [:n] - β βββ locals_body_index: 1 β βββ parameters: β β @ BlockParametersNode (location: (5,16)-(5,19)) β β βββ parameters: diff --git a/test/prism/snapshots/whitequark/ruby_bug_11107.txt b/test/prism/snapshots/whitequark/ruby_bug_11107.txt index dd88ad9093..36ece50d88 100644 --- a/test/prism/snapshots/whitequark/ruby_bug_11107.txt +++ b/test/prism/snapshots/whitequark/ruby_bug_11107.txt @@ -16,7 +16,6 @@ β βββ arguments: (length: 1) β βββ @ LambdaNode (location: (1,2)-(1,24)) β βββ locals: [] - β βββ locals_body_index: 0 β βββ operator_loc: (1,2)-(1,4) = "->" β βββ opening_loc: (1,7)-(1,9) = "do" β βββ closing_loc: (1,21)-(1,24) = "end" @@ -41,7 +40,6 @@ β βββ block: β @ BlockNode (location: (1,14)-(1,20)) β βββ locals: [] - β βββ locals_body_index: 0 β βββ parameters: β
β βββ body: β
β βββ opening_loc: (1,14)-(1,16) = "do" diff --git a/test/prism/snapshots/whitequark/ruby_bug_11380.txt b/test/prism/snapshots/whitequark/ruby_bug_11380.txt index ffc4e496cb..9fa00299c6 100644 --- a/test/prism/snapshots/whitequark/ruby_bug_11380.txt +++ b/test/prism/snapshots/whitequark/ruby_bug_11380.txt @@ -16,7 +16,6 @@ β βββ arguments: (length: 2) β βββ @ LambdaNode (location: (1,2)-(1,15)) β β βββ locals: [] - β β βββ locals_body_index: 0 β β βββ operator_loc: (1,2)-(1,4) = "->" β β βββ opening_loc: (1,5)-(1,6) = "{" β β βββ closing_loc: (1,14)-(1,15) = "}" @@ -49,7 +48,6 @@ βββ block: @ BlockNode (location: (1,22)-(1,28)) βββ locals: [] - βββ locals_body_index: 0 βββ parameters: β
βββ body: β
βββ opening_loc: (1,22)-(1,24) = "do" diff --git a/test/prism/snapshots/whitequark/ruby_bug_11873.txt b/test/prism/snapshots/whitequark/ruby_bug_11873.txt index 4408ff6e2d..af04f59b5e 100644 --- a/test/prism/snapshots/whitequark/ruby_bug_11873.txt +++ b/test/prism/snapshots/whitequark/ruby_bug_11873.txt @@ -60,7 +60,6 @@ β βββ block: β @ BlockNode (location: (1,14)-(1,20)) β βββ locals: [] - β βββ locals_body_index: 0 β βββ parameters: β
β βββ body: β
β βββ opening_loc: (1,14)-(1,16) = "do" @@ -122,7 +121,6 @@ β βββ block: β @ BlockNode (location: (3,14)-(3,20)) β βββ locals: [] - β βββ locals_body_index: 0 β βββ parameters: β
β βββ body: β
β βββ opening_loc: (3,14)-(3,16) = "do" @@ -184,7 +182,6 @@ β βββ block: β @ BlockNode (location: (5,15)-(5,21)) β βββ locals: [] - β βββ locals_body_index: 0 β βββ parameters: β
β βββ body: β
β βββ opening_loc: (5,15)-(5,17) = "do" @@ -246,7 +243,6 @@ β βββ block: β @ BlockNode (location: (7,15)-(7,21)) β βββ locals: [] - β βββ locals_body_index: 0 β βββ parameters: β
β βββ body: β
β βββ opening_loc: (7,15)-(7,17) = "do" @@ -308,7 +304,6 @@ β βββ block: β @ BlockNode (location: (9,15)-(9,21)) β βββ locals: [] - β βββ locals_body_index: 0 β βββ parameters: β
β βββ body: β
β βββ opening_loc: (9,15)-(9,17) = "do" @@ -370,7 +365,6 @@ β βββ block: β @ BlockNode (location: (11,16)-(11,22)) β βββ locals: [] - β βββ locals_body_index: 0 β βββ parameters: β
β βββ body: β
β βββ opening_loc: (11,16)-(11,18) = "do" @@ -398,7 +392,6 @@ β β β βββ block: β β β @ BlockNode (location: (13,3)-(13,8)) β β β βββ locals: [] - β β β βββ locals_body_index: 0 β β β βββ parameters: β
β β β βββ body: β β β β @ StatementsNode (location: (13,4)-(13,7)) @@ -438,7 +431,6 @@ β βββ block: β @ BlockNode (location: (13,14)-(13,20)) β βββ locals: [] - β βββ locals_body_index: 0 β βββ parameters: β
β βββ body: β
β βββ opening_loc: (13,14)-(13,16) = "do" @@ -466,7 +458,6 @@ β β β βββ block: β β β @ BlockNode (location: (15,3)-(15,8)) β β β βββ locals: [] - β β β βββ locals_body_index: 0 β β β βββ parameters: β
β β β βββ body: β β β β @ StatementsNode (location: (15,4)-(15,7)) @@ -506,7 +497,6 @@ β βββ block: β @ BlockNode (location: (15,14)-(15,20)) β βββ locals: [] - β βββ locals_body_index: 0 β βββ parameters: β
β βββ body: β
β βββ opening_loc: (15,14)-(15,16) = "do" @@ -534,7 +524,6 @@ β β β βββ block: β β β @ BlockNode (location: (17,3)-(17,8)) β β β βββ locals: [] - β β β βββ locals_body_index: 0 β β β βββ parameters: β
β β β βββ body: β β β β @ StatementsNode (location: (17,4)-(17,7)) @@ -574,7 +563,6 @@ β βββ block: β @ BlockNode (location: (17,15)-(17,21)) β βββ locals: [] - β βββ locals_body_index: 0 β βββ parameters: β
β βββ body: β
β βββ opening_loc: (17,15)-(17,17) = "do" @@ -602,7 +590,6 @@ β β β βββ block: β β β @ BlockNode (location: (19,3)-(19,9)) β β β βββ locals: [] - β β β βββ locals_body_index: 0 β β β βββ parameters: β
β β β βββ body: β β β β @ StatementsNode (location: (19,4)-(19,8)) @@ -642,7 +629,6 @@ β βββ block: β @ BlockNode (location: (19,15)-(19,21)) β βββ locals: [] - β βββ locals_body_index: 0 β βββ parameters: β
β βββ body: β
β βββ opening_loc: (19,15)-(19,17) = "do" @@ -670,7 +656,6 @@ β β β βββ block: β β β @ BlockNode (location: (21,3)-(21,9)) β β β βββ locals: [] - β β β βββ locals_body_index: 0 β β β βββ parameters: β
β β β βββ body: β β β β @ StatementsNode (location: (21,4)-(21,8)) @@ -710,7 +695,6 @@ β βββ block: β @ BlockNode (location: (21,15)-(21,21)) β βββ locals: [] - β βββ locals_body_index: 0 β βββ parameters: β
β βββ body: β
β βββ opening_loc: (21,15)-(21,17) = "do" @@ -738,7 +722,6 @@ β β βββ block: β β @ BlockNode (location: (23,3)-(23,9)) β β βββ locals: [] - β β βββ locals_body_index: 0 β β βββ parameters: β
β β βββ body: β β β @ StatementsNode (location: (23,4)-(23,8)) @@ -778,7 +761,6 @@ βββ block: @ BlockNode (location: (23,16)-(23,22)) βββ locals: [] - βββ locals_body_index: 0 βββ parameters: β
βββ body: β
βββ opening_loc: (23,16)-(23,18) = "do" diff --git a/test/prism/snapshots/whitequark/ruby_bug_11873_a.txt b/test/prism/snapshots/whitequark/ruby_bug_11873_a.txt index 451fbb7540..a9e36c76a5 100644 --- a/test/prism/snapshots/whitequark/ruby_bug_11873_a.txt +++ b/test/prism/snapshots/whitequark/ruby_bug_11873_a.txt @@ -56,7 +56,6 @@ β βββ block: β @ BlockNode (location: (1,12)-(1,18)) β βββ locals: [] - β βββ locals_body_index: 0 β βββ parameters: β
β βββ body: β
β βββ opening_loc: (1,12)-(1,14) = "do" @@ -113,7 +112,6 @@ β βββ block: β @ BlockNode (location: (3,14)-(3,20)) β βββ locals: [] - β βββ locals_body_index: 0 β βββ parameters: β
β βββ body: β
β βββ opening_loc: (3,14)-(3,16) = "do" @@ -172,7 +170,6 @@ β βββ block: β @ BlockNode (location: (5,15)-(5,21)) β βββ locals: [] - β βββ locals_body_index: 0 β βββ parameters: β
β βββ body: β
β βββ opening_loc: (5,15)-(5,17) = "do" @@ -231,7 +228,6 @@ β βββ block: β @ BlockNode (location: (7,15)-(7,21)) β βββ locals: [] - β βββ locals_body_index: 0 β βββ parameters: β
β βββ body: β
β βββ opening_loc: (7,15)-(7,17) = "do" @@ -293,7 +289,6 @@ β βββ block: β @ BlockNode (location: (9,13)-(9,19)) β βββ locals: [] - β βββ locals_body_index: 0 β βββ parameters: β
β βββ body: β
β βββ opening_loc: (9,13)-(9,15) = "do" @@ -351,7 +346,6 @@ β βββ block: β @ BlockNode (location: (11,13)-(11,19)) β βββ locals: [] - β βββ locals_body_index: 0 β βββ parameters: β
β βββ body: β
β βββ opening_loc: (11,13)-(11,15) = "do" @@ -408,7 +402,6 @@ β βββ block: β @ BlockNode (location: (13,15)-(13,21)) β βββ locals: [] - β βββ locals_body_index: 0 β βββ parameters: β
β βββ body: β
β βββ opening_loc: (13,15)-(13,17) = "do" @@ -467,7 +460,6 @@ β βββ block: β @ BlockNode (location: (15,16)-(15,22)) β βββ locals: [] - β βββ locals_body_index: 0 β βββ parameters: β
β βββ body: β
β βββ opening_loc: (15,16)-(15,18) = "do" @@ -526,7 +518,6 @@ β βββ block: β @ BlockNode (location: (17,16)-(17,22)) β βββ locals: [] - β βββ locals_body_index: 0 β βββ parameters: β
β βββ body: β
β βββ opening_loc: (17,16)-(17,18) = "do" @@ -588,7 +579,6 @@ β βββ block: β @ BlockNode (location: (19,14)-(19,20)) β βββ locals: [] - β βββ locals_body_index: 0 β βββ parameters: β
β βββ body: β
β βββ opening_loc: (19,14)-(19,16) = "do" @@ -616,7 +606,6 @@ β β β βββ block: β β β @ BlockNode (location: (21,3)-(21,8)) β β β βββ locals: [] - β β β βββ locals_body_index: 0 β β β βββ parameters: β
β β β βββ body: β β β β @ StatementsNode (location: (21,4)-(21,7)) @@ -652,7 +641,6 @@ β βββ block: β @ BlockNode (location: (21,12)-(21,18)) β βββ locals: [] - β βββ locals_body_index: 0 β βββ parameters: β
β βββ body: β
β βββ opening_loc: (21,12)-(21,14) = "do" @@ -680,7 +668,6 @@ β β β βββ block: β β β @ BlockNode (location: (23,3)-(23,8)) β β β βββ locals: [] - β β β βββ locals_body_index: 0 β β β βββ parameters: β
β β β βββ body: β β β β @ StatementsNode (location: (23,4)-(23,7)) @@ -715,7 +702,6 @@ β βββ block: β @ BlockNode (location: (23,14)-(23,20)) β βββ locals: [] - β βββ locals_body_index: 0 β βββ parameters: β
β βββ body: β
β βββ opening_loc: (23,14)-(23,16) = "do" @@ -743,7 +729,6 @@ β β β βββ block: β β β @ BlockNode (location: (25,3)-(25,8)) β β β βββ locals: [] - β β β βββ locals_body_index: 0 β β β βββ parameters: β
β β β βββ body: β β β β @ StatementsNode (location: (25,4)-(25,7)) @@ -780,7 +765,6 @@ β βββ block: β @ BlockNode (location: (25,15)-(25,21)) β βββ locals: [] - β βββ locals_body_index: 0 β βββ parameters: β
β βββ body: β
β βββ opening_loc: (25,15)-(25,17) = "do" @@ -808,7 +792,6 @@ β β β βββ block: β β β @ BlockNode (location: (27,3)-(27,8)) β β β βββ locals: [] - β β β βββ locals_body_index: 0 β β β βββ parameters: β
β β β βββ body: β β β β @ StatementsNode (location: (27,4)-(27,7)) @@ -845,7 +828,6 @@ β βββ block: β @ BlockNode (location: (27,15)-(27,21)) β βββ locals: [] - β βββ locals_body_index: 0 β βββ parameters: β
β βββ body: β
β βββ opening_loc: (27,15)-(27,17) = "do" @@ -873,7 +855,6 @@ β β β βββ block: β β β @ BlockNode (location: (29,3)-(29,8)) β β β βββ locals: [] - β β β βββ locals_body_index: 0 β β β βββ parameters: β
β β β βββ body: β β β β @ StatementsNode (location: (29,4)-(29,7)) @@ -913,7 +894,6 @@ β βββ block: β @ BlockNode (location: (29,13)-(29,19)) β βββ locals: [] - β βββ locals_body_index: 0 β βββ parameters: β
β βββ body: β
β βββ opening_loc: (29,13)-(29,15) = "do" @@ -941,7 +921,6 @@ β β β βββ block: β β β @ BlockNode (location: (31,3)-(31,9)) β β β βββ locals: [] - β β β βββ locals_body_index: 0 β β β βββ parameters: β
β β β βββ body: β β β β @ StatementsNode (location: (31,4)-(31,8)) @@ -977,7 +956,6 @@ β βββ block: β @ BlockNode (location: (31,13)-(31,19)) β βββ locals: [] - β βββ locals_body_index: 0 β βββ parameters: β
β βββ body: β
β βββ opening_loc: (31,13)-(31,15) = "do" @@ -1005,7 +983,6 @@ β β β βββ block: β β β @ BlockNode (location: (33,3)-(33,9)) β β β βββ locals: [] - β β β βββ locals_body_index: 0 β β β βββ parameters: β
β β β βββ body: β β β β @ StatementsNode (location: (33,4)-(33,8)) @@ -1040,7 +1017,6 @@ β βββ block: β @ BlockNode (location: (33,15)-(33,21)) β βββ locals: [] - β βββ locals_body_index: 0 β βββ parameters: β
β βββ body: β
β βββ opening_loc: (33,15)-(33,17) = "do" @@ -1068,7 +1044,6 @@ β β β βββ block: β β β @ BlockNode (location: (35,3)-(35,9)) β β β βββ locals: [] - β β β βββ locals_body_index: 0 β β β βββ parameters: β
β β β βββ body: β β β β @ StatementsNode (location: (35,4)-(35,8)) @@ -1105,7 +1080,6 @@ β βββ block: β @ BlockNode (location: (35,16)-(35,22)) β βββ locals: [] - β βββ locals_body_index: 0 β βββ parameters: β
β βββ body: β
β βββ opening_loc: (35,16)-(35,18) = "do" @@ -1133,7 +1107,6 @@ β β β βββ block: β β β @ BlockNode (location: (37,3)-(37,9)) β β β βββ locals: [] - β β β βββ locals_body_index: 0 β β β βββ parameters: β
β β β βββ body: β β β β @ StatementsNode (location: (37,4)-(37,8)) @@ -1170,7 +1143,6 @@ β βββ block: β @ BlockNode (location: (37,16)-(37,22)) β βββ locals: [] - β βββ locals_body_index: 0 β βββ parameters: β
β βββ body: β
β βββ opening_loc: (37,16)-(37,18) = "do" @@ -1198,7 +1170,6 @@ β β βββ block: β β @ BlockNode (location: (39,3)-(39,9)) β β βββ locals: [] - β β βββ locals_body_index: 0 β β βββ parameters: β
β β βββ body: β β β @ StatementsNode (location: (39,4)-(39,8)) @@ -1238,7 +1209,6 @@ βββ block: @ BlockNode (location: (39,14)-(39,20)) βββ locals: [] - βββ locals_body_index: 0 βββ parameters: β
βββ body: β
βββ opening_loc: (39,14)-(39,16) = "do" diff --git a/test/prism/snapshots/whitequark/ruby_bug_11873_b.txt b/test/prism/snapshots/whitequark/ruby_bug_11873_b.txt index ab08a9421c..6aa8e55e54 100644 --- a/test/prism/snapshots/whitequark/ruby_bug_11873_b.txt +++ b/test/prism/snapshots/whitequark/ruby_bug_11873_b.txt @@ -26,7 +26,6 @@ β β βββ block: β β @ BlockNode (location: (1,3)-(1,13)) β β βββ locals: [] - β β βββ locals_body_index: 0 β β βββ parameters: β
β β βββ body: β β β @ StatementsNode (location: (1,4)-(1,12)) @@ -93,7 +92,6 @@ βββ block: @ BlockNode (location: (1,19)-(1,25)) βββ locals: [] - βββ locals_body_index: 0 βββ parameters: β
βββ body: β
βββ opening_loc: (1,19)-(1,21) = "do" diff --git a/test/prism/snapshots/whitequark/ruby_bug_12073.txt b/test/prism/snapshots/whitequark/ruby_bug_12073.txt index a9ee4d8fe5..159d272f25 100644 --- a/test/prism/snapshots/whitequark/ruby_bug_12073.txt +++ b/test/prism/snapshots/whitequark/ruby_bug_12073.txt @@ -86,7 +86,6 @@ β βββ closing_loc: β
β βββ block: β
βββ locals: [:raise] - βββ locals_body_index: 1 βββ def_keyword_loc: (3,0)-(3,3) = "def" βββ operator_loc: β
βββ lparen_loc: β
diff --git a/test/prism/snapshots/whitequark/ruby_bug_13547.txt b/test/prism/snapshots/whitequark/ruby_bug_13547.txt index b91873027d..eae9587ea0 100644 --- a/test/prism/snapshots/whitequark/ruby_bug_13547.txt +++ b/test/prism/snapshots/whitequark/ruby_bug_13547.txt @@ -25,7 +25,6 @@ βββ block: @ BlockNode (location: (1,7)-(1,9)) βββ locals: [] - βββ locals_body_index: 0 βββ parameters: β
βββ body: β
βββ opening_loc: (1,7)-(1,8) = "{" diff --git a/test/prism/snapshots/whitequark/ruby_bug_14690.txt b/test/prism/snapshots/whitequark/ruby_bug_14690.txt index 05005e4d50..36629797db 100644 --- a/test/prism/snapshots/whitequark/ruby_bug_14690.txt +++ b/test/prism/snapshots/whitequark/ruby_bug_14690.txt @@ -22,7 +22,6 @@ βββ block: @ BlockNode (location: (1,7)-(1,23)) βββ locals: [] - βββ locals_body_index: 0 βββ parameters: β
βββ body: β @ StatementsNode (location: (1,9)-(1,21)) @@ -52,7 +51,6 @@ β βββ block: β @ BlockNode (location: (1,14)-(1,21)) β βββ locals: [] - β βββ locals_body_index: 0 β βββ parameters: β
β βββ body: β
β βββ opening_loc: (1,14)-(1,16) = "do" diff --git a/test/prism/snapshots/whitequark/ruby_bug_15789.txt b/test/prism/snapshots/whitequark/ruby_bug_15789.txt index d4062f8ae7..db8bc1401f 100644 --- a/test/prism/snapshots/whitequark/ruby_bug_15789.txt +++ b/test/prism/snapshots/whitequark/ruby_bug_15789.txt @@ -16,7 +16,6 @@ β β βββ arguments: (length: 1) β β βββ @ LambdaNode (location: (1,2)-(1,20)) β β βββ locals: [:a] - β β βββ locals_body_index: 1 β β βββ operator_loc: (1,2)-(1,4) = "->" β β βββ opening_loc: (1,17)-(1,18) = "{" β β βββ closing_loc: (1,19)-(1,20) = "}" @@ -34,7 +33,6 @@ β β β β β βββ value: β β β β β @ LambdaNode (location: (1,9)-(1,15)) β β β β β βββ locals: [:_1] - β β β β β βββ locals_body_index: 1 β β β β β βββ operator_loc: (1,9)-(1,11) = "->" β β β β β βββ opening_loc: (1,11)-(1,12) = "{" β β β β β βββ closing_loc: (1,14)-(1,15) = "}" @@ -76,7 +74,6 @@ β βββ arguments: (length: 1) β βββ @ LambdaNode (location: (3,2)-(3,19)) β βββ locals: [:a] - β βββ locals_body_index: 1 β βββ operator_loc: (3,2)-(3,4) = "->" β βββ opening_loc: (3,16)-(3,17) = "{" β βββ closing_loc: (3,18)-(3,19) = "}" @@ -96,7 +93,6 @@ β β β β βββ value: β β β β @ LambdaNode (location: (3,8)-(3,14)) β β β β βββ locals: [:_1] - β β β β βββ locals_body_index: 1 β β β β βββ operator_loc: (3,8)-(3,10) = "->" β β β β βββ opening_loc: (3,10)-(3,11) = "{" β β β β βββ closing_loc: (3,13)-(3,14) = "}" diff --git a/test/prism/snapshots/whitequark/ruby_bug_9669.txt b/test/prism/snapshots/whitequark/ruby_bug_9669.txt index 74dbe31f4f..6605206180 100644 --- a/test/prism/snapshots/whitequark/ruby_bug_9669.txt +++ b/test/prism/snapshots/whitequark/ruby_bug_9669.txt @@ -27,7 +27,6 @@ β β βββ keyword_loc: (2,0)-(2,6) = "return" β β βββ arguments: β
β βββ locals: [:b] - β βββ locals_body_index: 1 β βββ def_keyword_loc: (1,0)-(1,3) = "def" β βββ operator_loc: β
β βββ lparen_loc: β
diff --git a/test/prism/snapshots/whitequark/send_block_chain_cmd.txt b/test/prism/snapshots/whitequark/send_block_chain_cmd.txt index 571789a535..a6d69767d1 100644 --- a/test/prism/snapshots/whitequark/send_block_chain_cmd.txt +++ b/test/prism/snapshots/whitequark/send_block_chain_cmd.txt @@ -23,7 +23,6 @@ β β βββ block: β β @ BlockNode (location: (1,7)-(1,13)) β β βββ locals: [] - β β βββ locals_body_index: 0 β β βββ parameters: β
β β βββ body: β
β β βββ opening_loc: (1,7)-(1,9) = "do" @@ -68,7 +67,6 @@ β β βββ block: β β @ BlockNode (location: (3,7)-(3,13)) β β βββ locals: [] - β β βββ locals_body_index: 0 β β βββ parameters: β
β β βββ body: β
β β βββ opening_loc: (3,7)-(3,9) = "do" @@ -95,7 +93,6 @@ β βββ block: β @ BlockNode (location: (3,22)-(3,28)) β βββ locals: [] - β βββ locals_body_index: 0 β βββ parameters: β
β βββ body: β
β βββ opening_loc: (3,22)-(3,24) = "do" @@ -120,7 +117,6 @@ β β βββ block: β β @ BlockNode (location: (5,7)-(5,13)) β β βββ locals: [] - β β βββ locals_body_index: 0 β β βββ parameters: β
β β βββ body: β
β β βββ opening_loc: (5,7)-(5,9) = "do" @@ -134,7 +130,6 @@ β βββ block: β @ BlockNode (location: (5,18)-(5,20)) β βββ locals: [] - β βββ locals_body_index: 0 β βββ parameters: β
β βββ body: β
β βββ opening_loc: (5,18)-(5,19) = "{" @@ -159,7 +154,6 @@ β β βββ block: β β @ BlockNode (location: (7,7)-(7,13)) β β βββ locals: [] - β β βββ locals_body_index: 0 β β βββ parameters: β
β β βββ body: β
β β βββ opening_loc: (7,7)-(7,9) = "do" @@ -204,7 +198,6 @@ β β βββ block: β β @ BlockNode (location: (9,7)-(9,13)) β β βββ locals: [] - β β βββ locals_body_index: 0 β β βββ parameters: β
β β βββ body: β
β β βββ opening_loc: (9,7)-(9,9) = "do" @@ -231,7 +224,6 @@ β βββ block: β @ BlockNode (location: (9,23)-(9,25)) β βββ locals: [] - β βββ locals_body_index: 0 β βββ parameters: β
β βββ body: β
β βββ opening_loc: (9,23)-(9,24) = "{" @@ -256,7 +248,6 @@ β β βββ block: β β @ BlockNode (location: (11,7)-(11,13)) β β βββ locals: [] - β β βββ locals_body_index: 0 β β βββ parameters: β
β β βββ body: β
β β βββ opening_loc: (11,7)-(11,9) = "do" @@ -301,7 +292,6 @@ β βββ block: β @ BlockNode (location: (13,7)-(13,13)) β βββ locals: [] - β βββ locals_body_index: 0 β βββ parameters: β
β βββ body: β
β βββ opening_loc: (13,7)-(13,9) = "do" diff --git a/test/prism/snapshots/whitequark/send_block_conditional.txt b/test/prism/snapshots/whitequark/send_block_conditional.txt index 26cb00dd1f..826d3c8464 100644 --- a/test/prism/snapshots/whitequark/send_block_conditional.txt +++ b/test/prism/snapshots/whitequark/send_block_conditional.txt @@ -25,7 +25,6 @@ βββ block: @ BlockNode (location: (1,9)-(1,11)) βββ locals: [] - βββ locals_body_index: 0 βββ parameters: β
βββ body: β
βββ opening_loc: (1,9)-(1,10) = "{" diff --git a/test/prism/snapshots/whitequark/send_lambda.txt b/test/prism/snapshots/whitequark/send_lambda.txt index 552645c462..bf21700539 100644 --- a/test/prism/snapshots/whitequark/send_lambda.txt +++ b/test/prism/snapshots/whitequark/send_lambda.txt @@ -5,7 +5,6 @@ βββ body: (length: 3) βββ @ LambdaNode (location: (1,0)-(1,8)) β βββ locals: [] - β βββ locals_body_index: 0 β βββ operator_loc: (1,0)-(1,2) = "->" β βββ opening_loc: (1,5)-(1,6) = "{" β βββ closing_loc: (1,7)-(1,8) = "}" @@ -31,7 +30,6 @@ β βββ body: β
βββ @ LambdaNode (location: (3,0)-(3,9)) β βββ locals: [] - β βββ locals_body_index: 0 β βββ operator_loc: (3,0)-(3,2) = "->" β βββ opening_loc: (3,3)-(3,5) = "do" β βββ closing_loc: (3,6)-(3,9) = "end" @@ -39,7 +37,6 @@ β βββ body: β
βββ @ LambdaNode (location: (5,0)-(5,5)) βββ locals: [] - βββ locals_body_index: 0 βββ operator_loc: (5,0)-(5,2) = "->" βββ opening_loc: (5,2)-(5,3) = "{" βββ closing_loc: (5,4)-(5,5) = "}" diff --git a/test/prism/snapshots/whitequark/send_lambda_args.txt b/test/prism/snapshots/whitequark/send_lambda_args.txt index 30f80bd2a1..f61f622bdd 100644 --- a/test/prism/snapshots/whitequark/send_lambda_args.txt +++ b/test/prism/snapshots/whitequark/send_lambda_args.txt @@ -5,7 +5,6 @@ βββ body: (length: 2) βββ @ LambdaNode (location: (1,0)-(1,10)) β βββ locals: [:a] - β βββ locals_body_index: 1 β βββ operator_loc: (1,0)-(1,2) = "->" β βββ opening_loc: (1,7)-(1,8) = "{" β βββ closing_loc: (1,9)-(1,10) = "}" @@ -29,7 +28,6 @@ β βββ body: β
βββ @ LambdaNode (location: (3,0)-(3,9)) βββ locals: [:a] - βββ locals_body_index: 1 βββ operator_loc: (3,0)-(3,2) = "->" βββ opening_loc: (3,6)-(3,7) = "{" βββ closing_loc: (3,8)-(3,9) = "}" diff --git a/test/prism/snapshots/whitequark/send_lambda_args_noparen.txt b/test/prism/snapshots/whitequark/send_lambda_args_noparen.txt index a420d05f36..eff1cab317 100644 --- a/test/prism/snapshots/whitequark/send_lambda_args_noparen.txt +++ b/test/prism/snapshots/whitequark/send_lambda_args_noparen.txt @@ -5,7 +5,6 @@ βββ body: (length: 2) βββ @ LambdaNode (location: (1,0)-(1,11)) β βββ locals: [:a] - β βββ locals_body_index: 1 β βββ operator_loc: (1,0)-(1,2) = "->" β βββ opening_loc: (1,8)-(1,9) = "{" β βββ closing_loc: (1,10)-(1,11) = "}" @@ -33,7 +32,6 @@ β βββ body: β
βββ @ LambdaNode (location: (3,0)-(3,9)) βββ locals: [:a] - βββ locals_body_index: 1 βββ operator_loc: (3,0)-(3,2) = "->" βββ opening_loc: (3,6)-(3,7) = "{" βββ closing_loc: (3,8)-(3,9) = "}" diff --git a/test/prism/snapshots/whitequark/send_lambda_args_shadow.txt b/test/prism/snapshots/whitequark/send_lambda_args_shadow.txt index 4a0d2fd53e..34a63ec503 100644 --- a/test/prism/snapshots/whitequark/send_lambda_args_shadow.txt +++ b/test/prism/snapshots/whitequark/send_lambda_args_shadow.txt @@ -5,7 +5,6 @@ βββ body: (length: 1) βββ @ LambdaNode (location: (1,0)-(1,19)) βββ locals: [:a, :foo, :bar] - βββ locals_body_index: 3 βββ operator_loc: (1,0)-(1,2) = "->" βββ opening_loc: (1,16)-(1,17) = "{" βββ closing_loc: (1,18)-(1,19) = "}" diff --git a/test/prism/snapshots/whitequark/send_lambda_legacy.txt b/test/prism/snapshots/whitequark/send_lambda_legacy.txt index bf05f2267a..3a64e941b6 100644 --- a/test/prism/snapshots/whitequark/send_lambda_legacy.txt +++ b/test/prism/snapshots/whitequark/send_lambda_legacy.txt @@ -5,7 +5,6 @@ βββ body: (length: 1) βββ @ LambdaNode (location: (1,0)-(1,5)) βββ locals: [] - βββ locals_body_index: 0 βββ operator_loc: (1,0)-(1,2) = "->" βββ opening_loc: (1,2)-(1,3) = "{" βββ closing_loc: (1,4)-(1,5) = "}" diff --git a/test/prism/snapshots/whitequark/send_self_block.txt b/test/prism/snapshots/whitequark/send_self_block.txt index 9124281a71..d94463d8b0 100644 --- a/test/prism/snapshots/whitequark/send_self_block.txt +++ b/test/prism/snapshots/whitequark/send_self_block.txt @@ -15,7 +15,6 @@ β βββ block: β @ BlockNode (location: (1,4)-(1,10)) β βββ locals: [] - β βββ locals_body_index: 0 β βββ parameters: β
β βββ body: β
β βββ opening_loc: (1,4)-(1,6) = "do" @@ -32,7 +31,6 @@ β βββ block: β @ BlockNode (location: (3,4)-(3,7)) β βββ locals: [] - β βββ locals_body_index: 0 β βββ parameters: β
β βββ body: β
β βββ opening_loc: (3,4)-(3,5) = "{" @@ -49,7 +47,6 @@ β βββ block: β @ BlockNode (location: (5,6)-(5,9)) β βββ locals: [] - β βββ locals_body_index: 0 β βββ parameters: β
β βββ body: β
β βββ opening_loc: (5,6)-(5,7) = "{" @@ -71,7 +68,6 @@ βββ block: @ BlockNode (location: (7,7)-(7,10)) βββ locals: [] - βββ locals_body_index: 0 βββ parameters: β
βββ body: β
βββ opening_loc: (7,7)-(7,8) = "{" diff --git a/test/prism/snapshots/whitequark/space_args_arg_block.txt b/test/prism/snapshots/whitequark/space_args_arg_block.txt index c8fd787c22..de4a6022c0 100644 --- a/test/prism/snapshots/whitequark/space_args_arg_block.txt +++ b/test/prism/snapshots/whitequark/space_args_arg_block.txt @@ -36,7 +36,6 @@ β βββ block: β @ BlockNode (location: (1,12)-(1,14)) β βββ locals: [] - β βββ locals_body_index: 0 β βββ parameters: β
β βββ body: β
β βββ opening_loc: (1,12)-(1,13) = "{" @@ -74,7 +73,6 @@ β βββ block: β @ BlockNode (location: (3,13)-(3,15)) β βββ locals: [] - β βββ locals_body_index: 0 β βββ parameters: β
β βββ body: β
β βββ opening_loc: (3,13)-(3,14) = "{" @@ -102,7 +100,6 @@ βββ block: @ BlockNode (location: (5,8)-(5,10)) βββ locals: [] - βββ locals_body_index: 0 βββ parameters: β
βββ body: β
βββ opening_loc: (5,8)-(5,9) = "{" diff --git a/test/prism/snapshots/whitequark/space_args_block.txt b/test/prism/snapshots/whitequark/space_args_block.txt index 853482b764..62b549a674 100644 --- a/test/prism/snapshots/whitequark/space_args_block.txt +++ b/test/prism/snapshots/whitequark/space_args_block.txt @@ -22,7 +22,6 @@ βββ block: @ BlockNode (location: (1,7)-(1,9)) βββ locals: [] - βββ locals_body_index: 0 βββ parameters: β
βββ body: β
βββ opening_loc: (1,7)-(1,8) = "{" diff --git a/test/prism/snapshots/whitequark/super_block.txt b/test/prism/snapshots/whitequark/super_block.txt index 2025416ae6..d9ce7b86be 100644 --- a/test/prism/snapshots/whitequark/super_block.txt +++ b/test/prism/snapshots/whitequark/super_block.txt @@ -7,7 +7,6 @@ β βββ block: β @ BlockNode (location: (1,6)-(1,12)) β βββ locals: [] - β βββ locals_body_index: 0 β βββ parameters: β
β βββ body: β
β βββ opening_loc: (1,6)-(1,8) = "do" @@ -43,7 +42,6 @@ βββ block: @ BlockNode (location: (3,15)-(3,21)) βββ locals: [] - βββ locals_body_index: 0 βββ parameters: β
βββ body: β
βββ opening_loc: (3,15)-(3,17) = "do" diff --git a/test/prism/snapshots/whitequark/trailing_forward_arg.txt b/test/prism/snapshots/whitequark/trailing_forward_arg.txt index 20bfe57428..b58eb51149 100644 --- a/test/prism/snapshots/whitequark/trailing_forward_arg.txt +++ b/test/prism/snapshots/whitequark/trailing_forward_arg.txt @@ -46,7 +46,6 @@ β βββ closing_loc: (1,34)-(1,35) = ")" β βββ block: β
βββ locals: [:a, :b] - βββ locals_body_index: 2 βββ def_keyword_loc: (1,0)-(1,3) = "def" βββ operator_loc: β
βββ lparen_loc: (1,7)-(1,8) = "(" diff --git a/test/prism/snapshots/whitequark/var_op_asgn.txt b/test/prism/snapshots/whitequark/var_op_asgn.txt index c4d20d2ec0..7160141b07 100644 --- a/test/prism/snapshots/whitequark/var_op_asgn.txt +++ b/test/prism/snapshots/whitequark/var_op_asgn.txt @@ -45,7 +45,6 @@ β β βββ flags: decimal β βββ operator: :| βββ locals: [] - βββ locals_body_index: 0 βββ def_keyword_loc: (7,0)-(7,3) = "def" βββ operator_loc: β
βββ lparen_loc: β
|