rbi 0.3.9 → 0.3.11

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.
data/rbi/rbi.rbi CHANGED
@@ -30,9 +30,9 @@ class RBI::Attr < ::RBI::NodeWithComments
30
30
  name: ::Symbol,
31
31
  names: T::Array[::Symbol],
32
32
  visibility: ::RBI::Visibility,
33
- sigs: T::Array[::RBI::Sig],
33
+ sigs: T.nilable(T::Array[::RBI::Sig]),
34
34
  loc: T.nilable(::RBI::Loc),
35
- comments: T::Array[::RBI::Comment]
35
+ comments: T.nilable(T::Array[::RBI::Comment])
36
36
  ).void
37
37
  end
38
38
  def initialize(name, names, visibility: T.unsafe(nil), sigs: T.unsafe(nil), loc: T.unsafe(nil), comments: T.unsafe(nil)); end
@@ -58,6 +58,12 @@ class RBI::Attr < ::RBI::NodeWithComments
58
58
  sig { returns(T::Array[::RBI::Sig]) }
59
59
  def sigs; end
60
60
 
61
+ sig { params(sigs: T::Array[::RBI::Sig]).returns(T::Array[::RBI::Sig]) }
62
+ def sigs=(sigs); end
63
+
64
+ sig { returns(T::Boolean) }
65
+ def sigs?; end
66
+
61
67
  sig { returns(::RBI::Visibility) }
62
68
  def visibility; end
63
69
 
@@ -98,9 +104,9 @@ class RBI::AttrAccessor < ::RBI::Attr
98
104
  name: ::Symbol,
99
105
  names: ::Symbol,
100
106
  visibility: ::RBI::Visibility,
101
- sigs: T::Array[::RBI::Sig],
107
+ sigs: T.nilable(T::Array[::RBI::Sig]),
102
108
  loc: T.nilable(::RBI::Loc),
103
- comments: T::Array[::RBI::Comment],
109
+ comments: T.nilable(T::Array[::RBI::Comment]),
104
110
  block: T.nilable(T.proc.params(node: ::RBI::AttrAccessor).void)
105
111
  ).void
106
112
  end
@@ -125,9 +131,9 @@ class RBI::AttrReader < ::RBI::Attr
125
131
  name: ::Symbol,
126
132
  names: ::Symbol,
127
133
  visibility: ::RBI::Visibility,
128
- sigs: T::Array[::RBI::Sig],
134
+ sigs: T.nilable(T::Array[::RBI::Sig]),
129
135
  loc: T.nilable(::RBI::Loc),
130
- comments: T::Array[::RBI::Comment],
136
+ comments: T.nilable(T::Array[::RBI::Comment]),
131
137
  block: T.nilable(T.proc.params(node: ::RBI::AttrReader).void)
132
138
  ).void
133
139
  end
@@ -152,9 +158,9 @@ class RBI::AttrWriter < ::RBI::Attr
152
158
  name: ::Symbol,
153
159
  names: ::Symbol,
154
160
  visibility: ::RBI::Visibility,
155
- sigs: T::Array[::RBI::Sig],
161
+ sigs: T.nilable(T::Array[::RBI::Sig]),
156
162
  loc: T.nilable(::RBI::Loc),
157
- comments: T::Array[::RBI::Comment],
163
+ comments: T.nilable(T::Array[::RBI::Comment]),
158
164
  block: T.nilable(T.proc.params(node: ::RBI::AttrWriter).void)
159
165
  ).void
160
166
  end
@@ -183,15 +189,12 @@ class RBI::BlockParam < ::RBI::Param
183
189
  params(
184
190
  name: ::String,
185
191
  loc: T.nilable(::RBI::Loc),
186
- comments: T::Array[::RBI::Comment],
192
+ comments: T.nilable(T::Array[::RBI::Comment]),
187
193
  block: T.nilable(T.proc.params(node: ::RBI::BlockParam).void)
188
194
  ).void
189
195
  end
190
196
  def initialize(name, loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end
191
197
 
192
- sig { params(other: T.nilable(::Object)).returns(T::Boolean) }
193
- def ==(other); end
194
-
195
198
  sig { override.returns(::String) }
196
199
  def to_s; end
197
200
  end
@@ -202,7 +205,7 @@ class RBI::Class < ::RBI::Scope
202
205
  name: ::String,
203
206
  superclass_name: T.nilable(::String),
204
207
  loc: T.nilable(::RBI::Loc),
205
- comments: T::Array[::RBI::Comment],
208
+ comments: T.nilable(T::Array[::RBI::Comment]),
206
209
  block: T.nilable(T.proc.params(node: ::RBI::Class).void)
207
210
  ).void
208
211
  end
@@ -217,8 +220,6 @@ class RBI::Class < ::RBI::Scope
217
220
  sig { returns(::String) }
218
221
  def name; end
219
222
 
220
- def name=(_arg0); end
221
-
222
223
  sig { returns(T.nilable(::String)) }
223
224
  def superclass_name; end
224
225
 
@@ -260,7 +261,7 @@ class RBI::Const < ::RBI::NodeWithComments
260
261
  name: ::String,
261
262
  value: ::String,
262
263
  loc: T.nilable(::RBI::Loc),
263
- comments: T::Array[::RBI::Comment],
264
+ comments: T.nilable(T::Array[::RBI::Comment]),
264
265
  block: T.nilable(T.proc.params(node: ::RBI::Const).void)
265
266
  ).void
266
267
  end
@@ -295,7 +296,7 @@ class RBI::Extend < ::RBI::Mixin
295
296
  name: ::String,
296
297
  names: ::String,
297
298
  loc: T.nilable(::RBI::Loc),
298
- comments: T::Array[::RBI::Comment],
299
+ comments: T.nilable(T::Array[::RBI::Comment]),
299
300
  block: T.nilable(T.proc.params(node: ::RBI::Extend).void)
300
301
  ).void
301
302
  end
@@ -315,7 +316,7 @@ class RBI::File
315
316
  sig do
316
317
  params(
317
318
  strictness: T.nilable(::String),
318
- comments: T::Array[::RBI::Comment],
319
+ comments: T.nilable(T::Array[::RBI::Comment]),
319
320
  block: T.nilable(T.proc.params(file: ::RBI::File).void)
320
321
  ).void
321
322
  end
@@ -327,7 +328,11 @@ class RBI::File
327
328
  sig { returns(T::Array[::RBI::Comment]) }
328
329
  def comments; end
329
330
 
330
- def comments=(_arg0); end
331
+ sig { params(comments: T::Array[::RBI::Comment]).returns(T::Array[::RBI::Comment]) }
332
+ def comments=(comments); end
333
+
334
+ sig { returns(T::Boolean) }
335
+ def comments?; end
331
336
 
332
337
  sig { returns(T::Boolean) }
333
338
  def empty?; end
@@ -429,7 +434,7 @@ class RBI::Helper < ::RBI::NodeWithComments
429
434
  params(
430
435
  name: ::String,
431
436
  loc: T.nilable(::RBI::Loc),
432
- comments: T::Array[::RBI::Comment],
437
+ comments: T.nilable(T::Array[::RBI::Comment]),
433
438
  block: T.nilable(T.proc.params(node: ::RBI::Helper).void)
434
439
  ).void
435
440
  end
@@ -456,7 +461,7 @@ class RBI::Include < ::RBI::Mixin
456
461
  name: ::String,
457
462
  names: ::String,
458
463
  loc: T.nilable(::RBI::Loc),
459
- comments: T::Array[::RBI::Comment],
464
+ comments: T.nilable(T::Array[::RBI::Comment]),
460
465
  block: T.nilable(T.proc.params(node: ::RBI::Include).void)
461
466
  ).void
462
467
  end
@@ -526,15 +531,12 @@ class RBI::KwOptParam < ::RBI::Param
526
531
  name: ::String,
527
532
  value: ::String,
528
533
  loc: T.nilable(::RBI::Loc),
529
- comments: T::Array[::RBI::Comment],
534
+ comments: T.nilable(T::Array[::RBI::Comment]),
530
535
  block: T.nilable(T.proc.params(node: ::RBI::KwOptParam).void)
531
536
  ).void
532
537
  end
533
538
  def initialize(name, value, loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end
534
539
 
535
- sig { params(other: T.nilable(::Object)).returns(T::Boolean) }
536
- def ==(other); end
537
-
538
540
  sig { override.returns(::String) }
539
541
  def to_s; end
540
542
 
@@ -547,15 +549,12 @@ class RBI::KwParam < ::RBI::Param
547
549
  params(
548
550
  name: ::String,
549
551
  loc: T.nilable(::RBI::Loc),
550
- comments: T::Array[::RBI::Comment],
552
+ comments: T.nilable(T::Array[::RBI::Comment]),
551
553
  block: T.nilable(T.proc.params(node: ::RBI::KwParam).void)
552
554
  ).void
553
555
  end
554
556
  def initialize(name, loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end
555
557
 
556
- sig { params(other: T.nilable(::Object)).returns(T::Boolean) }
557
- def ==(other); end
558
-
559
558
  sig { override.returns(::String) }
560
559
  def to_s; end
561
560
  end
@@ -565,15 +564,12 @@ class RBI::KwRestParam < ::RBI::Param
565
564
  params(
566
565
  name: ::String,
567
566
  loc: T.nilable(::RBI::Loc),
568
- comments: T::Array[::RBI::Comment],
567
+ comments: T.nilable(T::Array[::RBI::Comment]),
569
568
  block: T.nilable(T.proc.params(node: ::RBI::KwRestParam).void)
570
569
  ).void
571
570
  end
572
571
  def initialize(name, loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end
573
572
 
574
- sig { params(other: T.nilable(::Object)).returns(T::Boolean) }
575
- def ==(other); end
576
-
577
573
  sig { override.returns(::String) }
578
574
  def to_s; end
579
575
  end
@@ -637,12 +633,12 @@ class RBI::Method < ::RBI::NodeWithComments
637
633
  sig do
638
634
  params(
639
635
  name: ::String,
640
- params: T::Array[::RBI::Param],
636
+ params: T.nilable(T::Array[::RBI::Param]),
641
637
  is_singleton: T::Boolean,
642
638
  visibility: ::RBI::Visibility,
643
- sigs: T::Array[::RBI::Sig],
639
+ sigs: T.nilable(T::Array[::RBI::Sig]),
644
640
  loc: T.nilable(::RBI::Loc),
645
- comments: T::Array[::RBI::Comment],
641
+ comments: T.nilable(T::Array[::RBI::Comment]),
646
642
  block: T.nilable(T.proc.params(node: ::RBI::Method).void)
647
643
  ).void
648
644
  end
@@ -674,13 +670,13 @@ class RBI::Method < ::RBI::NodeWithComments
674
670
 
675
671
  sig do
676
672
  params(
677
- params: T::Array[::RBI::SigParam],
673
+ params: T.nilable(T::Array[::RBI::SigParam]),
678
674
  return_type: T.any(::RBI::Type, ::String),
679
675
  is_abstract: T::Boolean,
680
676
  is_override: T::Boolean,
681
677
  is_overridable: T::Boolean,
682
678
  is_final: T::Boolean,
683
- type_params: T::Array[::String],
679
+ type_params: T.nilable(T::Array[::String]),
684
680
  checked: T.nilable(::Symbol),
685
681
  block: T.nilable(T.proc.params(node: ::RBI::Sig).void)
686
682
  ).void
@@ -707,15 +703,17 @@ class RBI::Method < ::RBI::NodeWithComments
707
703
  sig { returns(::String) }
708
704
  def name; end
709
705
 
710
- def name=(_arg0); end
711
-
712
706
  sig { returns(T::Array[::RBI::Param]) }
713
707
  def params; end
714
708
 
715
709
  sig { returns(T::Array[::RBI::Sig]) }
716
710
  def sigs; end
717
711
 
718
- def sigs=(_arg0); end
712
+ sig { params(sigs: T::Array[::RBI::Sig]).returns(T::Array[::RBI::Sig]) }
713
+ def sigs=(sigs); end
714
+
715
+ sig { returns(T::Boolean) }
716
+ def sigs?; end
719
717
 
720
718
  sig { override.returns(::String) }
721
719
  def to_s; end
@@ -724,6 +722,11 @@ class RBI::Method < ::RBI::NodeWithComments
724
722
  def visibility; end
725
723
 
726
724
  def visibility=(_arg0); end
725
+
726
+ private
727
+
728
+ sig { params(other: ::RBI::Method).returns(T::Boolean) }
729
+ def at_most_one_side_anonymous?(other); end
727
730
  end
728
731
 
729
732
  class RBI::MixesInClassMethods < ::RBI::Mixin
@@ -734,7 +737,7 @@ class RBI::MixesInClassMethods < ::RBI::Mixin
734
737
  name: ::String,
735
738
  names: ::String,
736
739
  loc: T.nilable(::RBI::Loc),
737
- comments: T::Array[::RBI::Comment],
740
+ comments: T.nilable(T::Array[::RBI::Comment]),
738
741
  block: T.nilable(T.proc.params(node: ::RBI::MixesInClassMethods).void)
739
742
  ).void
740
743
  end
@@ -758,7 +761,7 @@ class RBI::Mixin < ::RBI::NodeWithComments
758
761
  name: ::String,
759
762
  names: T::Array[::String],
760
763
  loc: T.nilable(::RBI::Loc),
761
- comments: T::Array[::RBI::Comment]
764
+ comments: T.nilable(T::Array[::RBI::Comment])
762
765
  ).void
763
766
  end
764
767
  def initialize(name, names, loc: T.unsafe(nil), comments: T.unsafe(nil)); end
@@ -775,7 +778,7 @@ class RBI::Module < ::RBI::Scope
775
778
  params(
776
779
  name: ::String,
777
780
  loc: T.nilable(::RBI::Loc),
778
- comments: T::Array[::RBI::Comment],
781
+ comments: T.nilable(T::Array[::RBI::Comment]),
779
782
  block: T.nilable(T.proc.params(node: ::RBI::Module).void)
780
783
  ).void
781
784
  end
@@ -789,8 +792,6 @@ class RBI::Module < ::RBI::Scope
789
792
 
790
793
  sig { returns(::String) }
791
794
  def name; end
792
-
793
- def name=(_arg0); end
794
795
  end
795
796
 
796
797
  class RBI::Node
@@ -860,7 +861,7 @@ end
860
861
  class RBI::NodeWithComments < ::RBI::Node
861
862
  abstract!
862
863
 
863
- sig { params(loc: T.nilable(::RBI::Loc), comments: T::Array[::RBI::Comment]).void }
864
+ sig { params(loc: T.nilable(::RBI::Loc), comments: T.nilable(T::Array[::RBI::Comment])).void }
864
865
  def initialize(loc: T.unsafe(nil), comments: T.unsafe(nil)); end
865
866
 
866
867
  sig { returns(T::Array[::String]) }
@@ -869,7 +870,11 @@ class RBI::NodeWithComments < ::RBI::Node
869
870
  sig { returns(T::Array[::RBI::Comment]) }
870
871
  def comments; end
871
872
 
872
- def comments=(_arg0); end
873
+ sig { params(comments: T::Array[::RBI::Comment]).returns(T::Array[::RBI::Comment]) }
874
+ def comments=(comments); end
875
+
876
+ sig { returns(T::Boolean) }
877
+ def comments?; end
873
878
 
874
879
  sig { override.params(other: ::RBI::Node).void }
875
880
  def merge_with(other); end
@@ -884,15 +889,12 @@ class RBI::OptParam < ::RBI::Param
884
889
  name: ::String,
885
890
  value: ::String,
886
891
  loc: T.nilable(::RBI::Loc),
887
- comments: T::Array[::RBI::Comment],
892
+ comments: T.nilable(T::Array[::RBI::Comment]),
888
893
  block: T.nilable(T.proc.params(node: ::RBI::OptParam).void)
889
894
  ).void
890
895
  end
891
896
  def initialize(name, value, loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end
892
897
 
893
- sig { params(other: T.nilable(::Object)).returns(T::Boolean) }
894
- def ==(other); end
895
-
896
898
  sig { returns(::String) }
897
899
  def value; end
898
900
  end
@@ -900,9 +902,15 @@ end
900
902
  class RBI::Param < ::RBI::NodeWithComments
901
903
  abstract!
902
904
 
903
- sig { params(name: ::String, loc: T.nilable(::RBI::Loc), comments: T::Array[::RBI::Comment]).void }
905
+ sig { params(name: ::String, loc: T.nilable(::RBI::Loc), comments: T.nilable(T::Array[::RBI::Comment])).void }
904
906
  def initialize(name, loc: T.unsafe(nil), comments: T.unsafe(nil)); end
905
907
 
908
+ sig { params(other: T.nilable(::Object)).returns(T::Boolean) }
909
+ def ==(other); end
910
+
911
+ sig { returns(T::Boolean) }
912
+ def anonymous?; end
913
+
906
914
  sig { returns(::String) }
907
915
  def name; end
908
916
 
@@ -1104,7 +1112,7 @@ end
1104
1112
  class RBI::Printer < ::RBI::Visitor
1105
1113
  sig do
1106
1114
  params(
1107
- out: T.any(::IO, ::StringIO),
1115
+ out: T.any(::IO, ::String, ::StringIO),
1108
1116
  indent: ::Integer,
1109
1117
  print_locs: T::Boolean,
1110
1118
  max_line_length: T.nilable(::Integer)
@@ -1115,6 +1123,9 @@ class RBI::Printer < ::RBI::Visitor
1115
1123
  sig { returns(::Integer) }
1116
1124
  def current_indent; end
1117
1125
 
1126
+ sig { returns(::String) }
1127
+ def current_indent_string; end
1128
+
1118
1129
  sig { void }
1119
1130
  def dedent; end
1120
1131
 
@@ -1333,13 +1344,16 @@ class RBI::Printer < ::RBI::Visitor
1333
1344
  def visit_visibility_group(node); end
1334
1345
  end
1335
1346
 
1347
+ RBI::Printer::EMPTY_MODIFIERS = T.let(T.unsafe(nil), Array)
1348
+ RBI::Printer::INDENT_CACHE = T.let(T.unsafe(nil), Array)
1349
+ RBI::Printer::MAX_CACHED_INDENT = T.let(T.unsafe(nil), Integer)
1336
1350
  class RBI::PrinterError < ::RBI::Error; end
1337
1351
 
1338
1352
  class RBI::Private < ::RBI::Visibility
1339
1353
  sig do
1340
1354
  params(
1341
1355
  loc: T.nilable(::RBI::Loc),
1342
- comments: T::Array[::RBI::Comment],
1356
+ comments: T.nilable(T::Array[::RBI::Comment]),
1343
1357
  block: T.nilable(T.proc.params(node: ::RBI::Private).void)
1344
1358
  ).void
1345
1359
  end
@@ -1350,7 +1364,7 @@ class RBI::Protected < ::RBI::Visibility
1350
1364
  sig do
1351
1365
  params(
1352
1366
  loc: T.nilable(::RBI::Loc),
1353
- comments: T::Array[::RBI::Comment],
1367
+ comments: T.nilable(T::Array[::RBI::Comment]),
1354
1368
  block: T.nilable(T.proc.params(node: ::RBI::Protected).void)
1355
1369
  ).void
1356
1370
  end
@@ -1361,13 +1375,14 @@ class RBI::Public < ::RBI::Visibility
1361
1375
  sig do
1362
1376
  params(
1363
1377
  loc: T.nilable(::RBI::Loc),
1364
- comments: T::Array[::RBI::Comment],
1378
+ comments: T.nilable(T::Array[::RBI::Comment]),
1365
1379
  block: T.nilable(T.proc.params(node: ::RBI::Public).void)
1366
1380
  ).void
1367
1381
  end
1368
1382
  def initialize(loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end
1369
1383
  end
1370
1384
 
1385
+ RBI::Public::DEFAULT = T.let(T.unsafe(nil), RBI::Public)
1371
1386
  module RBI::RBS; end
1372
1387
 
1373
1388
  class RBI::RBS::MethodTypeTranslator
@@ -1684,20 +1699,17 @@ class RBI::ReqParam < ::RBI::Param
1684
1699
  params(
1685
1700
  name: ::String,
1686
1701
  loc: T.nilable(::RBI::Loc),
1687
- comments: T::Array[::RBI::Comment],
1702
+ comments: T.nilable(T::Array[::RBI::Comment]),
1688
1703
  block: T.nilable(T.proc.params(node: ::RBI::ReqParam).void)
1689
1704
  ).void
1690
1705
  end
1691
1706
  def initialize(name, loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end
1692
-
1693
- sig { params(other: T.nilable(::Object)).returns(T::Boolean) }
1694
- def ==(other); end
1695
1707
  end
1696
1708
 
1697
1709
  class RBI::RequiresAncestor < ::RBI::NodeWithComments
1698
1710
  include ::RBI::Indexable
1699
1711
 
1700
- sig { params(name: ::String, loc: T.nilable(::RBI::Loc), comments: T::Array[::RBI::Comment]).void }
1712
+ sig { params(name: ::String, loc: T.nilable(::RBI::Loc), comments: T.nilable(T::Array[::RBI::Comment])).void }
1701
1713
  def initialize(name, loc: T.unsafe(nil), comments: T.unsafe(nil)); end
1702
1714
 
1703
1715
  sig { override.returns(T::Array[::String]) }
@@ -1715,15 +1727,12 @@ class RBI::RestParam < ::RBI::Param
1715
1727
  params(
1716
1728
  name: ::String,
1717
1729
  loc: T.nilable(::RBI::Loc),
1718
- comments: T::Array[::RBI::Comment],
1730
+ comments: T.nilable(T::Array[::RBI::Comment]),
1719
1731
  block: T.nilable(T.proc.params(node: ::RBI::RestParam).void)
1720
1732
  ).void
1721
1733
  end
1722
1734
  def initialize(name, loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end
1723
1735
 
1724
- sig { params(other: T.nilable(::Object)).returns(T::Boolean) }
1725
- def ==(other); end
1726
-
1727
1736
  sig { override.returns(::String) }
1728
1737
  def to_s; end
1729
1738
  end
@@ -2070,7 +2079,7 @@ class RBI::Send < ::RBI::NodeWithComments
2070
2079
  method: ::String,
2071
2080
  args: T::Array[::RBI::Arg],
2072
2081
  loc: T.nilable(::RBI::Loc),
2073
- comments: T::Array[::RBI::Comment],
2082
+ comments: T.nilable(T::Array[::RBI::Comment]),
2074
2083
  block: T.nilable(T.proc.params(node: ::RBI::Send).void)
2075
2084
  ).void
2076
2085
  end
@@ -2101,7 +2110,7 @@ end
2101
2110
  class RBI::Sig < ::RBI::NodeWithComments
2102
2111
  sig do
2103
2112
  params(
2104
- params: T::Array[::RBI::SigParam],
2113
+ params: T.nilable(T::Array[::RBI::SigParam]),
2105
2114
  return_type: T.any(::RBI::Type, ::String),
2106
2115
  is_abstract: T::Boolean,
2107
2116
  is_override: T::Boolean,
@@ -2110,10 +2119,10 @@ class RBI::Sig < ::RBI::NodeWithComments
2110
2119
  allow_incompatible_override: T::Boolean,
2111
2120
  allow_incompatible_override_visibility: T::Boolean,
2112
2121
  without_runtime: T::Boolean,
2113
- type_params: T::Array[::String],
2122
+ type_params: T.nilable(T::Array[::String]),
2114
2123
  checked: T.nilable(::Symbol),
2115
2124
  loc: T.nilable(::RBI::Loc),
2116
- comments: T::Array[::RBI::Comment],
2125
+ comments: T.nilable(T::Array[::RBI::Comment]),
2117
2126
  block: T.nilable(T.proc.params(node: ::RBI::Sig).void)
2118
2127
  ).void
2119
2128
  end
@@ -2174,6 +2183,9 @@ class RBI::Sig < ::RBI::NodeWithComments
2174
2183
  sig { returns(T::Array[::String]) }
2175
2184
  def type_params; end
2176
2185
 
2186
+ sig { returns(T::Boolean) }
2187
+ def type_params?; end
2188
+
2177
2189
  sig { returns(T::Boolean) }
2178
2190
  def without_runtime; end
2179
2191
 
@@ -2186,7 +2198,7 @@ class RBI::SigParam < ::RBI::NodeWithComments
2186
2198
  name: ::String,
2187
2199
  type: T.any(::RBI::Type, ::String),
2188
2200
  loc: T.nilable(::RBI::Loc),
2189
- comments: T::Array[::RBI::Comment],
2201
+ comments: T.nilable(T::Array[::RBI::Comment]),
2190
2202
  block: T.nilable(T.proc.params(node: ::RBI::SigParam).void)
2191
2203
  ).void
2192
2204
  end
@@ -2195,6 +2207,9 @@ class RBI::SigParam < ::RBI::NodeWithComments
2195
2207
  sig { params(other: ::Object).returns(T::Boolean) }
2196
2208
  def ==(other); end
2197
2209
 
2210
+ sig { returns(T::Boolean) }
2211
+ def anonymous?; end
2212
+
2198
2213
  sig { returns(::String) }
2199
2214
  def name; end
2200
2215
 
@@ -2206,7 +2221,7 @@ class RBI::SingletonClass < ::RBI::Scope
2206
2221
  sig do
2207
2222
  params(
2208
2223
  loc: T.nilable(::RBI::Loc),
2209
- comments: T::Array[::RBI::Comment],
2224
+ comments: T.nilable(T::Array[::RBI::Comment]),
2210
2225
  block: T.nilable(T.proc.params(node: ::RBI::SingletonClass).void)
2211
2226
  ).void
2212
2227
  end
@@ -2223,7 +2238,7 @@ class RBI::Struct < ::RBI::Scope
2223
2238
  members: T::Array[::Symbol],
2224
2239
  keyword_init: T::Boolean,
2225
2240
  loc: T.nilable(::RBI::Loc),
2226
- comments: T::Array[::RBI::Comment],
2241
+ comments: T.nilable(T::Array[::RBI::Comment]),
2227
2242
  block: T.nilable(T.proc.params(struct: ::RBI::Struct).void)
2228
2243
  ).void
2229
2244
  end
@@ -2247,8 +2262,6 @@ class RBI::Struct < ::RBI::Scope
2247
2262
 
2248
2263
  sig { returns(::String) }
2249
2264
  def name; end
2250
-
2251
- def name=(_arg0); end
2252
2265
  end
2253
2266
 
2254
2267
  class RBI::TEnum < ::RBI::Class
@@ -2256,7 +2269,7 @@ class RBI::TEnum < ::RBI::Class
2256
2269
  params(
2257
2270
  name: ::String,
2258
2271
  loc: T.nilable(::RBI::Loc),
2259
- comments: T::Array[::RBI::Comment],
2272
+ comments: T.nilable(T::Array[::RBI::Comment]),
2260
2273
  block: T.nilable(T.proc.params(klass: ::RBI::TEnum).void)
2261
2274
  ).void
2262
2275
  end
@@ -2267,7 +2280,7 @@ class RBI::TEnumBlock < ::RBI::Scope
2267
2280
  sig do
2268
2281
  params(
2269
2282
  loc: T.nilable(::RBI::Loc),
2270
- comments: T::Array[::RBI::Comment],
2283
+ comments: T.nilable(T::Array[::RBI::Comment]),
2271
2284
  block: T.nilable(T.proc.params(node: ::RBI::TEnumBlock).void)
2272
2285
  ).void
2273
2286
  end
@@ -2290,7 +2303,7 @@ class RBI::TEnumValue < ::RBI::NodeWithComments
2290
2303
  params(
2291
2304
  name: ::String,
2292
2305
  loc: T.nilable(::RBI::Loc),
2293
- comments: T::Array[::RBI::Comment],
2306
+ comments: T.nilable(T::Array[::RBI::Comment]),
2294
2307
  block: T.nilable(T.proc.params(node: ::RBI::TEnumValue).void)
2295
2308
  ).void
2296
2309
  end
@@ -2314,7 +2327,7 @@ class RBI::TStruct < ::RBI::Class
2314
2327
  params(
2315
2328
  name: ::String,
2316
2329
  loc: T.nilable(::RBI::Loc),
2317
- comments: T::Array[::RBI::Comment],
2330
+ comments: T.nilable(T::Array[::RBI::Comment]),
2318
2331
  block: T.nilable(T.proc.params(klass: ::RBI::TStruct).void)
2319
2332
  ).void
2320
2333
  end
@@ -2330,7 +2343,7 @@ class RBI::TStructConst < ::RBI::TStructField
2330
2343
  type: T.any(::RBI::Type, ::String),
2331
2344
  default: T.nilable(::String),
2332
2345
  loc: T.nilable(::RBI::Loc),
2333
- comments: T::Array[::RBI::Comment],
2346
+ comments: T.nilable(T::Array[::RBI::Comment]),
2334
2347
  block: T.nilable(T.proc.params(node: ::RBI::TStructConst).void)
2335
2348
  ).void
2336
2349
  end
@@ -2358,7 +2371,7 @@ class RBI::TStructField < ::RBI::NodeWithComments
2358
2371
  type: T.any(::RBI::Type, ::String),
2359
2372
  default: T.nilable(::String),
2360
2373
  loc: T.nilable(::RBI::Loc),
2361
- comments: T::Array[::RBI::Comment]
2374
+ comments: T.nilable(T::Array[::RBI::Comment])
2362
2375
  ).void
2363
2376
  end
2364
2377
  def initialize(name, type, default: T.unsafe(nil), loc: T.unsafe(nil), comments: T.unsafe(nil)); end
@@ -2377,8 +2390,6 @@ class RBI::TStructField < ::RBI::NodeWithComments
2377
2390
  sig { returns(::String) }
2378
2391
  def name; end
2379
2392
 
2380
- def name=(_arg0); end
2381
-
2382
2393
  sig { returns(T.any(::RBI::Type, ::String)) }
2383
2394
  def type; end
2384
2395
 
@@ -2394,7 +2405,7 @@ class RBI::TStructProp < ::RBI::TStructField
2394
2405
  type: T.any(::RBI::Type, ::String),
2395
2406
  default: T.nilable(::String),
2396
2407
  loc: T.nilable(::RBI::Loc),
2397
- comments: T::Array[::RBI::Comment],
2408
+ comments: T.nilable(T::Array[::RBI::Comment]),
2398
2409
  block: T.nilable(T.proc.params(node: ::RBI::TStructProp).void)
2399
2410
  ).void
2400
2411
  end
@@ -2417,7 +2428,7 @@ class RBI::Tree < ::RBI::NodeWithComments
2417
2428
  sig do
2418
2429
  params(
2419
2430
  loc: T.nilable(::RBI::Loc),
2420
- comments: T::Array[::RBI::Comment],
2431
+ comments: T.nilable(T::Array[::RBI::Comment]),
2421
2432
  block: T.nilable(T.proc.params(node: ::RBI::Tree).void)
2422
2433
  ).void
2423
2434
  end
@@ -3105,7 +3116,7 @@ class RBI::TypeMember < ::RBI::NodeWithComments
3105
3116
  name: ::String,
3106
3117
  value: ::String,
3107
3118
  loc: T.nilable(::RBI::Loc),
3108
- comments: T::Array[::RBI::Comment],
3119
+ comments: T.nilable(T::Array[::RBI::Comment]),
3109
3120
  block: T.nilable(T.proc.params(node: ::RBI::TypeMember).void)
3110
3121
  ).void
3111
3122
  end
@@ -3223,7 +3234,7 @@ RBI::VERSION = T.let(T.unsafe(nil), String)
3223
3234
  class RBI::Visibility < ::RBI::NodeWithComments
3224
3235
  abstract!
3225
3236
 
3226
- sig { params(visibility: ::Symbol, loc: T.nilable(::RBI::Loc), comments: T::Array[::RBI::Comment]).void }
3237
+ sig { params(visibility: ::Symbol, loc: T.nilable(::RBI::Loc), comments: T.nilable(T::Array[::RBI::Comment])).void }
3227
3238
  def initialize(visibility, loc: T.unsafe(nil), comments: T.unsafe(nil)); end
3228
3239
 
3229
3240
  sig { params(other: T.nilable(::Object)).returns(T::Boolean) }
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rbi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.9
4
+ version: 0.3.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexandre Terrasa
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2026-01-06 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: prism
@@ -30,15 +29,14 @@ dependencies:
30
29
  requirements:
31
30
  - - ">="
32
31
  - !ruby/object:Gem::Version
33
- version: 3.4.4
32
+ version: 4.0.1
34
33
  type: :runtime
35
34
  prerelease: false
36
35
  version_requirements: !ruby/object:Gem::Requirement
37
36
  requirements:
38
37
  - - ">="
39
38
  - !ruby/object:Gem::Version
40
- version: 3.4.4
41
- description:
39
+ version: 4.0.1
42
40
  email:
43
41
  - ruby@shopify.com
44
42
  executables: []
@@ -84,7 +82,6 @@ licenses:
84
82
  - MIT
85
83
  metadata:
86
84
  allowed_push_host: https://rubygems.org
87
- post_install_message:
88
85
  rdoc_options: []
89
86
  require_paths:
90
87
  - lib
@@ -92,15 +89,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
92
89
  requirements:
93
90
  - - ">="
94
91
  - !ruby/object:Gem::Version
95
- version: '3.1'
92
+ version: '3.3'
96
93
  required_rubygems_version: !ruby/object:Gem::Requirement
97
94
  requirements:
98
95
  - - ">="
99
96
  - !ruby/object:Gem::Version
100
97
  version: '0'
101
98
  requirements: []
102
- rubygems_version: 3.5.3
103
- signing_key:
99
+ rubygems_version: 4.0.3
104
100
  specification_version: 4
105
101
  summary: RBI generation framework
106
102
  test_files: []