ruby-lsp-rake 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (42) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +0 -14
  3. data/lib/ruby/lsp/rake/version.rb +2 -1
  4. data/lib/ruby/lsp/rake.rb +1 -0
  5. data/lib/ruby_lsp/ruby_lsp_rake/addon.rb +4 -2
  6. data/lib/ruby_lsp/ruby_lsp_rake/hover.rb +2 -1
  7. data/lib/ruby_lsp/ruby_lsp_rake/indexing_enhancement.rb +7 -4
  8. data/sorbet/config +4 -0
  9. data/sorbet/rbi/annotations/.gitattributes +1 -0
  10. data/sorbet/rbi/annotations/minitest.rbi +119 -0
  11. data/sorbet/rbi/annotations/rainbow.rbi +269 -0
  12. data/sorbet/rbi/gems/.gitattributes +1 -0
  13. data/sorbet/rbi/gems/ast@2.4.2.rbi +585 -0
  14. data/sorbet/rbi/gems/erubi@1.13.0.rbi +150 -0
  15. data/sorbet/rbi/gems/json@2.8.2.rbi +1901 -0
  16. data/sorbet/rbi/gems/language_server-protocol@3.17.0.3.rbi +14238 -0
  17. data/sorbet/rbi/gems/logger@1.6.1.rbi +920 -0
  18. data/sorbet/rbi/gems/minitest@5.25.2.rbi +2209 -0
  19. data/sorbet/rbi/gems/netrc@0.11.0.rbi +159 -0
  20. data/sorbet/rbi/gems/parallel@1.26.3.rbi +291 -0
  21. data/sorbet/rbi/gems/parser@3.3.6.0.rbi +5519 -0
  22. data/sorbet/rbi/gems/prism@1.2.0.rbi +39085 -0
  23. data/sorbet/rbi/gems/racc@1.8.1.rbi +162 -0
  24. data/sorbet/rbi/gems/rainbow@3.1.1.rbi +403 -0
  25. data/sorbet/rbi/gems/rake@13.2.1.rbi +3028 -0
  26. data/sorbet/rbi/gems/rbi@0.2.1.rbi +4535 -0
  27. data/sorbet/rbi/gems/rbs@3.6.1.rbi +6857 -0
  28. data/sorbet/rbi/gems/regexp_parser@2.9.2.rbi +3772 -0
  29. data/sorbet/rbi/gems/rubocop-ast@1.36.2.rbi +7570 -0
  30. data/sorbet/rbi/gems/rubocop@1.69.0.rbi +59347 -0
  31. data/sorbet/rbi/gems/ruby-lsp@0.22.1.rbi +6119 -0
  32. data/sorbet/rbi/gems/ruby-progressbar@1.13.0.rbi +1318 -0
  33. data/sorbet/rbi/gems/spoom@1.5.0.rbi +4932 -0
  34. data/sorbet/rbi/gems/tapioca@0.16.5.rbi +3598 -0
  35. data/sorbet/rbi/gems/thor@1.3.2.rbi +4378 -0
  36. data/sorbet/rbi/gems/unicode-display_width@3.1.2.rbi +130 -0
  37. data/sorbet/rbi/gems/unicode-emoji@4.0.4.rbi +251 -0
  38. data/sorbet/rbi/gems/yard-sorbet@0.9.0.rbi +435 -0
  39. data/sorbet/rbi/gems/yard@0.9.37.rbi +18379 -0
  40. data/sorbet/tapioca/config.yml +13 -0
  41. data/sorbet/tapioca/require.rb +11 -0
  42. metadata +36 -2
@@ -0,0 +1,435 @@
1
+ # typed: true
2
+
3
+ # DO NOT EDIT MANUALLY
4
+ # This is an autogenerated file for types exported from the `yard-sorbet` gem.
5
+ # Please instead update this file by running `bin/tapioca gem yard-sorbet`.
6
+
7
+
8
+ class YARD::Handlers::Ruby::ClassHandler < ::YARD::Handlers::Ruby::Base
9
+ include ::YARDSorbet::Handlers::StructClassHandler
10
+ end
11
+
12
+ # Types are documentation
13
+ #
14
+ # source://yard-sorbet/lib/yard-sorbet/version.rb#5
15
+ module YARDSorbet; end
16
+
17
+ # Extract & re-add directives to a docstring
18
+ #
19
+ # source://yard-sorbet/lib/yard-sorbet/directives.rb#6
20
+ module YARDSorbet::Directives
21
+ class << self
22
+ # source://yard-sorbet/lib/yard-sorbet/directives.rb#21
23
+ sig { params(docstring: ::String, directives: T::Array[::String]).void }
24
+ def add_directives(docstring, directives); end
25
+
26
+ # source://yard-sorbet/lib/yard-sorbet/directives.rb#10
27
+ sig { params(docstring: T.nilable(::String)).returns([::YARD::Docstring, T::Array[::String]]) }
28
+ def extract_directives(docstring); end
29
+ end
30
+ end
31
+
32
+ # Custom YARD Handlers
33
+ #
34
+ # @see https://rubydoc.info/gems/yard/YARD/Handlers/Base YARD Base Handler documentation
35
+ #
36
+ # source://yard-sorbet/lib/yard-sorbet/handlers.rb#7
37
+ module YARDSorbet::Handlers; end
38
+
39
+ # Applies an `@abstract` tag to `abstract!`/`interface!` modules (if not alerady present).
40
+ #
41
+ # source://yard-sorbet/lib/yard-sorbet/handlers/abstract_dsl_handler.rb#7
42
+ class YARDSorbet::Handlers::AbstractDSLHandler < ::YARD::Handlers::Ruby::Base
43
+ # source://yard-sorbet/lib/yard-sorbet/handlers/abstract_dsl_handler.rb#21
44
+ sig { void }
45
+ def process; end
46
+ end
47
+
48
+ # Extra text for class namespaces
49
+ #
50
+ # source://yard-sorbet/lib/yard-sorbet/handlers/abstract_dsl_handler.rb#18
51
+ YARDSorbet::Handlers::AbstractDSLHandler::CLASS_TAG_TEXT = T.let(T.unsafe(nil), String)
52
+
53
+ # The text accompanying the `@abstract` tag.
54
+ #
55
+ # @see https://github.com/lsegal/yard/blob/main/templates/default/docstring/html/abstract.erb The `@abstract` tag template
56
+ #
57
+ # source://yard-sorbet/lib/yard-sorbet/handlers/abstract_dsl_handler.rb#16
58
+ YARDSorbet::Handlers::AbstractDSLHandler::TAG_TEXT = T.let(T.unsafe(nil), String)
59
+
60
+ # Handle `enums` calls, registering enum values as constants
61
+ #
62
+ # source://yard-sorbet/lib/yard-sorbet/handlers/enums_handler.rb#7
63
+ class YARDSorbet::Handlers::EnumsHandler < ::YARD::Handlers::Ruby::Base
64
+ # source://yard-sorbet/lib/yard-sorbet/handlers/enums_handler.rb#14
65
+ sig { void }
66
+ def process; end
67
+
68
+ private
69
+
70
+ # source://yard-sorbet/lib/yard-sorbet/handlers/enums_handler.rb#29
71
+ sig { params(node: ::YARD::Parser::Ruby::AstNode).returns(T::Boolean) }
72
+ def const_assign_node?(node); end
73
+ end
74
+
75
+ # Extends any modules included via `mixes_in_class_methods`
76
+ #
77
+ # @see https://sorbet.org/docs/abstract#interfaces-and-the-included-hook Sorbet `mixes_in_class_methods` documentation
78
+ #
79
+ # source://yard-sorbet/lib/yard-sorbet/handlers/include_handler.rb#9
80
+ class YARDSorbet::Handlers::IncludeHandler < ::YARD::Handlers::Ruby::Base
81
+ # source://yard-sorbet/lib/yard-sorbet/handlers/include_handler.rb#16
82
+ sig { void }
83
+ def process; end
84
+
85
+ private
86
+
87
+ # source://yard-sorbet/lib/yard-sorbet/handlers/include_handler.rb#28
88
+ sig { returns(::YARD::CodeObjects::NamespaceObject) }
89
+ def included_in; end
90
+ end
91
+
92
+ # Tracks modules that invoke `mixes_in_class_methods` for use in {IncludeHandler}
93
+ #
94
+ # @see https://sorbet.org/docs/abstract#interfaces-and-the-included-hook Sorbet `mixes_in_class_methods` documentation
95
+ #
96
+ # source://yard-sorbet/lib/yard-sorbet/handlers/mixes_in_class_methods_handler.rb#9
97
+ class YARDSorbet::Handlers::MixesInClassMethodsHandler < ::YARD::Handlers::Ruby::Base
98
+ # source://yard-sorbet/lib/yard-sorbet/handlers/mixes_in_class_methods_handler.rb#21
99
+ sig { void }
100
+ def process; end
101
+
102
+ class << self
103
+ # source://yard-sorbet/lib/yard-sorbet/handlers/mixes_in_class_methods_handler.rb#18
104
+ sig { params(code_obj: ::String).returns(T.nilable(T::Array[::String])) }
105
+ def mixed_in_class_methods(code_obj); end
106
+ end
107
+ end
108
+
109
+ # A YARD Handler for Sorbet type declarations
110
+ #
111
+ # source://yard-sorbet/lib/yard-sorbet/handlers/sig_handler.rb#7
112
+ class YARDSorbet::Handlers::SigHandler < ::YARD::Handlers::Ruby::Base
113
+ # Swap the method definition docstring and the sig docstring.
114
+ # Parse relevant parts of the `sig` and include them as well.
115
+ #
116
+ # source://yard-sorbet/lib/yard-sorbet/handlers/sig_handler.rb#24
117
+ sig { void }
118
+ def process; end
119
+
120
+ private
121
+
122
+ # source://yard-sorbet/lib/yard-sorbet/handlers/sig_handler.rb#73
123
+ sig { params(method_objects: T::Array[::YARD::CodeObjects::MethodObject]).void }
124
+ def document_attrs(method_objects); end
125
+
126
+ # An attr* sig can be merged into a previous attr* docstring if it is the only parameter passed to the attr*
127
+ # declaration. This is to avoid needing to rewrite the source code to separate merged and unmerged attr*
128
+ # declarations.
129
+ #
130
+ # source://yard-sorbet/lib/yard-sorbet/handlers/sig_handler.rb#60
131
+ sig { params(attr_node: ::YARD::Parser::Ruby::MethodCallNode).returns(T::Boolean) }
132
+ def merged_into_attr?(attr_node); end
133
+
134
+ # source://yard-sorbet/lib/yard-sorbet/handlers/sig_handler.rb#76
135
+ sig do
136
+ params(
137
+ attach_to: T.any(::YARD::CodeObjects::MethodObject, ::YARD::Parser::Ruby::MethodCallNode, ::YARD::Parser::Ruby::MethodDefinitionNode),
138
+ docstring: T.nilable(::String),
139
+ include_params: T::Boolean
140
+ ).void
141
+ end
142
+ def parse_node(attach_to, docstring, include_params: T.unsafe(nil)); end
143
+
144
+ # source://yard-sorbet/lib/yard-sorbet/handlers/sig_handler.rb#97
145
+ sig { params(node: ::YARD::Parser::Ruby::AstNode, docstring: ::YARD::Docstring).void }
146
+ def parse_params(node, docstring); end
147
+
148
+ # source://yard-sorbet/lib/yard-sorbet/handlers/sig_handler.rb#107
149
+ sig { params(node: ::YARD::Parser::Ruby::AstNode, docstring: ::YARD::Docstring).void }
150
+ def parse_return(node, docstring); end
151
+
152
+ # source://yard-sorbet/lib/yard-sorbet/handlers/sig_handler.rb#85
153
+ sig { params(docstring: ::YARD::Docstring, include_params: T::Boolean).void }
154
+ def parse_sig(docstring, include_params: T.unsafe(nil)); end
155
+
156
+ # source://yard-sorbet/lib/yard-sorbet/handlers/sig_handler.rb#50
157
+ sig { params(attr_node: ::YARD::Parser::Ruby::MethodCallNode).void }
158
+ def process_attr(attr_node); end
159
+
160
+ # source://yard-sorbet/lib/yard-sorbet/handlers/sig_handler.rb#36
161
+ sig { params(def_node: ::YARD::Parser::Ruby::MethodDefinitionNode).void }
162
+ def process_def(def_node); end
163
+ end
164
+
165
+ # YARD types that can have docstrings attached to them
166
+ #
167
+ # source://yard-sorbet/lib/yard-sorbet/handlers/sig_handler.rb#14
168
+ YARDSorbet::Handlers::SigHandler::Documentable = T.type_alias { T.any(::YARD::CodeObjects::MethodObject, ::YARD::Parser::Ruby::MethodCallNode, ::YARD::Parser::Ruby::MethodDefinitionNode) }
169
+
170
+ # Class-level handler that folds all `const` and `prop` declarations into the constructor documentation
171
+ # this needs to be injected as a module otherwise the default Class handler will overwrite documentation
172
+ #
173
+ # @note this module is included in `YARD::Handlers::Ruby::ClassHandler`
174
+ #
175
+ # source://yard-sorbet/lib/yard-sorbet/handlers/struct_class_handler.rb#10
176
+ module YARDSorbet::Handlers::StructClassHandler
177
+ # source://yard-sorbet/lib/yard-sorbet/handlers/struct_class_handler.rb#14
178
+ sig { void }
179
+ def process; end
180
+
181
+ private
182
+
183
+ # source://yard-sorbet/lib/yard-sorbet/handlers/struct_class_handler.rb#50
184
+ sig do
185
+ params(
186
+ object: ::YARD::CodeObjects::MethodObject,
187
+ props: T::Array[::YARDSorbet::TStructProp],
188
+ docstring: ::YARD::Docstring,
189
+ directives: T::Array[::String]
190
+ ).void
191
+ end
192
+ def decorate_t_struct_init(object, props, docstring, directives); end
193
+
194
+ # Create a virtual `initialize` method with all the `prop`/`const` arguments
195
+ #
196
+ # source://yard-sorbet/lib/yard-sorbet/handlers/struct_class_handler.rb#30
197
+ sig { params(props: T::Array[::YARDSorbet::TStructProp], class_ns: ::YARD::CodeObjects::ClassObject).void }
198
+ def process_t_struct_props(props, class_ns); end
199
+
200
+ # source://yard-sorbet/lib/yard-sorbet/handlers/struct_class_handler.rb#60
201
+ sig { params(props: T::Array[::YARDSorbet::TStructProp]).returns(T::Array[[::String, T.nilable(::String)]]) }
202
+ def to_object_parameters(props); end
203
+ end
204
+
205
+ # Handles all `const`/`prop` calls, creating accessor methods, and compiles them for later usage at the class level
206
+ # in creating a constructor
207
+ #
208
+ # source://yard-sorbet/lib/yard-sorbet/handlers/struct_prop_handler.rb#8
209
+ class YARDSorbet::Handlers::StructPropHandler < ::YARD::Handlers::Ruby::Base
210
+ # source://yard-sorbet/lib/yard-sorbet/handlers/struct_prop_handler.rb#15
211
+ sig { void }
212
+ def process; end
213
+
214
+ private
215
+
216
+ # Add the source and docstring to the method object
217
+ #
218
+ # source://yard-sorbet/lib/yard-sorbet/handlers/struct_prop_handler.rb#28
219
+ sig { params(object: ::YARD::CodeObjects::MethodObject, prop: ::YARDSorbet::TStructProp).void }
220
+ def decorate_object(object, prop); end
221
+
222
+ # source://yard-sorbet/lib/yard-sorbet/handlers/struct_prop_handler.rb#38
223
+ sig { returns(T::Boolean) }
224
+ def immutable?; end
225
+
226
+ # source://yard-sorbet/lib/yard-sorbet/handlers/struct_prop_handler.rb#42
227
+ sig { params(kwd: ::String).returns(T.nilable(::String)) }
228
+ def kw_arg(kwd); end
229
+
230
+ # source://yard-sorbet/lib/yard-sorbet/handlers/struct_prop_handler.rb#45
231
+ sig { params(name: ::String).returns(::YARDSorbet::TStructProp) }
232
+ def make_prop(name); end
233
+
234
+ # source://yard-sorbet/lib/yard-sorbet/handlers/struct_prop_handler.rb#56
235
+ sig { returns(T::Array[::YARD::Parser::Ruby::AstNode]) }
236
+ def params; end
237
+
238
+ # Register the field explicitly as an attribute.
239
+ #
240
+ # source://yard-sorbet/lib/yard-sorbet/handlers/struct_prop_handler.rb#60
241
+ sig { params(object: ::YARD::CodeObjects::MethodObject, name: ::String).void }
242
+ def register_attrs(object, name); end
243
+
244
+ # Store the prop for use in the constructor definition
245
+ #
246
+ # source://yard-sorbet/lib/yard-sorbet/handlers/struct_prop_handler.rb#68
247
+ sig { params(prop: ::YARDSorbet::TStructProp).void }
248
+ def update_state(prop); end
249
+ end
250
+
251
+ # Helper methods for working with `YARD` AST Nodes
252
+ #
253
+ # source://yard-sorbet/lib/yard-sorbet/node_utils.rb#6
254
+ module YARDSorbet::NodeUtils
255
+ class << self
256
+ # Traverse AST nodes in breadth-first order
257
+ #
258
+ # @note This will skip over some node types.
259
+ # @yield [YARD::Parser::Ruby::AstNode]
260
+ #
261
+ # source://yard-sorbet/lib/yard-sorbet/node_utils.rb#21
262
+ sig do
263
+ params(
264
+ node: ::YARD::Parser::Ruby::AstNode,
265
+ _blk: T.proc.params(n: ::YARD::Parser::Ruby::AstNode).void
266
+ ).void
267
+ end
268
+ def bfs_traverse(node, &_blk); end
269
+
270
+ # source://yard-sorbet/lib/yard-sorbet/node_utils.rb#31
271
+ sig { params(node: ::YARD::Parser::Ruby::AstNode).void }
272
+ def delete_node(node); end
273
+
274
+ # Enqueue the eligible children of a node in the BFS queue
275
+ #
276
+ # source://yard-sorbet/lib/yard-sorbet/node_utils.rb#35
277
+ sig { params(queue: ::Thread::Queue, node: ::YARD::Parser::Ruby::AstNode).void }
278
+ def enqueue_children(queue, node); end
279
+
280
+ # Gets the node that a sorbet `sig` can be attached do, bypassing visisbility modifiers and the like
281
+ #
282
+ # source://yard-sorbet/lib/yard-sorbet/node_utils.rb#48
283
+ sig do
284
+ params(
285
+ node: ::YARD::Parser::Ruby::AstNode
286
+ ).returns(T.any(::YARD::Parser::Ruby::MethodCallNode, ::YARD::Parser::Ruby::MethodDefinitionNode))
287
+ end
288
+ def get_method_node(node); end
289
+
290
+ # Find and return the adjacent node (ascending)
291
+ #
292
+ # @raise [IndexError] if the node does not have an adjacent sibling (ascending)
293
+ #
294
+ # source://yard-sorbet/lib/yard-sorbet/node_utils.rb#53
295
+ sig { params(node: ::YARD::Parser::Ruby::AstNode).returns(::YARD::Parser::Ruby::AstNode) }
296
+ def sibling_node(node); end
297
+
298
+ # source://yard-sorbet/lib/yard-sorbet/node_utils.rb#60
299
+ sig { params(node: ::YARD::Parser::Ruby::AstNode).returns(T::Boolean) }
300
+ def sigable_node?(node); end
301
+
302
+ # @see https://github.com/lsegal/yard/blob/main/lib/yard/handlers/ruby/attribute_handler.rb YARD::Handlers::Ruby::AttributeHandler.validated_attribute_names
303
+ #
304
+ # source://yard-sorbet/lib/yard-sorbet/node_utils.rb#71
305
+ sig { params(attr_node: ::YARD::Parser::Ruby::MethodCallNode).returns(T::Array[::String]) }
306
+ def validated_attribute_names(attr_node); end
307
+ end
308
+ end
309
+
310
+ # Command node types that can have type signatures
311
+ #
312
+ # source://yard-sorbet/lib/yard-sorbet/node_utils.rb#10
313
+ YARDSorbet::NodeUtils::ATTRIBUTE_METHODS = T.let(T.unsafe(nil), Array)
314
+
315
+ # Skip these method contents during BFS node traversal, they can have their own nested types via `T.Proc`
316
+ #
317
+ # source://yard-sorbet/lib/yard-sorbet/node_utils.rb#12
318
+ YARDSorbet::NodeUtils::SKIP_METHOD_CONTENTS = T.let(T.unsafe(nil), Array)
319
+
320
+ # Node types that can have type signatures
321
+ #
322
+ # source://yard-sorbet/lib/yard-sorbet/node_utils.rb#14
323
+ YARDSorbet::NodeUtils::SigableNode = T.type_alias { T.any(::YARD::Parser::Ruby::MethodCallNode, ::YARD::Parser::Ruby::MethodDefinitionNode) }
324
+
325
+ # Translate `sig` type syntax to `YARD` type syntax.
326
+ #
327
+ # source://yard-sorbet/lib/yard-sorbet/sig_to_yard.rb#6
328
+ module YARDSorbet::SigToYARD
329
+ class << self
330
+ # @see https://yardoc.org/types.html
331
+ #
332
+ # source://yard-sorbet/lib/yard-sorbet/sig_to_yard.rb#23
333
+ sig { params(node: ::YARD::Parser::Ruby::AstNode).returns(T::Array[::String]) }
334
+ def convert(node); end
335
+
336
+ private
337
+
338
+ # source://yard-sorbet/lib/yard-sorbet/sig_to_yard.rb#58
339
+ sig { params(node: ::YARD::Parser::Ruby::AstNode).returns(::String) }
340
+ def build_generic_type(node); end
341
+
342
+ # source://yard-sorbet/lib/yard-sorbet/sig_to_yard.rb#67
343
+ sig { params(node: ::YARD::Parser::Ruby::AstNode).returns(T::Array[::String]) }
344
+ def convert_aref(node); end
345
+
346
+ # source://yard-sorbet/lib/yard-sorbet/sig_to_yard.rb#79
347
+ sig { params(node: ::YARD::Parser::Ruby::AstNode).returns([::String]) }
348
+ def convert_array(node); end
349
+
350
+ # source://yard-sorbet/lib/yard-sorbet/sig_to_yard.rb#87
351
+ sig { params(node: ::YARD::Parser::Ruby::AstNode).returns([::String]) }
352
+ def convert_collection(node); end
353
+
354
+ # source://yard-sorbet/lib/yard-sorbet/sig_to_yard.rb#94
355
+ sig { params(node: ::YARD::Parser::Ruby::AstNode).returns([::String]) }
356
+ def convert_hash(node); end
357
+
358
+ # source://yard-sorbet/lib/yard-sorbet/sig_to_yard.rb#102
359
+ sig { params(node: ::YARD::Parser::Ruby::AstNode).returns(T::Array[::String]) }
360
+ def convert_list(node); end
361
+
362
+ # source://yard-sorbet/lib/yard-sorbet/sig_to_yard.rb#28
363
+ sig { params(node: ::YARD::Parser::Ruby::AstNode).returns(T::Array[::String]) }
364
+ def convert_node(node); end
365
+
366
+ # source://yard-sorbet/lib/yard-sorbet/sig_to_yard.rb#40
367
+ sig { params(node: ::YARD::Parser::Ruby::AstNode).returns(T::Array[::String]) }
368
+ def convert_node_type(node); end
369
+
370
+ # source://yard-sorbet/lib/yard-sorbet/sig_to_yard.rb#107
371
+ sig { params(node: ::YARD::Parser::Ruby::MethodCallNode).returns(T::Array[::String]) }
372
+ def convert_t_method(node); end
373
+
374
+ # source://yard-sorbet/lib/yard-sorbet/sig_to_yard.rb#118
375
+ sig { params(node: ::YARD::Parser::Ruby::AstNode).returns([::String]) }
376
+ def convert_unknown(node); end
377
+ end
378
+ end
379
+
380
+ # Used to store the details of a `T::Struct` `prop` definition
381
+ #
382
+ # source://yard-sorbet/lib/yard-sorbet/t_struct_prop.rb#6
383
+ class YARDSorbet::TStructProp < ::T::Struct
384
+ const :default, T.nilable(::String)
385
+ const :doc, ::String
386
+ const :prop_name, ::String
387
+ const :source, ::String
388
+ const :types, T::Array[::String]
389
+
390
+ class << self
391
+ # source://sorbet-runtime/0.5.11670lib/types/struct.rb#13
392
+ def inherited(s); end
393
+ end
394
+ end
395
+
396
+ # Helper methods for working with `YARD` tags
397
+ #
398
+ # source://yard-sorbet/lib/yard-sorbet/tag_utils.rb#6
399
+ module YARDSorbet::TagUtils
400
+ class << self
401
+ # source://yard-sorbet/lib/yard-sorbet/tag_utils.rb#16
402
+ sig do
403
+ params(
404
+ docstring: ::YARD::Docstring,
405
+ tag_name: ::String,
406
+ name: T.nilable(::String)
407
+ ).returns(T.nilable(::YARD::Tags::Tag))
408
+ end
409
+ def find_tag(docstring, tag_name, name); end
410
+
411
+ # Create or update a `YARD` tag with type information
412
+ #
413
+ # source://yard-sorbet/lib/yard-sorbet/tag_utils.rb#28
414
+ sig do
415
+ params(
416
+ docstring: ::YARD::Docstring,
417
+ tag_name: ::String,
418
+ types: T.nilable(T::Array[::String]),
419
+ name: T.nilable(::String),
420
+ text: ::String
421
+ ).void
422
+ end
423
+ def upsert_tag(docstring, tag_name, types = T.unsafe(nil), name = T.unsafe(nil), text = T.unsafe(nil)); end
424
+ end
425
+ end
426
+
427
+ # The `void` return type, as a constant to reduce array allocations
428
+ #
429
+ # source://yard-sorbet/lib/yard-sorbet/tag_utils.rb#10
430
+ YARDSorbet::TagUtils::VOID_RETURN_TYPE = T.let(T.unsafe(nil), Array)
431
+
432
+ # {https://rubygems.org/gems/yard-sorbet Version history}
433
+ #
434
+ # source://yard-sorbet/lib/yard-sorbet/version.rb#7
435
+ YARDSorbet::VERSION = T.let(T.unsafe(nil), String)