repeatable 1.2.0 → 1.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.github/workflows/ci.yml +19 -23
- data/.ruby-version +1 -0
- data/.yardopts +1 -0
- data/CHANGELOG.md +16 -2
- data/Gemfile +1 -0
- data/Gemfile.lock +86 -73
- data/README.md +8 -5
- data/lib/repeatable/expression/date.rb +1 -0
- data/lib/repeatable/expression/range_in_year.rb +2 -0
- data/lib/repeatable/version.rb +1 -1
- data/rbi/repeatable.rbi +1 -1
- data/sorbet/rbi/gems/{ast@2.4.2.rbi → ast@2.4.3.rbi} +3 -3
- data/sorbet/rbi/gems/benchmark@0.4.1.rbi +619 -0
- data/sorbet/rbi/gems/{commander@4.6.0.rbi → commander@5.0.0.rbi} +1 -0
- data/sorbet/rbi/gems/{diff-lcs@1.4.4.rbi → diff-lcs@1.6.2.rbi} +135 -83
- data/sorbet/rbi/gems/{erubi@1.12.0.rbi → erubi@1.13.1.rbi} +25 -15
- data/sorbet/rbi/gems/{highline@2.0.3.rbi → highline@3.0.1.rbi} +1 -0
- data/sorbet/rbi/gems/{json@2.7.2.rbi → json@2.13.2.rbi} +759 -233
- data/sorbet/rbi/gems/{language_server-protocol@3.17.0.3.rbi → language_server-protocol@3.17.0.5.rbi} +11 -5
- data/sorbet/rbi/gems/logger@1.7.0.rbi +963 -0
- data/sorbet/rbi/gems/{method_source@1.0.0.rbi → method_source@1.1.0.rbi} +41 -9
- data/sorbet/rbi/gems/{parallel@1.24.0.rbi → parallel@1.27.0.rbi} +32 -21
- data/sorbet/rbi/gems/{parlour@8.1.0.rbi → parlour@9.1.2.rbi} +86 -68
- data/sorbet/rbi/gems/{parser@3.3.1.0.rbi → parser@3.3.9.0.rbi} +908 -891
- data/sorbet/rbi/gems/{prism@0.28.0.rbi → prism@1.4.0.rbi} +14078 -10249
- data/sorbet/rbi/gems/{pry@0.14.0.rbi → pry@0.15.2.rbi} +437 -244
- data/sorbet/rbi/gems/{racc@1.7.3.rbi → racc@1.8.1.rbi} +36 -33
- data/sorbet/rbi/gems/{rake@13.0.3.rbi → rake@13.3.0.rbi} +83 -76
- data/sorbet/rbi/gems/rbi@0.3.6.rbi +6893 -0
- data/sorbet/rbi/gems/rbs@3.9.5.rbi +6976 -0
- data/sorbet/rbi/gems/{regexp_parser@2.9.0.rbi → regexp_parser@2.11.2.rbi} +1089 -1015
- data/sorbet/rbi/gems/{rexml@3.2.6.rbi → rexml@3.4.3.rbi} +833 -329
- data/sorbet/rbi/gems/{rspec-core@3.10.1.rbi → rspec-core@3.13.5.rbi} +1014 -613
- data/sorbet/rbi/gems/{rspec-expectations@3.10.1.rbi → rspec-expectations@3.13.5.rbi} +897 -638
- data/sorbet/rbi/gems/{rspec-mocks@3.10.2.rbi → rspec-mocks@3.13.5.rbi} +547 -444
- data/sorbet/rbi/gems/{rspec-support@3.10.2.rbi → rspec-support@3.13.5.rbi} +337 -304
- data/sorbet/rbi/gems/rspec@3.13.1.rbi +83 -0
- data/sorbet/rbi/gems/{rubocop-ast@1.31.3.rbi → rubocop-ast@1.46.0.rbi} +1678 -958
- data/sorbet/rbi/gems/{rubocop-performance@1.20.2.rbi → rubocop-performance@1.25.0.rbi} +1 -0
- data/sorbet/rbi/gems/{rubocop@1.62.1.rbi → rubocop@1.80.2.rbi} +11243 -5431
- data/sorbet/rbi/gems/simplecov-html@0.13.2.rbi +225 -0
- data/sorbet/rbi/gems/{simplecov@0.21.2.rbi → simplecov@0.22.0.rbi} +39 -25
- data/sorbet/rbi/gems/simplecov_json_formatter@0.1.4.rbi +233 -2
- data/sorbet/rbi/gems/spoom@1.6.3.rbi +6985 -0
- data/sorbet/rbi/gems/{standard-performance@1.3.1.rbi → standard-performance@1.8.0.rbi} +1 -0
- data/sorbet/rbi/gems/{standard@1.35.1.rbi → standard@1.51.0.rbi} +181 -96
- data/sorbet/rbi/gems/{tapioca@0.13.3.rbi → tapioca@0.16.11.rbi} +489 -388
- data/sorbet/rbi/gems/{thor@1.3.1.rbi → thor@1.4.0.rbi} +94 -46
- data/sorbet/rbi/gems/unicode-display_width@3.2.0.rbi +132 -0
- data/sorbet/rbi/gems/unicode-emoji@4.1.0.rbi +251 -0
- data/sorbet/rbi/gems/{yard-sorbet@0.8.1.rbi → yard-sorbet@0.9.0.rbi} +36 -29
- data/sorbet/rbi/gems/{yard@0.9.36.rbi → yard@0.9.37.rbi} +394 -236
- metadata +46 -40
- data/sorbet/rbi/gems/rbi@0.1.13.rbi +0 -3071
- data/sorbet/rbi/gems/rspec@3.10.0.rbi +0 -76
- data/sorbet/rbi/gems/simplecov-html@0.12.3.rbi +0 -216
- data/sorbet/rbi/gems/spoom@1.3.2.rbi +0 -4420
- data/sorbet/rbi/gems/unicode-display_width@2.5.0.rbi +0 -65
- /data/sorbet/rbi/gems/{docile@1.4.0.rbi → docile@1.4.1.rbi} +0 -0
@@ -4,6 +4,7 @@
|
|
4
4
|
# This is an autogenerated file for types exported from the `parlour` gem.
|
5
5
|
# Please instead update this file by running `bin/tapioca gem parlour`.
|
6
6
|
|
7
|
+
|
7
8
|
# source://parlour//lib/parlour/version.rb#2
|
8
9
|
module Parlour; end
|
9
10
|
|
@@ -326,41 +327,43 @@ end
|
|
326
327
|
|
327
328
|
# The base class for user-defined RBI generation plugins.
|
328
329
|
#
|
329
|
-
#
|
330
|
+
# This class is *abstract*.
|
331
|
+
#
|
332
|
+
# @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below.
|
330
333
|
#
|
331
|
-
# source://parlour//lib/parlour/plugin.rb#
|
334
|
+
# source://parlour//lib/parlour/plugin.rb#6
|
332
335
|
class Parlour::Plugin
|
333
336
|
abstract!
|
334
337
|
|
335
|
-
# source://parlour//lib/parlour/plugin.rb#
|
338
|
+
# source://parlour//lib/parlour/plugin.rb#55
|
336
339
|
sig { params(options: T::Hash[T.untyped, T.untyped]).void }
|
337
340
|
def initialize(options); end
|
338
341
|
|
339
342
|
# @abstract
|
340
343
|
#
|
341
|
-
# source://parlour//lib/parlour/plugin.rb#
|
344
|
+
# source://parlour//lib/parlour/plugin.rb#65
|
342
345
|
sig { abstract.params(root: Parlour::RbiGenerator::Namespace).void }
|
343
346
|
def generate(root); end
|
344
347
|
|
345
|
-
# source://parlour//lib/parlour/plugin.rb#
|
348
|
+
# source://parlour//lib/parlour/plugin.rb#72
|
346
349
|
sig { returns(T.nilable(::String)) }
|
347
350
|
def strictness; end
|
348
351
|
|
349
352
|
# @return [String, nil]
|
350
353
|
#
|
351
|
-
# source://parlour//lib/parlour/plugin.rb#
|
354
|
+
# source://parlour//lib/parlour/plugin.rb#72
|
352
355
|
def strictness=(_arg0); end
|
353
356
|
|
354
357
|
class << self
|
355
|
-
# source://parlour//lib/parlour/plugin.rb#
|
358
|
+
# source://parlour//lib/parlour/plugin.rb#28
|
356
359
|
sig { params(new_plugin: T.class_of(Parlour::Plugin)).void }
|
357
360
|
def inherited(new_plugin); end
|
358
361
|
|
359
|
-
# source://parlour//lib/parlour/plugin.rb#
|
362
|
+
# source://parlour//lib/parlour/plugin.rb#18
|
360
363
|
sig { returns(T::Hash[::String, T.class_of(Parlour::Plugin)]) }
|
361
364
|
def registered_plugins; end
|
362
365
|
|
363
|
-
# source://parlour//lib/parlour/plugin.rb#
|
366
|
+
# source://parlour//lib/parlour/plugin.rb#41
|
364
367
|
sig do
|
365
368
|
params(
|
366
369
|
plugins: T::Array[::Parlour::Plugin],
|
@@ -541,49 +544,55 @@ end
|
|
541
544
|
#
|
542
545
|
# source://parlour//lib/parlour/rbi_generator/constant.rb#5
|
543
546
|
class Parlour::RbiGenerator::Constant < ::Parlour::RbiGenerator::RbiObject
|
544
|
-
# source://parlour//lib/parlour/rbi_generator/constant.rb#
|
547
|
+
# source://parlour//lib/parlour/rbi_generator/constant.rb#23
|
545
548
|
sig do
|
546
549
|
params(
|
547
550
|
generator: ::Parlour::Generator,
|
548
551
|
name: ::String,
|
549
552
|
value: T.any(::Parlour::Types::Type, ::String),
|
550
553
|
eigen_constant: T::Boolean,
|
554
|
+
heredocs: T.nilable(::String),
|
551
555
|
block: T.nilable(T.proc.params(x: ::Parlour::RbiGenerator::Constant).void)
|
552
556
|
).void
|
553
557
|
end
|
554
|
-
def initialize(generator, name: T.unsafe(nil), value: T.unsafe(nil), eigen_constant: T.unsafe(nil), &block); end
|
558
|
+
def initialize(generator, name: T.unsafe(nil), value: T.unsafe(nil), eigen_constant: T.unsafe(nil), heredocs: T.unsafe(nil), &block); end
|
555
559
|
|
556
|
-
# source://parlour//lib/parlour/rbi_generator/constant.rb#
|
560
|
+
# source://parlour//lib/parlour/rbi_generator/constant.rb#48
|
557
561
|
sig { params(other: ::Object).returns(T::Boolean) }
|
558
562
|
def ==(other); end
|
559
563
|
|
560
|
-
# source://parlour//lib/parlour/rbi_generator/constant.rb#
|
564
|
+
# source://parlour//lib/parlour/rbi_generator/constant.rb#109
|
561
565
|
sig { override.returns(T::Array[T.any(::Symbol, T::Hash[::Symbol, ::String])]) }
|
562
566
|
def describe_attrs; end
|
563
567
|
|
564
568
|
# @return [Boolean] Whether this constant is defined on the eigenclass
|
565
569
|
# of the current namespace.
|
566
570
|
#
|
567
|
-
# source://parlour//lib/parlour/rbi_generator/constant.rb#
|
571
|
+
# source://parlour//lib/parlour/rbi_generator/constant.rb#37
|
568
572
|
def eigen_constant; end
|
569
573
|
|
570
|
-
# source://parlour//lib/parlour/rbi_generator/constant.rb#
|
574
|
+
# source://parlour//lib/parlour/rbi_generator/constant.rb#114
|
571
575
|
sig { override.void }
|
572
576
|
def generalize_from_rbi!; end
|
573
577
|
|
574
|
-
# source://parlour//lib/parlour/rbi_generator/constant.rb#
|
578
|
+
# source://parlour//lib/parlour/rbi_generator/constant.rb#64
|
575
579
|
sig { override.params(indent_level: ::Integer, options: ::Parlour::Options).returns(T::Array[::String]) }
|
576
580
|
def generate_rbi(indent_level, options); end
|
577
581
|
|
578
|
-
#
|
582
|
+
# @return [String, nil] Definitions of the heredocs used in the value, if any
|
583
|
+
#
|
584
|
+
# source://parlour//lib/parlour/rbi_generator/constant.rb#40
|
585
|
+
def heredocs; end
|
586
|
+
|
587
|
+
# source://parlour//lib/parlour/rbi_generator/constant.rb#104
|
579
588
|
sig { override.params(others: T::Array[::Parlour::RbiGenerator::RbiObject]).void }
|
580
589
|
def merge_into_self(others); end
|
581
590
|
|
582
|
-
# source://parlour//lib/parlour/rbi_generator/constant.rb#
|
591
|
+
# source://parlour//lib/parlour/rbi_generator/constant.rb#87
|
583
592
|
sig { override.params(others: T::Array[::Parlour::RbiGenerator::RbiObject]).returns(T::Boolean) }
|
584
593
|
def mergeable?(others); end
|
585
594
|
|
586
|
-
# source://parlour//lib/parlour/rbi_generator/constant.rb#
|
595
|
+
# source://parlour//lib/parlour/rbi_generator/constant.rb#33
|
587
596
|
sig { returns(T.any(::Parlour::Types::Type, ::String)) }
|
588
597
|
def value; end
|
589
598
|
end
|
@@ -913,7 +922,7 @@ class Parlour::RbiGenerator::Namespace < ::Parlour::RbiGenerator::RbiObject
|
|
913
922
|
# @param block [T.proc.params(x: Attribute).void, nil]
|
914
923
|
# @return [Attribute]
|
915
924
|
#
|
916
|
-
# source://sorbet-runtime/0.
|
925
|
+
# source://sorbet-runtime/0.6.12501/lib/types/private/methods/_methods.rb#257
|
917
926
|
def create_attr(*args, **_arg1, &blk); end
|
918
927
|
|
919
928
|
# source://parlour//lib/parlour/rbi_generator/namespace.rb#472
|
@@ -974,16 +983,17 @@ class Parlour::RbiGenerator::Namespace < ::Parlour::RbiGenerator::RbiObject
|
|
974
983
|
end
|
975
984
|
def create_class(name, final: T.unsafe(nil), sealed: T.unsafe(nil), superclass: T.unsafe(nil), abstract: T.unsafe(nil), &block); end
|
976
985
|
|
977
|
-
# source://parlour//lib/parlour/rbi_generator/namespace.rb#
|
986
|
+
# source://parlour//lib/parlour/rbi_generator/namespace.rb#580
|
978
987
|
sig do
|
979
988
|
params(
|
980
989
|
name: ::String,
|
981
990
|
value: ::String,
|
982
991
|
eigen_constant: T::Boolean,
|
992
|
+
heredocs: T.nilable(::String),
|
983
993
|
block: T.nilable(T.proc.params(x: ::Parlour::RbiGenerator::Constant).void)
|
984
994
|
).returns(::Parlour::RbiGenerator::Constant)
|
985
995
|
end
|
986
|
-
def create_constant(name, value:, eigen_constant: T.unsafe(nil), &block); end
|
996
|
+
def create_constant(name, value:, eigen_constant: T.unsafe(nil), heredocs: T.unsafe(nil), &block); end
|
987
997
|
|
988
998
|
# source://parlour//lib/parlour/rbi_generator/namespace.rb#222
|
989
999
|
sig do
|
@@ -1069,7 +1079,7 @@ class Parlour::RbiGenerator::Namespace < ::Parlour::RbiGenerator::RbiObject
|
|
1069
1079
|
end
|
1070
1080
|
def create_struct_class(name, final: T.unsafe(nil), sealed: T.unsafe(nil), props: T.unsafe(nil), abstract: T.unsafe(nil), &block); end
|
1071
1081
|
|
1072
|
-
# source://parlour//lib/parlour/rbi_generator/namespace.rb#
|
1082
|
+
# source://parlour//lib/parlour/rbi_generator/namespace.rb#604
|
1073
1083
|
sig do
|
1074
1084
|
params(
|
1075
1085
|
name: ::String,
|
@@ -1079,7 +1089,7 @@ class Parlour::RbiGenerator::Namespace < ::Parlour::RbiGenerator::RbiObject
|
|
1079
1089
|
end
|
1080
1090
|
def create_type_alias(name, type:, &block); end
|
1081
1091
|
|
1082
|
-
# source://parlour//lib/parlour/rbi_generator/namespace.rb#
|
1092
|
+
# source://parlour//lib/parlour/rbi_generator/namespace.rb#662
|
1083
1093
|
sig { override.returns(T::Array[T.any(::Symbol, T::Hash[::Symbol, ::String])]) }
|
1084
1094
|
def describe_attrs; end
|
1085
1095
|
|
@@ -1091,7 +1101,7 @@ class Parlour::RbiGenerator::Namespace < ::Parlour::RbiGenerator::RbiObject
|
|
1091
1101
|
sig { returns(T::Boolean) }
|
1092
1102
|
def final; end
|
1093
1103
|
|
1094
|
-
# source://parlour//lib/parlour/rbi_generator/namespace.rb#
|
1104
|
+
# source://parlour//lib/parlour/rbi_generator/namespace.rb#657
|
1095
1105
|
sig { override.void }
|
1096
1106
|
def generalize_from_rbi!; end
|
1097
1107
|
|
@@ -1103,11 +1113,11 @@ class Parlour::RbiGenerator::Namespace < ::Parlour::RbiGenerator::RbiObject
|
|
1103
1113
|
sig { returns(T::Array[::Parlour::RbiGenerator::Include]) }
|
1104
1114
|
def includes; end
|
1105
1115
|
|
1106
|
-
# source://parlour//lib/parlour/rbi_generator/namespace.rb#
|
1116
|
+
# source://parlour//lib/parlour/rbi_generator/namespace.rb#647
|
1107
1117
|
sig { override.overridable.params(others: T::Array[::Parlour::RbiGenerator::RbiObject]).void }
|
1108
1118
|
def merge_into_self(others); end
|
1109
1119
|
|
1110
|
-
# source://parlour//lib/parlour/rbi_generator/namespace.rb#
|
1120
|
+
# source://parlour//lib/parlour/rbi_generator/namespace.rb#629
|
1111
1121
|
sig { override.overridable.params(others: T::Array[::Parlour::RbiGenerator::RbiObject]).returns(T::Boolean) }
|
1112
1122
|
def mergeable?(others); end
|
1113
1123
|
|
@@ -1121,16 +1131,16 @@ class Parlour::RbiGenerator::Namespace < ::Parlour::RbiGenerator::RbiObject
|
|
1121
1131
|
|
1122
1132
|
# @return [Array<RbiGenerator::TypeAlias>]
|
1123
1133
|
#
|
1124
|
-
# source://sorbet-runtime/0.
|
1134
|
+
# source://sorbet-runtime/0.6.12501/lib/types/private/methods/_methods.rb#257
|
1125
1135
|
def type_aliases(*args, **_arg1, &blk); end
|
1126
1136
|
|
1127
1137
|
private
|
1128
1138
|
|
1129
|
-
# source://parlour//lib/parlour/rbi_generator/namespace.rb#
|
1139
|
+
# source://parlour//lib/parlour/rbi_generator/namespace.rb#680
|
1130
1140
|
sig { overridable.params(indent_level: ::Integer, options: ::Parlour::Options).returns(T::Array[::String]) }
|
1131
1141
|
def generate_body(indent_level, options); end
|
1132
1142
|
|
1133
|
-
# source://parlour//lib/parlour/rbi_generator/namespace.rb#
|
1143
|
+
# source://parlour//lib/parlour/rbi_generator/namespace.rb#771
|
1134
1144
|
sig { params(object: ::Parlour::RbiGenerator::RbiObject).void }
|
1135
1145
|
def move_next_comments(object); end
|
1136
1146
|
end
|
@@ -1206,41 +1216,43 @@ Parlour::RbiGenerator::Parameter::PREFIXES = T.let(T.unsafe(nil), Hash)
|
|
1206
1216
|
# {Parameter} is _not_ a subclass because it does not generate lines, only
|
1207
1217
|
# segments of definition and signature lines.)
|
1208
1218
|
#
|
1209
|
-
#
|
1219
|
+
# This class is *abstract*.
|
1210
1220
|
#
|
1211
|
-
#
|
1221
|
+
# @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below.
|
1222
|
+
#
|
1223
|
+
# source://parlour//lib/parlour/rbi_generator/rbi_object.rb#10
|
1212
1224
|
class Parlour::RbiGenerator::RbiObject < ::Parlour::TypedObject
|
1213
1225
|
abstract!
|
1214
1226
|
|
1215
|
-
# source://parlour//lib/parlour/rbi_generator/rbi_object.rb#
|
1227
|
+
# source://parlour//lib/parlour/rbi_generator/rbi_object.rb#20
|
1216
1228
|
sig { params(generator: ::Parlour::Generator, name: ::String).void }
|
1217
1229
|
def initialize(generator, name); end
|
1218
1230
|
|
1219
1231
|
# @abstract
|
1220
1232
|
#
|
1221
|
-
# source://parlour//lib/parlour/rbi_generator/rbi_object.rb#
|
1233
|
+
# source://parlour//lib/parlour/rbi_generator/rbi_object.rb#84
|
1222
1234
|
sig { abstract.void }
|
1223
1235
|
def generalize_from_rbi!; end
|
1224
1236
|
|
1225
1237
|
# @abstract
|
1226
1238
|
#
|
1227
|
-
# source://parlour//lib/parlour/rbi_generator/rbi_object.rb#
|
1239
|
+
# source://parlour//lib/parlour/rbi_generator/rbi_object.rb#44
|
1228
1240
|
sig { abstract.params(indent_level: ::Integer, options: ::Parlour::Options).returns(T::Array[::String]) }
|
1229
1241
|
def generate_rbi(indent_level, options); end
|
1230
1242
|
|
1231
|
-
# source://parlour//lib/parlour/rbi_generator/rbi_object.rb#
|
1243
|
+
# source://parlour//lib/parlour/rbi_generator/rbi_object.rb#29
|
1232
1244
|
sig { returns(::Parlour::Generator) }
|
1233
1245
|
def generator; end
|
1234
1246
|
|
1235
1247
|
# @abstract
|
1236
1248
|
#
|
1237
|
-
# source://parlour//lib/parlour/rbi_generator/rbi_object.rb#
|
1249
|
+
# source://parlour//lib/parlour/rbi_generator/rbi_object.rb#74
|
1238
1250
|
sig { abstract.params(others: T::Array[::Parlour::RbiGenerator::RbiObject]).void }
|
1239
1251
|
def merge_into_self(others); end
|
1240
1252
|
|
1241
1253
|
# @abstract
|
1242
1254
|
#
|
1243
|
-
# source://parlour//lib/parlour/rbi_generator/rbi_object.rb#
|
1255
|
+
# source://parlour//lib/parlour/rbi_generator/rbi_object.rb#59
|
1244
1256
|
sig { abstract.params(others: T::Array[::Parlour::RbiGenerator::RbiObject]).returns(T::Boolean) }
|
1245
1257
|
def mergeable?(others); end
|
1246
1258
|
end
|
@@ -1885,7 +1897,7 @@ class Parlour::RbsGenerator::Namespace < ::Parlour::RbsGenerator::RbsObject
|
|
1885
1897
|
# @param block [T.proc.params(x: Attribute).void, nil]
|
1886
1898
|
# @return [Attribute]
|
1887
1899
|
#
|
1888
|
-
# source://sorbet-runtime/0.
|
1900
|
+
# source://sorbet-runtime/0.6.12501/lib/types/private/methods/_methods.rb#257
|
1889
1901
|
def create_attr(*args, **_arg1, &blk); end
|
1890
1902
|
|
1891
1903
|
# source://parlour//lib/parlour/rbs_generator/namespace.rb#347
|
@@ -2052,7 +2064,7 @@ class Parlour::RbsGenerator::Namespace < ::Parlour::RbsGenerator::RbsObject
|
|
2052
2064
|
|
2053
2065
|
# @return [Array<RbsGenerator::TypeAlias>]
|
2054
2066
|
#
|
2055
|
-
# source://sorbet-runtime/0.
|
2067
|
+
# source://sorbet-runtime/0.6.12501/lib/types/private/methods/_methods.rb#257
|
2056
2068
|
def type_aliases(*args, **_arg1, &blk); end
|
2057
2069
|
|
2058
2070
|
private
|
@@ -2120,35 +2132,37 @@ Parlour::RbsGenerator::Parameter::RBS_KEYWORDS = T.let(T.unsafe(nil), Array)
|
|
2120
2132
|
# {Parameter} is _not_ a subclass because it does not generate lines, only
|
2121
2133
|
# segments of definition lines.)
|
2122
2134
|
#
|
2123
|
-
#
|
2135
|
+
# This class is *abstract*.
|
2136
|
+
#
|
2137
|
+
# @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below.
|
2124
2138
|
#
|
2125
|
-
# source://parlour//lib/parlour/rbs_generator/rbs_object.rb#
|
2139
|
+
# source://parlour//lib/parlour/rbs_generator/rbs_object.rb#10
|
2126
2140
|
class Parlour::RbsGenerator::RbsObject < ::Parlour::TypedObject
|
2127
2141
|
abstract!
|
2128
2142
|
|
2129
|
-
# source://parlour//lib/parlour/rbs_generator/rbs_object.rb#
|
2143
|
+
# source://parlour//lib/parlour/rbs_generator/rbs_object.rb#20
|
2130
2144
|
sig { params(generator: ::Parlour::Generator, name: ::String).void }
|
2131
2145
|
def initialize(generator, name); end
|
2132
2146
|
|
2133
2147
|
# @abstract
|
2134
2148
|
#
|
2135
|
-
# source://parlour//lib/parlour/rbs_generator/rbs_object.rb#
|
2149
|
+
# source://parlour//lib/parlour/rbs_generator/rbs_object.rb#44
|
2136
2150
|
sig { abstract.params(indent_level: ::Integer, options: ::Parlour::Options).returns(T::Array[::String]) }
|
2137
2151
|
def generate_rbs(indent_level, options); end
|
2138
2152
|
|
2139
|
-
# source://parlour//lib/parlour/rbs_generator/rbs_object.rb#
|
2153
|
+
# source://parlour//lib/parlour/rbs_generator/rbs_object.rb#29
|
2140
2154
|
sig { returns(::Parlour::Generator) }
|
2141
2155
|
def generator; end
|
2142
2156
|
|
2143
2157
|
# @abstract
|
2144
2158
|
#
|
2145
|
-
# source://parlour//lib/parlour/rbs_generator/rbs_object.rb#
|
2159
|
+
# source://parlour//lib/parlour/rbs_generator/rbs_object.rb#74
|
2146
2160
|
sig { abstract.params(others: T::Array[::Parlour::RbsGenerator::RbsObject]).void }
|
2147
2161
|
def merge_into_self(others); end
|
2148
2162
|
|
2149
2163
|
# @abstract
|
2150
2164
|
#
|
2151
|
-
# source://parlour//lib/parlour/rbs_generator/rbs_object.rb#
|
2165
|
+
# source://parlour//lib/parlour/rbs_generator/rbs_object.rb#59
|
2152
2166
|
sig { abstract.params(others: T::Array[::Parlour::RbsGenerator::RbsObject]).returns(T::Boolean) }
|
2153
2167
|
def mergeable?(others); end
|
2154
2168
|
end
|
@@ -2254,6 +2268,10 @@ class Parlour::TypeParser
|
|
2254
2268
|
# source://parlour//lib/parlour/type_parser.rb#119
|
2255
2269
|
def ast=(_arg0); end
|
2256
2270
|
|
2271
|
+
# source://parlour//lib/parlour/type_parser.rb#422
|
2272
|
+
sig { params(body: T.nilable(::Parser::AST::Node)).returns(T.nilable(::String)) }
|
2273
|
+
def find_heredocs(body); end
|
2274
|
+
|
2257
2275
|
# source://parlour//lib/parlour/type_parser.rb#128
|
2258
2276
|
sig { returns(::Parlour::RbiGenerator) }
|
2259
2277
|
def generator; end
|
@@ -2269,7 +2287,7 @@ class Parlour::TypeParser
|
|
2269
2287
|
sig { returns(Parlour::RbiGenerator::Namespace) }
|
2270
2288
|
def parse_all; end
|
2271
2289
|
|
2272
|
-
# source://parlour//lib/parlour/type_parser.rb#
|
2290
|
+
# source://parlour//lib/parlour/type_parser.rb#688
|
2273
2291
|
sig do
|
2274
2292
|
params(
|
2275
2293
|
path: ::Parlour::TypeParser::NodePath,
|
@@ -2278,7 +2296,7 @@ class Parlour::TypeParser
|
|
2278
2296
|
end
|
2279
2297
|
def parse_method_into_methods(path, is_within_eigenclass: T.unsafe(nil)); end
|
2280
2298
|
|
2281
|
-
# source://parlour//lib/parlour/type_parser.rb#
|
2299
|
+
# source://parlour//lib/parlour/type_parser.rb#793
|
2282
2300
|
sig { params(node: ::Parser::AST::Node).returns(::Parlour::Types::Type) }
|
2283
2301
|
def parse_node_to_type(node); end
|
2284
2302
|
|
@@ -2298,7 +2316,7 @@ class Parlour::TypeParser
|
|
2298
2316
|
end
|
2299
2317
|
def parse_path_to_object(path, is_within_eigenclass: T.unsafe(nil)); end
|
2300
2318
|
|
2301
|
-
# source://parlour//lib/parlour/type_parser.rb#
|
2319
|
+
# source://parlour//lib/parlour/type_parser.rb#535
|
2302
2320
|
sig do
|
2303
2321
|
params(
|
2304
2322
|
path: ::Parlour::TypeParser::NodePath,
|
@@ -2307,7 +2325,7 @@ class Parlour::TypeParser
|
|
2307
2325
|
end
|
2308
2326
|
def parse_sig_into_methods(path, is_within_eigenclass: T.unsafe(nil)); end
|
2309
2327
|
|
2310
|
-
# source://parlour//lib/parlour/type_parser.rb#
|
2328
|
+
# source://parlour//lib/parlour/type_parser.rb#457
|
2311
2329
|
sig { params(path: ::Parlour::TypeParser::NodePath).returns(::Parlour::TypeParser::IntermediateSig) }
|
2312
2330
|
def parse_sig_into_sig(path); end
|
2313
2331
|
|
@@ -2317,43 +2335,43 @@ class Parlour::TypeParser
|
|
2317
2335
|
|
2318
2336
|
protected
|
2319
2337
|
|
2320
|
-
# source://parlour//lib/parlour/type_parser.rb#
|
2338
|
+
# source://parlour//lib/parlour/type_parser.rb#1010
|
2321
2339
|
sig { params(node: T.nilable(::Parser::AST::Node), modifier: ::Symbol).returns(T::Boolean) }
|
2322
2340
|
def body_has_modifier?(node, modifier); end
|
2323
2341
|
|
2324
|
-
# source://parlour//lib/parlour/type_parser.rb#
|
2342
|
+
# source://parlour//lib/parlour/type_parser.rb#1025
|
2325
2343
|
sig { params(node: ::Parser::AST::Node).returns([T::Array[::String], T::Array[::String]]) }
|
2326
2344
|
def body_includes_and_extends(node); end
|
2327
2345
|
|
2328
|
-
# source://parlour//lib/parlour/type_parser.rb#
|
2346
|
+
# source://parlour//lib/parlour/type_parser.rb#950
|
2329
2347
|
sig { params(node: T.nilable(::Parser::AST::Node)).returns(T::Array[::Symbol]) }
|
2330
2348
|
def constant_names(node); end
|
2331
2349
|
|
2332
|
-
# source://parlour//lib/parlour/type_parser.rb#
|
2350
|
+
# source://parlour//lib/parlour/type_parser.rb#992
|
2333
2351
|
sig { params(node: T.nilable(::Parser::AST::Node)).returns(T.nilable(::String)) }
|
2334
2352
|
def node_to_s(node); end
|
2335
2353
|
|
2336
2354
|
# @raise [ParseError.new(buffer, range)]
|
2337
2355
|
#
|
2338
|
-
# source://parlour//lib/parlour/type_parser.rb#
|
2356
|
+
# source://parlour//lib/parlour/type_parser.rb#1049
|
2339
2357
|
sig { params(desc: ::String, node: T.any(::Parlour::TypeParser::NodePath, ::Parser::AST::Node)).returns(T.noreturn) }
|
2340
2358
|
def parse_err(desc, node); end
|
2341
2359
|
|
2342
|
-
# source://parlour//lib/parlour/type_parser.rb#
|
2360
|
+
# source://parlour//lib/parlour/type_parser.rb#975
|
2343
2361
|
sig { params(path: ::Parlour::TypeParser::NodePath).returns(T::Boolean) }
|
2344
2362
|
def previous_sibling_sig_node?(path); end
|
2345
2363
|
|
2346
|
-
# source://parlour//lib/parlour/type_parser.rb#
|
2364
|
+
# source://parlour//lib/parlour/type_parser.rb#962
|
2347
2365
|
sig { params(node: ::Parser::AST::Node).returns(T::Boolean) }
|
2348
2366
|
def sig_node?(node); end
|
2349
2367
|
|
2350
|
-
# source://parlour//lib/parlour/type_parser.rb#
|
2368
|
+
# source://parlour//lib/parlour/type_parser.rb#932
|
2351
2369
|
sig { params(msg: ::String, node: ::Parser::AST::Node).void }
|
2352
2370
|
def warning(msg, node); end
|
2353
2371
|
|
2354
2372
|
# @raise [ArgumentError]
|
2355
2373
|
#
|
2356
|
-
# source://parlour//lib/parlour/type_parser.rb#
|
2374
|
+
# source://parlour//lib/parlour/type_parser.rb#1082
|
2357
2375
|
sig do
|
2358
2376
|
type_parameters(:A, :B)
|
2359
2377
|
.params(
|
@@ -2376,7 +2394,7 @@ class Parlour::TypeParser
|
|
2376
2394
|
end
|
2377
2395
|
def from_source(filename, source, generator: T.unsafe(nil)); end
|
2378
2396
|
|
2379
|
-
# source://parlour//lib/parlour/type_parser.rb#
|
2397
|
+
# source://parlour//lib/parlour/type_parser.rb#782
|
2380
2398
|
sig { params(str: ::String).returns(::Parlour::Types::Type) }
|
2381
2399
|
def parse_single_type(str); end
|
2382
2400
|
end
|
@@ -2384,7 +2402,7 @@ end
|
|
2384
2402
|
|
2385
2403
|
# A parsed sig, not associated with a method.
|
2386
2404
|
#
|
2387
|
-
# source://parlour//lib/parlour/type_parser.rb#
|
2405
|
+
# source://parlour//lib/parlour/type_parser.rb#401
|
2388
2406
|
class Parlour::TypeParser::IntermediateSig < ::T::Struct
|
2389
2407
|
prop :type_parameters, T.nilable(T::Array[::Symbol])
|
2390
2408
|
prop :overridable, T::Boolean
|
@@ -2395,7 +2413,7 @@ class Parlour::TypeParser::IntermediateSig < ::T::Struct
|
|
2395
2413
|
prop :params, T.nilable(T::Array[::Parser::AST::Node])
|
2396
2414
|
|
2397
2415
|
class << self
|
2398
|
-
# source://sorbet-runtime/0.
|
2416
|
+
# source://sorbet-runtime/0.6.12501/lib/types/struct.rb#13
|
2399
2417
|
def inherited(s); end
|
2400
2418
|
end
|
2401
2419
|
end
|
@@ -2450,7 +2468,7 @@ class Parlour::TypedObject
|
|
2450
2468
|
# @param comment [String, Array<String>]
|
2451
2469
|
# @return [void]
|
2452
2470
|
#
|
2453
|
-
# source://sorbet-runtime/0.
|
2471
|
+
# source://sorbet-runtime/0.6.12501/lib/types/private/methods/_methods.rb#257
|
2454
2472
|
def add_comments(*args, **_arg1, &blk); end
|
2455
2473
|
|
2456
2474
|
# source://parlour//lib/parlour/typed_object.rb#32
|
@@ -2471,7 +2489,7 @@ class Parlour::TypedObject
|
|
2471
2489
|
|
2472
2490
|
# @return [String]
|
2473
2491
|
#
|
2474
|
-
# source://sorbet-runtime/0.
|
2492
|
+
# source://sorbet-runtime/0.6.12501/lib/types/private/methods/_methods.rb#257
|
2475
2493
|
def inspect(*args, **_arg1, &blk); end
|
2476
2494
|
|
2477
2495
|
# source://parlour//lib/parlour/typed_object.rb#26
|
@@ -2480,18 +2498,18 @@ class Parlour::TypedObject
|
|
2480
2498
|
|
2481
2499
|
# @return [String]
|
2482
2500
|
#
|
2483
|
-
# source://sorbet-runtime/0.
|
2501
|
+
# source://sorbet-runtime/0.6.12501/lib/types/private/methods/_methods.rb#257
|
2484
2502
|
def to_s(*args, **_arg1, &blk); end
|
2485
2503
|
|
2486
2504
|
protected
|
2487
2505
|
|
2488
2506
|
# @abstract
|
2489
2507
|
#
|
2490
|
-
# source://parlour//lib/parlour/typed_object.rb#
|
2508
|
+
# source://parlour//lib/parlour/typed_object.rb#154
|
2491
2509
|
sig { abstract.returns(T::Array[T.any(::Symbol, T::Hash[::Symbol, ::String])]) }
|
2492
2510
|
def describe_attrs; end
|
2493
2511
|
|
2494
|
-
# source://parlour//lib/parlour/typed_object.rb#
|
2512
|
+
# source://parlour//lib/parlour/typed_object.rb#167
|
2495
2513
|
sig { params(indent_level: ::Integer, options: ::Parlour::Options).returns(T::Array[::String]) }
|
2496
2514
|
def generate_comments(indent_level, options); end
|
2497
2515
|
end
|