prism 0.21.0 → 0.22.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +17 -1
- data/docs/releasing.md +18 -0
- data/ext/prism/extension.c +44 -12
- data/ext/prism/extension.h +1 -1
- data/include/prism/diagnostic.h +8 -2
- data/include/prism/version.h +2 -2
- data/lib/prism/ffi.rb +7 -2
- data/lib/prism/lex_compat.rb +16 -1
- data/lib/prism/node.rb +212 -32
- data/lib/prism/parse_result.rb +2 -1
- data/lib/prism/ripper_compat.rb +98 -20
- data/lib/prism/serialize.rb +3 -1
- data/lib/prism/translation/parser/compiler.rb +16 -6
- data/lib/prism/translation/parser.rb +9 -3
- data/prism.gemspec +2 -2
- data/src/diagnostic.c +10 -4
- data/src/prism.c +21 -26
- data/src/util/pm_string.c +0 -7
- metadata +4 -4
data/lib/prism/node.rb
CHANGED
@@ -99,6 +99,7 @@ module Prism
|
|
99
99
|
|
100
100
|
# def initialize: (Node new_name, Node old_name, Location keyword_loc, Location location) -> void
|
101
101
|
def initialize(new_name, old_name, keyword_loc, location)
|
102
|
+
@newline = false
|
102
103
|
@new_name = new_name
|
103
104
|
@old_name = old_name
|
104
105
|
@keyword_loc = keyword_loc
|
@@ -204,6 +205,7 @@ module Prism
|
|
204
205
|
|
205
206
|
# def initialize: (Node new_name, Node old_name, Location keyword_loc, Location location) -> void
|
206
207
|
def initialize(new_name, old_name, keyword_loc, location)
|
208
|
+
@newline = false
|
207
209
|
@new_name = new_name
|
208
210
|
@old_name = old_name
|
209
211
|
@keyword_loc = keyword_loc
|
@@ -309,6 +311,7 @@ module Prism
|
|
309
311
|
|
310
312
|
# def initialize: (Node left, Node right, Location operator_loc, Location location) -> void
|
311
313
|
def initialize(left, right, operator_loc, location)
|
314
|
+
@newline = false
|
312
315
|
@left = left
|
313
316
|
@right = right
|
314
317
|
@operator_loc = operator_loc
|
@@ -429,6 +432,7 @@ module Prism
|
|
429
432
|
|
430
433
|
# def initialize: (Node left, Node right, Location operator_loc, Location location) -> void
|
431
434
|
def initialize(left, right, operator_loc, location)
|
435
|
+
@newline = false
|
432
436
|
@left = left
|
433
437
|
@right = right
|
434
438
|
@operator_loc = operator_loc
|
@@ -524,13 +528,15 @@ module Prism
|
|
524
528
|
# ^^^^^^^^^^^^^
|
525
529
|
class ArgumentsNode < Node
|
526
530
|
# private attr_reader flags: Integer
|
527
|
-
|
531
|
+
attr_reader :flags
|
532
|
+
private :flags
|
528
533
|
|
529
534
|
# attr_reader arguments: Array[Node]
|
530
535
|
attr_reader :arguments
|
531
536
|
|
532
537
|
# def initialize: (Integer flags, Array[Node] arguments, Location location) -> void
|
533
538
|
def initialize(flags, arguments, location)
|
539
|
+
@newline = false
|
534
540
|
@flags = flags
|
535
541
|
@arguments = arguments
|
536
542
|
@location = location
|
@@ -622,7 +628,8 @@ module Prism
|
|
622
628
|
# ^^^^^^^^^
|
623
629
|
class ArrayNode < Node
|
624
630
|
# private attr_reader flags: Integer
|
625
|
-
|
631
|
+
attr_reader :flags
|
632
|
+
private :flags
|
626
633
|
|
627
634
|
# attr_reader elements: Array[Node]
|
628
635
|
attr_reader :elements
|
@@ -635,6 +642,7 @@ module Prism
|
|
635
642
|
|
636
643
|
# def initialize: (Integer flags, Array[Node] elements, Location? opening_loc, Location? closing_loc, Location location) -> void
|
637
644
|
def initialize(flags, elements, opening_loc, closing_loc, location)
|
645
|
+
@newline = false
|
638
646
|
@flags = flags
|
639
647
|
@elements = elements
|
640
648
|
@opening_loc = opening_loc
|
@@ -773,6 +781,7 @@ module Prism
|
|
773
781
|
|
774
782
|
# def initialize: (Node? constant, Array[Node] requireds, Node? rest, Array[Node] posts, Location? opening_loc, Location? closing_loc, Location location) -> void
|
775
783
|
def initialize(constant, requireds, rest, posts, opening_loc, closing_loc, location)
|
784
|
+
@newline = false
|
776
785
|
@constant = constant
|
777
786
|
@requireds = requireds
|
778
787
|
@rest = rest
|
@@ -923,6 +932,7 @@ module Prism
|
|
923
932
|
|
924
933
|
# def initialize: (Node key, Node value, Location? operator_loc, Location location) -> void
|
925
934
|
def initialize(key, value, operator_loc, location)
|
935
|
+
@newline = false
|
926
936
|
@key = key
|
927
937
|
@value = value
|
928
938
|
@operator_loc = operator_loc
|
@@ -1031,6 +1041,7 @@ module Prism
|
|
1031
1041
|
|
1032
1042
|
# def initialize: (Node? value, Location operator_loc, Location location) -> void
|
1033
1043
|
def initialize(value, operator_loc, location)
|
1044
|
+
@newline = false
|
1034
1045
|
@value = value
|
1035
1046
|
@operator_loc = operator_loc
|
1036
1047
|
@location = location
|
@@ -1136,6 +1147,7 @@ module Prism
|
|
1136
1147
|
|
1137
1148
|
# def initialize: (Symbol name, Location location) -> void
|
1138
1149
|
def initialize(name, location)
|
1150
|
+
@newline = false
|
1139
1151
|
@name = name
|
1140
1152
|
@location = location
|
1141
1153
|
end
|
@@ -1239,6 +1251,7 @@ module Prism
|
|
1239
1251
|
|
1240
1252
|
# def initialize: (Location? begin_keyword_loc, StatementsNode? statements, RescueNode? rescue_clause, ElseNode? else_clause, EnsureNode? ensure_clause, Location? end_keyword_loc, Location location) -> void
|
1241
1253
|
def initialize(begin_keyword_loc, statements, rescue_clause, else_clause, ensure_clause, end_keyword_loc, location)
|
1254
|
+
@newline = false
|
1242
1255
|
@begin_keyword_loc = begin_keyword_loc
|
1243
1256
|
@statements = statements
|
1244
1257
|
@rescue_clause = rescue_clause
|
@@ -1382,6 +1395,7 @@ module Prism
|
|
1382
1395
|
|
1383
1396
|
# def initialize: (Node? expression, Location operator_loc, Location location) -> void
|
1384
1397
|
def initialize(expression, operator_loc, location)
|
1398
|
+
@newline = false
|
1385
1399
|
@expression = expression
|
1386
1400
|
@operator_loc = operator_loc
|
1387
1401
|
@location = location
|
@@ -1479,13 +1493,15 @@ module Prism
|
|
1479
1493
|
# ^
|
1480
1494
|
class BlockLocalVariableNode < Node
|
1481
1495
|
# private attr_reader flags: Integer
|
1482
|
-
|
1496
|
+
attr_reader :flags
|
1497
|
+
private :flags
|
1483
1498
|
|
1484
1499
|
# attr_reader name: Symbol
|
1485
1500
|
attr_reader :name
|
1486
1501
|
|
1487
1502
|
# def initialize: (Integer flags, Symbol name, Location location) -> void
|
1488
1503
|
def initialize(flags, name, location)
|
1504
|
+
@newline = false
|
1489
1505
|
@flags = flags
|
1490
1506
|
@name = name
|
1491
1507
|
@location = location
|
@@ -1593,6 +1609,7 @@ module Prism
|
|
1593
1609
|
|
1594
1610
|
# def initialize: (Array[Symbol] locals, Node? parameters, Node? body, Location opening_loc, Location closing_loc, Location location) -> void
|
1595
1611
|
def initialize(locals, parameters, body, opening_loc, closing_loc, location)
|
1612
|
+
@newline = false
|
1596
1613
|
@locals = locals
|
1597
1614
|
@parameters = parameters
|
1598
1615
|
@body = body
|
@@ -1711,7 +1728,8 @@ module Prism
|
|
1711
1728
|
# end
|
1712
1729
|
class BlockParameterNode < Node
|
1713
1730
|
# private attr_reader flags: Integer
|
1714
|
-
|
1731
|
+
attr_reader :flags
|
1732
|
+
private :flags
|
1715
1733
|
|
1716
1734
|
# attr_reader name: Symbol?
|
1717
1735
|
attr_reader :name
|
@@ -1724,6 +1742,7 @@ module Prism
|
|
1724
1742
|
|
1725
1743
|
# def initialize: (Integer flags, Symbol? name, Location? name_loc, Location operator_loc, Location location) -> void
|
1726
1744
|
def initialize(flags, name, name_loc, operator_loc, location)
|
1745
|
+
@newline = false
|
1727
1746
|
@flags = flags
|
1728
1747
|
@name = name
|
1729
1748
|
@name_loc = name_loc
|
@@ -1847,6 +1866,7 @@ module Prism
|
|
1847
1866
|
|
1848
1867
|
# def initialize: (ParametersNode? parameters, Array[Node] locals, Location? opening_loc, Location? closing_loc, Location location) -> void
|
1849
1868
|
def initialize(parameters, locals, opening_loc, closing_loc, location)
|
1869
|
+
@newline = false
|
1850
1870
|
@parameters = parameters
|
1851
1871
|
@locals = locals
|
1852
1872
|
@opening_loc = opening_loc
|
@@ -1963,6 +1983,7 @@ module Prism
|
|
1963
1983
|
|
1964
1984
|
# def initialize: (ArgumentsNode? arguments, Location keyword_loc, Location location) -> void
|
1965
1985
|
def initialize(arguments, keyword_loc, location)
|
1986
|
+
@newline = false
|
1966
1987
|
@arguments = arguments
|
1967
1988
|
@keyword_loc = keyword_loc
|
1968
1989
|
@location = location
|
@@ -2060,7 +2081,8 @@ module Prism
|
|
2060
2081
|
# ^^^^^^^^^^^^^^^^^
|
2061
2082
|
class CallAndWriteNode < Node
|
2062
2083
|
# private attr_reader flags: Integer
|
2063
|
-
|
2084
|
+
attr_reader :flags
|
2085
|
+
private :flags
|
2064
2086
|
|
2065
2087
|
# attr_reader receiver: Node?
|
2066
2088
|
attr_reader :receiver
|
@@ -2085,6 +2107,7 @@ module Prism
|
|
2085
2107
|
|
2086
2108
|
# def initialize: (Integer flags, Node? receiver, Location? call_operator_loc, Location? message_loc, Symbol read_name, Symbol write_name, Location operator_loc, Node value, Location location) -> void
|
2087
2109
|
def initialize(flags, receiver, call_operator_loc, message_loc, read_name, write_name, operator_loc, value, location)
|
2110
|
+
@newline = false
|
2088
2111
|
@flags = flags
|
2089
2112
|
@receiver = receiver
|
2090
2113
|
@call_operator_loc = call_operator_loc
|
@@ -2248,7 +2271,8 @@ module Prism
|
|
2248
2271
|
# ^^^^^^^^
|
2249
2272
|
class CallNode < Node
|
2250
2273
|
# private attr_reader flags: Integer
|
2251
|
-
|
2274
|
+
attr_reader :flags
|
2275
|
+
private :flags
|
2252
2276
|
|
2253
2277
|
# The object that the method is being called on. This can be either `nil` or any [non-void expression](https://github.com/ruby/prism/blob/main/docs/parsing_rules.md#non-void-expression).
|
2254
2278
|
#
|
@@ -2285,6 +2309,7 @@ module Prism
|
|
2285
2309
|
|
2286
2310
|
# def initialize: (Integer flags, Node? receiver, Location? call_operator_loc, Symbol name, Location? message_loc, Location? opening_loc, ArgumentsNode? arguments, Location? closing_loc, Node? block, Location location) -> void
|
2287
2311
|
def initialize(flags, receiver, call_operator_loc, name, message_loc, opening_loc, arguments, closing_loc, block, location)
|
2312
|
+
@newline = false
|
2288
2313
|
@flags = flags
|
2289
2314
|
@receiver = receiver
|
2290
2315
|
@call_operator_loc = call_operator_loc
|
@@ -2451,7 +2476,8 @@ module Prism
|
|
2451
2476
|
# ^^^^^^^^^^^^^^
|
2452
2477
|
class CallOperatorWriteNode < Node
|
2453
2478
|
# private attr_reader flags: Integer
|
2454
|
-
|
2479
|
+
attr_reader :flags
|
2480
|
+
private :flags
|
2455
2481
|
|
2456
2482
|
# attr_reader receiver: Node?
|
2457
2483
|
attr_reader :receiver
|
@@ -2479,6 +2505,7 @@ module Prism
|
|
2479
2505
|
|
2480
2506
|
# def initialize: (Integer flags, Node? receiver, Location? call_operator_loc, Location? message_loc, Symbol read_name, Symbol write_name, Symbol operator, Location operator_loc, Node value, Location location) -> void
|
2481
2507
|
def initialize(flags, receiver, call_operator_loc, message_loc, read_name, write_name, operator, operator_loc, value, location)
|
2508
|
+
@newline = false
|
2482
2509
|
@flags = flags
|
2483
2510
|
@receiver = receiver
|
2484
2511
|
@call_operator_loc = call_operator_loc
|
@@ -2625,7 +2652,8 @@ module Prism
|
|
2625
2652
|
# ^^^^^^^^^^^^^^^^^
|
2626
2653
|
class CallOrWriteNode < Node
|
2627
2654
|
# private attr_reader flags: Integer
|
2628
|
-
|
2655
|
+
attr_reader :flags
|
2656
|
+
private :flags
|
2629
2657
|
|
2630
2658
|
# attr_reader receiver: Node?
|
2631
2659
|
attr_reader :receiver
|
@@ -2650,6 +2678,7 @@ module Prism
|
|
2650
2678
|
|
2651
2679
|
# def initialize: (Integer flags, Node? receiver, Location? call_operator_loc, Location? message_loc, Symbol read_name, Symbol write_name, Location operator_loc, Node value, Location location) -> void
|
2652
2680
|
def initialize(flags, receiver, call_operator_loc, message_loc, read_name, write_name, operator_loc, value, location)
|
2681
|
+
@newline = false
|
2653
2682
|
@flags = flags
|
2654
2683
|
@receiver = receiver
|
2655
2684
|
@call_operator_loc = call_operator_loc
|
@@ -2806,7 +2835,8 @@ module Prism
|
|
2806
2835
|
# ^^^^^^^
|
2807
2836
|
class CallTargetNode < Node
|
2808
2837
|
# private attr_reader flags: Integer
|
2809
|
-
|
2838
|
+
attr_reader :flags
|
2839
|
+
private :flags
|
2810
2840
|
|
2811
2841
|
# attr_reader receiver: Node
|
2812
2842
|
attr_reader :receiver
|
@@ -2822,6 +2852,7 @@ module Prism
|
|
2822
2852
|
|
2823
2853
|
# def initialize: (Integer flags, Node receiver, Location call_operator_loc, Symbol name, Location message_loc, Location location) -> void
|
2824
2854
|
def initialize(flags, receiver, call_operator_loc, name, message_loc, location)
|
2855
|
+
@newline = false
|
2825
2856
|
@flags = flags
|
2826
2857
|
@receiver = receiver
|
2827
2858
|
@call_operator_loc = call_operator_loc
|
@@ -2958,6 +2989,7 @@ module Prism
|
|
2958
2989
|
|
2959
2990
|
# def initialize: (Node value, Node target, Location operator_loc, Location location) -> void
|
2960
2991
|
def initialize(value, target, operator_loc, location)
|
2992
|
+
@newline = false
|
2961
2993
|
@value = value
|
2962
2994
|
@target = target
|
2963
2995
|
@operator_loc = operator_loc
|
@@ -3071,6 +3103,7 @@ module Prism
|
|
3071
3103
|
|
3072
3104
|
# def initialize: (Node? predicate, Array[Node] conditions, ElseNode? consequent, Location case_keyword_loc, Location end_keyword_loc, Location location) -> void
|
3073
3105
|
def initialize(predicate, conditions, consequent, case_keyword_loc, end_keyword_loc, location)
|
3106
|
+
@newline = false
|
3074
3107
|
@predicate = predicate
|
3075
3108
|
@conditions = conditions
|
3076
3109
|
@consequent = consequent
|
@@ -3207,6 +3240,7 @@ module Prism
|
|
3207
3240
|
|
3208
3241
|
# def initialize: (Node? predicate, Array[Node] conditions, ElseNode? consequent, Location case_keyword_loc, Location end_keyword_loc, Location location) -> void
|
3209
3242
|
def initialize(predicate, conditions, consequent, case_keyword_loc, end_keyword_loc, location)
|
3243
|
+
@newline = false
|
3210
3244
|
@predicate = predicate
|
3211
3245
|
@conditions = conditions
|
3212
3246
|
@consequent = consequent
|
@@ -3350,6 +3384,7 @@ module Prism
|
|
3350
3384
|
|
3351
3385
|
# def initialize: (Array[Symbol] locals, Location class_keyword_loc, Node constant_path, Location? inheritance_operator_loc, Node? superclass, Node? body, Location end_keyword_loc, Symbol name, Location location) -> void
|
3352
3386
|
def initialize(locals, class_keyword_loc, constant_path, inheritance_operator_loc, superclass, body, end_keyword_loc, name, location)
|
3387
|
+
@newline = false
|
3353
3388
|
@locals = locals
|
3354
3389
|
@class_keyword_loc = class_keyword_loc
|
3355
3390
|
@constant_path = constant_path
|
@@ -3496,6 +3531,7 @@ module Prism
|
|
3496
3531
|
|
3497
3532
|
# def initialize: (Symbol name, Location name_loc, Location operator_loc, Node value, Location location) -> void
|
3498
3533
|
def initialize(name, name_loc, operator_loc, value, location)
|
3534
|
+
@newline = false
|
3499
3535
|
@name = name
|
3500
3536
|
@name_loc = name_loc
|
3501
3537
|
@operator_loc = operator_loc
|
@@ -3609,6 +3645,7 @@ module Prism
|
|
3609
3645
|
|
3610
3646
|
# def initialize: (Symbol name, Location name_loc, Location operator_loc, Node value, Symbol operator, Location location) -> void
|
3611
3647
|
def initialize(name, name_loc, operator_loc, value, operator, location)
|
3648
|
+
@newline = false
|
3612
3649
|
@name = name
|
3613
3650
|
@name_loc = name_loc
|
3614
3651
|
@operator_loc = operator_loc
|
@@ -3717,6 +3754,7 @@ module Prism
|
|
3717
3754
|
|
3718
3755
|
# def initialize: (Symbol name, Location name_loc, Location operator_loc, Node value, Location location) -> void
|
3719
3756
|
def initialize(name, name_loc, operator_loc, value, location)
|
3757
|
+
@newline = false
|
3720
3758
|
@name = name
|
3721
3759
|
@name_loc = name_loc
|
3722
3760
|
@operator_loc = operator_loc
|
@@ -3822,6 +3860,7 @@ module Prism
|
|
3822
3860
|
|
3823
3861
|
# def initialize: (Symbol name, Location location) -> void
|
3824
3862
|
def initialize(name, location)
|
3863
|
+
@newline = false
|
3825
3864
|
@name = name
|
3826
3865
|
@location = location
|
3827
3866
|
end
|
@@ -3908,6 +3947,7 @@ module Prism
|
|
3908
3947
|
|
3909
3948
|
# def initialize: (Symbol name, Location location) -> void
|
3910
3949
|
def initialize(name, location)
|
3950
|
+
@newline = false
|
3911
3951
|
@name = name
|
3912
3952
|
@location = location
|
3913
3953
|
end
|
@@ -4003,6 +4043,7 @@ module Prism
|
|
4003
4043
|
|
4004
4044
|
# def initialize: (Symbol name, Location name_loc, Node value, Location? operator_loc, Location location) -> void
|
4005
4045
|
def initialize(name, name_loc, value, operator_loc, location)
|
4046
|
+
@newline = false
|
4006
4047
|
@name = name
|
4007
4048
|
@name_loc = name_loc
|
4008
4049
|
@value = value
|
@@ -4113,6 +4154,7 @@ module Prism
|
|
4113
4154
|
|
4114
4155
|
# def initialize: (Symbol name, Location name_loc, Location operator_loc, Node value, Location location) -> void
|
4115
4156
|
def initialize(name, name_loc, operator_loc, value, location)
|
4157
|
+
@newline = false
|
4116
4158
|
@name = name
|
4117
4159
|
@name_loc = name_loc
|
4118
4160
|
@operator_loc = operator_loc
|
@@ -4226,6 +4268,7 @@ module Prism
|
|
4226
4268
|
|
4227
4269
|
# def initialize: (Symbol name, Location name_loc, Location operator_loc, Node value, Symbol operator, Location location) -> void
|
4228
4270
|
def initialize(name, name_loc, operator_loc, value, operator, location)
|
4271
|
+
@newline = false
|
4229
4272
|
@name = name
|
4230
4273
|
@name_loc = name_loc
|
4231
4274
|
@operator_loc = operator_loc
|
@@ -4334,6 +4377,7 @@ module Prism
|
|
4334
4377
|
|
4335
4378
|
# def initialize: (Symbol name, Location name_loc, Location operator_loc, Node value, Location location) -> void
|
4336
4379
|
def initialize(name, name_loc, operator_loc, value, location)
|
4380
|
+
@newline = false
|
4337
4381
|
@name = name
|
4338
4382
|
@name_loc = name_loc
|
4339
4383
|
@operator_loc = operator_loc
|
@@ -4441,6 +4485,7 @@ module Prism
|
|
4441
4485
|
|
4442
4486
|
# def initialize: (ConstantPathNode target, Location operator_loc, Node value, Location location) -> void
|
4443
4487
|
def initialize(target, operator_loc, value, location)
|
4488
|
+
@newline = false
|
4444
4489
|
@target = target
|
4445
4490
|
@operator_loc = operator_loc
|
4446
4491
|
@value = value
|
@@ -4546,6 +4591,7 @@ module Prism
|
|
4546
4591
|
|
4547
4592
|
# def initialize: (Node? parent, Node child, Location delimiter_loc, Location location) -> void
|
4548
4593
|
def initialize(parent, child, delimiter_loc, location)
|
4594
|
+
@newline = false
|
4549
4595
|
@parent = parent
|
4550
4596
|
@child = child
|
4551
4597
|
@delimiter_loc = delimiter_loc
|
@@ -4661,6 +4707,7 @@ module Prism
|
|
4661
4707
|
|
4662
4708
|
# def initialize: (ConstantPathNode target, Location operator_loc, Node value, Symbol operator, Location location) -> void
|
4663
4709
|
def initialize(target, operator_loc, value, operator, location)
|
4710
|
+
@newline = false
|
4664
4711
|
@target = target
|
4665
4712
|
@operator_loc = operator_loc
|
4666
4713
|
@value = value
|
@@ -4764,6 +4811,7 @@ module Prism
|
|
4764
4811
|
|
4765
4812
|
# def initialize: (ConstantPathNode target, Location operator_loc, Node value, Location location) -> void
|
4766
4813
|
def initialize(target, operator_loc, value, location)
|
4814
|
+
@newline = false
|
4767
4815
|
@target = target
|
4768
4816
|
@operator_loc = operator_loc
|
4769
4817
|
@value = value
|
@@ -4869,6 +4917,7 @@ module Prism
|
|
4869
4917
|
|
4870
4918
|
# def initialize: (Node? parent, Node child, Location delimiter_loc, Location location) -> void
|
4871
4919
|
def initialize(parent, child, delimiter_loc, location)
|
4920
|
+
@newline = false
|
4872
4921
|
@parent = parent
|
4873
4922
|
@child = child
|
4874
4923
|
@delimiter_loc = delimiter_loc
|
@@ -4987,6 +5036,7 @@ module Prism
|
|
4987
5036
|
|
4988
5037
|
# def initialize: (ConstantPathNode target, Location operator_loc, Node value, Location location) -> void
|
4989
5038
|
def initialize(target, operator_loc, value, location)
|
5039
|
+
@newline = false
|
4990
5040
|
@target = target
|
4991
5041
|
@operator_loc = operator_loc
|
4992
5042
|
@value = value
|
@@ -5090,6 +5140,7 @@ module Prism
|
|
5090
5140
|
|
5091
5141
|
# def initialize: (Symbol name, Location location) -> void
|
5092
5142
|
def initialize(name, location)
|
5143
|
+
@newline = false
|
5093
5144
|
@name = name
|
5094
5145
|
@location = location
|
5095
5146
|
end
|
@@ -5176,6 +5227,7 @@ module Prism
|
|
5176
5227
|
|
5177
5228
|
# def initialize: (Symbol name, Location location) -> void
|
5178
5229
|
def initialize(name, location)
|
5230
|
+
@newline = false
|
5179
5231
|
@name = name
|
5180
5232
|
@location = location
|
5181
5233
|
end
|
@@ -5271,6 +5323,7 @@ module Prism
|
|
5271
5323
|
|
5272
5324
|
# def initialize: (Symbol name, Location name_loc, Node value, Location operator_loc, Location location) -> void
|
5273
5325
|
def initialize(name, name_loc, value, operator_loc, location)
|
5326
|
+
@newline = false
|
5274
5327
|
@name = name
|
5275
5328
|
@name_loc = name_loc
|
5276
5329
|
@value = value
|
@@ -5406,6 +5459,7 @@ module Prism
|
|
5406
5459
|
|
5407
5460
|
# def initialize: (Symbol name, Location name_loc, Node? receiver, ParametersNode? parameters, Node? body, Array[Symbol] locals, Location def_keyword_loc, Location? operator_loc, Location? lparen_loc, Location? rparen_loc, Location? equal_loc, Location? end_keyword_loc, Location location) -> void
|
5408
5461
|
def initialize(name, name_loc, receiver, parameters, body, locals, def_keyword_loc, operator_loc, lparen_loc, rparen_loc, equal_loc, end_keyword_loc, location)
|
5462
|
+
@newline = false
|
5409
5463
|
@name = name
|
5410
5464
|
@name_loc = name_loc
|
5411
5465
|
@receiver = receiver
|
@@ -5583,6 +5637,7 @@ module Prism
|
|
5583
5637
|
|
5584
5638
|
# def initialize: (Location? lparen_loc, Node value, Location? rparen_loc, Location keyword_loc, Location location) -> void
|
5585
5639
|
def initialize(lparen_loc, value, rparen_loc, keyword_loc, location)
|
5640
|
+
@newline = false
|
5586
5641
|
@lparen_loc = lparen_loc
|
5587
5642
|
@value = value
|
5588
5643
|
@rparen_loc = rparen_loc
|
@@ -5700,6 +5755,7 @@ module Prism
|
|
5700
5755
|
|
5701
5756
|
# def initialize: (Location else_keyword_loc, StatementsNode? statements, Location? end_keyword_loc, Location location) -> void
|
5702
5757
|
def initialize(else_keyword_loc, statements, end_keyword_loc, location)
|
5758
|
+
@newline = false
|
5703
5759
|
@else_keyword_loc = else_keyword_loc
|
5704
5760
|
@statements = statements
|
5705
5761
|
@end_keyword_loc = end_keyword_loc
|
@@ -5815,6 +5871,7 @@ module Prism
|
|
5815
5871
|
|
5816
5872
|
# def initialize: (Location opening_loc, StatementsNode? statements, Location closing_loc, Location location) -> void
|
5817
5873
|
def initialize(opening_loc, statements, closing_loc, location)
|
5874
|
+
@newline = false
|
5818
5875
|
@opening_loc = opening_loc
|
5819
5876
|
@statements = statements
|
5820
5877
|
@closing_loc = closing_loc
|
@@ -5927,6 +5984,7 @@ module Prism
|
|
5927
5984
|
|
5928
5985
|
# def initialize: (Location operator_loc, Node variable, Location location) -> void
|
5929
5986
|
def initialize(operator_loc, variable, location)
|
5987
|
+
@newline = false
|
5930
5988
|
@operator_loc = operator_loc
|
5931
5989
|
@variable = variable
|
5932
5990
|
@location = location
|
@@ -6032,6 +6090,7 @@ module Prism
|
|
6032
6090
|
|
6033
6091
|
# def initialize: (Location ensure_keyword_loc, StatementsNode? statements, Location end_keyword_loc, Location location) -> void
|
6034
6092
|
def initialize(ensure_keyword_loc, statements, end_keyword_loc, location)
|
6093
|
+
@newline = false
|
6035
6094
|
@ensure_keyword_loc = ensure_keyword_loc
|
6036
6095
|
@statements = statements
|
6037
6096
|
@end_keyword_loc = end_keyword_loc
|
@@ -6138,6 +6197,7 @@ module Prism
|
|
6138
6197
|
class FalseNode < Node
|
6139
6198
|
# def initialize: (Location location) -> void
|
6140
6199
|
def initialize(location)
|
6200
|
+
@newline = false
|
6141
6201
|
@location = location
|
6142
6202
|
end
|
6143
6203
|
|
@@ -6242,6 +6302,7 @@ module Prism
|
|
6242
6302
|
|
6243
6303
|
# def initialize: (Node? constant, Node left, Array[Node] requireds, Node right, Location? opening_loc, Location? closing_loc, Location location) -> void
|
6244
6304
|
def initialize(constant, left, requireds, right, opening_loc, closing_loc, location)
|
6305
|
+
@newline = false
|
6245
6306
|
@constant = constant
|
6246
6307
|
@left = left
|
6247
6308
|
@requireds = requireds
|
@@ -6361,7 +6422,8 @@ module Prism
|
|
6361
6422
|
# ^^^^^^^^^^
|
6362
6423
|
class FlipFlopNode < Node
|
6363
6424
|
# private attr_reader flags: Integer
|
6364
|
-
|
6425
|
+
attr_reader :flags
|
6426
|
+
private :flags
|
6365
6427
|
|
6366
6428
|
# attr_reader left: Node?
|
6367
6429
|
attr_reader :left
|
@@ -6374,6 +6436,7 @@ module Prism
|
|
6374
6436
|
|
6375
6437
|
# def initialize: (Integer flags, Node? left, Node? right, Location operator_loc, Location location) -> void
|
6376
6438
|
def initialize(flags, left, right, operator_loc, location)
|
6439
|
+
@newline = false
|
6377
6440
|
@flags = flags
|
6378
6441
|
@left = left
|
6379
6442
|
@right = right
|
@@ -6490,6 +6553,7 @@ module Prism
|
|
6490
6553
|
class FloatNode < Node
|
6491
6554
|
# def initialize: (Location location) -> void
|
6492
6555
|
def initialize(location)
|
6556
|
+
@newline = false
|
6493
6557
|
@location = location
|
6494
6558
|
end
|
6495
6559
|
|
@@ -6591,6 +6655,7 @@ module Prism
|
|
6591
6655
|
|
6592
6656
|
# def initialize: (Node index, Node collection, StatementsNode? statements, Location for_keyword_loc, Location in_keyword_loc, Location? do_keyword_loc, Location end_keyword_loc, Location location) -> void
|
6593
6657
|
def initialize(index, collection, statements, for_keyword_loc, in_keyword_loc, do_keyword_loc, end_keyword_loc, location)
|
6658
|
+
@newline = false
|
6594
6659
|
@index = index
|
6595
6660
|
@collection = collection
|
6596
6661
|
@statements = statements
|
@@ -6725,6 +6790,7 @@ module Prism
|
|
6725
6790
|
class ForwardingArgumentsNode < Node
|
6726
6791
|
# def initialize: (Location location) -> void
|
6727
6792
|
def initialize(location)
|
6793
|
+
@newline = false
|
6728
6794
|
@location = location
|
6729
6795
|
end
|
6730
6796
|
|
@@ -6806,6 +6872,7 @@ module Prism
|
|
6806
6872
|
class ForwardingParameterNode < Node
|
6807
6873
|
# def initialize: (Location location) -> void
|
6808
6874
|
def initialize(location)
|
6875
|
+
@newline = false
|
6809
6876
|
@location = location
|
6810
6877
|
end
|
6811
6878
|
|
@@ -6889,6 +6956,7 @@ module Prism
|
|
6889
6956
|
|
6890
6957
|
# def initialize: (BlockNode? block, Location location) -> void
|
6891
6958
|
def initialize(block, location)
|
6959
|
+
@newline = false
|
6892
6960
|
@block = block
|
6893
6961
|
@location = location
|
6894
6962
|
end
|
@@ -6991,6 +7059,7 @@ module Prism
|
|
6991
7059
|
|
6992
7060
|
# def initialize: (Symbol name, Location name_loc, Location operator_loc, Node value, Location location) -> void
|
6993
7061
|
def initialize(name, name_loc, operator_loc, value, location)
|
7062
|
+
@newline = false
|
6994
7063
|
@name = name
|
6995
7064
|
@name_loc = name_loc
|
6996
7065
|
@operator_loc = operator_loc
|
@@ -7104,6 +7173,7 @@ module Prism
|
|
7104
7173
|
|
7105
7174
|
# def initialize: (Symbol name, Location name_loc, Location operator_loc, Node value, Symbol operator, Location location) -> void
|
7106
7175
|
def initialize(name, name_loc, operator_loc, value, operator, location)
|
7176
|
+
@newline = false
|
7107
7177
|
@name = name
|
7108
7178
|
@name_loc = name_loc
|
7109
7179
|
@operator_loc = operator_loc
|
@@ -7212,6 +7282,7 @@ module Prism
|
|
7212
7282
|
|
7213
7283
|
# def initialize: (Symbol name, Location name_loc, Location operator_loc, Node value, Location location) -> void
|
7214
7284
|
def initialize(name, name_loc, operator_loc, value, location)
|
7285
|
+
@newline = false
|
7215
7286
|
@name = name
|
7216
7287
|
@name_loc = name_loc
|
7217
7288
|
@operator_loc = operator_loc
|
@@ -7317,6 +7388,7 @@ module Prism
|
|
7317
7388
|
|
7318
7389
|
# def initialize: (Symbol name, Location location) -> void
|
7319
7390
|
def initialize(name, location)
|
7391
|
+
@newline = false
|
7320
7392
|
@name = name
|
7321
7393
|
@location = location
|
7322
7394
|
end
|
@@ -7403,6 +7475,7 @@ module Prism
|
|
7403
7475
|
|
7404
7476
|
# def initialize: (Symbol name, Location location) -> void
|
7405
7477
|
def initialize(name, location)
|
7478
|
+
@newline = false
|
7406
7479
|
@name = name
|
7407
7480
|
@location = location
|
7408
7481
|
end
|
@@ -7498,6 +7571,7 @@ module Prism
|
|
7498
7571
|
|
7499
7572
|
# def initialize: (Symbol name, Location name_loc, Node value, Location operator_loc, Location location) -> void
|
7500
7573
|
def initialize(name, name_loc, value, operator_loc, location)
|
7574
|
+
@newline = false
|
7501
7575
|
@name = name
|
7502
7576
|
@name_loc = name_loc
|
7503
7577
|
@value = value
|
@@ -7617,6 +7691,7 @@ module Prism
|
|
7617
7691
|
|
7618
7692
|
# def initialize: (Location opening_loc, Array[Node] elements, Location closing_loc, Location location) -> void
|
7619
7693
|
def initialize(opening_loc, elements, closing_loc, location)
|
7694
|
+
@newline = false
|
7620
7695
|
@opening_loc = opening_loc
|
7621
7696
|
@elements = elements
|
7622
7697
|
@closing_loc = closing_loc
|
@@ -7734,6 +7809,7 @@ module Prism
|
|
7734
7809
|
|
7735
7810
|
# def initialize: (Node? constant, Array[Node] elements, Node? rest, Location? opening_loc, Location? closing_loc, Location location) -> void
|
7736
7811
|
def initialize(constant, elements, rest, opening_loc, closing_loc, location)
|
7812
|
+
@newline = false
|
7737
7813
|
@constant = constant
|
7738
7814
|
@elements = elements
|
7739
7815
|
@rest = rest
|
@@ -7874,6 +7950,7 @@ module Prism
|
|
7874
7950
|
|
7875
7951
|
# def initialize: (Location? if_keyword_loc, Node predicate, Location? then_keyword_loc, StatementsNode? statements, Node? consequent, Location? end_keyword_loc, Location location) -> void
|
7876
7952
|
def initialize(if_keyword_loc, predicate, then_keyword_loc, statements, consequent, end_keyword_loc, location)
|
7953
|
+
@newline = false
|
7877
7954
|
@if_keyword_loc = if_keyword_loc
|
7878
7955
|
@predicate = predicate
|
7879
7956
|
@then_keyword_loc = then_keyword_loc
|
@@ -8009,6 +8086,7 @@ module Prism
|
|
8009
8086
|
|
8010
8087
|
# def initialize: (Node numeric, Location location) -> void
|
8011
8088
|
def initialize(numeric, location)
|
8089
|
+
@newline = false
|
8012
8090
|
@numeric = numeric
|
8013
8091
|
@location = location
|
8014
8092
|
end
|
@@ -8102,6 +8180,7 @@ module Prism
|
|
8102
8180
|
|
8103
8181
|
# def initialize: (Node value, Location location) -> void
|
8104
8182
|
def initialize(value, location)
|
8183
|
+
@newline = false
|
8105
8184
|
@value = value
|
8106
8185
|
@location = location
|
8107
8186
|
end
|
@@ -8195,6 +8274,7 @@ module Prism
|
|
8195
8274
|
class ImplicitRestNode < Node
|
8196
8275
|
# def initialize: (Location location) -> void
|
8197
8276
|
def initialize(location)
|
8277
|
+
@newline = false
|
8198
8278
|
@location = location
|
8199
8279
|
end
|
8200
8280
|
|
@@ -8287,6 +8367,7 @@ module Prism
|
|
8287
8367
|
|
8288
8368
|
# def initialize: (Node pattern, StatementsNode? statements, Location in_loc, Location? then_loc, Location location) -> void
|
8289
8369
|
def initialize(pattern, statements, in_loc, then_loc, location)
|
8370
|
+
@newline = false
|
8290
8371
|
@pattern = pattern
|
8291
8372
|
@statements = statements
|
8292
8373
|
@in_loc = in_loc
|
@@ -8397,7 +8478,8 @@ module Prism
|
|
8397
8478
|
# ^^^^^^^^^^^^^^^^^^^^^^
|
8398
8479
|
class IndexAndWriteNode < Node
|
8399
8480
|
# private attr_reader flags: Integer
|
8400
|
-
|
8481
|
+
attr_reader :flags
|
8482
|
+
private :flags
|
8401
8483
|
|
8402
8484
|
# attr_reader receiver: Node?
|
8403
8485
|
attr_reader :receiver
|
@@ -8425,6 +8507,7 @@ module Prism
|
|
8425
8507
|
|
8426
8508
|
# def initialize: (Integer flags, Node? receiver, Location? call_operator_loc, Location opening_loc, ArgumentsNode? arguments, Location closing_loc, Node? block, Location operator_loc, Node value, Location location) -> void
|
8427
8509
|
def initialize(flags, receiver, call_operator_loc, opening_loc, arguments, closing_loc, block, operator_loc, value, location)
|
8510
|
+
@newline = false
|
8428
8511
|
@flags = flags
|
8429
8512
|
@receiver = receiver
|
8430
8513
|
@call_operator_loc = call_operator_loc
|
@@ -8593,7 +8676,8 @@ module Prism
|
|
8593
8676
|
# ^^^^^^^^^^^^^^^^^^^^^
|
8594
8677
|
class IndexOperatorWriteNode < Node
|
8595
8678
|
# private attr_reader flags: Integer
|
8596
|
-
|
8679
|
+
attr_reader :flags
|
8680
|
+
private :flags
|
8597
8681
|
|
8598
8682
|
# attr_reader receiver: Node?
|
8599
8683
|
attr_reader :receiver
|
@@ -8624,6 +8708,7 @@ module Prism
|
|
8624
8708
|
|
8625
8709
|
# def initialize: (Integer flags, Node? receiver, Location? call_operator_loc, Location opening_loc, ArgumentsNode? arguments, Location closing_loc, Node? block, Symbol operator, Location operator_loc, Node value, Location location) -> void
|
8626
8710
|
def initialize(flags, receiver, call_operator_loc, opening_loc, arguments, closing_loc, block, operator, operator_loc, value, location)
|
8711
|
+
@newline = false
|
8627
8712
|
@flags = flags
|
8628
8713
|
@receiver = receiver
|
8629
8714
|
@call_operator_loc = call_operator_loc
|
@@ -8790,7 +8875,8 @@ module Prism
|
|
8790
8875
|
# ^^^^^^^^^^^^^^^^^^^^^^
|
8791
8876
|
class IndexOrWriteNode < Node
|
8792
8877
|
# private attr_reader flags: Integer
|
8793
|
-
|
8878
|
+
attr_reader :flags
|
8879
|
+
private :flags
|
8794
8880
|
|
8795
8881
|
# attr_reader receiver: Node?
|
8796
8882
|
attr_reader :receiver
|
@@ -8818,6 +8904,7 @@ module Prism
|
|
8818
8904
|
|
8819
8905
|
# def initialize: (Integer flags, Node? receiver, Location? call_operator_loc, Location opening_loc, ArgumentsNode? arguments, Location closing_loc, Node? block, Location operator_loc, Node value, Location location) -> void
|
8820
8906
|
def initialize(flags, receiver, call_operator_loc, opening_loc, arguments, closing_loc, block, operator_loc, value, location)
|
8907
|
+
@newline = false
|
8821
8908
|
@flags = flags
|
8822
8909
|
@receiver = receiver
|
8823
8910
|
@call_operator_loc = call_operator_loc
|
@@ -8994,7 +9081,8 @@ module Prism
|
|
8994
9081
|
# ^^^^^^^^
|
8995
9082
|
class IndexTargetNode < Node
|
8996
9083
|
# private attr_reader flags: Integer
|
8997
|
-
|
9084
|
+
attr_reader :flags
|
9085
|
+
private :flags
|
8998
9086
|
|
8999
9087
|
# attr_reader receiver: Node
|
9000
9088
|
attr_reader :receiver
|
@@ -9013,6 +9101,7 @@ module Prism
|
|
9013
9101
|
|
9014
9102
|
# def initialize: (Integer flags, Node receiver, Location opening_loc, ArgumentsNode? arguments, Location closing_loc, Node? block, Location location) -> void
|
9015
9103
|
def initialize(flags, receiver, opening_loc, arguments, closing_loc, block, location)
|
9104
|
+
@newline = false
|
9016
9105
|
@flags = flags
|
9017
9106
|
@receiver = receiver
|
9018
9107
|
@opening_loc = opening_loc
|
@@ -9169,6 +9258,7 @@ module Prism
|
|
9169
9258
|
|
9170
9259
|
# def initialize: (Symbol name, Location name_loc, Location operator_loc, Node value, Location location) -> void
|
9171
9260
|
def initialize(name, name_loc, operator_loc, value, location)
|
9261
|
+
@newline = false
|
9172
9262
|
@name = name
|
9173
9263
|
@name_loc = name_loc
|
9174
9264
|
@operator_loc = operator_loc
|
@@ -9282,6 +9372,7 @@ module Prism
|
|
9282
9372
|
|
9283
9373
|
# def initialize: (Symbol name, Location name_loc, Location operator_loc, Node value, Symbol operator, Location location) -> void
|
9284
9374
|
def initialize(name, name_loc, operator_loc, value, operator, location)
|
9375
|
+
@newline = false
|
9285
9376
|
@name = name
|
9286
9377
|
@name_loc = name_loc
|
9287
9378
|
@operator_loc = operator_loc
|
@@ -9390,6 +9481,7 @@ module Prism
|
|
9390
9481
|
|
9391
9482
|
# def initialize: (Symbol name, Location name_loc, Location operator_loc, Node value, Location location) -> void
|
9392
9483
|
def initialize(name, name_loc, operator_loc, value, location)
|
9484
|
+
@newline = false
|
9393
9485
|
@name = name
|
9394
9486
|
@name_loc = name_loc
|
9395
9487
|
@operator_loc = operator_loc
|
@@ -9495,6 +9587,7 @@ module Prism
|
|
9495
9587
|
|
9496
9588
|
# def initialize: (Symbol name, Location location) -> void
|
9497
9589
|
def initialize(name, location)
|
9590
|
+
@newline = false
|
9498
9591
|
@name = name
|
9499
9592
|
@location = location
|
9500
9593
|
end
|
@@ -9581,6 +9674,7 @@ module Prism
|
|
9581
9674
|
|
9582
9675
|
# def initialize: (Symbol name, Location location) -> void
|
9583
9676
|
def initialize(name, location)
|
9677
|
+
@newline = false
|
9584
9678
|
@name = name
|
9585
9679
|
@location = location
|
9586
9680
|
end
|
@@ -9676,6 +9770,7 @@ module Prism
|
|
9676
9770
|
|
9677
9771
|
# def initialize: (Symbol name, Location name_loc, Node value, Location operator_loc, Location location) -> void
|
9678
9772
|
def initialize(name, name_loc, value, operator_loc, location)
|
9773
|
+
@newline = false
|
9679
9774
|
@name = name
|
9680
9775
|
@name_loc = name_loc
|
9681
9776
|
@value = value
|
@@ -9773,10 +9868,12 @@ module Prism
|
|
9773
9868
|
# ^
|
9774
9869
|
class IntegerNode < Node
|
9775
9870
|
# private attr_reader flags: Integer
|
9776
|
-
|
9871
|
+
attr_reader :flags
|
9872
|
+
private :flags
|
9777
9873
|
|
9778
9874
|
# def initialize: (Integer flags, Location location) -> void
|
9779
9875
|
def initialize(flags, location)
|
9876
|
+
@newline = false
|
9780
9877
|
@flags = flags
|
9781
9878
|
@location = location
|
9782
9879
|
end
|
@@ -9880,7 +9977,8 @@ module Prism
|
|
9880
9977
|
# ^^^^^^^^^^^^^^^^
|
9881
9978
|
class InterpolatedMatchLastLineNode < Node
|
9882
9979
|
# private attr_reader flags: Integer
|
9883
|
-
|
9980
|
+
attr_reader :flags
|
9981
|
+
private :flags
|
9884
9982
|
|
9885
9983
|
# attr_reader opening_loc: Location
|
9886
9984
|
attr_reader :opening_loc
|
@@ -9893,6 +9991,7 @@ module Prism
|
|
9893
9991
|
|
9894
9992
|
# def initialize: (Integer flags, Location opening_loc, Array[Node] parts, Location closing_loc, Location location) -> void
|
9895
9993
|
def initialize(flags, opening_loc, parts, closing_loc, location)
|
9994
|
+
@newline = false
|
9896
9995
|
@flags = flags
|
9897
9996
|
@opening_loc = opening_loc
|
9898
9997
|
@parts = parts
|
@@ -10055,7 +10154,8 @@ module Prism
|
|
10055
10154
|
# ^^^^^^^^^^^^^^^^
|
10056
10155
|
class InterpolatedRegularExpressionNode < Node
|
10057
10156
|
# private attr_reader flags: Integer
|
10058
|
-
|
10157
|
+
attr_reader :flags
|
10158
|
+
private :flags
|
10059
10159
|
|
10060
10160
|
# attr_reader opening_loc: Location
|
10061
10161
|
attr_reader :opening_loc
|
@@ -10068,6 +10168,7 @@ module Prism
|
|
10068
10168
|
|
10069
10169
|
# def initialize: (Integer flags, Location opening_loc, Array[Node] parts, Location closing_loc, Location location) -> void
|
10070
10170
|
def initialize(flags, opening_loc, parts, closing_loc, location)
|
10171
|
+
@newline = false
|
10071
10172
|
@flags = flags
|
10072
10173
|
@opening_loc = opening_loc
|
10073
10174
|
@parts = parts
|
@@ -10240,6 +10341,7 @@ module Prism
|
|
10240
10341
|
|
10241
10342
|
# def initialize: (Location? opening_loc, Array[Node] parts, Location? closing_loc, Location location) -> void
|
10242
10343
|
def initialize(opening_loc, parts, closing_loc, location)
|
10344
|
+
@newline = false
|
10243
10345
|
@opening_loc = opening_loc
|
10244
10346
|
@parts = parts
|
10245
10347
|
@closing_loc = closing_loc
|
@@ -10353,6 +10455,7 @@ module Prism
|
|
10353
10455
|
|
10354
10456
|
# def initialize: (Location? opening_loc, Array[Node] parts, Location? closing_loc, Location location) -> void
|
10355
10457
|
def initialize(opening_loc, parts, closing_loc, location)
|
10458
|
+
@newline = false
|
10356
10459
|
@opening_loc = opening_loc
|
10357
10460
|
@parts = parts
|
10358
10461
|
@closing_loc = closing_loc
|
@@ -10466,6 +10569,7 @@ module Prism
|
|
10466
10569
|
|
10467
10570
|
# def initialize: (Location opening_loc, Array[Node] parts, Location closing_loc, Location location) -> void
|
10468
10571
|
def initialize(opening_loc, parts, closing_loc, location)
|
10572
|
+
@newline = false
|
10469
10573
|
@opening_loc = opening_loc
|
10470
10574
|
@parts = parts
|
10471
10575
|
@closing_loc = closing_loc
|
@@ -10569,13 +10673,15 @@ module Prism
|
|
10569
10673
|
# ^^^^
|
10570
10674
|
class KeywordHashNode < Node
|
10571
10675
|
# private attr_reader flags: Integer
|
10572
|
-
|
10676
|
+
attr_reader :flags
|
10677
|
+
private :flags
|
10573
10678
|
|
10574
10679
|
# attr_reader elements: Array[Node]
|
10575
10680
|
attr_reader :elements
|
10576
10681
|
|
10577
10682
|
# def initialize: (Integer flags, Array[Node] elements, Location location) -> void
|
10578
10683
|
def initialize(flags, elements, location)
|
10684
|
+
@newline = false
|
10579
10685
|
@flags = flags
|
10580
10686
|
@elements = elements
|
10581
10687
|
@location = location
|
@@ -10668,7 +10774,8 @@ module Prism
|
|
10668
10774
|
# end
|
10669
10775
|
class KeywordRestParameterNode < Node
|
10670
10776
|
# private attr_reader flags: Integer
|
10671
|
-
|
10777
|
+
attr_reader :flags
|
10778
|
+
private :flags
|
10672
10779
|
|
10673
10780
|
# attr_reader name: Symbol?
|
10674
10781
|
attr_reader :name
|
@@ -10681,6 +10788,7 @@ module Prism
|
|
10681
10788
|
|
10682
10789
|
# def initialize: (Integer flags, Symbol? name, Location? name_loc, Location operator_loc, Location location) -> void
|
10683
10790
|
def initialize(flags, name, name_loc, operator_loc, location)
|
10791
|
+
@newline = false
|
10684
10792
|
@flags = flags
|
10685
10793
|
@name = name
|
10686
10794
|
@name_loc = name_loc
|
@@ -10806,6 +10914,7 @@ module Prism
|
|
10806
10914
|
|
10807
10915
|
# def initialize: (Array[Symbol] locals, Location operator_loc, Location opening_loc, Location closing_loc, Node? parameters, Node? body, Location location) -> void
|
10808
10916
|
def initialize(locals, operator_loc, opening_loc, closing_loc, parameters, body, location)
|
10917
|
+
@newline = false
|
10809
10918
|
@locals = locals
|
10810
10919
|
@operator_loc = operator_loc
|
10811
10920
|
@opening_loc = opening_loc
|
@@ -10947,6 +11056,7 @@ module Prism
|
|
10947
11056
|
|
10948
11057
|
# def initialize: (Location name_loc, Location operator_loc, Node value, Symbol name, Integer depth, Location location) -> void
|
10949
11058
|
def initialize(name_loc, operator_loc, value, name, depth, location)
|
11059
|
+
@newline = false
|
10950
11060
|
@name_loc = name_loc
|
10951
11061
|
@operator_loc = operator_loc
|
10952
11062
|
@value = value
|
@@ -11066,6 +11176,7 @@ module Prism
|
|
11066
11176
|
|
11067
11177
|
# def initialize: (Location name_loc, Location operator_loc, Node value, Symbol name, Symbol operator, Integer depth, Location location) -> void
|
11068
11178
|
def initialize(name_loc, operator_loc, value, name, operator, depth, location)
|
11179
|
+
@newline = false
|
11069
11180
|
@name_loc = name_loc
|
11070
11181
|
@operator_loc = operator_loc
|
11071
11182
|
@value = value
|
@@ -11180,6 +11291,7 @@ module Prism
|
|
11180
11291
|
|
11181
11292
|
# def initialize: (Location name_loc, Location operator_loc, Node value, Symbol name, Integer depth, Location location) -> void
|
11182
11293
|
def initialize(name_loc, operator_loc, value, name, depth, location)
|
11294
|
+
@newline = false
|
11183
11295
|
@name_loc = name_loc
|
11184
11296
|
@operator_loc = operator_loc
|
11185
11297
|
@value = value
|
@@ -11305,6 +11417,7 @@ module Prism
|
|
11305
11417
|
|
11306
11418
|
# def initialize: (Symbol name, Integer depth, Location location) -> void
|
11307
11419
|
def initialize(name, depth, location)
|
11420
|
+
@newline = false
|
11308
11421
|
@name = name
|
11309
11422
|
@depth = depth
|
11310
11423
|
@location = location
|
@@ -11397,6 +11510,7 @@ module Prism
|
|
11397
11510
|
|
11398
11511
|
# def initialize: (Symbol name, Integer depth, Location location) -> void
|
11399
11512
|
def initialize(name, depth, location)
|
11513
|
+
@newline = false
|
11400
11514
|
@name = name
|
11401
11515
|
@depth = depth
|
11402
11516
|
@location = location
|
@@ -11498,6 +11612,7 @@ module Prism
|
|
11498
11612
|
|
11499
11613
|
# def initialize: (Symbol name, Integer depth, Location name_loc, Node value, Location operator_loc, Location location) -> void
|
11500
11614
|
def initialize(name, depth, name_loc, value, operator_loc, location)
|
11615
|
+
@newline = false
|
11501
11616
|
@name = name
|
11502
11617
|
@depth = depth
|
11503
11618
|
@name_loc = name_loc
|
@@ -11598,7 +11713,8 @@ module Prism
|
|
11598
11713
|
# ^^^^^^
|
11599
11714
|
class MatchLastLineNode < Node
|
11600
11715
|
# private attr_reader flags: Integer
|
11601
|
-
|
11716
|
+
attr_reader :flags
|
11717
|
+
private :flags
|
11602
11718
|
|
11603
11719
|
# attr_reader opening_loc: Location
|
11604
11720
|
attr_reader :opening_loc
|
@@ -11614,6 +11730,7 @@ module Prism
|
|
11614
11730
|
|
11615
11731
|
# def initialize: (Integer flags, Location opening_loc, Location content_loc, Location closing_loc, String unescaped, Location location) -> void
|
11616
11732
|
def initialize(flags, opening_loc, content_loc, closing_loc, unescaped, location)
|
11733
|
+
@newline = false
|
11617
11734
|
@flags = flags
|
11618
11735
|
@opening_loc = opening_loc
|
11619
11736
|
@content_loc = content_loc
|
@@ -11789,6 +11906,7 @@ module Prism
|
|
11789
11906
|
|
11790
11907
|
# def initialize: (Node value, Node pattern, Location operator_loc, Location location) -> void
|
11791
11908
|
def initialize(value, pattern, operator_loc, location)
|
11909
|
+
@newline = false
|
11792
11910
|
@value = value
|
11793
11911
|
@pattern = pattern
|
11794
11912
|
@operator_loc = operator_loc
|
@@ -11894,6 +12012,7 @@ module Prism
|
|
11894
12012
|
|
11895
12013
|
# def initialize: (Node value, Node pattern, Location operator_loc, Location location) -> void
|
11896
12014
|
def initialize(value, pattern, operator_loc, location)
|
12015
|
+
@newline = false
|
11897
12016
|
@value = value
|
11898
12017
|
@pattern = pattern
|
11899
12018
|
@operator_loc = operator_loc
|
@@ -11996,6 +12115,7 @@ module Prism
|
|
11996
12115
|
|
11997
12116
|
# def initialize: (CallNode call, Array[Node] targets, Location location) -> void
|
11998
12117
|
def initialize(call, targets, location)
|
12118
|
+
@newline = false
|
11999
12119
|
@call = call
|
12000
12120
|
@targets = targets
|
12001
12121
|
@location = location
|
@@ -12080,6 +12200,7 @@ module Prism
|
|
12080
12200
|
class MissingNode < Node
|
12081
12201
|
# def initialize: (Location location) -> void
|
12082
12202
|
def initialize(location)
|
12203
|
+
@newline = false
|
12083
12204
|
@location = location
|
12084
12205
|
end
|
12085
12206
|
|
@@ -12178,6 +12299,7 @@ module Prism
|
|
12178
12299
|
|
12179
12300
|
# def initialize: (Array[Symbol] locals, Location module_keyword_loc, Node constant_path, Node? body, Location end_keyword_loc, Symbol name, Location location) -> void
|
12180
12301
|
def initialize(locals, module_keyword_loc, constant_path, body, end_keyword_loc, name, location)
|
12302
|
+
@newline = false
|
12181
12303
|
@locals = locals
|
12182
12304
|
@module_keyword_loc = module_keyword_loc
|
12183
12305
|
@constant_path = constant_path
|
@@ -12310,6 +12432,7 @@ module Prism
|
|
12310
12432
|
|
12311
12433
|
# def initialize: (Array[Node] lefts, Node? rest, Array[Node] rights, Location? lparen_loc, Location? rparen_loc, Location location) -> void
|
12312
12434
|
def initialize(lefts, rest, rights, lparen_loc, rparen_loc, location)
|
12435
|
+
@newline = false
|
12313
12436
|
@lefts = lefts
|
12314
12437
|
@rest = rest
|
12315
12438
|
@rights = rights
|
@@ -12445,6 +12568,7 @@ module Prism
|
|
12445
12568
|
|
12446
12569
|
# def initialize: (Array[Node] lefts, Node? rest, Array[Node] rights, Location? lparen_loc, Location? rparen_loc, Location operator_loc, Node value, Location location) -> void
|
12447
12570
|
def initialize(lefts, rest, rights, lparen_loc, rparen_loc, operator_loc, value, location)
|
12571
|
+
@newline = false
|
12448
12572
|
@lefts = lefts
|
12449
12573
|
@rest = rest
|
12450
12574
|
@rights = rights
|
@@ -12578,6 +12702,7 @@ module Prism
|
|
12578
12702
|
|
12579
12703
|
# def initialize: (ArgumentsNode? arguments, Location keyword_loc, Location location) -> void
|
12580
12704
|
def initialize(arguments, keyword_loc, location)
|
12705
|
+
@newline = false
|
12581
12706
|
@arguments = arguments
|
12582
12707
|
@keyword_loc = keyword_loc
|
12583
12708
|
@location = location
|
@@ -12676,6 +12801,7 @@ module Prism
|
|
12676
12801
|
class NilNode < Node
|
12677
12802
|
# def initialize: (Location location) -> void
|
12678
12803
|
def initialize(location)
|
12804
|
+
@newline = false
|
12679
12805
|
@location = location
|
12680
12806
|
end
|
12681
12807
|
|
@@ -12763,6 +12889,7 @@ module Prism
|
|
12763
12889
|
|
12764
12890
|
# def initialize: (Location operator_loc, Location keyword_loc, Location location) -> void
|
12765
12891
|
def initialize(operator_loc, keyword_loc, location)
|
12892
|
+
@newline = false
|
12766
12893
|
@operator_loc = operator_loc
|
12767
12894
|
@keyword_loc = keyword_loc
|
12768
12895
|
@location = location
|
@@ -12862,6 +12989,7 @@ module Prism
|
|
12862
12989
|
|
12863
12990
|
# def initialize: (Integer maximum, Location location) -> void
|
12864
12991
|
def initialize(maximum, location)
|
12992
|
+
@newline = false
|
12865
12993
|
@maximum = maximum
|
12866
12994
|
@location = location
|
12867
12995
|
end
|
@@ -12954,6 +13082,7 @@ module Prism
|
|
12954
13082
|
|
12955
13083
|
# def initialize: (Integer number, Location location) -> void
|
12956
13084
|
def initialize(number, location)
|
13085
|
+
@newline = false
|
12957
13086
|
@number = number
|
12958
13087
|
@location = location
|
12959
13088
|
end
|
@@ -13037,7 +13166,8 @@ module Prism
|
|
13037
13166
|
# end
|
13038
13167
|
class OptionalKeywordParameterNode < Node
|
13039
13168
|
# private attr_reader flags: Integer
|
13040
|
-
|
13169
|
+
attr_reader :flags
|
13170
|
+
private :flags
|
13041
13171
|
|
13042
13172
|
# attr_reader name: Symbol
|
13043
13173
|
attr_reader :name
|
@@ -13050,6 +13180,7 @@ module Prism
|
|
13050
13180
|
|
13051
13181
|
# def initialize: (Integer flags, Symbol name, Location name_loc, Node value, Location location) -> void
|
13052
13182
|
def initialize(flags, name, name_loc, value, location)
|
13183
|
+
@newline = false
|
13053
13184
|
@flags = flags
|
13054
13185
|
@name = name
|
13055
13186
|
@name_loc = name_loc
|
@@ -13149,7 +13280,8 @@ module Prism
|
|
13149
13280
|
# end
|
13150
13281
|
class OptionalParameterNode < Node
|
13151
13282
|
# private attr_reader flags: Integer
|
13152
|
-
|
13283
|
+
attr_reader :flags
|
13284
|
+
private :flags
|
13153
13285
|
|
13154
13286
|
# attr_reader name: Symbol
|
13155
13287
|
attr_reader :name
|
@@ -13165,6 +13297,7 @@ module Prism
|
|
13165
13297
|
|
13166
13298
|
# def initialize: (Integer flags, Symbol name, Location name_loc, Location operator_loc, Node value, Location location) -> void
|
13167
13299
|
def initialize(flags, name, name_loc, operator_loc, value, location)
|
13300
|
+
@newline = false
|
13168
13301
|
@flags = flags
|
13169
13302
|
@name = name
|
13170
13303
|
@name_loc = name_loc
|
@@ -13296,6 +13429,7 @@ module Prism
|
|
13296
13429
|
|
13297
13430
|
# def initialize: (Node left, Node right, Location operator_loc, Location location) -> void
|
13298
13431
|
def initialize(left, right, operator_loc, location)
|
13432
|
+
@newline = false
|
13299
13433
|
@left = left
|
13300
13434
|
@right = right
|
13301
13435
|
@operator_loc = operator_loc
|
@@ -13414,6 +13548,7 @@ module Prism
|
|
13414
13548
|
|
13415
13549
|
# def initialize: (Array[Node] requireds, Array[Node] optionals, Node? rest, Array[Node] posts, Array[Node] keywords, Node? keyword_rest, BlockParameterNode? block, Location location) -> void
|
13416
13550
|
def initialize(requireds, optionals, rest, posts, keywords, keyword_rest, block, location)
|
13551
|
+
@newline = false
|
13417
13552
|
@requireds = requireds
|
13418
13553
|
@optionals = optionals
|
13419
13554
|
@rest = rest
|
@@ -13547,6 +13682,7 @@ module Prism
|
|
13547
13682
|
|
13548
13683
|
# def initialize: (Node? body, Location opening_loc, Location closing_loc, Location location) -> void
|
13549
13684
|
def initialize(body, opening_loc, closing_loc, location)
|
13685
|
+
@newline = false
|
13550
13686
|
@body = body
|
13551
13687
|
@opening_loc = opening_loc
|
13552
13688
|
@closing_loc = closing_loc
|
@@ -13669,6 +13805,7 @@ module Prism
|
|
13669
13805
|
|
13670
13806
|
# def initialize: (Node expression, Location operator_loc, Location lparen_loc, Location rparen_loc, Location location) -> void
|
13671
13807
|
def initialize(expression, operator_loc, lparen_loc, rparen_loc, location)
|
13808
|
+
@newline = false
|
13672
13809
|
@expression = expression
|
13673
13810
|
@operator_loc = operator_loc
|
13674
13811
|
@lparen_loc = lparen_loc
|
@@ -13783,6 +13920,7 @@ module Prism
|
|
13783
13920
|
|
13784
13921
|
# def initialize: (Node variable, Location operator_loc, Location location) -> void
|
13785
13922
|
def initialize(variable, operator_loc, location)
|
13923
|
+
@newline = false
|
13786
13924
|
@variable = variable
|
13787
13925
|
@operator_loc = operator_loc
|
13788
13926
|
@location = location
|
@@ -13887,6 +14025,7 @@ module Prism
|
|
13887
14025
|
|
13888
14026
|
# def initialize: (StatementsNode? statements, Location keyword_loc, Location opening_loc, Location closing_loc, Location location) -> void
|
13889
14027
|
def initialize(statements, keyword_loc, opening_loc, closing_loc, location)
|
14028
|
+
@newline = false
|
13890
14029
|
@statements = statements
|
13891
14030
|
@keyword_loc = keyword_loc
|
13892
14031
|
@opening_loc = opening_loc
|
@@ -14013,6 +14152,7 @@ module Prism
|
|
14013
14152
|
|
14014
14153
|
# def initialize: (StatementsNode? statements, Location keyword_loc, Location opening_loc, Location closing_loc, Location location) -> void
|
14015
14154
|
def initialize(statements, keyword_loc, opening_loc, closing_loc, location)
|
14155
|
+
@newline = false
|
14016
14156
|
@statements = statements
|
14017
14157
|
@keyword_loc = keyword_loc
|
14018
14158
|
@opening_loc = opening_loc
|
@@ -14130,6 +14270,7 @@ module Prism
|
|
14130
14270
|
|
14131
14271
|
# def initialize: (Array[Symbol] locals, StatementsNode statements, Location location) -> void
|
14132
14272
|
def initialize(locals, statements, location)
|
14273
|
+
@newline = false
|
14133
14274
|
@locals = locals
|
14134
14275
|
@statements = statements
|
14135
14276
|
@location = location
|
@@ -14219,7 +14360,8 @@ module Prism
|
|
14219
14360
|
# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
14220
14361
|
class RangeNode < Node
|
14221
14362
|
# private attr_reader flags: Integer
|
14222
|
-
|
14363
|
+
attr_reader :flags
|
14364
|
+
private :flags
|
14223
14365
|
|
14224
14366
|
# The left-hand side of the range, if present. It can be either `nil` or any [non-void expression](https://github.com/ruby/prism/blob/main/docs/parsing_rules.md#non-void-expression).
|
14225
14367
|
#
|
@@ -14245,6 +14387,7 @@ module Prism
|
|
14245
14387
|
|
14246
14388
|
# def initialize: (Integer flags, Node? left, Node? right, Location operator_loc, Location location) -> void
|
14247
14389
|
def initialize(flags, left, right, operator_loc, location)
|
14390
|
+
@newline = false
|
14248
14391
|
@flags = flags
|
14249
14392
|
@left = left
|
14250
14393
|
@right = right
|
@@ -14364,6 +14507,7 @@ module Prism
|
|
14364
14507
|
|
14365
14508
|
# def initialize: (Node numeric, Location location) -> void
|
14366
14509
|
def initialize(numeric, location)
|
14510
|
+
@newline = false
|
14367
14511
|
@numeric = numeric
|
14368
14512
|
@location = location
|
14369
14513
|
end
|
@@ -14448,6 +14592,7 @@ module Prism
|
|
14448
14592
|
class RedoNode < Node
|
14449
14593
|
# def initialize: (Location location) -> void
|
14450
14594
|
def initialize(location)
|
14595
|
+
@newline = false
|
14451
14596
|
@location = location
|
14452
14597
|
end
|
14453
14598
|
|
@@ -14527,7 +14672,8 @@ module Prism
|
|
14527
14672
|
# ^^^^^^
|
14528
14673
|
class RegularExpressionNode < Node
|
14529
14674
|
# private attr_reader flags: Integer
|
14530
|
-
|
14675
|
+
attr_reader :flags
|
14676
|
+
private :flags
|
14531
14677
|
|
14532
14678
|
# attr_reader opening_loc: Location
|
14533
14679
|
attr_reader :opening_loc
|
@@ -14543,6 +14689,7 @@ module Prism
|
|
14543
14689
|
|
14544
14690
|
# def initialize: (Integer flags, Location opening_loc, Location content_loc, Location closing_loc, String unescaped, Location location) -> void
|
14545
14691
|
def initialize(flags, opening_loc, content_loc, closing_loc, unescaped, location)
|
14692
|
+
@newline = false
|
14546
14693
|
@flags = flags
|
14547
14694
|
@opening_loc = opening_loc
|
14548
14695
|
@content_loc = content_loc
|
@@ -14709,7 +14856,8 @@ module Prism
|
|
14709
14856
|
# end
|
14710
14857
|
class RequiredKeywordParameterNode < Node
|
14711
14858
|
# private attr_reader flags: Integer
|
14712
|
-
|
14859
|
+
attr_reader :flags
|
14860
|
+
private :flags
|
14713
14861
|
|
14714
14862
|
# attr_reader name: Symbol
|
14715
14863
|
attr_reader :name
|
@@ -14719,6 +14867,7 @@ module Prism
|
|
14719
14867
|
|
14720
14868
|
# def initialize: (Integer flags, Symbol name, Location name_loc, Location location) -> void
|
14721
14869
|
def initialize(flags, name, name_loc, location)
|
14870
|
+
@newline = false
|
14722
14871
|
@flags = flags
|
14723
14872
|
@name = name
|
14724
14873
|
@name_loc = name_loc
|
@@ -14814,13 +14963,15 @@ module Prism
|
|
14814
14963
|
# end
|
14815
14964
|
class RequiredParameterNode < Node
|
14816
14965
|
# private attr_reader flags: Integer
|
14817
|
-
|
14966
|
+
attr_reader :flags
|
14967
|
+
private :flags
|
14818
14968
|
|
14819
14969
|
# attr_reader name: Symbol
|
14820
14970
|
attr_reader :name
|
14821
14971
|
|
14822
14972
|
# def initialize: (Integer flags, Symbol name, Location location) -> void
|
14823
14973
|
def initialize(flags, name, location)
|
14974
|
+
@newline = false
|
14824
14975
|
@flags = flags
|
14825
14976
|
@name = name
|
14826
14977
|
@location = location
|
@@ -14922,6 +15073,7 @@ module Prism
|
|
14922
15073
|
|
14923
15074
|
# def initialize: (Node expression, Location keyword_loc, Node rescue_expression, Location location) -> void
|
14924
15075
|
def initialize(expression, keyword_loc, rescue_expression, location)
|
15076
|
+
@newline = false
|
14925
15077
|
@expression = expression
|
14926
15078
|
@keyword_loc = keyword_loc
|
14927
15079
|
@rescue_expression = rescue_expression
|
@@ -15045,6 +15197,7 @@ module Prism
|
|
15045
15197
|
|
15046
15198
|
# def initialize: (Location keyword_loc, Array[Node] exceptions, Location? operator_loc, Node? reference, StatementsNode? statements, RescueNode? consequent, Location location) -> void
|
15047
15199
|
def initialize(keyword_loc, exceptions, operator_loc, reference, statements, consequent, location)
|
15200
|
+
@newline = false
|
15048
15201
|
@keyword_loc = keyword_loc
|
15049
15202
|
@exceptions = exceptions
|
15050
15203
|
@operator_loc = operator_loc
|
@@ -15173,7 +15326,8 @@ module Prism
|
|
15173
15326
|
# end
|
15174
15327
|
class RestParameterNode < Node
|
15175
15328
|
# private attr_reader flags: Integer
|
15176
|
-
|
15329
|
+
attr_reader :flags
|
15330
|
+
private :flags
|
15177
15331
|
|
15178
15332
|
# attr_reader name: Symbol?
|
15179
15333
|
attr_reader :name
|
@@ -15186,6 +15340,7 @@ module Prism
|
|
15186
15340
|
|
15187
15341
|
# def initialize: (Integer flags, Symbol? name, Location? name_loc, Location operator_loc, Location location) -> void
|
15188
15342
|
def initialize(flags, name, name_loc, operator_loc, location)
|
15343
|
+
@newline = false
|
15189
15344
|
@flags = flags
|
15190
15345
|
@name = name
|
15191
15346
|
@name_loc = name_loc
|
@@ -15293,6 +15448,7 @@ module Prism
|
|
15293
15448
|
class RetryNode < Node
|
15294
15449
|
# def initialize: (Location location) -> void
|
15295
15450
|
def initialize(location)
|
15451
|
+
@newline = false
|
15296
15452
|
@location = location
|
15297
15453
|
end
|
15298
15454
|
|
@@ -15379,6 +15535,7 @@ module Prism
|
|
15379
15535
|
|
15380
15536
|
# def initialize: (Location keyword_loc, ArgumentsNode? arguments, Location location) -> void
|
15381
15537
|
def initialize(keyword_loc, arguments, location)
|
15538
|
+
@newline = false
|
15382
15539
|
@keyword_loc = keyword_loc
|
15383
15540
|
@arguments = arguments
|
15384
15541
|
@location = location
|
@@ -15477,6 +15634,7 @@ module Prism
|
|
15477
15634
|
class SelfNode < Node
|
15478
15635
|
# def initialize: (Location location) -> void
|
15479
15636
|
def initialize(location)
|
15637
|
+
@newline = false
|
15480
15638
|
@location = location
|
15481
15639
|
end
|
15482
15640
|
|
@@ -15575,6 +15733,7 @@ module Prism
|
|
15575
15733
|
|
15576
15734
|
# def initialize: (Array[Symbol] locals, Location class_keyword_loc, Location operator_loc, Node expression, Node? body, Location end_keyword_loc, Location location) -> void
|
15577
15735
|
def initialize(locals, class_keyword_loc, operator_loc, expression, body, end_keyword_loc, location)
|
15736
|
+
@newline = false
|
15578
15737
|
@locals = locals
|
15579
15738
|
@class_keyword_loc = class_keyword_loc
|
15580
15739
|
@operator_loc = operator_loc
|
@@ -15697,6 +15856,7 @@ module Prism
|
|
15697
15856
|
class SourceEncodingNode < Node
|
15698
15857
|
# def initialize: (Location location) -> void
|
15699
15858
|
def initialize(location)
|
15859
|
+
@newline = false
|
15700
15860
|
@location = location
|
15701
15861
|
end
|
15702
15862
|
|
@@ -15780,6 +15940,7 @@ module Prism
|
|
15780
15940
|
|
15781
15941
|
# def initialize: (String filepath, Location location) -> void
|
15782
15942
|
def initialize(filepath, location)
|
15943
|
+
@newline = false
|
15783
15944
|
@filepath = filepath
|
15784
15945
|
@location = location
|
15785
15946
|
end
|
@@ -15863,6 +16024,7 @@ module Prism
|
|
15863
16024
|
class SourceLineNode < Node
|
15864
16025
|
# def initialize: (Location location) -> void
|
15865
16026
|
def initialize(location)
|
16027
|
+
@newline = false
|
15866
16028
|
@location = location
|
15867
16029
|
end
|
15868
16030
|
|
@@ -15949,6 +16111,7 @@ module Prism
|
|
15949
16111
|
|
15950
16112
|
# def initialize: (Location operator_loc, Node? expression, Location location) -> void
|
15951
16113
|
def initialize(operator_loc, expression, location)
|
16114
|
+
@newline = false
|
15952
16115
|
@operator_loc = operator_loc
|
15953
16116
|
@expression = expression
|
15954
16117
|
@location = location
|
@@ -16050,6 +16213,7 @@ module Prism
|
|
16050
16213
|
|
16051
16214
|
# def initialize: (Array[Node] body, Location location) -> void
|
16052
16215
|
def initialize(body, location)
|
16216
|
+
@newline = false
|
16053
16217
|
@body = body
|
16054
16218
|
@location = location
|
16055
16219
|
end
|
@@ -16138,7 +16302,8 @@ module Prism
|
|
16138
16302
|
# ^^^^ ^^^^
|
16139
16303
|
class StringNode < Node
|
16140
16304
|
# private attr_reader flags: Integer
|
16141
|
-
|
16305
|
+
attr_reader :flags
|
16306
|
+
private :flags
|
16142
16307
|
|
16143
16308
|
# attr_reader opening_loc: Location?
|
16144
16309
|
attr_reader :opening_loc
|
@@ -16154,6 +16319,7 @@ module Prism
|
|
16154
16319
|
|
16155
16320
|
# def initialize: (Integer flags, Location? opening_loc, Location content_loc, Location? closing_loc, String unescaped, Location location) -> void
|
16156
16321
|
def initialize(flags, opening_loc, content_loc, closing_loc, unescaped, location)
|
16322
|
+
@newline = false
|
16157
16323
|
@flags = flags
|
16158
16324
|
@opening_loc = opening_loc
|
16159
16325
|
@content_loc = content_loc
|
@@ -16298,6 +16464,7 @@ module Prism
|
|
16298
16464
|
|
16299
16465
|
# def initialize: (Location keyword_loc, Location? lparen_loc, ArgumentsNode? arguments, Location? rparen_loc, Node? block, Location location) -> void
|
16300
16466
|
def initialize(keyword_loc, lparen_loc, arguments, rparen_loc, block, location)
|
16467
|
+
@newline = false
|
16301
16468
|
@keyword_loc = keyword_loc
|
16302
16469
|
@lparen_loc = lparen_loc
|
16303
16470
|
@arguments = arguments
|
@@ -16423,7 +16590,8 @@ module Prism
|
|
16423
16590
|
# ^^^
|
16424
16591
|
class SymbolNode < Node
|
16425
16592
|
# private attr_reader flags: Integer
|
16426
|
-
|
16593
|
+
attr_reader :flags
|
16594
|
+
private :flags
|
16427
16595
|
|
16428
16596
|
# attr_reader opening_loc: Location?
|
16429
16597
|
attr_reader :opening_loc
|
@@ -16439,6 +16607,7 @@ module Prism
|
|
16439
16607
|
|
16440
16608
|
# def initialize: (Integer flags, Location? opening_loc, Location? value_loc, Location? closing_loc, String unescaped, Location location) -> void
|
16441
16609
|
def initialize(flags, opening_loc, value_loc, closing_loc, unescaped, location)
|
16610
|
+
@newline = false
|
16442
16611
|
@flags = flags
|
16443
16612
|
@opening_loc = opening_loc
|
16444
16613
|
@value_loc = value_loc
|
@@ -16565,6 +16734,7 @@ module Prism
|
|
16565
16734
|
class TrueNode < Node
|
16566
16735
|
# def initialize: (Location location) -> void
|
16567
16736
|
def initialize(location)
|
16737
|
+
@newline = false
|
16568
16738
|
@location = location
|
16569
16739
|
end
|
16570
16740
|
|
@@ -16651,6 +16821,7 @@ module Prism
|
|
16651
16821
|
|
16652
16822
|
# def initialize: (Array[Node] names, Location keyword_loc, Location location) -> void
|
16653
16823
|
def initialize(names, keyword_loc, location)
|
16824
|
+
@newline = false
|
16654
16825
|
@names = names
|
16655
16826
|
@keyword_loc = keyword_loc
|
16656
16827
|
@location = location
|
@@ -16763,6 +16934,7 @@ module Prism
|
|
16763
16934
|
|
16764
16935
|
# def initialize: (Location keyword_loc, Node predicate, Location? then_keyword_loc, StatementsNode? statements, ElseNode? consequent, Location? end_keyword_loc, Location location) -> void
|
16765
16936
|
def initialize(keyword_loc, predicate, then_keyword_loc, statements, consequent, end_keyword_loc, location)
|
16937
|
+
@newline = false
|
16766
16938
|
@keyword_loc = keyword_loc
|
16767
16939
|
@predicate = predicate
|
16768
16940
|
@then_keyword_loc = then_keyword_loc
|
@@ -16897,7 +17069,8 @@ module Prism
|
|
16897
17069
|
# ^^^^^^^^^^^^^^^^^^^^
|
16898
17070
|
class UntilNode < Node
|
16899
17071
|
# private attr_reader flags: Integer
|
16900
|
-
|
17072
|
+
attr_reader :flags
|
17073
|
+
private :flags
|
16901
17074
|
|
16902
17075
|
# attr_reader keyword_loc: Location
|
16903
17076
|
attr_reader :keyword_loc
|
@@ -16913,6 +17086,7 @@ module Prism
|
|
16913
17086
|
|
16914
17087
|
# def initialize: (Integer flags, Location keyword_loc, Location? closing_loc, Node predicate, StatementsNode? statements, Location location) -> void
|
16915
17088
|
def initialize(flags, keyword_loc, closing_loc, predicate, statements, location)
|
17089
|
+
@newline = false
|
16916
17090
|
@flags = flags
|
16917
17091
|
@keyword_loc = keyword_loc
|
16918
17092
|
@closing_loc = closing_loc
|
@@ -17048,6 +17222,7 @@ module Prism
|
|
17048
17222
|
|
17049
17223
|
# def initialize: (Location keyword_loc, Array[Node] conditions, StatementsNode? statements, Location location) -> void
|
17050
17224
|
def initialize(keyword_loc, conditions, statements, location)
|
17225
|
+
@newline = false
|
17051
17226
|
@keyword_loc = keyword_loc
|
17052
17227
|
@conditions = conditions
|
17053
17228
|
@statements = statements
|
@@ -17152,7 +17327,8 @@ module Prism
|
|
17152
17327
|
# ^^^^^^^^^^^^^^^^^^^^
|
17153
17328
|
class WhileNode < Node
|
17154
17329
|
# private attr_reader flags: Integer
|
17155
|
-
|
17330
|
+
attr_reader :flags
|
17331
|
+
private :flags
|
17156
17332
|
|
17157
17333
|
# attr_reader keyword_loc: Location
|
17158
17334
|
attr_reader :keyword_loc
|
@@ -17168,6 +17344,7 @@ module Prism
|
|
17168
17344
|
|
17169
17345
|
# def initialize: (Integer flags, Location keyword_loc, Location? closing_loc, Node predicate, StatementsNode? statements, Location location) -> void
|
17170
17346
|
def initialize(flags, keyword_loc, closing_loc, predicate, statements, location)
|
17347
|
+
@newline = false
|
17171
17348
|
@flags = flags
|
17172
17349
|
@keyword_loc = keyword_loc
|
17173
17350
|
@closing_loc = closing_loc
|
@@ -17291,7 +17468,8 @@ module Prism
|
|
17291
17468
|
# ^^^^^
|
17292
17469
|
class XStringNode < Node
|
17293
17470
|
# private attr_reader flags: Integer
|
17294
|
-
|
17471
|
+
attr_reader :flags
|
17472
|
+
private :flags
|
17295
17473
|
|
17296
17474
|
# attr_reader opening_loc: Location
|
17297
17475
|
attr_reader :opening_loc
|
@@ -17307,6 +17485,7 @@ module Prism
|
|
17307
17485
|
|
17308
17486
|
# def initialize: (Integer flags, Location opening_loc, Location content_loc, Location closing_loc, String unescaped, Location location) -> void
|
17309
17487
|
def initialize(flags, opening_loc, content_loc, closing_loc, unescaped, location)
|
17488
|
+
@newline = false
|
17310
17489
|
@flags = flags
|
17311
17490
|
@opening_loc = opening_loc
|
17312
17491
|
@content_loc = content_loc
|
@@ -17440,6 +17619,7 @@ module Prism
|
|
17440
17619
|
|
17441
17620
|
# def initialize: (Location keyword_loc, Location? lparen_loc, ArgumentsNode? arguments, Location? rparen_loc, Location location) -> void
|
17442
17621
|
def initialize(keyword_loc, lparen_loc, arguments, rparen_loc, location)
|
17622
|
+
@newline = false
|
17443
17623
|
@keyword_loc = keyword_loc
|
17444
17624
|
@lparen_loc = lparen_loc
|
17445
17625
|
@arguments = arguments
|