diff --git a/test/yarp/errors_test.rb b/test/yarp/errors_test.rb index 61955d612f6969..b22aca5ea37d3b 100644 --- a/test/yarp/errors_test.rb +++ b/test/yarp/errors_test.rb @@ -889,8 +889,8 @@ def test_returning_to_optional_parameters_multiple_times ParametersNode( [RequiredParameterNode(:a)], [ - OptionalParameterNode(:b, Location(), Location(), IntegerNode()), - OptionalParameterNode(:d, Location(), Location(), IntegerNode()) + OptionalParameterNode(:b, Location(), Location(), IntegerNode(IntegerBaseFlags::DECIMAL)), + OptionalParameterNode(:d, Location(), Location(), IntegerNode(IntegerBaseFlags::DECIMAL)) ], [RequiredParameterNode(:c), RequiredParameterNode(:e)], nil, @@ -933,7 +933,7 @@ def test_setter_method_cannot_be_defined_in_an_endless_method_definition Location(), nil, nil, - StatementsNode([IntegerNode()]), + StatementsNode([IntegerNode(IntegerBaseFlags::DECIMAL)]), [], Location(), nil, @@ -1123,7 +1123,7 @@ def test_duplicated_parameter_names :foo, Location(), nil, - ParametersNode([], [OptionalParameterNode(:a, Location(), Location(), IntegerNode())], [RequiredParameterNode(:b)], RestParameterNode(:c, Location(), Location()), [], nil, nil), + ParametersNode([], [OptionalParameterNode(:a, Location(), Location(), IntegerNode(IntegerBaseFlags::DECIMAL))], [RequiredParameterNode(:b)], RestParameterNode(:c, Location(), Location()), [], nil, nil), nil, [:a, :b, :c], Location(), diff --git a/test/yarp/snapshots/alias.txt b/test/yarp/snapshots/alias.txt index 24440600645a74..2074f3e43f3bb8 100644 --- a/test/yarp/snapshots/alias.txt +++ b/test/yarp/snapshots/alias.txt @@ -61,6 +61,7 @@ │ │ │ │ @ StatementsNode (location: (74...75)) │ │ │ │ └── body: (length: 1) │ │ │ │ └── @ IntegerNode (location: (74...75)) + │ │ │ │ └── flags: decimal │ │ │ └── closing_loc: (75...76) = "}" │ │ └── closing_loc: (76...77) = "\"" │ ├── old_name: diff --git a/test/yarp/snapshots/arrays.txt b/test/yarp/snapshots/arrays.txt index 19ca8dcb95f725..329cf9aa674343 100644 --- a/test/yarp/snapshots/arrays.txt +++ b/test/yarp/snapshots/arrays.txt @@ -61,8 +61,11 @@ │ │ └── @ ArrayNode (location: (22...29)) │ │ ├── elements: (length: 3) │ │ │ ├── @ IntegerNode (location: (22...23)) + │ │ │ │ └── flags: decimal │ │ │ ├── @ IntegerNode (location: (25...26)) + │ │ │ │ └── flags: decimal │ │ │ └── @ IntegerNode (location: (28...29)) + │ │ │ └── flags: decimal │ │ ├── opening_loc: ∅ │ │ └── closing_loc: ∅ │ ├── closing_loc: (18...19) = "]" @@ -116,6 +119,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ └── unescaped: "c" │ │ ├── @ IntegerNode (location: (60...61)) + │ │ │ └── flags: decimal │ │ └── @ SymbolNode (location: (66...68)) │ │ ├── opening_loc: (66...67) = ":" │ │ ├── value_loc: (67...68) = "d" @@ -141,6 +145,7 @@ │ │ │ ├── closing_loc: ∅ │ │ │ └── unescaped: "c" │ │ ├── @ IntegerNode (location: (86...87)) + │ │ │ └── flags: decimal │ │ └── @ SymbolNode (location: (92...94)) │ │ ├── opening_loc: (92...93) = ":" │ │ ├── value_loc: (93...94) = "d" @@ -415,6 +420,7 @@ │ │ │ │ @ ArgumentsNode (location: (195...196)) │ │ │ │ └── arguments: (length: 1) │ │ │ │ └── @ IntegerNode (location: (195...196)) + │ │ │ │ └── flags: decimal │ │ │ ├── closing_loc: (196...197) = "]" │ │ │ ├── block: ∅ │ │ │ ├── flags: @@ -438,6 +444,7 @@ │ │ │ @ ArgumentsNode (location: (203...204)) │ │ │ └── arguments: (length: 1) │ │ │ └── @ IntegerNode (location: (203...204)) + │ │ │ └── flags: decimal │ │ ├── closing_loc: (204...205) = "]" │ │ ├── block: ∅ │ │ ├── flags: @@ -449,7 +456,9 @@ │ @ ArrayNode (location: (208...212)) │ ├── elements: (length: 2) │ │ ├── @ IntegerNode (location: (208...209)) + │ │ │ └── flags: decimal │ │ └── @ IntegerNode (location: (211...212)) + │ │ └── flags: decimal │ ├── opening_loc: ∅ │ └── closing_loc: ∅ ├── @ CallNode (location: (214...233)) @@ -625,6 +634,7 @@ ├── @ ArrayNode (location: (277...286)) │ ├── elements: (length: 2) │ │ ├── @ IntegerNode (location: (278...279)) + │ │ │ └── flags: decimal │ │ └── @ KeywordHashNode (location: (281...285)) │ │ └── elements: (length: 1) │ │ └── @ AssocSplatNode (location: (281...285)) @@ -645,6 +655,7 @@ ├── @ ArrayNode (location: (288...309)) │ ├── elements: (length: 2) │ │ ├── @ IntegerNode (location: (289...290)) + │ │ │ └── flags: decimal │ │ └── @ KeywordHashNode (location: (292...308)) │ │ └── elements: (length: 3) │ │ ├── @ AssocSplatNode (location: (292...296)) diff --git a/test/yarp/snapshots/blocks.txt b/test/yarp/snapshots/blocks.txt index 11a46497d82379..8e8673c3c564ad 100644 --- a/test/yarp/snapshots/blocks.txt +++ b/test/yarp/snapshots/blocks.txt @@ -122,6 +122,7 @@ │ │ @ ArgumentsNode (location: (48...49)) │ │ └── arguments: (length: 1) │ │ └── @ IntegerNode (location: (48...49)) + │ │ └── flags: decimal │ ├── closing_loc: (49...50) = ")" │ ├── block: │ │ @ BlockNode (location: (51...74)) @@ -329,6 +330,7 @@ │ │ │ │ │ │ @ ArgumentsNode (location: (161...162)) │ │ │ │ │ │ └── arguments: (length: 1) │ │ │ │ │ │ └── @ IntegerNode (location: (161...162)) + │ │ │ │ │ │ └── flags: decimal │ │ │ │ │ ├── closing_loc: (162...163) = "]" │ │ │ │ │ ├── block: ∅ │ │ │ │ │ ├── flags: @@ -502,6 +504,7 @@ │ │ │ │ │ ├── operator_loc: (265...266) = "=" │ │ │ │ │ └── value: │ │ │ │ │ @ IntegerNode (location: (267...268)) + │ │ │ │ │ └── flags: decimal │ │ │ │ ├── posts: (length: 0) │ │ │ │ ├── rest: ∅ │ │ │ │ ├── keywords: (length: 1) @@ -561,6 +564,7 @@ │ ├── name_loc: (292...296) = "fork" │ ├── value: │ │ @ IntegerNode (location: (299...300)) + │ │ └── flags: decimal │ └── operator_loc: (297...298) = "=" ├── @ CallNode (location: (301...316)) │ ├── receiver: ∅ @@ -688,11 +692,13 @@ │ │ │ │ │ │ │ ├── name_loc: (365...367) = "a:" │ │ │ │ │ │ │ └── value: │ │ │ │ │ │ │ @ IntegerNode (location: (368...369)) + │ │ │ │ │ │ │ └── flags: decimal │ │ │ │ │ │ └── @ KeywordParameterNode (location: (373...377)) │ │ │ │ │ │ ├── name: :b │ │ │ │ │ │ ├── name_loc: (373...375) = "b:" │ │ │ │ │ │ └── value: │ │ │ │ │ │ @ IntegerNode (location: (376...377)) + │ │ │ │ │ │ └── flags: decimal │ │ │ │ │ ├── keyword_rest: ∅ │ │ │ │ │ └── block: ∅ │ │ │ │ ├── locals: (length: 0) diff --git a/test/yarp/snapshots/break.txt b/test/yarp/snapshots/break.txt index 21a46081dbc97d..afbbaff3a1941d 100644 --- a/test/yarp/snapshots/break.txt +++ b/test/yarp/snapshots/break.txt @@ -15,6 +15,7 @@ │ │ │ │ @ StatementsNode (location: (14...15)) │ │ │ │ └── body: (length: 1) │ │ │ │ └── @ IntegerNode (location: (14...15)) + │ │ │ │ └── flags: decimal │ │ │ ├── opening_loc: (13...14) = "(" │ │ │ └── closing_loc: (15...16) = ")" │ │ ├── @ ParenthesesNode (location: (18...21)) @@ -22,6 +23,7 @@ │ │ │ │ @ StatementsNode (location: (19...20)) │ │ │ │ └── body: (length: 1) │ │ │ │ └── @ IntegerNode (location: (19...20)) + │ │ │ │ └── flags: decimal │ │ │ ├── opening_loc: (18...19) = "(" │ │ │ └── closing_loc: (20...21) = ")" │ │ └── @ ParenthesesNode (location: (23...26)) @@ -29,6 +31,7 @@ │ │ │ @ StatementsNode (location: (24...25)) │ │ │ └── body: (length: 1) │ │ │ └── @ IntegerNode (location: (24...25)) + │ │ │ └── flags: decimal │ │ ├── opening_loc: (23...24) = "(" │ │ └── closing_loc: (25...26) = ")" │ └── keyword_loc: (7...12) = "break" @@ -37,22 +40,29 @@ │ │ @ ArgumentsNode (location: (34...35)) │ │ └── arguments: (length: 1) │ │ └── @ IntegerNode (location: (34...35)) + │ │ └── flags: decimal │ └── keyword_loc: (28...33) = "break" ├── @ BreakNode (location: (37...50)) │ ├── arguments: │ │ @ ArgumentsNode (location: (43...50)) │ │ └── arguments: (length: 3) │ │ ├── @ IntegerNode (location: (43...44)) + │ │ │ └── flags: decimal │ │ ├── @ IntegerNode (location: (46...47)) + │ │ │ └── flags: decimal │ │ └── @ IntegerNode (location: (49...50)) + │ │ └── flags: decimal │ └── keyword_loc: (37...42) = "break" ├── @ BreakNode (location: (52...65)) │ ├── arguments: │ │ @ ArgumentsNode (location: (58...65)) │ │ └── arguments: (length: 3) │ │ ├── @ IntegerNode (location: (58...59)) + │ │ │ └── flags: decimal │ │ ├── @ IntegerNode (location: (61...62)) + │ │ │ └── flags: decimal │ │ └── @ IntegerNode (location: (64...65)) + │ │ └── flags: decimal │ └── keyword_loc: (52...57) = "break" ├── @ BreakNode (location: (67...82)) │ ├── arguments: @@ -61,8 +71,11 @@ │ │ └── @ ArrayNode (location: (73...82)) │ │ ├── elements: (length: 3) │ │ │ ├── @ IntegerNode (location: (74...75)) + │ │ │ │ └── flags: decimal │ │ │ ├── @ IntegerNode (location: (77...78)) + │ │ │ │ └── flags: decimal │ │ │ └── @ IntegerNode (location: (80...81)) + │ │ │ └── flags: decimal │ │ ├── opening_loc: (73...74) = "[" │ │ └── closing_loc: (81...82) = "]" │ └── keyword_loc: (67...72) = "break" @@ -75,7 +88,9 @@ │ │ │ @ StatementsNode (location: (93...98)) │ │ │ └── body: (length: 2) │ │ │ ├── @ IntegerNode (location: (93...94)) + │ │ │ │ └── flags: decimal │ │ │ └── @ IntegerNode (location: (97...98)) + │ │ │ └── flags: decimal │ │ ├── opening_loc: (89...90) = "(" │ │ └── closing_loc: (99...100) = ")" │ └── keyword_loc: (84...89) = "break" @@ -97,6 +112,7 @@ │ │ │ @ StatementsNode (location: (117...118)) │ │ │ └── body: (length: 1) │ │ │ └── @ IntegerNode (location: (117...118)) + │ │ │ └── flags: decimal │ │ ├── opening_loc: (116...117) = "(" │ │ └── closing_loc: (118...119) = ")" │ └── keyword_loc: (111...116) = "break" @@ -121,6 +137,7 @@ │ │ │ │ │ @ ArgumentsNode (location: (133...135)) │ │ │ │ │ └── arguments: (length: 1) │ │ │ │ │ └── @ IntegerNode (location: (133...135)) + │ │ │ │ │ └── flags: decimal │ │ │ │ └── keyword_loc: (127...132) = "break" │ │ │ ├── opening_loc: (125...126) = "{" │ │ │ └── closing_loc: (136...137) = "}" @@ -133,6 +150,7 @@ │ │ @ ArgumentsNode (location: (141...143)) │ │ └── arguments: (length: 1) │ │ └── @ IntegerNode (location: (141...143)) + │ │ └── flags: decimal │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: @@ -182,6 +200,7 @@ │ @ ArgumentsNode (location: (166...168)) │ └── arguments: (length: 1) │ └── @ IntegerNode (location: (166...168)) + │ └── flags: decimal ├── closing_loc: ∅ ├── block: ∅ ├── flags: diff --git a/test/yarp/snapshots/classes.txt b/test/yarp/snapshots/classes.txt index 387190dbbc3f6e..0af153111bbf77 100644 --- a/test/yarp/snapshots/classes.txt +++ b/test/yarp/snapshots/classes.txt @@ -20,6 +20,7 @@ │ │ ├── name_loc: (8...9) = "a" │ │ ├── value: │ │ │ @ IntegerNode (location: (12...13)) + │ │ │ └── flags: decimal │ │ └── operator_loc: (10...11) = "=" │ ├── end_keyword_loc: (14...17) = "end" │ └── name: :A @@ -97,6 +98,7 @@ │ │ ├── name_loc: (89...90) = "a" │ │ ├── value: │ │ │ @ IntegerNode (location: (93...94)) + │ │ │ └── flags: decimal │ │ └── operator_loc: (91...92) = "=" │ ├── end_keyword_loc: (95...98) = "end" │ └── name: :A @@ -284,6 +286,7 @@ │ │ └── @ CallNode (location: (316...321)) │ │ ├── receiver: │ │ │ @ IntegerNode (location: (316...317)) + │ │ │ └── flags: decimal │ │ ├── call_operator_loc: ∅ │ │ ├── message_loc: (318...319) = "+" │ │ ├── opening_loc: ∅ @@ -291,6 +294,7 @@ │ │ │ @ ArgumentsNode (location: (320...321)) │ │ │ └── arguments: (length: 1) │ │ │ └── @ IntegerNode (location: (320...321)) + │ │ │ └── flags: decimal │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: @@ -308,6 +312,7 @@ │ │ └── @ CallNode (location: (341...346)) │ │ ├── receiver: │ │ │ @ IntegerNode (location: (341...342)) + │ │ │ └── flags: decimal │ │ ├── call_operator_loc: ∅ │ │ ├── message_loc: (343...344) = "+" │ │ ├── opening_loc: ∅ @@ -315,6 +320,7 @@ │ │ │ @ ArgumentsNode (location: (345...346)) │ │ │ └── arguments: (length: 1) │ │ │ └── @ IntegerNode (location: (345...346)) + │ │ │ └── flags: decimal │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: @@ -339,6 +345,7 @@ │ │ @ ArgumentsNode (location: (364...365)) │ │ └── arguments: (length: 1) │ │ └── @ IntegerNode (location: (364...365)) + │ │ └── flags: decimal │ ├── closing_loc: (365...366) = "]" │ ├── block: ∅ │ ├── flags: diff --git a/test/yarp/snapshots/constants.txt b/test/yarp/snapshots/constants.txt index e5e28cf5739366..2001f246805320 100644 --- a/test/yarp/snapshots/constants.txt +++ b/test/yarp/snapshots/constants.txt @@ -54,11 +54,13 @@ │ ├── operator_loc: (26...27) = "=" │ └── value: │ @ IntegerNode (location: (28...29)) + │ └── flags: decimal ├── @ ConstantWriteNode (location: (31...36)) │ ├── name: :A │ ├── name_loc: (31...32) = "A" │ ├── value: │ │ @ IntegerNode (location: (35...36)) + │ │ └── flags: decimal │ └── operator_loc: (33...34) = "=" ├── @ ConstantReadNode (location: (38...41)) │ └── name: :ABC @@ -71,6 +73,7 @@ │ │ @ ArgumentsNode (location: (47...48)) │ │ └── arguments: (length: 1) │ │ └── @ IntegerNode (location: (47...48)) + │ │ └── flags: decimal │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: @@ -262,6 +265,7 @@ │ ├── operator_loc: (141...142) = "=" │ └── value: │ @ IntegerNode (location: (143...144)) + │ └── flags: decimal ├── @ ConstantPathWriteNode (location: (146...156)) │ ├── target: │ │ @ ConstantPathNode (location: (146...152)) @@ -279,6 +283,7 @@ │ ├── operator_loc: (153...154) = "=" │ └── value: │ @ IntegerNode (location: (155...156)) + │ └── flags: decimal ├── @ ConstantPathNode (location: (158...164)) │ ├── parent: │ │ @ ConstantPathNode (location: (158...161)) diff --git a/test/yarp/snapshots/dash_heredocs.txt b/test/yarp/snapshots/dash_heredocs.txt index 3016a3ae3522bf..28537bf23ac465 100644 --- a/test/yarp/snapshots/dash_heredocs.txt +++ b/test/yarp/snapshots/dash_heredocs.txt @@ -208,6 +208,7 @@ │ │ │ │ │ @ StatementsNode (location: (258...259)) │ │ │ │ │ └── body: (length: 1) │ │ │ │ │ └── @ IntegerNode (location: (258...259)) + │ │ │ │ │ └── flags: decimal │ │ │ │ └── closing_loc: (262...263) = "}" │ │ │ └── @ StringNode (location: (263...264)) │ │ │ ├── opening_loc: ∅ @@ -250,6 +251,7 @@ │ │ │ │ @ StatementsNode (location: (296...297)) │ │ │ │ └── body: (length: 1) │ │ │ │ └── @ IntegerNode (location: (296...297)) + │ │ │ │ └── flags: decimal │ │ │ └── closing_loc: (297...298) = "}" │ │ └── @ StringNode (location: (298...299)) │ │ ├── opening_loc: ∅ diff --git a/test/yarp/snapshots/defined.txt b/test/yarp/snapshots/defined.txt index 56f88ed10049c7..ea0291a09360da 100644 --- a/test/yarp/snapshots/defined.txt +++ b/test/yarp/snapshots/defined.txt @@ -9,6 +9,7 @@ │ │ ├── lparen_loc: ∅ │ │ ├── value: │ │ │ @ IntegerNode (location: (9...10)) + │ │ │ └── flags: decimal │ │ ├── rparen_loc: ∅ │ │ └── keyword_loc: (0...8) = "defined?" │ ├── right: @@ -16,6 +17,7 @@ │ │ ├── lparen_loc: ∅ │ │ ├── value: │ │ │ @ IntegerNode (location: (24...25)) + │ │ │ └── flags: decimal │ │ ├── rparen_loc: ∅ │ │ └── keyword_loc: (15...23) = "defined?" │ └── operator_loc: (11...14) = "and" @@ -27,6 +29,7 @@ │ │ ├── operator_loc: (38...40) = "%=" │ │ ├── value: │ │ │ @ IntegerNode (location: (41...42)) + │ │ │ └── flags: decimal │ │ ├── name: :x │ │ ├── operator: :% │ │ └── depth: 0 @@ -65,5 +68,6 @@ ├── lparen_loc: ∅ ├── value: │ @ IntegerNode (location: (77...78)) + │ └── flags: decimal ├── rparen_loc: ∅ └── keyword_loc: (68...76) = "defined?" diff --git a/test/yarp/snapshots/endless_methods.txt b/test/yarp/snapshots/endless_methods.txt index 556950fe3ba35c..967a9003ce0c46 100644 --- a/test/yarp/snapshots/endless_methods.txt +++ b/test/yarp/snapshots/endless_methods.txt @@ -12,6 +12,7 @@ │ │ @ StatementsNode (location: (10...11)) │ │ └── body: (length: 1) │ │ └── @ IntegerNode (location: (10...11)) + │ │ └── flags: decimal │ ├── locals: [] │ ├── def_keyword_loc: (0...3) = "def" │ ├── operator_loc: ∅ @@ -64,6 +65,7 @@ │ │ @ CallNode (location: (42...47)) │ │ ├── receiver: │ │ │ @ IntegerNode (location: (42...43)) + │ │ │ └── flags: decimal │ │ ├── call_operator_loc: ∅ │ │ ├── message_loc: (44...45) = "+" │ │ ├── opening_loc: ∅ @@ -71,6 +73,7 @@ │ │ │ @ ArgumentsNode (location: (46...47)) │ │ │ └── arguments: (length: 1) │ │ │ └── @ IntegerNode (location: (46...47)) + │ │ │ └── flags: decimal │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: @@ -82,6 +85,7 @@ │ │ @ ArgumentsNode (location: (50...51)) │ │ └── arguments: (length: 1) │ │ └── @ IntegerNode (location: (50...51)) + │ │ └── flags: decimal │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: diff --git a/test/yarp/snapshots/endless_range_in_conditional.txt b/test/yarp/snapshots/endless_range_in_conditional.txt index f719692438d6c1..2a96682d32426f 100644 --- a/test/yarp/snapshots/endless_range_in_conditional.txt +++ b/test/yarp/snapshots/endless_range_in_conditional.txt @@ -9,8 +9,10 @@ │ │ @ FlipFlopNode (location: (3...7)) │ │ ├── left: │ │ │ @ IntegerNode (location: (3...4)) + │ │ │ └── flags: decimal │ │ ├── right: │ │ │ @ IntegerNode (location: (6...7)) + │ │ │ └── flags: decimal │ │ ├── operator_loc: (4...6) = ".." │ │ └── flags: │ ├── statements: ∅ @@ -23,6 +25,7 @@ │ │ ├── left: ∅ │ │ ├── right: │ │ │ @ IntegerNode (location: (19...20)) + │ │ │ └── flags: decimal │ │ ├── operator_loc: (17...19) = ".." │ │ └── flags: │ ├── statements: ∅ @@ -34,6 +37,7 @@ │ @ FlipFlopNode (location: (30...33)) │ ├── left: │ │ @ IntegerNode (location: (30...31)) + │ │ └── flags: decimal │ ├── right: ∅ │ ├── operator_loc: (31...33) = ".." │ └── flags: diff --git a/test/yarp/snapshots/for.txt b/test/yarp/snapshots/for.txt index d873101bec9230..41ca345d4819d6 100644 --- a/test/yarp/snapshots/for.txt +++ b/test/yarp/snapshots/for.txt @@ -16,8 +16,10 @@ │ │ @ RangeNode (location: (9...14)) │ │ ├── left: │ │ │ @ IntegerNode (location: (9...10)) + │ │ │ └── flags: decimal │ │ ├── right: │ │ │ @ IntegerNode (location: (12...14)) + │ │ │ └── flags: decimal │ │ ├── operator_loc: (10...12) = ".." │ │ └── flags: │ ├── statements: @@ -43,8 +45,10 @@ │ │ @ RangeNode (location: (31...36)) │ │ ├── left: │ │ │ @ IntegerNode (location: (31...32)) + │ │ │ └── flags: decimal │ │ ├── right: │ │ │ @ IntegerNode (location: (34...36)) + │ │ │ └── flags: decimal │ │ ├── operator_loc: (32...34) = ".." │ │ └── flags: │ ├── statements: @@ -73,8 +77,10 @@ │ │ @ RangeNode (location: (57...62)) │ │ ├── left: │ │ │ @ IntegerNode (location: (57...58)) + │ │ │ └── flags: decimal │ │ ├── right: │ │ │ @ IntegerNode (location: (60...62)) + │ │ │ └── flags: decimal │ │ ├── operator_loc: (58...60) = ".." │ │ └── flags: │ ├── statements: @@ -106,8 +112,10 @@ │ │ @ RangeNode (location: (83...88)) │ │ ├── left: │ │ │ @ IntegerNode (location: (83...84)) + │ │ │ └── flags: decimal │ │ ├── right: │ │ │ @ IntegerNode (location: (86...88)) + │ │ │ └── flags: decimal │ │ ├── operator_loc: (84...86) = ".." │ │ └── flags: │ ├── statements: @@ -133,8 +141,10 @@ │ │ @ RangeNode (location: (105...110)) │ │ ├── left: │ │ │ @ IntegerNode (location: (105...106)) + │ │ │ └── flags: decimal │ │ ├── right: │ │ │ @ IntegerNode (location: (108...110)) + │ │ │ └── flags: decimal │ │ ├── operator_loc: (106...108) = ".." │ │ └── flags: │ ├── statements: @@ -160,8 +170,10 @@ │ @ RangeNode (location: (130...135)) │ ├── left: │ │ @ IntegerNode (location: (130...131)) + │ │ └── flags: decimal │ ├── right: │ │ @ IntegerNode (location: (133...135)) + │ │ └── flags: decimal │ ├── operator_loc: (131...133) = ".." │ └── flags: ├── statements: diff --git a/test/yarp/snapshots/if.txt b/test/yarp/snapshots/if.txt index 1d4ba5151760b7..fc900612547621 100644 --- a/test/yarp/snapshots/if.txt +++ b/test/yarp/snapshots/if.txt @@ -11,6 +11,7 @@ │ │ @ StatementsNode (location: (9...10)) │ │ └── body: (length: 1) │ │ └── @ IntegerNode (location: (9...10)) + │ │ └── flags: decimal │ ├── consequent: ∅ │ └── end_keyword_loc: (12...15) = "end" ├── @ IfNode (location: (17...37)) @@ -21,6 +22,7 @@ │ │ @ StatementsNode (location: (25...26)) │ │ └── body: (length: 1) │ │ └── @ IntegerNode (location: (25...26)) + │ │ └── flags: decimal │ ├── consequent: │ │ @ ElseNode (location: (27...37)) │ │ ├── else_keyword_loc: (27...31) = "else" @@ -28,6 +30,7 @@ │ │ │ @ StatementsNode (location: (32...33)) │ │ │ └── body: (length: 1) │ │ │ └── @ IntegerNode (location: (32...33)) + │ │ │ └── flags: decimal │ │ └── end_keyword_loc: (34...37) = "end" │ └── end_keyword_loc: (34...37) = "end" ├── @ IfNode (location: (39...112)) @@ -75,6 +78,7 @@ │ │ @ StatementsNode (location: (114...115)) │ │ └── body: (length: 1) │ │ └── @ IntegerNode (location: (114...115)) + │ │ └── flags: decimal │ ├── consequent: ∅ │ └── end_keyword_loc: ∅ ├── @ IfNode (location: (125...138)) @@ -134,6 +138,7 @@ │ │ │ @ ArgumentsNode (location: (194...196)) │ │ │ └── arguments: (length: 1) │ │ │ └── @ IntegerNode (location: (194...196)) + │ │ │ └── flags: decimal │ │ └── keyword_loc: (188...193) = "break" │ ├── consequent: ∅ │ └── end_keyword_loc: (197...200) = "end" @@ -264,6 +269,7 @@ │ │ │ └── name: "type" │ │ ├── pattern: │ │ │ @ IntegerNode (location: (272...273)) + │ │ │ └── flags: decimal │ │ └── operator_loc: (269...271) = "in" │ ├── statements: ∅ │ ├── consequent: @@ -294,6 +300,7 @@ ├── if_keyword_loc: (295...297) = "if" ├── predicate: │ @ IntegerNode (location: (298...299)) + │ └── flags: decimal ├── statements: │ @ StatementsNode (location: (302...321)) │ └── body: (length: 1) @@ -333,6 +340,7 @@ │ ├── if_keyword_loc: (322...327) = "elsif" │ ├── predicate: │ │ @ IntegerNode (location: (328...329)) + │ │ └── flags: decimal │ ├── statements: │ │ @ StatementsNode (location: (332...351)) │ │ └── body: (length: 1) diff --git a/test/yarp/snapshots/integer_operations.txt b/test/yarp/snapshots/integer_operations.txt index e446c1cdf1751f..c1348e09df3c49 100644 --- a/test/yarp/snapshots/integer_operations.txt +++ b/test/yarp/snapshots/integer_operations.txt @@ -6,6 +6,7 @@ ├── @ CallNode (location: (0...2)) │ ├── receiver: │ │ @ IntegerNode (location: (1...2)) + │ │ └── flags: decimal │ ├── call_operator_loc: ∅ │ ├── message_loc: (0...1) = "!" │ ├── opening_loc: ∅ @@ -17,6 +18,7 @@ ├── @ CallNode (location: (4...6)) │ ├── receiver: │ │ @ IntegerNode (location: (5...6)) + │ │ └── flags: decimal │ ├── call_operator_loc: ∅ │ ├── message_loc: (4...5) = "~" │ ├── opening_loc: ∅ @@ -28,6 +30,7 @@ ├── @ CallNode (location: (8...14)) │ ├── receiver: │ │ @ IntegerNode (location: (8...9)) + │ │ └── flags: decimal │ ├── call_operator_loc: ∅ │ ├── message_loc: (10...12) = "!=" │ ├── opening_loc: ∅ @@ -35,6 +38,7 @@ │ │ @ ArgumentsNode (location: (13...14)) │ │ └── arguments: (length: 1) │ │ └── @ IntegerNode (location: (13...14)) + │ │ └── flags: decimal │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: @@ -42,6 +46,7 @@ ├── @ CallNode (location: (16...22)) │ ├── receiver: │ │ @ IntegerNode (location: (16...17)) + │ │ └── flags: decimal │ ├── call_operator_loc: ∅ │ ├── message_loc: (18...20) = "!~" │ ├── opening_loc: ∅ @@ -49,6 +54,7 @@ │ │ @ ArgumentsNode (location: (21...22)) │ │ └── arguments: (length: 1) │ │ └── @ IntegerNode (location: (21...22)) + │ │ └── flags: decimal │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: @@ -56,6 +62,7 @@ ├── @ CallNode (location: (24...29)) │ ├── receiver: │ │ @ IntegerNode (location: (24...25)) + │ │ └── flags: decimal │ ├── call_operator_loc: ∅ │ ├── message_loc: (26...27) = "%" │ ├── opening_loc: ∅ @@ -63,6 +70,7 @@ │ │ @ ArgumentsNode (location: (28...29)) │ │ └── arguments: (length: 1) │ │ └── @ IntegerNode (location: (28...29)) + │ │ └── flags: decimal │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: @@ -70,6 +78,7 @@ ├── @ CallNode (location: (31...36)) │ ├── receiver: │ │ @ IntegerNode (location: (31...32)) + │ │ └── flags: decimal │ ├── call_operator_loc: ∅ │ ├── message_loc: (33...34) = "&" │ ├── opening_loc: ∅ @@ -77,6 +86,7 @@ │ │ @ ArgumentsNode (location: (35...36)) │ │ └── arguments: (length: 1) │ │ └── @ IntegerNode (location: (35...36)) + │ │ └── flags: decimal │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: @@ -84,6 +94,7 @@ ├── @ CallNode (location: (38...43)) │ ├── receiver: │ │ @ IntegerNode (location: (38...39)) + │ │ └── flags: decimal │ ├── call_operator_loc: ∅ │ ├── message_loc: (40...41) = "*" │ ├── opening_loc: ∅ @@ -91,6 +102,7 @@ │ │ @ ArgumentsNode (location: (42...43)) │ │ └── arguments: (length: 1) │ │ └── @ IntegerNode (location: (42...43)) + │ │ └── flags: decimal │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: @@ -98,6 +110,7 @@ ├── @ CallNode (location: (45...49)) │ ├── receiver: │ │ @ IntegerNode (location: (45...46)) + │ │ └── flags: decimal │ ├── call_operator_loc: ∅ │ ├── message_loc: (46...48) = "**" │ ├── opening_loc: ∅ @@ -105,6 +118,7 @@ │ │ @ ArgumentsNode (location: (48...49)) │ │ └── arguments: (length: 1) │ │ └── @ IntegerNode (location: (48...49)) + │ │ └── flags: decimal │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: @@ -112,6 +126,7 @@ ├── @ CallNode (location: (51...56)) │ ├── receiver: │ │ @ IntegerNode (location: (51...52)) + │ │ └── flags: decimal │ ├── call_operator_loc: ∅ │ ├── message_loc: (53...54) = "+" │ ├── opening_loc: ∅ @@ -119,6 +134,7 @@ │ │ @ ArgumentsNode (location: (55...56)) │ │ └── arguments: (length: 1) │ │ └── @ IntegerNode (location: (55...56)) + │ │ └── flags: decimal │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: @@ -126,6 +142,7 @@ ├── @ CallNode (location: (58...63)) │ ├── receiver: │ │ @ IntegerNode (location: (58...59)) + │ │ └── flags: decimal │ ├── call_operator_loc: ∅ │ ├── message_loc: (60...61) = "-" │ ├── opening_loc: ∅ @@ -133,6 +150,7 @@ │ │ @ ArgumentsNode (location: (62...63)) │ │ └── arguments: (length: 1) │ │ └── @ IntegerNode (location: (62...63)) + │ │ └── flags: decimal │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: @@ -140,6 +158,7 @@ ├── @ CallNode (location: (65...70)) │ ├── receiver: │ │ @ IntegerNode (location: (65...66)) + │ │ └── flags: decimal │ ├── call_operator_loc: ∅ │ ├── message_loc: (67...68) = "/" │ ├── opening_loc: ∅ @@ -147,6 +166,7 @@ │ │ @ ArgumentsNode (location: (69...70)) │ │ └── arguments: (length: 1) │ │ └── @ IntegerNode (location: (69...70)) + │ │ └── flags: decimal │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: @@ -156,6 +176,7 @@ │ │ @ CallNode (location: (72...75)) │ │ ├── receiver: │ │ │ @ IntegerNode (location: (72...73)) + │ │ │ └── flags: decimal │ │ ├── call_operator_loc: ∅ │ │ ├── message_loc: (73...74) = "/" │ │ ├── opening_loc: ∅ @@ -163,6 +184,7 @@ │ │ │ @ ArgumentsNode (location: (74...75)) │ │ │ └── arguments: (length: 1) │ │ │ └── @ IntegerNode (location: (74...75)) + │ │ │ └── flags: decimal │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: @@ -174,6 +196,7 @@ │ │ @ ArgumentsNode (location: (76...77)) │ │ └── arguments: (length: 1) │ │ └── @ IntegerNode (location: (76...77)) + │ │ └── flags: decimal │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: @@ -181,6 +204,7 @@ ├── @ CallNode (location: (79...84)) │ ├── receiver: │ │ @ IntegerNode (location: (79...80)) + │ │ └── flags: decimal │ ├── call_operator_loc: ∅ │ ├── message_loc: (81...82) = "<" │ ├── opening_loc: ∅ @@ -188,6 +212,7 @@ │ │ @ ArgumentsNode (location: (83...84)) │ │ └── arguments: (length: 1) │ │ └── @ IntegerNode (location: (83...84)) + │ │ └── flags: decimal │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: @@ -195,6 +220,7 @@ ├── @ CallNode (location: (86...92)) │ ├── receiver: │ │ @ IntegerNode (location: (86...87)) + │ │ └── flags: decimal │ ├── call_operator_loc: ∅ │ ├── message_loc: (88...90) = "<<" │ ├── opening_loc: ∅ @@ -202,6 +228,7 @@ │ │ @ ArgumentsNode (location: (91...92)) │ │ └── arguments: (length: 1) │ │ └── @ IntegerNode (location: (91...92)) + │ │ └── flags: decimal │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: @@ -209,6 +236,7 @@ ├── @ CallNode (location: (94...100)) │ ├── receiver: │ │ @ IntegerNode (location: (94...95)) + │ │ └── flags: decimal │ ├── call_operator_loc: ∅ │ ├── message_loc: (96...98) = "<=" │ ├── opening_loc: ∅ @@ -216,6 +244,7 @@ │ │ @ ArgumentsNode (location: (99...100)) │ │ └── arguments: (length: 1) │ │ └── @ IntegerNode (location: (99...100)) + │ │ └── flags: decimal │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: @@ -223,6 +252,7 @@ ├── @ CallNode (location: (102...109)) │ ├── receiver: │ │ @ IntegerNode (location: (102...103)) + │ │ └── flags: decimal │ ├── call_operator_loc: ∅ │ ├── message_loc: (104...107) = "<=>" │ ├── opening_loc: ∅ @@ -230,6 +260,7 @@ │ │ @ ArgumentsNode (location: (108...109)) │ │ └── arguments: (length: 1) │ │ └── @ IntegerNode (location: (108...109)) + │ │ └── flags: decimal │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: @@ -237,6 +268,7 @@ ├── @ CallNode (location: (111...117)) │ ├── receiver: │ │ @ IntegerNode (location: (111...112)) + │ │ └── flags: decimal │ ├── call_operator_loc: ∅ │ ├── message_loc: (113...115) = "==" │ ├── opening_loc: ∅ @@ -244,6 +276,7 @@ │ │ @ ArgumentsNode (location: (116...117)) │ │ └── arguments: (length: 1) │ │ └── @ IntegerNode (location: (116...117)) + │ │ └── flags: decimal │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: @@ -251,6 +284,7 @@ ├── @ CallNode (location: (119...126)) │ ├── receiver: │ │ @ IntegerNode (location: (119...120)) + │ │ └── flags: decimal │ ├── call_operator_loc: ∅ │ ├── message_loc: (121...124) = "===" │ ├── opening_loc: ∅ @@ -258,6 +292,7 @@ │ │ @ ArgumentsNode (location: (125...126)) │ │ └── arguments: (length: 1) │ │ └── @ IntegerNode (location: (125...126)) + │ │ └── flags: decimal │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: @@ -265,6 +300,7 @@ ├── @ CallNode (location: (128...134)) │ ├── receiver: │ │ @ IntegerNode (location: (128...129)) + │ │ └── flags: decimal │ ├── call_operator_loc: ∅ │ ├── message_loc: (130...132) = "=~" │ ├── opening_loc: ∅ @@ -272,6 +308,7 @@ │ │ @ ArgumentsNode (location: (133...134)) │ │ └── arguments: (length: 1) │ │ └── @ IntegerNode (location: (133...134)) + │ │ └── flags: decimal │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: @@ -279,6 +316,7 @@ ├── @ CallNode (location: (136...141)) │ ├── receiver: │ │ @ IntegerNode (location: (136...137)) + │ │ └── flags: decimal │ ├── call_operator_loc: ∅ │ ├── message_loc: (138...139) = ">" │ ├── opening_loc: ∅ @@ -286,6 +324,7 @@ │ │ @ ArgumentsNode (location: (140...141)) │ │ └── arguments: (length: 1) │ │ └── @ IntegerNode (location: (140...141)) + │ │ └── flags: decimal │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: @@ -293,6 +332,7 @@ ├── @ CallNode (location: (143...149)) │ ├── receiver: │ │ @ IntegerNode (location: (143...144)) + │ │ └── flags: decimal │ ├── call_operator_loc: ∅ │ ├── message_loc: (145...147) = ">=" │ ├── opening_loc: ∅ @@ -300,6 +340,7 @@ │ │ @ ArgumentsNode (location: (148...149)) │ │ └── arguments: (length: 1) │ │ └── @ IntegerNode (location: (148...149)) + │ │ └── flags: decimal │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: @@ -307,6 +348,7 @@ ├── @ CallNode (location: (151...157)) │ ├── receiver: │ │ @ IntegerNode (location: (151...152)) + │ │ └── flags: decimal │ ├── call_operator_loc: ∅ │ ├── message_loc: (153...155) = ">>" │ ├── opening_loc: ∅ @@ -314,6 +356,7 @@ │ │ @ ArgumentsNode (location: (156...157)) │ │ └── arguments: (length: 1) │ │ └── @ IntegerNode (location: (156...157)) + │ │ └── flags: decimal │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: @@ -321,6 +364,7 @@ ├── @ CallNode (location: (159...164)) │ ├── receiver: │ │ @ IntegerNode (location: (159...160)) + │ │ └── flags: decimal │ ├── call_operator_loc: ∅ │ ├── message_loc: (161...162) = "^" │ ├── opening_loc: ∅ @@ -328,6 +372,7 @@ │ │ @ ArgumentsNode (location: (163...164)) │ │ └── arguments: (length: 1) │ │ └── @ IntegerNode (location: (163...164)) + │ │ └── flags: decimal │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: @@ -335,6 +380,7 @@ ├── @ CallNode (location: (166...171)) │ ├── receiver: │ │ @ IntegerNode (location: (166...167)) + │ │ └── flags: decimal │ ├── call_operator_loc: ∅ │ ├── message_loc: (168...169) = "|" │ ├── opening_loc: ∅ @@ -342,6 +388,7 @@ │ │ @ ArgumentsNode (location: (170...171)) │ │ └── arguments: (length: 1) │ │ └── @ IntegerNode (location: (170...171)) + │ │ └── flags: decimal │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: @@ -349,18 +396,23 @@ ├── @ AndNode (location: (173...179)) │ ├── left: │ │ @ IntegerNode (location: (173...174)) + │ │ └── flags: decimal │ ├── right: │ │ @ IntegerNode (location: (178...179)) + │ │ └── flags: decimal │ └── operator_loc: (175...177) = "&&" ├── @ AndNode (location: (181...188)) │ ├── left: │ │ @ IntegerNode (location: (181...182)) + │ │ └── flags: decimal │ ├── right: │ │ @ IntegerNode (location: (187...188)) + │ │ └── flags: decimal │ └── operator_loc: (183...186) = "and" ├── @ CallNode (location: (190...200)) │ ├── receiver: │ │ @ IntegerNode (location: (190...191)) + │ │ └── flags: decimal │ ├── call_operator_loc: ∅ │ ├── message_loc: (192...193) = "*" │ ├── opening_loc: ∅ @@ -370,6 +422,7 @@ │ │ └── @ CallNode (location: (194...200)) │ │ ├── receiver: │ │ │ @ IntegerNode (location: (194...195)) + │ │ │ └── flags: decimal │ │ ├── call_operator_loc: ∅ │ │ ├── message_loc: (196...198) = "**" │ │ ├── opening_loc: ∅ @@ -377,6 +430,7 @@ │ │ │ @ ArgumentsNode (location: (199...200)) │ │ │ └── arguments: (length: 1) │ │ │ └── @ IntegerNode (location: (199...200)) + │ │ │ └── flags: decimal │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: @@ -390,6 +444,7 @@ │ │ @ CallNode (location: (202...207)) │ │ ├── receiver: │ │ │ @ IntegerNode (location: (202...203)) + │ │ │ └── flags: decimal │ │ ├── call_operator_loc: ∅ │ │ ├── message_loc: (204...205) = "*" │ │ ├── opening_loc: ∅ @@ -397,6 +452,7 @@ │ │ │ @ ArgumentsNode (location: (206...207)) │ │ │ └── arguments: (length: 1) │ │ │ └── @ IntegerNode (location: (206...207)) + │ │ │ └── flags: decimal │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: @@ -408,6 +464,7 @@ │ │ @ ArgumentsNode (location: (210...211)) │ │ └── arguments: (length: 1) │ │ └── @ IntegerNode (location: (210...211)) + │ │ └── flags: decimal │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: @@ -415,18 +472,23 @@ ├── @ OrNode (location: (213...219)) │ ├── left: │ │ @ IntegerNode (location: (213...214)) + │ │ └── flags: decimal │ ├── right: │ │ @ IntegerNode (location: (218...219)) + │ │ └── flags: decimal │ └── operator_loc: (215...217) = "or" ├── @ OrNode (location: (221...227)) │ ├── left: │ │ @ IntegerNode (location: (221...222)) + │ │ └── flags: decimal │ ├── right: │ │ @ IntegerNode (location: (226...227)) + │ │ └── flags: decimal │ └── operator_loc: (223...225) = "||" ├── @ CallNode (location: (229...238)) │ ├── receiver: │ │ @ IntegerNode (location: (229...230)) + │ │ └── flags: decimal │ ├── call_operator_loc: ∅ │ ├── message_loc: (231...232) = "+" │ ├── opening_loc: ∅ @@ -436,6 +498,7 @@ │ │ └── @ CallNode (location: (233...238)) │ │ ├── receiver: │ │ │ @ IntegerNode (location: (233...234)) + │ │ │ └── flags: decimal │ │ ├── call_operator_loc: ∅ │ │ ├── message_loc: (235...236) = "*" │ │ ├── opening_loc: ∅ @@ -443,6 +506,7 @@ │ │ │ @ ArgumentsNode (location: (237...238)) │ │ │ └── arguments: (length: 1) │ │ │ └── @ IntegerNode (location: (237...238)) + │ │ │ └── flags: decimal │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: @@ -458,6 +522,7 @@ │ └── @ CallNode (location: (241...246)) │ ├── receiver: │ │ @ IntegerNode (location: (241...242)) + │ │ └── flags: decimal │ ├── call_operator_loc: ∅ │ ├── message_loc: (243...244) = "+" │ ├── opening_loc: ∅ @@ -465,6 +530,7 @@ │ │ @ ArgumentsNode (location: (245...246)) │ │ └── arguments: (length: 1) │ │ └── @ IntegerNode (location: (245...246)) + │ │ └── flags: decimal │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: diff --git a/test/yarp/snapshots/lambda.txt b/test/yarp/snapshots/lambda.txt index e790c2ede049d0..bbedbfcf42877a 100644 --- a/test/yarp/snapshots/lambda.txt +++ b/test/yarp/snapshots/lambda.txt @@ -111,6 +111,7 @@ │ │ │ │ │ @ ArgumentsNode (location: (46...47)) │ │ │ │ │ └── arguments: (length: 1) │ │ │ │ │ └── @ IntegerNode (location: (46...47)) + │ │ │ │ │ └── flags: decimal │ │ │ │ ├── closing_loc: ∅ │ │ │ │ ├── block: ∅ │ │ │ │ ├── flags: diff --git a/test/yarp/snapshots/method_calls.txt b/test/yarp/snapshots/method_calls.txt index 86ffab5d2a47c9..710f0c1c88c841 100644 --- a/test/yarp/snapshots/method_calls.txt +++ b/test/yarp/snapshots/method_calls.txt @@ -171,8 +171,11 @@ │ │ @ ArgumentsNode (location: (67...74)) │ │ └── arguments: (length: 3) │ │ ├── @ IntegerNode (location: (67...68)) + │ │ │ └── flags: decimal │ │ ├── @ IntegerNode (location: (70...71)) + │ │ │ └── flags: decimal │ │ └── @ IntegerNode (location: (73...74)) + │ │ └── flags: decimal │ ├── closing_loc: (74...75) = ")" │ ├── block: ∅ │ ├── flags: @@ -248,6 +251,7 @@ │ │ @ ArgumentsNode (location: (101...102)) │ │ └── arguments: (length: 1) │ │ └── @ IntegerNode (location: (101...102)) + │ │ └── flags: decimal │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: @@ -534,7 +538,9 @@ │ @ ArrayNode (location: (200...204)) │ ├── elements: (length: 2) │ │ ├── @ IntegerNode (location: (200...201)) + │ │ │ └── flags: decimal │ │ └── @ IntegerNode (location: (203...204)) + │ │ └── flags: decimal │ ├── opening_loc: ∅ │ └── closing_loc: ∅ ├── @ CallNode (location: (206...210)) @@ -817,6 +823,7 @@ │ │ @ ArgumentsNode (location: (345...391)) │ │ └── arguments: (length: 2) │ │ ├── @ IntegerNode (location: (345...348)) + │ │ │ └── flags: decimal │ │ └── @ HashNode (location: (350...391)) │ │ ├── opening_loc: (350...351) = "{" │ │ ├── elements: (length: 3) @@ -1253,6 +1260,7 @@ │ │ @ ArgumentsNode (location: (684...695)) │ │ └── arguments: (length: 2) │ │ ├── @ IntegerNode (location: (684...685)) + │ │ │ └── flags: decimal │ │ └── @ KeywordHashNode (location: (687...695)) │ │ └── elements: (length: 1) │ │ └── @ AssocNode (location: (687...695)) @@ -1264,6 +1272,7 @@ │ │ │ └── unescaped: "kwarg" │ │ ├── value: │ │ │ @ IntegerNode (location: (694...695)) + │ │ │ └── flags: decimal │ │ └── operator_loc: ∅ │ ├── closing_loc: ∅ │ ├── block: ∅ @@ -1280,6 +1289,7 @@ │ │ @ ArgumentsNode (location: (712...714)) │ │ └── arguments: (length: 1) │ │ └── @ IntegerNode (location: (712...714)) + │ │ └── flags: decimal │ ├── closing_loc: (714...715) = ")" │ ├── block: ∅ │ ├── flags: @@ -1439,6 +1449,7 @@ │ │ │ └── unescaped: "a" │ │ ├── value: │ │ │ @ IntegerNode (location: (802...804)) + │ │ │ └── flags: decimal │ │ └── operator_loc: ∅ │ ├── closing_loc: (804...805) = ")" │ ├── block: ∅ @@ -1731,6 +1742,7 @@ │ │ │ └── @ CallNode (location: (988...1004)) │ │ │ ├── receiver: │ │ │ │ @ IntegerNode (location: (988...989)) + │ │ │ │ └── flags: decimal │ │ │ ├── call_operator_loc: (989...990) = "." │ │ │ ├── message_loc: (990...995) = "times" │ │ │ ├── opening_loc: ∅ @@ -1744,6 +1756,7 @@ │ │ │ │ │ @ StatementsNode (location: (999...1000)) │ │ │ │ │ └── body: (length: 1) │ │ │ │ │ └── @ IntegerNode (location: (999...1000)) + │ │ │ │ │ └── flags: decimal │ │ │ │ ├── opening_loc: (996...998) = "do" │ │ │ │ └── closing_loc: (1001...1004) = "end" │ │ │ ├── flags: diff --git a/test/yarp/snapshots/methods.txt b/test/yarp/snapshots/methods.txt index bcc6176a8283e1..4f35e292785d77 100644 --- a/test/yarp/snapshots/methods.txt +++ b/test/yarp/snapshots/methods.txt @@ -54,6 +54,7 @@ │ │ │ ├── operator_loc: (54...55) = "=" │ │ │ └── value: │ │ │ @ IntegerNode (location: (56...57)) + │ │ │ └── flags: decimal │ │ ├── posts: (length: 1) │ │ │ └── @ RequiredDestructuredParameterNode (location: (59...69)) │ │ │ ├── parameters: (length: 2) @@ -353,6 +354,7 @@ │ ├── name_loc: (275...276) = "a" │ ├── value: │ │ @ IntegerNode (location: (279...280)) + │ │ └── flags: decimal │ └── operator_loc: (277...278) = "=" ├── @ DefNode (location: (282...291)) │ ├── name: :a @@ -428,6 +430,7 @@ │ │ │ ├── name_loc: (337...339) = "c:" │ │ │ └── value: │ │ │ @ IntegerNode (location: (340...341)) + │ │ │ └── flags: decimal │ │ ├── keyword_rest: ∅ │ │ └── block: ∅ │ ├── body: ∅ @@ -458,6 +461,7 @@ │ │ │ ├── name_loc: (357...359) = "c:" │ │ │ └── value: │ │ │ @ IntegerNode (location: (360...361)) + │ │ │ └── flags: decimal │ │ ├── keyword_rest: ∅ │ │ └── block: ∅ │ ├── body: ∅ @@ -484,6 +488,7 @@ │ │ │ │ ├── name_loc: (374...376) = "b:" │ │ │ │ └── value: │ │ │ │ @ IntegerNode (location: (379...380)) + │ │ │ │ └── flags: decimal │ │ │ └── @ KeywordParameterNode (location: (382...384)) │ │ │ ├── name: :c │ │ │ ├── name_loc: (382...384) = "c:" @@ -517,12 +522,14 @@ │ │ │ │ ├── operator_loc: (407...408) = "=" │ │ │ │ └── value: │ │ │ │ @ IntegerNode (location: (409...410)) + │ │ │ │ └── flags: decimal │ │ │ └── @ OptionalParameterNode (location: (412...417)) │ │ │ ├── name: :c │ │ │ ├── name_loc: (412...413) = "c" │ │ │ ├── operator_loc: (414...415) = "=" │ │ │ └── value: │ │ │ @ IntegerNode (location: (416...417)) + │ │ │ └── flags: decimal │ │ ├── posts: (length: 0) │ │ ├── rest: ∅ │ │ ├── keywords: (length: 0) @@ -565,6 +572,7 @@ │ │ │ ├── operator_loc: (447...448) = "=" │ │ │ └── value: │ │ │ @ IntegerNode (location: (449...450)) + │ │ │ └── flags: decimal │ │ ├── posts: (length: 0) │ │ ├── rest: ∅ │ │ ├── keywords: (length: 0) @@ -700,6 +708,7 @@ │ │ ├── name_loc: (537...538) = "b" │ │ ├── value: │ │ │ @ IntegerNode (location: (541...542)) + │ │ │ └── flags: decimal │ │ └── operator_loc: (539...540) = "=" │ ├── locals: [:b] │ ├── def_keyword_loc: (531...534) = "def" @@ -797,6 +806,7 @@ │ │ @ StatementsNode (location: (637...638)) │ │ └── body: (length: 1) │ │ └── @ IntegerNode (location: (637...638)) + │ │ └── flags: decimal │ ├── locals: [] │ ├── def_keyword_loc: (627...630) = "def" │ ├── operator_loc: ∅ @@ -813,6 +823,7 @@ │ │ @ StatementsNode (location: (649...650)) │ │ └── body: (length: 1) │ │ └── @ IntegerNode (location: (649...650)) + │ │ └── flags: decimal │ ├── locals: [] │ ├── def_keyword_loc: (639...642) = "def" │ ├── operator_loc: ∅ @@ -839,6 +850,7 @@ │ │ @ StatementsNode (location: (667...670)) │ │ └── body: (length: 1) │ │ └── @ IntegerNode (location: (667...670)) + │ │ └── flags: decimal │ ├── locals: [:bar] │ ├── def_keyword_loc: (652...655) = "def" │ ├── operator_loc: ∅ @@ -855,6 +867,7 @@ │ │ @ StatementsNode (location: (682...685)) │ │ └── body: (length: 1) │ │ └── @ IntegerNode (location: (682...685)) + │ │ └── flags: decimal │ ├── locals: [] │ ├── def_keyword_loc: (672...675) = "def" │ ├── operator_loc: ∅ @@ -967,7 +980,9 @@ │ │ │ @ ArgumentsNode (location: (747...756)) │ │ │ └── arguments: (length: 3) │ │ │ ├── @ IntegerNode (location: (747...748)) + │ │ │ │ └── flags: decimal │ │ │ ├── @ IntegerNode (location: (750...751)) + │ │ │ │ └── flags: decimal │ │ │ └── @ ForwardingArgumentsNode (location: (753...756)) │ │ ├── closing_loc: (756...757) = ")" │ │ ├── block: ∅ @@ -1130,6 +1145,7 @@ │ ├── name_loc: (877...882) = "Const" │ ├── value: │ │ @ IntegerNode (location: (885...886)) + │ │ └── flags: decimal │ └── operator_loc: (883...884) = "=" ├── @ DefNode (location: (888...903)) │ ├── name: :a @@ -1292,8 +1308,10 @@ │ │ │ │ └── @ RangeNode (location: (994...1000)) │ │ │ │ ├── left: │ │ │ │ │ @ IntegerNode (location: (994...995)) + │ │ │ │ │ └── flags: decimal │ │ │ │ ├── right: │ │ │ │ │ @ IntegerNode (location: (998...1000)) + │ │ │ │ │ └── flags: decimal │ │ │ │ ├── operator_loc: (995...998) = "..." │ │ │ │ └── flags: exclude_end │ │ │ ├── opening_loc: (993...994) = "(" @@ -1331,6 +1349,7 @@ │ │ │ │ ├── left: ∅ │ │ │ │ ├── right: │ │ │ │ │ @ IntegerNode (location: (1023...1025)) + │ │ │ │ │ └── flags: decimal │ │ │ │ ├── operator_loc: (1020...1023) = "..." │ │ │ │ └── flags: exclude_end │ │ │ ├── opening_loc: (1019...1020) = "(" @@ -1367,6 +1386,7 @@ │ │ │ │ └── @ RangeNode (location: (1045...1049)) │ │ │ │ ├── left: │ │ │ │ │ @ IntegerNode (location: (1045...1046)) + │ │ │ │ │ └── flags: decimal │ │ │ │ ├── right: ∅ │ │ │ │ ├── operator_loc: (1046...1049) = "..." │ │ │ │ └── flags: exclude_end @@ -1402,8 +1422,10 @@ │ │ │ │ └── @ RangeNode (location: (1070...1076)) │ │ │ │ ├── left: │ │ │ │ │ @ IntegerNode (location: (1070...1071)) + │ │ │ │ │ └── flags: decimal │ │ │ │ ├── right: │ │ │ │ │ @ IntegerNode (location: (1074...1076)) + │ │ │ │ │ └── flags: decimal │ │ │ │ ├── operator_loc: (1071...1074) = "..." │ │ │ │ └── flags: exclude_end │ │ │ ├── opening_loc: (1069...1070) = "(" @@ -1442,6 +1464,7 @@ │ │ │ │ ├── left: ∅ │ │ │ │ ├── right: │ │ │ │ │ @ IntegerNode (location: (1100...1102)) + │ │ │ │ │ └── flags: decimal │ │ │ │ ├── operator_loc: (1097...1100) = "..." │ │ │ │ └── flags: exclude_end │ │ │ ├── opening_loc: (1096...1097) = "(" @@ -1479,6 +1502,7 @@ │ │ │ │ └── @ RangeNode (location: (1123...1127)) │ │ │ │ ├── left: │ │ │ │ │ @ IntegerNode (location: (1123...1124)) + │ │ │ │ │ └── flags: decimal │ │ │ │ ├── right: ∅ │ │ │ │ ├── operator_loc: (1124...1127) = "..." │ │ │ │ └── flags: exclude_end diff --git a/test/yarp/snapshots/modules.txt b/test/yarp/snapshots/modules.txt index 1fce49526304bc..756ab87cc3a8c2 100644 --- a/test/yarp/snapshots/modules.txt +++ b/test/yarp/snapshots/modules.txt @@ -18,6 +18,7 @@ │ │ ├── name_loc: (9...10) = "a" │ │ ├── value: │ │ │ @ IntegerNode (location: (13...14)) + │ │ │ └── flags: decimal │ │ └── operator_loc: (11...12) = "=" │ ├── end_keyword_loc: (15...18) = "end" │ └── name: :A @@ -92,6 +93,7 @@ │ │ │ ├── name_loc: (67...68) = "x" │ │ │ ├── value: │ │ │ │ @ IntegerNode (location: (71...72)) + │ │ │ │ └── flags: decimal │ │ │ └── operator_loc: (69...70) = "=" │ │ ├── rescue_clause: │ │ │ @ RescueNode (location: (74...80)) @@ -161,6 +163,7 @@ │ │ │ @ ArgumentsNode (location: (131...132)) │ │ │ └── arguments: (length: 1) │ │ │ └── @ IntegerNode (location: (131...132)) + │ │ │ └── flags: decimal │ │ ├── closing_loc: (132...133) = "]" │ │ ├── block: ∅ │ │ ├── flags: diff --git a/test/yarp/snapshots/next.txt b/test/yarp/snapshots/next.txt index d5b587c24d6a11..839c5d3c35a35f 100644 --- a/test/yarp/snapshots/next.txt +++ b/test/yarp/snapshots/next.txt @@ -15,6 +15,7 @@ │ │ │ │ @ StatementsNode (location: (12...13)) │ │ │ │ └── body: (length: 1) │ │ │ │ └── @ IntegerNode (location: (12...13)) + │ │ │ │ └── flags: decimal │ │ │ ├── opening_loc: (11...12) = "(" │ │ │ └── closing_loc: (13...14) = ")" │ │ ├── @ ParenthesesNode (location: (16...19)) @@ -22,6 +23,7 @@ │ │ │ │ @ StatementsNode (location: (17...18)) │ │ │ │ └── body: (length: 1) │ │ │ │ └── @ IntegerNode (location: (17...18)) + │ │ │ │ └── flags: decimal │ │ │ ├── opening_loc: (16...17) = "(" │ │ │ └── closing_loc: (18...19) = ")" │ │ └── @ ParenthesesNode (location: (21...24)) @@ -29,6 +31,7 @@ │ │ │ @ StatementsNode (location: (22...23)) │ │ │ └── body: (length: 1) │ │ │ └── @ IntegerNode (location: (22...23)) + │ │ │ └── flags: decimal │ │ ├── opening_loc: (21...22) = "(" │ │ └── closing_loc: (23...24) = ")" │ └── keyword_loc: (6...10) = "next" @@ -37,22 +40,29 @@ │ │ @ ArgumentsNode (location: (31...32)) │ │ └── arguments: (length: 1) │ │ └── @ IntegerNode (location: (31...32)) + │ │ └── flags: decimal │ └── keyword_loc: (26...30) = "next" ├── @ NextNode (location: (34...46)) │ ├── arguments: │ │ @ ArgumentsNode (location: (39...46)) │ │ └── arguments: (length: 3) │ │ ├── @ IntegerNode (location: (39...40)) + │ │ │ └── flags: decimal │ │ ├── @ IntegerNode (location: (42...43)) + │ │ │ └── flags: decimal │ │ └── @ IntegerNode (location: (45...46)) + │ │ └── flags: decimal │ └── keyword_loc: (34...38) = "next" ├── @ NextNode (location: (48...60)) │ ├── arguments: │ │ @ ArgumentsNode (location: (53...60)) │ │ └── arguments: (length: 3) │ │ ├── @ IntegerNode (location: (53...54)) + │ │ │ └── flags: decimal │ │ ├── @ IntegerNode (location: (56...57)) + │ │ │ └── flags: decimal │ │ └── @ IntegerNode (location: (59...60)) + │ │ └── flags: decimal │ └── keyword_loc: (48...52) = "next" ├── @ NextNode (location: (62...76)) │ ├── arguments: @@ -61,8 +71,11 @@ │ │ └── @ ArrayNode (location: (67...76)) │ │ ├── elements: (length: 3) │ │ │ ├── @ IntegerNode (location: (68...69)) + │ │ │ │ └── flags: decimal │ │ │ ├── @ IntegerNode (location: (71...72)) + │ │ │ │ └── flags: decimal │ │ │ └── @ IntegerNode (location: (74...75)) + │ │ │ └── flags: decimal │ │ ├── opening_loc: (67...68) = "[" │ │ └── closing_loc: (75...76) = "]" │ └── keyword_loc: (62...66) = "next" @@ -75,7 +88,9 @@ │ │ │ @ StatementsNode (location: (86...91)) │ │ │ └── body: (length: 2) │ │ │ ├── @ IntegerNode (location: (86...87)) + │ │ │ │ └── flags: decimal │ │ │ └── @ IntegerNode (location: (90...91)) + │ │ │ └── flags: decimal │ │ ├── opening_loc: (82...83) = "(" │ │ └── closing_loc: (92...93) = ")" │ └── keyword_loc: (78...82) = "next" @@ -83,6 +98,7 @@ │ ├── arguments: ∅ │ └── keyword_loc: (95...99) = "next" ├── @ IntegerNode (location: (100...101)) + │ └── flags: decimal ├── @ NextNode (location: (103...109)) │ ├── arguments: │ │ @ ArgumentsNode (location: (107...109)) @@ -101,6 +117,7 @@ │ │ @ StatementsNode (location: (116...117)) │ │ └── body: (length: 1) │ │ └── @ IntegerNode (location: (116...117)) + │ │ └── flags: decimal │ ├── opening_loc: (115...116) = "(" │ └── closing_loc: (117...118) = ")" └── keyword_loc: (111...115) = "next" diff --git a/test/yarp/snapshots/nils.txt b/test/yarp/snapshots/nils.txt index 8a709ca0be1f9d..b86c54548b25af 100644 --- a/test/yarp/snapshots/nils.txt +++ b/test/yarp/snapshots/nils.txt @@ -17,6 +17,7 @@ │ │ @ StatementsNode (location: (24...25)) │ │ └── body: (length: 1) │ │ └── @ IntegerNode (location: (24...25)) + │ │ └── flags: decimal │ ├── keyword_loc: (18...21) = "END" │ ├── opening_loc: (22...23) = "{" │ └── closing_loc: (26...27) = "}" @@ -25,6 +26,7 @@ │ @ StatementsNode (location: (37...38)) │ └── body: (length: 1) │ └── @ IntegerNode (location: (37...38)) + │ └── flags: decimal ├── keyword_loc: (29...34) = "BEGIN" ├── opening_loc: (35...36) = "{" └── closing_loc: (39...40) = "}" diff --git a/test/yarp/snapshots/numbers.txt b/test/yarp/snapshots/numbers.txt index 4242f6332c95a5..33cd3814513cc8 100644 --- a/test/yarp/snapshots/numbers.txt +++ b/test/yarp/snapshots/numbers.txt @@ -4,36 +4,58 @@ @ StatementsNode (location: (0...161)) └── body: (length: 32) ├── @ IntegerNode (location: (0...1)) + │ └── flags: decimal ├── @ IntegerNode (location: (3...4)) + │ └── flags: decimal ├── @ FloatNode (location: (6...9)) ├── @ IntegerNode (location: (11...12)) + │ └── flags: decimal ├── @ IntegerNode (location: (14...17)) + │ └── flags: binary ├── @ IntegerNode (location: (19...22)) + │ └── flags: binary ├── @ IntegerNode (location: (24...28)) + │ └── flags: binary ├── @ IntegerNode (location: (30...33)) + │ └── flags: decimal ├── @ IntegerNode (location: (35...38)) + │ └── flags: decimal ├── @ IntegerNode (location: (40...43)) + │ └── flags: decimal ├── @ IntegerNode (location: (45...47)) + │ └── flags: octal ├── @ IntegerNode (location: (49...51)) + │ └── flags: octal ├── @ IntegerNode (location: (53...55)) + │ └── flags: octal ├── @ IntegerNode (location: (57...60)) + │ └── flags: octal ├── @ IntegerNode (location: (62...65)) + │ └── flags: octal ├── @ IntegerNode (location: (67...70)) + │ └── flags: octal ├── @ IntegerNode (location: (72...75)) + │ └── flags: hexadecimal ├── @ IntegerNode (location: (77...80)) + │ └── flags: hexadecimal ├── @ IntegerNode (location: (82...85)) + │ └── flags: hexadecimal ├── @ ImaginaryNode (location: (87...89)) │ └── numeric: │ @ IntegerNode (location: (87...88)) + │ └── flags: decimal ├── @ RationalNode (location: (91...93)) │ └── numeric: │ @ IntegerNode (location: (91...92)) + │ └── flags: decimal ├── @ IntegerNode (location: (95...97)) + │ └── flags: decimal ├── @ ImaginaryNode (location: (99...102)) │ └── numeric: │ @ RationalNode (location: (99...101)) │ └── numeric: │ @ IntegerNode (location: (99...100)) + │ └── flags: decimal ├── @ ImaginaryNode (location: (104...109)) │ └── numeric: │ @ RationalNode (location: (104...108)) @@ -44,6 +66,7 @@ │ @ RationalNode (location: (111...114)) │ └── numeric: │ @ IntegerNode (location: (111...113)) + │ └── flags: decimal ├── @ ImaginaryNode (location: (117...123)) │ └── numeric: │ @ RationalNode (location: (117...122)) @@ -52,22 +75,28 @@ ├── @ RationalNode (location: (125...129)) │ └── numeric: │ @ IntegerNode (location: (125...128)) + │ └── flags: octal ├── @ ImaginaryNode (location: (131...135)) │ └── numeric: │ @ IntegerNode (location: (131...134)) + │ └── flags: octal ├── @ ImaginaryNode (location: (137...142)) │ └── numeric: │ @ RationalNode (location: (137...141)) │ └── numeric: │ @ IntegerNode (location: (137...140)) + │ └── flags: octal ├── @ RationalNode (location: (144...148)) │ └── numeric: │ @ IntegerNode (location: (144...147)) + │ └── flags: decimal ├── @ ImaginaryNode (location: (150...154)) │ └── numeric: │ @ IntegerNode (location: (150...153)) + │ └── flags: decimal └── @ ImaginaryNode (location: (156...161)) └── numeric: @ RationalNode (location: (156...160)) └── numeric: @ IntegerNode (location: (156...159)) + └── flags: binary diff --git a/test/yarp/snapshots/patterns.txt b/test/yarp/snapshots/patterns.txt index b875f70e95056e..a9ad303cc9439f 100644 --- a/test/yarp/snapshots/patterns.txt +++ b/test/yarp/snapshots/patterns.txt @@ -34,6 +34,7 @@ │ │ └── name: "foo" │ ├── pattern: │ │ @ IntegerNode (location: (18...19)) + │ │ └── flags: decimal │ └── operator_loc: (15...17) = "=>" ├── @ MatchRequiredNode (location: (20...30)) │ ├── value: @@ -66,6 +67,7 @@ │ │ @ ImaginaryNode (location: (38...40)) │ │ └── numeric: │ │ @ IntegerNode (location: (38...39)) + │ │ └── flags: decimal │ └── operator_loc: (35...37) = "=>" ├── @ MatchRequiredNode (location: (41...50)) │ ├── value: @@ -83,6 +85,7 @@ │ │ @ RationalNode (location: (48...50)) │ │ └── numeric: │ │ @ IntegerNode (location: (48...49)) + │ │ └── flags: decimal │ └── operator_loc: (45...47) = "=>" ├── @ MatchRequiredNode (location: (51...62)) │ ├── value: @@ -496,8 +499,10 @@ │ │ @ RangeNode (location: (362...368)) │ │ ├── left: │ │ │ @ IntegerNode (location: (362...363)) + │ │ │ └── flags: decimal │ │ ├── right: │ │ │ @ IntegerNode (location: (367...368)) + │ │ │ └── flags: decimal │ │ ├── operator_loc: (364...366) = ".." │ │ └── flags: │ └── operator_loc: (359...361) = "=>" @@ -540,10 +545,12 @@ │ │ │ @ ImaginaryNode (location: (394...396)) │ │ │ └── numeric: │ │ │ @ IntegerNode (location: (394...395)) + │ │ │ └── flags: decimal │ │ ├── right: │ │ │ @ ImaginaryNode (location: (400...402)) │ │ │ └── numeric: │ │ │ @ IntegerNode (location: (400...401)) + │ │ │ └── flags: decimal │ │ ├── operator_loc: (397...399) = ".." │ │ └── flags: │ └── operator_loc: (391...393) = "=>" @@ -565,10 +572,12 @@ │ │ │ @ RationalNode (location: (410...412)) │ │ │ └── numeric: │ │ │ @ IntegerNode (location: (410...411)) + │ │ │ └── flags: decimal │ │ ├── right: │ │ │ @ RationalNode (location: (416...418)) │ │ │ └── numeric: │ │ │ @ IntegerNode (location: (416...417)) + │ │ │ └── flags: decimal │ │ ├── operator_loc: (413...415) = ".." │ │ └── flags: │ └── operator_loc: (407...409) = "=>" @@ -1268,6 +1277,7 @@ │ │ @ PinnedExpressionNode (location: (1002...1006)) │ │ ├── expression: │ │ │ @ IntegerNode (location: (1004...1005)) + │ │ │ └── flags: decimal │ │ ├── operator_loc: (1002...1003) = "^" │ │ ├── lparen_loc: (1003...1004) = "(" │ │ └── rparen_loc: (1005...1006) = ")" @@ -1471,6 +1481,7 @@ │ │ │ └── name: :Foo │ │ ├── requireds: (length: 1) │ │ │ └── @ IntegerNode (location: (1139...1140)) + │ │ │ └── flags: decimal │ │ ├── rest: ∅ │ │ ├── posts: (length: 0) │ │ ├── opening_loc: (1138...1139) = "(" @@ -1495,8 +1506,11 @@ │ │ │ └── name: :Foo │ │ ├── requireds: (length: 3) │ │ │ ├── @ IntegerNode (location: (1153...1154)) + │ │ │ │ └── flags: decimal │ │ │ ├── @ IntegerNode (location: (1156...1157)) + │ │ │ │ └── flags: decimal │ │ │ └── @ IntegerNode (location: (1159...1160)) + │ │ │ └── flags: decimal │ │ ├── rest: ∅ │ │ ├── posts: (length: 0) │ │ ├── opening_loc: (1152...1153) = "(" @@ -1672,6 +1686,7 @@ │ │ │ └── name: :Foo │ │ ├── requireds: (length: 1) │ │ │ └── @ IntegerNode (location: (1275...1276)) + │ │ │ └── flags: decimal │ │ ├── rest: ∅ │ │ ├── posts: (length: 0) │ │ ├── opening_loc: (1274...1275) = "[" @@ -1696,8 +1711,11 @@ │ │ │ └── name: :Foo │ │ ├── requireds: (length: 3) │ │ │ ├── @ IntegerNode (location: (1289...1290)) + │ │ │ │ └── flags: decimal │ │ │ ├── @ IntegerNode (location: (1292...1293)) + │ │ │ │ └── flags: decimal │ │ │ └── @ IntegerNode (location: (1295...1296)) + │ │ │ └── flags: decimal │ │ ├── rest: ∅ │ │ ├── posts: (length: 0) │ │ ├── opening_loc: (1288...1289) = "[" @@ -2288,6 +2306,7 @@ │ │ └── name: "foo" │ ├── pattern: │ │ @ IntegerNode (location: (1666...1667)) + │ │ └── flags: decimal │ └── operator_loc: (1663...1665) = "in" ├── @ MatchPredicateNode (location: (1668...1678)) │ ├── value: @@ -2320,6 +2339,7 @@ │ │ @ ImaginaryNode (location: (1686...1688)) │ │ └── numeric: │ │ @ IntegerNode (location: (1686...1687)) + │ │ └── flags: decimal │ └── operator_loc: (1683...1685) = "in" ├── @ MatchPredicateNode (location: (1689...1698)) │ ├── value: @@ -2337,6 +2357,7 @@ │ │ @ RationalNode (location: (1696...1698)) │ │ └── numeric: │ │ @ IntegerNode (location: (1696...1697)) + │ │ └── flags: decimal │ └── operator_loc: (1693...1695) = "in" ├── @ MatchPredicateNode (location: (1699...1710)) │ ├── value: @@ -2774,6 +2795,7 @@ │ │ └── @ InNode (location: (2039...2048)) │ │ ├── pattern: │ │ │ @ IntegerNode (location: (2042...2043)) + │ │ │ └── flags: decimal │ │ ├── statements: ∅ │ │ ├── in_loc: (2039...2041) = "in" │ │ └── then_loc: (2044...2048) = "then" @@ -2820,6 +2842,7 @@ │ │ │ @ ImaginaryNode (location: (2092...2094)) │ │ │ └── numeric: │ │ │ @ IntegerNode (location: (2092...2093)) + │ │ │ └── flags: decimal │ │ ├── statements: ∅ │ │ ├── in_loc: (2089...2091) = "in" │ │ └── then_loc: (2095...2099) = "then" @@ -2844,6 +2867,7 @@ │ │ │ @ RationalNode (location: (2117...2119)) │ │ │ └── numeric: │ │ │ @ IntegerNode (location: (2117...2118)) + │ │ │ └── flags: decimal │ │ ├── statements: ∅ │ │ ├── in_loc: (2114...2116) = "in" │ │ └── then_loc: (2120...2124) = "then" @@ -3453,6 +3477,7 @@ │ │ │ │ @ StatementsNode (location: (2794...2795)) │ │ │ │ └── body: (length: 1) │ │ │ │ └── @ IntegerNode (location: (2794...2795)) + │ │ │ │ └── flags: decimal │ │ │ ├── consequent: ∅ │ │ │ └── end_keyword_loc: ∅ │ │ ├── statements: ∅ @@ -3521,6 +3546,7 @@ │ │ │ │ └── @ ImaginaryNode (location: (2858...2860)) │ │ │ │ └── numeric: │ │ │ │ @ IntegerNode (location: (2858...2859)) + │ │ │ │ └── flags: decimal │ │ │ ├── consequent: ∅ │ │ │ └── end_keyword_loc: ∅ │ │ ├── statements: ∅ @@ -3556,6 +3582,7 @@ │ │ │ │ └── @ RationalNode (location: (2890...2892)) │ │ │ │ └── numeric: │ │ │ │ @ IntegerNode (location: (2890...2891)) + │ │ │ │ └── flags: decimal │ │ │ ├── consequent: ∅ │ │ │ └── end_keyword_loc: ∅ │ │ ├── statements: ∅ diff --git a/test/yarp/snapshots/procs.txt b/test/yarp/snapshots/procs.txt index 1d65ab2a05a793..d77157f5fc299f 100644 --- a/test/yarp/snapshots/procs.txt +++ b/test/yarp/snapshots/procs.txt @@ -140,6 +140,7 @@ │ │ │ │ ├── operator_loc: (108...109) = "=" │ │ │ │ └── value: │ │ │ │ @ IntegerNode (location: (110...111)) + │ │ │ │ └── flags: decimal │ │ │ ├── posts: (length: 0) │ │ │ ├── rest: ∅ │ │ │ ├── keywords: (length: 2) @@ -185,6 +186,7 @@ │ │ │ │ ├── operator_loc: (140...141) = "=" │ │ │ │ └── value: │ │ │ │ @ IntegerNode (location: (142...143)) + │ │ │ │ └── flags: decimal │ │ │ ├── posts: (length: 0) │ │ │ ├── rest: │ │ │ │ @ RestParameterNode (location: (145...147)) @@ -238,6 +240,7 @@ │ │ │ │ ├── operator_loc: (182...183) = "=" │ │ │ │ └── value: │ │ │ │ @ IntegerNode (location: (184...185)) + │ │ │ │ └── flags: decimal │ │ │ ├── posts: (length: 0) │ │ │ ├── rest: │ │ │ │ @ RestParameterNode (location: (187...189)) diff --git a/test/yarp/snapshots/range_begin_open_exclusive.txt b/test/yarp/snapshots/range_begin_open_exclusive.txt index 60617e20c82aca..791526c1117955 100644 --- a/test/yarp/snapshots/range_begin_open_exclusive.txt +++ b/test/yarp/snapshots/range_begin_open_exclusive.txt @@ -7,5 +7,6 @@ ├── left: ∅ ├── right: │ @ IntegerNode (location: (3...4)) + │ └── flags: decimal ├── operator_loc: (0...3) = "..." └── flags: exclude_end diff --git a/test/yarp/snapshots/range_begin_open_inclusive.txt b/test/yarp/snapshots/range_begin_open_inclusive.txt index 968f1cbc4b805d..24690384d87fbf 100644 --- a/test/yarp/snapshots/range_begin_open_inclusive.txt +++ b/test/yarp/snapshots/range_begin_open_inclusive.txt @@ -7,5 +7,6 @@ ├── left: ∅ ├── right: │ @ IntegerNode (location: (2...3)) + │ └── flags: decimal ├── operator_loc: (0...2) = ".." └── flags: diff --git a/test/yarp/snapshots/range_end_open_exclusive.txt b/test/yarp/snapshots/range_end_open_exclusive.txt index 0c0172e4539b79..e6ccdf51ab6337 100644 --- a/test/yarp/snapshots/range_end_open_exclusive.txt +++ b/test/yarp/snapshots/range_end_open_exclusive.txt @@ -6,6 +6,7 @@ └── @ RangeNode (location: (0...4)) ├── left: │ @ IntegerNode (location: (0...1)) + │ └── flags: decimal ├── right: ∅ ├── operator_loc: (1...4) = "..." └── flags: exclude_end diff --git a/test/yarp/snapshots/range_end_open_inclusive.txt b/test/yarp/snapshots/range_end_open_inclusive.txt index 8fd08d21689cca..955a9effdf23c4 100644 --- a/test/yarp/snapshots/range_end_open_inclusive.txt +++ b/test/yarp/snapshots/range_end_open_inclusive.txt @@ -6,6 +6,7 @@ └── @ RangeNode (location: (0...3)) ├── left: │ @ IntegerNode (location: (0...1)) + │ └── flags: decimal ├── right: ∅ ├── operator_loc: (1...3) = ".." └── flags: diff --git a/test/yarp/snapshots/ranges.txt b/test/yarp/snapshots/ranges.txt index 72843aa9fc9bed..107fcf19f391f4 100644 --- a/test/yarp/snapshots/ranges.txt +++ b/test/yarp/snapshots/ranges.txt @@ -11,6 +11,7 @@ │ │ ├── left: ∅ │ │ ├── right: │ │ │ @ IntegerNode (location: (4...5)) + │ │ │ └── flags: decimal │ │ ├── operator_loc: (1...4) = "..." │ │ └── flags: exclude_end │ ├── opening_loc: (0...1) = "(" @@ -23,6 +24,7 @@ │ │ ├── left: ∅ │ │ ├── right: │ │ │ @ IntegerNode (location: (11...12)) + │ │ │ └── flags: decimal │ │ ├── operator_loc: (9...11) = ".." │ │ └── flags: │ ├── opening_loc: (8...9) = "(" @@ -30,8 +32,10 @@ ├── @ RangeNode (location: (15...20)) │ ├── left: │ │ @ IntegerNode (location: (15...16)) + │ │ └── flags: decimal │ ├── right: │ │ @ IntegerNode (location: (19...20)) + │ │ └── flags: decimal │ ├── operator_loc: (16...19) = "..." │ └── flags: exclude_end ├── @ CallNode (location: (22...31)) @@ -56,6 +60,7 @@ │ │ ├── left: ∅ │ │ ├── right: │ │ │ @ IntegerNode (location: (29...30)) + │ │ │ └── flags: decimal │ │ ├── operator_loc: (26...29) = "..." │ │ └── flags: exclude_end │ ├── closing_loc: (30...31) = "]" @@ -97,6 +102,7 @@ │ │ └── @ RangeNode (location: (51...55)) │ │ ├── left: │ │ │ @ IntegerNode (location: (51...52)) + │ │ │ └── flags: decimal │ │ ├── right: ∅ │ │ ├── operator_loc: (52...55) = "..." │ │ └── flags: exclude_end @@ -105,8 +111,10 @@ ├── @ RangeNode (location: (58...62)) │ ├── left: │ │ @ IntegerNode (location: (58...59)) + │ │ └── flags: decimal │ ├── right: │ │ @ IntegerNode (location: (61...62)) + │ │ └── flags: decimal │ ├── operator_loc: (59...61) = ".." │ └── flags: ├── @ HashNode (location: (64...78)) @@ -144,6 +152,7 @@ │ └── @ RangeNode (location: (81...84)) │ ├── left: │ │ @ IntegerNode (location: (81...82)) + │ │ └── flags: decimal │ ├── right: ∅ │ ├── operator_loc: (82...84) = ".." │ └── flags: diff --git a/test/yarp/snapshots/rescue.txt b/test/yarp/snapshots/rescue.txt index e4a24d170b1d8d..6419dfcec72fd2 100644 --- a/test/yarp/snapshots/rescue.txt +++ b/test/yarp/snapshots/rescue.txt @@ -76,6 +76,7 @@ │ │ @ NilNode (location: (97...100)) │ ├── right: │ │ @ IntegerNode (location: (104...105)) + │ │ └── flags: decimal │ └── operator_loc: (101...103) = "||" ├── @ RescueModifierNode (location: (107...129)) │ ├── expression: @@ -99,6 +100,7 @@ │ │ @ StatementsNode (location: (124...125)) │ │ └── body: (length: 1) │ │ └── @ IntegerNode (location: (124...125)) + │ │ └── flags: decimal │ ├── consequent: │ │ @ ElseNode (location: (126...129)) │ │ ├── else_keyword_loc: (126...127) = ":" @@ -106,6 +108,7 @@ │ │ │ @ StatementsNode (location: (128...129)) │ │ │ └── body: (length: 1) │ │ │ └── @ IntegerNode (location: (128...129)) + │ │ │ └── flags: decimal │ │ └── end_keyword_loc: ∅ │ └── end_keyword_loc: ∅ ├── @ BeginNode (location: (131...155)) @@ -293,6 +296,7 @@ │ │ │ └── @ RescueModifierNode (location: (278...291)) │ │ │ ├── expression: │ │ │ │ @ IntegerNode (location: (278...280)) + │ │ │ │ └── flags: decimal │ │ │ ├── keyword_loc: (281...287) = "rescue" │ │ │ └── rescue_expression: │ │ │ @ NilNode (location: (288...291)) diff --git a/test/yarp/snapshots/return.txt b/test/yarp/snapshots/return.txt index 04d527038d0d9a..fa6d8984f7239c 100644 --- a/test/yarp/snapshots/return.txt +++ b/test/yarp/snapshots/return.txt @@ -16,6 +16,7 @@ │ │ │ @ StatementsNode (location: (16...17)) │ │ │ └── body: (length: 1) │ │ │ └── @ IntegerNode (location: (16...17)) + │ │ │ └── flags: decimal │ │ ├── opening_loc: (15...16) = "(" │ │ └── closing_loc: (17...18) = ")" │ ├── @ ParenthesesNode (location: (20...23)) @@ -23,6 +24,7 @@ │ │ │ @ StatementsNode (location: (21...22)) │ │ │ └── body: (length: 1) │ │ │ └── @ IntegerNode (location: (21...22)) + │ │ │ └── flags: decimal │ │ ├── opening_loc: (20...21) = "(" │ │ └── closing_loc: (22...23) = ")" │ └── @ ParenthesesNode (location: (25...28)) @@ -30,6 +32,7 @@ │ │ @ StatementsNode (location: (26...27)) │ │ └── body: (length: 1) │ │ └── @ IntegerNode (location: (26...27)) + │ │ └── flags: decimal │ ├── opening_loc: (25...26) = "(" │ └── closing_loc: (27...28) = ")" ├── @ ReturnNode (location: (30...39)) @@ -41,28 +44,36 @@ │ ├── operator_loc: (37...38) = "*" │ └── expression: │ @ IntegerNode (location: (38...39)) + │ └── flags: decimal ├── @ ReturnNode (location: (41...49)) │ ├── keyword_loc: (41...47) = "return" │ └── arguments: │ @ ArgumentsNode (location: (48...49)) │ └── arguments: (length: 1) │ └── @ IntegerNode (location: (48...49)) + │ └── flags: decimal ├── @ ReturnNode (location: (51...65)) │ ├── keyword_loc: (51...57) = "return" │ └── arguments: │ @ ArgumentsNode (location: (58...65)) │ └── arguments: (length: 3) │ ├── @ IntegerNode (location: (58...59)) + │ │ └── flags: decimal │ ├── @ IntegerNode (location: (61...62)) + │ │ └── flags: decimal │ └── @ IntegerNode (location: (64...65)) + │ └── flags: decimal ├── @ ReturnNode (location: (67...81)) │ ├── keyword_loc: (67...73) = "return" │ └── arguments: │ @ ArgumentsNode (location: (74...81)) │ └── arguments: (length: 3) │ ├── @ IntegerNode (location: (74...75)) + │ │ └── flags: decimal │ ├── @ IntegerNode (location: (77...78)) + │ │ └── flags: decimal │ └── @ IntegerNode (location: (80...81)) + │ └── flags: decimal ├── @ ReturnNode (location: (83...99)) │ ├── keyword_loc: (83...89) = "return" │ └── arguments: @@ -71,8 +82,11 @@ │ └── @ ArrayNode (location: (90...99)) │ ├── elements: (length: 3) │ │ ├── @ IntegerNode (location: (91...92)) + │ │ │ └── flags: decimal │ │ ├── @ IntegerNode (location: (94...95)) + │ │ │ └── flags: decimal │ │ └── @ IntegerNode (location: (97...98)) + │ │ └── flags: decimal │ ├── opening_loc: (90...91) = "[" │ └── closing_loc: (98...99) = "]" ├── @ ReturnNode (location: (101...118)) @@ -85,7 +99,9 @@ │ │ @ StatementsNode (location: (111...116)) │ │ └── body: (length: 2) │ │ ├── @ IntegerNode (location: (111...112)) + │ │ │ └── flags: decimal │ │ └── @ IntegerNode (location: (115...116)) + │ │ └── flags: decimal │ ├── opening_loc: (107...108) = "(" │ └── closing_loc: (117...118) = ")" ├── @ ReturnNode (location: (120...128)) @@ -107,5 +123,6 @@ │ @ StatementsNode (location: (137...138)) │ └── body: (length: 1) │ └── @ IntegerNode (location: (137...138)) + │ └── flags: decimal ├── opening_loc: (136...137) = "(" └── closing_loc: (138...139) = ")" diff --git a/test/yarp/snapshots/seattlerb/BEGIN.txt b/test/yarp/snapshots/seattlerb/BEGIN.txt index ed4bcd8d39cca0..5f1613c118cbef 100644 --- a/test/yarp/snapshots/seattlerb/BEGIN.txt +++ b/test/yarp/snapshots/seattlerb/BEGIN.txt @@ -8,6 +8,7 @@ │ @ StatementsNode (location: (8...10)) │ └── body: (length: 1) │ └── @ IntegerNode (location: (8...10)) + │ └── flags: decimal ├── keyword_loc: (0...5) = "BEGIN" ├── opening_loc: (6...7) = "{" └── closing_loc: (11...12) = "}" diff --git a/test/yarp/snapshots/seattlerb/TestRubyParserShared.txt b/test/yarp/snapshots/seattlerb/TestRubyParserShared.txt index d58647a38ac575..049adae04bf974 100644 --- a/test/yarp/snapshots/seattlerb/TestRubyParserShared.txt +++ b/test/yarp/snapshots/seattlerb/TestRubyParserShared.txt @@ -181,6 +181,7 @@ │ │ │ ├── name_loc: (337...338) = "Z" │ │ │ ├── value: │ │ │ │ @ IntegerNode (location: (341...343)) + │ │ │ │ └── flags: decimal │ │ │ └── operator_loc: (339...340) = "=" │ │ ├── end_keyword_loc: (355...358) = "end" │ │ └── name: :Y @@ -297,6 +298,7 @@ │ │ │ ├── name_loc: (612...613) = "Z" │ │ │ ├── value: │ │ │ │ @ IntegerNode (location: (616...618)) + │ │ │ │ └── flags: decimal │ │ │ └── operator_loc: (614...615) = "=" │ │ ├── end_keyword_loc: (630...633) = "end" │ │ └── name: :Y diff --git a/test/yarp/snapshots/seattlerb/aref_args_assocs.txt b/test/yarp/snapshots/seattlerb/aref_args_assocs.txt index 1a0a456faef253..119479f60c583e 100644 --- a/test/yarp/snapshots/seattlerb/aref_args_assocs.txt +++ b/test/yarp/snapshots/seattlerb/aref_args_assocs.txt @@ -10,8 +10,10 @@ │ └── @ AssocNode (location: (1...7)) │ ├── key: │ │ @ IntegerNode (location: (1...2)) + │ │ └── flags: decimal │ ├── value: │ │ @ IntegerNode (location: (6...7)) + │ │ └── flags: decimal │ └── operator_loc: (3...5) = "=>" ├── opening_loc: (0...1) = "[" └── closing_loc: (7...8) = "]" diff --git a/test/yarp/snapshots/seattlerb/aref_args_lit_assocs.txt b/test/yarp/snapshots/seattlerb/aref_args_lit_assocs.txt index 7940b9c613c6f5..d7202137582662 100644 --- a/test/yarp/snapshots/seattlerb/aref_args_lit_assocs.txt +++ b/test/yarp/snapshots/seattlerb/aref_args_lit_assocs.txt @@ -6,13 +6,16 @@ └── @ ArrayNode (location: (0...11)) ├── elements: (length: 2) │ ├── @ IntegerNode (location: (1...2)) + │ │ └── flags: decimal │ └── @ KeywordHashNode (location: (4...10)) │ └── elements: (length: 1) │ └── @ AssocNode (location: (4...10)) │ ├── key: │ │ @ IntegerNode (location: (4...5)) + │ │ └── flags: decimal │ ├── value: │ │ @ IntegerNode (location: (9...10)) + │ │ └── flags: decimal │ └── operator_loc: (6...8) = "=>" ├── opening_loc: (0...1) = "[" └── closing_loc: (10...11) = "]" diff --git a/test/yarp/snapshots/seattlerb/args_kw_block.txt b/test/yarp/snapshots/seattlerb/args_kw_block.txt index a7cf356308b870..45a361514d8568 100644 --- a/test/yarp/snapshots/seattlerb/args_kw_block.txt +++ b/test/yarp/snapshots/seattlerb/args_kw_block.txt @@ -19,6 +19,7 @@ │ │ ├── name_loc: (6...8) = "a:" │ │ └── value: │ │ @ IntegerNode (location: (9...10)) + │ │ └── flags: decimal │ ├── keyword_rest: ∅ │ └── block: │ @ BlockParameterNode (location: (12...14)) diff --git a/test/yarp/snapshots/seattlerb/array_line_breaks.txt b/test/yarp/snapshots/seattlerb/array_line_breaks.txt index 73b274f97c8639..35f650fd3031ca 100644 --- a/test/yarp/snapshots/seattlerb/array_line_breaks.txt +++ b/test/yarp/snapshots/seattlerb/array_line_breaks.txt @@ -18,3 +18,4 @@ │ ├── opening_loc: (0...1) = "[" │ └── closing_loc: (10...11) = "]" └── @ IntegerNode (location: (12...13)) + └── flags: decimal diff --git a/test/yarp/snapshots/seattlerb/assoc_label.txt b/test/yarp/snapshots/seattlerb/assoc_label.txt index 7bd8c22b72d811..2332eb7c43cf44 100644 --- a/test/yarp/snapshots/seattlerb/assoc_label.txt +++ b/test/yarp/snapshots/seattlerb/assoc_label.txt @@ -22,6 +22,7 @@ │ │ └── unescaped: "b" │ ├── value: │ │ @ IntegerNode (location: (4...5)) + │ │ └── flags: decimal │ └── operator_loc: ∅ ├── closing_loc: (5...6) = ")" ├── block: ∅ diff --git a/test/yarp/snapshots/seattlerb/attr_asgn_colon_id.txt b/test/yarp/snapshots/seattlerb/attr_asgn_colon_id.txt index ed44c31c59b085..850f84290fdb11 100644 --- a/test/yarp/snapshots/seattlerb/attr_asgn_colon_id.txt +++ b/test/yarp/snapshots/seattlerb/attr_asgn_colon_id.txt @@ -14,6 +14,7 @@ │ @ ArgumentsNode (location: (7...8)) │ └── arguments: (length: 1) │ └── @ IntegerNode (location: (7...8)) + │ └── flags: decimal ├── closing_loc: ∅ ├── block: ∅ ├── flags: diff --git a/test/yarp/snapshots/seattlerb/attrasgn_array_arg.txt b/test/yarp/snapshots/seattlerb/attrasgn_array_arg.txt index 6597260048069d..412fa726bda46d 100644 --- a/test/yarp/snapshots/seattlerb/attrasgn_array_arg.txt +++ b/test/yarp/snapshots/seattlerb/attrasgn_array_arg.txt @@ -24,10 +24,13 @@ │ ├── @ ArrayNode (location: (2...8)) │ │ ├── elements: (length: 2) │ │ │ ├── @ IntegerNode (location: (3...4)) + │ │ │ │ └── flags: decimal │ │ │ └── @ IntegerNode (location: (6...7)) + │ │ │ └── flags: decimal │ │ ├── opening_loc: (2...3) = "[" │ │ └── closing_loc: (7...8) = "]" │ └── @ IntegerNode (location: (12...13)) + │ └── flags: decimal ├── closing_loc: (8...9) = "]" ├── block: ∅ ├── flags: diff --git a/test/yarp/snapshots/seattlerb/attrasgn_array_lhs.txt b/test/yarp/snapshots/seattlerb/attrasgn_array_lhs.txt index 4d406450d789b2..2f6c084fd9da97 100644 --- a/test/yarp/snapshots/seattlerb/attrasgn_array_lhs.txt +++ b/test/yarp/snapshots/seattlerb/attrasgn_array_lhs.txt @@ -8,9 +8,13 @@ │ @ ArrayNode (location: (0...12)) │ ├── elements: (length: 4) │ │ ├── @ IntegerNode (location: (1...2)) + │ │ │ └── flags: decimal │ │ ├── @ IntegerNode (location: (4...5)) + │ │ │ └── flags: decimal │ │ ├── @ IntegerNode (location: (7...8)) + │ │ │ └── flags: decimal │ │ └── @ IntegerNode (location: (10...11)) + │ │ └── flags: decimal │ ├── opening_loc: (0...1) = "[" │ └── closing_loc: (11...12) = "]" ├── call_operator_loc: ∅ diff --git a/test/yarp/snapshots/seattlerb/attrasgn_primary_dot_constant.txt b/test/yarp/snapshots/seattlerb/attrasgn_primary_dot_constant.txt index 5d5417a78cbdf8..ad5038ed79e44e 100644 --- a/test/yarp/snapshots/seattlerb/attrasgn_primary_dot_constant.txt +++ b/test/yarp/snapshots/seattlerb/attrasgn_primary_dot_constant.txt @@ -22,6 +22,7 @@ │ @ ArgumentsNode (location: (6...7)) │ └── arguments: (length: 1) │ └── @ IntegerNode (location: (6...7)) + │ └── flags: decimal ├── closing_loc: ∅ ├── block: ∅ ├── flags: diff --git a/test/yarp/snapshots/seattlerb/bang_eq.txt b/test/yarp/snapshots/seattlerb/bang_eq.txt index 452b96abfc02f0..8a545401b6d21a 100644 --- a/test/yarp/snapshots/seattlerb/bang_eq.txt +++ b/test/yarp/snapshots/seattlerb/bang_eq.txt @@ -6,6 +6,7 @@ └── @ CallNode (location: (0...6)) ├── receiver: │ @ IntegerNode (location: (0...1)) + │ └── flags: decimal ├── call_operator_loc: ∅ ├── message_loc: (2...4) = "!=" ├── opening_loc: ∅ @@ -13,6 +14,7 @@ │ @ ArgumentsNode (location: (5...6)) │ └── arguments: (length: 1) │ └── @ IntegerNode (location: (5...6)) + │ └── flags: decimal ├── closing_loc: ∅ ├── block: ∅ ├── flags: diff --git a/test/yarp/snapshots/seattlerb/bdot2.txt b/test/yarp/snapshots/seattlerb/bdot2.txt index bedf632af0d2f2..3308d855d9ea91 100644 --- a/test/yarp/snapshots/seattlerb/bdot2.txt +++ b/test/yarp/snapshots/seattlerb/bdot2.txt @@ -7,6 +7,7 @@ │ ├── left: ∅ │ ├── right: │ │ @ IntegerNode (location: (2...4)) + │ │ └── flags: decimal │ ├── operator_loc: (0...2) = ".." │ └── flags: ├── @ RangeNode (location: (7...10)) diff --git a/test/yarp/snapshots/seattlerb/bdot3.txt b/test/yarp/snapshots/seattlerb/bdot3.txt index 3f1ec496ce8f47..6c6bc6b9166421 100644 --- a/test/yarp/snapshots/seattlerb/bdot3.txt +++ b/test/yarp/snapshots/seattlerb/bdot3.txt @@ -7,6 +7,7 @@ │ ├── left: ∅ │ ├── right: │ │ @ IntegerNode (location: (3...5)) + │ │ └── flags: decimal │ ├── operator_loc: (0...3) = "..." │ └── flags: exclude_end ├── @ RangeNode (location: (8...12)) diff --git a/test/yarp/snapshots/seattlerb/begin_rescue_else_ensure_bodies.txt b/test/yarp/snapshots/seattlerb/begin_rescue_else_ensure_bodies.txt index 4af7f0247f69d9..634adfd4ca240d 100644 --- a/test/yarp/snapshots/seattlerb/begin_rescue_else_ensure_bodies.txt +++ b/test/yarp/snapshots/seattlerb/begin_rescue_else_ensure_bodies.txt @@ -9,6 +9,7 @@ │ @ StatementsNode (location: (8...9)) │ └── body: (length: 1) │ └── @ IntegerNode (location: (8...9)) + │ └── flags: decimal ├── rescue_clause: │ @ RescueNode (location: (10...20)) │ ├── keyword_loc: (10...16) = "rescue" @@ -19,6 +20,7 @@ │ │ @ StatementsNode (location: (19...20)) │ │ └── body: (length: 1) │ │ └── @ IntegerNode (location: (19...20)) + │ │ └── flags: decimal │ └── consequent: ∅ ├── else_clause: │ @ ElseNode (location: (21...36)) @@ -27,6 +29,7 @@ │ │ @ StatementsNode (location: (28...29)) │ │ └── body: (length: 1) │ │ └── @ IntegerNode (location: (28...29)) + │ │ └── flags: decimal │ └── end_keyword_loc: (30...36) = "ensure" ├── ensure_clause: │ @ EnsureNode (location: (30...44)) @@ -35,5 +38,6 @@ │ │ @ StatementsNode (location: (39...40)) │ │ └── body: (length: 1) │ │ └── @ IntegerNode (location: (39...40)) + │ │ └── flags: decimal │ └── end_keyword_loc: (41...44) = "end" └── end_keyword_loc: (41...44) = "end" diff --git a/test/yarp/snapshots/seattlerb/block_arg_opt_arg_block.txt b/test/yarp/snapshots/seattlerb/block_arg_opt_arg_block.txt index 4795530f6ee89b..7af1e359ffdaf3 100644 --- a/test/yarp/snapshots/seattlerb/block_arg_opt_arg_block.txt +++ b/test/yarp/snapshots/seattlerb/block_arg_opt_arg_block.txt @@ -27,6 +27,7 @@ │ │ │ │ ├── operator_loc: (9...10) = "=" │ │ │ │ └── value: │ │ │ │ @ IntegerNode (location: (10...11)) + │ │ │ │ └── flags: decimal │ │ │ ├── posts: (length: 1) │ │ │ │ └── @ RequiredParameterNode (location: (13...14)) │ │ │ │ └── name: :d diff --git a/test/yarp/snapshots/seattlerb/block_arg_opt_splat.txt b/test/yarp/snapshots/seattlerb/block_arg_opt_splat.txt index b72cb87ca9f3cc..b064de5cc97b42 100644 --- a/test/yarp/snapshots/seattlerb/block_arg_opt_splat.txt +++ b/test/yarp/snapshots/seattlerb/block_arg_opt_splat.txt @@ -27,6 +27,7 @@ │ │ │ │ ├── operator_loc: (10...11) = "=" │ │ │ │ └── value: │ │ │ │ @ IntegerNode (location: (12...13)) + │ │ │ │ └── flags: decimal │ │ │ ├── posts: (length: 0) │ │ │ ├── rest: │ │ │ │ @ RestParameterNode (location: (15...17)) diff --git a/test/yarp/snapshots/seattlerb/block_arg_opt_splat_arg_block_omfg.txt b/test/yarp/snapshots/seattlerb/block_arg_opt_splat_arg_block_omfg.txt index 8cb9cf27a90ce6..9a3c3532d009a9 100644 --- a/test/yarp/snapshots/seattlerb/block_arg_opt_splat_arg_block_omfg.txt +++ b/test/yarp/snapshots/seattlerb/block_arg_opt_splat_arg_block_omfg.txt @@ -27,6 +27,7 @@ │ │ │ │ ├── operator_loc: (9...10) = "=" │ │ │ │ └── value: │ │ │ │ @ IntegerNode (location: (10...11)) + │ │ │ │ └── flags: decimal │ │ │ ├── posts: (length: 1) │ │ │ │ └── @ RequiredParameterNode (location: (17...18)) │ │ │ │ └── name: :e diff --git a/test/yarp/snapshots/seattlerb/block_arg_optional.txt b/test/yarp/snapshots/seattlerb/block_arg_optional.txt index 5e4115da2327ff..eee916a6be3f2e 100644 --- a/test/yarp/snapshots/seattlerb/block_arg_optional.txt +++ b/test/yarp/snapshots/seattlerb/block_arg_optional.txt @@ -25,6 +25,7 @@ │ │ │ │ ├── operator_loc: (7...8) = "=" │ │ │ │ └── value: │ │ │ │ @ IntegerNode (location: (9...10)) + │ │ │ │ └── flags: decimal │ │ │ ├── posts: (length: 0) │ │ │ ├── rest: ∅ │ │ │ ├── keywords: (length: 0) diff --git a/test/yarp/snapshots/seattlerb/block_args_opt1.txt b/test/yarp/snapshots/seattlerb/block_args_opt1.txt index 0d26f06c3c14c1..b669c510bf766f 100644 --- a/test/yarp/snapshots/seattlerb/block_args_opt1.txt +++ b/test/yarp/snapshots/seattlerb/block_args_opt1.txt @@ -27,6 +27,7 @@ │ │ │ │ ├── operator_loc: (10...11) = "=" │ │ │ │ └── value: │ │ │ │ @ IntegerNode (location: (12...14)) + │ │ │ │ └── flags: decimal │ │ │ ├── posts: (length: 0) │ │ │ ├── rest: ∅ │ │ │ ├── keywords: (length: 0) diff --git a/test/yarp/snapshots/seattlerb/block_args_opt2.txt b/test/yarp/snapshots/seattlerb/block_args_opt2.txt index 6e3bb30419f07d..a7323f8abefe17 100644 --- a/test/yarp/snapshots/seattlerb/block_args_opt2.txt +++ b/test/yarp/snapshots/seattlerb/block_args_opt2.txt @@ -25,12 +25,14 @@ │ │ │ │ │ ├── operator_loc: (7...8) = "=" │ │ │ │ │ └── value: │ │ │ │ │ @ IntegerNode (location: (8...9)) + │ │ │ │ │ └── flags: decimal │ │ │ │ └── @ OptionalParameterNode (location: (11...14)) │ │ │ │ ├── name: :c │ │ │ │ ├── name_loc: (11...12) = "c" │ │ │ │ ├── operator_loc: (12...13) = "=" │ │ │ │ └── value: │ │ │ │ @ IntegerNode (location: (13...14)) + │ │ │ │ └── flags: decimal │ │ │ ├── posts: (length: 0) │ │ │ ├── rest: ∅ │ │ │ ├── keywords: (length: 0) diff --git a/test/yarp/snapshots/seattlerb/block_args_opt2_2.txt b/test/yarp/snapshots/seattlerb/block_args_opt2_2.txt index 15c683de602f80..c6db1d93643463 100644 --- a/test/yarp/snapshots/seattlerb/block_args_opt2_2.txt +++ b/test/yarp/snapshots/seattlerb/block_args_opt2_2.txt @@ -27,12 +27,14 @@ │ │ │ │ │ ├── operator_loc: (10...11) = "=" │ │ │ │ │ └── value: │ │ │ │ │ @ IntegerNode (location: (12...14)) + │ │ │ │ │ └── flags: decimal │ │ │ │ └── @ OptionalParameterNode (location: (16...22)) │ │ │ │ ├── name: :c │ │ │ │ ├── name_loc: (16...17) = "c" │ │ │ │ ├── operator_loc: (18...19) = "=" │ │ │ │ └── value: │ │ │ │ @ IntegerNode (location: (20...22)) + │ │ │ │ └── flags: decimal │ │ │ ├── posts: (length: 0) │ │ │ ├── rest: ∅ │ │ │ ├── keywords: (length: 0) diff --git a/test/yarp/snapshots/seattlerb/block_args_opt3.txt b/test/yarp/snapshots/seattlerb/block_args_opt3.txt index 794382690dab05..f7a743c5e944ad 100644 --- a/test/yarp/snapshots/seattlerb/block_args_opt3.txt +++ b/test/yarp/snapshots/seattlerb/block_args_opt3.txt @@ -27,12 +27,14 @@ │ │ │ │ │ ├── operator_loc: (10...11) = "=" │ │ │ │ │ └── value: │ │ │ │ │ @ IntegerNode (location: (12...14)) + │ │ │ │ │ └── flags: decimal │ │ │ │ └── @ OptionalParameterNode (location: (16...22)) │ │ │ │ ├── name: :c │ │ │ │ ├── name_loc: (16...17) = "c" │ │ │ │ ├── operator_loc: (18...19) = "=" │ │ │ │ └── value: │ │ │ │ @ IntegerNode (location: (20...22)) + │ │ │ │ └── flags: decimal │ │ │ ├── posts: (length: 0) │ │ │ ├── rest: ∅ │ │ │ ├── keywords: (length: 0) diff --git a/test/yarp/snapshots/seattlerb/block_kw.txt b/test/yarp/snapshots/seattlerb/block_kw.txt index 38d5542264e499..1df66b00e356f7 100644 --- a/test/yarp/snapshots/seattlerb/block_kw.txt +++ b/test/yarp/snapshots/seattlerb/block_kw.txt @@ -27,6 +27,7 @@ │ │ │ │ ├── name_loc: (8...10) = "k:" │ │ │ │ └── value: │ │ │ │ @ IntegerNode (location: (10...12)) + │ │ │ │ └── flags: decimal │ │ │ ├── keyword_rest: ∅ │ │ │ └── block: ∅ │ │ ├── locals: (length: 0) diff --git a/test/yarp/snapshots/seattlerb/block_opt_arg.txt b/test/yarp/snapshots/seattlerb/block_opt_arg.txt index 2b0e4cfec519d5..466ef7e9933794 100644 --- a/test/yarp/snapshots/seattlerb/block_opt_arg.txt +++ b/test/yarp/snapshots/seattlerb/block_opt_arg.txt @@ -25,6 +25,7 @@ │ │ │ │ ├── operator_loc: (6...7) = "=" │ │ │ │ └── value: │ │ │ │ @ IntegerNode (location: (7...8)) + │ │ │ │ └── flags: decimal │ │ │ ├── posts: (length: 1) │ │ │ │ └── @ RequiredParameterNode (location: (10...11)) │ │ │ │ └── name: :c diff --git a/test/yarp/snapshots/seattlerb/block_opt_splat.txt b/test/yarp/snapshots/seattlerb/block_opt_splat.txt index 8078ddffb1cd37..5d792b641f121d 100644 --- a/test/yarp/snapshots/seattlerb/block_opt_splat.txt +++ b/test/yarp/snapshots/seattlerb/block_opt_splat.txt @@ -25,6 +25,7 @@ │ │ │ │ ├── operator_loc: (7...8) = "=" │ │ │ │ └── value: │ │ │ │ @ IntegerNode (location: (9...10)) + │ │ │ │ └── flags: decimal │ │ │ ├── posts: (length: 0) │ │ │ ├── rest: │ │ │ │ @ RestParameterNode (location: (12...14)) diff --git a/test/yarp/snapshots/seattlerb/block_opt_splat_arg_block_omfg.txt b/test/yarp/snapshots/seattlerb/block_opt_splat_arg_block_omfg.txt index d4da0b133d3768..f47647b2aa5c07 100644 --- a/test/yarp/snapshots/seattlerb/block_opt_splat_arg_block_omfg.txt +++ b/test/yarp/snapshots/seattlerb/block_opt_splat_arg_block_omfg.txt @@ -25,6 +25,7 @@ │ │ │ │ ├── operator_loc: (6...7) = "=" │ │ │ │ └── value: │ │ │ │ @ IntegerNode (location: (7...8)) + │ │ │ │ └── flags: decimal │ │ │ ├── posts: (length: 1) │ │ │ │ └── @ RequiredParameterNode (location: (14...15)) │ │ │ │ └── name: :d diff --git a/test/yarp/snapshots/seattlerb/bug202.txt b/test/yarp/snapshots/seattlerb/bug202.txt index f8efeee0e56599..86d1d9ca2bf910 100644 --- a/test/yarp/snapshots/seattlerb/bug202.txt +++ b/test/yarp/snapshots/seattlerb/bug202.txt @@ -8,6 +8,7 @@ │ ├── name_loc: (0...7) = "$测试" │ ├── value: │ │ @ IntegerNode (location: (10...11)) + │ │ └── flags: decimal │ └── operator_loc: (8...9) = "=" └── @ LocalVariableWriteNode (location: (12...22)) ├── name: :测试 @@ -15,4 +16,5 @@ ├── name_loc: (12...18) = "测试" ├── value: │ @ IntegerNode (location: (21...22)) + │ └── flags: decimal └── operator_loc: (19...20) = "=" diff --git a/test/yarp/snapshots/seattlerb/bug_call_arglist_parens.txt b/test/yarp/snapshots/seattlerb/bug_call_arglist_parens.txt index 6a995dac6438a1..fe4b4fff9dfddd 100644 --- a/test/yarp/snapshots/seattlerb/bug_call_arglist_parens.txt +++ b/test/yarp/snapshots/seattlerb/bug_call_arglist_parens.txt @@ -24,9 +24,11 @@ │ │ │ │ │ @ StatementsNode (location: (24...25)) │ │ │ │ │ └── body: (length: 1) │ │ │ │ │ └── @ IntegerNode (location: (24...25)) + │ │ │ │ │ └── flags: decimal │ │ │ │ ├── opening_loc: (22...23) = "(" │ │ │ │ └── closing_loc: (25...26) = ")" │ │ │ └── @ IntegerNode (location: (28...29)) + │ │ │ └── flags: decimal │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: @@ -59,9 +61,11 @@ │ │ │ │ │ @ StatementsNode (location: (67...68)) │ │ │ │ │ └── body: (length: 1) │ │ │ │ │ └── @ IntegerNode (location: (67...68)) + │ │ │ │ │ └── flags: decimal │ │ │ │ ├── opening_loc: (66...67) = "(" │ │ │ │ └── closing_loc: (68...69) = ")" │ │ │ └── @ IntegerNode (location: (71...72)) + │ │ │ └── flags: decimal │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: @@ -86,9 +90,11 @@ │ │ │ @ StatementsNode (location: (89...90)) │ │ │ └── body: (length: 1) │ │ │ └── @ IntegerNode (location: (89...90)) + │ │ │ └── flags: decimal │ │ ├── opening_loc: (87...88) = "(" │ │ └── closing_loc: (90...91) = ")" │ └── @ IntegerNode (location: (93...94)) + │ └── flags: decimal ├── closing_loc: ∅ ├── block: ∅ ├── flags: diff --git a/test/yarp/snapshots/seattlerb/call_and.txt b/test/yarp/snapshots/seattlerb/call_and.txt index fe118a8dc477cc..5759a5258336d8 100644 --- a/test/yarp/snapshots/seattlerb/call_and.txt +++ b/test/yarp/snapshots/seattlerb/call_and.txt @@ -6,6 +6,7 @@ └── @ CallNode (location: (0...5)) ├── receiver: │ @ IntegerNode (location: (0...1)) + │ └── flags: decimal ├── call_operator_loc: ∅ ├── message_loc: (2...3) = "&" ├── opening_loc: ∅ @@ -13,6 +14,7 @@ │ @ ArgumentsNode (location: (4...5)) │ └── arguments: (length: 1) │ └── @ IntegerNode (location: (4...5)) + │ └── flags: decimal ├── closing_loc: ∅ ├── block: ∅ ├── flags: diff --git a/test/yarp/snapshots/seattlerb/call_arg_assoc.txt b/test/yarp/snapshots/seattlerb/call_arg_assoc.txt index 3845a3d0c6da5d..794cdff0d7b7f5 100644 --- a/test/yarp/snapshots/seattlerb/call_arg_assoc.txt +++ b/test/yarp/snapshots/seattlerb/call_arg_assoc.txt @@ -12,13 +12,16 @@ │ @ ArgumentsNode (location: (2...9)) │ └── arguments: (length: 2) │ ├── @ IntegerNode (location: (2...3)) + │ │ └── flags: decimal │ └── @ KeywordHashNode (location: (5...9)) │ └── elements: (length: 1) │ └── @ AssocNode (location: (5...9)) │ ├── key: │ │ @ IntegerNode (location: (5...6)) + │ │ └── flags: decimal │ ├── value: │ │ @ IntegerNode (location: (8...9)) + │ │ └── flags: decimal │ └── operator_loc: (6...8) = "=>" ├── closing_loc: (9...10) = ")" ├── block: ∅ diff --git a/test/yarp/snapshots/seattlerb/call_arg_assoc_kwsplat.txt b/test/yarp/snapshots/seattlerb/call_arg_assoc_kwsplat.txt index 22766ae91a0590..e0be89867e5c53 100644 --- a/test/yarp/snapshots/seattlerb/call_arg_assoc_kwsplat.txt +++ b/test/yarp/snapshots/seattlerb/call_arg_assoc_kwsplat.txt @@ -12,6 +12,7 @@ │ @ ArgumentsNode (location: (2...15)) │ └── arguments: (length: 2) │ ├── @ IntegerNode (location: (2...3)) + │ │ └── flags: decimal │ └── @ KeywordHashNode (location: (5...15)) │ └── elements: (length: 2) │ ├── @ AssocNode (location: (5...10)) @@ -23,10 +24,12 @@ │ │ │ └── unescaped: "kw" │ │ ├── value: │ │ │ @ IntegerNode (location: (9...10)) + │ │ │ └── flags: decimal │ │ └── operator_loc: ∅ │ └── @ AssocSplatNode (location: (12...15)) │ ├── value: │ │ @ IntegerNode (location: (14...15)) + │ │ └── flags: decimal │ └── operator_loc: (12...14) = "**" ├── closing_loc: (15...16) = ")" ├── block: ∅ diff --git a/test/yarp/snapshots/seattlerb/call_arg_kwsplat.txt b/test/yarp/snapshots/seattlerb/call_arg_kwsplat.txt index 5d5ee7f8b036ee..36f34b8c893e26 100644 --- a/test/yarp/snapshots/seattlerb/call_arg_kwsplat.txt +++ b/test/yarp/snapshots/seattlerb/call_arg_kwsplat.txt @@ -26,6 +26,7 @@ │ └── @ AssocSplatNode (location: (5...8)) │ ├── value: │ │ @ IntegerNode (location: (7...8)) + │ │ └── flags: decimal │ └── operator_loc: (5...7) = "**" ├── closing_loc: (8...9) = ")" ├── block: ∅ diff --git a/test/yarp/snapshots/seattlerb/call_args_assoc_quoted.txt b/test/yarp/snapshots/seattlerb/call_args_assoc_quoted.txt index b1881eeb1c7327..95b4588caab46f 100644 --- a/test/yarp/snapshots/seattlerb/call_args_assoc_quoted.txt +++ b/test/yarp/snapshots/seattlerb/call_args_assoc_quoted.txt @@ -37,6 +37,7 @@ │ │ │ └── closing_loc: (7...9) = "\":" │ │ ├── value: │ │ │ @ IntegerNode (location: (9...11)) + │ │ │ └── flags: decimal │ │ └── operator_loc: ∅ │ ├── closing_loc: ∅ │ ├── block: ∅ @@ -61,6 +62,7 @@ │ │ │ └── unescaped: "k" │ │ ├── value: │ │ │ @ IntegerNode (location: (19...21)) + │ │ │ └── flags: decimal │ │ └── operator_loc: ∅ │ ├── closing_loc: ∅ │ ├── block: ∅ @@ -85,6 +87,7 @@ │ │ └── unescaped: "k" │ ├── value: │ │ @ IntegerNode (location: (29...31)) + │ │ └── flags: decimal │ └── operator_loc: ∅ ├── closing_loc: ∅ ├── block: ∅ diff --git a/test/yarp/snapshots/seattlerb/call_args_assoc_trailing_comma.txt b/test/yarp/snapshots/seattlerb/call_args_assoc_trailing_comma.txt index 2d5f439bf5298a..c1f203a9b653d2 100644 --- a/test/yarp/snapshots/seattlerb/call_args_assoc_trailing_comma.txt +++ b/test/yarp/snapshots/seattlerb/call_args_assoc_trailing_comma.txt @@ -12,13 +12,16 @@ │ @ ArgumentsNode (location: (2...9)) │ └── arguments: (length: 2) │ ├── @ IntegerNode (location: (2...3)) + │ │ └── flags: decimal │ └── @ KeywordHashNode (location: (5...9)) │ └── elements: (length: 1) │ └── @ AssocNode (location: (5...9)) │ ├── key: │ │ @ IntegerNode (location: (5...6)) + │ │ └── flags: decimal │ ├── value: │ │ @ IntegerNode (location: (8...9)) + │ │ └── flags: decimal │ └── operator_loc: (6...8) = "=>" ├── closing_loc: (10...11) = ")" ├── block: ∅ diff --git a/test/yarp/snapshots/seattlerb/call_args_command.txt b/test/yarp/snapshots/seattlerb/call_args_command.txt index 8209fdfe1604a9..89bf0a6617b58b 100644 --- a/test/yarp/snapshots/seattlerb/call_args_command.txt +++ b/test/yarp/snapshots/seattlerb/call_args_command.txt @@ -40,6 +40,7 @@ │ │ @ ArgumentsNode (location: (8...9)) │ │ └── arguments: (length: 1) │ │ └── @ IntegerNode (location: (8...9)) + │ │ └── flags: decimal │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: diff --git a/test/yarp/snapshots/seattlerb/call_array_arg.txt b/test/yarp/snapshots/seattlerb/call_array_arg.txt index e278e2d40bbec5..eb2d8f8083445b 100644 --- a/test/yarp/snapshots/seattlerb/call_array_arg.txt +++ b/test/yarp/snapshots/seattlerb/call_array_arg.txt @@ -6,6 +6,7 @@ └── @ CallNode (location: (0...13)) ├── receiver: │ @ IntegerNode (location: (0...1)) + │ └── flags: decimal ├── call_operator_loc: ∅ ├── message_loc: (2...4) = "==" ├── opening_loc: ∅ diff --git a/test/yarp/snapshots/seattlerb/call_array_lit_inline_hash.txt b/test/yarp/snapshots/seattlerb/call_array_lit_inline_hash.txt index b8dd0eb9281b72..28e6f54e87261b 100644 --- a/test/yarp/snapshots/seattlerb/call_array_lit_inline_hash.txt +++ b/test/yarp/snapshots/seattlerb/call_array_lit_inline_hash.txt @@ -29,6 +29,7 @@ │ │ │ └── unescaped: "c" │ │ ├── value: │ │ │ @ IntegerNode (location: (13...14)) + │ │ │ └── flags: decimal │ │ └── operator_loc: (10...12) = "=>" │ ├── opening_loc: (2...3) = "[" │ └── closing_loc: (14...15) = "]" diff --git a/test/yarp/snapshots/seattlerb/call_assoc.txt b/test/yarp/snapshots/seattlerb/call_assoc.txt index 666a2560b8d137..75eca7f7fe2fdb 100644 --- a/test/yarp/snapshots/seattlerb/call_assoc.txt +++ b/test/yarp/snapshots/seattlerb/call_assoc.txt @@ -16,8 +16,10 @@ │ └── @ AssocNode (location: (2...6)) │ ├── key: │ │ @ IntegerNode (location: (2...3)) + │ │ └── flags: decimal │ ├── value: │ │ @ IntegerNode (location: (5...6)) + │ │ └── flags: decimal │ └── operator_loc: (3...5) = "=>" ├── closing_loc: (6...7) = ")" ├── block: ∅ diff --git a/test/yarp/snapshots/seattlerb/call_assoc_new.txt b/test/yarp/snapshots/seattlerb/call_assoc_new.txt index 03b2c2d5c81c0e..63715c15ff38f7 100644 --- a/test/yarp/snapshots/seattlerb/call_assoc_new.txt +++ b/test/yarp/snapshots/seattlerb/call_assoc_new.txt @@ -22,6 +22,7 @@ │ │ └── unescaped: "a" │ ├── value: │ │ @ IntegerNode (location: (4...5)) + │ │ └── flags: decimal │ └── operator_loc: ∅ ├── closing_loc: (5...6) = ")" ├── block: ∅ diff --git a/test/yarp/snapshots/seattlerb/call_assoc_new_if_multiline.txt b/test/yarp/snapshots/seattlerb/call_assoc_new_if_multiline.txt index dd397655caad11..a7773f063ddea1 100644 --- a/test/yarp/snapshots/seattlerb/call_assoc_new_if_multiline.txt +++ b/test/yarp/snapshots/seattlerb/call_assoc_new_if_multiline.txt @@ -33,6 +33,7 @@ │ │ │ @ StatementsNode (location: (11...12)) │ │ │ └── body: (length: 1) │ │ │ └── @ IntegerNode (location: (11...12)) + │ │ │ └── flags: decimal │ │ ├── consequent: │ │ │ @ ElseNode (location: (13...23)) │ │ │ ├── else_keyword_loc: (13...17) = "else" @@ -40,6 +41,7 @@ │ │ │ │ @ StatementsNode (location: (18...19)) │ │ │ │ └── body: (length: 1) │ │ │ │ └── @ IntegerNode (location: (18...19)) + │ │ │ │ └── flags: decimal │ │ │ └── end_keyword_loc: (20...23) = "end" │ │ └── end_keyword_loc: (20...23) = "end" │ └── operator_loc: ∅ diff --git a/test/yarp/snapshots/seattlerb/call_assoc_trailing_comma.txt b/test/yarp/snapshots/seattlerb/call_assoc_trailing_comma.txt index 8822b5a948be4a..c1bc50ee806b86 100644 --- a/test/yarp/snapshots/seattlerb/call_assoc_trailing_comma.txt +++ b/test/yarp/snapshots/seattlerb/call_assoc_trailing_comma.txt @@ -16,8 +16,10 @@ │ └── @ AssocNode (location: (2...6)) │ ├── key: │ │ @ IntegerNode (location: (2...3)) + │ │ └── flags: decimal │ ├── value: │ │ @ IntegerNode (location: (5...6)) + │ │ └── flags: decimal │ └── operator_loc: (3...5) = "=>" ├── closing_loc: (7...8) = ")" ├── block: ∅ diff --git a/test/yarp/snapshots/seattlerb/call_bang_command_call.txt b/test/yarp/snapshots/seattlerb/call_bang_command_call.txt index b0981f5492dfb4..8bf02d6ac74219 100644 --- a/test/yarp/snapshots/seattlerb/call_bang_command_call.txt +++ b/test/yarp/snapshots/seattlerb/call_bang_command_call.txt @@ -24,6 +24,7 @@ │ │ @ ArgumentsNode (location: (6...7)) │ │ └── arguments: (length: 1) │ │ └── @ IntegerNode (location: (6...7)) + │ │ └── flags: decimal │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: diff --git a/test/yarp/snapshots/seattlerb/call_bang_squiggle.txt b/test/yarp/snapshots/seattlerb/call_bang_squiggle.txt index 08f73d350c4bef..203c36e23bb23e 100644 --- a/test/yarp/snapshots/seattlerb/call_bang_squiggle.txt +++ b/test/yarp/snapshots/seattlerb/call_bang_squiggle.txt @@ -6,6 +6,7 @@ └── @ CallNode (location: (0...6)) ├── receiver: │ @ IntegerNode (location: (0...1)) + │ └── flags: decimal ├── call_operator_loc: ∅ ├── message_loc: (2...4) = "!~" ├── opening_loc: ∅ @@ -13,6 +14,7 @@ │ @ ArgumentsNode (location: (5...6)) │ └── arguments: (length: 1) │ └── @ IntegerNode (location: (5...6)) + │ └── flags: decimal ├── closing_loc: ∅ ├── block: ∅ ├── flags: diff --git a/test/yarp/snapshots/seattlerb/call_carat.txt b/test/yarp/snapshots/seattlerb/call_carat.txt index 485ba51cb06672..44f7faa34e90ac 100644 --- a/test/yarp/snapshots/seattlerb/call_carat.txt +++ b/test/yarp/snapshots/seattlerb/call_carat.txt @@ -6,6 +6,7 @@ └── @ CallNode (location: (0...5)) ├── receiver: │ @ IntegerNode (location: (0...1)) + │ └── flags: decimal ├── call_operator_loc: ∅ ├── message_loc: (2...3) = "^" ├── opening_loc: ∅ @@ -13,6 +14,7 @@ │ @ ArgumentsNode (location: (4...5)) │ └── arguments: (length: 1) │ └── @ IntegerNode (location: (4...5)) + │ └── flags: decimal ├── closing_loc: ∅ ├── block: ∅ ├── flags: diff --git a/test/yarp/snapshots/seattlerb/call_colon_parens.txt b/test/yarp/snapshots/seattlerb/call_colon_parens.txt index f6b39e38a4f877..779b1df0f64aed 100644 --- a/test/yarp/snapshots/seattlerb/call_colon_parens.txt +++ b/test/yarp/snapshots/seattlerb/call_colon_parens.txt @@ -6,6 +6,7 @@ └── @ CallNode (location: (0...5)) ├── receiver: │ @ IntegerNode (location: (0...1)) + │ └── flags: decimal ├── call_operator_loc: (1...3) = "::" ├── message_loc: ∅ ├── opening_loc: (3...4) = "(" diff --git a/test/yarp/snapshots/seattlerb/call_div.txt b/test/yarp/snapshots/seattlerb/call_div.txt index eeeda0dc003b8c..6f0d53771f5d67 100644 --- a/test/yarp/snapshots/seattlerb/call_div.txt +++ b/test/yarp/snapshots/seattlerb/call_div.txt @@ -6,6 +6,7 @@ └── @ CallNode (location: (0...5)) ├── receiver: │ @ IntegerNode (location: (0...1)) + │ └── flags: decimal ├── call_operator_loc: ∅ ├── message_loc: (2...3) = "/" ├── opening_loc: ∅ @@ -13,6 +14,7 @@ │ @ ArgumentsNode (location: (4...5)) │ └── arguments: (length: 1) │ └── @ IntegerNode (location: (4...5)) + │ └── flags: decimal ├── closing_loc: ∅ ├── block: ∅ ├── flags: diff --git a/test/yarp/snapshots/seattlerb/call_dot_parens.txt b/test/yarp/snapshots/seattlerb/call_dot_parens.txt index a8d917c0b6d82d..a626073c153d34 100644 --- a/test/yarp/snapshots/seattlerb/call_dot_parens.txt +++ b/test/yarp/snapshots/seattlerb/call_dot_parens.txt @@ -6,6 +6,7 @@ └── @ CallNode (location: (0...4)) ├── receiver: │ @ IntegerNode (location: (0...1)) + │ └── flags: decimal ├── call_operator_loc: (1...2) = "." ├── message_loc: ∅ ├── opening_loc: (2...3) = "(" diff --git a/test/yarp/snapshots/seattlerb/call_eq3.txt b/test/yarp/snapshots/seattlerb/call_eq3.txt index 144c8a55f1da9b..4af86b01083d48 100644 --- a/test/yarp/snapshots/seattlerb/call_eq3.txt +++ b/test/yarp/snapshots/seattlerb/call_eq3.txt @@ -6,6 +6,7 @@ └── @ CallNode (location: (0...7)) ├── receiver: │ @ IntegerNode (location: (0...1)) + │ └── flags: decimal ├── call_operator_loc: ∅ ├── message_loc: (2...5) = "===" ├── opening_loc: ∅ @@ -13,6 +14,7 @@ │ @ ArgumentsNode (location: (6...7)) │ └── arguments: (length: 1) │ └── @ IntegerNode (location: (6...7)) + │ └── flags: decimal ├── closing_loc: ∅ ├── block: ∅ ├── flags: diff --git a/test/yarp/snapshots/seattlerb/call_gt.txt b/test/yarp/snapshots/seattlerb/call_gt.txt index 92cdd04aa4472d..32ffdf8e9fc43f 100644 --- a/test/yarp/snapshots/seattlerb/call_gt.txt +++ b/test/yarp/snapshots/seattlerb/call_gt.txt @@ -6,6 +6,7 @@ └── @ CallNode (location: (0...5)) ├── receiver: │ @ IntegerNode (location: (0...1)) + │ └── flags: decimal ├── call_operator_loc: ∅ ├── message_loc: (2...3) = ">" ├── opening_loc: ∅ @@ -13,6 +14,7 @@ │ @ ArgumentsNode (location: (4...5)) │ └── arguments: (length: 1) │ └── @ IntegerNode (location: (4...5)) + │ └── flags: decimal ├── closing_loc: ∅ ├── block: ∅ ├── flags: diff --git a/test/yarp/snapshots/seattlerb/call_kwsplat.txt b/test/yarp/snapshots/seattlerb/call_kwsplat.txt index e6f4ae5236b89e..25d5fcaab669bf 100644 --- a/test/yarp/snapshots/seattlerb/call_kwsplat.txt +++ b/test/yarp/snapshots/seattlerb/call_kwsplat.txt @@ -16,6 +16,7 @@ │ └── @ AssocSplatNode (location: (2...5)) │ ├── value: │ │ @ IntegerNode (location: (4...5)) + │ │ └── flags: decimal │ └── operator_loc: (2...4) = "**" ├── closing_loc: (5...6) = ")" ├── block: ∅ diff --git a/test/yarp/snapshots/seattlerb/call_lt.txt b/test/yarp/snapshots/seattlerb/call_lt.txt index 4113ca6ef598dc..aadc062c7f663d 100644 --- a/test/yarp/snapshots/seattlerb/call_lt.txt +++ b/test/yarp/snapshots/seattlerb/call_lt.txt @@ -6,6 +6,7 @@ └── @ CallNode (location: (0...5)) ├── receiver: │ @ IntegerNode (location: (0...1)) + │ └── flags: decimal ├── call_operator_loc: ∅ ├── message_loc: (2...3) = "<" ├── opening_loc: ∅ @@ -13,6 +14,7 @@ │ @ ArgumentsNode (location: (4...5)) │ └── arguments: (length: 1) │ └── @ IntegerNode (location: (4...5)) + │ └── flags: decimal ├── closing_loc: ∅ ├── block: ∅ ├── flags: diff --git a/test/yarp/snapshots/seattlerb/call_lte.txt b/test/yarp/snapshots/seattlerb/call_lte.txt index 875b8e6f5bf1c0..d9bdd7326ca7fb 100644 --- a/test/yarp/snapshots/seattlerb/call_lte.txt +++ b/test/yarp/snapshots/seattlerb/call_lte.txt @@ -6,6 +6,7 @@ └── @ CallNode (location: (0...6)) ├── receiver: │ @ IntegerNode (location: (0...1)) + │ └── flags: decimal ├── call_operator_loc: ∅ ├── message_loc: (2...4) = "<=" ├── opening_loc: ∅ @@ -13,6 +14,7 @@ │ @ ArgumentsNode (location: (5...6)) │ └── arguments: (length: 1) │ └── @ IntegerNode (location: (5...6)) + │ └── flags: decimal ├── closing_loc: ∅ ├── block: ∅ ├── flags: diff --git a/test/yarp/snapshots/seattlerb/call_not.txt b/test/yarp/snapshots/seattlerb/call_not.txt index ec19618f30cef3..f62195dcc31166 100644 --- a/test/yarp/snapshots/seattlerb/call_not.txt +++ b/test/yarp/snapshots/seattlerb/call_not.txt @@ -6,6 +6,7 @@ └── @ CallNode (location: (0...6)) ├── receiver: │ @ IntegerNode (location: (4...6)) + │ └── flags: decimal ├── call_operator_loc: ∅ ├── message_loc: (0...3) = "not" ├── opening_loc: ∅ diff --git a/test/yarp/snapshots/seattlerb/call_pipe.txt b/test/yarp/snapshots/seattlerb/call_pipe.txt index 8124f2adb6755a..86958191fe02f8 100644 --- a/test/yarp/snapshots/seattlerb/call_pipe.txt +++ b/test/yarp/snapshots/seattlerb/call_pipe.txt @@ -6,6 +6,7 @@ └── @ CallNode (location: (0...5)) ├── receiver: │ @ IntegerNode (location: (0...1)) + │ └── flags: decimal ├── call_operator_loc: ∅ ├── message_loc: (2...3) = "|" ├── opening_loc: ∅ @@ -13,6 +14,7 @@ │ @ ArgumentsNode (location: (4...5)) │ └── arguments: (length: 1) │ └── @ IntegerNode (location: (4...5)) + │ └── flags: decimal ├── closing_loc: ∅ ├── block: ∅ ├── flags: diff --git a/test/yarp/snapshots/seattlerb/call_rshift.txt b/test/yarp/snapshots/seattlerb/call_rshift.txt index ff9b3d14100429..c08bd04f0e59ae 100644 --- a/test/yarp/snapshots/seattlerb/call_rshift.txt +++ b/test/yarp/snapshots/seattlerb/call_rshift.txt @@ -6,6 +6,7 @@ └── @ CallNode (location: (0...6)) ├── receiver: │ @ IntegerNode (location: (0...1)) + │ └── flags: decimal ├── call_operator_loc: ∅ ├── message_loc: (2...4) = ">>" ├── opening_loc: ∅ @@ -13,6 +14,7 @@ │ @ ArgumentsNode (location: (5...6)) │ └── arguments: (length: 1) │ └── @ IntegerNode (location: (5...6)) + │ └── flags: decimal ├── closing_loc: ∅ ├── block: ∅ ├── flags: diff --git a/test/yarp/snapshots/seattlerb/call_self_brackets.txt b/test/yarp/snapshots/seattlerb/call_self_brackets.txt index c165f618bdb9d4..715924c4459372 100644 --- a/test/yarp/snapshots/seattlerb/call_self_brackets.txt +++ b/test/yarp/snapshots/seattlerb/call_self_brackets.txt @@ -13,6 +13,7 @@ │ @ ArgumentsNode (location: (5...6)) │ └── arguments: (length: 1) │ └── @ IntegerNode (location: (5...6)) + │ └── flags: decimal ├── closing_loc: (6...7) = "]" ├── block: ∅ ├── flags: diff --git a/test/yarp/snapshots/seattlerb/call_spaceship.txt b/test/yarp/snapshots/seattlerb/call_spaceship.txt index 4305f8c3848c84..b1228083513857 100644 --- a/test/yarp/snapshots/seattlerb/call_spaceship.txt +++ b/test/yarp/snapshots/seattlerb/call_spaceship.txt @@ -6,6 +6,7 @@ └── @ CallNode (location: (0...7)) ├── receiver: │ @ IntegerNode (location: (0...1)) + │ └── flags: decimal ├── call_operator_loc: ∅ ├── message_loc: (2...5) = "<=>" ├── opening_loc: ∅ @@ -13,6 +14,7 @@ │ @ ArgumentsNode (location: (6...7)) │ └── arguments: (length: 1) │ └── @ IntegerNode (location: (6...7)) + │ └── flags: decimal ├── closing_loc: ∅ ├── block: ∅ ├── flags: diff --git a/test/yarp/snapshots/seattlerb/call_stabby_do_end_with_block.txt b/test/yarp/snapshots/seattlerb/call_stabby_do_end_with_block.txt index d8ae32bd5a2c2a..f9a081a1c5597d 100644 --- a/test/yarp/snapshots/seattlerb/call_stabby_do_end_with_block.txt +++ b/test/yarp/snapshots/seattlerb/call_stabby_do_end_with_block.txt @@ -21,6 +21,7 @@ │ @ StatementsNode (location: (8...9)) │ └── body: (length: 1) │ └── @ IntegerNode (location: (8...9)) + │ └── flags: decimal ├── closing_loc: ∅ ├── block: │ @ BlockNode (location: (14...22)) @@ -30,6 +31,7 @@ │ │ @ StatementsNode (location: (17...18)) │ │ └── body: (length: 1) │ │ └── @ IntegerNode (location: (17...18)) + │ │ └── flags: decimal │ ├── opening_loc: (14...16) = "do" │ └── closing_loc: (19...22) = "end" ├── flags: diff --git a/test/yarp/snapshots/seattlerb/call_stabby_with_braces_block.txt b/test/yarp/snapshots/seattlerb/call_stabby_with_braces_block.txt index 5b2014c7d5bb64..5f1335fefedf2c 100644 --- a/test/yarp/snapshots/seattlerb/call_stabby_with_braces_block.txt +++ b/test/yarp/snapshots/seattlerb/call_stabby_with_braces_block.txt @@ -21,6 +21,7 @@ │ @ StatementsNode (location: (7...8)) │ └── body: (length: 1) │ └── @ IntegerNode (location: (7...8)) + │ └── flags: decimal ├── closing_loc: ∅ ├── block: │ @ BlockNode (location: (11...19)) @@ -30,6 +31,7 @@ │ │ @ StatementsNode (location: (14...15)) │ │ └── body: (length: 1) │ │ └── @ IntegerNode (location: (14...15)) + │ │ └── flags: decimal │ ├── opening_loc: (11...13) = "do" │ └── closing_loc: (16...19) = "end" ├── flags: diff --git a/test/yarp/snapshots/seattlerb/call_star.txt b/test/yarp/snapshots/seattlerb/call_star.txt index 0c4b61df90cfa9..925e5949e218d8 100644 --- a/test/yarp/snapshots/seattlerb/call_star.txt +++ b/test/yarp/snapshots/seattlerb/call_star.txt @@ -6,6 +6,7 @@ └── @ CallNode (location: (0...5)) ├── receiver: │ @ IntegerNode (location: (0...1)) + │ └── flags: decimal ├── call_operator_loc: ∅ ├── message_loc: (2...3) = "*" ├── opening_loc: ∅ @@ -13,6 +14,7 @@ │ @ ArgumentsNode (location: (4...5)) │ └── arguments: (length: 1) │ └── @ IntegerNode (location: (4...5)) + │ └── flags: decimal ├── closing_loc: ∅ ├── block: ∅ ├── flags: diff --git a/test/yarp/snapshots/seattlerb/call_star2.txt b/test/yarp/snapshots/seattlerb/call_star2.txt index 65132bda706467..531b3539056d9a 100644 --- a/test/yarp/snapshots/seattlerb/call_star2.txt +++ b/test/yarp/snapshots/seattlerb/call_star2.txt @@ -6,6 +6,7 @@ └── @ CallNode (location: (0...6)) ├── receiver: │ @ IntegerNode (location: (0...1)) + │ └── flags: decimal ├── call_operator_loc: ∅ ├── message_loc: (2...4) = "**" ├── opening_loc: ∅ @@ -13,6 +14,7 @@ │ @ ArgumentsNode (location: (5...6)) │ └── arguments: (length: 1) │ └── @ IntegerNode (location: (5...6)) + │ └── flags: decimal ├── closing_loc: ∅ ├── block: ∅ ├── flags: diff --git a/test/yarp/snapshots/seattlerb/call_trailing_comma.txt b/test/yarp/snapshots/seattlerb/call_trailing_comma.txt index f562aee8c22f47..7d75dab68ccf32 100644 --- a/test/yarp/snapshots/seattlerb/call_trailing_comma.txt +++ b/test/yarp/snapshots/seattlerb/call_trailing_comma.txt @@ -12,6 +12,7 @@ │ @ ArgumentsNode (location: (2...3)) │ └── arguments: (length: 1) │ └── @ IntegerNode (location: (2...3)) + │ └── flags: decimal ├── closing_loc: (4...5) = ")" ├── block: ∅ ├── flags: diff --git a/test/yarp/snapshots/seattlerb/call_unary_bang.txt b/test/yarp/snapshots/seattlerb/call_unary_bang.txt index 17f05cbe0cbce9..138c59d3957e58 100644 --- a/test/yarp/snapshots/seattlerb/call_unary_bang.txt +++ b/test/yarp/snapshots/seattlerb/call_unary_bang.txt @@ -6,6 +6,7 @@ └── @ CallNode (location: (0...2)) ├── receiver: │ @ IntegerNode (location: (1...2)) + │ └── flags: decimal ├── call_operator_loc: ∅ ├── message_loc: (0...1) = "!" ├── opening_loc: ∅ diff --git a/test/yarp/snapshots/seattlerb/case_in.txt b/test/yarp/snapshots/seattlerb/case_in.txt index c133b6e29238c1..d47725f91729ac 100644 --- a/test/yarp/snapshots/seattlerb/case_in.txt +++ b/test/yarp/snapshots/seattlerb/case_in.txt @@ -168,6 +168,7 @@ │ │ │ ├── left: ∅ │ │ │ ├── right: │ │ │ │ @ IntegerNode (location: (134...136)) + │ │ │ │ └── flags: decimal │ │ │ ├── operator_loc: (131...134) = "..." │ │ │ └── flags: exclude_end │ │ ├── statements: ∅ @@ -190,6 +191,7 @@ │ │ │ ├── left: ∅ │ │ │ ├── right: │ │ │ │ @ IntegerNode (location: (157...159)) + │ │ │ │ └── flags: decimal │ │ │ ├── operator_loc: (155...157) = ".." │ │ │ └── flags: │ │ ├── statements: ∅ @@ -211,6 +213,7 @@ │ │ │ @ RangeNode (location: (178...182)) │ │ │ ├── left: │ │ │ │ @ IntegerNode (location: (178...179)) + │ │ │ │ └── flags: decimal │ │ │ ├── right: ∅ │ │ │ ├── operator_loc: (179...182) = "..." │ │ │ └── flags: exclude_end @@ -233,8 +236,10 @@ │ │ │ @ RangeNode (location: (201...206)) │ │ │ ├── left: │ │ │ │ @ IntegerNode (location: (201...202)) + │ │ │ │ └── flags: decimal │ │ │ ├── right: │ │ │ │ @ IntegerNode (location: (205...206)) + │ │ │ │ └── flags: decimal │ │ │ ├── operator_loc: (202...205) = "..." │ │ │ └── flags: exclude_end │ │ ├── statements: ∅ @@ -254,6 +259,7 @@ │ │ └── @ InNode (location: (221...227)) │ │ ├── pattern: │ │ │ @ IntegerNode (location: (225...227)) + │ │ │ └── flags: decimal │ │ ├── statements: ∅ │ │ ├── in_loc: (221...223) = "in" │ │ └── then_loc: ∅ diff --git a/test/yarp/snapshots/seattlerb/case_in_67.txt b/test/yarp/snapshots/seattlerb/case_in_67.txt index 3991a6c695a8ed..70d9a5b6c197ed 100644 --- a/test/yarp/snapshots/seattlerb/case_in_67.txt +++ b/test/yarp/snapshots/seattlerb/case_in_67.txt @@ -16,6 +16,7 @@ │ │ @ RangeNode (location: (11...14)) │ │ ├── left: │ │ │ @ IntegerNode (location: (11...12)) + │ │ │ └── flags: decimal │ │ ├── right: ∅ │ │ ├── operator_loc: (12...14) = ".." │ │ └── flags: diff --git a/test/yarp/snapshots/seattlerb/case_in_hash_pat_paren_assign.txt b/test/yarp/snapshots/seattlerb/case_in_hash_pat_paren_assign.txt index 9d72150eafe8df..46e81a844daf21 100644 --- a/test/yarp/snapshots/seattlerb/case_in_hash_pat_paren_assign.txt +++ b/test/yarp/snapshots/seattlerb/case_in_hash_pat_paren_assign.txt @@ -27,6 +27,7 @@ │ │ │ │ └── unescaped: "a" │ │ │ ├── value: │ │ │ │ @ IntegerNode (location: (16...18)) + │ │ │ │ └── flags: decimal │ │ │ └── operator_loc: ∅ │ │ ├── kwrest: ∅ │ │ ├── opening_loc: (12...13) = "(" diff --git a/test/yarp/snapshots/seattlerb/cond_unary_minus.txt b/test/yarp/snapshots/seattlerb/cond_unary_minus.txt index 1f289e96f3bc9b..e6f0e2068b6f8d 100644 --- a/test/yarp/snapshots/seattlerb/cond_unary_minus.txt +++ b/test/yarp/snapshots/seattlerb/cond_unary_minus.txt @@ -7,6 +7,7 @@ ├── if_keyword_loc: (0...2) = "if" ├── predicate: │ @ IntegerNode (location: (3...5)) + │ └── flags: decimal ├── statements: ∅ ├── consequent: ∅ └── end_keyword_loc: (7...10) = "end" diff --git a/test/yarp/snapshots/seattlerb/const_2_op_asgn_or2.txt b/test/yarp/snapshots/seattlerb/const_2_op_asgn_or2.txt index fb201a573756ec..4ec0609cee33fc 100644 --- a/test/yarp/snapshots/seattlerb/const_2_op_asgn_or2.txt +++ b/test/yarp/snapshots/seattlerb/const_2_op_asgn_or2.txt @@ -20,3 +20,4 @@ ├── operator_loc: (7...10) = "||=" └── value: @ IntegerNode (location: (11...12)) + └── flags: decimal diff --git a/test/yarp/snapshots/seattlerb/const_3_op_asgn_or.txt b/test/yarp/snapshots/seattlerb/const_3_op_asgn_or.txt index 61a67ae950fb8f..e744282e6d2423 100644 --- a/test/yarp/snapshots/seattlerb/const_3_op_asgn_or.txt +++ b/test/yarp/snapshots/seattlerb/const_3_op_asgn_or.txt @@ -14,3 +14,4 @@ ├── operator_loc: (4...7) = "||=" └── value: @ IntegerNode (location: (8...9)) + └── flags: decimal diff --git a/test/yarp/snapshots/seattlerb/const_op_asgn_and1.txt b/test/yarp/snapshots/seattlerb/const_op_asgn_and1.txt index 4254f4bd21fe04..1907233beeb034 100644 --- a/test/yarp/snapshots/seattlerb/const_op_asgn_and1.txt +++ b/test/yarp/snapshots/seattlerb/const_op_asgn_and1.txt @@ -14,4 +14,5 @@ ├── operator_loc: (4...6) = "&=" ├── value: │ @ IntegerNode (location: (7...8)) + │ └── flags: decimal └── operator: :& diff --git a/test/yarp/snapshots/seattlerb/const_op_asgn_and2.txt b/test/yarp/snapshots/seattlerb/const_op_asgn_and2.txt index 1fd0829df19498..bf1754d8e49195 100644 --- a/test/yarp/snapshots/seattlerb/const_op_asgn_and2.txt +++ b/test/yarp/snapshots/seattlerb/const_op_asgn_and2.txt @@ -14,3 +14,4 @@ ├── operator_loc: (4...7) = "&&=" └── value: @ IntegerNode (location: (8...9)) + └── flags: decimal diff --git a/test/yarp/snapshots/seattlerb/const_op_asgn_or.txt b/test/yarp/snapshots/seattlerb/const_op_asgn_or.txt index e39682b3ea28a3..a08b225daffdc9 100644 --- a/test/yarp/snapshots/seattlerb/const_op_asgn_or.txt +++ b/test/yarp/snapshots/seattlerb/const_op_asgn_or.txt @@ -16,3 +16,4 @@ ├── operator_loc: (5...8) = "||=" └── value: @ IntegerNode (location: (9...10)) + └── flags: decimal diff --git a/test/yarp/snapshots/seattlerb/defined_eh_parens.txt b/test/yarp/snapshots/seattlerb/defined_eh_parens.txt index 87ca88d5e822ca..99c6455f0f9382 100644 --- a/test/yarp/snapshots/seattlerb/defined_eh_parens.txt +++ b/test/yarp/snapshots/seattlerb/defined_eh_parens.txt @@ -7,5 +7,6 @@ ├── lparen_loc: (8...9) = "(" ├── value: │ @ IntegerNode (location: (9...11)) + │ └── flags: decimal ├── rparen_loc: (11...12) = ")" └── keyword_loc: (0...8) = "defined?" diff --git a/test/yarp/snapshots/seattlerb/defn_endless_command.txt b/test/yarp/snapshots/seattlerb/defn_endless_command.txt index 6a1d54a67a87ee..ab7e58f28c4cf2 100644 --- a/test/yarp/snapshots/seattlerb/defn_endless_command.txt +++ b/test/yarp/snapshots/seattlerb/defn_endless_command.txt @@ -20,6 +20,7 @@ │ │ @ ArgumentsNode (location: (31...33)) │ │ └── arguments: (length: 1) │ │ └── @ IntegerNode (location: (31...33)) + │ │ └── flags: decimal │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: diff --git a/test/yarp/snapshots/seattlerb/defn_endless_command_rescue.txt b/test/yarp/snapshots/seattlerb/defn_endless_command_rescue.txt index e287f417c0a395..2b6e03499edc2a 100644 --- a/test/yarp/snapshots/seattlerb/defn_endless_command_rescue.txt +++ b/test/yarp/snapshots/seattlerb/defn_endless_command_rescue.txt @@ -22,9 +22,11 @@ │ │ └── @ RescueModifierNode (location: (31...43)) │ │ ├── expression: │ │ │ @ IntegerNode (location: (31...33)) + │ │ │ └── flags: decimal │ │ ├── keyword_loc: (34...40) = "rescue" │ │ └── rescue_expression: │ │ @ IntegerNode (location: (41...43)) + │ │ └── flags: decimal │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: diff --git a/test/yarp/snapshots/seattlerb/defn_kwarg_kwarg.txt b/test/yarp/snapshots/seattlerb/defn_kwarg_kwarg.txt index 5ca38fd86000bf..c4d595428bb336 100644 --- a/test/yarp/snapshots/seattlerb/defn_kwarg_kwarg.txt +++ b/test/yarp/snapshots/seattlerb/defn_kwarg_kwarg.txt @@ -21,11 +21,13 @@ │ │ │ ├── name_loc: (9...11) = "b:" │ │ │ └── value: │ │ │ @ IntegerNode (location: (12...13)) + │ │ │ └── flags: decimal │ │ └── @ KeywordParameterNode (location: (15...19)) │ │ ├── name: :c │ │ ├── name_loc: (15...17) = "c:" │ │ └── value: │ │ @ IntegerNode (location: (18...19)) + │ │ └── flags: decimal │ ├── keyword_rest: ∅ │ └── block: ∅ ├── body: ∅ diff --git a/test/yarp/snapshots/seattlerb/defn_kwarg_kwsplat.txt b/test/yarp/snapshots/seattlerb/defn_kwarg_kwsplat.txt index 45491e8a94ef11..98bf08f7d23584 100644 --- a/test/yarp/snapshots/seattlerb/defn_kwarg_kwsplat.txt +++ b/test/yarp/snapshots/seattlerb/defn_kwarg_kwsplat.txt @@ -19,6 +19,7 @@ │ │ ├── name_loc: (6...8) = "b:" │ │ └── value: │ │ @ IntegerNode (location: (9...10)) + │ │ └── flags: decimal │ ├── keyword_rest: │ │ @ KeywordRestParameterNode (location: (12...15)) │ │ ├── name: :c diff --git a/test/yarp/snapshots/seattlerb/defn_kwarg_kwsplat_anon.txt b/test/yarp/snapshots/seattlerb/defn_kwarg_kwsplat_anon.txt index e8a837d11b9be0..7660c86a9873b5 100644 --- a/test/yarp/snapshots/seattlerb/defn_kwarg_kwsplat_anon.txt +++ b/test/yarp/snapshots/seattlerb/defn_kwarg_kwsplat_anon.txt @@ -19,6 +19,7 @@ │ │ ├── name_loc: (6...8) = "b:" │ │ └── value: │ │ @ IntegerNode (location: (9...10)) + │ │ └── flags: decimal │ ├── keyword_rest: │ │ @ KeywordRestParameterNode (location: (12...14)) │ │ ├── name: nil diff --git a/test/yarp/snapshots/seattlerb/defn_kwarg_no_parens.txt b/test/yarp/snapshots/seattlerb/defn_kwarg_no_parens.txt index 6652805a777f55..77eb795ca09eac 100644 --- a/test/yarp/snapshots/seattlerb/defn_kwarg_no_parens.txt +++ b/test/yarp/snapshots/seattlerb/defn_kwarg_no_parens.txt @@ -19,6 +19,7 @@ │ │ ├── name_loc: (6...8) = "a:" │ │ └── value: │ │ @ IntegerNode (location: (9...10)) + │ │ └── flags: decimal │ ├── keyword_rest: ∅ │ └── block: ∅ ├── body: ∅ diff --git a/test/yarp/snapshots/seattlerb/defn_kwarg_val.txt b/test/yarp/snapshots/seattlerb/defn_kwarg_val.txt index 6fc5d62dcf8bc2..88f12486bdb28b 100644 --- a/test/yarp/snapshots/seattlerb/defn_kwarg_val.txt +++ b/test/yarp/snapshots/seattlerb/defn_kwarg_val.txt @@ -21,6 +21,7 @@ │ │ ├── name_loc: (9...11) = "b:" │ │ └── value: │ │ @ IntegerNode (location: (11...12)) + │ │ └── flags: decimal │ ├── keyword_rest: ∅ │ └── block: ∅ ├── body: ∅ diff --git a/test/yarp/snapshots/seattlerb/defn_oneliner_eq2.txt b/test/yarp/snapshots/seattlerb/defn_oneliner_eq2.txt index 76cef0767fd529..340104dc71ca5d 100644 --- a/test/yarp/snapshots/seattlerb/defn_oneliner_eq2.txt +++ b/test/yarp/snapshots/seattlerb/defn_oneliner_eq2.txt @@ -33,6 +33,7 @@ │ │ @ StatementsNode (location: (22...24)) │ │ └── body: (length: 1) │ │ └── @ IntegerNode (location: (22...24)) + │ │ └── flags: decimal │ ├── locals: [:o] │ ├── def_keyword_loc: (10...13) = "def" │ ├── operator_loc: ∅ diff --git a/test/yarp/snapshots/seattlerb/defn_opt_splat_arg.txt b/test/yarp/snapshots/seattlerb/defn_opt_splat_arg.txt index b74f9390dc494d..1bd7420dc51026 100644 --- a/test/yarp/snapshots/seattlerb/defn_opt_splat_arg.txt +++ b/test/yarp/snapshots/seattlerb/defn_opt_splat_arg.txt @@ -17,6 +17,7 @@ │ │ ├── operator_loc: (9...10) = "=" │ │ └── value: │ │ @ IntegerNode (location: (11...12)) + │ │ └── flags: decimal │ ├── posts: (length: 1) │ │ └── @ RequiredParameterNode (location: (18...19)) │ │ └── name: :c diff --git a/test/yarp/snapshots/seattlerb/defs_endless_command.txt b/test/yarp/snapshots/seattlerb/defs_endless_command.txt index 9fafb43e08f748..480a2f07cc5c12 100644 --- a/test/yarp/snapshots/seattlerb/defs_endless_command.txt +++ b/test/yarp/snapshots/seattlerb/defs_endless_command.txt @@ -30,6 +30,7 @@ │ │ @ ArgumentsNode (location: (33...35)) │ │ └── arguments: (length: 1) │ │ └── @ IntegerNode (location: (33...35)) + │ │ └── flags: decimal │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: diff --git a/test/yarp/snapshots/seattlerb/defs_endless_command_rescue.txt b/test/yarp/snapshots/seattlerb/defs_endless_command_rescue.txt index 9fcfcd15bbe565..98a5c28447ba94 100644 --- a/test/yarp/snapshots/seattlerb/defs_endless_command_rescue.txt +++ b/test/yarp/snapshots/seattlerb/defs_endless_command_rescue.txt @@ -32,9 +32,11 @@ │ │ └── @ RescueModifierNode (location: (33...45)) │ │ ├── expression: │ │ │ @ IntegerNode (location: (33...35)) + │ │ │ └── flags: decimal │ │ ├── keyword_loc: (36...42) = "rescue" │ │ └── rescue_expression: │ │ @ IntegerNode (location: (43...45)) + │ │ └── flags: decimal │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: diff --git a/test/yarp/snapshots/seattlerb/defs_kwarg.txt b/test/yarp/snapshots/seattlerb/defs_kwarg.txt index 2ad17321e878f4..7bdb344575dfd4 100644 --- a/test/yarp/snapshots/seattlerb/defs_kwarg.txt +++ b/test/yarp/snapshots/seattlerb/defs_kwarg.txt @@ -20,6 +20,7 @@ │ │ ├── name_loc: (11...13) = "b:" │ │ └── value: │ │ @ IntegerNode (location: (14...15)) + │ │ └── flags: decimal │ ├── keyword_rest: ∅ │ └── block: ∅ ├── body: ∅ diff --git a/test/yarp/snapshots/seattlerb/defs_oneliner_eq2.txt b/test/yarp/snapshots/seattlerb/defs_oneliner_eq2.txt index 5bfafc6c86b679..75e4bebe92eab5 100644 --- a/test/yarp/snapshots/seattlerb/defs_oneliner_eq2.txt +++ b/test/yarp/snapshots/seattlerb/defs_oneliner_eq2.txt @@ -34,6 +34,7 @@ │ │ @ StatementsNode (location: (27...29)) │ │ └── body: (length: 1) │ │ └── @ IntegerNode (location: (27...29)) + │ │ └── flags: decimal │ ├── locals: [:o] │ ├── def_keyword_loc: (10...13) = "def" │ ├── operator_loc: (18...19) = "." diff --git a/test/yarp/snapshots/seattlerb/difficult1_line_numbers.txt b/test/yarp/snapshots/seattlerb/difficult1_line_numbers.txt index 7be70a823d3663..4723d098ceceb5 100644 --- a/test/yarp/snapshots/seattlerb/difficult1_line_numbers.txt +++ b/test/yarp/snapshots/seattlerb/difficult1_line_numbers.txt @@ -19,6 +19,7 @@ │ │ │ @ ArgumentsNode (location: (12...13)) │ │ │ └── arguments: (length: 1) │ │ │ └── @ IntegerNode (location: (12...13)) + │ │ │ └── flags: decimal │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: @@ -42,6 +43,7 @@ │ │ │ @ ArgumentsNode (location: (20...21)) │ │ │ └── arguments: (length: 1) │ │ │ └── @ IntegerNode (location: (20...21)) + │ │ │ └── flags: decimal │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: @@ -65,7 +67,9 @@ │ │ │ @ ArgumentsNode (location: (28...32)) │ │ │ └── arguments: (length: 2) │ │ │ ├── @ IntegerNode (location: (28...29)) + │ │ │ │ └── flags: decimal │ │ │ └── @ IntegerNode (location: (31...32)) + │ │ │ └── flags: decimal │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: @@ -89,6 +93,7 @@ │ │ │ @ ArgumentsNode (location: (39...40)) │ │ │ └── arguments: (length: 1) │ │ │ └── @ IntegerNode (location: (39...40)) + │ │ │ └── flags: decimal │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: @@ -112,7 +117,9 @@ │ │ │ @ ArgumentsNode (location: (47...51)) │ │ │ └── arguments: (length: 2) │ │ │ ├── @ IntegerNode (location: (47...48)) + │ │ │ │ └── flags: decimal │ │ │ └── @ IntegerNode (location: (50...51)) + │ │ │ └── flags: decimal │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: @@ -126,6 +133,7 @@ │ │ │ @ ArgumentsNode (location: (56...57)) │ │ │ └── arguments: (length: 1) │ │ │ └── @ IntegerNode (location: (56...57)) + │ │ │ └── flags: decimal │ │ ├── closing_loc: (57...58) = ")" │ │ ├── block: ∅ │ │ ├── flags: @@ -149,6 +157,7 @@ │ │ │ @ ArgumentsNode (location: (65...66)) │ │ │ └── arguments: (length: 1) │ │ │ └── @ IntegerNode (location: (65...66)) + │ │ │ └── flags: decimal │ │ ├── closing_loc: (66...67) = ")" │ │ ├── block: ∅ │ │ ├── flags: @@ -172,7 +181,9 @@ │ │ │ @ ArgumentsNode (location: (74...78)) │ │ │ └── arguments: (length: 2) │ │ │ ├── @ IntegerNode (location: (74...75)) + │ │ │ │ └── flags: decimal │ │ │ └── @ IntegerNode (location: (77...78)) + │ │ │ └── flags: decimal │ │ ├── closing_loc: (78...79) = ")" │ │ ├── block: ∅ │ │ ├── flags: @@ -196,6 +207,7 @@ │ │ │ @ ArgumentsNode (location: (86...87)) │ │ │ └── arguments: (length: 1) │ │ │ └── @ IntegerNode (location: (86...87)) + │ │ │ └── flags: decimal │ │ ├── closing_loc: (87...88) = ")" │ │ ├── block: ∅ │ │ ├── flags: @@ -219,7 +231,9 @@ │ │ @ ArgumentsNode (location: (95...99)) │ │ └── arguments: (length: 2) │ │ ├── @ IntegerNode (location: (95...96)) + │ │ │ └── flags: decimal │ │ └── @ IntegerNode (location: (98...99)) + │ │ └── flags: decimal │ ├── closing_loc: (99...100) = ")" │ ├── block: ∅ │ ├── flags: diff --git a/test/yarp/snapshots/seattlerb/difficult1_line_numbers2.txt b/test/yarp/snapshots/seattlerb/difficult1_line_numbers2.txt index 9a5887484c979f..7f50567c664b46 100644 --- a/test/yarp/snapshots/seattlerb/difficult1_line_numbers2.txt +++ b/test/yarp/snapshots/seattlerb/difficult1_line_numbers2.txt @@ -33,6 +33,7 @@ │ │ │ ├── name_loc: (24...25) = "b" │ │ │ ├── value: │ │ │ │ @ IntegerNode (location: (28...29)) + │ │ │ │ └── flags: decimal │ │ │ └── operator_loc: (26...27) = "=" │ │ ├── @ CallNode (location: (32...35)) │ │ │ ├── receiver: ∅ @@ -55,6 +56,7 @@ │ │ ├── name_loc: (38...39) = "c" │ │ ├── value: │ │ │ @ IntegerNode (location: (41...42)) + │ │ │ └── flags: decimal │ │ └── operator_loc: (40...41) = "=" │ ├── consequent: ∅ │ └── end_keyword_loc: (43...46) = "end" diff --git a/test/yarp/snapshots/seattlerb/difficult2_.txt b/test/yarp/snapshots/seattlerb/difficult2_.txt index 6a609126c9003d..caa18ac937f81e 100644 --- a/test/yarp/snapshots/seattlerb/difficult2_.txt +++ b/test/yarp/snapshots/seattlerb/difficult2_.txt @@ -7,6 +7,7 @@ │ ├── if_keyword_loc: ∅ │ ├── predicate: │ │ @ IntegerNode (location: (0...1)) + │ │ └── flags: decimal │ ├── statements: │ │ @ StatementsNode (location: (4...9)) │ │ └── body: (length: 1) @@ -34,6 +35,7 @@ │ │ │ @ StatementsNode (location: (12...13)) │ │ │ └── body: (length: 1) │ │ │ └── @ IntegerNode (location: (12...13)) + │ │ │ └── flags: decimal │ │ └── end_keyword_loc: ∅ │ └── end_keyword_loc: ∅ └── @ CallNode (location: (14...20)) @@ -55,6 +57,7 @@ │ │ └── unescaped: "d" │ ├── value: │ │ @ IntegerNode (location: (19...20)) + │ │ └── flags: decimal │ └── operator_loc: ∅ ├── closing_loc: ∅ ├── block: ∅ diff --git a/test/yarp/snapshots/seattlerb/difficult4__leading_dots2.txt b/test/yarp/snapshots/seattlerb/difficult4__leading_dots2.txt index 5e72abfe5ecd03..95355987aebbae 100644 --- a/test/yarp/snapshots/seattlerb/difficult4__leading_dots2.txt +++ b/test/yarp/snapshots/seattlerb/difficult4__leading_dots2.txt @@ -4,9 +4,11 @@ @ StatementsNode (location: (0...5)) └── body: (length: 2) ├── @ IntegerNode (location: (0...1)) + │ └── flags: decimal └── @ RangeNode (location: (2...5)) ├── left: ∅ ├── right: │ @ IntegerNode (location: (4...5)) + │ └── flags: decimal ├── operator_loc: (2...4) = ".." └── flags: diff --git a/test/yarp/snapshots/seattlerb/difficult6__7.txt b/test/yarp/snapshots/seattlerb/difficult6__7.txt index 331435a0b6fb63..2827a5cb1f100d 100644 --- a/test/yarp/snapshots/seattlerb/difficult6__7.txt +++ b/test/yarp/snapshots/seattlerb/difficult6__7.txt @@ -26,6 +26,7 @@ │ │ @ StatementsNode (location: (5...6)) │ │ └── body: (length: 1) │ │ └── @ IntegerNode (location: (5...6)) + │ │ └── flags: decimal │ ├── opening_loc: (4...5) = "(" │ └── closing_loc: (6...7) = ")" ├── closing_loc: ∅ diff --git a/test/yarp/snapshots/seattlerb/difficult6__8.txt b/test/yarp/snapshots/seattlerb/difficult6__8.txt index d21dfbe4bf2aa9..efe82e6b6e4819 100644 --- a/test/yarp/snapshots/seattlerb/difficult6__8.txt +++ b/test/yarp/snapshots/seattlerb/difficult6__8.txt @@ -26,6 +26,7 @@ │ │ @ StatementsNode (location: (6...7)) │ │ └── body: (length: 1) │ │ └── @ IntegerNode (location: (6...7)) + │ │ └── flags: decimal │ ├── opening_loc: (5...6) = "(" │ └── closing_loc: (7...8) = ")" ├── closing_loc: ∅ diff --git a/test/yarp/snapshots/seattlerb/do_bug.txt b/test/yarp/snapshots/seattlerb/do_bug.txt index 74734bbb96bd6c..643f4df04a3ff2 100644 --- a/test/yarp/snapshots/seattlerb/do_bug.txt +++ b/test/yarp/snapshots/seattlerb/do_bug.txt @@ -12,6 +12,7 @@ │ │ @ ArgumentsNode (location: (2...3)) │ │ └── arguments: (length: 1) │ │ └── @ IntegerNode (location: (2...3)) + │ │ └── flags: decimal │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: diff --git a/test/yarp/snapshots/seattlerb/eq_begin_line_numbers.txt b/test/yarp/snapshots/seattlerb/eq_begin_line_numbers.txt index 58c33129801825..080aad6e5d0b25 100644 --- a/test/yarp/snapshots/seattlerb/eq_begin_line_numbers.txt +++ b/test/yarp/snapshots/seattlerb/eq_begin_line_numbers.txt @@ -4,4 +4,6 @@ @ StatementsNode (location: (0...31)) └── body: (length: 2) ├── @ IntegerNode (location: (0...1)) + │ └── flags: decimal └── @ IntegerNode (location: (30...31)) + └── flags: decimal diff --git a/test/yarp/snapshots/seattlerb/eq_begin_why_wont_people_use_their_spacebar.txt b/test/yarp/snapshots/seattlerb/eq_begin_why_wont_people_use_their_spacebar.txt index 238fa4818894f7..c005cffb265d53 100644 --- a/test/yarp/snapshots/seattlerb/eq_begin_why_wont_people_use_their_spacebar.txt +++ b/test/yarp/snapshots/seattlerb/eq_begin_why_wont_people_use_their_spacebar.txt @@ -37,6 +37,7 @@ │ │ @ StatementsNode (location: (18...20)) │ │ └── body: (length: 1) │ │ └── @ IntegerNode (location: (18...20)) + │ │ └── flags: decimal │ ├── rescue_clause: ∅ │ ├── else_clause: ∅ │ ├── ensure_clause: ∅ diff --git a/test/yarp/snapshots/seattlerb/f_kw.txt b/test/yarp/snapshots/seattlerb/f_kw.txt index 1ad3cfa8b25cd5..e5b3ae1373ca76 100644 --- a/test/yarp/snapshots/seattlerb/f_kw.txt +++ b/test/yarp/snapshots/seattlerb/f_kw.txt @@ -19,6 +19,7 @@ │ │ ├── name_loc: (6...8) = "k:" │ │ └── value: │ │ @ IntegerNode (location: (8...10)) + │ │ └── flags: decimal │ ├── keyword_rest: ∅ │ └── block: ∅ ├── body: ∅ diff --git a/test/yarp/snapshots/seattlerb/heredoc_lineno.txt b/test/yarp/snapshots/seattlerb/heredoc_lineno.txt index bf84cc6bc112a9..8d050ae8fe5c9d 100644 --- a/test/yarp/snapshots/seattlerb/heredoc_lineno.txt +++ b/test/yarp/snapshots/seattlerb/heredoc_lineno.txt @@ -24,4 +24,5 @@ ├── name_loc: (35...36) = "d" ├── value: │ @ IntegerNode (location: (39...41)) + │ └── flags: decimal └── operator_loc: (37...38) = "=" diff --git a/test/yarp/snapshots/seattlerb/heredoc_nested.txt b/test/yarp/snapshots/seattlerb/heredoc_nested.txt index 85287b61411472..e3d44d38e52800 100644 --- a/test/yarp/snapshots/seattlerb/heredoc_nested.txt +++ b/test/yarp/snapshots/seattlerb/heredoc_nested.txt @@ -35,5 +35,6 @@ │ │ │ └── unescaped: "a\n" │ │ └── closing_loc: (19...21) = "A\n" │ └── @ IntegerNode (location: (21...22)) + │ └── flags: decimal ├── opening_loc: (0...1) = "[" └── closing_loc: (22...23) = "]" diff --git a/test/yarp/snapshots/seattlerb/heredoc_squiggly_interp.txt b/test/yarp/snapshots/seattlerb/heredoc_squiggly_interp.txt index fbe607be7d5212..1db1bc382a7fac 100644 --- a/test/yarp/snapshots/seattlerb/heredoc_squiggly_interp.txt +++ b/test/yarp/snapshots/seattlerb/heredoc_squiggly_interp.txt @@ -22,6 +22,7 @@ │ │ │ │ @ StatementsNode (location: (24...26)) │ │ │ │ └── body: (length: 1) │ │ │ │ └── @ IntegerNode (location: (24...26)) + │ │ │ │ └── flags: decimal │ │ │ └── closing_loc: (26...27) = "}" │ │ └── @ StringNode (location: (27...36)) │ │ ├── opening_loc: ∅ diff --git a/test/yarp/snapshots/seattlerb/if_elsif.txt b/test/yarp/snapshots/seattlerb/if_elsif.txt index 23ea223f2af78d..ffcfae1551bc5b 100644 --- a/test/yarp/snapshots/seattlerb/if_elsif.txt +++ b/test/yarp/snapshots/seattlerb/if_elsif.txt @@ -7,12 +7,14 @@ ├── if_keyword_loc: (0...2) = "if" ├── predicate: │ @ IntegerNode (location: (3...4)) + │ └── flags: decimal ├── statements: ∅ ├── consequent: │ @ IfNode (location: (6...18)) │ ├── if_keyword_loc: (6...11) = "elsif" │ ├── predicate: │ │ @ IntegerNode (location: (12...13)) + │ │ └── flags: decimal │ ├── statements: ∅ │ ├── consequent: ∅ │ └── end_keyword_loc: (15...18) = "end" diff --git a/test/yarp/snapshots/seattlerb/integer_with_if_modifier.txt b/test/yarp/snapshots/seattlerb/integer_with_if_modifier.txt index 8fc9d66a651371..7c468ffa48ae17 100644 --- a/test/yarp/snapshots/seattlerb/integer_with_if_modifier.txt +++ b/test/yarp/snapshots/seattlerb/integer_with_if_modifier.txt @@ -11,5 +11,6 @@ │ @ StatementsNode (location: (0...5)) │ └── body: (length: 1) │ └── @ IntegerNode (location: (0...5)) + │ └── flags: decimal ├── consequent: ∅ └── end_keyword_loc: ∅ diff --git a/test/yarp/snapshots/seattlerb/interpolated_symbol_array_line_breaks.txt b/test/yarp/snapshots/seattlerb/interpolated_symbol_array_line_breaks.txt index 7a561cfbf33ee7..85c42d9282c530 100644 --- a/test/yarp/snapshots/seattlerb/interpolated_symbol_array_line_breaks.txt +++ b/test/yarp/snapshots/seattlerb/interpolated_symbol_array_line_breaks.txt @@ -18,3 +18,4 @@ │ ├── opening_loc: (0...3) = "%I(" │ └── closing_loc: (8...9) = ")" └── @ IntegerNode (location: (10...11)) + └── flags: decimal diff --git a/test/yarp/snapshots/seattlerb/interpolated_word_array_line_breaks.txt b/test/yarp/snapshots/seattlerb/interpolated_word_array_line_breaks.txt index 5a41dafae6ed3a..9bea7d1a9b758c 100644 --- a/test/yarp/snapshots/seattlerb/interpolated_word_array_line_breaks.txt +++ b/test/yarp/snapshots/seattlerb/interpolated_word_array_line_breaks.txt @@ -18,3 +18,4 @@ │ ├── opening_loc: (0...3) = "%W(" │ └── closing_loc: (8...9) = ")" └── @ IntegerNode (location: (10...11)) + └── flags: decimal diff --git a/test/yarp/snapshots/seattlerb/iter_args_10_1.txt b/test/yarp/snapshots/seattlerb/iter_args_10_1.txt index d767ae4f04c98d..b75f3a4c1f233e 100644 --- a/test/yarp/snapshots/seattlerb/iter_args_10_1.txt +++ b/test/yarp/snapshots/seattlerb/iter_args_10_1.txt @@ -27,6 +27,7 @@ │ │ │ │ ├── operator_loc: (10...11) = "=" │ │ │ │ └── value: │ │ │ │ @ IntegerNode (location: (12...14)) + │ │ │ │ └── flags: decimal │ │ │ ├── posts: (length: 0) │ │ │ ├── rest: │ │ │ │ @ RestParameterNode (location: (16...18)) diff --git a/test/yarp/snapshots/seattlerb/iter_args_10_2.txt b/test/yarp/snapshots/seattlerb/iter_args_10_2.txt index 01568b4527774b..5e562abb5dc2ed 100644 --- a/test/yarp/snapshots/seattlerb/iter_args_10_2.txt +++ b/test/yarp/snapshots/seattlerb/iter_args_10_2.txt @@ -27,6 +27,7 @@ │ │ │ │ ├── operator_loc: (10...11) = "=" │ │ │ │ └── value: │ │ │ │ @ IntegerNode (location: (12...14)) + │ │ │ │ └── flags: decimal │ │ │ ├── posts: (length: 0) │ │ │ ├── rest: │ │ │ │ @ RestParameterNode (location: (16...18)) diff --git a/test/yarp/snapshots/seattlerb/iter_args_11_1.txt b/test/yarp/snapshots/seattlerb/iter_args_11_1.txt index e8e69909ce396c..8c91eb6465dc9c 100644 --- a/test/yarp/snapshots/seattlerb/iter_args_11_1.txt +++ b/test/yarp/snapshots/seattlerb/iter_args_11_1.txt @@ -27,6 +27,7 @@ │ │ │ │ ├── operator_loc: (10...11) = "=" │ │ │ │ └── value: │ │ │ │ @ IntegerNode (location: (12...14)) + │ │ │ │ └── flags: decimal │ │ │ ├── posts: (length: 1) │ │ │ │ └── @ RequiredParameterNode (location: (20...21)) │ │ │ │ └── name: :d diff --git a/test/yarp/snapshots/seattlerb/iter_args_11_2.txt b/test/yarp/snapshots/seattlerb/iter_args_11_2.txt index 27dd59624f456f..2d458923b7bd8c 100644 --- a/test/yarp/snapshots/seattlerb/iter_args_11_2.txt +++ b/test/yarp/snapshots/seattlerb/iter_args_11_2.txt @@ -27,6 +27,7 @@ │ │ │ │ ├── operator_loc: (10...11) = "=" │ │ │ │ └── value: │ │ │ │ @ IntegerNode (location: (12...14)) + │ │ │ │ └── flags: decimal │ │ │ ├── posts: (length: 1) │ │ │ │ └── @ RequiredParameterNode (location: (20...21)) │ │ │ │ └── name: :d diff --git a/test/yarp/snapshots/seattlerb/iter_args_6.txt b/test/yarp/snapshots/seattlerb/iter_args_6.txt index d4cc2a52d49831..ef0713274c2a32 100644 --- a/test/yarp/snapshots/seattlerb/iter_args_6.txt +++ b/test/yarp/snapshots/seattlerb/iter_args_6.txt @@ -27,6 +27,7 @@ │ │ │ │ ├── operator_loc: (9...10) = "=" │ │ │ │ └── value: │ │ │ │ @ IntegerNode (location: (10...12)) + │ │ │ │ └── flags: decimal │ │ │ ├── posts: (length: 1) │ │ │ │ └── @ RequiredParameterNode (location: (14...15)) │ │ │ │ └── name: :c diff --git a/test/yarp/snapshots/seattlerb/iter_args_7_1.txt b/test/yarp/snapshots/seattlerb/iter_args_7_1.txt index 48f4e3c2a0ceed..b3106e95f1aa5a 100644 --- a/test/yarp/snapshots/seattlerb/iter_args_7_1.txt +++ b/test/yarp/snapshots/seattlerb/iter_args_7_1.txt @@ -25,6 +25,7 @@ │ │ │ │ ├── operator_loc: (7...8) = "=" │ │ │ │ └── value: │ │ │ │ @ IntegerNode (location: (9...11)) + │ │ │ │ └── flags: decimal │ │ │ ├── posts: (length: 0) │ │ │ ├── rest: │ │ │ │ @ RestParameterNode (location: (13...15)) diff --git a/test/yarp/snapshots/seattlerb/iter_args_7_2.txt b/test/yarp/snapshots/seattlerb/iter_args_7_2.txt index 1b5a93de6538a6..afa860e516ef5b 100644 --- a/test/yarp/snapshots/seattlerb/iter_args_7_2.txt +++ b/test/yarp/snapshots/seattlerb/iter_args_7_2.txt @@ -25,6 +25,7 @@ │ │ │ │ ├── operator_loc: (7...8) = "=" │ │ │ │ └── value: │ │ │ │ @ IntegerNode (location: (9...11)) + │ │ │ │ └── flags: decimal │ │ │ ├── posts: (length: 0) │ │ │ ├── rest: │ │ │ │ @ RestParameterNode (location: (13...15)) diff --git a/test/yarp/snapshots/seattlerb/iter_args_8_1.txt b/test/yarp/snapshots/seattlerb/iter_args_8_1.txt index c9f3a244d3351d..6b92f92dcd906e 100644 --- a/test/yarp/snapshots/seattlerb/iter_args_8_1.txt +++ b/test/yarp/snapshots/seattlerb/iter_args_8_1.txt @@ -25,6 +25,7 @@ │ │ │ │ ├── operator_loc: (7...8) = "=" │ │ │ │ └── value: │ │ │ │ @ IntegerNode (location: (9...11)) + │ │ │ │ └── flags: decimal │ │ │ ├── posts: (length: 1) │ │ │ │ └── @ RequiredParameterNode (location: (17...18)) │ │ │ │ └── name: :c diff --git a/test/yarp/snapshots/seattlerb/iter_args_8_2.txt b/test/yarp/snapshots/seattlerb/iter_args_8_2.txt index 7409974f28f1f8..3459239d3ae84c 100644 --- a/test/yarp/snapshots/seattlerb/iter_args_8_2.txt +++ b/test/yarp/snapshots/seattlerb/iter_args_8_2.txt @@ -25,6 +25,7 @@ │ │ │ │ ├── operator_loc: (7...8) = "=" │ │ │ │ └── value: │ │ │ │ @ IntegerNode (location: (9...11)) + │ │ │ │ └── flags: decimal │ │ │ ├── posts: (length: 1) │ │ │ │ └── @ RequiredParameterNode (location: (17...18)) │ │ │ │ └── name: :c diff --git a/test/yarp/snapshots/seattlerb/iter_args_9_1.txt b/test/yarp/snapshots/seattlerb/iter_args_9_1.txt index 4196667c22369d..5b0be2a03a89af 100644 --- a/test/yarp/snapshots/seattlerb/iter_args_9_1.txt +++ b/test/yarp/snapshots/seattlerb/iter_args_9_1.txt @@ -25,6 +25,7 @@ │ │ │ │ ├── operator_loc: (7...8) = "=" │ │ │ │ └── value: │ │ │ │ @ IntegerNode (location: (9...11)) + │ │ │ │ └── flags: decimal │ │ │ ├── posts: (length: 1) │ │ │ │ └── @ RequiredParameterNode (location: (13...14)) │ │ │ │ └── name: :b diff --git a/test/yarp/snapshots/seattlerb/iter_args_9_2.txt b/test/yarp/snapshots/seattlerb/iter_args_9_2.txt index a52ce05f32841a..0676d81c278ab6 100644 --- a/test/yarp/snapshots/seattlerb/iter_args_9_2.txt +++ b/test/yarp/snapshots/seattlerb/iter_args_9_2.txt @@ -25,6 +25,7 @@ │ │ │ │ ├── operator_loc: (7...8) = "=" │ │ │ │ └── value: │ │ │ │ @ IntegerNode (location: (9...11)) + │ │ │ │ └── flags: decimal │ │ │ ├── posts: (length: 1) │ │ │ │ └── @ RequiredParameterNode (location: (13...14)) │ │ │ │ └── name: :b diff --git a/test/yarp/snapshots/seattlerb/iter_kwarg.txt b/test/yarp/snapshots/seattlerb/iter_kwarg.txt index 9ce4eb0d5e3946..11af8366eaa634 100644 --- a/test/yarp/snapshots/seattlerb/iter_kwarg.txt +++ b/test/yarp/snapshots/seattlerb/iter_kwarg.txt @@ -27,6 +27,7 @@ │ │ │ │ ├── name_loc: (5...7) = "b:" │ │ │ │ └── value: │ │ │ │ @ IntegerNode (location: (8...9)) + │ │ │ │ └── flags: decimal │ │ │ ├── keyword_rest: ∅ │ │ │ └── block: ∅ │ │ ├── locals: (length: 0) diff --git a/test/yarp/snapshots/seattlerb/iter_kwarg_kwsplat.txt b/test/yarp/snapshots/seattlerb/iter_kwarg_kwsplat.txt index 2b4077f7d338bd..0d5b3e0a3b23c1 100644 --- a/test/yarp/snapshots/seattlerb/iter_kwarg_kwsplat.txt +++ b/test/yarp/snapshots/seattlerb/iter_kwarg_kwsplat.txt @@ -27,6 +27,7 @@ │ │ │ │ ├── name_loc: (5...7) = "b:" │ │ │ │ └── value: │ │ │ │ @ IntegerNode (location: (8...9)) + │ │ │ │ └── flags: decimal │ │ │ ├── keyword_rest: │ │ │ │ @ KeywordRestParameterNode (location: (11...14)) │ │ │ │ ├── name: :c diff --git a/test/yarp/snapshots/seattlerb/lasgn_arg_rescue_arg.txt b/test/yarp/snapshots/seattlerb/lasgn_arg_rescue_arg.txt index 9af1ea05002081..7a52d83a37fb3c 100644 --- a/test/yarp/snapshots/seattlerb/lasgn_arg_rescue_arg.txt +++ b/test/yarp/snapshots/seattlerb/lasgn_arg_rescue_arg.txt @@ -11,7 +11,9 @@ │ @ RescueModifierNode (location: (4...14)) │ ├── expression: │ │ @ IntegerNode (location: (4...5)) + │ │ └── flags: decimal │ ├── keyword_loc: (6...12) = "rescue" │ └── rescue_expression: │ @ IntegerNode (location: (13...14)) + │ └── flags: decimal └── operator_loc: (2...3) = "=" diff --git a/test/yarp/snapshots/seattlerb/lasgn_call_bracket_rescue_arg.txt b/test/yarp/snapshots/seattlerb/lasgn_call_bracket_rescue_arg.txt index 886cb04b1e0d8d..c689818b070b43 100644 --- a/test/yarp/snapshots/seattlerb/lasgn_call_bracket_rescue_arg.txt +++ b/test/yarp/snapshots/seattlerb/lasgn_call_bracket_rescue_arg.txt @@ -19,6 +19,7 @@ │ │ │ @ ArgumentsNode (location: (6...7)) │ │ │ └── arguments: (length: 1) │ │ │ └── @ IntegerNode (location: (6...7)) + │ │ │ └── flags: decimal │ │ ├── closing_loc: (7...8) = ")" │ │ ├── block: ∅ │ │ ├── flags: @@ -26,4 +27,5 @@ │ ├── keyword_loc: (9...15) = "rescue" │ └── rescue_expression: │ @ IntegerNode (location: (16...17)) + │ └── flags: decimal └── operator_loc: (2...3) = "=" diff --git a/test/yarp/snapshots/seattlerb/lasgn_call_nobracket_rescue_arg.txt b/test/yarp/snapshots/seattlerb/lasgn_call_nobracket_rescue_arg.txt index 6d87ec10ca61d1..2b5913f868fbc9 100644 --- a/test/yarp/snapshots/seattlerb/lasgn_call_nobracket_rescue_arg.txt +++ b/test/yarp/snapshots/seattlerb/lasgn_call_nobracket_rescue_arg.txt @@ -19,9 +19,11 @@ │ │ └── @ RescueModifierNode (location: (6...16)) │ │ ├── expression: │ │ │ @ IntegerNode (location: (6...7)) + │ │ │ └── flags: decimal │ │ ├── keyword_loc: (8...14) = "rescue" │ │ └── rescue_expression: │ │ @ IntegerNode (location: (15...16)) + │ │ └── flags: decimal │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: diff --git a/test/yarp/snapshots/seattlerb/lasgn_command.txt b/test/yarp/snapshots/seattlerb/lasgn_command.txt index 2ecf1e641a50c0..7a1e35d1d491a8 100644 --- a/test/yarp/snapshots/seattlerb/lasgn_command.txt +++ b/test/yarp/snapshots/seattlerb/lasgn_command.txt @@ -27,6 +27,7 @@ │ │ @ ArgumentsNode (location: (8...9)) │ │ └── arguments: (length: 1) │ │ └── @ IntegerNode (location: (8...9)) + │ │ └── flags: decimal │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: diff --git a/test/yarp/snapshots/seattlerb/lasgn_env.txt b/test/yarp/snapshots/seattlerb/lasgn_env.txt index a414d2af2bcfb9..696d16396beeec 100644 --- a/test/yarp/snapshots/seattlerb/lasgn_env.txt +++ b/test/yarp/snapshots/seattlerb/lasgn_env.txt @@ -9,4 +9,5 @@ ├── name_loc: (0...1) = "a" ├── value: │ @ IntegerNode (location: (4...6)) + │ └── flags: decimal └── operator_loc: (2...3) = "=" diff --git a/test/yarp/snapshots/seattlerb/lasgn_ivar_env.txt b/test/yarp/snapshots/seattlerb/lasgn_ivar_env.txt index 3cc5e65841d248..e69e184a612344 100644 --- a/test/yarp/snapshots/seattlerb/lasgn_ivar_env.txt +++ b/test/yarp/snapshots/seattlerb/lasgn_ivar_env.txt @@ -8,4 +8,5 @@ ├── name_loc: (0...2) = "@a" ├── value: │ @ IntegerNode (location: (5...7)) + │ └── flags: decimal └── operator_loc: (3...4) = "=" diff --git a/test/yarp/snapshots/seattlerb/lasgn_lasgn_command_call.txt b/test/yarp/snapshots/seattlerb/lasgn_lasgn_command_call.txt index 21f02da5bf7150..abd0a7c4d5c7c7 100644 --- a/test/yarp/snapshots/seattlerb/lasgn_lasgn_command_call.txt +++ b/test/yarp/snapshots/seattlerb/lasgn_lasgn_command_call.txt @@ -22,6 +22,7 @@ │ │ │ @ ArgumentsNode (location: (10...11)) │ │ │ └── arguments: (length: 1) │ │ │ └── @ IntegerNode (location: (10...11)) + │ │ │ └── flags: decimal │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: diff --git a/test/yarp/snapshots/seattlerb/masgn_colon2.txt b/test/yarp/snapshots/seattlerb/masgn_colon2.txt index 746f64954c8081..8351cd94907a5d 100644 --- a/test/yarp/snapshots/seattlerb/masgn_colon2.txt +++ b/test/yarp/snapshots/seattlerb/masgn_colon2.txt @@ -31,6 +31,8 @@ @ ArrayNode (location: (10...14)) ├── elements: (length: 2) │ ├── @ IntegerNode (location: (10...11)) + │ │ └── flags: decimal │ └── @ IntegerNode (location: (13...14)) + │ └── flags: decimal ├── opening_loc: ∅ └── closing_loc: ∅ diff --git a/test/yarp/snapshots/seattlerb/masgn_colon3.txt b/test/yarp/snapshots/seattlerb/masgn_colon3.txt index 003420c471b7e3..32c89d71f1c770 100644 --- a/test/yarp/snapshots/seattlerb/masgn_colon3.txt +++ b/test/yarp/snapshots/seattlerb/masgn_colon3.txt @@ -24,6 +24,8 @@ @ ArrayNode (location: (11...15)) ├── elements: (length: 2) │ ├── @ IntegerNode (location: (11...12)) + │ │ └── flags: decimal │ └── @ IntegerNode (location: (14...15)) + │ └── flags: decimal ├── opening_loc: ∅ └── closing_loc: ∅ diff --git a/test/yarp/snapshots/seattlerb/masgn_command_call.txt b/test/yarp/snapshots/seattlerb/masgn_command_call.txt index 6400c4b2027fd9..7f256884427b55 100644 --- a/test/yarp/snapshots/seattlerb/masgn_command_call.txt +++ b/test/yarp/snapshots/seattlerb/masgn_command_call.txt @@ -34,6 +34,7 @@ │ @ ArgumentsNode (location: (9...10)) │ └── arguments: (length: 1) │ └── @ IntegerNode (location: (9...10)) + │ └── flags: decimal ├── closing_loc: ∅ ├── block: ∅ ├── flags: diff --git a/test/yarp/snapshots/seattlerb/masgn_lhs_splat.txt b/test/yarp/snapshots/seattlerb/masgn_lhs_splat.txt index 0008f6ec6e2918..6cf5f8fb71d19b 100644 --- a/test/yarp/snapshots/seattlerb/masgn_lhs_splat.txt +++ b/test/yarp/snapshots/seattlerb/masgn_lhs_splat.txt @@ -18,7 +18,10 @@ @ ArrayNode (location: (5...12)) ├── elements: (length: 3) │ ├── @ IntegerNode (location: (5...6)) + │ │ └── flags: decimal │ ├── @ IntegerNode (location: (8...9)) + │ │ └── flags: decimal │ └── @ IntegerNode (location: (11...12)) + │ └── flags: decimal ├── opening_loc: ∅ └── closing_loc: ∅ diff --git a/test/yarp/snapshots/seattlerb/masgn_star.txt b/test/yarp/snapshots/seattlerb/masgn_star.txt index b17afb60d1af70..a49b87b4699a6e 100644 --- a/test/yarp/snapshots/seattlerb/masgn_star.txt +++ b/test/yarp/snapshots/seattlerb/masgn_star.txt @@ -13,3 +13,4 @@ ├── operator_loc: (2...3) = "=" └── value: @ IntegerNode (location: (4...5)) + └── flags: decimal diff --git a/test/yarp/snapshots/seattlerb/method_call_assoc_trailing_comma.txt b/test/yarp/snapshots/seattlerb/method_call_assoc_trailing_comma.txt index f1355e49130781..090aca2a6200b5 100644 --- a/test/yarp/snapshots/seattlerb/method_call_assoc_trailing_comma.txt +++ b/test/yarp/snapshots/seattlerb/method_call_assoc_trailing_comma.txt @@ -26,8 +26,10 @@ │ └── @ AssocNode (location: (4...8)) │ ├── key: │ │ @ IntegerNode (location: (4...5)) + │ │ └── flags: decimal │ ├── value: │ │ @ IntegerNode (location: (7...8)) + │ │ └── flags: decimal │ └── operator_loc: (5...7) = "=>" ├── closing_loc: (9...10) = ")" ├── block: ∅ diff --git a/test/yarp/snapshots/seattlerb/method_call_trailing_comma.txt b/test/yarp/snapshots/seattlerb/method_call_trailing_comma.txt index 8d80de2f48b762..78590a600af767 100644 --- a/test/yarp/snapshots/seattlerb/method_call_trailing_comma.txt +++ b/test/yarp/snapshots/seattlerb/method_call_trailing_comma.txt @@ -22,6 +22,7 @@ │ @ ArgumentsNode (location: (4...5)) │ └── arguments: (length: 1) │ └── @ IntegerNode (location: (4...5)) + │ └── flags: decimal ├── closing_loc: (6...7) = ")" ├── block: ∅ ├── flags: diff --git a/test/yarp/snapshots/seattlerb/mlhs_rescue.txt b/test/yarp/snapshots/seattlerb/mlhs_rescue.txt index 15476af6b1a4d4..9b8fbde65424b0 100644 --- a/test/yarp/snapshots/seattlerb/mlhs_rescue.txt +++ b/test/yarp/snapshots/seattlerb/mlhs_rescue.txt @@ -30,3 +30,4 @@ ├── keyword_loc: (9...15) = "rescue" └── rescue_expression: @ IntegerNode (location: (16...18)) + └── flags: decimal diff --git a/test/yarp/snapshots/seattlerb/non_interpolated_symbol_array_line_breaks.txt b/test/yarp/snapshots/seattlerb/non_interpolated_symbol_array_line_breaks.txt index c0bb1fe0a276f7..5ed558188c7c7d 100644 --- a/test/yarp/snapshots/seattlerb/non_interpolated_symbol_array_line_breaks.txt +++ b/test/yarp/snapshots/seattlerb/non_interpolated_symbol_array_line_breaks.txt @@ -18,3 +18,4 @@ │ ├── opening_loc: (0...3) = "%i(" │ └── closing_loc: (8...9) = ")" └── @ IntegerNode (location: (10...11)) + └── flags: decimal diff --git a/test/yarp/snapshots/seattlerb/non_interpolated_word_array_line_breaks.txt b/test/yarp/snapshots/seattlerb/non_interpolated_word_array_line_breaks.txt index 21a3263b86c051..a9a37344c8f346 100644 --- a/test/yarp/snapshots/seattlerb/non_interpolated_word_array_line_breaks.txt +++ b/test/yarp/snapshots/seattlerb/non_interpolated_word_array_line_breaks.txt @@ -18,3 +18,4 @@ │ ├── opening_loc: (0...3) = "%w(" │ └── closing_loc: (8...9) = ")" └── @ IntegerNode (location: (10...11)) + └── flags: decimal diff --git a/test/yarp/snapshots/seattlerb/op_asgn_command_call.txt b/test/yarp/snapshots/seattlerb/op_asgn_command_call.txt index 1bc0a88025a340..46dcf0a727712e 100644 --- a/test/yarp/snapshots/seattlerb/op_asgn_command_call.txt +++ b/test/yarp/snapshots/seattlerb/op_asgn_command_call.txt @@ -26,6 +26,7 @@ │ │ @ ArgumentsNode (location: (10...11)) │ │ └── arguments: (length: 1) │ │ └── @ IntegerNode (location: (10...11)) + │ │ └── flags: decimal │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: diff --git a/test/yarp/snapshots/seattlerb/op_asgn_dot_ident_command_call.txt b/test/yarp/snapshots/seattlerb/op_asgn_dot_ident_command_call.txt index ac671e90cde509..e544c40f3ccbfb 100644 --- a/test/yarp/snapshots/seattlerb/op_asgn_dot_ident_command_call.txt +++ b/test/yarp/snapshots/seattlerb/op_asgn_dot_ident_command_call.txt @@ -26,6 +26,7 @@ │ @ ArgumentsNode (location: (10...11)) │ └── arguments: (length: 1) │ └── @ IntegerNode (location: (10...11)) + │ └── flags: decimal ├── closing_loc: ∅ ├── block: ∅ ├── flags: diff --git a/test/yarp/snapshots/seattlerb/op_asgn_index_command_call.txt b/test/yarp/snapshots/seattlerb/op_asgn_index_command_call.txt index 7fa6b6e3af49bd..a6b34742d57e1b 100644 --- a/test/yarp/snapshots/seattlerb/op_asgn_index_command_call.txt +++ b/test/yarp/snapshots/seattlerb/op_asgn_index_command_call.txt @@ -41,7 +41,9 @@ │ @ ArgumentsNode (location: (12...16)) │ └── arguments: (length: 2) │ ├── @ IntegerNode (location: (12...13)) + │ │ └── flags: decimal │ └── @ IntegerNode (location: (15...16)) + │ └── flags: decimal ├── closing_loc: ∅ ├── block: ∅ ├── flags: diff --git a/test/yarp/snapshots/seattlerb/op_asgn_primary_colon_identifier1.txt b/test/yarp/snapshots/seattlerb/op_asgn_primary_colon_identifier1.txt index 9271fa4172ef83..39729e674256fe 100644 --- a/test/yarp/snapshots/seattlerb/op_asgn_primary_colon_identifier1.txt +++ b/test/yarp/snapshots/seattlerb/op_asgn_primary_colon_identifier1.txt @@ -19,3 +19,4 @@ ├── operator_loc: (5...7) = "+=" └── value: @ IntegerNode (location: (8...9)) + └── flags: decimal diff --git a/test/yarp/snapshots/seattlerb/op_asgn_val_dot_ident_command_call.txt b/test/yarp/snapshots/seattlerb/op_asgn_val_dot_ident_command_call.txt index 5b61f68ed5ca39..12d589bd1dd805 100644 --- a/test/yarp/snapshots/seattlerb/op_asgn_val_dot_ident_command_call.txt +++ b/test/yarp/snapshots/seattlerb/op_asgn_val_dot_ident_command_call.txt @@ -34,6 +34,7 @@ │ @ ArgumentsNode (location: (10...11)) │ └── arguments: (length: 1) │ └── @ IntegerNode (location: (10...11)) + │ └── flags: decimal ├── closing_loc: ∅ ├── block: ∅ ├── flags: diff --git a/test/yarp/snapshots/seattlerb/parse_line_block.txt b/test/yarp/snapshots/seattlerb/parse_line_block.txt index 0173a9d968e736..eab94e24dc29dd 100644 --- a/test/yarp/snapshots/seattlerb/parse_line_block.txt +++ b/test/yarp/snapshots/seattlerb/parse_line_block.txt @@ -9,6 +9,7 @@ │ ├── name_loc: (0...1) = "a" │ ├── value: │ │ @ IntegerNode (location: (4...6)) + │ │ └── flags: decimal │ └── operator_loc: (2...3) = "=" └── @ CallNode (location: (7...10)) ├── receiver: ∅ diff --git a/test/yarp/snapshots/seattlerb/parse_line_defn_complex.txt b/test/yarp/snapshots/seattlerb/parse_line_defn_complex.txt index 66d191aa93900d..b624f1a99ed64e 100644 --- a/test/yarp/snapshots/seattlerb/parse_line_defn_complex.txt +++ b/test/yarp/snapshots/seattlerb/parse_line_defn_complex.txt @@ -41,6 +41,7 @@ │ │ ├── operator_loc: (20...22) = "*=" │ │ ├── value: │ │ │ @ IntegerNode (location: (23...24)) + │ │ │ └── flags: decimal │ │ ├── name: :y │ │ ├── operator: :* │ │ └── depth: 0 diff --git a/test/yarp/snapshots/seattlerb/parse_line_dot2.txt b/test/yarp/snapshots/seattlerb/parse_line_dot2.txt index 57e8415e3f6470..19b66ea7fd2bce 100644 --- a/test/yarp/snapshots/seattlerb/parse_line_dot2.txt +++ b/test/yarp/snapshots/seattlerb/parse_line_dot2.txt @@ -6,8 +6,10 @@ ├── @ RangeNode (location: (0...5)) │ ├── left: │ │ @ IntegerNode (location: (0...1)) + │ │ └── flags: decimal │ ├── right: │ │ @ IntegerNode (location: (4...5)) + │ │ └── flags: decimal │ ├── operator_loc: (1...3) = ".." │ └── flags: ├── @ RangeNode (location: (6...11)) diff --git a/test/yarp/snapshots/seattlerb/parse_line_dot2_open.txt b/test/yarp/snapshots/seattlerb/parse_line_dot2_open.txt index 899301d9885449..3f64918f21a60f 100644 --- a/test/yarp/snapshots/seattlerb/parse_line_dot2_open.txt +++ b/test/yarp/snapshots/seattlerb/parse_line_dot2_open.txt @@ -6,6 +6,7 @@ ├── @ RangeNode (location: (0...3)) │ ├── left: │ │ @ IntegerNode (location: (0...1)) + │ │ └── flags: decimal │ ├── right: ∅ │ ├── operator_loc: (1...3) = ".." │ └── flags: diff --git a/test/yarp/snapshots/seattlerb/parse_line_dot3.txt b/test/yarp/snapshots/seattlerb/parse_line_dot3.txt index ee04437d615a6a..a875d6c31696d7 100644 --- a/test/yarp/snapshots/seattlerb/parse_line_dot3.txt +++ b/test/yarp/snapshots/seattlerb/parse_line_dot3.txt @@ -6,8 +6,10 @@ ├── @ RangeNode (location: (0...6)) │ ├── left: │ │ @ IntegerNode (location: (0...1)) + │ │ └── flags: decimal │ ├── right: │ │ @ IntegerNode (location: (5...6)) + │ │ └── flags: decimal │ ├── operator_loc: (1...4) = "..." │ └── flags: exclude_end ├── @ RangeNode (location: (7...13)) diff --git a/test/yarp/snapshots/seattlerb/parse_line_dot3_open.txt b/test/yarp/snapshots/seattlerb/parse_line_dot3_open.txt index 42ac66c20fcdae..ae4a5ad1a11c64 100644 --- a/test/yarp/snapshots/seattlerb/parse_line_dot3_open.txt +++ b/test/yarp/snapshots/seattlerb/parse_line_dot3_open.txt @@ -6,6 +6,7 @@ ├── @ RangeNode (location: (0...4)) │ ├── left: │ │ @ IntegerNode (location: (0...1)) + │ │ └── flags: decimal │ ├── right: ∅ │ ├── operator_loc: (1...4) = "..." │ └── flags: exclude_end diff --git a/test/yarp/snapshots/seattlerb/parse_line_hash_lit.txt b/test/yarp/snapshots/seattlerb/parse_line_hash_lit.txt index 66b51df230fb15..6b0b4d44517f50 100644 --- a/test/yarp/snapshots/seattlerb/parse_line_hash_lit.txt +++ b/test/yarp/snapshots/seattlerb/parse_line_hash_lit.txt @@ -15,5 +15,6 @@ │ │ └── unescaped: "s1" │ ├── value: │ │ @ IntegerNode (location: (9...10)) + │ │ └── flags: decimal │ └── operator_loc: (6...8) = "=>" └── closing_loc: (12...13) = "}" diff --git a/test/yarp/snapshots/seattlerb/parse_line_multiline_str.txt b/test/yarp/snapshots/seattlerb/parse_line_multiline_str.txt index 468d99e42e016d..7a8ce479c2c6be 100644 --- a/test/yarp/snapshots/seattlerb/parse_line_multiline_str.txt +++ b/test/yarp/snapshots/seattlerb/parse_line_multiline_str.txt @@ -9,3 +9,4 @@ │ ├── closing_loc: (4...5) = "\"" │ └── unescaped: "a\nb" └── @ IntegerNode (location: (6...7)) + └── flags: decimal diff --git a/test/yarp/snapshots/seattlerb/parse_line_multiline_str_literal_n.txt b/test/yarp/snapshots/seattlerb/parse_line_multiline_str_literal_n.txt index 54e24389b93b7d..7d4a3f42bd9613 100644 --- a/test/yarp/snapshots/seattlerb/parse_line_multiline_str_literal_n.txt +++ b/test/yarp/snapshots/seattlerb/parse_line_multiline_str_literal_n.txt @@ -9,3 +9,4 @@ │ ├── closing_loc: (5...6) = "\"" │ └── unescaped: "a\nb" └── @ IntegerNode (location: (7...8)) + └── flags: decimal diff --git a/test/yarp/snapshots/seattlerb/parse_line_return.txt b/test/yarp/snapshots/seattlerb/parse_line_return.txt index c595b18a3d8493..b467bd4a602a78 100644 --- a/test/yarp/snapshots/seattlerb/parse_line_return.txt +++ b/test/yarp/snapshots/seattlerb/parse_line_return.txt @@ -24,6 +24,7 @@ │ │ @ ArgumentsNode (location: (53...55)) │ │ └── arguments: (length: 1) │ │ └── @ IntegerNode (location: (53...55)) + │ │ └── flags: decimal │ ├── consequent: ∅ │ └── end_keyword_loc: (64...67) = "end" ├── locals: [] diff --git a/test/yarp/snapshots/seattlerb/parse_opt_call_args_assocs_comma.txt b/test/yarp/snapshots/seattlerb/parse_opt_call_args_assocs_comma.txt index 24933d6b748bc2..89d0a64166a5c2 100644 --- a/test/yarp/snapshots/seattlerb/parse_opt_call_args_assocs_comma.txt +++ b/test/yarp/snapshots/seattlerb/parse_opt_call_args_assocs_comma.txt @@ -6,6 +6,7 @@ └── @ CallNode (location: (0...8)) ├── receiver: │ @ IntegerNode (location: (0...1)) + │ └── flags: decimal ├── call_operator_loc: ∅ ├── message_loc: (1...8) = "[2=>3,]" ├── opening_loc: (1...2) = "[" @@ -17,8 +18,10 @@ │ └── @ AssocNode (location: (2...6)) │ ├── key: │ │ @ IntegerNode (location: (2...3)) + │ │ └── flags: decimal │ ├── value: │ │ @ IntegerNode (location: (5...6)) + │ │ └── flags: decimal │ └── operator_loc: (3...5) = "=>" ├── closing_loc: (7...8) = "]" ├── block: ∅ diff --git a/test/yarp/snapshots/seattlerb/parse_opt_call_args_lit_comma.txt b/test/yarp/snapshots/seattlerb/parse_opt_call_args_lit_comma.txt index d1a9ec11e50b55..4976c680ee7b65 100644 --- a/test/yarp/snapshots/seattlerb/parse_opt_call_args_lit_comma.txt +++ b/test/yarp/snapshots/seattlerb/parse_opt_call_args_lit_comma.txt @@ -6,6 +6,7 @@ └── @ CallNode (location: (0...5)) ├── receiver: │ @ IntegerNode (location: (0...1)) + │ └── flags: decimal ├── call_operator_loc: ∅ ├── message_loc: (1...5) = "[2,]" ├── opening_loc: (1...2) = "[" @@ -13,6 +14,7 @@ │ @ ArgumentsNode (location: (2...3)) │ └── arguments: (length: 1) │ └── @ IntegerNode (location: (2...3)) + │ └── flags: decimal ├── closing_loc: (4...5) = "]" ├── block: ∅ ├── flags: diff --git a/test/yarp/snapshots/seattlerb/parse_pattern_019.txt b/test/yarp/snapshots/seattlerb/parse_pattern_019.txt index e7359c20d90fd2..9cfdd6f5d1c84c 100644 --- a/test/yarp/snapshots/seattlerb/parse_pattern_019.txt +++ b/test/yarp/snapshots/seattlerb/parse_pattern_019.txt @@ -6,14 +6,17 @@ └── @ CaseNode (location: (0...26)) ├── predicate: │ @ IntegerNode (location: (5...6)) + │ └── flags: decimal ├── conditions: (length: 1) │ └── @ InNode (location: (7...22)) │ ├── pattern: │ │ @ RangeNode (location: (10...15)) │ │ ├── left: │ │ │ @ IntegerNode (location: (10...12)) + │ │ │ └── flags: decimal │ │ ├── right: │ │ │ @ IntegerNode (location: (14...15)) + │ │ │ └── flags: decimal │ │ ├── operator_loc: (12...14) = ".." │ │ └── flags: │ ├── statements: diff --git a/test/yarp/snapshots/seattlerb/parse_pattern_051.txt b/test/yarp/snapshots/seattlerb/parse_pattern_051.txt index 707ee116d09a8a..d7d58a015c4e5b 100644 --- a/test/yarp/snapshots/seattlerb/parse_pattern_051.txt +++ b/test/yarp/snapshots/seattlerb/parse_pattern_051.txt @@ -8,8 +8,11 @@ │ @ ArrayNode (location: (5...14)) │ ├── elements: (length: 3) │ │ ├── @ IntegerNode (location: (6...7)) + │ │ │ └── flags: decimal │ │ ├── @ IntegerNode (location: (9...10)) + │ │ │ └── flags: decimal │ │ └── @ IntegerNode (location: (12...13)) + │ │ └── flags: decimal │ ├── opening_loc: (5...6) = "[" │ └── closing_loc: (13...14) = "]" ├── conditions: (length: 1) @@ -19,7 +22,9 @@ │ │ ├── constant: ∅ │ │ ├── requireds: (length: 2) │ │ │ ├── @ IntegerNode (location: (19...20)) + │ │ │ │ └── flags: decimal │ │ │ └── @ IntegerNode (location: (22...23)) + │ │ │ └── flags: decimal │ │ ├── rest: ∅ │ │ ├── posts: (length: 0) │ │ ├── opening_loc: (18...19) = "[" diff --git a/test/yarp/snapshots/seattlerb/parse_pattern_058.txt b/test/yarp/snapshots/seattlerb/parse_pattern_058.txt index 42226e34350b86..f376b0a2cf2dc1 100644 --- a/test/yarp/snapshots/seattlerb/parse_pattern_058.txt +++ b/test/yarp/snapshots/seattlerb/parse_pattern_058.txt @@ -17,6 +17,7 @@ │ │ │ └── unescaped: "a" │ │ ├── value: │ │ │ @ IntegerNode (location: (9...10)) + │ │ │ └── flags: decimal │ │ └── operator_loc: ∅ │ └── closing_loc: (10...11) = "}" ├── conditions: (length: 1) diff --git a/test/yarp/snapshots/seattlerb/parse_pattern_058_2.txt b/test/yarp/snapshots/seattlerb/parse_pattern_058_2.txt index be459ce9d386b8..da4471d1435141 100644 --- a/test/yarp/snapshots/seattlerb/parse_pattern_058_2.txt +++ b/test/yarp/snapshots/seattlerb/parse_pattern_058_2.txt @@ -17,6 +17,7 @@ │ │ │ └── unescaped: "a" │ │ ├── value: │ │ │ @ IntegerNode (location: (9...10)) + │ │ │ └── flags: decimal │ │ └── operator_loc: ∅ │ └── closing_loc: (10...11) = "}" ├── conditions: (length: 1) diff --git a/test/yarp/snapshots/seattlerb/parse_pattern_069.txt b/test/yarp/snapshots/seattlerb/parse_pattern_069.txt index d02a1f17b4aa39..9edc3340d67113 100644 --- a/test/yarp/snapshots/seattlerb/parse_pattern_069.txt +++ b/test/yarp/snapshots/seattlerb/parse_pattern_069.txt @@ -27,6 +27,7 @@ │ │ │ │ └── unescaped: "b" │ │ │ ├── value: │ │ │ │ @ IntegerNode (location: (21...22)) + │ │ │ │ └── flags: decimal │ │ │ └── operator_loc: ∅ │ │ ├── kwrest: ∅ │ │ ├── opening_loc: (17...18) = "[" @@ -35,6 +36,7 @@ │ │ @ StatementsNode (location: (26...27)) │ │ └── body: (length: 1) │ │ └── @ IntegerNode (location: (26...27)) + │ │ └── flags: decimal │ ├── in_loc: (8...10) = "in" │ └── then_loc: ∅ ├── consequent: ∅ diff --git a/test/yarp/snapshots/seattlerb/parse_pattern_076.txt b/test/yarp/snapshots/seattlerb/parse_pattern_076.txt index d8af0ac0a0b8b6..244e337948a043 100644 --- a/test/yarp/snapshots/seattlerb/parse_pattern_076.txt +++ b/test/yarp/snapshots/seattlerb/parse_pattern_076.txt @@ -17,6 +17,7 @@ │ │ │ └── unescaped: "a" │ │ ├── value: │ │ │ @ IntegerNode (location: (9...10)) + │ │ │ └── flags: decimal │ │ └── operator_loc: ∅ │ └── closing_loc: (10...11) = "}" ├── conditions: (length: 1) @@ -34,6 +35,7 @@ │ │ │ │ │ └── unescaped: "a" │ │ │ │ ├── value: │ │ │ │ │ @ IntegerNode (location: (19...20)) + │ │ │ │ │ └── flags: decimal │ │ │ │ └── operator_loc: ∅ │ │ │ └── @ NoKeywordsParameterNode (location: (22...27)) │ │ │ ├── operator_loc: (22...24) = "**" diff --git a/test/yarp/snapshots/seattlerb/qsymbols_interp.txt b/test/yarp/snapshots/seattlerb/qsymbols_interp.txt index 3d84785a449089..28cffabb4739ed 100644 --- a/test/yarp/snapshots/seattlerb/qsymbols_interp.txt +++ b/test/yarp/snapshots/seattlerb/qsymbols_interp.txt @@ -26,6 +26,7 @@ │ │ │ │ └── @ CallNode (location: (8...11)) │ │ │ │ ├── receiver: │ │ │ │ │ @ IntegerNode (location: (8...9)) + │ │ │ │ │ └── flags: decimal │ │ │ │ ├── call_operator_loc: ∅ │ │ │ │ ├── message_loc: (9...10) = "+" │ │ │ │ ├── opening_loc: ∅ @@ -33,6 +34,7 @@ │ │ │ │ │ @ ArgumentsNode (location: (10...11)) │ │ │ │ │ └── arguments: (length: 1) │ │ │ │ │ └── @ IntegerNode (location: (10...11)) + │ │ │ │ │ └── flags: decimal │ │ │ │ ├── closing_loc: ∅ │ │ │ │ ├── block: ∅ │ │ │ │ ├── flags: diff --git a/test/yarp/snapshots/seattlerb/return_call_assocs.txt b/test/yarp/snapshots/seattlerb/return_call_assocs.txt index 93ee0d351d0ccf..967dba771538b0 100644 --- a/test/yarp/snapshots/seattlerb/return_call_assocs.txt +++ b/test/yarp/snapshots/seattlerb/return_call_assocs.txt @@ -9,6 +9,7 @@ │ @ ArgumentsNode (location: (7...17)) │ └── arguments: (length: 2) │ ├── @ IntegerNode (location: (7...8)) + │ │ └── flags: decimal │ └── @ KeywordHashNode (location: (10...17)) │ └── elements: (length: 1) │ └── @ AssocNode (location: (10...17)) @@ -20,6 +21,7 @@ │ │ └── unescaped: "z" │ ├── value: │ │ @ IntegerNode (location: (16...17)) + │ │ └── flags: decimal │ └── operator_loc: (13...15) = "=>" ├── @ ReturnNode (location: (19...45)) │ ├── keyword_loc: (19...25) = "return" @@ -27,6 +29,7 @@ │ @ ArgumentsNode (location: (26...45)) │ └── arguments: (length: 2) │ ├── @ IntegerNode (location: (26...27)) + │ │ └── flags: decimal │ └── @ KeywordHashNode (location: (29...45)) │ └── elements: (length: 2) │ ├── @ AssocNode (location: (29...36)) @@ -38,6 +41,7 @@ │ │ │ └── unescaped: "z" │ │ ├── value: │ │ │ @ IntegerNode (location: (35...36)) + │ │ │ └── flags: decimal │ │ └── operator_loc: (32...34) = "=>" │ └── @ AssocNode (location: (38...45)) │ ├── key: @@ -48,6 +52,7 @@ │ │ └── unescaped: "w" │ ├── value: │ │ @ IntegerNode (location: (44...45)) + │ │ └── flags: decimal │ └── operator_loc: (41...43) = "=>" ├── @ ReturnNode (location: (47...61)) │ ├── keyword_loc: (47...53) = "return" @@ -73,6 +78,7 @@ │ │ │ └── unescaped: "z" │ │ ├── value: │ │ │ @ IntegerNode (location: (60...61)) + │ │ │ └── flags: decimal │ │ └── operator_loc: (58...60) = "=>" │ ├── closing_loc: ∅ │ ├── block: ∅ @@ -102,6 +108,7 @@ │ │ │ └── unescaped: "z" │ │ ├── value: │ │ │ @ IntegerNode (location: (74...75)) + │ │ │ └── flags: decimal │ │ └── operator_loc: ∅ │ ├── closing_loc: ∅ │ ├── block: ∅ @@ -131,6 +138,7 @@ │ │ │ └── unescaped: "z" │ │ ├── value: │ │ │ @ IntegerNode (location: (88...89)) + │ │ │ └── flags: decimal │ │ └── operator_loc: ∅ │ ├── closing_loc: (89...90) = ")" │ ├── block: ∅ @@ -165,6 +173,7 @@ │ │ └── name: "z" │ ├── value: │ │ @ IntegerNode (location: (104...105)) + │ │ └── flags: decimal │ └── operator_loc: (102...104) = "=>" ├── closing_loc: (105...106) = ")" ├── block: ∅ diff --git a/test/yarp/snapshots/seattlerb/rhs_asgn.txt b/test/yarp/snapshots/seattlerb/rhs_asgn.txt index 4f40b07ec1b292..2fe0e3ad3e9acd 100644 --- a/test/yarp/snapshots/seattlerb/rhs_asgn.txt +++ b/test/yarp/snapshots/seattlerb/rhs_asgn.txt @@ -6,6 +6,7 @@ └── @ MatchRequiredNode (location: (0...7)) ├── value: │ @ IntegerNode (location: (0...2)) + │ └── flags: decimal ├── pattern: │ @ LocalVariableTargetNode (location: (6...7)) │ ├── name: :n diff --git a/test/yarp/snapshots/seattlerb/ruby21_numbers.txt b/test/yarp/snapshots/seattlerb/ruby21_numbers.txt index 2b70316da4f26d..c27184b1c7bda9 100644 --- a/test/yarp/snapshots/seattlerb/ruby21_numbers.txt +++ b/test/yarp/snapshots/seattlerb/ruby21_numbers.txt @@ -8,13 +8,16 @@ │ ├── @ ImaginaryNode (location: (1...3)) │ │ └── numeric: │ │ @ IntegerNode (location: (1...2)) + │ │ └── flags: decimal │ ├── @ RationalNode (location: (5...7)) │ │ └── numeric: │ │ @ IntegerNode (location: (5...6)) + │ │ └── flags: decimal │ └── @ ImaginaryNode (location: (9...12)) │ └── numeric: │ @ RationalNode (location: (9...11)) │ └── numeric: │ @ IntegerNode (location: (9...10)) + │ └── flags: decimal ├── opening_loc: (0...1) = "[" └── closing_loc: (12...13) = "]" diff --git a/test/yarp/snapshots/seattlerb/safe_attrasgn.txt b/test/yarp/snapshots/seattlerb/safe_attrasgn.txt index d6dc44e7839b2b..6624bb372b086c 100644 --- a/test/yarp/snapshots/seattlerb/safe_attrasgn.txt +++ b/test/yarp/snapshots/seattlerb/safe_attrasgn.txt @@ -22,6 +22,7 @@ │ @ ArgumentsNode (location: (7...8)) │ └── arguments: (length: 1) │ └── @ IntegerNode (location: (7...8)) + │ └── flags: decimal ├── closing_loc: ∅ ├── block: ∅ ├── flags: safe_navigation diff --git a/test/yarp/snapshots/seattlerb/safe_attrasgn_constant.txt b/test/yarp/snapshots/seattlerb/safe_attrasgn_constant.txt index cd9163caabfc66..5ae570bf0d3d20 100644 --- a/test/yarp/snapshots/seattlerb/safe_attrasgn_constant.txt +++ b/test/yarp/snapshots/seattlerb/safe_attrasgn_constant.txt @@ -22,6 +22,7 @@ │ @ ArgumentsNode (location: (7...8)) │ └── arguments: (length: 1) │ └── @ IntegerNode (location: (7...8)) + │ └── flags: decimal ├── closing_loc: ∅ ├── block: ∅ ├── flags: safe_navigation diff --git a/test/yarp/snapshots/seattlerb/safe_call_operator.txt b/test/yarp/snapshots/seattlerb/safe_call_operator.txt index ec378a7641a83c..cbb19dd5526b69 100644 --- a/test/yarp/snapshots/seattlerb/safe_call_operator.txt +++ b/test/yarp/snapshots/seattlerb/safe_call_operator.txt @@ -22,6 +22,7 @@ │ @ ArgumentsNode (location: (5...6)) │ └── arguments: (length: 1) │ └── @ IntegerNode (location: (5...6)) + │ └── flags: decimal ├── closing_loc: ∅ ├── block: ∅ ├── flags: safe_navigation diff --git a/test/yarp/snapshots/seattlerb/safe_calls.txt b/test/yarp/snapshots/seattlerb/safe_calls.txt index 200e53f6446d16..54656340d1b99f 100644 --- a/test/yarp/snapshots/seattlerb/safe_calls.txt +++ b/test/yarp/snapshots/seattlerb/safe_calls.txt @@ -32,6 +32,7 @@ │ @ ArgumentsNode (location: (8...9)) │ └── arguments: (length: 1) │ └── @ IntegerNode (location: (8...9)) + │ └── flags: decimal ├── closing_loc: (9...10) = ")" ├── block: ∅ ├── flags: safe_navigation diff --git a/test/yarp/snapshots/seattlerb/safe_op_asgn.txt b/test/yarp/snapshots/seattlerb/safe_op_asgn.txt index d959a8789a554f..945e0de056ea98 100644 --- a/test/yarp/snapshots/seattlerb/safe_op_asgn.txt +++ b/test/yarp/snapshots/seattlerb/safe_op_asgn.txt @@ -35,6 +35,7 @@ │ @ ArgumentsNode (location: (10...11)) │ └── arguments: (length: 1) │ └── @ IntegerNode (location: (10...11)) + │ └── flags: decimal ├── closing_loc: ∅ ├── block: ∅ ├── flags: diff --git a/test/yarp/snapshots/seattlerb/stabby_arg_opt_splat_arg_block_omfg.txt b/test/yarp/snapshots/seattlerb/stabby_arg_opt_splat_arg_block_omfg.txt index 3faa5c69f0dcea..beeda8c5fc8bce 100644 --- a/test/yarp/snapshots/seattlerb/stabby_arg_opt_splat_arg_block_omfg.txt +++ b/test/yarp/snapshots/seattlerb/stabby_arg_opt_splat_arg_block_omfg.txt @@ -22,6 +22,7 @@ │ │ │ ├── operator_loc: (7...8) = "=" │ │ │ └── value: │ │ │ @ IntegerNode (location: (8...9)) + │ │ │ └── flags: decimal │ │ ├── posts: (length: 1) │ │ │ └── @ RequiredParameterNode (location: (15...16)) │ │ │ └── name: :e diff --git a/test/yarp/snapshots/seattlerb/stabby_block_iter_call_no_target_with_arg.txt b/test/yarp/snapshots/seattlerb/stabby_block_iter_call_no_target_with_arg.txt index d9ad0ec960132a..00763845c7adcc 100644 --- a/test/yarp/snapshots/seattlerb/stabby_block_iter_call_no_target_with_arg.txt +++ b/test/yarp/snapshots/seattlerb/stabby_block_iter_call_no_target_with_arg.txt @@ -34,6 +34,7 @@ │ │ @ ArgumentsNode (location: (13...14)) │ │ └── arguments: (length: 1) │ │ └── @ IntegerNode (location: (13...14)) + │ │ └── flags: decimal │ ├── closing_loc: (14...15) = ")" │ ├── block: │ │ @ BlockNode (location: (16...22)) diff --git a/test/yarp/snapshots/seattlerb/stabby_block_kw.txt b/test/yarp/snapshots/seattlerb/stabby_block_kw.txt index 2b275732666181..8c52c17eff53e9 100644 --- a/test/yarp/snapshots/seattlerb/stabby_block_kw.txt +++ b/test/yarp/snapshots/seattlerb/stabby_block_kw.txt @@ -22,6 +22,7 @@ │ │ │ ├── name_loc: (4...6) = "k:" │ │ │ └── value: │ │ │ @ IntegerNode (location: (6...8)) + │ │ │ └── flags: decimal │ │ ├── keyword_rest: ∅ │ │ └── block: ∅ │ ├── locals: (length: 0) diff --git a/test/yarp/snapshots/seattlerb/str_newline_hash_line_number.txt b/test/yarp/snapshots/seattlerb/str_newline_hash_line_number.txt index 866fcf3b6a58cf..c58c5f11f5ad4b 100644 --- a/test/yarp/snapshots/seattlerb/str_newline_hash_line_number.txt +++ b/test/yarp/snapshots/seattlerb/str_newline_hash_line_number.txt @@ -9,3 +9,4 @@ │ ├── closing_loc: (10...11) = "\"" │ └── unescaped: "\n\n\n\n#" └── @ IntegerNode (location: (12...13)) + └── flags: decimal diff --git a/test/yarp/snapshots/seattlerb/str_pct_nested_nested.txt b/test/yarp/snapshots/seattlerb/str_pct_nested_nested.txt index 017c71f38e3662..366845245a8a4e 100644 --- a/test/yarp/snapshots/seattlerb/str_pct_nested_nested.txt +++ b/test/yarp/snapshots/seattlerb/str_pct_nested_nested.txt @@ -25,6 +25,7 @@ │ │ │ │ │ @ StatementsNode (location: (11...12)) │ │ │ │ │ └── body: (length: 1) │ │ │ │ │ └── @ IntegerNode (location: (11...12)) + │ │ │ │ │ └── flags: decimal │ │ │ │ └── closing_loc: (12...13) = "}" │ │ │ └── closing_loc: (13...14) = "\"" │ │ └── closing_loc: (15...16) = "}" diff --git a/test/yarp/snapshots/seattlerb/super_arg.txt b/test/yarp/snapshots/seattlerb/super_arg.txt index df6a2b23f610eb..7f95768cf1d0fa 100644 --- a/test/yarp/snapshots/seattlerb/super_arg.txt +++ b/test/yarp/snapshots/seattlerb/super_arg.txt @@ -10,5 +10,6 @@ │ @ ArgumentsNode (location: (6...8)) │ └── arguments: (length: 1) │ └── @ IntegerNode (location: (6...8)) + │ └── flags: decimal ├── rparen_loc: ∅ └── block: ∅ diff --git a/test/yarp/snapshots/seattlerb/thingy.txt b/test/yarp/snapshots/seattlerb/thingy.txt index 8ca331af0971df..b64953c7a931db 100644 --- a/test/yarp/snapshots/seattlerb/thingy.txt +++ b/test/yarp/snapshots/seattlerb/thingy.txt @@ -22,6 +22,7 @@ │ │ @ ArgumentsNode (location: (3...5)) │ │ └── arguments: (length: 1) │ │ └── @ IntegerNode (location: (3...5)) + │ │ └── flags: decimal │ ├── closing_loc: (5...6) = ")" │ ├── block: ∅ │ ├── flags: @@ -45,6 +46,7 @@ │ @ ArgumentsNode (location: (12...14)) │ └── arguments: (length: 1) │ └── @ IntegerNode (location: (12...14)) + │ └── flags: decimal ├── closing_loc: (14...15) = ")" ├── block: ∅ ├── flags: diff --git a/test/yarp/snapshots/seattlerb/utf8_bom.txt b/test/yarp/snapshots/seattlerb/utf8_bom.txt index 073913e1795f5c..ca8fc1cd8f07c2 100644 --- a/test/yarp/snapshots/seattlerb/utf8_bom.txt +++ b/test/yarp/snapshots/seattlerb/utf8_bom.txt @@ -12,6 +12,7 @@ │ @ ArgumentsNode (location: (28...29)) │ └── arguments: (length: 1) │ └── @ IntegerNode (location: (28...29)) + │ └── flags: decimal ├── closing_loc: ∅ ├── block: ∅ ├── flags: diff --git a/test/yarp/snapshots/seattlerb/words_interp.txt b/test/yarp/snapshots/seattlerb/words_interp.txt index 4113afea822056..3385794ad7c455 100644 --- a/test/yarp/snapshots/seattlerb/words_interp.txt +++ b/test/yarp/snapshots/seattlerb/words_interp.txt @@ -14,6 +14,7 @@ │ │ │ │ @ StatementsNode (location: (5...6)) │ │ │ │ └── body: (length: 1) │ │ │ │ └── @ IntegerNode (location: (5...6)) + │ │ │ │ └── flags: decimal │ │ │ └── closing_loc: (6...7) = "}" │ │ └── @ StringNode (location: (7...8)) │ │ ├── opening_loc: ∅ diff --git a/test/yarp/snapshots/seattlerb/yield_arg.txt b/test/yarp/snapshots/seattlerb/yield_arg.txt index f9cd7e6929d031..1e98a1aecf9ec8 100644 --- a/test/yarp/snapshots/seattlerb/yield_arg.txt +++ b/test/yarp/snapshots/seattlerb/yield_arg.txt @@ -10,4 +10,5 @@ │ @ ArgumentsNode (location: (6...8)) │ └── arguments: (length: 1) │ └── @ IntegerNode (location: (6...8)) + │ └── flags: decimal └── rparen_loc: ∅ diff --git a/test/yarp/snapshots/seattlerb/yield_call_assocs.txt b/test/yarp/snapshots/seattlerb/yield_call_assocs.txt index 67148ed6fa142c..23cad66ba09c36 100644 --- a/test/yarp/snapshots/seattlerb/yield_call_assocs.txt +++ b/test/yarp/snapshots/seattlerb/yield_call_assocs.txt @@ -10,6 +10,7 @@ │ │ @ ArgumentsNode (location: (6...16)) │ │ └── arguments: (length: 2) │ │ ├── @ IntegerNode (location: (6...7)) + │ │ │ └── flags: decimal │ │ └── @ KeywordHashNode (location: (9...16)) │ │ └── elements: (length: 1) │ │ └── @ AssocNode (location: (9...16)) @@ -21,6 +22,7 @@ │ │ │ └── unescaped: "z" │ │ ├── value: │ │ │ @ IntegerNode (location: (15...16)) + │ │ │ └── flags: decimal │ │ └── operator_loc: (12...14) = "=>" │ └── rparen_loc: ∅ ├── @ YieldNode (location: (18...43)) @@ -30,6 +32,7 @@ │ │ @ ArgumentsNode (location: (24...43)) │ │ └── arguments: (length: 2) │ │ ├── @ IntegerNode (location: (24...25)) + │ │ │ └── flags: decimal │ │ └── @ KeywordHashNode (location: (27...43)) │ │ └── elements: (length: 2) │ │ ├── @ AssocNode (location: (27...34)) @@ -41,6 +44,7 @@ │ │ │ │ └── unescaped: "z" │ │ │ ├── value: │ │ │ │ @ IntegerNode (location: (33...34)) + │ │ │ │ └── flags: decimal │ │ │ └── operator_loc: (30...32) = "=>" │ │ └── @ AssocNode (location: (36...43)) │ │ ├── key: @@ -51,6 +55,7 @@ │ │ │ └── unescaped: "w" │ │ ├── value: │ │ │ @ IntegerNode (location: (42...43)) + │ │ │ └── flags: decimal │ │ └── operator_loc: (39...41) = "=>" │ └── rparen_loc: ∅ ├── @ YieldNode (location: (45...58)) @@ -78,6 +83,7 @@ │ │ │ │ └── unescaped: "z" │ │ │ ├── value: │ │ │ │ @ IntegerNode (location: (57...58)) + │ │ │ │ └── flags: decimal │ │ │ └── operator_loc: (55...57) = "=>" │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ @@ -109,6 +115,7 @@ │ │ │ │ └── unescaped: "z" │ │ │ ├── value: │ │ │ │ @ IntegerNode (location: (70...71)) + │ │ │ │ └── flags: decimal │ │ │ └── operator_loc: ∅ │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ @@ -140,6 +147,7 @@ │ │ │ │ └── unescaped: "z" │ │ │ ├── value: │ │ │ │ @ IntegerNode (location: (83...84)) + │ │ │ │ └── flags: decimal │ │ │ └── operator_loc: ∅ │ │ ├── closing_loc: (84...85) = ")" │ │ ├── block: ∅ @@ -176,6 +184,7 @@ │ │ │ └── name: "z" │ │ ├── value: │ │ │ @ IntegerNode (location: (98...99)) + │ │ │ └── flags: decimal │ │ └── operator_loc: (96...98) = "=>" │ ├── closing_loc: (99...100) = ")" │ ├── block: ∅ diff --git a/test/yarp/snapshots/super.txt b/test/yarp/snapshots/super.txt index 499c62fbc76cde..5fd1147a6ea851 100644 --- a/test/yarp/snapshots/super.txt +++ b/test/yarp/snapshots/super.txt @@ -18,6 +18,7 @@ │ │ @ ArgumentsNode (location: (22...23)) │ │ └── arguments: (length: 1) │ │ └── @ IntegerNode (location: (22...23)) + │ │ └── flags: decimal │ ├── rparen_loc: (23...24) = ")" │ └── block: ∅ └── @ SuperNode (location: (26...40)) @@ -27,7 +28,10 @@ │ @ ArgumentsNode (location: (32...39)) │ └── arguments: (length: 3) │ ├── @ IntegerNode (location: (32...33)) + │ │ └── flags: decimal │ ├── @ IntegerNode (location: (35...36)) + │ │ └── flags: decimal │ └── @ IntegerNode (location: (38...39)) + │ └── flags: decimal ├── rparen_loc: (39...40) = ")" └── block: ∅ diff --git a/test/yarp/snapshots/symbols.txt b/test/yarp/snapshots/symbols.txt index e17f5a318aa9bc..fe5875c45b1ad7 100644 --- a/test/yarp/snapshots/symbols.txt +++ b/test/yarp/snapshots/symbols.txt @@ -42,6 +42,7 @@ │ │ │ @ StatementsNode (location: (26...27)) │ │ │ └── body: (length: 1) │ │ │ └── @ IntegerNode (location: (26...27)) + │ │ │ └── flags: decimal │ │ └── closing_loc: (27...28) = "}" │ └── closing_loc: (28...29) = "\"" ├── @ ArrayNode (location: (31...51)) @@ -121,13 +122,16 @@ ├── @ ArrayNode (location: (97...113)) │ ├── elements: (length: 4) │ │ ├── @ IntegerNode (location: (98...99)) + │ │ │ └── flags: decimal │ │ ├── @ FloatNode (location: (101...104)) │ │ ├── @ RationalNode (location: (106...108)) │ │ │ └── numeric: │ │ │ @ IntegerNode (location: (106...107)) + │ │ │ └── flags: decimal │ │ └── @ ImaginaryNode (location: (110...112)) │ │ └── numeric: │ │ @ IntegerNode (location: (110...111)) + │ │ └── flags: decimal │ ├── opening_loc: (97...98) = "[" │ └── closing_loc: (112...113) = "]" ├── @ SymbolNode (location: (115...117)) @@ -204,6 +208,7 @@ │ │ │ │ │ @ StatementsNode (location: (168...169)) │ │ │ │ │ └── body: (length: 1) │ │ │ │ │ └── @ IntegerNode (location: (168...169)) + │ │ │ │ │ └── flags: decimal │ │ │ │ └── closing_loc: (169...170) = "}" │ │ │ └── closing_loc: ∅ │ │ ├── @ InterpolatedSymbolNode (location: (171...176)) @@ -215,6 +220,7 @@ │ │ │ │ │ │ @ StatementsNode (location: (173...174)) │ │ │ │ │ │ └── body: (length: 1) │ │ │ │ │ │ └── @ IntegerNode (location: (173...174)) + │ │ │ │ │ │ └── flags: decimal │ │ │ │ │ └── closing_loc: (174...175) = "}" │ │ │ │ └── @ StringNode (location: (175...176)) │ │ │ │ ├── opening_loc: ∅ @@ -236,6 +242,7 @@ │ │ │ │ │ @ StatementsNode (location: (180...181)) │ │ │ │ │ └── body: (length: 1) │ │ │ │ │ └── @ IntegerNode (location: (180...181)) + │ │ │ │ │ └── flags: decimal │ │ │ │ └── closing_loc: (181...182) = "}" │ │ │ └── @ StringNode (location: (182...183)) │ │ │ ├── opening_loc: ∅ diff --git a/test/yarp/snapshots/ternary_operator.txt b/test/yarp/snapshots/ternary_operator.txt index 4afcedf27146fb..bc7d8556e10f1f 100644 --- a/test/yarp/snapshots/ternary_operator.txt +++ b/test/yarp/snapshots/ternary_operator.txt @@ -271,6 +271,7 @@ │ ├── name_loc: (124...126) = "_a" │ ├── value: │ │ @ IntegerNode (location: (128...129)) + │ │ └── flags: decimal │ └── operator_loc: (127...128) = "=" ├── consequent: │ @ ElseNode (location: (129...131)) @@ -279,5 +280,6 @@ │ │ @ StatementsNode (location: (130...131)) │ │ └── body: (length: 1) │ │ └── @ IntegerNode (location: (130...131)) + │ │ └── flags: decimal │ └── end_keyword_loc: ∅ └── end_keyword_loc: ∅ diff --git a/test/yarp/snapshots/tilde_heredocs.txt b/test/yarp/snapshots/tilde_heredocs.txt index fb814f301958ce..417102ed380d05 100644 --- a/test/yarp/snapshots/tilde_heredocs.txt +++ b/test/yarp/snapshots/tilde_heredocs.txt @@ -30,6 +30,7 @@ │ │ │ │ @ StatementsNode (location: (50...51)) │ │ │ │ └── body: (length: 1) │ │ │ │ └── @ IntegerNode (location: (50...51)) + │ │ │ │ └── flags: decimal │ │ │ └── closing_loc: (51...52) = "}" │ │ └── @ StringNode (location: (52...55)) │ │ ├── opening_loc: ∅ @@ -51,6 +52,7 @@ │ │ │ │ @ StatementsNode (location: (73...74)) │ │ │ │ └── body: (length: 1) │ │ │ │ └── @ IntegerNode (location: (73...74)) + │ │ │ │ └── flags: decimal │ │ │ └── closing_loc: (74...75) = "}" │ │ └── @ StringNode (location: (75...76)) │ │ ├── opening_loc: ∅ @@ -72,6 +74,7 @@ │ │ │ │ @ StatementsNode (location: (95...96)) │ │ │ │ └── body: (length: 1) │ │ │ │ └── @ IntegerNode (location: (95...96)) + │ │ │ │ └── flags: decimal │ │ │ └── closing_loc: (96...97) = "}" │ │ └── @ StringNode (location: (97...98)) │ │ ├── opening_loc: ∅ @@ -93,6 +96,7 @@ │ │ │ │ @ StatementsNode (location: (118...119)) │ │ │ │ └── body: (length: 1) │ │ │ │ └── @ IntegerNode (location: (118...119)) + │ │ │ │ └── flags: decimal │ │ │ └── closing_loc: (119...120) = "}" │ │ └── @ StringNode (location: (120...121)) │ │ ├── opening_loc: ∅ @@ -204,6 +208,7 @@ │ │ │ │ @ StatementsNode (location: (353...354)) │ │ │ │ └── body: (length: 1) │ │ │ │ └── @ IntegerNode (location: (353...354)) + │ │ │ │ └── flags: decimal │ │ │ └── closing_loc: (354...355) = "}" │ │ └── @ StringNode (location: (355...357)) │ │ ├── opening_loc: ∅ @@ -220,6 +225,7 @@ │ │ │ @ StatementsNode (location: (377...378)) │ │ │ └── body: (length: 1) │ │ │ └── @ IntegerNode (location: (377...378)) + │ │ │ └── flags: decimal │ │ └── closing_loc: (378...379) = "}" │ └── @ StringNode (location: (379...383)) │ ├── opening_loc: ∅ diff --git a/test/yarp/snapshots/undef.txt b/test/yarp/snapshots/undef.txt index 4ebc7b5383b9b0..af29530518832f 100644 --- a/test/yarp/snapshots/undef.txt +++ b/test/yarp/snapshots/undef.txt @@ -90,6 +90,7 @@ │ │ │ │ @ StatementsNode (location: (97...98)) │ │ │ │ └── body: (length: 1) │ │ │ │ └── @ IntegerNode (location: (97...98)) + │ │ │ │ └── flags: decimal │ │ │ └── closing_loc: (98...99) = "}" │ │ └── closing_loc: (99...100) = "\"" │ └── keyword_loc: (84...89) = "undef" diff --git a/test/yarp/snapshots/unless.txt b/test/yarp/snapshots/unless.txt index badf1fe82e5a18..68e4ce3401d788 100644 --- a/test/yarp/snapshots/unless.txt +++ b/test/yarp/snapshots/unless.txt @@ -11,6 +11,7 @@ │ │ @ StatementsNode (location: (13...14)) │ │ └── body: (length: 1) │ │ └── @ IntegerNode (location: (13...14)) + │ │ └── flags: decimal │ ├── consequent: ∅ │ └── end_keyword_loc: (16...19) = "end" ├── @ UnlessNode (location: (21...45)) @@ -21,6 +22,7 @@ │ │ @ StatementsNode (location: (33...34)) │ │ └── body: (length: 1) │ │ └── @ IntegerNode (location: (33...34)) + │ │ └── flags: decimal │ ├── consequent: │ │ @ ElseNode (location: (35...45)) │ │ ├── else_keyword_loc: (35...39) = "else" @@ -28,6 +30,7 @@ │ │ │ @ StatementsNode (location: (40...41)) │ │ │ └── body: (length: 1) │ │ │ └── @ IntegerNode (location: (40...41)) + │ │ │ └── flags: decimal │ │ └── end_keyword_loc: (42...45) = "end" │ └── end_keyword_loc: (42...45) = "end" ├── @ UnlessNode (location: (47...60)) @@ -38,6 +41,7 @@ │ │ @ StatementsNode (location: (47...48)) │ │ └── body: (length: 1) │ │ └── @ IntegerNode (location: (47...48)) + │ │ └── flags: decimal │ ├── consequent: ∅ │ └── end_keyword_loc: ∅ ├── @ UnlessNode (location: (62...79)) diff --git a/test/yarp/snapshots/unparser/corpus/literal/assignment.txt b/test/yarp/snapshots/unparser/corpus/literal/assignment.txt index bd1a2a82563125..13b772a6324fea 100644 --- a/test/yarp/snapshots/unparser/corpus/literal/assignment.txt +++ b/test/yarp/snapshots/unparser/corpus/literal/assignment.txt @@ -8,6 +8,7 @@ │ ├── name_loc: (0...2) = "$a" │ ├── value: │ │ @ IntegerNode (location: (5...6)) + │ │ └── flags: decimal │ └── operator_loc: (3...4) = "=" ├── @ MultiWriteNode (location: (7...24)) │ ├── targets: (length: 2) @@ -22,7 +23,9 @@ │ @ ArrayNode (location: (18...24)) │ ├── elements: (length: 2) │ │ ├── @ IntegerNode (location: (19...20)) + │ │ │ └── flags: decimal │ │ └── @ IntegerNode (location: (22...23)) + │ │ └── flags: decimal │ ├── opening_loc: (18...19) = "[" │ └── closing_loc: (23...24) = "]" ├── @ MultiWriteNode (location: (25...38)) @@ -45,6 +48,7 @@ │ ├── operator_loc: (35...36) = "=" │ └── value: │ @ IntegerNode (location: (37...38)) + │ └── flags: decimal ├── @ MultiWriteNode (location: (39...48)) │ ├── targets: (length: 1) │ │ └── @ SplatNode (location: (40...42)) @@ -76,7 +80,9 @@ │ @ ArrayNode (location: (58...64)) │ ├── elements: (length: 2) │ │ ├── @ IntegerNode (location: (59...60)) + │ │ │ └── flags: decimal │ │ └── @ IntegerNode (location: (62...63)) + │ │ └── flags: decimal │ ├── opening_loc: (58...59) = "[" │ └── closing_loc: (63...64) = "]" ├── @ MultiWriteNode (location: (65...84)) @@ -92,7 +98,9 @@ │ @ ArrayNode (location: (78...84)) │ ├── elements: (length: 2) │ │ ├── @ IntegerNode (location: (79...80)) + │ │ │ └── flags: decimal │ │ └── @ IntegerNode (location: (82...83)) + │ │ └── flags: decimal │ ├── opening_loc: (78...79) = "[" │ └── closing_loc: (83...84) = "]" ├── @ MultiWriteNode (location: (85...102)) @@ -108,7 +116,9 @@ │ @ ArrayNode (location: (96...102)) │ ├── elements: (length: 2) │ │ ├── @ IntegerNode (location: (97...98)) + │ │ │ └── flags: decimal │ │ └── @ IntegerNode (location: (100...101)) + │ │ └── flags: decimal │ ├── opening_loc: (96...97) = "[" │ └── closing_loc: (101...102) = "]" ├── @ MultiWriteNode (location: (103...128)) @@ -133,10 +143,13 @@ │ @ ArrayNode (location: (117...128)) │ ├── elements: (length: 2) │ │ ├── @ IntegerNode (location: (118...119)) + │ │ │ └── flags: decimal │ │ └── @ ArrayNode (location: (121...127)) │ │ ├── elements: (length: 2) │ │ │ ├── @ IntegerNode (location: (122...123)) + │ │ │ │ └── flags: decimal │ │ │ └── @ IntegerNode (location: (125...126)) + │ │ │ └── flags: decimal │ │ ├── opening_loc: (121...122) = "[" │ │ └── closing_loc: (126...127) = "]" │ ├── opening_loc: (117...118) = "[" @@ -156,7 +169,9 @@ │ @ ArrayNode (location: (138...144)) │ ├── elements: (length: 2) │ │ ├── @ IntegerNode (location: (139...140)) + │ │ │ └── flags: decimal │ │ └── @ IntegerNode (location: (142...143)) + │ │ └── flags: decimal │ ├── opening_loc: (138...139) = "[" │ └── closing_loc: (143...144) = "]" ├── @ MultiWriteNode (location: (145...163)) @@ -177,7 +192,9 @@ │ @ ArrayNode (location: (157...163)) │ ├── elements: (length: 2) │ │ ├── @ IntegerNode (location: (158...159)) + │ │ │ └── flags: decimal │ │ └── @ IntegerNode (location: (161...162)) + │ │ └── flags: decimal │ ├── opening_loc: (157...158) = "[" │ └── closing_loc: (162...163) = "]" ├── @ MultiWriteNode (location: (164...179)) @@ -195,7 +212,9 @@ │ @ ArrayNode (location: (173...179)) │ ├── elements: (length: 2) │ │ ├── @ IntegerNode (location: (174...175)) + │ │ │ └── flags: decimal │ │ └── @ IntegerNode (location: (177...178)) + │ │ └── flags: decimal │ ├── opening_loc: (173...174) = "[" │ └── closing_loc: (178...179) = "]" ├── @ MultiWriteNode (location: (180...192)) @@ -263,7 +282,9 @@ │ @ ArrayNode (location: (221...227)) │ ├── elements: (length: 2) │ │ ├── @ IntegerNode (location: (222...223)) + │ │ │ └── flags: decimal │ │ └── @ IntegerNode (location: (225...226)) + │ │ └── flags: decimal │ ├── opening_loc: (221...222) = "[" │ └── closing_loc: (226...227) = "]" ├── @ MultiWriteNode (location: (228...252)) @@ -301,6 +322,7 @@ │ │ │ @ ArgumentsNode (location: (240...241)) │ │ │ └── arguments: (length: 1) │ │ │ └── @ IntegerNode (location: (240...241)) + │ │ │ └── flags: decimal │ │ ├── closing_loc: (241...242) = "]" │ │ ├── block: ∅ │ │ ├── flags: @@ -312,7 +334,9 @@ │ @ ArrayNode (location: (246...252)) │ ├── elements: (length: 2) │ │ ├── @ IntegerNode (location: (247...248)) + │ │ │ └── flags: decimal │ │ └── @ IntegerNode (location: (250...251)) + │ │ └── flags: decimal │ ├── opening_loc: (246...247) = "[" │ └── closing_loc: (251...252) = "]" ├── @ MultiWriteNode (location: (253...274)) @@ -329,6 +353,7 @@ │ │ │ │ @ ArgumentsNode (location: (256...257)) │ │ │ │ └── arguments: (length: 1) │ │ │ │ └── @ IntegerNode (location: (256...257)) + │ │ │ │ └── flags: decimal │ │ │ ├── closing_loc: (257...258) = "]" │ │ │ ├── block: ∅ │ │ │ ├── flags: @@ -345,6 +370,7 @@ │ │ │ @ ArgumentsNode (location: (262...263)) │ │ │ └── arguments: (length: 1) │ │ │ └── @ IntegerNode (location: (262...263)) + │ │ │ └── flags: decimal │ │ ├── closing_loc: (263...264) = "]" │ │ ├── block: ∅ │ │ ├── flags: @@ -356,7 +382,9 @@ │ @ ArrayNode (location: (268...274)) │ ├── elements: (length: 2) │ │ ├── @ IntegerNode (location: (269...270)) + │ │ │ └── flags: decimal │ │ └── @ IntegerNode (location: (272...273)) + │ │ └── flags: decimal │ ├── opening_loc: (268...269) = "[" │ └── closing_loc: (273...274) = "]" ├── @ MultiWriteNode (location: (275...287)) @@ -382,6 +410,7 @@ │ ├── operator_loc: (284...285) = "=" │ └── value: │ @ IntegerNode (location: (286...287)) + │ └── flags: decimal ├── @ ConstantPathWriteNode (location: (288...301)) │ ├── target: │ │ @ ConstantPathNode (location: (288...293)) @@ -403,18 +432,21 @@ │ ├── name_loc: (302...305) = "@@a" │ ├── value: │ │ @ IntegerNode (location: (308...309)) + │ │ └── flags: decimal │ └── operator_loc: (306...307) = "=" ├── @ InstanceVariableWriteNode (location: (310...316)) │ ├── name: :@a │ ├── name_loc: (310...312) = "@a" │ ├── value: │ │ @ IntegerNode (location: (315...316)) + │ │ └── flags: decimal │ └── operator_loc: (313...314) = "=" ├── @ ConstantWriteNode (location: (317...326)) │ ├── name: :CONST │ ├── name_loc: (317...322) = "CONST" │ ├── value: │ │ @ IntegerNode (location: (325...326)) + │ │ └── flags: decimal │ └── operator_loc: (323...324) = "=" ├── @ ConstantPathWriteNode (location: (327...350)) │ ├── target: @@ -435,6 +467,7 @@ │ ├── operator_loc: (347...348) = "=" │ └── value: │ @ IntegerNode (location: (349...350)) + │ └── flags: decimal ├── @ LocalVariableWriteNode (location: (351...367)) │ ├── name: :a │ ├── depth: 0 @@ -457,6 +490,7 @@ │ │ │ ├── operator_loc: (363...364) = "=" │ │ │ └── value: │ │ │ @ IntegerNode (location: (365...366)) + │ │ │ └── flags: decimal │ │ ├── opening_loc: (355...356) = "(" │ │ └── closing_loc: (366...367) = ")" │ └── operator_loc: (353...354) = "=" @@ -466,6 +500,7 @@ │ ├── name_loc: (368...369) = "a" │ ├── value: │ │ @ IntegerNode (location: (372...373)) + │ │ └── flags: decimal │ └── operator_loc: (370...371) = "=" ├── @ LocalVariableWriteNode (location: (374...385)) │ ├── name: :foo @@ -508,7 +543,9 @@ │ │ @ ArgumentsNode (location: (404...408)) │ │ └── arguments: (length: 2) │ │ ├── @ IntegerNode (location: (404...405)) + │ │ │ └── flags: decimal │ │ └── @ IntegerNode (location: (407...408)) + │ │ └── flags: decimal │ ├── closing_loc: (408...409) = ")" │ ├── block: ∅ │ ├── flags: @@ -581,8 +618,10 @@ │ │ ├── @ RangeNode (location: (446...450)) │ │ │ ├── left: │ │ │ │ @ IntegerNode (location: (446...447)) + │ │ │ │ └── flags: decimal │ │ │ ├── right: │ │ │ │ @ IntegerNode (location: (449...450)) + │ │ │ │ └── flags: decimal │ │ │ ├── operator_loc: (447...449) = ".." │ │ │ └── flags: │ │ └── @ CallNode (location: (454...459)) @@ -611,6 +650,7 @@ │ │ @ ArgumentsNode (location: (468...469)) │ │ └── arguments: (length: 1) │ │ └── @ IntegerNode (location: (468...469)) + │ │ └── flags: decimal │ ├── closing_loc: (464...465) = "]" │ ├── block: ∅ │ ├── flags: diff --git a/test/yarp/snapshots/unparser/corpus/literal/block.txt b/test/yarp/snapshots/unparser/corpus/literal/block.txt index 0cf0db68b9235b..bcaa21860a19e2 100644 --- a/test/yarp/snapshots/unparser/corpus/literal/block.txt +++ b/test/yarp/snapshots/unparser/corpus/literal/block.txt @@ -164,6 +164,7 @@ │ │ @ ArgumentsNode (location: (68...69)) │ │ └── arguments: (length: 1) │ │ └── @ IntegerNode (location: (68...69)) + │ │ └── flags: decimal │ ├── closing_loc: (69...70) = ")" │ ├── block: │ │ @ BlockNode (location: (71...80)) diff --git a/test/yarp/snapshots/unparser/corpus/literal/case.txt b/test/yarp/snapshots/unparser/corpus/literal/case.txt index c3ea29cc8b1d0f..ddf565b732d880 100644 --- a/test/yarp/snapshots/unparser/corpus/literal/case.txt +++ b/test/yarp/snapshots/unparser/corpus/literal/case.txt @@ -418,6 +418,7 @@ │ │ │ @ ArgumentsNode (location: (279...280)) │ │ │ └── arguments: (length: 1) │ │ │ └── @ IntegerNode (location: (279...280)) + │ │ │ └── flags: decimal │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: diff --git a/test/yarp/snapshots/unparser/corpus/literal/control.txt b/test/yarp/snapshots/unparser/corpus/literal/control.txt index 90907ee44ea2ef..c2d7af61fd46d6 100644 --- a/test/yarp/snapshots/unparser/corpus/literal/control.txt +++ b/test/yarp/snapshots/unparser/corpus/literal/control.txt @@ -20,13 +20,16 @@ │ @ ArgumentsNode (location: (36...37)) │ └── arguments: (length: 1) │ └── @ IntegerNode (location: (36...37)) + │ └── flags: decimal ├── @ ReturnNode (location: (38...49)) │ ├── keyword_loc: (38...44) = "return" │ └── arguments: │ @ ArgumentsNode (location: (45...49)) │ └── arguments: (length: 2) │ ├── @ IntegerNode (location: (45...46)) + │ │ └── flags: decimal │ └── @ IntegerNode (location: (48...49)) + │ └── flags: decimal ├── @ ReturnNode (location: (50...69)) │ ├── keyword_loc: (50...56) = "return" │ └── arguments: @@ -40,6 +43,7 @@ │ │ @ StatementsNode (location: (64...65)) │ │ └── body: (length: 1) │ │ └── @ IntegerNode (location: (64...65)) + │ │ └── flags: decimal │ ├── consequent: │ │ @ ElseNode (location: (66...69)) │ │ ├── else_keyword_loc: (66...67) = ":" @@ -47,6 +51,7 @@ │ │ │ @ StatementsNode (location: (68...69)) │ │ │ └── body: (length: 1) │ │ │ └── @ IntegerNode (location: (68...69)) + │ │ │ └── flags: decimal │ │ └── end_keyword_loc: ∅ │ └── end_keyword_loc: ∅ ├── @ BreakNode (location: (70...88)) @@ -61,6 +66,7 @@ │ │ │ @ StatementsNode (location: (83...84)) │ │ │ └── body: (length: 1) │ │ │ └── @ IntegerNode (location: (83...84)) + │ │ │ └── flags: decimal │ │ ├── consequent: │ │ │ @ ElseNode (location: (85...88)) │ │ │ ├── else_keyword_loc: (85...86) = ":" @@ -68,6 +74,7 @@ │ │ │ │ @ StatementsNode (location: (87...88)) │ │ │ │ └── body: (length: 1) │ │ │ │ └── @ IntegerNode (location: (87...88)) + │ │ │ │ └── flags: decimal │ │ │ └── end_keyword_loc: ∅ │ │ └── end_keyword_loc: ∅ │ └── keyword_loc: (70...75) = "break" @@ -83,6 +90,7 @@ │ │ │ @ StatementsNode (location: (101...102)) │ │ │ └── body: (length: 1) │ │ │ └── @ IntegerNode (location: (101...102)) + │ │ │ └── flags: decimal │ │ ├── consequent: │ │ │ @ ElseNode (location: (103...106)) │ │ │ ├── else_keyword_loc: (103...104) = ":" @@ -90,6 +98,7 @@ │ │ │ │ @ StatementsNode (location: (105...106)) │ │ │ │ └── body: (length: 1) │ │ │ │ └── @ IntegerNode (location: (105...106)) + │ │ │ │ └── flags: decimal │ │ │ └── end_keyword_loc: ∅ │ │ └── end_keyword_loc: ∅ │ └── keyword_loc: (89...93) = "next" @@ -107,6 +116,7 @@ │ @ StatementsNode (location: (130...131)) │ └── body: (length: 1) │ └── @ IntegerNode (location: (130...131)) + │ └── flags: decimal ├── consequent: │ @ ElseNode (location: (132...144)) │ ├── else_keyword_loc: (132...136) = "else" @@ -114,5 +124,6 @@ │ │ @ StatementsNode (location: (139...140)) │ │ └── body: (length: 1) │ │ └── @ IntegerNode (location: (139...140)) + │ │ └── flags: decimal │ └── end_keyword_loc: (141...144) = "end" └── end_keyword_loc: (141...144) = "end" diff --git a/test/yarp/snapshots/unparser/corpus/literal/def.txt b/test/yarp/snapshots/unparser/corpus/literal/def.txt index 458a087408930b..c71e4ea7dac64f 100644 --- a/test/yarp/snapshots/unparser/corpus/literal/def.txt +++ b/test/yarp/snapshots/unparser/corpus/literal/def.txt @@ -634,6 +634,7 @@ │ │ │ ├── name_loc: (459...463) = "bar:" │ │ │ └── value: │ │ │ @ IntegerNode (location: (464...465)) + │ │ │ └── flags: decimal │ │ ├── keyword_rest: ∅ │ │ └── block: ∅ │ ├── body: ∅ diff --git a/test/yarp/snapshots/unparser/corpus/literal/defined.txt b/test/yarp/snapshots/unparser/corpus/literal/defined.txt index 5e36cb99558cb2..1c802f4888c4d3 100644 --- a/test/yarp/snapshots/unparser/corpus/literal/defined.txt +++ b/test/yarp/snapshots/unparser/corpus/literal/defined.txt @@ -39,7 +39,9 @@ │ │ @ ArrayNode (location: (48...54)) │ │ ├── elements: (length: 2) │ │ │ ├── @ IntegerNode (location: (49...50)) + │ │ │ │ └── flags: decimal │ │ │ └── @ IntegerNode (location: (52...53)) + │ │ │ └── flags: decimal │ │ ├── opening_loc: (48...49) = "[" │ │ └── closing_loc: (53...54) = "]" │ ├── opening_loc: (38...39) = "(" diff --git a/test/yarp/snapshots/unparser/corpus/literal/defs.txt b/test/yarp/snapshots/unparser/corpus/literal/defs.txt index 52da4a805694ed..b254c2ecd6deab 100644 --- a/test/yarp/snapshots/unparser/corpus/literal/defs.txt +++ b/test/yarp/snapshots/unparser/corpus/literal/defs.txt @@ -181,6 +181,7 @@ │ │ │ │ @ ArgumentsNode (location: (139...140)) │ │ │ │ └── arguments: (length: 1) │ │ │ │ └── @ IntegerNode (location: (139...140)) + │ │ │ │ └── flags: decimal │ │ │ ├── closing_loc: (140...141) = ")" │ │ │ ├── block: ∅ │ │ │ ├── flags: diff --git a/test/yarp/snapshots/unparser/corpus/literal/dstr.txt b/test/yarp/snapshots/unparser/corpus/literal/dstr.txt index 695ad4786c77e8..c3fc073e39dfe3 100644 --- a/test/yarp/snapshots/unparser/corpus/literal/dstr.txt +++ b/test/yarp/snapshots/unparser/corpus/literal/dstr.txt @@ -198,6 +198,7 @@ │ │ │ │ │ @ StatementsNode (location: (208...210)) │ │ │ │ │ └── body: (length: 1) │ │ │ │ │ └── @ IntegerNode (location: (208...210)) + │ │ │ │ │ └── flags: decimal │ │ │ │ └── closing_loc: (210...211) = "}" │ │ │ └── @ StringNode (location: (211...212)) │ │ │ ├── opening_loc: ∅ diff --git a/test/yarp/snapshots/unparser/corpus/literal/flipflop.txt b/test/yarp/snapshots/unparser/corpus/literal/flipflop.txt index 4d702a7fccba64..3bca1975f8f504 100644 --- a/test/yarp/snapshots/unparser/corpus/literal/flipflop.txt +++ b/test/yarp/snapshots/unparser/corpus/literal/flipflop.txt @@ -35,6 +35,7 @@ │ │ │ │ │ │ @ ArgumentsNode (location: (10...11)) │ │ │ │ │ │ └── arguments: (length: 1) │ │ │ │ │ │ └── @ IntegerNode (location: (10...11)) + │ │ │ │ │ │ └── flags: decimal │ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ │ ├── block: ∅ │ │ │ │ │ ├── flags: @@ -65,6 +66,7 @@ │ │ │ │ │ │ @ ArgumentsNode (location: (20...21)) │ │ │ │ │ │ └── arguments: (length: 1) │ │ │ │ │ │ └── @ IntegerNode (location: (20...21)) + │ │ │ │ │ │ └── flags: decimal │ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ │ ├── block: ∅ │ │ │ │ │ ├── flags: @@ -122,6 +124,7 @@ │ │ │ │ │ @ ArgumentsNode (location: (44...45)) │ │ │ │ │ └── arguments: (length: 1) │ │ │ │ │ └── @ IntegerNode (location: (44...45)) + │ │ │ │ │ └── flags: decimal │ │ │ │ ├── closing_loc: ∅ │ │ │ │ ├── block: ∅ │ │ │ │ ├── flags: @@ -152,6 +155,7 @@ │ │ │ │ │ @ ArgumentsNode (location: (55...56)) │ │ │ │ │ └── arguments: (length: 1) │ │ │ │ │ └── @ IntegerNode (location: (55...56)) + │ │ │ │ │ └── flags: decimal │ │ │ │ ├── closing_loc: ∅ │ │ │ │ ├── block: ∅ │ │ │ │ ├── flags: diff --git a/test/yarp/snapshots/unparser/corpus/literal/if.txt b/test/yarp/snapshots/unparser/corpus/literal/if.txt index 4a439644b066c6..5c8e65e0866d86 100644 --- a/test/yarp/snapshots/unparser/corpus/literal/if.txt +++ b/test/yarp/snapshots/unparser/corpus/literal/if.txt @@ -31,20 +31,24 @@ │ ├── if_keyword_loc: (19...21) = "if" │ ├── predicate: │ │ @ IntegerNode (location: (22...23)) + │ │ └── flags: decimal │ ├── statements: │ │ @ StatementsNode (location: (26...27)) │ │ └── body: (length: 1) │ │ └── @ IntegerNode (location: (26...27)) + │ │ └── flags: decimal │ ├── consequent: ∅ │ └── end_keyword_loc: (28...31) = "end" ├── @ IfNode (location: (32...53)) │ ├── if_keyword_loc: (32...34) = "if" │ ├── predicate: │ │ @ IntegerNode (location: (35...36)) + │ │ └── flags: decimal │ ├── statements: │ │ @ StatementsNode (location: (39...40)) │ │ └── body: (length: 1) │ │ └── @ IntegerNode (location: (39...40)) + │ │ └── flags: decimal │ ├── consequent: │ │ @ ElseNode (location: (41...53)) │ │ ├── else_keyword_loc: (41...45) = "else" @@ -52,12 +56,14 @@ │ │ │ @ StatementsNode (location: (48...49)) │ │ │ └── body: (length: 1) │ │ │ └── @ IntegerNode (location: (48...49)) + │ │ │ └── flags: decimal │ │ └── end_keyword_loc: (50...53) = "end" │ └── end_keyword_loc: (50...53) = "end" ├── @ UnlessNode (location: (54...72)) │ ├── keyword_loc: (54...60) = "unless" │ ├── predicate: │ │ @ IntegerNode (location: (61...62)) + │ │ └── flags: decimal │ ├── statements: │ │ @ StatementsNode (location: (65...68)) │ │ └── body: (length: 1) @@ -68,10 +74,12 @@ │ ├── keyword_loc: (73...79) = "unless" │ ├── predicate: │ │ @ IntegerNode (location: (80...81)) + │ │ └── flags: decimal │ ├── statements: │ │ @ StatementsNode (location: (84...85)) │ │ └── body: (length: 1) │ │ └── @ IntegerNode (location: (84...85)) + │ │ └── flags: decimal │ ├── consequent: ∅ │ └── end_keyword_loc: (86...89) = "end" ├── @ IfNode (location: (90...100)) diff --git a/test/yarp/snapshots/unparser/corpus/literal/literal.txt b/test/yarp/snapshots/unparser/corpus/literal/literal.txt index a3dc82b09114b0..00ff6bcb0e1d82 100644 --- a/test/yarp/snapshots/unparser/corpus/literal/literal.txt +++ b/test/yarp/snapshots/unparser/corpus/literal/literal.txt @@ -266,9 +266,11 @@ │ │ └── name: :$a │ └── closing_loc: (219...220) = "\"" ├── @ IntegerNode (location: (221...222)) + │ └── flags: decimal ├── @ CallNode (location: (223...226)) │ ├── receiver: │ │ @ IntegerNode (location: (224...226)) + │ │ └── flags: decimal │ ├── call_operator_loc: ∅ │ ├── message_loc: (223...224) = "+" │ ├── opening_loc: ∅ @@ -278,10 +280,13 @@ │ ├── flags: │ └── name: "+@" ├── @ IntegerNode (location: (227...228)) + │ └── flags: decimal ├── @ IntegerNode (location: (229...230)) + │ └── flags: decimal ├── @ RationalNode (location: (231...233)) │ └── numeric: │ @ IntegerNode (location: (231...232)) + │ └── flags: decimal ├── @ RationalNode (location: (234...238)) │ └── numeric: │ @ FloatNode (location: (234...237)) @@ -291,9 +296,11 @@ ├── @ ImaginaryNode (location: (244...246)) │ └── numeric: │ @ IntegerNode (location: (244...245)) + │ └── flags: decimal ├── @ ImaginaryNode (location: (247...250)) │ └── numeric: │ @ IntegerNode (location: (247...249)) + │ └── flags: decimal ├── @ ImaginaryNode (location: (251...255)) │ └── numeric: │ @ FloatNode (location: (251...254)) @@ -303,11 +310,13 @@ ├── @ ImaginaryNode (location: (262...294)) │ └── numeric: │ @ IntegerNode (location: (262...293)) + │ └── flags: decimal ├── @ ImaginaryNode (location: (295...298)) │ └── numeric: │ @ RationalNode (location: (295...297)) │ └── numeric: │ @ IntegerNode (location: (295...296)) + │ └── flags: decimal ├── @ StringConcatNode (location: (299...310)) │ ├── left: │ │ @ StringNode (location: (299...304)) @@ -360,6 +369,7 @@ │ │ │ │ @ StatementsNode (location: (333...334)) │ │ │ │ └── body: (length: 1) │ │ │ │ └── @ IntegerNode (location: (333...334)) + │ │ │ │ └── flags: decimal │ │ │ └── closing_loc: (334...335) = "}" │ │ └── @ StringNode (location: (335...338)) │ │ ├── opening_loc: ∅ @@ -650,11 +660,13 @@ │ │ └── closing_loc: (620...621) = ")" │ ├── right: │ │ @ IntegerNode (location: (623...624)) + │ │ └── flags: decimal │ ├── operator_loc: (621...623) = ".." │ └── flags: ├── @ RangeNode (location: (625...639)) │ ├── left: │ │ @ IntegerNode (location: (625...626)) + │ │ └── flags: decimal │ ├── right: │ │ @ ParenthesesNode (location: (628...639)) │ │ ├── body: @@ -702,6 +714,7 @@ │ │ └── closing_loc: (650...651) = ")" │ ├── right: │ │ @ IntegerNode (location: (653...656)) + │ │ └── flags: decimal │ ├── operator_loc: (651...653) = ".." │ └── flags: ├── @ FloatNode (location: (657...661)) @@ -709,12 +722,15 @@ ├── @ ArrayNode (location: (666...672)) │ ├── elements: (length: 2) │ │ ├── @ IntegerNode (location: (667...668)) + │ │ │ └── flags: decimal │ │ └── @ IntegerNode (location: (670...671)) + │ │ └── flags: decimal │ ├── opening_loc: (666...667) = "[" │ └── closing_loc: (671...672) = "]" ├── @ ArrayNode (location: (673...684)) │ ├── elements: (length: 3) │ │ ├── @ IntegerNode (location: (674...675)) + │ │ │ └── flags: decimal │ │ ├── @ ParenthesesNode (location: (677...679)) │ │ │ ├── body: ∅ │ │ │ ├── opening_loc: (677...678) = "(" @@ -734,6 +750,7 @@ ├── @ ArrayNode (location: (685...688)) │ ├── elements: (length: 1) │ │ └── @ IntegerNode (location: (686...687)) + │ │ └── flags: decimal │ ├── opening_loc: (685...686) = "[" │ └── closing_loc: (687...688) = "]" ├── @ ArrayNode (location: (689...691)) @@ -743,6 +760,7 @@ ├── @ ArrayNode (location: (692...702)) │ ├── elements: (length: 2) │ │ ├── @ IntegerNode (location: (693...694)) + │ │ │ └── flags: decimal │ │ └── @ SplatNode (location: (696...701)) │ │ ├── operator_loc: (696...697) = "*" │ │ └── expression: @@ -758,6 +776,7 @@ │ │ │ @ InstanceVariableReadNode (location: (705...709)) │ │ │ └── name: :@foo │ │ └── @ IntegerNode (location: (711...712)) + │ │ └── flags: decimal │ ├── opening_loc: (703...704) = "[" │ └── closing_loc: (712...713) = "]" ├── @ ArrayNode (location: (714...728)) @@ -800,8 +819,10 @@ │ │ └── @ AssocNode (location: (747...753)) │ │ ├── key: │ │ │ @ IntegerNode (location: (747...748)) + │ │ │ └── flags: decimal │ │ ├── value: │ │ │ @ IntegerNode (location: (752...753)) + │ │ │ └── flags: decimal │ │ └── operator_loc: (749...751) = "=>" │ └── closing_loc: (754...755) = "}" ├── @ HashNode (location: (756...774)) @@ -810,14 +831,18 @@ │ │ ├── @ AssocNode (location: (758...764)) │ │ │ ├── key: │ │ │ │ @ IntegerNode (location: (758...759)) + │ │ │ │ └── flags: decimal │ │ │ ├── value: │ │ │ │ @ IntegerNode (location: (763...764)) + │ │ │ │ └── flags: decimal │ │ │ └── operator_loc: (760...762) = "=>" │ │ └── @ AssocNode (location: (766...772)) │ │ ├── key: │ │ │ @ IntegerNode (location: (766...767)) + │ │ │ └── flags: decimal │ │ ├── value: │ │ │ @ IntegerNode (location: (771...772)) + │ │ │ └── flags: decimal │ │ └── operator_loc: (768...770) = "=>" │ └── closing_loc: (773...774) = "}" ├── @ HashNode (location: (775...802)) @@ -838,6 +863,7 @@ │ │ │ │ │ └── @ RescueModifierNode (location: (781...793)) │ │ │ │ │ ├── expression: │ │ │ │ │ │ @ IntegerNode (location: (781...782)) + │ │ │ │ │ │ └── flags: decimal │ │ │ │ │ ├── keyword_loc: (783...789) = "rescue" │ │ │ │ │ └── rescue_expression: │ │ │ │ │ @ CallNode (location: (790...793)) @@ -862,6 +888,7 @@ │ │ │ └── unescaped: "b" │ │ ├── value: │ │ │ @ IntegerNode (location: (799...800)) + │ │ │ └── flags: decimal │ │ └── operator_loc: ∅ │ └── closing_loc: (801...802) = "}" ├── @ HashNode (location: (803...817)) @@ -876,6 +903,7 @@ │ │ │ │ └── unescaped: "a" │ │ │ ├── value: │ │ │ │ @ IntegerNode (location: (808...809)) + │ │ │ │ └── flags: decimal │ │ │ └── operator_loc: ∅ │ │ └── @ AssocNode (location: (811...815)) │ │ ├── key: @@ -886,6 +914,7 @@ │ │ │ └── unescaped: "b" │ │ ├── value: │ │ │ @ IntegerNode (location: (814...815)) + │ │ │ └── flags: decimal │ │ └── operator_loc: ∅ │ └── closing_loc: (816...817) = "}" ├── @ HashNode (location: (818...827)) @@ -918,6 +947,7 @@ │ │ │ └── unescaped: "a b" │ │ ├── value: │ │ │ @ IntegerNode (location: (840...841)) + │ │ │ └── flags: decimal │ │ └── operator_loc: (837...839) = "=>" │ └── closing_loc: (842...843) = "}" ├── @ HashNode (location: (844...856)) @@ -932,6 +962,7 @@ │ │ │ └── unescaped: "-@" │ │ ├── value: │ │ │ @ IntegerNode (location: (853...854)) + │ │ │ └── flags: decimal │ │ └── operator_loc: (850...852) = "=>" │ └── closing_loc: (855...856) = "}" ├── @ InterpolatedStringNode (location: (857...869)) diff --git a/test/yarp/snapshots/unparser/corpus/literal/opasgn.txt b/test/yarp/snapshots/unparser/corpus/literal/opasgn.txt index 44f8c6827e33d3..73d2c07fc8e3a2 100644 --- a/test/yarp/snapshots/unparser/corpus/literal/opasgn.txt +++ b/test/yarp/snapshots/unparser/corpus/literal/opasgn.txt @@ -8,6 +8,7 @@ │ ├── operator_loc: (2...4) = "+=" │ ├── value: │ │ @ IntegerNode (location: (5...6)) + │ │ └── flags: decimal │ ├── name: :a │ ├── operator: :+ │ └── depth: 0 @@ -16,6 +17,7 @@ │ ├── operator_loc: (9...11) = "-=" │ ├── value: │ │ @ IntegerNode (location: (12...13)) + │ │ └── flags: decimal │ ├── name: :a │ ├── operator: :- │ └── depth: 0 @@ -24,6 +26,7 @@ │ ├── operator_loc: (16...19) = "**=" │ ├── value: │ │ @ IntegerNode (location: (20...21)) + │ │ └── flags: decimal │ ├── name: :a │ ├── operator: :** │ └── depth: 0 @@ -32,6 +35,7 @@ │ ├── operator_loc: (24...26) = "*=" │ ├── value: │ │ @ IntegerNode (location: (27...28)) + │ │ └── flags: decimal │ ├── name: :a │ ├── operator: :* │ └── depth: 0 @@ -40,6 +44,7 @@ │ ├── operator_loc: (31...33) = "/=" │ ├── value: │ │ @ IntegerNode (location: (34...35)) + │ │ └── flags: decimal │ ├── name: :a │ ├── operator: :/ │ └── depth: 0 @@ -64,6 +69,7 @@ │ ├── operator_loc: (46...49) = "||=" │ ├── value: │ │ @ IntegerNode (location: (50...51)) + │ │ └── flags: decimal │ ├── name: :a │ └── depth: 0 ├── @ CallNode (location: (52...65)) @@ -77,6 +83,7 @@ │ │ │ ├── operator_loc: (55...58) = "||=" │ │ │ ├── value: │ │ │ │ @ IntegerNode (location: (59...60)) + │ │ │ │ └── flags: decimal │ │ │ ├── name: :a │ │ │ └── depth: 0 │ │ ├── opening_loc: (52...53) = "(" @@ -154,6 +161,7 @@ │ ├── operator_loc: (88...90) = "+=" │ └── value: │ @ IntegerNode (location: (91...92)) + │ └── flags: decimal ├── @ CallOperatorWriteNode (location: (93...101)) │ ├── receiver: │ │ @ LocalVariableReadNode (location: (93...94)) @@ -171,6 +179,7 @@ │ ├── operator_loc: (97...99) = "-=" │ └── value: │ @ IntegerNode (location: (100...101)) + │ └── flags: decimal ├── @ CallOperatorWriteNode (location: (102...111)) │ ├── receiver: │ │ @ LocalVariableReadNode (location: (102...103)) @@ -188,6 +197,7 @@ │ ├── operator_loc: (106...109) = "**=" │ └── value: │ @ IntegerNode (location: (110...111)) + │ └── flags: decimal ├── @ CallOperatorWriteNode (location: (112...120)) │ ├── receiver: │ │ @ LocalVariableReadNode (location: (112...113)) @@ -205,6 +215,7 @@ │ ├── operator_loc: (116...118) = "*=" │ └── value: │ @ IntegerNode (location: (119...120)) + │ └── flags: decimal ├── @ CallOperatorWriteNode (location: (121...129)) │ ├── receiver: │ │ @ LocalVariableReadNode (location: (121...122)) @@ -222,6 +233,7 @@ │ ├── operator_loc: (125...127) = "/=" │ └── value: │ @ IntegerNode (location: (128...129)) + │ └── flags: decimal ├── @ CallAndWriteNode (location: (130...139)) │ ├── receiver: │ │ @ LocalVariableReadNode (location: (130...131)) @@ -263,6 +275,7 @@ │ ├── operator_loc: (144...147) = "||=" │ └── value: │ @ IntegerNode (location: (148...149)) + │ └── flags: decimal ├── @ CallOperatorWriteNode (location: (150...159)) │ ├── receiver: │ │ @ LocalVariableReadNode (location: (150...151)) @@ -292,6 +305,7 @@ │ ├── operator_loc: (155...157) = "+=" │ └── value: │ @ IntegerNode (location: (158...159)) + │ └── flags: decimal ├── @ CallOperatorWriteNode (location: (160...169)) │ ├── receiver: │ │ @ LocalVariableReadNode (location: (160...161)) @@ -321,6 +335,7 @@ │ ├── operator_loc: (165...167) = "-=" │ └── value: │ @ IntegerNode (location: (168...169)) + │ └── flags: decimal ├── @ CallOperatorWriteNode (location: (170...180)) │ ├── receiver: │ │ @ LocalVariableReadNode (location: (170...171)) @@ -350,6 +365,7 @@ │ ├── operator_loc: (175...178) = "**=" │ └── value: │ @ IntegerNode (location: (179...180)) + │ └── flags: decimal ├── @ CallOperatorWriteNode (location: (181...190)) │ ├── receiver: │ │ @ LocalVariableReadNode (location: (181...182)) @@ -379,6 +395,7 @@ │ ├── operator_loc: (186...188) = "*=" │ └── value: │ @ IntegerNode (location: (189...190)) + │ └── flags: decimal ├── @ CallOperatorWriteNode (location: (191...200)) │ ├── receiver: │ │ @ LocalVariableReadNode (location: (191...192)) @@ -408,6 +425,7 @@ │ ├── operator_loc: (196...198) = "/=" │ └── value: │ @ IntegerNode (location: (199...200)) + │ └── flags: decimal ├── @ CallAndWriteNode (location: (201...211)) │ ├── receiver: │ │ @ LocalVariableReadNode (location: (201...202)) @@ -473,6 +491,7 @@ │ ├── operator_loc: (217...220) = "||=" │ └── value: │ @ IntegerNode (location: (221...222)) + │ └── flags: decimal └── @ CallOperatorWriteNode (location: (223...233)) ├── receiver: │ @ CallNode (location: (223...226)) @@ -497,3 +516,4 @@ ├── operator_loc: (229...231) = "+=" └── value: @ IntegerNode (location: (232...233)) + └── flags: decimal diff --git a/test/yarp/snapshots/unparser/corpus/literal/pattern.txt b/test/yarp/snapshots/unparser/corpus/literal/pattern.txt index 1b78ae3ff0e863..c4352546400d5c 100644 --- a/test/yarp/snapshots/unparser/corpus/literal/pattern.txt +++ b/test/yarp/snapshots/unparser/corpus/literal/pattern.txt @@ -24,7 +24,9 @@ │ │ │ │ │ └── name: :A │ │ │ │ ├── requireds: (length: 2) │ │ │ │ │ ├── @ IntegerNode (location: (14...15)) + │ │ │ │ │ │ └── flags: decimal │ │ │ │ │ └── @ IntegerNode (location: (17...18)) + │ │ │ │ │ └── flags: decimal │ │ │ │ ├── rest: │ │ │ │ │ @ SplatNode (location: (20...22)) │ │ │ │ │ ├── operator_loc: (20...21) = "*" @@ -34,6 +36,7 @@ │ │ │ │ │ └── depth: 0 │ │ │ │ ├── posts: (length: 1) │ │ │ │ │ └── @ IntegerNode (location: (24...25)) + │ │ │ │ │ └── flags: decimal │ │ │ │ ├── opening_loc: (13...14) = "[" │ │ │ │ └── closing_loc: (25...26) = "]" │ │ │ ├── statements: @@ -48,7 +51,9 @@ │ │ │ │ ├── constant: ∅ │ │ │ │ ├── requireds: (length: 2) │ │ │ │ │ ├── @ IntegerNode (location: (43...44)) + │ │ │ │ │ │ └── flags: decimal │ │ │ │ │ └── @ IntegerNode (location: (46...47)) + │ │ │ │ │ └── flags: decimal │ │ │ │ ├── rest: ∅ │ │ │ │ ├── posts: (length: 0) │ │ │ │ ├── opening_loc: (42...43) = "[" @@ -178,6 +183,7 @@ │ │ │ │ │ │ │ └── unescaped: "a" │ │ │ │ │ │ ├── value: │ │ │ │ │ │ │ @ IntegerNode (location: (160...161)) + │ │ │ │ │ │ │ └── flags: decimal │ │ │ │ │ │ └── operator_loc: ∅ │ │ │ │ │ └── @ AssocNode (location: (163...168)) │ │ │ │ │ ├── key: @@ -188,6 +194,7 @@ │ │ │ │ │ │ └── unescaped: "aa" │ │ │ │ │ ├── value: │ │ │ │ │ │ @ IntegerNode (location: (167...168)) + │ │ │ │ │ │ └── flags: decimal │ │ │ │ │ └── operator_loc: ∅ │ │ │ │ ├── kwrest: ∅ │ │ │ │ ├── opening_loc: (156...157) = "{" @@ -247,6 +254,7 @@ │ │ │ │ │ │ └── unescaped: "a" │ │ │ │ │ ├── value: │ │ │ │ │ │ @ IntegerNode (location: (232...233)) + │ │ │ │ │ │ └── flags: decimal │ │ │ │ │ └── operator_loc: ∅ │ │ │ │ ├── kwrest: ∅ │ │ │ │ ├── opening_loc: (226...227) = "{" @@ -262,8 +270,10 @@ │ │ │ │ @ AlternationPatternNode (location: (250...255)) │ │ │ │ ├── left: │ │ │ │ │ @ IntegerNode (location: (250...251)) + │ │ │ │ │ └── flags: decimal │ │ │ │ ├── right: │ │ │ │ │ @ IntegerNode (location: (254...255)) + │ │ │ │ │ └── flags: decimal │ │ │ │ └── operator_loc: (252...253) = "|" │ │ │ ├── statements: │ │ │ │ @ StatementsNode (location: (263...267)) @@ -276,6 +286,7 @@ │ │ │ │ @ CapturePatternNode (location: (271...277)) │ │ │ │ ├── value: │ │ │ │ │ @ IntegerNode (location: (271...272)) + │ │ │ │ │ └── flags: decimal │ │ │ │ ├── target: │ │ │ │ │ @ LocalVariableTargetNode (location: (276...277)) │ │ │ │ │ ├── name: :a @@ -304,12 +315,14 @@ │ │ ├── @ InNode (location: (308...312)) │ │ │ ├── pattern: │ │ │ │ @ IntegerNode (location: (311...312)) + │ │ │ │ └── flags: decimal │ │ │ ├── statements: ∅ │ │ │ ├── in_loc: (308...310) = "in" │ │ │ └── then_loc: ∅ │ │ └── @ InNode (location: (313...329)) │ │ ├── pattern: │ │ │ @ IntegerNode (location: (316...317)) + │ │ │ └── flags: decimal │ │ ├── statements: │ │ │ @ StatementsNode (location: (325...329)) │ │ │ └── body: (length: 1) @@ -347,7 +360,9 @@ │ │ │ │ └── name: :A │ │ │ ├── requireds: (length: 2) │ │ │ │ ├── @ IntegerNode (location: (360...361)) + │ │ │ │ │ └── flags: decimal │ │ │ │ └── @ IntegerNode (location: (363...364)) + │ │ │ │ └── flags: decimal │ │ │ ├── rest: │ │ │ │ @ SplatNode (location: (366...368)) │ │ │ │ ├── operator_loc: (366...367) = "*" @@ -357,6 +372,7 @@ │ │ │ │ └── depth: 0 │ │ │ ├── posts: (length: 1) │ │ │ │ └── @ IntegerNode (location: (370...371)) + │ │ │ │ └── flags: decimal │ │ │ ├── opening_loc: (359...360) = "[" │ │ │ └── closing_loc: (371...372) = "]" │ │ ├── statements: ∅ @@ -395,6 +411,7 @@ └── @ MatchPredicateNode (location: (400...408)) ├── value: │ @ IntegerNode (location: (400...401)) + │ └── flags: decimal ├── pattern: │ @ ArrayPatternNode (location: (405...408)) │ ├── constant: ∅ diff --git a/test/yarp/snapshots/unparser/corpus/literal/range.txt b/test/yarp/snapshots/unparser/corpus/literal/range.txt index 1bc7dfdcff72ad..9dbb8f3ca5c87a 100644 --- a/test/yarp/snapshots/unparser/corpus/literal/range.txt +++ b/test/yarp/snapshots/unparser/corpus/literal/range.txt @@ -10,6 +10,7 @@ │ │ └── @ RangeNode (location: (1...4)) │ │ ├── left: │ │ │ @ IntegerNode (location: (1...2)) + │ │ │ └── flags: decimal │ │ ├── right: ∅ │ │ ├── operator_loc: (2...4) = ".." │ │ └── flags: @@ -18,8 +19,10 @@ ├── @ RangeNode (location: (6...10)) │ ├── left: │ │ @ IntegerNode (location: (6...7)) + │ │ └── flags: decimal │ ├── right: │ │ @ IntegerNode (location: (9...10)) + │ │ └── flags: decimal │ ├── operator_loc: (7...9) = ".." │ └── flags: ├── @ ParenthesesNode (location: (11...17)) @@ -29,6 +32,7 @@ │ │ └── @ RangeNode (location: (12...16)) │ │ ├── left: │ │ │ @ IntegerNode (location: (12...13)) + │ │ │ └── flags: decimal │ │ ├── right: ∅ │ │ ├── operator_loc: (13...16) = "..." │ │ └── flags: exclude_end @@ -37,7 +41,9 @@ └── @ RangeNode (location: (18...23)) ├── left: │ @ IntegerNode (location: (18...19)) + │ └── flags: decimal ├── right: │ @ IntegerNode (location: (22...23)) + │ └── flags: decimal ├── operator_loc: (19...22) = "..." └── flags: exclude_end diff --git a/test/yarp/snapshots/unparser/corpus/literal/send.txt b/test/yarp/snapshots/unparser/corpus/literal/send.txt index caccabad61afda..fe0716712e9750 100644 --- a/test/yarp/snapshots/unparser/corpus/literal/send.txt +++ b/test/yarp/snapshots/unparser/corpus/literal/send.txt @@ -63,6 +63,7 @@ │ │ │ ├── name_loc: (48...53) = "local" │ │ │ ├── value: │ │ │ │ @ IntegerNode (location: (56...57)) + │ │ │ │ └── flags: decimal │ │ │ └── operator_loc: (54...55) = "=" │ │ └── @ CallNode (location: (60...69)) │ │ ├── receiver: @@ -454,8 +455,10 @@ │ │ │ └── @ RangeNode (location: (340...344)) │ │ │ ├── left: │ │ │ │ @ IntegerNode (location: (340...341)) + │ │ │ │ └── flags: decimal │ │ │ ├── right: │ │ │ │ @ IntegerNode (location: (343...344)) + │ │ │ │ └── flags: decimal │ │ │ ├── operator_loc: (341...343) = ".." │ │ │ └── flags: │ │ ├── opening_loc: (339...340) = "(" @@ -566,10 +569,12 @@ ├── @ RangeNode (location: (396...404)) │ ├── left: │ │ @ IntegerNode (location: (396...397)) + │ │ └── flags: decimal │ ├── right: │ │ @ CallNode (location: (399...404)) │ │ ├── receiver: │ │ │ @ IntegerNode (location: (399...400)) + │ │ │ └── flags: decimal │ │ ├── call_operator_loc: (400...401) = "." │ │ ├── message_loc: (401...404) = "max" │ │ ├── opening_loc: ∅ @@ -882,7 +887,9 @@ │ │ @ ArgumentsNode (location: (534...538)) │ │ └── arguments: (length: 2) │ │ ├── @ IntegerNode (location: (534...535)) + │ │ │ └── flags: decimal │ │ └── @ IntegerNode (location: (537...538)) + │ │ └── flags: decimal │ ├── closing_loc: (538...539) = ")" │ ├── block: ∅ │ ├── flags: @@ -1681,7 +1688,9 @@ │ │ @ ArgumentsNode (location: (876...880)) │ │ └── arguments: (length: 2) │ │ ├── @ IntegerNode (location: (876...877)) + │ │ │ └── flags: decimal │ │ └── @ IntegerNode (location: (879...880)) + │ │ └── flags: decimal │ ├── closing_loc: (880...881) = "]" │ ├── block: ∅ │ ├── flags: diff --git a/test/yarp/snapshots/unparser/corpus/literal/since/27.txt b/test/yarp/snapshots/unparser/corpus/literal/since/27.txt index 89d675c5fd95f6..ab662e2a0233d4 100644 --- a/test/yarp/snapshots/unparser/corpus/literal/since/27.txt +++ b/test/yarp/snapshots/unparser/corpus/literal/since/27.txt @@ -52,6 +52,7 @@ │ ├── left: ∅ │ ├── right: │ │ @ IntegerNode (location: (20...21)) + │ │ └── flags: decimal │ ├── operator_loc: (18...20) = ".." │ └── flags: ├── opening_loc: (17...18) = "(" diff --git a/test/yarp/snapshots/unparser/corpus/literal/since/30.txt b/test/yarp/snapshots/unparser/corpus/literal/since/30.txt index f1f200e42eaec4..cfd1aaf4d9fcb6 100644 --- a/test/yarp/snapshots/unparser/corpus/literal/since/30.txt +++ b/test/yarp/snapshots/unparser/corpus/literal/since/30.txt @@ -6,6 +6,7 @@ ├── @ MatchRequiredNode (location: (0...8)) │ ├── value: │ │ @ IntegerNode (location: (0...1)) + │ │ └── flags: decimal │ ├── pattern: │ │ @ ArrayPatternNode (location: (5...8)) │ │ ├── constant: ∅ @@ -21,6 +22,7 @@ ├── @ MatchRequiredNode (location: (9...17)) │ ├── value: │ │ @ IntegerNode (location: (9...10)) + │ │ └── flags: decimal │ ├── pattern: │ │ @ ArrayPatternNode (location: (14...17)) │ │ ├── constant: ∅ @@ -36,6 +38,7 @@ ├── @ MatchPredicateNode (location: (18...33)) │ ├── value: │ │ @ IntegerNode (location: (18...19)) + │ │ └── flags: decimal │ ├── pattern: │ │ @ FindPatternNode (location: (23...33)) │ │ ├── constant: ∅ @@ -45,6 +48,7 @@ │ │ │ └── expression: ∅ │ │ ├── requireds: (length: 1) │ │ │ └── @ IntegerNode (location: (27...29)) + │ │ │ └── flags: decimal │ │ ├── right: │ │ │ @ SplatNode (location: (31...32)) │ │ │ ├── operator_loc: (31...32) = "*" @@ -55,6 +59,7 @@ └── @ MatchPredicateNode (location: (34...51)) ├── value: │ @ IntegerNode (location: (34...35)) + │ └── flags: decimal ├── pattern: │ @ FindPatternNode (location: (39...51)) │ ├── constant: ∅ diff --git a/test/yarp/snapshots/unparser/corpus/literal/unary.txt b/test/yarp/snapshots/unparser/corpus/literal/unary.txt index beeaf6724d089a..052d15ce5a6236 100644 --- a/test/yarp/snapshots/unparser/corpus/literal/unary.txt +++ b/test/yarp/snapshots/unparser/corpus/literal/unary.txt @@ -6,6 +6,7 @@ ├── @ CallNode (location: (0...2)) │ ├── receiver: │ │ @ IntegerNode (location: (1...2)) + │ │ └── flags: decimal │ ├── call_operator_loc: ∅ │ ├── message_loc: (0...1) = "!" │ ├── opening_loc: ∅ @@ -23,6 +24,7 @@ │ │ │ └── @ CallNode (location: (5...7)) │ │ │ ├── receiver: │ │ │ │ @ IntegerNode (location: (6...7)) + │ │ │ │ └── flags: decimal │ │ │ ├── call_operator_loc: ∅ │ │ │ ├── message_loc: (5...6) = "!" │ │ │ ├── opening_loc: ∅ @@ -108,6 +110,7 @@ │ │ │ │ └── @ CallNode (location: (28...30)) │ │ │ │ ├── receiver: │ │ │ │ │ @ IntegerNode (location: (29...30)) + │ │ │ │ │ └── flags: decimal │ │ │ │ ├── call_operator_loc: ∅ │ │ │ │ ├── message_loc: (28...29) = "!" │ │ │ │ ├── opening_loc: ∅ diff --git a/test/yarp/snapshots/unparser/corpus/literal/while.txt b/test/yarp/snapshots/unparser/corpus/literal/while.txt index ac34701c8dbe60..29d65bc43d6b1c 100644 --- a/test/yarp/snapshots/unparser/corpus/literal/while.txt +++ b/test/yarp/snapshots/unparser/corpus/literal/while.txt @@ -604,6 +604,7 @@ │ │ @ StatementsNode (location: (523...524)) │ │ └── body: (length: 1) │ │ └── @ IntegerNode (location: (523...524)) + │ │ └── flags: decimal │ └── flags: ├── @ WhileNode (location: (529...556)) │ ├── keyword_loc: (529...534) = "while" @@ -656,6 +657,7 @@ │ │ @ StatementsNode (location: (587...588)) │ │ └── body: (length: 1) │ │ └── @ IntegerNode (location: (587...588)) + │ │ └── flags: decimal │ └── flags: └── @ UntilNode (location: (593...620)) ├── keyword_loc: (593...598) = "until" diff --git a/test/yarp/snapshots/unparser/corpus/semantic/literal.txt b/test/yarp/snapshots/unparser/corpus/semantic/literal.txt index b62f5135163637..025f5bd07df9c5 100644 --- a/test/yarp/snapshots/unparser/corpus/semantic/literal.txt +++ b/test/yarp/snapshots/unparser/corpus/semantic/literal.txt @@ -9,8 +9,11 @@ ├── @ RationalNode (location: (5...8)) │ └── numeric: │ @ IntegerNode (location: (5...7)) + │ └── flags: decimal ├── @ IntegerNode (location: (9...12)) + │ └── flags: hexadecimal ├── @ IntegerNode (location: (13...18)) + │ └── flags: decimal ├── @ FloatNode (location: (19...23)) ├── @ FloatNode (location: (24...38)) ├── @ FloatNode (location: (39...54)) diff --git a/test/yarp/snapshots/unparser/corpus/semantic/send.txt b/test/yarp/snapshots/unparser/corpus/semantic/send.txt index a15146b4e93343..d9b74104359b5e 100644 --- a/test/yarp/snapshots/unparser/corpus/semantic/send.txt +++ b/test/yarp/snapshots/unparser/corpus/semantic/send.txt @@ -22,6 +22,7 @@ │ │ @ ArgumentsNode (location: (8...9)) │ │ └── arguments: (length: 1) │ │ └── @ IntegerNode (location: (8...9)) + │ │ └── flags: decimal │ ├── closing_loc: (9...10) = ")" │ ├── block: ∅ │ ├── flags: diff --git a/test/yarp/snapshots/until.txt b/test/yarp/snapshots/until.txt index c932be0ff88701..d859e4763f85a5 100644 --- a/test/yarp/snapshots/until.txt +++ b/test/yarp/snapshots/until.txt @@ -12,6 +12,7 @@ │ │ @ StatementsNode (location: (12...13)) │ │ └── body: (length: 1) │ │ └── @ IntegerNode (location: (12...13)) + │ │ └── flags: decimal │ └── flags: ├── @ UntilNode (location: (20...32)) │ ├── keyword_loc: (22...27) = "until" @@ -22,6 +23,7 @@ │ │ @ StatementsNode (location: (20...21)) │ │ └── body: (length: 1) │ │ └── @ IntegerNode (location: (20...21)) + │ │ └── flags: decimal │ └── flags: ├── @ UntilNode (location: (34...50)) │ ├── keyword_loc: (40...45) = "until" diff --git a/test/yarp/snapshots/variables.txt b/test/yarp/snapshots/variables.txt index 4e052667270998..3782308b5eb5d9 100644 --- a/test/yarp/snapshots/variables.txt +++ b/test/yarp/snapshots/variables.txt @@ -10,6 +10,7 @@ │ ├── name_loc: (7...12) = "@@abc" │ ├── value: │ │ @ IntegerNode (location: (15...16)) + │ │ └── flags: decimal │ └── operator_loc: (13...14) = "=" ├── @ MultiWriteNode (location: (18...34)) │ ├── targets: (length: 2) @@ -22,6 +23,7 @@ │ ├── operator_loc: (31...32) = "=" │ └── value: │ @ IntegerNode (location: (33...34)) + │ └── flags: decimal ├── @ ClassVariableWriteNode (location: (36...48)) │ ├── name: :@@foo │ ├── name_loc: (36...41) = "@@foo" @@ -29,7 +31,9 @@ │ │ @ ArrayNode (location: (44...48)) │ │ ├── elements: (length: 2) │ │ │ ├── @ IntegerNode (location: (44...45)) + │ │ │ │ └── flags: decimal │ │ │ └── @ IntegerNode (location: (47...48)) + │ │ │ └── flags: decimal │ │ ├── opening_loc: ∅ │ │ └── closing_loc: ∅ │ └── operator_loc: (42...43) = "=" @@ -38,6 +42,7 @@ │ ├── name_loc: (50...54) = "$abc" │ ├── value: │ │ @ IntegerNode (location: (57...58)) + │ │ └── flags: decimal │ └── operator_loc: (55...56) = "=" ├── @ GlobalVariableReadNode (location: (60...64)) │ └── name: :$abc @@ -48,6 +53,7 @@ │ ├── name_loc: (72...76) = "@abc" │ ├── value: │ │ @ IntegerNode (location: (79...80)) + │ │ └── flags: decimal │ └── operator_loc: (77...78) = "=" ├── @ CallNode (location: (82...83)) │ ├── receiver: ∅ @@ -65,6 +71,7 @@ │ ├── name_loc: (85...88) = "abc" │ ├── value: │ │ @ IntegerNode (location: (91...92)) + │ │ └── flags: decimal │ └── operator_loc: (89...90) = "=" ├── @ MultiWriteNode (location: (94...108)) │ ├── targets: (length: 2) @@ -77,6 +84,7 @@ │ ├── operator_loc: (105...106) = "=" │ └── value: │ @ IntegerNode (location: (107...108)) + │ └── flags: decimal ├── @ GlobalVariableWriteNode (location: (110...121)) │ ├── name: :$foo │ ├── name_loc: (110...114) = "$foo" @@ -84,7 +92,9 @@ │ │ @ ArrayNode (location: (117...121)) │ │ ├── elements: (length: 2) │ │ │ ├── @ IntegerNode (location: (117...118)) + │ │ │ │ └── flags: decimal │ │ │ └── @ IntegerNode (location: (120...121)) + │ │ │ └── flags: decimal │ │ ├── opening_loc: ∅ │ │ └── closing_loc: ∅ │ └── operator_loc: (115...116) = "=" @@ -99,6 +109,7 @@ │ ├── operator_loc: (134...135) = "=" │ └── value: │ @ IntegerNode (location: (136...137)) + │ └── flags: decimal ├── @ InstanceVariableWriteNode (location: (139...150)) │ ├── name: :@foo │ ├── name_loc: (139...143) = "@foo" @@ -106,7 +117,9 @@ │ │ @ ArrayNode (location: (146...150)) │ │ ├── elements: (length: 2) │ │ │ ├── @ IntegerNode (location: (146...147)) + │ │ │ │ └── flags: decimal │ │ │ └── @ IntegerNode (location: (149...150)) + │ │ │ └── flags: decimal │ │ ├── opening_loc: ∅ │ │ └── closing_loc: ∅ │ └── operator_loc: (144...145) = "=" @@ -116,6 +129,7 @@ │ ├── name_loc: (152...155) = "foo" │ ├── value: │ │ @ IntegerNode (location: (158...159)) + │ │ └── flags: decimal │ └── operator_loc: (156...157) = "=" ├── @ LocalVariableWriteNode (location: (161...171)) │ ├── name: :foo @@ -125,7 +139,9 @@ │ │ @ ArrayNode (location: (167...171)) │ │ ├── elements: (length: 2) │ │ │ ├── @ IntegerNode (location: (167...168)) + │ │ │ │ └── flags: decimal │ │ │ └── @ IntegerNode (location: (170...171)) + │ │ │ └── flags: decimal │ │ ├── opening_loc: ∅ │ │ └── closing_loc: ∅ │ └── operator_loc: (165...166) = "=" @@ -137,7 +153,9 @@ │ │ @ ArrayNode (location: (179...183)) │ │ ├── elements: (length: 2) │ │ │ ├── @ IntegerNode (location: (179...180)) + │ │ │ │ └── flags: decimal │ │ │ └── @ IntegerNode (location: (182...183)) + │ │ │ └── flags: decimal │ │ ├── opening_loc: ∅ │ │ └── closing_loc: ∅ │ └── operator_loc: (177...178) = "=" @@ -156,7 +174,9 @@ │ @ ArrayNode (location: (194...198)) │ ├── elements: (length: 2) │ │ ├── @ IntegerNode (location: (194...195)) + │ │ │ └── flags: decimal │ │ └── @ IntegerNode (location: (197...198)) + │ │ └── flags: decimal │ ├── opening_loc: ∅ │ └── closing_loc: ∅ ├── @ MultiWriteNode (location: (200...211)) @@ -174,7 +194,9 @@ │ @ ArrayNode (location: (207...211)) │ ├── elements: (length: 2) │ │ ├── @ IntegerNode (location: (207...208)) + │ │ │ └── flags: decimal │ │ └── @ IntegerNode (location: (210...211)) + │ │ └── flags: decimal │ ├── opening_loc: ∅ │ └── closing_loc: ∅ ├── @ MultiWriteNode (location: (213...229)) @@ -195,7 +217,9 @@ │ @ ArrayNode (location: (225...229)) │ ├── elements: (length: 2) │ │ ├── @ IntegerNode (location: (225...226)) + │ │ │ └── flags: decimal │ │ └── @ IntegerNode (location: (228...229)) + │ │ └── flags: decimal │ ├── opening_loc: ∅ │ └── closing_loc: ∅ ├── @ MultiWriteNode (location: (231...258)) @@ -220,10 +244,13 @@ │ @ ArrayNode (location: (249...258)) │ ├── elements: (length: 2) │ │ ├── @ IntegerNode (location: (249...250)) + │ │ │ └── flags: decimal │ │ └── @ ArrayNode (location: (252...258)) │ │ ├── elements: (length: 2) │ │ │ ├── @ IntegerNode (location: (253...254)) + │ │ │ │ └── flags: decimal │ │ │ └── @ IntegerNode (location: (256...257)) + │ │ │ └── flags: decimal │ │ ├── opening_loc: (252...253) = "[" │ │ └── closing_loc: (257...258) = "]" │ ├── opening_loc: ∅ @@ -251,7 +278,9 @@ │ │ @ ArrayNode (location: (278...282)) │ │ ├── elements: (length: 2) │ │ │ ├── @ IntegerNode (location: (278...279)) + │ │ │ │ └── flags: decimal │ │ │ └── @ IntegerNode (location: (281...282)) + │ │ │ └── flags: decimal │ │ ├── opening_loc: ∅ │ │ └── closing_loc: ∅ │ └── operator_loc: (276...277) = "=" diff --git a/test/yarp/snapshots/while.txt b/test/yarp/snapshots/while.txt index 3556c716ef0e32..ff87adc87f7417 100644 --- a/test/yarp/snapshots/while.txt +++ b/test/yarp/snapshots/while.txt @@ -12,6 +12,7 @@ │ │ @ StatementsNode (location: (12...13)) │ │ └── body: (length: 1) │ │ └── @ IntegerNode (location: (12...13)) + │ │ └── flags: decimal │ └── flags: ├── @ WhileNode (location: (20...32)) │ ├── keyword_loc: (22...27) = "while" @@ -22,6 +23,7 @@ │ │ @ StatementsNode (location: (20...21)) │ │ └── body: (length: 1) │ │ └── @ IntegerNode (location: (20...21)) + │ │ └── flags: decimal │ └── flags: ├── @ WhileNode (location: (34...50)) │ ├── keyword_loc: (40...45) = "while" diff --git a/test/yarp/snapshots/whitequark/and_asgn.txt b/test/yarp/snapshots/whitequark/and_asgn.txt index ddd6afef3b15e1..7c4399a2be026a 100644 --- a/test/yarp/snapshots/whitequark/and_asgn.txt +++ b/test/yarp/snapshots/whitequark/and_asgn.txt @@ -26,6 +26,7 @@ │ ├── operator_loc: (6...9) = "&&=" │ └── value: │ @ IntegerNode (location: (10...11)) + │ └── flags: decimal └── @ CallAndWriteNode (location: (13...28)) ├── receiver: │ @ CallNode (location: (13...16)) @@ -45,7 +46,9 @@ │ @ ArgumentsNode (location: (17...21)) │ └── arguments: (length: 2) │ ├── @ IntegerNode (location: (17...18)) + │ │ └── flags: decimal │ └── @ IntegerNode (location: (20...21)) + │ └── flags: decimal ├── closing_loc: (21...22) = "]" ├── flags: ├── read_name: "[]" @@ -53,3 +56,4 @@ ├── operator_loc: (23...26) = "&&=" └── value: @ IntegerNode (location: (27...28)) + └── flags: decimal diff --git a/test/yarp/snapshots/whitequark/args.txt b/test/yarp/snapshots/whitequark/args.txt index 8831aa1aa48e35..9e648eb5335dc7 100644 --- a/test/yarp/snapshots/whitequark/args.txt +++ b/test/yarp/snapshots/whitequark/args.txt @@ -352,6 +352,7 @@ │ │ │ ├── name_loc: (236...240) = "foo:" │ │ │ └── value: │ │ │ @ IntegerNode (location: (241...242)) + │ │ │ └── flags: decimal │ │ ├── keyword_rest: ∅ │ │ └── block: │ │ @ BlockParameterNode (location: (244...246)) @@ -382,11 +383,13 @@ │ │ │ │ ├── name_loc: (261...265) = "foo:" │ │ │ │ └── value: │ │ │ │ @ IntegerNode (location: (266...267)) + │ │ │ │ └── flags: decimal │ │ │ └── @ KeywordParameterNode (location: (269...275)) │ │ │ ├── name: :bar │ │ │ ├── name_loc: (269...273) = "bar:" │ │ │ └── value: │ │ │ @ IntegerNode (location: (274...275)) + │ │ │ └── flags: decimal │ │ ├── keyword_rest: │ │ │ @ KeywordRestParameterNode (location: (277...282)) │ │ │ ├── name: :baz @@ -643,6 +646,7 @@ │ │ │ ├── operator_loc: (463...464) = "=" │ │ │ └── value: │ │ │ @ IntegerNode (location: (464...465)) + │ │ │ └── flags: decimal │ │ ├── posts: (length: 0) │ │ ├── rest: ∅ │ │ ├── keywords: (length: 0) @@ -676,6 +680,7 @@ │ │ │ ├── operator_loc: (486...487) = "=" │ │ │ └── value: │ │ │ @ IntegerNode (location: (487...488)) + │ │ │ └── flags: decimal │ │ ├── posts: (length: 0) │ │ ├── rest: │ │ │ @ RestParameterNode (location: (490...492)) @@ -713,6 +718,7 @@ │ │ │ ├── operator_loc: (513...514) = "=" │ │ │ └── value: │ │ │ @ IntegerNode (location: (514...515)) + │ │ │ └── flags: decimal │ │ ├── posts: (length: 1) │ │ │ └── @ RequiredParameterNode (location: (521...522)) │ │ │ └── name: :p @@ -752,6 +758,7 @@ │ │ │ ├── operator_loc: (543...544) = "=" │ │ │ └── value: │ │ │ @ IntegerNode (location: (544...545)) + │ │ │ └── flags: decimal │ │ ├── posts: (length: 1) │ │ │ └── @ RequiredParameterNode (location: (547...548)) │ │ │ └── name: :p @@ -812,6 +819,7 @@ │ │ │ ├── name_loc: (583...587) = "foo:" │ │ │ └── value: │ │ │ @ IntegerNode (location: (588...590)) + │ │ │ └── flags: decimal │ │ ├── keyword_rest: ∅ │ │ └── block: ∅ │ ├── body: ∅ @@ -836,6 +844,7 @@ │ │ │ ├── operator_loc: (605...606) = "=" │ │ │ └── value: │ │ │ @ IntegerNode (location: (606...607)) + │ │ │ └── flags: decimal │ │ ├── posts: (length: 0) │ │ ├── rest: ∅ │ │ ├── keywords: (length: 0) @@ -867,6 +876,7 @@ │ │ │ ├── operator_loc: (625...626) = "=" │ │ │ └── value: │ │ │ @ IntegerNode (location: (626...627)) + │ │ │ └── flags: decimal │ │ ├── posts: (length: 0) │ │ ├── rest: │ │ │ @ RestParameterNode (location: (629...631)) @@ -902,6 +912,7 @@ │ │ │ ├── operator_loc: (649...650) = "=" │ │ │ └── value: │ │ │ @ IntegerNode (location: (650...651)) + │ │ │ └── flags: decimal │ │ ├── posts: (length: 1) │ │ │ └── @ RequiredParameterNode (location: (657...658)) │ │ │ └── name: :p @@ -939,6 +950,7 @@ │ │ ├── operator_loc: (676...677) = "=" │ │ └── value: │ │ @ IntegerNode (location: (677...678)) + │ │ └── flags: decimal │ ├── posts: (length: 1) │ │ └── @ RequiredParameterNode (location: (680...681)) │ │ └── name: :p diff --git a/test/yarp/snapshots/whitequark/args_args_assocs.txt b/test/yarp/snapshots/whitequark/args_args_assocs.txt index e427c7434922d0..723cde18e584a8 100644 --- a/test/yarp/snapshots/whitequark/args_args_assocs.txt +++ b/test/yarp/snapshots/whitequark/args_args_assocs.txt @@ -32,6 +32,7 @@ │ │ │ └── unescaped: "foo" │ │ ├── value: │ │ │ @ IntegerNode (location: (17...18)) + │ │ │ └── flags: decimal │ │ └── operator_loc: (14...16) = "=>" │ ├── closing_loc: (18...19) = ")" │ ├── block: ∅ @@ -66,6 +67,7 @@ │ │ │ └── unescaped: "foo" │ │ ├── value: │ │ │ @ IntegerNode (location: (38...39)) + │ │ │ └── flags: decimal │ │ └── operator_loc: (35...37) = "=>" │ └── @ BlockArgumentNode (location: (41...45)) │ ├── expression: diff --git a/test/yarp/snapshots/whitequark/args_args_assocs_comma.txt b/test/yarp/snapshots/whitequark/args_args_assocs_comma.txt index d2b40b95a30281..a5e9b07ac4d05f 100644 --- a/test/yarp/snapshots/whitequark/args_args_assocs_comma.txt +++ b/test/yarp/snapshots/whitequark/args_args_assocs_comma.txt @@ -42,6 +42,7 @@ │ │ └── unescaped: "baz" │ ├── value: │ │ @ IntegerNode (location: (17...18)) + │ │ └── flags: decimal │ └── operator_loc: (14...16) = "=>" ├── closing_loc: (19...20) = "]" ├── block: ∅ diff --git a/test/yarp/snapshots/whitequark/args_assocs.txt b/test/yarp/snapshots/whitequark/args_assocs.txt index 17a7dfb89ead7a..c0f356b7c1e8ca 100644 --- a/test/yarp/snapshots/whitequark/args_assocs.txt +++ b/test/yarp/snapshots/whitequark/args_assocs.txt @@ -22,6 +22,7 @@ │ │ │ └── unescaped: "foo" │ │ ├── value: │ │ │ @ IntegerNode (location: (12...13)) + │ │ │ └── flags: decimal │ │ └── operator_loc: (9...11) = "=>" │ ├── closing_loc: (13...14) = ")" │ ├── block: ∅ @@ -46,6 +47,7 @@ │ │ │ │ └── unescaped: "foo" │ │ │ ├── value: │ │ │ │ @ IntegerNode (location: (28...29)) + │ │ │ │ └── flags: decimal │ │ │ └── operator_loc: (25...27) = "=>" │ │ └── @ BlockArgumentNode (location: (31...35)) │ │ ├── expression: @@ -94,6 +96,7 @@ │ │ │ └── unescaped: "a" │ │ ├── value: │ │ │ @ IntegerNode (location: (58...59)) + │ │ │ └── flags: decimal │ │ └── operator_loc: (55...57) = "=>" │ ├── closing_loc: ∅ │ ├── block: ∅ @@ -119,6 +122,7 @@ │ │ │ └── unescaped: "bar" │ │ ├── value: │ │ │ @ IntegerNode (location: (74...75)) + │ │ │ └── flags: decimal │ │ └── operator_loc: (71...73) = "=>" │ ├── closing_loc: (75...76) = "]" │ ├── block: ∅ @@ -141,6 +145,7 @@ │ │ │ └── unescaped: "foo" │ │ ├── value: │ │ │ @ IntegerNode (location: (92...94)) + │ │ │ └── flags: decimal │ │ └── operator_loc: (89...91) = "=>" │ ├── rparen_loc: (94...95) = ")" │ └── block: ∅ @@ -161,5 +166,6 @@ │ │ └── unescaped: "foo" │ ├── value: │ │ @ IntegerNode (location: (111...113)) + │ │ └── flags: decimal │ └── operator_loc: (108...110) = "=>" └── rparen_loc: (113...114) = ")" diff --git a/test/yarp/snapshots/whitequark/args_assocs_comma.txt b/test/yarp/snapshots/whitequark/args_assocs_comma.txt index e57cce8ed306be..d32a2cd4567db8 100644 --- a/test/yarp/snapshots/whitequark/args_assocs_comma.txt +++ b/test/yarp/snapshots/whitequark/args_assocs_comma.txt @@ -32,6 +32,7 @@ │ │ └── unescaped: "baz" │ ├── value: │ │ @ IntegerNode (location: (12...13)) + │ │ └── flags: decimal │ └── operator_loc: (9...11) = "=>" ├── closing_loc: (14...15) = "]" ├── block: ∅ diff --git a/test/yarp/snapshots/whitequark/args_assocs_legacy.txt b/test/yarp/snapshots/whitequark/args_assocs_legacy.txt index 17a7dfb89ead7a..c0f356b7c1e8ca 100644 --- a/test/yarp/snapshots/whitequark/args_assocs_legacy.txt +++ b/test/yarp/snapshots/whitequark/args_assocs_legacy.txt @@ -22,6 +22,7 @@ │ │ │ └── unescaped: "foo" │ │ ├── value: │ │ │ @ IntegerNode (location: (12...13)) + │ │ │ └── flags: decimal │ │ └── operator_loc: (9...11) = "=>" │ ├── closing_loc: (13...14) = ")" │ ├── block: ∅ @@ -46,6 +47,7 @@ │ │ │ │ └── unescaped: "foo" │ │ │ ├── value: │ │ │ │ @ IntegerNode (location: (28...29)) + │ │ │ │ └── flags: decimal │ │ │ └── operator_loc: (25...27) = "=>" │ │ └── @ BlockArgumentNode (location: (31...35)) │ │ ├── expression: @@ -94,6 +96,7 @@ │ │ │ └── unescaped: "a" │ │ ├── value: │ │ │ @ IntegerNode (location: (58...59)) + │ │ │ └── flags: decimal │ │ └── operator_loc: (55...57) = "=>" │ ├── closing_loc: ∅ │ ├── block: ∅ @@ -119,6 +122,7 @@ │ │ │ └── unescaped: "bar" │ │ ├── value: │ │ │ @ IntegerNode (location: (74...75)) + │ │ │ └── flags: decimal │ │ └── operator_loc: (71...73) = "=>" │ ├── closing_loc: (75...76) = "]" │ ├── block: ∅ @@ -141,6 +145,7 @@ │ │ │ └── unescaped: "foo" │ │ ├── value: │ │ │ @ IntegerNode (location: (92...94)) + │ │ │ └── flags: decimal │ │ └── operator_loc: (89...91) = "=>" │ ├── rparen_loc: (94...95) = ")" │ └── block: ∅ @@ -161,5 +166,6 @@ │ │ └── unescaped: "foo" │ ├── value: │ │ @ IntegerNode (location: (111...113)) + │ │ └── flags: decimal │ └── operator_loc: (108...110) = "=>" └── rparen_loc: (113...114) = ")" diff --git a/test/yarp/snapshots/whitequark/array_assocs.txt b/test/yarp/snapshots/whitequark/array_assocs.txt index ae0d34f73a6f27..d19ddcc78c89ac 100644 --- a/test/yarp/snapshots/whitequark/array_assocs.txt +++ b/test/yarp/snapshots/whitequark/array_assocs.txt @@ -10,21 +10,26 @@ │ │ └── @ AssocNode (location: (2...8)) │ │ ├── key: │ │ │ @ IntegerNode (location: (2...3)) + │ │ │ └── flags: decimal │ │ ├── value: │ │ │ @ IntegerNode (location: (7...8)) + │ │ │ └── flags: decimal │ │ └── operator_loc: (4...6) = "=>" │ ├── opening_loc: (0...1) = "[" │ └── closing_loc: (9...10) = "]" └── @ ArrayNode (location: (12...25)) ├── elements: (length: 2) │ ├── @ IntegerNode (location: (14...15)) + │ │ └── flags: decimal │ └── @ KeywordHashNode (location: (17...23)) │ └── elements: (length: 1) │ └── @ AssocNode (location: (17...23)) │ ├── key: │ │ @ IntegerNode (location: (17...18)) + │ │ └── flags: decimal │ ├── value: │ │ @ IntegerNode (location: (22...23)) + │ │ └── flags: decimal │ └── operator_loc: (19...21) = "=>" ├── opening_loc: (12...13) = "[" └── closing_loc: (24...25) = "]" diff --git a/test/yarp/snapshots/whitequark/array_plain.txt b/test/yarp/snapshots/whitequark/array_plain.txt index e37b67bdda9009..5a32fa318b34a2 100644 --- a/test/yarp/snapshots/whitequark/array_plain.txt +++ b/test/yarp/snapshots/whitequark/array_plain.txt @@ -6,6 +6,8 @@ └── @ ArrayNode (location: (0...6)) ├── elements: (length: 2) │ ├── @ IntegerNode (location: (1...2)) + │ │ └── flags: decimal │ └── @ IntegerNode (location: (4...5)) + │ └── flags: decimal ├── opening_loc: (0...1) = "[" └── closing_loc: (5...6) = "]" diff --git a/test/yarp/snapshots/whitequark/array_splat.txt b/test/yarp/snapshots/whitequark/array_splat.txt index d7d77cf0b550bd..0eb1ae072a6b7e 100644 --- a/test/yarp/snapshots/whitequark/array_splat.txt +++ b/test/yarp/snapshots/whitequark/array_splat.txt @@ -23,6 +23,7 @@ ├── @ ArrayNode (location: (8...20)) │ ├── elements: (length: 3) │ │ ├── @ IntegerNode (location: (9...10)) + │ │ │ └── flags: decimal │ │ ├── @ SplatNode (location: (12...16)) │ │ │ ├── operator_loc: (12...13) = "*" │ │ │ └── expression: @@ -37,11 +38,13 @@ │ │ │ ├── flags: variable_call │ │ │ └── name: "foo" │ │ └── @ IntegerNode (location: (18...19)) + │ │ └── flags: decimal │ ├── opening_loc: (8...9) = "[" │ └── closing_loc: (19...20) = "]" └── @ ArrayNode (location: (22...31)) ├── elements: (length: 2) │ ├── @ IntegerNode (location: (23...24)) + │ │ └── flags: decimal │ └── @ SplatNode (location: (26...30)) │ ├── operator_loc: (26...27) = "*" │ └── expression: diff --git a/test/yarp/snapshots/whitequark/asgn_mrhs.txt b/test/yarp/snapshots/whitequark/asgn_mrhs.txt index 5ceac10414024d..4eff3334107e56 100644 --- a/test/yarp/snapshots/whitequark/asgn_mrhs.txt +++ b/test/yarp/snapshots/whitequark/asgn_mrhs.txt @@ -44,6 +44,7 @@ │ │ │ │ ├── flags: variable_call │ │ │ │ └── name: "bar" │ │ │ └── @ IntegerNode (location: (23...24)) + │ │ │ └── flags: decimal │ │ ├── opening_loc: ∅ │ │ └── closing_loc: ∅ │ └── operator_loc: (16...17) = "=" diff --git a/test/yarp/snapshots/whitequark/begin_cmdarg.txt b/test/yarp/snapshots/whitequark/begin_cmdarg.txt index c0227f2eaa3085..937448d32b227e 100644 --- a/test/yarp/snapshots/whitequark/begin_cmdarg.txt +++ b/test/yarp/snapshots/whitequark/begin_cmdarg.txt @@ -19,6 +19,7 @@ │ │ └── @ CallNode (location: (8...24)) │ │ ├── receiver: │ │ │ @ IntegerNode (location: (8...9)) + │ │ │ └── flags: decimal │ │ ├── call_operator_loc: (9...10) = "." │ │ ├── message_loc: (10...15) = "times" │ │ ├── opening_loc: ∅ @@ -32,6 +33,7 @@ │ │ │ │ @ StatementsNode (location: (19...20)) │ │ │ │ └── body: (length: 1) │ │ │ │ └── @ IntegerNode (location: (19...20)) + │ │ │ │ └── flags: decimal │ │ │ ├── opening_loc: (16...18) = "do" │ │ │ └── closing_loc: (21...24) = "end" │ │ ├── flags: diff --git a/test/yarp/snapshots/whitequark/beginless_erange_after_newline.txt b/test/yarp/snapshots/whitequark/beginless_erange_after_newline.txt index f4c5ac017f5a7f..c7265ad24248a9 100644 --- a/test/yarp/snapshots/whitequark/beginless_erange_after_newline.txt +++ b/test/yarp/snapshots/whitequark/beginless_erange_after_newline.txt @@ -17,5 +17,6 @@ ├── left: ∅ ├── right: │ @ IntegerNode (location: (7...10)) + │ └── flags: decimal ├── operator_loc: (4...7) = "..." └── flags: exclude_end diff --git a/test/yarp/snapshots/whitequark/beginless_irange_after_newline.txt b/test/yarp/snapshots/whitequark/beginless_irange_after_newline.txt index 42aa05944bc6fc..c380049ce8a0bc 100644 --- a/test/yarp/snapshots/whitequark/beginless_irange_after_newline.txt +++ b/test/yarp/snapshots/whitequark/beginless_irange_after_newline.txt @@ -17,5 +17,6 @@ ├── left: ∅ ├── right: │ @ IntegerNode (location: (6...9)) + │ └── flags: decimal ├── operator_loc: (4...6) = ".." └── flags: diff --git a/test/yarp/snapshots/whitequark/beginless_range.txt b/test/yarp/snapshots/whitequark/beginless_range.txt index 6a18f5173333b1..53b53bbce12d59 100644 --- a/test/yarp/snapshots/whitequark/beginless_range.txt +++ b/test/yarp/snapshots/whitequark/beginless_range.txt @@ -7,11 +7,13 @@ │ ├── left: ∅ │ ├── right: │ │ @ IntegerNode (location: (3...6)) + │ │ └── flags: decimal │ ├── operator_loc: (0...3) = "..." │ └── flags: exclude_end └── @ RangeNode (location: (8...13)) ├── left: ∅ ├── right: │ @ IntegerNode (location: (10...13)) + │ └── flags: decimal ├── operator_loc: (8...10) = ".." └── flags: diff --git a/test/yarp/snapshots/whitequark/blockargs.txt b/test/yarp/snapshots/whitequark/blockargs.txt index 1f326561438d4a..7834640e6dcf62 100644 --- a/test/yarp/snapshots/whitequark/blockargs.txt +++ b/test/yarp/snapshots/whitequark/blockargs.txt @@ -653,6 +653,7 @@ │ │ │ │ │ ├── operator_loc: (270...271) = "=" │ │ │ │ │ └── value: │ │ │ │ │ @ IntegerNode (location: (271...272)) + │ │ │ │ │ └── flags: decimal │ │ │ │ ├── posts: (length: 0) │ │ │ │ ├── rest: ∅ │ │ │ │ ├── keywords: (length: 0) @@ -694,6 +695,7 @@ │ │ │ │ │ ├── operator_loc: (289...290) = "=" │ │ │ │ │ └── value: │ │ │ │ │ @ IntegerNode (location: (290...291)) + │ │ │ │ │ └── flags: decimal │ │ │ │ ├── posts: (length: 1) │ │ │ │ │ └── @ RequiredParameterNode (location: (297...298)) │ │ │ │ │ └── name: :p @@ -741,12 +743,14 @@ │ │ │ │ │ │ ├── operator_loc: (315...316) = "=" │ │ │ │ │ │ └── value: │ │ │ │ │ │ @ IntegerNode (location: (316...317)) + │ │ │ │ │ │ └── flags: decimal │ │ │ │ │ └── @ OptionalParameterNode (location: (319...323)) │ │ │ │ │ ├── name: :o1 │ │ │ │ │ ├── name_loc: (319...321) = "o1" │ │ │ │ │ ├── operator_loc: (321...322) = "=" │ │ │ │ │ └── value: │ │ │ │ │ @ IntegerNode (location: (322...323)) + │ │ │ │ │ └── flags: decimal │ │ │ │ ├── posts: (length: 0) │ │ │ │ ├── rest: │ │ │ │ │ @ RestParameterNode (location: (325...327)) @@ -792,6 +796,7 @@ │ │ │ │ │ ├── operator_loc: (344...345) = "=" │ │ │ │ │ └── value: │ │ │ │ │ @ IntegerNode (location: (345...346)) + │ │ │ │ │ └── flags: decimal │ │ │ │ ├── posts: (length: 1) │ │ │ │ │ └── @ RequiredParameterNode (location: (348...349)) │ │ │ │ │ └── name: :p @@ -963,6 +968,7 @@ │ │ │ │ │ ├── name_loc: (403...407) = "foo:" │ │ │ │ │ └── value: │ │ │ │ │ @ IntegerNode (location: (408...409)) + │ │ │ │ │ └── flags: decimal │ │ │ │ ├── keyword_rest: ∅ │ │ │ │ └── block: │ │ │ │ @ BlockParameterNode (location: (411...413)) @@ -1001,11 +1007,13 @@ │ │ │ │ │ │ ├── name_loc: (422...426) = "foo:" │ │ │ │ │ │ └── value: │ │ │ │ │ │ @ IntegerNode (location: (427...428)) + │ │ │ │ │ │ └── flags: decimal │ │ │ │ │ └── @ KeywordParameterNode (location: (430...436)) │ │ │ │ │ ├── name: :bar │ │ │ │ │ ├── name_loc: (430...434) = "bar:" │ │ │ │ │ └── value: │ │ │ │ │ @ IntegerNode (location: (435...436)) + │ │ │ │ │ └── flags: decimal │ │ │ │ ├── keyword_rest: │ │ │ │ │ @ KeywordRestParameterNode (location: (438...443)) │ │ │ │ │ ├── name: :baz @@ -1079,6 +1087,7 @@ │ │ │ │ │ ├── operator_loc: (470...471) = "=" │ │ │ │ │ └── value: │ │ │ │ │ @ IntegerNode (location: (471...472)) + │ │ │ │ │ └── flags: decimal │ │ │ │ ├── posts: (length: 0) │ │ │ │ ├── rest: ∅ │ │ │ │ ├── keywords: (length: 0) @@ -1118,6 +1127,7 @@ │ │ │ │ │ ├── operator_loc: (486...487) = "=" │ │ │ │ │ └── value: │ │ │ │ │ @ IntegerNode (location: (487...488)) + │ │ │ │ │ └── flags: decimal │ │ │ │ ├── posts: (length: 0) │ │ │ │ ├── rest: │ │ │ │ │ @ RestParameterNode (location: (490...492)) @@ -1161,6 +1171,7 @@ │ │ │ │ │ ├── operator_loc: (506...507) = "=" │ │ │ │ │ └── value: │ │ │ │ │ @ IntegerNode (location: (507...508)) + │ │ │ │ │ └── flags: decimal │ │ │ │ ├── posts: (length: 1) │ │ │ │ │ └── @ RequiredParameterNode (location: (514...515)) │ │ │ │ │ └── name: :p @@ -1206,6 +1217,7 @@ │ │ │ │ │ ├── operator_loc: (529...530) = "=" │ │ │ │ │ └── value: │ │ │ │ │ @ IntegerNode (location: (530...531)) + │ │ │ │ │ └── flags: decimal │ │ │ │ ├── posts: (length: 1) │ │ │ │ │ └── @ RequiredParameterNode (location: (533...534)) │ │ │ │ │ └── name: :p diff --git a/test/yarp/snapshots/whitequark/bug_447.txt b/test/yarp/snapshots/whitequark/bug_447.txt index 691848adf08787..51903c29dc15e7 100644 --- a/test/yarp/snapshots/whitequark/bug_447.txt +++ b/test/yarp/snapshots/whitequark/bug_447.txt @@ -38,6 +38,7 @@ │ │ ├── opening_loc: (15...16) = "[" │ │ └── closing_loc: (16...17) = "]" │ └── @ IntegerNode (location: (19...20)) + │ └── flags: decimal ├── closing_loc: ∅ ├── block: │ @ BlockNode (location: (21...27)) diff --git a/test/yarp/snapshots/whitequark/bug_452.txt b/test/yarp/snapshots/whitequark/bug_452.txt index be37df34df3f58..a3f25c40978c8a 100644 --- a/test/yarp/snapshots/whitequark/bug_452.txt +++ b/test/yarp/snapshots/whitequark/bug_452.txt @@ -18,6 +18,7 @@ │ │ │ │ @ StatementsNode (location: (4...9)) │ │ │ │ └── body: (length: 1) │ │ │ │ └── @ IntegerNode (location: (4...9)) + │ │ │ │ └── flags: decimal │ │ │ ├── opening_loc: (3...4) = "(" │ │ │ └── closing_loc: (9...10) = ")" │ │ ├── call_operator_loc: (10...11) = "." diff --git a/test/yarp/snapshots/whitequark/bug_466.txt b/test/yarp/snapshots/whitequark/bug_466.txt index 8813c7e644f295..49f7c26347c7c0 100644 --- a/test/yarp/snapshots/whitequark/bug_466.txt +++ b/test/yarp/snapshots/whitequark/bug_466.txt @@ -28,6 +28,7 @@ │ │ │ │ │ └── @ CallNode (location: (8...11)) │ │ │ │ │ ├── receiver: │ │ │ │ │ │ @ IntegerNode (location: (8...9)) + │ │ │ │ │ │ └── flags: decimal │ │ │ │ │ ├── call_operator_loc: ∅ │ │ │ │ │ ├── message_loc: (9...10) = "+" │ │ │ │ │ ├── opening_loc: ∅ @@ -35,6 +36,7 @@ │ │ │ │ │ │ @ ArgumentsNode (location: (10...11)) │ │ │ │ │ │ └── arguments: (length: 1) │ │ │ │ │ │ └── @ IntegerNode (location: (10...11)) + │ │ │ │ │ │ └── flags: decimal │ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ │ ├── block: ∅ │ │ │ │ │ ├── flags: diff --git a/test/yarp/snapshots/whitequark/bug_481.txt b/test/yarp/snapshots/whitequark/bug_481.txt index 94eac2be7728ed..bfd66ff3a7456f 100644 --- a/test/yarp/snapshots/whitequark/bug_481.txt +++ b/test/yarp/snapshots/whitequark/bug_481.txt @@ -31,6 +31,7 @@ └── @ CallNode (location: (16...28)) ├── receiver: │ @ IntegerNode (location: (16...17)) + │ └── flags: decimal ├── call_operator_loc: (17...18) = "." ├── message_loc: (18...21) = "tap" ├── opening_loc: ∅ diff --git a/test/yarp/snapshots/whitequark/bug_interp_single.txt b/test/yarp/snapshots/whitequark/bug_interp_single.txt index 40ed696284f57c..6c7cfc40c9df22 100644 --- a/test/yarp/snapshots/whitequark/bug_interp_single.txt +++ b/test/yarp/snapshots/whitequark/bug_interp_single.txt @@ -12,6 +12,7 @@ │ │ │ @ StatementsNode (location: (3...4)) │ │ │ └── body: (length: 1) │ │ │ └── @ IntegerNode (location: (3...4)) + │ │ │ └── flags: decimal │ │ └── closing_loc: (4...5) = "}" │ └── closing_loc: (5...6) = "\"" └── @ ArrayNode (location: (8...16)) @@ -25,6 +26,7 @@ │ │ │ @ StatementsNode (location: (13...14)) │ │ │ └── body: (length: 1) │ │ │ └── @ IntegerNode (location: (13...14)) + │ │ │ └── flags: decimal │ │ └── closing_loc: (14...15) = "}" │ └── closing_loc: ∅ ├── opening_loc: (8...11) = "%W\"" diff --git a/test/yarp/snapshots/whitequark/casgn_scoped.txt b/test/yarp/snapshots/whitequark/casgn_scoped.txt index 6899a079126989..552bcfa10c8e84 100644 --- a/test/yarp/snapshots/whitequark/casgn_scoped.txt +++ b/test/yarp/snapshots/whitequark/casgn_scoped.txt @@ -16,3 +16,4 @@ ├── operator_loc: (9...10) = "=" └── value: @ IntegerNode (location: (11...13)) + └── flags: decimal diff --git a/test/yarp/snapshots/whitequark/casgn_toplevel.txt b/test/yarp/snapshots/whitequark/casgn_toplevel.txt index 045dd5fd5f18c9..5e81ef35b45373 100644 --- a/test/yarp/snapshots/whitequark/casgn_toplevel.txt +++ b/test/yarp/snapshots/whitequark/casgn_toplevel.txt @@ -14,3 +14,4 @@ ├── operator_loc: (6...7) = "=" └── value: @ IntegerNode (location: (8...10)) + └── flags: decimal diff --git a/test/yarp/snapshots/whitequark/casgn_unscoped.txt b/test/yarp/snapshots/whitequark/casgn_unscoped.txt index 79d659b10704ce..cb00d82e9c4b9d 100644 --- a/test/yarp/snapshots/whitequark/casgn_unscoped.txt +++ b/test/yarp/snapshots/whitequark/casgn_unscoped.txt @@ -8,4 +8,5 @@ ├── name_loc: (0...3) = "Foo" ├── value: │ @ IntegerNode (location: (6...8)) + │ └── flags: decimal └── operator_loc: (4...5) = "=" diff --git a/test/yarp/snapshots/whitequark/complex.txt b/test/yarp/snapshots/whitequark/complex.txt index 04944b936c2985..8bbebf30bdb1f9 100644 --- a/test/yarp/snapshots/whitequark/complex.txt +++ b/test/yarp/snapshots/whitequark/complex.txt @@ -14,8 +14,10 @@ ├── @ ImaginaryNode (location: (15...18)) │ └── numeric: │ @ IntegerNode (location: (15...17)) + │ └── flags: decimal └── @ ImaginaryNode (location: (20...24)) └── numeric: @ RationalNode (location: (20...23)) └── numeric: @ IntegerNode (location: (20...22)) + └── flags: decimal diff --git a/test/yarp/snapshots/whitequark/const_op_asgn.txt b/test/yarp/snapshots/whitequark/const_op_asgn.txt index b2df902b92711b..8ecaccf1cff205 100644 --- a/test/yarp/snapshots/whitequark/const_op_asgn.txt +++ b/test/yarp/snapshots/whitequark/const_op_asgn.txt @@ -14,6 +14,7 @@ │ ├── operator_loc: (4...6) = "+=" │ ├── value: │ │ @ IntegerNode (location: (7...8)) + │ │ └── flags: decimal │ └── operator: :+ ├── @ ConstantOperatorWriteNode (location: (10...16)) │ ├── name: :A @@ -21,6 +22,7 @@ │ ├── operator_loc: (12...14) = "+=" │ ├── value: │ │ @ IntegerNode (location: (15...16)) + │ │ └── flags: decimal │ └── operator: :+ ├── @ ConstantPathOperatorWriteNode (location: (18...27)) │ ├── target: @@ -35,6 +37,7 @@ │ ├── operator_loc: (23...25) = "+=" │ ├── value: │ │ @ IntegerNode (location: (26...27)) + │ │ └── flags: decimal │ └── operator: :+ ├── @ DefNode (location: (29...50)) │ ├── name: :x @@ -55,6 +58,7 @@ │ │ ├── operator_loc: (40...43) = "||=" │ │ └── value: │ │ @ IntegerNode (location: (44...45)) + │ │ └── flags: decimal │ ├── locals: [] │ ├── def_keyword_loc: (29...32) = "def" │ ├── operator_loc: ∅ @@ -82,6 +86,7 @@ │ ├── operator_loc: (67...70) = "||=" │ └── value: │ @ IntegerNode (location: (71...72)) + │ └── flags: decimal ├── locals: [] ├── def_keyword_loc: (52...55) = "def" ├── operator_loc: ∅ diff --git a/test/yarp/snapshots/whitequark/cvasgn.txt b/test/yarp/snapshots/whitequark/cvasgn.txt index 6d1c287d2c08d9..741f646b977848 100644 --- a/test/yarp/snapshots/whitequark/cvasgn.txt +++ b/test/yarp/snapshots/whitequark/cvasgn.txt @@ -8,4 +8,5 @@ ├── name_loc: (0...5) = "@@var" ├── value: │ @ IntegerNode (location: (8...10)) + │ └── flags: decimal └── operator_loc: (6...7) = "=" diff --git a/test/yarp/snapshots/whitequark/endless_method.txt b/test/yarp/snapshots/whitequark/endless_method.txt index f6ebbd90610548..1773f9d0bab09f 100644 --- a/test/yarp/snapshots/whitequark/endless_method.txt +++ b/test/yarp/snapshots/whitequark/endless_method.txt @@ -12,6 +12,7 @@ │ │ @ StatementsNode (location: (12...14)) │ │ └── body: (length: 1) │ │ └── @ IntegerNode (location: (12...14)) + │ │ └── flags: decimal │ ├── locals: [] │ ├── def_keyword_loc: (0...3) = "def" │ ├── operator_loc: ∅ @@ -49,6 +50,7 @@ │ │ │ @ ArgumentsNode (location: (33...34)) │ │ │ └── arguments: (length: 1) │ │ │ └── @ IntegerNode (location: (33...34)) + │ │ │ └── flags: decimal │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: @@ -79,6 +81,7 @@ │ │ @ StatementsNode (location: (52...54)) │ │ └── body: (length: 1) │ │ └── @ IntegerNode (location: (52...54)) + │ │ └── flags: decimal │ ├── locals: [] │ ├── def_keyword_loc: (36...39) = "def" │ ├── operator_loc: (43...44) = "." @@ -126,6 +129,7 @@ │ │ @ ArgumentsNode (location: (77...78)) │ │ └── arguments: (length: 1) │ │ └── @ IntegerNode (location: (77...78)) + │ │ └── flags: decimal │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: diff --git a/test/yarp/snapshots/whitequark/endless_method_with_rescue_mod.txt b/test/yarp/snapshots/whitequark/endless_method_with_rescue_mod.txt index f6d17432f34ee6..b070eaa092d083 100644 --- a/test/yarp/snapshots/whitequark/endless_method_with_rescue_mod.txt +++ b/test/yarp/snapshots/whitequark/endless_method_with_rescue_mod.txt @@ -14,9 +14,11 @@ │ │ └── @ RescueModifierNode (location: (10...20)) │ │ ├── expression: │ │ │ @ IntegerNode (location: (10...11)) + │ │ │ └── flags: decimal │ │ ├── keyword_loc: (12...18) = "rescue" │ │ └── rescue_expression: │ │ @ IntegerNode (location: (19...20)) + │ │ └── flags: decimal │ ├── locals: [] │ ├── def_keyword_loc: (0...3) = "def" │ ├── operator_loc: ∅ @@ -36,9 +38,11 @@ │ └── @ RescueModifierNode (location: (37...47)) │ ├── expression: │ │ @ IntegerNode (location: (37...38)) + │ │ └── flags: decimal │ ├── keyword_loc: (39...45) = "rescue" │ └── rescue_expression: │ @ IntegerNode (location: (46...47)) + │ └── flags: decimal ├── locals: [] ├── def_keyword_loc: (22...25) = "def" ├── operator_loc: (30...31) = "." diff --git a/test/yarp/snapshots/whitequark/endless_method_without_args.txt b/test/yarp/snapshots/whitequark/endless_method_without_args.txt index a96b964d35c37e..1186e46c8ae6c0 100644 --- a/test/yarp/snapshots/whitequark/endless_method_without_args.txt +++ b/test/yarp/snapshots/whitequark/endless_method_without_args.txt @@ -12,6 +12,7 @@ │ │ @ StatementsNode (location: (10...12)) │ │ └── body: (length: 1) │ │ └── @ IntegerNode (location: (10...12)) + │ │ └── flags: decimal │ ├── locals: [] │ ├── def_keyword_loc: (0...3) = "def" │ ├── operator_loc: ∅ @@ -30,6 +31,7 @@ │ │ └── @ RescueModifierNode (location: (24...37)) │ │ ├── expression: │ │ │ @ IntegerNode (location: (24...26)) + │ │ │ └── flags: decimal │ │ ├── keyword_loc: (27...33) = "rescue" │ │ └── rescue_expression: │ │ @ NilNode (location: (34...37)) @@ -50,6 +52,7 @@ │ │ @ StatementsNode (location: (54...56)) │ │ └── body: (length: 1) │ │ └── @ IntegerNode (location: (54...56)) + │ │ └── flags: decimal │ ├── locals: [] │ ├── def_keyword_loc: (39...42) = "def" │ ├── operator_loc: (47...48) = "." @@ -69,6 +72,7 @@ │ └── @ RescueModifierNode (location: (73...86)) │ ├── expression: │ │ @ IntegerNode (location: (73...75)) + │ │ └── flags: decimal │ ├── keyword_loc: (76...82) = "rescue" │ └── rescue_expression: │ @ NilNode (location: (83...86)) diff --git a/test/yarp/snapshots/whitequark/forward_arg_with_open_args.txt b/test/yarp/snapshots/whitequark/forward_arg_with_open_args.txt index a108ab1ecb20c4..4027e849383518 100644 --- a/test/yarp/snapshots/whitequark/forward_arg_with_open_args.txt +++ b/test/yarp/snapshots/whitequark/forward_arg_with_open_args.txt @@ -242,6 +242,7 @@ │ │ │ ├── operator_loc: (180...181) = "=" │ │ │ └── value: │ │ │ @ IntegerNode (location: (182...183)) + │ │ │ └── flags: decimal │ │ ├── posts: (length: 0) │ │ ├── rest: ∅ │ │ ├── keywords: (length: 0) @@ -270,6 +271,7 @@ │ │ │ ├── operator_loc: (204...205) = "=" │ │ │ └── value: │ │ │ @ IntegerNode (location: (206...207)) + │ │ │ └── flags: decimal │ │ ├── posts: (length: 0) │ │ ├── rest: ∅ │ │ ├── keywords: (length: 0) @@ -313,6 +315,7 @@ │ │ │ ├── operator_loc: (239...240) = "=" │ │ │ └── value: │ │ │ @ IntegerNode (location: (241...242)) + │ │ │ └── flags: decimal │ │ ├── posts: (length: 0) │ │ ├── rest: ∅ │ │ ├── keywords: (length: 0) diff --git a/test/yarp/snapshots/whitequark/gvasgn.txt b/test/yarp/snapshots/whitequark/gvasgn.txt index 6d971d3950ee24..226a9396e251a3 100644 --- a/test/yarp/snapshots/whitequark/gvasgn.txt +++ b/test/yarp/snapshots/whitequark/gvasgn.txt @@ -8,4 +8,5 @@ ├── name_loc: (0...4) = "$var" ├── value: │ @ IntegerNode (location: (7...9)) + │ └── flags: decimal └── operator_loc: (5...6) = "=" diff --git a/test/yarp/snapshots/whitequark/hash_hashrocket.txt b/test/yarp/snapshots/whitequark/hash_hashrocket.txt index b1483e48c30807..fd4a2ba5a56fe6 100644 --- a/test/yarp/snapshots/whitequark/hash_hashrocket.txt +++ b/test/yarp/snapshots/whitequark/hash_hashrocket.txt @@ -9,8 +9,10 @@ │ │ └── @ AssocNode (location: (2...8)) │ │ ├── key: │ │ │ @ IntegerNode (location: (2...3)) + │ │ │ └── flags: decimal │ │ ├── value: │ │ │ @ IntegerNode (location: (7...8)) + │ │ │ └── flags: decimal │ │ └── operator_loc: (4...6) = "=>" │ └── closing_loc: (9...10) = "}" └── @ HashNode (location: (12...37)) @@ -19,8 +21,10 @@ │ ├── @ AssocNode (location: (14...20)) │ │ ├── key: │ │ │ @ IntegerNode (location: (14...15)) + │ │ │ └── flags: decimal │ │ ├── value: │ │ │ @ IntegerNode (location: (19...20)) + │ │ │ └── flags: decimal │ │ └── operator_loc: (16...18) = "=>" │ └── @ AssocNode (location: (22...35)) │ ├── key: diff --git a/test/yarp/snapshots/whitequark/hash_kwsplat.txt b/test/yarp/snapshots/whitequark/hash_kwsplat.txt index b576a93ddccc0f..d4fa8eb591f1e5 100644 --- a/test/yarp/snapshots/whitequark/hash_kwsplat.txt +++ b/test/yarp/snapshots/whitequark/hash_kwsplat.txt @@ -15,6 +15,7 @@ │ │ │ └── unescaped: "foo" │ │ ├── value: │ │ │ @ IntegerNode (location: (7...8)) + │ │ │ └── flags: decimal │ │ └── operator_loc: ∅ │ └── @ AssocSplatNode (location: (10...15)) │ ├── value: diff --git a/test/yarp/snapshots/whitequark/hash_label.txt b/test/yarp/snapshots/whitequark/hash_label.txt index ca63d89c8d9226..3abe0a5e411a5a 100644 --- a/test/yarp/snapshots/whitequark/hash_label.txt +++ b/test/yarp/snapshots/whitequark/hash_label.txt @@ -15,5 +15,6 @@ │ │ └── unescaped: "foo" │ ├── value: │ │ @ IntegerNode (location: (7...8)) + │ │ └── flags: decimal │ └── operator_loc: ∅ └── closing_loc: (9...10) = "}" diff --git a/test/yarp/snapshots/whitequark/hash_label_end.txt b/test/yarp/snapshots/whitequark/hash_label_end.txt index ed00728147f8d3..b01b889718b40d 100644 --- a/test/yarp/snapshots/whitequark/hash_label_end.txt +++ b/test/yarp/snapshots/whitequark/hash_label_end.txt @@ -39,6 +39,7 @@ │ │ │ │ @ StatementsNode (location: (10...11)) │ │ │ │ └── body: (length: 1) │ │ │ │ └── @ IntegerNode (location: (10...11)) + │ │ │ │ └── flags: decimal │ │ │ └── end_keyword_loc: ∅ │ │ └── end_keyword_loc: ∅ │ ├── closing_loc: (11...12) = ")" @@ -57,6 +58,7 @@ │ │ │ └── unescaped: "foo" │ │ ├── value: │ │ │ @ IntegerNode (location: (23...24)) + │ │ │ └── flags: decimal │ │ └── operator_loc: ∅ │ └── closing_loc: (25...26) = "}" └── @ HashNode (location: (28...50)) @@ -71,6 +73,7 @@ │ │ │ └── unescaped: "foo" │ │ ├── value: │ │ │ @ IntegerNode (location: (37...38)) + │ │ │ └── flags: decimal │ │ └── operator_loc: ∅ │ └── @ AssocNode (location: (40...49)) │ ├── key: diff --git a/test/yarp/snapshots/whitequark/if_elsif.txt b/test/yarp/snapshots/whitequark/if_elsif.txt index 0911f744bf0961..dd0bedba985ff9 100644 --- a/test/yarp/snapshots/whitequark/if_elsif.txt +++ b/test/yarp/snapshots/whitequark/if_elsif.txt @@ -47,6 +47,7 @@ │ │ @ StatementsNode (location: (24...25)) │ │ └── body: (length: 1) │ │ └── @ IntegerNode (location: (24...25)) + │ │ └── flags: decimal │ ├── consequent: │ │ @ ElseNode (location: (27...38)) │ │ ├── else_keyword_loc: (27...31) = "else" @@ -54,6 +55,7 @@ │ │ │ @ StatementsNode (location: (32...33)) │ │ │ └── body: (length: 1) │ │ │ └── @ IntegerNode (location: (32...33)) + │ │ │ └── flags: decimal │ │ └── end_keyword_loc: (35...38) = "end" │ └── end_keyword_loc: (35...38) = "end" └── end_keyword_loc: (35...38) = "end" diff --git a/test/yarp/snapshots/whitequark/int.txt b/test/yarp/snapshots/whitequark/int.txt index 3a88dd5c021019..3b01c6031dd338 100644 --- a/test/yarp/snapshots/whitequark/int.txt +++ b/test/yarp/snapshots/whitequark/int.txt @@ -4,5 +4,8 @@ @ StatementsNode (location: (0...12)) └── body: (length: 3) ├── @ IntegerNode (location: (0...3)) + │ └── flags: decimal ├── @ IntegerNode (location: (5...8)) + │ └── flags: decimal └── @ IntegerNode (location: (10...12)) + └── flags: decimal diff --git a/test/yarp/snapshots/whitequark/ivasgn.txt b/test/yarp/snapshots/whitequark/ivasgn.txt index 653d93ae0a5649..b8678c182d0f35 100644 --- a/test/yarp/snapshots/whitequark/ivasgn.txt +++ b/test/yarp/snapshots/whitequark/ivasgn.txt @@ -8,4 +8,5 @@ ├── name_loc: (0...4) = "@var" ├── value: │ @ IntegerNode (location: (7...9)) + │ └── flags: decimal └── operator_loc: (5...6) = "=" diff --git a/test/yarp/snapshots/whitequark/kwoptarg.txt b/test/yarp/snapshots/whitequark/kwoptarg.txt index b25ce1dee9a49b..b1973c88ee6396 100644 --- a/test/yarp/snapshots/whitequark/kwoptarg.txt +++ b/test/yarp/snapshots/whitequark/kwoptarg.txt @@ -19,6 +19,7 @@ │ │ ├── name_loc: (6...10) = "foo:" │ │ └── value: │ │ @ IntegerNode (location: (11...12)) + │ │ └── flags: decimal │ ├── keyword_rest: ∅ │ └── block: ∅ ├── body: ∅ diff --git a/test/yarp/snapshots/whitequark/lvasgn.txt b/test/yarp/snapshots/whitequark/lvasgn.txt index 0c968b9830d586..a76108c048e7dc 100644 --- a/test/yarp/snapshots/whitequark/lvasgn.txt +++ b/test/yarp/snapshots/whitequark/lvasgn.txt @@ -9,6 +9,7 @@ │ ├── name_loc: (0...3) = "var" │ ├── value: │ │ @ IntegerNode (location: (6...8)) + │ │ └── flags: decimal │ └── operator_loc: (4...5) = "=" └── @ LocalVariableReadNode (location: (10...13)) ├── name: :var diff --git a/test/yarp/snapshots/whitequark/masgn.txt b/test/yarp/snapshots/whitequark/masgn.txt index 301544a6532a0c..c498b95e51d75c 100644 --- a/test/yarp/snapshots/whitequark/masgn.txt +++ b/test/yarp/snapshots/whitequark/masgn.txt @@ -18,7 +18,9 @@ │ @ ArrayNode (location: (13...17)) │ ├── elements: (length: 2) │ │ ├── @ IntegerNode (location: (13...14)) + │ │ │ └── flags: decimal │ │ └── @ IntegerNode (location: (16...17)) + │ │ └── flags: decimal │ ├── opening_loc: ∅ │ └── closing_loc: ∅ ├── @ MultiWriteNode (location: (19...34)) @@ -36,7 +38,9 @@ │ @ ArrayNode (location: (30...34)) │ ├── elements: (length: 2) │ │ ├── @ IntegerNode (location: (30...31)) + │ │ │ └── flags: decimal │ │ └── @ IntegerNode (location: (33...34)) + │ │ └── flags: decimal │ ├── opening_loc: ∅ │ └── closing_loc: ∅ └── @ MultiWriteNode (location: (36...56)) @@ -57,6 +61,8 @@ @ ArrayNode (location: (52...56)) ├── elements: (length: 2) │ ├── @ IntegerNode (location: (52...53)) + │ │ └── flags: decimal │ └── @ IntegerNode (location: (55...56)) + │ └── flags: decimal ├── opening_loc: ∅ └── closing_loc: ∅ diff --git a/test/yarp/snapshots/whitequark/masgn_attr.txt b/test/yarp/snapshots/whitequark/masgn_attr.txt index ac43b74c387e2d..68a287fdb78497 100644 --- a/test/yarp/snapshots/whitequark/masgn_attr.txt +++ b/test/yarp/snapshots/whitequark/masgn_attr.txt @@ -49,7 +49,9 @@ │ │ │ @ ArgumentsNode (location: (32...36)) │ │ │ └── arguments: (length: 2) │ │ │ ├── @ IntegerNode (location: (32...33)) + │ │ │ │ └── flags: decimal │ │ │ └── @ IntegerNode (location: (35...36)) + │ │ │ └── flags: decimal │ │ ├── closing_loc: (36...37) = "]" │ │ ├── block: ∅ │ │ ├── flags: diff --git a/test/yarp/snapshots/whitequark/multiple_pattern_matches.txt b/test/yarp/snapshots/whitequark/multiple_pattern_matches.txt index c122576853cd58..39424a9eb08a3d 100644 --- a/test/yarp/snapshots/whitequark/multiple_pattern_matches.txt +++ b/test/yarp/snapshots/whitequark/multiple_pattern_matches.txt @@ -17,6 +17,7 @@ │ │ │ │ └── unescaped: "a" │ │ │ ├── value: │ │ │ │ @ IntegerNode (location: (4...5)) + │ │ │ │ └── flags: decimal │ │ │ └── operator_loc: ∅ │ │ └── closing_loc: (5...6) = "}" │ ├── pattern: @@ -50,6 +51,7 @@ │ │ │ │ └── unescaped: "a" │ │ │ ├── value: │ │ │ │ @ IntegerNode (location: (17...18)) + │ │ │ │ └── flags: decimal │ │ │ └── operator_loc: ∅ │ │ └── closing_loc: (18...19) = "}" │ ├── pattern: @@ -83,6 +85,7 @@ │ │ │ │ └── unescaped: "a" │ │ │ ├── value: │ │ │ │ @ IntegerNode (location: (31...32)) + │ │ │ │ └── flags: decimal │ │ │ └── operator_loc: ∅ │ │ └── closing_loc: (32...33) = "}" │ ├── pattern: @@ -116,6 +119,7 @@ │ │ │ └── unescaped: "a" │ │ ├── value: │ │ │ @ IntegerNode (location: (44...45)) + │ │ │ └── flags: decimal │ │ └── operator_loc: ∅ │ └── closing_loc: (45...46) = "}" ├── pattern: diff --git a/test/yarp/snapshots/whitequark/newline_in_hash_argument.txt b/test/yarp/snapshots/whitequark/newline_in_hash_argument.txt index f28205b8460ddd..4f07fa43576be4 100644 --- a/test/yarp/snapshots/whitequark/newline_in_hash_argument.txt +++ b/test/yarp/snapshots/whitequark/newline_in_hash_argument.txt @@ -37,6 +37,7 @@ │ │ │ │ @ StatementsNode (location: (15...21)) │ │ │ │ └── body: (length: 2) │ │ │ │ ├── @ IntegerNode (location: (15...16)) + │ │ │ │ │ └── flags: decimal │ │ │ │ └── @ TrueNode (location: (17...21)) │ │ │ ├── in_loc: (9...11) = "in" │ │ │ └── then_loc: ∅ @@ -61,6 +62,7 @@ │ │ │ @ StatementsNode (location: (30...36)) │ │ │ └── body: (length: 2) │ │ │ ├── @ IntegerNode (location: (30...31)) + │ │ │ │ └── flags: decimal │ │ │ └── @ TrueNode (location: (32...36)) │ │ ├── in_loc: (22...24) = "in" │ │ └── then_loc: ∅ @@ -96,6 +98,7 @@ │ │ │ └── unescaped: "foo" │ │ ├── value: │ │ │ @ IntegerNode (location: (57...58)) + │ │ │ └── flags: decimal │ │ └── operator_loc: ∅ │ ├── closing_loc: ∅ │ ├── block: ∅ @@ -130,6 +133,7 @@ │ │ └── unescaped: "foo" │ ├── value: │ │ @ IntegerNode (location: (73...74)) + │ │ └── flags: decimal │ └── operator_loc: ∅ ├── closing_loc: ∅ ├── block: ∅ diff --git a/test/yarp/snapshots/whitequark/non_lvar_injecting_match.txt b/test/yarp/snapshots/whitequark/non_lvar_injecting_match.txt index 03ca1477f92503..f656a29929c045 100644 --- a/test/yarp/snapshots/whitequark/non_lvar_injecting_match.txt +++ b/test/yarp/snapshots/whitequark/non_lvar_injecting_match.txt @@ -14,6 +14,7 @@ │ │ │ │ @ StatementsNode (location: (3...4)) │ │ │ │ └── body: (length: 1) │ │ │ │ └── @ IntegerNode (location: (3...4)) + │ │ │ │ └── flags: decimal │ │ │ └── closing_loc: (4...5) = "}" │ │ └── @ StringNode (location: (5...18)) │ │ ├── opening_loc: ∅ diff --git a/test/yarp/snapshots/whitequark/op_asgn.txt b/test/yarp/snapshots/whitequark/op_asgn.txt index 34671f4cab1d80..60df47b840effa 100644 --- a/test/yarp/snapshots/whitequark/op_asgn.txt +++ b/test/yarp/snapshots/whitequark/op_asgn.txt @@ -27,6 +27,7 @@ │ ├── operator_loc: (6...8) = "+=" │ └── value: │ @ IntegerNode (location: (9...10)) + │ └── flags: decimal ├── @ CallOperatorWriteNode (location: (12...22)) │ ├── receiver: │ │ @ CallNode (location: (12...15)) @@ -51,6 +52,7 @@ │ ├── operator_loc: (18...20) = "+=" │ └── value: │ @ IntegerNode (location: (21...22)) + │ └── flags: decimal └── @ CallOperatorWriteNode (location: (24...35)) ├── receiver: │ @ CallNode (location: (24...27)) @@ -75,3 +77,4 @@ ├── operator_loc: (31...33) = "+=" └── value: @ IntegerNode (location: (34...35)) + └── flags: decimal diff --git a/test/yarp/snapshots/whitequark/op_asgn_index.txt b/test/yarp/snapshots/whitequark/op_asgn_index.txt index a2055783fb2fde..8c212dd4c3b236 100644 --- a/test/yarp/snapshots/whitequark/op_asgn_index.txt +++ b/test/yarp/snapshots/whitequark/op_asgn_index.txt @@ -22,7 +22,9 @@ │ @ ArgumentsNode (location: (4...8)) │ └── arguments: (length: 2) │ ├── @ IntegerNode (location: (4...5)) + │ │ └── flags: decimal │ └── @ IntegerNode (location: (7...8)) + │ └── flags: decimal ├── closing_loc: (8...9) = "]" ├── flags: ├── read_name: "[]" @@ -31,3 +33,4 @@ ├── operator_loc: (10...12) = "+=" └── value: @ IntegerNode (location: (13...14)) + └── flags: decimal diff --git a/test/yarp/snapshots/whitequark/op_asgn_index_cmd.txt b/test/yarp/snapshots/whitequark/op_asgn_index_cmd.txt index 6280b1bfc36cca..6f803e8931d2de 100644 --- a/test/yarp/snapshots/whitequark/op_asgn_index_cmd.txt +++ b/test/yarp/snapshots/whitequark/op_asgn_index_cmd.txt @@ -22,7 +22,9 @@ │ @ ArgumentsNode (location: (4...8)) │ └── arguments: (length: 2) │ ├── @ IntegerNode (location: (4...5)) + │ │ └── flags: decimal │ └── @ IntegerNode (location: (7...8)) + │ └── flags: decimal ├── closing_loc: (8...9) = "]" ├── flags: ├── read_name: "[]" diff --git a/test/yarp/snapshots/whitequark/optarg.txt b/test/yarp/snapshots/whitequark/optarg.txt index 20a4288191be6f..dbc5fe6b32f47a 100644 --- a/test/yarp/snapshots/whitequark/optarg.txt +++ b/test/yarp/snapshots/whitequark/optarg.txt @@ -17,6 +17,7 @@ │ │ │ ├── operator_loc: (10...11) = "=" │ │ │ └── value: │ │ │ @ IntegerNode (location: (12...13)) + │ │ │ └── flags: decimal │ │ ├── posts: (length: 0) │ │ ├── rest: ∅ │ │ ├── keywords: (length: 0) @@ -44,12 +45,14 @@ │ │ │ ├── operator_loc: (29...30) = "=" │ │ │ └── value: │ │ │ @ IntegerNode (location: (30...31)) + │ │ │ └── flags: decimal │ │ └── @ OptionalParameterNode (location: (33...38)) │ │ ├── name: :bar │ │ ├── name_loc: (33...36) = "bar" │ │ ├── operator_loc: (36...37) = "=" │ │ └── value: │ │ @ IntegerNode (location: (37...38)) + │ │ └── flags: decimal │ ├── posts: (length: 0) │ ├── rest: ∅ │ ├── keywords: (length: 0) diff --git a/test/yarp/snapshots/whitequark/or_asgn.txt b/test/yarp/snapshots/whitequark/or_asgn.txt index a97ea268488e54..51822c18379287 100644 --- a/test/yarp/snapshots/whitequark/or_asgn.txt +++ b/test/yarp/snapshots/whitequark/or_asgn.txt @@ -26,6 +26,7 @@ │ ├── operator_loc: (6...9) = "||=" │ └── value: │ @ IntegerNode (location: (10...11)) + │ └── flags: decimal └── @ CallOrWriteNode (location: (13...28)) ├── receiver: │ @ CallNode (location: (13...16)) @@ -45,7 +46,9 @@ │ @ ArgumentsNode (location: (17...21)) │ └── arguments: (length: 2) │ ├── @ IntegerNode (location: (17...18)) + │ │ └── flags: decimal │ └── @ IntegerNode (location: (20...21)) + │ └── flags: decimal ├── closing_loc: (21...22) = "]" ├── flags: ├── read_name: "[]" @@ -53,3 +56,4 @@ ├── operator_loc: (23...26) = "||=" └── value: @ IntegerNode (location: (27...28)) + └── flags: decimal diff --git a/test/yarp/snapshots/whitequark/pattern_matching__FILE__LINE_literals.txt b/test/yarp/snapshots/whitequark/pattern_matching__FILE__LINE_literals.txt index 8521e21dab0b36..09b9d5192c3293 100644 --- a/test/yarp/snapshots/whitequark/pattern_matching__FILE__LINE_literals.txt +++ b/test/yarp/snapshots/whitequark/pattern_matching__FILE__LINE_literals.txt @@ -19,6 +19,7 @@ │ │ │ │ @ ArgumentsNode (location: (35...36)) │ │ │ │ └── arguments: (length: 1) │ │ │ │ └── @ IntegerNode (location: (35...36)) + │ │ │ │ └── flags: decimal │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: diff --git a/test/yarp/snapshots/whitequark/pattern_matching_blank_else.txt b/test/yarp/snapshots/whitequark/pattern_matching_blank_else.txt index 169f62b7c19223..9f05329cc2c086 100644 --- a/test/yarp/snapshots/whitequark/pattern_matching_blank_else.txt +++ b/test/yarp/snapshots/whitequark/pattern_matching_blank_else.txt @@ -6,14 +6,17 @@ └── @ CaseNode (location: (0...26)) ├── predicate: │ @ IntegerNode (location: (5...6)) + │ └── flags: decimal ├── conditions: (length: 1) │ └── @ InNode (location: (8...15)) │ ├── pattern: │ │ @ IntegerNode (location: (11...12)) + │ │ └── flags: decimal │ ├── statements: │ │ @ StatementsNode (location: (14...15)) │ │ └── body: (length: 1) │ │ └── @ IntegerNode (location: (14...15)) + │ │ └── flags: decimal │ ├── in_loc: (8...10) = "in" │ └── then_loc: ∅ ├── consequent: diff --git a/test/yarp/snapshots/whitequark/pattern_matching_else.txt b/test/yarp/snapshots/whitequark/pattern_matching_else.txt index 028e46497ef7dc..c66ae602eb03bf 100644 --- a/test/yarp/snapshots/whitequark/pattern_matching_else.txt +++ b/test/yarp/snapshots/whitequark/pattern_matching_else.txt @@ -6,14 +6,17 @@ └── @ CaseNode (location: (0...29)) ├── predicate: │ @ IntegerNode (location: (5...6)) + │ └── flags: decimal ├── conditions: (length: 1) │ └── @ InNode (location: (8...15)) │ ├── pattern: │ │ @ IntegerNode (location: (11...12)) + │ │ └── flags: decimal │ ├── statements: │ │ @ StatementsNode (location: (14...15)) │ │ └── body: (length: 1) │ │ └── @ IntegerNode (location: (14...15)) + │ │ └── flags: decimal │ ├── in_loc: (8...10) = "in" │ └── then_loc: ∅ ├── consequent: @@ -23,6 +26,7 @@ │ │ @ StatementsNode (location: (23...24)) │ │ └── body: (length: 1) │ │ └── @ IntegerNode (location: (23...24)) + │ │ └── flags: decimal │ └── end_keyword_loc: (26...29) = "end" ├── case_keyword_loc: (0...4) = "case" └── end_keyword_loc: (26...29) = "end" diff --git a/test/yarp/snapshots/whitequark/pattern_matching_single_line.txt b/test/yarp/snapshots/whitequark/pattern_matching_single_line.txt index c9afd9374c3ea2..c80c965025ce3d 100644 --- a/test/yarp/snapshots/whitequark/pattern_matching_single_line.txt +++ b/test/yarp/snapshots/whitequark/pattern_matching_single_line.txt @@ -6,6 +6,7 @@ ├── @ MatchRequiredNode (location: (0...8)) │ ├── value: │ │ @ IntegerNode (location: (0...1)) + │ │ └── flags: decimal │ ├── pattern: │ │ @ ArrayPatternNode (location: (5...8)) │ │ ├── constant: ∅ @@ -24,6 +25,7 @@ ├── @ MatchPredicateNode (location: (13...21)) │ ├── value: │ │ @ IntegerNode (location: (13...14)) + │ │ └── flags: decimal │ ├── pattern: │ │ @ ArrayPatternNode (location: (18...21)) │ │ ├── constant: ∅ diff --git a/test/yarp/snapshots/whitequark/pattern_matching_single_line_allowed_omission_of_parentheses.txt b/test/yarp/snapshots/whitequark/pattern_matching_single_line_allowed_omission_of_parentheses.txt index badaa3b8e26bc4..90afc2c947a2ba 100644 --- a/test/yarp/snapshots/whitequark/pattern_matching_single_line_allowed_omission_of_parentheses.txt +++ b/test/yarp/snapshots/whitequark/pattern_matching_single_line_allowed_omission_of_parentheses.txt @@ -8,7 +8,9 @@ │ │ @ ArrayNode (location: (0...6)) │ │ ├── elements: (length: 2) │ │ │ ├── @ IntegerNode (location: (1...2)) + │ │ │ │ └── flags: decimal │ │ │ └── @ IntegerNode (location: (4...5)) + │ │ │ └── flags: decimal │ │ ├── opening_loc: (0...1) = "[" │ │ └── closing_loc: (5...6) = "]" │ ├── pattern: @@ -34,7 +36,9 @@ │ │ @ ArrayNode (location: (19...25)) │ │ ├── elements: (length: 2) │ │ │ ├── @ IntegerNode (location: (20...21)) + │ │ │ │ └── flags: decimal │ │ │ └── @ IntegerNode (location: (23...24)) + │ │ │ └── flags: decimal │ │ ├── opening_loc: (19...20) = "[" │ │ └── closing_loc: (24...25) = "]" │ ├── pattern: @@ -69,6 +73,7 @@ │ │ │ │ └── unescaped: "a" │ │ │ ├── value: │ │ │ │ @ IntegerNode (location: (42...43)) + │ │ │ │ └── flags: decimal │ │ │ └── operator_loc: ∅ │ │ └── closing_loc: (43...44) = "}" │ ├── pattern: @@ -105,6 +110,7 @@ │ │ │ │ └── unescaped: "a" │ │ │ ├── value: │ │ │ │ @ IntegerNode (location: (59...60)) + │ │ │ │ └── flags: decimal │ │ │ └── operator_loc: ∅ │ │ └── closing_loc: (60...61) = "}" │ ├── pattern: diff --git a/test/yarp/snapshots/whitequark/postexe.txt b/test/yarp/snapshots/whitequark/postexe.txt index 222b9257652785..a879a0ec4a480a 100644 --- a/test/yarp/snapshots/whitequark/postexe.txt +++ b/test/yarp/snapshots/whitequark/postexe.txt @@ -8,6 +8,7 @@ │ @ StatementsNode (location: (6...7)) │ └── body: (length: 1) │ └── @ IntegerNode (location: (6...7)) + │ └── flags: decimal ├── keyword_loc: (0...3) = "END" ├── opening_loc: (4...5) = "{" └── closing_loc: (8...9) = "}" diff --git a/test/yarp/snapshots/whitequark/preexe.txt b/test/yarp/snapshots/whitequark/preexe.txt index 7089a7fde84b15..1eeecf45ca93d3 100644 --- a/test/yarp/snapshots/whitequark/preexe.txt +++ b/test/yarp/snapshots/whitequark/preexe.txt @@ -8,6 +8,7 @@ │ @ StatementsNode (location: (8...9)) │ └── body: (length: 1) │ └── @ IntegerNode (location: (8...9)) + │ └── flags: decimal ├── keyword_loc: (0...5) = "BEGIN" ├── opening_loc: (6...7) = "{" └── closing_loc: (10...11) = "}" diff --git a/test/yarp/snapshots/whitequark/range_exclusive.txt b/test/yarp/snapshots/whitequark/range_exclusive.txt index 556bf3c3325d1c..5236911e587b6b 100644 --- a/test/yarp/snapshots/whitequark/range_exclusive.txt +++ b/test/yarp/snapshots/whitequark/range_exclusive.txt @@ -6,7 +6,9 @@ └── @ RangeNode (location: (0...5)) ├── left: │ @ IntegerNode (location: (0...1)) + │ └── flags: decimal ├── right: │ @ IntegerNode (location: (4...5)) + │ └── flags: decimal ├── operator_loc: (1...4) = "..." └── flags: exclude_end diff --git a/test/yarp/snapshots/whitequark/range_inclusive.txt b/test/yarp/snapshots/whitequark/range_inclusive.txt index cf3c477130757b..5d75fb96c0f29b 100644 --- a/test/yarp/snapshots/whitequark/range_inclusive.txt +++ b/test/yarp/snapshots/whitequark/range_inclusive.txt @@ -6,7 +6,9 @@ └── @ RangeNode (location: (0...4)) ├── left: │ @ IntegerNode (location: (0...1)) + │ └── flags: decimal ├── right: │ @ IntegerNode (location: (3...4)) + │ └── flags: decimal ├── operator_loc: (1...3) = ".." └── flags: diff --git a/test/yarp/snapshots/whitequark/rational.txt b/test/yarp/snapshots/whitequark/rational.txt index 1aab887633c481..50fd5f2bb56b46 100644 --- a/test/yarp/snapshots/whitequark/rational.txt +++ b/test/yarp/snapshots/whitequark/rational.txt @@ -9,3 +9,4 @@ └── @ RationalNode (location: (7...10)) └── numeric: @ IntegerNode (location: (7...9)) + └── flags: decimal diff --git a/test/yarp/snapshots/whitequark/rescue_mod_masgn.txt b/test/yarp/snapshots/whitequark/rescue_mod_masgn.txt index b62027fc1f45dc..853f0dfdb39137 100644 --- a/test/yarp/snapshots/whitequark/rescue_mod_masgn.txt +++ b/test/yarp/snapshots/whitequark/rescue_mod_masgn.txt @@ -32,6 +32,8 @@ @ ArrayNode (location: (23...29)) ├── elements: (length: 2) │ ├── @ IntegerNode (location: (24...25)) + │ │ └── flags: decimal │ └── @ IntegerNode (location: (27...28)) + │ └── flags: decimal ├── opening_loc: (23...24) = "[" └── closing_loc: (28...29) = "]" diff --git a/test/yarp/snapshots/whitequark/ruby_bug_10279.txt b/test/yarp/snapshots/whitequark/ruby_bug_10279.txt index 5406280cc4175c..b0cbc4b02d61b4 100644 --- a/test/yarp/snapshots/whitequark/ruby_bug_10279.txt +++ b/test/yarp/snapshots/whitequark/ruby_bug_10279.txt @@ -22,6 +22,7 @@ │ │ │ @ StatementsNode (location: (17...19)) │ │ │ └── body: (length: 1) │ │ │ └── @ IntegerNode (location: (17...19)) + │ │ │ └── flags: decimal │ │ ├── consequent: ∅ │ │ └── end_keyword_loc: (20...23) = "end" │ └── operator_loc: ∅ diff --git a/test/yarp/snapshots/whitequark/ruby_bug_10653.txt b/test/yarp/snapshots/whitequark/ruby_bug_10653.txt index d9a52bc813bc16..0025e0f52f8703 100644 --- a/test/yarp/snapshots/whitequark/ruby_bug_10653.txt +++ b/test/yarp/snapshots/whitequark/ruby_bug_10653.txt @@ -107,6 +107,7 @@ │ └── @ CallNode (location: (69...89)) │ ├── receiver: │ │ @ IntegerNode (location: (69...70)) + │ │ └── flags: decimal │ ├── call_operator_loc: (70...71) = "." │ ├── message_loc: (71...74) = "tap" │ ├── opening_loc: ∅ @@ -160,5 +161,6 @@ │ │ @ StatementsNode (location: (92...93)) │ │ └── body: (length: 1) │ │ └── @ IntegerNode (location: (92...93)) + │ │ └── flags: decimal │ └── end_keyword_loc: ∅ └── end_keyword_loc: ∅ diff --git a/test/yarp/snapshots/whitequark/ruby_bug_11380.txt b/test/yarp/snapshots/whitequark/ruby_bug_11380.txt index c93fb9132f0451..e27749424d9a54 100644 --- a/test/yarp/snapshots/whitequark/ruby_bug_11380.txt +++ b/test/yarp/snapshots/whitequark/ruby_bug_11380.txt @@ -36,6 +36,7 @@ │ │ └── unescaped: "a" │ ├── value: │ │ @ IntegerNode (location: (20...21)) + │ │ └── flags: decimal │ └── operator_loc: ∅ ├── closing_loc: ∅ ├── block: diff --git a/test/yarp/snapshots/whitequark/ruby_bug_11873_a.txt b/test/yarp/snapshots/whitequark/ruby_bug_11873_a.txt index 6acf93030239dd..b4a99f5d9defb0 100644 --- a/test/yarp/snapshots/whitequark/ruby_bug_11873_a.txt +++ b/test/yarp/snapshots/whitequark/ruby_bug_11873_a.txt @@ -46,6 +46,7 @@ │ │ │ ├── flags: │ │ │ └── name: "b" │ │ └── @ IntegerNode (location: (10...11)) + │ │ └── flags: decimal │ ├── closing_loc: ∅ │ ├── block: │ │ @ BlockNode (location: (12...18)) @@ -319,6 +320,7 @@ │ │ │ ├── flags: │ │ │ └── name: "b" │ │ └── @ IntegerNode (location: (120...121)) + │ │ └── flags: decimal │ ├── closing_loc: ∅ │ ├── block: │ │ @ BlockNode (location: (122...128)) @@ -598,6 +600,7 @@ │ │ │ ├── flags: │ │ │ └── name: "b" │ │ └── @ IntegerNode (location: (233...234)) + │ │ └── flags: decimal │ ├── closing_loc: ∅ │ ├── block: │ │ @ BlockNode (location: (235...241)) @@ -901,6 +904,7 @@ │ │ │ ├── flags: │ │ │ └── name: "b" │ │ └── @ IntegerNode (location: (343...344)) + │ │ └── flags: decimal │ ├── closing_loc: ∅ │ ├── block: │ │ @ BlockNode (location: (345...351)) diff --git a/test/yarp/snapshots/whitequark/ruby_bug_12073.txt b/test/yarp/snapshots/whitequark/ruby_bug_12073.txt index 8de2a87bef7227..2546dafa72226d 100644 --- a/test/yarp/snapshots/whitequark/ruby_bug_12073.txt +++ b/test/yarp/snapshots/whitequark/ruby_bug_12073.txt @@ -9,6 +9,7 @@ │ ├── name_loc: (0...1) = "a" │ ├── value: │ │ @ IntegerNode (location: (4...5)) + │ │ └── flags: decimal │ └── operator_loc: (2...3) = "=" ├── @ CallNode (location: (7...13)) │ ├── receiver: ∅ @@ -29,6 +30,7 @@ │ │ │ └── unescaped: "b" │ │ ├── value: │ │ │ @ IntegerNode (location: (12...13)) + │ │ │ └── flags: decimal │ │ └── operator_loc: ∅ │ ├── closing_loc: ∅ │ ├── block: ∅ diff --git a/test/yarp/snapshots/whitequark/ruby_bug_12402.txt b/test/yarp/snapshots/whitequark/ruby_bug_12402.txt index 8b79f1a88362a6..8c0f7baef96e35 100644 --- a/test/yarp/snapshots/whitequark/ruby_bug_12402.txt +++ b/test/yarp/snapshots/whitequark/ruby_bug_12402.txt @@ -487,6 +487,7 @@ │ │ @ ArgumentsNode (location: (378...379)) │ │ └── arguments: (length: 1) │ │ └── @ IntegerNode (location: (378...379)) + │ │ └── flags: decimal │ ├── closing_loc: (379...380) = "]" │ ├── flags: │ ├── read_name: "[]" @@ -533,6 +534,7 @@ │ @ ArgumentsNode (location: (410...411)) │ └── arguments: (length: 1) │ └── @ IntegerNode (location: (410...411)) + │ └── flags: decimal ├── closing_loc: (411...412) = "]" ├── flags: ├── read_name: "[]" diff --git a/test/yarp/snapshots/whitequark/ruby_bug_9669.txt b/test/yarp/snapshots/whitequark/ruby_bug_9669.txt index 4e729786960fed..80fa43fcfa32e7 100644 --- a/test/yarp/snapshots/whitequark/ruby_bug_9669.txt +++ b/test/yarp/snapshots/whitequark/ruby_bug_9669.txt @@ -50,6 +50,7 @@ │ │ │ └── unescaped: "a" │ │ ├── value: │ │ │ @ IntegerNode (location: (30...31)) + │ │ │ └── flags: decimal │ │ └── operator_loc: ∅ │ └── closing_loc: (32...33) = "}" └── operator_loc: (23...24) = "=" diff --git a/test/yarp/snapshots/whitequark/send_attr_asgn.txt b/test/yarp/snapshots/whitequark/send_attr_asgn.txt index 0d901d8b65c7fd..16dcf054dfbb8a 100644 --- a/test/yarp/snapshots/whitequark/send_attr_asgn.txt +++ b/test/yarp/snapshots/whitequark/send_attr_asgn.txt @@ -22,6 +22,7 @@ │ │ @ ArgumentsNode (location: (8...9)) │ │ └── arguments: (length: 1) │ │ └── @ IntegerNode (location: (8...9)) + │ │ └── flags: decimal │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: @@ -45,6 +46,7 @@ │ │ @ ArgumentsNode (location: (19...20)) │ │ └── arguments: (length: 1) │ │ └── @ IntegerNode (location: (19...20)) + │ │ └── flags: decimal │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: @@ -70,6 +72,7 @@ │ ├── operator_loc: (29...30) = "=" │ └── value: │ @ IntegerNode (location: (31...32)) + │ └── flags: decimal └── @ CallNode (location: (34...44)) ├── receiver: │ @ CallNode (location: (34...37)) @@ -89,6 +92,7 @@ │ @ ArgumentsNode (location: (43...44)) │ └── arguments: (length: 1) │ └── @ IntegerNode (location: (43...44)) + │ └── flags: decimal ├── closing_loc: ∅ ├── block: ∅ ├── flags: diff --git a/test/yarp/snapshots/whitequark/send_attr_asgn_conditional.txt b/test/yarp/snapshots/whitequark/send_attr_asgn_conditional.txt index d6dc44e7839b2b..6624bb372b086c 100644 --- a/test/yarp/snapshots/whitequark/send_attr_asgn_conditional.txt +++ b/test/yarp/snapshots/whitequark/send_attr_asgn_conditional.txt @@ -22,6 +22,7 @@ │ @ ArgumentsNode (location: (7...8)) │ └── arguments: (length: 1) │ └── @ IntegerNode (location: (7...8)) + │ └── flags: decimal ├── closing_loc: ∅ ├── block: ∅ ├── flags: safe_navigation diff --git a/test/yarp/snapshots/whitequark/send_binary_op.txt b/test/yarp/snapshots/whitequark/send_binary_op.txt index 966b64eff10537..568a3004bfe1c2 100644 --- a/test/yarp/snapshots/whitequark/send_binary_op.txt +++ b/test/yarp/snapshots/whitequark/send_binary_op.txt @@ -22,6 +22,7 @@ │ │ @ ArgumentsNode (location: (7...8)) │ │ └── arguments: (length: 1) │ │ └── @ IntegerNode (location: (7...8)) + │ │ └── flags: decimal │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: @@ -45,6 +46,7 @@ │ │ @ ArgumentsNode (location: (17...18)) │ │ └── arguments: (length: 1) │ │ └── @ IntegerNode (location: (17...18)) + │ │ └── flags: decimal │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: @@ -68,6 +70,7 @@ │ │ @ ArgumentsNode (location: (26...27)) │ │ └── arguments: (length: 1) │ │ └── @ IntegerNode (location: (26...27)) + │ │ └── flags: decimal │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: @@ -91,6 +94,7 @@ │ │ @ ArgumentsNode (location: (35...36)) │ │ └── arguments: (length: 1) │ │ └── @ IntegerNode (location: (35...36)) + │ │ └── flags: decimal │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: @@ -114,6 +118,7 @@ │ │ @ ArgumentsNode (location: (44...45)) │ │ └── arguments: (length: 1) │ │ └── @ IntegerNode (location: (44...45)) + │ │ └── flags: decimal │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: @@ -137,6 +142,7 @@ │ │ @ ArgumentsNode (location: (54...55)) │ │ └── arguments: (length: 1) │ │ └── @ IntegerNode (location: (54...55)) + │ │ └── flags: decimal │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: @@ -160,6 +166,7 @@ │ │ @ ArgumentsNode (location: (63...64)) │ │ └── arguments: (length: 1) │ │ └── @ IntegerNode (location: (63...64)) + │ │ └── flags: decimal │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: @@ -183,6 +190,7 @@ │ │ @ ArgumentsNode (location: (72...73)) │ │ └── arguments: (length: 1) │ │ └── @ IntegerNode (location: (72...73)) + │ │ └── flags: decimal │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: @@ -206,6 +214,7 @@ │ │ @ ArgumentsNode (location: (81...82)) │ │ └── arguments: (length: 1) │ │ └── @ IntegerNode (location: (81...82)) + │ │ └── flags: decimal │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: @@ -229,6 +238,7 @@ │ │ @ ArgumentsNode (location: (90...91)) │ │ └── arguments: (length: 1) │ │ └── @ IntegerNode (location: (90...91)) + │ │ └── flags: decimal │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: @@ -252,6 +262,7 @@ │ │ @ ArgumentsNode (location: (100...101)) │ │ └── arguments: (length: 1) │ │ └── @ IntegerNode (location: (100...101)) + │ │ └── flags: decimal │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: @@ -275,6 +286,7 @@ │ │ @ ArgumentsNode (location: (110...111)) │ │ └── arguments: (length: 1) │ │ └── @ IntegerNode (location: (110...111)) + │ │ └── flags: decimal │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: @@ -298,6 +310,7 @@ │ │ @ ArgumentsNode (location: (121...122)) │ │ └── arguments: (length: 1) │ │ └── @ IntegerNode (location: (121...122)) + │ │ └── flags: decimal │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: @@ -321,6 +334,7 @@ │ │ @ ArgumentsNode (location: (131...132)) │ │ └── arguments: (length: 1) │ │ └── @ IntegerNode (location: (131...132)) + │ │ └── flags: decimal │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: @@ -344,6 +358,7 @@ │ │ @ ArgumentsNode (location: (142...143)) │ │ └── arguments: (length: 1) │ │ └── @ IntegerNode (location: (142...143)) + │ │ └── flags: decimal │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: @@ -367,6 +382,7 @@ │ │ @ ArgumentsNode (location: (152...153)) │ │ └── arguments: (length: 1) │ │ └── @ IntegerNode (location: (152...153)) + │ │ └── flags: decimal │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: @@ -390,6 +406,7 @@ │ │ @ ArgumentsNode (location: (161...162)) │ │ └── arguments: (length: 1) │ │ └── @ IntegerNode (location: (161...162)) + │ │ └── flags: decimal │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: @@ -413,6 +430,7 @@ │ │ @ ArgumentsNode (location: (171...172)) │ │ └── arguments: (length: 1) │ │ └── @ IntegerNode (location: (171...172)) + │ │ └── flags: decimal │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: @@ -436,6 +454,7 @@ │ │ @ ArgumentsNode (location: (181...182)) │ │ └── arguments: (length: 1) │ │ └── @ IntegerNode (location: (181...182)) + │ │ └── flags: decimal │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: @@ -459,6 +478,7 @@ │ │ @ ArgumentsNode (location: (190...191)) │ │ └── arguments: (length: 1) │ │ └── @ IntegerNode (location: (190...191)) + │ │ └── flags: decimal │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: @@ -482,6 +502,7 @@ │ @ ArgumentsNode (location: (199...200)) │ └── arguments: (length: 1) │ └── @ IntegerNode (location: (199...200)) + │ └── flags: decimal ├── closing_loc: ∅ ├── block: ∅ ├── flags: diff --git a/test/yarp/snapshots/whitequark/send_block_chain_cmd.txt b/test/yarp/snapshots/whitequark/send_block_chain_cmd.txt index 2ff68883c14efc..ebf31f95f5a0de 100644 --- a/test/yarp/snapshots/whitequark/send_block_chain_cmd.txt +++ b/test/yarp/snapshots/whitequark/send_block_chain_cmd.txt @@ -14,6 +14,7 @@ │ │ │ @ ArgumentsNode (location: (5...6)) │ │ │ └── arguments: (length: 1) │ │ │ └── @ IntegerNode (location: (5...6)) + │ │ │ └── flags: decimal │ │ ├── closing_loc: ∅ │ │ ├── block: │ │ │ @ BlockNode (location: (7...13)) @@ -55,6 +56,7 @@ │ │ │ @ ArgumentsNode (location: (28...29)) │ │ │ └── arguments: (length: 1) │ │ │ └── @ IntegerNode (location: (28...29)) + │ │ │ └── flags: decimal │ │ ├── closing_loc: ∅ │ │ ├── block: │ │ │ @ BlockNode (location: (30...36)) @@ -102,6 +104,7 @@ │ │ │ @ ArgumentsNode (location: (58...59)) │ │ │ └── arguments: (length: 1) │ │ │ └── @ IntegerNode (location: (58...59)) + │ │ │ └── flags: decimal │ │ ├── closing_loc: ∅ │ │ ├── block: │ │ │ @ BlockNode (location: (60...66)) @@ -137,6 +140,7 @@ │ │ │ @ ArgumentsNode (location: (80...81)) │ │ │ └── arguments: (length: 1) │ │ │ └── @ IntegerNode (location: (80...81)) + │ │ │ └── flags: decimal │ │ ├── closing_loc: ∅ │ │ ├── block: │ │ │ @ BlockNode (location: (82...88)) @@ -178,6 +182,7 @@ │ │ │ @ ArgumentsNode (location: (104...105)) │ │ │ └── arguments: (length: 1) │ │ │ └── @ IntegerNode (location: (104...105)) + │ │ │ └── flags: decimal │ │ ├── closing_loc: ∅ │ │ ├── block: │ │ │ @ BlockNode (location: (106...112)) @@ -225,6 +230,7 @@ │ │ │ @ ArgumentsNode (location: (131...132)) │ │ │ └── arguments: (length: 1) │ │ │ └── @ IntegerNode (location: (131...132)) + │ │ │ └── flags: decimal │ │ ├── closing_loc: ∅ │ │ ├── block: │ │ │ @ BlockNode (location: (133...139)) @@ -266,6 +272,7 @@ │ │ @ ArgumentsNode (location: (155...156)) │ │ └── arguments: (length: 1) │ │ └── @ IntegerNode (location: (155...156)) + │ │ └── flags: decimal │ ├── closing_loc: ∅ │ ├── block: │ │ @ BlockNode (location: (157...163)) diff --git a/test/yarp/snapshots/whitequark/send_call.txt b/test/yarp/snapshots/whitequark/send_call.txt index c9045e53b3c272..aa793848281a47 100644 --- a/test/yarp/snapshots/whitequark/send_call.txt +++ b/test/yarp/snapshots/whitequark/send_call.txt @@ -22,6 +22,7 @@ │ │ @ ArgumentsNode (location: (5...6)) │ │ └── arguments: (length: 1) │ │ └── @ IntegerNode (location: (5...6)) + │ │ └── flags: decimal │ ├── closing_loc: (6...7) = ")" │ ├── block: ∅ │ ├── flags: @@ -45,6 +46,7 @@ │ @ ArgumentsNode (location: (15...16)) │ └── arguments: (length: 1) │ └── @ IntegerNode (location: (15...16)) + │ └── flags: decimal ├── closing_loc: (16...17) = ")" ├── block: ∅ ├── flags: diff --git a/test/yarp/snapshots/whitequark/send_index.txt b/test/yarp/snapshots/whitequark/send_index.txt index 5ba94a84686f43..3f140ae0efbcbd 100644 --- a/test/yarp/snapshots/whitequark/send_index.txt +++ b/test/yarp/snapshots/whitequark/send_index.txt @@ -22,7 +22,9 @@ │ @ ArgumentsNode (location: (4...8)) │ └── arguments: (length: 2) │ ├── @ IntegerNode (location: (4...5)) + │ │ └── flags: decimal │ └── @ IntegerNode (location: (7...8)) + │ └── flags: decimal ├── closing_loc: (8...9) = "]" ├── block: ∅ ├── flags: diff --git a/test/yarp/snapshots/whitequark/send_index_asgn.txt b/test/yarp/snapshots/whitequark/send_index_asgn.txt index 1fa55b18539d0c..8eb87e901f8ebe 100644 --- a/test/yarp/snapshots/whitequark/send_index_asgn.txt +++ b/test/yarp/snapshots/whitequark/send_index_asgn.txt @@ -22,8 +22,11 @@ │ @ ArgumentsNode (location: (4...13)) │ └── arguments: (length: 3) │ ├── @ IntegerNode (location: (4...5)) + │ │ └── flags: decimal │ ├── @ IntegerNode (location: (7...8)) + │ │ └── flags: decimal │ └── @ IntegerNode (location: (12...13)) + │ └── flags: decimal ├── closing_loc: (8...9) = "]" ├── block: ∅ ├── flags: diff --git a/test/yarp/snapshots/whitequark/send_index_asgn_legacy.txt b/test/yarp/snapshots/whitequark/send_index_asgn_legacy.txt index 1fa55b18539d0c..8eb87e901f8ebe 100644 --- a/test/yarp/snapshots/whitequark/send_index_asgn_legacy.txt +++ b/test/yarp/snapshots/whitequark/send_index_asgn_legacy.txt @@ -22,8 +22,11 @@ │ @ ArgumentsNode (location: (4...13)) │ └── arguments: (length: 3) │ ├── @ IntegerNode (location: (4...5)) + │ │ └── flags: decimal │ ├── @ IntegerNode (location: (7...8)) + │ │ └── flags: decimal │ └── @ IntegerNode (location: (12...13)) + │ └── flags: decimal ├── closing_loc: (8...9) = "]" ├── block: ∅ ├── flags: diff --git a/test/yarp/snapshots/whitequark/send_index_legacy.txt b/test/yarp/snapshots/whitequark/send_index_legacy.txt index 5ba94a84686f43..3f140ae0efbcbd 100644 --- a/test/yarp/snapshots/whitequark/send_index_legacy.txt +++ b/test/yarp/snapshots/whitequark/send_index_legacy.txt @@ -22,7 +22,9 @@ │ @ ArgumentsNode (location: (4...8)) │ └── arguments: (length: 2) │ ├── @ IntegerNode (location: (4...5)) + │ │ └── flags: decimal │ └── @ IntegerNode (location: (7...8)) + │ └── flags: decimal ├── closing_loc: (8...9) = "]" ├── block: ∅ ├── flags: diff --git a/test/yarp/snapshots/whitequark/send_lambda_args_noparen.txt b/test/yarp/snapshots/whitequark/send_lambda_args_noparen.txt index 4883f668061d40..d2054a3e9b927e 100644 --- a/test/yarp/snapshots/whitequark/send_lambda_args_noparen.txt +++ b/test/yarp/snapshots/whitequark/send_lambda_args_noparen.txt @@ -22,6 +22,7 @@ │ │ │ │ ├── name_loc: (3...5) = "a:" │ │ │ │ └── value: │ │ │ │ @ IntegerNode (location: (6...7)) + │ │ │ │ └── flags: decimal │ │ │ ├── keyword_rest: ∅ │ │ │ └── block: ∅ │ │ ├── locals: (length: 0) diff --git a/test/yarp/snapshots/whitequark/send_op_asgn_conditional.txt b/test/yarp/snapshots/whitequark/send_op_asgn_conditional.txt index 13ce9d0ea268cd..160d598cc9bc04 100644 --- a/test/yarp/snapshots/whitequark/send_op_asgn_conditional.txt +++ b/test/yarp/snapshots/whitequark/send_op_asgn_conditional.txt @@ -26,3 +26,4 @@ ├── operator_loc: (5...8) = "&&=" └── value: @ IntegerNode (location: (9...10)) + └── flags: decimal diff --git a/test/yarp/snapshots/whitequark/send_self.txt b/test/yarp/snapshots/whitequark/send_self.txt index 5c1cc10db9d29d..c56fd57cbd89ee 100644 --- a/test/yarp/snapshots/whitequark/send_self.txt +++ b/test/yarp/snapshots/whitequark/send_self.txt @@ -32,6 +32,7 @@ │ @ ArgumentsNode (location: (15...16)) │ └── arguments: (length: 1) │ └── @ IntegerNode (location: (15...16)) + │ └── flags: decimal ├── closing_loc: (16...17) = ")" ├── block: ∅ ├── flags: diff --git a/test/yarp/snapshots/whitequark/send_self_block.txt b/test/yarp/snapshots/whitequark/send_self_block.txt index 12bdf1d0190902..12418784edea6d 100644 --- a/test/yarp/snapshots/whitequark/send_self_block.txt +++ b/test/yarp/snapshots/whitequark/send_self_block.txt @@ -60,6 +60,7 @@ │ @ ArgumentsNode (location: (36...37)) │ └── arguments: (length: 1) │ └── @ IntegerNode (location: (36...37)) + │ └── flags: decimal ├── closing_loc: (37...38) = ")" ├── block: │ @ BlockNode (location: (39...42)) diff --git a/test/yarp/snapshots/whitequark/space_args_arg.txt b/test/yarp/snapshots/whitequark/space_args_arg.txt index a8a321065d3ac7..a3e0320cae6e31 100644 --- a/test/yarp/snapshots/whitequark/space_args_arg.txt +++ b/test/yarp/snapshots/whitequark/space_args_arg.txt @@ -16,6 +16,7 @@ │ │ @ StatementsNode (location: (5...6)) │ │ └── body: (length: 1) │ │ └── @ IntegerNode (location: (5...6)) + │ │ └── flags: decimal │ ├── opening_loc: (4...5) = "(" │ └── closing_loc: (6...7) = ")" ├── closing_loc: ∅ diff --git a/test/yarp/snapshots/whitequark/space_args_arg_block.txt b/test/yarp/snapshots/whitequark/space_args_arg_block.txt index ca28f30c03bb23..fa6f88bf67a372 100644 --- a/test/yarp/snapshots/whitequark/space_args_arg_block.txt +++ b/test/yarp/snapshots/whitequark/space_args_arg_block.txt @@ -26,6 +26,7 @@ │ │ │ @ StatementsNode (location: (9...10)) │ │ │ └── body: (length: 1) │ │ │ └── @ IntegerNode (location: (9...10)) + │ │ │ └── flags: decimal │ │ ├── opening_loc: (8...9) = "(" │ │ └── closing_loc: (10...11) = ")" │ ├── closing_loc: ∅ @@ -61,6 +62,7 @@ │ │ │ @ StatementsNode (location: (26...27)) │ │ │ └── body: (length: 1) │ │ │ └── @ IntegerNode (location: (26...27)) + │ │ │ └── flags: decimal │ │ ├── opening_loc: (25...26) = "(" │ │ └── closing_loc: (27...28) = ")" │ ├── closing_loc: ∅ @@ -86,6 +88,7 @@ │ │ @ StatementsNode (location: (38...39)) │ │ └── body: (length: 1) │ │ └── @ IntegerNode (location: (38...39)) + │ │ └── flags: decimal │ ├── opening_loc: (37...38) = "(" │ └── closing_loc: (39...40) = ")" ├── closing_loc: ∅ diff --git a/test/yarp/snapshots/whitequark/space_args_arg_call.txt b/test/yarp/snapshots/whitequark/space_args_arg_call.txt index 2c276e7f9b1542..d4237616928f1f 100644 --- a/test/yarp/snapshots/whitequark/space_args_arg_call.txt +++ b/test/yarp/snapshots/whitequark/space_args_arg_call.txt @@ -18,6 +18,7 @@ │ │ │ @ StatementsNode (location: (5...6)) │ │ │ └── body: (length: 1) │ │ │ └── @ IntegerNode (location: (5...6)) + │ │ │ └── flags: decimal │ │ ├── opening_loc: (4...5) = "(" │ │ └── closing_loc: (6...7) = ")" │ ├── call_operator_loc: (7...8) = "." diff --git a/test/yarp/snapshots/whitequark/space_args_arg_newline.txt b/test/yarp/snapshots/whitequark/space_args_arg_newline.txt index d149baaa847aa3..b634ab8384064f 100644 --- a/test/yarp/snapshots/whitequark/space_args_arg_newline.txt +++ b/test/yarp/snapshots/whitequark/space_args_arg_newline.txt @@ -16,6 +16,7 @@ │ │ @ StatementsNode (location: (5...6)) │ │ └── body: (length: 1) │ │ └── @ IntegerNode (location: (5...6)) + │ │ └── flags: decimal │ ├── opening_loc: (4...5) = "(" │ └── closing_loc: (7...8) = ")" ├── closing_loc: ∅ diff --git a/test/yarp/snapshots/whitequark/ternary.txt b/test/yarp/snapshots/whitequark/ternary.txt index 6d635c429c2a83..8a7632ba9a098a 100644 --- a/test/yarp/snapshots/whitequark/ternary.txt +++ b/test/yarp/snapshots/whitequark/ternary.txt @@ -20,6 +20,7 @@ │ @ StatementsNode (location: (6...7)) │ └── body: (length: 1) │ └── @ IntegerNode (location: (6...7)) + │ └── flags: decimal ├── consequent: │ @ ElseNode (location: (8...11)) │ ├── else_keyword_loc: (8...9) = ":" @@ -27,5 +28,6 @@ │ │ @ StatementsNode (location: (10...11)) │ │ └── body: (length: 1) │ │ └── @ IntegerNode (location: (10...11)) + │ │ └── flags: decimal │ └── end_keyword_loc: ∅ └── end_keyword_loc: ∅ diff --git a/test/yarp/snapshots/whitequark/ternary_ambiguous_symbol.txt b/test/yarp/snapshots/whitequark/ternary_ambiguous_symbol.txt index c5a1d06672aa9a..331f34793caee1 100644 --- a/test/yarp/snapshots/whitequark/ternary_ambiguous_symbol.txt +++ b/test/yarp/snapshots/whitequark/ternary_ambiguous_symbol.txt @@ -9,6 +9,7 @@ │ ├── name_loc: (0...1) = "t" │ ├── value: │ │ @ IntegerNode (location: (2...3)) + │ │ └── flags: decimal │ └── operator_loc: (1...2) = "=" └── @ IfNode (location: (4...13)) ├── if_keyword_loc: ∅ diff --git a/test/yarp/snapshots/whitequark/trailing_forward_arg.txt b/test/yarp/snapshots/whitequark/trailing_forward_arg.txt index dcc0303fb4052b..f07689417c5065 100644 --- a/test/yarp/snapshots/whitequark/trailing_forward_arg.txt +++ b/test/yarp/snapshots/whitequark/trailing_forward_arg.txt @@ -36,6 +36,7 @@ │ │ │ ├── name: :a │ │ │ └── depth: 0 │ │ ├── @ IntegerNode (location: (27...29)) + │ │ │ └── flags: decimal │ │ └── @ ForwardingArgumentsNode (location: (31...34)) │ ├── closing_loc: (34...35) = ")" │ ├── block: ∅ diff --git a/test/yarp/snapshots/whitequark/unary_num_pow_precedence.txt b/test/yarp/snapshots/whitequark/unary_num_pow_precedence.txt index 090e4c2ec10539..3d0dfab3de12a4 100644 --- a/test/yarp/snapshots/whitequark/unary_num_pow_precedence.txt +++ b/test/yarp/snapshots/whitequark/unary_num_pow_precedence.txt @@ -13,6 +13,7 @@ │ │ @ ArgumentsNode (location: (8...10)) │ │ └── arguments: (length: 1) │ │ └── @ IntegerNode (location: (8...10)) + │ │ └── flags: decimal │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: @@ -22,6 +23,7 @@ │ │ @ CallNode (location: (13...20)) │ │ ├── receiver: │ │ │ @ IntegerNode (location: (13...14)) + │ │ │ └── flags: decimal │ │ ├── call_operator_loc: ∅ │ │ ├── message_loc: (15...17) = "**" │ │ ├── opening_loc: ∅ @@ -29,6 +31,7 @@ │ │ │ @ ArgumentsNode (location: (18...20)) │ │ │ └── arguments: (length: 1) │ │ │ └── @ IntegerNode (location: (18...20)) + │ │ │ └── flags: decimal │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: @@ -53,6 +56,7 @@ │ │ @ ArgumentsNode (location: (30...32)) │ │ └── arguments: (length: 1) │ │ └── @ IntegerNode (location: (30...32)) + │ │ └── flags: decimal │ ├── closing_loc: ∅ │ ├── block: ∅ │ ├── flags: diff --git a/test/yarp/snapshots/whitequark/undef.txt b/test/yarp/snapshots/whitequark/undef.txt index 373936f520ba52..7418768c126fce 100644 --- a/test/yarp/snapshots/whitequark/undef.txt +++ b/test/yarp/snapshots/whitequark/undef.txt @@ -29,6 +29,7 @@ │ │ │ @ StatementsNode (location: (24...25)) │ │ │ └── body: (length: 1) │ │ │ └── @ IntegerNode (location: (24...25)) + │ │ │ └── flags: decimal │ │ └── closing_loc: (25...26) = "}" │ └── closing_loc: (26...27) = "\"" └── keyword_loc: (0...5) = "undef" diff --git a/test/yarp/snapshots/whitequark/var_and_asgn.txt b/test/yarp/snapshots/whitequark/var_and_asgn.txt index 565ceaa0f3aa93..2a45611849d022 100644 --- a/test/yarp/snapshots/whitequark/var_and_asgn.txt +++ b/test/yarp/snapshots/whitequark/var_and_asgn.txt @@ -8,5 +8,6 @@ ├── operator_loc: (2...5) = "&&=" ├── value: │ @ IntegerNode (location: (6...7)) + │ └── flags: decimal ├── name: :a └── depth: 0 diff --git a/test/yarp/snapshots/whitequark/var_op_asgn.txt b/test/yarp/snapshots/whitequark/var_op_asgn.txt index efbad402d9ccc0..6085055890632b 100644 --- a/test/yarp/snapshots/whitequark/var_op_asgn.txt +++ b/test/yarp/snapshots/whitequark/var_op_asgn.txt @@ -9,6 +9,7 @@ │ ├── operator_loc: (6...8) = "|=" │ ├── value: │ │ @ IntegerNode (location: (9...11)) + │ │ └── flags: decimal │ └── operator: :| ├── @ InstanceVariableOperatorWriteNode (location: (13...20)) │ ├── name: :@a @@ -16,12 +17,14 @@ │ ├── operator_loc: (16...18) = "|=" │ ├── value: │ │ @ IntegerNode (location: (19...20)) + │ │ └── flags: decimal │ └── operator: :| ├── @ LocalVariableOperatorWriteNode (location: (22...28)) │ ├── name_loc: (22...23) = "a" │ ├── operator_loc: (24...26) = "+=" │ ├── value: │ │ @ IntegerNode (location: (27...28)) + │ │ └── flags: decimal │ ├── name: :a │ ├── operator: :+ │ └── depth: 0 @@ -39,6 +42,7 @@ │ ├── operator_loc: (43...45) = "|=" │ ├── value: │ │ @ IntegerNode (location: (46...48)) + │ │ └── flags: decimal │ └── operator: :| ├── locals: [] ├── def_keyword_loc: (30...33) = "def" diff --git a/test/yarp/snapshots/whitequark/var_or_asgn.txt b/test/yarp/snapshots/whitequark/var_or_asgn.txt index 41793f1e21a938..9aaf4a23d0bfdb 100644 --- a/test/yarp/snapshots/whitequark/var_or_asgn.txt +++ b/test/yarp/snapshots/whitequark/var_or_asgn.txt @@ -8,5 +8,6 @@ ├── operator_loc: (2...5) = "||=" ├── value: │ @ IntegerNode (location: (6...7)) + │ └── flags: decimal ├── name: :a └── depth: 0 diff --git a/test/yarp/snapshots/whitequark/when_splat.txt b/test/yarp/snapshots/whitequark/when_splat.txt index 215dc8884545e6..09ed87ec192cb5 100644 --- a/test/yarp/snapshots/whitequark/when_splat.txt +++ b/test/yarp/snapshots/whitequark/when_splat.txt @@ -20,6 +20,7 @@ │ │ ├── keyword_loc: (10...14) = "when" │ │ ├── conditions: (length: 2) │ │ │ ├── @ IntegerNode (location: (15...16)) + │ │ │ │ └── flags: decimal │ │ │ └── @ SplatNode (location: (18...22)) │ │ │ ├── operator_loc: (18...19) = "*" │ │ │ └── expression: diff --git a/test/yarp/snapshots/yield.txt b/test/yarp/snapshots/yield.txt index eb200ca45b00ee..68b01a7abcca65 100644 --- a/test/yarp/snapshots/yield.txt +++ b/test/yarp/snapshots/yield.txt @@ -20,6 +20,7 @@ │ │ @ ArgumentsNode (location: (22...23)) │ │ └── arguments: (length: 1) │ │ └── @ IntegerNode (location: (22...23)) + │ │ └── flags: decimal │ └── rparen_loc: (23...24) = ")" └── @ YieldNode (location: (26...40)) ├── keyword_loc: (26...31) = "yield" @@ -28,6 +29,9 @@ │ @ ArgumentsNode (location: (32...39)) │ └── arguments: (length: 3) │ ├── @ IntegerNode (location: (32...33)) + │ │ └── flags: decimal │ ├── @ IntegerNode (location: (35...36)) + │ │ └── flags: decimal │ └── @ IntegerNode (location: (38...39)) + │ └── flags: decimal └── rparen_loc: (39...40) = ")" diff --git a/yarp/config.yml b/yarp/config.yml index ae63472bd71ac2..257a5bfc25d662 100644 --- a/yarp/config.yml +++ b/yarp/config.yml @@ -333,6 +333,16 @@ flags: comment: "&. operator" - name: VARIABLE_CALL comment: "a call that could have been a local variable" + - name: IntegerBaseFlags + values: + - name: BINARY + comment: "0b prefix" + - name: OCTAL + comment: "0o or 0 prefix" + - name: DECIMAL + comment: "0d or no prefix" + - name: HEXADECIMAL + comment: "0x prefix" - name: LoopFlags values: - name: BEGIN_MODIFIER @@ -1483,6 +1493,10 @@ nodes: @foo = 1 ^^^^^^^^ - name: IntegerNode + fields: + - name: flags + type: flags + kind: IntegerBaseFlags comment: | Represents an integer number literal. diff --git a/yarp/parser.h b/yarp/parser.h index 0ae01f78da6e53..486faa2f4025f0 100644 --- a/yarp/parser.h +++ b/yarp/parser.h @@ -384,6 +384,12 @@ struct yp_parser { // This is the list of newline offsets in the source file. yp_newline_list_t newline_list; + + // We want to add a flag to integer nodes that indicates their base. We only + // want to parse these once, but we don't have space on the token itself to + // communicate this information. So we store it here and pass it through + // when we find tokens that we need it for. + yp_node_flags_t integer_base; }; #endif // YARP_PARSER_H diff --git a/yarp/templates/ext/yarp/api_node.c.erb b/yarp/templates/ext/yarp/api_node.c.erb index a9f5115d7f1f45..a0d528996ab674 100644 --- a/yarp/templates/ext/yarp/api_node.c.erb +++ b/yarp/templates/ext/yarp/api_node.c.erb @@ -135,7 +135,7 @@ yp_ast_new(yp_parser_t *parser, yp_node_t *node, rb_encoding *encoding) { <%- nodes.each do |node| -%> #line <%= __LINE__ + 1 %> "<%= File.basename(__FILE__) %>" case <%= node.type %>: { - <%- if node.fields.any? { |field| ![YARP::NodeField, YARP::OptionalNodeField].include?(field.class) } -%> + <%- if node.fields.any? { |field| ![YARP::NodeField, YARP::OptionalNodeField, YARP::FlagsField].include?(field.class) } -%> yp_<%= node.human %>_t *cast = (yp_<%= node.human %>_t *) node; <%- end -%> VALUE argv[<%= node.fields.length + 1 %>]; diff --git a/yarp/yarp.c b/yarp/yarp.c index b2fecf9c0aaf04..730bf8274b47ea 100644 --- a/yarp/yarp.c +++ b/yarp/yarp.c @@ -2697,16 +2697,22 @@ yp_else_node_end_keyword_loc_set(yp_else_node_t *node, const yp_token_t *keyword // Allocate and initialize a new IntegerNode node. static yp_integer_node_t * -yp_integer_node_create(yp_parser_t *parser, const yp_token_t *token) { +yp_integer_node_create(yp_parser_t *parser, yp_node_flags_t base, const yp_token_t *token) { assert(token->type == YP_TOKEN_INTEGER); yp_integer_node_t *node = YP_ALLOC_NODE(parser, yp_integer_node_t); - *node = (yp_integer_node_t) {{ .type = YP_INTEGER_NODE, .location = YP_LOCATION_TOKEN_VALUE(token) }}; + + *node = (yp_integer_node_t) {{ + .type = YP_INTEGER_NODE, + .flags = base, + .location = YP_LOCATION_TOKEN_VALUE(token) + }}; + return node; } // Allocate and initialize a new IntegerNode node from an INTEGER_IMAGINARY token. static yp_imaginary_node_t * -yp_integer_node_imaginary_create(yp_parser_t *parser, const yp_token_t *token) { +yp_integer_node_imaginary_create(yp_parser_t *parser, yp_node_flags_t base, const yp_token_t *token) { assert(token->type == YP_TOKEN_INTEGER_IMAGINARY); yp_imaginary_node_t *node = YP_ALLOC_NODE(parser, yp_imaginary_node_t); @@ -2715,7 +2721,7 @@ yp_integer_node_imaginary_create(yp_parser_t *parser, const yp_token_t *token) { .type = YP_IMAGINARY_NODE, .location = YP_LOCATION_TOKEN_VALUE(token) }, - .numeric = (yp_node_t *) yp_integer_node_create(parser, &((yp_token_t) { + .numeric = (yp_node_t *) yp_integer_node_create(parser, base, &((yp_token_t) { .type = YP_TOKEN_INTEGER, .start = token->start, .end = token->end - 1 @@ -2727,7 +2733,7 @@ yp_integer_node_imaginary_create(yp_parser_t *parser, const yp_token_t *token) { // Allocate and initialize a new IntegerNode node from an INTEGER_RATIONAL token. static yp_rational_node_t * -yp_integer_node_rational_create(yp_parser_t *parser, const yp_token_t *token) { +yp_integer_node_rational_create(yp_parser_t *parser, yp_node_flags_t base, const yp_token_t *token) { assert(token->type == YP_TOKEN_INTEGER_RATIONAL); yp_rational_node_t *node = YP_ALLOC_NODE(parser, yp_rational_node_t); @@ -2736,7 +2742,7 @@ yp_integer_node_rational_create(yp_parser_t *parser, const yp_token_t *token) { .type = YP_RATIONAL_NODE, .location = YP_LOCATION_TOKEN_VALUE(token) }, - .numeric = (yp_node_t *) yp_integer_node_create(parser, &((yp_token_t) { + .numeric = (yp_node_t *) yp_integer_node_create(parser, base, &((yp_token_t) { .type = YP_TOKEN_INTEGER, .start = token->start, .end = token->end - 1 @@ -2748,7 +2754,7 @@ yp_integer_node_rational_create(yp_parser_t *parser, const yp_token_t *token) { // Allocate and initialize a new IntegerNode node from an INTEGER_RATIONAL_IMAGINARY token. static yp_imaginary_node_t * -yp_integer_node_rational_imaginary_create(yp_parser_t *parser, const yp_token_t *token) { +yp_integer_node_rational_imaginary_create(yp_parser_t *parser, yp_node_flags_t base, const yp_token_t *token) { assert(token->type == YP_TOKEN_INTEGER_RATIONAL_IMAGINARY); yp_imaginary_node_t *node = YP_ALLOC_NODE(parser, yp_imaginary_node_t); @@ -2757,7 +2763,7 @@ yp_integer_node_rational_imaginary_create(yp_parser_t *parser, const yp_token_t .type = YP_IMAGINARY_NODE, .location = YP_LOCATION_TOKEN_VALUE(token) }, - .numeric = (yp_node_t *) yp_integer_node_rational_create(parser, &((yp_token_t) { + .numeric = (yp_node_t *) yp_integer_node_rational_create(parser, base, &((yp_token_t) { .type = YP_TOKEN_INTEGER_RATIONAL, .start = token->start, .end = token->end - 1 @@ -5217,6 +5223,7 @@ lex_numeric_prefix(yp_parser_t *parser) { yp_diagnostic_list_append(&parser->error_list, parser->current.start, parser->current.end, YP_ERR_INVALID_NUMBER_BINARY); } + parser->integer_base = YP_INTEGER_BASE_FLAGS_BINARY; break; // 0o1111 is an octal number @@ -5229,6 +5236,7 @@ lex_numeric_prefix(yp_parser_t *parser) { yp_diagnostic_list_append(&parser->error_list, parser->current.start, parser->current.end, YP_ERR_INVALID_NUMBER_OCTAL); } + parser->integer_base = YP_INTEGER_BASE_FLAGS_OCTAL; break; // 01111 is an octal number @@ -5242,6 +5250,7 @@ lex_numeric_prefix(yp_parser_t *parser) { case '6': case '7': parser->current.end += yp_strspn_octal_number(parser->current.end, parser->end - parser->current.end); + parser->integer_base = YP_INTEGER_BASE_FLAGS_OCTAL; break; // 0x1111 is a hexadecimal number @@ -5254,6 +5263,7 @@ lex_numeric_prefix(yp_parser_t *parser) { yp_diagnostic_list_append(&parser->error_list, parser->current.start, parser->current.end, YP_ERR_INVALID_NUMBER_HEXADECIMAL); } + parser->integer_base = YP_INTEGER_BASE_FLAGS_HEXADECIMAL; break; // 0.xxx is a float @@ -5290,6 +5300,7 @@ lex_numeric_prefix(yp_parser_t *parser) { static yp_token_type_t lex_numeric(yp_parser_t *parser) { yp_token_type_t type = YP_TOKEN_INTEGER; + parser->integer_base = YP_INTEGER_BASE_FLAGS_DECIMAL; if (parser->current.end < parser->end) { type = lex_numeric_prefix(parser); @@ -11296,18 +11307,26 @@ parse_expression_prefix(yp_parser_t *parser, yp_binding_power_t binding_power) { return node; } - case YP_TOKEN_INTEGER: + case YP_TOKEN_INTEGER: { + yp_node_flags_t base = parser->integer_base; parser_lex(parser); - return (yp_node_t *) yp_integer_node_create(parser, &parser->previous); - case YP_TOKEN_INTEGER_IMAGINARY: + return (yp_node_t *) yp_integer_node_create(parser, base, &parser->previous); + } + case YP_TOKEN_INTEGER_IMAGINARY: { + yp_node_flags_t base = parser->integer_base; parser_lex(parser); - return (yp_node_t *) yp_integer_node_imaginary_create(parser, &parser->previous); - case YP_TOKEN_INTEGER_RATIONAL: + return (yp_node_t *) yp_integer_node_imaginary_create(parser, base, &parser->previous); + } + case YP_TOKEN_INTEGER_RATIONAL: { + yp_node_flags_t base = parser->integer_base; parser_lex(parser); - return (yp_node_t *) yp_integer_node_rational_create(parser, &parser->previous); - case YP_TOKEN_INTEGER_RATIONAL_IMAGINARY: + return (yp_node_t *) yp_integer_node_rational_create(parser, base, &parser->previous); + } + case YP_TOKEN_INTEGER_RATIONAL_IMAGINARY: { + yp_node_flags_t base = parser->integer_base; parser_lex(parser); - return (yp_node_t *) yp_integer_node_rational_imaginary_create(parser, &parser->previous); + return (yp_node_t *) yp_integer_node_rational_imaginary_create(parser, base, &parser->previous); + } case YP_TOKEN_KEYWORD___ENCODING__: parser_lex(parser); return (yp_node_t *) yp_source_encoding_node_create(parser, &parser->previous); @@ -13840,7 +13859,8 @@ yp_parser_init(yp_parser_t *parser, const uint8_t *source, size_t size, const ch .in_keyword_arg = false, .filepath_string = filepath_string, .constant_pool = YP_CONSTANT_POOL_EMPTY, - .newline_list = YP_NEWLINE_LIST_EMPTY + .newline_list = YP_NEWLINE_LIST_EMPTY, + .integer_base = 0 }; yp_accepts_block_stack_push(parser, true);