mangrove 0.9.1 → 0.10.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +1 -1
- data/README.md +1 -2
- data/docs/Mangrove/ControlFlow/ControlSignal.html +2 -2
- data/docs/Mangrove/ControlFlow.html +2 -2
- data/docs/Mangrove/Option/ControlSignal.html +2 -2
- data/docs/Mangrove/Option/None.html +2 -2
- data/docs/Mangrove/Option/Some.html +2 -2
- data/docs/Mangrove/Option.html +2 -2
- data/docs/Mangrove/Result/ControlSignal.html +2 -2
- data/docs/Mangrove/Result/Err.html +2 -2
- data/docs/Mangrove/Result/Ok.html +2 -2
- data/docs/Mangrove/Result.html +2 -2
- data/docs/Mangrove.html +3 -3
- data/docs/_index.html +8 -8
- data/docs/file.README.html +3 -5
- data/docs/index.html +3 -5
- data/docs/method_list.html +106 -106
- data/docs/top-level-namespace.html +2 -2
- data/lib/mangrove/version.rb +1 -1
- data/sorbet/rbi/gems/.gitattributes +1 -0
- data/sorbet/rbi/gems/erubi@1.12.0.rbi +2 -1
- data/sorbet/rbi/gems/prism@0.15.1.rbi +8 -0
- data/sorbet/rbi/gems/{rbi@0.0.17.rbi → rbi@0.1.1.rbi} +202 -248
- data/sorbet/rbi/gems/rubocop-capybara@2.19.0.rbi +1125 -0
- data/sorbet/rbi/gems/rubocop-factory_bot@2.24.0.rbi +878 -0
- data/sorbet/rbi/gems/rubocop-rake@0.6.0.rbi +328 -0
- data/sorbet/rbi/gems/rubocop-rspec@2.24.1.rbi +7991 -0
- data/sorbet/rbi/gems/{spoom@1.2.3.rbi → spoom@1.2.4.rbi} +634 -60
- data/sorbet/rbi/gems/{syntax_tree@6.1.1.rbi → syntax_tree@6.2.0.rbi} +2495 -2214
- data/sorbet/rbi/gems/{tapioca@0.11.8.rbi → tapioca@0.11.9.rbi} +503 -356
- data/sorbet/rbi/gems/{thor@1.2.2.rbi → thor@1.3.0.rbi} +775 -395
- data/sorbet/rbi/gems/unparser@0.6.9.rbi +8 -0
- data/sorbet/rbi/gems/yarp@0.13.0.rbi +21646 -0
- metadata +21 -14
- data/sorbet/rbi/gems/unparser@0.6.8.rbi +0 -4525
- /data/sorbet/rbi/gems/{parser@3.2.2.3.rbi → parser@3.2.2.4.rbi} +0 -0
- /data/sorbet/rbi/gems/{regexp_parser@2.8.1.rbi → regexp_parser@2.8.2.rbi} +0 -0
- /data/sorbet/rbi/gems/{rubocop@1.56.0.rbi → rubocop@1.57.1.rbi} +0 -0
- /data/sorbet/rbi/gems/{ruby-lsp@0.8.0.rbi → ruby-lsp@0.12.0.rbi} +0 -0
- /data/sorbet/rbi/gems/{unicode-display_width@2.4.2.rbi → unicode-display_width@2.5.0.rbi} +0 -0
@@ -7,33 +7,6 @@
|
|
7
7
|
# source://rbi//lib/rbi/loc.rb#4
|
8
8
|
module RBI; end
|
9
9
|
|
10
|
-
# @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below.
|
11
|
-
#
|
12
|
-
# source://rbi//lib/rbi/parser.rb#133
|
13
|
-
class RBI::ASTVisitor
|
14
|
-
abstract!
|
15
|
-
|
16
|
-
# @abstract
|
17
|
-
#
|
18
|
-
# source://rbi//lib/rbi/parser.rb#145
|
19
|
-
sig { abstract.params(node: T.nilable(::AST::Node)).void }
|
20
|
-
def visit(node); end
|
21
|
-
|
22
|
-
# source://rbi//lib/rbi/parser.rb#140
|
23
|
-
sig { params(nodes: T::Array[::AST::Node]).void }
|
24
|
-
def visit_all(nodes); end
|
25
|
-
|
26
|
-
private
|
27
|
-
|
28
|
-
# source://rbi//lib/rbi/parser.rb#155
|
29
|
-
sig { params(node: ::AST::Node).returns(::String) }
|
30
|
-
def parse_expr(node); end
|
31
|
-
|
32
|
-
# source://rbi//lib/rbi/parser.rb#150
|
33
|
-
sig { params(node: ::AST::Node).returns(::String) }
|
34
|
-
def parse_name(node); end
|
35
|
-
end
|
36
|
-
|
37
10
|
# source://rbi//lib/rbi/model.rb#968
|
38
11
|
class RBI::Arg < ::RBI::Node
|
39
12
|
# source://rbi//lib/rbi/model.rb#980
|
@@ -106,11 +79,6 @@ class RBI::Attr < ::RBI::NodeWithComments
|
|
106
79
|
sig { returns(T::Array[::Symbol]) }
|
107
80
|
def names; end
|
108
81
|
|
109
|
-
# @return [Array<Symbol>]
|
110
|
-
#
|
111
|
-
# source://rbi//lib/rbi/model.rb#356
|
112
|
-
def names=(_arg0); end
|
113
|
-
|
114
82
|
# source://rbi//lib/rbi/printer.rb#375
|
115
83
|
sig { override.returns(T::Boolean) }
|
116
84
|
def oneline?; end
|
@@ -411,32 +379,6 @@ class RBI::Const < ::RBI::NodeWithComments
|
|
411
379
|
def value; end
|
412
380
|
end
|
413
381
|
|
414
|
-
# source://rbi//lib/rbi/parser.rb#627
|
415
|
-
class RBI::ConstBuilder < ::RBI::ASTVisitor
|
416
|
-
# source://rbi//lib/rbi/parser.rb#634
|
417
|
-
sig { void }
|
418
|
-
def initialize; end
|
419
|
-
|
420
|
-
# source://rbi//lib/rbi/parser.rb#631
|
421
|
-
sig { returns(T::Array[::String]) }
|
422
|
-
def names; end
|
423
|
-
|
424
|
-
# @return [Array<String>]
|
425
|
-
#
|
426
|
-
# source://rbi//lib/rbi/parser.rb#631
|
427
|
-
def names=(_arg0); end
|
428
|
-
|
429
|
-
# source://rbi//lib/rbi/parser.rb#653
|
430
|
-
sig { override.params(node: T.nilable(::AST::Node)).void }
|
431
|
-
def visit(node); end
|
432
|
-
|
433
|
-
class << self
|
434
|
-
# source://rbi//lib/rbi/parser.rb#643
|
435
|
-
sig { params(node: T.nilable(::AST::Node)).returns(T.nilable(::String)) }
|
436
|
-
def visit(node); end
|
437
|
-
end
|
438
|
-
end
|
439
|
-
|
440
382
|
# source://rbi//lib/rbi/model.rb#816
|
441
383
|
class RBI::Extend < ::RBI::Mixin
|
442
384
|
include ::RBI::Indexable
|
@@ -866,7 +808,7 @@ end
|
|
866
808
|
|
867
809
|
# source://rbi//lib/rbi/loc.rb#5
|
868
810
|
class RBI::Loc
|
869
|
-
# source://rbi//lib/rbi/loc.rb#
|
811
|
+
# source://rbi//lib/rbi/loc.rb#38
|
870
812
|
sig do
|
871
813
|
params(
|
872
814
|
file: T.nilable(::String),
|
@@ -880,39 +822,39 @@ class RBI::Loc
|
|
880
822
|
|
881
823
|
# @return [Integer, nil]
|
882
824
|
#
|
883
|
-
# source://rbi//lib/rbi/loc.rb#
|
825
|
+
# source://rbi//lib/rbi/loc.rb#27
|
884
826
|
def begin_column; end
|
885
827
|
|
886
|
-
# source://rbi//lib/rbi/loc.rb#
|
828
|
+
# source://rbi//lib/rbi/loc.rb#27
|
887
829
|
sig { returns(T.nilable(::Integer)) }
|
888
830
|
def begin_line; end
|
889
831
|
|
890
832
|
# @return [Integer, nil]
|
891
833
|
#
|
892
|
-
# source://rbi//lib/rbi/loc.rb#
|
834
|
+
# source://rbi//lib/rbi/loc.rb#27
|
893
835
|
def end_column; end
|
894
836
|
|
895
837
|
# @return [Integer, nil]
|
896
838
|
#
|
897
|
-
# source://rbi//lib/rbi/loc.rb#
|
839
|
+
# source://rbi//lib/rbi/loc.rb#27
|
898
840
|
def end_line; end
|
899
841
|
|
900
|
-
# source://rbi//lib/rbi/loc.rb#
|
842
|
+
# source://rbi//lib/rbi/loc.rb#24
|
901
843
|
sig { returns(T.nilable(::String)) }
|
902
844
|
def file; end
|
903
845
|
|
904
|
-
# source://rbi//lib/rbi/loc.rb#
|
846
|
+
# source://rbi//lib/rbi/loc.rb#56
|
905
847
|
sig { returns(T.nilable(::String)) }
|
906
848
|
def source; end
|
907
849
|
|
908
|
-
# source://rbi//lib/rbi/loc.rb#
|
850
|
+
# source://rbi//lib/rbi/loc.rb#47
|
909
851
|
sig { returns(::String) }
|
910
852
|
def to_s; end
|
911
853
|
|
912
854
|
class << self
|
913
|
-
# source://rbi//lib/rbi/
|
914
|
-
sig { params(file: ::String,
|
915
|
-
def
|
855
|
+
# source://rbi//lib/rbi/loc.rb#12
|
856
|
+
sig { params(file: ::String, yarp_location: ::Prism::Location).returns(::RBI::Loc) }
|
857
|
+
def from_yarp(file, yarp_location); end
|
916
858
|
end
|
917
859
|
end
|
918
860
|
|
@@ -1093,11 +1035,6 @@ class RBI::Mixin < ::RBI::NodeWithComments
|
|
1093
1035
|
# source://rbi//lib/rbi/model.rb#777
|
1094
1036
|
sig { returns(T::Array[::String]) }
|
1095
1037
|
def names; end
|
1096
|
-
|
1097
|
-
# @return [Array<String>]
|
1098
|
-
#
|
1099
|
-
# source://rbi//lib/rbi/model.rb#777
|
1100
|
-
def names=(_arg0); end
|
1101
1038
|
end
|
1102
1039
|
|
1103
1040
|
# source://rbi//lib/rbi/model.rb#190
|
@@ -1332,43 +1269,208 @@ end
|
|
1332
1269
|
|
1333
1270
|
# source://rbi//lib/rbi/parser.rb#53
|
1334
1271
|
class RBI::Parser
|
1335
|
-
# source://rbi//lib/rbi/parser.rb#
|
1336
|
-
sig { void }
|
1337
|
-
def initialize; end
|
1338
|
-
|
1339
|
-
# source://rbi//lib/rbi/parser.rb#101
|
1272
|
+
# source://rbi//lib/rbi/parser.rb#88
|
1340
1273
|
sig { params(path: ::String).returns(::RBI::Tree) }
|
1341
1274
|
def parse_file(path); end
|
1342
1275
|
|
1343
|
-
# source://rbi//lib/rbi/parser.rb#
|
1276
|
+
# source://rbi//lib/rbi/parser.rb#83
|
1344
1277
|
sig { params(string: ::String).returns(::RBI::Tree) }
|
1345
1278
|
def parse_string(string); end
|
1346
1279
|
|
1347
1280
|
private
|
1348
1281
|
|
1349
|
-
# source://rbi//lib/rbi/parser.rb#
|
1350
|
-
sig { params(
|
1351
|
-
def parse(
|
1282
|
+
# source://rbi//lib/rbi/parser.rb#95
|
1283
|
+
sig { params(source: ::String, file: ::String).returns(::RBI::Tree) }
|
1284
|
+
def parse(source, file:); end
|
1352
1285
|
|
1353
1286
|
class << self
|
1354
|
-
# source://rbi//lib/rbi/parser.rb#
|
1287
|
+
# source://rbi//lib/rbi/parser.rb#65
|
1355
1288
|
sig { params(path: ::String).returns(::RBI::Tree) }
|
1356
1289
|
def parse_file(path); end
|
1357
1290
|
|
1358
|
-
# source://rbi//lib/rbi/parser.rb#
|
1291
|
+
# source://rbi//lib/rbi/parser.rb#70
|
1359
1292
|
sig { params(paths: T::Array[::String]).returns(T::Array[::RBI::Tree]) }
|
1360
1293
|
def parse_files(paths); end
|
1361
1294
|
|
1362
|
-
# source://rbi//lib/rbi/parser.rb#
|
1295
|
+
# source://rbi//lib/rbi/parser.rb#60
|
1363
1296
|
sig { params(string: ::String).returns(::RBI::Tree) }
|
1364
1297
|
def parse_string(string); end
|
1365
1298
|
|
1366
|
-
# source://rbi//lib/rbi/parser.rb#
|
1299
|
+
# source://rbi//lib/rbi/parser.rb#76
|
1367
1300
|
sig { params(strings: T::Array[::String]).returns(T::Array[::RBI::Tree]) }
|
1368
1301
|
def parse_strings(strings); end
|
1369
1302
|
end
|
1370
1303
|
end
|
1371
1304
|
|
1305
|
+
# source://rbi//lib/rbi/parser.rb#746
|
1306
|
+
class RBI::Parser::SigBuilder < ::RBI::Parser::Visitor
|
1307
|
+
# source://rbi//lib/rbi/parser.rb#753
|
1308
|
+
sig { params(content: ::String, file: ::String).void }
|
1309
|
+
def initialize(content, file:); end
|
1310
|
+
|
1311
|
+
# source://rbi//lib/rbi/parser.rb#750
|
1312
|
+
sig { returns(::RBI::Sig) }
|
1313
|
+
def current; end
|
1314
|
+
|
1315
|
+
# source://rbi//lib/rbi/parser.rb#805
|
1316
|
+
sig { override.params(node: ::Prism::AssocNode).void }
|
1317
|
+
def visit_assoc_node(node); end
|
1318
|
+
|
1319
|
+
# source://rbi//lib/rbi/parser.rb#760
|
1320
|
+
sig { override.params(node: ::Prism::CallNode).void }
|
1321
|
+
def visit_call_node(node); end
|
1322
|
+
end
|
1323
|
+
|
1324
|
+
# source://rbi//lib/rbi/parser.rb#155
|
1325
|
+
class RBI::Parser::TreeBuilder < ::RBI::Parser::Visitor
|
1326
|
+
# source://rbi//lib/rbi/parser.rb#165
|
1327
|
+
sig { params(source: ::String, comments: T::Array[::Prism::Comment], file: ::String).void }
|
1328
|
+
def initialize(source, comments:, file:); end
|
1329
|
+
|
1330
|
+
# source://rbi//lib/rbi/parser.rb#162
|
1331
|
+
sig { returns(T.nilable(::Prism::Node)) }
|
1332
|
+
def last_node; end
|
1333
|
+
|
1334
|
+
# source://rbi//lib/rbi/parser.rb#159
|
1335
|
+
sig { returns(::RBI::Tree) }
|
1336
|
+
def tree; end
|
1337
|
+
|
1338
|
+
# source://rbi//lib/rbi/parser.rb#178
|
1339
|
+
sig { override.params(node: T.nilable(::Prism::Node)).void }
|
1340
|
+
def visit(node); end
|
1341
|
+
|
1342
|
+
# source://rbi//lib/rbi/parser.rb#295
|
1343
|
+
sig { params(node: ::Prism::CallNode).void }
|
1344
|
+
def visit_call_node(node); end
|
1345
|
+
|
1346
|
+
# source://rbi//lib/rbi/parser.rb#186
|
1347
|
+
sig { override.params(node: ::Prism::ClassNode).void }
|
1348
|
+
def visit_class_node(node); end
|
1349
|
+
|
1350
|
+
# source://rbi//lib/rbi/parser.rb#212
|
1351
|
+
sig { params(node: T.any(::Prism::ConstantPathWriteNode, ::Prism::ConstantWriteNode)).void }
|
1352
|
+
def visit_constant_assign(node); end
|
1353
|
+
|
1354
|
+
# source://rbi//lib/rbi/parser.rb#207
|
1355
|
+
sig { override.params(node: ::Prism::ConstantPathWriteNode).void }
|
1356
|
+
def visit_constant_path_write_node(node); end
|
1357
|
+
|
1358
|
+
# source://rbi//lib/rbi/parser.rb#202
|
1359
|
+
sig { override.params(node: ::Prism::ConstantWriteNode).void }
|
1360
|
+
def visit_constant_write_node(node); end
|
1361
|
+
|
1362
|
+
# source://rbi//lib/rbi/parser.rb#245
|
1363
|
+
sig { override.params(node: ::Prism::DefNode).void }
|
1364
|
+
def visit_def_node(node); end
|
1365
|
+
|
1366
|
+
# source://rbi//lib/rbi/parser.rb#257
|
1367
|
+
sig { override.params(node: ::Prism::ModuleNode).void }
|
1368
|
+
def visit_module_node(node); end
|
1369
|
+
|
1370
|
+
# source://rbi//lib/rbi/parser.rb#272
|
1371
|
+
sig { override.params(node: ::Prism::ProgramNode).void }
|
1372
|
+
def visit_program_node(node); end
|
1373
|
+
|
1374
|
+
# source://rbi//lib/rbi/parser.rb#281
|
1375
|
+
sig { override.params(node: ::Prism::SingletonClassNode).void }
|
1376
|
+
def visit_singleton_class_node(node); end
|
1377
|
+
|
1378
|
+
private
|
1379
|
+
|
1380
|
+
# Collect all the remaining comments within a node
|
1381
|
+
#
|
1382
|
+
# source://rbi//lib/rbi/parser.rb#420
|
1383
|
+
sig { params(node: ::Prism::Node).void }
|
1384
|
+
def collect_dangling_comments(node); end
|
1385
|
+
|
1386
|
+
# Collect all the remaining comments after visiting the tree
|
1387
|
+
#
|
1388
|
+
# source://rbi//lib/rbi/parser.rb#438
|
1389
|
+
sig { void }
|
1390
|
+
def collect_orphan_comments; end
|
1391
|
+
|
1392
|
+
# source://rbi//lib/rbi/parser.rb#461
|
1393
|
+
sig { returns(::RBI::Tree) }
|
1394
|
+
def current_scope; end
|
1395
|
+
|
1396
|
+
# source://rbi//lib/rbi/parser.rb#466
|
1397
|
+
sig { returns(T::Array[::RBI::Sig]) }
|
1398
|
+
def current_sigs; end
|
1399
|
+
|
1400
|
+
# source://rbi//lib/rbi/parser.rb#473
|
1401
|
+
sig { returns(T::Array[::RBI::Comment]) }
|
1402
|
+
def current_sigs_comments; end
|
1403
|
+
|
1404
|
+
# source://rbi//lib/rbi/parser.rb#480
|
1405
|
+
sig { params(node: ::Prism::Node).returns(T::Array[::RBI::Comment]) }
|
1406
|
+
def node_comments(node); end
|
1407
|
+
|
1408
|
+
# source://rbi//lib/rbi/parser.rb#498
|
1409
|
+
sig { params(node: ::Prism::Comment).returns(::RBI::Comment) }
|
1410
|
+
def parse_comment(node); end
|
1411
|
+
|
1412
|
+
# source://rbi//lib/rbi/parser.rb#527
|
1413
|
+
sig { params(node: T.nilable(::Prism::Node)).returns(T::Array[::RBI::Param]) }
|
1414
|
+
def parse_params(node); end
|
1415
|
+
|
1416
|
+
# source://rbi//lib/rbi/parser.rb#503
|
1417
|
+
sig { params(node: T.nilable(::Prism::Node)).returns(T::Array[::RBI::Arg]) }
|
1418
|
+
def parse_send_args(node); end
|
1419
|
+
|
1420
|
+
# source://rbi//lib/rbi/parser.rb#603
|
1421
|
+
sig { params(node: ::Prism::CallNode).returns(::RBI::Sig) }
|
1422
|
+
def parse_sig(node); end
|
1423
|
+
|
1424
|
+
# source://rbi//lib/rbi/parser.rb#613
|
1425
|
+
sig do
|
1426
|
+
params(
|
1427
|
+
node: T.any(::Prism::ConstantPathWriteNode, ::Prism::ConstantWriteNode)
|
1428
|
+
).returns(T.nilable(::RBI::Struct))
|
1429
|
+
end
|
1430
|
+
def parse_struct(node); end
|
1431
|
+
|
1432
|
+
# source://rbi//lib/rbi/parser.rb#663
|
1433
|
+
sig { params(send: ::Prism::CallNode).void }
|
1434
|
+
def parse_tstruct_field(send); end
|
1435
|
+
|
1436
|
+
# source://rbi//lib/rbi/parser.rb#700
|
1437
|
+
sig { params(name: ::String, node: ::Prism::Node).returns(::RBI::Visibility) }
|
1438
|
+
def parse_visibility(name, node); end
|
1439
|
+
|
1440
|
+
# source://rbi//lib/rbi/parser.rb#714
|
1441
|
+
sig { void }
|
1442
|
+
def separate_header_comments; end
|
1443
|
+
|
1444
|
+
# source://rbi//lib/rbi/parser.rb#724
|
1445
|
+
sig { void }
|
1446
|
+
def set_root_tree_loc; end
|
1447
|
+
|
1448
|
+
# source://rbi//lib/rbi/parser.rb#738
|
1449
|
+
sig { params(node: T.nilable(::Prism::Node)).returns(T::Boolean) }
|
1450
|
+
def type_variable_definition?(node); end
|
1451
|
+
end
|
1452
|
+
|
1453
|
+
# source://rbi//lib/rbi/parser.rb#124
|
1454
|
+
class RBI::Parser::Visitor < ::Prism::Visitor
|
1455
|
+
# source://rbi//lib/rbi/parser.rb#128
|
1456
|
+
sig { params(source: ::String, file: ::String).void }
|
1457
|
+
def initialize(source, file:); end
|
1458
|
+
|
1459
|
+
private
|
1460
|
+
|
1461
|
+
# source://rbi//lib/rbi/parser.rb#138
|
1462
|
+
sig { params(node: ::Prism::Node).returns(::RBI::Loc) }
|
1463
|
+
def node_loc(node); end
|
1464
|
+
|
1465
|
+
# source://rbi//lib/rbi/parser.rb#143
|
1466
|
+
sig { params(node: T.nilable(::Prism::Node)).returns(T.nilable(::String)) }
|
1467
|
+
def node_string(node); end
|
1468
|
+
|
1469
|
+
# source://rbi//lib/rbi/parser.rb#150
|
1470
|
+
sig { params(node: ::Prism::Node).returns(::String) }
|
1471
|
+
def node_string!(node); end
|
1472
|
+
end
|
1473
|
+
|
1372
1474
|
# source://rbi//lib/rbi/printer.rb#5
|
1373
1475
|
class RBI::Printer < ::RBI::Visitor
|
1374
1476
|
# source://rbi//lib/rbi/printer.rb#28
|
@@ -1722,7 +1824,7 @@ class RBI::Rewriters::Merge::Conflict < ::T::Struct
|
|
1722
1824
|
def to_s; end
|
1723
1825
|
|
1724
1826
|
class << self
|
1725
|
-
# source://sorbet-runtime/0.5.
|
1827
|
+
# source://sorbet-runtime/0.5.11089/lib/types/struct.rb#13
|
1726
1828
|
def inherited(s); end
|
1727
1829
|
end
|
1728
1830
|
end
|
@@ -1939,7 +2041,7 @@ class RBI::Rewriters::RemoveKnownDefinitions::Operation < ::T::Struct
|
|
1939
2041
|
def to_s; end
|
1940
2042
|
|
1941
2043
|
class << self
|
1942
|
-
# source://sorbet-runtime/0.5.
|
2044
|
+
# source://sorbet-runtime/0.5.11089/lib/types/struct.rb#13
|
1943
2045
|
def inherited(s); end
|
1944
2046
|
end
|
1945
2047
|
end
|
@@ -2223,31 +2325,6 @@ class RBI::Sig < ::RBI::Node
|
|
2223
2325
|
def sig_modifiers; end
|
2224
2326
|
end
|
2225
2327
|
|
2226
|
-
# source://rbi//lib/rbi/parser.rb#668
|
2227
|
-
class RBI::SigBuilder < ::RBI::ASTVisitor
|
2228
|
-
# source://rbi//lib/rbi/parser.rb#675
|
2229
|
-
sig { void }
|
2230
|
-
def initialize; end
|
2231
|
-
|
2232
|
-
# source://rbi//lib/rbi/parser.rb#672
|
2233
|
-
sig { returns(::RBI::Sig) }
|
2234
|
-
def current; end
|
2235
|
-
|
2236
|
-
# source://rbi//lib/rbi/parser.rb#692
|
2237
|
-
sig { override.params(node: T.nilable(::AST::Node)).void }
|
2238
|
-
def visit(node); end
|
2239
|
-
|
2240
|
-
# source://rbi//lib/rbi/parser.rb#702
|
2241
|
-
sig { params(node: ::AST::Node).void }
|
2242
|
-
def visit_send(node); end
|
2243
|
-
|
2244
|
-
class << self
|
2245
|
-
# source://rbi//lib/rbi/parser.rb#684
|
2246
|
-
sig { params(node: ::AST::Node).returns(::RBI::Sig) }
|
2247
|
-
def build(node); end
|
2248
|
-
end
|
2249
|
-
end
|
2250
|
-
|
2251
2328
|
# source://rbi//lib/rbi/model.rb#1098
|
2252
2329
|
class RBI::SigParam < ::RBI::NodeWithComments
|
2253
2330
|
# source://rbi//lib/rbi/model.rb#1113
|
@@ -2597,7 +2674,7 @@ class RBI::Tree < ::RBI::NodeWithComments
|
|
2597
2674
|
sig { params(annotation: ::String, annotate_scopes: T::Boolean, annotate_properties: T::Boolean).void }
|
2598
2675
|
def annotate!(annotation, annotate_scopes: T.unsafe(nil), annotate_properties: T.unsafe(nil)); end
|
2599
2676
|
|
2600
|
-
# source://tapioca/0.11.
|
2677
|
+
# source://tapioca/0.11.9/lib/tapioca/rbi_ext/model.rb#38
|
2601
2678
|
sig do
|
2602
2679
|
params(
|
2603
2680
|
name: ::String,
|
@@ -2607,19 +2684,19 @@ class RBI::Tree < ::RBI::NodeWithComments
|
|
2607
2684
|
end
|
2608
2685
|
def create_class(name, superclass_name: T.unsafe(nil), &block); end
|
2609
2686
|
|
2610
|
-
# source://tapioca/0.11.
|
2687
|
+
# source://tapioca/0.11.9/lib/tapioca/rbi_ext/model.rb#45
|
2611
2688
|
sig { params(name: ::String, value: ::String).void }
|
2612
2689
|
def create_constant(name, value:); end
|
2613
2690
|
|
2614
|
-
# source://tapioca/0.11.
|
2691
|
+
# source://tapioca/0.11.9/lib/tapioca/rbi_ext/model.rb#55
|
2615
2692
|
sig { params(name: ::String).void }
|
2616
2693
|
def create_extend(name); end
|
2617
2694
|
|
2618
|
-
# source://tapioca/0.11.
|
2695
|
+
# source://tapioca/0.11.9/lib/tapioca/rbi_ext/model.rb#50
|
2619
2696
|
sig { params(name: ::String).void }
|
2620
2697
|
def create_include(name); end
|
2621
2698
|
|
2622
|
-
# source://tapioca/0.11.
|
2699
|
+
# source://tapioca/0.11.9/lib/tapioca/rbi_ext/model.rb#89
|
2623
2700
|
sig do
|
2624
2701
|
params(
|
2625
2702
|
name: ::String,
|
@@ -2632,19 +2709,19 @@ class RBI::Tree < ::RBI::NodeWithComments
|
|
2632
2709
|
end
|
2633
2710
|
def create_method(name, parameters: T.unsafe(nil), return_type: T.unsafe(nil), class_method: T.unsafe(nil), visibility: T.unsafe(nil), comments: T.unsafe(nil)); end
|
2634
2711
|
|
2635
|
-
# source://tapioca/0.11.
|
2712
|
+
# source://tapioca/0.11.9/lib/tapioca/rbi_ext/model.rb#60
|
2636
2713
|
sig { params(name: ::String).void }
|
2637
2714
|
def create_mixes_in_class_methods(name); end
|
2638
2715
|
|
2639
|
-
# source://tapioca/0.11.
|
2716
|
+
# source://tapioca/0.11.9/lib/tapioca/rbi_ext/model.rb#25
|
2640
2717
|
sig { params(name: ::String, block: T.nilable(T.proc.params(scope: ::RBI::Scope).void)).returns(::RBI::Scope) }
|
2641
2718
|
def create_module(name, &block); end
|
2642
2719
|
|
2643
|
-
# source://tapioca/0.11.
|
2720
|
+
# source://tapioca/0.11.9/lib/tapioca/rbi_ext/model.rb#9
|
2644
2721
|
sig { params(constant: ::Module, block: T.nilable(T.proc.params(scope: ::RBI::Scope).void)).returns(::RBI::Scope) }
|
2645
2722
|
def create_path(constant, &block); end
|
2646
2723
|
|
2647
|
-
# source://tapioca/0.11.
|
2724
|
+
# source://tapioca/0.11.9/lib/tapioca/rbi_ext/model.rb#74
|
2648
2725
|
sig do
|
2649
2726
|
params(
|
2650
2727
|
name: ::String,
|
@@ -2706,138 +2783,15 @@ class RBI::Tree < ::RBI::NodeWithComments
|
|
2706
2783
|
|
2707
2784
|
private
|
2708
2785
|
|
2709
|
-
# source://tapioca/0.11.
|
2786
|
+
# source://tapioca/0.11.9/lib/tapioca/rbi_ext/model.rb#116
|
2710
2787
|
sig { params(node: ::RBI::Node).returns(::RBI::Node) }
|
2711
2788
|
def create_node(node); end
|
2712
2789
|
|
2713
|
-
# source://tapioca/0.11.
|
2790
|
+
# source://tapioca/0.11.9/lib/tapioca/rbi_ext/model.rb#111
|
2714
2791
|
sig { returns(T::Hash[::String, ::RBI::Node]) }
|
2715
2792
|
def nodes_cache; end
|
2716
2793
|
end
|
2717
2794
|
|
2718
|
-
# source://rbi//lib/rbi/parser.rb#160
|
2719
|
-
class RBI::TreeBuilder < ::RBI::ASTVisitor
|
2720
|
-
# source://rbi//lib/rbi/parser.rb#176
|
2721
|
-
sig do
|
2722
|
-
params(
|
2723
|
-
file: ::String,
|
2724
|
-
comments: T::Array[::Parser::Source::Comment],
|
2725
|
-
nodes_comments_assoc: T::Hash[::Parser::Source::Map, T::Array[::Parser::Source::Comment]]
|
2726
|
-
).void
|
2727
|
-
end
|
2728
|
-
def initialize(file:, comments: T.unsafe(nil), nodes_comments_assoc: T.unsafe(nil)); end
|
2729
|
-
|
2730
|
-
# source://rbi//lib/rbi/parser.rb#167
|
2731
|
-
sig { returns(T.nilable(::AST::Node)) }
|
2732
|
-
def last_node; end
|
2733
|
-
|
2734
|
-
# source://rbi//lib/rbi/parser.rb#191
|
2735
|
-
sig { void }
|
2736
|
-
def post_process; end
|
2737
|
-
|
2738
|
-
# source://rbi//lib/rbi/parser.rb#164
|
2739
|
-
sig { returns(::RBI::Tree) }
|
2740
|
-
def tree; end
|
2741
|
-
|
2742
|
-
# source://rbi//lib/rbi/parser.rb#197
|
2743
|
-
sig { override.params(node: T.nilable(::Object)).void }
|
2744
|
-
def visit(node); end
|
2745
|
-
|
2746
|
-
private
|
2747
|
-
|
2748
|
-
# source://rbi//lib/rbi/parser.rb#573
|
2749
|
-
sig { void }
|
2750
|
-
def assoc_dangling_comments; end
|
2751
|
-
|
2752
|
-
# source://rbi//lib/rbi/parser.rb#554
|
2753
|
-
sig { returns(::RBI::Tree) }
|
2754
|
-
def current_scope; end
|
2755
|
-
|
2756
|
-
# source://rbi//lib/rbi/parser.rb#559
|
2757
|
-
sig { returns(T::Array[::RBI::Sig]) }
|
2758
|
-
def current_sigs; end
|
2759
|
-
|
2760
|
-
# source://rbi//lib/rbi/parser.rb#566
|
2761
|
-
sig { returns(T::Array[::RBI::Comment]) }
|
2762
|
-
def current_sigs_comments; end
|
2763
|
-
|
2764
|
-
# source://rbi//lib/rbi/parser.rb#542
|
2765
|
-
sig { params(node: ::AST::Node).returns(T::Array[::RBI::Comment]) }
|
2766
|
-
def node_comments(node); end
|
2767
|
-
|
2768
|
-
# source://rbi//lib/rbi/parser.rb#537
|
2769
|
-
sig { params(node: ::AST::Node).returns(::RBI::Loc) }
|
2770
|
-
def node_loc(node); end
|
2771
|
-
|
2772
|
-
# source://rbi//lib/rbi/parser.rb#410
|
2773
|
-
sig { params(node: ::AST::Node).returns(T.nilable(::RBI::Node)) }
|
2774
|
-
def parse_block(node); end
|
2775
|
-
|
2776
|
-
# source://rbi//lib/rbi/parser.rb#254
|
2777
|
-
sig { params(node: ::AST::Node).returns(::RBI::Node) }
|
2778
|
-
def parse_const_assign(node); end
|
2779
|
-
|
2780
|
-
# source://rbi//lib/rbi/parser.rb#270
|
2781
|
-
sig { params(node: ::AST::Node).returns(::RBI::Method) }
|
2782
|
-
def parse_def(node); end
|
2783
|
-
|
2784
|
-
# source://rbi//lib/rbi/parser.rb#512
|
2785
|
-
sig { params(node: ::AST::Node).returns(::RBI::TEnumBlock) }
|
2786
|
-
def parse_enum(node); end
|
2787
|
-
|
2788
|
-
# source://rbi//lib/rbi/parser.rb#297
|
2789
|
-
sig { params(node: ::AST::Node).returns(::RBI::Param) }
|
2790
|
-
def parse_param(node); end
|
2791
|
-
|
2792
|
-
# source://rbi//lib/rbi/parser.rb#529
|
2793
|
-
sig { params(node: ::AST::Node).returns(::RBI::RequiresAncestor) }
|
2794
|
-
def parse_requires_ancestor(node); end
|
2795
|
-
|
2796
|
-
# source://rbi//lib/rbi/parser.rb#234
|
2797
|
-
sig { params(node: ::AST::Node).returns(::RBI::Scope) }
|
2798
|
-
def parse_scope(node); end
|
2799
|
-
|
2800
|
-
# source://rbi//lib/rbi/parser.rb#325
|
2801
|
-
sig { params(node: ::AST::Node).returns(T.nilable(::RBI::Node)) }
|
2802
|
-
def parse_send(node); end
|
2803
|
-
|
2804
|
-
# source://rbi//lib/rbi/parser.rb#393
|
2805
|
-
sig { params(node: ::AST::Node).returns(T::Array[::RBI::Arg]) }
|
2806
|
-
def parse_send_args(node); end
|
2807
|
-
|
2808
|
-
# source://rbi//lib/rbi/parser.rb#505
|
2809
|
-
sig { params(node: ::AST::Node).returns(::RBI::Sig) }
|
2810
|
-
def parse_sig(node); end
|
2811
|
-
|
2812
|
-
# source://rbi//lib/rbi/parser.rb#432
|
2813
|
-
sig { params(node: ::AST::Node).returns(::RBI::Struct) }
|
2814
|
-
def parse_struct(node); end
|
2815
|
-
|
2816
|
-
# source://rbi//lib/rbi/parser.rb#489
|
2817
|
-
sig { params(node: ::AST::Node).returns([::String, ::String, T.nilable(::String)]) }
|
2818
|
-
def parse_tstruct_prop(node); end
|
2819
|
-
|
2820
|
-
# source://rbi//lib/rbi/parser.rb#478
|
2821
|
-
sig { params(node: ::AST::Node).returns(::RBI::TypeMember) }
|
2822
|
-
def parse_type_variable(node); end
|
2823
|
-
|
2824
|
-
# source://rbi//lib/rbi/parser.rb#591
|
2825
|
-
sig { void }
|
2826
|
-
def separate_header_comments; end
|
2827
|
-
|
2828
|
-
# source://rbi//lib/rbi/parser.rb#613
|
2829
|
-
sig { void }
|
2830
|
-
def set_root_tree_loc; end
|
2831
|
-
|
2832
|
-
# source://rbi//lib/rbi/parser.rb#426
|
2833
|
-
sig { params(node: ::AST::Node).returns(T::Boolean) }
|
2834
|
-
def struct_definition?(node); end
|
2835
|
-
|
2836
|
-
# source://rbi//lib/rbi/parser.rb#471
|
2837
|
-
sig { params(node: ::AST::Node).returns(T::Boolean) }
|
2838
|
-
def type_variable_definition?(node); end
|
2839
|
-
end
|
2840
|
-
|
2841
2795
|
# source://rbi//lib/rbi/model.rb#1320
|
2842
2796
|
class RBI::TypeMember < ::RBI::NodeWithComments
|
2843
2797
|
include ::RBI::Indexable
|