prism 0.27.0 → 0.28.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +26 -1
- data/config.yml +39 -27
- data/docs/configuration.md +1 -0
- data/ext/prism/api_node.c +814 -807
- data/ext/prism/extension.c +5 -3
- data/ext/prism/extension.h +1 -1
- data/include/prism/ast.h +38 -16
- data/include/prism/diagnostic.h +12 -5
- data/include/prism/options.h +2 -2
- data/include/prism/parser.h +10 -0
- data/include/prism/static_literals.h +8 -6
- data/include/prism/version.h +2 -2
- data/lib/prism/dot_visitor.rb +22 -6
- data/lib/prism/dsl.rb +8 -8
- data/lib/prism/ffi.rb +3 -3
- data/lib/prism/inspect_visitor.rb +2156 -0
- data/lib/prism/lex_compat.rb +1 -1
- data/lib/prism/mutation_compiler.rb +2 -2
- data/lib/prism/node.rb +589 -1715
- data/lib/prism/node_ext.rb +34 -5
- data/lib/prism/parse_result.rb +78 -0
- data/lib/prism/pattern.rb +12 -6
- data/lib/prism/polyfill/byteindex.rb +13 -0
- data/lib/prism/polyfill/unpack1.rb +14 -0
- data/lib/prism/reflection.rb +13 -13
- data/lib/prism/serialize.rb +21 -14
- data/lib/prism/translation/parser/compiler.rb +2 -2
- data/lib/prism/translation/parser.rb +6 -6
- data/lib/prism/translation/ripper.rb +13 -9
- data/lib/prism/translation/ruby_parser.rb +4 -4
- data/lib/prism.rb +2 -1
- data/prism.gemspec +36 -38
- data/rbi/prism/compiler.rbi +3 -5
- data/rbi/prism/inspect_visitor.rbi +12 -0
- data/rbi/prism/node.rbi +354 -319
- data/rbi/prism/parse_result.rbi +23 -0
- data/rbi/prism/translation/ripper.rbi +1 -11
- data/sig/prism/dsl.rbs +3 -3
- data/sig/prism/inspect_visitor.rbs +22 -0
- data/sig/prism/node.rbs +64 -47
- data/sig/prism/parse_result.rbs +12 -0
- data/src/diagnostic.c +38 -24
- data/src/node.c +41 -16
- data/src/options.c +2 -2
- data/src/prettyprint.c +61 -18
- data/src/prism.c +607 -185
- data/src/serialize.c +5 -2
- data/src/static_literals.c +120 -34
- data/src/token_type.c +4 -4
- metadata +7 -9
- data/lib/prism/node_inspector.rb +0 -68
- data/lib/prism/polyfill/string.rb +0 -12
- data/rbi/prism/desugar_compiler.rbi +0 -5
- data/rbi/prism/mutation_compiler.rbi +0 -5
- data/rbi/prism/translation/parser/compiler.rbi +0 -13
- data/rbi/prism/translation/ripper/ripper_compiler.rbi +0 -5
- data/rbi/prism/translation/ruby_parser.rbi +0 -11
data/rbi/prism/node.rbi
CHANGED
@@ -21,15 +21,27 @@ class Prism::Node
|
|
21
21
|
sig { returns(Integer) }
|
22
22
|
def end_offset; end
|
23
23
|
|
24
|
+
sig { returns(T::Array[String]) }
|
25
|
+
def source_lines; end
|
26
|
+
|
27
|
+
sig { returns(T::Array[String]) }
|
28
|
+
def script_lines; end
|
29
|
+
|
24
30
|
sig { returns(String) }
|
25
31
|
def slice; end
|
26
32
|
|
33
|
+
sig { returns(String) }
|
34
|
+
def slice_lines; end
|
35
|
+
|
27
36
|
sig { params(q: T.untyped).void }
|
28
37
|
def pretty_print(q); end
|
29
38
|
|
30
39
|
sig { returns(String) }
|
31
40
|
def to_dot; end
|
32
41
|
|
42
|
+
sig { params(line: Integer, column: Integer).returns(T::Array[Prism::Node]) }
|
43
|
+
def tunnel(line, column); end
|
44
|
+
|
33
45
|
sig { abstract.params(visitor: Prism::Visitor).returns(T.untyped) }
|
34
46
|
def accept(visitor); end
|
35
47
|
|
@@ -51,8 +63,8 @@ class Prism::Node
|
|
51
63
|
sig { abstract.returns(Symbol) }
|
52
64
|
def type; end
|
53
65
|
|
54
|
-
sig { abstract.
|
55
|
-
def inspect
|
66
|
+
sig { abstract.returns(String) }
|
67
|
+
def inspect; end
|
56
68
|
end
|
57
69
|
|
58
70
|
# Represents the use of the `alias` keyword to alias a global variable.
|
@@ -99,8 +111,8 @@ class Prism::AliasGlobalVariableNode < Prism::Node
|
|
99
111
|
sig { override.returns(T::Array[Prism::Reflection::Field]) }
|
100
112
|
def fields; end
|
101
113
|
|
102
|
-
sig {
|
103
|
-
def inspect
|
114
|
+
sig { override.returns(String) }
|
115
|
+
def inspect; end
|
104
116
|
|
105
117
|
sig { override.returns(Symbol) }
|
106
118
|
def type; end
|
@@ -150,8 +162,8 @@ class Prism::AliasMethodNode < Prism::Node
|
|
150
162
|
sig { override.returns(T::Array[Prism::Reflection::Field]) }
|
151
163
|
def fields; end
|
152
164
|
|
153
|
-
sig {
|
154
|
-
def inspect
|
165
|
+
sig { override.returns(String) }
|
166
|
+
def inspect; end
|
155
167
|
|
156
168
|
sig { override.returns(Symbol) }
|
157
169
|
def type; end
|
@@ -201,8 +213,8 @@ class Prism::AlternationPatternNode < Prism::Node
|
|
201
213
|
sig { override.returns(T::Array[Prism::Reflection::Field]) }
|
202
214
|
def fields; end
|
203
215
|
|
204
|
-
sig {
|
205
|
-
def inspect
|
216
|
+
sig { override.returns(String) }
|
217
|
+
def inspect; end
|
206
218
|
|
207
219
|
sig { override.returns(Symbol) }
|
208
220
|
def type; end
|
@@ -252,8 +264,8 @@ class Prism::AndNode < Prism::Node
|
|
252
264
|
sig { override.returns(T::Array[Prism::Reflection::Field]) }
|
253
265
|
def fields; end
|
254
266
|
|
255
|
-
sig {
|
256
|
-
def inspect
|
267
|
+
sig { override.returns(String) }
|
268
|
+
def inspect; end
|
257
269
|
|
258
270
|
sig { override.returns(Symbol) }
|
259
271
|
def type; end
|
@@ -294,14 +306,17 @@ class Prism::ArgumentsNode < Prism::Node
|
|
294
306
|
sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) }
|
295
307
|
def deconstruct_keys(keys); end
|
296
308
|
|
309
|
+
sig { returns(T::Boolean) }
|
310
|
+
def contains_keywords?; end
|
311
|
+
|
297
312
|
sig { returns(T::Boolean) }
|
298
313
|
def contains_keyword_splat?; end
|
299
314
|
|
300
315
|
sig { override.returns(T::Array[Prism::Reflection::Field]) }
|
301
316
|
def fields; end
|
302
317
|
|
303
|
-
sig {
|
304
|
-
def inspect
|
318
|
+
sig { override.returns(String) }
|
319
|
+
def inspect; end
|
305
320
|
|
306
321
|
sig { override.returns(Symbol) }
|
307
322
|
def type; end
|
@@ -360,8 +375,8 @@ class Prism::ArrayNode < Prism::Node
|
|
360
375
|
sig { override.returns(T::Array[Prism::Reflection::Field]) }
|
361
376
|
def fields; end
|
362
377
|
|
363
|
-
sig {
|
364
|
-
def inspect
|
378
|
+
sig { override.returns(String) }
|
379
|
+
def inspect; end
|
365
380
|
|
366
381
|
sig { override.returns(Symbol) }
|
367
382
|
def type; end
|
@@ -435,8 +450,8 @@ class Prism::ArrayPatternNode < Prism::Node
|
|
435
450
|
sig { override.returns(T::Array[Prism::Reflection::Field]) }
|
436
451
|
def fields; end
|
437
452
|
|
438
|
-
sig {
|
439
|
-
def inspect
|
453
|
+
sig { override.returns(String) }
|
454
|
+
def inspect; end
|
440
455
|
|
441
456
|
sig { override.returns(Symbol) }
|
442
457
|
def type; end
|
@@ -486,8 +501,8 @@ class Prism::AssocNode < Prism::Node
|
|
486
501
|
sig { override.returns(T::Array[Prism::Reflection::Field]) }
|
487
502
|
def fields; end
|
488
503
|
|
489
|
-
sig {
|
490
|
-
def inspect
|
504
|
+
sig { override.returns(String) }
|
505
|
+
def inspect; end
|
491
506
|
|
492
507
|
sig { override.returns(Symbol) }
|
493
508
|
def type; end
|
@@ -534,8 +549,8 @@ class Prism::AssocSplatNode < Prism::Node
|
|
534
549
|
sig { override.returns(T::Array[Prism::Reflection::Field]) }
|
535
550
|
def fields; end
|
536
551
|
|
537
|
-
sig {
|
538
|
-
def inspect
|
552
|
+
sig { override.returns(String) }
|
553
|
+
def inspect; end
|
539
554
|
|
540
555
|
sig { override.returns(Symbol) }
|
541
556
|
def type; end
|
@@ -576,8 +591,8 @@ class Prism::BackReferenceReadNode < Prism::Node
|
|
576
591
|
sig { override.returns(T::Array[Prism::Reflection::Field]) }
|
577
592
|
def fields; end
|
578
593
|
|
579
|
-
sig {
|
580
|
-
def inspect
|
594
|
+
sig { override.returns(String) }
|
595
|
+
def inspect; end
|
581
596
|
|
582
597
|
sig { override.returns(Symbol) }
|
583
598
|
def type; end
|
@@ -641,8 +656,8 @@ class Prism::BeginNode < Prism::Node
|
|
641
656
|
sig { override.returns(T::Array[Prism::Reflection::Field]) }
|
642
657
|
def fields; end
|
643
658
|
|
644
|
-
sig {
|
645
|
-
def inspect
|
659
|
+
sig { override.returns(String) }
|
660
|
+
def inspect; end
|
646
661
|
|
647
662
|
sig { override.returns(Symbol) }
|
648
663
|
def type; end
|
@@ -689,8 +704,8 @@ class Prism::BlockArgumentNode < Prism::Node
|
|
689
704
|
sig { override.returns(T::Array[Prism::Reflection::Field]) }
|
690
705
|
def fields; end
|
691
706
|
|
692
|
-
sig {
|
693
|
-
def inspect
|
707
|
+
sig { override.returns(String) }
|
708
|
+
def inspect; end
|
694
709
|
|
695
710
|
sig { override.returns(Symbol) }
|
696
711
|
def type; end
|
@@ -737,8 +752,8 @@ class Prism::BlockLocalVariableNode < Prism::Node
|
|
737
752
|
sig { override.returns(T::Array[Prism::Reflection::Field]) }
|
738
753
|
def fields; end
|
739
754
|
|
740
|
-
sig {
|
741
|
-
def inspect
|
755
|
+
sig { override.returns(String) }
|
756
|
+
def inspect; end
|
742
757
|
|
743
758
|
sig { override.returns(Symbol) }
|
744
759
|
def type; end
|
@@ -797,8 +812,8 @@ class Prism::BlockNode < Prism::Node
|
|
797
812
|
sig { override.returns(T::Array[Prism::Reflection::Field]) }
|
798
813
|
def fields; end
|
799
814
|
|
800
|
-
sig {
|
801
|
-
def inspect
|
815
|
+
sig { override.returns(String) }
|
816
|
+
def inspect; end
|
802
817
|
|
803
818
|
sig { override.returns(Symbol) }
|
804
819
|
def type; end
|
@@ -855,8 +870,8 @@ class Prism::BlockParameterNode < Prism::Node
|
|
855
870
|
sig { override.returns(T::Array[Prism::Reflection::Field]) }
|
856
871
|
def fields; end
|
857
872
|
|
858
|
-
sig {
|
859
|
-
def inspect
|
873
|
+
sig { override.returns(String) }
|
874
|
+
def inspect; end
|
860
875
|
|
861
876
|
sig { override.returns(Symbol) }
|
862
877
|
def type; end
|
@@ -916,8 +931,8 @@ class Prism::BlockParametersNode < Prism::Node
|
|
916
931
|
sig { override.returns(T::Array[Prism::Reflection::Field]) }
|
917
932
|
def fields; end
|
918
933
|
|
919
|
-
sig {
|
920
|
-
def inspect
|
934
|
+
sig { override.returns(String) }
|
935
|
+
def inspect; end
|
921
936
|
|
922
937
|
sig { override.returns(Symbol) }
|
923
938
|
def type; end
|
@@ -964,8 +979,8 @@ class Prism::BreakNode < Prism::Node
|
|
964
979
|
sig { override.returns(T::Array[Prism::Reflection::Field]) }
|
965
980
|
def fields; end
|
966
981
|
|
967
|
-
sig {
|
968
|
-
def inspect
|
982
|
+
sig { override.returns(String) }
|
983
|
+
def inspect; end
|
969
984
|
|
970
985
|
sig { override.returns(Symbol) }
|
971
986
|
def type; end
|
@@ -1048,8 +1063,8 @@ class Prism::CallAndWriteNode < Prism::Node
|
|
1048
1063
|
sig { override.returns(T::Array[Prism::Reflection::Field]) }
|
1049
1064
|
def fields; end
|
1050
1065
|
|
1051
|
-
sig {
|
1052
|
-
def inspect
|
1066
|
+
sig { override.returns(String) }
|
1067
|
+
def inspect; end
|
1053
1068
|
|
1054
1069
|
sig { override.returns(Symbol) }
|
1055
1070
|
def type; end
|
@@ -1153,8 +1168,8 @@ class Prism::CallNode < Prism::Node
|
|
1153
1168
|
sig { override.returns(T::Array[Prism::Reflection::Field]) }
|
1154
1169
|
def fields; end
|
1155
1170
|
|
1156
|
-
sig {
|
1157
|
-
def inspect
|
1171
|
+
sig { override.returns(String) }
|
1172
|
+
def inspect; end
|
1158
1173
|
|
1159
1174
|
sig { override.returns(Symbol) }
|
1160
1175
|
def type; end
|
@@ -1237,8 +1252,8 @@ class Prism::CallOperatorWriteNode < Prism::Node
|
|
1237
1252
|
sig { override.returns(T::Array[Prism::Reflection::Field]) }
|
1238
1253
|
def fields; end
|
1239
1254
|
|
1240
|
-
sig {
|
1241
|
-
def inspect
|
1255
|
+
sig { override.returns(String) }
|
1256
|
+
def inspect; end
|
1242
1257
|
|
1243
1258
|
sig { override.returns(Symbol) }
|
1244
1259
|
def type; end
|
@@ -1321,8 +1336,8 @@ class Prism::CallOrWriteNode < Prism::Node
|
|
1321
1336
|
sig { override.returns(T::Array[Prism::Reflection::Field]) }
|
1322
1337
|
def fields; end
|
1323
1338
|
|
1324
|
-
sig {
|
1325
|
-
def inspect
|
1339
|
+
sig { override.returns(String) }
|
1340
|
+
def inspect; end
|
1326
1341
|
|
1327
1342
|
sig { override.returns(Symbol) }
|
1328
1343
|
def type; end
|
@@ -1401,8 +1416,8 @@ class Prism::CallTargetNode < Prism::Node
|
|
1401
1416
|
sig { override.returns(T::Array[Prism::Reflection::Field]) }
|
1402
1417
|
def fields; end
|
1403
1418
|
|
1404
|
-
sig {
|
1405
|
-
def inspect
|
1419
|
+
sig { override.returns(String) }
|
1420
|
+
def inspect; end
|
1406
1421
|
|
1407
1422
|
sig { override.returns(Symbol) }
|
1408
1423
|
def type; end
|
@@ -1452,8 +1467,8 @@ class Prism::CapturePatternNode < Prism::Node
|
|
1452
1467
|
sig { override.returns(T::Array[Prism::Reflection::Field]) }
|
1453
1468
|
def fields; end
|
1454
1469
|
|
1455
|
-
sig {
|
1456
|
-
def inspect
|
1470
|
+
sig { override.returns(String) }
|
1471
|
+
def inspect; end
|
1457
1472
|
|
1458
1473
|
sig { override.returns(Symbol) }
|
1459
1474
|
def type; end
|
@@ -1514,8 +1529,8 @@ class Prism::CaseMatchNode < Prism::Node
|
|
1514
1529
|
sig { override.returns(T::Array[Prism::Reflection::Field]) }
|
1515
1530
|
def fields; end
|
1516
1531
|
|
1517
|
-
sig {
|
1518
|
-
def inspect
|
1532
|
+
sig { override.returns(String) }
|
1533
|
+
def inspect; end
|
1519
1534
|
|
1520
1535
|
sig { override.returns(Symbol) }
|
1521
1536
|
def type; end
|
@@ -1576,8 +1591,8 @@ class Prism::CaseNode < Prism::Node
|
|
1576
1591
|
sig { override.returns(T::Array[Prism::Reflection::Field]) }
|
1577
1592
|
def fields; end
|
1578
1593
|
|
1579
|
-
sig {
|
1580
|
-
def inspect
|
1594
|
+
sig { override.returns(String) }
|
1595
|
+
def inspect; end
|
1581
1596
|
|
1582
1597
|
sig { override.returns(Symbol) }
|
1583
1598
|
def type; end
|
@@ -1648,8 +1663,8 @@ class Prism::ClassNode < Prism::Node
|
|
1648
1663
|
sig { override.returns(T::Array[Prism::Reflection::Field]) }
|
1649
1664
|
def fields; end
|
1650
1665
|
|
1651
|
-
sig {
|
1652
|
-
def inspect
|
1666
|
+
sig { override.returns(String) }
|
1667
|
+
def inspect; end
|
1653
1668
|
|
1654
1669
|
sig { override.returns(Symbol) }
|
1655
1670
|
def type; end
|
@@ -1702,8 +1717,8 @@ class Prism::ClassVariableAndWriteNode < Prism::Node
|
|
1702
1717
|
sig { override.returns(T::Array[Prism::Reflection::Field]) }
|
1703
1718
|
def fields; end
|
1704
1719
|
|
1705
|
-
sig {
|
1706
|
-
def inspect
|
1720
|
+
sig { override.returns(String) }
|
1721
|
+
def inspect; end
|
1707
1722
|
|
1708
1723
|
sig { override.returns(Symbol) }
|
1709
1724
|
def type; end
|
@@ -1756,8 +1771,8 @@ class Prism::ClassVariableOperatorWriteNode < Prism::Node
|
|
1756
1771
|
sig { override.returns(T::Array[Prism::Reflection::Field]) }
|
1757
1772
|
def fields; end
|
1758
1773
|
|
1759
|
-
sig {
|
1760
|
-
def inspect
|
1774
|
+
sig { override.returns(String) }
|
1775
|
+
def inspect; end
|
1761
1776
|
|
1762
1777
|
sig { override.returns(Symbol) }
|
1763
1778
|
def type; end
|
@@ -1810,8 +1825,8 @@ class Prism::ClassVariableOrWriteNode < Prism::Node
|
|
1810
1825
|
sig { override.returns(T::Array[Prism::Reflection::Field]) }
|
1811
1826
|
def fields; end
|
1812
1827
|
|
1813
|
-
sig {
|
1814
|
-
def inspect
|
1828
|
+
sig { override.returns(String) }
|
1829
|
+
def inspect; end
|
1815
1830
|
|
1816
1831
|
sig { override.returns(Symbol) }
|
1817
1832
|
def type; end
|
@@ -1852,8 +1867,8 @@ class Prism::ClassVariableReadNode < Prism::Node
|
|
1852
1867
|
sig { override.returns(T::Array[Prism::Reflection::Field]) }
|
1853
1868
|
def fields; end
|
1854
1869
|
|
1855
|
-
sig {
|
1856
|
-
def inspect
|
1870
|
+
sig { override.returns(String) }
|
1871
|
+
def inspect; end
|
1857
1872
|
|
1858
1873
|
sig { override.returns(Symbol) }
|
1859
1874
|
def type; end
|
@@ -1894,8 +1909,8 @@ class Prism::ClassVariableTargetNode < Prism::Node
|
|
1894
1909
|
sig { override.returns(T::Array[Prism::Reflection::Field]) }
|
1895
1910
|
def fields; end
|
1896
1911
|
|
1897
|
-
sig {
|
1898
|
-
def inspect
|
1912
|
+
sig { override.returns(String) }
|
1913
|
+
def inspect; end
|
1899
1914
|
|
1900
1915
|
sig { override.returns(Symbol) }
|
1901
1916
|
def type; end
|
@@ -1948,8 +1963,8 @@ class Prism::ClassVariableWriteNode < Prism::Node
|
|
1948
1963
|
sig { override.returns(T::Array[Prism::Reflection::Field]) }
|
1949
1964
|
def fields; end
|
1950
1965
|
|
1951
|
-
sig {
|
1952
|
-
def inspect
|
1966
|
+
sig { override.returns(String) }
|
1967
|
+
def inspect; end
|
1953
1968
|
|
1954
1969
|
sig { override.returns(Symbol) }
|
1955
1970
|
def type; end
|
@@ -2002,8 +2017,8 @@ class Prism::ConstantAndWriteNode < Prism::Node
|
|
2002
2017
|
sig { override.returns(T::Array[Prism::Reflection::Field]) }
|
2003
2018
|
def fields; end
|
2004
2019
|
|
2005
|
-
sig {
|
2006
|
-
def inspect
|
2020
|
+
sig { override.returns(String) }
|
2021
|
+
def inspect; end
|
2007
2022
|
|
2008
2023
|
sig { override.returns(Symbol) }
|
2009
2024
|
def type; end
|
@@ -2056,8 +2071,8 @@ class Prism::ConstantOperatorWriteNode < Prism::Node
|
|
2056
2071
|
sig { override.returns(T::Array[Prism::Reflection::Field]) }
|
2057
2072
|
def fields; end
|
2058
2073
|
|
2059
|
-
sig {
|
2060
|
-
def inspect
|
2074
|
+
sig { override.returns(String) }
|
2075
|
+
def inspect; end
|
2061
2076
|
|
2062
2077
|
sig { override.returns(Symbol) }
|
2063
2078
|
def type; end
|
@@ -2110,8 +2125,8 @@ class Prism::ConstantOrWriteNode < Prism::Node
|
|
2110
2125
|
sig { override.returns(T::Array[Prism::Reflection::Field]) }
|
2111
2126
|
def fields; end
|
2112
2127
|
|
2113
|
-
sig {
|
2114
|
-
def inspect
|
2128
|
+
sig { override.returns(String) }
|
2129
|
+
def inspect; end
|
2115
2130
|
|
2116
2131
|
sig { override.returns(Symbol) }
|
2117
2132
|
def type; end
|
@@ -2161,8 +2176,8 @@ class Prism::ConstantPathAndWriteNode < Prism::Node
|
|
2161
2176
|
sig { override.returns(T::Array[Prism::Reflection::Field]) }
|
2162
2177
|
def fields; end
|
2163
2178
|
|
2164
|
-
sig {
|
2165
|
-
def inspect
|
2179
|
+
sig { override.returns(String) }
|
2180
|
+
def inspect; end
|
2166
2181
|
|
2167
2182
|
sig { override.returns(Symbol) }
|
2168
2183
|
def type; end
|
@@ -2176,14 +2191,17 @@ class Prism::ConstantPathNode < Prism::Node
|
|
2176
2191
|
sig { returns(T.nilable(Prism::Node)) }
|
2177
2192
|
def parent; end
|
2178
2193
|
|
2179
|
-
sig { returns(T.
|
2180
|
-
def
|
2194
|
+
sig { returns(T.nilable(Symbol)) }
|
2195
|
+
def name; end
|
2181
2196
|
|
2182
2197
|
sig { returns(Prism::Location) }
|
2183
2198
|
def delimiter_loc; end
|
2184
2199
|
|
2185
|
-
sig {
|
2186
|
-
def
|
2200
|
+
sig { returns(Prism::Location) }
|
2201
|
+
def name_loc; end
|
2202
|
+
|
2203
|
+
sig { params(source: Prism::Source, parent: T.nilable(Prism::Node), name: T.nilable(Symbol), delimiter_loc: Prism::Location, name_loc: Prism::Location, location: Prism::Location).void }
|
2204
|
+
def initialize(source, parent, name, delimiter_loc, name_loc, location); end
|
2187
2205
|
|
2188
2206
|
sig { override.params(visitor: Prism::Visitor).returns(T.untyped) }
|
2189
2207
|
def accept(visitor); end
|
@@ -2200,8 +2218,8 @@ class Prism::ConstantPathNode < Prism::Node
|
|
2200
2218
|
sig { override.returns(T::Array[T.any(Prism::Node, Prism::Location)]) }
|
2201
2219
|
def comment_targets; end
|
2202
2220
|
|
2203
|
-
sig { params(parent: T.nilable(Prism::Node),
|
2204
|
-
def copy(parent: self.parent,
|
2221
|
+
sig { params(parent: T.nilable(Prism::Node), name: T.nilable(Symbol), delimiter_loc: Prism::Location, name_loc: Prism::Location, location: Prism::Location).returns(Prism::ConstantPathNode) }
|
2222
|
+
def copy(parent: self.parent, name: self.name, delimiter_loc: self.delimiter_loc, name_loc: self.name_loc, location: self.location); end
|
2205
2223
|
|
2206
2224
|
sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) }
|
2207
2225
|
def deconstruct_keys(keys); end
|
@@ -2212,8 +2230,8 @@ class Prism::ConstantPathNode < Prism::Node
|
|
2212
2230
|
sig { override.returns(T::Array[Prism::Reflection::Field]) }
|
2213
2231
|
def fields; end
|
2214
2232
|
|
2215
|
-
sig {
|
2216
|
-
def inspect
|
2233
|
+
sig { override.returns(String) }
|
2234
|
+
def inspect; end
|
2217
2235
|
|
2218
2236
|
sig { override.returns(Symbol) }
|
2219
2237
|
def type; end
|
@@ -2263,8 +2281,8 @@ class Prism::ConstantPathOperatorWriteNode < Prism::Node
|
|
2263
2281
|
sig { override.returns(T::Array[Prism::Reflection::Field]) }
|
2264
2282
|
def fields; end
|
2265
2283
|
|
2266
|
-
sig {
|
2267
|
-
def inspect
|
2284
|
+
sig { override.returns(String) }
|
2285
|
+
def inspect; end
|
2268
2286
|
|
2269
2287
|
sig { override.returns(Symbol) }
|
2270
2288
|
def type; end
|
@@ -2314,8 +2332,8 @@ class Prism::ConstantPathOrWriteNode < Prism::Node
|
|
2314
2332
|
sig { override.returns(T::Array[Prism::Reflection::Field]) }
|
2315
2333
|
def fields; end
|
2316
2334
|
|
2317
|
-
sig {
|
2318
|
-
def inspect
|
2335
|
+
sig { override.returns(String) }
|
2336
|
+
def inspect; end
|
2319
2337
|
|
2320
2338
|
sig { override.returns(Symbol) }
|
2321
2339
|
def type; end
|
@@ -2329,14 +2347,17 @@ class Prism::ConstantPathTargetNode < Prism::Node
|
|
2329
2347
|
sig { returns(T.nilable(Prism::Node)) }
|
2330
2348
|
def parent; end
|
2331
2349
|
|
2332
|
-
sig { returns(T.
|
2333
|
-
def
|
2350
|
+
sig { returns(T.nilable(Symbol)) }
|
2351
|
+
def name; end
|
2334
2352
|
|
2335
2353
|
sig { returns(Prism::Location) }
|
2336
2354
|
def delimiter_loc; end
|
2337
2355
|
|
2338
|
-
sig {
|
2339
|
-
def
|
2356
|
+
sig { returns(Prism::Location) }
|
2357
|
+
def name_loc; end
|
2358
|
+
|
2359
|
+
sig { params(source: Prism::Source, parent: T.nilable(Prism::Node), name: T.nilable(Symbol), delimiter_loc: Prism::Location, name_loc: Prism::Location, location: Prism::Location).void }
|
2360
|
+
def initialize(source, parent, name, delimiter_loc, name_loc, location); end
|
2340
2361
|
|
2341
2362
|
sig { override.params(visitor: Prism::Visitor).returns(T.untyped) }
|
2342
2363
|
def accept(visitor); end
|
@@ -2353,8 +2374,8 @@ class Prism::ConstantPathTargetNode < Prism::Node
|
|
2353
2374
|
sig { override.returns(T::Array[T.any(Prism::Node, Prism::Location)]) }
|
2354
2375
|
def comment_targets; end
|
2355
2376
|
|
2356
|
-
sig { params(parent: T.nilable(Prism::Node),
|
2357
|
-
def copy(parent: self.parent,
|
2377
|
+
sig { params(parent: T.nilable(Prism::Node), name: T.nilable(Symbol), delimiter_loc: Prism::Location, name_loc: Prism::Location, location: Prism::Location).returns(Prism::ConstantPathTargetNode) }
|
2378
|
+
def copy(parent: self.parent, name: self.name, delimiter_loc: self.delimiter_loc, name_loc: self.name_loc, location: self.location); end
|
2358
2379
|
|
2359
2380
|
sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) }
|
2360
2381
|
def deconstruct_keys(keys); end
|
@@ -2365,8 +2386,8 @@ class Prism::ConstantPathTargetNode < Prism::Node
|
|
2365
2386
|
sig { override.returns(T::Array[Prism::Reflection::Field]) }
|
2366
2387
|
def fields; end
|
2367
2388
|
|
2368
|
-
sig {
|
2369
|
-
def inspect
|
2389
|
+
sig { override.returns(String) }
|
2390
|
+
def inspect; end
|
2370
2391
|
|
2371
2392
|
sig { override.returns(Symbol) }
|
2372
2393
|
def type; end
|
@@ -2422,8 +2443,8 @@ class Prism::ConstantPathWriteNode < Prism::Node
|
|
2422
2443
|
sig { override.returns(T::Array[Prism::Reflection::Field]) }
|
2423
2444
|
def fields; end
|
2424
2445
|
|
2425
|
-
sig {
|
2426
|
-
def inspect
|
2446
|
+
sig { override.returns(String) }
|
2447
|
+
def inspect; end
|
2427
2448
|
|
2428
2449
|
sig { override.returns(Symbol) }
|
2429
2450
|
def type; end
|
@@ -2464,8 +2485,8 @@ class Prism::ConstantReadNode < Prism::Node
|
|
2464
2485
|
sig { override.returns(T::Array[Prism::Reflection::Field]) }
|
2465
2486
|
def fields; end
|
2466
2487
|
|
2467
|
-
sig {
|
2468
|
-
def inspect
|
2488
|
+
sig { override.returns(String) }
|
2489
|
+
def inspect; end
|
2469
2490
|
|
2470
2491
|
sig { override.returns(Symbol) }
|
2471
2492
|
def type; end
|
@@ -2506,8 +2527,8 @@ class Prism::ConstantTargetNode < Prism::Node
|
|
2506
2527
|
sig { override.returns(T::Array[Prism::Reflection::Field]) }
|
2507
2528
|
def fields; end
|
2508
2529
|
|
2509
|
-
sig {
|
2510
|
-
def inspect
|
2530
|
+
sig { override.returns(String) }
|
2531
|
+
def inspect; end
|
2511
2532
|
|
2512
2533
|
sig { override.returns(Symbol) }
|
2513
2534
|
def type; end
|
@@ -2560,8 +2581,8 @@ class Prism::ConstantWriteNode < Prism::Node
|
|
2560
2581
|
sig { override.returns(T::Array[Prism::Reflection::Field]) }
|
2561
2582
|
def fields; end
|
2562
2583
|
|
2563
|
-
sig {
|
2564
|
-
def inspect
|
2584
|
+
sig { override.returns(String) }
|
2585
|
+
def inspect; end
|
2565
2586
|
|
2566
2587
|
sig { override.returns(Symbol) }
|
2567
2588
|
def type; end
|
@@ -2654,8 +2675,8 @@ class Prism::DefNode < Prism::Node
|
|
2654
2675
|
sig { override.returns(T::Array[Prism::Reflection::Field]) }
|
2655
2676
|
def fields; end
|
2656
2677
|
|
2657
|
-
sig {
|
2658
|
-
def inspect
|
2678
|
+
sig { override.returns(String) }
|
2679
|
+
def inspect; end
|
2659
2680
|
|
2660
2681
|
sig { override.returns(Symbol) }
|
2661
2682
|
def type; end
|
@@ -2714,8 +2735,8 @@ class Prism::DefinedNode < Prism::Node
|
|
2714
2735
|
sig { override.returns(T::Array[Prism::Reflection::Field]) }
|
2715
2736
|
def fields; end
|
2716
2737
|
|
2717
|
-
sig {
|
2718
|
-
def inspect
|
2738
|
+
sig { override.returns(String) }
|
2739
|
+
def inspect; end
|
2719
2740
|
|
2720
2741
|
sig { override.returns(Symbol) }
|
2721
2742
|
def type; end
|
@@ -2768,8 +2789,8 @@ class Prism::ElseNode < Prism::Node
|
|
2768
2789
|
sig { override.returns(T::Array[Prism::Reflection::Field]) }
|
2769
2790
|
def fields; end
|
2770
2791
|
|
2771
|
-
sig {
|
2772
|
-
def inspect
|
2792
|
+
sig { override.returns(String) }
|
2793
|
+
def inspect; end
|
2773
2794
|
|
2774
2795
|
sig { override.returns(Symbol) }
|
2775
2796
|
def type; end
|
@@ -2822,8 +2843,8 @@ class Prism::EmbeddedStatementsNode < Prism::Node
|
|
2822
2843
|
sig { override.returns(T::Array[Prism::Reflection::Field]) }
|
2823
2844
|
def fields; end
|
2824
2845
|
|
2825
|
-
sig {
|
2826
|
-
def inspect
|
2846
|
+
sig { override.returns(String) }
|
2847
|
+
def inspect; end
|
2827
2848
|
|
2828
2849
|
sig { override.returns(Symbol) }
|
2829
2850
|
def type; end
|
@@ -2870,8 +2891,8 @@ class Prism::EmbeddedVariableNode < Prism::Node
|
|
2870
2891
|
sig { override.returns(T::Array[Prism::Reflection::Field]) }
|
2871
2892
|
def fields; end
|
2872
2893
|
|
2873
|
-
sig {
|
2874
|
-
def inspect
|
2894
|
+
sig { override.returns(String) }
|
2895
|
+
def inspect; end
|
2875
2896
|
|
2876
2897
|
sig { override.returns(Symbol) }
|
2877
2898
|
def type; end
|
@@ -2928,8 +2949,8 @@ class Prism::EnsureNode < Prism::Node
|
|
2928
2949
|
sig { override.returns(T::Array[Prism::Reflection::Field]) }
|
2929
2950
|
def fields; end
|
2930
2951
|
|
2931
|
-
sig {
|
2932
|
-
def inspect
|
2952
|
+
sig { override.returns(String) }
|
2953
|
+
def inspect; end
|
2933
2954
|
|
2934
2955
|
sig { override.returns(Symbol) }
|
2935
2956
|
def type; end
|
@@ -2967,8 +2988,8 @@ class Prism::FalseNode < Prism::Node
|
|
2967
2988
|
sig { override.returns(T::Array[Prism::Reflection::Field]) }
|
2968
2989
|
def fields; end
|
2969
2990
|
|
2970
|
-
sig {
|
2971
|
-
def inspect
|
2991
|
+
sig { override.returns(String) }
|
2992
|
+
def inspect; end
|
2972
2993
|
|
2973
2994
|
sig { override.returns(Symbol) }
|
2974
2995
|
def type; end
|
@@ -3036,8 +3057,8 @@ class Prism::FindPatternNode < Prism::Node
|
|
3036
3057
|
sig { override.returns(T::Array[Prism::Reflection::Field]) }
|
3037
3058
|
def fields; end
|
3038
3059
|
|
3039
|
-
sig {
|
3040
|
-
def inspect
|
3060
|
+
sig { override.returns(String) }
|
3061
|
+
def inspect; end
|
3041
3062
|
|
3042
3063
|
sig { override.returns(Symbol) }
|
3043
3064
|
def type; end
|
@@ -3093,8 +3114,8 @@ class Prism::FlipFlopNode < Prism::Node
|
|
3093
3114
|
sig { override.returns(T::Array[Prism::Reflection::Field]) }
|
3094
3115
|
def fields; end
|
3095
3116
|
|
3096
|
-
sig {
|
3097
|
-
def inspect
|
3117
|
+
sig { override.returns(String) }
|
3118
|
+
def inspect; end
|
3098
3119
|
|
3099
3120
|
sig { override.returns(Symbol) }
|
3100
3121
|
def type; end
|
@@ -3135,8 +3156,8 @@ class Prism::FloatNode < Prism::Node
|
|
3135
3156
|
sig { override.returns(T::Array[Prism::Reflection::Field]) }
|
3136
3157
|
def fields; end
|
3137
3158
|
|
3138
|
-
sig {
|
3139
|
-
def inspect
|
3159
|
+
sig { override.returns(String) }
|
3160
|
+
def inspect; end
|
3140
3161
|
|
3141
3162
|
sig { override.returns(Symbol) }
|
3142
3163
|
def type; end
|
@@ -3207,8 +3228,8 @@ class Prism::ForNode < Prism::Node
|
|
3207
3228
|
sig { override.returns(T::Array[Prism::Reflection::Field]) }
|
3208
3229
|
def fields; end
|
3209
3230
|
|
3210
|
-
sig {
|
3211
|
-
def inspect
|
3231
|
+
sig { override.returns(String) }
|
3232
|
+
def inspect; end
|
3212
3233
|
|
3213
3234
|
sig { override.returns(Symbol) }
|
3214
3235
|
def type; end
|
@@ -3248,8 +3269,8 @@ class Prism::ForwardingArgumentsNode < Prism::Node
|
|
3248
3269
|
sig { override.returns(T::Array[Prism::Reflection::Field]) }
|
3249
3270
|
def fields; end
|
3250
3271
|
|
3251
|
-
sig {
|
3252
|
-
def inspect
|
3272
|
+
sig { override.returns(String) }
|
3273
|
+
def inspect; end
|
3253
3274
|
|
3254
3275
|
sig { override.returns(Symbol) }
|
3255
3276
|
def type; end
|
@@ -3288,8 +3309,8 @@ class Prism::ForwardingParameterNode < Prism::Node
|
|
3288
3309
|
sig { override.returns(T::Array[Prism::Reflection::Field]) }
|
3289
3310
|
def fields; end
|
3290
3311
|
|
3291
|
-
sig {
|
3292
|
-
def inspect
|
3312
|
+
sig { override.returns(String) }
|
3313
|
+
def inspect; end
|
3293
3314
|
|
3294
3315
|
sig { override.returns(Symbol) }
|
3295
3316
|
def type; end
|
@@ -3330,8 +3351,8 @@ class Prism::ForwardingSuperNode < Prism::Node
|
|
3330
3351
|
sig { override.returns(T::Array[Prism::Reflection::Field]) }
|
3331
3352
|
def fields; end
|
3332
3353
|
|
3333
|
-
sig {
|
3334
|
-
def inspect
|
3354
|
+
sig { override.returns(String) }
|
3355
|
+
def inspect; end
|
3335
3356
|
|
3336
3357
|
sig { override.returns(Symbol) }
|
3337
3358
|
def type; end
|
@@ -3384,8 +3405,8 @@ class Prism::GlobalVariableAndWriteNode < Prism::Node
|
|
3384
3405
|
sig { override.returns(T::Array[Prism::Reflection::Field]) }
|
3385
3406
|
def fields; end
|
3386
3407
|
|
3387
|
-
sig {
|
3388
|
-
def inspect
|
3408
|
+
sig { override.returns(String) }
|
3409
|
+
def inspect; end
|
3389
3410
|
|
3390
3411
|
sig { override.returns(Symbol) }
|
3391
3412
|
def type; end
|
@@ -3438,8 +3459,8 @@ class Prism::GlobalVariableOperatorWriteNode < Prism::Node
|
|
3438
3459
|
sig { override.returns(T::Array[Prism::Reflection::Field]) }
|
3439
3460
|
def fields; end
|
3440
3461
|
|
3441
|
-
sig {
|
3442
|
-
def inspect
|
3462
|
+
sig { override.returns(String) }
|
3463
|
+
def inspect; end
|
3443
3464
|
|
3444
3465
|
sig { override.returns(Symbol) }
|
3445
3466
|
def type; end
|
@@ -3492,8 +3513,8 @@ class Prism::GlobalVariableOrWriteNode < Prism::Node
|
|
3492
3513
|
sig { override.returns(T::Array[Prism::Reflection::Field]) }
|
3493
3514
|
def fields; end
|
3494
3515
|
|
3495
|
-
sig {
|
3496
|
-
def inspect
|
3516
|
+
sig { override.returns(String) }
|
3517
|
+
def inspect; end
|
3497
3518
|
|
3498
3519
|
sig { override.returns(Symbol) }
|
3499
3520
|
def type; end
|
@@ -3534,8 +3555,8 @@ class Prism::GlobalVariableReadNode < Prism::Node
|
|
3534
3555
|
sig { override.returns(T::Array[Prism::Reflection::Field]) }
|
3535
3556
|
def fields; end
|
3536
3557
|
|
3537
|
-
sig {
|
3538
|
-
def inspect
|
3558
|
+
sig { override.returns(String) }
|
3559
|
+
def inspect; end
|
3539
3560
|
|
3540
3561
|
sig { override.returns(Symbol) }
|
3541
3562
|
def type; end
|
@@ -3576,8 +3597,8 @@ class Prism::GlobalVariableTargetNode < Prism::Node
|
|
3576
3597
|
sig { override.returns(T::Array[Prism::Reflection::Field]) }
|
3577
3598
|
def fields; end
|
3578
3599
|
|
3579
|
-
sig {
|
3580
|
-
def inspect
|
3600
|
+
sig { override.returns(String) }
|
3601
|
+
def inspect; end
|
3581
3602
|
|
3582
3603
|
sig { override.returns(Symbol) }
|
3583
3604
|
def type; end
|
@@ -3630,8 +3651,8 @@ class Prism::GlobalVariableWriteNode < Prism::Node
|
|
3630
3651
|
sig { override.returns(T::Array[Prism::Reflection::Field]) }
|
3631
3652
|
def fields; end
|
3632
3653
|
|
3633
|
-
sig {
|
3634
|
-
def inspect
|
3654
|
+
sig { override.returns(String) }
|
3655
|
+
def inspect; end
|
3635
3656
|
|
3636
3657
|
sig { override.returns(Symbol) }
|
3637
3658
|
def type; end
|
@@ -3684,8 +3705,8 @@ class Prism::HashNode < Prism::Node
|
|
3684
3705
|
sig { override.returns(T::Array[Prism::Reflection::Field]) }
|
3685
3706
|
def fields; end
|
3686
3707
|
|
3687
|
-
sig {
|
3688
|
-
def inspect
|
3708
|
+
sig { override.returns(String) }
|
3709
|
+
def inspect; end
|
3689
3710
|
|
3690
3711
|
sig { override.returns(Symbol) }
|
3691
3712
|
def type; end
|
@@ -3747,8 +3768,8 @@ class Prism::HashPatternNode < Prism::Node
|
|
3747
3768
|
sig { override.returns(T::Array[Prism::Reflection::Field]) }
|
3748
3769
|
def fields; end
|
3749
3770
|
|
3750
|
-
sig {
|
3751
|
-
def inspect
|
3771
|
+
sig { override.returns(String) }
|
3772
|
+
def inspect; end
|
3752
3773
|
|
3753
3774
|
sig { override.returns(Symbol) }
|
3754
3775
|
def type; end
|
@@ -3819,8 +3840,8 @@ class Prism::IfNode < Prism::Node
|
|
3819
3840
|
sig { override.returns(T::Array[Prism::Reflection::Field]) }
|
3820
3841
|
def fields; end
|
3821
3842
|
|
3822
|
-
sig {
|
3823
|
-
def inspect
|
3843
|
+
sig { override.returns(String) }
|
3844
|
+
def inspect; end
|
3824
3845
|
|
3825
3846
|
sig { override.returns(Symbol) }
|
3826
3847
|
def type; end
|
@@ -3861,8 +3882,8 @@ class Prism::ImaginaryNode < Prism::Node
|
|
3861
3882
|
sig { override.returns(T::Array[Prism::Reflection::Field]) }
|
3862
3883
|
def fields; end
|
3863
3884
|
|
3864
|
-
sig {
|
3865
|
-
def inspect
|
3885
|
+
sig { override.returns(String) }
|
3886
|
+
def inspect; end
|
3866
3887
|
|
3867
3888
|
sig { override.returns(Symbol) }
|
3868
3889
|
def type; end
|
@@ -3909,8 +3930,8 @@ class Prism::ImplicitNode < Prism::Node
|
|
3909
3930
|
sig { override.returns(T::Array[Prism::Reflection::Field]) }
|
3910
3931
|
def fields; end
|
3911
3932
|
|
3912
|
-
sig {
|
3913
|
-
def inspect
|
3933
|
+
sig { override.returns(String) }
|
3934
|
+
def inspect; end
|
3914
3935
|
|
3915
3936
|
sig { override.returns(Symbol) }
|
3916
3937
|
def type; end
|
@@ -3957,8 +3978,8 @@ class Prism::ImplicitRestNode < Prism::Node
|
|
3957
3978
|
sig { override.returns(T::Array[Prism::Reflection::Field]) }
|
3958
3979
|
def fields; end
|
3959
3980
|
|
3960
|
-
sig {
|
3961
|
-
def inspect
|
3981
|
+
sig { override.returns(String) }
|
3982
|
+
def inspect; end
|
3962
3983
|
|
3963
3984
|
sig { override.returns(Symbol) }
|
3964
3985
|
def type; end
|
@@ -4014,8 +4035,8 @@ class Prism::InNode < Prism::Node
|
|
4014
4035
|
sig { override.returns(T::Array[Prism::Reflection::Field]) }
|
4015
4036
|
def fields; end
|
4016
4037
|
|
4017
|
-
sig {
|
4018
|
-
def inspect
|
4038
|
+
sig { override.returns(String) }
|
4039
|
+
def inspect; end
|
4019
4040
|
|
4020
4041
|
sig { override.returns(Symbol) }
|
4021
4042
|
def type; end
|
@@ -4104,8 +4125,8 @@ class Prism::IndexAndWriteNode < Prism::Node
|
|
4104
4125
|
sig { override.returns(T::Array[Prism::Reflection::Field]) }
|
4105
4126
|
def fields; end
|
4106
4127
|
|
4107
|
-
sig {
|
4108
|
-
def inspect
|
4128
|
+
sig { override.returns(String) }
|
4129
|
+
def inspect; end
|
4109
4130
|
|
4110
4131
|
sig { override.returns(Symbol) }
|
4111
4132
|
def type; end
|
@@ -4194,8 +4215,8 @@ class Prism::IndexOperatorWriteNode < Prism::Node
|
|
4194
4215
|
sig { override.returns(T::Array[Prism::Reflection::Field]) }
|
4195
4216
|
def fields; end
|
4196
4217
|
|
4197
|
-
sig {
|
4198
|
-
def inspect
|
4218
|
+
sig { override.returns(String) }
|
4219
|
+
def inspect; end
|
4199
4220
|
|
4200
4221
|
sig { override.returns(Symbol) }
|
4201
4222
|
def type; end
|
@@ -4284,8 +4305,8 @@ class Prism::IndexOrWriteNode < Prism::Node
|
|
4284
4305
|
sig { override.returns(T::Array[Prism::Reflection::Field]) }
|
4285
4306
|
def fields; end
|
4286
4307
|
|
4287
|
-
sig {
|
4288
|
-
def inspect
|
4308
|
+
sig { override.returns(String) }
|
4309
|
+
def inspect; end
|
4289
4310
|
|
4290
4311
|
sig { override.returns(Symbol) }
|
4291
4312
|
def type; end
|
@@ -4367,8 +4388,8 @@ class Prism::IndexTargetNode < Prism::Node
|
|
4367
4388
|
sig { override.returns(T::Array[Prism::Reflection::Field]) }
|
4368
4389
|
def fields; end
|
4369
4390
|
|
4370
|
-
sig {
|
4371
|
-
def inspect
|
4391
|
+
sig { override.returns(String) }
|
4392
|
+
def inspect; end
|
4372
4393
|
|
4373
4394
|
sig { override.returns(Symbol) }
|
4374
4395
|
def type; end
|
@@ -4421,8 +4442,8 @@ class Prism::InstanceVariableAndWriteNode < Prism::Node
|
|
4421
4442
|
sig { override.returns(T::Array[Prism::Reflection::Field]) }
|
4422
4443
|
def fields; end
|
4423
4444
|
|
4424
|
-
sig {
|
4425
|
-
def inspect
|
4445
|
+
sig { override.returns(String) }
|
4446
|
+
def inspect; end
|
4426
4447
|
|
4427
4448
|
sig { override.returns(Symbol) }
|
4428
4449
|
def type; end
|
@@ -4475,8 +4496,8 @@ class Prism::InstanceVariableOperatorWriteNode < Prism::Node
|
|
4475
4496
|
sig { override.returns(T::Array[Prism::Reflection::Field]) }
|
4476
4497
|
def fields; end
|
4477
4498
|
|
4478
|
-
sig {
|
4479
|
-
def inspect
|
4499
|
+
sig { override.returns(String) }
|
4500
|
+
def inspect; end
|
4480
4501
|
|
4481
4502
|
sig { override.returns(Symbol) }
|
4482
4503
|
def type; end
|
@@ -4529,8 +4550,8 @@ class Prism::InstanceVariableOrWriteNode < Prism::Node
|
|
4529
4550
|
sig { override.returns(T::Array[Prism::Reflection::Field]) }
|
4530
4551
|
def fields; end
|
4531
4552
|
|
4532
|
-
sig {
|
4533
|
-
def inspect
|
4553
|
+
sig { override.returns(String) }
|
4554
|
+
def inspect; end
|
4534
4555
|
|
4535
4556
|
sig { override.returns(Symbol) }
|
4536
4557
|
def type; end
|
@@ -4571,8 +4592,8 @@ class Prism::InstanceVariableReadNode < Prism::Node
|
|
4571
4592
|
sig { override.returns(T::Array[Prism::Reflection::Field]) }
|
4572
4593
|
def fields; end
|
4573
4594
|
|
4574
|
-
sig {
|
4575
|
-
def inspect
|
4595
|
+
sig { override.returns(String) }
|
4596
|
+
def inspect; end
|
4576
4597
|
|
4577
4598
|
sig { override.returns(Symbol) }
|
4578
4599
|
def type; end
|
@@ -4613,8 +4634,8 @@ class Prism::InstanceVariableTargetNode < Prism::Node
|
|
4613
4634
|
sig { override.returns(T::Array[Prism::Reflection::Field]) }
|
4614
4635
|
def fields; end
|
4615
4636
|
|
4616
|
-
sig {
|
4617
|
-
def inspect
|
4637
|
+
sig { override.returns(String) }
|
4638
|
+
def inspect; end
|
4618
4639
|
|
4619
4640
|
sig { override.returns(Symbol) }
|
4620
4641
|
def type; end
|
@@ -4667,8 +4688,8 @@ class Prism::InstanceVariableWriteNode < Prism::Node
|
|
4667
4688
|
sig { override.returns(T::Array[Prism::Reflection::Field]) }
|
4668
4689
|
def fields; end
|
4669
4690
|
|
4670
|
-
sig {
|
4671
|
-
def inspect
|
4691
|
+
sig { override.returns(String) }
|
4692
|
+
def inspect; end
|
4672
4693
|
|
4673
4694
|
sig { override.returns(Symbol) }
|
4674
4695
|
def type; end
|
@@ -4724,8 +4745,8 @@ class Prism::IntegerNode < Prism::Node
|
|
4724
4745
|
sig { override.returns(T::Array[Prism::Reflection::Field]) }
|
4725
4746
|
def fields; end
|
4726
4747
|
|
4727
|
-
sig {
|
4728
|
-
def inspect
|
4748
|
+
sig { override.returns(String) }
|
4749
|
+
def inspect; end
|
4729
4750
|
|
4730
4751
|
sig { override.returns(Symbol) }
|
4731
4752
|
def type; end
|
@@ -4814,8 +4835,8 @@ class Prism::InterpolatedMatchLastLineNode < Prism::Node
|
|
4814
4835
|
sig { override.returns(T::Array[Prism::Reflection::Field]) }
|
4815
4836
|
def fields; end
|
4816
4837
|
|
4817
|
-
sig {
|
4818
|
-
def inspect
|
4838
|
+
sig { override.returns(String) }
|
4839
|
+
def inspect; end
|
4819
4840
|
|
4820
4841
|
sig { override.returns(Symbol) }
|
4821
4842
|
def type; end
|
@@ -4904,8 +4925,8 @@ class Prism::InterpolatedRegularExpressionNode < Prism::Node
|
|
4904
4925
|
sig { override.returns(T::Array[Prism::Reflection::Field]) }
|
4905
4926
|
def fields; end
|
4906
4927
|
|
4907
|
-
sig {
|
4908
|
-
def inspect
|
4928
|
+
sig { override.returns(String) }
|
4929
|
+
def inspect; end
|
4909
4930
|
|
4910
4931
|
sig { override.returns(Symbol) }
|
4911
4932
|
def type; end
|
@@ -4967,8 +4988,8 @@ class Prism::InterpolatedStringNode < Prism::Node
|
|
4967
4988
|
sig { override.returns(T::Array[Prism::Reflection::Field]) }
|
4968
4989
|
def fields; end
|
4969
4990
|
|
4970
|
-
sig {
|
4971
|
-
def inspect
|
4991
|
+
sig { override.returns(String) }
|
4992
|
+
def inspect; end
|
4972
4993
|
|
4973
4994
|
sig { override.returns(Symbol) }
|
4974
4995
|
def type; end
|
@@ -5021,8 +5042,8 @@ class Prism::InterpolatedSymbolNode < Prism::Node
|
|
5021
5042
|
sig { override.returns(T::Array[Prism::Reflection::Field]) }
|
5022
5043
|
def fields; end
|
5023
5044
|
|
5024
|
-
sig {
|
5025
|
-
def inspect
|
5045
|
+
sig { override.returns(String) }
|
5046
|
+
def inspect; end
|
5026
5047
|
|
5027
5048
|
sig { override.returns(Symbol) }
|
5028
5049
|
def type; end
|
@@ -5075,8 +5096,8 @@ class Prism::InterpolatedXStringNode < Prism::Node
|
|
5075
5096
|
sig { override.returns(T::Array[Prism::Reflection::Field]) }
|
5076
5097
|
def fields; end
|
5077
5098
|
|
5078
|
-
sig {
|
5079
|
-
def inspect
|
5099
|
+
sig { override.returns(String) }
|
5100
|
+
def inspect; end
|
5080
5101
|
|
5081
5102
|
sig { override.returns(Symbol) }
|
5082
5103
|
def type; end
|
@@ -5114,8 +5135,8 @@ class Prism::ItParametersNode < Prism::Node
|
|
5114
5135
|
sig { override.returns(T::Array[Prism::Reflection::Field]) }
|
5115
5136
|
def fields; end
|
5116
5137
|
|
5117
|
-
sig {
|
5118
|
-
def inspect
|
5138
|
+
sig { override.returns(String) }
|
5139
|
+
def inspect; end
|
5119
5140
|
|
5120
5141
|
sig { override.returns(Symbol) }
|
5121
5142
|
def type; end
|
@@ -5162,8 +5183,8 @@ class Prism::KeywordHashNode < Prism::Node
|
|
5162
5183
|
sig { override.returns(T::Array[Prism::Reflection::Field]) }
|
5163
5184
|
def fields; end
|
5164
5185
|
|
5165
|
-
sig {
|
5166
|
-
def inspect
|
5186
|
+
sig { override.returns(String) }
|
5187
|
+
def inspect; end
|
5167
5188
|
|
5168
5189
|
sig { override.returns(Symbol) }
|
5169
5190
|
def type; end
|
@@ -5220,8 +5241,8 @@ class Prism::KeywordRestParameterNode < Prism::Node
|
|
5220
5241
|
sig { override.returns(T::Array[Prism::Reflection::Field]) }
|
5221
5242
|
def fields; end
|
5222
5243
|
|
5223
|
-
sig {
|
5224
|
-
def inspect
|
5244
|
+
sig { override.returns(String) }
|
5245
|
+
def inspect; end
|
5225
5246
|
|
5226
5247
|
sig { override.returns(Symbol) }
|
5227
5248
|
def type; end
|
@@ -5286,8 +5307,8 @@ class Prism::LambdaNode < Prism::Node
|
|
5286
5307
|
sig { override.returns(T::Array[Prism::Reflection::Field]) }
|
5287
5308
|
def fields; end
|
5288
5309
|
|
5289
|
-
sig {
|
5290
|
-
def inspect
|
5310
|
+
sig { override.returns(String) }
|
5311
|
+
def inspect; end
|
5291
5312
|
|
5292
5313
|
sig { override.returns(Symbol) }
|
5293
5314
|
def type; end
|
@@ -5343,8 +5364,8 @@ class Prism::LocalVariableAndWriteNode < Prism::Node
|
|
5343
5364
|
sig { override.returns(T::Array[Prism::Reflection::Field]) }
|
5344
5365
|
def fields; end
|
5345
5366
|
|
5346
|
-
sig {
|
5347
|
-
def inspect
|
5367
|
+
sig { override.returns(String) }
|
5368
|
+
def inspect; end
|
5348
5369
|
|
5349
5370
|
sig { override.returns(Symbol) }
|
5350
5371
|
def type; end
|
@@ -5400,8 +5421,8 @@ class Prism::LocalVariableOperatorWriteNode < Prism::Node
|
|
5400
5421
|
sig { override.returns(T::Array[Prism::Reflection::Field]) }
|
5401
5422
|
def fields; end
|
5402
5423
|
|
5403
|
-
sig {
|
5404
|
-
def inspect
|
5424
|
+
sig { override.returns(String) }
|
5425
|
+
def inspect; end
|
5405
5426
|
|
5406
5427
|
sig { override.returns(Symbol) }
|
5407
5428
|
def type; end
|
@@ -5457,8 +5478,8 @@ class Prism::LocalVariableOrWriteNode < Prism::Node
|
|
5457
5478
|
sig { override.returns(T::Array[Prism::Reflection::Field]) }
|
5458
5479
|
def fields; end
|
5459
5480
|
|
5460
|
-
sig {
|
5461
|
-
def inspect
|
5481
|
+
sig { override.returns(String) }
|
5482
|
+
def inspect; end
|
5462
5483
|
|
5463
5484
|
sig { override.returns(Symbol) }
|
5464
5485
|
def type; end
|
@@ -5502,8 +5523,8 @@ class Prism::LocalVariableReadNode < Prism::Node
|
|
5502
5523
|
sig { override.returns(T::Array[Prism::Reflection::Field]) }
|
5503
5524
|
def fields; end
|
5504
5525
|
|
5505
|
-
sig {
|
5506
|
-
def inspect
|
5526
|
+
sig { override.returns(String) }
|
5527
|
+
def inspect; end
|
5507
5528
|
|
5508
5529
|
sig { override.returns(Symbol) }
|
5509
5530
|
def type; end
|
@@ -5547,8 +5568,8 @@ class Prism::LocalVariableTargetNode < Prism::Node
|
|
5547
5568
|
sig { override.returns(T::Array[Prism::Reflection::Field]) }
|
5548
5569
|
def fields; end
|
5549
5570
|
|
5550
|
-
sig {
|
5551
|
-
def inspect
|
5571
|
+
sig { override.returns(String) }
|
5572
|
+
def inspect; end
|
5552
5573
|
|
5553
5574
|
sig { override.returns(Symbol) }
|
5554
5575
|
def type; end
|
@@ -5604,8 +5625,8 @@ class Prism::LocalVariableWriteNode < Prism::Node
|
|
5604
5625
|
sig { override.returns(T::Array[Prism::Reflection::Field]) }
|
5605
5626
|
def fields; end
|
5606
5627
|
|
5607
|
-
sig {
|
5608
|
-
def inspect
|
5628
|
+
sig { override.returns(String) }
|
5629
|
+
def inspect; end
|
5609
5630
|
|
5610
5631
|
sig { override.returns(Symbol) }
|
5611
5632
|
def type; end
|
@@ -5700,8 +5721,8 @@ class Prism::MatchLastLineNode < Prism::Node
|
|
5700
5721
|
sig { override.returns(T::Array[Prism::Reflection::Field]) }
|
5701
5722
|
def fields; end
|
5702
5723
|
|
5703
|
-
sig {
|
5704
|
-
def inspect
|
5724
|
+
sig { override.returns(String) }
|
5725
|
+
def inspect; end
|
5705
5726
|
|
5706
5727
|
sig { override.returns(Symbol) }
|
5707
5728
|
def type; end
|
@@ -5751,8 +5772,8 @@ class Prism::MatchPredicateNode < Prism::Node
|
|
5751
5772
|
sig { override.returns(T::Array[Prism::Reflection::Field]) }
|
5752
5773
|
def fields; end
|
5753
5774
|
|
5754
|
-
sig {
|
5755
|
-
def inspect
|
5775
|
+
sig { override.returns(String) }
|
5776
|
+
def inspect; end
|
5756
5777
|
|
5757
5778
|
sig { override.returns(Symbol) }
|
5758
5779
|
def type; end
|
@@ -5802,8 +5823,8 @@ class Prism::MatchRequiredNode < Prism::Node
|
|
5802
5823
|
sig { override.returns(T::Array[Prism::Reflection::Field]) }
|
5803
5824
|
def fields; end
|
5804
5825
|
|
5805
|
-
sig {
|
5806
|
-
def inspect
|
5826
|
+
sig { override.returns(String) }
|
5827
|
+
def inspect; end
|
5807
5828
|
|
5808
5829
|
sig { override.returns(Symbol) }
|
5809
5830
|
def type; end
|
@@ -5847,8 +5868,8 @@ class Prism::MatchWriteNode < Prism::Node
|
|
5847
5868
|
sig { override.returns(T::Array[Prism::Reflection::Field]) }
|
5848
5869
|
def fields; end
|
5849
5870
|
|
5850
|
-
sig {
|
5851
|
-
def inspect
|
5871
|
+
sig { override.returns(String) }
|
5872
|
+
def inspect; end
|
5852
5873
|
|
5853
5874
|
sig { override.returns(Symbol) }
|
5854
5875
|
def type; end
|
@@ -5883,8 +5904,8 @@ class Prism::MissingNode < Prism::Node
|
|
5883
5904
|
sig { override.returns(T::Array[Prism::Reflection::Field]) }
|
5884
5905
|
def fields; end
|
5885
5906
|
|
5886
|
-
sig {
|
5887
|
-
def inspect
|
5907
|
+
sig { override.returns(String) }
|
5908
|
+
def inspect; end
|
5888
5909
|
|
5889
5910
|
sig { override.returns(Symbol) }
|
5890
5911
|
def type; end
|
@@ -5946,8 +5967,8 @@ class Prism::ModuleNode < Prism::Node
|
|
5946
5967
|
sig { override.returns(T::Array[Prism::Reflection::Field]) }
|
5947
5968
|
def fields; end
|
5948
5969
|
|
5949
|
-
sig {
|
5950
|
-
def inspect
|
5970
|
+
sig { override.returns(String) }
|
5971
|
+
def inspect; end
|
5951
5972
|
|
5952
5973
|
sig { override.returns(Symbol) }
|
5953
5974
|
def type; end
|
@@ -6006,8 +6027,8 @@ class Prism::MultiTargetNode < Prism::Node
|
|
6006
6027
|
sig { override.returns(T::Array[Prism::Reflection::Field]) }
|
6007
6028
|
def fields; end
|
6008
6029
|
|
6009
|
-
sig {
|
6010
|
-
def inspect
|
6030
|
+
sig { override.returns(String) }
|
6031
|
+
def inspect; end
|
6011
6032
|
|
6012
6033
|
sig { override.returns(Symbol) }
|
6013
6034
|
def type; end
|
@@ -6075,8 +6096,8 @@ class Prism::MultiWriteNode < Prism::Node
|
|
6075
6096
|
sig { override.returns(T::Array[Prism::Reflection::Field]) }
|
6076
6097
|
def fields; end
|
6077
6098
|
|
6078
|
-
sig {
|
6079
|
-
def inspect
|
6099
|
+
sig { override.returns(String) }
|
6100
|
+
def inspect; end
|
6080
6101
|
|
6081
6102
|
sig { override.returns(Symbol) }
|
6082
6103
|
def type; end
|
@@ -6123,8 +6144,8 @@ class Prism::NextNode < Prism::Node
|
|
6123
6144
|
sig { override.returns(T::Array[Prism::Reflection::Field]) }
|
6124
6145
|
def fields; end
|
6125
6146
|
|
6126
|
-
sig {
|
6127
|
-
def inspect
|
6147
|
+
sig { override.returns(String) }
|
6148
|
+
def inspect; end
|
6128
6149
|
|
6129
6150
|
sig { override.returns(Symbol) }
|
6130
6151
|
def type; end
|
@@ -6162,8 +6183,8 @@ class Prism::NilNode < Prism::Node
|
|
6162
6183
|
sig { override.returns(T::Array[Prism::Reflection::Field]) }
|
6163
6184
|
def fields; end
|
6164
6185
|
|
6165
|
-
sig {
|
6166
|
-
def inspect
|
6186
|
+
sig { override.returns(String) }
|
6187
|
+
def inspect; end
|
6167
6188
|
|
6168
6189
|
sig { override.returns(Symbol) }
|
6169
6190
|
def type; end
|
@@ -6214,8 +6235,8 @@ class Prism::NoKeywordsParameterNode < Prism::Node
|
|
6214
6235
|
sig { override.returns(T::Array[Prism::Reflection::Field]) }
|
6215
6236
|
def fields; end
|
6216
6237
|
|
6217
|
-
sig {
|
6218
|
-
def inspect
|
6238
|
+
sig { override.returns(String) }
|
6239
|
+
def inspect; end
|
6219
6240
|
|
6220
6241
|
sig { override.returns(Symbol) }
|
6221
6242
|
def type; end
|
@@ -6256,8 +6277,8 @@ class Prism::NumberedParametersNode < Prism::Node
|
|
6256
6277
|
sig { override.returns(T::Array[Prism::Reflection::Field]) }
|
6257
6278
|
def fields; end
|
6258
6279
|
|
6259
|
-
sig {
|
6260
|
-
def inspect
|
6280
|
+
sig { override.returns(String) }
|
6281
|
+
def inspect; end
|
6261
6282
|
|
6262
6283
|
sig { override.returns(Symbol) }
|
6263
6284
|
def type; end
|
@@ -6298,8 +6319,8 @@ class Prism::NumberedReferenceReadNode < Prism::Node
|
|
6298
6319
|
sig { override.returns(T::Array[Prism::Reflection::Field]) }
|
6299
6320
|
def fields; end
|
6300
6321
|
|
6301
|
-
sig {
|
6302
|
-
def inspect
|
6322
|
+
sig { override.returns(String) }
|
6323
|
+
def inspect; end
|
6303
6324
|
|
6304
6325
|
sig { override.returns(Symbol) }
|
6305
6326
|
def type; end
|
@@ -6353,8 +6374,8 @@ class Prism::OptionalKeywordParameterNode < Prism::Node
|
|
6353
6374
|
sig { override.returns(T::Array[Prism::Reflection::Field]) }
|
6354
6375
|
def fields; end
|
6355
6376
|
|
6356
|
-
sig {
|
6357
|
-
def inspect
|
6377
|
+
sig { override.returns(String) }
|
6378
|
+
def inspect; end
|
6358
6379
|
|
6359
6380
|
sig { override.returns(Symbol) }
|
6360
6381
|
def type; end
|
@@ -6414,8 +6435,8 @@ class Prism::OptionalParameterNode < Prism::Node
|
|
6414
6435
|
sig { override.returns(T::Array[Prism::Reflection::Field]) }
|
6415
6436
|
def fields; end
|
6416
6437
|
|
6417
|
-
sig {
|
6418
|
-
def inspect
|
6438
|
+
sig { override.returns(String) }
|
6439
|
+
def inspect; end
|
6419
6440
|
|
6420
6441
|
sig { override.returns(Symbol) }
|
6421
6442
|
def type; end
|
@@ -6465,8 +6486,8 @@ class Prism::OrNode < Prism::Node
|
|
6465
6486
|
sig { override.returns(T::Array[Prism::Reflection::Field]) }
|
6466
6487
|
def fields; end
|
6467
6488
|
|
6468
|
-
sig {
|
6469
|
-
def inspect
|
6489
|
+
sig { override.returns(String) }
|
6490
|
+
def inspect; end
|
6470
6491
|
|
6471
6492
|
sig { override.returns(Symbol) }
|
6472
6493
|
def type; end
|
@@ -6526,8 +6547,8 @@ class Prism::ParametersNode < Prism::Node
|
|
6526
6547
|
sig { override.returns(T::Array[Prism::Reflection::Field]) }
|
6527
6548
|
def fields; end
|
6528
6549
|
|
6529
|
-
sig {
|
6530
|
-
def inspect
|
6550
|
+
sig { override.returns(String) }
|
6551
|
+
def inspect; end
|
6531
6552
|
|
6532
6553
|
sig { override.returns(Symbol) }
|
6533
6554
|
def type; end
|
@@ -6580,8 +6601,8 @@ class Prism::ParenthesesNode < Prism::Node
|
|
6580
6601
|
sig { override.returns(T::Array[Prism::Reflection::Field]) }
|
6581
6602
|
def fields; end
|
6582
6603
|
|
6583
|
-
sig {
|
6584
|
-
def inspect
|
6604
|
+
sig { override.returns(String) }
|
6605
|
+
def inspect; end
|
6585
6606
|
|
6586
6607
|
sig { override.returns(Symbol) }
|
6587
6608
|
def type; end
|
@@ -6640,8 +6661,8 @@ class Prism::PinnedExpressionNode < Prism::Node
|
|
6640
6661
|
sig { override.returns(T::Array[Prism::Reflection::Field]) }
|
6641
6662
|
def fields; end
|
6642
6663
|
|
6643
|
-
sig {
|
6644
|
-
def inspect
|
6664
|
+
sig { override.returns(String) }
|
6665
|
+
def inspect; end
|
6645
6666
|
|
6646
6667
|
sig { override.returns(Symbol) }
|
6647
6668
|
def type; end
|
@@ -6688,8 +6709,8 @@ class Prism::PinnedVariableNode < Prism::Node
|
|
6688
6709
|
sig { override.returns(T::Array[Prism::Reflection::Field]) }
|
6689
6710
|
def fields; end
|
6690
6711
|
|
6691
|
-
sig {
|
6692
|
-
def inspect
|
6712
|
+
sig { override.returns(String) }
|
6713
|
+
def inspect; end
|
6693
6714
|
|
6694
6715
|
sig { override.returns(Symbol) }
|
6695
6716
|
def type; end
|
@@ -6748,8 +6769,8 @@ class Prism::PostExecutionNode < Prism::Node
|
|
6748
6769
|
sig { override.returns(T::Array[Prism::Reflection::Field]) }
|
6749
6770
|
def fields; end
|
6750
6771
|
|
6751
|
-
sig {
|
6752
|
-
def inspect
|
6772
|
+
sig { override.returns(String) }
|
6773
|
+
def inspect; end
|
6753
6774
|
|
6754
6775
|
sig { override.returns(Symbol) }
|
6755
6776
|
def type; end
|
@@ -6808,8 +6829,8 @@ class Prism::PreExecutionNode < Prism::Node
|
|
6808
6829
|
sig { override.returns(T::Array[Prism::Reflection::Field]) }
|
6809
6830
|
def fields; end
|
6810
6831
|
|
6811
|
-
sig {
|
6812
|
-
def inspect
|
6832
|
+
sig { override.returns(String) }
|
6833
|
+
def inspect; end
|
6813
6834
|
|
6814
6835
|
sig { override.returns(Symbol) }
|
6815
6836
|
def type; end
|
@@ -6850,8 +6871,8 @@ class Prism::ProgramNode < Prism::Node
|
|
6850
6871
|
sig { override.returns(T::Array[Prism::Reflection::Field]) }
|
6851
6872
|
def fields; end
|
6852
6873
|
|
6853
|
-
sig {
|
6854
|
-
def inspect
|
6874
|
+
sig { override.returns(String) }
|
6875
|
+
def inspect; end
|
6855
6876
|
|
6856
6877
|
sig { override.returns(Symbol) }
|
6857
6878
|
def type; end
|
@@ -6910,8 +6931,8 @@ class Prism::RangeNode < Prism::Node
|
|
6910
6931
|
sig { override.returns(T::Array[Prism::Reflection::Field]) }
|
6911
6932
|
def fields; end
|
6912
6933
|
|
6913
|
-
sig {
|
6914
|
-
def inspect
|
6934
|
+
sig { override.returns(String) }
|
6935
|
+
def inspect; end
|
6915
6936
|
|
6916
6937
|
sig { override.returns(Symbol) }
|
6917
6938
|
def type; end
|
@@ -6952,8 +6973,8 @@ class Prism::RationalNode < Prism::Node
|
|
6952
6973
|
sig { override.returns(T::Array[Prism::Reflection::Field]) }
|
6953
6974
|
def fields; end
|
6954
6975
|
|
6955
|
-
sig {
|
6956
|
-
def inspect
|
6976
|
+
sig { override.returns(String) }
|
6977
|
+
def inspect; end
|
6957
6978
|
|
6958
6979
|
sig { override.returns(Symbol) }
|
6959
6980
|
def type; end
|
@@ -6991,8 +7012,8 @@ class Prism::RedoNode < Prism::Node
|
|
6991
7012
|
sig { override.returns(T::Array[Prism::Reflection::Field]) }
|
6992
7013
|
def fields; end
|
6993
7014
|
|
6994
|
-
sig {
|
6995
|
-
def inspect
|
7015
|
+
sig { override.returns(String) }
|
7016
|
+
def inspect; end
|
6996
7017
|
|
6997
7018
|
sig { override.returns(Symbol) }
|
6998
7019
|
def type; end
|
@@ -7087,8 +7108,8 @@ class Prism::RegularExpressionNode < Prism::Node
|
|
7087
7108
|
sig { override.returns(T::Array[Prism::Reflection::Field]) }
|
7088
7109
|
def fields; end
|
7089
7110
|
|
7090
|
-
sig {
|
7091
|
-
def inspect
|
7111
|
+
sig { override.returns(String) }
|
7112
|
+
def inspect; end
|
7092
7113
|
|
7093
7114
|
sig { override.returns(Symbol) }
|
7094
7115
|
def type; end
|
@@ -7139,8 +7160,8 @@ class Prism::RequiredKeywordParameterNode < Prism::Node
|
|
7139
7160
|
sig { override.returns(T::Array[Prism::Reflection::Field]) }
|
7140
7161
|
def fields; end
|
7141
7162
|
|
7142
|
-
sig {
|
7143
|
-
def inspect
|
7163
|
+
sig { override.returns(String) }
|
7164
|
+
def inspect; end
|
7144
7165
|
|
7145
7166
|
sig { override.returns(Symbol) }
|
7146
7167
|
def type; end
|
@@ -7188,8 +7209,8 @@ class Prism::RequiredParameterNode < Prism::Node
|
|
7188
7209
|
sig { override.returns(T::Array[Prism::Reflection::Field]) }
|
7189
7210
|
def fields; end
|
7190
7211
|
|
7191
|
-
sig {
|
7192
|
-
def inspect
|
7212
|
+
sig { override.returns(String) }
|
7213
|
+
def inspect; end
|
7193
7214
|
|
7194
7215
|
sig { override.returns(Symbol) }
|
7195
7216
|
def type; end
|
@@ -7239,8 +7260,8 @@ class Prism::RescueModifierNode < Prism::Node
|
|
7239
7260
|
sig { override.returns(T::Array[Prism::Reflection::Field]) }
|
7240
7261
|
def fields; end
|
7241
7262
|
|
7242
|
-
sig {
|
7243
|
-
def inspect
|
7263
|
+
sig { override.returns(String) }
|
7264
|
+
def inspect; end
|
7244
7265
|
|
7245
7266
|
sig { override.returns(Symbol) }
|
7246
7267
|
def type; end
|
@@ -7307,8 +7328,8 @@ class Prism::RescueNode < Prism::Node
|
|
7307
7328
|
sig { override.returns(T::Array[Prism::Reflection::Field]) }
|
7308
7329
|
def fields; end
|
7309
7330
|
|
7310
|
-
sig {
|
7311
|
-
def inspect
|
7331
|
+
sig { override.returns(String) }
|
7332
|
+
def inspect; end
|
7312
7333
|
|
7313
7334
|
sig { override.returns(Symbol) }
|
7314
7335
|
def type; end
|
@@ -7365,8 +7386,8 @@ class Prism::RestParameterNode < Prism::Node
|
|
7365
7386
|
sig { override.returns(T::Array[Prism::Reflection::Field]) }
|
7366
7387
|
def fields; end
|
7367
7388
|
|
7368
|
-
sig {
|
7369
|
-
def inspect
|
7389
|
+
sig { override.returns(String) }
|
7390
|
+
def inspect; end
|
7370
7391
|
|
7371
7392
|
sig { override.returns(Symbol) }
|
7372
7393
|
def type; end
|
@@ -7404,8 +7425,8 @@ class Prism::RetryNode < Prism::Node
|
|
7404
7425
|
sig { override.returns(T::Array[Prism::Reflection::Field]) }
|
7405
7426
|
def fields; end
|
7406
7427
|
|
7407
|
-
sig {
|
7408
|
-
def inspect
|
7428
|
+
sig { override.returns(String) }
|
7429
|
+
def inspect; end
|
7409
7430
|
|
7410
7431
|
sig { override.returns(Symbol) }
|
7411
7432
|
def type; end
|
@@ -7416,14 +7437,17 @@ end
|
|
7416
7437
|
# return 1
|
7417
7438
|
# ^^^^^^^^
|
7418
7439
|
class Prism::ReturnNode < Prism::Node
|
7440
|
+
sig { returns(Integer) }
|
7441
|
+
def flags; end
|
7442
|
+
|
7419
7443
|
sig { returns(Prism::Location) }
|
7420
7444
|
def keyword_loc; end
|
7421
7445
|
|
7422
7446
|
sig { returns(T.nilable(Prism::ArgumentsNode)) }
|
7423
7447
|
def arguments; end
|
7424
7448
|
|
7425
|
-
sig { params(source: Prism::Source, keyword_loc: Prism::Location, arguments: T.nilable(Prism::ArgumentsNode), location: Prism::Location).void }
|
7426
|
-
def initialize(source, keyword_loc, arguments, location); end
|
7449
|
+
sig { params(source: Prism::Source, flags: Integer, keyword_loc: Prism::Location, arguments: T.nilable(Prism::ArgumentsNode), location: Prism::Location).void }
|
7450
|
+
def initialize(source, flags, keyword_loc, arguments, location); end
|
7427
7451
|
|
7428
7452
|
sig { override.params(visitor: Prism::Visitor).returns(T.untyped) }
|
7429
7453
|
def accept(visitor); end
|
@@ -7440,20 +7464,23 @@ class Prism::ReturnNode < Prism::Node
|
|
7440
7464
|
sig { override.returns(T::Array[T.any(Prism::Node, Prism::Location)]) }
|
7441
7465
|
def comment_targets; end
|
7442
7466
|
|
7443
|
-
sig { params(keyword_loc: Prism::Location, arguments: T.nilable(Prism::ArgumentsNode), location: Prism::Location).returns(Prism::ReturnNode) }
|
7444
|
-
def copy(keyword_loc: self.keyword_loc, arguments: self.arguments, location: self.location); end
|
7467
|
+
sig { params(flags: Integer, keyword_loc: Prism::Location, arguments: T.nilable(Prism::ArgumentsNode), location: Prism::Location).returns(Prism::ReturnNode) }
|
7468
|
+
def copy(flags: self.flags, keyword_loc: self.keyword_loc, arguments: self.arguments, location: self.location); end
|
7445
7469
|
|
7446
7470
|
sig { params(keys: T.nilable(T::Array[Symbol])).returns(T::Hash[Symbol, T.untyped]) }
|
7447
7471
|
def deconstruct_keys(keys); end
|
7448
7472
|
|
7473
|
+
sig { returns(T::Boolean) }
|
7474
|
+
def redundant?; end
|
7475
|
+
|
7449
7476
|
sig { returns(String) }
|
7450
7477
|
def keyword; end
|
7451
7478
|
|
7452
7479
|
sig { override.returns(T::Array[Prism::Reflection::Field]) }
|
7453
7480
|
def fields; end
|
7454
7481
|
|
7455
|
-
sig {
|
7456
|
-
def inspect
|
7482
|
+
sig { override.returns(String) }
|
7483
|
+
def inspect; end
|
7457
7484
|
|
7458
7485
|
sig { override.returns(Symbol) }
|
7459
7486
|
def type; end
|
@@ -7491,8 +7518,8 @@ class Prism::SelfNode < Prism::Node
|
|
7491
7518
|
sig { override.returns(T::Array[Prism::Reflection::Field]) }
|
7492
7519
|
def fields; end
|
7493
7520
|
|
7494
|
-
sig {
|
7495
|
-
def inspect
|
7521
|
+
sig { override.returns(String) }
|
7522
|
+
def inspect; end
|
7496
7523
|
|
7497
7524
|
sig { override.returns(Symbol) }
|
7498
7525
|
def type; end
|
@@ -7546,8 +7573,8 @@ class Prism::ShareableConstantNode < Prism::Node
|
|
7546
7573
|
sig { override.returns(T::Array[Prism::Reflection::Field]) }
|
7547
7574
|
def fields; end
|
7548
7575
|
|
7549
|
-
sig {
|
7550
|
-
def inspect
|
7576
|
+
sig { override.returns(String) }
|
7577
|
+
def inspect; end
|
7551
7578
|
|
7552
7579
|
sig { override.returns(Symbol) }
|
7553
7580
|
def type; end
|
@@ -7612,8 +7639,8 @@ class Prism::SingletonClassNode < Prism::Node
|
|
7612
7639
|
sig { override.returns(T::Array[Prism::Reflection::Field]) }
|
7613
7640
|
def fields; end
|
7614
7641
|
|
7615
|
-
sig {
|
7616
|
-
def inspect
|
7642
|
+
sig { override.returns(String) }
|
7643
|
+
def inspect; end
|
7617
7644
|
|
7618
7645
|
sig { override.returns(Symbol) }
|
7619
7646
|
def type; end
|
@@ -7651,8 +7678,8 @@ class Prism::SourceEncodingNode < Prism::Node
|
|
7651
7678
|
sig { override.returns(T::Array[Prism::Reflection::Field]) }
|
7652
7679
|
def fields; end
|
7653
7680
|
|
7654
|
-
sig {
|
7655
|
-
def inspect
|
7681
|
+
sig { override.returns(String) }
|
7682
|
+
def inspect; end
|
7656
7683
|
|
7657
7684
|
sig { override.returns(Symbol) }
|
7658
7685
|
def type; end
|
@@ -7708,8 +7735,8 @@ class Prism::SourceFileNode < Prism::Node
|
|
7708
7735
|
sig { override.returns(T::Array[Prism::Reflection::Field]) }
|
7709
7736
|
def fields; end
|
7710
7737
|
|
7711
|
-
sig {
|
7712
|
-
def inspect
|
7738
|
+
sig { override.returns(String) }
|
7739
|
+
def inspect; end
|
7713
7740
|
|
7714
7741
|
sig { override.returns(Symbol) }
|
7715
7742
|
def type; end
|
@@ -7747,8 +7774,8 @@ class Prism::SourceLineNode < Prism::Node
|
|
7747
7774
|
sig { override.returns(T::Array[Prism::Reflection::Field]) }
|
7748
7775
|
def fields; end
|
7749
7776
|
|
7750
|
-
sig {
|
7751
|
-
def inspect
|
7777
|
+
sig { override.returns(String) }
|
7778
|
+
def inspect; end
|
7752
7779
|
|
7753
7780
|
sig { override.returns(Symbol) }
|
7754
7781
|
def type; end
|
@@ -7795,8 +7822,8 @@ class Prism::SplatNode < Prism::Node
|
|
7795
7822
|
sig { override.returns(T::Array[Prism::Reflection::Field]) }
|
7796
7823
|
def fields; end
|
7797
7824
|
|
7798
|
-
sig {
|
7799
|
-
def inspect
|
7825
|
+
sig { override.returns(String) }
|
7826
|
+
def inspect; end
|
7800
7827
|
|
7801
7828
|
sig { override.returns(Symbol) }
|
7802
7829
|
def type; end
|
@@ -7837,8 +7864,8 @@ class Prism::StatementsNode < Prism::Node
|
|
7837
7864
|
sig { override.returns(T::Array[Prism::Reflection::Field]) }
|
7838
7865
|
def fields; end
|
7839
7866
|
|
7840
|
-
sig {
|
7841
|
-
def inspect
|
7867
|
+
sig { override.returns(String) }
|
7868
|
+
def inspect; end
|
7842
7869
|
|
7843
7870
|
sig { override.returns(Symbol) }
|
7844
7871
|
def type; end
|
@@ -7918,8 +7945,8 @@ class Prism::StringNode < Prism::Node
|
|
7918
7945
|
sig { override.returns(T::Array[Prism::Reflection::Field]) }
|
7919
7946
|
def fields; end
|
7920
7947
|
|
7921
|
-
sig {
|
7922
|
-
def inspect
|
7948
|
+
sig { override.returns(String) }
|
7949
|
+
def inspect; end
|
7923
7950
|
|
7924
7951
|
sig { override.returns(Symbol) }
|
7925
7952
|
def type; end
|
@@ -7984,8 +8011,8 @@ class Prism::SuperNode < Prism::Node
|
|
7984
8011
|
sig { override.returns(T::Array[Prism::Reflection::Field]) }
|
7985
8012
|
def fields; end
|
7986
8013
|
|
7987
|
-
sig {
|
7988
|
-
def inspect
|
8014
|
+
sig { override.returns(String) }
|
8015
|
+
def inspect; end
|
7989
8016
|
|
7990
8017
|
sig { override.returns(Symbol) }
|
7991
8018
|
def type; end
|
@@ -8059,8 +8086,8 @@ class Prism::SymbolNode < Prism::Node
|
|
8059
8086
|
sig { override.returns(T::Array[Prism::Reflection::Field]) }
|
8060
8087
|
def fields; end
|
8061
8088
|
|
8062
|
-
sig {
|
8063
|
-
def inspect
|
8089
|
+
sig { override.returns(String) }
|
8090
|
+
def inspect; end
|
8064
8091
|
|
8065
8092
|
sig { override.returns(Symbol) }
|
8066
8093
|
def type; end
|
@@ -8098,8 +8125,8 @@ class Prism::TrueNode < Prism::Node
|
|
8098
8125
|
sig { override.returns(T::Array[Prism::Reflection::Field]) }
|
8099
8126
|
def fields; end
|
8100
8127
|
|
8101
|
-
sig {
|
8102
|
-
def inspect
|
8128
|
+
sig { override.returns(String) }
|
8129
|
+
def inspect; end
|
8103
8130
|
|
8104
8131
|
sig { override.returns(Symbol) }
|
8105
8132
|
def type; end
|
@@ -8146,8 +8173,8 @@ class Prism::UndefNode < Prism::Node
|
|
8146
8173
|
sig { override.returns(T::Array[Prism::Reflection::Field]) }
|
8147
8174
|
def fields; end
|
8148
8175
|
|
8149
|
-
sig {
|
8150
|
-
def inspect
|
8176
|
+
sig { override.returns(String) }
|
8177
|
+
def inspect; end
|
8151
8178
|
|
8152
8179
|
sig { override.returns(Symbol) }
|
8153
8180
|
def type; end
|
@@ -8215,8 +8242,8 @@ class Prism::UnlessNode < Prism::Node
|
|
8215
8242
|
sig { override.returns(T::Array[Prism::Reflection::Field]) }
|
8216
8243
|
def fields; end
|
8217
8244
|
|
8218
|
-
sig {
|
8219
|
-
def inspect
|
8245
|
+
sig { override.returns(String) }
|
8246
|
+
def inspect; end
|
8220
8247
|
|
8221
8248
|
sig { override.returns(Symbol) }
|
8222
8249
|
def type; end
|
@@ -8281,8 +8308,8 @@ class Prism::UntilNode < Prism::Node
|
|
8281
8308
|
sig { override.returns(T::Array[Prism::Reflection::Field]) }
|
8282
8309
|
def fields; end
|
8283
8310
|
|
8284
|
-
sig {
|
8285
|
-
def inspect
|
8311
|
+
sig { override.returns(String) }
|
8312
|
+
def inspect; end
|
8286
8313
|
|
8287
8314
|
sig { override.returns(Symbol) }
|
8288
8315
|
def type; end
|
@@ -8340,8 +8367,8 @@ class Prism::WhenNode < Prism::Node
|
|
8340
8367
|
sig { override.returns(T::Array[Prism::Reflection::Field]) }
|
8341
8368
|
def fields; end
|
8342
8369
|
|
8343
|
-
sig {
|
8344
|
-
def inspect
|
8370
|
+
sig { override.returns(String) }
|
8371
|
+
def inspect; end
|
8345
8372
|
|
8346
8373
|
sig { override.returns(Symbol) }
|
8347
8374
|
def type; end
|
@@ -8406,8 +8433,8 @@ class Prism::WhileNode < Prism::Node
|
|
8406
8433
|
sig { override.returns(T::Array[Prism::Reflection::Field]) }
|
8407
8434
|
def fields; end
|
8408
8435
|
|
8409
|
-
sig {
|
8410
|
-
def inspect
|
8436
|
+
sig { override.returns(String) }
|
8437
|
+
def inspect; end
|
8411
8438
|
|
8412
8439
|
sig { override.returns(Symbol) }
|
8413
8440
|
def type; end
|
@@ -8475,8 +8502,8 @@ class Prism::XStringNode < Prism::Node
|
|
8475
8502
|
sig { override.returns(T::Array[Prism::Reflection::Field]) }
|
8476
8503
|
def fields; end
|
8477
8504
|
|
8478
|
-
sig {
|
8479
|
-
def inspect
|
8505
|
+
sig { override.returns(String) }
|
8506
|
+
def inspect; end
|
8480
8507
|
|
8481
8508
|
sig { override.returns(Symbol) }
|
8482
8509
|
def type; end
|
@@ -8535,8 +8562,8 @@ class Prism::YieldNode < Prism::Node
|
|
8535
8562
|
sig { override.returns(T::Array[Prism::Reflection::Field]) }
|
8536
8563
|
def fields; end
|
8537
8564
|
|
8538
|
-
sig {
|
8539
|
-
def inspect
|
8565
|
+
sig { override.returns(String) }
|
8566
|
+
def inspect; end
|
8540
8567
|
|
8541
8568
|
sig { override.returns(Symbol) }
|
8542
8569
|
def type; end
|
@@ -8544,8 +8571,10 @@ end
|
|
8544
8571
|
|
8545
8572
|
# Flags for arguments nodes.
|
8546
8573
|
module Prism::ArgumentsNodeFlags
|
8574
|
+
# if arguments contain keywords
|
8575
|
+
CONTAINS_KEYWORDS = T.let(1 << 0, Integer)
|
8547
8576
|
# if arguments contain keyword splat
|
8548
|
-
CONTAINS_KEYWORD_SPLAT = T.let(1 <<
|
8577
|
+
CONTAINS_KEYWORD_SPLAT = T.let(1 << 1, Integer)
|
8549
8578
|
end
|
8550
8579
|
|
8551
8580
|
# Flags for array nodes.
|
@@ -8644,6 +8673,12 @@ module Prism::RegularExpressionFlags
|
|
8644
8673
|
FORCED_US_ASCII_ENCODING = T.let(1 << 10, Integer)
|
8645
8674
|
end
|
8646
8675
|
|
8676
|
+
# Flags for return nodes.
|
8677
|
+
module Prism::ReturnNodeFlags
|
8678
|
+
# a return statement that is redundant because it is the last statement in a method
|
8679
|
+
REDUNDANT = T.let(1 << 0, Integer)
|
8680
|
+
end
|
8681
|
+
|
8647
8682
|
# Flags for shareable constant nodes.
|
8648
8683
|
module Prism::ShareableConstantNodeFlags
|
8649
8684
|
# constant writes that should be modified with shareable constant value literal
|