visualize_packwerk 0.0.6 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +5 -5
- data/lib/visualize_packwerk/package_graph.rb +14 -6
- data/lib/visualize_packwerk/package_relationships.rb +3 -3
- data/lib/visualize_packwerk.rb +2 -1
- data/sorbet/rbi/gems/{code_ownership@1.28.0.rbi → code_ownership@1.31.0.rbi} +216 -10
- data/sorbet/rbi/gems/netrc@0.11.0.rbi +150 -0
- data/sorbet/rbi/gems/packs@0.0.6.rbi +115 -0
- data/sorbet/rbi/gems/{parser@3.1.2.0.rbi → parser@3.1.2.1.rbi} +1685 -918
- data/sorbet/rbi/gems/{tapioca@0.8.3.rbi → tapioca@0.9.2.rbi} +1343 -193
- metadata +21 -18
- data/sorbet/rbi/gems/activesupport@7.0.3.1.rbi +0 -76
- data/sorbet/rbi/gems/concurrent-ruby@1.1.10.rbi +0 -8
- data/sorbet/rbi/gems/i18n@1.12.0.rbi +0 -8
- data/sorbet/rbi/gems/json@2.6.2.rbi +0 -1423
- data/sorbet/rbi/gems/minitest@5.16.2.rbi +0 -9
- data/sorbet/rbi/gems/rainbow@3.1.1.rbi +0 -8
- data/sorbet/rbi/gems/regexp_parser@2.5.0.rbi +0 -8
- data/sorbet/rbi/gems/rubocop-ast@1.19.1.rbi +0 -8
- data/sorbet/rbi/gems/rubocop-sorbet@0.6.11.rbi +0 -8
- data/sorbet/rbi/gems/rubocop@1.33.0.rbi +0 -8
- data/sorbet/rbi/gems/ruby-progressbar@1.11.0.rbi +0 -8
- data/sorbet/rbi/gems/tzinfo@2.0.5.rbi +0 -8
- data/sorbet/rbi/gems/unicode-display_width@2.2.0.rbi +0 -8
@@ -4,22 +4,38 @@
|
|
4
4
|
# This is an autogenerated file for types exported from the `tapioca` gem.
|
5
5
|
# Please instead update this file by running `bin/tapioca gem tapioca`.
|
6
6
|
|
7
|
+
class Bundler::Dependency < ::Gem::Dependency
|
8
|
+
include ::Tapioca::Gemfile::AutoRequireHook
|
9
|
+
end
|
10
|
+
|
7
11
|
# We need to do the alias-method-chain dance since Bootsnap does the same,
|
8
12
|
# and prepended modules and alias-method-chain don't play well together.
|
9
13
|
#
|
10
14
|
# So, why does Bootsnap do alias-method-chain and not prepend? Glad you asked!
|
11
15
|
# That's because RubyGems does alias-method-chain for Kernel#require and such,
|
12
16
|
# so, if Bootsnap were to do prepend, it might end up breaking RubyGems.
|
17
|
+
#
|
18
|
+
# source://tapioca-0.9.2/lib/tapioca/runtime/trackers/autoload.rb:65
|
13
19
|
class Module
|
20
|
+
# source://tapioca-0.9.2/lib/tapioca/runtime/trackers/mixin.rb:78
|
14
21
|
def append_features(constant); end
|
22
|
+
|
23
|
+
# source://tapioca-0.9.2/lib/tapioca/runtime/trackers/autoload.rb:68
|
15
24
|
def autoload(const_name, path); end
|
25
|
+
|
26
|
+
# source://tapioca-0.9.2/lib/tapioca/runtime/trackers/mixin.rb:90
|
16
27
|
def extend_object(obj); end
|
28
|
+
|
29
|
+
# source://tapioca-0.9.2/lib/tapioca/runtime/trackers/mixin.rb:66
|
17
30
|
def prepend_features(constant); end
|
18
31
|
end
|
19
32
|
|
33
|
+
# source://tapioca-0.9.2/lib/tapioca/rbi_ext/model.rb:4
|
20
34
|
module RBI; end
|
21
35
|
|
36
|
+
# source://tapioca-0.9.2/lib/tapioca/rbi_ext/model.rb:5
|
22
37
|
class RBI::Tree < ::RBI::NodeWithComments
|
38
|
+
# source://rbi-0.0.15/lib/rbi/model.rb:115
|
23
39
|
sig do
|
24
40
|
params(
|
25
41
|
loc: T.nilable(::RBI::Loc),
|
@@ -29,18 +45,23 @@ class RBI::Tree < ::RBI::NodeWithComments
|
|
29
45
|
end
|
30
46
|
def initialize(loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end
|
31
47
|
|
48
|
+
# source://rbi-0.0.15/lib/rbi/model.rb:122
|
32
49
|
sig { params(node: ::RBI::Node).void }
|
33
50
|
def <<(node); end
|
34
51
|
|
52
|
+
# source://rbi-0.0.15/lib/rbi/printer.rb:224
|
35
53
|
sig { override.params(v: ::RBI::Printer).void }
|
36
54
|
def accept_printer(v); end
|
37
55
|
|
56
|
+
# source://rbi-0.0.15/lib/rbi/rewriters/add_sig_templates.rb:66
|
38
57
|
sig { params(with_todo_comment: T::Boolean).void }
|
39
58
|
def add_sig_templates!(with_todo_comment: T.unsafe(nil)); end
|
40
59
|
|
60
|
+
# source://rbi-0.0.15/lib/rbi/rewriters/annotate.rb:48
|
41
61
|
sig { params(annotation: ::String, annotate_scopes: T::Boolean, annotate_properties: T::Boolean).void }
|
42
62
|
def annotate!(annotation, annotate_scopes: T.unsafe(nil), annotate_properties: T.unsafe(nil)); end
|
43
63
|
|
64
|
+
# source://tapioca-0.9.2/lib/tapioca/rbi_ext/model.rb:38
|
44
65
|
sig do
|
45
66
|
params(
|
46
67
|
name: ::String,
|
@@ -50,15 +71,19 @@ class RBI::Tree < ::RBI::NodeWithComments
|
|
50
71
|
end
|
51
72
|
def create_class(name, superclass_name: T.unsafe(nil), &block); end
|
52
73
|
|
74
|
+
# source://tapioca-0.9.2/lib/tapioca/rbi_ext/model.rb:45
|
53
75
|
sig { params(name: ::String, value: ::String).void }
|
54
76
|
def create_constant(name, value:); end
|
55
77
|
|
78
|
+
# source://tapioca-0.9.2/lib/tapioca/rbi_ext/model.rb:55
|
56
79
|
sig { params(name: ::String).void }
|
57
80
|
def create_extend(name); end
|
58
81
|
|
82
|
+
# source://tapioca-0.9.2/lib/tapioca/rbi_ext/model.rb:50
|
59
83
|
sig { params(name: ::String).void }
|
60
84
|
def create_include(name); end
|
61
85
|
|
86
|
+
# source://tapioca-0.9.2/lib/tapioca/rbi_ext/model.rb:88
|
62
87
|
sig do
|
63
88
|
params(
|
64
89
|
name: ::String,
|
@@ -70,15 +95,19 @@ class RBI::Tree < ::RBI::NodeWithComments
|
|
70
95
|
end
|
71
96
|
def create_method(name, parameters: T.unsafe(nil), return_type: T.unsafe(nil), class_method: T.unsafe(nil), visibility: T.unsafe(nil)); end
|
72
97
|
|
98
|
+
# source://tapioca-0.9.2/lib/tapioca/rbi_ext/model.rb:60
|
73
99
|
sig { params(name: ::String).void }
|
74
100
|
def create_mixes_in_class_methods(name); end
|
75
101
|
|
102
|
+
# source://tapioca-0.9.2/lib/tapioca/rbi_ext/model.rb:25
|
76
103
|
sig { params(name: ::String, block: T.nilable(T.proc.params(scope: ::RBI::Scope).void)).returns(::RBI::Scope) }
|
77
104
|
def create_module(name, &block); end
|
78
105
|
|
106
|
+
# source://tapioca-0.9.2/lib/tapioca/rbi_ext/model.rb:9
|
79
107
|
sig { params(constant: ::Module, block: T.nilable(T.proc.params(scope: ::RBI::Scope).void)).void }
|
80
108
|
def create_path(constant, &block); end
|
81
109
|
|
110
|
+
# source://tapioca-0.9.2/lib/tapioca/rbi_ext/model.rb:74
|
82
111
|
sig do
|
83
112
|
params(
|
84
113
|
name: ::String,
|
@@ -91,18 +120,23 @@ class RBI::Tree < ::RBI::NodeWithComments
|
|
91
120
|
end
|
92
121
|
def create_type_variable(name, type:, variance: T.unsafe(nil), fixed: T.unsafe(nil), upper: T.unsafe(nil), lower: T.unsafe(nil)); end
|
93
122
|
|
123
|
+
# source://rbi-0.0.15/lib/rbi/rewriters/deannotate.rb:40
|
94
124
|
sig { params(annotation: ::String).void }
|
95
125
|
def deannotate!(annotation); end
|
96
126
|
|
127
|
+
# source://rbi-0.0.15/lib/rbi/model.rb:128
|
97
128
|
sig { returns(T::Boolean) }
|
98
129
|
def empty?; end
|
99
130
|
|
131
|
+
# source://rbi-0.0.15/lib/rbi/rewriters/group_nodes.rb:38
|
100
132
|
sig { void }
|
101
133
|
def group_nodes!; end
|
102
134
|
|
135
|
+
# source://rbi-0.0.15/lib/rbi/index.rb:64
|
103
136
|
sig { returns(::RBI::Index) }
|
104
137
|
def index; end
|
105
138
|
|
139
|
+
# source://rbi-0.0.15/lib/rbi/rewriters/merge_trees.rb:318
|
106
140
|
sig do
|
107
141
|
params(
|
108
142
|
other: ::RBI::Tree,
|
@@ -113,49 +147,60 @@ class RBI::Tree < ::RBI::NodeWithComments
|
|
113
147
|
end
|
114
148
|
def merge(other, left_name: T.unsafe(nil), right_name: T.unsafe(nil), keep: T.unsafe(nil)); end
|
115
149
|
|
150
|
+
# source://rbi-0.0.15/lib/rbi/rewriters/nest_non_public_methods.rb:45
|
116
151
|
sig { void }
|
117
152
|
def nest_non_public_methods!; end
|
118
153
|
|
154
|
+
# source://rbi-0.0.15/lib/rbi/rewriters/nest_singleton_methods.rb:35
|
119
155
|
sig { void }
|
120
156
|
def nest_singleton_methods!; end
|
121
157
|
|
158
|
+
# source://rbi-0.0.15/lib/rbi/model.rb:106
|
122
159
|
sig { returns(T::Array[::RBI::Node]) }
|
123
160
|
def nodes; end
|
124
161
|
|
162
|
+
# source://rbi-0.0.15/lib/rbi/printer.rb:231
|
125
163
|
sig { override.returns(T::Boolean) }
|
126
164
|
def oneline?; end
|
127
165
|
|
166
|
+
# source://rbi-0.0.15/lib/rbi/rewriters/sort_nodes.rb:105
|
128
167
|
sig { void }
|
129
168
|
def sort_nodes!; end
|
130
169
|
|
131
170
|
private
|
132
171
|
|
172
|
+
# source://tapioca-0.9.2/lib/tapioca/rbi_ext/model.rb:108
|
133
173
|
sig { params(node: ::RBI::Node).returns(::RBI::Node) }
|
134
174
|
def create_node(node); end
|
135
175
|
|
176
|
+
# source://tapioca-0.9.2/lib/tapioca/rbi_ext/model.rb:103
|
136
177
|
sig { returns(T::Hash[::String, ::RBI::Node]) }
|
137
178
|
def nodes_cache; end
|
138
|
-
|
139
|
-
sig { params(name: ::String).returns(T::Boolean) }
|
140
|
-
def valid_method_name?(name); end
|
141
179
|
end
|
142
180
|
|
143
|
-
|
144
|
-
|
181
|
+
# source://tapioca-0.9.2/lib/tapioca/rbi_ext/model.rb:118
|
145
182
|
class RBI::TypedParam < ::T::Struct
|
146
183
|
const :param, ::RBI::Param
|
147
184
|
const :type, ::String
|
148
185
|
|
149
186
|
class << self
|
187
|
+
# source://sorbet-runtime-0.5.10323/lib/types/struct.rb:13
|
150
188
|
def inherited(s); end
|
151
189
|
end
|
152
190
|
end
|
153
191
|
|
192
|
+
# source://rbi-0.0.15/lib/rbi/version.rb:5
|
154
193
|
RBI::VERSION = T.let(T.unsafe(nil), String)
|
155
194
|
|
195
|
+
# source://tapioca-0.9.2/lib/tapioca/sorbet_ext/generic_name_patch.rb:5
|
156
196
|
module T::Generic
|
197
|
+
# source://tapioca-0.9.2/lib/tapioca/sorbet_ext/generic_name_patch.rb:13
|
157
198
|
def [](*types); end
|
199
|
+
|
200
|
+
# source://tapioca-0.9.2/lib/tapioca/sorbet_ext/generic_name_patch.rb:21
|
158
201
|
def type_member(variance = T.unsafe(nil), fixed: T.unsafe(nil), lower: T.unsafe(nil), upper: T.unsafe(nil), &bounds_proc); end
|
202
|
+
|
203
|
+
# source://tapioca-0.9.2/lib/tapioca/sorbet_ext/generic_name_patch.rb:37
|
159
204
|
def type_template(variance = T.unsafe(nil), fixed: T.unsafe(nil), lower: T.unsafe(nil), upper: T.unsafe(nil), &bounds_proc); end
|
160
205
|
end
|
161
206
|
|
@@ -165,48 +210,348 @@ end
|
|
165
210
|
#
|
166
211
|
# We are interested in the data of the `[]`, `type_member` and `type_template` calls which
|
167
212
|
# are all needed to generate good generic information at runtime.
|
213
|
+
#
|
214
|
+
# source://tapioca-0.9.2/lib/tapioca/sorbet_ext/generic_name_patch.rb:12
|
168
215
|
module T::Generic::TypeStoragePatch
|
216
|
+
# source://tapioca-0.9.2/lib/tapioca/sorbet_ext/generic_name_patch.rb:13
|
169
217
|
def [](*types); end
|
218
|
+
|
219
|
+
# source://tapioca-0.9.2/lib/tapioca/sorbet_ext/generic_name_patch.rb:21
|
170
220
|
def type_member(variance = T.unsafe(nil), fixed: T.unsafe(nil), lower: T.unsafe(nil), upper: T.unsafe(nil), &bounds_proc); end
|
221
|
+
|
222
|
+
# source://tapioca-0.9.2/lib/tapioca/sorbet_ext/generic_name_patch.rb:37
|
171
223
|
def type_template(variance = T.unsafe(nil), fixed: T.unsafe(nil), lower: T.unsafe(nil), upper: T.unsafe(nil), &bounds_proc); end
|
172
224
|
end
|
173
225
|
|
226
|
+
# source://tapioca-0.9.2/lib/tapioca/sorbet_ext/proc_bind_patch.rb:28
|
227
|
+
module T::Private::Methods
|
228
|
+
class << self
|
229
|
+
# source://tapioca-0.9.2/lib/tapioca/sorbet_ext/proc_bind_patch.rb:30
|
230
|
+
def finalize_proc(decl); end
|
231
|
+
end
|
232
|
+
end
|
233
|
+
|
234
|
+
# source://sorbet-runtime-0.5.10323/lib/types/private/methods/_methods.rb:29
|
235
|
+
T::Private::Methods::ARG_NOT_PROVIDED = T.let(T.unsafe(nil), Object)
|
236
|
+
|
237
|
+
class T::Private::Methods::Declaration < ::Struct
|
238
|
+
def bind; end
|
239
|
+
def bind=(_); end
|
240
|
+
def checked; end
|
241
|
+
def checked=(_); end
|
242
|
+
def finalized; end
|
243
|
+
def finalized=(_); end
|
244
|
+
def mod; end
|
245
|
+
def mod=(_); end
|
246
|
+
def mode; end
|
247
|
+
def mode=(_); end
|
248
|
+
def on_failure; end
|
249
|
+
def on_failure=(_); end
|
250
|
+
def override_allow_incompatible; end
|
251
|
+
def override_allow_incompatible=(_); end
|
252
|
+
def params; end
|
253
|
+
def params=(_); end
|
254
|
+
def raw; end
|
255
|
+
def raw=(_); end
|
256
|
+
def returns; end
|
257
|
+
def returns=(_); end
|
258
|
+
def type_parameters; end
|
259
|
+
def type_parameters=(_); end
|
260
|
+
|
261
|
+
class << self
|
262
|
+
def [](*_arg0); end
|
263
|
+
def inspect; end
|
264
|
+
def keyword_init?; end
|
265
|
+
def members; end
|
266
|
+
def new(*_arg0); end
|
267
|
+
end
|
268
|
+
end
|
269
|
+
|
270
|
+
class T::Private::Methods::DeclarationBlock < ::Struct
|
271
|
+
def blk; end
|
272
|
+
def blk=(_); end
|
273
|
+
def final; end
|
274
|
+
def final=(_); end
|
275
|
+
def loc; end
|
276
|
+
def loc=(_); end
|
277
|
+
def mod; end
|
278
|
+
def mod=(_); end
|
279
|
+
def raw; end
|
280
|
+
def raw=(_); end
|
281
|
+
|
282
|
+
class << self
|
283
|
+
def [](*_arg0); end
|
284
|
+
def inspect; end
|
285
|
+
def keyword_init?; end
|
286
|
+
def members; end
|
287
|
+
def new(*_arg0); end
|
288
|
+
end
|
289
|
+
end
|
290
|
+
|
291
|
+
module T::Private::Methods::MethodHooks
|
292
|
+
# source://sorbet-runtime-0.5.10323/lib/types/private/methods/_methods.rb:517
|
293
|
+
def method_added(name); end
|
294
|
+
end
|
295
|
+
|
296
|
+
module T::Private::Methods::Modes
|
297
|
+
class << self
|
298
|
+
# source://sorbet-runtime-0.5.10323/lib/types/private/methods/modes.rb:8
|
299
|
+
def abstract; end
|
300
|
+
|
301
|
+
# source://sorbet-runtime-0.5.10323/lib/types/private/methods/modes.rb:11
|
302
|
+
def overridable; end
|
303
|
+
|
304
|
+
# source://sorbet-runtime-0.5.10323/lib/types/private/methods/modes.rb:17
|
305
|
+
def overridable_override; end
|
306
|
+
|
307
|
+
# source://sorbet-runtime-0.5.10323/lib/types/private/methods/modes.rb:14
|
308
|
+
def override; end
|
309
|
+
|
310
|
+
# source://sorbet-runtime-0.5.10323/lib/types/private/methods/modes.rb:5
|
311
|
+
def standard; end
|
312
|
+
|
313
|
+
# source://sorbet-runtime-0.5.10323/lib/types/private/methods/modes.rb:20
|
314
|
+
def untyped; end
|
315
|
+
end
|
316
|
+
end
|
317
|
+
|
318
|
+
# source://sorbet-runtime-0.5.10323/lib/types/private/methods/modes.rb:23
|
319
|
+
T::Private::Methods::Modes::MODES = T.let(T.unsafe(nil), Array)
|
320
|
+
|
321
|
+
# source://sorbet-runtime-0.5.10323/lib/types/private/methods/modes.rb:27
|
322
|
+
T::Private::Methods::Modes::NON_OVERRIDE_MODES = T.let(T.unsafe(nil), Array)
|
323
|
+
|
324
|
+
# source://sorbet-runtime-0.5.10323/lib/types/private/methods/modes.rb:25
|
325
|
+
T::Private::Methods::Modes::OVERRIDABLE_MODES = T.let(T.unsafe(nil), Array)
|
326
|
+
|
327
|
+
# source://sorbet-runtime-0.5.10323/lib/types/private/methods/modes.rb:26
|
328
|
+
T::Private::Methods::Modes::OVERRIDE_MODES = T.let(T.unsafe(nil), Array)
|
329
|
+
|
330
|
+
# source://sorbet-runtime-0.5.10323/lib/types/private/methods/_methods.rb:30
|
331
|
+
T::Private::Methods::PROC_TYPE = T.let(T.unsafe(nil), Object)
|
332
|
+
|
333
|
+
# source://tapioca-0.9.2/lib/tapioca/sorbet_ext/proc_bind_patch.rb:29
|
334
|
+
module T::Private::Methods::ProcBindPatch
|
335
|
+
# source://tapioca-0.9.2/lib/tapioca/sorbet_ext/proc_bind_patch.rb:30
|
336
|
+
def finalize_proc(decl); end
|
337
|
+
end
|
338
|
+
|
339
|
+
class T::Private::Methods::Signature
|
340
|
+
# source://sorbet-runtime-0.5.10323/lib/types/private/methods/signature.rb:36
|
341
|
+
def initialize(method:, method_name:, raw_arg_types:, raw_return_type:, bind:, mode:, check_level:, on_failure:, parameters: T.unsafe(nil), override_allow_incompatible: T.unsafe(nil), defined_raw: T.unsafe(nil)); end
|
342
|
+
|
343
|
+
# source://sorbet-runtime-0.5.10323/lib/types/private/methods/signature.rb:149
|
344
|
+
def arg_count; end
|
345
|
+
|
346
|
+
# source://sorbet-runtime-0.5.10323/lib/types/private/methods/signature.rb:5
|
347
|
+
def arg_types; end
|
348
|
+
|
349
|
+
# source://sorbet-runtime-0.5.10323/lib/types/private/methods/signature.rb:143
|
350
|
+
def as_alias(alias_name); end
|
351
|
+
|
352
|
+
# source://sorbet-runtime-0.5.10323/lib/types/private/methods/signature.rb:5
|
353
|
+
def bind; end
|
354
|
+
|
355
|
+
# source://sorbet-runtime-0.5.10323/lib/types/private/methods/signature.rb:5
|
356
|
+
def block_name; end
|
357
|
+
|
358
|
+
# source://sorbet-runtime-0.5.10323/lib/types/private/methods/signature.rb:5
|
359
|
+
def block_type; end
|
360
|
+
|
361
|
+
# source://sorbet-runtime-0.5.10323/lib/types/private/methods/signature.rb:5
|
362
|
+
def check_level; end
|
363
|
+
|
364
|
+
# source://sorbet-runtime-0.5.10323/lib/types/private/methods/signature.rb:5
|
365
|
+
def defined_raw; end
|
366
|
+
|
367
|
+
# source://sorbet-runtime-0.5.10323/lib/types/private/methods/signature.rb:161
|
368
|
+
def dsl_method; end
|
369
|
+
|
370
|
+
# source://sorbet-runtime-0.5.10323/lib/types/private/methods/signature.rb:166
|
371
|
+
def each_args_value_type(args); end
|
372
|
+
|
373
|
+
# source://sorbet-runtime-0.5.10323/lib/types/private/methods/signature.rb:5
|
374
|
+
def has_keyrest; end
|
375
|
+
|
376
|
+
# source://sorbet-runtime-0.5.10323/lib/types/private/methods/signature.rb:5
|
377
|
+
def has_rest; end
|
378
|
+
|
379
|
+
# source://sorbet-runtime-0.5.10323/lib/types/private/methods/signature.rb:5
|
380
|
+
def keyrest_name; end
|
381
|
+
|
382
|
+
# source://sorbet-runtime-0.5.10323/lib/types/private/methods/signature.rb:5
|
383
|
+
def keyrest_type; end
|
384
|
+
|
385
|
+
# source://sorbet-runtime-0.5.10323/lib/types/private/methods/signature.rb:153
|
386
|
+
def kwarg_names; end
|
387
|
+
|
388
|
+
# source://sorbet-runtime-0.5.10323/lib/types/private/methods/signature.rb:5
|
389
|
+
def kwarg_types; end
|
390
|
+
|
391
|
+
# source://sorbet-runtime-0.5.10323/lib/types/private/methods/signature.rb:5
|
392
|
+
def method; end
|
393
|
+
|
394
|
+
# source://sorbet-runtime-0.5.10323/lib/types/private/methods/signature.rb:215
|
395
|
+
def method_desc; end
|
396
|
+
|
397
|
+
# source://sorbet-runtime-0.5.10323/lib/types/private/methods/signature.rb:5
|
398
|
+
def method_name; end
|
399
|
+
|
400
|
+
# source://sorbet-runtime-0.5.10323/lib/types/private/methods/signature.rb:5
|
401
|
+
def mode; end
|
402
|
+
|
403
|
+
# source://sorbet-runtime-0.5.10323/lib/types/private/methods/signature.rb:5
|
404
|
+
def on_failure; end
|
405
|
+
|
406
|
+
# source://sorbet-runtime-0.5.10323/lib/types/private/methods/signature.rb:5
|
407
|
+
def override_allow_incompatible; end
|
408
|
+
|
409
|
+
# source://sorbet-runtime-0.5.10323/lib/types/private/methods/signature.rb:157
|
410
|
+
def owner; end
|
411
|
+
|
412
|
+
# source://sorbet-runtime-0.5.10323/lib/types/private/methods/signature.rb:5
|
413
|
+
def parameters; end
|
414
|
+
|
415
|
+
# source://sorbet-runtime-0.5.10323/lib/types/private/methods/signature.rb:5
|
416
|
+
def req_arg_count; end
|
417
|
+
|
418
|
+
# source://sorbet-runtime-0.5.10323/lib/types/private/methods/signature.rb:5
|
419
|
+
def req_kwarg_names; end
|
420
|
+
|
421
|
+
# source://sorbet-runtime-0.5.10323/lib/types/private/methods/signature.rb:5
|
422
|
+
def rest_name; end
|
423
|
+
|
424
|
+
# source://sorbet-runtime-0.5.10323/lib/types/private/methods/signature.rb:5
|
425
|
+
def rest_type; end
|
426
|
+
|
427
|
+
# source://sorbet-runtime-0.5.10323/lib/types/private/methods/signature.rb:5
|
428
|
+
def return_type; end
|
429
|
+
|
430
|
+
protected
|
431
|
+
|
432
|
+
# source://sorbet-runtime-0.5.10323/lib/types/private/methods/signature.rb:140
|
433
|
+
def method_name=(_arg0); end
|
434
|
+
|
435
|
+
class << self
|
436
|
+
# source://sorbet-runtime-0.5.10323/lib/types/private/methods/signature.rb:11
|
437
|
+
def new_untyped(method:, mode: T.unsafe(nil), parameters: T.unsafe(nil)); end
|
438
|
+
end
|
439
|
+
end
|
440
|
+
|
441
|
+
# source://sorbet-runtime-0.5.10323/lib/types/private/methods/signature.rb:224
|
442
|
+
T::Private::Methods::Signature::EMPTY_HASH = T.let(T.unsafe(nil), Hash)
|
443
|
+
|
444
|
+
module T::Private::Methods::SignatureValidation
|
445
|
+
class << self
|
446
|
+
# source://sorbet-runtime-0.5.10323/lib/types/private/methods/signature_validation.rb:8
|
447
|
+
def validate(signature); end
|
448
|
+
|
449
|
+
# source://sorbet-runtime-0.5.10323/lib/types/private/methods/signature_validation.rb:79
|
450
|
+
def validate_non_override_mode(signature); end
|
451
|
+
|
452
|
+
# source://sorbet-runtime-0.5.10323/lib/types/private/methods/signature_validation.rb:58
|
453
|
+
def validate_override_mode(signature, super_signature); end
|
454
|
+
|
455
|
+
# source://sorbet-runtime-0.5.10323/lib/types/private/methods/signature_validation.rb:116
|
456
|
+
def validate_override_shape(signature, super_signature); end
|
457
|
+
|
458
|
+
# source://sorbet-runtime-0.5.10323/lib/types/private/methods/signature_validation.rb:172
|
459
|
+
def validate_override_types(signature, super_signature); end
|
460
|
+
|
461
|
+
private
|
462
|
+
|
463
|
+
# source://sorbet-runtime-0.5.10323/lib/types/private/methods/signature_validation.rb:211
|
464
|
+
def base_override_loc_str(signature, super_signature); end
|
465
|
+
|
466
|
+
# source://sorbet-runtime-0.5.10323/lib/types/private/methods/signature_validation.rb:217
|
467
|
+
def method_loc_str(method); end
|
468
|
+
|
469
|
+
# source://sorbet-runtime-0.5.10323/lib/types/private/methods/signature_validation.rb:50
|
470
|
+
def pretty_mode(signature); end
|
471
|
+
end
|
472
|
+
end
|
473
|
+
|
474
|
+
# source://sorbet-runtime-0.5.10323/lib/types/private/methods/signature_validation.rb:5
|
475
|
+
T::Private::Methods::SignatureValidation::Methods = T::Private::Methods
|
476
|
+
|
477
|
+
# source://sorbet-runtime-0.5.10323/lib/types/private/methods/signature_validation.rb:6
|
478
|
+
T::Private::Methods::SignatureValidation::Modes = T::Private::Methods::Modes
|
479
|
+
|
480
|
+
module T::Private::Methods::SingletonMethodHooks
|
481
|
+
# source://sorbet-runtime-0.5.10323/lib/types/private/methods/_methods.rb:524
|
482
|
+
def singleton_method_added(name); end
|
483
|
+
end
|
484
|
+
|
485
|
+
# source://sorbet-runtime-0.5.10323/lib/types/private/methods/_methods.rb:581
|
486
|
+
T::Private::Methods::TOP_SELF = T.let(T.unsafe(nil), Object)
|
487
|
+
|
488
|
+
class T::Types::Proc < ::T::Types::Base; end
|
489
|
+
|
490
|
+
# source://tapioca-0.9.2/lib/tapioca/sorbet_ext/proc_bind_patch.rb:6
|
491
|
+
module T::Types::ProcBindPatch
|
492
|
+
# source://tapioca-0.9.2/lib/tapioca/sorbet_ext/proc_bind_patch.rb:7
|
493
|
+
def initialize(arg_types, returns, bind = T.unsafe(nil)); end
|
494
|
+
|
495
|
+
# source://tapioca-0.9.2/lib/tapioca/sorbet_ext/proc_bind_patch.rb:15
|
496
|
+
def name; end
|
497
|
+
end
|
498
|
+
|
499
|
+
# source://tapioca-0.9.2/lib/tapioca/sorbet_ext/name_patch.rb:6
|
174
500
|
class T::Types::Simple < ::T::Types::Base
|
501
|
+
# source://tapioca-0.9.2/lib/tapioca/sorbet_ext/generic_name_patch.rb:64
|
175
502
|
def name; end
|
176
503
|
end
|
177
504
|
|
505
|
+
# source://tapioca-0.9.2/lib/tapioca/sorbet_ext/generic_name_patch.rb:59
|
178
506
|
module T::Types::Simple::GenericPatch
|
179
507
|
# This method intercepts calls to the `name` method for simple types, so that
|
180
508
|
# it can ask the name to the type if the type is generic, since, by this point,
|
181
509
|
# we've created a clone of that type with the `name` method returning the
|
182
510
|
# appropriate name for that specific concrete type.
|
511
|
+
#
|
512
|
+
# source://tapioca-0.9.2/lib/tapioca/sorbet_ext/generic_name_patch.rb:64
|
183
513
|
def name; end
|
184
514
|
end
|
185
515
|
|
516
|
+
# source://tapioca-0.9.2/lib/tapioca/sorbet_ext/name_patch.rb:7
|
186
517
|
module T::Types::Simple::NamePatch
|
518
|
+
# source://tapioca-0.9.2/lib/tapioca/sorbet_ext/name_patch.rb:10
|
187
519
|
def name; end
|
520
|
+
|
521
|
+
# source://tapioca-0.9.2/lib/tapioca/sorbet_ext/name_patch.rb:16
|
522
|
+
def qualified_name_of(constant); end
|
188
523
|
end
|
189
524
|
|
525
|
+
# source://tapioca-0.9.2/lib/tapioca/sorbet_ext/name_patch.rb:8
|
526
|
+
T::Types::Simple::NamePatch::NAME_METHOD = T.let(T.unsafe(nil), UnboundMethod)
|
527
|
+
|
190
528
|
module T::Types::Simple::Private; end
|
191
529
|
|
192
530
|
module T::Types::Simple::Private::Pool
|
193
531
|
class << self
|
532
|
+
# source://sorbet-runtime-0.5.10323/lib/types/types/simple.rb:62
|
194
533
|
def type_for_module(mod); end
|
195
534
|
end
|
196
535
|
end
|
197
536
|
|
537
|
+
# source://tapioca-0.9.2/lib/tapioca/sorbet_ext/generic_name_patch.rb:80
|
198
538
|
module T::Utils
|
199
539
|
class << self
|
540
|
+
# source://tapioca-0.9.2/lib/tapioca/sorbet_ext/generic_name_patch.rb:82
|
200
541
|
def coerce(val); end
|
201
542
|
end
|
202
543
|
end
|
203
544
|
|
545
|
+
# source://tapioca-0.9.2/lib/tapioca/sorbet_ext/generic_name_patch.rb:81
|
204
546
|
module T::Utils::CoercePatch
|
547
|
+
# source://tapioca-0.9.2/lib/tapioca/sorbet_ext/generic_name_patch.rb:82
|
205
548
|
def coerce(val); end
|
206
549
|
end
|
207
550
|
|
551
|
+
# source://tapioca-0.9.2/lib/tapioca/runtime/trackers/autoload.rb:4
|
208
552
|
module Tapioca
|
209
553
|
class << self
|
554
|
+
# source://tapioca-0.9.2/lib/tapioca.rb:14
|
210
555
|
sig do
|
211
556
|
type_parameters(:Result)
|
212
557
|
.params(
|
@@ -217,83 +562,193 @@ module Tapioca
|
|
217
562
|
end
|
218
563
|
end
|
219
564
|
|
565
|
+
# source://tapioca-0.9.2/lib/tapioca.rb:31
|
220
566
|
Tapioca::BINARY_FILE = T.let(T.unsafe(nil), String)
|
567
|
+
|
568
|
+
# source://tapioca-0.9.2/lib/tapioca.rb:51
|
221
569
|
Tapioca::CENTRAL_REPO_ANNOTATIONS_DIR = T.let(T.unsafe(nil), String)
|
570
|
+
|
571
|
+
# source://tapioca-0.9.2/lib/tapioca.rb:50
|
222
572
|
Tapioca::CENTRAL_REPO_INDEX_PATH = T.let(T.unsafe(nil), String)
|
573
|
+
|
574
|
+
# source://tapioca-0.9.2/lib/tapioca.rb:49
|
223
575
|
Tapioca::CENTRAL_REPO_ROOT_URI = T.let(T.unsafe(nil), String)
|
224
576
|
|
577
|
+
# source://tapioca-0.9.2/lib/tapioca/cli.rb:5
|
225
578
|
class Tapioca::Cli < ::Thor
|
226
579
|
include ::Tapioca::CliHelper
|
227
580
|
include ::Tapioca::ConfigHelper
|
228
|
-
include ::Tapioca::
|
229
|
-
include ::Tapioca::ShimsHelper
|
581
|
+
include ::Tapioca::EnvHelper
|
230
582
|
|
583
|
+
# source://tapioca-0.9.2/lib/tapioca/cli.rb:322
|
231
584
|
def __print_version; end
|
585
|
+
|
586
|
+
# source://tapioca-0.9.2/lib/tapioca/cli.rb:304
|
232
587
|
def annotations; end
|
588
|
+
|
589
|
+
# source://tapioca-0.9.2/lib/tapioca/cli.rb:279
|
233
590
|
def check_shims; end
|
591
|
+
|
592
|
+
# source://tapioca-0.9.2/lib/tapioca/cli.rb:36
|
593
|
+
def configure; end
|
594
|
+
|
595
|
+
# source://tapioca-0.9.2/lib/tapioca/cli.rb:119
|
234
596
|
def dsl(*constants); end
|
597
|
+
|
598
|
+
# source://tapioca-0.9.2/lib/tapioca/cli.rb:224
|
235
599
|
def gem(*gems); end
|
600
|
+
|
601
|
+
# source://tapioca-0.9.2/lib/tapioca/cli.rb:25
|
236
602
|
def init; end
|
603
|
+
|
604
|
+
# source://tapioca-0.9.2/lib/tapioca/cli.rb:47
|
237
605
|
def require; end
|
606
|
+
|
607
|
+
# source://tapioca-0.9.2/lib/tapioca/cli.rb:66
|
238
608
|
def todo; end
|
239
609
|
|
610
|
+
private
|
611
|
+
|
612
|
+
# source://tapioca-0.9.2/lib/tapioca/cli.rb:334
|
613
|
+
def print_init_next_steps; end
|
614
|
+
|
240
615
|
class << self
|
616
|
+
# source://tapioca-0.9.2/lib/tapioca/cli.rb:327
|
241
617
|
def exit_on_failure?; end
|
242
618
|
end
|
243
619
|
end
|
244
620
|
|
621
|
+
# source://tapioca-0.9.2/lib/tapioca/cli.rb:10
|
245
622
|
Tapioca::Cli::FILE_HEADER_OPTION_DESC = T.let(T.unsafe(nil), String)
|
246
623
|
|
624
|
+
# source://tapioca-0.9.2/lib/tapioca/helpers/cli_helper.rb:5
|
247
625
|
module Tapioca::CliHelper
|
248
626
|
requires_ancestor { Thor::Shell }
|
249
627
|
|
628
|
+
# source://tapioca-0.9.2/lib/tapioca/helpers/cli_helper.rb:33
|
629
|
+
sig { params(options: T::Hash[::Symbol, T.untyped]).returns(T.nilable(::String)) }
|
630
|
+
def netrc_file(options); end
|
631
|
+
|
632
|
+
# source://tapioca-0.9.2/lib/tapioca/helpers/cli_helper.rb:26
|
250
633
|
sig { params(options: T::Hash[::Symbol, T.untyped]).returns(::Tapioca::RBIFormatter) }
|
251
634
|
def rbi_formatter(options); end
|
252
635
|
|
636
|
+
# source://tapioca-0.9.2/lib/tapioca/helpers/cli_helper.rb:12
|
253
637
|
sig { params(message: ::String, color: T.any(::Symbol, T::Array[::Symbol])).void }
|
254
638
|
def say_error(message = T.unsafe(nil), *color); end
|
255
639
|
end
|
256
640
|
|
641
|
+
# source://tapioca-0.9.2/lib/tapioca/commands.rb:5
|
257
642
|
module Tapioca::Commands; end
|
258
643
|
|
644
|
+
# source://tapioca-0.9.2/lib/tapioca/commands/annotations.rb:6
|
259
645
|
class Tapioca::Commands::Annotations < ::Tapioca::Commands::Command
|
260
|
-
|
261
|
-
|
646
|
+
# source://tapioca-0.9.2/lib/tapioca/commands/annotations.rb:18
|
647
|
+
sig do
|
648
|
+
params(
|
649
|
+
central_repo_root_uris: T::Array[::String],
|
650
|
+
auth: T.nilable(::String),
|
651
|
+
netrc_file: T.nilable(::String),
|
652
|
+
central_repo_index_path: ::String,
|
653
|
+
typed_overrides: T::Hash[::String, ::String]
|
654
|
+
).void
|
655
|
+
end
|
656
|
+
def initialize(central_repo_root_uris:, auth: T.unsafe(nil), netrc_file: T.unsafe(nil), central_repo_index_path: T.unsafe(nil), typed_overrides: T.unsafe(nil)); end
|
262
657
|
|
658
|
+
# source://tapioca-0.9.2/lib/tapioca/commands/annotations.rb:36
|
263
659
|
sig { override.void }
|
264
660
|
def execute; end
|
265
661
|
|
266
662
|
private
|
267
663
|
|
664
|
+
# source://tapioca-0.9.2/lib/tapioca/commands/annotations.rb:189
|
268
665
|
sig { params(name: ::String, content: ::String).returns(::String) }
|
269
666
|
def add_header(name, content); end
|
270
667
|
|
271
|
-
|
272
|
-
|
668
|
+
# source://tapioca-0.9.2/lib/tapioca/commands/annotations.rb:207
|
669
|
+
sig { params(name: ::String, content: ::String).returns(::String) }
|
670
|
+
def apply_typed_override(name, content); end
|
273
671
|
|
672
|
+
# source://tapioca-0.9.2/lib/tapioca/commands/annotations.rb:130
|
673
|
+
sig { params(repo_uris: T::Array[::String], gem_name: ::String).void }
|
674
|
+
def fetch_annotation(repo_uris, gem_name); end
|
675
|
+
|
676
|
+
# source://tapioca-0.9.2/lib/tapioca/commands/annotations.rb:110
|
274
677
|
sig { params(gem_names: T::Array[::String]).returns(T::Array[::String]) }
|
275
678
|
def fetch_annotations(gem_names); end
|
276
679
|
|
277
|
-
|
278
|
-
|
680
|
+
# source://tapioca-0.9.2/lib/tapioca/commands/annotations.rb:148
|
681
|
+
sig { params(repo_uri: ::String, path: ::String).returns(T.nilable(::String)) }
|
682
|
+
def fetch_file(repo_uri, path); end
|
683
|
+
|
684
|
+
# source://tapioca-0.9.2/lib/tapioca/commands/annotations.rb:165
|
685
|
+
sig { params(repo_uri: ::String, path: ::String).returns(T.nilable(::String)) }
|
686
|
+
def fetch_http_file(repo_uri, path); end
|
279
687
|
|
280
|
-
|
281
|
-
|
688
|
+
# source://tapioca-0.9.2/lib/tapioca/commands/annotations.rb:99
|
689
|
+
sig { params(repo_uri: ::String, repo_number: T.nilable(::Integer)).returns(T.nilable(Tapioca::RepoIndex)) }
|
690
|
+
def fetch_index(repo_uri, repo_number:); end
|
282
691
|
|
283
|
-
|
284
|
-
|
692
|
+
# source://tapioca-0.9.2/lib/tapioca/commands/annotations.rb:77
|
693
|
+
sig { returns(T::Hash[::String, Tapioca::RepoIndex]) }
|
694
|
+
def fetch_indexes; end
|
285
695
|
|
286
|
-
|
287
|
-
|
696
|
+
# source://tapioca-0.9.2/lib/tapioca/commands/annotations.rb:157
|
697
|
+
sig { params(repo_uri: ::String, path: ::String).returns(T.nilable(::String)) }
|
698
|
+
def fetch_local_file(repo_uri, path); end
|
288
699
|
|
700
|
+
# source://tapioca-0.9.2/lib/tapioca/commands/annotations.rb:46
|
289
701
|
sig { returns(T::Array[::String]) }
|
290
702
|
def list_gemfile_gems; end
|
291
703
|
|
704
|
+
# source://tapioca-0.9.2/lib/tapioca/commands/annotations.rb:219
|
705
|
+
sig { params(gem_name: ::String, contents: T::Array[::String]).returns(T.nilable(::String)) }
|
706
|
+
def merge_files(gem_name, contents); end
|
707
|
+
|
708
|
+
# source://tapioca-0.9.2/lib/tapioca/commands/annotations.rb:56
|
292
709
|
sig { params(project_gems: T::Array[::String]).void }
|
293
710
|
def remove_expired_annotations(project_gems); end
|
711
|
+
|
712
|
+
# source://tapioca-0.9.2/lib/tapioca/commands/annotations.rb:246
|
713
|
+
sig { returns(T::Hash[::String, T.nilable(::String)]) }
|
714
|
+
def repo_tokens; end
|
715
|
+
|
716
|
+
# source://tapioca-0.9.2/lib/tapioca/commands/annotations.rb:274
|
717
|
+
sig { params(path: ::String, repo_uri: ::String, message: ::String).void }
|
718
|
+
def say_http_error(path, repo_uri, message:); end
|
719
|
+
|
720
|
+
# source://tapioca-0.9.2/lib/tapioca/commands/annotations.rb:258
|
721
|
+
sig { params(repo_uri: ::String).returns(T.nilable(::String)) }
|
722
|
+
def token_for(repo_uri); end
|
723
|
+
end
|
724
|
+
|
725
|
+
# source://tapioca-0.9.2/lib/tapioca/commands/check_shims.rb:6
|
726
|
+
class Tapioca::Commands::CheckShims < ::Tapioca::Commands::Command
|
727
|
+
include ::Tapioca::SorbetHelper
|
728
|
+
include ::Tapioca::RBIFilesHelper
|
729
|
+
|
730
|
+
# source://tapioca-0.9.2/lib/tapioca/commands/check_shims.rb:22
|
731
|
+
sig do
|
732
|
+
params(
|
733
|
+
gem_rbi_dir: ::String,
|
734
|
+
dsl_rbi_dir: ::String,
|
735
|
+
annotations_rbi_dir: ::String,
|
736
|
+
shim_rbi_dir: ::String,
|
737
|
+
todo_rbi_file: ::String,
|
738
|
+
payload: T::Boolean,
|
739
|
+
number_of_workers: T.nilable(::Integer)
|
740
|
+
).void
|
741
|
+
end
|
742
|
+
def initialize(gem_rbi_dir:, dsl_rbi_dir:, annotations_rbi_dir:, shim_rbi_dir:, todo_rbi_file:, payload:, number_of_workers:); end
|
743
|
+
|
744
|
+
# source://tapioca-0.9.2/lib/tapioca/commands/check_shims.rb:42
|
745
|
+
sig { override.void }
|
746
|
+
def execute; end
|
294
747
|
end
|
295
748
|
|
296
749
|
# @abstract It cannont be directly instantiated. Subclasses must implement the `abstract` methods below.
|
750
|
+
#
|
751
|
+
# source://tapioca-0.9.2/lib/tapioca/commands/command.rb:6
|
297
752
|
class Tapioca::Commands::Command
|
298
753
|
include ::Thor::Base
|
299
754
|
include ::Thor::Invocation
|
@@ -304,18 +759,23 @@ class Tapioca::Commands::Command
|
|
304
759
|
|
305
760
|
abstract!
|
306
761
|
|
762
|
+
# source://tapioca-0.9.2/lib/tapioca/commands/command.rb:20
|
307
763
|
sig { void }
|
308
764
|
def initialize; end
|
309
765
|
|
310
766
|
# @abstract
|
767
|
+
#
|
768
|
+
# source://tapioca-0.9.2/lib/tapioca/commands/command.rb:25
|
311
769
|
sig { abstract.void }
|
312
770
|
def execute; end
|
313
771
|
|
772
|
+
# source://thor-1.2.1/lib/thor/base.rb:139
|
314
773
|
sig { returns(::Thor::Actions) }
|
315
774
|
def file_writer; end
|
316
775
|
|
317
776
|
private
|
318
777
|
|
778
|
+
# source://tapioca-0.9.2/lib/tapioca/commands/command.rb:46
|
319
779
|
sig do
|
320
780
|
params(
|
321
781
|
path: T.any(::Pathname, ::String),
|
@@ -327,22 +787,64 @@ class Tapioca::Commands::Command
|
|
327
787
|
end
|
328
788
|
def create_file(path, content, force: T.unsafe(nil), skip: T.unsafe(nil), verbose: T.unsafe(nil)); end
|
329
789
|
|
790
|
+
# source://tapioca-0.9.2/lib/tapioca/commands/command.rb:30
|
330
791
|
sig { params(command: ::Symbol, args: ::String).returns(::String) }
|
331
792
|
def default_command(command, *args); end
|
332
793
|
|
794
|
+
# source://tapioca-0.9.2/lib/tapioca/commands/command.rb:56
|
333
795
|
sig { params(path: T.any(::Pathname, ::String), verbose: T::Boolean).void }
|
334
796
|
def remove_file(path, verbose: T.unsafe(nil)); end
|
335
797
|
end
|
336
798
|
|
799
|
+
# source://tapioca-0.9.2/lib/tapioca/commands/command.rb:10
|
337
800
|
class Tapioca::Commands::Command::FileWriter < ::Thor
|
338
801
|
include ::Thor::Actions
|
339
802
|
extend ::Thor::Actions::ClassMethods
|
340
803
|
end
|
341
804
|
|
805
|
+
# source://tapioca-0.9.2/lib/tapioca/commands/configure.rb:6
|
806
|
+
class Tapioca::Commands::Configure < ::Tapioca::Commands::Command
|
807
|
+
# source://tapioca-0.9.2/lib/tapioca/commands/configure.rb:14
|
808
|
+
sig { params(sorbet_config: ::String, tapioca_config: ::String, default_postrequire: ::String).void }
|
809
|
+
def initialize(sorbet_config:, tapioca_config:, default_postrequire:); end
|
810
|
+
|
811
|
+
# source://tapioca-0.9.2/lib/tapioca/commands/configure.rb:30
|
812
|
+
sig { override.void }
|
813
|
+
def execute; end
|
814
|
+
|
815
|
+
private
|
816
|
+
|
817
|
+
# source://tapioca-0.9.2/lib/tapioca/commands/configure.rb:78
|
818
|
+
sig { void }
|
819
|
+
def create_binstub; end
|
820
|
+
|
821
|
+
# source://tapioca-0.9.2/lib/tapioca/commands/configure.rb:68
|
822
|
+
sig { void }
|
823
|
+
def create_post_require; end
|
824
|
+
|
825
|
+
# source://tapioca-0.9.2/lib/tapioca/commands/configure.rb:40
|
826
|
+
sig { void }
|
827
|
+
def create_sorbet_config; end
|
828
|
+
|
829
|
+
# source://tapioca-0.9.2/lib/tapioca/commands/configure.rb:49
|
830
|
+
sig { void }
|
831
|
+
def create_tapioca_config; end
|
832
|
+
|
833
|
+
# source://tapioca-0.9.2/lib/tapioca/commands/configure.rb:91
|
834
|
+
sig { returns(::Bundler::Installer) }
|
835
|
+
def installer; end
|
836
|
+
|
837
|
+
# source://tapioca-0.9.2/lib/tapioca/commands/configure.rb:96
|
838
|
+
sig { returns(::Bundler::StubSpecification) }
|
839
|
+
def spec; end
|
840
|
+
end
|
841
|
+
|
842
|
+
# source://tapioca-0.9.2/lib/tapioca/commands/dsl.rb:6
|
342
843
|
class Tapioca::Commands::Dsl < ::Tapioca::Commands::Command
|
343
844
|
include ::Tapioca::SorbetHelper
|
344
|
-
include ::Tapioca::
|
845
|
+
include ::Tapioca::RBIFilesHelper
|
345
846
|
|
847
|
+
# source://tapioca-0.9.2/lib/tapioca/commands/dsl.rb:28
|
346
848
|
sig do
|
347
849
|
params(
|
348
850
|
requested_constants: T::Array[::String],
|
@@ -363,17 +865,21 @@ class Tapioca::Commands::Dsl < ::Tapioca::Commands::Command
|
|
363
865
|
end
|
364
866
|
def initialize(requested_constants:, outpath:, only:, exclude:, file_header:, compiler_path:, tapioca_path:, should_verify: T.unsafe(nil), quiet: T.unsafe(nil), verbose: T.unsafe(nil), number_of_workers: T.unsafe(nil), auto_strictness: T.unsafe(nil), gem_dir: T.unsafe(nil), rbi_formatter: T.unsafe(nil)); end
|
365
867
|
|
868
|
+
# source://tapioca-0.9.2/lib/tapioca/commands/dsl.rb:65
|
366
869
|
sig { override.void }
|
367
870
|
def execute; end
|
368
871
|
|
369
872
|
private
|
370
873
|
|
874
|
+
# source://tapioca-0.9.2/lib/tapioca/commands/dsl.rb:147
|
371
875
|
sig { void }
|
372
876
|
def abort_if_pending_migrations!; end
|
373
877
|
|
878
|
+
# source://tapioca-0.9.2/lib/tapioca/commands/dsl.rb:322
|
374
879
|
sig { params(cause: ::Symbol, files: T::Array[::String]).returns(::String) }
|
375
880
|
def build_error_for_files(cause, files); end
|
376
881
|
|
882
|
+
# source://tapioca-0.9.2/lib/tapioca/commands/dsl.rb:246
|
377
883
|
sig do
|
378
884
|
params(
|
379
885
|
constant_name: ::String,
|
@@ -384,62 +890,81 @@ class Tapioca::Commands::Dsl < ::Tapioca::Commands::Command
|
|
384
890
|
end
|
385
891
|
def compile_dsl_rbi(constant_name, rbi, outpath: T.unsafe(nil), quiet: T.unsafe(nil)); end
|
386
892
|
|
893
|
+
# source://tapioca-0.9.2/lib/tapioca/commands/dsl.rb:186
|
387
894
|
sig { params(constant_names: T::Array[::String]).returns(T::Array[::Module]) }
|
388
895
|
def constantize(constant_names); end
|
389
896
|
|
897
|
+
# source://tapioca-0.9.2/lib/tapioca/commands/dsl.rb:208
|
390
898
|
sig { params(compiler_names: T::Array[::String]).returns(T::Array[T.class_of(Tapioca::Dsl::Compiler)]) }
|
391
899
|
def constantize_compilers(compiler_names); end
|
392
900
|
|
901
|
+
# source://tapioca-0.9.2/lib/tapioca/commands/dsl.rb:285
|
393
902
|
sig { params(constant_name: ::String).returns(::Pathname) }
|
394
903
|
def dsl_rbi_filename(constant_name); end
|
395
904
|
|
905
|
+
# source://tapioca-0.9.2/lib/tapioca/commands/dsl.rb:173
|
396
906
|
sig { params(requested_constants: T::Array[::String], path: ::Pathname).returns(T::Set[::Pathname]) }
|
397
907
|
def existing_rbi_filenames(requested_constants, path: T.unsafe(nil)); end
|
398
908
|
|
909
|
+
# source://tapioca-0.9.2/lib/tapioca/commands/dsl.rb:380
|
399
910
|
sig { params(constant: ::String).returns(::String) }
|
400
911
|
def generate_command_for(constant); end
|
401
912
|
|
913
|
+
# source://tapioca-0.9.2/lib/tapioca/commands/dsl.rb:135
|
402
914
|
sig { params(eager_load: T::Boolean).void }
|
403
915
|
def load_application(eager_load:); end
|
404
916
|
|
917
|
+
# source://tapioca-0.9.2/lib/tapioca/commands/dsl.rb:158
|
405
918
|
sig { void }
|
406
919
|
def load_dsl_compilers; end
|
407
920
|
|
921
|
+
# source://tapioca-0.9.2/lib/tapioca/commands/dsl.rb:385
|
408
922
|
sig { void }
|
409
923
|
def load_dsl_extensions; end
|
410
924
|
|
925
|
+
# source://tapioca-0.9.2/lib/tapioca/commands/dsl.rb:358
|
411
926
|
sig { returns(::Tapioca::Runtime::Loader) }
|
412
927
|
def loader; end
|
413
928
|
|
929
|
+
# source://tapioca-0.9.2/lib/tapioca/commands/dsl.rb:264
|
414
930
|
sig { params(dir: ::Pathname).void }
|
415
931
|
def perform_dsl_verification(dir); end
|
416
932
|
|
933
|
+
# source://tapioca-0.9.2/lib/tapioca/commands/dsl.rb:273
|
417
934
|
sig { params(files: T::Set[::Pathname]).void }
|
418
935
|
def purge_stale_dsl_rbi_files(files); end
|
419
936
|
|
937
|
+
# source://tapioca-0.9.2/lib/tapioca/commands/dsl.rb:375
|
420
938
|
sig { params(constant: ::String).returns(::String) }
|
421
939
|
def rbi_filename_for(constant); end
|
422
940
|
|
941
|
+
# source://tapioca-0.9.2/lib/tapioca/commands/dsl.rb:351
|
423
942
|
sig { params(path: ::Pathname).returns(T::Array[::Pathname]) }
|
424
943
|
def rbi_files_in(path); end
|
425
944
|
|
945
|
+
# source://tapioca-0.9.2/lib/tapioca/commands/dsl.rb:331
|
426
946
|
sig { params(diff: T::Hash[::String, ::Symbol], command: ::Symbol).void }
|
427
947
|
def report_diff_and_exit_if_out_of_date(diff, command); end
|
428
948
|
|
949
|
+
# source://tapioca-0.9.2/lib/tapioca/commands/dsl.rb:226
|
429
950
|
sig { params(name: ::String).returns(T.nilable(T.class_of(Tapioca::Dsl::Compiler))) }
|
430
951
|
def resolve(name); end
|
431
952
|
|
953
|
+
# source://tapioca-0.9.2/lib/tapioca/commands/dsl.rb:363
|
432
954
|
sig { params(class_name: ::String).returns(::String) }
|
433
955
|
def underscore(class_name); end
|
434
956
|
|
957
|
+
# source://tapioca-0.9.2/lib/tapioca/commands/dsl.rb:290
|
435
958
|
sig { params(tmp_dir: ::Pathname).returns(T::Hash[::String, ::Symbol]) }
|
436
959
|
def verify_dsl_rbi(tmp_dir:); end
|
437
960
|
end
|
438
961
|
|
962
|
+
# source://tapioca-0.9.2/lib/tapioca/commands/gem.rb:6
|
439
963
|
class Tapioca::Commands::Gem < ::Tapioca::Commands::Command
|
440
964
|
include ::Tapioca::SorbetHelper
|
441
|
-
include ::Tapioca::
|
965
|
+
include ::Tapioca::RBIFilesHelper
|
442
966
|
|
967
|
+
# source://tapioca-0.9.2/lib/tapioca/commands/gem.rb:28
|
443
968
|
sig do
|
444
969
|
params(
|
445
970
|
gem_names: T::Array[::String],
|
@@ -449,7 +974,8 @@ class Tapioca::Commands::Gem < ::Tapioca::Commands::Command
|
|
449
974
|
typed_overrides: T::Hash[::String, ::String],
|
450
975
|
outpath: ::Pathname,
|
451
976
|
file_header: T::Boolean,
|
452
|
-
|
977
|
+
include_doc: T::Boolean,
|
978
|
+
include_loc: T::Boolean,
|
453
979
|
include_exported_rbis: T::Boolean,
|
454
980
|
number_of_workers: T.nilable(::Integer),
|
455
981
|
auto_strictness: T::Boolean,
|
@@ -457,154 +983,164 @@ class Tapioca::Commands::Gem < ::Tapioca::Commands::Command
|
|
457
983
|
rbi_formatter: ::Tapioca::RBIFormatter
|
458
984
|
).void
|
459
985
|
end
|
460
|
-
def initialize(gem_names:, exclude:, prerequire:, postrequire:, typed_overrides:, outpath:, file_header:,
|
986
|
+
def initialize(gem_names:, exclude:, prerequire:, postrequire:, typed_overrides:, outpath:, file_header:, include_doc:, include_loc:, include_exported_rbis:, number_of_workers: T.unsafe(nil), auto_strictness: T.unsafe(nil), dsl_dir: T.unsafe(nil), rbi_formatter: T.unsafe(nil)); end
|
461
987
|
|
988
|
+
# source://tapioca-0.9.2/lib/tapioca/commands/gem.rb:68
|
462
989
|
sig { override.void }
|
463
990
|
def execute; end
|
464
991
|
|
465
|
-
|
466
|
-
|
992
|
+
# source://tapioca-0.9.2/lib/tapioca/commands/gem.rb:101
|
993
|
+
sig { params(should_verify: T::Boolean, exclude: T::Array[::String]).void }
|
994
|
+
def sync(should_verify: T.unsafe(nil), exclude: T.unsafe(nil)); end
|
467
995
|
|
468
996
|
private
|
469
997
|
|
998
|
+
# source://tapioca-0.9.2/lib/tapioca/commands/gem.rb:312
|
470
999
|
sig { returns(T::Array[::String]) }
|
471
1000
|
def added_rbis; end
|
472
1001
|
|
1002
|
+
# source://tapioca-0.9.2/lib/tapioca/commands/gem.rb:373
|
473
1003
|
sig { params(cause: ::Symbol, files: T::Array[::String]).returns(::String) }
|
474
1004
|
def build_error_for_files(cause, files); end
|
475
1005
|
|
1006
|
+
# source://tapioca-0.9.2/lib/tapioca/commands/gem.rb:140
|
476
1007
|
sig { returns(::Tapioca::Gemfile) }
|
477
1008
|
def bundle; end
|
478
1009
|
|
1010
|
+
# source://tapioca-0.9.2/lib/tapioca/commands/gem.rb:179
|
479
1011
|
sig { params(gem: ::Tapioca::Gemfile::GemSpec).void }
|
480
1012
|
def compile_gem_rbi(gem); end
|
481
1013
|
|
1014
|
+
# source://tapioca-0.9.2/lib/tapioca/commands/gem.rb:307
|
482
1015
|
sig { params(gem_name: ::String).returns(::Pathname) }
|
483
1016
|
def existing_rbi(gem_name); end
|
484
1017
|
|
1018
|
+
# source://tapioca-0.9.2/lib/tapioca/commands/gem.rb:355
|
485
1019
|
sig { returns(T::Hash[::String, ::String]) }
|
486
1020
|
def existing_rbis; end
|
487
1021
|
|
1022
|
+
# source://tapioca-0.9.2/lib/tapioca/commands/gem.rb:319
|
488
1023
|
sig { params(gem_name: ::String).returns(::Pathname) }
|
489
1024
|
def expected_rbi(gem_name); end
|
490
1025
|
|
1026
|
+
# source://tapioca-0.9.2/lib/tapioca/commands/gem.rb:361
|
491
1027
|
sig { returns(T::Hash[::String, ::String]) }
|
492
1028
|
def expected_rbis; end
|
493
1029
|
|
1030
|
+
# source://tapioca-0.9.2/lib/tapioca/commands/gem.rb:291
|
494
1031
|
sig { params(file: ::String, error: ::LoadError).void }
|
495
1032
|
def explain_failed_require(file, error); end
|
496
1033
|
|
1034
|
+
# source://tapioca-0.9.2/lib/tapioca/commands/gem.rb:324
|
497
1035
|
sig { params(gem_name: ::String).returns(T::Boolean) }
|
498
1036
|
def gem_rbi_exists?(gem_name); end
|
499
1037
|
|
1038
|
+
# source://tapioca-0.9.2/lib/tapioca/commands/gem.rb:368
|
500
1039
|
sig { params(gem_name: ::String, version: ::String).returns(::Pathname) }
|
501
1040
|
def gem_rbi_filename(gem_name, version); end
|
502
1041
|
|
1042
|
+
# source://tapioca-0.9.2/lib/tapioca/commands/gem.rb:165
|
503
1043
|
sig { params(gem_names: T::Array[::String]).returns(T::Array[::Tapioca::Gemfile::GemSpec]) }
|
504
1044
|
def gems_to_generate(gem_names); end
|
505
1045
|
|
1046
|
+
# source://tapioca-0.9.2/lib/tapioca/commands/gem.rb:135
|
506
1047
|
sig { returns(::Tapioca::Runtime::Loader) }
|
507
1048
|
def loader; end
|
508
1049
|
|
1050
|
+
# source://tapioca-0.9.2/lib/tapioca/commands/gem.rb:378
|
509
1051
|
sig { params(gem: ::Tapioca::Gemfile::GemSpec, file: ::RBI::File).void }
|
510
1052
|
def merge_with_exported_rbi(gem, file); end
|
511
1053
|
|
1054
|
+
# source://tapioca-0.9.2/lib/tapioca/commands/gem.rb:349
|
512
1055
|
sig { params(old_filename: ::Pathname, new_filename: ::Pathname).void }
|
513
1056
|
def move(old_filename, new_filename); end
|
514
1057
|
|
1058
|
+
# source://tapioca-0.9.2/lib/tapioca/commands/gem.rb:254
|
515
1059
|
sig { void }
|
516
1060
|
def perform_additions; end
|
517
1061
|
|
1062
|
+
# source://tapioca-0.9.2/lib/tapioca/commands/gem.rb:227
|
518
1063
|
sig { void }
|
519
1064
|
def perform_removals; end
|
520
1065
|
|
521
|
-
|
522
|
-
|
1066
|
+
# source://tapioca-0.9.2/lib/tapioca/commands/gem.rb:208
|
1067
|
+
sig { params(exclude: T::Array[::String]).void }
|
1068
|
+
def perform_sync_verification(exclude: T.unsafe(nil)); end
|
523
1069
|
|
1070
|
+
# source://tapioca-0.9.2/lib/tapioca/commands/gem.rb:302
|
524
1071
|
sig { returns(T::Array[::String]) }
|
525
1072
|
def removed_rbis; end
|
526
1073
|
|
1074
|
+
# source://tapioca-0.9.2/lib/tapioca/commands/gem.rb:329
|
527
1075
|
sig { params(diff: T::Hash[::String, ::Symbol], command: ::Symbol).void }
|
528
1076
|
def report_diff_and_exit_if_out_of_date(diff, command); end
|
529
1077
|
|
1078
|
+
# source://tapioca-0.9.2/lib/tapioca/commands/gem.rb:145
|
530
1079
|
sig { void }
|
531
1080
|
def require_gem_file; end
|
532
1081
|
end
|
533
1082
|
|
534
|
-
|
535
|
-
sig { params(sorbet_config: ::String, tapioca_config: ::String, default_postrequire: ::String).void }
|
536
|
-
def initialize(sorbet_config:, tapioca_config:, default_postrequire:); end
|
537
|
-
|
538
|
-
sig { override.void }
|
539
|
-
def execute; end
|
540
|
-
|
541
|
-
private
|
542
|
-
|
543
|
-
sig { void }
|
544
|
-
def create_binstub; end
|
545
|
-
|
546
|
-
sig { void }
|
547
|
-
def create_post_require; end
|
548
|
-
|
549
|
-
sig { void }
|
550
|
-
def create_sorbet_config; end
|
551
|
-
|
552
|
-
sig { void }
|
553
|
-
def create_tapioca_config; end
|
554
|
-
|
555
|
-
sig { returns(::Bundler::Installer) }
|
556
|
-
def installer; end
|
557
|
-
|
558
|
-
sig { returns(::Bundler::StubSpecification) }
|
559
|
-
def spec; end
|
560
|
-
end
|
561
|
-
|
1083
|
+
# source://tapioca-0.9.2/lib/tapioca/commands/require.rb:6
|
562
1084
|
class Tapioca::Commands::Require < ::Tapioca::Commands::Command
|
1085
|
+
# source://tapioca-0.9.2/lib/tapioca/commands/require.rb:13
|
563
1086
|
sig { params(requires_path: ::String, sorbet_config_path: ::String).void }
|
564
1087
|
def initialize(requires_path:, sorbet_config_path:); end
|
565
1088
|
|
1089
|
+
# source://tapioca-0.9.2/lib/tapioca/commands/require.rb:21
|
566
1090
|
sig { override.void }
|
567
1091
|
def execute; end
|
568
1092
|
end
|
569
1093
|
|
1094
|
+
# source://tapioca-0.9.2/lib/tapioca/commands/todo.rb:6
|
570
1095
|
class Tapioca::Commands::Todo < ::Tapioca::Commands::Command
|
571
1096
|
include ::Tapioca::SorbetHelper
|
572
1097
|
|
1098
|
+
# source://tapioca-0.9.2/lib/tapioca/commands/todo.rb:15
|
573
1099
|
sig { params(todo_file: ::String, file_header: T::Boolean).void }
|
574
1100
|
def initialize(todo_file:, file_header:); end
|
575
1101
|
|
1102
|
+
# source://tapioca-0.9.2/lib/tapioca/commands/todo.rb:23
|
576
1103
|
sig { override.void }
|
577
1104
|
def execute; end
|
578
1105
|
|
579
1106
|
private
|
580
1107
|
|
1108
|
+
# source://tapioca-0.9.2/lib/tapioca/commands/todo.rb:49
|
581
1109
|
sig { params(constants: T::Array[::String], command: ::String).returns(::RBI::File) }
|
582
1110
|
def rbi(constants, command:); end
|
583
1111
|
|
1112
|
+
# source://tapioca-0.9.2/lib/tapioca/commands/todo.rb:69
|
584
1113
|
sig { returns(T::Array[::String]) }
|
585
1114
|
def unresolved_constants; end
|
586
1115
|
end
|
587
1116
|
|
1117
|
+
# source://tapioca-0.9.2/lib/tapioca/helpers/config_helper.rb:5
|
588
1118
|
module Tapioca::ConfigHelper
|
589
1119
|
requires_ancestor { Thor }
|
590
1120
|
|
1121
|
+
# source://tapioca-0.9.2/lib/tapioca/helpers/config_helper.rb:18
|
591
1122
|
sig { params(args: T.untyped, local_options: T.untyped, config: T.untyped).void }
|
592
1123
|
def initialize(args = T.unsafe(nil), local_options = T.unsafe(nil), config = T.unsafe(nil)); end
|
593
1124
|
|
1125
|
+
# source://tapioca-0.9.2/lib/tapioca/helpers/config_helper.rb:12
|
594
1126
|
sig { returns(::String) }
|
595
1127
|
def command_name; end
|
596
1128
|
|
1129
|
+
# source://tapioca-0.9.2/lib/tapioca/helpers/config_helper.rb:15
|
597
1130
|
sig { returns(::Thor::CoreExt::HashWithIndifferentAccess) }
|
598
1131
|
def defaults; end
|
599
1132
|
|
1133
|
+
# source://tapioca-0.9.2/lib/tapioca/helpers/config_helper.rb:34
|
600
1134
|
sig { returns(::Thor::CoreExt::HashWithIndifferentAccess) }
|
601
1135
|
def options; end
|
602
1136
|
|
603
1137
|
private
|
604
1138
|
|
1139
|
+
# source://tapioca-0.9.2/lib/tapioca/helpers/config_helper.rb:152
|
605
1140
|
sig { params(msg: ::String).returns(::Tapioca::ConfigHelper::ConfigError) }
|
606
1141
|
def build_error(msg); end
|
607
1142
|
|
1143
|
+
# source://tapioca-0.9.2/lib/tapioca/helpers/config_helper.rb:56
|
608
1144
|
sig do
|
609
1145
|
params(
|
610
1146
|
options: ::Thor::CoreExt::HashWithIndifferentAccess
|
@@ -612,9 +1148,11 @@ module Tapioca::ConfigHelper
|
|
612
1148
|
end
|
613
1149
|
def config_options(options); end
|
614
1150
|
|
1151
|
+
# source://tapioca-0.9.2/lib/tapioca/helpers/config_helper.rb:46
|
615
1152
|
sig { params(options: T::Hash[::Symbol, ::Thor::Option]).void }
|
616
1153
|
def filter_defaults(options); end
|
617
1154
|
|
1155
|
+
# source://tapioca-0.9.2/lib/tapioca/helpers/config_helper.rb:194
|
618
1156
|
sig do
|
619
1157
|
params(
|
620
1158
|
options: T.nilable(::Thor::CoreExt::HashWithIndifferentAccess)
|
@@ -622,12 +1160,15 @@ module Tapioca::ConfigHelper
|
|
622
1160
|
end
|
623
1161
|
def merge_options(*options); end
|
624
1162
|
|
1163
|
+
# source://tapioca-0.9.2/lib/tapioca/helpers/config_helper.rb:177
|
625
1164
|
sig { params(config_file: ::String, errors: T::Array[::Tapioca::ConfigHelper::ConfigError]).void }
|
626
1165
|
def print_errors(config_file, errors); end
|
627
1166
|
|
1167
|
+
# source://tapioca-0.9.2/lib/tapioca/helpers/config_helper.rb:70
|
628
1168
|
sig { params(config_file: ::String, config: T::Hash[T.untyped, T.untyped]).void }
|
629
1169
|
def validate_config!(config_file, config); end
|
630
1170
|
|
1171
|
+
# source://tapioca-0.9.2/lib/tapioca/helpers/config_helper.rb:103
|
631
1172
|
sig do
|
632
1173
|
params(
|
633
1174
|
command_options: T::Hash[::Symbol, ::Thor::Option],
|
@@ -638,109 +1179,160 @@ module Tapioca::ConfigHelper
|
|
638
1179
|
def validate_config_options(command_options, config_key, config_options); end
|
639
1180
|
end
|
640
1181
|
|
1182
|
+
# source://tapioca-0.9.2/lib/tapioca/helpers/config_helper.rb:147
|
641
1183
|
class Tapioca::ConfigHelper::ConfigError < ::T::Struct
|
642
1184
|
const :message_parts, T::Array[::Tapioca::ConfigHelper::ConfigErrorMessagePart]
|
643
1185
|
|
644
1186
|
class << self
|
1187
|
+
# source://sorbet-runtime-0.5.10323/lib/types/struct.rb:13
|
645
1188
|
def inherited(s); end
|
646
1189
|
end
|
647
1190
|
end
|
648
1191
|
|
1192
|
+
# source://tapioca-0.9.2/lib/tapioca/helpers/config_helper.rb:142
|
649
1193
|
class Tapioca::ConfigHelper::ConfigErrorMessagePart < ::T::Struct
|
650
1194
|
const :colors, T::Array[::Symbol]
|
651
1195
|
const :message, ::String
|
652
1196
|
|
653
1197
|
class << self
|
1198
|
+
# source://sorbet-runtime-0.5.10323/lib/types/struct.rb:13
|
654
1199
|
def inherited(s); end
|
655
1200
|
end
|
656
1201
|
end
|
657
1202
|
|
1203
|
+
# source://tapioca-0.9.2/lib/tapioca.rb:38
|
658
1204
|
Tapioca::DEFAULT_ANNOTATIONS_DIR = T.let(T.unsafe(nil), String)
|
1205
|
+
|
1206
|
+
# source://tapioca-0.9.2/lib/tapioca.rb:34
|
659
1207
|
Tapioca::DEFAULT_DSL_DIR = T.let(T.unsafe(nil), String)
|
1208
|
+
|
1209
|
+
# source://tapioca-0.9.2/lib/tapioca.rb:47
|
1210
|
+
Tapioca::DEFAULT_ENVIRONMENT = T.let(T.unsafe(nil), String)
|
1211
|
+
|
1212
|
+
# source://tapioca-0.9.2/lib/tapioca.rb:35
|
660
1213
|
Tapioca::DEFAULT_GEM_DIR = T.let(T.unsafe(nil), String)
|
1214
|
+
|
1215
|
+
# source://tapioca-0.9.2/lib/tapioca.rb:40
|
661
1216
|
Tapioca::DEFAULT_OVERRIDES = T.let(T.unsafe(nil), Hash)
|
1217
|
+
|
1218
|
+
# source://tapioca-0.9.2/lib/tapioca.rb:32
|
662
1219
|
Tapioca::DEFAULT_POSTREQUIRE_FILE = T.let(T.unsafe(nil), String)
|
1220
|
+
|
1221
|
+
# source://tapioca-0.9.2/lib/tapioca.rb:33
|
663
1222
|
Tapioca::DEFAULT_RBI_DIR = T.let(T.unsafe(nil), String)
|
1223
|
+
|
1224
|
+
# source://tapioca-0.9.2/lib/tapioca/rbi_formatter.rb:29
|
664
1225
|
Tapioca::DEFAULT_RBI_FORMATTER = T.let(T.unsafe(nil), Tapioca::RBIFormatter)
|
1226
|
+
|
1227
|
+
# source://tapioca-0.9.2/lib/tapioca.rb:46
|
1228
|
+
Tapioca::DEFAULT_RBI_MAX_LINE_LENGTH = T.let(T.unsafe(nil), Integer)
|
1229
|
+
|
1230
|
+
# source://tapioca-0.9.2/lib/tapioca.rb:36
|
665
1231
|
Tapioca::DEFAULT_SHIM_DIR = T.let(T.unsafe(nil), String)
|
1232
|
+
|
1233
|
+
# source://tapioca-0.9.2/lib/tapioca.rb:37
|
666
1234
|
Tapioca::DEFAULT_TODO_FILE = T.let(T.unsafe(nil), String)
|
1235
|
+
|
1236
|
+
# source://tapioca-0.9.2/lib/tapioca/dsl/compilers.rb:5
|
667
1237
|
module Tapioca::Dsl; end
|
668
1238
|
|
669
1239
|
# @abstract It cannont be directly instantiated. Subclasses must implement the `abstract` methods below.
|
1240
|
+
#
|
1241
|
+
# source://tapioca-0.9.2/lib/tapioca/dsl/compiler.rb:6
|
670
1242
|
class Tapioca::Dsl::Compiler
|
671
1243
|
extend T::Generic
|
1244
|
+
include ::Tapioca::SorbetHelper
|
1245
|
+
include ::Tapioca::RBIHelper
|
672
1246
|
include ::Tapioca::Runtime::Reflection
|
673
|
-
include ::Tapioca::SignaturesHelper
|
674
|
-
include ::Tapioca::Dsl::Helpers::ParamHelper
|
675
1247
|
extend ::Tapioca::Runtime::Reflection
|
676
1248
|
|
677
1249
|
abstract!
|
678
1250
|
|
679
1251
|
ConstantType = type_member { { upper: Module } }
|
680
1252
|
|
1253
|
+
# source://tapioca-0.9.2/lib/tapioca/dsl/compiler.rb:26
|
681
1254
|
sig { params(pipeline: ::Tapioca::Dsl::Pipeline, root: ::RBI::Tree, constant: ConstantType).void }
|
682
1255
|
def initialize(pipeline, root, constant); end
|
683
1256
|
|
684
1257
|
# NOTE: This should eventually accept an `Error` object or `Exception` rather than simply a `String`.
|
1258
|
+
#
|
1259
|
+
# source://tapioca-0.9.2/lib/tapioca/dsl/compiler.rb:60
|
685
1260
|
sig { params(error: ::String).void }
|
686
1261
|
def add_error(error); end
|
687
1262
|
|
1263
|
+
# source://tapioca-0.9.2/lib/tapioca/dsl/compiler.rb:39
|
688
1264
|
sig { params(compiler_name: ::String).returns(T::Boolean) }
|
689
1265
|
def compiler_enabled?(compiler_name); end
|
690
1266
|
|
1267
|
+
# source://tapioca-0.9.2/lib/tapioca/dsl/compiler.rb:20
|
691
1268
|
sig { returns(ConstantType) }
|
692
1269
|
def constant; end
|
693
1270
|
|
694
1271
|
# @abstract
|
1272
|
+
#
|
1273
|
+
# source://tapioca-0.9.2/lib/tapioca/dsl/compiler.rb:44
|
695
1274
|
sig { abstract.void }
|
696
1275
|
def decorate; end
|
697
1276
|
|
1277
|
+
# source://tapioca-0.9.2/lib/tapioca/dsl/compiler.rb:23
|
698
1278
|
sig { returns(::RBI::Tree) }
|
699
1279
|
def root; end
|
700
1280
|
|
701
1281
|
private
|
702
1282
|
|
1283
|
+
# source://tapioca-0.9.2/lib/tapioca/dsl/compiler.rb:164
|
703
1284
|
sig { params(type: ::String).returns(::String) }
|
704
1285
|
def as_nilable_type(type); end
|
705
1286
|
|
1287
|
+
# source://tapioca-0.9.2/lib/tapioca/dsl/compiler.rb:118
|
706
1288
|
sig { params(method_def: T.any(::Method, ::UnboundMethod)).returns(T::Array[::RBI::TypedParam]) }
|
707
1289
|
def compile_method_parameters_to_rbi(method_def); end
|
708
1290
|
|
1291
|
+
# source://tapioca-0.9.2/lib/tapioca/dsl/compiler.rb:154
|
709
1292
|
sig { params(method_def: T.any(::Method, ::UnboundMethod)).returns(::String) }
|
710
1293
|
def compile_method_return_type_to_rbi(method_def); end
|
711
1294
|
|
1295
|
+
# source://tapioca-0.9.2/lib/tapioca/dsl/compiler.rb:108
|
712
1296
|
sig { params(scope: ::RBI::Scope, method_def: T.any(::Method, ::UnboundMethod), class_method: T::Boolean).void }
|
713
1297
|
def create_method_from_def(scope, method_def, class_method: T.unsafe(nil)); end
|
714
1298
|
|
715
1299
|
# Get the types of each parameter from a method signature
|
1300
|
+
#
|
1301
|
+
# source://tapioca-0.9.2/lib/tapioca/dsl/compiler.rb:85
|
716
1302
|
sig { params(method_def: T.any(::Method, ::UnboundMethod), signature: T.untyped).returns(T::Array[::String]) }
|
717
1303
|
def parameters_types_from_signature(method_def, signature); end
|
718
1304
|
|
719
|
-
sig { params(name: ::String).returns(T::Boolean) }
|
720
|
-
def valid_parameter_name?(name); end
|
721
|
-
|
722
1305
|
class << self
|
723
1306
|
# @abstract
|
1307
|
+
#
|
1308
|
+
# source://tapioca-0.9.2/lib/tapioca/dsl/compiler.rb:47
|
724
1309
|
sig { abstract.returns(T::Enumerable[::Module]) }
|
725
1310
|
def gather_constants; end
|
726
1311
|
|
1312
|
+
# source://tapioca-0.9.2/lib/tapioca/dsl/compiler.rb:34
|
727
1313
|
sig { params(constant: ::Module).returns(T::Boolean) }
|
728
1314
|
def handles?(constant); end
|
729
1315
|
|
1316
|
+
# source://tapioca-0.9.2/lib/tapioca/dsl/compiler.rb:50
|
730
1317
|
sig { returns(T::Set[::Module]) }
|
731
1318
|
def processable_constants; end
|
732
1319
|
|
733
1320
|
private
|
734
1321
|
|
1322
|
+
# source://tapioca-0.9.2/lib/tapioca/dsl/compiler.rb:67
|
735
1323
|
sig { returns(T::Enumerable[::Class]) }
|
736
1324
|
def all_classes; end
|
737
1325
|
|
1326
|
+
# source://tapioca-0.9.2/lib/tapioca/dsl/compiler.rb:73
|
738
1327
|
sig { returns(T::Enumerable[::Module]) }
|
739
1328
|
def all_modules; end
|
740
1329
|
end
|
741
1330
|
end
|
742
1331
|
|
1332
|
+
# source://tapioca-0.9.2/lib/tapioca/dsl/compilers.rb:6
|
743
1333
|
module Tapioca::Dsl::Compilers; end
|
1334
|
+
|
1335
|
+
# source://tapioca-0.9.2/lib/tapioca/dsl/compilers.rb:7
|
744
1336
|
Tapioca::Dsl::Compilers::DIRECTORY = T.let(T.unsafe(nil), String)
|
745
1337
|
|
746
1338
|
# DSL compilers are either built-in to Tapioca and live under the
|
@@ -749,39 +1341,13 @@ Tapioca::Dsl::Compilers::DIRECTORY = T.let(T.unsafe(nil), String)
|
|
749
1341
|
# a different namespace and can only be referred to using their fully
|
750
1342
|
# qualified name. This constant encapsulates that dual lookup when
|
751
1343
|
# a compiler needs to be resolved by name.
|
1344
|
+
#
|
1345
|
+
# source://tapioca-0.9.2/lib/tapioca/dsl/compilers.rb:18
|
752
1346
|
Tapioca::Dsl::Compilers::NAMESPACES = T.let(T.unsafe(nil), Array)
|
753
1347
|
|
754
|
-
|
755
|
-
|
756
|
-
module Tapioca::Dsl::Helpers::ParamHelper
|
757
|
-
include ::Tapioca::SignaturesHelper
|
758
|
-
|
759
|
-
sig { params(name: ::String, type: ::String).returns(::RBI::TypedParam) }
|
760
|
-
def create_block_param(name, type:); end
|
761
|
-
|
762
|
-
sig { params(name: ::String, type: ::String, default: ::String).returns(::RBI::TypedParam) }
|
763
|
-
def create_kw_opt_param(name, type:, default:); end
|
764
|
-
|
765
|
-
sig { params(name: ::String, type: ::String).returns(::RBI::TypedParam) }
|
766
|
-
def create_kw_param(name, type:); end
|
767
|
-
|
768
|
-
sig { params(name: ::String, type: ::String).returns(::RBI::TypedParam) }
|
769
|
-
def create_kw_rest_param(name, type:); end
|
770
|
-
|
771
|
-
sig { params(name: ::String, type: ::String, default: ::String).returns(::RBI::TypedParam) }
|
772
|
-
def create_opt_param(name, type:, default:); end
|
773
|
-
|
774
|
-
sig { params(name: ::String, type: ::String).returns(::RBI::TypedParam) }
|
775
|
-
def create_param(name, type:); end
|
776
|
-
|
777
|
-
sig { params(name: ::String, type: ::String).returns(::RBI::TypedParam) }
|
778
|
-
def create_rest_param(name, type:); end
|
779
|
-
|
780
|
-
sig { params(param: ::RBI::Param, type: ::String).returns(::RBI::TypedParam) }
|
781
|
-
def create_typed_param(param, type); end
|
782
|
-
end
|
783
|
-
|
1348
|
+
# source://tapioca-0.9.2/lib/tapioca/dsl/pipeline.rb:6
|
784
1349
|
class Tapioca::Dsl::Pipeline
|
1350
|
+
# source://tapioca-0.9.2/lib/tapioca/dsl/pipeline.rb:30
|
785
1351
|
sig do
|
786
1352
|
params(
|
787
1353
|
requested_constants: T::Array[::Module],
|
@@ -793,24 +1359,31 @@ class Tapioca::Dsl::Pipeline
|
|
793
1359
|
end
|
794
1360
|
def initialize(requested_constants:, requested_compilers: T.unsafe(nil), excluded_compilers: T.unsafe(nil), error_handler: T.unsafe(nil), number_of_workers: T.unsafe(nil)); end
|
795
1361
|
|
1362
|
+
# source://tapioca-0.9.2/lib/tapioca/dsl/pipeline.rb:82
|
796
1363
|
sig { params(error: ::String).void }
|
797
1364
|
def add_error(error); end
|
798
1365
|
|
1366
|
+
# source://tapioca-0.9.2/lib/tapioca/dsl/pipeline.rb:87
|
799
1367
|
sig { params(compiler_name: ::String).returns(T::Boolean) }
|
800
1368
|
def compiler_enabled?(compiler_name); end
|
801
1369
|
|
1370
|
+
# source://tapioca-0.9.2/lib/tapioca/dsl/pipeline.rb:10
|
802
1371
|
sig { returns(T::Enumerable[T.class_of(Tapioca::Dsl::Compiler)]) }
|
803
1372
|
def compilers; end
|
804
1373
|
|
1374
|
+
# source://tapioca-0.9.2/lib/tapioca/dsl/pipeline.rb:16
|
805
1375
|
sig { returns(T.proc.params(error: ::String).void) }
|
806
1376
|
def error_handler; end
|
807
1377
|
|
1378
|
+
# source://tapioca-0.9.2/lib/tapioca/dsl/pipeline.rb:19
|
808
1379
|
sig { returns(T::Array[::String]) }
|
809
1380
|
def errors; end
|
810
1381
|
|
1382
|
+
# source://tapioca-0.9.2/lib/tapioca/dsl/pipeline.rb:13
|
811
1383
|
sig { returns(T::Array[::Module]) }
|
812
1384
|
def requested_constants; end
|
813
1385
|
|
1386
|
+
# source://tapioca-0.9.2/lib/tapioca/dsl/pipeline.rb:52
|
814
1387
|
sig do
|
815
1388
|
type_parameters(:T)
|
816
1389
|
.params(
|
@@ -821,9 +1394,11 @@ class Tapioca::Dsl::Pipeline
|
|
821
1394
|
|
822
1395
|
private
|
823
1396
|
|
1397
|
+
# source://tapioca-0.9.2/lib/tapioca/dsl/pipeline.rb:120
|
824
1398
|
sig { params(constants: T::Set[::Module]).returns(T::Set[::Module]) }
|
825
1399
|
def filter_anonymous_and_reloaded_constants(constants); end
|
826
1400
|
|
1401
|
+
# source://tapioca-0.9.2/lib/tapioca/dsl/pipeline.rb:103
|
827
1402
|
sig do
|
828
1403
|
params(
|
829
1404
|
requested_compilers: T::Array[T.class_of(Tapioca::Dsl::Compiler)],
|
@@ -832,22 +1407,37 @@ class Tapioca::Dsl::Pipeline
|
|
832
1407
|
end
|
833
1408
|
def gather_compilers(requested_compilers, excluded_compilers); end
|
834
1409
|
|
1410
|
+
# source://tapioca-0.9.2/lib/tapioca/dsl/pipeline.rb:111
|
835
1411
|
sig { params(requested_constants: T::Array[::Module]).returns(T::Set[::Module]) }
|
836
1412
|
def gather_constants(requested_constants); end
|
837
1413
|
|
1414
|
+
# source://tapioca-0.9.2/lib/tapioca/dsl/pipeline.rb:145
|
838
1415
|
sig { params(constant: ::Module).returns(T.nilable(::RBI::File)) }
|
839
1416
|
def rbi_for_constant(constant); end
|
840
1417
|
|
1418
|
+
# source://tapioca-0.9.2/lib/tapioca/dsl/pipeline.rb:164
|
841
1419
|
sig { params(error: ::String).returns(T.noreturn) }
|
842
1420
|
def report_error(error); end
|
843
1421
|
end
|
844
1422
|
|
1423
|
+
# source://tapioca-0.9.2/lib/tapioca/helpers/env_helper.rb:5
|
1424
|
+
module Tapioca::EnvHelper
|
1425
|
+
requires_ancestor { Thor }
|
1426
|
+
|
1427
|
+
# source://tapioca-0.9.2/lib/tapioca/helpers/env_helper.rb:12
|
1428
|
+
sig { params(options: T::Hash[::Symbol, T.untyped]).void }
|
1429
|
+
def set_environment(options); end
|
1430
|
+
end
|
1431
|
+
|
845
1432
|
class Tapioca::Error < ::StandardError; end
|
846
1433
|
|
1434
|
+
# source://tapioca-0.9.2/lib/tapioca/executor.rb:5
|
847
1435
|
class Tapioca::Executor
|
1436
|
+
# source://tapioca-0.9.2/lib/tapioca/executor.rb:11
|
848
1437
|
sig { params(queue: T::Array[T.untyped], number_of_workers: T.nilable(::Integer)).void }
|
849
1438
|
def initialize(queue, number_of_workers: T.unsafe(nil)); end
|
850
1439
|
|
1440
|
+
# source://tapioca-0.9.2/lib/tapioca/executor.rb:28
|
851
1441
|
sig do
|
852
1442
|
type_parameters(:T)
|
853
1443
|
.params(
|
@@ -857,76 +1447,145 @@ class Tapioca::Executor
|
|
857
1447
|
def run_in_parallel(&block); end
|
858
1448
|
end
|
859
1449
|
|
1450
|
+
# source://tapioca-0.9.2/lib/tapioca/executor.rb:8
|
860
1451
|
Tapioca::Executor::MINIMUM_ITEMS_PER_WORKER = T.let(T.unsafe(nil), Integer)
|
1452
|
+
|
1453
|
+
# source://tapioca-0.9.2/lib/tapioca/gem/events.rb:5
|
861
1454
|
module Tapioca::Gem; end
|
862
1455
|
|
1456
|
+
# source://tapioca-0.9.2/lib/tapioca/gem/events.rb:77
|
863
1457
|
class Tapioca::Gem::ConstNodeAdded < ::Tapioca::Gem::NodeAdded
|
1458
|
+
# source://tapioca-0.9.2/lib/tapioca/gem/events.rb:84
|
864
1459
|
sig { params(symbol: ::String, constant: ::Module, node: ::RBI::Const).void }
|
865
1460
|
def initialize(symbol, constant, node); end
|
866
1461
|
|
1462
|
+
# source://tapioca-0.9.2/lib/tapioca/gem/events.rb:81
|
867
1463
|
sig { returns(::RBI::Const) }
|
868
1464
|
def node; end
|
869
1465
|
end
|
870
1466
|
|
1467
|
+
# source://tapioca-0.9.2/lib/tapioca/gem/events.rb:26
|
871
1468
|
class Tapioca::Gem::ConstantFound < ::Tapioca::Gem::Event
|
1469
|
+
# source://tapioca-0.9.2/lib/tapioca/gem/events.rb:36
|
872
1470
|
sig { params(symbol: ::String, constant: ::BasicObject).void }
|
873
1471
|
def initialize(symbol, constant); end
|
874
1472
|
|
1473
|
+
# source://tapioca-0.9.2/lib/tapioca/gem/events.rb:33
|
875
1474
|
sig { returns(::BasicObject) }
|
876
1475
|
def constant; end
|
877
1476
|
|
1477
|
+
# source://tapioca-0.9.2/lib/tapioca/gem/events.rb:30
|
878
1478
|
sig { returns(::String) }
|
879
1479
|
def symbol; end
|
880
1480
|
end
|
881
1481
|
|
882
1482
|
# @abstract It cannont be directly instantiated. Subclasses must implement the `abstract` methods below.
|
1483
|
+
#
|
1484
|
+
# source://tapioca-0.9.2/lib/tapioca/gem/events.rb:6
|
883
1485
|
class Tapioca::Gem::Event
|
884
1486
|
abstract!
|
885
1487
|
|
886
|
-
|
1488
|
+
# source://sorbet-runtime-0.5.10323/lib/types/private/abstract/declare.rb:37
|
1489
|
+
def initialize(*args, **_arg1, &blk); end
|
1490
|
+
end
|
1491
|
+
|
1492
|
+
# source://tapioca-0.9.2/lib/tapioca/gem/events.rb:43
|
1493
|
+
class Tapioca::Gem::ForeignConstantFound < ::Tapioca::Gem::ConstantFound
|
1494
|
+
# source://tapioca-0.9.2/lib/tapioca/gem/events.rb:52
|
1495
|
+
sig { params(symbol: ::String, constant: ::Module).void }
|
1496
|
+
def initialize(symbol, constant); end
|
1497
|
+
|
1498
|
+
# source://tapioca-0.9.2/lib/tapioca/gem/events.rb:47
|
1499
|
+
sig { override.returns(::Module) }
|
1500
|
+
def constant; end
|
887
1501
|
end
|
888
1502
|
|
1503
|
+
# source://tapioca-0.9.2/lib/tapioca/gem/events.rb:103
|
1504
|
+
class Tapioca::Gem::ForeignScopeNodeAdded < ::Tapioca::Gem::ScopeNodeAdded; end
|
1505
|
+
|
1506
|
+
# source://tapioca-0.9.2/lib/tapioca/gem/listeners/base.rb:6
|
889
1507
|
module Tapioca::Gem::Listeners; end
|
890
1508
|
|
891
1509
|
# @abstract It cannont be directly instantiated. Subclasses must implement the `abstract` methods below.
|
1510
|
+
#
|
1511
|
+
# source://tapioca-0.9.2/lib/tapioca/gem/listeners/base.rb:7
|
892
1512
|
class Tapioca::Gem::Listeners::Base
|
893
1513
|
abstract!
|
894
1514
|
|
1515
|
+
# source://tapioca-0.9.2/lib/tapioca/gem/listeners/base.rb:14
|
895
1516
|
sig { params(pipeline: ::Tapioca::Gem::Pipeline).void }
|
896
1517
|
def initialize(pipeline); end
|
897
1518
|
|
1519
|
+
# source://tapioca-0.9.2/lib/tapioca/gem/listeners/base.rb:19
|
898
1520
|
sig { params(event: ::Tapioca::Gem::NodeAdded).void }
|
899
1521
|
def dispatch(event); end
|
900
1522
|
|
901
1523
|
private
|
902
1524
|
|
1525
|
+
# source://tapioca-0.9.2/lib/tapioca/gem/listeners/base.rb:49
|
1526
|
+
sig { params(event: ::Tapioca::Gem::NodeAdded).returns(T::Boolean) }
|
1527
|
+
def ignore?(event); end
|
1528
|
+
|
1529
|
+
# source://tapioca-0.9.2/lib/tapioca/gem/listeners/base.rb:37
|
903
1530
|
sig { params(event: ::Tapioca::Gem::ConstNodeAdded).void }
|
904
1531
|
def on_const(event); end
|
905
1532
|
|
1533
|
+
# source://tapioca-0.9.2/lib/tapioca/gem/listeners/base.rb:45
|
906
1534
|
sig { params(event: ::Tapioca::Gem::MethodNodeAdded).void }
|
907
1535
|
def on_method(event); end
|
908
1536
|
|
1537
|
+
# source://tapioca-0.9.2/lib/tapioca/gem/listeners/base.rb:41
|
909
1538
|
sig { params(event: ::Tapioca::Gem::ScopeNodeAdded).void }
|
910
1539
|
def on_scope(event); end
|
911
1540
|
end
|
912
1541
|
|
1542
|
+
# source://tapioca-0.9.2/lib/tapioca/gem/listeners/dynamic_mixins.rb:7
|
913
1543
|
class Tapioca::Gem::Listeners::DynamicMixins < ::Tapioca::Gem::Listeners::Base
|
914
1544
|
include ::Tapioca::Runtime::Reflection
|
915
1545
|
|
916
1546
|
private
|
917
1547
|
|
1548
|
+
# source://tapioca-0.9.2/lib/tapioca/gem/listeners/dynamic_mixins.rb:31
|
1549
|
+
sig { override.params(event: ::Tapioca::Gem::NodeAdded).returns(T::Boolean) }
|
1550
|
+
def ignore?(event); end
|
1551
|
+
|
1552
|
+
# source://tapioca-0.9.2/lib/tapioca/gem/listeners/dynamic_mixins.rb:15
|
1553
|
+
sig { override.params(event: ::Tapioca::Gem::ScopeNodeAdded).void }
|
1554
|
+
def on_scope(event); end
|
1555
|
+
end
|
1556
|
+
|
1557
|
+
# source://tapioca-0.9.2/lib/tapioca/gem/listeners/foreign_constants.rb:7
|
1558
|
+
class Tapioca::Gem::Listeners::ForeignConstants < ::Tapioca::Gem::Listeners::Base
|
1559
|
+
include ::Tapioca::Runtime::Reflection
|
1560
|
+
|
1561
|
+
private
|
1562
|
+
|
1563
|
+
# source://tapioca-0.9.2/lib/tapioca/gem/listeners/foreign_constants.rb:59
|
1564
|
+
sig { override.params(event: ::Tapioca::Gem::NodeAdded).returns(T::Boolean) }
|
1565
|
+
def ignore?(event); end
|
1566
|
+
|
1567
|
+
# source://tapioca-0.9.2/lib/tapioca/gem/listeners/foreign_constants.rb:54
|
1568
|
+
sig { params(location: ::String).returns(T::Boolean) }
|
1569
|
+
def mixed_in_by_gem?(location); end
|
1570
|
+
|
1571
|
+
# source://tapioca-0.9.2/lib/tapioca/gem/listeners/foreign_constants.rb:15
|
918
1572
|
sig { override.params(event: ::Tapioca::Gem::ScopeNodeAdded).void }
|
919
1573
|
def on_scope(event); end
|
920
1574
|
end
|
921
1575
|
|
1576
|
+
# source://tapioca-0.9.2/lib/tapioca/gem/listeners/methods.rb:7
|
922
1577
|
class Tapioca::Gem::Listeners::Methods < ::Tapioca::Gem::Listeners::Base
|
1578
|
+
include ::Tapioca::SorbetHelper
|
1579
|
+
include ::Tapioca::RBIHelper
|
923
1580
|
include ::Tapioca::Runtime::Reflection
|
924
1581
|
|
925
1582
|
private
|
926
1583
|
|
1584
|
+
# source://tapioca-0.9.2/lib/tapioca/gem/listeners/methods.rb:34
|
927
1585
|
sig { params(tree: ::RBI::Tree, module_name: ::String, mod: ::Module, for_visibility: T::Array[::Symbol]).void }
|
928
1586
|
def compile_directly_owned_methods(tree, module_name, mod, for_visibility = T.unsafe(nil)); end
|
929
1587
|
|
1588
|
+
# source://tapioca-0.9.2/lib/tapioca/gem/listeners/methods.rb:63
|
930
1589
|
sig do
|
931
1590
|
params(
|
932
1591
|
tree: ::RBI::Tree,
|
@@ -938,9 +1597,15 @@ class Tapioca::Gem::Listeners::Methods < ::Tapioca::Gem::Listeners::Base
|
|
938
1597
|
end
|
939
1598
|
def compile_method(tree, symbol_name, constant, method, visibility = T.unsafe(nil)); end
|
940
1599
|
|
1600
|
+
# source://tapioca-0.9.2/lib/tapioca/gem/listeners/methods.rb:191
|
1601
|
+
sig { override.params(event: ::Tapioca::Gem::NodeAdded).returns(T::Boolean) }
|
1602
|
+
def ignore?(event); end
|
1603
|
+
|
1604
|
+
# source://tapioca-0.9.2/lib/tapioca/gem/listeners/methods.rb:184
|
941
1605
|
sig { params(constant: ::Module).returns(T.nilable(::UnboundMethod)) }
|
942
1606
|
def initialize_method_for(constant); end
|
943
1607
|
|
1608
|
+
# source://tapioca-0.9.2/lib/tapioca/gem/listeners/methods.rb:165
|
944
1609
|
sig { params(mod: ::Module).returns(T::Hash[::Symbol, T::Array[::Symbol]]) }
|
945
1610
|
def method_names_by_visibility(mod); end
|
946
1611
|
|
@@ -953,355 +1618,544 @@ class Tapioca::Gem::Listeners::Methods < ::Tapioca::Gem::Listeners::Base
|
|
953
1618
|
# This method implements a better way of checking whether a constant defines a method.
|
954
1619
|
# It walks up the ancestor tree via the `super_method` method; if any of the super
|
955
1620
|
# methods are owned by the constant, it means that the constant declares the method.
|
1621
|
+
#
|
1622
|
+
# source://tapioca-0.9.2/lib/tapioca/gem/listeners/methods.rb:151
|
956
1623
|
sig { params(method: ::UnboundMethod, constant: ::Module).returns(T::Boolean) }
|
957
1624
|
def method_owned_by_constant?(method, constant); end
|
958
1625
|
|
1626
|
+
# source://tapioca-0.9.2/lib/tapioca/gem/listeners/methods.rb:16
|
959
1627
|
sig { override.params(event: ::Tapioca::Gem::ScopeNodeAdded).void }
|
960
1628
|
def on_scope(event); end
|
961
1629
|
|
1630
|
+
# source://tapioca-0.9.2/lib/tapioca/gem/listeners/methods.rb:174
|
962
1631
|
sig { params(constant: ::Module, method_name: ::String).returns(T::Boolean) }
|
963
1632
|
def struct_method?(constant, method_name); end
|
964
|
-
|
965
|
-
sig { params(name: ::String).returns(T::Boolean) }
|
966
|
-
def valid_method_name?(name); end
|
967
|
-
|
968
|
-
sig { params(name: ::String).returns(T::Boolean) }
|
969
|
-
def valid_parameter_name?(name); end
|
970
1633
|
end
|
971
1634
|
|
972
|
-
|
973
|
-
|
1635
|
+
# source://tapioca-0.9.2/lib/tapioca/gem/listeners/mixins.rb:7
|
974
1636
|
class Tapioca::Gem::Listeners::Mixins < ::Tapioca::Gem::Listeners::Base
|
975
1637
|
include ::Tapioca::Runtime::Reflection
|
976
1638
|
|
977
1639
|
private
|
978
1640
|
|
1641
|
+
# source://tapioca-0.9.2/lib/tapioca/gem/listeners/mixins.rb:42
|
979
1642
|
sig do
|
980
1643
|
params(
|
981
1644
|
tree: ::RBI::Tree,
|
1645
|
+
constant: ::Module,
|
982
1646
|
mods: T::Array[::Module],
|
983
1647
|
mixin_type: ::Tapioca::Runtime::Trackers::Mixin::Type
|
984
1648
|
).void
|
985
1649
|
end
|
986
|
-
def add_mixins(tree, mods, mixin_type); end
|
1650
|
+
def add_mixins(tree, constant, mods, mixin_type); end
|
987
1651
|
|
1652
|
+
# source://tapioca-0.9.2/lib/tapioca/gem/listeners/mixins.rb:88
|
988
1653
|
sig { params(mixin_name: ::String).returns(T::Boolean) }
|
989
1654
|
def filtered_mixin?(mixin_name); end
|
990
1655
|
|
1656
|
+
# source://tapioca-0.9.2/lib/tapioca/gem/listeners/mixins.rb:95
|
991
1657
|
sig { params(constant: ::Module).returns(T::Array[::Module]) }
|
992
1658
|
def interesting_ancestors_of(constant); end
|
993
1659
|
|
1660
|
+
# source://tapioca-0.9.2/lib/tapioca/gem/listeners/mixins.rb:75
|
1661
|
+
sig do
|
1662
|
+
params(
|
1663
|
+
constant: ::Module,
|
1664
|
+
mixin: ::Module,
|
1665
|
+
mixin_type: ::Tapioca::Runtime::Trackers::Mixin::Type
|
1666
|
+
).returns(T::Boolean)
|
1667
|
+
end
|
1668
|
+
def mixed_in_by_gem?(constant, mixin, mixin_type); end
|
1669
|
+
|
1670
|
+
# source://tapioca-0.9.2/lib/tapioca/gem/listeners/mixins.rb:15
|
994
1671
|
sig { override.params(event: ::Tapioca::Gem::ScopeNodeAdded).void }
|
995
1672
|
def on_scope(event); end
|
996
1673
|
end
|
997
1674
|
|
1675
|
+
# source://tapioca-0.9.2/lib/tapioca/gem/listeners/remove_empty_payload_scopes.rb:7
|
998
1676
|
class Tapioca::Gem::Listeners::RemoveEmptyPayloadScopes < ::Tapioca::Gem::Listeners::Base
|
999
1677
|
include ::Tapioca::Runtime::Reflection
|
1000
1678
|
|
1001
1679
|
private
|
1002
1680
|
|
1681
|
+
# source://tapioca-0.9.2/lib/tapioca/gem/listeners/remove_empty_payload_scopes.rb:20
|
1682
|
+
sig { override.params(event: ::Tapioca::Gem::NodeAdded).returns(T::Boolean) }
|
1683
|
+
def ignore?(event); end
|
1684
|
+
|
1685
|
+
# source://tapioca-0.9.2/lib/tapioca/gem/listeners/remove_empty_payload_scopes.rb:15
|
1003
1686
|
sig { override.params(event: ::Tapioca::Gem::ScopeNodeAdded).void }
|
1004
1687
|
def on_scope(event); end
|
1005
1688
|
end
|
1006
1689
|
|
1690
|
+
# source://tapioca-0.9.2/lib/tapioca/gem/listeners/sorbet_enums.rb:7
|
1007
1691
|
class Tapioca::Gem::Listeners::SorbetEnums < ::Tapioca::Gem::Listeners::Base
|
1008
1692
|
private
|
1009
1693
|
|
1694
|
+
# source://tapioca-0.9.2/lib/tapioca/gem/listeners/sorbet_enums.rb:25
|
1695
|
+
sig { override.params(event: ::Tapioca::Gem::NodeAdded).returns(T::Boolean) }
|
1696
|
+
def ignore?(event); end
|
1697
|
+
|
1698
|
+
# source://tapioca-0.9.2/lib/tapioca/gem/listeners/sorbet_enums.rb:13
|
1010
1699
|
sig { override.params(event: ::Tapioca::Gem::ScopeNodeAdded).void }
|
1011
1700
|
def on_scope(event); end
|
1012
1701
|
end
|
1013
1702
|
|
1703
|
+
# source://tapioca-0.9.2/lib/tapioca/gem/listeners/sorbet_helpers.rb:7
|
1014
1704
|
class Tapioca::Gem::Listeners::SorbetHelpers < ::Tapioca::Gem::Listeners::Base
|
1015
1705
|
include ::Tapioca::Runtime::Reflection
|
1016
1706
|
|
1017
1707
|
private
|
1018
1708
|
|
1709
|
+
# source://tapioca-0.9.2/lib/tapioca/gem/listeners/sorbet_helpers.rb:28
|
1710
|
+
sig { override.params(event: ::Tapioca::Gem::NodeAdded).returns(T::Boolean) }
|
1711
|
+
def ignore?(event); end
|
1712
|
+
|
1713
|
+
# source://tapioca-0.9.2/lib/tapioca/gem/listeners/sorbet_helpers.rb:15
|
1019
1714
|
sig { override.params(event: ::Tapioca::Gem::ScopeNodeAdded).void }
|
1020
1715
|
def on_scope(event); end
|
1021
1716
|
end
|
1022
1717
|
|
1718
|
+
# source://tapioca-0.9.2/lib/tapioca/gem/listeners/sorbet_props.rb:7
|
1023
1719
|
class Tapioca::Gem::Listeners::SorbetProps < ::Tapioca::Gem::Listeners::Base
|
1024
1720
|
private
|
1025
1721
|
|
1722
|
+
# source://tapioca-0.9.2/lib/tapioca/gem/listeners/sorbet_props.rb:32
|
1723
|
+
sig { override.params(event: ::Tapioca::Gem::NodeAdded).returns(T::Boolean) }
|
1724
|
+
def ignore?(event); end
|
1725
|
+
|
1726
|
+
# source://tapioca-0.9.2/lib/tapioca/gem/listeners/sorbet_props.rb:13
|
1026
1727
|
sig { override.params(event: ::Tapioca::Gem::ScopeNodeAdded).void }
|
1027
1728
|
def on_scope(event); end
|
1028
1729
|
end
|
1029
1730
|
|
1731
|
+
# source://tapioca-0.9.2/lib/tapioca/gem/listeners/sorbet_required_ancestors.rb:7
|
1030
1732
|
class Tapioca::Gem::Listeners::SorbetRequiredAncestors < ::Tapioca::Gem::Listeners::Base
|
1031
1733
|
private
|
1032
1734
|
|
1735
|
+
# source://tapioca-0.9.2/lib/tapioca/gem/listeners/sorbet_required_ancestors.rb:23
|
1736
|
+
sig { override.params(event: ::Tapioca::Gem::NodeAdded).returns(T::Boolean) }
|
1737
|
+
def ignore?(event); end
|
1738
|
+
|
1739
|
+
# source://tapioca-0.9.2/lib/tapioca/gem/listeners/sorbet_required_ancestors.rb:13
|
1033
1740
|
sig { override.params(event: ::Tapioca::Gem::ScopeNodeAdded).void }
|
1034
1741
|
def on_scope(event); end
|
1035
1742
|
end
|
1036
1743
|
|
1744
|
+
# source://tapioca-0.9.2/lib/tapioca/gem/listeners/sorbet_signatures.rb:7
|
1037
1745
|
class Tapioca::Gem::Listeners::SorbetSignatures < ::Tapioca::Gem::Listeners::Base
|
1038
1746
|
include ::Tapioca::Runtime::Reflection
|
1039
|
-
include ::Tapioca::
|
1747
|
+
include ::Tapioca::SorbetHelper
|
1748
|
+
include ::Tapioca::RBIHelper
|
1040
1749
|
|
1041
1750
|
private
|
1042
1751
|
|
1752
|
+
# source://tapioca-0.9.2/lib/tapioca/gem/listeners/sorbet_signatures.rb:26
|
1043
1753
|
sig { params(signature: T.untyped, parameters: T::Array[[::Symbol, ::String]]).returns(::RBI::Sig) }
|
1044
1754
|
def compile_signature(signature, parameters); end
|
1045
1755
|
|
1756
|
+
# source://tapioca-0.9.2/lib/tapioca/gem/listeners/sorbet_signatures.rb:78
|
1757
|
+
sig { override.params(event: ::Tapioca::Gem::NodeAdded).returns(T::Boolean) }
|
1758
|
+
def ignore?(event); end
|
1759
|
+
|
1760
|
+
# source://tapioca-0.9.2/lib/tapioca/gem/listeners/sorbet_signatures.rb:18
|
1046
1761
|
sig { override.params(event: ::Tapioca::Gem::MethodNodeAdded).void }
|
1047
1762
|
def on_method(event); end
|
1048
1763
|
|
1764
|
+
# source://tapioca-0.9.2/lib/tapioca/gem/listeners/sorbet_signatures.rb:68
|
1049
1765
|
sig { params(signature: T.untyped).returns(T::Boolean) }
|
1050
1766
|
def signature_final?(signature); end
|
1051
1767
|
end
|
1052
1768
|
|
1769
|
+
# source://tapioca-0.9.2/lib/tapioca/gem/listeners/sorbet_signatures.rb:13
|
1053
1770
|
Tapioca::Gem::Listeners::SorbetSignatures::TYPE_PARAMETER_MATCHER = T.let(T.unsafe(nil), Regexp)
|
1054
1771
|
|
1772
|
+
# source://tapioca-0.9.2/lib/tapioca/gem/listeners/sorbet_type_variables.rb:7
|
1055
1773
|
class Tapioca::Gem::Listeners::SorbetTypeVariables < ::Tapioca::Gem::Listeners::Base
|
1056
1774
|
include ::Tapioca::Runtime::Reflection
|
1057
1775
|
|
1058
1776
|
private
|
1059
1777
|
|
1778
|
+
# source://tapioca-0.9.2/lib/tapioca/gem/listeners/sorbet_type_variables.rb:27
|
1060
1779
|
sig { params(tree: ::RBI::Tree, constant: ::Module).void }
|
1061
1780
|
def compile_type_variable_declarations(tree, constant); end
|
1062
1781
|
|
1782
|
+
# source://tapioca-0.9.2/lib/tapioca/gem/listeners/sorbet_type_variables.rb:50
|
1783
|
+
sig { override.params(event: ::Tapioca::Gem::NodeAdded).returns(T::Boolean) }
|
1784
|
+
def ignore?(event); end
|
1785
|
+
|
1786
|
+
# source://tapioca-0.9.2/lib/tapioca/gem/listeners/sorbet_type_variables.rb:15
|
1787
|
+
sig { override.params(event: ::Tapioca::Gem::ScopeNodeAdded).void }
|
1788
|
+
def on_scope(event); end
|
1789
|
+
end
|
1790
|
+
|
1791
|
+
# source://tapioca-0.9.2/lib/tapioca/gem/listeners/source_location.rb:7
|
1792
|
+
class Tapioca::Gem::Listeners::SourceLocation < ::Tapioca::Gem::Listeners::Base
|
1793
|
+
private
|
1794
|
+
|
1795
|
+
# source://tapioca-0.9.2/lib/tapioca/gem/listeners/source_location.rb:41
|
1796
|
+
sig { params(node: ::RBI::NodeWithComments, file: T.nilable(::String), line: T.nilable(::Integer)).void }
|
1797
|
+
def add_source_location_comment(node, file, line); end
|
1798
|
+
|
1799
|
+
# source://tapioca-0.9.2/lib/tapioca/gem/listeners/source_location.rb:13
|
1800
|
+
sig { override.params(event: ::Tapioca::Gem::ConstNodeAdded).void }
|
1801
|
+
def on_const(event); end
|
1802
|
+
|
1803
|
+
# source://tapioca-0.9.2/lib/tapioca/gem/listeners/source_location.rb:35
|
1804
|
+
sig { override.params(event: ::Tapioca::Gem::MethodNodeAdded).void }
|
1805
|
+
def on_method(event); end
|
1806
|
+
|
1807
|
+
# source://tapioca-0.9.2/lib/tapioca/gem/listeners/source_location.rb:19
|
1063
1808
|
sig { override.params(event: ::Tapioca::Gem::ScopeNodeAdded).void }
|
1064
1809
|
def on_scope(event); end
|
1065
1810
|
end
|
1066
1811
|
|
1812
|
+
# source://tapioca-0.9.2/lib/tapioca/gem/listeners/subconstants.rb:7
|
1067
1813
|
class Tapioca::Gem::Listeners::Subconstants < ::Tapioca::Gem::Listeners::Base
|
1068
1814
|
include ::Tapioca::Runtime::Reflection
|
1069
1815
|
|
1070
1816
|
private
|
1071
1817
|
|
1818
|
+
# source://tapioca-0.9.2/lib/tapioca/gem/listeners/subconstants.rb:36
|
1819
|
+
sig { override.params(event: ::Tapioca::Gem::NodeAdded).returns(T::Boolean) }
|
1820
|
+
def ignore?(event); end
|
1821
|
+
|
1822
|
+
# source://tapioca-0.9.2/lib/tapioca/gem/listeners/subconstants.rb:15
|
1072
1823
|
sig { override.params(event: ::Tapioca::Gem::ScopeNodeAdded).void }
|
1073
1824
|
def on_scope(event); end
|
1074
1825
|
end
|
1075
1826
|
|
1827
|
+
# source://tapioca-0.9.2/lib/tapioca/gem/listeners/yard_doc.rb:7
|
1076
1828
|
class Tapioca::Gem::Listeners::YardDoc < ::Tapioca::Gem::Listeners::Base
|
1829
|
+
# source://tapioca-0.9.2/lib/tapioca/gem/listeners/yard_doc.rb:24
|
1077
1830
|
sig { params(pipeline: ::Tapioca::Gem::Pipeline).void }
|
1078
1831
|
def initialize(pipeline); end
|
1079
1832
|
|
1080
1833
|
private
|
1081
1834
|
|
1835
|
+
# source://tapioca-0.9.2/lib/tapioca/gem/listeners/yard_doc.rb:51
|
1082
1836
|
sig { params(name: ::String, sigs: T::Array[::RBI::Sig]).returns(T::Array[::RBI::Comment]) }
|
1083
1837
|
def documentation_comments(name, sigs: T.unsafe(nil)); end
|
1084
1838
|
|
1839
|
+
# source://tapioca-0.9.2/lib/tapioca/gem/listeners/yard_doc.rb:95
|
1840
|
+
sig { override.params(event: ::Tapioca::Gem::NodeAdded).returns(T::Boolean) }
|
1841
|
+
def ignore?(event); end
|
1842
|
+
|
1843
|
+
# source://tapioca-0.9.2/lib/tapioca/gem/listeners/yard_doc.rb:32
|
1085
1844
|
sig { override.params(event: ::Tapioca::Gem::ConstNodeAdded).void }
|
1086
1845
|
def on_const(event); end
|
1087
1846
|
|
1847
|
+
# source://tapioca-0.9.2/lib/tapioca/gem/listeners/yard_doc.rb:42
|
1088
1848
|
sig { override.params(event: ::Tapioca::Gem::MethodNodeAdded).void }
|
1089
1849
|
def on_method(event); end
|
1090
1850
|
|
1851
|
+
# source://tapioca-0.9.2/lib/tapioca/gem/listeners/yard_doc.rb:37
|
1091
1852
|
sig { override.params(event: ::Tapioca::Gem::ScopeNodeAdded).void }
|
1092
1853
|
def on_scope(event); end
|
1093
1854
|
end
|
1094
1855
|
|
1856
|
+
# source://tapioca-0.9.2/lib/tapioca/gem/listeners/yard_doc.rb:10
|
1095
1857
|
Tapioca::Gem::Listeners::YardDoc::IGNORED_COMMENTS = T.let(T.unsafe(nil), Array)
|
1858
|
+
|
1859
|
+
# source://tapioca-0.9.2/lib/tapioca/gem/listeners/yard_doc.rb:21
|
1096
1860
|
Tapioca::Gem::Listeners::YardDoc::IGNORED_SIG_TAGS = T.let(T.unsafe(nil), Array)
|
1097
1861
|
|
1862
|
+
# source://tapioca-0.9.2/lib/tapioca/gem/events.rb:105
|
1098
1863
|
class Tapioca::Gem::MethodNodeAdded < ::Tapioca::Gem::NodeAdded
|
1864
|
+
# source://tapioca-0.9.2/lib/tapioca/gem/events.rb:130
|
1099
1865
|
sig do
|
1100
1866
|
params(
|
1101
1867
|
symbol: ::String,
|
1102
1868
|
constant: ::Module,
|
1869
|
+
method: ::UnboundMethod,
|
1103
1870
|
node: ::RBI::Method,
|
1104
1871
|
signature: T.untyped,
|
1105
1872
|
parameters: T::Array[[::Symbol, ::String]]
|
1106
1873
|
).void
|
1107
1874
|
end
|
1108
|
-
def initialize(symbol, constant, node, signature, parameters); end
|
1875
|
+
def initialize(symbol, constant, method, node, signature, parameters); end
|
1109
1876
|
|
1877
|
+
# source://tapioca-0.9.2/lib/tapioca/gem/events.rb:109
|
1878
|
+
sig { returns(::UnboundMethod) }
|
1879
|
+
def method; end
|
1880
|
+
|
1881
|
+
# source://tapioca-0.9.2/lib/tapioca/gem/events.rb:112
|
1110
1882
|
sig { returns(::RBI::Method) }
|
1111
1883
|
def node; end
|
1112
1884
|
|
1885
|
+
# source://tapioca-0.9.2/lib/tapioca/gem/events.rb:118
|
1113
1886
|
sig { returns(T::Array[[::Symbol, ::String]]) }
|
1114
1887
|
def parameters; end
|
1115
1888
|
|
1889
|
+
# source://tapioca-0.9.2/lib/tapioca/gem/events.rb:115
|
1116
1890
|
sig { returns(T.untyped) }
|
1117
1891
|
def signature; end
|
1118
1892
|
end
|
1119
1893
|
|
1120
1894
|
# @abstract It cannont be directly instantiated. Subclasses must implement the `abstract` methods below.
|
1895
|
+
#
|
1896
|
+
# source://tapioca-0.9.2/lib/tapioca/gem/events.rb:57
|
1121
1897
|
class Tapioca::Gem::NodeAdded < ::Tapioca::Gem::Event
|
1122
1898
|
abstract!
|
1123
1899
|
|
1900
|
+
# source://tapioca-0.9.2/lib/tapioca/gem/events.rb:70
|
1124
1901
|
sig { params(symbol: ::String, constant: ::Module).void }
|
1125
1902
|
def initialize(symbol, constant); end
|
1126
1903
|
|
1904
|
+
# source://tapioca-0.9.2/lib/tapioca/gem/events.rb:67
|
1127
1905
|
sig { returns(::Module) }
|
1128
1906
|
def constant; end
|
1129
1907
|
|
1908
|
+
# source://tapioca-0.9.2/lib/tapioca/gem/events.rb:64
|
1130
1909
|
sig { returns(::String) }
|
1131
1910
|
def symbol; end
|
1132
1911
|
end
|
1133
1912
|
|
1913
|
+
# source://tapioca-0.9.2/lib/tapioca/gem/pipeline.rb:6
|
1134
1914
|
class Tapioca::Gem::Pipeline
|
1135
1915
|
include ::Tapioca::Runtime::Reflection
|
1136
|
-
include ::Tapioca::
|
1916
|
+
include ::Tapioca::SorbetHelper
|
1917
|
+
include ::Tapioca::RBIHelper
|
1137
1918
|
|
1138
|
-
|
1139
|
-
|
1919
|
+
# source://tapioca-0.9.2/lib/tapioca/gem/pipeline.rb:17
|
1920
|
+
sig { params(gem: ::Tapioca::Gemfile::GemSpec, include_doc: T::Boolean, include_loc: T::Boolean).void }
|
1921
|
+
def initialize(gem, include_doc: T.unsafe(nil), include_loc: T.unsafe(nil)); end
|
1140
1922
|
|
1923
|
+
# source://tapioca-0.9.2/lib/tapioca/gem/pipeline.rb:48
|
1141
1924
|
sig { returns(::RBI::Tree) }
|
1142
1925
|
def compile; end
|
1143
1926
|
|
1927
|
+
# source://tapioca-0.9.2/lib/tapioca/gem/pipeline.rb:14
|
1144
1928
|
sig { returns(::Tapioca::Gemfile::GemSpec) }
|
1145
1929
|
def gem; end
|
1146
1930
|
|
1931
|
+
# source://tapioca-0.9.2/lib/tapioca/gem/pipeline.rb:110
|
1147
1932
|
sig { params(method: ::UnboundMethod).returns(T::Boolean) }
|
1148
1933
|
def method_in_gem?(method); end
|
1149
1934
|
|
1935
|
+
# source://tapioca-0.9.2/lib/tapioca/gem/pipeline.rb:118
|
1150
1936
|
sig { params(constant: ::Module).returns(T.nilable(::String)) }
|
1151
1937
|
def name_of(constant); end
|
1152
1938
|
|
1939
|
+
# source://tapioca-0.9.2/lib/tapioca/gem/pipeline.rb:69
|
1153
1940
|
sig { params(symbol: ::String, constant: ::Module, node: ::RBI::Const).void }
|
1154
1941
|
def push_const(symbol, constant, node); end
|
1155
1942
|
|
1943
|
+
# source://tapioca-0.9.2/lib/tapioca/gem/pipeline.rb:59
|
1156
1944
|
sig { params(symbol: ::String, constant: ::BasicObject).void }
|
1157
1945
|
def push_constant(symbol, constant); end
|
1158
1946
|
|
1947
|
+
# source://tapioca-0.9.2/lib/tapioca/gem/pipeline.rb:64
|
1948
|
+
sig { params(symbol: ::String, constant: ::Module).void }
|
1949
|
+
def push_foreign_constant(symbol, constant); end
|
1950
|
+
|
1951
|
+
# source://tapioca-0.9.2/lib/tapioca/gem/pipeline.rb:83
|
1952
|
+
sig { params(symbol: ::String, constant: ::Module, node: ::RBI::Scope).void }
|
1953
|
+
def push_foreign_scope(symbol, constant, node); end
|
1954
|
+
|
1955
|
+
# source://tapioca-0.9.2/lib/tapioca/gem/pipeline.rb:97
|
1159
1956
|
sig do
|
1160
1957
|
params(
|
1161
1958
|
symbol: ::String,
|
1162
1959
|
constant: ::Module,
|
1960
|
+
method: ::UnboundMethod,
|
1163
1961
|
node: ::RBI::Method,
|
1164
1962
|
signature: T.untyped,
|
1165
1963
|
parameters: T::Array[[::Symbol, ::String]]
|
1166
1964
|
).void
|
1167
1965
|
end
|
1168
|
-
def push_method(symbol, constant, node, signature, parameters); end
|
1966
|
+
def push_method(symbol, constant, method, node, signature, parameters); end
|
1169
1967
|
|
1968
|
+
# source://tapioca-0.9.2/lib/tapioca/gem/pipeline.rb:76
|
1170
1969
|
sig { params(symbol: ::String, constant: ::Module, node: ::RBI::Scope).void }
|
1171
1970
|
def push_scope(symbol, constant, node); end
|
1172
1971
|
|
1972
|
+
# source://tapioca-0.9.2/lib/tapioca/gem/pipeline.rb:54
|
1173
1973
|
sig { params(symbol: ::String).void }
|
1174
1974
|
def push_symbol(symbol); end
|
1175
1975
|
|
1976
|
+
# source://tapioca-0.9.2/lib/tapioca/gem/pipeline.rb:102
|
1176
1977
|
sig { params(symbol_name: ::String).returns(T::Boolean) }
|
1177
1978
|
def symbol_in_payload?(symbol_name); end
|
1178
1979
|
|
1179
1980
|
private
|
1180
1981
|
|
1982
|
+
# source://tapioca-0.9.2/lib/tapioca/gem/pipeline.rb:364
|
1181
1983
|
sig { params(name: ::String).void }
|
1182
1984
|
def add_to_alias_namespace(name); end
|
1183
1985
|
|
1986
|
+
# source://tapioca-0.9.2/lib/tapioca/gem/pipeline.rb:369
|
1184
1987
|
sig { params(name: ::String).returns(T::Boolean) }
|
1185
1988
|
def alias_namespaced?(name); end
|
1186
1989
|
|
1990
|
+
# source://tapioca-0.9.2/lib/tapioca/gem/pipeline.rb:213
|
1187
1991
|
sig { params(name: ::String, constant: ::Module).void }
|
1188
1992
|
def compile_alias(name, constant); end
|
1189
1993
|
|
1190
|
-
#
|
1994
|
+
# source://tapioca-0.9.2/lib/tapioca/gem/pipeline.rb:199
|
1191
1995
|
sig { params(symbol: ::String, constant: ::BasicObject).void }
|
1192
1996
|
def compile_constant(symbol, constant); end
|
1193
1997
|
|
1194
|
-
|
1195
|
-
|
1998
|
+
# Compile
|
1999
|
+
#
|
2000
|
+
# source://tapioca-0.9.2/lib/tapioca/gem/pipeline.rb:194
|
2001
|
+
sig { params(symbol: ::String, constant: ::Module).void }
|
2002
|
+
def compile_foreign_constant(symbol, constant); end
|
2003
|
+
|
2004
|
+
# source://tapioca-0.9.2/lib/tapioca/gem/pipeline.rb:269
|
2005
|
+
sig { params(name: ::String, constant: ::Module, foreign_constant: T::Boolean).void }
|
2006
|
+
def compile_module(name, constant, foreign_constant: T.unsafe(nil)); end
|
1196
2007
|
|
2008
|
+
# source://tapioca-0.9.2/lib/tapioca/gem/pipeline.rb:234
|
1197
2009
|
sig { params(name: ::String, value: ::BasicObject).void }
|
1198
2010
|
def compile_object(name, value); end
|
1199
2011
|
|
2012
|
+
# source://tapioca-0.9.2/lib/tapioca/gem/pipeline.rb:294
|
1200
2013
|
sig { params(constant: ::Class).returns(T.nilable(::String)) }
|
1201
2014
|
def compile_superclass(constant); end
|
1202
2015
|
|
2016
|
+
# source://tapioca-0.9.2/lib/tapioca/gem/pipeline.rb:343
|
1203
2017
|
sig { params(constant: ::Module, strict: T::Boolean).returns(T::Boolean) }
|
1204
2018
|
def defined_in_gem?(constant, strict: T.unsafe(nil)); end
|
1205
2019
|
|
2020
|
+
# source://tapioca-0.9.2/lib/tapioca/gem/pipeline.rb:146
|
1206
2021
|
sig { params(event: ::Tapioca::Gem::Event).void }
|
1207
2022
|
def dispatch(event); end
|
1208
2023
|
|
2024
|
+
# source://tapioca-0.9.2/lib/tapioca/gem/pipeline.rb:386
|
1209
2025
|
sig { params(constant: T.all(::Module, ::T::Generic)).returns(::String) }
|
1210
2026
|
def generic_name_of(constant); end
|
1211
2027
|
|
2028
|
+
# source://tapioca-0.9.2/lib/tapioca/gem/pipeline.rb:355
|
1212
2029
|
sig { params(constant: ::Module).returns(T::Array[::String]) }
|
1213
2030
|
def get_file_candidates(constant); end
|
1214
2031
|
|
2032
|
+
# source://tapioca-0.9.2/lib/tapioca/gem/pipeline.rb:133
|
2033
|
+
sig { params(gem: ::Tapioca::Gemfile::GemSpec).returns(T::Set[::String]) }
|
2034
|
+
def load_bootstrap_symbols(gem); end
|
2035
|
+
|
2036
|
+
# source://tapioca-0.9.2/lib/tapioca/gem/pipeline.rb:376
|
1215
2037
|
sig { params(name: ::String).void }
|
1216
2038
|
def mark_seen(name); end
|
1217
2039
|
|
2040
|
+
# source://tapioca-0.9.2/lib/tapioca/gem/pipeline.rb:399
|
1218
2041
|
sig { params(constant: ::Module, class_name: T.nilable(::String)).returns(T.nilable(::String)) }
|
1219
2042
|
def name_of_proxy_target(constant, class_name); end
|
1220
2043
|
|
2044
|
+
# source://tapioca-0.9.2/lib/tapioca/gem/pipeline.rb:141
|
1221
2045
|
sig { returns(::Tapioca::Gem::Event) }
|
1222
2046
|
def next_event; end
|
1223
2047
|
|
2048
|
+
# source://tapioca-0.9.2/lib/tapioca/gem/pipeline.rb:169
|
1224
2049
|
sig { params(event: ::Tapioca::Gem::ConstantFound).void }
|
1225
2050
|
def on_constant(event); end
|
1226
2051
|
|
2052
|
+
# source://tapioca-0.9.2/lib/tapioca/gem/pipeline.rb:187
|
1227
2053
|
sig { params(event: ::Tapioca::Gem::NodeAdded).void }
|
1228
2054
|
def on_node(event); end
|
1229
2055
|
|
2056
|
+
# source://tapioca-0.9.2/lib/tapioca/gem/pipeline.rb:160
|
1230
2057
|
sig { params(event: ::Tapioca::Gem::SymbolFound).void }
|
1231
2058
|
def on_symbol(event); end
|
1232
2059
|
|
2060
|
+
# source://tapioca-0.9.2/lib/tapioca/gem/pipeline.rb:381
|
1233
2061
|
sig { params(name: ::String).returns(T::Boolean) }
|
1234
2062
|
def seen?(name); end
|
1235
2063
|
end
|
1236
2064
|
|
2065
|
+
# source://tapioca-0.9.2/lib/tapioca/gem/pipeline.rb:11
|
1237
2066
|
Tapioca::Gem::Pipeline::IGNORED_SYMBOLS = T.let(T.unsafe(nil), Array)
|
1238
2067
|
|
2068
|
+
# source://tapioca-0.9.2/lib/tapioca/gem/events.rb:90
|
1239
2069
|
class Tapioca::Gem::ScopeNodeAdded < ::Tapioca::Gem::NodeAdded
|
2070
|
+
# source://tapioca-0.9.2/lib/tapioca/gem/events.rb:97
|
1240
2071
|
sig { params(symbol: ::String, constant: ::Module, node: ::RBI::Scope).void }
|
1241
2072
|
def initialize(symbol, constant, node); end
|
1242
2073
|
|
2074
|
+
# source://tapioca-0.9.2/lib/tapioca/gem/events.rb:94
|
1243
2075
|
sig { returns(::RBI::Scope) }
|
1244
2076
|
def node; end
|
1245
2077
|
end
|
1246
2078
|
|
2079
|
+
# source://tapioca-0.9.2/lib/tapioca/gem/events.rb:13
|
1247
2080
|
class Tapioca::Gem::SymbolFound < ::Tapioca::Gem::Event
|
2081
|
+
# source://tapioca-0.9.2/lib/tapioca/gem/events.rb:20
|
1248
2082
|
sig { params(symbol: ::String).void }
|
1249
2083
|
def initialize(symbol); end
|
1250
2084
|
|
2085
|
+
# source://tapioca-0.9.2/lib/tapioca/gem/events.rb:17
|
1251
2086
|
sig { returns(::String) }
|
1252
2087
|
def symbol; end
|
1253
2088
|
end
|
1254
2089
|
|
2090
|
+
# source://tapioca-0.9.2/lib/tapioca/helpers/gem_helper.rb:5
|
1255
2091
|
module Tapioca::GemHelper
|
2092
|
+
# source://tapioca-0.9.2/lib/tapioca/helpers/gem_helper.rb:9
|
1256
2093
|
sig { params(gemfile_dir: ::String, full_gem_path: ::String).returns(T::Boolean) }
|
1257
2094
|
def gem_in_app_dir?(gemfile_dir, full_gem_path); end
|
1258
2095
|
|
2096
|
+
# source://tapioca-0.9.2/lib/tapioca/helpers/gem_helper.rb:15
|
1259
2097
|
sig { params(full_gem_path: ::String).returns(T::Boolean) }
|
1260
2098
|
def gem_in_bundle_path?(full_gem_path); end
|
1261
2099
|
|
2100
|
+
# source://tapioca-0.9.2/lib/tapioca/helpers/gem_helper.rb:20
|
1262
2101
|
sig { params(path: T.any(::Pathname, ::String)).returns(::String) }
|
1263
2102
|
def to_realpath(path); end
|
1264
2103
|
end
|
1265
2104
|
|
2105
|
+
# source://tapioca-0.9.2/lib/tapioca/gemfile.rb:5
|
1266
2106
|
class Tapioca::Gemfile
|
2107
|
+
# source://tapioca-0.9.2/lib/tapioca/gemfile.rb:69
|
1267
2108
|
sig { params(exclude: T::Array[::String]).void }
|
1268
2109
|
def initialize(exclude); end
|
1269
2110
|
|
2111
|
+
# source://tapioca-0.9.2/lib/tapioca/gemfile.rb:60
|
1270
2112
|
sig { returns(::Bundler::Definition) }
|
1271
2113
|
def definition; end
|
1272
2114
|
|
2115
|
+
# source://tapioca-0.9.2/lib/tapioca/gemfile.rb:63
|
1273
2116
|
sig { returns(T::Array[::Tapioca::Gemfile::GemSpec]) }
|
1274
2117
|
def dependencies; end
|
1275
2118
|
|
2119
|
+
# source://tapioca-0.9.2/lib/tapioca/gemfile.rb:80
|
1276
2120
|
sig { params(gem_name: ::String).returns(T.nilable(::Tapioca::Gemfile::GemSpec)) }
|
1277
2121
|
def gem(gem_name); end
|
1278
2122
|
|
2123
|
+
# source://tapioca-0.9.2/lib/tapioca/gemfile.rb:66
|
1279
2124
|
sig { returns(T::Array[::String]) }
|
1280
2125
|
def missing_specs; end
|
1281
2126
|
|
2127
|
+
# source://tapioca-0.9.2/lib/tapioca/gemfile.rb:85
|
1282
2128
|
sig { void }
|
1283
2129
|
def require_bundle; end
|
1284
2130
|
|
1285
2131
|
private
|
1286
2132
|
|
2133
|
+
# source://tapioca-0.9.2/lib/tapioca/gemfile.rb:131
|
1287
2134
|
sig { returns(::String) }
|
1288
2135
|
def dir; end
|
1289
2136
|
|
2137
|
+
# source://tapioca-0.9.2/lib/tapioca/gemfile.rb:92
|
1290
2138
|
sig { returns(::File) }
|
1291
2139
|
def gemfile; end
|
1292
2140
|
|
2141
|
+
# source://tapioca-0.9.2/lib/tapioca/gemfile.rb:126
|
1293
2142
|
sig { returns(T::Array[::Symbol]) }
|
1294
2143
|
def groups; end
|
1295
2144
|
|
2145
|
+
# source://tapioca-0.9.2/lib/tapioca/gemfile.rb:95
|
1296
2146
|
sig { returns([T::Array[::Tapioca::Gemfile::GemSpec], T::Array[::String]]) }
|
1297
2147
|
def load_dependencies; end
|
1298
2148
|
|
1299
2149
|
# @return [File]
|
2150
|
+
#
|
2151
|
+
# source://tapioca-0.9.2/lib/tapioca/gemfile.rb:92
|
1300
2152
|
def lockfile; end
|
1301
2153
|
|
2154
|
+
# source://tapioca-0.9.2/lib/tapioca/gemfile.rb:106
|
1302
2155
|
sig { returns([T::Enumerable[T.any(::Bundler::StubSpecification, ::Gem::Specification)], T::Array[::String]]) }
|
1303
2156
|
def materialize_deps; end
|
1304
2157
|
|
2158
|
+
# source://tapioca-0.9.2/lib/tapioca/gemfile.rb:121
|
1305
2159
|
sig { returns(::Bundler::Runtime) }
|
1306
2160
|
def runtime; end
|
1307
2161
|
end
|
@@ -1309,99 +2163,144 @@ end
|
|
1309
2163
|
# This is a module that gets prepended to `Bundler::Dependency` and
|
1310
2164
|
# makes sure even gems marked as `require: false` are required during
|
1311
2165
|
# `Bundler.require`.
|
2166
|
+
#
|
2167
|
+
# source://tapioca-0.9.2/lib/tapioca/gemfile.rb:18
|
1312
2168
|
module Tapioca::Gemfile::AutoRequireHook
|
1313
2169
|
requires_ancestor { Bundler::Dependency }
|
1314
2170
|
|
2171
|
+
# source://tapioca-0.9.2/lib/tapioca/gemfile.rb:39
|
1315
2172
|
sig { returns(T.untyped) }
|
1316
2173
|
def autorequire; end
|
1317
2174
|
|
1318
2175
|
class << self
|
2176
|
+
# source://tapioca-0.9.2/lib/tapioca/gemfile.rb:30
|
1319
2177
|
sig { params(exclude: T::Array[::String]).returns(T::Array[::String]) }
|
1320
2178
|
def exclude=(exclude); end
|
1321
2179
|
|
2180
|
+
# source://tapioca-0.9.2/lib/tapioca/gemfile.rb:33
|
1322
2181
|
sig { params(name: T.untyped).returns(T::Boolean) }
|
1323
2182
|
def excluded?(name); end
|
1324
2183
|
end
|
1325
2184
|
end
|
1326
2185
|
|
2186
|
+
# source://tapioca-0.9.2/lib/tapioca/gemfile.rb:135
|
1327
2187
|
class Tapioca::Gemfile::GemSpec
|
1328
2188
|
include ::Tapioca::GemHelper
|
1329
2189
|
|
2190
|
+
# source://tapioca-0.9.2/lib/tapioca/gemfile.rb:154
|
1330
2191
|
sig { params(spec: T.any(::Bundler::StubSpecification, ::Gem::Specification)).void }
|
1331
2192
|
def initialize(spec); end
|
1332
2193
|
|
2194
|
+
# source://tapioca-0.9.2/lib/tapioca/gemfile.rb:179
|
1333
2195
|
sig { params(path: ::String).returns(T::Boolean) }
|
1334
2196
|
def contains_path?(path); end
|
1335
2197
|
|
2198
|
+
# source://tapioca-0.9.2/lib/tapioca/gemfile.rb:198
|
1336
2199
|
sig { returns(T::Boolean) }
|
1337
2200
|
def export_rbi_files?; end
|
1338
2201
|
|
2202
|
+
# source://tapioca-0.9.2/lib/tapioca/gemfile.rb:193
|
1339
2203
|
sig { returns(T::Array[::String]) }
|
1340
2204
|
def exported_rbi_files; end
|
1341
2205
|
|
2206
|
+
# source://tapioca-0.9.2/lib/tapioca/gemfile.rb:203
|
1342
2207
|
sig { returns(::RBI::MergeTree) }
|
1343
2208
|
def exported_rbi_tree; end
|
1344
2209
|
|
2210
|
+
# source://tapioca-0.9.2/lib/tapioca/gemfile.rb:151
|
1345
2211
|
sig { returns(T::Array[::Pathname]) }
|
1346
2212
|
def files; end
|
1347
2213
|
|
2214
|
+
# source://tapioca-0.9.2/lib/tapioca/gemfile.rb:148
|
1348
2215
|
sig { returns(::String) }
|
1349
2216
|
def full_gem_path; end
|
1350
2217
|
|
2218
|
+
# source://tapioca-0.9.2/lib/tapioca/gemfile.rb:164
|
1351
2219
|
sig { params(gemfile_dir: ::String).returns(T::Boolean) }
|
1352
2220
|
def ignore?(gemfile_dir); end
|
1353
2221
|
|
2222
|
+
# source://tapioca-0.9.2/lib/tapioca/gemfile.rb:169
|
1354
2223
|
sig { returns(::String) }
|
1355
2224
|
def name; end
|
1356
2225
|
|
2226
|
+
# source://tapioca-0.9.2/lib/tapioca/gemfile.rb:188
|
1357
2227
|
sig { void }
|
1358
2228
|
def parse_yard_docs; end
|
1359
2229
|
|
2230
|
+
# source://tapioca-0.9.2/lib/tapioca/gemfile.rb:174
|
1360
2231
|
sig { returns(::String) }
|
1361
2232
|
def rbi_file_name; end
|
1362
2233
|
|
1363
2234
|
# @return [String]
|
2235
|
+
#
|
2236
|
+
# source://tapioca-0.9.2/lib/tapioca/gemfile.rb:148
|
1364
2237
|
def version; end
|
1365
2238
|
|
1366
2239
|
private
|
1367
2240
|
|
2241
|
+
# source://tapioca-0.9.2/lib/tapioca/gemfile.rb:217
|
1368
2242
|
sig { returns(T::Array[::Pathname]) }
|
1369
2243
|
def collect_files; end
|
1370
2244
|
|
2245
|
+
# source://tapioca-0.9.2/lib/tapioca/gemfile.rb:232
|
1371
2246
|
sig { returns(T.nilable(T::Boolean)) }
|
1372
2247
|
def default_gem?; end
|
1373
2248
|
|
2249
|
+
# source://tapioca-0.9.2/lib/tapioca/gemfile.rb:290
|
1374
2250
|
sig { returns(T::Boolean) }
|
1375
2251
|
def gem_ignored?; end
|
1376
2252
|
|
2253
|
+
# source://tapioca-0.9.2/lib/tapioca/gemfile.rb:269
|
1377
2254
|
sig { params(path: ::String).returns(T::Boolean) }
|
1378
2255
|
def has_parent_gemspec?(path); end
|
1379
2256
|
|
2257
|
+
# source://tapioca-0.9.2/lib/tapioca/gemfile.rb:237
|
1380
2258
|
sig { returns(::Regexp) }
|
1381
2259
|
def require_paths_prefix_matcher; end
|
1382
2260
|
|
2261
|
+
# source://tapioca-0.9.2/lib/tapioca/gemfile.rb:248
|
1383
2262
|
sig { params(file: ::String).returns(::Pathname) }
|
1384
2263
|
def resolve_to_ruby_lib_dir(file); end
|
1385
2264
|
|
2265
|
+
# source://tapioca-0.9.2/lib/tapioca/gemfile.rb:262
|
1386
2266
|
sig { returns(::String) }
|
1387
2267
|
def version_string; end
|
1388
2268
|
end
|
1389
2269
|
|
2270
|
+
# source://tapioca-0.9.2/lib/tapioca/gemfile.rb:139
|
1390
2271
|
Tapioca::Gemfile::GemSpec::IGNORED_GEMS = T.let(T.unsafe(nil), Array)
|
1391
|
-
Tapioca::Gemfile::Spec = T.type_alias { T.any(::Bundler::StubSpecification, ::Gem::Specification) }
|
1392
|
-
|
1393
|
-
class Tapioca::RBIFormatter < ::RBI::Formatter
|
1394
|
-
sig { params(file: ::RBI::File).void }
|
1395
|
-
def write_empty_body_comment!(file); end
|
1396
2272
|
|
1397
|
-
|
1398
|
-
|
1399
|
-
end
|
2273
|
+
# source://tapioca-0.9.2/lib/tapioca/gemfile.rb:8
|
2274
|
+
Tapioca::Gemfile::Spec = T.type_alias { T.any(::Bundler::StubSpecification, ::Gem::Specification) }
|
1400
2275
|
|
1401
|
-
|
2276
|
+
# source://tapioca-0.9.2/lib/tapioca/helpers/rbi_files_helper.rb:5
|
2277
|
+
module Tapioca::RBIFilesHelper
|
1402
2278
|
requires_ancestor { Tapioca::SorbetHelper }
|
1403
2279
|
requires_ancestor { Thor::Shell }
|
1404
2280
|
|
2281
|
+
# source://tapioca-0.9.2/lib/tapioca/helpers/rbi_files_helper.rb:48
|
2282
|
+
sig do
|
2283
|
+
params(
|
2284
|
+
index: ::RBI::Index,
|
2285
|
+
shim_rbi_dir: ::String,
|
2286
|
+
todo_rbi_file: ::String
|
2287
|
+
).returns(T::Hash[::String, T::Array[::RBI::Node]])
|
2288
|
+
end
|
2289
|
+
def duplicated_nodes_from_index(index, shim_rbi_dir:, todo_rbi_file:); end
|
2290
|
+
|
2291
|
+
# source://tapioca-0.9.2/lib/tapioca/helpers/rbi_files_helper.rb:13
|
2292
|
+
sig { params(index: ::RBI::Index, kind: ::String, file: ::String).void }
|
2293
|
+
def index_rbi(index, kind, file); end
|
2294
|
+
|
2295
|
+
# source://tapioca-0.9.2/lib/tapioca/helpers/rbi_files_helper.rb:25
|
2296
|
+
sig { params(index: ::RBI::Index, kind: ::String, dir: ::String, number_of_workers: T.nilable(::Integer)).void }
|
2297
|
+
def index_rbis(index, kind, dir, number_of_workers:); end
|
2298
|
+
|
2299
|
+
# source://tapioca-0.9.2/lib/tapioca/helpers/rbi_files_helper.rb:65
|
2300
|
+
sig { params(loc: ::RBI::Loc, path_prefix: T.nilable(::String)).returns(::String) }
|
2301
|
+
def location_to_payload_url(loc, path_prefix:); end
|
2302
|
+
|
2303
|
+
# source://tapioca-0.9.2/lib/tapioca/helpers/rbi_files_helper.rb:86
|
1405
2304
|
sig do
|
1406
2305
|
params(
|
1407
2306
|
command: ::String,
|
@@ -1416,79 +2315,219 @@ module Tapioca::RBIHelper
|
|
1416
2315
|
|
1417
2316
|
private
|
1418
2317
|
|
2318
|
+
# source://tapioca-0.9.2/lib/tapioca/helpers/rbi_files_helper.rb:207
|
2319
|
+
sig { params(nodes: T::Array[::RBI::Node]).returns(T::Array[::RBI::Scope]) }
|
2320
|
+
def extract_empty_scopes(nodes); end
|
2321
|
+
|
2322
|
+
# source://tapioca-0.9.2/lib/tapioca/helpers/rbi_files_helper.rb:212
|
2323
|
+
sig { params(nodes: T::Array[::RBI::Node]).returns(T::Array[T.any(::RBI::Attr, ::RBI::Method)]) }
|
2324
|
+
def extract_methods_and_attrs(nodes); end
|
2325
|
+
|
2326
|
+
# source://tapioca-0.9.2/lib/tapioca/helpers/rbi_files_helper.rb:219
|
2327
|
+
sig do
|
2328
|
+
params(
|
2329
|
+
nodes: T::Array[T.any(::RBI::Attr, ::RBI::Method)]
|
2330
|
+
).returns(T::Array[T.any(::RBI::Attr, ::RBI::Method)])
|
2331
|
+
end
|
2332
|
+
def extract_nodes_with_sigs(nodes); end
|
2333
|
+
|
2334
|
+
# source://tapioca-0.9.2/lib/tapioca/helpers/rbi_files_helper.rb:200
|
2335
|
+
sig do
|
2336
|
+
params(
|
2337
|
+
nodes: T::Array[::RBI::Node],
|
2338
|
+
shim_rbi_dir: ::String,
|
2339
|
+
todo_rbi_file: ::String
|
2340
|
+
).returns(T::Array[::RBI::Node])
|
2341
|
+
end
|
2342
|
+
def extract_shims_and_todos(nodes, shim_rbi_dir:, todo_rbi_file:); end
|
2343
|
+
|
2344
|
+
# source://tapioca-0.9.2/lib/tapioca/helpers/rbi_files_helper.rb:251
|
1419
2345
|
sig { params(path: ::String).returns(::String) }
|
1420
2346
|
def gem_name_from_rbi_path(path); end
|
1421
2347
|
|
2348
|
+
# source://tapioca-0.9.2/lib/tapioca/helpers/rbi_files_helper.rb:157
|
2349
|
+
sig { params(index: ::RBI::Index, files: T::Array[::String], number_of_workers: T.nilable(::Integer)).void }
|
2350
|
+
def parse_and_index_files(index, files, number_of_workers:); end
|
2351
|
+
|
2352
|
+
# source://tapioca-0.9.2/lib/tapioca/helpers/rbi_files_helper.rb:172
|
2353
|
+
sig { params(nodes: T::Array[::RBI::Node], shim_rbi_dir: ::String, todo_rbi_file: ::String).returns(T::Boolean) }
|
2354
|
+
def shims_or_todos_have_duplicates?(nodes, shim_rbi_dir:, todo_rbi_file:); end
|
2355
|
+
|
2356
|
+
# source://tapioca-0.9.2/lib/tapioca/helpers/rbi_files_helper.rb:224
|
1422
2357
|
sig { params(errors: T::Array[::Spoom::Sorbet::Errors::Error], gem_dir: ::String).void }
|
1423
2358
|
def update_gem_rbis_strictnesses(errors, gem_dir); end
|
1424
2359
|
end
|
1425
2360
|
|
2361
|
+
# source://tapioca-0.9.2/lib/tapioca/rbi_formatter.rb:5
|
2362
|
+
class Tapioca::RBIFormatter < ::RBI::Formatter
|
2363
|
+
# source://tapioca-0.9.2/lib/tapioca/rbi_formatter.rb:22
|
2364
|
+
sig { params(file: ::RBI::File).void }
|
2365
|
+
def write_empty_body_comment!(file); end
|
2366
|
+
|
2367
|
+
# source://tapioca-0.9.2/lib/tapioca/rbi_formatter.rb:15
|
2368
|
+
sig { params(file: ::RBI::File, command: ::String, reason: T.nilable(::String)).void }
|
2369
|
+
def write_header!(file, command, reason: T.unsafe(nil)); end
|
2370
|
+
end
|
2371
|
+
|
2372
|
+
# source://tapioca-0.9.2/lib/tapioca/helpers/rbi_helper.rb:5
|
2373
|
+
module Tapioca::RBIHelper
|
2374
|
+
include ::Tapioca::SorbetHelper
|
2375
|
+
extend ::Tapioca::SorbetHelper
|
2376
|
+
extend ::Tapioca::RBIHelper
|
2377
|
+
|
2378
|
+
# source://tapioca-0.9.2/lib/tapioca/helpers/rbi_helper.rb:42
|
2379
|
+
sig { params(name: ::String, type: ::String).returns(::RBI::TypedParam) }
|
2380
|
+
def create_block_param(name, type:); end
|
2381
|
+
|
2382
|
+
# source://tapioca-0.9.2/lib/tapioca/helpers/rbi_helper.rb:32
|
2383
|
+
sig { params(name: ::String, type: ::String, default: ::String).returns(::RBI::TypedParam) }
|
2384
|
+
def create_kw_opt_param(name, type:, default:); end
|
2385
|
+
|
2386
|
+
# source://tapioca-0.9.2/lib/tapioca/helpers/rbi_helper.rb:27
|
2387
|
+
sig { params(name: ::String, type: ::String).returns(::RBI::TypedParam) }
|
2388
|
+
def create_kw_param(name, type:); end
|
2389
|
+
|
2390
|
+
# source://tapioca-0.9.2/lib/tapioca/helpers/rbi_helper.rb:37
|
2391
|
+
sig { params(name: ::String, type: ::String).returns(::RBI::TypedParam) }
|
2392
|
+
def create_kw_rest_param(name, type:); end
|
2393
|
+
|
2394
|
+
# source://tapioca-0.9.2/lib/tapioca/helpers/rbi_helper.rb:17
|
2395
|
+
sig { params(name: ::String, type: ::String, default: ::String).returns(::RBI::TypedParam) }
|
2396
|
+
def create_opt_param(name, type:, default:); end
|
2397
|
+
|
2398
|
+
# source://tapioca-0.9.2/lib/tapioca/helpers/rbi_helper.rb:12
|
2399
|
+
sig { params(name: ::String, type: ::String).returns(::RBI::TypedParam) }
|
2400
|
+
def create_param(name, type:); end
|
2401
|
+
|
2402
|
+
# source://tapioca-0.9.2/lib/tapioca/helpers/rbi_helper.rb:22
|
2403
|
+
sig { params(name: ::String, type: ::String).returns(::RBI::TypedParam) }
|
2404
|
+
def create_rest_param(name, type:); end
|
2405
|
+
|
2406
|
+
# source://tapioca-0.9.2/lib/tapioca/helpers/rbi_helper.rb:47
|
2407
|
+
sig { params(param: ::RBI::Param, type: ::String).returns(::RBI::TypedParam) }
|
2408
|
+
def create_typed_param(param, type); end
|
2409
|
+
|
2410
|
+
# source://tapioca-0.9.2/lib/tapioca/helpers/rbi_helper.rb:52
|
2411
|
+
sig { params(sig_string: ::String).returns(::String) }
|
2412
|
+
def sanitize_signature_types(sig_string); end
|
2413
|
+
|
2414
|
+
# source://tapioca-0.9.2/lib/tapioca/helpers/rbi_helper.rb:95
|
2415
|
+
sig { params(name: ::String).returns(T::Boolean) }
|
2416
|
+
def valid_method_name?(name); end
|
2417
|
+
|
2418
|
+
# source://tapioca-0.9.2/lib/tapioca/helpers/rbi_helper.rb:109
|
2419
|
+
sig { params(name: ::String).returns(T::Boolean) }
|
2420
|
+
def valid_parameter_name?(name); end
|
2421
|
+
|
2422
|
+
class << self
|
2423
|
+
# source://tapioca-0.9.2/lib/tapioca/helpers/rbi_helper.rb:69
|
2424
|
+
sig do
|
2425
|
+
params(
|
2426
|
+
type: ::String,
|
2427
|
+
variance: ::Symbol,
|
2428
|
+
fixed: T.nilable(::String),
|
2429
|
+
upper: T.nilable(::String),
|
2430
|
+
lower: T.nilable(::String)
|
2431
|
+
).returns(::String)
|
2432
|
+
end
|
2433
|
+
def serialize_type_variable(type, variance, fixed, upper, lower); end
|
2434
|
+
end
|
2435
|
+
end
|
2436
|
+
|
2437
|
+
# source://tapioca-0.9.2/lib/tapioca/repo_index.rb:5
|
1426
2438
|
class Tapioca::RepoIndex
|
2439
|
+
# source://tapioca-0.9.2/lib/tapioca/repo_index.rb:22
|
1427
2440
|
sig { void }
|
1428
2441
|
def initialize; end
|
1429
2442
|
|
2443
|
+
# source://tapioca-0.9.2/lib/tapioca/repo_index.rb:27
|
1430
2444
|
sig { params(gem_name: ::String).void }
|
1431
2445
|
def <<(gem_name); end
|
1432
2446
|
|
2447
|
+
# source://tapioca-0.9.2/lib/tapioca/repo_index.rb:32
|
1433
2448
|
sig { returns(T::Enumerable[::String]) }
|
1434
2449
|
def gems; end
|
1435
2450
|
|
2451
|
+
# source://tapioca-0.9.2/lib/tapioca/repo_index.rb:37
|
1436
2452
|
sig { params(gem_name: ::String).returns(T::Boolean) }
|
1437
2453
|
def has_gem?(gem_name); end
|
1438
2454
|
|
1439
2455
|
class << self
|
2456
|
+
# source://tapioca-0.9.2/lib/tapioca/repo_index.rb:15
|
1440
2457
|
sig { params(hash: T::Hash[::String, T::Hash[T.untyped, T.untyped]]).returns(Tapioca::RepoIndex) }
|
1441
2458
|
def from_hash(hash); end
|
1442
2459
|
|
2460
|
+
# source://tapioca-0.9.2/lib/tapioca/repo_index.rb:10
|
1443
2461
|
sig { params(json: ::String).returns(Tapioca::RepoIndex) }
|
1444
2462
|
def from_json(json); end
|
1445
2463
|
end
|
1446
2464
|
end
|
1447
2465
|
|
2466
|
+
# source://tapioca-0.9.2/lib/tapioca/runtime/trackers/autoload.rb:5
|
1448
2467
|
module Tapioca::Runtime; end
|
1449
2468
|
|
2469
|
+
# source://tapioca-0.9.2/lib/tapioca/runtime/dynamic_mixin_compiler.rb:6
|
1450
2470
|
class Tapioca::Runtime::DynamicMixinCompiler
|
1451
2471
|
include ::Tapioca::Runtime::Reflection
|
1452
2472
|
|
2473
|
+
# source://tapioca-0.9.2/lib/tapioca/runtime/dynamic_mixin_compiler.rb:20
|
1453
2474
|
sig { params(constant: ::Module).void }
|
1454
2475
|
def initialize(constant); end
|
1455
2476
|
|
1456
2477
|
# @return [Array<Symbol>]
|
2478
|
+
#
|
2479
|
+
# source://tapioca-0.9.2/lib/tapioca/runtime/dynamic_mixin_compiler.rb:14
|
1457
2480
|
def class_attribute_predicates; end
|
1458
2481
|
|
2482
|
+
# source://tapioca-0.9.2/lib/tapioca/runtime/dynamic_mixin_compiler.rb:14
|
1459
2483
|
sig { returns(T::Array[::Symbol]) }
|
1460
2484
|
def class_attribute_readers; end
|
1461
2485
|
|
1462
2486
|
# @return [Array<Symbol>]
|
2487
|
+
#
|
2488
|
+
# source://tapioca-0.9.2/lib/tapioca/runtime/dynamic_mixin_compiler.rb:14
|
1463
2489
|
def class_attribute_writers; end
|
1464
2490
|
|
2491
|
+
# source://tapioca-0.9.2/lib/tapioca/runtime/dynamic_mixin_compiler.rb:137
|
1465
2492
|
sig { params(tree: ::RBI::Tree).void }
|
1466
2493
|
def compile_class_attributes(tree); end
|
1467
2494
|
|
2495
|
+
# source://tapioca-0.9.2/lib/tapioca/runtime/dynamic_mixin_compiler.rb:180
|
1468
2496
|
sig { params(tree: ::RBI::Tree).returns([T::Array[::Module], T::Array[::Module]]) }
|
1469
2497
|
def compile_mixes_in_class_methods(tree); end
|
1470
2498
|
|
2499
|
+
# source://tapioca-0.9.2/lib/tapioca/runtime/dynamic_mixin_compiler.rb:11
|
1471
2500
|
sig { returns(T::Array[::Module]) }
|
1472
2501
|
def dynamic_extends; end
|
1473
2502
|
|
1474
2503
|
# @return [Array<Module>]
|
2504
|
+
#
|
2505
|
+
# source://tapioca-0.9.2/lib/tapioca/runtime/dynamic_mixin_compiler.rb:11
|
1475
2506
|
def dynamic_includes; end
|
1476
2507
|
|
2508
|
+
# source://tapioca-0.9.2/lib/tapioca/runtime/dynamic_mixin_compiler.rb:132
|
1477
2509
|
sig { returns(T::Boolean) }
|
1478
2510
|
def empty_attributes?; end
|
1479
2511
|
|
2512
|
+
# source://tapioca-0.9.2/lib/tapioca/runtime/dynamic_mixin_compiler.rb:222
|
1480
2513
|
sig { params(qualified_mixin_name: ::String).returns(T::Boolean) }
|
1481
2514
|
def filtered_mixin?(qualified_mixin_name); end
|
1482
2515
|
|
1483
2516
|
# @return [Array<Symbol>]
|
2517
|
+
#
|
2518
|
+
# source://tapioca-0.9.2/lib/tapioca/runtime/dynamic_mixin_compiler.rb:17
|
1484
2519
|
def instance_attribute_predicates; end
|
1485
2520
|
|
2521
|
+
# source://tapioca-0.9.2/lib/tapioca/runtime/dynamic_mixin_compiler.rb:17
|
1486
2522
|
sig { returns(T::Array[::Symbol]) }
|
1487
2523
|
def instance_attribute_readers; end
|
1488
2524
|
|
1489
2525
|
# @return [Array<Symbol>]
|
2526
|
+
#
|
2527
|
+
# source://tapioca-0.9.2/lib/tapioca/runtime/dynamic_mixin_compiler.rb:17
|
1490
2528
|
def instance_attribute_writers; end
|
1491
2529
|
|
2530
|
+
# source://tapioca-0.9.2/lib/tapioca/runtime/dynamic_mixin_compiler.rb:215
|
1492
2531
|
sig { params(mod: ::Module, dynamic_extends: T::Array[::Module]).returns(T::Boolean) }
|
1493
2532
|
def module_included_by_another_dynamic_extend?(mod, dynamic_extends); end
|
1494
2533
|
end
|
@@ -1510,11 +2549,15 @@ end
|
|
1510
2549
|
# On the other hand, if we get a result, then the result will be a hash of type
|
1511
2550
|
# variable to type variable serializers. This allows us to associate type variables
|
1512
2551
|
# to the constant names that represent them, easily.
|
2552
|
+
#
|
2553
|
+
# source://tapioca-0.9.2/lib/tapioca/runtime/generic_type_registry.rb:23
|
1513
2554
|
module Tapioca::Runtime::GenericTypeRegistry
|
1514
2555
|
class << self
|
2556
|
+
# source://tapioca-0.9.2/lib/tapioca/runtime/generic_type_registry.rb:64
|
1515
2557
|
sig { params(instance: ::Object).returns(T::Boolean) }
|
1516
2558
|
def generic_type_instance?(instance); end
|
1517
2559
|
|
2560
|
+
# source://tapioca-0.9.2/lib/tapioca/runtime/generic_type_registry.rb:69
|
1518
2561
|
sig { params(constant: ::Module).returns(T.nilable(T::Array[::Tapioca::TypeVariableModule])) }
|
1519
2562
|
def lookup_type_variables(constant); end
|
1520
2563
|
|
@@ -1529,6 +2572,8 @@ module Tapioca::Runtime::GenericTypeRegistry
|
|
1529
2572
|
# 2 hash lookups (for the other two `Foo[Integer]`s).
|
1530
2573
|
#
|
1531
2574
|
# This method returns the created or cached clone of the constant.
|
2575
|
+
#
|
2576
|
+
# source://tapioca-0.9.2/lib/tapioca/runtime/generic_type_registry.rb:49
|
1532
2577
|
sig { params(constant: T.untyped, types: T.untyped).returns(::Module) }
|
1533
2578
|
def register_type(constant, types); end
|
1534
2579
|
|
@@ -1541,25 +2586,32 @@ module Tapioca::Runtime::GenericTypeRegistry
|
|
1541
2586
|
#
|
1542
2587
|
# Finally, the original `type_variable` is returned from this method, so that the caller
|
1543
2588
|
# can return it from the original methods as well.
|
2589
|
+
#
|
2590
|
+
# source://tapioca-0.9.2/lib/tapioca/runtime/generic_type_registry.rb:88
|
1544
2591
|
sig { params(constant: T.untyped, type_variable: ::Tapioca::TypeVariableModule).void }
|
1545
2592
|
def register_type_variable(constant, type_variable); end
|
1546
2593
|
|
1547
2594
|
private
|
1548
2595
|
|
2596
|
+
# source://tapioca-0.9.2/lib/tapioca/runtime/generic_type_registry.rb:97
|
1549
2597
|
sig { params(constant: ::Module, name: ::String).returns(::Module) }
|
1550
2598
|
def create_generic_type(constant, name); end
|
1551
2599
|
|
2600
|
+
# source://tapioca-0.9.2/lib/tapioca/runtime/generic_type_registry.rb:135
|
1552
2601
|
sig { params(constant: ::Class).returns(::Class) }
|
1553
2602
|
def create_safe_subclass(constant); end
|
1554
2603
|
|
2604
|
+
# source://tapioca-0.9.2/lib/tapioca/runtime/generic_type_registry.rb:162
|
1555
2605
|
sig { params(constant: ::Module).returns(T::Array[::Tapioca::TypeVariableModule]) }
|
1556
2606
|
def lookup_or_initialize_type_variables(constant); end
|
1557
2607
|
end
|
1558
2608
|
end
|
1559
2609
|
|
2610
|
+
# source://tapioca-0.9.2/lib/tapioca/runtime/loader.rb:6
|
1560
2611
|
class Tapioca::Runtime::Loader
|
1561
2612
|
include ::Tapioca::GemHelper
|
1562
2613
|
|
2614
|
+
# source://tapioca-0.9.2/lib/tapioca/runtime/loader.rb:13
|
1563
2615
|
sig do
|
1564
2616
|
params(
|
1565
2617
|
gemfile: ::Tapioca::Gemfile,
|
@@ -1569,26 +2621,33 @@ class Tapioca::Runtime::Loader
|
|
1569
2621
|
end
|
1570
2622
|
def load_bundle(gemfile, initialize_file, require_file); end
|
1571
2623
|
|
2624
|
+
# source://tapioca-0.9.2/lib/tapioca/runtime/loader.rb:26
|
1572
2625
|
sig { params(environment_load: T::Boolean, eager_load: T::Boolean).void }
|
1573
2626
|
def load_rails_application(environment_load: T.unsafe(nil), eager_load: T.unsafe(nil)); end
|
1574
2627
|
|
1575
2628
|
private
|
1576
2629
|
|
2630
|
+
# source://tapioca-0.9.2/lib/tapioca/runtime/loader.rb:82
|
1577
2631
|
sig { void }
|
1578
2632
|
def eager_load_rails_app; end
|
1579
2633
|
|
2634
|
+
# source://tapioca-0.9.2/lib/tapioca/runtime/loader.rb:108
|
1580
2635
|
sig { void }
|
1581
2636
|
def load_rails_engines; end
|
1582
2637
|
|
2638
|
+
# source://tapioca-0.9.2/lib/tapioca/runtime/loader.rb:53
|
1583
2639
|
sig { returns(T::Array[T.untyped]) }
|
1584
2640
|
def rails_engines; end
|
1585
2641
|
|
2642
|
+
# source://tapioca-0.9.2/lib/tapioca/runtime/loader.rb:43
|
1586
2643
|
sig { params(file: T.nilable(::String)).void }
|
1587
2644
|
def require_helper(file); end
|
1588
2645
|
|
2646
|
+
# source://tapioca-0.9.2/lib/tapioca/runtime/loader.rb:67
|
1589
2647
|
sig { params(path: ::String).void }
|
1590
2648
|
def safe_require(path); end
|
1591
2649
|
|
2650
|
+
# source://tapioca-0.9.2/lib/tapioca/runtime/loader.rb:74
|
1592
2651
|
sig { void }
|
1593
2652
|
def silence_deprecations; end
|
1594
2653
|
end
|
@@ -1596,18 +2655,31 @@ end
|
|
1596
2655
|
module Tapioca::Runtime::Reflection
|
1597
2656
|
extend ::Tapioca::Runtime::Reflection
|
1598
2657
|
|
2658
|
+
# source://tapioca-0.9.2/lib/tapioca/runtime/reflection.rb:60
|
1599
2659
|
sig { params(constant: ::Module).returns(T::Array[::Module]) }
|
1600
2660
|
def ancestors_of(constant); end
|
1601
2661
|
|
2662
|
+
# source://tapioca-0.9.2/lib/tapioca/runtime/reflection.rb:75
|
1602
2663
|
sig { params(object: ::BasicObject, other: ::BasicObject).returns(T::Boolean) }
|
1603
2664
|
def are_equal?(object, other); end
|
1604
2665
|
|
2666
|
+
# source://tapioca-0.9.2/lib/tapioca/runtime/reflection.rb:39
|
1605
2667
|
sig { params(object: ::BasicObject).returns(::Class) }
|
1606
2668
|
def class_of(object); end
|
1607
2669
|
|
2670
|
+
# source://tapioca-0.9.2/lib/tapioca/runtime/reflection.rb:177
|
2671
|
+
sig { params(constant: ::Module).returns(T.nilable(::BasicObject)) }
|
2672
|
+
def constant_from_singleton_class(constant); end
|
2673
|
+
|
2674
|
+
# source://tapioca-0.9.2/lib/tapioca/runtime/reflection.rb:172
|
2675
|
+
sig { params(constant: ::Module).returns(T.nilable(::String)) }
|
2676
|
+
def constant_name_from_singleton_class(constant); end
|
2677
|
+
|
2678
|
+
# source://tapioca-0.9.2/lib/tapioca/runtime/reflection.rb:32
|
1608
2679
|
sig { params(symbol: ::String, inherit: T::Boolean, namespace: ::Module).returns(::BasicObject) }
|
1609
2680
|
def constantize(symbol, inherit: T.unsafe(nil), namespace: T.unsafe(nil)); end
|
1610
2681
|
|
2682
|
+
# source://tapioca-0.9.2/lib/tapioca/runtime/reflection.rb:44
|
1611
2683
|
sig { params(constant: ::Module).returns(T::Array[::Symbol]) }
|
1612
2684
|
def constants_of(constant); end
|
1613
2685
|
|
@@ -1624,6 +2696,8 @@ module Tapioca::Runtime::Reflection
|
|
1624
2696
|
#
|
1625
2697
|
# class D < C; end
|
1626
2698
|
# descendants_of(C) # => [B, A, D]
|
2699
|
+
#
|
2700
|
+
# source://tapioca-0.9.2/lib/tapioca/runtime/reflection.rb:150
|
1627
2701
|
sig do
|
1628
2702
|
type_parameters(:U)
|
1629
2703
|
.params(
|
@@ -1632,65 +2706,117 @@ module Tapioca::Runtime::Reflection
|
|
1632
2706
|
end
|
1633
2707
|
def descendants_of(klass); end
|
1634
2708
|
|
2709
|
+
# source://tapioca-0.9.2/lib/tapioca/runtime/reflection.rb:95
|
1635
2710
|
sig { params(constant: ::Module).returns(T::Array[::Module]) }
|
1636
2711
|
def inherited_ancestors_of(constant); end
|
1637
2712
|
|
2713
|
+
# source://tapioca-0.9.2/lib/tapioca/runtime/reflection.rb:128
|
1638
2714
|
sig { params(constant: ::Module, method: ::Symbol).returns(::Method) }
|
1639
2715
|
def method_of(constant, method); end
|
1640
2716
|
|
2717
|
+
# source://tapioca-0.9.2/lib/tapioca/runtime/reflection.rb:49
|
1641
2718
|
sig { params(constant: ::Module).returns(T.nilable(::String)) }
|
1642
2719
|
def name_of(constant); end
|
1643
2720
|
|
2721
|
+
# source://tapioca-0.9.2/lib/tapioca/runtime/reflection.rb:123
|
1644
2722
|
sig { params(type: ::T::Types::Base).returns(::String) }
|
1645
2723
|
def name_of_type(type); end
|
1646
2724
|
|
2725
|
+
# source://tapioca-0.9.2/lib/tapioca/runtime/reflection.rb:70
|
1647
2726
|
sig { params(object: ::BasicObject).returns(::Integer) }
|
1648
2727
|
def object_id_of(object); end
|
1649
2728
|
|
2729
|
+
# source://tapioca-0.9.2/lib/tapioca/runtime/reflection.rb:90
|
1650
2730
|
sig { params(constant: ::Module).returns(T::Array[::Symbol]) }
|
1651
2731
|
def private_instance_methods_of(constant); end
|
1652
2732
|
|
2733
|
+
# source://tapioca-0.9.2/lib/tapioca/runtime/reflection.rb:85
|
1653
2734
|
sig { params(constant: ::Module).returns(T::Array[::Symbol]) }
|
1654
2735
|
def protected_instance_methods_of(constant); end
|
1655
2736
|
|
2737
|
+
# source://tapioca-0.9.2/lib/tapioca/runtime/reflection.rb:80
|
1656
2738
|
sig { params(constant: ::Module).returns(T::Array[::Symbol]) }
|
1657
2739
|
def public_instance_methods_of(constant); end
|
1658
2740
|
|
2741
|
+
# source://tapioca-0.9.2/lib/tapioca/runtime/reflection.rb:104
|
1659
2742
|
sig { params(constant: ::Module).returns(T.nilable(::String)) }
|
1660
2743
|
def qualified_name_of(constant); end
|
1661
2744
|
|
2745
|
+
# Examines the call stack to identify the closest location where a "require" is performed
|
2746
|
+
# by searching for the label "<top (required)>". If none is found, it returns the location
|
2747
|
+
# labeled "<main>", which is the original call site.
|
2748
|
+
#
|
2749
|
+
# source://tapioca-0.9.2/lib/tapioca/runtime/reflection.rb:162
|
2750
|
+
sig { params(locations: T.nilable(T::Array[::Thread::Backtrace::Location])).returns(::String) }
|
2751
|
+
def resolve_loc(locations); end
|
2752
|
+
|
2753
|
+
# source://tapioca-0.9.2/lib/tapioca/runtime/reflection.rb:116
|
1662
2754
|
sig { params(method: T.any(::Method, ::UnboundMethod)).returns(T.untyped) }
|
1663
2755
|
def signature_of(method); end
|
1664
2756
|
|
2757
|
+
# source://tapioca-0.9.2/lib/tapioca/runtime/reflection.rb:55
|
1665
2758
|
sig { params(constant: ::Module).returns(::Class) }
|
1666
2759
|
def singleton_class_of(constant); end
|
1667
2760
|
|
2761
|
+
# source://tapioca-0.9.2/lib/tapioca/runtime/reflection.rb:65
|
1668
2762
|
sig { params(constant: ::Class).returns(T.nilable(::Class)) }
|
1669
2763
|
def superclass_of(constant); end
|
1670
2764
|
end
|
1671
2765
|
|
2766
|
+
# source://tapioca-0.9.2/lib/tapioca/runtime/reflection.rb:14
|
1672
2767
|
Tapioca::Runtime::Reflection::ANCESTORS_METHOD = T.let(T.unsafe(nil), UnboundMethod)
|
2768
|
+
|
2769
|
+
# source://tapioca-0.9.2/lib/tapioca/runtime/reflection.rb:10
|
1673
2770
|
Tapioca::Runtime::Reflection::CLASS_METHOD = T.let(T.unsafe(nil), UnboundMethod)
|
2771
|
+
|
2772
|
+
# source://tapioca-0.9.2/lib/tapioca/runtime/reflection.rb:11
|
1674
2773
|
Tapioca::Runtime::Reflection::CONSTANTS_METHOD = T.let(T.unsafe(nil), UnboundMethod)
|
2774
|
+
|
2775
|
+
# source://tapioca-0.9.2/lib/tapioca/runtime/reflection.rb:17
|
1675
2776
|
Tapioca::Runtime::Reflection::EQUAL_METHOD = T.let(T.unsafe(nil), UnboundMethod)
|
2777
|
+
|
2778
|
+
# source://tapioca-0.9.2/lib/tapioca/runtime/reflection.rb:21
|
1676
2779
|
Tapioca::Runtime::Reflection::METHOD_METHOD = T.let(T.unsafe(nil), UnboundMethod)
|
2780
|
+
|
2781
|
+
# source://tapioca-0.9.2/lib/tapioca/runtime/reflection.rb:12
|
1677
2782
|
Tapioca::Runtime::Reflection::NAME_METHOD = T.let(T.unsafe(nil), UnboundMethod)
|
2783
|
+
|
2784
|
+
# source://tapioca-0.9.2/lib/tapioca/runtime/reflection.rb:16
|
1678
2785
|
Tapioca::Runtime::Reflection::OBJECT_ID_METHOD = T.let(T.unsafe(nil), UnboundMethod)
|
2786
|
+
|
2787
|
+
# source://tapioca-0.9.2/lib/tapioca/runtime/reflection.rb:20
|
1679
2788
|
Tapioca::Runtime::Reflection::PRIVATE_INSTANCE_METHODS_METHOD = T.let(T.unsafe(nil), UnboundMethod)
|
2789
|
+
|
2790
|
+
# source://tapioca-0.9.2/lib/tapioca/runtime/reflection.rb:19
|
1680
2791
|
Tapioca::Runtime::Reflection::PROTECTED_INSTANCE_METHODS_METHOD = T.let(T.unsafe(nil), UnboundMethod)
|
2792
|
+
|
2793
|
+
# source://tapioca-0.9.2/lib/tapioca/runtime/reflection.rb:18
|
1681
2794
|
Tapioca::Runtime::Reflection::PUBLIC_INSTANCE_METHODS_METHOD = T.let(T.unsafe(nil), UnboundMethod)
|
2795
|
+
|
2796
|
+
# source://tapioca-0.9.2/lib/tapioca/runtime/reflection.rb:23
|
2797
|
+
Tapioca::Runtime::Reflection::REQUIRED_FROM_LABELS = T.let(T.unsafe(nil), Array)
|
2798
|
+
|
2799
|
+
# source://tapioca-0.9.2/lib/tapioca/runtime/reflection.rb:13
|
1682
2800
|
Tapioca::Runtime::Reflection::SINGLETON_CLASS_METHOD = T.let(T.unsafe(nil), UnboundMethod)
|
2801
|
+
|
2802
|
+
# source://tapioca-0.9.2/lib/tapioca/runtime/reflection.rb:15
|
1683
2803
|
Tapioca::Runtime::Reflection::SUPERCLASS_METHOD = T.let(T.unsafe(nil), UnboundMethod)
|
2804
|
+
|
2805
|
+
# source://tapioca-0.9.2/lib/tapioca/runtime/trackers/autoload.rb:6
|
1684
2806
|
module Tapioca::Runtime::Trackers; end
|
1685
2807
|
|
2808
|
+
# source://tapioca-0.9.2/lib/tapioca/runtime/trackers/autoload.rb:7
|
1686
2809
|
module Tapioca::Runtime::Trackers::Autoload
|
1687
2810
|
class << self
|
2811
|
+
# source://tapioca-0.9.2/lib/tapioca/runtime/trackers/autoload.rb:18
|
1688
2812
|
sig { void }
|
1689
2813
|
def eager_load_all!; end
|
1690
2814
|
|
2815
|
+
# source://tapioca-0.9.2/lib/tapioca/runtime/trackers/autoload.rb:30
|
1691
2816
|
sig { params(constant_name: ::String).void }
|
1692
2817
|
def register(constant_name); end
|
1693
2818
|
|
2819
|
+
# source://tapioca-0.9.2/lib/tapioca/runtime/trackers/autoload.rb:39
|
1694
2820
|
sig do
|
1695
2821
|
type_parameters(:Result)
|
1696
2822
|
.params(
|
@@ -1701,6 +2827,7 @@ module Tapioca::Runtime::Trackers::Autoload
|
|
1701
2827
|
end
|
1702
2828
|
end
|
1703
2829
|
|
2830
|
+
# source://tapioca-0.9.2/lib/tapioca/runtime/trackers/autoload.rb:10
|
1704
2831
|
Tapioca::Runtime::Trackers::Autoload::NOOP_METHOD = T.let(T.unsafe(nil), Proc)
|
1705
2832
|
|
1706
2833
|
# Registers a TracePoint immediately upon load to track points at which
|
@@ -1711,31 +2838,53 @@ module Tapioca::Runtime::Trackers::ConstantDefinition
|
|
1711
2838
|
extend ::Tapioca::Runtime::Reflection
|
1712
2839
|
|
1713
2840
|
class << self
|
2841
|
+
# source://tapioca-0.9.2/lib/tapioca/runtime/trackers/constant_definition.rb:52
|
2842
|
+
def build_constant_location(tp, locations); end
|
2843
|
+
|
1714
2844
|
# Returns the files in which this class or module was opened. Doesn't know
|
1715
2845
|
# about situations where the class was opened prior to +require+ing,
|
1716
2846
|
# or where metaprogramming was used via +eval+, etc.
|
2847
|
+
#
|
2848
|
+
# source://tapioca-0.9.2/lib/tapioca/runtime/trackers/constant_definition.rb:62
|
1717
2849
|
def files_for(klass); end
|
2850
|
+
|
2851
|
+
# source://tapioca-0.9.2/lib/tapioca/runtime/trackers/constant_definition.rb:66
|
2852
|
+
def locations_for(klass); end
|
2853
|
+
end
|
2854
|
+
end
|
2855
|
+
|
2856
|
+
class Tapioca::Runtime::Trackers::ConstantDefinition::ConstantLocation < ::T::Struct
|
2857
|
+
const :lineno, ::Integer
|
2858
|
+
const :path, ::String
|
2859
|
+
|
2860
|
+
class << self
|
2861
|
+
# source://sorbet-runtime-0.5.10323/lib/types/struct.rb:13
|
2862
|
+
def inherited(s); end
|
1718
2863
|
end
|
1719
2864
|
end
|
1720
2865
|
|
1721
2866
|
module Tapioca::Runtime::Trackers::Mixin
|
1722
2867
|
class << self
|
2868
|
+
# source://tapioca-0.9.2/lib/tapioca/runtime/trackers/mixin.rb:52
|
1723
2869
|
sig do
|
1724
2870
|
params(
|
1725
|
-
|
1726
|
-
).returns(T::Hash[::Tapioca::Runtime::Trackers::Mixin::Type, T::Hash[::Module,
|
2871
|
+
mixin: ::Module
|
2872
|
+
).returns(T::Hash[::Tapioca::Runtime::Trackers::Mixin::Type, T::Hash[::Module, ::String]])
|
1727
2873
|
end
|
1728
|
-
def
|
2874
|
+
def constants_with_mixin(mixin); end
|
2875
|
+
|
2876
|
+
# source://tapioca-0.9.2/lib/tapioca/runtime/trackers/mixin.rb:42
|
2877
|
+
sig { params(constant: ::Module, mixin: ::Module, mixin_type: ::Tapioca::Runtime::Trackers::Mixin::Type).void }
|
2878
|
+
def register(constant, mixin, mixin_type); end
|
1729
2879
|
|
2880
|
+
# source://tapioca-0.9.2/lib/tapioca/runtime/trackers/mixin.rb:27
|
1730
2881
|
sig do
|
1731
|
-
|
1732
|
-
|
1733
|
-
|
1734
|
-
|
1735
|
-
locations: T.nilable(T::Array[::Thread::Backtrace::Location])
|
1736
|
-
).void
|
2882
|
+
type_parameters(:Result)
|
2883
|
+
.params(
|
2884
|
+
block: T.proc.returns(T.type_parameter(:Result))
|
2885
|
+
).returns(T.type_parameter(:Result))
|
1737
2886
|
end
|
1738
|
-
def
|
2887
|
+
def with_disabled_registration(&block); end
|
1739
2888
|
end
|
1740
2889
|
end
|
1741
2890
|
|
@@ -1747,185 +2896,179 @@ class Tapioca::Runtime::Trackers::Mixin::Type < ::T::Enum
|
|
1747
2896
|
end
|
1748
2897
|
end
|
1749
2898
|
|
2899
|
+
# source://tapioca-0.9.2/lib/tapioca/runtime/trackers/required_ancestor.rb:7
|
1750
2900
|
module Tapioca::Runtime::Trackers::RequiredAncestor
|
1751
2901
|
class << self
|
2902
|
+
# source://tapioca-0.9.2/lib/tapioca/runtime/trackers/required_ancestor.rb:13
|
1752
2903
|
sig { params(requiring: ::T::Helpers, block: T.proc.returns(::Module)).void }
|
1753
2904
|
def register(requiring, block); end
|
1754
2905
|
|
2906
|
+
# source://tapioca-0.9.2/lib/tapioca/runtime/trackers/required_ancestor.rb:19
|
1755
2907
|
sig { params(mod: ::Module).returns(T::Array[T.proc.returns(::Module)]) }
|
1756
2908
|
def required_ancestors_blocks_by(mod); end
|
1757
2909
|
|
2910
|
+
# source://tapioca-0.9.2/lib/tapioca/runtime/trackers/required_ancestor.rb:24
|
1758
2911
|
sig { params(mod: ::Module).returns(T::Array[T.nilable(::Module)]) }
|
1759
2912
|
def required_ancestors_by(mod); end
|
1760
2913
|
end
|
1761
2914
|
end
|
1762
2915
|
|
2916
|
+
# source://tapioca-0.9.2/lib/tapioca.rb:27
|
1763
2917
|
Tapioca::SORBET_CONFIG_FILE = T.let(T.unsafe(nil), String)
|
1764
|
-
Tapioca::SORBET_DIR = T.let(T.unsafe(nil), String)
|
1765
|
-
|
1766
|
-
module Tapioca::ShimsHelper
|
1767
|
-
requires_ancestor { Thor::Shell }
|
1768
|
-
|
1769
|
-
sig { params(index: ::RBI::Index, shim_rbi_dir: ::String).returns(T::Hash[::String, T::Array[::RBI::Node]]) }
|
1770
|
-
def duplicated_nodes_from_index(index, shim_rbi_dir); end
|
1771
|
-
|
1772
|
-
sig { params(index: ::RBI::Index, dir: ::String).void }
|
1773
|
-
def index_payload(index, dir); end
|
1774
|
-
|
1775
|
-
sig { params(index: ::RBI::Index, kind: ::String, dir: ::String).void }
|
1776
|
-
def index_rbis(index, kind, dir); end
|
1777
|
-
|
1778
|
-
sig { params(loc: ::RBI::Loc, path_prefix: T.nilable(::String)).returns(::String) }
|
1779
|
-
def location_to_payload_url(loc, path_prefix:); end
|
1780
|
-
|
1781
|
-
private
|
1782
2918
|
|
1783
|
-
|
1784
|
-
|
1785
|
-
|
1786
|
-
sig do
|
1787
|
-
params(
|
1788
|
-
nodes: T::Array[T.any(::RBI::Attr, ::RBI::Method)]
|
1789
|
-
).returns(T::Array[T.any(::RBI::Attr, ::RBI::Method)])
|
1790
|
-
end
|
1791
|
-
def extract_nodes_with_sigs(nodes); end
|
1792
|
-
|
1793
|
-
sig { params(nodes: T::Array[::RBI::Node], shim_rbi_dir: ::String).returns(T::Array[::RBI::Node]) }
|
1794
|
-
def extract_shims(nodes, shim_rbi_dir); end
|
1795
|
-
|
1796
|
-
sig { params(index: ::RBI::Index, files: T::Array[::String]).void }
|
1797
|
-
def parse_and_index_files(index, files); end
|
1798
|
-
|
1799
|
-
sig { params(nodes: T::Array[::RBI::Node], shim_rbi_dir: ::String).returns(T::Boolean) }
|
1800
|
-
def shims_have_duplicates?(nodes, shim_rbi_dir); end
|
1801
|
-
end
|
1802
|
-
|
1803
|
-
Tapioca::ShimsHelper::SORBET_PAYLOAD_URL = T.let(T.unsafe(nil), String)
|
1804
|
-
|
1805
|
-
module Tapioca::SignaturesHelper
|
1806
|
-
sig { params(sig_string: ::String).returns(::String) }
|
1807
|
-
def sanitize_signature_types(sig_string); end
|
1808
|
-
end
|
2919
|
+
# source://tapioca-0.9.2/lib/tapioca.rb:26
|
2920
|
+
Tapioca::SORBET_DIR = T.let(T.unsafe(nil), String)
|
1809
2921
|
|
2922
|
+
# source://tapioca-0.9.2/lib/tapioca/helpers/sorbet_helper.rb:5
|
1810
2923
|
module Tapioca::SorbetHelper
|
2924
|
+
# source://tapioca-0.9.2/lib/tapioca/helpers/sorbet_helper.rb:29
|
1811
2925
|
sig { params(sorbet_args: ::String).returns(::Spoom::ExecResult) }
|
1812
2926
|
def sorbet(*sorbet_args); end
|
1813
2927
|
|
2928
|
+
# source://tapioca-0.9.2/lib/tapioca/helpers/sorbet_helper.rb:34
|
1814
2929
|
sig { returns(::String) }
|
1815
2930
|
def sorbet_path; end
|
1816
2931
|
|
2932
|
+
# source://tapioca-0.9.2/lib/tapioca/helpers/sorbet_helper.rb:41
|
1817
2933
|
sig { params(feature: ::Symbol, version: T.nilable(::Gem::Version)).returns(T::Boolean) }
|
1818
2934
|
def sorbet_supports?(feature, version: T.unsafe(nil)); end
|
1819
2935
|
end
|
1820
2936
|
|
2937
|
+
# source://tapioca-0.9.2/lib/tapioca/helpers/sorbet_helper.rb:22
|
1821
2938
|
Tapioca::SorbetHelper::FEATURE_REQUIREMENTS = T.let(T.unsafe(nil), Hash)
|
2939
|
+
|
2940
|
+
# source://tapioca-0.9.2/lib/tapioca/helpers/sorbet_helper.rb:13
|
1822
2941
|
Tapioca::SorbetHelper::SORBET_BIN = T.let(T.unsafe(nil), Pathname)
|
2942
|
+
|
2943
|
+
# source://tapioca-0.9.2/lib/tapioca/helpers/sorbet_helper.rb:18
|
1823
2944
|
Tapioca::SorbetHelper::SORBET_EXE_PATH_ENV_VAR = T.let(T.unsafe(nil), String)
|
2945
|
+
|
2946
|
+
# source://tapioca-0.9.2/lib/tapioca/helpers/sorbet_helper.rb:8
|
1824
2947
|
Tapioca::SorbetHelper::SORBET_GEM_SPEC = T.let(T.unsafe(nil), Gem::Specification)
|
2948
|
+
|
2949
|
+
# source://tapioca-0.9.2/lib/tapioca/helpers/sorbet_helper.rb:20
|
2950
|
+
Tapioca::SorbetHelper::SORBET_PAYLOAD_URL = T.let(T.unsafe(nil), String)
|
2951
|
+
|
2952
|
+
# source://tapioca-0.9.2/lib/tapioca/static/symbol_table_parser.rb:5
|
1825
2953
|
module Tapioca::Static; end
|
1826
2954
|
|
2955
|
+
# source://tapioca-0.9.2/lib/tapioca/static/requires_compiler.rb:6
|
1827
2956
|
class Tapioca::Static::RequiresCompiler
|
2957
|
+
# source://tapioca-0.9.2/lib/tapioca/static/requires_compiler.rb:10
|
1828
2958
|
sig { params(sorbet_path: ::String).void }
|
1829
2959
|
def initialize(sorbet_path); end
|
1830
2960
|
|
2961
|
+
# source://tapioca-0.9.2/lib/tapioca/static/requires_compiler.rb:15
|
1831
2962
|
sig { returns(::String) }
|
1832
2963
|
def compile; end
|
1833
2964
|
|
1834
2965
|
private
|
1835
2966
|
|
2967
|
+
# source://tapioca-0.9.2/lib/tapioca/static/requires_compiler.rb:29
|
1836
2968
|
sig { params(config: ::Spoom::Sorbet::Config).returns(T::Array[::String]) }
|
1837
2969
|
def collect_files(config); end
|
1838
2970
|
|
2971
|
+
# source://tapioca-0.9.2/lib/tapioca/static/requires_compiler.rb:44
|
1839
2972
|
sig { params(file_path: ::String).returns(T::Enumerable[::String]) }
|
1840
2973
|
def collect_requires(file_path); end
|
1841
2974
|
|
2975
|
+
# source://tapioca-0.9.2/lib/tapioca/static/requires_compiler.rb:52
|
1842
2976
|
sig { params(config: ::Spoom::Sorbet::Config, file_path: ::Pathname).returns(T::Boolean) }
|
1843
2977
|
def file_ignored_by_sorbet?(config, file_path); end
|
1844
2978
|
|
2979
|
+
# source://tapioca-0.9.2/lib/tapioca/static/requires_compiler.rb:81
|
1845
2980
|
sig { params(path: ::Pathname).returns(T::Array[::String]) }
|
1846
2981
|
def path_parts(path); end
|
1847
2982
|
end
|
1848
2983
|
|
2984
|
+
# source://tapioca-0.9.2/lib/tapioca/static/symbol_loader.rb:6
|
1849
2985
|
module Tapioca::Static::SymbolLoader
|
1850
2986
|
extend ::Tapioca::SorbetHelper
|
1851
2987
|
extend ::Tapioca::Runtime::Reflection
|
1852
2988
|
|
1853
2989
|
class << self
|
1854
|
-
|
1855
|
-
|
2990
|
+
# source://tapioca-0.9.2/lib/tapioca/static/symbol_loader.rb:23
|
2991
|
+
sig { params(gem: ::Tapioca::Gemfile::GemSpec).returns(T::Set[::String]) }
|
2992
|
+
def engine_symbols(gem); end
|
1856
2993
|
|
2994
|
+
# source://tapioca-0.9.2/lib/tapioca/static/symbol_loader.rb:40
|
1857
2995
|
sig { params(gem: ::Tapioca::Gemfile::GemSpec).returns(T::Set[::String]) }
|
1858
2996
|
def gem_symbols(gem); end
|
1859
2997
|
|
2998
|
+
# source://tapioca-0.9.2/lib/tapioca/static/symbol_loader.rb:13
|
1860
2999
|
sig { returns(T::Set[::String]) }
|
1861
3000
|
def payload_symbols; end
|
1862
3001
|
|
1863
3002
|
private
|
1864
3003
|
|
1865
|
-
|
1866
|
-
|
3004
|
+
# @return [Array<T.class_of(Rails::Engine)>]
|
3005
|
+
#
|
3006
|
+
# source://sorbet-runtime-0.5.10323/lib/types/private/methods/_methods.rb:250
|
3007
|
+
def engines(*args, **_arg1, &blk); end
|
1867
3008
|
|
3009
|
+
# source://tapioca-0.9.2/lib/tapioca/static/symbol_loader.rb:59
|
1868
3010
|
sig { params(input: ::String, table_type: ::String).returns(::String) }
|
1869
3011
|
def symbol_table_json_from(input, table_type: T.unsafe(nil)); end
|
1870
3012
|
|
3013
|
+
# source://tapioca-0.9.2/lib/tapioca/static/symbol_loader.rb:64
|
1871
3014
|
sig { params(paths: T::Array[::Pathname]).returns(T::Set[::String]) }
|
1872
3015
|
def symbols_from_paths(paths); end
|
1873
3016
|
end
|
1874
3017
|
end
|
1875
3018
|
|
3019
|
+
# source://tapioca-0.9.2/lib/tapioca/static/symbol_table_parser.rb:6
|
1876
3020
|
class Tapioca::Static::SymbolTableParser
|
3021
|
+
# source://tapioca-0.9.2/lib/tapioca/static/symbol_table_parser.rb:24
|
1877
3022
|
sig { void }
|
1878
3023
|
def initialize; end
|
1879
3024
|
|
3025
|
+
# source://tapioca-0.9.2/lib/tapioca/static/symbol_table_parser.rb:57
|
1880
3026
|
sig { params(name: ::String).returns(::String) }
|
1881
3027
|
def fully_qualified_name(name); end
|
1882
3028
|
|
3029
|
+
# source://tapioca-0.9.2/lib/tapioca/static/symbol_table_parser.rb:30
|
1883
3030
|
sig { params(object: T::Hash[::String, T.untyped]).void }
|
1884
3031
|
def parse_object(object); end
|
1885
3032
|
|
3033
|
+
# source://tapioca-0.9.2/lib/tapioca/static/symbol_table_parser.rb:21
|
1886
3034
|
sig { returns(T::Set[::String]) }
|
1887
3035
|
def symbols; end
|
1888
3036
|
|
1889
3037
|
class << self
|
3038
|
+
# source://tapioca-0.9.2/lib/tapioca/static/symbol_table_parser.rb:10
|
1890
3039
|
sig { params(json_string: ::String).returns(T::Set[::String]) }
|
1891
3040
|
def parse_json(json_string); end
|
1892
3041
|
end
|
1893
3042
|
end
|
1894
3043
|
|
3044
|
+
# source://tapioca-0.9.2/lib/tapioca.rb:29
|
1895
3045
|
Tapioca::TAPIOCA_CONFIG_FILE = T.let(T.unsafe(nil), String)
|
3046
|
+
|
3047
|
+
# source://tapioca-0.9.2/lib/tapioca.rb:28
|
1896
3048
|
Tapioca::TAPIOCA_DIR = T.let(T.unsafe(nil), String)
|
1897
3049
|
|
3050
|
+
# source://tapioca-0.9.2/lib/tapioca/sorbet_ext/generic_name_patch.rb:98
|
1898
3051
|
class Tapioca::TypeVariable < ::T::Types::TypeVariable
|
1899
3052
|
# @return [TypeVariable] a new instance of TypeVariable
|
3053
|
+
#
|
3054
|
+
# source://tapioca-0.9.2/lib/tapioca/sorbet_ext/generic_name_patch.rb:99
|
1900
3055
|
def initialize(name, variance); end
|
1901
3056
|
|
1902
3057
|
# Returns the value of attribute name.
|
3058
|
+
#
|
3059
|
+
# source://tapioca-0.9.2/lib/tapioca/sorbet_ext/generic_name_patch.rb:104
|
1903
3060
|
def name; end
|
1904
3061
|
end
|
1905
3062
|
|
1906
|
-
module Tapioca::TypeVariableHelper
|
1907
|
-
extend ::Tapioca::SorbetHelper
|
1908
|
-
|
1909
|
-
class << self
|
1910
|
-
sig do
|
1911
|
-
params(
|
1912
|
-
type: ::String,
|
1913
|
-
variance: ::Symbol,
|
1914
|
-
fixed: T.nilable(::String),
|
1915
|
-
upper: T.nilable(::String),
|
1916
|
-
lower: T.nilable(::String)
|
1917
|
-
).returns(::String)
|
1918
|
-
end
|
1919
|
-
def serialize_type_variable(type, variance, fixed, upper, lower); end
|
1920
|
-
end
|
1921
|
-
end
|
1922
|
-
|
1923
3063
|
# This is subclassing from `Module` so that instances of this type will be modules.
|
1924
3064
|
# The reason why we want that is because that means those instances will automatically
|
1925
3065
|
# get bound to the constant names they are assigned to by Ruby. As a result, we don't
|
1926
3066
|
# need to do any matching of constants to type variables to bind their names, Ruby will
|
1927
3067
|
# do that automatically for us and we get the `name` method for free from `Module`.
|
3068
|
+
#
|
3069
|
+
# source://tapioca-0.9.2/lib/tapioca/sorbet_ext/generic_name_patch.rb:112
|
1928
3070
|
class Tapioca::TypeVariableModule < ::Module
|
3071
|
+
# source://tapioca-0.9.2/lib/tapioca/sorbet_ext/generic_name_patch.rb:134
|
1929
3072
|
sig do
|
1930
3073
|
params(
|
1931
3074
|
context: ::Module,
|
@@ -1939,17 +3082,21 @@ class Tapioca::TypeVariableModule < ::Module
|
|
1939
3082
|
end
|
1940
3083
|
def initialize(context, type, variance, fixed, lower, upper, bounds_proc); end
|
1941
3084
|
|
3085
|
+
# source://tapioca-0.9.2/lib/tapioca/sorbet_ext/generic_name_patch.rb:184
|
1942
3086
|
sig { returns(::Tapioca::TypeVariable) }
|
1943
3087
|
def coerce_to_type_variable; end
|
1944
3088
|
|
3089
|
+
# source://tapioca-0.9.2/lib/tapioca/sorbet_ext/generic_name_patch.rb:149
|
1945
3090
|
sig { returns(T.nilable(::String)) }
|
1946
3091
|
def name; end
|
1947
3092
|
|
3093
|
+
# source://tapioca-0.9.2/lib/tapioca/sorbet_ext/generic_name_patch.rb:168
|
1948
3094
|
sig { returns(::String) }
|
1949
3095
|
def serialize; end
|
1950
3096
|
|
1951
3097
|
private
|
1952
3098
|
|
3099
|
+
# source://tapioca-0.9.2/lib/tapioca/sorbet_ext/generic_name_patch.rb:194
|
1953
3100
|
sig do
|
1954
3101
|
params(
|
1955
3102
|
fixed: T.untyped,
|
@@ -1959,6 +3106,7 @@ class Tapioca::TypeVariableModule < ::Module
|
|
1959
3106
|
end
|
1960
3107
|
def build_bounds_proc(fixed, lower, upper); end
|
1961
3108
|
|
3109
|
+
# source://tapioca-0.9.2/lib/tapioca/sorbet_ext/generic_name_patch.rb:208
|
1962
3110
|
sig do
|
1963
3111
|
type_parameters(:Result)
|
1964
3112
|
.params(
|
@@ -1968,6 +3116,7 @@ class Tapioca::TypeVariableModule < ::Module
|
|
1968
3116
|
def with_bound_name_pre_3_0(&block); end
|
1969
3117
|
end
|
1970
3118
|
|
3119
|
+
# source://tapioca-0.9.2/lib/tapioca/sorbet_ext/generic_name_patch.rb:115
|
1971
3120
|
class Tapioca::TypeVariableModule::Type < ::T::Enum
|
1972
3121
|
enums do
|
1973
3122
|
Member = new
|
@@ -1975,4 +3124,5 @@ class Tapioca::TypeVariableModule::Type < ::T::Enum
|
|
1975
3124
|
end
|
1976
3125
|
end
|
1977
3126
|
|
3127
|
+
# source://tapioca-0.9.2/lib/tapioca/version.rb:5
|
1978
3128
|
Tapioca::VERSION = T.let(T.unsafe(nil), String)
|