mootool 0.2.7 → 0.2.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +7 -0
- data/Gemfile +1 -0
- data/Gemfile.lock +71 -67
- data/lib/mootool/command.rb +1 -0
- data/lib/mootool/controller_base.rb +1 -0
- data/lib/mootool/controllers/dwarf.rb +2 -1
- data/lib/mootool/controllers/dyld_linker.rb +1 -0
- data/lib/mootool/controllers/dyld_shared_cache.rb +1 -0
- data/lib/mootool/controllers/fat_binary.rb +1 -0
- data/lib/mootool/controllers/kernel_collection.rb +4 -3
- data/lib/mootool/controllers/sections.rb +1 -0
- data/lib/mootool/core_extensions.rb +3 -3
- data/lib/mootool/models/decompressor.rb +5 -2
- data/lib/mootool/models/device_tree.rb +5 -3
- data/lib/mootool/models/img4.rb +2 -1
- data/lib/mootool/models/ipsw.rb +5 -1
- data/lib/mootool/version.rb +2 -1
- data/lib/mootool.rb +1 -0
- data/sorbet/config +1 -1
- data/sorbet/rbi/annotations/.gitattributes +1 -0
- data/sorbet/rbi/annotations/rainbow.rbi +2 -2
- data/sorbet/rbi/gems/.gitattributes +1 -0
- data/sorbet/rbi/gems/ast@2.4.2.rbi +48 -82
- data/sorbet/rbi/gems/childprocess@4.1.0.rbi +107 -153
- data/sorbet/rbi/gems/diff-lcs@1.5.0.rbi +192 -332
- data/sorbet/rbi/gems/docile@1.4.0.rbi +376 -0
- data/sorbet/rbi/gems/erubi@1.12.0.rbi +146 -0
- data/sorbet/rbi/gems/iniparse@1.5.0.rbi +166 -276
- data/sorbet/rbi/gems/{json@2.6.2.rbi → json@2.6.3.rbi} +119 -228
- data/sorbet/rbi/gems/language_server-protocol@3.17.0.3.rbi +14237 -0
- data/sorbet/rbi/gems/lzfse@0.0.2.rbi +55 -0
- data/sorbet/rbi/gems/lzss@0.1.rbi +8 -0
- data/sorbet/rbi/gems/netrc@0.11.0.rbi +52 -80
- data/sorbet/rbi/gems/{overcommit@0.59.1.rbi → overcommit@0.60.0.rbi} +534 -887
- data/sorbet/rbi/gems/parallel@1.23.0.rbi +273 -0
- data/sorbet/rbi/gems/parser@3.2.2.4.rbi +5451 -0
- data/sorbet/rbi/gems/{plist@3.6.0.rbi → plist@3.7.0.rbi} +125 -3
- data/sorbet/rbi/gems/prettier_print@1.2.1.rbi +951 -0
- data/sorbet/rbi/gems/prism@0.17.1.rbi +27700 -0
- data/sorbet/rbi/gems/racc@1.7.3.rbi +161 -0
- data/sorbet/rbi/gems/rainbow@3.1.1.rbi +141 -191
- data/sorbet/rbi/gems/rake@13.1.0.rbi +2887 -0
- data/sorbet/rbi/gems/{rbi@0.0.15.rbi → rbi@0.1.4.rbi} +979 -1676
- data/sorbet/rbi/gems/regexp_parser@2.8.2.rbi +3749 -0
- data/sorbet/rbi/gems/{rexml@3.2.5.rbi → rexml@3.2.6.rbi} +811 -1268
- data/sorbet/rbi/gems/{rspec-core@3.11.0.rbi → rspec-core@3.12.2.rbi} +2662 -4722
- data/sorbet/rbi/gems/{rspec-expectations@3.11.0.rbi → rspec-expectations@3.12.3.rbi} +1557 -2608
- data/sorbet/rbi/gems/rspec-mocks@3.12.6.rbi +5306 -0
- data/sorbet/rbi/gems/rspec-support@3.12.1.rbi +1609 -0
- data/sorbet/rbi/gems/rspec@3.12.0.rbi +82 -0
- data/sorbet/rbi/gems/rubocop-ast@1.30.0.rbi +7090 -0
- data/sorbet/rbi/gems/rubocop-capybara@2.19.0.rbi +1125 -0
- data/sorbet/rbi/gems/rubocop-factory_bot@2.24.0.rbi +878 -0
- data/sorbet/rbi/gems/rubocop-rake@0.6.0.rbi +88 -173
- data/sorbet/rbi/gems/rubocop-rspec@2.25.0.rbi +7997 -0
- data/sorbet/rbi/gems/rubocop@1.57.2.rbi +56813 -0
- data/sorbet/rbi/gems/ruby-lzma@0.4.3.rbi +19 -0
- data/sorbet/rbi/gems/ruby-macho@3.0.0.rbi +899 -1237
- data/sorbet/rbi/gems/ruby-progressbar@1.13.0.rbi +1317 -0
- data/sorbet/rbi/gems/rubyzip@2.3.2.rbi +808 -1275
- data/sorbet/rbi/gems/simplecov-html@0.12.3.rbi +216 -0
- data/sorbet/rbi/gems/simplecov@0.22.0.rbi +2148 -0
- data/sorbet/rbi/gems/simplecov_json_formatter@0.1.4.rbi +8 -0
- data/sorbet/rbi/gems/spoom@1.2.4.rbi +3777 -0
- data/sorbet/rbi/gems/syntax_tree@6.2.0.rbi +23136 -0
- data/sorbet/rbi/gems/tapioca@0.11.12.rbi +3507 -0
- data/sorbet/rbi/gems/unicode-display_width@2.5.0.rbi +65 -0
- data/sorbet/rbi/gems/yard-sorbet@0.8.1.rbi +428 -0
- data/sorbet/rbi/gems/{yard@0.9.28.rbi → yard@0.9.34.rbi} +4531 -7160
- data/sorbet/rbi/sorbet-typed/lib/rainbow/all/rainbow.rbi +24 -72
- data/sorbet/rbi/sorbet-typed/lib/rake/all/rake.rbi +385 -1697
- data/sorbet/rbi/sorbet-typed/lib/rspec-core/all/rspec-core.rbi +7 -30
- data/sorbet/rbi/sorbet-typed/lib/rubocop/>=1.8/rubocop.rbi +1 -3
- data/sorbet/rbi/sorbet-typed/lib/thor/all/thor.rbi +905 -0
- data/sorbet/rbi/sorbet-typed/lib/yard/all/yard.rbi +35 -0
- data/sorbet/tapioca/require.rb +13 -1
- metadata +47 -35
- data/sorbet/rbi/gems/coderay@1.1.3.rbi +0 -8
- data/sorbet/rbi/gems/method_source@1.0.0.rbi +0 -8
- data/sorbet/rbi/gems/parallel@1.22.1.rbi +0 -353
- data/sorbet/rbi/gems/parser@3.1.2.1.rbi +0 -6198
- data/sorbet/rbi/gems/pry@0.14.1.rbi +0 -8
- data/sorbet/rbi/gems/rake@13.0.6.rbi +0 -3587
- data/sorbet/rbi/gems/regexp_parser@2.5.0.rbi +0 -3927
- data/sorbet/rbi/gems/rspec-mocks@3.11.1.rbi +0 -6506
- data/sorbet/rbi/gems/rspec-support@3.11.0.rbi +0 -2040
- data/sorbet/rbi/gems/rspec@3.11.0.rbi +0 -120
- data/sorbet/rbi/gems/rubocop-ast@1.21.0.rbi +0 -7990
- data/sorbet/rbi/gems/rubocop-rspec@2.12.1.rbi +0 -7604
- data/sorbet/rbi/gems/rubocop@1.35.0.rbi +0 -62260
- data/sorbet/rbi/gems/ruby-progressbar@1.11.0.rbi +0 -1445
- data/sorbet/rbi/gems/spoom@1.1.12.rbi +0 -2829
- data/sorbet/rbi/gems/tapioca@0.9.3.rbi +0 -2151
- data/sorbet/rbi/gems/thor@1.2.1.rbi +0 -4532
- data/sorbet/rbi/gems/unicode-display_width@2.2.0.rbi +0 -60
- data/sorbet/rbi/gems/unparser@0.6.5.rbi +0 -8
- data/sorbet/rbi/gems/webrick@1.7.0.rbi +0 -3075
- data/sorbet/rbi/gems/yard-sorbet@0.6.1.rbi +0 -458
- data/sorbet/rbi/todo.rbi +0 -7
@@ -1,458 +0,0 @@
|
|
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
|
-
class YARD::Handlers::Ruby::ClassHandler < ::YARD::Handlers::Ruby::Base
|
8
|
-
include ::YARDSorbet::Handlers::StructClassHandler
|
9
|
-
end
|
10
|
-
|
11
|
-
# Types are documentation
|
12
|
-
#
|
13
|
-
# source://yard-sorbet-0.6.1/lib/yard-sorbet/version.rb:5
|
14
|
-
module YARDSorbet
|
15
|
-
;
|
16
|
-
end
|
17
|
-
|
18
|
-
# Extract & re-add directives to a docstring
|
19
|
-
#
|
20
|
-
# source://yard-sorbet-0.6.1/lib/yard-sorbet/directives.rb:6
|
21
|
-
module YARDSorbet::Directives
|
22
|
-
class << self
|
23
|
-
# source://yard-sorbet-0.6.1/lib/yard-sorbet/directives.rb:24
|
24
|
-
sig { params(docstring: ::String, directives: T::Array[::String]).void }
|
25
|
-
def add_directives(docstring, directives)
|
26
|
-
;
|
27
|
-
end
|
28
|
-
|
29
|
-
# source://yard-sorbet-0.6.1/lib/yard-sorbet/directives.rb:10
|
30
|
-
sig { params(docstring: T.nilable(::String)).returns([::YARD::Docstring, T::Array[::String]]) }
|
31
|
-
def extract_directives(docstring)
|
32
|
-
;
|
33
|
-
end
|
34
|
-
end
|
35
|
-
end
|
36
|
-
|
37
|
-
# Custom YARD Handlers
|
38
|
-
#
|
39
|
-
# @see https://rubydoc.info/gems/yard/YARD/Handlers/Base YARD Base Handler documentation
|
40
|
-
#
|
41
|
-
# source://yard-sorbet-0.6.1/lib/yard-sorbet/handlers.rb:7
|
42
|
-
module YARDSorbet::Handlers
|
43
|
-
;
|
44
|
-
end
|
45
|
-
|
46
|
-
# Apllies an `@abstract` tag to `abstract!`/`interface!` modules (if not alerady present).
|
47
|
-
#
|
48
|
-
# source://yard-sorbet-0.6.1/lib/yard-sorbet/handlers/abstract_dsl_handler.rb:7
|
49
|
-
class YARDSorbet::Handlers::AbstractDSLHandler < ::YARD::Handlers::Ruby::Base
|
50
|
-
# source://yard-sorbet-0.6.1/lib/yard-sorbet/handlers/abstract_dsl_handler.rb:21
|
51
|
-
sig { void }
|
52
|
-
def process; end
|
53
|
-
end
|
54
|
-
|
55
|
-
# Extra text for class namespaces
|
56
|
-
#
|
57
|
-
# source://yard-sorbet-0.6.1/lib/yard-sorbet/handlers/abstract_dsl_handler.rb:18
|
58
|
-
YARDSorbet::Handlers::AbstractDSLHandler::CLASS_TAG_TEXT = T.let(T.unsafe(nil), String)
|
59
|
-
|
60
|
-
# The text accompanying the `@abstract` tag.
|
61
|
-
#
|
62
|
-
# @see https://github.com/lsegal/yard/blob/main/templates/default/docstring/html/abstract.erb The `@abstract` tag template
|
63
|
-
#
|
64
|
-
# source://yard-sorbet-0.6.1/lib/yard-sorbet/handlers/abstract_dsl_handler.rb:16
|
65
|
-
YARDSorbet::Handlers::AbstractDSLHandler::TAG_TEXT = T.let(T.unsafe(nil), String)
|
66
|
-
|
67
|
-
# Handle `enums` calls, registering enum values as constants
|
68
|
-
#
|
69
|
-
# source://yard-sorbet-0.6.1/lib/yard-sorbet/handlers/enums_handler.rb:7
|
70
|
-
class YARDSorbet::Handlers::EnumsHandler < ::YARD::Handlers::Ruby::Base
|
71
|
-
# source://yard-sorbet-0.6.1/lib/yard-sorbet/handlers/enums_handler.rb:14
|
72
|
-
sig { void }
|
73
|
-
def process; end
|
74
|
-
|
75
|
-
private
|
76
|
-
|
77
|
-
# source://yard-sorbet-0.6.1/lib/yard-sorbet/handlers/enums_handler.rb:29
|
78
|
-
sig { params(node: ::YARD::Parser::Ruby::AstNode).returns(T::Boolean) }
|
79
|
-
def const_assign_node?(node)
|
80
|
-
;
|
81
|
-
end
|
82
|
-
end
|
83
|
-
|
84
|
-
# Extends any modules included via `mixes_in_class_methods`
|
85
|
-
#
|
86
|
-
# @see https://sorbet.org/docs/abstract#interfaces-and-the-included-hook Sorbet `mixes_in_class_methods` documentation
|
87
|
-
#
|
88
|
-
# source://yard-sorbet-0.6.1/lib/yard-sorbet/handlers/include_handler.rb:9
|
89
|
-
class YARDSorbet::Handlers::IncludeHandler < ::YARD::Handlers::Ruby::Base
|
90
|
-
# source://yard-sorbet-0.6.1/lib/yard-sorbet/handlers/include_handler.rb:16
|
91
|
-
sig { void }
|
92
|
-
def process; end
|
93
|
-
|
94
|
-
private
|
95
|
-
|
96
|
-
# source://yard-sorbet-0.6.1/lib/yard-sorbet/handlers/include_handler.rb:30
|
97
|
-
sig { returns(::YARD::CodeObjects::NamespaceObject) }
|
98
|
-
def included_in; end
|
99
|
-
end
|
100
|
-
|
101
|
-
# Tracks modules that invoke `mixes_in_class_methods` for use in {IncludeHandler}
|
102
|
-
#
|
103
|
-
# @see https://sorbet.org/docs/abstract#interfaces-and-the-included-hook Sorbet `mixes_in_class_methods` documentation
|
104
|
-
#
|
105
|
-
# source://yard-sorbet-0.6.1/lib/yard-sorbet/handlers/mixes_in_class_methods_handler.rb:9
|
106
|
-
class YARDSorbet::Handlers::MixesInClassMethodsHandler < ::YARD::Handlers::Ruby::Base
|
107
|
-
# source://yard-sorbet-0.6.1/lib/yard-sorbet/handlers/mixes_in_class_methods_handler.rb:23
|
108
|
-
sig { void }
|
109
|
-
def process; end
|
110
|
-
|
111
|
-
class << self
|
112
|
-
# source://yard-sorbet-0.6.1/lib/yard-sorbet/handlers/mixes_in_class_methods_handler.rb:18
|
113
|
-
sig { params(code_obj: ::String).returns(T.nilable(::String)) }
|
114
|
-
def mixed_in_class_methods(code_obj)
|
115
|
-
;
|
116
|
-
end
|
117
|
-
end
|
118
|
-
end
|
119
|
-
|
120
|
-
# A YARD Handler for Sorbet type declarations
|
121
|
-
#
|
122
|
-
# source://yard-sorbet-0.6.1/lib/yard-sorbet/handlers/sig_handler.rb:7
|
123
|
-
class YARDSorbet::Handlers::SigHandler < ::YARD::Handlers::Ruby::Base
|
124
|
-
# Swap the method definition docstring and the sig docstring.
|
125
|
-
# Parse relevant parts of the `sig` and include them as well.
|
126
|
-
#
|
127
|
-
# source://yard-sorbet-0.6.1/lib/yard-sorbet/handlers/sig_handler.rb:20
|
128
|
-
sig { void }
|
129
|
-
def process; end
|
130
|
-
|
131
|
-
private
|
132
|
-
|
133
|
-
# source://yard-sorbet-0.6.1/lib/yard-sorbet/handlers/sig_handler.rb:52
|
134
|
-
sig do
|
135
|
-
params(
|
136
|
-
method_node: ::YARD::Parser::Ruby::AstNode,
|
137
|
-
node: ::YARD::Parser::Ruby::AstNode,
|
138
|
-
docstring: ::YARD::Docstring
|
139
|
-
).void
|
140
|
-
end
|
141
|
-
def parse_params(method_node, node, docstring)
|
142
|
-
;
|
143
|
-
end
|
144
|
-
|
145
|
-
# source://yard-sorbet-0.6.1/lib/yard-sorbet/handlers/sig_handler.rb:64
|
146
|
-
sig { params(node: ::YARD::Parser::Ruby::AstNode, docstring: ::YARD::Docstring).void }
|
147
|
-
def parse_return(node, docstring)
|
148
|
-
;
|
149
|
-
end
|
150
|
-
|
151
|
-
# source://yard-sorbet-0.6.1/lib/yard-sorbet/handlers/sig_handler.rb:32
|
152
|
-
sig { params(method_node: ::YARD::Parser::Ruby::AstNode, docstring: ::YARD::Docstring).void }
|
153
|
-
def parse_sig(method_node, docstring)
|
154
|
-
;
|
155
|
-
end
|
156
|
-
end
|
157
|
-
|
158
|
-
# These node types attached to sigs represent attr_* declarations
|
159
|
-
#
|
160
|
-
# source://yard-sorbet-0.6.1/lib/yard-sorbet/handlers/sig_handler.rb:14
|
161
|
-
YARDSorbet::Handlers::SigHandler::ATTR_NODE_TYPES = T.let(T.unsafe(nil), Array)
|
162
|
-
|
163
|
-
# Class-level handler that folds all `const` and `prop` declarations into the constructor documentation
|
164
|
-
# this needs to be injected as a module otherwise the default Class handler will overwrite documentation
|
165
|
-
#
|
166
|
-
# @note this module is included in `YARD::Handlers::Ruby::ClassHandler`
|
167
|
-
#
|
168
|
-
# source://yard-sorbet-0.6.1/lib/yard-sorbet/handlers/struct_class_handler.rb:10
|
169
|
-
module YARDSorbet::Handlers::StructClassHandler
|
170
|
-
# source://yard-sorbet-0.6.1/lib/yard-sorbet/handlers/struct_class_handler.rb:14
|
171
|
-
sig { void }
|
172
|
-
def process; end
|
173
|
-
|
174
|
-
private
|
175
|
-
|
176
|
-
# source://yard-sorbet-0.6.1/lib/yard-sorbet/handlers/struct_class_handler.rb:52
|
177
|
-
sig do
|
178
|
-
params(
|
179
|
-
object: ::YARD::CodeObjects::MethodObject,
|
180
|
-
props: T::Array[::YARDSorbet::TStructProp],
|
181
|
-
docstring: ::YARD::Docstring,
|
182
|
-
directives: T::Array[::String]
|
183
|
-
).void
|
184
|
-
end
|
185
|
-
def decorate_t_struct_init(object, props, docstring, directives)
|
186
|
-
;
|
187
|
-
end
|
188
|
-
|
189
|
-
# Create a virtual `initialize` method with all the `prop`/`const` arguments
|
190
|
-
#
|
191
|
-
# source://yard-sorbet-0.6.1/lib/yard-sorbet/handlers/struct_class_handler.rb:30
|
192
|
-
sig { params(props: T::Array[::YARDSorbet::TStructProp], class_ns: ::YARD::CodeObjects::ClassObject).void }
|
193
|
-
def process_t_struct_props(props, class_ns)
|
194
|
-
;
|
195
|
-
end
|
196
|
-
|
197
|
-
# source://yard-sorbet-0.6.1/lib/yard-sorbet/handlers/struct_class_handler.rb:62
|
198
|
-
sig { params(props: T::Array[::YARDSorbet::TStructProp]).returns(T::Array[[::String, T.nilable(::String)]]) }
|
199
|
-
def to_object_parameters(props)
|
200
|
-
;
|
201
|
-
end
|
202
|
-
end
|
203
|
-
|
204
|
-
# Handles all `const`/`prop` calls, creating accessor methods, and compiles them for later usage at the class level
|
205
|
-
# in creating a constructor
|
206
|
-
#
|
207
|
-
# source://yard-sorbet-0.6.1/lib/yard-sorbet/handlers/struct_prop_handler.rb:8
|
208
|
-
class YARDSorbet::Handlers::StructPropHandler < ::YARD::Handlers::Ruby::Base
|
209
|
-
# source://yard-sorbet-0.6.1/lib/yard-sorbet/handlers/struct_prop_handler.rb:15
|
210
|
-
sig { void }
|
211
|
-
def process; end
|
212
|
-
|
213
|
-
private
|
214
|
-
|
215
|
-
# Add the source and docstring to the method object
|
216
|
-
#
|
217
|
-
# source://yard-sorbet-0.6.1/lib/yard-sorbet/handlers/struct_prop_handler.rb:28
|
218
|
-
sig { params(object: ::YARD::CodeObjects::MethodObject, prop: ::YARDSorbet::TStructProp).void }
|
219
|
-
def decorate_object(object, prop)
|
220
|
-
;
|
221
|
-
end
|
222
|
-
|
223
|
-
# Get the default prop value
|
224
|
-
#
|
225
|
-
# source://yard-sorbet-0.6.1/lib/yard-sorbet/handlers/struct_prop_handler.rb:39
|
226
|
-
sig { returns(T.nilable(::String)) }
|
227
|
-
def default_value; end
|
228
|
-
|
229
|
-
# source://yard-sorbet-0.6.1/lib/yard-sorbet/handlers/struct_prop_handler.rb:45
|
230
|
-
sig { params(name: ::String).returns(::YARDSorbet::TStructProp) }
|
231
|
-
def make_prop(name)
|
232
|
-
;
|
233
|
-
end
|
234
|
-
|
235
|
-
# Register the field explicitly as an attribute.
|
236
|
-
# While `const` attributes are immutable, `prop` attributes may be reassigned.
|
237
|
-
#
|
238
|
-
# source://yard-sorbet-0.6.1/lib/yard-sorbet/handlers/struct_prop_handler.rb:58
|
239
|
-
sig { params(object: ::YARD::CodeObjects::MethodObject, name: ::String).void }
|
240
|
-
def register_attrs(object, name)
|
241
|
-
;
|
242
|
-
end
|
243
|
-
|
244
|
-
# Store the prop for use in the constructor definition
|
245
|
-
#
|
246
|
-
# source://yard-sorbet-0.6.1/lib/yard-sorbet/handlers/struct_prop_handler.rb:66
|
247
|
-
sig { params(prop: ::YARDSorbet::TStructProp).void }
|
248
|
-
def update_state(prop)
|
249
|
-
;
|
250
|
-
end
|
251
|
-
end
|
252
|
-
|
253
|
-
# Helper methods for working with `YARD` AST Nodes
|
254
|
-
#
|
255
|
-
# source://yard-sorbet-0.6.1/lib/yard-sorbet/node_utils.rb:6
|
256
|
-
module YARDSorbet::NodeUtils
|
257
|
-
class << self
|
258
|
-
# Traverese AST nodes in breadth-first order
|
259
|
-
#
|
260
|
-
# @note This will skip over some node types.
|
261
|
-
# @yield [YARD::Parser::Ruby::AstNode]
|
262
|
-
#
|
263
|
-
# source://yard-sorbet-0.6.1/lib/yard-sorbet/node_utils.rb:29
|
264
|
-
sig do
|
265
|
-
params(
|
266
|
-
node: ::YARD::Parser::Ruby::AstNode,
|
267
|
-
_blk: T.proc.params(n: ::YARD::Parser::Ruby::AstNode).void
|
268
|
-
).void
|
269
|
-
end
|
270
|
-
def bfs_traverse(node, &_blk)
|
271
|
-
;
|
272
|
-
end
|
273
|
-
|
274
|
-
# Gets the node that a sorbet `sig` can be attached do, bypassing visisbility modifiers and the like
|
275
|
-
#
|
276
|
-
# source://yard-sorbet-0.6.1/lib/yard-sorbet/node_utils.rb:41
|
277
|
-
sig do
|
278
|
-
params(
|
279
|
-
node: ::YARD::Parser::Ruby::AstNode
|
280
|
-
).returns(T.any(::YARD::Parser::Ruby::MethodCallNode, ::YARD::Parser::Ruby::MethodDefinitionNode))
|
281
|
-
end
|
282
|
-
def get_method_node(node)
|
283
|
-
;
|
284
|
-
end
|
285
|
-
|
286
|
-
# Find and return the adjacent node (ascending)
|
287
|
-
#
|
288
|
-
# @raise [IndexError] if the node does not have an adjacent sibling (ascending)
|
289
|
-
#
|
290
|
-
# source://yard-sorbet-0.6.1/lib/yard-sorbet/node_utils.rb:55
|
291
|
-
sig { params(node: ::YARD::Parser::Ruby::AstNode).returns(::YARD::Parser::Ruby::AstNode) }
|
292
|
-
def sibling_node(node)
|
293
|
-
;
|
294
|
-
end
|
295
|
-
end
|
296
|
-
end
|
297
|
-
|
298
|
-
# Command node types that can have type signatures
|
299
|
-
#
|
300
|
-
# source://yard-sorbet-0.6.1/lib/yard-sorbet/node_utils.rb:10
|
301
|
-
YARDSorbet::NodeUtils::ATTRIBUTE_METHODS = T.let(T.unsafe(nil), Array)
|
302
|
-
|
303
|
-
# Node types that can have type signatures
|
304
|
-
#
|
305
|
-
# source://yard-sorbet-0.6.1/lib/yard-sorbet/node_utils.rb:12
|
306
|
-
YARDSorbet::NodeUtils::SIGABLE_NODE = T.type_alias { T.any(::YARD::Parser::Ruby::MethodCallNode, ::YARD::Parser::Ruby::MethodDefinitionNode) }
|
307
|
-
|
308
|
-
# Skip these method contents during BFS node traversal, they can have their own nested types via `T.Proc`
|
309
|
-
#
|
310
|
-
# source://yard-sorbet-0.6.1/lib/yard-sorbet/node_utils.rb:16
|
311
|
-
YARDSorbet::NodeUtils::SKIP_METHOD_CONTENTS = T.let(T.unsafe(nil), Array)
|
312
|
-
|
313
|
-
# Translate `sig` type syntax to `YARD` type syntax.
|
314
|
-
#
|
315
|
-
# source://yard-sorbet-0.6.1/lib/yard-sorbet/sig_to_yard.rb:6
|
316
|
-
module YARDSorbet::SigToYARD
|
317
|
-
class << self
|
318
|
-
# @see https://yardoc.org/types.html
|
319
|
-
#
|
320
|
-
# source://yard-sorbet-0.6.1/lib/yard-sorbet/sig_to_yard.rb:11
|
321
|
-
sig { params(node: ::YARD::Parser::Ruby::AstNode).returns(T::Array[::String]) }
|
322
|
-
def convert(node)
|
323
|
-
;
|
324
|
-
end
|
325
|
-
|
326
|
-
private
|
327
|
-
|
328
|
-
# source://yard-sorbet-0.6.1/lib/yard-sorbet/sig_to_yard.rb:44
|
329
|
-
sig { params(node: ::YARD::Parser::Ruby::AstNode).returns(::String) }
|
330
|
-
def build_generic_type(node)
|
331
|
-
;
|
332
|
-
end
|
333
|
-
|
334
|
-
# source://yard-sorbet-0.6.1/lib/yard-sorbet/sig_to_yard.rb:54
|
335
|
-
sig { params(node: ::YARD::Parser::Ruby::AstNode).returns(T::Array[::String]) }
|
336
|
-
def convert_aref(node)
|
337
|
-
;
|
338
|
-
end
|
339
|
-
|
340
|
-
# source://yard-sorbet-0.6.1/lib/yard-sorbet/sig_to_yard.rb:66
|
341
|
-
sig { params(node: ::YARD::Parser::Ruby::AstNode).returns(T::Array[::String]) }
|
342
|
-
def convert_array(node)
|
343
|
-
;
|
344
|
-
end
|
345
|
-
|
346
|
-
# source://yard-sorbet-0.6.1/lib/yard-sorbet/sig_to_yard.rb:74
|
347
|
-
sig { params(node: ::YARD::Parser::Ruby::MethodCallNode).returns(T::Array[::String]) }
|
348
|
-
def convert_call(node)
|
349
|
-
;
|
350
|
-
end
|
351
|
-
|
352
|
-
# source://yard-sorbet-0.6.1/lib/yard-sorbet/sig_to_yard.rb:79
|
353
|
-
sig { params(node: ::YARD::Parser::Ruby::AstNode).returns(T::Array[::String]) }
|
354
|
-
def convert_collection(node)
|
355
|
-
;
|
356
|
-
end
|
357
|
-
|
358
|
-
# source://yard-sorbet-0.6.1/lib/yard-sorbet/sig_to_yard.rb:86
|
359
|
-
sig { params(node: ::YARD::Parser::Ruby::AstNode).returns(T::Array[::String]) }
|
360
|
-
def convert_hash(node)
|
361
|
-
;
|
362
|
-
end
|
363
|
-
|
364
|
-
# source://yard-sorbet-0.6.1/lib/yard-sorbet/sig_to_yard.rb:94
|
365
|
-
sig { params(node: ::YARD::Parser::Ruby::AstNode).returns(T::Array[::String]) }
|
366
|
-
def convert_list(node)
|
367
|
-
;
|
368
|
-
end
|
369
|
-
|
370
|
-
# source://yard-sorbet-0.6.1/lib/yard-sorbet/sig_to_yard.rb:17
|
371
|
-
sig { params(node: ::YARD::Parser::Ruby::AstNode).returns(T::Array[::String]) }
|
372
|
-
def convert_node(node)
|
373
|
-
;
|
374
|
-
end
|
375
|
-
|
376
|
-
# source://yard-sorbet-0.6.1/lib/yard-sorbet/sig_to_yard.rb:26
|
377
|
-
sig { params(node: ::YARD::Parser::Ruby::AstNode).returns(T::Array[::String]) }
|
378
|
-
def convert_node_type(node)
|
379
|
-
;
|
380
|
-
end
|
381
|
-
|
382
|
-
# source://yard-sorbet-0.6.1/lib/yard-sorbet/sig_to_yard.rb:99
|
383
|
-
sig { params(node: ::YARD::Parser::Ruby::AstNode).returns(T::Array[::String]) }
|
384
|
-
def convert_ref(node)
|
385
|
-
;
|
386
|
-
end
|
387
|
-
|
388
|
-
# source://yard-sorbet-0.6.1/lib/yard-sorbet/sig_to_yard.rb:113
|
389
|
-
sig { params(node: ::YARD::Parser::Ruby::MethodCallNode).returns(T::Array[::String]) }
|
390
|
-
def convert_t_method(node)
|
391
|
-
;
|
392
|
-
end
|
393
|
-
|
394
|
-
# source://yard-sorbet-0.6.1/lib/yard-sorbet/sig_to_yard.rb:125
|
395
|
-
sig { params(node: ::YARD::Parser::Ruby::AstNode).returns(T::Array[::String]) }
|
396
|
-
def convert_unknown(node)
|
397
|
-
;
|
398
|
-
end
|
399
|
-
end
|
400
|
-
end
|
401
|
-
|
402
|
-
# Used to store the details of a `T::Struct` `prop` definition
|
403
|
-
#
|
404
|
-
# source://yard-sorbet-0.6.1/lib/yard-sorbet/t_struct_prop.rb:6
|
405
|
-
class YARDSorbet::TStructProp < ::T::Struct
|
406
|
-
const :default, T.nilable(::String)
|
407
|
-
const :doc, ::String
|
408
|
-
const :prop_name, ::String
|
409
|
-
const :source, ::String
|
410
|
-
const :types, T::Array[::String]
|
411
|
-
|
412
|
-
class << self
|
413
|
-
# source://sorbet-runtime-0.5.10326/lib/types/struct.rb:13
|
414
|
-
def inherited(s)
|
415
|
-
;
|
416
|
-
end
|
417
|
-
end
|
418
|
-
end
|
419
|
-
|
420
|
-
# Helper methods for working with `YARD` tags
|
421
|
-
#
|
422
|
-
# source://yard-sorbet-0.6.1/lib/yard-sorbet/tag_utils.rb:6
|
423
|
-
module YARDSorbet::TagUtils
|
424
|
-
class << self
|
425
|
-
# source://yard-sorbet-0.6.1/lib/yard-sorbet/tag_utils.rb:14
|
426
|
-
sig do
|
427
|
-
params(
|
428
|
-
docstring: ::YARD::Docstring,
|
429
|
-
tag_name: ::String,
|
430
|
-
name: T.nilable(::String)
|
431
|
-
).returns(T.nilable(::YARD::Tags::Tag))
|
432
|
-
end
|
433
|
-
def find_tag(docstring, tag_name, name)
|
434
|
-
;
|
435
|
-
end
|
436
|
-
|
437
|
-
# Create or update a `YARD` tag with type information
|
438
|
-
#
|
439
|
-
# source://yard-sorbet-0.6.1/lib/yard-sorbet/tag_utils.rb:28
|
440
|
-
sig do
|
441
|
-
params(
|
442
|
-
docstring: ::YARD::Docstring,
|
443
|
-
tag_name: ::String,
|
444
|
-
types: T.nilable(T::Array[::String]),
|
445
|
-
name: T.nilable(::String),
|
446
|
-
text: ::String
|
447
|
-
).void
|
448
|
-
end
|
449
|
-
def upsert_tag(docstring, tag_name, types = T.unsafe(nil), name = T.unsafe(nil), text = T.unsafe(nil))
|
450
|
-
;
|
451
|
-
end
|
452
|
-
end
|
453
|
-
end
|
454
|
-
|
455
|
-
# {https://rubygems.org/gems/yard-sorbet Version history}
|
456
|
-
#
|
457
|
-
# source://yard-sorbet-0.6.1/lib/yard-sorbet/version.rb:7
|
458
|
-
YARDSorbet::VERSION = T.let(T.unsafe(nil), String)
|