rubocop-modularization 0.0.1 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (51) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +82 -3
  3. data/config/default.yml +5 -0
  4. data/lib/rubocop/cop/modularization/namespaced_under_package_name/desired_zeitwerk_api.rb +110 -0
  5. data/lib/rubocop/cop/modularization/namespaced_under_package_name.rb +119 -0
  6. data/lib/rubocop/cop/modularization/typed_public_api.rb +39 -0
  7. data/lib/rubocop/cop/modularization_cops.rb +1 -0
  8. data/lib/rubocop/modularization/inject.rb +4 -0
  9. data/lib/rubocop/modularization/private.rb +11 -0
  10. data/lib/rubocop/modularization.rb +8 -4
  11. data/lib/rubocop-modularization.rb +5 -2
  12. data/sorbet/rbi/gems/activesupport@7.0.4.rbi +15914 -0
  13. data/sorbet/rbi/gems/ast@2.4.2.rbi +584 -0
  14. data/sorbet/rbi/gems/coderay@1.1.3.rbi +8 -0
  15. data/sorbet/rbi/gems/concurrent-ruby@1.1.10.rbi +11263 -0
  16. data/sorbet/rbi/gems/diff-lcs@1.5.0.rbi +1079 -0
  17. data/sorbet/rbi/gems/i18n@1.12.0.rbi +2296 -0
  18. data/sorbet/rbi/gems/json@2.6.2.rbi +1547 -0
  19. data/sorbet/rbi/gems/method_source@1.0.0.rbi +8 -0
  20. data/sorbet/rbi/gems/minitest@5.16.3.rbi +1459 -0
  21. data/sorbet/rbi/gems/netrc@0.11.0.rbi +161 -0
  22. data/sorbet/rbi/gems/parallel@1.22.1.rbi +277 -0
  23. data/sorbet/rbi/gems/parse_packwerk@0.12.1.rbi +203 -0
  24. data/sorbet/rbi/gems/parser@3.1.2.1.rbi +8944 -0
  25. data/sorbet/rbi/gems/pry@0.14.1.rbi +8 -0
  26. data/sorbet/rbi/gems/rainbow@3.1.1.rbi +392 -0
  27. data/sorbet/rbi/gems/rake@13.0.6.rbi +2899 -0
  28. data/sorbet/rbi/gems/rbi@0.0.16.rbi +3007 -0
  29. data/sorbet/rbi/gems/regexp_parser@2.6.0.rbi +3498 -0
  30. data/sorbet/rbi/gems/rexml@3.2.5.rbi +4717 -0
  31. data/sorbet/rbi/gems/rspec-core@3.11.0.rbi +10934 -0
  32. data/sorbet/rbi/gems/rspec-expectations@3.11.1.rbi +8090 -0
  33. data/sorbet/rbi/gems/rspec-mocks@3.11.1.rbi +5291 -0
  34. data/sorbet/rbi/gems/rspec-support@3.11.1.rbi +1610 -0
  35. data/sorbet/rbi/gems/rspec@3.11.0.rbi +88 -0
  36. data/sorbet/rbi/gems/rubocop-ast@1.21.0.rbi +6898 -0
  37. data/sorbet/rbi/gems/rubocop-extension-generator@0.5.1.rbi +86 -0
  38. data/sorbet/rbi/gems/rubocop-sorbet@0.6.11.rbi +1002 -0
  39. data/sorbet/rbi/gems/rubocop@1.36.0.rbi +52209 -0
  40. data/sorbet/rbi/gems/ruby-progressbar@1.11.0.rbi +1239 -0
  41. data/sorbet/rbi/gems/spoom@1.1.12.rbi +2369 -0
  42. data/sorbet/rbi/gems/tapioca@0.10.2.rbi +3439 -0
  43. data/sorbet/rbi/gems/thor@1.2.1.rbi +3956 -0
  44. data/sorbet/rbi/gems/tzinfo@2.0.5.rbi +5896 -0
  45. data/sorbet/rbi/gems/unicode-display_width@2.3.0.rbi +48 -0
  46. data/sorbet/rbi/gems/unparser@0.6.5.rbi +4529 -0
  47. data/sorbet/rbi/gems/webrick@1.7.0.rbi +2586 -0
  48. data/sorbet/rbi/gems/yard-sorbet@0.7.0.rbi +389 -0
  49. data/sorbet/rbi/gems/yard@0.9.28.rbi +17775 -0
  50. data/sorbet/rbi/todo.rbi +0 -3
  51. metadata +105 -6
@@ -0,0 +1,3498 @@
1
+ # typed: true
2
+
3
+ # DO NOT EDIT MANUALLY
4
+ # This is an autogenerated file for types exported from the `regexp_parser` gem.
5
+ # Please instead update this file by running `bin/tapioca gem regexp_parser`.
6
+
7
+ # source://regexp_parser//lib/regexp_parser/expression/shared.rb#1
8
+ module Regexp::Expression; end
9
+
10
+ # source://regexp_parser//lib/regexp_parser/expression/classes/alternation.rb#5
11
+ class Regexp::Expression::Alternation < ::Regexp::Expression::SequenceOperation
12
+ # source://regexp_parser//lib/regexp_parser/expression/subexpression.rb#5
13
+ def alternatives; end
14
+
15
+ # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#9
16
+ def human_name; end
17
+
18
+ # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#127
19
+ def match_length; end
20
+ end
21
+
22
+ # source://regexp_parser//lib/regexp_parser/expression/classes/alternation.rb#6
23
+ Regexp::Expression::Alternation::OPERAND = Regexp::Expression::Alternative
24
+
25
+ # A sequence of expressions, used by Alternation as one of its alternative.
26
+ #
27
+ # source://regexp_parser//lib/regexp_parser/expression/classes/alternation.rb#3
28
+ class Regexp::Expression::Alternative < ::Regexp::Expression::Sequence
29
+ # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#10
30
+ def human_name; end
31
+ end
32
+
33
+ # source://regexp_parser//lib/regexp_parser/expression/classes/anchor.rb#2
34
+ module Regexp::Expression::Anchor; end
35
+
36
+ # source://regexp_parser//lib/regexp_parser/expression/classes/anchor.rb#18
37
+ Regexp::Expression::Anchor::BOL = Regexp::Expression::Anchor::BeginningOfLine
38
+
39
+ # source://regexp_parser//lib/regexp_parser/expression/classes/anchor.rb#20
40
+ Regexp::Expression::Anchor::BOS = Regexp::Expression::Anchor::BeginningOfString
41
+
42
+ # source://regexp_parser//lib/regexp_parser/expression/classes/anchor.rb#3
43
+ class Regexp::Expression::Anchor::Base < ::Regexp::Expression::Base
44
+ # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#144
45
+ def match_length; end
46
+ end
47
+
48
+ # source://regexp_parser//lib/regexp_parser/expression/classes/anchor.rb#5
49
+ class Regexp::Expression::Anchor::BeginningOfLine < ::Regexp::Expression::Anchor::Base
50
+ # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#11
51
+ def human_name; end
52
+ end
53
+
54
+ # source://regexp_parser//lib/regexp_parser/expression/classes/anchor.rb#8
55
+ class Regexp::Expression::Anchor::BeginningOfString < ::Regexp::Expression::Anchor::Base
56
+ # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#12
57
+ def human_name; end
58
+ end
59
+
60
+ # source://regexp_parser//lib/regexp_parser/expression/classes/anchor.rb#19
61
+ Regexp::Expression::Anchor::EOL = Regexp::Expression::Anchor::EndOfLine
62
+
63
+ # source://regexp_parser//lib/regexp_parser/expression/classes/anchor.rb#21
64
+ Regexp::Expression::Anchor::EOS = Regexp::Expression::Anchor::EndOfString
65
+
66
+ # source://regexp_parser//lib/regexp_parser/expression/classes/anchor.rb#22
67
+ Regexp::Expression::Anchor::EOSobEOL = Regexp::Expression::Anchor::EndOfStringOrBeforeEndOfLine
68
+
69
+ # source://regexp_parser//lib/regexp_parser/expression/classes/anchor.rb#6
70
+ class Regexp::Expression::Anchor::EndOfLine < ::Regexp::Expression::Anchor::Base
71
+ # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#13
72
+ def human_name; end
73
+ end
74
+
75
+ # source://regexp_parser//lib/regexp_parser/expression/classes/anchor.rb#9
76
+ class Regexp::Expression::Anchor::EndOfString < ::Regexp::Expression::Anchor::Base
77
+ # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#14
78
+ def human_name; end
79
+ end
80
+
81
+ # source://regexp_parser//lib/regexp_parser/expression/classes/anchor.rb#11
82
+ class Regexp::Expression::Anchor::EndOfStringOrBeforeEndOfLine < ::Regexp::Expression::Anchor::Base
83
+ # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#15
84
+ def human_name; end
85
+ end
86
+
87
+ # source://regexp_parser//lib/regexp_parser/expression/classes/anchor.rb#16
88
+ class Regexp::Expression::Anchor::MatchStart < ::Regexp::Expression::Anchor::Base
89
+ # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#16
90
+ def human_name; end
91
+ end
92
+
93
+ # source://regexp_parser//lib/regexp_parser/expression/classes/anchor.rb#14
94
+ class Regexp::Expression::Anchor::NonWordBoundary < ::Regexp::Expression::Anchor::Base
95
+ # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#17
96
+ def human_name; end
97
+ end
98
+
99
+ # source://regexp_parser//lib/regexp_parser/expression/classes/anchor.rb#13
100
+ class Regexp::Expression::Anchor::WordBoundary < ::Regexp::Expression::Anchor::Base
101
+ # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#18
102
+ def human_name; end
103
+ end
104
+
105
+ # source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#86
106
+ module Regexp::Expression::Assertion; end
107
+
108
+ # source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#87
109
+ class Regexp::Expression::Assertion::Base < ::Regexp::Expression::Group::Base
110
+ # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#144
111
+ def match_length; end
112
+ end
113
+
114
+ # source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#89
115
+ class Regexp::Expression::Assertion::Lookahead < ::Regexp::Expression::Assertion::Base
116
+ # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#19
117
+ def human_name; end
118
+ end
119
+
120
+ # source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#92
121
+ class Regexp::Expression::Assertion::Lookbehind < ::Regexp::Expression::Assertion::Base
122
+ # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#20
123
+ def human_name; end
124
+ end
125
+
126
+ # source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#90
127
+ class Regexp::Expression::Assertion::NegativeLookahead < ::Regexp::Expression::Assertion::Base
128
+ # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#21
129
+ def human_name; end
130
+ end
131
+
132
+ # source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#93
133
+ class Regexp::Expression::Assertion::NegativeLookbehind < ::Regexp::Expression::Assertion::Base
134
+ # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#22
135
+ def human_name; end
136
+ end
137
+
138
+ # TODO: unify name with token :backref, one way or the other, in v3.0.0
139
+ #
140
+ # source://regexp_parser//lib/regexp_parser/expression/classes/backreference.rb#3
141
+ module Regexp::Expression::Backreference; end
142
+
143
+ # source://regexp_parser//lib/regexp_parser/expression/classes/backreference.rb#4
144
+ class Regexp::Expression::Backreference::Base < ::Regexp::Expression::Base
145
+ # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#151
146
+ def match_length; end
147
+
148
+ # Returns the value of attribute referenced_expression.
149
+ #
150
+ # source://regexp_parser//lib/regexp_parser/expression/classes/backreference.rb#5
151
+ def referenced_expression; end
152
+
153
+ # Sets the attribute referenced_expression
154
+ #
155
+ # @param value the value to set the attribute referenced_expression to.
156
+ #
157
+ # source://regexp_parser//lib/regexp_parser/expression/classes/backreference.rb#5
158
+ def referenced_expression=(_arg0); end
159
+
160
+ private
161
+
162
+ # source://regexp_parser//lib/regexp_parser/expression/classes/backreference.rb#7
163
+ def initialize_copy(orig); end
164
+ end
165
+
166
+ # source://regexp_parser//lib/regexp_parser/expression/classes/backreference.rb#23
167
+ class Regexp::Expression::Backreference::Name < ::Regexp::Expression::Backreference::Base
168
+ # @return [Name] a new instance of Name
169
+ #
170
+ # source://regexp_parser//lib/regexp_parser/expression/classes/backreference.rb#27
171
+ def initialize(token, options = T.unsafe(nil)); end
172
+
173
+ # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#23
174
+ def human_name; end
175
+
176
+ # Returns the value of attribute name.
177
+ #
178
+ # source://regexp_parser//lib/regexp_parser/expression/classes/backreference.rb#24
179
+ def name; end
180
+
181
+ # Returns the value of attribute name.
182
+ #
183
+ # source://regexp_parser//lib/regexp_parser/expression/classes/backreference.rb#24
184
+ def reference; end
185
+ end
186
+
187
+ # source://regexp_parser//lib/regexp_parser/expression/classes/backreference.rb#39
188
+ class Regexp::Expression::Backreference::NameCall < ::Regexp::Expression::Backreference::Name
189
+ # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#24
190
+ def human_name; end
191
+ end
192
+
193
+ # source://regexp_parser//lib/regexp_parser/expression/classes/backreference.rb#51
194
+ class Regexp::Expression::Backreference::NameRecursionLevel < ::Regexp::Expression::Backreference::Name
195
+ # @return [NameRecursionLevel] a new instance of NameRecursionLevel
196
+ #
197
+ # source://regexp_parser//lib/regexp_parser/expression/classes/backreference.rb#54
198
+ def initialize(token, options = T.unsafe(nil)); end
199
+
200
+ # Returns the value of attribute recursion_level.
201
+ #
202
+ # source://regexp_parser//lib/regexp_parser/expression/classes/backreference.rb#52
203
+ def recursion_level; end
204
+ end
205
+
206
+ # source://regexp_parser//lib/regexp_parser/expression/classes/backreference.rb#13
207
+ class Regexp::Expression::Backreference::Number < ::Regexp::Expression::Backreference::Base
208
+ # @return [Number] a new instance of Number
209
+ #
210
+ # source://regexp_parser//lib/regexp_parser/expression/classes/backreference.rb#17
211
+ def initialize(token, options = T.unsafe(nil)); end
212
+
213
+ # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#25
214
+ def human_name; end
215
+
216
+ # Returns the value of attribute number.
217
+ #
218
+ # source://regexp_parser//lib/regexp_parser/expression/classes/backreference.rb#14
219
+ def number; end
220
+
221
+ # Returns the value of attribute number.
222
+ #
223
+ # source://regexp_parser//lib/regexp_parser/expression/classes/backreference.rb#14
224
+ def reference; end
225
+ end
226
+
227
+ # source://regexp_parser//lib/regexp_parser/expression/classes/backreference.rb#38
228
+ class Regexp::Expression::Backreference::NumberCall < ::Regexp::Expression::Backreference::Number
229
+ # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#27
230
+ def human_name; end
231
+ end
232
+
233
+ # source://regexp_parser//lib/regexp_parser/expression/classes/backreference.rb#40
234
+ class Regexp::Expression::Backreference::NumberCallRelative < ::Regexp::Expression::Backreference::NumberRelative
235
+ # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#28
236
+ def human_name; end
237
+ end
238
+
239
+ # source://regexp_parser//lib/regexp_parser/expression/classes/backreference.rb#42
240
+ class Regexp::Expression::Backreference::NumberRecursionLevel < ::Regexp::Expression::Backreference::NumberRelative
241
+ # @return [NumberRecursionLevel] a new instance of NumberRecursionLevel
242
+ #
243
+ # source://regexp_parser//lib/regexp_parser/expression/classes/backreference.rb#45
244
+ def initialize(token, options = T.unsafe(nil)); end
245
+
246
+ # Returns the value of attribute recursion_level.
247
+ #
248
+ # source://regexp_parser//lib/regexp_parser/expression/classes/backreference.rb#43
249
+ def recursion_level; end
250
+ end
251
+
252
+ # source://regexp_parser//lib/regexp_parser/expression/classes/backreference.rb#33
253
+ class Regexp::Expression::Backreference::NumberRelative < ::Regexp::Expression::Backreference::Number
254
+ # Returns the value of attribute effective_number.
255
+ #
256
+ # source://regexp_parser//lib/regexp_parser/expression/classes/backreference.rb#34
257
+ def effective_number; end
258
+
259
+ # Sets the attribute effective_number
260
+ #
261
+ # @param value the value to set the attribute effective_number to.
262
+ #
263
+ # source://regexp_parser//lib/regexp_parser/expression/classes/backreference.rb#34
264
+ def effective_number=(_arg0); end
265
+
266
+ # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#26
267
+ def human_name; end
268
+
269
+ # Returns the value of attribute effective_number.
270
+ #
271
+ # source://regexp_parser//lib/regexp_parser/expression/classes/backreference.rb#34
272
+ def reference; end
273
+ end
274
+
275
+ # source://regexp_parser//lib/regexp_parser/expression/base.rb#2
276
+ class Regexp::Expression::Base
277
+ include ::Regexp::Expression::Shared
278
+ extend ::Regexp::Expression::Shared::ClassMethods
279
+
280
+ # @return [Base] a new instance of Base
281
+ #
282
+ # source://regexp_parser//lib/regexp_parser/expression/base.rb#5
283
+ def initialize(token, options = T.unsafe(nil)); end
284
+
285
+ # source://regexp_parser//lib/regexp_parser/expression/methods/match.rb#8
286
+ def =~(string, offset = T.unsafe(nil)); end
287
+
288
+ # @return [Boolean]
289
+ #
290
+ # source://regexp_parser//lib/regexp_parser/expression/methods/options.rb#25
291
+ def a?; end
292
+
293
+ # @return [Boolean]
294
+ #
295
+ # source://regexp_parser//lib/regexp_parser/expression/methods/options.rb#25
296
+ def ascii_classes?; end
297
+
298
+ # source://regexp_parser//lib/regexp_parser/expression/base.rb#67
299
+ def attributes; end
300
+
301
+ # @return [Boolean]
302
+ #
303
+ # source://regexp_parser//lib/regexp_parser/expression/methods/options.rb#8
304
+ def case_insensitive?; end
305
+
306
+ # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9
307
+ def conditional_level; end
308
+
309
+ # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9
310
+ def conditional_level=(_arg0); end
311
+
312
+ # @return [Boolean]
313
+ #
314
+ # source://regexp_parser//lib/regexp_parser/expression/methods/options.rb#20
315
+ def d?; end
316
+
317
+ # @return [Boolean]
318
+ #
319
+ # source://regexp_parser//lib/regexp_parser/expression/methods/options.rb#20
320
+ def default_classes?; end
321
+
322
+ # @return [Boolean]
323
+ #
324
+ # source://regexp_parser//lib/regexp_parser/expression/methods/options.rb#14
325
+ def extended?; end
326
+
327
+ # @return [Boolean]
328
+ #
329
+ # source://regexp_parser//lib/regexp_parser/expression/methods/options.rb#14
330
+ def free_spacing?; end
331
+
332
+ # @return [Boolean]
333
+ #
334
+ # source://regexp_parser//lib/regexp_parser/expression/base.rb#54
335
+ def greedy?; end
336
+
337
+ # @return [Boolean]
338
+ #
339
+ # source://regexp_parser//lib/regexp_parser/expression/methods/options.rb#8
340
+ def i?; end
341
+
342
+ # @return [Boolean]
343
+ #
344
+ # source://regexp_parser//lib/regexp_parser/expression/methods/options.rb#8
345
+ def ignore_case?; end
346
+
347
+ # @return [Boolean]
348
+ #
349
+ # source://regexp_parser//lib/regexp_parser/expression/base.rb#58
350
+ def lazy?; end
351
+
352
+ # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9
353
+ def level; end
354
+
355
+ # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9
356
+ def level=(_arg0); end
357
+
358
+ # @return [Boolean]
359
+ #
360
+ # source://regexp_parser//lib/regexp_parser/expression/methods/options.rb#3
361
+ def m?; end
362
+
363
+ # source://regexp_parser//lib/regexp_parser/expression/methods/match.rb#8
364
+ def match(string, offset = T.unsafe(nil)); end
365
+
366
+ # @return [Boolean]
367
+ #
368
+ # source://regexp_parser//lib/regexp_parser/expression/methods/match.rb#3
369
+ def match?(string); end
370
+
371
+ # @return [Boolean]
372
+ #
373
+ # source://regexp_parser//lib/regexp_parser/expression/methods/match.rb#3
374
+ def matches?(string); end
375
+
376
+ # @return [Boolean]
377
+ #
378
+ # source://regexp_parser//lib/regexp_parser/expression/methods/options.rb#3
379
+ def multiline?; end
380
+
381
+ # source://regexp_parser//lib/regexp_parser/expression/shared.rb#13
382
+ def nesting_level; end
383
+
384
+ # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9
385
+ def options; end
386
+
387
+ # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9
388
+ def options=(_arg0); end
389
+
390
+ # @return [Boolean]
391
+ #
392
+ # source://regexp_parser//lib/regexp_parser/expression/base.rb#63
393
+ def possessive?; end
394
+
395
+ # source://regexp_parser//lib/regexp_parser/expression/shared.rb#13
396
+ def quantifier; end
397
+
398
+ # source://regexp_parser//lib/regexp_parser/expression/base.rb#24
399
+ def quantify(*args); end
400
+
401
+ # Deprecated. Prefer `#repetitions` which has a more uniform interface.
402
+ #
403
+ # source://regexp_parser//lib/regexp_parser/expression/base.rb#33
404
+ def quantity; end
405
+
406
+ # @return [Boolean]
407
+ #
408
+ # source://regexp_parser//lib/regexp_parser/expression/base.rb#58
409
+ def reluctant?; end
410
+
411
+ # source://regexp_parser//lib/regexp_parser/expression/base.rb#38
412
+ def repetitions; end
413
+
414
+ # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9
415
+ def set_level; end
416
+
417
+ # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9
418
+ def set_level=(_arg0); end
419
+
420
+ # %l Level (depth) of the expression. Returns 'root' for the root
421
+ # expression, returns zero or higher for all others.
422
+ #
423
+ # %> Indentation at expression's level.
424
+ #
425
+ # %x Index of the expression at its depth. Available when using
426
+ # the sprintf_tree method only.
427
+ #
428
+ # %s Start offset within the whole expression.
429
+ # %e End offset within the whole expression.
430
+ # %S Length of expression.
431
+ #
432
+ # %o Coded offset and length, same as '@%s+%S'
433
+ #
434
+ # %y Type of expression.
435
+ # %k Token of expression.
436
+ # %i ID, same as '%y:%k'
437
+ # %c Class name
438
+ #
439
+ # %q Quantifier info, as {m[,M]}
440
+ # %Q Quantifier text
441
+ #
442
+ # %z Quantifier min
443
+ # %Z Quantifier max
444
+ #
445
+ # %t Base text of the expression (excludes quantifier, if any)
446
+ # %~t Full text if the expression is terminal, otherwise %i
447
+ # %T Full text of the expression (includes quantifier, if any)
448
+ #
449
+ # %b Basic info, same as '%o %i'
450
+ # %m Most info, same as '%b %q'
451
+ # %a All info, same as '%m %t'
452
+ #
453
+ # source://regexp_parser//lib/regexp_parser/expression/methods/strfregexp.rb#37
454
+ def strfre(format = T.unsafe(nil), indent_offset = T.unsafe(nil), index = T.unsafe(nil)); end
455
+
456
+ # %l Level (depth) of the expression. Returns 'root' for the root
457
+ # expression, returns zero or higher for all others.
458
+ #
459
+ # %> Indentation at expression's level.
460
+ #
461
+ # %x Index of the expression at its depth. Available when using
462
+ # the sprintf_tree method only.
463
+ #
464
+ # %s Start offset within the whole expression.
465
+ # %e End offset within the whole expression.
466
+ # %S Length of expression.
467
+ #
468
+ # %o Coded offset and length, same as '@%s+%S'
469
+ #
470
+ # %y Type of expression.
471
+ # %k Token of expression.
472
+ # %i ID, same as '%y:%k'
473
+ # %c Class name
474
+ #
475
+ # %q Quantifier info, as {m[,M]}
476
+ # %Q Quantifier text
477
+ #
478
+ # %z Quantifier min
479
+ # %Z Quantifier max
480
+ #
481
+ # %t Base text of the expression (excludes quantifier, if any)
482
+ # %~t Full text if the expression is terminal, otherwise %i
483
+ # %T Full text of the expression (includes quantifier, if any)
484
+ #
485
+ # %b Basic info, same as '%o %i'
486
+ # %m Most info, same as '%b %q'
487
+ # %a All info, same as '%m %t'
488
+ #
489
+ # source://regexp_parser//lib/regexp_parser/expression/methods/strfregexp.rb#37
490
+ def strfregexp(format = T.unsafe(nil), indent_offset = T.unsafe(nil), index = T.unsafe(nil)); end
491
+
492
+ # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9
493
+ def te; end
494
+
495
+ # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9
496
+ def te=(_arg0); end
497
+
498
+ # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9
499
+ def text; end
500
+
501
+ # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9
502
+ def text=(_arg0); end
503
+
504
+ # source://regexp_parser//lib/regexp_parser/expression/base.rb#67
505
+ def to_h; end
506
+
507
+ # source://regexp_parser//lib/regexp_parser/expression/base.rb#16
508
+ def to_re(format = T.unsafe(nil)); end
509
+
510
+ # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9
511
+ def token; end
512
+
513
+ # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9
514
+ def token=(_arg0); end
515
+
516
+ # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9
517
+ def ts; end
518
+
519
+ # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9
520
+ def ts=(_arg0); end
521
+
522
+ # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9
523
+ def type; end
524
+
525
+ # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9
526
+ def type=(_arg0); end
527
+
528
+ # @return [Boolean]
529
+ #
530
+ # source://regexp_parser//lib/regexp_parser/expression/methods/options.rb#30
531
+ def u?; end
532
+
533
+ # @return [Boolean]
534
+ #
535
+ # source://regexp_parser//lib/regexp_parser/expression/methods/options.rb#30
536
+ def unicode_classes?; end
537
+
538
+ # source://regexp_parser//lib/regexp_parser/expression/base.rb#28
539
+ def unquantified_clone; end
540
+
541
+ # @return [Boolean]
542
+ #
543
+ # source://regexp_parser//lib/regexp_parser/expression/methods/options.rb#14
544
+ def x?; end
545
+
546
+ private
547
+
548
+ # source://regexp_parser//lib/regexp_parser/expression/base.rb#9
549
+ def initialize_copy(orig); end
550
+ end
551
+
552
+ # source://regexp_parser//lib/regexp_parser/expression/classes/character_set.rb#2
553
+ class Regexp::Expression::CharacterSet < ::Regexp::Expression::Subexpression
554
+ # @return [CharacterSet] a new instance of CharacterSet
555
+ #
556
+ # source://regexp_parser//lib/regexp_parser/expression/classes/character_set.rb#9
557
+ def initialize(token, options = T.unsafe(nil)); end
558
+
559
+ # source://regexp_parser//lib/regexp_parser/expression/classes/character_set.rb#19
560
+ def close; end
561
+
562
+ # Returns the value of attribute closed.
563
+ #
564
+ # source://regexp_parser//lib/regexp_parser/expression/classes/character_set.rb#3
565
+ def closed; end
566
+
567
+ # Sets the attribute closed
568
+ #
569
+ # @param value the value to set the attribute closed to.
570
+ #
571
+ # source://regexp_parser//lib/regexp_parser/expression/classes/character_set.rb#3
572
+ def closed=(_arg0); end
573
+
574
+ # Returns the value of attribute closed.
575
+ #
576
+ # source://regexp_parser//lib/regexp_parser/expression/classes/character_set.rb#3
577
+ def closed?; end
578
+
579
+ # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#94
580
+ def match_length; end
581
+
582
+ # source://regexp_parser//lib/regexp_parser/expression/classes/character_set.rb#15
583
+ def negate; end
584
+
585
+ # Returns the value of attribute negative.
586
+ #
587
+ # source://regexp_parser//lib/regexp_parser/expression/classes/character_set.rb#3
588
+ def negated?; end
589
+
590
+ # Returns the value of attribute negative.
591
+ #
592
+ # source://regexp_parser//lib/regexp_parser/expression/classes/character_set.rb#3
593
+ def negative; end
594
+
595
+ # Sets the attribute negative
596
+ #
597
+ # @param value the value to set the attribute negative to.
598
+ #
599
+ # source://regexp_parser//lib/regexp_parser/expression/classes/character_set.rb#3
600
+ def negative=(_arg0); end
601
+
602
+ # Returns the value of attribute negative.
603
+ #
604
+ # source://regexp_parser//lib/regexp_parser/expression/classes/character_set.rb#3
605
+ def negative?; end
606
+
607
+ # source://regexp_parser//lib/regexp_parser/expression/classes/character_set.rb#23
608
+ def parts; end
609
+ end
610
+
611
+ # source://regexp_parser//lib/regexp_parser/expression/classes/character_set/intersection.rb#3
612
+ class Regexp::Expression::CharacterSet::IntersectedSequence < ::Regexp::Expression::Sequence
613
+ # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#29
614
+ def human_name; end
615
+
616
+ # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#94
617
+ def match_length; end
618
+ end
619
+
620
+ # source://regexp_parser//lib/regexp_parser/expression/classes/character_set/intersection.rb#5
621
+ class Regexp::Expression::CharacterSet::Intersection < ::Regexp::Expression::SequenceOperation
622
+ # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#30
623
+ def human_name; end
624
+
625
+ # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#94
626
+ def match_length; end
627
+ end
628
+
629
+ # source://regexp_parser//lib/regexp_parser/expression/classes/character_set/intersection.rb#6
630
+ Regexp::Expression::CharacterSet::Intersection::OPERAND = Regexp::Expression::CharacterSet::IntersectedSequence
631
+
632
+ # source://regexp_parser//lib/regexp_parser/expression/classes/character_set/range.rb#3
633
+ class Regexp::Expression::CharacterSet::Range < ::Regexp::Expression::Subexpression
634
+ # source://regexp_parser//lib/regexp_parser/expression/classes/character_set/range.rb#9
635
+ def <<(exp); end
636
+
637
+ # @return [Boolean]
638
+ #
639
+ # source://regexp_parser//lib/regexp_parser/expression/classes/character_set/range.rb#15
640
+ def complete?; end
641
+
642
+ # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#31
643
+ def human_name; end
644
+
645
+ # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#94
646
+ def match_length; end
647
+
648
+ # source://regexp_parser//lib/regexp_parser/expression/classes/character_set/range.rb#19
649
+ def parts; end
650
+
651
+ # source://regexp_parser//lib/regexp_parser/expression/classes/character_set/range.rb#4
652
+ def starts_at; end
653
+
654
+ # source://regexp_parser//lib/regexp_parser/expression/classes/character_set/range.rb#4
655
+ def ts; end
656
+ end
657
+
658
+ # source://regexp_parser//lib/regexp_parser/expression/classes/character_type.rb#2
659
+ module Regexp::Expression::CharacterType; end
660
+
661
+ # source://regexp_parser//lib/regexp_parser/expression/classes/character_type.rb#5
662
+ class Regexp::Expression::CharacterType::Any < ::Regexp::Expression::CharacterType::Base
663
+ # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#32
664
+ def human_name; end
665
+ end
666
+
667
+ # source://regexp_parser//lib/regexp_parser/expression/classes/character_type.rb#3
668
+ class Regexp::Expression::CharacterType::Base < ::Regexp::Expression::Base
669
+ # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#94
670
+ def match_length; end
671
+ end
672
+
673
+ # source://regexp_parser//lib/regexp_parser/expression/classes/character_type.rb#6
674
+ class Regexp::Expression::CharacterType::Digit < ::Regexp::Expression::CharacterType::Base; end
675
+
676
+ # source://regexp_parser//lib/regexp_parser/expression/classes/character_type.rb#15
677
+ class Regexp::Expression::CharacterType::ExtendedGrapheme < ::Regexp::Expression::CharacterType::Base; end
678
+
679
+ # source://regexp_parser//lib/regexp_parser/expression/classes/character_type.rb#8
680
+ class Regexp::Expression::CharacterType::Hex < ::Regexp::Expression::CharacterType::Base; end
681
+
682
+ # source://regexp_parser//lib/regexp_parser/expression/classes/character_type.rb#14
683
+ class Regexp::Expression::CharacterType::Linebreak < ::Regexp::Expression::CharacterType::Base; end
684
+
685
+ # source://regexp_parser//lib/regexp_parser/expression/classes/character_type.rb#7
686
+ class Regexp::Expression::CharacterType::NonDigit < ::Regexp::Expression::CharacterType::Base; end
687
+
688
+ # source://regexp_parser//lib/regexp_parser/expression/classes/character_type.rb#9
689
+ class Regexp::Expression::CharacterType::NonHex < ::Regexp::Expression::CharacterType::Base; end
690
+
691
+ # source://regexp_parser//lib/regexp_parser/expression/classes/character_type.rb#13
692
+ class Regexp::Expression::CharacterType::NonSpace < ::Regexp::Expression::CharacterType::Base; end
693
+
694
+ # source://regexp_parser//lib/regexp_parser/expression/classes/character_type.rb#11
695
+ class Regexp::Expression::CharacterType::NonWord < ::Regexp::Expression::CharacterType::Base; end
696
+
697
+ # source://regexp_parser//lib/regexp_parser/expression/classes/character_type.rb#12
698
+ class Regexp::Expression::CharacterType::Space < ::Regexp::Expression::CharacterType::Base; end
699
+
700
+ # source://regexp_parser//lib/regexp_parser/expression/classes/character_type.rb#10
701
+ class Regexp::Expression::CharacterType::Word < ::Regexp::Expression::CharacterType::Base; end
702
+
703
+ # source://regexp_parser//lib/regexp_parser/expression/classes/free_space.rb#8
704
+ class Regexp::Expression::Comment < ::Regexp::Expression::FreeSpace
705
+ # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#33
706
+ def human_name; end
707
+ end
708
+
709
+ # source://regexp_parser//lib/regexp_parser/expression/classes/conditional.rb#2
710
+ module Regexp::Expression::Conditional; end
711
+
712
+ # source://regexp_parser//lib/regexp_parser/expression/classes/conditional.rb#25
713
+ class Regexp::Expression::Conditional::Branch < ::Regexp::Expression::Sequence
714
+ # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#34
715
+ def human_name; end
716
+ end
717
+
718
+ # source://regexp_parser//lib/regexp_parser/expression/classes/conditional.rb#9
719
+ class Regexp::Expression::Conditional::Condition < ::Regexp::Expression::Base
720
+ # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#35
721
+ def human_name; end
722
+
723
+ # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#144
724
+ def match_length; end
725
+
726
+ # Name or number of the referenced capturing group that determines state.
727
+ # Returns a String if reference is by name, Integer if by number.
728
+ #
729
+ # source://regexp_parser//lib/regexp_parser/expression/classes/conditional.rb#14
730
+ def reference; end
731
+
732
+ # Returns the value of attribute referenced_expression.
733
+ #
734
+ # source://regexp_parser//lib/regexp_parser/expression/classes/conditional.rb#10
735
+ def referenced_expression; end
736
+
737
+ # Sets the attribute referenced_expression
738
+ #
739
+ # @param value the value to set the attribute referenced_expression to.
740
+ #
741
+ # source://regexp_parser//lib/regexp_parser/expression/classes/conditional.rb#10
742
+ def referenced_expression=(_arg0); end
743
+
744
+ private
745
+
746
+ # source://regexp_parser//lib/regexp_parser/expression/classes/conditional.rb#19
747
+ def initialize_copy(orig); end
748
+ end
749
+
750
+ # source://regexp_parser//lib/regexp_parser/expression/classes/conditional.rb#27
751
+ class Regexp::Expression::Conditional::Expression < ::Regexp::Expression::Subexpression
752
+ # source://regexp_parser//lib/regexp_parser/expression/classes/conditional.rb#30
753
+ def <<(exp); end
754
+
755
+ # @raise [TooManyBranches]
756
+ #
757
+ # source://regexp_parser//lib/regexp_parser/expression/classes/conditional.rb#34
758
+ def add_sequence(active_opts = T.unsafe(nil)); end
759
+
760
+ # @raise [TooManyBranches]
761
+ #
762
+ # source://regexp_parser//lib/regexp_parser/expression/classes/conditional.rb#34
763
+ def branch(active_opts = T.unsafe(nil)); end
764
+
765
+ # source://regexp_parser//lib/regexp_parser/expression/classes/conditional.rb#50
766
+ def branches; end
767
+
768
+ # source://regexp_parser//lib/regexp_parser/expression/classes/conditional.rb#46
769
+ def condition; end
770
+
771
+ # source://regexp_parser//lib/regexp_parser/expression/classes/conditional.rb#41
772
+ def condition=(exp); end
773
+
774
+ # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#36
775
+ def human_name; end
776
+
777
+ # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#127
778
+ def match_length; end
779
+
780
+ # source://regexp_parser//lib/regexp_parser/expression/classes/conditional.rb#58
781
+ def parts; end
782
+
783
+ # source://regexp_parser//lib/regexp_parser/expression/classes/conditional.rb#54
784
+ def reference; end
785
+
786
+ # Returns the value of attribute referenced_expression.
787
+ #
788
+ # source://regexp_parser//lib/regexp_parser/expression/classes/conditional.rb#28
789
+ def referenced_expression; end
790
+
791
+ # Sets the attribute referenced_expression
792
+ #
793
+ # @param value the value to set the attribute referenced_expression to.
794
+ #
795
+ # source://regexp_parser//lib/regexp_parser/expression/classes/conditional.rb#28
796
+ def referenced_expression=(_arg0); end
797
+
798
+ private
799
+
800
+ # source://regexp_parser//lib/regexp_parser/expression/classes/conditional.rb#62
801
+ def initialize_copy(orig); end
802
+ end
803
+
804
+ # source://regexp_parser//lib/regexp_parser/expression/classes/conditional.rb#3
805
+ class Regexp::Expression::Conditional::TooManyBranches < ::Regexp::Parser::Error
806
+ # @return [TooManyBranches] a new instance of TooManyBranches
807
+ #
808
+ # source://regexp_parser//lib/regexp_parser/expression/classes/conditional.rb#4
809
+ def initialize; end
810
+ end
811
+
812
+ # TODO: unify naming with Token::Escape, one way or the other, in v3.0.0
813
+ #
814
+ # source://regexp_parser//lib/regexp_parser/expression/classes/escape_sequence.rb#3
815
+ module Regexp::Expression::EscapeSequence; end
816
+
817
+ # source://regexp_parser//lib/regexp_parser/expression/classes/escape_sequence.rb#64
818
+ class Regexp::Expression::EscapeSequence::AbstractMetaControlSequence < ::Regexp::Expression::EscapeSequence::Base
819
+ # source://regexp_parser//lib/regexp_parser/expression/classes/escape_sequence.rb#65
820
+ def char; end
821
+
822
+ private
823
+
824
+ # source://regexp_parser//lib/regexp_parser/expression/classes/escape_sequence.rb#71
825
+ def control_sequence_to_s(control_sequence); end
826
+
827
+ # source://regexp_parser//lib/regexp_parser/expression/classes/escape_sequence.rb#76
828
+ def meta_char_to_codepoint(meta_char); end
829
+ end
830
+
831
+ # source://regexp_parser//lib/regexp_parser/expression/classes/escape_sequence.rb#28
832
+ class Regexp::Expression::EscapeSequence::AsciiEscape < ::Regexp::Expression::EscapeSequence::Base; end
833
+
834
+ # source://regexp_parser//lib/regexp_parser/expression/classes/escape_sequence.rb#29
835
+ class Regexp::Expression::EscapeSequence::Backspace < ::Regexp::Expression::EscapeSequence::Base; end
836
+
837
+ # source://regexp_parser//lib/regexp_parser/expression/classes/escape_sequence.rb#4
838
+ class Regexp::Expression::EscapeSequence::Base < ::Regexp::Expression::Base
839
+ # source://regexp_parser//lib/regexp_parser/expression/classes/escape_sequence.rb#10
840
+ def char; end
841
+
842
+ # source://regexp_parser//lib/regexp_parser/expression/classes/escape_sequence.rb#5
843
+ def codepoint; end
844
+
845
+ # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#94
846
+ def match_length; end
847
+ end
848
+
849
+ # source://regexp_parser//lib/regexp_parser/expression/classes/escape_sequence.rb#30
850
+ class Regexp::Expression::EscapeSequence::Bell < ::Regexp::Expression::EscapeSequence::Base; end
851
+
852
+ # source://regexp_parser//lib/regexp_parser/expression/classes/escape_sequence.rb#38
853
+ class Regexp::Expression::EscapeSequence::Codepoint < ::Regexp::Expression::EscapeSequence::Base; end
854
+
855
+ # source://regexp_parser//lib/regexp_parser/expression/classes/escape_sequence.rb#40
856
+ class Regexp::Expression::EscapeSequence::CodepointList < ::Regexp::Expression::EscapeSequence::Base
857
+ # @raise [NoMethodError]
858
+ #
859
+ # source://regexp_parser//lib/regexp_parser/expression/classes/escape_sequence.rb#41
860
+ def char; end
861
+
862
+ # source://regexp_parser//lib/regexp_parser/expression/classes/escape_sequence.rb#49
863
+ def chars; end
864
+
865
+ # @raise [NoMethodError]
866
+ #
867
+ # source://regexp_parser//lib/regexp_parser/expression/classes/escape_sequence.rb#45
868
+ def codepoint; end
869
+
870
+ # source://regexp_parser//lib/regexp_parser/expression/classes/escape_sequence.rb#53
871
+ def codepoints; end
872
+
873
+ # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#160
874
+ def match_length; end
875
+ end
876
+
877
+ # source://regexp_parser//lib/regexp_parser/expression/classes/escape_sequence.rb#82
878
+ class Regexp::Expression::EscapeSequence::Control < ::Regexp::Expression::EscapeSequence::AbstractMetaControlSequence
879
+ # source://regexp_parser//lib/regexp_parser/expression/classes/escape_sequence.rb#83
880
+ def codepoint; end
881
+ end
882
+
883
+ # source://regexp_parser//lib/regexp_parser/expression/classes/escape_sequence.rb#31
884
+ class Regexp::Expression::EscapeSequence::FormFeed < ::Regexp::Expression::EscapeSequence::Base; end
885
+
886
+ # source://regexp_parser//lib/regexp_parser/expression/classes/escape_sequence.rb#37
887
+ class Regexp::Expression::EscapeSequence::Hex < ::Regexp::Expression::EscapeSequence::Base; end
888
+
889
+ # source://regexp_parser//lib/regexp_parser/expression/classes/escape_sequence.rb#22
890
+ class Regexp::Expression::EscapeSequence::Literal < ::Regexp::Expression::EscapeSequence::Base
891
+ # source://regexp_parser//lib/regexp_parser/expression/classes/escape_sequence.rb#23
892
+ def char; end
893
+ end
894
+
895
+ # source://regexp_parser//lib/regexp_parser/expression/classes/escape_sequence.rb#88
896
+ class Regexp::Expression::EscapeSequence::Meta < ::Regexp::Expression::EscapeSequence::AbstractMetaControlSequence
897
+ # source://regexp_parser//lib/regexp_parser/expression/classes/escape_sequence.rb#89
898
+ def codepoint; end
899
+ end
900
+
901
+ # source://regexp_parser//lib/regexp_parser/expression/classes/escape_sequence.rb#94
902
+ class Regexp::Expression::EscapeSequence::MetaControl < ::Regexp::Expression::EscapeSequence::AbstractMetaControlSequence
903
+ # source://regexp_parser//lib/regexp_parser/expression/classes/escape_sequence.rb#95
904
+ def codepoint; end
905
+ end
906
+
907
+ # source://regexp_parser//lib/regexp_parser/expression/classes/escape_sequence.rb#32
908
+ class Regexp::Expression::EscapeSequence::Newline < ::Regexp::Expression::EscapeSequence::Base; end
909
+
910
+ # source://regexp_parser//lib/regexp_parser/expression/classes/escape_sequence.rb#58
911
+ class Regexp::Expression::EscapeSequence::Octal < ::Regexp::Expression::EscapeSequence::Base
912
+ # source://regexp_parser//lib/regexp_parser/expression/classes/escape_sequence.rb#59
913
+ def char; end
914
+ end
915
+
916
+ # source://regexp_parser//lib/regexp_parser/expression/classes/escape_sequence.rb#33
917
+ class Regexp::Expression::EscapeSequence::Return < ::Regexp::Expression::EscapeSequence::Base; end
918
+
919
+ # source://regexp_parser//lib/regexp_parser/expression/classes/escape_sequence.rb#34
920
+ class Regexp::Expression::EscapeSequence::Tab < ::Regexp::Expression::EscapeSequence::Base; end
921
+
922
+ # source://regexp_parser//lib/regexp_parser/expression/classes/escape_sequence.rb#35
923
+ class Regexp::Expression::EscapeSequence::VerticalTab < ::Regexp::Expression::EscapeSequence::Base; end
924
+
925
+ # source://regexp_parser//lib/regexp_parser/expression/classes/free_space.rb#2
926
+ class Regexp::Expression::FreeSpace < ::Regexp::Expression::Base
927
+ # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#144
928
+ def match_length; end
929
+
930
+ # @raise [Regexp::Parser::Error]
931
+ #
932
+ # source://regexp_parser//lib/regexp_parser/expression/classes/free_space.rb#3
933
+ def quantify(*_args); end
934
+ end
935
+
936
+ # source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#2
937
+ module Regexp::Expression::Group; end
938
+
939
+ # source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#34
940
+ class Regexp::Expression::Group::Absence < ::Regexp::Expression::Group::Base
941
+ # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#168
942
+ def match_length; end
943
+ end
944
+
945
+ # source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#35
946
+ class Regexp::Expression::Group::Atomic < ::Regexp::Expression::Group::Base; end
947
+
948
+ # source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#3
949
+ class Regexp::Expression::Group::Base < ::Regexp::Expression::Subexpression
950
+ # @return [Boolean]
951
+ #
952
+ # source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#8
953
+ def capturing?; end
954
+
955
+ # @return [Boolean]
956
+ #
957
+ # source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#10
958
+ def comment?; end
959
+
960
+ # source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#4
961
+ def parts; end
962
+ end
963
+
964
+ # source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#55
965
+ class Regexp::Expression::Group::Capture < ::Regexp::Expression::Group::Base
966
+ # @return [Boolean]
967
+ #
968
+ # source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#59
969
+ def capturing?; end
970
+
971
+ # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#37
972
+ def human_name; end
973
+
974
+ # Returns the value of attribute number.
975
+ #
976
+ # source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#56
977
+ def identifier; end
978
+
979
+ # Returns the value of attribute number.
980
+ #
981
+ # source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#56
982
+ def number; end
983
+
984
+ # Sets the attribute number
985
+ #
986
+ # @param value the value to set the attribute number to.
987
+ #
988
+ # source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#56
989
+ def number=(_arg0); end
990
+
991
+ # Returns the value of attribute number_at_level.
992
+ #
993
+ # source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#56
994
+ def number_at_level; end
995
+
996
+ # Sets the attribute number_at_level
997
+ #
998
+ # @param value the value to set the attribute number_at_level to.
999
+ #
1000
+ # source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#56
1001
+ def number_at_level=(_arg0); end
1002
+ end
1003
+
1004
+ # source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#77
1005
+ class Regexp::Expression::Group::Comment < ::Regexp::Expression::Group::Base
1006
+ # @return [Boolean]
1007
+ #
1008
+ # source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#82
1009
+ def comment?; end
1010
+
1011
+ # source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#78
1012
+ def parts; end
1013
+ end
1014
+
1015
+ # source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#62
1016
+ class Regexp::Expression::Group::Named < ::Regexp::Expression::Group::Capture
1017
+ # @return [Named] a new instance of Named
1018
+ #
1019
+ # source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#66
1020
+ def initialize(token, options = T.unsafe(nil)); end
1021
+
1022
+ # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#38
1023
+ def human_name; end
1024
+
1025
+ # Returns the value of attribute name.
1026
+ #
1027
+ # source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#63
1028
+ def identifier; end
1029
+
1030
+ # Returns the value of attribute name.
1031
+ #
1032
+ # source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#63
1033
+ def name; end
1034
+
1035
+ private
1036
+
1037
+ # source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#71
1038
+ def initialize_copy(orig); end
1039
+ end
1040
+
1041
+ # TODO: should split off OptionsSwitch in v3.0.0. Maybe even make it no
1042
+ # longer inherit from Group because it is effectively a terminal expression.
1043
+ #
1044
+ # source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#38
1045
+ class Regexp::Expression::Group::Options < ::Regexp::Expression::Group::Base
1046
+ # Returns the value of attribute option_changes.
1047
+ #
1048
+ # source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#39
1049
+ def option_changes; end
1050
+
1051
+ # Sets the attribute option_changes
1052
+ #
1053
+ # @param value the value to set the attribute option_changes to.
1054
+ #
1055
+ # source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#39
1056
+ def option_changes=(_arg0); end
1057
+
1058
+ # source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#46
1059
+ def quantify(*args); end
1060
+
1061
+ private
1062
+
1063
+ # source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#41
1064
+ def initialize_copy(orig); end
1065
+ end
1066
+
1067
+ # source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#13
1068
+ class Regexp::Expression::Group::Passive < ::Regexp::Expression::Group::Base
1069
+ # @return [Passive] a new instance of Passive
1070
+ #
1071
+ # source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#16
1072
+ def initialize(*_arg0); end
1073
+
1074
+ # Sets the attribute implicit
1075
+ #
1076
+ # @param value the value to set the attribute implicit to.
1077
+ #
1078
+ # source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#14
1079
+ def implicit=(_arg0); end
1080
+
1081
+ # @return [Boolean]
1082
+ #
1083
+ # source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#29
1084
+ def implicit?; end
1085
+
1086
+ # source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#21
1087
+ def parts; end
1088
+ end
1089
+
1090
+ # source://regexp_parser//lib/regexp_parser/expression/classes/keep.rb#2
1091
+ module Regexp::Expression::Keep; end
1092
+
1093
+ # TOOD: in regexp_parser v3.0.0 this should possibly be a Subexpression
1094
+ # that contains all expressions to its left.
1095
+ #
1096
+ # source://regexp_parser//lib/regexp_parser/expression/classes/keep.rb#5
1097
+ class Regexp::Expression::Keep::Mark < ::Regexp::Expression::Base
1098
+ # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#39
1099
+ def human_name; end
1100
+
1101
+ # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#144
1102
+ def match_length; end
1103
+ end
1104
+
1105
+ # source://regexp_parser//lib/regexp_parser/expression/classes/literal.rb#2
1106
+ class Regexp::Expression::Literal < ::Regexp::Expression::Base
1107
+ # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#40
1108
+ def human_name; end
1109
+
1110
+ # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#101
1111
+ def match_length; end
1112
+ end
1113
+
1114
+ # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#81
1115
+ Regexp::Expression::MatchLength = Regexp::MatchLength
1116
+
1117
+ # source://regexp_parser//lib/regexp_parser/expression/classes/posix_class.rb#2
1118
+ class Regexp::Expression::PosixClass < ::Regexp::Expression::Base
1119
+ # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#94
1120
+ def match_length; end
1121
+
1122
+ # source://regexp_parser//lib/regexp_parser/expression/classes/posix_class.rb#7
1123
+ def name; end
1124
+
1125
+ # @return [Boolean]
1126
+ #
1127
+ # source://regexp_parser//lib/regexp_parser/expression/classes/posix_class.rb#3
1128
+ def negative?; end
1129
+ end
1130
+
1131
+ # TODO: in v3.0.0, maybe put Shared back into Base, and inherit from Base and
1132
+ # call super in #initialize, but raise in #quantifier= and #quantify,
1133
+ # or introduce an Expression::Quantifiable intermediate class.
1134
+ # Or actually allow chaining as a more concise but tricky solution than PR#69.
1135
+ #
1136
+ # source://regexp_parser//lib/regexp_parser/expression/quantifier.rb#6
1137
+ class Regexp::Expression::Quantifier
1138
+ include ::Regexp::Expression::Shared
1139
+ extend ::Regexp::Expression::Shared::ClassMethods
1140
+
1141
+ # @return [Quantifier] a new instance of Quantifier
1142
+ #
1143
+ # source://regexp_parser//lib/regexp_parser/expression/quantifier.rb#13
1144
+ def initialize(*args); end
1145
+
1146
+ # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9
1147
+ def conditional_level; end
1148
+
1149
+ # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9
1150
+ def conditional_level=(_arg0); end
1151
+
1152
+ # source://regexp_parser//lib/regexp_parser/expression/quantifier.rb#35
1153
+ def greedy?; end
1154
+
1155
+ # source://regexp_parser//lib/regexp_parser/expression/quantifier.rb#35
1156
+ def lazy?; end
1157
+
1158
+ # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9
1159
+ def level; end
1160
+
1161
+ # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9
1162
+ def level=(_arg0); end
1163
+
1164
+ # Returns the value of attribute max.
1165
+ #
1166
+ # source://regexp_parser//lib/regexp_parser/expression/quantifier.rb#11
1167
+ def max; end
1168
+
1169
+ # Returns the value of attribute min.
1170
+ #
1171
+ # source://regexp_parser//lib/regexp_parser/expression/quantifier.rb#11
1172
+ def min; end
1173
+
1174
+ # Returns the value of attribute mode.
1175
+ #
1176
+ # source://regexp_parser//lib/regexp_parser/expression/quantifier.rb#11
1177
+ def mode; end
1178
+
1179
+ # source://regexp_parser//lib/regexp_parser/expression/shared.rb#13
1180
+ def nesting_level; end
1181
+
1182
+ # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9
1183
+ def options; end
1184
+
1185
+ # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9
1186
+ def options=(_arg0); end
1187
+
1188
+ # source://regexp_parser//lib/regexp_parser/expression/quantifier.rb#35
1189
+ def possessive?; end
1190
+
1191
+ # source://regexp_parser//lib/regexp_parser/expression/shared.rb#13
1192
+ def quantifier; end
1193
+
1194
+ # source://regexp_parser//lib/regexp_parser/expression/quantifier.rb#35
1195
+ def reluctant?; end
1196
+
1197
+ # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9
1198
+ def set_level; end
1199
+
1200
+ # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9
1201
+ def set_level=(_arg0); end
1202
+
1203
+ # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9
1204
+ def te; end
1205
+
1206
+ # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9
1207
+ def te=(_arg0); end
1208
+
1209
+ # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9
1210
+ def text; end
1211
+
1212
+ # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9
1213
+ def text=(_arg0); end
1214
+
1215
+ # source://regexp_parser//lib/regexp_parser/expression/quantifier.rb#23
1216
+ def to_h; end
1217
+
1218
+ # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9
1219
+ def token; end
1220
+
1221
+ # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9
1222
+ def token=(_arg0); end
1223
+
1224
+ # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9
1225
+ def ts; end
1226
+
1227
+ # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9
1228
+ def ts=(_arg0); end
1229
+
1230
+ # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9
1231
+ def type; end
1232
+
1233
+ # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9
1234
+ def type=(_arg0); end
1235
+
1236
+ private
1237
+
1238
+ # source://regexp_parser//lib/regexp_parser/expression/quantifier.rb#44
1239
+ def deprecated_old_init(token, text, min, max, mode = T.unsafe(nil)); end
1240
+
1241
+ # source://regexp_parser//lib/regexp_parser/expression/quantifier.rb#59
1242
+ def minmax; end
1243
+ end
1244
+
1245
+ # source://regexp_parser//lib/regexp_parser/expression/quantifier.rb#9
1246
+ Regexp::Expression::Quantifier::MODES = T.let(T.unsafe(nil), Array)
1247
+
1248
+ # source://regexp_parser//lib/regexp_parser/expression/classes/root.rb#2
1249
+ class Regexp::Expression::Root < ::Regexp::Expression::Subexpression
1250
+ # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#41
1251
+ def human_name; end
1252
+
1253
+ class << self
1254
+ # source://regexp_parser//lib/regexp_parser/expression/classes/root.rb#3
1255
+ def build(options = T.unsafe(nil)); end
1256
+ end
1257
+ end
1258
+
1259
+ # A sequence of expressions. Differs from a Subexpressions by how it handles
1260
+ # quantifiers, as it applies them to its last element instead of itself as
1261
+ # a whole subexpression.
1262
+ #
1263
+ # Used as the base class for the Alternation alternatives, Conditional
1264
+ # branches, and CharacterSet::Intersection intersected sequences.
1265
+ #
1266
+ # source://regexp_parser//lib/regexp_parser/expression/sequence.rb#8
1267
+ class Regexp::Expression::Sequence < ::Regexp::Expression::Subexpression
1268
+ # source://regexp_parser//lib/regexp_parser/expression/sequence.rb#28
1269
+ def quantify(*args); end
1270
+
1271
+ # source://regexp_parser//lib/regexp_parser/expression/sequence.rb#23
1272
+ def starts_at; end
1273
+
1274
+ # source://regexp_parser//lib/regexp_parser/expression/sequence.rb#23
1275
+ def ts; end
1276
+
1277
+ class << self
1278
+ # source://regexp_parser//lib/regexp_parser/expression/sequence.rb#10
1279
+ def add_to(exp, params = T.unsafe(nil), active_opts = T.unsafe(nil)); end
1280
+ end
1281
+ end
1282
+
1283
+ # abstract class
1284
+ #
1285
+ # source://regexp_parser//lib/regexp_parser/expression/sequence_operation.rb#3
1286
+ class Regexp::Expression::SequenceOperation < ::Regexp::Expression::Subexpression
1287
+ # source://regexp_parser//lib/regexp_parser/expression/sequence_operation.rb#13
1288
+ def <<(exp); end
1289
+
1290
+ # source://regexp_parser//lib/regexp_parser/expression/sequence_operation.rb#17
1291
+ def add_sequence(active_opts = T.unsafe(nil)); end
1292
+
1293
+ # source://regexp_parser//lib/regexp_parser/expression/subexpression.rb#5
1294
+ def operands; end
1295
+
1296
+ # source://regexp_parser//lib/regexp_parser/expression/shared.rb#9
1297
+ def operator; end
1298
+
1299
+ # source://regexp_parser//lib/regexp_parser/expression/sequence_operation.rb#21
1300
+ def parts; end
1301
+
1302
+ # source://regexp_parser//lib/regexp_parser/expression/subexpression.rb#5
1303
+ def sequences; end
1304
+
1305
+ # source://regexp_parser//lib/regexp_parser/expression/sequence_operation.rb#8
1306
+ def starts_at; end
1307
+
1308
+ # source://regexp_parser//lib/regexp_parser/expression/sequence_operation.rb#8
1309
+ def ts; end
1310
+ end
1311
+
1312
+ # source://regexp_parser//lib/regexp_parser/expression/shared.rb#2
1313
+ module Regexp::Expression::Shared
1314
+ mixes_in_class_methods ::Regexp::Expression::Shared::ClassMethods
1315
+
1316
+ # Deep-compare two expressions for equality.
1317
+ #
1318
+ # source://regexp_parser//lib/regexp_parser/expression/methods/tests.rb#98
1319
+ def ==(other); end
1320
+
1321
+ # Deep-compare two expressions for equality.
1322
+ #
1323
+ # source://regexp_parser//lib/regexp_parser/expression/methods/tests.rb#98
1324
+ def ===(other); end
1325
+
1326
+ # source://regexp_parser//lib/regexp_parser/expression/shared.rb#42
1327
+ def base_length; end
1328
+
1329
+ # source://regexp_parser//lib/regexp_parser/expression/shared.rb#75
1330
+ def coded_offset; end
1331
+
1332
+ # Deep-compare two expressions for equality.
1333
+ #
1334
+ # source://regexp_parser//lib/regexp_parser/expression/methods/tests.rb#98
1335
+ def eql?(other); end
1336
+
1337
+ # source://regexp_parser//lib/regexp_parser/expression/shared.rb#46
1338
+ def full_length; end
1339
+
1340
+ # default implementation, e.g. "atomic group", "hex escape", "word type", ..
1341
+ #
1342
+ # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#4
1343
+ def human_name; end
1344
+
1345
+ # Test if this expression has the given test_token, and optionally a given
1346
+ # test_type.
1347
+ #
1348
+ # # Any expressions
1349
+ # exp.is? :* # always returns true
1350
+ #
1351
+ # # is it a :capture
1352
+ # exp.is? :capture
1353
+ #
1354
+ # # is it a :character and a :set
1355
+ # exp.is? :character, :set
1356
+ #
1357
+ # # is it a :meta :dot
1358
+ # exp.is? :dot, :meta
1359
+ #
1360
+ # # is it a :meta or :escape :dot
1361
+ # exp.is? :dot, [:meta, :escape]
1362
+ #
1363
+ # @return [Boolean]
1364
+ #
1365
+ # source://regexp_parser//lib/regexp_parser/expression/methods/tests.rb#36
1366
+ def is?(test_token, test_type = T.unsafe(nil)); end
1367
+
1368
+ # source://regexp_parser//lib/regexp_parser/expression/shared.rb#83
1369
+ def nesting_level=(lvl); end
1370
+
1371
+ # source://regexp_parser//lib/regexp_parser/expression/shared.rb#71
1372
+ def offset; end
1373
+
1374
+ # Test if this expression matches an entry in the given scope spec.
1375
+ #
1376
+ # A scope spec can be one of:
1377
+ #
1378
+ # . An array: Interpreted as a set of tokens, tested for inclusion
1379
+ # of the expression's token.
1380
+ #
1381
+ # . A hash: Where the key is interpreted as the expression type
1382
+ # and the value is either a symbol or an array. In this
1383
+ # case, when the scope is a hash, one_of? calls itself to
1384
+ # evaluate the key's value.
1385
+ #
1386
+ # . A symbol: matches the expression's token or type, depending on
1387
+ # the level of the call. If one_of? is called directly with
1388
+ # a symbol then it will always be checked against the
1389
+ # type of the expression. If it's being called for a value
1390
+ # from a hash, it will be checked against the token of the
1391
+ # expression.
1392
+ #
1393
+ # # any expression
1394
+ # exp.one_of?(:*) # always true
1395
+ #
1396
+ # # like exp.type?(:group)
1397
+ # exp.one_of?(:group)
1398
+ #
1399
+ # # any expression of type meta
1400
+ # exp.one_of?(:meta => :*)
1401
+ #
1402
+ # # meta dots and alternations
1403
+ # exp.one_of?(:meta => [:dot, :alternation])
1404
+ #
1405
+ # # meta dots and any set tokens
1406
+ # exp.one_of?({meta: [:dot], set: :*})
1407
+ #
1408
+ # @return [Boolean]
1409
+ #
1410
+ # source://regexp_parser//lib/regexp_parser/expression/methods/tests.rb#75
1411
+ def one_of?(scope, top = T.unsafe(nil)); end
1412
+
1413
+ # @return [Boolean]
1414
+ #
1415
+ # source://regexp_parser//lib/regexp_parser/expression/shared.rb#67
1416
+ def optional?; end
1417
+
1418
+ # source://regexp_parser//lib/regexp_parser/expression/shared.rb#55
1419
+ def parts; end
1420
+
1421
+ # @return [Boolean]
1422
+ #
1423
+ # source://regexp_parser//lib/regexp_parser/expression/shared.rb#63
1424
+ def quantified?; end
1425
+
1426
+ # source://regexp_parser//lib/regexp_parser/expression/shared.rb#89
1427
+ def quantifier=(qtf); end
1428
+
1429
+ # source://regexp_parser//lib/regexp_parser/expression/shared.rb#59
1430
+ def quantifier_affix(expression_format); end
1431
+
1432
+ # source://regexp_parser//lib/regexp_parser/expression/shared.rb#38
1433
+ def starts_at; end
1434
+
1435
+ # @return [Boolean]
1436
+ #
1437
+ # source://regexp_parser//lib/regexp_parser/expression/shared.rb#79
1438
+ def terminal?; end
1439
+
1440
+ # source://regexp_parser//lib/regexp_parser/expression/shared.rb#50
1441
+ def to_s(format = T.unsafe(nil)); end
1442
+
1443
+ # source://regexp_parser//lib/regexp_parser/expression/shared.rb#50
1444
+ def to_str(format = T.unsafe(nil)); end
1445
+
1446
+ # source://regexp_parser//lib/regexp_parser/expression/methods/construct.rb#39
1447
+ def token_class; end
1448
+
1449
+ # Test if this expression has the given test_type, which can be either
1450
+ # a symbol or an array of symbols to check against the expression's type.
1451
+ #
1452
+ # # is it a :group expression
1453
+ # exp.type? :group
1454
+ #
1455
+ # # is it a :set, or :meta
1456
+ # exp.type? [:set, :meta]
1457
+ #
1458
+ # @return [Boolean]
1459
+ #
1460
+ # source://regexp_parser//lib/regexp_parser/expression/methods/tests.rb#13
1461
+ def type?(test_type); end
1462
+
1463
+ private
1464
+
1465
+ # source://regexp_parser//lib/regexp_parser/expression/shared.rb#17
1466
+ def init_from_token_and_options(token, options = T.unsafe(nil)); end
1467
+
1468
+ # source://regexp_parser//lib/regexp_parser/expression/shared.rb#31
1469
+ def initialize_copy(orig); end
1470
+
1471
+ class << self
1472
+ # @private
1473
+ #
1474
+ # source://regexp_parser//lib/regexp_parser/expression/shared.rb#5
1475
+ def included(mod); end
1476
+ end
1477
+ end
1478
+
1479
+ # filled in ./methods/*.rb
1480
+ #
1481
+ # source://regexp_parser//lib/regexp_parser/expression/shared.rb#3
1482
+ module Regexp::Expression::Shared::ClassMethods
1483
+ # Convenience method to init a valid Expression without a Regexp::Token
1484
+ #
1485
+ # @raise [ArgumentError]
1486
+ #
1487
+ # source://regexp_parser//lib/regexp_parser/expression/methods/construct.rb#5
1488
+ def construct(params = T.unsafe(nil)); end
1489
+
1490
+ # source://regexp_parser//lib/regexp_parser/expression/methods/construct.rb#15
1491
+ def construct_defaults; end
1492
+
1493
+ # source://regexp_parser//lib/regexp_parser/expression/methods/construct.rb#25
1494
+ def token_class; end
1495
+ end
1496
+
1497
+ # source://regexp_parser//lib/regexp_parser/expression/subexpression.rb#2
1498
+ class Regexp::Expression::Subexpression < ::Regexp::Expression::Base
1499
+ include ::Enumerable
1500
+
1501
+ # @return [Subexpression] a new instance of Subexpression
1502
+ #
1503
+ # source://regexp_parser//lib/regexp_parser/expression/subexpression.rb#7
1504
+ def initialize(token, options = T.unsafe(nil)); end
1505
+
1506
+ # source://regexp_parser//lib/regexp_parser/expression/subexpression.rb#18
1507
+ def <<(exp); end
1508
+
1509
+ # source://regexp_parser//lib/regexp_parser/expression/subexpression.rb#29
1510
+ def [](*args, &block); end
1511
+
1512
+ # source://regexp_parser//lib/regexp_parser/expression/subexpression.rb#29
1513
+ def at(*args, &block); end
1514
+
1515
+ # source://regexp_parser//lib/regexp_parser/expression/subexpression.rb#35
1516
+ def dig(*indices); end
1517
+
1518
+ # source://regexp_parser//lib/regexp_parser/expression/subexpression.rb#29
1519
+ def each(*args, &block); end
1520
+
1521
+ # Iterates over the expressions of this expression as an array, passing
1522
+ # the expression and its index within its parent to the given block.
1523
+ #
1524
+ # source://regexp_parser//lib/regexp_parser/expression/methods/traverse.rb#39
1525
+ def each_expression(include_self = T.unsafe(nil)); end
1526
+
1527
+ # source://regexp_parser//lib/regexp_parser/expression/subexpression.rb#29
1528
+ def empty?(*args, &block); end
1529
+
1530
+ # Returns the value of attribute expressions.
1531
+ #
1532
+ # source://regexp_parser//lib/regexp_parser/expression/subexpression.rb#5
1533
+ def expressions; end
1534
+
1535
+ # Sets the attribute expressions
1536
+ #
1537
+ # @param value the value to set the attribute expressions to.
1538
+ #
1539
+ # source://regexp_parser//lib/regexp_parser/expression/subexpression.rb#5
1540
+ def expressions=(_arg0); end
1541
+
1542
+ # source://regexp_parser//lib/regexp_parser/expression/subexpression.rb#29
1543
+ def fetch(*args, &block); end
1544
+
1545
+ # Returns a new array with the results of calling the given block once
1546
+ # for every expression. If a block is not given, returns an array with
1547
+ # each expression and its level index as an array.
1548
+ #
1549
+ # source://regexp_parser//lib/regexp_parser/expression/methods/traverse.rb#50
1550
+ def flat_map(include_self = T.unsafe(nil)); end
1551
+
1552
+ # source://regexp_parser//lib/regexp_parser/expression/subexpression.rb#29
1553
+ def index(*args, &block); end
1554
+
1555
+ # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#114
1556
+ def inner_match_length; end
1557
+
1558
+ # source://regexp_parser//lib/regexp_parser/expression/subexpression.rb#29
1559
+ def join(*args, &block); end
1560
+
1561
+ # source://regexp_parser//lib/regexp_parser/expression/subexpression.rb#29
1562
+ def last(*args, &block); end
1563
+
1564
+ # source://regexp_parser//lib/regexp_parser/expression/subexpression.rb#29
1565
+ def length(*args, &block); end
1566
+
1567
+ # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#107
1568
+ def match_length; end
1569
+
1570
+ # source://regexp_parser//lib/regexp_parser/expression/subexpression.rb#45
1571
+ def parts; end
1572
+
1573
+ # source://regexp_parser//lib/regexp_parser/expression/methods/strfregexp.rb#102
1574
+ def strfre_tree(format = T.unsafe(nil), include_self = T.unsafe(nil), separator = T.unsafe(nil)); end
1575
+
1576
+ # source://regexp_parser//lib/regexp_parser/expression/methods/strfregexp.rb#102
1577
+ def strfregexp_tree(format = T.unsafe(nil), include_self = T.unsafe(nil), separator = T.unsafe(nil)); end
1578
+
1579
+ # source://regexp_parser//lib/regexp_parser/expression/subexpression.rb#41
1580
+ def te; end
1581
+
1582
+ # source://regexp_parser//lib/regexp_parser/expression/subexpression.rb#49
1583
+ def to_h; end
1584
+
1585
+ # Traverses the subexpression (depth-first, pre-order) and calls the given
1586
+ # block for each expression with three arguments; the traversal event,
1587
+ # the expression, and the index of the expression within its parent.
1588
+ #
1589
+ # The event argument is passed as follows:
1590
+ #
1591
+ # - For subexpressions, :enter upon entering the subexpression, and
1592
+ # :exit upon exiting it.
1593
+ #
1594
+ # - For terminal expressions, :visit is called once.
1595
+ #
1596
+ # Returns self.
1597
+ #
1598
+ # source://regexp_parser//lib/regexp_parser/expression/methods/traverse.rb#16
1599
+ def traverse(include_self = T.unsafe(nil), &block); end
1600
+
1601
+ # source://regexp_parser//lib/regexp_parser/expression/subexpression.rb#29
1602
+ def values_at(*args, &block); end
1603
+
1604
+ # Traverses the subexpression (depth-first, pre-order) and calls the given
1605
+ # block for each expression with three arguments; the traversal event,
1606
+ # the expression, and the index of the expression within its parent.
1607
+ #
1608
+ # The event argument is passed as follows:
1609
+ #
1610
+ # - For subexpressions, :enter upon entering the subexpression, and
1611
+ # :exit upon exiting it.
1612
+ #
1613
+ # - For terminal expressions, :visit is called once.
1614
+ #
1615
+ # Returns self.
1616
+ #
1617
+ # source://regexp_parser//lib/regexp_parser/expression/methods/traverse.rb#16
1618
+ def walk(include_self = T.unsafe(nil), &block); end
1619
+
1620
+ private
1621
+
1622
+ # Override base method to clone the expressions as well.
1623
+ #
1624
+ # source://regexp_parser//lib/regexp_parser/expression/subexpression.rb#13
1625
+ def initialize_copy(orig); end
1626
+
1627
+ # source://regexp_parser//lib/regexp_parser/expression/subexpression.rb#58
1628
+ def intersperse(expressions, separator); end
1629
+ end
1630
+
1631
+ # TODO: unify name with token :property, one way or the other, in v3.0.0
1632
+ #
1633
+ # source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#3
1634
+ module Regexp::Expression::UnicodeProperty; end
1635
+
1636
+ # source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#113
1637
+ class Regexp::Expression::UnicodeProperty::Age < ::Regexp::Expression::UnicodeProperty::Base; end
1638
+
1639
+ # source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#18
1640
+ class Regexp::Expression::UnicodeProperty::Alnum < ::Regexp::Expression::UnicodeProperty::Base; end
1641
+
1642
+ # source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#19
1643
+ class Regexp::Expression::UnicodeProperty::Alpha < ::Regexp::Expression::UnicodeProperty::Base; end
1644
+
1645
+ # source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#36
1646
+ class Regexp::Expression::UnicodeProperty::Any < ::Regexp::Expression::UnicodeProperty::Base; end
1647
+
1648
+ # source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#20
1649
+ class Regexp::Expression::UnicodeProperty::Ascii < ::Regexp::Expression::UnicodeProperty::Base; end
1650
+
1651
+ # source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#37
1652
+ class Regexp::Expression::UnicodeProperty::Assigned < ::Regexp::Expression::UnicodeProperty::Base; end
1653
+
1654
+ # source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#4
1655
+ class Regexp::Expression::UnicodeProperty::Base < ::Regexp::Expression::Base
1656
+ # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#94
1657
+ def match_length; end
1658
+
1659
+ # source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#9
1660
+ def name; end
1661
+
1662
+ # @return [Boolean]
1663
+ #
1664
+ # source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#5
1665
+ def negative?; end
1666
+
1667
+ # source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#13
1668
+ def shortcut; end
1669
+ end
1670
+
1671
+ # source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#21
1672
+ class Regexp::Expression::UnicodeProperty::Blank < ::Regexp::Expression::UnicodeProperty::Base; end
1673
+
1674
+ # source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#117
1675
+ class Regexp::Expression::UnicodeProperty::Block < ::Regexp::Expression::UnicodeProperty::Base; end
1676
+
1677
+ # source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#22
1678
+ class Regexp::Expression::UnicodeProperty::Cntrl < ::Regexp::Expression::UnicodeProperty::Base; end
1679
+
1680
+ # source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#102
1681
+ module Regexp::Expression::UnicodeProperty::Codepoint; end
1682
+
1683
+ # source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#105
1684
+ class Regexp::Expression::UnicodeProperty::Codepoint::Any < ::Regexp::Expression::UnicodeProperty::Codepoint::Base; end
1685
+
1686
+ # source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#103
1687
+ class Regexp::Expression::UnicodeProperty::Codepoint::Base < ::Regexp::Expression::UnicodeProperty::Base; end
1688
+
1689
+ # source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#106
1690
+ class Regexp::Expression::UnicodeProperty::Codepoint::Control < ::Regexp::Expression::UnicodeProperty::Codepoint::Base; end
1691
+
1692
+ # source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#107
1693
+ class Regexp::Expression::UnicodeProperty::Codepoint::Format < ::Regexp::Expression::UnicodeProperty::Codepoint::Base; end
1694
+
1695
+ # source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#109
1696
+ class Regexp::Expression::UnicodeProperty::Codepoint::PrivateUse < ::Regexp::Expression::UnicodeProperty::Codepoint::Base; end
1697
+
1698
+ # source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#108
1699
+ class Regexp::Expression::UnicodeProperty::Codepoint::Surrogate < ::Regexp::Expression::UnicodeProperty::Codepoint::Base; end
1700
+
1701
+ # source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#110
1702
+ class Regexp::Expression::UnicodeProperty::Codepoint::Unassigned < ::Regexp::Expression::UnicodeProperty::Codepoint::Base; end
1703
+
1704
+ # source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#114
1705
+ class Regexp::Expression::UnicodeProperty::Derived < ::Regexp::Expression::UnicodeProperty::Base; end
1706
+
1707
+ # source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#23
1708
+ class Regexp::Expression::UnicodeProperty::Digit < ::Regexp::Expression::UnicodeProperty::Base; end
1709
+
1710
+ # source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#115
1711
+ class Regexp::Expression::UnicodeProperty::Emoji < ::Regexp::Expression::UnicodeProperty::Base; end
1712
+
1713
+ # source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#24
1714
+ class Regexp::Expression::UnicodeProperty::Graph < ::Regexp::Expression::UnicodeProperty::Base; end
1715
+
1716
+ # source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#39
1717
+ module Regexp::Expression::UnicodeProperty::Letter; end
1718
+
1719
+ # source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#42
1720
+ class Regexp::Expression::UnicodeProperty::Letter::Any < ::Regexp::Expression::UnicodeProperty::Letter::Base; end
1721
+
1722
+ # source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#40
1723
+ class Regexp::Expression::UnicodeProperty::Letter::Base < ::Regexp::Expression::UnicodeProperty::Base; end
1724
+
1725
+ # source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#43
1726
+ class Regexp::Expression::UnicodeProperty::Letter::Cased < ::Regexp::Expression::UnicodeProperty::Letter::Base; end
1727
+
1728
+ # source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#45
1729
+ class Regexp::Expression::UnicodeProperty::Letter::Lowercase < ::Regexp::Expression::UnicodeProperty::Letter::Base; end
1730
+
1731
+ # source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#47
1732
+ class Regexp::Expression::UnicodeProperty::Letter::Modifier < ::Regexp::Expression::UnicodeProperty::Letter::Base; end
1733
+
1734
+ # source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#48
1735
+ class Regexp::Expression::UnicodeProperty::Letter::Other < ::Regexp::Expression::UnicodeProperty::Letter::Base; end
1736
+
1737
+ # source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#46
1738
+ class Regexp::Expression::UnicodeProperty::Letter::Titlecase < ::Regexp::Expression::UnicodeProperty::Letter::Base; end
1739
+
1740
+ # source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#44
1741
+ class Regexp::Expression::UnicodeProperty::Letter::Uppercase < ::Regexp::Expression::UnicodeProperty::Letter::Base; end
1742
+
1743
+ # source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#25
1744
+ class Regexp::Expression::UnicodeProperty::Lower < ::Regexp::Expression::UnicodeProperty::Base; end
1745
+
1746
+ # source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#51
1747
+ module Regexp::Expression::UnicodeProperty::Mark; end
1748
+
1749
+ # source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#54
1750
+ class Regexp::Expression::UnicodeProperty::Mark::Any < ::Regexp::Expression::UnicodeProperty::Mark::Base; end
1751
+
1752
+ # source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#52
1753
+ class Regexp::Expression::UnicodeProperty::Mark::Base < ::Regexp::Expression::UnicodeProperty::Base; end
1754
+
1755
+ # source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#55
1756
+ class Regexp::Expression::UnicodeProperty::Mark::Combining < ::Regexp::Expression::UnicodeProperty::Mark::Base; end
1757
+
1758
+ # source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#58
1759
+ class Regexp::Expression::UnicodeProperty::Mark::Enclosing < ::Regexp::Expression::UnicodeProperty::Mark::Base; end
1760
+
1761
+ # source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#56
1762
+ class Regexp::Expression::UnicodeProperty::Mark::Nonspacing < ::Regexp::Expression::UnicodeProperty::Mark::Base; end
1763
+
1764
+ # source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#57
1765
+ class Regexp::Expression::UnicodeProperty::Mark::Spacing < ::Regexp::Expression::UnicodeProperty::Mark::Base; end
1766
+
1767
+ # source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#34
1768
+ class Regexp::Expression::UnicodeProperty::Newline < ::Regexp::Expression::UnicodeProperty::Base; end
1769
+
1770
+ # source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#61
1771
+ module Regexp::Expression::UnicodeProperty::Number; end
1772
+
1773
+ # source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#64
1774
+ class Regexp::Expression::UnicodeProperty::Number::Any < ::Regexp::Expression::UnicodeProperty::Number::Base; end
1775
+
1776
+ # source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#62
1777
+ class Regexp::Expression::UnicodeProperty::Number::Base < ::Regexp::Expression::UnicodeProperty::Base; end
1778
+
1779
+ # source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#65
1780
+ class Regexp::Expression::UnicodeProperty::Number::Decimal < ::Regexp::Expression::UnicodeProperty::Number::Base; end
1781
+
1782
+ # source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#66
1783
+ class Regexp::Expression::UnicodeProperty::Number::Letter < ::Regexp::Expression::UnicodeProperty::Number::Base; end
1784
+
1785
+ # source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#67
1786
+ class Regexp::Expression::UnicodeProperty::Number::Other < ::Regexp::Expression::UnicodeProperty::Number::Base; end
1787
+
1788
+ # source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#26
1789
+ class Regexp::Expression::UnicodeProperty::Print < ::Regexp::Expression::UnicodeProperty::Base; end
1790
+
1791
+ # source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#27
1792
+ class Regexp::Expression::UnicodeProperty::Punct < ::Regexp::Expression::UnicodeProperty::Base; end
1793
+
1794
+ # source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#70
1795
+ module Regexp::Expression::UnicodeProperty::Punctuation; end
1796
+
1797
+ # source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#73
1798
+ class Regexp::Expression::UnicodeProperty::Punctuation::Any < ::Regexp::Expression::UnicodeProperty::Punctuation::Base; end
1799
+
1800
+ # source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#71
1801
+ class Regexp::Expression::UnicodeProperty::Punctuation::Base < ::Regexp::Expression::UnicodeProperty::Base; end
1802
+
1803
+ # source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#77
1804
+ class Regexp::Expression::UnicodeProperty::Punctuation::Close < ::Regexp::Expression::UnicodeProperty::Punctuation::Base; end
1805
+
1806
+ # source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#74
1807
+ class Regexp::Expression::UnicodeProperty::Punctuation::Connector < ::Regexp::Expression::UnicodeProperty::Punctuation::Base; end
1808
+
1809
+ # source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#75
1810
+ class Regexp::Expression::UnicodeProperty::Punctuation::Dash < ::Regexp::Expression::UnicodeProperty::Punctuation::Base; end
1811
+
1812
+ # source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#79
1813
+ class Regexp::Expression::UnicodeProperty::Punctuation::Final < ::Regexp::Expression::UnicodeProperty::Punctuation::Base; end
1814
+
1815
+ # source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#78
1816
+ class Regexp::Expression::UnicodeProperty::Punctuation::Initial < ::Regexp::Expression::UnicodeProperty::Punctuation::Base; end
1817
+
1818
+ # source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#76
1819
+ class Regexp::Expression::UnicodeProperty::Punctuation::Open < ::Regexp::Expression::UnicodeProperty::Punctuation::Base; end
1820
+
1821
+ # source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#80
1822
+ class Regexp::Expression::UnicodeProperty::Punctuation::Other < ::Regexp::Expression::UnicodeProperty::Punctuation::Base; end
1823
+
1824
+ # source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#116
1825
+ class Regexp::Expression::UnicodeProperty::Script < ::Regexp::Expression::UnicodeProperty::Base; end
1826
+
1827
+ # source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#83
1828
+ module Regexp::Expression::UnicodeProperty::Separator; end
1829
+
1830
+ # source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#86
1831
+ class Regexp::Expression::UnicodeProperty::Separator::Any < ::Regexp::Expression::UnicodeProperty::Separator::Base; end
1832
+
1833
+ # source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#84
1834
+ class Regexp::Expression::UnicodeProperty::Separator::Base < ::Regexp::Expression::UnicodeProperty::Base; end
1835
+
1836
+ # source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#88
1837
+ class Regexp::Expression::UnicodeProperty::Separator::Line < ::Regexp::Expression::UnicodeProperty::Separator::Base; end
1838
+
1839
+ # source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#89
1840
+ class Regexp::Expression::UnicodeProperty::Separator::Paragraph < ::Regexp::Expression::UnicodeProperty::Separator::Base; end
1841
+
1842
+ # source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#87
1843
+ class Regexp::Expression::UnicodeProperty::Separator::Space < ::Regexp::Expression::UnicodeProperty::Separator::Base; end
1844
+
1845
+ # source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#28
1846
+ class Regexp::Expression::UnicodeProperty::Space < ::Regexp::Expression::UnicodeProperty::Base; end
1847
+
1848
+ # source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#92
1849
+ module Regexp::Expression::UnicodeProperty::Symbol; end
1850
+
1851
+ # source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#95
1852
+ class Regexp::Expression::UnicodeProperty::Symbol::Any < ::Regexp::Expression::UnicodeProperty::Symbol::Base; end
1853
+
1854
+ # source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#93
1855
+ class Regexp::Expression::UnicodeProperty::Symbol::Base < ::Regexp::Expression::UnicodeProperty::Base; end
1856
+
1857
+ # source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#97
1858
+ class Regexp::Expression::UnicodeProperty::Symbol::Currency < ::Regexp::Expression::UnicodeProperty::Symbol::Base; end
1859
+
1860
+ # source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#96
1861
+ class Regexp::Expression::UnicodeProperty::Symbol::Math < ::Regexp::Expression::UnicodeProperty::Symbol::Base; end
1862
+
1863
+ # source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#98
1864
+ class Regexp::Expression::UnicodeProperty::Symbol::Modifier < ::Regexp::Expression::UnicodeProperty::Symbol::Base; end
1865
+
1866
+ # source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#99
1867
+ class Regexp::Expression::UnicodeProperty::Symbol::Other < ::Regexp::Expression::UnicodeProperty::Symbol::Base; end
1868
+
1869
+ # source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#29
1870
+ class Regexp::Expression::UnicodeProperty::Upper < ::Regexp::Expression::UnicodeProperty::Base; end
1871
+
1872
+ # source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#30
1873
+ class Regexp::Expression::UnicodeProperty::Word < ::Regexp::Expression::UnicodeProperty::Base; end
1874
+
1875
+ # source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#32
1876
+ class Regexp::Expression::UnicodeProperty::XPosixPunct < ::Regexp::Expression::UnicodeProperty::Base; end
1877
+
1878
+ # source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#31
1879
+ class Regexp::Expression::UnicodeProperty::Xdigit < ::Regexp::Expression::UnicodeProperty::Base; end
1880
+
1881
+ # source://regexp_parser//lib/regexp_parser/expression/classes/free_space.rb#10
1882
+ class Regexp::Expression::WhiteSpace < ::Regexp::Expression::FreeSpace
1883
+ # source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#42
1884
+ def human_name; end
1885
+
1886
+ # source://regexp_parser//lib/regexp_parser/expression/classes/free_space.rb#11
1887
+ def merge(exp); end
1888
+ end
1889
+
1890
+ # A very thin wrapper around the scanner that breaks quantified literal runs,
1891
+ # collects emitted tokens into an array, calculates their nesting depth, and
1892
+ # normalizes tokens for the parser, and checks if they are implemented by the
1893
+ # given syntax flavor.
1894
+ #
1895
+ # source://regexp_parser//lib/regexp_parser/lexer.rb#5
1896
+ class Regexp::Lexer
1897
+ # source://regexp_parser//lib/regexp_parser/lexer.rb#20
1898
+ def lex(input, syntax = T.unsafe(nil), options: T.unsafe(nil), &block); end
1899
+
1900
+ private
1901
+
1902
+ # source://regexp_parser//lib/regexp_parser/lexer.rb#71
1903
+ def ascend(type, token); end
1904
+
1905
+ # source://regexp_parser//lib/regexp_parser/lexer.rb#108
1906
+ def break_codepoint_list(token); end
1907
+
1908
+ # called by scan to break a literal run that is longer than one character
1909
+ # into two separate tokens when it is followed by a quantifier
1910
+ #
1911
+ # source://regexp_parser//lib/regexp_parser/lexer.rb#95
1912
+ def break_literal(token); end
1913
+
1914
+ # Returns the value of attribute conditional_nesting.
1915
+ #
1916
+ # source://regexp_parser//lib/regexp_parser/lexer.rb#69
1917
+ def conditional_nesting; end
1918
+
1919
+ # Sets the attribute conditional_nesting
1920
+ #
1921
+ # @param value the value to set the attribute conditional_nesting to.
1922
+ #
1923
+ # source://regexp_parser//lib/regexp_parser/lexer.rb#69
1924
+ def conditional_nesting=(_arg0); end
1925
+
1926
+ # source://regexp_parser//lib/regexp_parser/lexer.rb#82
1927
+ def descend(type, token); end
1928
+
1929
+ # source://regexp_parser//lib/regexp_parser/lexer.rb#123
1930
+ def merge_condition(current); end
1931
+
1932
+ # Returns the value of attribute nesting.
1933
+ #
1934
+ # source://regexp_parser//lib/regexp_parser/lexer.rb#69
1935
+ def nesting; end
1936
+
1937
+ # Sets the attribute nesting
1938
+ #
1939
+ # @param value the value to set the attribute nesting to.
1940
+ #
1941
+ # source://regexp_parser//lib/regexp_parser/lexer.rb#69
1942
+ def nesting=(_arg0); end
1943
+
1944
+ # Returns the value of attribute set_nesting.
1945
+ #
1946
+ # source://regexp_parser//lib/regexp_parser/lexer.rb#69
1947
+ def set_nesting; end
1948
+
1949
+ # Sets the attribute set_nesting
1950
+ #
1951
+ # @param value the value to set the attribute set_nesting to.
1952
+ #
1953
+ # source://regexp_parser//lib/regexp_parser/lexer.rb#69
1954
+ def set_nesting=(_arg0); end
1955
+
1956
+ # Returns the value of attribute shift.
1957
+ #
1958
+ # source://regexp_parser//lib/regexp_parser/lexer.rb#69
1959
+ def shift; end
1960
+
1961
+ # Sets the attribute shift
1962
+ #
1963
+ # @param value the value to set the attribute shift to.
1964
+ #
1965
+ # source://regexp_parser//lib/regexp_parser/lexer.rb#69
1966
+ def shift=(_arg0); end
1967
+
1968
+ # Returns the value of attribute tokens.
1969
+ #
1970
+ # source://regexp_parser//lib/regexp_parser/lexer.rb#69
1971
+ def tokens; end
1972
+
1973
+ # Sets the attribute tokens
1974
+ #
1975
+ # @param value the value to set the attribute tokens to.
1976
+ #
1977
+ # source://regexp_parser//lib/regexp_parser/lexer.rb#69
1978
+ def tokens=(_arg0); end
1979
+
1980
+ class << self
1981
+ # source://regexp_parser//lib/regexp_parser/lexer.rb#16
1982
+ def lex(input, syntax = T.unsafe(nil), options: T.unsafe(nil), &block); end
1983
+
1984
+ # source://regexp_parser//lib/regexp_parser/lexer.rb#16
1985
+ def scan(input, syntax = T.unsafe(nil), options: T.unsafe(nil), &block); end
1986
+ end
1987
+ end
1988
+
1989
+ # source://regexp_parser//lib/regexp_parser/lexer.rb#12
1990
+ Regexp::Lexer::CLOSING_TOKENS = T.let(T.unsafe(nil), Array)
1991
+
1992
+ # source://regexp_parser//lib/regexp_parser/lexer.rb#14
1993
+ Regexp::Lexer::CONDITION_TOKENS = T.let(T.unsafe(nil), Array)
1994
+
1995
+ # source://regexp_parser//lib/regexp_parser/lexer.rb#7
1996
+ Regexp::Lexer::OPENING_TOKENS = T.let(T.unsafe(nil), Array)
1997
+
1998
+ # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#1
1999
+ class Regexp::MatchLength
2000
+ include ::Enumerable
2001
+
2002
+ # @return [MatchLength] a new instance of MatchLength
2003
+ #
2004
+ # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#9
2005
+ def initialize(exp, opts = T.unsafe(nil)); end
2006
+
2007
+ # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#24
2008
+ def each(opts = T.unsafe(nil)); end
2009
+
2010
+ # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#35
2011
+ def endless_each; end
2012
+
2013
+ # @return [Boolean]
2014
+ #
2015
+ # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#44
2016
+ def fixed?; end
2017
+
2018
+ # @return [Boolean]
2019
+ #
2020
+ # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#40
2021
+ def include?(length); end
2022
+
2023
+ # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#60
2024
+ def inspect; end
2025
+
2026
+ # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#52
2027
+ def max; end
2028
+
2029
+ # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#48
2030
+ def min; end
2031
+
2032
+ # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#56
2033
+ def minmax; end
2034
+
2035
+ # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#65
2036
+ def to_re; end
2037
+
2038
+ private
2039
+
2040
+ # Returns the value of attribute base_max.
2041
+ #
2042
+ # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#71
2043
+ def base_max; end
2044
+
2045
+ # Sets the attribute base_max
2046
+ #
2047
+ # @param value the value to set the attribute base_max to.
2048
+ #
2049
+ # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#71
2050
+ def base_max=(_arg0); end
2051
+
2052
+ # Returns the value of attribute base_min.
2053
+ #
2054
+ # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#71
2055
+ def base_min; end
2056
+
2057
+ # Sets the attribute base_min
2058
+ #
2059
+ # @param value the value to set the attribute base_min to.
2060
+ #
2061
+ # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#71
2062
+ def base_min=(_arg0); end
2063
+
2064
+ # Returns the value of attribute exp_class.
2065
+ #
2066
+ # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#71
2067
+ def exp_class; end
2068
+
2069
+ # Sets the attribute exp_class
2070
+ #
2071
+ # @param value the value to set the attribute exp_class to.
2072
+ #
2073
+ # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#71
2074
+ def exp_class=(_arg0); end
2075
+
2076
+ # Returns the value of attribute max_rep.
2077
+ #
2078
+ # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#71
2079
+ def max_rep; end
2080
+
2081
+ # Sets the attribute max_rep
2082
+ #
2083
+ # @param value the value to set the attribute max_rep to.
2084
+ #
2085
+ # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#71
2086
+ def max_rep=(_arg0); end
2087
+
2088
+ # Returns the value of attribute min_rep.
2089
+ #
2090
+ # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#71
2091
+ def min_rep; end
2092
+
2093
+ # Sets the attribute min_rep
2094
+ #
2095
+ # @param value the value to set the attribute min_rep to.
2096
+ #
2097
+ # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#71
2098
+ def min_rep=(_arg0); end
2099
+
2100
+ # Returns the value of attribute reify.
2101
+ #
2102
+ # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#71
2103
+ def reify; end
2104
+
2105
+ # Sets the attribute reify
2106
+ #
2107
+ # @param value the value to set the attribute reify to.
2108
+ #
2109
+ # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#71
2110
+ def reify=(_arg0); end
2111
+
2112
+ # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#73
2113
+ def test_regexp; end
2114
+
2115
+ class << self
2116
+ # source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#4
2117
+ def of(obj); end
2118
+ end
2119
+ end
2120
+
2121
+ # source://regexp_parser//lib/regexp_parser/version.rb#2
2122
+ class Regexp::Parser
2123
+ include ::Regexp::Expression
2124
+ include ::Regexp::Expression::UnicodeProperty
2125
+
2126
+ # source://regexp_parser//lib/regexp_parser/parser.rb#25
2127
+ def parse(input, syntax = T.unsafe(nil), options: T.unsafe(nil), &block); end
2128
+
2129
+ private
2130
+
2131
+ # source://regexp_parser//lib/regexp_parser/parser.rb#574
2132
+ def active_opts; end
2133
+
2134
+ # source://regexp_parser//lib/regexp_parser/parser.rb#99
2135
+ def anchor(token); end
2136
+
2137
+ # source://regexp_parser//lib/regexp_parser/parser.rb#262
2138
+ def assign_effective_number(exp); end
2139
+
2140
+ # Assigns referenced expressions to refering expressions, e.g. if there is
2141
+ # an instance of Backreference::Number, its #referenced_expression is set to
2142
+ # the instance of Group::Capture that it refers to via its number.
2143
+ #
2144
+ # source://regexp_parser//lib/regexp_parser/parser.rb#581
2145
+ def assign_referenced_expressions; end
2146
+
2147
+ # source://regexp_parser//lib/regexp_parser/parser.rb#227
2148
+ def backref(token); end
2149
+
2150
+ # source://regexp_parser//lib/regexp_parser/parser.rb#202
2151
+ def captured_group_count_at_level; end
2152
+
2153
+ # Returns the value of attribute captured_group_counts.
2154
+ #
2155
+ # source://regexp_parser//lib/regexp_parser/parser.rb#56
2156
+ def captured_group_counts; end
2157
+
2158
+ # Sets the attribute captured_group_counts
2159
+ #
2160
+ # @param value the value to set the attribute captured_group_counts to.
2161
+ #
2162
+ # source://regexp_parser//lib/regexp_parser/parser.rb#56
2163
+ def captured_group_counts=(_arg0); end
2164
+
2165
+ # source://regexp_parser//lib/regexp_parser/parser.rb#570
2166
+ def close_completed_character_set_range; end
2167
+
2168
+ # source://regexp_parser//lib/regexp_parser/parser.rb#210
2169
+ def close_group; end
2170
+
2171
+ # source://regexp_parser//lib/regexp_parser/parser.rb#538
2172
+ def close_set; end
2173
+
2174
+ # source://regexp_parser//lib/regexp_parser/parser.rb#269
2175
+ def conditional(token); end
2176
+
2177
+ # Returns the value of attribute conditional_nesting.
2178
+ #
2179
+ # source://regexp_parser//lib/regexp_parser/parser.rb#56
2180
+ def conditional_nesting; end
2181
+
2182
+ # Sets the attribute conditional_nesting
2183
+ #
2184
+ # @param value the value to set the attribute conditional_nesting to.
2185
+ #
2186
+ # source://regexp_parser//lib/regexp_parser/parser.rb#56
2187
+ def conditional_nesting=(_arg0); end
2188
+
2189
+ # source://regexp_parser//lib/regexp_parser/parser.rb#206
2190
+ def count_captured_group; end
2191
+
2192
+ # @yield [node]
2193
+ #
2194
+ # source://regexp_parser//lib/regexp_parser/parser.rb#216
2195
+ def decrease_nesting; end
2196
+
2197
+ # source://regexp_parser//lib/regexp_parser/parser.rb#305
2198
+ def escape(token); end
2199
+
2200
+ # source://regexp_parser//lib/regexp_parser/parser.rb#60
2201
+ def extract_options(input, options); end
2202
+
2203
+ # source://regexp_parser//lib/regexp_parser/parser.rb#347
2204
+ def free_space(token); end
2205
+
2206
+ # source://regexp_parser//lib/regexp_parser/parser.rb#114
2207
+ def group(token); end
2208
+
2209
+ # source://regexp_parser//lib/regexp_parser/parser.rb#511
2210
+ def increase_group_level(exp); end
2211
+
2212
+ # source://regexp_parser//lib/regexp_parser/parser.rb#549
2213
+ def intersection(token); end
2214
+
2215
+ # source://regexp_parser//lib/regexp_parser/parser.rb#362
2216
+ def keep(token); end
2217
+
2218
+ # source://regexp_parser//lib/regexp_parser/parser.rb#366
2219
+ def literal(token); end
2220
+
2221
+ # source://regexp_parser//lib/regexp_parser/parser.rb#370
2222
+ def meta(token); end
2223
+
2224
+ # source://regexp_parser//lib/regexp_parser/parser.rb#534
2225
+ def negate_set; end
2226
+
2227
+ # source://regexp_parser//lib/regexp_parser/parser.rb#299
2228
+ def nest(exp); end
2229
+
2230
+ # source://regexp_parser//lib/regexp_parser/parser.rb#294
2231
+ def nest_conditional(exp); end
2232
+
2233
+ # Returns the value of attribute nesting.
2234
+ #
2235
+ # source://regexp_parser//lib/regexp_parser/parser.rb#56
2236
+ def nesting; end
2237
+
2238
+ # Sets the attribute nesting
2239
+ #
2240
+ # @param value the value to set the attribute nesting to.
2241
+ #
2242
+ # source://regexp_parser//lib/regexp_parser/parser.rb#56
2243
+ def nesting=(_arg0); end
2244
+
2245
+ # Returns the value of attribute node.
2246
+ #
2247
+ # source://regexp_parser//lib/regexp_parser/parser.rb#56
2248
+ def node; end
2249
+
2250
+ # Sets the attribute node
2251
+ #
2252
+ # @param value the value to set the attribute node to.
2253
+ #
2254
+ # source://regexp_parser//lib/regexp_parser/parser.rb#56
2255
+ def node=(_arg0); end
2256
+
2257
+ # source://regexp_parser//lib/regexp_parser/parser.rb#165
2258
+ def open_group(token); end
2259
+
2260
+ # source://regexp_parser//lib/regexp_parser/parser.rb#529
2261
+ def open_set(token); end
2262
+
2263
+ # source://regexp_parser//lib/regexp_parser/parser.rb#130
2264
+ def options_group(token); end
2265
+
2266
+ # Returns the value of attribute options_stack.
2267
+ #
2268
+ # source://regexp_parser//lib/regexp_parser/parser.rb#56
2269
+ def options_stack; end
2270
+
2271
+ # Sets the attribute options_stack
2272
+ #
2273
+ # @param value the value to set the attribute options_stack to.
2274
+ #
2275
+ # source://regexp_parser//lib/regexp_parser/parser.rb#56
2276
+ def options_stack=(_arg0); end
2277
+
2278
+ # source://regexp_parser//lib/regexp_parser/parser.rb#76
2279
+ def parse_token(token); end
2280
+
2281
+ # source://regexp_parser//lib/regexp_parser/parser.rb#392
2282
+ def posixclass(token); end
2283
+
2284
+ # source://regexp_parser//lib/regexp_parser/parser.rb#399
2285
+ def property(token); end
2286
+
2287
+ # source://regexp_parser//lib/regexp_parser/parser.rb#480
2288
+ def quantifier(token); end
2289
+
2290
+ # source://regexp_parser//lib/regexp_parser/parser.rb#542
2291
+ def range(token); end
2292
+
2293
+ # Returns the value of attribute root.
2294
+ #
2295
+ # source://regexp_parser//lib/regexp_parser/parser.rb#56
2296
+ def root; end
2297
+
2298
+ # Sets the attribute root
2299
+ #
2300
+ # @param value the value to set the attribute root to.
2301
+ #
2302
+ # source://regexp_parser//lib/regexp_parser/parser.rb#56
2303
+ def root=(_arg0); end
2304
+
2305
+ # source://regexp_parser//lib/regexp_parser/parser.rb#381
2306
+ def sequence_operation(klass, token); end
2307
+
2308
+ # source://regexp_parser//lib/regexp_parser/parser.rb#517
2309
+ def set(token); end
2310
+
2311
+ # Returns the value of attribute switching_options.
2312
+ #
2313
+ # source://regexp_parser//lib/regexp_parser/parser.rb#56
2314
+ def switching_options; end
2315
+
2316
+ # Sets the attribute switching_options
2317
+ #
2318
+ # @param value the value to set the attribute switching_options to.
2319
+ #
2320
+ # source://regexp_parser//lib/regexp_parser/parser.rb#56
2321
+ def switching_options=(_arg0); end
2322
+
2323
+ # source://regexp_parser//lib/regexp_parser/parser.rb#198
2324
+ def total_captured_group_count; end
2325
+
2326
+ # source://regexp_parser//lib/regexp_parser/parser.rb#553
2327
+ def type(token); end
2328
+
2329
+ class << self
2330
+ # source://regexp_parser//lib/regexp_parser/parser.rb#21
2331
+ def parse(input, syntax = T.unsafe(nil), options: T.unsafe(nil), &block); end
2332
+ end
2333
+ end
2334
+
2335
+ # source://regexp_parser//lib/regexp_parser/parser.rb#128
2336
+ Regexp::Parser::ENC_FLAGS = T.let(T.unsafe(nil), Array)
2337
+
2338
+ # base class for all gem-specific errors
2339
+ #
2340
+ # source://regexp_parser//lib/regexp_parser/error.rb#3
2341
+ class Regexp::Parser::Error < ::StandardError; end
2342
+
2343
+ # source://regexp_parser//lib/regexp_parser/parser.rb#127
2344
+ Regexp::Parser::MOD_FLAGS = T.let(T.unsafe(nil), Array)
2345
+
2346
+ # source://regexp_parser//lib/regexp_parser/parser.rb#7
2347
+ class Regexp::Parser::ParserError < ::Regexp::Parser::Error; end
2348
+
2349
+ # source://regexp_parser//lib/regexp_parser/parser.rb#397
2350
+ Regexp::Parser::UPTokens = Regexp::Syntax::Token::UnicodeProperty
2351
+
2352
+ # source://regexp_parser//lib/regexp_parser/parser.rb#15
2353
+ class Regexp::Parser::UnknownTokenError < ::Regexp::Parser::ParserError
2354
+ # @return [UnknownTokenError] a new instance of UnknownTokenError
2355
+ #
2356
+ # source://regexp_parser//lib/regexp_parser/parser.rb#16
2357
+ def initialize(type, token); end
2358
+ end
2359
+
2360
+ # source://regexp_parser//lib/regexp_parser/parser.rb#9
2361
+ class Regexp::Parser::UnknownTokenTypeError < ::Regexp::Parser::ParserError
2362
+ # @return [UnknownTokenTypeError] a new instance of UnknownTokenTypeError
2363
+ #
2364
+ # source://regexp_parser//lib/regexp_parser/parser.rb#10
2365
+ def initialize(type, token); end
2366
+ end
2367
+
2368
+ # source://regexp_parser//lib/regexp_parser/version.rb#3
2369
+ Regexp::Parser::VERSION = T.let(T.unsafe(nil), String)
2370
+
2371
+ # source://regexp_parser//lib/regexp_parser/scanner.rb#13
2372
+ class Regexp::Scanner
2373
+ # Emits an array with the details of the scanned pattern
2374
+ #
2375
+ # source://regexp_parser//lib/regexp_parser/scanner.rb#2551
2376
+ def emit(type, token, text); end
2377
+
2378
+ # @raise [PrematureEndError]
2379
+ #
2380
+ # source://regexp_parser//lib/regexp_parser/scanner.rb#84
2381
+ def scan(input_object, options: T.unsafe(nil), &block); end
2382
+
2383
+ private
2384
+
2385
+ # Appends one or more characters to the literal buffer, to be emitted later
2386
+ # by a call to emit_literal.
2387
+ #
2388
+ # source://regexp_parser//lib/regexp_parser/scanner.rb#2602
2389
+ def append_literal(data, ts, te); end
2390
+
2391
+ # Returns the value of attribute block.
2392
+ #
2393
+ # source://regexp_parser//lib/regexp_parser/scanner.rb#2572
2394
+ def block; end
2395
+
2396
+ # Sets the attribute block
2397
+ #
2398
+ # @param value the value to set the attribute block to.
2399
+ #
2400
+ # source://regexp_parser//lib/regexp_parser/scanner.rb#2572
2401
+ def block=(_arg0); end
2402
+
2403
+ # Returns the value of attribute char_pos.
2404
+ #
2405
+ # source://regexp_parser//lib/regexp_parser/scanner.rb#2572
2406
+ def char_pos; end
2407
+
2408
+ # Sets the attribute char_pos
2409
+ #
2410
+ # @param value the value to set the attribute char_pos to.
2411
+ #
2412
+ # source://regexp_parser//lib/regexp_parser/scanner.rb#2572
2413
+ def char_pos=(_arg0); end
2414
+
2415
+ # Returns the value of attribute conditional_stack.
2416
+ #
2417
+ # source://regexp_parser//lib/regexp_parser/scanner.rb#2572
2418
+ def conditional_stack; end
2419
+
2420
+ # Sets the attribute conditional_stack
2421
+ #
2422
+ # @param value the value to set the attribute conditional_stack to.
2423
+ #
2424
+ # source://regexp_parser//lib/regexp_parser/scanner.rb#2572
2425
+ def conditional_stack=(_arg0); end
2426
+
2427
+ # Copy from ts to te from data as text
2428
+ #
2429
+ # source://regexp_parser//lib/regexp_parser/scanner.rb#2596
2430
+ def copy(data, ts, te); end
2431
+
2432
+ # Emits the literal run collected by calls to the append_literal method.
2433
+ #
2434
+ # source://regexp_parser//lib/regexp_parser/scanner.rb#2608
2435
+ def emit_literal; end
2436
+
2437
+ # source://regexp_parser//lib/regexp_parser/scanner.rb#2643
2438
+ def emit_meta_control_sequence(data, ts, te, token); end
2439
+
2440
+ # source://regexp_parser//lib/regexp_parser/scanner.rb#2614
2441
+ def emit_options(text); end
2442
+
2443
+ # Returns the value of attribute free_spacing.
2444
+ #
2445
+ # source://regexp_parser//lib/regexp_parser/scanner.rb#2572
2446
+ def free_spacing; end
2447
+
2448
+ # Sets the attribute free_spacing
2449
+ #
2450
+ # @param value the value to set the attribute free_spacing to.
2451
+ #
2452
+ # source://regexp_parser//lib/regexp_parser/scanner.rb#2572
2453
+ def free_spacing=(_arg0); end
2454
+
2455
+ # @return [Boolean]
2456
+ #
2457
+ # source://regexp_parser//lib/regexp_parser/scanner.rb#2575
2458
+ def free_spacing?(input_object, options); end
2459
+
2460
+ # Returns the value of attribute group_depth.
2461
+ #
2462
+ # source://regexp_parser//lib/regexp_parser/scanner.rb#2572
2463
+ def group_depth; end
2464
+
2465
+ # Sets the attribute group_depth
2466
+ #
2467
+ # @param value the value to set the attribute group_depth to.
2468
+ #
2469
+ # source://regexp_parser//lib/regexp_parser/scanner.rb#2572
2470
+ def group_depth=(_arg0); end
2471
+
2472
+ # @return [Boolean]
2473
+ #
2474
+ # source://regexp_parser//lib/regexp_parser/scanner.rb#2587
2475
+ def in_group?; end
2476
+
2477
+ # @return [Boolean]
2478
+ #
2479
+ # source://regexp_parser//lib/regexp_parser/scanner.rb#2591
2480
+ def in_set?; end
2481
+
2482
+ # Returns the value of attribute literal.
2483
+ #
2484
+ # source://regexp_parser//lib/regexp_parser/scanner.rb#2572
2485
+ def literal; end
2486
+
2487
+ # Sets the attribute literal
2488
+ #
2489
+ # @param value the value to set the attribute literal to.
2490
+ #
2491
+ # source://regexp_parser//lib/regexp_parser/scanner.rb#2572
2492
+ def literal=(_arg0); end
2493
+
2494
+ # Returns the value of attribute set_depth.
2495
+ #
2496
+ # source://regexp_parser//lib/regexp_parser/scanner.rb#2572
2497
+ def set_depth; end
2498
+
2499
+ # Sets the attribute set_depth
2500
+ #
2501
+ # @param value the value to set the attribute set_depth to.
2502
+ #
2503
+ # source://regexp_parser//lib/regexp_parser/scanner.rb#2572
2504
+ def set_depth=(_arg0); end
2505
+
2506
+ # Returns the value of attribute spacing_stack.
2507
+ #
2508
+ # source://regexp_parser//lib/regexp_parser/scanner.rb#2572
2509
+ def spacing_stack; end
2510
+
2511
+ # Sets the attribute spacing_stack
2512
+ #
2513
+ # @param value the value to set the attribute spacing_stack to.
2514
+ #
2515
+ # source://regexp_parser//lib/regexp_parser/scanner.rb#2572
2516
+ def spacing_stack=(_arg0); end
2517
+
2518
+ # Returns the value of attribute tokens.
2519
+ #
2520
+ # source://regexp_parser//lib/regexp_parser/scanner.rb#2572
2521
+ def tokens; end
2522
+
2523
+ # Sets the attribute tokens
2524
+ #
2525
+ # @param value the value to set the attribute tokens to.
2526
+ #
2527
+ # source://regexp_parser//lib/regexp_parser/scanner.rb#2572
2528
+ def tokens=(_arg0); end
2529
+
2530
+ # Centralizes and unifies the handling of validation related
2531
+ # errors.
2532
+ #
2533
+ # source://regexp_parser//lib/regexp_parser/scanner.rb#2652
2534
+ def validation_error(type, what, reason = T.unsafe(nil)); end
2535
+
2536
+ class << self
2537
+ # source://regexp_parser//lib/regexp_parser/scanner.rb#2537
2538
+ def long_prop_map; end
2539
+
2540
+ # source://regexp_parser//lib/regexp_parser/scanner.rb#2541
2541
+ def parse_prop_map(name); end
2542
+
2543
+ # source://regexp_parser//lib/regexp_parser/scanner.rb#2545
2544
+ def posix_classes; end
2545
+
2546
+ # Scans the given regular expression text, or Regexp object and collects the
2547
+ # emitted token into an array that gets returned at the end. If a block is
2548
+ # given, it gets called for each emitted token.
2549
+ #
2550
+ # This method may raise errors if a syntax error is encountered.
2551
+ # --------------------------------------------------------------------------
2552
+ #
2553
+ # source://regexp_parser//lib/regexp_parser/scanner.rb#80
2554
+ def scan(input_object, options: T.unsafe(nil), &block); end
2555
+
2556
+ # lazy-load property maps when first needed
2557
+ #
2558
+ # source://regexp_parser//lib/regexp_parser/scanner.rb#2533
2559
+ def short_prop_map; end
2560
+ end
2561
+ end
2562
+
2563
+ # Invalid back reference. Used for name a number refs/calls.
2564
+ #
2565
+ # source://regexp_parser//lib/regexp_parser/scanner.rb#54
2566
+ class Regexp::Scanner::InvalidBackrefError < ::Regexp::Scanner::ValidationError
2567
+ # @return [InvalidBackrefError] a new instance of InvalidBackrefError
2568
+ #
2569
+ # source://regexp_parser//lib/regexp_parser/scanner.rb#55
2570
+ def initialize(what, reason); end
2571
+ end
2572
+
2573
+ # Invalid group. Used for named groups.
2574
+ #
2575
+ # source://regexp_parser//lib/regexp_parser/scanner.rb#39
2576
+ class Regexp::Scanner::InvalidGroupError < ::Regexp::Scanner::ValidationError
2577
+ # @return [InvalidGroupError] a new instance of InvalidGroupError
2578
+ #
2579
+ # source://regexp_parser//lib/regexp_parser/scanner.rb#40
2580
+ def initialize(what, reason); end
2581
+ end
2582
+
2583
+ # Invalid groupOption. Used for inline options.
2584
+ # TODO: should become InvalidGroupOptionError in v3.0.0 for consistency
2585
+ #
2586
+ # source://regexp_parser//lib/regexp_parser/scanner.rb#47
2587
+ class Regexp::Scanner::InvalidGroupOption < ::Regexp::Scanner::ValidationError
2588
+ # @return [InvalidGroupOption] a new instance of InvalidGroupOption
2589
+ #
2590
+ # source://regexp_parser//lib/regexp_parser/scanner.rb#48
2591
+ def initialize(option, text); end
2592
+ end
2593
+
2594
+ # Invalid sequence format. Used for escape sequences, mainly.
2595
+ #
2596
+ # source://regexp_parser//lib/regexp_parser/scanner.rb#32
2597
+ class Regexp::Scanner::InvalidSequenceError < ::Regexp::Scanner::ValidationError
2598
+ # @return [InvalidSequenceError] a new instance of InvalidSequenceError
2599
+ #
2600
+ # source://regexp_parser//lib/regexp_parser/scanner.rb#33
2601
+ def initialize(what = T.unsafe(nil), where = T.unsafe(nil)); end
2602
+ end
2603
+
2604
+ # Unexpected end of pattern
2605
+ #
2606
+ # source://regexp_parser//lib/regexp_parser/scanner.rb#25
2607
+ class Regexp::Scanner::PrematureEndError < ::Regexp::Scanner::ScannerError
2608
+ # @return [PrematureEndError] a new instance of PrematureEndError
2609
+ #
2610
+ # source://regexp_parser//lib/regexp_parser/scanner.rb#26
2611
+ def initialize(where = T.unsafe(nil)); end
2612
+ end
2613
+
2614
+ # General scanner error (catch all)
2615
+ #
2616
+ # source://regexp_parser//lib/regexp_parser/scanner.rb#15
2617
+ class Regexp::Scanner::ScannerError < ::Regexp::Parser::Error; end
2618
+
2619
+ # The POSIX class name was not recognized by the scanner.
2620
+ #
2621
+ # source://regexp_parser//lib/regexp_parser/scanner.rb#68
2622
+ class Regexp::Scanner::UnknownPosixClassError < ::Regexp::Scanner::ValidationError
2623
+ # @return [UnknownPosixClassError] a new instance of UnknownPosixClassError
2624
+ #
2625
+ # source://regexp_parser//lib/regexp_parser/scanner.rb#69
2626
+ def initialize(text); end
2627
+ end
2628
+
2629
+ # The property name was not recognized by the scanner.
2630
+ #
2631
+ # source://regexp_parser//lib/regexp_parser/scanner.rb#61
2632
+ class Regexp::Scanner::UnknownUnicodePropertyError < ::Regexp::Scanner::ValidationError
2633
+ # @return [UnknownUnicodePropertyError] a new instance of UnknownUnicodePropertyError
2634
+ #
2635
+ # source://regexp_parser//lib/regexp_parser/scanner.rb#62
2636
+ def initialize(name); end
2637
+ end
2638
+
2639
+ # Base for all scanner validation errors
2640
+ #
2641
+ # source://regexp_parser//lib/regexp_parser/scanner.rb#18
2642
+ class Regexp::Scanner::ValidationError < ::Regexp::Parser::Error
2643
+ # @return [ValidationError] a new instance of ValidationError
2644
+ #
2645
+ # source://regexp_parser//lib/regexp_parser/scanner.rb#19
2646
+ def initialize(reason); end
2647
+ end
2648
+
2649
+ # After loading all the tokens the map is full. Extract all tokens and types
2650
+ # into the All and Types constants.
2651
+ #
2652
+ # source://regexp_parser//lib/regexp_parser/syntax.rb#3
2653
+ module Regexp::Syntax
2654
+ private
2655
+
2656
+ # source://regexp_parser//lib/regexp_parser/syntax/version_lookup.rb#62
2657
+ def comparable(name); end
2658
+
2659
+ # source://regexp_parser//lib/regexp_parser/syntax/version_lookup.rb#45
2660
+ def const_missing(const_name); end
2661
+
2662
+ # source://regexp_parser//lib/regexp_parser/syntax/version_lookup.rb#52
2663
+ def fallback_version_class(version); end
2664
+
2665
+ # Returns the syntax specification class for the given syntax
2666
+ # version name. The special names 'any' and '*' return Syntax::Any.
2667
+ #
2668
+ # source://regexp_parser//lib/regexp_parser/syntax/version_lookup.rb#22
2669
+ def for(name); end
2670
+
2671
+ # source://regexp_parser//lib/regexp_parser/syntax/version_lookup.rb#26
2672
+ def new(name); end
2673
+
2674
+ # source://regexp_parser//lib/regexp_parser/syntax/version_lookup.rb#58
2675
+ def specified_versions; end
2676
+
2677
+ # source://regexp_parser//lib/regexp_parser/syntax/version_lookup.rb#32
2678
+ def supported?(name); end
2679
+
2680
+ # source://regexp_parser//lib/regexp_parser/syntax/version_lookup.rb#36
2681
+ def version_class(version); end
2682
+
2683
+ # source://regexp_parser//lib/regexp_parser/syntax/version_lookup.rb#67
2684
+ def warn_if_future_version(const_name); end
2685
+
2686
+ class << self
2687
+ # source://regexp_parser//lib/regexp_parser/syntax/version_lookup.rb#62
2688
+ def comparable(name); end
2689
+
2690
+ # source://regexp_parser//lib/regexp_parser/syntax/version_lookup.rb#45
2691
+ def const_missing(const_name); end
2692
+
2693
+ # source://regexp_parser//lib/regexp_parser/syntax/version_lookup.rb#52
2694
+ def fallback_version_class(version); end
2695
+
2696
+ # Returns the syntax specification class for the given syntax
2697
+ # version name. The special names 'any' and '*' return Syntax::Any.
2698
+ #
2699
+ # source://regexp_parser//lib/regexp_parser/syntax/version_lookup.rb#22
2700
+ def for(name); end
2701
+
2702
+ # source://regexp_parser//lib/regexp_parser/syntax/version_lookup.rb#26
2703
+ def new(name); end
2704
+
2705
+ # source://regexp_parser//lib/regexp_parser/syntax/version_lookup.rb#58
2706
+ def specified_versions; end
2707
+
2708
+ # @return [Boolean]
2709
+ #
2710
+ # source://regexp_parser//lib/regexp_parser/syntax/version_lookup.rb#32
2711
+ def supported?(name); end
2712
+
2713
+ # source://regexp_parser//lib/regexp_parser/syntax/version_lookup.rb#36
2714
+ def version_class(version); end
2715
+
2716
+ # source://regexp_parser//lib/regexp_parser/syntax/version_lookup.rb#67
2717
+ def warn_if_future_version(const_name); end
2718
+ end
2719
+ end
2720
+
2721
+ # A syntax that always returns true, passing all tokens as implemented. This
2722
+ # is useful during development, testing, and should be useful for some types
2723
+ # of transformations as well.
2724
+ #
2725
+ # source://regexp_parser//lib/regexp_parser/syntax/any.rb#5
2726
+ class Regexp::Syntax::Any < ::Regexp::Syntax::Base
2727
+ class << self
2728
+ # @return [Boolean]
2729
+ #
2730
+ # source://regexp_parser//lib/regexp_parser/syntax/any.rb#8
2731
+ def implements?(_type, _token); end
2732
+ end
2733
+ end
2734
+
2735
+ # A lookup map of supported types and tokens in a given syntax
2736
+ #
2737
+ # source://regexp_parser//lib/regexp_parser/syntax/base.rb#9
2738
+ class Regexp::Syntax::Base
2739
+ include ::Regexp::Syntax::Token
2740
+
2741
+ # TODO: drop this backwards compatibility code in v3.0.0, do `private :new`
2742
+ #
2743
+ # @return [Base] a new instance of Base
2744
+ #
2745
+ # source://regexp_parser//lib/regexp_parser/syntax/base.rb#99
2746
+ def initialize; end
2747
+
2748
+ # source://regexp_parser//lib/regexp_parser/syntax/base.rb#104
2749
+ def method_missing(name, *args); end
2750
+
2751
+ private
2752
+
2753
+ # @return [Boolean]
2754
+ #
2755
+ # source://regexp_parser//lib/regexp_parser/syntax/base.rb#115
2756
+ def respond_to_missing?(name, include_private = T.unsafe(nil)); end
2757
+
2758
+ class << self
2759
+ # source://regexp_parser//lib/regexp_parser/syntax/base.rb#46
2760
+ def added_features; end
2761
+
2762
+ # @raise [NotImplementedError]
2763
+ #
2764
+ # source://regexp_parser//lib/regexp_parser/syntax/base.rb#40
2765
+ def check!(type, token); end
2766
+
2767
+ # @return [Boolean]
2768
+ #
2769
+ # source://regexp_parser//lib/regexp_parser/syntax/base.rb#31
2770
+ def check?(type, token); end
2771
+
2772
+ # source://regexp_parser//lib/regexp_parser/syntax/base.rb#26
2773
+ def excludes(type, tokens); end
2774
+
2775
+ # Returns the value of attribute features.
2776
+ #
2777
+ # source://regexp_parser//lib/regexp_parser/syntax/base.rb#13
2778
+ def features; end
2779
+
2780
+ # Sets the attribute features
2781
+ #
2782
+ # @param value the value to set the attribute features to.
2783
+ #
2784
+ # source://regexp_parser//lib/regexp_parser/syntax/base.rb#13
2785
+ def features=(_arg0); end
2786
+
2787
+ # source://regexp_parser//lib/regexp_parser/syntax/base.rb#36
2788
+ def implementations(type); end
2789
+
2790
+ # source://regexp_parser//lib/regexp_parser/syntax/base.rb#21
2791
+ def implements(type, tokens); end
2792
+
2793
+ # @raise [NotImplementedError]
2794
+ #
2795
+ # source://regexp_parser//lib/regexp_parser/syntax/base.rb#40
2796
+ def implements!(type, token); end
2797
+
2798
+ # @return [Boolean]
2799
+ #
2800
+ # source://regexp_parser//lib/regexp_parser/syntax/base.rb#31
2801
+ def implements?(type, token); end
2802
+
2803
+ # automatically inherit features through the syntax class hierarchy
2804
+ #
2805
+ # source://regexp_parser//lib/regexp_parser/syntax/base.rb#16
2806
+ def inherited(subclass); end
2807
+
2808
+ # source://regexp_parser//lib/regexp_parser/syntax/base.rb#54
2809
+ def normalize(type, token); end
2810
+
2811
+ # source://regexp_parser//lib/regexp_parser/syntax/base.rb#74
2812
+ def normalize_backref(type, token); end
2813
+
2814
+ # source://regexp_parser//lib/regexp_parser/syntax/base.rb#65
2815
+ def normalize_group(type, token); end
2816
+
2817
+ # source://regexp_parser//lib/regexp_parser/syntax/base.rb#50
2818
+ def removed_features; end
2819
+ end
2820
+ end
2821
+
2822
+ # source://regexp_parser//lib/regexp_parser/syntax/version_lookup.rb#6
2823
+ class Regexp::Syntax::InvalidVersionNameError < ::Regexp::Syntax::SyntaxError
2824
+ # @return [InvalidVersionNameError] a new instance of InvalidVersionNameError
2825
+ #
2826
+ # source://regexp_parser//lib/regexp_parser/syntax/version_lookup.rb#7
2827
+ def initialize(name); end
2828
+ end
2829
+
2830
+ # source://regexp_parser//lib/regexp_parser/syntax/base.rb#2
2831
+ class Regexp::Syntax::NotImplementedError < ::Regexp::Syntax::SyntaxError
2832
+ # @return [NotImplementedError] a new instance of NotImplementedError
2833
+ #
2834
+ # source://regexp_parser//lib/regexp_parser/syntax/base.rb#3
2835
+ def initialize(syntax, type, token); end
2836
+ end
2837
+
2838
+ # source://regexp_parser//lib/regexp_parser/syntax.rb#4
2839
+ class Regexp::Syntax::SyntaxError < ::Regexp::Parser::Error; end
2840
+
2841
+ # source://regexp_parser//lib/regexp_parser/syntax/token.rb#3
2842
+ module Regexp::Syntax::Token; end
2843
+
2844
+ # source://regexp_parser//lib/regexp_parser/syntax/token.rb#42
2845
+ Regexp::Syntax::Token::All = T.let(T.unsafe(nil), Array)
2846
+
2847
+ # source://regexp_parser//lib/regexp_parser/syntax/token/anchor.rb#3
2848
+ module Regexp::Syntax::Token::Anchor; end
2849
+
2850
+ # source://regexp_parser//lib/regexp_parser/syntax/token/anchor.rb#9
2851
+ Regexp::Syntax::Token::Anchor::All = T.let(T.unsafe(nil), Array)
2852
+
2853
+ # source://regexp_parser//lib/regexp_parser/syntax/token/anchor.rb#4
2854
+ Regexp::Syntax::Token::Anchor::Basic = T.let(T.unsafe(nil), Array)
2855
+
2856
+ # source://regexp_parser//lib/regexp_parser/syntax/token/anchor.rb#5
2857
+ Regexp::Syntax::Token::Anchor::Extended = T.let(T.unsafe(nil), Array)
2858
+
2859
+ # source://regexp_parser//lib/regexp_parser/syntax/token/anchor.rb#7
2860
+ Regexp::Syntax::Token::Anchor::MatchStart = T.let(T.unsafe(nil), Array)
2861
+
2862
+ # source://regexp_parser//lib/regexp_parser/syntax/token/anchor.rb#6
2863
+ Regexp::Syntax::Token::Anchor::String = T.let(T.unsafe(nil), Array)
2864
+
2865
+ # source://regexp_parser//lib/regexp_parser/syntax/token/anchor.rb#10
2866
+ Regexp::Syntax::Token::Anchor::Type = T.let(T.unsafe(nil), Symbol)
2867
+
2868
+ # source://regexp_parser//lib/regexp_parser/syntax/token/assertion.rb#3
2869
+ module Regexp::Syntax::Token::Assertion; end
2870
+
2871
+ # source://regexp_parser//lib/regexp_parser/syntax/token/assertion.rb#7
2872
+ Regexp::Syntax::Token::Assertion::All = T.let(T.unsafe(nil), Array)
2873
+
2874
+ # source://regexp_parser//lib/regexp_parser/syntax/token/assertion.rb#4
2875
+ Regexp::Syntax::Token::Assertion::Lookahead = T.let(T.unsafe(nil), Array)
2876
+
2877
+ # source://regexp_parser//lib/regexp_parser/syntax/token/assertion.rb#5
2878
+ Regexp::Syntax::Token::Assertion::Lookbehind = T.let(T.unsafe(nil), Array)
2879
+
2880
+ # source://regexp_parser//lib/regexp_parser/syntax/token/assertion.rb#8
2881
+ Regexp::Syntax::Token::Assertion::Type = T.let(T.unsafe(nil), Symbol)
2882
+
2883
+ # source://regexp_parser//lib/regexp_parser/syntax/token/backreference.rb#3
2884
+ module Regexp::Syntax::Token::Backreference; end
2885
+
2886
+ # source://regexp_parser//lib/regexp_parser/syntax/token/backreference.rb#15
2887
+ Regexp::Syntax::Token::Backreference::All = T.let(T.unsafe(nil), Array)
2888
+
2889
+ # source://regexp_parser//lib/regexp_parser/syntax/token/backreference.rb#7
2890
+ Regexp::Syntax::Token::Backreference::Name = T.let(T.unsafe(nil), Array)
2891
+
2892
+ # source://regexp_parser//lib/regexp_parser/syntax/token/backreference.rb#6
2893
+ Regexp::Syntax::Token::Backreference::Number = T.let(T.unsafe(nil), Array)
2894
+
2895
+ # source://regexp_parser//lib/regexp_parser/syntax/token/backreference.rb#5
2896
+ Regexp::Syntax::Token::Backreference::NumberRef = T.let(T.unsafe(nil), Array)
2897
+
2898
+ # source://regexp_parser//lib/regexp_parser/syntax/token/backreference.rb#4
2899
+ Regexp::Syntax::Token::Backreference::Plain = T.let(T.unsafe(nil), Array)
2900
+
2901
+ # source://regexp_parser//lib/regexp_parser/syntax/token/backreference.rb#9
2902
+ Regexp::Syntax::Token::Backreference::RecursionLevel = T.let(T.unsafe(nil), Array)
2903
+
2904
+ # source://regexp_parser//lib/regexp_parser/syntax/token/backreference.rb#16
2905
+ Regexp::Syntax::Token::Backreference::Type = T.let(T.unsafe(nil), Symbol)
2906
+
2907
+ # source://regexp_parser//lib/regexp_parser/syntax/token/backreference.rb#11
2908
+ Regexp::Syntax::Token::Backreference::V1_8_6 = T.let(T.unsafe(nil), Array)
2909
+
2910
+ # source://regexp_parser//lib/regexp_parser/syntax/token/backreference.rb#13
2911
+ Regexp::Syntax::Token::Backreference::V1_9_1 = T.let(T.unsafe(nil), Array)
2912
+
2913
+ # source://regexp_parser//lib/regexp_parser/syntax/token/character_set.rb#3
2914
+ module Regexp::Syntax::Token::CharacterSet; end
2915
+
2916
+ # source://regexp_parser//lib/regexp_parser/syntax/token/character_set.rb#7
2917
+ Regexp::Syntax::Token::CharacterSet::All = T.let(T.unsafe(nil), Array)
2918
+
2919
+ # source://regexp_parser//lib/regexp_parser/syntax/token/character_set.rb#4
2920
+ Regexp::Syntax::Token::CharacterSet::Basic = T.let(T.unsafe(nil), Array)
2921
+
2922
+ # source://regexp_parser//lib/regexp_parser/syntax/token/character_set.rb#5
2923
+ Regexp::Syntax::Token::CharacterSet::Extended = T.let(T.unsafe(nil), Array)
2924
+
2925
+ # source://regexp_parser//lib/regexp_parser/syntax/token/character_set.rb#8
2926
+ Regexp::Syntax::Token::CharacterSet::Type = T.let(T.unsafe(nil), Symbol)
2927
+
2928
+ # source://regexp_parser//lib/regexp_parser/syntax/token/character_type.rb#3
2929
+ module Regexp::Syntax::Token::CharacterType; end
2930
+
2931
+ # source://regexp_parser//lib/regexp_parser/syntax/token/character_type.rb#10
2932
+ Regexp::Syntax::Token::CharacterType::All = T.let(T.unsafe(nil), Array)
2933
+
2934
+ # source://regexp_parser//lib/regexp_parser/syntax/token/character_type.rb#4
2935
+ Regexp::Syntax::Token::CharacterType::Basic = T.let(T.unsafe(nil), Array)
2936
+
2937
+ # source://regexp_parser//lib/regexp_parser/syntax/token/character_type.rb#8
2938
+ Regexp::Syntax::Token::CharacterType::Clustered = T.let(T.unsafe(nil), Array)
2939
+
2940
+ # source://regexp_parser//lib/regexp_parser/syntax/token/character_type.rb#5
2941
+ Regexp::Syntax::Token::CharacterType::Extended = T.let(T.unsafe(nil), Array)
2942
+
2943
+ # source://regexp_parser//lib/regexp_parser/syntax/token/character_type.rb#6
2944
+ Regexp::Syntax::Token::CharacterType::Hex = T.let(T.unsafe(nil), Array)
2945
+
2946
+ # source://regexp_parser//lib/regexp_parser/syntax/token/character_type.rb#11
2947
+ Regexp::Syntax::Token::CharacterType::Type = T.let(T.unsafe(nil), Symbol)
2948
+
2949
+ # source://regexp_parser//lib/regexp_parser/syntax/token/conditional.rb#3
2950
+ module Regexp::Syntax::Token::Conditional; end
2951
+
2952
+ # source://regexp_parser//lib/regexp_parser/syntax/token/conditional.rb#9
2953
+ Regexp::Syntax::Token::Conditional::All = T.let(T.unsafe(nil), Array)
2954
+
2955
+ # source://regexp_parser//lib/regexp_parser/syntax/token/conditional.rb#6
2956
+ Regexp::Syntax::Token::Conditional::Condition = T.let(T.unsafe(nil), Array)
2957
+
2958
+ # source://regexp_parser//lib/regexp_parser/syntax/token/conditional.rb#4
2959
+ Regexp::Syntax::Token::Conditional::Delimiters = T.let(T.unsafe(nil), Array)
2960
+
2961
+ # source://regexp_parser//lib/regexp_parser/syntax/token/conditional.rb#7
2962
+ Regexp::Syntax::Token::Conditional::Separator = T.let(T.unsafe(nil), Array)
2963
+
2964
+ # source://regexp_parser//lib/regexp_parser/syntax/token/conditional.rb#11
2965
+ Regexp::Syntax::Token::Conditional::Type = T.let(T.unsafe(nil), Symbol)
2966
+
2967
+ # TODO: unify naming with RE::EscapeSequence, one way or the other, in v3.0.0
2968
+ #
2969
+ # source://regexp_parser//lib/regexp_parser/syntax/token/escape.rb#4
2970
+ module Regexp::Syntax::Token::Escape; end
2971
+
2972
+ # source://regexp_parser//lib/regexp_parser/syntax/token/escape.rb#9
2973
+ Regexp::Syntax::Token::Escape::ASCII = T.let(T.unsafe(nil), Array)
2974
+
2975
+ # source://regexp_parser//lib/regexp_parser/syntax/token/escape.rb#25
2976
+ Regexp::Syntax::Token::Escape::All = T.let(T.unsafe(nil), Array)
2977
+
2978
+ # source://regexp_parser//lib/regexp_parser/syntax/token/escape.rb#5
2979
+ Regexp::Syntax::Token::Escape::Basic = T.let(T.unsafe(nil), Array)
2980
+
2981
+ # source://regexp_parser//lib/regexp_parser/syntax/token/escape.rb#7
2982
+ Regexp::Syntax::Token::Escape::Control = T.let(T.unsafe(nil), Array)
2983
+
2984
+ # source://regexp_parser//lib/regexp_parser/syntax/token/escape.rb#21
2985
+ Regexp::Syntax::Token::Escape::Hex = T.let(T.unsafe(nil), Array)
2986
+
2987
+ # source://regexp_parser//lib/regexp_parser/syntax/token/escape.rb#14
2988
+ Regexp::Syntax::Token::Escape::Meta = T.let(T.unsafe(nil), Array)
2989
+
2990
+ # source://regexp_parser//lib/regexp_parser/syntax/token/escape.rb#23
2991
+ Regexp::Syntax::Token::Escape::Octal = T.let(T.unsafe(nil), Array)
2992
+
2993
+ # source://regexp_parser//lib/regexp_parser/syntax/token/escape.rb#26
2994
+ Regexp::Syntax::Token::Escape::Type = T.let(T.unsafe(nil), Symbol)
2995
+
2996
+ # source://regexp_parser//lib/regexp_parser/syntax/token/escape.rb#12
2997
+ Regexp::Syntax::Token::Escape::Unicode = T.let(T.unsafe(nil), Array)
2998
+
2999
+ # source://regexp_parser//lib/regexp_parser/syntax/token.rb#11
3000
+ module Regexp::Syntax::Token::FreeSpace; end
3001
+
3002
+ # source://regexp_parser//lib/regexp_parser/syntax/token.rb#12
3003
+ Regexp::Syntax::Token::FreeSpace::All = T.let(T.unsafe(nil), Array)
3004
+
3005
+ # source://regexp_parser//lib/regexp_parser/syntax/token.rb#13
3006
+ Regexp::Syntax::Token::FreeSpace::Type = T.let(T.unsafe(nil), Symbol)
3007
+
3008
+ # source://regexp_parser//lib/regexp_parser/syntax/token/group.rb#3
3009
+ module Regexp::Syntax::Token::Group; end
3010
+
3011
+ # source://regexp_parser//lib/regexp_parser/syntax/token/group.rb#17
3012
+ Regexp::Syntax::Token::Group::All = T.let(T.unsafe(nil), Array)
3013
+
3014
+ # source://regexp_parser//lib/regexp_parser/syntax/token/group.rb#8
3015
+ Regexp::Syntax::Token::Group::Atomic = T.let(T.unsafe(nil), Array)
3016
+
3017
+ # source://regexp_parser//lib/regexp_parser/syntax/token/group.rb#4
3018
+ Regexp::Syntax::Token::Group::Basic = T.let(T.unsafe(nil), Array)
3019
+
3020
+ # source://regexp_parser//lib/regexp_parser/syntax/token/group.rb#10
3021
+ Regexp::Syntax::Token::Group::Comment = T.let(T.unsafe(nil), Array)
3022
+
3023
+ # source://regexp_parser//lib/regexp_parser/syntax/token/group.rb#5
3024
+ Regexp::Syntax::Token::Group::Extended = T.let(T.unsafe(nil), Array)
3025
+
3026
+ # source://regexp_parser//lib/regexp_parser/syntax/token/group.rb#7
3027
+ Regexp::Syntax::Token::Group::Named = T.let(T.unsafe(nil), Array)
3028
+
3029
+ # source://regexp_parser//lib/regexp_parser/syntax/token/group.rb#9
3030
+ Regexp::Syntax::Token::Group::Passive = T.let(T.unsafe(nil), Array)
3031
+
3032
+ # source://regexp_parser//lib/regexp_parser/syntax/token/group.rb#18
3033
+ Regexp::Syntax::Token::Group::Type = T.let(T.unsafe(nil), Symbol)
3034
+
3035
+ # source://regexp_parser//lib/regexp_parser/syntax/token/group.rb#12
3036
+ Regexp::Syntax::Token::Group::V1_8_6 = T.let(T.unsafe(nil), Array)
3037
+
3038
+ # source://regexp_parser//lib/regexp_parser/syntax/token/group.rb#15
3039
+ Regexp::Syntax::Token::Group::V2_4_1 = T.let(T.unsafe(nil), Array)
3040
+
3041
+ # source://regexp_parser//lib/regexp_parser/syntax/token/keep.rb#3
3042
+ module Regexp::Syntax::Token::Keep; end
3043
+
3044
+ # source://regexp_parser//lib/regexp_parser/syntax/token/keep.rb#6
3045
+ Regexp::Syntax::Token::Keep::All = T.let(T.unsafe(nil), Array)
3046
+
3047
+ # source://regexp_parser//lib/regexp_parser/syntax/token/keep.rb#4
3048
+ Regexp::Syntax::Token::Keep::Mark = T.let(T.unsafe(nil), Array)
3049
+
3050
+ # source://regexp_parser//lib/regexp_parser/syntax/token/keep.rb#7
3051
+ Regexp::Syntax::Token::Keep::Type = T.let(T.unsafe(nil), Symbol)
3052
+
3053
+ # source://regexp_parser//lib/regexp_parser/syntax/token.rb#6
3054
+ module Regexp::Syntax::Token::Literal; end
3055
+
3056
+ # source://regexp_parser//lib/regexp_parser/syntax/token.rb#7
3057
+ Regexp::Syntax::Token::Literal::All = T.let(T.unsafe(nil), Array)
3058
+
3059
+ # source://regexp_parser//lib/regexp_parser/syntax/token.rb#8
3060
+ Regexp::Syntax::Token::Literal::Type = T.let(T.unsafe(nil), Symbol)
3061
+
3062
+ # source://regexp_parser//lib/regexp_parser/syntax/token.rb#4
3063
+ Regexp::Syntax::Token::Map = T.let(T.unsafe(nil), Hash)
3064
+
3065
+ # source://regexp_parser//lib/regexp_parser/syntax/token/meta.rb#3
3066
+ module Regexp::Syntax::Token::Meta; end
3067
+
3068
+ # source://regexp_parser//lib/regexp_parser/syntax/token/meta.rb#7
3069
+ Regexp::Syntax::Token::Meta::All = T.let(T.unsafe(nil), Array)
3070
+
3071
+ # source://regexp_parser//lib/regexp_parser/syntax/token/meta.rb#4
3072
+ Regexp::Syntax::Token::Meta::Basic = T.let(T.unsafe(nil), Array)
3073
+
3074
+ # source://regexp_parser//lib/regexp_parser/syntax/token/meta.rb#5
3075
+ Regexp::Syntax::Token::Meta::Extended = T.let(T.unsafe(nil), Array)
3076
+
3077
+ # source://regexp_parser//lib/regexp_parser/syntax/token/meta.rb#8
3078
+ Regexp::Syntax::Token::Meta::Type = T.let(T.unsafe(nil), Symbol)
3079
+
3080
+ # source://regexp_parser//lib/regexp_parser/syntax/token/posix_class.rb#3
3081
+ module Regexp::Syntax::Token::PosixClass; end
3082
+
3083
+ # source://regexp_parser//lib/regexp_parser/syntax/token/posix_class.rb#9
3084
+ Regexp::Syntax::Token::PosixClass::All = T.let(T.unsafe(nil), Array)
3085
+
3086
+ # source://regexp_parser//lib/regexp_parser/syntax/token/posix_class.rb#7
3087
+ Regexp::Syntax::Token::PosixClass::Extensions = T.let(T.unsafe(nil), Array)
3088
+
3089
+ # source://regexp_parser//lib/regexp_parser/syntax/token/posix_class.rb#11
3090
+ Regexp::Syntax::Token::PosixClass::NonType = T.let(T.unsafe(nil), Symbol)
3091
+
3092
+ # source://regexp_parser//lib/regexp_parser/syntax/token/posix_class.rb#4
3093
+ Regexp::Syntax::Token::PosixClass::Standard = T.let(T.unsafe(nil), Array)
3094
+
3095
+ # source://regexp_parser//lib/regexp_parser/syntax/token/posix_class.rb#10
3096
+ Regexp::Syntax::Token::PosixClass::Type = T.let(T.unsafe(nil), Symbol)
3097
+
3098
+ # source://regexp_parser//lib/regexp_parser/syntax/token/quantifier.rb#3
3099
+ module Regexp::Syntax::Token::Quantifier; end
3100
+
3101
+ # source://regexp_parser//lib/regexp_parser/syntax/token/quantifier.rb#29
3102
+ Regexp::Syntax::Token::Quantifier::All = T.let(T.unsafe(nil), Array)
3103
+
3104
+ # source://regexp_parser//lib/regexp_parser/syntax/token/quantifier.rb#4
3105
+ Regexp::Syntax::Token::Quantifier::Greedy = T.let(T.unsafe(nil), Array)
3106
+
3107
+ # source://regexp_parser//lib/regexp_parser/syntax/token/quantifier.rb#22
3108
+ Regexp::Syntax::Token::Quantifier::Interval = T.let(T.unsafe(nil), Array)
3109
+
3110
+ # source://regexp_parser//lib/regexp_parser/syntax/token/quantifier.rb#26
3111
+ Regexp::Syntax::Token::Quantifier::IntervalAll = T.let(T.unsafe(nil), Array)
3112
+
3113
+ # source://regexp_parser//lib/regexp_parser/syntax/token/quantifier.rb#24
3114
+ Regexp::Syntax::Token::Quantifier::IntervalPossessive = T.let(T.unsafe(nil), Array)
3115
+
3116
+ # source://regexp_parser//lib/regexp_parser/syntax/token/quantifier.rb#23
3117
+ Regexp::Syntax::Token::Quantifier::IntervalReluctant = T.let(T.unsafe(nil), Array)
3118
+
3119
+ # source://regexp_parser//lib/regexp_parser/syntax/token/quantifier.rb#16
3120
+ Regexp::Syntax::Token::Quantifier::Possessive = T.let(T.unsafe(nil), Array)
3121
+
3122
+ # source://regexp_parser//lib/regexp_parser/syntax/token/quantifier.rb#10
3123
+ Regexp::Syntax::Token::Quantifier::Reluctant = T.let(T.unsafe(nil), Array)
3124
+
3125
+ # source://regexp_parser//lib/regexp_parser/syntax/token/quantifier.rb#30
3126
+ Regexp::Syntax::Token::Quantifier::Type = T.let(T.unsafe(nil), Symbol)
3127
+
3128
+ # source://regexp_parser//lib/regexp_parser/syntax/token/quantifier.rb#28
3129
+ Regexp::Syntax::Token::Quantifier::V1_8_6 = T.let(T.unsafe(nil), Array)
3130
+
3131
+ # Type is the same as Backreference so keeping it here, for now.
3132
+ #
3133
+ # source://regexp_parser//lib/regexp_parser/syntax/token/backreference.rb#20
3134
+ module Regexp::Syntax::Token::SubexpressionCall; end
3135
+
3136
+ # source://regexp_parser//lib/regexp_parser/syntax/token/backreference.rb#24
3137
+ Regexp::Syntax::Token::SubexpressionCall::All = T.let(T.unsafe(nil), Array)
3138
+
3139
+ # source://regexp_parser//lib/regexp_parser/syntax/token/backreference.rb#21
3140
+ Regexp::Syntax::Token::SubexpressionCall::Name = T.let(T.unsafe(nil), Array)
3141
+
3142
+ # source://regexp_parser//lib/regexp_parser/syntax/token/backreference.rb#22
3143
+ Regexp::Syntax::Token::SubexpressionCall::Number = T.let(T.unsafe(nil), Array)
3144
+
3145
+ # source://regexp_parser//lib/regexp_parser/syntax/token.rb#43
3146
+ Regexp::Syntax::Token::Types = T.let(T.unsafe(nil), Array)
3147
+
3148
+ # source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#3
3149
+ module Regexp::Syntax::Token::UnicodeProperty; end
3150
+
3151
+ # source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#64
3152
+ Regexp::Syntax::Token::UnicodeProperty::Age = T.let(T.unsafe(nil), Array)
3153
+
3154
+ # source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#40
3155
+ Regexp::Syntax::Token::UnicodeProperty::Age_V1_9_3 = T.let(T.unsafe(nil), Array)
3156
+
3157
+ # source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#44
3158
+ Regexp::Syntax::Token::UnicodeProperty::Age_V2_0_0 = T.let(T.unsafe(nil), Array)
3159
+
3160
+ # source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#46
3161
+ Regexp::Syntax::Token::UnicodeProperty::Age_V2_2_0 = T.let(T.unsafe(nil), Array)
3162
+
3163
+ # source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#48
3164
+ Regexp::Syntax::Token::UnicodeProperty::Age_V2_3_0 = T.let(T.unsafe(nil), Array)
3165
+
3166
+ # source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#50
3167
+ Regexp::Syntax::Token::UnicodeProperty::Age_V2_4_0 = T.let(T.unsafe(nil), Array)
3168
+
3169
+ # source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#52
3170
+ Regexp::Syntax::Token::UnicodeProperty::Age_V2_5_0 = T.let(T.unsafe(nil), Array)
3171
+
3172
+ # source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#54
3173
+ Regexp::Syntax::Token::UnicodeProperty::Age_V2_6_0 = T.let(T.unsafe(nil), Array)
3174
+
3175
+ # source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#56
3176
+ Regexp::Syntax::Token::UnicodeProperty::Age_V2_6_2 = T.let(T.unsafe(nil), Array)
3177
+
3178
+ # source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#58
3179
+ Regexp::Syntax::Token::UnicodeProperty::Age_V2_6_3 = T.let(T.unsafe(nil), Array)
3180
+
3181
+ # source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#60
3182
+ Regexp::Syntax::Token::UnicodeProperty::Age_V3_1_0 = T.let(T.unsafe(nil), Array)
3183
+
3184
+ # source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#62
3185
+ Regexp::Syntax::Token::UnicodeProperty::Age_V3_2_0 = T.let(T.unsafe(nil), Array)
3186
+
3187
+ # source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#708
3188
+ Regexp::Syntax::Token::UnicodeProperty::All = T.let(T.unsafe(nil), Array)
3189
+
3190
+ # source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#13
3191
+ module Regexp::Syntax::Token::UnicodeProperty::Category; end
3192
+
3193
+ # source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#36
3194
+ Regexp::Syntax::Token::UnicodeProperty::Category::All = T.let(T.unsafe(nil), Array)
3195
+
3196
+ # source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#33
3197
+ Regexp::Syntax::Token::UnicodeProperty::Category::Codepoint = T.let(T.unsafe(nil), Array)
3198
+
3199
+ # source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#14
3200
+ Regexp::Syntax::Token::UnicodeProperty::Category::Letter = T.let(T.unsafe(nil), Array)
3201
+
3202
+ # source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#17
3203
+ Regexp::Syntax::Token::UnicodeProperty::Category::Mark = T.let(T.unsafe(nil), Array)
3204
+
3205
+ # source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#20
3206
+ Regexp::Syntax::Token::UnicodeProperty::Category::Number = T.let(T.unsafe(nil), Array)
3207
+
3208
+ # source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#23
3209
+ Regexp::Syntax::Token::UnicodeProperty::Category::Punctuation = T.let(T.unsafe(nil), Array)
3210
+
3211
+ # source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#30
3212
+ Regexp::Syntax::Token::UnicodeProperty::Category::Separator = T.let(T.unsafe(nil), Array)
3213
+
3214
+ # source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#27
3215
+ Regexp::Syntax::Token::UnicodeProperty::Category::Symbol = T.let(T.unsafe(nil), Array)
3216
+
3217
+ # source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#6
3218
+ Regexp::Syntax::Token::UnicodeProperty::CharType_V1_9_0 = T.let(T.unsafe(nil), Array)
3219
+
3220
+ # source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#9
3221
+ Regexp::Syntax::Token::UnicodeProperty::CharType_V2_5_0 = T.let(T.unsafe(nil), Array)
3222
+
3223
+ # source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#133
3224
+ Regexp::Syntax::Token::UnicodeProperty::Derived = T.let(T.unsafe(nil), Array)
3225
+
3226
+ # source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#66
3227
+ Regexp::Syntax::Token::UnicodeProperty::Derived_V1_9_0 = T.let(T.unsafe(nil), Array)
3228
+
3229
+ # source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#120
3230
+ Regexp::Syntax::Token::UnicodeProperty::Derived_V2_0_0 = T.let(T.unsafe(nil), Array)
3231
+
3232
+ # source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#125
3233
+ Regexp::Syntax::Token::UnicodeProperty::Derived_V2_4_0 = T.let(T.unsafe(nil), Array)
3234
+
3235
+ # source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#129
3236
+ Regexp::Syntax::Token::UnicodeProperty::Derived_V2_5_0 = T.let(T.unsafe(nil), Array)
3237
+
3238
+ # source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#693
3239
+ Regexp::Syntax::Token::UnicodeProperty::Emoji = T.let(T.unsafe(nil), Array)
3240
+
3241
+ # source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#685
3242
+ Regexp::Syntax::Token::UnicodeProperty::Emoji_V2_5_0 = T.let(T.unsafe(nil), Array)
3243
+
3244
+ # source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#711
3245
+ Regexp::Syntax::Token::UnicodeProperty::NonType = T.let(T.unsafe(nil), Symbol)
3246
+
3247
+ # source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#11
3248
+ Regexp::Syntax::Token::UnicodeProperty::POSIX = T.let(T.unsafe(nil), Array)
3249
+
3250
+ # source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#330
3251
+ Regexp::Syntax::Token::UnicodeProperty::Script = T.let(T.unsafe(nil), Array)
3252
+
3253
+ # source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#135
3254
+ Regexp::Syntax::Token::UnicodeProperty::Script_V1_9_0 = T.let(T.unsafe(nil), Array)
3255
+
3256
+ # source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#231
3257
+ Regexp::Syntax::Token::UnicodeProperty::Script_V1_9_3 = T.let(T.unsafe(nil), Array)
3258
+
3259
+ # source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#237
3260
+ Regexp::Syntax::Token::UnicodeProperty::Script_V2_0_0 = T.let(T.unsafe(nil), Array)
3261
+
3262
+ # source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#247
3263
+ Regexp::Syntax::Token::UnicodeProperty::Script_V2_2_0 = T.let(T.unsafe(nil), Array)
3264
+
3265
+ # source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#273
3266
+ Regexp::Syntax::Token::UnicodeProperty::Script_V2_3_0 = T.let(T.unsafe(nil), Array)
3267
+
3268
+ # source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#282
3269
+ Regexp::Syntax::Token::UnicodeProperty::Script_V2_4_0 = T.let(T.unsafe(nil), Array)
3270
+
3271
+ # source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#291
3272
+ Regexp::Syntax::Token::UnicodeProperty::Script_V2_5_0 = T.let(T.unsafe(nil), Array)
3273
+
3274
+ # source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#298
3275
+ Regexp::Syntax::Token::UnicodeProperty::Script_V2_6_0 = T.let(T.unsafe(nil), Array)
3276
+
3277
+ # source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#308
3278
+ Regexp::Syntax::Token::UnicodeProperty::Script_V2_6_2 = T.let(T.unsafe(nil), Array)
3279
+
3280
+ # source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#315
3281
+ Regexp::Syntax::Token::UnicodeProperty::Script_V3_1_0 = T.let(T.unsafe(nil), Array)
3282
+
3283
+ # source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#322
3284
+ Regexp::Syntax::Token::UnicodeProperty::Script_V3_2_0 = T.let(T.unsafe(nil), Array)
3285
+
3286
+ # source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#710
3287
+ Regexp::Syntax::Token::UnicodeProperty::Type = T.let(T.unsafe(nil), Symbol)
3288
+
3289
+ # source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#683
3290
+ Regexp::Syntax::Token::UnicodeProperty::UnicodeBlock = T.let(T.unsafe(nil), Array)
3291
+
3292
+ # source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#332
3293
+ Regexp::Syntax::Token::UnicodeProperty::UnicodeBlock_V1_9_0 = T.let(T.unsafe(nil), Array)
3294
+
3295
+ # source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#431
3296
+ Regexp::Syntax::Token::UnicodeProperty::UnicodeBlock_V2_0_0 = T.let(T.unsafe(nil), Array)
3297
+
3298
+ # source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#559
3299
+ Regexp::Syntax::Token::UnicodeProperty::UnicodeBlock_V2_2_0 = T.let(T.unsafe(nil), Array)
3300
+
3301
+ # source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#594
3302
+ Regexp::Syntax::Token::UnicodeProperty::UnicodeBlock_V2_3_0 = T.let(T.unsafe(nil), Array)
3303
+
3304
+ # source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#607
3305
+ Regexp::Syntax::Token::UnicodeProperty::UnicodeBlock_V2_4_0 = T.let(T.unsafe(nil), Array)
3306
+
3307
+ # source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#621
3308
+ Regexp::Syntax::Token::UnicodeProperty::UnicodeBlock_V2_5_0 = T.let(T.unsafe(nil), Array)
3309
+
3310
+ # source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#631
3311
+ Regexp::Syntax::Token::UnicodeProperty::UnicodeBlock_V2_6_0 = T.let(T.unsafe(nil), Array)
3312
+
3313
+ # source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#645
3314
+ Regexp::Syntax::Token::UnicodeProperty::UnicodeBlock_V2_6_2 = T.let(T.unsafe(nil), Array)
3315
+
3316
+ # source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#657
3317
+ Regexp::Syntax::Token::UnicodeProperty::UnicodeBlock_V3_1_0 = T.let(T.unsafe(nil), Array)
3318
+
3319
+ # source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#668
3320
+ Regexp::Syntax::Token::UnicodeProperty::UnicodeBlock_V3_2_0 = T.let(T.unsafe(nil), Array)
3321
+
3322
+ # source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#695
3323
+ Regexp::Syntax::Token::UnicodeProperty::V1_9_0 = T.let(T.unsafe(nil), Array)
3324
+
3325
+ # source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#696
3326
+ Regexp::Syntax::Token::UnicodeProperty::V1_9_3 = T.let(T.unsafe(nil), Array)
3327
+
3328
+ # source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#697
3329
+ Regexp::Syntax::Token::UnicodeProperty::V2_0_0 = T.let(T.unsafe(nil), Array)
3330
+
3331
+ # source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#698
3332
+ Regexp::Syntax::Token::UnicodeProperty::V2_2_0 = T.let(T.unsafe(nil), Array)
3333
+
3334
+ # source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#699
3335
+ Regexp::Syntax::Token::UnicodeProperty::V2_3_0 = T.let(T.unsafe(nil), Array)
3336
+
3337
+ # source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#700
3338
+ Regexp::Syntax::Token::UnicodeProperty::V2_4_0 = T.let(T.unsafe(nil), Array)
3339
+
3340
+ # source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#701
3341
+ Regexp::Syntax::Token::UnicodeProperty::V2_5_0 = T.let(T.unsafe(nil), Array)
3342
+
3343
+ # source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#702
3344
+ Regexp::Syntax::Token::UnicodeProperty::V2_6_0 = T.let(T.unsafe(nil), Array)
3345
+
3346
+ # source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#703
3347
+ Regexp::Syntax::Token::UnicodeProperty::V2_6_2 = T.let(T.unsafe(nil), Array)
3348
+
3349
+ # source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#704
3350
+ Regexp::Syntax::Token::UnicodeProperty::V2_6_3 = T.let(T.unsafe(nil), Array)
3351
+
3352
+ # source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#705
3353
+ Regexp::Syntax::Token::UnicodeProperty::V3_1_0 = T.let(T.unsafe(nil), Array)
3354
+
3355
+ # source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#706
3356
+ Regexp::Syntax::Token::UnicodeProperty::V3_2_0 = T.let(T.unsafe(nil), Array)
3357
+
3358
+ # source://regexp_parser//lib/regexp_parser/syntax/version_lookup.rb#12
3359
+ class Regexp::Syntax::UnknownSyntaxNameError < ::Regexp::Syntax::SyntaxError
3360
+ # @return [UnknownSyntaxNameError] a new instance of UnknownSyntaxNameError
3361
+ #
3362
+ # source://regexp_parser//lib/regexp_parser/syntax/version_lookup.rb#13
3363
+ def initialize(name); end
3364
+ end
3365
+
3366
+ # source://regexp_parser//lib/regexp_parser/syntax/versions/1.8.6.rb#1
3367
+ class Regexp::Syntax::V1_8_6 < ::Regexp::Syntax::Base; end
3368
+
3369
+ # source://regexp_parser//lib/regexp_parser/syntax/versions/1.9.1.rb#1
3370
+ class Regexp::Syntax::V1_9_1 < ::Regexp::Syntax::V1_8_6; end
3371
+
3372
+ # source://regexp_parser//lib/regexp_parser/syntax/versions/1.9.3.rb#1
3373
+ class Regexp::Syntax::V1_9_3 < ::Regexp::Syntax::V1_9_1; end
3374
+
3375
+ # source://regexp_parser//lib/regexp_parser/syntax/versions/2.0.0.rb#1
3376
+ class Regexp::Syntax::V2_0_0 < ::Regexp::Syntax::V1_9_3; end
3377
+
3378
+ # source://regexp_parser//lib/regexp_parser/syntax/versions/2.2.0.rb#1
3379
+ class Regexp::Syntax::V2_2_0 < ::Regexp::Syntax::V2_0_0; end
3380
+
3381
+ # source://regexp_parser//lib/regexp_parser/syntax/versions/2.3.0.rb#1
3382
+ class Regexp::Syntax::V2_3_0 < ::Regexp::Syntax::V2_2_0; end
3383
+
3384
+ # source://regexp_parser//lib/regexp_parser/syntax/versions/2.4.0.rb#1
3385
+ class Regexp::Syntax::V2_4_0 < ::Regexp::Syntax::V2_3_0; end
3386
+
3387
+ # source://regexp_parser//lib/regexp_parser/syntax/versions/2.4.1.rb#1
3388
+ class Regexp::Syntax::V2_4_1 < ::Regexp::Syntax::V2_4_0; end
3389
+
3390
+ # source://regexp_parser//lib/regexp_parser/syntax/versions/2.5.0.rb#1
3391
+ class Regexp::Syntax::V2_5_0 < ::Regexp::Syntax::V2_4_1; end
3392
+
3393
+ # source://regexp_parser//lib/regexp_parser/syntax/versions/2.6.0.rb#1
3394
+ class Regexp::Syntax::V2_6_0 < ::Regexp::Syntax::V2_5_0; end
3395
+
3396
+ # source://regexp_parser//lib/regexp_parser/syntax/versions/2.6.2.rb#1
3397
+ class Regexp::Syntax::V2_6_2 < ::Regexp::Syntax::V2_6_0; end
3398
+
3399
+ # source://regexp_parser//lib/regexp_parser/syntax/versions/2.6.3.rb#1
3400
+ class Regexp::Syntax::V2_6_3 < ::Regexp::Syntax::V2_6_2; end
3401
+
3402
+ # source://regexp_parser//lib/regexp_parser/syntax/versions/3.1.0.rb#1
3403
+ class Regexp::Syntax::V3_1_0 < ::Regexp::Syntax::V2_6_3; end
3404
+
3405
+ # source://regexp_parser//lib/regexp_parser/syntax/versions/3.2.0.rb#1
3406
+ class Regexp::Syntax::V3_2_0 < ::Regexp::Syntax::V3_1_0; end
3407
+
3408
+ # source://regexp_parser//lib/regexp_parser/syntax/version_lookup.rb#4
3409
+ Regexp::Syntax::VERSION_CONST_REGEXP = T.let(T.unsafe(nil), Regexp)
3410
+
3411
+ # source://regexp_parser//lib/regexp_parser/syntax/version_lookup.rb#2
3412
+ Regexp::Syntax::VERSION_FORMAT = T.let(T.unsafe(nil), String)
3413
+
3414
+ # source://regexp_parser//lib/regexp_parser/syntax/version_lookup.rb#3
3415
+ Regexp::Syntax::VERSION_REGEXP = T.let(T.unsafe(nil), Regexp)
3416
+
3417
+ # source://regexp_parser//lib/regexp_parser/token.rb#2
3418
+ Regexp::TOKEN_KEYS = T.let(T.unsafe(nil), Array)
3419
+
3420
+ # source://regexp_parser//lib/regexp_parser/token.rb#13
3421
+ class Regexp::Token < ::Struct
3422
+ def conditional_level; end
3423
+
3424
+ # source://regexp_parser//lib/regexp_parser/token.rb#13
3425
+ def conditional_level=(_); end
3426
+
3427
+ # source://regexp_parser//lib/regexp_parser/token.rb#20
3428
+ def length; end
3429
+
3430
+ def level; end
3431
+
3432
+ # source://regexp_parser//lib/regexp_parser/token.rb#13
3433
+ def level=(_); end
3434
+
3435
+ # Returns the value of attribute next.
3436
+ #
3437
+ # source://regexp_parser//lib/regexp_parser/token.rb#14
3438
+ def next; end
3439
+
3440
+ # Sets the attribute next
3441
+ #
3442
+ # @param value the value to set the attribute next to.
3443
+ #
3444
+ # source://regexp_parser//lib/regexp_parser/token.rb#14
3445
+ def next=(_arg0); end
3446
+
3447
+ # source://regexp_parser//lib/regexp_parser/token.rb#16
3448
+ def offset; end
3449
+
3450
+ # Returns the value of attribute previous.
3451
+ #
3452
+ # source://regexp_parser//lib/regexp_parser/token.rb#14
3453
+ def previous; end
3454
+
3455
+ # Sets the attribute previous
3456
+ #
3457
+ # @param value the value to set the attribute previous to.
3458
+ #
3459
+ # source://regexp_parser//lib/regexp_parser/token.rb#14
3460
+ def previous=(_arg0); end
3461
+
3462
+ def set_level; end
3463
+
3464
+ # source://regexp_parser//lib/regexp_parser/token.rb#13
3465
+ def set_level=(_); end
3466
+
3467
+ def te; end
3468
+
3469
+ # source://regexp_parser//lib/regexp_parser/token.rb#13
3470
+ def te=(_); end
3471
+
3472
+ def text; end
3473
+
3474
+ # source://regexp_parser//lib/regexp_parser/token.rb#13
3475
+ def text=(_); end
3476
+
3477
+ def token; end
3478
+
3479
+ # source://regexp_parser//lib/regexp_parser/token.rb#13
3480
+ def token=(_); end
3481
+
3482
+ def ts; end
3483
+
3484
+ # source://regexp_parser//lib/regexp_parser/token.rb#13
3485
+ def ts=(_); end
3486
+
3487
+ def type; end
3488
+
3489
+ # source://regexp_parser//lib/regexp_parser/token.rb#13
3490
+ def type=(_); end
3491
+
3492
+ class << self
3493
+ def [](*_arg0); end
3494
+ def inspect; end
3495
+ def members; end
3496
+ def new(*_arg0); end
3497
+ end
3498
+ end