workos 4.0.0 → 4.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (139) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/ci.yml +37 -0
  3. data/.github/workflows/release.yml +43 -0
  4. data/.rubocop.yml +8 -1
  5. data/Gemfile.lock +22 -69
  6. data/lib/workos/audit_log_export.rb +8 -31
  7. data/lib/workos/audit_logs.rb +0 -26
  8. data/lib/workos/authentication_factor_and_challenge.rb +0 -3
  9. data/lib/workos/authentication_response.rb +12 -5
  10. data/lib/workos/challenge.rb +9 -28
  11. data/lib/workos/client.rb +0 -41
  12. data/lib/workos/configuration.rb +0 -1
  13. data/lib/workos/connection.rb +11 -35
  14. data/lib/workos/directory.rb +10 -37
  15. data/lib/workos/directory_group.rb +9 -36
  16. data/lib/workos/directory_sync.rb +0 -21
  17. data/lib/workos/directory_user.rb +17 -51
  18. data/lib/workos/errors.rb +0 -16
  19. data/lib/workos/event.rb +5 -26
  20. data/lib/workos/events.rb +0 -7
  21. data/lib/workos/factor.rb +9 -28
  22. data/lib/workos/hash_provider.rb +0 -1
  23. data/lib/workos/impersonator.rb +23 -0
  24. data/lib/workos/invitation.rb +12 -37
  25. data/lib/workos/mfa.rb +0 -42
  26. data/lib/workos/organization.rb +8 -31
  27. data/lib/workos/organization_membership.rb +8 -27
  28. data/lib/workos/organizations.rb +0 -26
  29. data/lib/workos/passwordless.rb +0 -14
  30. data/lib/workos/portal.rb +1 -13
  31. data/lib/workos/profile.rb +12 -39
  32. data/lib/workos/profile_and_token.rb +1 -4
  33. data/lib/workos/refresh_authentication_response.rb +24 -0
  34. data/lib/workos/sso.rb +1 -43
  35. data/lib/workos/types/intent.rb +16 -0
  36. data/lib/workos/types/list_struct.rb +8 -5
  37. data/lib/workos/types/passwordless_session_struct.rb +10 -9
  38. data/lib/workos/types/provider.rb +15 -0
  39. data/lib/workos/types.rb +5 -23
  40. data/lib/workos/user.rb +10 -31
  41. data/lib/workos/user_and_token.rb +1 -4
  42. data/lib/workos/user_management.rb +108 -219
  43. data/lib/workos/user_response.rb +0 -3
  44. data/lib/workos/verify_challenge.rb +4 -18
  45. data/lib/workos/version.rb +1 -2
  46. data/lib/workos/webhook.rb +5 -26
  47. data/lib/workos/webhooks.rb +1 -38
  48. data/lib/workos.rb +2 -2
  49. data/spec/lib/workos/audit_logs_spec.rb +2 -3
  50. data/spec/lib/workos/configuration_spec.rb +0 -1
  51. data/spec/lib/workos/directory_sync_spec.rb +0 -1
  52. data/spec/lib/workos/directory_user_spec.rb +0 -1
  53. data/spec/lib/workos/event_spec.rb +0 -1
  54. data/spec/lib/workos/mfa_spec.rb +0 -1
  55. data/spec/lib/workos/organizations_spec.rb +0 -1
  56. data/spec/lib/workos/passwordless_spec.rb +0 -1
  57. data/spec/lib/workos/portal_spec.rb +0 -1
  58. data/spec/lib/workos/sso_spec.rb +0 -1
  59. data/spec/lib/workos/user_management_spec.rb +59 -10
  60. data/spec/lib/workos/webhooks_spec.rb +0 -1
  61. data/spec/spec_helper.rb +6 -9
  62. data/spec/support/fixtures/vcr_cassettes/user_management/authenticate_with_code/valid.yml +1 -1
  63. data/spec/support/fixtures/vcr_cassettes/user_management/authenticate_with_code/valid_with_impersonator.yml +80 -0
  64. data/spec/support/fixtures/vcr_cassettes/user_management/authenticate_with_email_verification/valid.yml +1 -1
  65. data/spec/support/fixtures/vcr_cassettes/user_management/authenticate_with_magic_auth/valid.yml +1 -1
  66. data/spec/support/fixtures/vcr_cassettes/user_management/authenticate_with_organization_selection/valid.yml +1 -1
  67. data/spec/support/fixtures/vcr_cassettes/user_management/authenticate_with_password/valid.yml +1 -1
  68. data/spec/support/fixtures/vcr_cassettes/user_management/authenticate_with_refresh_code/invalid.yml +81 -0
  69. data/spec/support/fixtures/vcr_cassettes/user_management/authenticate_with_refresh_token/valid.yml +81 -0
  70. data/spec/support/fixtures/vcr_cassettes/user_management/authenticate_with_totp/valid.yml +1 -1
  71. data/spec/support/shared_examples/client_spec.rb +0 -1
  72. data/workos.gemspec +1 -6
  73. metadata +19 -129
  74. data/.semaphore/rubygems.yml +0 -24
  75. data/.semaphore/semaphore.yml +0 -51
  76. data/bin/tapioca +0 -29
  77. data/codecov.yml +0 -12
  78. data/devbox.json +0 -18
  79. data/devbox.lock +0 -11
  80. data/lib/workos/types/audit_log_export_struct.rb +0 -17
  81. data/lib/workos/types/challenge_struct.rb +0 -18
  82. data/lib/workos/types/connection_struct.rb +0 -20
  83. data/lib/workos/types/directory_group_struct.rb +0 -19
  84. data/lib/workos/types/directory_struct.rb +0 -19
  85. data/lib/workos/types/directory_user_struct.rb +0 -26
  86. data/lib/workos/types/event_struct.rb +0 -15
  87. data/lib/workos/types/factor_struct.rb +0 -18
  88. data/lib/workos/types/intent_enum.rb +0 -17
  89. data/lib/workos/types/invitation_struct.rb +0 -20
  90. data/lib/workos/types/magic_auth_challenge_struct.rb +0 -12
  91. data/lib/workos/types/organization_membership_struct.rb +0 -16
  92. data/lib/workos/types/organization_struct.rb +0 -17
  93. data/lib/workos/types/profile_struct.rb +0 -21
  94. data/lib/workos/types/provider_enum.rb +0 -16
  95. data/lib/workos/types/user_struct.rb +0 -18
  96. data/lib/workos/types/verify_challenge_struct.rb +0 -13
  97. data/lib/workos/types/webhook_struct.rb +0 -15
  98. data/sorbet/config +0 -2
  99. data/sorbet/rbi/gems/addressable@2.8.0.rbi +0 -290
  100. data/sorbet/rbi/gems/ast@2.4.2.rbi +0 -54
  101. data/sorbet/rbi/gems/codecov@0.2.12.rbi +0 -55
  102. data/sorbet/rbi/gems/coderay@1.1.3.rbi +0 -8
  103. data/sorbet/rbi/gems/crack@0.4.5.rbi +0 -57
  104. data/sorbet/rbi/gems/diff-lcs@1.4.4.rbi +0 -185
  105. data/sorbet/rbi/gems/docile@1.3.5.rbi +0 -54
  106. data/sorbet/rbi/gems/hashdiff@1.0.1.rbi +0 -82
  107. data/sorbet/rbi/gems/json@2.5.1.rbi +0 -109
  108. data/sorbet/rbi/gems/method_source@1.0.0.rbi +0 -8
  109. data/sorbet/rbi/gems/parallel@1.20.1.rbi +0 -113
  110. data/sorbet/rbi/gems/parser@3.0.1.0.rbi +0 -1187
  111. data/sorbet/rbi/gems/pry@0.14.2.rbi +0 -8
  112. data/sorbet/rbi/gems/public_suffix@4.0.6.rbi +0 -146
  113. data/sorbet/rbi/gems/rainbow@3.0.0.rbi +0 -153
  114. data/sorbet/rbi/gems/rake@13.0.3.rbi +0 -807
  115. data/sorbet/rbi/gems/rbi@0.0.16.rbi +0 -2118
  116. data/sorbet/rbi/gems/regexp_parser@2.1.1.rbi +0 -1117
  117. data/sorbet/rbi/gems/rexml@3.2.5.rbi +0 -709
  118. data/sorbet/rbi/gems/rspec-core@3.9.3.rbi +0 -2467
  119. data/sorbet/rbi/gems/rspec-expectations@3.9.4.rbi +0 -1569
  120. data/sorbet/rbi/gems/rspec-mocks@3.9.1.rbi +0 -1493
  121. data/sorbet/rbi/gems/rspec-support@3.9.4.rbi +0 -511
  122. data/sorbet/rbi/gems/rspec@3.9.0.rbi +0 -38
  123. data/sorbet/rbi/gems/rubocop-ast@1.4.1.rbi +0 -1881
  124. data/sorbet/rbi/gems/rubocop@0.93.1.rbi +0 -11497
  125. data/sorbet/rbi/gems/ruby-progressbar@1.11.0.rbi +0 -405
  126. data/sorbet/rbi/gems/simplecov-html@0.12.3.rbi +0 -89
  127. data/sorbet/rbi/gems/simplecov@0.21.2.rbi +0 -577
  128. data/sorbet/rbi/gems/simplecov_json_formatter@0.1.2.rbi +0 -8
  129. data/sorbet/rbi/gems/spoom@1.1.15.rbi +0 -1549
  130. data/sorbet/rbi/gems/tapioca@0.7.3.rbi +0 -1718
  131. data/sorbet/rbi/gems/thor@1.2.1.rbi +0 -844
  132. data/sorbet/rbi/gems/unicode-display_width@1.7.0.rbi +0 -22
  133. data/sorbet/rbi/gems/unparser@0.6.2.rbi +0 -8
  134. data/sorbet/rbi/gems/vcr@5.0.0.rbi +0 -699
  135. data/sorbet/rbi/gems/webmock@3.12.2.rbi +0 -662
  136. data/sorbet/rbi/gems/yard-sorbet@0.8.0.rbi +0 -268
  137. data/sorbet/rbi/gems/yard@0.9.26.rbi +0 -4048
  138. data/sorbet/tapioca/config.yml +0 -13
  139. data/sorbet/tapioca/require.rb +0 -4
@@ -1,1881 +0,0 @@
1
- # typed: true
2
-
3
- # DO NOT EDIT MANUALLY
4
- # This is an autogenerated file for types exported from the `rubocop-ast` gem.
5
- # Please instead update this file by running `bin/tapioca gem rubocop-ast`.
6
-
7
- module RuboCop; end
8
-
9
- module RuboCop::AST
10
- extend ::RuboCop::AST::RuboCopCompatibility
11
- end
12
-
13
- class RuboCop::AST::AliasNode < ::RuboCop::AST::Node
14
- def new_identifier; end
15
- def old_identifier; end
16
- end
17
-
18
- class RuboCop::AST::AndNode < ::RuboCop::AST::Node
19
- include ::RuboCop::AST::BinaryOperatorNode
20
- include ::RuboCop::AST::PredicateOperatorNode
21
-
22
- def alternate_operator; end
23
- def inverse_operator; end
24
- end
25
-
26
- class RuboCop::AST::ArgNode < ::RuboCop::AST::Node
27
- def default?; end
28
- def default_value; end
29
- def name; end
30
- end
31
-
32
- class RuboCop::AST::ArgsNode < ::RuboCop::AST::Node
33
- include ::RuboCop::AST::CollectionNode
34
-
35
- def argument_list; end
36
- def empty_and_without_delimiters?; end
37
- end
38
-
39
- class RuboCop::AST::ArrayNode < ::RuboCop::AST::Node
40
- def bracketed?; end
41
- def each_value(&block); end
42
- def percent_literal?(type = T.unsafe(nil)); end
43
- def square_brackets?; end
44
- def values; end
45
- end
46
-
47
- RuboCop::AST::ArrayNode::PERCENT_LITERAL_TYPES = T.let(T.unsafe(nil), Hash)
48
-
49
- module RuboCop::AST::BasicLiteralNode
50
- def value; end
51
- end
52
-
53
- module RuboCop::AST::BinaryOperatorNode
54
- def conditions; end
55
- def lhs; end
56
- def rhs; end
57
- end
58
-
59
- class RuboCop::AST::BlockNode < ::RuboCop::AST::Node
60
- include ::RuboCop::AST::MethodIdentifierPredicates
61
-
62
- def argument_list; end
63
- def arguments; end
64
- def arguments?; end
65
- def body; end
66
- def braces?; end
67
- def closing_delimiter; end
68
- def delimiters; end
69
- def keywords?; end
70
- def lambda?; end
71
- def method_name; end
72
- def multiline?; end
73
- def opening_delimiter; end
74
- def send_node; end
75
- def single_line?; end
76
- def void_context?; end
77
-
78
- private
79
-
80
- def numbered_arguments; end
81
- end
82
-
83
- RuboCop::AST::BlockNode::VOID_CONTEXT_METHODS = T.let(T.unsafe(nil), Array)
84
-
85
- class RuboCop::AST::BreakNode < ::RuboCop::AST::Node
86
- include ::RuboCop::AST::ParameterizedNode
87
- include ::RuboCop::AST::ParameterizedNode::WrappedArguments
88
- end
89
-
90
- class RuboCop::AST::Builder < ::Parser::Builders::Default
91
- def n(type, children, source_map); end
92
- def string_value(token); end
93
-
94
- private
95
-
96
- def node_klass(type); end
97
- end
98
-
99
- RuboCop::AST::Builder::NODE_MAP = T.let(T.unsafe(nil), Hash)
100
-
101
- class RuboCop::AST::CaseMatchNode < ::RuboCop::AST::Node
102
- include ::RuboCop::AST::ConditionalNode
103
-
104
- def each_in_pattern(&block); end
105
- def else?; end
106
- def else_branch; end
107
- def in_pattern_branches; end
108
- def keyword; end
109
- end
110
-
111
- class RuboCop::AST::CaseNode < ::RuboCop::AST::Node
112
- include ::RuboCop::AST::ConditionalNode
113
-
114
- def branches; end
115
- def each_when(&block); end
116
- def else?; end
117
- def else_branch; end
118
- def keyword; end
119
- def when_branches; end
120
- end
121
-
122
- class RuboCop::AST::ClassNode < ::RuboCop::AST::Node
123
- def body; end
124
- def identifier; end
125
- def parent_class; end
126
- end
127
-
128
- module RuboCop::AST::CollectionNode
129
- extend ::Forwardable
130
-
131
- def &(*args, **_arg1, &block); end
132
- def *(*args, **_arg1, &block); end
133
- def +(*args, **_arg1, &block); end
134
- def -(*args, **_arg1, &block); end
135
- def <<(*args, **_arg1, &block); end
136
- def [](*args, **_arg1, &block); end
137
- def []=(*args, **_arg1, &block); end
138
- def all?(*args, **_arg1, &block); end
139
- def any?(*args, **_arg1, &block); end
140
- def append(*args, **_arg1, &block); end
141
- def assoc(*args, **_arg1, &block); end
142
- def at(*args, **_arg1, &block); end
143
- def bsearch(*args, **_arg1, &block); end
144
- def bsearch_index(*args, **_arg1, &block); end
145
- def chain(*args, **_arg1, &block); end
146
- def chunk(*args, **_arg1, &block); end
147
- def chunk_while(*args, **_arg1, &block); end
148
- def clear(*args, **_arg1, &block); end
149
- def collect(*args, **_arg1, &block); end
150
- def collect!(*args, **_arg1, &block); end
151
- def collect_concat(*args, **_arg1, &block); end
152
- def combination(*args, **_arg1, &block); end
153
- def compact(*args, **_arg1, &block); end
154
- def compact!(*args, **_arg1, &block); end
155
- def concat(*args, **_arg1, &block); end
156
- def count(*args, **_arg1, &block); end
157
- def cycle(*args, **_arg1, &block); end
158
- def deconstruct(*args, **_arg1, &block); end
159
- def delete(*args, **_arg1, &block); end
160
- def delete_at(*args, **_arg1, &block); end
161
- def delete_if(*args, **_arg1, &block); end
162
- def detect(*args, **_arg1, &block); end
163
- def difference(*args, **_arg1, &block); end
164
- def dig(*args, **_arg1, &block); end
165
- def drop(*args, **_arg1, &block); end
166
- def drop_while(*args, **_arg1, &block); end
167
- def each(*args, **_arg1, &block); end
168
- def each_cons(*args, **_arg1, &block); end
169
- def each_entry(*args, **_arg1, &block); end
170
- def each_index(*args, **_arg1, &block); end
171
- def each_slice(*args, **_arg1, &block); end
172
- def each_with_index(*args, **_arg1, &block); end
173
- def each_with_object(*args, **_arg1, &block); end
174
- def empty?(*args, **_arg1, &block); end
175
- def entries(*args, **_arg1, &block); end
176
- def fetch(*args, **_arg1, &block); end
177
- def fill(*args, **_arg1, &block); end
178
- def filter(*args, **_arg1, &block); end
179
- def filter!(*args, **_arg1, &block); end
180
- def filter_map(*args, **_arg1, &block); end
181
- def find(*args, **_arg1, &block); end
182
- def find_all(*args, **_arg1, &block); end
183
- def find_index(*args, **_arg1, &block); end
184
- def first(*args, **_arg1, &block); end
185
- def flat_map(*args, **_arg1, &block); end
186
- def flatten(*args, **_arg1, &block); end
187
- def flatten!(*args, **_arg1, &block); end
188
- def grep(*args, **_arg1, &block); end
189
- def grep_v(*args, **_arg1, &block); end
190
- def group_by(*args, **_arg1, &block); end
191
- def include?(*args, **_arg1, &block); end
192
- def index(*args, **_arg1, &block); end
193
- def inject(*args, **_arg1, &block); end
194
- def insert(*args, **_arg1, &block); end
195
- def intersect?(*args, **_arg1, &block); end
196
- def intersection(*args, **_arg1, &block); end
197
- def join(*args, **_arg1, &block); end
198
- def keep_if(*args, **_arg1, &block); end
199
- def last(*args, **_arg1, &block); end
200
- def lazy(*args, **_arg1, &block); end
201
- def length(*args, **_arg1, &block); end
202
- def map(*args, **_arg1, &block); end
203
- def map!(*args, **_arg1, &block); end
204
- def max(*args, **_arg1, &block); end
205
- def max_by(*args, **_arg1, &block); end
206
- def member?(*args, **_arg1, &block); end
207
- def min(*args, **_arg1, &block); end
208
- def min_by(*args, **_arg1, &block); end
209
- def minmax(*args, **_arg1, &block); end
210
- def minmax_by(*args, **_arg1, &block); end
211
- def none?(*args, **_arg1, &block); end
212
- def one?(*args, **_arg1, &block); end
213
- def pack(*args, **_arg1, &block); end
214
- def partition(*args, **_arg1, &block); end
215
- def permutation(*args, **_arg1, &block); end
216
- def place(*args, **_arg1, &block); end
217
- def pop(*args, **_arg1, &block); end
218
- def prepend(*args, **_arg1, &block); end
219
- def product(*args, **_arg1, &block); end
220
- def push(*args, **_arg1, &block); end
221
- def rassoc(*args, **_arg1, &block); end
222
- def reduce(*args, **_arg1, &block); end
223
- def reject(*args, **_arg1, &block); end
224
- def reject!(*args, **_arg1, &block); end
225
- def repeated_combination(*args, **_arg1, &block); end
226
- def repeated_permutation(*args, **_arg1, &block); end
227
- def replace(*args, **_arg1, &block); end
228
- def reverse(*args, **_arg1, &block); end
229
- def reverse!(*args, **_arg1, &block); end
230
- def reverse_each(*args, **_arg1, &block); end
231
- def rindex(*args, **_arg1, &block); end
232
- def rotate(*args, **_arg1, &block); end
233
- def rotate!(*args, **_arg1, &block); end
234
- def sample(*args, **_arg1, &block); end
235
- def select(*args, **_arg1, &block); end
236
- def select!(*args, **_arg1, &block); end
237
- def shelljoin(*args, **_arg1, &block); end
238
- def shift(*args, **_arg1, &block); end
239
- def shuffle(*args, **_arg1, &block); end
240
- def shuffle!(*args, **_arg1, &block); end
241
- def size(*args, **_arg1, &block); end
242
- def slice(*args, **_arg1, &block); end
243
- def slice!(*args, **_arg1, &block); end
244
- def slice_after(*args, **_arg1, &block); end
245
- def slice_before(*args, **_arg1, &block); end
246
- def slice_when(*args, **_arg1, &block); end
247
- def sort(*args, **_arg1, &block); end
248
- def sort!(*args, **_arg1, &block); end
249
- def sort_by(*args, **_arg1, &block); end
250
- def sort_by!(*args, **_arg1, &block); end
251
- def sum(*args, **_arg1, &block); end
252
- def take(*args, **_arg1, &block); end
253
- def take_while(*args, **_arg1, &block); end
254
- def tally(*args, **_arg1, &block); end
255
- def to_ary(*args, **_arg1, &block); end
256
- def to_h(*args, **_arg1, &block); end
257
- def to_set(*args, **_arg1, &block); end
258
- def transpose(*args, **_arg1, &block); end
259
- def union(*args, **_arg1, &block); end
260
- def uniq(*args, **_arg1, &block); end
261
- def uniq!(*args, **_arg1, &block); end
262
- def unshift(*args, **_arg1, &block); end
263
- def values_at(*args, **_arg1, &block); end
264
- def zip(*args, **_arg1, &block); end
265
- def |(*args, **_arg1, &block); end
266
- end
267
-
268
- RuboCop::AST::CollectionNode::ARRAY_METHODS = T.let(T.unsafe(nil), Array)
269
-
270
- module RuboCop::AST::ConditionalNode
271
- def body; end
272
- def condition; end
273
- def multiline_condition?; end
274
- def single_line_condition?; end
275
- end
276
-
277
- class RuboCop::AST::ConstNode < ::RuboCop::AST::Node
278
- def absolute?; end
279
- def class_name?; end
280
- def each_path(&block); end
281
- def module_name?; end
282
- def namespace; end
283
- def relative?; end
284
- def short_name; end
285
- end
286
-
287
- class RuboCop::AST::DefNode < ::RuboCop::AST::Node
288
- include ::RuboCop::AST::ParameterizedNode
289
- include ::RuboCop::AST::MethodIdentifierPredicates
290
-
291
- def argument_forwarding?; end
292
- def arguments; end
293
- def body; end
294
- def endless?; end
295
- def method_name; end
296
- def receiver; end
297
- def void_context?; end
298
- end
299
-
300
- class RuboCop::AST::DefinedNode < ::RuboCop::AST::Node
301
- include ::RuboCop::AST::ParameterizedNode
302
- include ::RuboCop::AST::MethodIdentifierPredicates
303
- include ::RuboCop::AST::MethodDispatchNode
304
-
305
- def arguments; end
306
- def node_parts; end
307
- end
308
-
309
- module RuboCop::AST::Descendence
310
- def child_nodes; end
311
- def descendants; end
312
- def each_child_node(*types); end
313
- def each_descendant(*types, &block); end
314
- def each_node(*types, &block); end
315
-
316
- protected
317
-
318
- def visit_descendants(types, &block); end
319
- end
320
-
321
- class RuboCop::AST::DstrNode < ::RuboCop::AST::StrNode
322
- def value; end
323
- end
324
-
325
- class RuboCop::AST::EnsureNode < ::RuboCop::AST::Node
326
- def body; end
327
- end
328
-
329
- module RuboCop::AST::Ext; end
330
-
331
- module RuboCop::AST::Ext::Range
332
- def line_span(exclude_end: T.unsafe(nil)); end
333
- end
334
-
335
- module RuboCop::AST::Ext::RangeMinMax; end
336
-
337
- class RuboCop::AST::FloatNode < ::RuboCop::AST::Node
338
- include ::RuboCop::AST::BasicLiteralNode
339
- include ::RuboCop::AST::NumericNode
340
- end
341
-
342
- class RuboCop::AST::ForNode < ::RuboCop::AST::Node
343
- def body; end
344
- def collection; end
345
- def do?; end
346
- def keyword; end
347
- def variable; end
348
- def void_context?; end
349
- end
350
-
351
- class RuboCop::AST::ForwardArgsNode < ::RuboCop::AST::Node
352
- include ::RuboCop::AST::CollectionNode
353
-
354
- def to_a; end
355
- end
356
-
357
- module RuboCop::AST::HashElementNode
358
- def delimiter_delta(other); end
359
- def key; end
360
- def key_delta(other, alignment = T.unsafe(nil)); end
361
- def same_line?(other); end
362
- def value; end
363
- def value_delta(other); end
364
- end
365
-
366
- class RuboCop::AST::HashElementNode::HashElementDelta
367
- def initialize(first, second); end
368
-
369
- def delimiter_delta; end
370
- def key_delta(alignment = T.unsafe(nil)); end
371
- def value_delta; end
372
-
373
- private
374
-
375
- def delta(first, second, alignment = T.unsafe(nil)); end
376
- def first; end
377
- def keyword_splat?; end
378
- def second; end
379
- def valid_argument_types?; end
380
- end
381
-
382
- class RuboCop::AST::HashNode < ::RuboCop::AST::Node
383
- def braces?; end
384
- def each_key(&block); end
385
- def each_pair; end
386
- def each_value(&block); end
387
- def empty?; end
388
- def keys; end
389
- def mixed_delimiters?; end
390
- def pairs; end
391
- def pairs_on_same_line?; end
392
- def values; end
393
- end
394
-
395
- class RuboCop::AST::IfNode < ::RuboCop::AST::Node
396
- include ::RuboCop::AST::ConditionalNode
397
- include ::RuboCop::AST::ModifierNode
398
-
399
- def branches; end
400
- def each_branch(&block); end
401
- def else?; end
402
- def else_branch; end
403
- def elsif?; end
404
- def elsif_conditional?; end
405
- def if?; end
406
- def if_branch; end
407
- def inverse_keyword; end
408
- def keyword; end
409
- def modifier_form?; end
410
- def nested_conditional?; end
411
- def node_parts; end
412
- def ternary?; end
413
- def unless?; end
414
- end
415
-
416
- class RuboCop::AST::IndexNode < ::RuboCop::AST::Node
417
- include ::RuboCop::AST::ParameterizedNode
418
- include ::RuboCop::AST::ParameterizedNode::RestArguments
419
- include ::RuboCop::AST::MethodIdentifierPredicates
420
- include ::RuboCop::AST::MethodDispatchNode
421
-
422
- def assignment_method?; end
423
- def attribute_accessor?; end
424
- def method_name; end
425
-
426
- private
427
-
428
- def first_argument_index; end
429
- end
430
-
431
- class RuboCop::AST::IndexasgnNode < ::RuboCop::AST::Node
432
- include ::RuboCop::AST::ParameterizedNode
433
- include ::RuboCop::AST::ParameterizedNode::RestArguments
434
- include ::RuboCop::AST::MethodIdentifierPredicates
435
- include ::RuboCop::AST::MethodDispatchNode
436
-
437
- def assignment_method?; end
438
- def attribute_accessor?; end
439
- def method_name; end
440
-
441
- private
442
-
443
- def first_argument_index; end
444
- end
445
-
446
- class RuboCop::AST::IntNode < ::RuboCop::AST::Node
447
- include ::RuboCop::AST::BasicLiteralNode
448
- include ::RuboCop::AST::NumericNode
449
- end
450
-
451
- class RuboCop::AST::KeywordSplatNode < ::RuboCop::AST::Node
452
- include ::RuboCop::AST::HashElementNode
453
-
454
- def colon?; end
455
- def hash_rocket?; end
456
- def node_parts; end
457
- def operator; end
458
- end
459
-
460
- RuboCop::AST::KeywordSplatNode::DOUBLE_SPLAT = T.let(T.unsafe(nil), String)
461
-
462
- class RuboCop::AST::LambdaNode < ::RuboCop::AST::Node
463
- include ::RuboCop::AST::ParameterizedNode
464
- include ::RuboCop::AST::ParameterizedNode::RestArguments
465
- include ::RuboCop::AST::MethodIdentifierPredicates
466
- include ::RuboCop::AST::MethodDispatchNode
467
-
468
- def assignment_method?; end
469
- def attribute_accessor?; end
470
- def lambda?; end
471
- def lambda_literal?; end
472
- def method_name; end
473
- def receiver; end
474
-
475
- private
476
-
477
- def first_argument_index; end
478
- end
479
-
480
- module RuboCop::AST::MethodDispatchNode
481
- include ::RuboCop::AST::MethodIdentifierPredicates
482
- extend ::RuboCop::AST::NodePattern::Macros
483
-
484
- def access_modifier?; end
485
- def adjacent_def_modifier?(param0 = T.unsafe(nil)); end
486
- def arithmetic_operation?; end
487
- def assignment?; end
488
- def bare_access_modifier?; end
489
- def bare_access_modifier_declaration?(param0 = T.unsafe(nil)); end
490
- def binary_operation?; end
491
- def block_literal?; end
492
- def block_node; end
493
- def command?(name); end
494
- def const_receiver?; end
495
- def def_modifier?; end
496
- def dot?; end
497
- def double_colon?; end
498
- def implicit_call?; end
499
- def in_macro_scope?(param0 = T.unsafe(nil)); end
500
- def lambda?; end
501
- def lambda_literal?; end
502
- def macro?; end
503
- def method_name; end
504
- def non_bare_access_modifier?; end
505
- def non_bare_access_modifier_declaration?(param0 = T.unsafe(nil)); end
506
- def receiver; end
507
- def safe_navigation?; end
508
- def self_receiver?; end
509
- def setter_method?; end
510
- def special_modifier?; end
511
- def unary_operation?; end
512
- end
513
-
514
- RuboCop::AST::MethodDispatchNode::ARITHMETIC_OPERATORS = T.let(T.unsafe(nil), Array)
515
- RuboCop::AST::MethodDispatchNode::SPECIAL_MODIFIERS = T.let(T.unsafe(nil), Array)
516
-
517
- module RuboCop::AST::MethodIdentifierPredicates
518
- def assignment_method?; end
519
- def bang_method?; end
520
- def camel_case_method?; end
521
- def comparison_method?; end
522
- def const_receiver?; end
523
- def enumerable_method?; end
524
- def enumerator_method?; end
525
- def method?(name); end
526
- def negation_method?; end
527
- def nonmutating_array_method?; end
528
- def nonmutating_binary_operator_method?; end
529
- def nonmutating_hash_method?; end
530
- def nonmutating_operator_method?; end
531
- def nonmutating_string_method?; end
532
- def nonmutating_unary_operator_method?; end
533
- def operator_method?; end
534
- def predicate_method?; end
535
- def prefix_bang?; end
536
- def prefix_not?; end
537
- def self_receiver?; end
538
- end
539
-
540
- RuboCop::AST::MethodIdentifierPredicates::ENUMERABLE_METHODS = T.let(T.unsafe(nil), Set)
541
- RuboCop::AST::MethodIdentifierPredicates::ENUMERATOR_METHODS = T.let(T.unsafe(nil), Set)
542
- RuboCop::AST::MethodIdentifierPredicates::NONMUTATING_ARRAY_METHODS = T.let(T.unsafe(nil), Set)
543
- RuboCop::AST::MethodIdentifierPredicates::NONMUTATING_BINARY_OPERATOR_METHODS = T.let(T.unsafe(nil), Set)
544
- RuboCop::AST::MethodIdentifierPredicates::NONMUTATING_HASH_METHODS = T.let(T.unsafe(nil), Set)
545
- RuboCop::AST::MethodIdentifierPredicates::NONMUTATING_OPERATOR_METHODS = T.let(T.unsafe(nil), Set)
546
- RuboCop::AST::MethodIdentifierPredicates::NONMUTATING_STRING_METHODS = T.let(T.unsafe(nil), Set)
547
- RuboCop::AST::MethodIdentifierPredicates::NONMUTATING_UNARY_OPERATOR_METHODS = T.let(T.unsafe(nil), Set)
548
- RuboCop::AST::MethodIdentifierPredicates::OPERATOR_METHODS = T.let(T.unsafe(nil), Set)
549
-
550
- module RuboCop::AST::ModifierNode
551
- def modifier_form?; end
552
- end
553
-
554
- class RuboCop::AST::ModuleNode < ::RuboCop::AST::Node
555
- def body; end
556
- def identifier; end
557
- end
558
-
559
- class RuboCop::AST::NextNode < ::RuboCop::AST::Node
560
- include ::RuboCop::AST::ParameterizedNode
561
- include ::RuboCop::AST::ParameterizedNode::WrappedArguments
562
- end
563
-
564
- class RuboCop::AST::Node < ::Parser::AST::Node
565
- include ::RuboCop::AST::Sexp
566
- include ::RuboCop::AST::Descendence
567
- extend ::RuboCop::AST::NodePattern::Macros
568
-
569
- def initialize(type, children = T.unsafe(nil), properties = T.unsafe(nil)); end
570
-
571
- def __ENCODING___type?; end
572
- def __FILE___type?; end
573
- def __LINE___type?; end
574
- def alias_type?; end
575
- def ancestors; end
576
- def and_asgn_type?; end
577
- def and_type?; end
578
- def arg_expr_type?; end
579
- def arg_type?; end
580
- def args_type?; end
581
- def argument?; end
582
- def argument_type?; end
583
- def array_pattern_type?; end
584
- def array_pattern_with_tail_type?; end
585
- def array_type?; end
586
- def assignment?; end
587
- def assignment_or_similar?(param0 = T.unsafe(nil)); end
588
- def back_ref_type?; end
589
- def basic_conditional?; end
590
- def basic_literal?; end
591
- def begin_type?; end
592
- def block_pass_type?; end
593
- def block_type?; end
594
- def blockarg_expr_type?; end
595
- def blockarg_type?; end
596
- def boolean_type?; end
597
- def break_type?; end
598
- def call_type?; end
599
- def case_match_type?; end
600
- def case_type?; end
601
- def casgn_type?; end
602
- def cbase_type?; end
603
- def chained?; end
604
- def class_constructor?(param0 = T.unsafe(nil)); end
605
- def class_definition?(param0 = T.unsafe(nil)); end
606
- def class_type?; end
607
- def complete!; end
608
- def complete?; end
609
- def complex_type?; end
610
- def conditional?; end
611
- def const_name; end
612
- def const_pattern_type?; end
613
- def const_type?; end
614
- def csend_type?; end
615
- def cvar_type?; end
616
- def cvasgn_type?; end
617
- def def_type?; end
618
- def defined_module; end
619
- def defined_module_name; end
620
- def defined_type?; end
621
- def defs_type?; end
622
- def dstr_type?; end
623
- def dsym_type?; end
624
- def each_ancestor(*types, &block); end
625
- def eflipflop_type?; end
626
- def empty_else_type?; end
627
- def empty_source?; end
628
- def ensure_type?; end
629
- def equals_asgn?; end
630
- def erange_type?; end
631
- def false_type?; end
632
- def falsey_literal?; end
633
- def find_pattern_type?; end
634
- def first_line; end
635
- def float_type?; end
636
- def for_type?; end
637
- def forward_arg_type?; end
638
- def forward_args_type?; end
639
- def forwarded_args_type?; end
640
- def global_const?(param0 = T.unsafe(nil), param1); end
641
- def guard_clause?; end
642
- def gvar_type?; end
643
- def gvasgn_type?; end
644
- def hash_pattern_type?; end
645
- def hash_type?; end
646
- def ident_type?; end
647
- def if_guard_type?; end
648
- def if_type?; end
649
- def iflipflop_type?; end
650
- def immutable_literal?; end
651
- def in_match_type?; end
652
- def in_pattern_type?; end
653
- def index_type?; end
654
- def indexasgn_type?; end
655
- def int_type?; end
656
- def irange_type?; end
657
- def ivar_type?; end
658
- def ivasgn_type?; end
659
- def keyword?; end
660
- def kwarg_type?; end
661
- def kwargs_type?; end
662
- def kwbegin_type?; end
663
- def kwnilarg_type?; end
664
- def kwoptarg_type?; end
665
- def kwrestarg_type?; end
666
- def kwsplat_type?; end
667
- def lambda?(param0 = T.unsafe(nil)); end
668
- def lambda_or_proc?(param0 = T.unsafe(nil)); end
669
- def lambda_type?; end
670
- def last_line; end
671
- def left_sibling; end
672
- def left_siblings; end
673
- def line_count; end
674
- def literal?; end
675
- def loop_keyword?; end
676
- def lvar_type?; end
677
- def lvasgn_type?; end
678
- def masgn_type?; end
679
- def match_alt_type?; end
680
- def match_as_type?; end
681
- def match_current_line_type?; end
682
- def match_guard_clause?(param0 = T.unsafe(nil)); end
683
- def match_nil_pattern_type?; end
684
- def match_pattern_p_type?; end
685
- def match_pattern_type?; end
686
- def match_rest_type?; end
687
- def match_var_type?; end
688
- def match_with_lvasgn_type?; end
689
- def match_with_trailing_comma_type?; end
690
- def mlhs_type?; end
691
- def module_definition?(param0 = T.unsafe(nil)); end
692
- def module_type?; end
693
- def multiline?; end
694
- def mutable_literal?; end
695
- def new_class_or_module_block?(param0 = T.unsafe(nil)); end
696
- def next_type?; end
697
- def nil_type?; end
698
- def node_parts; end
699
- def nonempty_line_count; end
700
- def not_type?; end
701
- def nth_ref_type?; end
702
- def numargs_type?; end
703
- def numblock_type?; end
704
- def numeric_type?; end
705
- def objc_kwarg_type?; end
706
- def objc_restarg_type?; end
707
- def objc_varargs_type?; end
708
- def op_asgn_type?; end
709
- def operator_keyword?; end
710
- def optarg_type?; end
711
- def or_asgn_type?; end
712
- def or_type?; end
713
- def pair_type?; end
714
- def parent; end
715
- def parent?; end
716
- def parent_module_name; end
717
- def parenthesized_call?; end
718
- def pin_type?; end
719
- def post_condition_loop?; end
720
- def postexe_type?; end
721
- def preexe_type?; end
722
- def proc?(param0 = T.unsafe(nil)); end
723
- def procarg0_type?; end
724
- def pure?; end
725
- def range_type?; end
726
- def rational_type?; end
727
- def receiver(param0 = T.unsafe(nil)); end
728
- def recursive_basic_literal?; end
729
- def recursive_literal?; end
730
- def redo_type?; end
731
- def reference?; end
732
- def regexp_type?; end
733
- def regopt_type?; end
734
- def resbody_type?; end
735
- def rescue_type?; end
736
- def restarg_expr_type?; end
737
- def restarg_type?; end
738
- def retry_type?; end
739
- def return_type?; end
740
- def right_sibling; end
741
- def right_siblings; end
742
- def root?; end
743
- def sclass_type?; end
744
- def self_type?; end
745
- def send_type?; end
746
- def shadowarg_type?; end
747
- def shorthand_asgn?; end
748
- def sibling_index; end
749
- def single_line?; end
750
- def source; end
751
- def source_length; end
752
- def source_range; end
753
- def special_keyword?; end
754
- def splat_type?; end
755
- def str_content(param0 = T.unsafe(nil)); end
756
- def str_type?; end
757
- def struct_constructor?(param0 = T.unsafe(nil)); end
758
- def super_type?; end
759
- def sym_type?; end
760
- def true_type?; end
761
- def truthy_literal?; end
762
- def undef_type?; end
763
- def unless_guard_type?; end
764
- def until_post_type?; end
765
- def until_type?; end
766
- def updated(type = T.unsafe(nil), children = T.unsafe(nil), properties = T.unsafe(nil)); end
767
- def value_used?; end
768
- def variable?; end
769
- def when_type?; end
770
- def while_post_type?; end
771
- def while_type?; end
772
- def xstr_type?; end
773
- def yield_type?; end
774
- def zsuper_type?; end
775
-
776
- protected
777
-
778
- def parent=(node); end
779
-
780
- private
781
-
782
- def begin_value_used?; end
783
- def case_if_value_used?; end
784
- def defined_module0(param0 = T.unsafe(nil)); end
785
- def for_value_used?; end
786
- def parent_module_name_for_block(ancestor); end
787
- def parent_module_name_for_sclass(sclass_node); end
788
- def parent_module_name_part(node); end
789
- def visit_ancestors(types); end
790
- def while_until_value_used?; end
791
- end
792
-
793
- RuboCop::AST::Node::ARGUMENT_TYPES = T.let(T.unsafe(nil), Set)
794
- RuboCop::AST::Node::ASSIGNMENTS = T.let(T.unsafe(nil), Set)
795
- RuboCop::AST::Node::BASIC_CONDITIONALS = T.let(T.unsafe(nil), Set)
796
- RuboCop::AST::Node::BASIC_LITERALS = T.let(T.unsafe(nil), Set)
797
- RuboCop::AST::Node::COMPARISON_OPERATORS = T.let(T.unsafe(nil), Set)
798
- RuboCop::AST::Node::COMPOSITE_LITERALS = T.let(T.unsafe(nil), Set)
799
- RuboCop::AST::Node::CONDITIONALS = T.let(T.unsafe(nil), Set)
800
- RuboCop::AST::Node::EQUALS_ASSIGNMENTS = T.let(T.unsafe(nil), Set)
801
- RuboCop::AST::Node::FALSEY_LITERALS = T.let(T.unsafe(nil), Set)
802
- RuboCop::AST::Node::IMMUTABLE_LITERALS = T.let(T.unsafe(nil), Set)
803
- RuboCop::AST::Node::KEYWORDS = T.let(T.unsafe(nil), Set)
804
- RuboCop::AST::Node::LITERALS = T.let(T.unsafe(nil), Set)
805
- RuboCop::AST::Node::LITERAL_RECURSIVE_METHODS = T.let(T.unsafe(nil), Set)
806
- RuboCop::AST::Node::LITERAL_RECURSIVE_TYPES = T.let(T.unsafe(nil), Set)
807
- RuboCop::AST::Node::LOOP_TYPES = T.let(T.unsafe(nil), Set)
808
- RuboCop::AST::Node::MUTABLE_LITERALS = T.let(T.unsafe(nil), Set)
809
- RuboCop::AST::Node::OPERATOR_KEYWORDS = T.let(T.unsafe(nil), Set)
810
- RuboCop::AST::Node::POST_CONDITION_LOOP_TYPES = T.let(T.unsafe(nil), Set)
811
- RuboCop::AST::Node::REFERENCES = T.let(T.unsafe(nil), Set)
812
- RuboCop::AST::Node::SHORTHAND_ASSIGNMENTS = T.let(T.unsafe(nil), Set)
813
- RuboCop::AST::Node::SPECIAL_KEYWORDS = T.let(T.unsafe(nil), Set)
814
- RuboCop::AST::Node::TRUTHY_LITERALS = T.let(T.unsafe(nil), Set)
815
- RuboCop::AST::Node::VARIABLES = T.let(T.unsafe(nil), Set)
816
-
817
- class RuboCop::AST::NodePattern
818
- include ::RuboCop::AST::NodePattern::MethodDefiner
819
- extend ::Forwardable
820
-
821
- def initialize(str, compiler: T.unsafe(nil)); end
822
-
823
- def ==(other); end
824
- def as_json(_options = T.unsafe(nil)); end
825
- def ast; end
826
- def captures(*args, **_arg1, &block); end
827
- def encode_with(coder); end
828
- def eql?(other); end
829
- def freeze; end
830
- def init_with(coder); end
831
- def marshal_dump; end
832
- def marshal_load(pattern); end
833
- def match(*args, **rest, &block); end
834
- def match_code; end
835
- def named_parameters(*args, **_arg1, &block); end
836
- def pattern; end
837
- def positional_parameters(*args, **_arg1, &block); end
838
- def to_s; end
839
-
840
- class << self
841
- def descend(element, &block); end
842
- end
843
- end
844
-
845
- class RuboCop::AST::NodePattern::Builder
846
- def emit_atom(type, value); end
847
- def emit_call(type, selector, args = T.unsafe(nil)); end
848
- def emit_capture(capture_token, node); end
849
- def emit_list(type, _begin, children, _end); end
850
- def emit_subsequence(node_list); end
851
- def emit_unary_op(type, _operator = T.unsafe(nil), *children); end
852
- def emit_union(begin_t, pattern_lists, end_t); end
853
-
854
- private
855
-
856
- def n(type, *args); end
857
- def optimizable_as_set?(children); end
858
- def union_children(pattern_lists); end
859
- end
860
-
861
- class RuboCop::AST::NodePattern::Comment
862
- def initialize(range); end
863
-
864
- def ==(other); end
865
- def inspect; end
866
- def loc; end
867
- def location; end
868
- def text; end
869
- end
870
-
871
- class RuboCop::AST::NodePattern::Compiler
872
- extend ::Forwardable
873
-
874
- def initialize; end
875
-
876
- def bind(*args, **_arg1, &block); end
877
- def binding; end
878
- def captures; end
879
- def compile_as_atom(node); end
880
- def compile_as_node_pattern(node, **options); end
881
- def compile_sequence(sequence, var:); end
882
- def each_union(enum, &block); end
883
- def freeze; end
884
- def named_parameter(name); end
885
- def named_parameters; end
886
- def next_capture; end
887
- def parser; end
888
- def positional_parameter(number); end
889
- def positional_parameters; end
890
- def with_temp_variables(*names, &block); end
891
-
892
- private
893
-
894
- def enforce_same_captures(enum); end
895
- def new_capture; end
896
- end
897
-
898
- class RuboCop::AST::NodePattern::Compiler::AtomSubcompiler < ::RuboCop::AST::NodePattern::Compiler::Subcompiler
899
- private
900
-
901
- def visit_const; end
902
- def visit_named_parameter; end
903
- def visit_number; end
904
- def visit_other_type; end
905
- def visit_positional_parameter; end
906
- def visit_regexp; end
907
- def visit_set; end
908
- def visit_string; end
909
- def visit_symbol; end
910
- def visit_unify; end
911
- end
912
-
913
- class RuboCop::AST::NodePattern::Compiler::Binding
914
- def initialize; end
915
-
916
- def bind(name); end
917
- def union_bind(enum); end
918
-
919
- private
920
-
921
- def forbid(names); end
922
- end
923
-
924
- class RuboCop::AST::NodePattern::Compiler::Debug < ::RuboCop::AST::NodePattern::Compiler
925
- def initialize; end
926
-
927
- def comments(*args, **_arg1, &block); end
928
- def named_parameters; end
929
- def node_ids; end
930
- def parser; end
931
- def tokens(*args, **_arg1, &block); end
932
- end
933
-
934
- class RuboCop::AST::NodePattern::Compiler::Debug::Colorizer
935
- def initialize(pattern, compiler: T.unsafe(nil)); end
936
-
937
- def compiler; end
938
- def node_pattern; end
939
- def pattern; end
940
- def test(ruby, trace: T.unsafe(nil)); end
941
-
942
- private
943
-
944
- def ruby_ast(ruby); end
945
- def ruby_parser; end
946
- end
947
-
948
- RuboCop::AST::NodePattern::Compiler::Debug::Colorizer::COLOR_SCHEME = T.let(T.unsafe(nil), Hash)
949
- RuboCop::AST::NodePattern::Compiler::Debug::Colorizer::Compiler = RuboCop::AST::NodePattern::Compiler::Debug
950
-
951
- class RuboCop::AST::NodePattern::Compiler::Debug::Colorizer::Result < ::Struct
952
- def color_map(color_scheme = T.unsafe(nil)); end
953
- def colorize(color_scheme = T.unsafe(nil)); end
954
- def colorizer; end
955
- def colorizer=(_); end
956
- def match_map; end
957
- def matched?(node); end
958
- def returned; end
959
- def returned=(_); end
960
- def ruby_ast; end
961
- def ruby_ast=(_); end
962
- def trace; end
963
- def trace=(_); end
964
-
965
- private
966
-
967
- def ast; end
968
- def color_map_for(node, color); end
969
-
970
- class << self
971
- def [](*_arg0); end
972
- def inspect; end
973
- def keyword_init?; end
974
- def members; end
975
- def new(*_arg0); end
976
- end
977
- end
978
-
979
- module RuboCop::AST::NodePattern::Compiler::Debug::InstrumentationSubcompiler
980
- def do_compile; end
981
-
982
- private
983
-
984
- def node_id; end
985
- def tracer(kind); end
986
- end
987
-
988
- class RuboCop::AST::NodePattern::Compiler::Debug::NodePatternSubcompiler < ::RuboCop::AST::NodePattern::Compiler::NodePatternSubcompiler
989
- include ::RuboCop::AST::NodePattern::Compiler::Debug::InstrumentationSubcompiler
990
- end
991
-
992
- class RuboCop::AST::NodePattern::Compiler::Debug::SequenceSubcompiler < ::RuboCop::AST::NodePattern::Compiler::SequenceSubcompiler
993
- include ::RuboCop::AST::NodePattern::Compiler::Debug::InstrumentationSubcompiler
994
- end
995
-
996
- class RuboCop::AST::NodePattern::Compiler::Debug::Trace
997
- def initialize; end
998
-
999
- def enter(node_id); end
1000
- def matched?(node_id); end
1001
- def success(node_id); end
1002
- end
1003
-
1004
- class RuboCop::AST::NodePattern::Compiler::NodePatternSubcompiler < ::RuboCop::AST::NodePattern::Compiler::Subcompiler
1005
- def initialize(compiler, var: T.unsafe(nil), access: T.unsafe(nil), seq_head: T.unsafe(nil)); end
1006
-
1007
- def access; end
1008
- def seq_head; end
1009
-
1010
- private
1011
-
1012
- def access_element; end
1013
- def access_node; end
1014
- def compile_args(arg_list, first: T.unsafe(nil)); end
1015
- def compile_guard_clause; end
1016
- def compile_value_match(value); end
1017
- def multiple_access(kind); end
1018
- def visit_ascend; end
1019
- def visit_capture; end
1020
- def visit_descend; end
1021
- def visit_function_call; end
1022
- def visit_intersection; end
1023
- def visit_negation; end
1024
- def visit_node_type; end
1025
- def visit_other_type; end
1026
- def visit_predicate; end
1027
- def visit_sequence; end
1028
- def visit_unify; end
1029
- def visit_union; end
1030
- def visit_wildcard; end
1031
- end
1032
-
1033
- class RuboCop::AST::NodePattern::Compiler::SequenceSubcompiler < ::RuboCop::AST::NodePattern::Compiler::Subcompiler
1034
- def initialize(compiler, sequence:, var:); end
1035
-
1036
- def compile_sequence; end
1037
- def in_sync; end
1038
-
1039
- protected
1040
-
1041
- def compile_terms(children = T.unsafe(nil), last_arity = T.unsafe(nil)); end
1042
- def cur_index; end
1043
- def sync; end
1044
-
1045
- private
1046
-
1047
- def compile_and_advance(term); end
1048
- def compile_any_order_branches(matched_var); end
1049
- def compile_any_order_else; end
1050
- def compile_captured_repetition(child_code, child_captures); end
1051
- def compile_case(when_branches, else_code); end
1052
- def compile_child_nb_guard(arity_range); end
1053
- def compile_cur_index; end
1054
- def compile_index(cur = T.unsafe(nil)); end
1055
- def compile_loop(term); end
1056
- def compile_loop_advance(to = T.unsafe(nil)); end
1057
- def compile_matched(kind); end
1058
- def compile_max_matched; end
1059
- def compile_min_check; end
1060
- def compile_remaining; end
1061
- def compile_union_forks; end
1062
- def empty_loop; end
1063
- def handle_prev; end
1064
- def merge_forks!(forks); end
1065
- def preserve_union_start(forks); end
1066
- def remaining_arities(children, last_arity); end
1067
- def use_index_from_end; end
1068
- def visit_any_order; end
1069
- def visit_capture; end
1070
- def visit_other_type; end
1071
- def visit_repetition; end
1072
- def visit_rest; end
1073
- def visit_union; end
1074
- def within_loop; end
1075
- end
1076
-
1077
- RuboCop::AST::NodePattern::Compiler::SequenceSubcompiler::DELTA = T.let(T.unsafe(nil), Integer)
1078
- RuboCop::AST::NodePattern::Compiler::SequenceSubcompiler::POSITIVE = T.let(T.unsafe(nil), Proc)
1079
-
1080
- class RuboCop::AST::NodePattern::Compiler::Subcompiler
1081
- def initialize(compiler); end
1082
-
1083
- def compile(node); end
1084
- def compiler; end
1085
-
1086
- private
1087
-
1088
- def do_compile; end
1089
- def node; end
1090
-
1091
- class << self
1092
- def inherited(base); end
1093
- def method_added(method); end
1094
- def registry; end
1095
- end
1096
- end
1097
-
1098
- class RuboCop::AST::NodePattern::Invalid < ::StandardError; end
1099
-
1100
- class RuboCop::AST::NodePattern::Lexer < ::RuboCop::AST::NodePattern::LexerRex
1101
- def initialize(source); end
1102
-
1103
- def comments; end
1104
- def source_buffer; end
1105
- def tokens; end
1106
-
1107
- private
1108
-
1109
- def do_parse; end
1110
- def emit(type); end
1111
- def emit_comment; end
1112
- def emit_regexp; end
1113
- def token(type, value); end
1114
- end
1115
-
1116
- RuboCop::AST::NodePattern::Lexer::Error = RuboCop::AST::NodePattern::LexerRex::ScanError
1117
- RuboCop::AST::NodePattern::Lexer::REGEXP_OPTIONS = T.let(T.unsafe(nil), Hash)
1118
-
1119
- class RuboCop::AST::NodePattern::LexerRex
1120
- def action; end
1121
- def filename; end
1122
- def filename=(_arg0); end
1123
- def location; end
1124
- def match; end
1125
- def matches; end
1126
- def next_token; end
1127
- def parse(str); end
1128
- def parse_file(path); end
1129
- def scanner_class; end
1130
- def ss; end
1131
- def ss=(_arg0); end
1132
- def state; end
1133
- def state=(_arg0); end
1134
- end
1135
-
1136
- RuboCop::AST::NodePattern::LexerRex::CALL = T.let(T.unsafe(nil), Regexp)
1137
- RuboCop::AST::NodePattern::LexerRex::CONST_NAME = T.let(T.unsafe(nil), Regexp)
1138
- RuboCop::AST::NodePattern::LexerRex::IDENTIFIER = T.let(T.unsafe(nil), Regexp)
1139
- class RuboCop::AST::NodePattern::LexerRex::LexerError < ::StandardError; end
1140
- RuboCop::AST::NodePattern::LexerRex::NODE_TYPE = T.let(T.unsafe(nil), Regexp)
1141
- RuboCop::AST::NodePattern::LexerRex::REGEXP = T.let(T.unsafe(nil), Regexp)
1142
- RuboCop::AST::NodePattern::LexerRex::REGEXP_BODY = T.let(T.unsafe(nil), Regexp)
1143
- RuboCop::AST::NodePattern::LexerRex::SYMBOL_NAME = T.let(T.unsafe(nil), Regexp)
1144
- class RuboCop::AST::NodePattern::LexerRex::ScanError < ::RuboCop::AST::NodePattern::LexerRex::LexerError; end
1145
-
1146
- module RuboCop::AST::NodePattern::Macros
1147
- def def_node_matcher(method_name, pattern_str, **keyword_defaults); end
1148
- def def_node_search(method_name, pattern_str, **keyword_defaults); end
1149
- end
1150
-
1151
- module RuboCop::AST::NodePattern::MethodDefiner
1152
- def as_lambda; end
1153
- def compile_as_lambda; end
1154
- def def_node_matcher(base, method_name, **defaults); end
1155
- def def_node_search(base, method_name, **defaults); end
1156
-
1157
- private
1158
-
1159
- def compile_init; end
1160
- def def_helper(base, method_name, **defaults); end
1161
- def emit_keyword_list(forwarding: T.unsafe(nil)); end
1162
- def emit_lambda_code; end
1163
- def emit_method_code; end
1164
- def emit_node_search(method_name); end
1165
- def emit_node_search_body(method_name, prelude:, on_match:); end
1166
- def emit_param_list; end
1167
- def emit_params(*first, forwarding: T.unsafe(nil)); end
1168
- def emit_retval; end
1169
- def emit_yield_capture(when_no_capture = T.unsafe(nil), yield_with: T.unsafe(nil)); end
1170
- def wrapping_block(method_name, **defaults); end
1171
- end
1172
-
1173
- class RuboCop::AST::NodePattern::Node < ::Parser::AST::Node
1174
- include ::RuboCop::AST::Descendence
1175
- extend ::Forwardable
1176
-
1177
- def arity; end
1178
- def arity_range; end
1179
- def capture?; end
1180
- def child; end
1181
- def children_nodes; end
1182
- def in_sequence_head; end
1183
- def matches_within_set?; end
1184
- def nb_captures; end
1185
- def rest?; end
1186
- def variadic?; end
1187
- def with(type: T.unsafe(nil), children: T.unsafe(nil), location: T.unsafe(nil)); end
1188
- end
1189
-
1190
- class RuboCop::AST::NodePattern::Node::AnyOrder < ::RuboCop::AST::NodePattern::Node
1191
- include ::RuboCop::AST::NodePattern::Node::ForbidInSeqHead
1192
-
1193
- def arity; end
1194
- def ends_with_rest?; end
1195
- def rest_node; end
1196
- def term_nodes; end
1197
- end
1198
-
1199
- RuboCop::AST::NodePattern::Node::AnyOrder::ARITIES = T.let(T.unsafe(nil), Hash)
1200
-
1201
- class RuboCop::AST::NodePattern::Node::Capture < ::RuboCop::AST::NodePattern::Node
1202
- def arity(*args, **_arg1, &block); end
1203
- def capture?; end
1204
- def in_sequence_head; end
1205
- def nb_captures; end
1206
- def rest?(*args, **_arg1, &block); end
1207
- end
1208
-
1209
- module RuboCop::AST::NodePattern::Node::ForbidInSeqHead
1210
- def in_sequence_head; end
1211
- end
1212
-
1213
- RuboCop::AST::NodePattern::Node::FunctionCall = RuboCop::AST::NodePattern::Node::Predicate
1214
- RuboCop::AST::NodePattern::Node::INT_TO_RANGE = T.let(T.unsafe(nil), Hash)
1215
- RuboCop::AST::NodePattern::Node::MAP = T.let(T.unsafe(nil), Hash)
1216
- RuboCop::AST::NodePattern::Node::MATCHES_WITHIN_SET = T.let(T.unsafe(nil), Set)
1217
-
1218
- class RuboCop::AST::NodePattern::Node::Predicate < ::RuboCop::AST::NodePattern::Node
1219
- def arg_list; end
1220
- def method_name; end
1221
- end
1222
-
1223
- class RuboCop::AST::NodePattern::Node::Repetition < ::RuboCop::AST::NodePattern::Node
1224
- include ::RuboCop::AST::NodePattern::Node::ForbidInSeqHead
1225
-
1226
- def arity; end
1227
- def operator; end
1228
- end
1229
-
1230
- RuboCop::AST::NodePattern::Node::Repetition::ARITIES = T.let(T.unsafe(nil), Hash)
1231
-
1232
- class RuboCop::AST::NodePattern::Node::Rest < ::RuboCop::AST::NodePattern::Node
1233
- def arity; end
1234
- def in_sequence_head; end
1235
- def rest?; end
1236
- end
1237
-
1238
- RuboCop::AST::NodePattern::Node::Rest::ARITY = T.let(T.unsafe(nil), Range)
1239
-
1240
- class RuboCop::AST::NodePattern::Node::Sequence < ::RuboCop::AST::NodePattern::Node
1241
- include ::RuboCop::AST::NodePattern::Node::ForbidInSeqHead
1242
-
1243
- def initialize(type, children = T.unsafe(nil), properties = T.unsafe(nil)); end
1244
- end
1245
-
1246
- class RuboCop::AST::NodePattern::Node::Subsequence < ::RuboCop::AST::NodePattern::Node
1247
- include ::RuboCop::AST::NodePattern::Node::ForbidInSeqHead
1248
-
1249
- def arity; end
1250
- def in_sequence_head; end
1251
- end
1252
-
1253
- class RuboCop::AST::NodePattern::Node::Union < ::RuboCop::AST::NodePattern::Node
1254
- def arity; end
1255
- def in_sequence_head; end
1256
- end
1257
-
1258
- class RuboCop::AST::NodePattern::Parser < ::Racc::Parser
1259
- extend ::Forwardable
1260
-
1261
- def initialize(builder = T.unsafe(nil)); end
1262
-
1263
- def _reduce_10(val, _values); end
1264
- def _reduce_11(val, _values); end
1265
- def _reduce_13(val, _values); end
1266
- def _reduce_14(val, _values); end
1267
- def _reduce_15(val, _values); end
1268
- def _reduce_16(val, _values); end
1269
- def _reduce_17(val, _values); end
1270
- def _reduce_18(val, _values); end
1271
- def _reduce_19(val, _values); end
1272
- def _reduce_2(val, _values); end
1273
- def _reduce_20(val, _values); end
1274
- def _reduce_21(val, _values); end
1275
- def _reduce_22(val, _values); end
1276
- def _reduce_25(val, _values); end
1277
- def _reduce_26(val, _values); end
1278
- def _reduce_3(val, _values); end
1279
- def _reduce_33(val, _values); end
1280
- def _reduce_37(val, _values); end
1281
- def _reduce_38(val, _values); end
1282
- def _reduce_39(val, _values); end
1283
- def _reduce_4(val, _values); end
1284
- def _reduce_40(val, _values); end
1285
- def _reduce_41(val, _values); end
1286
- def _reduce_42(val, _values); end
1287
- def _reduce_43(val, _values); end
1288
- def _reduce_44(val, _values); end
1289
- def _reduce_45(val, _values); end
1290
- def _reduce_46(val, _values); end
1291
- def _reduce_5(val, _values); end
1292
- def _reduce_6(val, _values); end
1293
- def _reduce_7(val, _values); end
1294
- def _reduce_8(val, _values); end
1295
- def _reduce_9(val, _values); end
1296
- def _reduce_none(val, _values); end
1297
- def emit_atom(*args, **_arg1, &block); end
1298
- def emit_call(*args, **_arg1, &block); end
1299
- def emit_capture(*args, **_arg1, &block); end
1300
- def emit_list(*args, **_arg1, &block); end
1301
- def emit_unary_op(*args, **_arg1, &block); end
1302
- def emit_union(*args, **_arg1, &block); end
1303
- def inspect; end
1304
- def next_token(*args, **_arg1, &block); end
1305
- def parse(source); end
1306
-
1307
- private
1308
-
1309
- def enforce_unary(node); end
1310
- def on_error(token, val, _vstack); end
1311
- end
1312
-
1313
- RuboCop::AST::NodePattern::Parser::Builder = RuboCop::AST::NodePattern::Builder
1314
- RuboCop::AST::NodePattern::Parser::Lexer = RuboCop::AST::NodePattern::Lexer
1315
- RuboCop::AST::NodePattern::Parser::Racc_arg = T.let(T.unsafe(nil), Array)
1316
- RuboCop::AST::NodePattern::Parser::Racc_token_to_s_table = T.let(T.unsafe(nil), Array)
1317
-
1318
- class RuboCop::AST::NodePattern::Parser::WithMeta < ::RuboCop::AST::NodePattern::Parser
1319
- def comments; end
1320
- def do_parse; end
1321
- def tokens; end
1322
- end
1323
-
1324
- class RuboCop::AST::NodePattern::Parser::WithMeta::Builder < ::RuboCop::AST::NodePattern::Builder
1325
- def emit_atom(type, token); end
1326
- def emit_call(type, selector_t, args = T.unsafe(nil)); end
1327
- def emit_list(type, begin_t, children, end_t); end
1328
- def emit_unary_op(type, operator_t = T.unsafe(nil), *children); end
1329
-
1330
- private
1331
-
1332
- def join_exprs(left_expr, right_expr); end
1333
- def loc(token_or_range); end
1334
- def n(type, children, source_map); end
1335
- def source_map(token_or_range, begin_t: T.unsafe(nil), end_t: T.unsafe(nil), operator_t: T.unsafe(nil), selector_t: T.unsafe(nil)); end
1336
- end
1337
-
1338
- class RuboCop::AST::NodePattern::Parser::WithMeta::Lexer < ::RuboCop::AST::NodePattern::Lexer
1339
- def initialize(str_or_buffer); end
1340
-
1341
- def emit_comment; end
1342
- def pos; end
1343
- def source_buffer; end
1344
- def token(type, value); end
1345
- end
1346
-
1347
- module RuboCop::AST::NodePattern::Sets
1348
- class << self
1349
- def [](set); end
1350
- def name(set); end
1351
- def uniq(name); end
1352
- end
1353
- end
1354
-
1355
- RuboCop::AST::NodePattern::Sets::MAX = T.let(T.unsafe(nil), Integer)
1356
- RuboCop::AST::NodePattern::Sets::REGISTRY = T.let(T.unsafe(nil), Hash)
1357
- RuboCop::AST::NodePattern::Sets::SET_0_1 = T.let(T.unsafe(nil), Set)
1358
- RuboCop::AST::NodePattern::Sets::SET_10_10 = T.let(T.unsafe(nil), Set)
1359
- RuboCop::AST::NodePattern::Sets::SET_1_1 = T.let(T.unsafe(nil), Set)
1360
- RuboCop::AST::NodePattern::Sets::SET_ADD_DEPENDENCY_ADD_RUNTIME_DEPENDENCY_ADD_DEVELOPMENT_DEPENDENCY = T.let(T.unsafe(nil), Set)
1361
- RuboCop::AST::NodePattern::Sets::SET_ATTR_READER_ATTR_WRITER_ATTR_ACCESSOR_ATTR = T.let(T.unsafe(nil), Set)
1362
- RuboCop::AST::NodePattern::Sets::SET_CAPTURE2_CAPTURE2E_CAPTURE3_ETC = T.let(T.unsafe(nil), Set)
1363
- RuboCop::AST::NodePattern::Sets::SET_CIPHER_DIGEST = T.let(T.unsafe(nil), Set)
1364
- RuboCop::AST::NodePattern::Sets::SET_CLASS_EVAL_INSTANCE_EVAL = T.let(T.unsafe(nil), Set)
1365
- RuboCop::AST::NodePattern::Sets::SET_CLASS_EVAL_MODULE_EVAL = T.let(T.unsafe(nil), Set)
1366
- RuboCop::AST::NodePattern::Sets::SET_CLASS_MODULE = T.let(T.unsafe(nil), Set)
1367
- RuboCop::AST::NodePattern::Sets::SET_CLASS_MODULE_STRUCT = T.let(T.unsafe(nil), Set)
1368
- RuboCop::AST::NodePattern::Sets::SET_COUNT_LENGTH_SIZE = T.let(T.unsafe(nil), Set)
1369
- RuboCop::AST::NodePattern::Sets::SET_DEBUGGER_BYEBUG_REMOTE_BYEBUG = T.let(T.unsafe(nil), Set)
1370
- RuboCop::AST::NodePattern::Sets::SET_DEFINE_METHOD_DEFINE_SINGLETON_METHOD = T.let(T.unsafe(nil), Set)
1371
- RuboCop::AST::NodePattern::Sets::SET_EACH_WITH_INDEX_WITH_INDEX = T.let(T.unsafe(nil), Set)
1372
- RuboCop::AST::NodePattern::Sets::SET_EACH_WITH_OBJECT_WITH_OBJECT = T.let(T.unsafe(nil), Set)
1373
- RuboCop::AST::NodePattern::Sets::SET_ENUMERATOR_RATIONAL_COMPLEX_THREAD = T.let(T.unsafe(nil), Set)
1374
- RuboCop::AST::NodePattern::Sets::SET_ESCAPE_ENCODE_UNESCAPE_DECODE = T.let(T.unsafe(nil), Set)
1375
- RuboCop::AST::NodePattern::Sets::SET_FIRST_LAST__ETC = T.let(T.unsafe(nil), Set)
1376
- RuboCop::AST::NodePattern::Sets::SET_FIXNUM_BIGNUM = T.let(T.unsafe(nil), Set)
1377
- RuboCop::AST::NodePattern::Sets::SET_FORMAT_SPRINTF_PRINTF = T.let(T.unsafe(nil), Set)
1378
- RuboCop::AST::NodePattern::Sets::SET_GEMCUTTER_RUBYGEMS_RUBYFORGE = T.let(T.unsafe(nil), Set)
1379
- RuboCop::AST::NodePattern::Sets::SET_GSUB_GSUB = T.let(T.unsafe(nil), Set)
1380
- RuboCop::AST::NodePattern::Sets::SET_INCLUDE_EXTEND_PREPEND = T.let(T.unsafe(nil), Set)
1381
- RuboCop::AST::NodePattern::Sets::SET_INSTANCE_EVAL_CLASS_EVAL_MODULE_EVAL = T.let(T.unsafe(nil), Set)
1382
- RuboCop::AST::NodePattern::Sets::SET_INSTANCE_EXEC_CLASS_EXEC_MODULE_EXEC = T.let(T.unsafe(nil), Set)
1383
- RuboCop::AST::NodePattern::Sets::SET_KEYS_VALUES = T.let(T.unsafe(nil), Set)
1384
- RuboCop::AST::NodePattern::Sets::SET_KEY_HAS_KEY_FETCH_ETC = T.let(T.unsafe(nil), Set)
1385
- RuboCop::AST::NodePattern::Sets::SET_LAST_FIRST = T.let(T.unsafe(nil), Set)
1386
- RuboCop::AST::NodePattern::Sets::SET_LENGTH_SIZE = T.let(T.unsafe(nil), Set)
1387
- RuboCop::AST::NodePattern::Sets::SET_LOAD_RESTORE = T.let(T.unsafe(nil), Set)
1388
- RuboCop::AST::NodePattern::Sets::SET_MAP_COLLECT = T.let(T.unsafe(nil), Set)
1389
- RuboCop::AST::NodePattern::Sets::SET_NEW_OPEN = T.let(T.unsafe(nil), Set)
1390
- RuboCop::AST::NodePattern::Sets::SET_NIL_ = T.let(T.unsafe(nil), Set)
1391
- RuboCop::AST::NodePattern::Sets::SET_PIPELINE_PIPELINE_R_PIPELINE_RW_ETC = T.let(T.unsafe(nil), Set)
1392
- RuboCop::AST::NodePattern::Sets::SET_PRIVATE_PROTECTED = T.let(T.unsafe(nil), Set)
1393
- RuboCop::AST::NodePattern::Sets::SET_PRIVATE_PROTECTED_PUBLIC = T.let(T.unsafe(nil), Set)
1394
- RuboCop::AST::NodePattern::Sets::SET_PRY_REMOTE_PRY_PRY_REMOTE_CONSOLE = T.let(T.unsafe(nil), Set)
1395
- RuboCop::AST::NodePattern::Sets::SET_PUBLIC_CONSTANT_PRIVATE_CONSTANT = T.let(T.unsafe(nil), Set)
1396
- RuboCop::AST::NodePattern::Sets::SET_PUBLIC_PROTECTED_PRIVATE_MODULE_FUNCTION = T.let(T.unsafe(nil), Set)
1397
- RuboCop::AST::NodePattern::Sets::SET_RAISE_FAIL = T.let(T.unsafe(nil), Set)
1398
- RuboCop::AST::NodePattern::Sets::SET_RAISE_FAIL_THROW_ETC = T.let(T.unsafe(nil), Set)
1399
- RuboCop::AST::NodePattern::Sets::SET_REDUCE_INJECT = T.let(T.unsafe(nil), Set)
1400
- RuboCop::AST::NodePattern::Sets::SET_REQUIRE_REQUIRE_RELATIVE = T.let(T.unsafe(nil), Set)
1401
- RuboCop::AST::NodePattern::Sets::SET_SAVE_AND_OPEN_PAGE_SAVE_AND_OPEN_SCREENSHOT_SAVE_SCREENSHOT = T.let(T.unsafe(nil), Set)
1402
- RuboCop::AST::NodePattern::Sets::SET_SEND_PUBLIC_SEND___SEND__ = T.let(T.unsafe(nil), Set)
1403
- RuboCop::AST::NodePattern::Sets::SET_SORT_BY_SORT = T.let(T.unsafe(nil), Set)
1404
- RuboCop::AST::NodePattern::Sets::SET_SPAWN_SYSTEM = T.let(T.unsafe(nil), Set)
1405
- RuboCop::AST::NodePattern::Sets::SET_SPRINTF_FORMAT = T.let(T.unsafe(nil), Set)
1406
- RuboCop::AST::NodePattern::Sets::SET_STRUCT_CLASS = T.let(T.unsafe(nil), Set)
1407
- RuboCop::AST::NodePattern::Sets::SET_SUCC_PRED_NEXT = T.let(T.unsafe(nil), Set)
1408
- RuboCop::AST::NodePattern::Sets::SET_TEMPFILE_STRINGIO = T.let(T.unsafe(nil), Set)
1409
- RuboCop::AST::NodePattern::Sets::SET_TIME_DATETIME = T.let(T.unsafe(nil), Set)
1410
- RuboCop::AST::NodePattern::Sets::SET_TO_I_TO_F_TO_C = T.let(T.unsafe(nil), Set)
1411
- RuboCop::AST::NodePattern::Sets::SET_TRUE_FALSE = T.let(T.unsafe(nil), Set)
1412
- RuboCop::AST::NodePattern::Sets::SET_ZERO_POSITIVE_NEGATIVE = T.let(T.unsafe(nil), Set)
1413
- RuboCop::AST::NodePattern::Sets::SET__ = T.let(T.unsafe(nil), Set)
1414
- RuboCop::AST::NodePattern::Sets::SET__AT_SLICE = T.let(T.unsafe(nil), Set)
1415
- RuboCop::AST::NodePattern::Sets::SET__EQUAL_EQL = T.let(T.unsafe(nil), Set)
1416
- RuboCop::AST::NodePattern::Sets::SET__GLOB = T.let(T.unsafe(nil), Set)
1417
- RuboCop::AST::NodePattern::Sets::SET___ = T.let(T.unsafe(nil), Set)
1418
- RuboCop::AST::NodePattern::Sets::SET___2 = T.let(T.unsafe(nil), Set)
1419
- RuboCop::AST::NodePattern::Sets::SET___3 = T.let(T.unsafe(nil), Set)
1420
- RuboCop::AST::NodePattern::Sets::SET___4 = T.let(T.unsafe(nil), Set)
1421
- RuboCop::AST::NodePattern::Sets::SET___5 = T.let(T.unsafe(nil), Set)
1422
- RuboCop::AST::NodePattern::Sets::SET___6 = T.let(T.unsafe(nil), Set)
1423
- RuboCop::AST::NodePattern::Sets::SET____ = T.let(T.unsafe(nil), Set)
1424
- RuboCop::AST::NodePattern::Sets::SET____ETC = T.let(T.unsafe(nil), Set)
1425
- RuboCop::AST::NodePattern::Sets::SET____ETC_2 = T.let(T.unsafe(nil), Set)
1426
- RuboCop::AST::NodePattern::Sets::SET____ETC_3 = T.let(T.unsafe(nil), Set)
1427
- RuboCop::AST::NodePattern::VAR = T.let(T.unsafe(nil), String)
1428
-
1429
- module RuboCop::AST::NumericNode
1430
- def sign?; end
1431
- end
1432
-
1433
- RuboCop::AST::NumericNode::SIGN_REGEX = T.let(T.unsafe(nil), Regexp)
1434
-
1435
- class RuboCop::AST::OrNode < ::RuboCop::AST::Node
1436
- include ::RuboCop::AST::BinaryOperatorNode
1437
- include ::RuboCop::AST::PredicateOperatorNode
1438
-
1439
- def alternate_operator; end
1440
- def inverse_operator; end
1441
- end
1442
-
1443
- class RuboCop::AST::PairNode < ::RuboCop::AST::Node
1444
- include ::RuboCop::AST::HashElementNode
1445
-
1446
- def colon?; end
1447
- def delimiter(*deprecated, with_spacing: T.unsafe(nil)); end
1448
- def hash_rocket?; end
1449
- def inverse_delimiter(*deprecated, with_spacing: T.unsafe(nil)); end
1450
- def value_on_new_line?; end
1451
- end
1452
-
1453
- RuboCop::AST::PairNode::COLON = T.let(T.unsafe(nil), String)
1454
- RuboCop::AST::PairNode::HASH_ROCKET = T.let(T.unsafe(nil), String)
1455
- RuboCop::AST::PairNode::SPACED_COLON = T.let(T.unsafe(nil), String)
1456
- RuboCop::AST::PairNode::SPACED_HASH_ROCKET = T.let(T.unsafe(nil), String)
1457
-
1458
- module RuboCop::AST::ParameterizedNode
1459
- def arguments?; end
1460
- def block_argument?; end
1461
- def first_argument; end
1462
- def last_argument; end
1463
- def parenthesized?; end
1464
- def rest_argument?; end
1465
- def splat_argument?; end
1466
- end
1467
-
1468
- module RuboCop::AST::ParameterizedNode::RestArguments
1469
- include ::RuboCop::AST::ParameterizedNode
1470
-
1471
- def arguments; end
1472
- def arguments?; end
1473
- def first_argument; end
1474
- def last_argument; end
1475
- end
1476
-
1477
- module RuboCop::AST::ParameterizedNode::WrappedArguments
1478
- include ::RuboCop::AST::ParameterizedNode
1479
-
1480
- def arguments; end
1481
- end
1482
-
1483
- module RuboCop::AST::PredicateOperatorNode
1484
- def logical_operator?; end
1485
- def operator; end
1486
- def semantic_operator?; end
1487
- end
1488
-
1489
- RuboCop::AST::PredicateOperatorNode::LOGICAL_AND = T.let(T.unsafe(nil), String)
1490
- RuboCop::AST::PredicateOperatorNode::LOGICAL_OR = T.let(T.unsafe(nil), String)
1491
- RuboCop::AST::PredicateOperatorNode::SEMANTIC_AND = T.let(T.unsafe(nil), String)
1492
- RuboCop::AST::PredicateOperatorNode::SEMANTIC_OR = T.let(T.unsafe(nil), String)
1493
-
1494
- class RuboCop::AST::Procarg0Node < ::RuboCop::AST::ArgNode
1495
- def name; end
1496
- end
1497
-
1498
- class RuboCop::AST::ProcessedSource
1499
- include ::RuboCop::Ext::ProcessedSource
1500
-
1501
- def initialize(source, ruby_version, path = T.unsafe(nil)); end
1502
-
1503
- def [](*args); end
1504
- def ast; end
1505
- def ast_with_comments; end
1506
- def blank?; end
1507
- def buffer; end
1508
- def checksum; end
1509
- def comment_at_line(line); end
1510
- def commented?(source_range); end
1511
- def comments; end
1512
- def comments_before_line(line); end
1513
- def contains_comment?(source_range); end
1514
- def current_line(token); end
1515
- def diagnostics; end
1516
- def each_comment(&block); end
1517
- def each_comment_in_lines(line_range); end
1518
- def each_token(&block); end
1519
- def file_path; end
1520
- def find_comment(&block); end
1521
- def find_token(&block); end
1522
- def first_token_of(range_or_node); end
1523
- def following_line(token); end
1524
- def last_token_of(range_or_node); end
1525
- def line_indentation(line_number); end
1526
- def line_with_comment?(line); end
1527
- def lines; end
1528
- def parser_error; end
1529
- def path; end
1530
- def preceding_line(token); end
1531
- def raw_source; end
1532
- def ruby_version; end
1533
- def start_with?(string); end
1534
- def tokens; end
1535
- def tokens_within(range_or_node); end
1536
- def valid_syntax?; end
1537
-
1538
- private
1539
-
1540
- def comment_index; end
1541
- def create_parser(ruby_version); end
1542
- def first_token_index(range_or_node); end
1543
- def last_token_index(range_or_node); end
1544
- def parse(source, ruby_version); end
1545
- def parser_class(ruby_version); end
1546
- def sorted_tokens; end
1547
- def source_range(range_or_node); end
1548
- def tokenize(parser); end
1549
-
1550
- class << self
1551
- def from_file(path, ruby_version); end
1552
- end
1553
- end
1554
-
1555
- RuboCop::AST::ProcessedSource::INVALID_LEVELS = T.let(T.unsafe(nil), Array)
1556
- RuboCop::AST::ProcessedSource::STRING_SOURCE_NAME = T.let(T.unsafe(nil), String)
1557
-
1558
- class RuboCop::AST::RangeNode < ::RuboCop::AST::Node
1559
- def begin; end
1560
- def end; end
1561
- end
1562
-
1563
- class RuboCop::AST::RegexpNode < ::RuboCop::AST::Node
1564
- include ::RuboCop::Ext::RegexpNode
1565
-
1566
- def content; end
1567
- def delimiter?(char); end
1568
- def delimiters; end
1569
- def extended?; end
1570
- def ignore_case?; end
1571
- def interpolation?; end
1572
- def multiline_mode?; end
1573
- def no_encoding?; end
1574
- def options; end
1575
- def percent_r_literal?; end
1576
- def regopt; end
1577
- def single_interpolation?; end
1578
- def slash_literal?; end
1579
- def to_regexp; end
1580
-
1581
- private
1582
-
1583
- def regopt_include?(option); end
1584
- end
1585
-
1586
- RuboCop::AST::RegexpNode::OPTIONS = T.let(T.unsafe(nil), Hash)
1587
-
1588
- class RuboCop::AST::ResbodyNode < ::RuboCop::AST::Node
1589
- def body; end
1590
- def branch_index; end
1591
- def exception_variable; end
1592
- def exceptions; end
1593
- end
1594
-
1595
- class RuboCop::AST::RescueNode < ::RuboCop::AST::Node
1596
- def body; end
1597
- def branches; end
1598
- def else?; end
1599
- def else_branch; end
1600
- def resbody_branches; end
1601
- end
1602
-
1603
- class RuboCop::AST::ReturnNode < ::RuboCop::AST::Node
1604
- include ::RuboCop::AST::ParameterizedNode
1605
- include ::RuboCop::AST::ParameterizedNode::WrappedArguments
1606
- end
1607
-
1608
- module RuboCop::AST::RuboCopCompatibility
1609
- def rubocop_loaded; end
1610
- end
1611
-
1612
- RuboCop::AST::RuboCopCompatibility::INCOMPATIBLE_COPS = T.let(T.unsafe(nil), Hash)
1613
-
1614
- class RuboCop::AST::SelfClassNode < ::RuboCop::AST::Node
1615
- def body; end
1616
- def identifier; end
1617
- end
1618
-
1619
- class RuboCop::AST::SendNode < ::RuboCop::AST::Node
1620
- include ::RuboCop::AST::ParameterizedNode
1621
- include ::RuboCop::AST::ParameterizedNode::RestArguments
1622
- include ::RuboCop::AST::MethodIdentifierPredicates
1623
- include ::RuboCop::AST::MethodDispatchNode
1624
-
1625
- def attribute_accessor?(param0 = T.unsafe(nil)); end
1626
-
1627
- private
1628
-
1629
- def first_argument_index; end
1630
- end
1631
-
1632
- module RuboCop::AST::Sexp
1633
- def s(type, *children); end
1634
- end
1635
-
1636
- class RuboCop::AST::StrNode < ::RuboCop::AST::Node
1637
- include ::RuboCop::AST::BasicLiteralNode
1638
-
1639
- def heredoc?; end
1640
- end
1641
-
1642
- class RuboCop::AST::SuperNode < ::RuboCop::AST::Node
1643
- include ::RuboCop::AST::ParameterizedNode
1644
- include ::RuboCop::AST::MethodIdentifierPredicates
1645
- include ::RuboCop::AST::MethodDispatchNode
1646
-
1647
- def arguments; end
1648
- def node_parts; end
1649
- end
1650
-
1651
- class RuboCop::AST::SymbolNode < ::RuboCop::AST::Node
1652
- include ::RuboCop::AST::BasicLiteralNode
1653
- end
1654
-
1655
- class RuboCop::AST::Token
1656
- def initialize(pos, type, text); end
1657
-
1658
- def begin_pos; end
1659
- def column; end
1660
- def comma?; end
1661
- def comment?; end
1662
- def end?; end
1663
- def end_pos; end
1664
- def equal_sign?; end
1665
- def left_array_bracket?; end
1666
- def left_brace?; end
1667
- def left_bracket?; end
1668
- def left_curly_brace?; end
1669
- def left_parens?; end
1670
- def left_ref_bracket?; end
1671
- def line; end
1672
- def pos; end
1673
- def rescue_modifier?; end
1674
- def right_bracket?; end
1675
- def right_curly_brace?; end
1676
- def right_parens?; end
1677
- def semicolon?; end
1678
- def space_after?; end
1679
- def space_before?; end
1680
- def text; end
1681
- def to_s; end
1682
- def type; end
1683
-
1684
- class << self
1685
- def from_parser_token(parser_token); end
1686
- end
1687
- end
1688
-
1689
- module RuboCop::AST::Traversal
1690
- extend ::RuboCop::AST::Traversal::CallbackCompiler
1691
-
1692
- def on_(node); end
1693
- def on___ENCODING__(node); end
1694
- def on___FILE__(node); end
1695
- def on___LINE__(node); end
1696
- def on_alias(node); end
1697
- def on_and(node); end
1698
- def on_and_asgn(node); end
1699
- def on_arg(node); end
1700
- def on_arg_expr(node); end
1701
- def on_args(node); end
1702
- def on_array(node); end
1703
- def on_array_pattern(node); end
1704
- def on_array_pattern_with_tail(node); end
1705
- def on_back_ref(node); end
1706
- def on_begin(node); end
1707
- def on_block(node); end
1708
- def on_block_pass(node); end
1709
- def on_blockarg(node); end
1710
- def on_break(node); end
1711
- def on_case(node); end
1712
- def on_case_match(node); end
1713
- def on_casgn(node); end
1714
- def on_cbase(node); end
1715
- def on_class(node); end
1716
- def on_complex(node); end
1717
- def on_const(node); end
1718
- def on_const_pattern(node); end
1719
- def on_csend(node); end
1720
- def on_cvar(node); end
1721
- def on_cvasgn(node); end
1722
- def on_def(node); end
1723
- def on_defined?(node); end
1724
- def on_defs(node); end
1725
- def on_dstr(node); end
1726
- def on_dsym(node); end
1727
- def on_eflipflop(node); end
1728
- def on_empty_else(node); end
1729
- def on_ensure(node); end
1730
- def on_erange(node); end
1731
- def on_false(node); end
1732
- def on_find_pattern(node); end
1733
- def on_float(node); end
1734
- def on_for(node); end
1735
- def on_forward_arg(node); end
1736
- def on_forward_args(node); end
1737
- def on_forwarded_args(node); end
1738
- def on_gvar(node); end
1739
- def on_gvasgn(node); end
1740
- def on_hash(node); end
1741
- def on_hash_pattern(node); end
1742
- def on_if(node); end
1743
- def on_if_guard(node); end
1744
- def on_iflipflop(node); end
1745
- def on_in_match(node); end
1746
- def on_in_pattern(node); end
1747
- def on_index(node); end
1748
- def on_indexasgn(node); end
1749
- def on_int(node); end
1750
- def on_irange(node); end
1751
- def on_ivar(node); end
1752
- def on_ivasgn(node); end
1753
- def on_kwarg(node); end
1754
- def on_kwargs(node); end
1755
- def on_kwbegin(node); end
1756
- def on_kwnilarg(node); end
1757
- def on_kwoptarg(node); end
1758
- def on_kwrestarg(node); end
1759
- def on_kwsplat(node); end
1760
- def on_lambda(node); end
1761
- def on_lvar(node); end
1762
- def on_lvasgn(node); end
1763
- def on_masgn(node); end
1764
- def on_match_alt(node); end
1765
- def on_match_as(node); end
1766
- def on_match_current_line(node); end
1767
- def on_match_nil_pattern(node); end
1768
- def on_match_pattern(node); end
1769
- def on_match_pattern_p(node); end
1770
- def on_match_rest(node); end
1771
- def on_match_var(node); end
1772
- def on_match_with_lvasgn(node); end
1773
- def on_match_with_trailing_comma(node); end
1774
- def on_mlhs(node); end
1775
- def on_module(node); end
1776
- def on_mrasgn(node); end
1777
- def on_next(node); end
1778
- def on_nil(node); end
1779
- def on_not(node); end
1780
- def on_nth_ref(node); end
1781
- def on_numblock(node); end
1782
- def on_op_asgn(node); end
1783
- def on_optarg(node); end
1784
- def on_or(node); end
1785
- def on_or_asgn(node); end
1786
- def on_pair(node); end
1787
- def on_pin(node); end
1788
- def on_postexe(node); end
1789
- def on_preexe(node); end
1790
- def on_procarg0(node); end
1791
- def on_rasgn(node); end
1792
- def on_rational(node); end
1793
- def on_redo(node); end
1794
- def on_regexp(node); end
1795
- def on_regopt(node); end
1796
- def on_resbody(node); end
1797
- def on_rescue(node); end
1798
- def on_restarg(node); end
1799
- def on_retry(node); end
1800
- def on_return(node); end
1801
- def on_sclass(node); end
1802
- def on_self(node); end
1803
- def on_send(node); end
1804
- def on_shadowarg(node); end
1805
- def on_splat(node); end
1806
- def on_str(node); end
1807
- def on_super(node); end
1808
- def on_sym(node); end
1809
- def on_true(node); end
1810
- def on_undef(node); end
1811
- def on_unless_guard(node); end
1812
- def on_until(node); end
1813
- def on_until_post(node); end
1814
- def on_when(node); end
1815
- def on_while(node); end
1816
- def on_while_post(node); end
1817
- def on_xstr(node); end
1818
- def on_yield(node); end
1819
- def on_zsuper(node); end
1820
- def walk(node); end
1821
- end
1822
-
1823
- module RuboCop::AST::Traversal::CallbackCompiler
1824
- def arity_check(range); end
1825
- def body(signature, prelude); end
1826
- def def_callback(type, *signature, arity: T.unsafe(nil), arity_check: T.unsafe(nil), body: T.unsafe(nil)); end
1827
- end
1828
-
1829
- RuboCop::AST::Traversal::CallbackCompiler::SEND = T.let(T.unsafe(nil), String)
1830
- RuboCop::AST::Traversal::CallbackCompiler::TEMPLATE = T.let(T.unsafe(nil), Hash)
1831
- class RuboCop::AST::Traversal::DebugError < ::RuntimeError; end
1832
- RuboCop::AST::Traversal::NO_CHILD_NODES = T.let(T.unsafe(nil), Set)
1833
- RuboCop::AST::Traversal::TYPE_TO_METHOD = T.let(T.unsafe(nil), Hash)
1834
-
1835
- class RuboCop::AST::UntilNode < ::RuboCop::AST::Node
1836
- include ::RuboCop::AST::ConditionalNode
1837
- include ::RuboCop::AST::ModifierNode
1838
-
1839
- def do?; end
1840
- def inverse_keyword; end
1841
- def keyword; end
1842
- end
1843
-
1844
- module RuboCop::AST::Version; end
1845
- RuboCop::AST::Version::STRING = T.let(T.unsafe(nil), String)
1846
-
1847
- class RuboCop::AST::WhenNode < ::RuboCop::AST::Node
1848
- def body; end
1849
- def branch_index; end
1850
- def conditions; end
1851
- def each_condition(&block); end
1852
- def then?; end
1853
- end
1854
-
1855
- class RuboCop::AST::WhileNode < ::RuboCop::AST::Node
1856
- include ::RuboCop::AST::ConditionalNode
1857
- include ::RuboCop::AST::ModifierNode
1858
-
1859
- def do?; end
1860
- def inverse_keyword; end
1861
- def keyword; end
1862
- end
1863
-
1864
- class RuboCop::AST::YieldNode < ::RuboCop::AST::Node
1865
- include ::RuboCop::AST::ParameterizedNode
1866
- include ::RuboCop::AST::MethodIdentifierPredicates
1867
- include ::RuboCop::AST::MethodDispatchNode
1868
-
1869
- def arguments; end
1870
- def node_parts; end
1871
- end
1872
-
1873
- RuboCop::NodePattern = RuboCop::AST::NodePattern
1874
- RuboCop::ProcessedSource = RuboCop::AST::ProcessedSource
1875
- RuboCop::Token = RuboCop::AST::Token
1876
-
1877
- class Set
1878
- include ::Enumerable
1879
- end
1880
-
1881
- Set::InspectKey = T.let(T.unsafe(nil), Symbol)