danger-packwerk 0.7.0 → 0.7.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (86) hide show
  1. checksums.yaml +4 -4
  2. data/lib/danger-packwerk/packwerk_wrapper.rb +2 -2
  3. data/lib/danger-packwerk/version.rb +1 -1
  4. data/sorbet/config +1 -0
  5. data/sorbet/rbi/gems/actionview@7.0.4.rbi +11543 -0
  6. data/sorbet/rbi/gems/activesupport@7.0.4.rbi +12959 -0
  7. data/sorbet/rbi/gems/addressable@2.8.1.rbi +1505 -0
  8. data/sorbet/rbi/gems/ast@2.4.2.rbi +522 -0
  9. data/sorbet/rbi/gems/better_html@2.0.1.rbi +286 -0
  10. data/sorbet/rbi/gems/builder@3.2.4.rbi +8 -0
  11. data/sorbet/rbi/gems/claide-plugins@0.9.2.rbi +791 -0
  12. data/sorbet/rbi/gems/claide@1.1.0.rbi +1132 -0
  13. data/sorbet/rbi/gems/coderay@1.1.3.rbi +2256 -0
  14. data/sorbet/rbi/gems/colored2@3.1.2.rbi +130 -0
  15. data/sorbet/rbi/gems/concurrent-ruby@1.1.10.rbi +8695 -0
  16. data/sorbet/rbi/gems/cork@0.3.0.rbi +248 -0
  17. data/sorbet/rbi/gems/crass@1.0.6.rbi +436 -0
  18. data/sorbet/rbi/gems/danger-plugin-api@1.0.0.rbi +8 -0
  19. data/sorbet/rbi/gems/danger@9.0.0.rbi +4722 -0
  20. data/sorbet/rbi/gems/diff-lcs@1.5.0.rbi +862 -0
  21. data/sorbet/rbi/gems/erubi@1.11.0.rbi +102 -0
  22. data/sorbet/rbi/gems/faraday-em_http@1.0.0.rbi +266 -0
  23. data/sorbet/rbi/gems/faraday-em_synchrony@1.0.0.rbi +209 -0
  24. data/sorbet/rbi/gems/faraday-excon@1.1.0.rbi +212 -0
  25. data/sorbet/rbi/gems/faraday-http-cache@2.4.1.rbi +805 -0
  26. data/sorbet/rbi/gems/faraday-httpclient@1.0.1.rbi +221 -0
  27. data/sorbet/rbi/gems/faraday-multipart@1.0.4.rbi +266 -0
  28. data/sorbet/rbi/gems/faraday-net_http@1.0.1.rbi +216 -0
  29. data/sorbet/rbi/gems/faraday-net_http_persistent@1.2.0.rbi +206 -0
  30. data/sorbet/rbi/gems/faraday-patron@1.0.0.rbi +212 -0
  31. data/sorbet/rbi/gems/faraday-rack@1.0.0.rbi +225 -0
  32. data/sorbet/rbi/gems/faraday-retry@1.0.3.rbi +222 -0
  33. data/sorbet/rbi/gems/faraday@1.10.2.rbi +1862 -0
  34. data/sorbet/rbi/gems/git@1.12.0.rbi +1936 -0
  35. data/sorbet/rbi/gems/i18n@1.12.0.rbi +1643 -0
  36. data/sorbet/rbi/gems/json@2.6.2.rbi +1418 -0
  37. data/sorbet/rbi/gems/kramdown-parser-gfm@1.1.0.rbi +8 -0
  38. data/sorbet/rbi/gems/kramdown@2.4.0.rbi +2168 -0
  39. data/sorbet/rbi/gems/loofah@2.19.0.rbi +646 -0
  40. data/sorbet/rbi/gems/method_source@1.0.0.rbi +199 -0
  41. data/sorbet/rbi/gems/minitest@5.16.3.rbi +997 -0
  42. data/sorbet/rbi/gems/multipart-post@2.2.3.rbi +165 -0
  43. data/sorbet/rbi/gems/nap@1.1.0.rbi +351 -0
  44. data/sorbet/rbi/gems/no_proxy_fix@0.1.2.rbi +8 -0
  45. data/sorbet/rbi/gems/nokogiri@1.13.8.rbi +4916 -0
  46. data/sorbet/rbi/gems/octokit@5.6.1.rbi +8939 -0
  47. data/sorbet/rbi/gems/open4@1.3.4.rbi +8 -0
  48. data/sorbet/rbi/gems/{packwerk@2.1.1.rbi → packwerk@2.2.1.rbi} +602 -51
  49. data/sorbet/rbi/gems/parallel@1.22.1.rbi +163 -0
  50. data/sorbet/rbi/gems/parser@3.1.2.1.rbi +5988 -0
  51. data/sorbet/rbi/gems/pry@0.14.1.rbi +6969 -0
  52. data/sorbet/rbi/gems/public_suffix@5.0.0.rbi +779 -0
  53. data/sorbet/rbi/gems/racc@1.6.0.rbi +92 -0
  54. data/sorbet/rbi/gems/rails-dom-testing@2.0.3.rbi +8 -0
  55. data/sorbet/rbi/gems/rails-html-sanitizer@1.4.3.rbi +493 -0
  56. data/sorbet/rbi/gems/rainbow@3.1.1.rbi +227 -0
  57. data/sorbet/rbi/gems/rake@13.0.6.rbi +1865 -0
  58. data/sorbet/rbi/gems/rbi@0.0.14.rbi +2337 -0
  59. data/sorbet/rbi/gems/rchardet@1.8.0.rbi +587 -0
  60. data/sorbet/rbi/gems/regexp_parser@2.5.0.rbi +1851 -0
  61. data/sorbet/rbi/gems/rexml@3.2.5.rbi +3852 -0
  62. data/sorbet/rbi/gems/rspec-core@3.11.0.rbi +7725 -0
  63. data/sorbet/rbi/gems/rspec-expectations@3.11.0.rbi +6201 -0
  64. data/sorbet/rbi/gems/rspec-mocks@3.11.1.rbi +3625 -0
  65. data/sorbet/rbi/gems/rspec-support@3.11.0.rbi +1176 -0
  66. data/sorbet/rbi/gems/rspec@3.11.0.rbi +40 -0
  67. data/sorbet/rbi/gems/rubocop-ast@1.21.0.rbi +4193 -0
  68. data/sorbet/rbi/gems/rubocop-sorbet@0.6.8.rbi +677 -0
  69. data/sorbet/rbi/gems/rubocop@1.36.0.rbi +37914 -0
  70. data/sorbet/rbi/gems/ruby-progressbar@1.11.0.rbi +732 -0
  71. data/sorbet/rbi/gems/ruby2_keywords@0.0.5.rbi +8 -0
  72. data/sorbet/rbi/gems/sawyer@0.9.2.rbi +513 -0
  73. data/sorbet/rbi/gems/smart_properties@1.17.0.rbi +326 -0
  74. data/sorbet/rbi/gems/spoom@1.1.11.rbi +1600 -0
  75. data/sorbet/rbi/gems/tapioca@0.8.0.rbi +1959 -0
  76. data/sorbet/rbi/gems/terminal-table@3.0.2.rbi +438 -0
  77. data/sorbet/rbi/gems/thor@1.2.1.rbi +2921 -0
  78. data/sorbet/rbi/gems/tzinfo@2.0.5.rbi +4879 -0
  79. data/sorbet/rbi/gems/unicode-display_width@2.3.0.rbi +27 -0
  80. data/sorbet/rbi/gems/unparser@0.6.5.rbi +2789 -0
  81. data/sorbet/rbi/gems/webrick@1.7.0.rbi +1802 -0
  82. data/sorbet/rbi/gems/yard-sorbet@0.6.1.rbi +288 -0
  83. data/sorbet/rbi/gems/yard@0.9.27.rbi +12668 -0
  84. data/sorbet/rbi/todo.rbi +122 -0
  85. metadata +84 -7
  86. data/sorbet/rbi/gems/danger@8.5.0.rbi +0 -122
@@ -0,0 +1,1851 @@
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
+ module Regexp::Expression; end
8
+
9
+ class Regexp::Expression::Alternation < ::Regexp::Expression::SequenceOperation
10
+ def alternatives; end
11
+ def match_length; end
12
+ end
13
+
14
+ Regexp::Expression::Alternation::OPERAND = Regexp::Expression::Alternative
15
+
16
+ # A sequence of expressions, used by Alternation as one of its alternative.
17
+ class Regexp::Expression::Alternative < ::Regexp::Expression::Sequence; end
18
+
19
+ module Regexp::Expression::Anchor; end
20
+ Regexp::Expression::Anchor::BOL = Regexp::Expression::Anchor::BeginningOfLine
21
+ Regexp::Expression::Anchor::BOS = Regexp::Expression::Anchor::BeginningOfString
22
+
23
+ class Regexp::Expression::Anchor::Base < ::Regexp::Expression::Base
24
+ def match_length; end
25
+ end
26
+
27
+ class Regexp::Expression::Anchor::BeginningOfLine < ::Regexp::Expression::Anchor::Base; end
28
+ class Regexp::Expression::Anchor::BeginningOfString < ::Regexp::Expression::Anchor::Base; end
29
+ Regexp::Expression::Anchor::EOL = Regexp::Expression::Anchor::EndOfLine
30
+ Regexp::Expression::Anchor::EOS = Regexp::Expression::Anchor::EndOfString
31
+ Regexp::Expression::Anchor::EOSobEOL = Regexp::Expression::Anchor::EndOfStringOrBeforeEndOfLine
32
+ class Regexp::Expression::Anchor::EndOfLine < ::Regexp::Expression::Anchor::Base; end
33
+ class Regexp::Expression::Anchor::EndOfString < ::Regexp::Expression::Anchor::Base; end
34
+ class Regexp::Expression::Anchor::EndOfStringOrBeforeEndOfLine < ::Regexp::Expression::Anchor::Base; end
35
+ class Regexp::Expression::Anchor::MatchStart < ::Regexp::Expression::Anchor::Base; end
36
+ class Regexp::Expression::Anchor::NonWordBoundary < ::Regexp::Expression::Anchor::Base; end
37
+ class Regexp::Expression::Anchor::WordBoundary < ::Regexp::Expression::Anchor::Base; end
38
+ module Regexp::Expression::Assertion; end
39
+
40
+ class Regexp::Expression::Assertion::Base < ::Regexp::Expression::Group::Base
41
+ def match_length; end
42
+ end
43
+
44
+ class Regexp::Expression::Assertion::Lookahead < ::Regexp::Expression::Assertion::Base; end
45
+ class Regexp::Expression::Assertion::Lookbehind < ::Regexp::Expression::Assertion::Base; end
46
+ class Regexp::Expression::Assertion::NegativeLookahead < ::Regexp::Expression::Assertion::Base; end
47
+ class Regexp::Expression::Assertion::NegativeLookbehind < ::Regexp::Expression::Assertion::Base; end
48
+
49
+ # TODO: unify name with token :backref, one way or the other, in v3.0.0
50
+ module Regexp::Expression::Backreference; end
51
+
52
+ class Regexp::Expression::Backreference::Base < ::Regexp::Expression::Base
53
+ def match_length; end
54
+
55
+ # Returns the value of attribute referenced_expression.
56
+ def referenced_expression; end
57
+
58
+ # Sets the attribute referenced_expression
59
+ #
60
+ # @param value the value to set the attribute referenced_expression to.
61
+ def referenced_expression=(_arg0); end
62
+
63
+ private
64
+
65
+ def initialize_copy(orig); end
66
+ end
67
+
68
+ class Regexp::Expression::Backreference::Name < ::Regexp::Expression::Backreference::Base
69
+ # @return [Name] a new instance of Name
70
+ def initialize(token, options = T.unsafe(nil)); end
71
+
72
+ # Returns the value of attribute name.
73
+ def name; end
74
+
75
+ # Returns the value of attribute name.
76
+ def reference; end
77
+ end
78
+
79
+ class Regexp::Expression::Backreference::NameCall < ::Regexp::Expression::Backreference::Name; end
80
+
81
+ class Regexp::Expression::Backreference::NameRecursionLevel < ::Regexp::Expression::Backreference::Name
82
+ # @return [NameRecursionLevel] a new instance of NameRecursionLevel
83
+ def initialize(token, options = T.unsafe(nil)); end
84
+
85
+ # Returns the value of attribute recursion_level.
86
+ def recursion_level; end
87
+ end
88
+
89
+ class Regexp::Expression::Backreference::Number < ::Regexp::Expression::Backreference::Base
90
+ # @return [Number] a new instance of Number
91
+ def initialize(token, options = T.unsafe(nil)); end
92
+
93
+ # Returns the value of attribute number.
94
+ def number; end
95
+
96
+ # Returns the value of attribute number.
97
+ def reference; end
98
+ end
99
+
100
+ class Regexp::Expression::Backreference::NumberCall < ::Regexp::Expression::Backreference::Number; end
101
+ class Regexp::Expression::Backreference::NumberCallRelative < ::Regexp::Expression::Backreference::NumberRelative; end
102
+
103
+ class Regexp::Expression::Backreference::NumberRecursionLevel < ::Regexp::Expression::Backreference::Number
104
+ # @return [NumberRecursionLevel] a new instance of NumberRecursionLevel
105
+ def initialize(token, options = T.unsafe(nil)); end
106
+
107
+ # Returns the value of attribute recursion_level.
108
+ def recursion_level; end
109
+ end
110
+
111
+ class Regexp::Expression::Backreference::NumberRelative < ::Regexp::Expression::Backreference::Number
112
+ # Returns the value of attribute effective_number.
113
+ def effective_number; end
114
+
115
+ # Sets the attribute effective_number
116
+ #
117
+ # @param value the value to set the attribute effective_number to.
118
+ def effective_number=(_arg0); end
119
+
120
+ # Returns the value of attribute effective_number.
121
+ def reference; end
122
+ end
123
+
124
+ class Regexp::Expression::Base
125
+ include ::Regexp::Expression::Shared
126
+ include ::RuboCop::Ext::RegexpParser::Expression::Base
127
+ extend ::Regexp::Expression::Shared::ClassMethods
128
+
129
+ # @return [Base] a new instance of Base
130
+ def initialize(token, options = T.unsafe(nil)); end
131
+
132
+ def =~(string, offset = T.unsafe(nil)); end
133
+
134
+ # @return [Boolean]
135
+ def a?; end
136
+
137
+ # @return [Boolean]
138
+ def ascii_classes?; end
139
+
140
+ def attributes; end
141
+
142
+ # @return [Boolean]
143
+ def case_insensitive?; end
144
+
145
+ def conditional_level; end
146
+ def conditional_level=(_arg0); end
147
+
148
+ # @return [Boolean]
149
+ def d?; end
150
+
151
+ # @return [Boolean]
152
+ def default_classes?; end
153
+
154
+ # @return [Boolean]
155
+ def extended?; end
156
+
157
+ # @return [Boolean]
158
+ def free_spacing?; end
159
+
160
+ # @return [Boolean]
161
+ def greedy?; end
162
+
163
+ # @return [Boolean]
164
+ def i?; end
165
+
166
+ # @return [Boolean]
167
+ def ignore_case?; end
168
+
169
+ # @return [Boolean]
170
+ def lazy?; end
171
+
172
+ def level; end
173
+ def level=(_arg0); end
174
+
175
+ # @return [Boolean]
176
+ def m?; end
177
+
178
+ def match(string, offset = T.unsafe(nil)); end
179
+
180
+ # @return [Boolean]
181
+ def match?(string); end
182
+
183
+ # @return [Boolean]
184
+ def matches?(string); end
185
+
186
+ # @return [Boolean]
187
+ def multiline?; end
188
+
189
+ def nesting_level; end
190
+ def options; end
191
+ def options=(_arg0); end
192
+
193
+ # @return [Boolean]
194
+ def possessive?; end
195
+
196
+ def quantifier; end
197
+ def quantifier=(_arg0); end
198
+ def quantify(*args); end
199
+
200
+ # Deprecated. Prefer `#repetitions` which has a more uniform interface.
201
+ def quantity; end
202
+
203
+ # @return [Boolean]
204
+ def reluctant?; end
205
+
206
+ def repetitions; end
207
+ def set_level; end
208
+ def set_level=(_arg0); end
209
+
210
+ # %l Level (depth) of the expression. Returns 'root' for the root
211
+ # expression, returns zero or higher for all others.
212
+ #
213
+ # %> Indentation at expression's level.
214
+ #
215
+ # %x Index of the expression at its depth. Available when using
216
+ # the sprintf_tree method only.
217
+ #
218
+ # %s Start offset within the whole expression.
219
+ # %e End offset within the whole expression.
220
+ # %S Length of expression.
221
+ #
222
+ # %o Coded offset and length, same as '@%s+%S'
223
+ #
224
+ # %y Type of expression.
225
+ # %k Token of expression.
226
+ # %i ID, same as '%y:%k'
227
+ # %c Class name
228
+ #
229
+ # %q Quantifier info, as {m[,M]}
230
+ # %Q Quantifier text
231
+ #
232
+ # %z Quantifier min
233
+ # %Z Quantifier max
234
+ #
235
+ # %t Base text of the expression (excludes quantifier, if any)
236
+ # %~t Full text if the expression is terminal, otherwise %i
237
+ # %T Full text of the expression (includes quantifier, if any)
238
+ #
239
+ # %b Basic info, same as '%o %i'
240
+ # %m Most info, same as '%b %q'
241
+ # %a All info, same as '%m %t'
242
+ def strfre(format = T.unsafe(nil), indent_offset = T.unsafe(nil), index = T.unsafe(nil)); end
243
+
244
+ # %l Level (depth) of the expression. Returns 'root' for the root
245
+ # expression, returns zero or higher for all others.
246
+ #
247
+ # %> Indentation at expression's level.
248
+ #
249
+ # %x Index of the expression at its depth. Available when using
250
+ # the sprintf_tree method only.
251
+ #
252
+ # %s Start offset within the whole expression.
253
+ # %e End offset within the whole expression.
254
+ # %S Length of expression.
255
+ #
256
+ # %o Coded offset and length, same as '@%s+%S'
257
+ #
258
+ # %y Type of expression.
259
+ # %k Token of expression.
260
+ # %i ID, same as '%y:%k'
261
+ # %c Class name
262
+ #
263
+ # %q Quantifier info, as {m[,M]}
264
+ # %Q Quantifier text
265
+ #
266
+ # %z Quantifier min
267
+ # %Z Quantifier max
268
+ #
269
+ # %t Base text of the expression (excludes quantifier, if any)
270
+ # %~t Full text if the expression is terminal, otherwise %i
271
+ # %T Full text of the expression (includes quantifier, if any)
272
+ #
273
+ # %b Basic info, same as '%o %i'
274
+ # %m Most info, same as '%b %q'
275
+ # %a All info, same as '%m %t'
276
+ def strfregexp(format = T.unsafe(nil), indent_offset = T.unsafe(nil), index = T.unsafe(nil)); end
277
+
278
+ def te; end
279
+ def te=(_arg0); end
280
+ def text; end
281
+ def text=(_arg0); end
282
+ def to_h; end
283
+ def to_re(format = T.unsafe(nil)); end
284
+ def token; end
285
+ def token=(_arg0); end
286
+ def ts; end
287
+ def ts=(_arg0); end
288
+ def type; end
289
+ def type=(_arg0); end
290
+
291
+ # @return [Boolean]
292
+ def u?; end
293
+
294
+ # @return [Boolean]
295
+ def unicode_classes?; end
296
+
297
+ def unquantified_clone; end
298
+
299
+ # @return [Boolean]
300
+ def x?; end
301
+
302
+ private
303
+
304
+ def initialize_copy(orig); end
305
+ end
306
+
307
+ class Regexp::Expression::CharacterSet < ::Regexp::Expression::Subexpression
308
+ include ::RuboCop::Ext::RegexpParser::Expression::CharacterSet
309
+
310
+ # @return [CharacterSet] a new instance of CharacterSet
311
+ def initialize(token, options = T.unsafe(nil)); end
312
+
313
+ def close; end
314
+
315
+ # Returns the value of attribute closed.
316
+ def closed; end
317
+
318
+ # Sets the attribute closed
319
+ #
320
+ # @param value the value to set the attribute closed to.
321
+ def closed=(_arg0); end
322
+
323
+ # Returns the value of attribute closed.
324
+ def closed?; end
325
+
326
+ def match_length; end
327
+ def negate; end
328
+
329
+ # Returns the value of attribute negative.
330
+ def negated?; end
331
+
332
+ # Returns the value of attribute negative.
333
+ def negative; end
334
+
335
+ # Sets the attribute negative
336
+ #
337
+ # @param value the value to set the attribute negative to.
338
+ def negative=(_arg0); end
339
+
340
+ # Returns the value of attribute negative.
341
+ def negative?; end
342
+
343
+ def parts; end
344
+ end
345
+
346
+ class Regexp::Expression::CharacterSet::IntersectedSequence < ::Regexp::Expression::Sequence
347
+ def match_length; end
348
+ end
349
+
350
+ class Regexp::Expression::CharacterSet::Intersection < ::Regexp::Expression::SequenceOperation
351
+ def match_length; end
352
+ end
353
+
354
+ Regexp::Expression::CharacterSet::Intersection::OPERAND = Regexp::Expression::CharacterSet::IntersectedSequence
355
+
356
+ class Regexp::Expression::CharacterSet::Range < ::Regexp::Expression::Subexpression
357
+ def <<(exp); end
358
+
359
+ # @return [Boolean]
360
+ def complete?; end
361
+
362
+ def match_length; end
363
+ def parts; end
364
+ def starts_at; end
365
+ def ts; end
366
+ end
367
+
368
+ module Regexp::Expression::CharacterType; end
369
+ class Regexp::Expression::CharacterType::Any < ::Regexp::Expression::CharacterType::Base; end
370
+
371
+ class Regexp::Expression::CharacterType::Base < ::Regexp::Expression::Base
372
+ def match_length; end
373
+ end
374
+
375
+ class Regexp::Expression::CharacterType::Digit < ::Regexp::Expression::CharacterType::Base; end
376
+ class Regexp::Expression::CharacterType::ExtendedGrapheme < ::Regexp::Expression::CharacterType::Base; end
377
+ class Regexp::Expression::CharacterType::Hex < ::Regexp::Expression::CharacterType::Base; end
378
+ class Regexp::Expression::CharacterType::Linebreak < ::Regexp::Expression::CharacterType::Base; end
379
+ class Regexp::Expression::CharacterType::NonDigit < ::Regexp::Expression::CharacterType::Base; end
380
+ class Regexp::Expression::CharacterType::NonHex < ::Regexp::Expression::CharacterType::Base; end
381
+ class Regexp::Expression::CharacterType::NonSpace < ::Regexp::Expression::CharacterType::Base; end
382
+ class Regexp::Expression::CharacterType::NonWord < ::Regexp::Expression::CharacterType::Base; end
383
+ class Regexp::Expression::CharacterType::Space < ::Regexp::Expression::CharacterType::Base; end
384
+ class Regexp::Expression::CharacterType::Word < ::Regexp::Expression::CharacterType::Base; end
385
+ class Regexp::Expression::Comment < ::Regexp::Expression::FreeSpace; end
386
+ module Regexp::Expression::Conditional; end
387
+ class Regexp::Expression::Conditional::Branch < ::Regexp::Expression::Sequence; end
388
+
389
+ class Regexp::Expression::Conditional::Condition < ::Regexp::Expression::Base
390
+ def match_length; end
391
+
392
+ # Name or number of the referenced capturing group that determines state.
393
+ # Returns a String if reference is by name, Integer if by number.
394
+ def reference; end
395
+
396
+ # Returns the value of attribute referenced_expression.
397
+ def referenced_expression; end
398
+
399
+ # Sets the attribute referenced_expression
400
+ #
401
+ # @param value the value to set the attribute referenced_expression to.
402
+ def referenced_expression=(_arg0); end
403
+
404
+ private
405
+
406
+ def initialize_copy(orig); end
407
+ end
408
+
409
+ class Regexp::Expression::Conditional::Expression < ::Regexp::Expression::Subexpression
410
+ def <<(exp); end
411
+
412
+ # @raise [TooManyBranches]
413
+ def add_sequence(active_opts = T.unsafe(nil)); end
414
+
415
+ # @raise [TooManyBranches]
416
+ def branch(active_opts = T.unsafe(nil)); end
417
+
418
+ def branches; end
419
+ def condition; end
420
+ def condition=(exp); end
421
+ def match_length; end
422
+ def parts; end
423
+ def reference; end
424
+
425
+ # Returns the value of attribute referenced_expression.
426
+ def referenced_expression; end
427
+
428
+ # Sets the attribute referenced_expression
429
+ #
430
+ # @param value the value to set the attribute referenced_expression to.
431
+ def referenced_expression=(_arg0); end
432
+
433
+ private
434
+
435
+ def initialize_copy(orig); end
436
+ end
437
+
438
+ class Regexp::Expression::Conditional::TooManyBranches < ::Regexp::Parser::Error
439
+ # @return [TooManyBranches] a new instance of TooManyBranches
440
+ def initialize; end
441
+ end
442
+
443
+ # TODO: unify naming with Token::Escape, on way or the other, in v3.0.0
444
+ module Regexp::Expression::EscapeSequence; end
445
+
446
+ class Regexp::Expression::EscapeSequence::AbstractMetaControlSequence < ::Regexp::Expression::EscapeSequence::Base
447
+ def char; end
448
+
449
+ private
450
+
451
+ def control_sequence_to_s(control_sequence); end
452
+ def meta_char_to_codepoint(meta_char); end
453
+ end
454
+
455
+ class Regexp::Expression::EscapeSequence::AsciiEscape < ::Regexp::Expression::EscapeSequence::Base; end
456
+ class Regexp::Expression::EscapeSequence::Backspace < ::Regexp::Expression::EscapeSequence::Base; end
457
+
458
+ class Regexp::Expression::EscapeSequence::Base < ::Regexp::Expression::Base
459
+ def char; end
460
+ def codepoint; end
461
+ def match_length; end
462
+ end
463
+
464
+ class Regexp::Expression::EscapeSequence::Bell < ::Regexp::Expression::EscapeSequence::Base; end
465
+ class Regexp::Expression::EscapeSequence::Codepoint < ::Regexp::Expression::EscapeSequence::Base; end
466
+
467
+ class Regexp::Expression::EscapeSequence::CodepointList < ::Regexp::Expression::EscapeSequence::Base
468
+ # @raise [NoMethodError]
469
+ def char; end
470
+
471
+ def chars; end
472
+
473
+ # @raise [NoMethodError]
474
+ def codepoint; end
475
+
476
+ def codepoints; end
477
+ def match_length; end
478
+ end
479
+
480
+ class Regexp::Expression::EscapeSequence::Control < ::Regexp::Expression::EscapeSequence::AbstractMetaControlSequence
481
+ def codepoint; end
482
+ end
483
+
484
+ class Regexp::Expression::EscapeSequence::FormFeed < ::Regexp::Expression::EscapeSequence::Base; end
485
+ class Regexp::Expression::EscapeSequence::Hex < ::Regexp::Expression::EscapeSequence::Base; end
486
+
487
+ class Regexp::Expression::EscapeSequence::Literal < ::Regexp::Expression::EscapeSequence::Base
488
+ def char; end
489
+ end
490
+
491
+ class Regexp::Expression::EscapeSequence::Meta < ::Regexp::Expression::EscapeSequence::AbstractMetaControlSequence
492
+ def codepoint; end
493
+ end
494
+
495
+ class Regexp::Expression::EscapeSequence::MetaControl < ::Regexp::Expression::EscapeSequence::AbstractMetaControlSequence
496
+ def codepoint; end
497
+ end
498
+
499
+ class Regexp::Expression::EscapeSequence::Newline < ::Regexp::Expression::EscapeSequence::Base; end
500
+
501
+ class Regexp::Expression::EscapeSequence::Octal < ::Regexp::Expression::EscapeSequence::Base
502
+ def char; end
503
+ end
504
+
505
+ class Regexp::Expression::EscapeSequence::Return < ::Regexp::Expression::EscapeSequence::Base; end
506
+ class Regexp::Expression::EscapeSequence::Tab < ::Regexp::Expression::EscapeSequence::Base; end
507
+ class Regexp::Expression::EscapeSequence::VerticalTab < ::Regexp::Expression::EscapeSequence::Base; end
508
+
509
+ class Regexp::Expression::FreeSpace < ::Regexp::Expression::Base
510
+ def match_length; end
511
+
512
+ # @raise [Regexp::Parser::Error]
513
+ def quantify(*_args); end
514
+ end
515
+
516
+ module Regexp::Expression::Group; end
517
+
518
+ class Regexp::Expression::Group::Absence < ::Regexp::Expression::Group::Base
519
+ def match_length; end
520
+ end
521
+
522
+ class Regexp::Expression::Group::Atomic < ::Regexp::Expression::Group::Base; end
523
+
524
+ class Regexp::Expression::Group::Base < ::Regexp::Expression::Subexpression
525
+ # @return [Boolean]
526
+ def capturing?; end
527
+
528
+ # @return [Boolean]
529
+ def comment?; end
530
+
531
+ def parts; end
532
+ end
533
+
534
+ class Regexp::Expression::Group::Capture < ::Regexp::Expression::Group::Base
535
+ # @return [Boolean]
536
+ def capturing?; end
537
+
538
+ # Returns the value of attribute number.
539
+ def identifier; end
540
+
541
+ # Returns the value of attribute number.
542
+ def number; end
543
+
544
+ # Sets the attribute number
545
+ #
546
+ # @param value the value to set the attribute number to.
547
+ def number=(_arg0); end
548
+
549
+ # Returns the value of attribute number_at_level.
550
+ def number_at_level; end
551
+
552
+ # Sets the attribute number_at_level
553
+ #
554
+ # @param value the value to set the attribute number_at_level to.
555
+ def number_at_level=(_arg0); end
556
+ end
557
+
558
+ class Regexp::Expression::Group::Comment < ::Regexp::Expression::Group::Base
559
+ # @return [Boolean]
560
+ def comment?; end
561
+
562
+ def parts; end
563
+ end
564
+
565
+ class Regexp::Expression::Group::Named < ::Regexp::Expression::Group::Capture
566
+ # @return [Named] a new instance of Named
567
+ def initialize(token, options = T.unsafe(nil)); end
568
+
569
+ # Returns the value of attribute name.
570
+ def identifier; end
571
+
572
+ # Returns the value of attribute name.
573
+ def name; end
574
+
575
+ private
576
+
577
+ def initialize_copy(orig); end
578
+ end
579
+
580
+ class Regexp::Expression::Group::Options < ::Regexp::Expression::Group::Base
581
+ # Returns the value of attribute option_changes.
582
+ def option_changes; end
583
+
584
+ # Sets the attribute option_changes
585
+ #
586
+ # @param value the value to set the attribute option_changes to.
587
+ def option_changes=(_arg0); end
588
+
589
+ private
590
+
591
+ def initialize_copy(orig); end
592
+ end
593
+
594
+ class Regexp::Expression::Group::Passive < ::Regexp::Expression::Group::Base
595
+ # @return [Passive] a new instance of Passive
596
+ def initialize(*_arg0); end
597
+
598
+ # Sets the attribute implicit
599
+ #
600
+ # @param value the value to set the attribute implicit to.
601
+ def implicit=(_arg0); end
602
+
603
+ # @return [Boolean]
604
+ def implicit?; end
605
+
606
+ def parts; end
607
+ end
608
+
609
+ module Regexp::Expression::Keep; end
610
+
611
+ # TOOD: in regexp_parser v3.0.0 this should possibly be a Subexpression
612
+ # that contains all expressions to its left.
613
+ class Regexp::Expression::Keep::Mark < ::Regexp::Expression::Base
614
+ def match_length; end
615
+ end
616
+
617
+ class Regexp::Expression::Literal < ::Regexp::Expression::Base
618
+ def match_length; end
619
+ end
620
+
621
+ Regexp::Expression::MatchLength = Regexp::MatchLength
622
+
623
+ class Regexp::Expression::PosixClass < ::Regexp::Expression::Base
624
+ def match_length; end
625
+ def name; end
626
+
627
+ # @return [Boolean]
628
+ def negative?; end
629
+ end
630
+
631
+ # TODO: in v3.0.0, maybe put Shared back into Base, and inherit from Base and
632
+ # call super in #initialize, but raise in #quantifier= and #quantify,
633
+ # or introduce an Expression::Quantifiable intermediate class.
634
+ # Or actually allow chaining as a more concise but tricky solution than PR#69.
635
+ class Regexp::Expression::Quantifier
636
+ include ::Regexp::Expression::Shared
637
+ extend ::Regexp::Expression::Shared::ClassMethods
638
+
639
+ # @return [Quantifier] a new instance of Quantifier
640
+ def initialize(*args); end
641
+
642
+ def conditional_level; end
643
+ def conditional_level=(_arg0); end
644
+ def greedy?; end
645
+ def lazy?; end
646
+ def level; end
647
+ def level=(_arg0); end
648
+
649
+ # Returns the value of attribute max.
650
+ def max; end
651
+
652
+ # Returns the value of attribute min.
653
+ def min; end
654
+
655
+ # Returns the value of attribute mode.
656
+ def mode; end
657
+
658
+ def nesting_level; end
659
+ def options; end
660
+ def options=(_arg0); end
661
+ def possessive?; end
662
+ def quantifier; end
663
+ def quantifier=(_arg0); end
664
+ def reluctant?; end
665
+ def set_level; end
666
+ def set_level=(_arg0); end
667
+ def te; end
668
+ def te=(_arg0); end
669
+ def text; end
670
+ def text=(_arg0); end
671
+ def to_h; end
672
+ def token; end
673
+ def token=(_arg0); end
674
+ def ts; end
675
+ def ts=(_arg0); end
676
+ def type; end
677
+ def type=(_arg0); end
678
+
679
+ private
680
+
681
+ def deprecated_old_init(token, text, min, max, mode = T.unsafe(nil)); end
682
+ def minmax; end
683
+ end
684
+
685
+ Regexp::Expression::Quantifier::MODES = T.let(T.unsafe(nil), Array)
686
+
687
+ class Regexp::Expression::Root < ::Regexp::Expression::Subexpression
688
+ class << self
689
+ def build(options = T.unsafe(nil)); end
690
+ end
691
+ end
692
+
693
+ # A sequence of expressions. Differs from a Subexpressions by how it handles
694
+ # quantifiers, as it applies them to its last element instead of itself as
695
+ # a whole subexpression.
696
+ #
697
+ # Used as the base class for the Alternation alternatives, Conditional
698
+ # branches, and CharacterSet::Intersection intersected sequences.
699
+ class Regexp::Expression::Sequence < ::Regexp::Expression::Subexpression
700
+ def quantify(*args); end
701
+ def starts_at; end
702
+ def ts; end
703
+
704
+ class << self
705
+ def add_to(exp, params = T.unsafe(nil), active_opts = T.unsafe(nil)); end
706
+ end
707
+ end
708
+
709
+ # abstract class
710
+ class Regexp::Expression::SequenceOperation < ::Regexp::Expression::Subexpression
711
+ def <<(exp); end
712
+ def add_sequence(active_opts = T.unsafe(nil)); end
713
+ def operands; end
714
+ def operator; end
715
+ def parts; end
716
+ def sequences; end
717
+ def starts_at; end
718
+ def ts; end
719
+ end
720
+
721
+ module Regexp::Expression::Shared
722
+ mixes_in_class_methods ::Regexp::Expression::Shared::ClassMethods
723
+
724
+ # Deep-compare two expressions for equality.
725
+ def ==(other); end
726
+
727
+ # Deep-compare two expressions for equality.
728
+ def ===(other); end
729
+
730
+ def base_length; end
731
+ def coded_offset; end
732
+
733
+ # Deep-compare two expressions for equality.
734
+ def eql?(other); end
735
+
736
+ def full_length; end
737
+
738
+ # Test if this expression has the given test_token, and optionally a given
739
+ # test_type.
740
+ #
741
+ # # Any expressions
742
+ # exp.is? :* # always returns true
743
+ #
744
+ # # is it a :capture
745
+ # exp.is? :capture
746
+ #
747
+ # # is it a :character and a :set
748
+ # exp.is? :character, :set
749
+ #
750
+ # # is it a :meta :dot
751
+ # exp.is? :dot, :meta
752
+ #
753
+ # # is it a :meta or :escape :dot
754
+ # exp.is? :dot, [:meta, :escape]
755
+ #
756
+ # @return [Boolean]
757
+ def is?(test_token, test_type = T.unsafe(nil)); end
758
+
759
+ def nesting_level=(lvl); end
760
+ def offset; end
761
+
762
+ # Test if this expression matches an entry in the given scope spec.
763
+ #
764
+ # A scope spec can be one of:
765
+ #
766
+ # . An array: Interpreted as a set of tokens, tested for inclusion
767
+ # of the expression's token.
768
+ #
769
+ # . A hash: Where the key is interpreted as the expression type
770
+ # and the value is either a symbol or an array. In this
771
+ # case, when the scope is a hash, one_of? calls itself to
772
+ # evaluate the key's value.
773
+ #
774
+ # . A symbol: matches the expression's token or type, depending on
775
+ # the level of the call. If one_of? is called directly with
776
+ # a symbol then it will always be checked against the
777
+ # type of the expression. If it's being called for a value
778
+ # from a hash, it will be checked against the token of the
779
+ # expression.
780
+ #
781
+ # # any expression
782
+ # exp.one_of?(:*) # always true
783
+ #
784
+ # # like exp.type?(:group)
785
+ # exp.one_of?(:group)
786
+ #
787
+ # # any expression of type meta
788
+ # exp.one_of?(:meta => :*)
789
+ #
790
+ # # meta dots and alternations
791
+ # exp.one_of?(:meta => [:dot, :alternation])
792
+ #
793
+ # # meta dots and any set tokens
794
+ # exp.one_of?({meta: [:dot], set: :*})
795
+ #
796
+ # @return [Boolean]
797
+ def one_of?(scope, top = T.unsafe(nil)); end
798
+
799
+ def parts; end
800
+
801
+ # @return [Boolean]
802
+ def quantified?; end
803
+
804
+ def quantifier_affix(expression_format); end
805
+ def starts_at; end
806
+
807
+ # @return [Boolean]
808
+ def terminal?; end
809
+
810
+ def to_s(format = T.unsafe(nil)); end
811
+ def to_str(format = T.unsafe(nil)); end
812
+ def token_class; end
813
+
814
+ # Test if this expression has the given test_type, which can be either
815
+ # a symbol or an array of symbols to check against the expression's type.
816
+ #
817
+ # # is it a :group expression
818
+ # exp.type? :group
819
+ #
820
+ # # is it a :set, or :meta
821
+ # exp.type? [:set, :meta]
822
+ #
823
+ # @return [Boolean]
824
+ def type?(test_type); end
825
+
826
+ private
827
+
828
+ def init_from_token_and_options(token, options = T.unsafe(nil)); end
829
+ def initialize_copy(orig); end
830
+
831
+ class << self
832
+ # @private
833
+ def included(mod); end
834
+ end
835
+ end
836
+
837
+ # filled in ./methods/*.rb
838
+ module Regexp::Expression::Shared::ClassMethods
839
+ # Convenience method to init a valid Expression without a Regexp::Token
840
+ #
841
+ # @raise [ArgumentError]
842
+ def construct(params = T.unsafe(nil)); end
843
+
844
+ def construct_defaults; end
845
+ def token_class; end
846
+ end
847
+
848
+ class Regexp::Expression::Subexpression < ::Regexp::Expression::Base
849
+ include ::Enumerable
850
+
851
+ # @return [Subexpression] a new instance of Subexpression
852
+ def initialize(token, options = T.unsafe(nil)); end
853
+
854
+ def <<(exp); end
855
+ def [](*args, &block); end
856
+ def at(*args, &block); end
857
+ def dig(*indices); end
858
+ def each(*args, &block); end
859
+
860
+ # Iterates over the expressions of this expression as an array, passing
861
+ # the expression and its index within its parent to the given block.
862
+ def each_expression(include_self = T.unsafe(nil)); end
863
+
864
+ def empty?(*args, &block); end
865
+
866
+ # Returns the value of attribute expressions.
867
+ def expressions; end
868
+
869
+ # Sets the attribute expressions
870
+ #
871
+ # @param value the value to set the attribute expressions to.
872
+ def expressions=(_arg0); end
873
+
874
+ def fetch(*args, &block); end
875
+
876
+ # Returns a new array with the results of calling the given block once
877
+ # for every expression. If a block is not given, returns an array with
878
+ # each expression and its level index as an array.
879
+ def flat_map(include_self = T.unsafe(nil)); end
880
+
881
+ def index(*args, &block); end
882
+ def inner_match_length; end
883
+ def join(*args, &block); end
884
+ def last(*args, &block); end
885
+ def length(*args, &block); end
886
+ def match_length; end
887
+ def parts; end
888
+ def strfre_tree(format = T.unsafe(nil), include_self = T.unsafe(nil), separator = T.unsafe(nil)); end
889
+ def strfregexp_tree(format = T.unsafe(nil), include_self = T.unsafe(nil), separator = T.unsafe(nil)); end
890
+ def te; end
891
+ def to_h; end
892
+
893
+ # Traverses the subexpression (depth-first, pre-order) and calls the given
894
+ # block for each expression with three arguments; the traversal event,
895
+ # the expression, and the index of the expression within its parent.
896
+ #
897
+ # The event argument is passed as follows:
898
+ #
899
+ # - For subexpressions, :enter upon entering the subexpression, and
900
+ # :exit upon exiting it.
901
+ #
902
+ # - For terminal expressions, :visit is called once.
903
+ #
904
+ # Returns self.
905
+ def traverse(include_self = T.unsafe(nil), &block); end
906
+
907
+ def values_at(*args, &block); end
908
+
909
+ # Traverses the subexpression (depth-first, pre-order) and calls the given
910
+ # block for each expression with three arguments; the traversal event,
911
+ # the expression, and the index of the expression within its parent.
912
+ #
913
+ # The event argument is passed as follows:
914
+ #
915
+ # - For subexpressions, :enter upon entering the subexpression, and
916
+ # :exit upon exiting it.
917
+ #
918
+ # - For terminal expressions, :visit is called once.
919
+ #
920
+ # Returns self.
921
+ def walk(include_self = T.unsafe(nil), &block); end
922
+
923
+ private
924
+
925
+ # Override base method to clone the expressions as well.
926
+ def initialize_copy(orig); end
927
+
928
+ def intersperse(expressions, separator); end
929
+ end
930
+
931
+ # TODO: unify name with token :property, on way or the other, in v3.0.0
932
+ module Regexp::Expression::UnicodeProperty; end
933
+
934
+ class Regexp::Expression::UnicodeProperty::Age < ::Regexp::Expression::UnicodeProperty::Base; end
935
+ class Regexp::Expression::UnicodeProperty::Alnum < ::Regexp::Expression::UnicodeProperty::Base; end
936
+ class Regexp::Expression::UnicodeProperty::Alpha < ::Regexp::Expression::UnicodeProperty::Base; end
937
+ class Regexp::Expression::UnicodeProperty::Any < ::Regexp::Expression::UnicodeProperty::Base; end
938
+ class Regexp::Expression::UnicodeProperty::Ascii < ::Regexp::Expression::UnicodeProperty::Base; end
939
+ class Regexp::Expression::UnicodeProperty::Assigned < ::Regexp::Expression::UnicodeProperty::Base; end
940
+
941
+ class Regexp::Expression::UnicodeProperty::Base < ::Regexp::Expression::Base
942
+ def match_length; end
943
+ def name; end
944
+
945
+ # @return [Boolean]
946
+ def negative?; end
947
+
948
+ def shortcut; end
949
+ end
950
+
951
+ class Regexp::Expression::UnicodeProperty::Blank < ::Regexp::Expression::UnicodeProperty::Base; end
952
+ class Regexp::Expression::UnicodeProperty::Block < ::Regexp::Expression::UnicodeProperty::Base; end
953
+ class Regexp::Expression::UnicodeProperty::Cntrl < ::Regexp::Expression::UnicodeProperty::Base; end
954
+ module Regexp::Expression::UnicodeProperty::Codepoint; end
955
+ class Regexp::Expression::UnicodeProperty::Codepoint::Any < ::Regexp::Expression::UnicodeProperty::Codepoint::Base; end
956
+ class Regexp::Expression::UnicodeProperty::Codepoint::Base < ::Regexp::Expression::UnicodeProperty::Base; end
957
+ class Regexp::Expression::UnicodeProperty::Codepoint::Control < ::Regexp::Expression::UnicodeProperty::Codepoint::Base; end
958
+ class Regexp::Expression::UnicodeProperty::Codepoint::Format < ::Regexp::Expression::UnicodeProperty::Codepoint::Base; end
959
+ class Regexp::Expression::UnicodeProperty::Codepoint::PrivateUse < ::Regexp::Expression::UnicodeProperty::Codepoint::Base; end
960
+ class Regexp::Expression::UnicodeProperty::Codepoint::Surrogate < ::Regexp::Expression::UnicodeProperty::Codepoint::Base; end
961
+ class Regexp::Expression::UnicodeProperty::Codepoint::Unassigned < ::Regexp::Expression::UnicodeProperty::Codepoint::Base; end
962
+ class Regexp::Expression::UnicodeProperty::Derived < ::Regexp::Expression::UnicodeProperty::Base; end
963
+ class Regexp::Expression::UnicodeProperty::Digit < ::Regexp::Expression::UnicodeProperty::Base; end
964
+ class Regexp::Expression::UnicodeProperty::Emoji < ::Regexp::Expression::UnicodeProperty::Base; end
965
+ class Regexp::Expression::UnicodeProperty::Graph < ::Regexp::Expression::UnicodeProperty::Base; end
966
+ module Regexp::Expression::UnicodeProperty::Letter; end
967
+ class Regexp::Expression::UnicodeProperty::Letter::Any < ::Regexp::Expression::UnicodeProperty::Letter::Base; end
968
+ class Regexp::Expression::UnicodeProperty::Letter::Base < ::Regexp::Expression::UnicodeProperty::Base; end
969
+ class Regexp::Expression::UnicodeProperty::Letter::Cased < ::Regexp::Expression::UnicodeProperty::Letter::Base; end
970
+ class Regexp::Expression::UnicodeProperty::Letter::Lowercase < ::Regexp::Expression::UnicodeProperty::Letter::Base; end
971
+ class Regexp::Expression::UnicodeProperty::Letter::Modifier < ::Regexp::Expression::UnicodeProperty::Letter::Base; end
972
+ class Regexp::Expression::UnicodeProperty::Letter::Other < ::Regexp::Expression::UnicodeProperty::Letter::Base; end
973
+ class Regexp::Expression::UnicodeProperty::Letter::Titlecase < ::Regexp::Expression::UnicodeProperty::Letter::Base; end
974
+ class Regexp::Expression::UnicodeProperty::Letter::Uppercase < ::Regexp::Expression::UnicodeProperty::Letter::Base; end
975
+ class Regexp::Expression::UnicodeProperty::Lower < ::Regexp::Expression::UnicodeProperty::Base; end
976
+ module Regexp::Expression::UnicodeProperty::Mark; end
977
+ class Regexp::Expression::UnicodeProperty::Mark::Any < ::Regexp::Expression::UnicodeProperty::Mark::Base; end
978
+ class Regexp::Expression::UnicodeProperty::Mark::Base < ::Regexp::Expression::UnicodeProperty::Base; end
979
+ class Regexp::Expression::UnicodeProperty::Mark::Combining < ::Regexp::Expression::UnicodeProperty::Mark::Base; end
980
+ class Regexp::Expression::UnicodeProperty::Mark::Enclosing < ::Regexp::Expression::UnicodeProperty::Mark::Base; end
981
+ class Regexp::Expression::UnicodeProperty::Mark::Nonspacing < ::Regexp::Expression::UnicodeProperty::Mark::Base; end
982
+ class Regexp::Expression::UnicodeProperty::Mark::Spacing < ::Regexp::Expression::UnicodeProperty::Mark::Base; end
983
+ class Regexp::Expression::UnicodeProperty::Newline < ::Regexp::Expression::UnicodeProperty::Base; end
984
+ module Regexp::Expression::UnicodeProperty::Number; end
985
+ class Regexp::Expression::UnicodeProperty::Number::Any < ::Regexp::Expression::UnicodeProperty::Number::Base; end
986
+ class Regexp::Expression::UnicodeProperty::Number::Base < ::Regexp::Expression::UnicodeProperty::Base; end
987
+ class Regexp::Expression::UnicodeProperty::Number::Decimal < ::Regexp::Expression::UnicodeProperty::Number::Base; end
988
+ class Regexp::Expression::UnicodeProperty::Number::Letter < ::Regexp::Expression::UnicodeProperty::Number::Base; end
989
+ class Regexp::Expression::UnicodeProperty::Number::Other < ::Regexp::Expression::UnicodeProperty::Number::Base; end
990
+ class Regexp::Expression::UnicodeProperty::Print < ::Regexp::Expression::UnicodeProperty::Base; end
991
+ class Regexp::Expression::UnicodeProperty::Punct < ::Regexp::Expression::UnicodeProperty::Base; end
992
+ module Regexp::Expression::UnicodeProperty::Punctuation; end
993
+ class Regexp::Expression::UnicodeProperty::Punctuation::Any < ::Regexp::Expression::UnicodeProperty::Punctuation::Base; end
994
+ class Regexp::Expression::UnicodeProperty::Punctuation::Base < ::Regexp::Expression::UnicodeProperty::Base; end
995
+ class Regexp::Expression::UnicodeProperty::Punctuation::Close < ::Regexp::Expression::UnicodeProperty::Punctuation::Base; end
996
+ class Regexp::Expression::UnicodeProperty::Punctuation::Connector < ::Regexp::Expression::UnicodeProperty::Punctuation::Base; end
997
+ class Regexp::Expression::UnicodeProperty::Punctuation::Dash < ::Regexp::Expression::UnicodeProperty::Punctuation::Base; end
998
+ class Regexp::Expression::UnicodeProperty::Punctuation::Final < ::Regexp::Expression::UnicodeProperty::Punctuation::Base; end
999
+ class Regexp::Expression::UnicodeProperty::Punctuation::Initial < ::Regexp::Expression::UnicodeProperty::Punctuation::Base; end
1000
+ class Regexp::Expression::UnicodeProperty::Punctuation::Open < ::Regexp::Expression::UnicodeProperty::Punctuation::Base; end
1001
+ class Regexp::Expression::UnicodeProperty::Punctuation::Other < ::Regexp::Expression::UnicodeProperty::Punctuation::Base; end
1002
+ class Regexp::Expression::UnicodeProperty::Script < ::Regexp::Expression::UnicodeProperty::Base; end
1003
+ module Regexp::Expression::UnicodeProperty::Separator; end
1004
+ class Regexp::Expression::UnicodeProperty::Separator::Any < ::Regexp::Expression::UnicodeProperty::Separator::Base; end
1005
+ class Regexp::Expression::UnicodeProperty::Separator::Base < ::Regexp::Expression::UnicodeProperty::Base; end
1006
+ class Regexp::Expression::UnicodeProperty::Separator::Line < ::Regexp::Expression::UnicodeProperty::Separator::Base; end
1007
+ class Regexp::Expression::UnicodeProperty::Separator::Paragraph < ::Regexp::Expression::UnicodeProperty::Separator::Base; end
1008
+ class Regexp::Expression::UnicodeProperty::Separator::Space < ::Regexp::Expression::UnicodeProperty::Separator::Base; end
1009
+ class Regexp::Expression::UnicodeProperty::Space < ::Regexp::Expression::UnicodeProperty::Base; end
1010
+ module Regexp::Expression::UnicodeProperty::Symbol; end
1011
+ class Regexp::Expression::UnicodeProperty::Symbol::Any < ::Regexp::Expression::UnicodeProperty::Symbol::Base; end
1012
+ class Regexp::Expression::UnicodeProperty::Symbol::Base < ::Regexp::Expression::UnicodeProperty::Base; end
1013
+ class Regexp::Expression::UnicodeProperty::Symbol::Currency < ::Regexp::Expression::UnicodeProperty::Symbol::Base; end
1014
+ class Regexp::Expression::UnicodeProperty::Symbol::Math < ::Regexp::Expression::UnicodeProperty::Symbol::Base; end
1015
+ class Regexp::Expression::UnicodeProperty::Symbol::Modifier < ::Regexp::Expression::UnicodeProperty::Symbol::Base; end
1016
+ class Regexp::Expression::UnicodeProperty::Symbol::Other < ::Regexp::Expression::UnicodeProperty::Symbol::Base; end
1017
+ class Regexp::Expression::UnicodeProperty::Upper < ::Regexp::Expression::UnicodeProperty::Base; end
1018
+ class Regexp::Expression::UnicodeProperty::Word < ::Regexp::Expression::UnicodeProperty::Base; end
1019
+ class Regexp::Expression::UnicodeProperty::XPosixPunct < ::Regexp::Expression::UnicodeProperty::Base; end
1020
+ class Regexp::Expression::UnicodeProperty::Xdigit < ::Regexp::Expression::UnicodeProperty::Base; end
1021
+
1022
+ class Regexp::Expression::WhiteSpace < ::Regexp::Expression::FreeSpace
1023
+ def merge(exp); end
1024
+ end
1025
+
1026
+ # A very thin wrapper around the scanner that breaks quantified literal runs,
1027
+ # collects emitted tokens into an array, calculates their nesting depth, and
1028
+ # normalizes tokens for the parser, and checks if they are implemented by the
1029
+ # given syntax flavor.
1030
+ class Regexp::Lexer
1031
+ def lex(input, syntax = T.unsafe(nil), options: T.unsafe(nil), &block); end
1032
+
1033
+ private
1034
+
1035
+ def ascend(type, token); end
1036
+ def break_codepoint_list(token); end
1037
+
1038
+ # called by scan to break a literal run that is longer than one character
1039
+ # into two separate tokens when it is followed by a quantifier
1040
+ def break_literal(token); end
1041
+
1042
+ # Returns the value of attribute conditional_nesting.
1043
+ def conditional_nesting; end
1044
+
1045
+ # Sets the attribute conditional_nesting
1046
+ #
1047
+ # @param value the value to set the attribute conditional_nesting to.
1048
+ def conditional_nesting=(_arg0); end
1049
+
1050
+ def descend(type, token); end
1051
+ def merge_condition(current); end
1052
+
1053
+ # Returns the value of attribute nesting.
1054
+ def nesting; end
1055
+
1056
+ # Sets the attribute nesting
1057
+ #
1058
+ # @param value the value to set the attribute nesting to.
1059
+ def nesting=(_arg0); end
1060
+
1061
+ # Returns the value of attribute set_nesting.
1062
+ def set_nesting; end
1063
+
1064
+ # Sets the attribute set_nesting
1065
+ #
1066
+ # @param value the value to set the attribute set_nesting to.
1067
+ def set_nesting=(_arg0); end
1068
+
1069
+ # Returns the value of attribute shift.
1070
+ def shift; end
1071
+
1072
+ # Sets the attribute shift
1073
+ #
1074
+ # @param value the value to set the attribute shift to.
1075
+ def shift=(_arg0); end
1076
+
1077
+ # Returns the value of attribute tokens.
1078
+ def tokens; end
1079
+
1080
+ # Sets the attribute tokens
1081
+ #
1082
+ # @param value the value to set the attribute tokens to.
1083
+ def tokens=(_arg0); end
1084
+
1085
+ class << self
1086
+ def lex(input, syntax = T.unsafe(nil), options: T.unsafe(nil), &block); end
1087
+ def scan(input, syntax = T.unsafe(nil), options: T.unsafe(nil), &block); end
1088
+ end
1089
+ end
1090
+
1091
+ Regexp::Lexer::CLOSING_TOKENS = T.let(T.unsafe(nil), Array)
1092
+ Regexp::Lexer::CONDITION_TOKENS = T.let(T.unsafe(nil), Array)
1093
+ Regexp::Lexer::OPENING_TOKENS = T.let(T.unsafe(nil), Array)
1094
+
1095
+ class Regexp::MatchLength
1096
+ include ::Enumerable
1097
+
1098
+ # @return [MatchLength] a new instance of MatchLength
1099
+ def initialize(exp, opts = T.unsafe(nil)); end
1100
+
1101
+ def each(opts = T.unsafe(nil)); end
1102
+ def endless_each; end
1103
+
1104
+ # @return [Boolean]
1105
+ def fixed?; end
1106
+
1107
+ # @return [Boolean]
1108
+ def include?(length); end
1109
+
1110
+ def inspect; end
1111
+ def max; end
1112
+ def min; end
1113
+ def minmax; end
1114
+ def to_re; end
1115
+
1116
+ private
1117
+
1118
+ # Returns the value of attribute base_max.
1119
+ def base_max; end
1120
+
1121
+ # Sets the attribute base_max
1122
+ #
1123
+ # @param value the value to set the attribute base_max to.
1124
+ def base_max=(_arg0); end
1125
+
1126
+ # Returns the value of attribute base_min.
1127
+ def base_min; end
1128
+
1129
+ # Sets the attribute base_min
1130
+ #
1131
+ # @param value the value to set the attribute base_min to.
1132
+ def base_min=(_arg0); end
1133
+
1134
+ # Returns the value of attribute exp_class.
1135
+ def exp_class; end
1136
+
1137
+ # Sets the attribute exp_class
1138
+ #
1139
+ # @param value the value to set the attribute exp_class to.
1140
+ def exp_class=(_arg0); end
1141
+
1142
+ # Returns the value of attribute max_rep.
1143
+ def max_rep; end
1144
+
1145
+ # Sets the attribute max_rep
1146
+ #
1147
+ # @param value the value to set the attribute max_rep to.
1148
+ def max_rep=(_arg0); end
1149
+
1150
+ # Returns the value of attribute min_rep.
1151
+ def min_rep; end
1152
+
1153
+ # Sets the attribute min_rep
1154
+ #
1155
+ # @param value the value to set the attribute min_rep to.
1156
+ def min_rep=(_arg0); end
1157
+
1158
+ # Returns the value of attribute reify.
1159
+ def reify; end
1160
+
1161
+ # Sets the attribute reify
1162
+ #
1163
+ # @param value the value to set the attribute reify to.
1164
+ def reify=(_arg0); end
1165
+
1166
+ def test_regexp; end
1167
+
1168
+ class << self
1169
+ def of(obj); end
1170
+ end
1171
+ end
1172
+
1173
+ class Regexp::Parser
1174
+ include ::Regexp::Expression
1175
+ include ::Regexp::Expression::UnicodeProperty
1176
+
1177
+ def parse(input, syntax = T.unsafe(nil), options: T.unsafe(nil), &block); end
1178
+
1179
+ private
1180
+
1181
+ def active_opts; end
1182
+ def anchor(token); end
1183
+ def assign_effective_number(exp); end
1184
+
1185
+ # Assigns referenced expressions to refering expressions, e.g. if there is
1186
+ # an instance of Backreference::Number, its #referenced_expression is set to
1187
+ # the instance of Group::Capture that it refers to via its number.
1188
+ def assign_referenced_expressions; end
1189
+
1190
+ def backref(token); end
1191
+ def captured_group_count_at_level; end
1192
+
1193
+ # Returns the value of attribute captured_group_counts.
1194
+ def captured_group_counts; end
1195
+
1196
+ # Sets the attribute captured_group_counts
1197
+ #
1198
+ # @param value the value to set the attribute captured_group_counts to.
1199
+ def captured_group_counts=(_arg0); end
1200
+
1201
+ def close_completed_character_set_range; end
1202
+ def close_group; end
1203
+ def close_set; end
1204
+ def conditional(token); end
1205
+
1206
+ # Returns the value of attribute conditional_nesting.
1207
+ def conditional_nesting; end
1208
+
1209
+ # Sets the attribute conditional_nesting
1210
+ #
1211
+ # @param value the value to set the attribute conditional_nesting to.
1212
+ def conditional_nesting=(_arg0); end
1213
+
1214
+ def count_captured_group; end
1215
+
1216
+ # @yield [node]
1217
+ def decrease_nesting; end
1218
+
1219
+ def escape(token); end
1220
+ def extract_options(input, options); end
1221
+ def free_space(token); end
1222
+ def group(token); end
1223
+ def increase_group_level(exp); end
1224
+ def intersection(token); end
1225
+ def keep(token); end
1226
+ def literal(token); end
1227
+ def meta(token); end
1228
+ def negate_set; end
1229
+ def nest(exp); end
1230
+ def nest_conditional(exp); end
1231
+
1232
+ # Returns the value of attribute nesting.
1233
+ def nesting; end
1234
+
1235
+ # Sets the attribute nesting
1236
+ #
1237
+ # @param value the value to set the attribute nesting to.
1238
+ def nesting=(_arg0); end
1239
+
1240
+ # Returns the value of attribute node.
1241
+ def node; end
1242
+
1243
+ # Sets the attribute node
1244
+ #
1245
+ # @param value the value to set the attribute node to.
1246
+ def node=(_arg0); end
1247
+
1248
+ def open_group(token); end
1249
+ def open_set(token); end
1250
+ def options_group(token); end
1251
+
1252
+ # Returns the value of attribute options_stack.
1253
+ def options_stack; end
1254
+
1255
+ # Sets the attribute options_stack
1256
+ #
1257
+ # @param value the value to set the attribute options_stack to.
1258
+ def options_stack=(_arg0); end
1259
+
1260
+ def parse_token(token); end
1261
+ def posixclass(token); end
1262
+ def property(token); end
1263
+ def quantifier(token); end
1264
+ def range(token); end
1265
+
1266
+ # Returns the value of attribute root.
1267
+ def root; end
1268
+
1269
+ # Sets the attribute root
1270
+ #
1271
+ # @param value the value to set the attribute root to.
1272
+ def root=(_arg0); end
1273
+
1274
+ def sequence_operation(klass, token); end
1275
+ def set(token); end
1276
+
1277
+ # Returns the value of attribute switching_options.
1278
+ def switching_options; end
1279
+
1280
+ # Sets the attribute switching_options
1281
+ #
1282
+ # @param value the value to set the attribute switching_options to.
1283
+ def switching_options=(_arg0); end
1284
+
1285
+ def total_captured_group_count; end
1286
+ def type(token); end
1287
+
1288
+ class << self
1289
+ def parse(input, syntax = T.unsafe(nil), options: T.unsafe(nil), &block); end
1290
+ end
1291
+ end
1292
+
1293
+ Regexp::Parser::ENC_FLAGS = T.let(T.unsafe(nil), Array)
1294
+
1295
+ # base class for all gem-specific errors
1296
+ class Regexp::Parser::Error < ::StandardError; end
1297
+
1298
+ Regexp::Parser::MOD_FLAGS = T.let(T.unsafe(nil), Array)
1299
+ class Regexp::Parser::ParserError < ::Regexp::Parser::Error; end
1300
+ Regexp::Parser::UPTokens = Regexp::Syntax::Token::UnicodeProperty
1301
+
1302
+ class Regexp::Parser::UnknownTokenError < ::Regexp::Parser::ParserError
1303
+ # @return [UnknownTokenError] a new instance of UnknownTokenError
1304
+ def initialize(type, token); end
1305
+ end
1306
+
1307
+ class Regexp::Parser::UnknownTokenTypeError < ::Regexp::Parser::ParserError
1308
+ # @return [UnknownTokenTypeError] a new instance of UnknownTokenTypeError
1309
+ def initialize(type, token); end
1310
+ end
1311
+
1312
+ Regexp::Parser::VERSION = T.let(T.unsafe(nil), String)
1313
+
1314
+ class Regexp::Scanner
1315
+ # Emits an array with the details of the scanned pattern
1316
+ def emit(type, token, text); end
1317
+
1318
+ # @raise [PrematureEndError]
1319
+ def scan(input_object, options: T.unsafe(nil), &block); end
1320
+
1321
+ private
1322
+
1323
+ # Appends one or more characters to the literal buffer, to be emitted later
1324
+ # by a call to emit_literal.
1325
+ def append_literal(data, ts, te); end
1326
+
1327
+ # Returns the value of attribute block.
1328
+ def block; end
1329
+
1330
+ # Sets the attribute block
1331
+ #
1332
+ # @param value the value to set the attribute block to.
1333
+ def block=(_arg0); end
1334
+
1335
+ # Returns the value of attribute char_pos.
1336
+ def char_pos; end
1337
+
1338
+ # Sets the attribute char_pos
1339
+ #
1340
+ # @param value the value to set the attribute char_pos to.
1341
+ def char_pos=(_arg0); end
1342
+
1343
+ # Returns the value of attribute conditional_stack.
1344
+ def conditional_stack; end
1345
+
1346
+ # Sets the attribute conditional_stack
1347
+ #
1348
+ # @param value the value to set the attribute conditional_stack to.
1349
+ def conditional_stack=(_arg0); end
1350
+
1351
+ # Copy from ts to te from data as text
1352
+ def copy(data, ts, te); end
1353
+
1354
+ # Emits the literal run collected by calls to the append_literal method.
1355
+ def emit_literal; end
1356
+
1357
+ def emit_meta_control_sequence(data, ts, te, token); end
1358
+ def emit_options(text); end
1359
+
1360
+ # Returns the value of attribute free_spacing.
1361
+ def free_spacing; end
1362
+
1363
+ # Sets the attribute free_spacing
1364
+ #
1365
+ # @param value the value to set the attribute free_spacing to.
1366
+ def free_spacing=(_arg0); end
1367
+
1368
+ # @return [Boolean]
1369
+ def free_spacing?(input_object, options); end
1370
+
1371
+ # Returns the value of attribute group_depth.
1372
+ def group_depth; end
1373
+
1374
+ # Sets the attribute group_depth
1375
+ #
1376
+ # @param value the value to set the attribute group_depth to.
1377
+ def group_depth=(_arg0); end
1378
+
1379
+ # @return [Boolean]
1380
+ def in_group?; end
1381
+
1382
+ # @return [Boolean]
1383
+ def in_set?; end
1384
+
1385
+ # Returns the value of attribute literal.
1386
+ def literal; end
1387
+
1388
+ # Sets the attribute literal
1389
+ #
1390
+ # @param value the value to set the attribute literal to.
1391
+ def literal=(_arg0); end
1392
+
1393
+ # Returns the value of attribute set_depth.
1394
+ def set_depth; end
1395
+
1396
+ # Sets the attribute set_depth
1397
+ #
1398
+ # @param value the value to set the attribute set_depth to.
1399
+ def set_depth=(_arg0); end
1400
+
1401
+ # Returns the value of attribute spacing_stack.
1402
+ def spacing_stack; end
1403
+
1404
+ # Sets the attribute spacing_stack
1405
+ #
1406
+ # @param value the value to set the attribute spacing_stack to.
1407
+ def spacing_stack=(_arg0); end
1408
+
1409
+ # Returns the value of attribute tokens.
1410
+ def tokens; end
1411
+
1412
+ # Sets the attribute tokens
1413
+ #
1414
+ # @param value the value to set the attribute tokens to.
1415
+ def tokens=(_arg0); end
1416
+
1417
+ # Centralizes and unifies the handling of validation related
1418
+ # errors.
1419
+ def validation_error(type, what, reason = T.unsafe(nil)); end
1420
+
1421
+ class << self
1422
+ def long_prop_map; end
1423
+ def parse_prop_map(name); end
1424
+ def posix_classes; end
1425
+
1426
+ # Scans the given regular expression text, or Regexp object and collects the
1427
+ # emitted token into an array that gets returned at the end. If a block is
1428
+ # given, it gets called for each emitted token.
1429
+ #
1430
+ # This method may raise errors if a syntax error is encountered.
1431
+ # --------------------------------------------------------------------------
1432
+ def scan(input_object, options: T.unsafe(nil), &block); end
1433
+
1434
+ # lazy-load property maps when first needed
1435
+ def short_prop_map; end
1436
+ end
1437
+ end
1438
+
1439
+ # Invalid back reference. Used for name a number refs/calls.
1440
+ class Regexp::Scanner::InvalidBackrefError < ::Regexp::Scanner::ValidationError
1441
+ # @return [InvalidBackrefError] a new instance of InvalidBackrefError
1442
+ def initialize(what, reason); end
1443
+ end
1444
+
1445
+ # Invalid group. Used for named groups.
1446
+ class Regexp::Scanner::InvalidGroupError < ::Regexp::Scanner::ValidationError
1447
+ # @return [InvalidGroupError] a new instance of InvalidGroupError
1448
+ def initialize(what, reason); end
1449
+ end
1450
+
1451
+ # Invalid groupOption. Used for inline options.
1452
+ # TODO: should become InvalidGroupOptionError in v3.0.0 for consistency
1453
+ class Regexp::Scanner::InvalidGroupOption < ::Regexp::Scanner::ValidationError
1454
+ # @return [InvalidGroupOption] a new instance of InvalidGroupOption
1455
+ def initialize(option, text); end
1456
+ end
1457
+
1458
+ # Invalid sequence format. Used for escape sequences, mainly.
1459
+ class Regexp::Scanner::InvalidSequenceError < ::Regexp::Scanner::ValidationError
1460
+ # @return [InvalidSequenceError] a new instance of InvalidSequenceError
1461
+ def initialize(what = T.unsafe(nil), where = T.unsafe(nil)); end
1462
+ end
1463
+
1464
+ # Unexpected end of pattern
1465
+ class Regexp::Scanner::PrematureEndError < ::Regexp::Scanner::ScannerError
1466
+ # @return [PrematureEndError] a new instance of PrematureEndError
1467
+ def initialize(where = T.unsafe(nil)); end
1468
+ end
1469
+
1470
+ # General scanner error (catch all)
1471
+ class Regexp::Scanner::ScannerError < ::Regexp::Parser::Error; end
1472
+
1473
+ # The POSIX class name was not recognized by the scanner.
1474
+ class Regexp::Scanner::UnknownPosixClassError < ::Regexp::Scanner::ValidationError
1475
+ # @return [UnknownPosixClassError] a new instance of UnknownPosixClassError
1476
+ def initialize(text); end
1477
+ end
1478
+
1479
+ # The property name was not recognized by the scanner.
1480
+ class Regexp::Scanner::UnknownUnicodePropertyError < ::Regexp::Scanner::ValidationError
1481
+ # @return [UnknownUnicodePropertyError] a new instance of UnknownUnicodePropertyError
1482
+ def initialize(name); end
1483
+ end
1484
+
1485
+ # Base for all scanner validation errors
1486
+ class Regexp::Scanner::ValidationError < ::Regexp::Parser::Error
1487
+ # @return [ValidationError] a new instance of ValidationError
1488
+ def initialize(reason); end
1489
+ end
1490
+
1491
+ # After loading all the tokens the map is full. Extract all tokens and types
1492
+ # into the All and Types constants.
1493
+ module Regexp::Syntax
1494
+ private
1495
+
1496
+ def comparable(name); end
1497
+ def const_missing(const_name); end
1498
+ def fallback_version_class(version); end
1499
+
1500
+ # Returns the syntax specification class for the given syntax
1501
+ # version name. The special names 'any' and '*' return Syntax::Any.
1502
+ def for(name); end
1503
+
1504
+ def new(name); end
1505
+ def specified_versions; end
1506
+ def supported?(name); end
1507
+ def version_class(version); end
1508
+ def warn_if_future_version(const_name); end
1509
+
1510
+ class << self
1511
+ def comparable(name); end
1512
+ def const_missing(const_name); end
1513
+ def fallback_version_class(version); end
1514
+
1515
+ # Returns the syntax specification class for the given syntax
1516
+ # version name. The special names 'any' and '*' return Syntax::Any.
1517
+ def for(name); end
1518
+
1519
+ def new(name); end
1520
+ def specified_versions; end
1521
+
1522
+ # @return [Boolean]
1523
+ def supported?(name); end
1524
+
1525
+ def version_class(version); end
1526
+ def warn_if_future_version(const_name); end
1527
+ end
1528
+ end
1529
+
1530
+ # A syntax that always returns true, passing all tokens as implemented. This
1531
+ # is useful during development, testing, and should be useful for some types
1532
+ # of transformations as well.
1533
+ class Regexp::Syntax::Any < ::Regexp::Syntax::Base
1534
+ class << self
1535
+ # @return [Boolean]
1536
+ def implements?(_type, _token); end
1537
+ end
1538
+ end
1539
+
1540
+ # A lookup map of supported types and tokens in a given syntax
1541
+ class Regexp::Syntax::Base
1542
+ include ::Regexp::Syntax::Token
1543
+
1544
+ # TODO: drop this backwards compatibility code in v3.0.0, do `private :new`
1545
+ #
1546
+ # @return [Base] a new instance of Base
1547
+ def initialize; end
1548
+
1549
+ def method_missing(name, *args); end
1550
+
1551
+ private
1552
+
1553
+ # @return [Boolean]
1554
+ def respond_to_missing?(name, include_private = T.unsafe(nil)); end
1555
+
1556
+ class << self
1557
+ def added_features; end
1558
+
1559
+ # @raise [NotImplementedError]
1560
+ def check!(type, token); end
1561
+
1562
+ # @return [Boolean]
1563
+ def check?(type, token); end
1564
+
1565
+ def excludes(type, tokens); end
1566
+
1567
+ # Returns the value of attribute features.
1568
+ def features; end
1569
+
1570
+ # Sets the attribute features
1571
+ #
1572
+ # @param value the value to set the attribute features to.
1573
+ def features=(_arg0); end
1574
+
1575
+ def implementations(type); end
1576
+ def implements(type, tokens); end
1577
+
1578
+ # @raise [NotImplementedError]
1579
+ def implements!(type, token); end
1580
+
1581
+ # @return [Boolean]
1582
+ def implements?(type, token); end
1583
+
1584
+ # automatically inherit features through the syntax class hierarchy
1585
+ def inherited(subclass); end
1586
+
1587
+ def normalize(type, token); end
1588
+ def normalize_backref(type, token); end
1589
+ def normalize_group(type, token); end
1590
+ def removed_features; end
1591
+ end
1592
+ end
1593
+
1594
+ class Regexp::Syntax::InvalidVersionNameError < ::Regexp::Syntax::SyntaxError
1595
+ # @return [InvalidVersionNameError] a new instance of InvalidVersionNameError
1596
+ def initialize(name); end
1597
+ end
1598
+
1599
+ class Regexp::Syntax::NotImplementedError < ::Regexp::Syntax::SyntaxError
1600
+ # @return [NotImplementedError] a new instance of NotImplementedError
1601
+ def initialize(syntax, type, token); end
1602
+ end
1603
+
1604
+ class Regexp::Syntax::SyntaxError < ::Regexp::Parser::Error; end
1605
+ module Regexp::Syntax::Token; end
1606
+ Regexp::Syntax::Token::All = T.let(T.unsafe(nil), Array)
1607
+ module Regexp::Syntax::Token::Anchor; end
1608
+ Regexp::Syntax::Token::Anchor::All = T.let(T.unsafe(nil), Array)
1609
+ Regexp::Syntax::Token::Anchor::Basic = T.let(T.unsafe(nil), Array)
1610
+ Regexp::Syntax::Token::Anchor::Extended = T.let(T.unsafe(nil), Array)
1611
+ Regexp::Syntax::Token::Anchor::MatchStart = T.let(T.unsafe(nil), Array)
1612
+ Regexp::Syntax::Token::Anchor::String = T.let(T.unsafe(nil), Array)
1613
+ Regexp::Syntax::Token::Anchor::Type = T.let(T.unsafe(nil), Symbol)
1614
+ module Regexp::Syntax::Token::Assertion; end
1615
+ Regexp::Syntax::Token::Assertion::All = T.let(T.unsafe(nil), Array)
1616
+ Regexp::Syntax::Token::Assertion::Lookahead = T.let(T.unsafe(nil), Array)
1617
+ Regexp::Syntax::Token::Assertion::Lookbehind = T.let(T.unsafe(nil), Array)
1618
+ Regexp::Syntax::Token::Assertion::Type = T.let(T.unsafe(nil), Symbol)
1619
+ module Regexp::Syntax::Token::Backreference; end
1620
+ Regexp::Syntax::Token::Backreference::All = T.let(T.unsafe(nil), Array)
1621
+ Regexp::Syntax::Token::Backreference::Name = T.let(T.unsafe(nil), Array)
1622
+ Regexp::Syntax::Token::Backreference::Number = T.let(T.unsafe(nil), Array)
1623
+ Regexp::Syntax::Token::Backreference::NumberRef = T.let(T.unsafe(nil), Array)
1624
+ Regexp::Syntax::Token::Backreference::Plain = T.let(T.unsafe(nil), Array)
1625
+ Regexp::Syntax::Token::Backreference::RecursionLevel = T.let(T.unsafe(nil), Array)
1626
+ Regexp::Syntax::Token::Backreference::Type = T.let(T.unsafe(nil), Symbol)
1627
+ Regexp::Syntax::Token::Backreference::V1_8_6 = T.let(T.unsafe(nil), Array)
1628
+ Regexp::Syntax::Token::Backreference::V1_9_1 = T.let(T.unsafe(nil), Array)
1629
+ module Regexp::Syntax::Token::CharacterSet; end
1630
+ Regexp::Syntax::Token::CharacterSet::All = T.let(T.unsafe(nil), Array)
1631
+ Regexp::Syntax::Token::CharacterSet::Basic = T.let(T.unsafe(nil), Array)
1632
+ Regexp::Syntax::Token::CharacterSet::Extended = T.let(T.unsafe(nil), Array)
1633
+ Regexp::Syntax::Token::CharacterSet::Type = T.let(T.unsafe(nil), Symbol)
1634
+ module Regexp::Syntax::Token::CharacterType; end
1635
+ Regexp::Syntax::Token::CharacterType::All = T.let(T.unsafe(nil), Array)
1636
+ Regexp::Syntax::Token::CharacterType::Basic = T.let(T.unsafe(nil), Array)
1637
+ Regexp::Syntax::Token::CharacterType::Clustered = T.let(T.unsafe(nil), Array)
1638
+ Regexp::Syntax::Token::CharacterType::Extended = T.let(T.unsafe(nil), Array)
1639
+ Regexp::Syntax::Token::CharacterType::Hex = T.let(T.unsafe(nil), Array)
1640
+ Regexp::Syntax::Token::CharacterType::Type = T.let(T.unsafe(nil), Symbol)
1641
+ module Regexp::Syntax::Token::Conditional; end
1642
+ Regexp::Syntax::Token::Conditional::All = T.let(T.unsafe(nil), Array)
1643
+ Regexp::Syntax::Token::Conditional::Condition = T.let(T.unsafe(nil), Array)
1644
+ Regexp::Syntax::Token::Conditional::Delimiters = T.let(T.unsafe(nil), Array)
1645
+ Regexp::Syntax::Token::Conditional::Separator = T.let(T.unsafe(nil), Array)
1646
+ Regexp::Syntax::Token::Conditional::Type = T.let(T.unsafe(nil), Symbol)
1647
+
1648
+ # TODO: unify naming with RE::EscapeSequence, one way or the other, in v3.0.0
1649
+ module Regexp::Syntax::Token::Escape; end
1650
+
1651
+ Regexp::Syntax::Token::Escape::ASCII = T.let(T.unsafe(nil), Array)
1652
+ Regexp::Syntax::Token::Escape::All = T.let(T.unsafe(nil), Array)
1653
+ Regexp::Syntax::Token::Escape::Basic = T.let(T.unsafe(nil), Array)
1654
+ Regexp::Syntax::Token::Escape::Control = T.let(T.unsafe(nil), Array)
1655
+ Regexp::Syntax::Token::Escape::Hex = T.let(T.unsafe(nil), Array)
1656
+ Regexp::Syntax::Token::Escape::Meta = T.let(T.unsafe(nil), Array)
1657
+ Regexp::Syntax::Token::Escape::Octal = T.let(T.unsafe(nil), Array)
1658
+ Regexp::Syntax::Token::Escape::Type = T.let(T.unsafe(nil), Symbol)
1659
+ Regexp::Syntax::Token::Escape::Unicode = T.let(T.unsafe(nil), Array)
1660
+ module Regexp::Syntax::Token::FreeSpace; end
1661
+ Regexp::Syntax::Token::FreeSpace::All = T.let(T.unsafe(nil), Array)
1662
+ Regexp::Syntax::Token::FreeSpace::Type = T.let(T.unsafe(nil), Symbol)
1663
+ module Regexp::Syntax::Token::Group; end
1664
+ Regexp::Syntax::Token::Group::All = T.let(T.unsafe(nil), Array)
1665
+ Regexp::Syntax::Token::Group::Atomic = T.let(T.unsafe(nil), Array)
1666
+ Regexp::Syntax::Token::Group::Basic = T.let(T.unsafe(nil), Array)
1667
+ Regexp::Syntax::Token::Group::Comment = T.let(T.unsafe(nil), Array)
1668
+ Regexp::Syntax::Token::Group::Extended = T.let(T.unsafe(nil), Array)
1669
+ Regexp::Syntax::Token::Group::Named = T.let(T.unsafe(nil), Array)
1670
+ Regexp::Syntax::Token::Group::Passive = T.let(T.unsafe(nil), Array)
1671
+ Regexp::Syntax::Token::Group::Type = T.let(T.unsafe(nil), Symbol)
1672
+ Regexp::Syntax::Token::Group::V1_8_6 = T.let(T.unsafe(nil), Array)
1673
+ Regexp::Syntax::Token::Group::V2_4_1 = T.let(T.unsafe(nil), Array)
1674
+ module Regexp::Syntax::Token::Keep; end
1675
+ Regexp::Syntax::Token::Keep::All = T.let(T.unsafe(nil), Array)
1676
+ Regexp::Syntax::Token::Keep::Mark = T.let(T.unsafe(nil), Array)
1677
+ Regexp::Syntax::Token::Keep::Type = T.let(T.unsafe(nil), Symbol)
1678
+ module Regexp::Syntax::Token::Literal; end
1679
+ Regexp::Syntax::Token::Literal::All = T.let(T.unsafe(nil), Array)
1680
+ Regexp::Syntax::Token::Literal::Type = T.let(T.unsafe(nil), Symbol)
1681
+ Regexp::Syntax::Token::Map = T.let(T.unsafe(nil), Hash)
1682
+ module Regexp::Syntax::Token::Meta; end
1683
+ Regexp::Syntax::Token::Meta::All = T.let(T.unsafe(nil), Array)
1684
+ Regexp::Syntax::Token::Meta::Basic = T.let(T.unsafe(nil), Array)
1685
+ Regexp::Syntax::Token::Meta::Extended = T.let(T.unsafe(nil), Array)
1686
+ Regexp::Syntax::Token::Meta::Type = T.let(T.unsafe(nil), Symbol)
1687
+ module Regexp::Syntax::Token::PosixClass; end
1688
+ Regexp::Syntax::Token::PosixClass::All = T.let(T.unsafe(nil), Array)
1689
+ Regexp::Syntax::Token::PosixClass::Extensions = T.let(T.unsafe(nil), Array)
1690
+ Regexp::Syntax::Token::PosixClass::NonType = T.let(T.unsafe(nil), Symbol)
1691
+ Regexp::Syntax::Token::PosixClass::Standard = T.let(T.unsafe(nil), Array)
1692
+ Regexp::Syntax::Token::PosixClass::Type = T.let(T.unsafe(nil), Symbol)
1693
+ module Regexp::Syntax::Token::Quantifier; end
1694
+ Regexp::Syntax::Token::Quantifier::All = T.let(T.unsafe(nil), Array)
1695
+ Regexp::Syntax::Token::Quantifier::Greedy = T.let(T.unsafe(nil), Array)
1696
+ Regexp::Syntax::Token::Quantifier::Interval = T.let(T.unsafe(nil), Array)
1697
+ Regexp::Syntax::Token::Quantifier::IntervalAll = T.let(T.unsafe(nil), Array)
1698
+ Regexp::Syntax::Token::Quantifier::IntervalPossessive = T.let(T.unsafe(nil), Array)
1699
+ Regexp::Syntax::Token::Quantifier::IntervalReluctant = T.let(T.unsafe(nil), Array)
1700
+ Regexp::Syntax::Token::Quantifier::Possessive = T.let(T.unsafe(nil), Array)
1701
+ Regexp::Syntax::Token::Quantifier::Reluctant = T.let(T.unsafe(nil), Array)
1702
+ Regexp::Syntax::Token::Quantifier::Type = T.let(T.unsafe(nil), Symbol)
1703
+ Regexp::Syntax::Token::Quantifier::V1_8_6 = T.let(T.unsafe(nil), Array)
1704
+
1705
+ # Type is the same as Backreference so keeping it here, for now.
1706
+ module Regexp::Syntax::Token::SubexpressionCall; end
1707
+
1708
+ Regexp::Syntax::Token::SubexpressionCall::All = T.let(T.unsafe(nil), Array)
1709
+ Regexp::Syntax::Token::SubexpressionCall::Name = T.let(T.unsafe(nil), Array)
1710
+ Regexp::Syntax::Token::SubexpressionCall::Number = T.let(T.unsafe(nil), Array)
1711
+ Regexp::Syntax::Token::Types = T.let(T.unsafe(nil), Array)
1712
+ module Regexp::Syntax::Token::UnicodeProperty; end
1713
+ Regexp::Syntax::Token::UnicodeProperty::Age = T.let(T.unsafe(nil), Array)
1714
+ Regexp::Syntax::Token::UnicodeProperty::Age_V1_9_3 = T.let(T.unsafe(nil), Array)
1715
+ Regexp::Syntax::Token::UnicodeProperty::Age_V2_0_0 = T.let(T.unsafe(nil), Array)
1716
+ Regexp::Syntax::Token::UnicodeProperty::Age_V2_2_0 = T.let(T.unsafe(nil), Array)
1717
+ Regexp::Syntax::Token::UnicodeProperty::Age_V2_3_0 = T.let(T.unsafe(nil), Array)
1718
+ Regexp::Syntax::Token::UnicodeProperty::Age_V2_4_0 = T.let(T.unsafe(nil), Array)
1719
+ Regexp::Syntax::Token::UnicodeProperty::Age_V2_5_0 = T.let(T.unsafe(nil), Array)
1720
+ Regexp::Syntax::Token::UnicodeProperty::Age_V2_6_0 = T.let(T.unsafe(nil), Array)
1721
+ Regexp::Syntax::Token::UnicodeProperty::Age_V2_6_2 = T.let(T.unsafe(nil), Array)
1722
+ Regexp::Syntax::Token::UnicodeProperty::Age_V2_6_3 = T.let(T.unsafe(nil), Array)
1723
+ Regexp::Syntax::Token::UnicodeProperty::Age_V3_1_0 = T.let(T.unsafe(nil), Array)
1724
+ Regexp::Syntax::Token::UnicodeProperty::Age_V3_2_0 = T.let(T.unsafe(nil), Array)
1725
+ Regexp::Syntax::Token::UnicodeProperty::All = T.let(T.unsafe(nil), Array)
1726
+ module Regexp::Syntax::Token::UnicodeProperty::Category; end
1727
+ Regexp::Syntax::Token::UnicodeProperty::Category::All = T.let(T.unsafe(nil), Array)
1728
+ Regexp::Syntax::Token::UnicodeProperty::Category::Codepoint = T.let(T.unsafe(nil), Array)
1729
+ Regexp::Syntax::Token::UnicodeProperty::Category::Letter = T.let(T.unsafe(nil), Array)
1730
+ Regexp::Syntax::Token::UnicodeProperty::Category::Mark = T.let(T.unsafe(nil), Array)
1731
+ Regexp::Syntax::Token::UnicodeProperty::Category::Number = T.let(T.unsafe(nil), Array)
1732
+ Regexp::Syntax::Token::UnicodeProperty::Category::Punctuation = T.let(T.unsafe(nil), Array)
1733
+ Regexp::Syntax::Token::UnicodeProperty::Category::Separator = T.let(T.unsafe(nil), Array)
1734
+ Regexp::Syntax::Token::UnicodeProperty::Category::Symbol = T.let(T.unsafe(nil), Array)
1735
+ Regexp::Syntax::Token::UnicodeProperty::CharType_V1_9_0 = T.let(T.unsafe(nil), Array)
1736
+ Regexp::Syntax::Token::UnicodeProperty::CharType_V2_5_0 = T.let(T.unsafe(nil), Array)
1737
+ Regexp::Syntax::Token::UnicodeProperty::Derived = T.let(T.unsafe(nil), Array)
1738
+ Regexp::Syntax::Token::UnicodeProperty::Derived_V1_9_0 = T.let(T.unsafe(nil), Array)
1739
+ Regexp::Syntax::Token::UnicodeProperty::Derived_V2_0_0 = T.let(T.unsafe(nil), Array)
1740
+ Regexp::Syntax::Token::UnicodeProperty::Derived_V2_4_0 = T.let(T.unsafe(nil), Array)
1741
+ Regexp::Syntax::Token::UnicodeProperty::Derived_V2_5_0 = T.let(T.unsafe(nil), Array)
1742
+ Regexp::Syntax::Token::UnicodeProperty::Emoji = T.let(T.unsafe(nil), Array)
1743
+ Regexp::Syntax::Token::UnicodeProperty::Emoji_V2_5_0 = T.let(T.unsafe(nil), Array)
1744
+ Regexp::Syntax::Token::UnicodeProperty::NonType = T.let(T.unsafe(nil), Symbol)
1745
+ Regexp::Syntax::Token::UnicodeProperty::POSIX = T.let(T.unsafe(nil), Array)
1746
+ Regexp::Syntax::Token::UnicodeProperty::Script = T.let(T.unsafe(nil), Array)
1747
+ Regexp::Syntax::Token::UnicodeProperty::Script_V1_9_0 = T.let(T.unsafe(nil), Array)
1748
+ Regexp::Syntax::Token::UnicodeProperty::Script_V1_9_3 = T.let(T.unsafe(nil), Array)
1749
+ Regexp::Syntax::Token::UnicodeProperty::Script_V2_0_0 = T.let(T.unsafe(nil), Array)
1750
+ Regexp::Syntax::Token::UnicodeProperty::Script_V2_2_0 = T.let(T.unsafe(nil), Array)
1751
+ Regexp::Syntax::Token::UnicodeProperty::Script_V2_3_0 = T.let(T.unsafe(nil), Array)
1752
+ Regexp::Syntax::Token::UnicodeProperty::Script_V2_4_0 = T.let(T.unsafe(nil), Array)
1753
+ Regexp::Syntax::Token::UnicodeProperty::Script_V2_5_0 = T.let(T.unsafe(nil), Array)
1754
+ Regexp::Syntax::Token::UnicodeProperty::Script_V2_6_0 = T.let(T.unsafe(nil), Array)
1755
+ Regexp::Syntax::Token::UnicodeProperty::Script_V2_6_2 = T.let(T.unsafe(nil), Array)
1756
+ Regexp::Syntax::Token::UnicodeProperty::Script_V3_1_0 = T.let(T.unsafe(nil), Array)
1757
+ Regexp::Syntax::Token::UnicodeProperty::Script_V3_2_0 = T.let(T.unsafe(nil), Array)
1758
+ Regexp::Syntax::Token::UnicodeProperty::Type = T.let(T.unsafe(nil), Symbol)
1759
+ Regexp::Syntax::Token::UnicodeProperty::UnicodeBlock = T.let(T.unsafe(nil), Array)
1760
+ Regexp::Syntax::Token::UnicodeProperty::UnicodeBlock_V1_9_0 = T.let(T.unsafe(nil), Array)
1761
+ Regexp::Syntax::Token::UnicodeProperty::UnicodeBlock_V2_0_0 = T.let(T.unsafe(nil), Array)
1762
+ Regexp::Syntax::Token::UnicodeProperty::UnicodeBlock_V2_2_0 = T.let(T.unsafe(nil), Array)
1763
+ Regexp::Syntax::Token::UnicodeProperty::UnicodeBlock_V2_3_0 = T.let(T.unsafe(nil), Array)
1764
+ Regexp::Syntax::Token::UnicodeProperty::UnicodeBlock_V2_4_0 = T.let(T.unsafe(nil), Array)
1765
+ Regexp::Syntax::Token::UnicodeProperty::UnicodeBlock_V2_5_0 = T.let(T.unsafe(nil), Array)
1766
+ Regexp::Syntax::Token::UnicodeProperty::UnicodeBlock_V2_6_0 = T.let(T.unsafe(nil), Array)
1767
+ Regexp::Syntax::Token::UnicodeProperty::UnicodeBlock_V2_6_2 = T.let(T.unsafe(nil), Array)
1768
+ Regexp::Syntax::Token::UnicodeProperty::UnicodeBlock_V3_1_0 = T.let(T.unsafe(nil), Array)
1769
+ Regexp::Syntax::Token::UnicodeProperty::UnicodeBlock_V3_2_0 = T.let(T.unsafe(nil), Array)
1770
+ Regexp::Syntax::Token::UnicodeProperty::V1_9_0 = T.let(T.unsafe(nil), Array)
1771
+ Regexp::Syntax::Token::UnicodeProperty::V1_9_3 = T.let(T.unsafe(nil), Array)
1772
+ Regexp::Syntax::Token::UnicodeProperty::V2_0_0 = T.let(T.unsafe(nil), Array)
1773
+ Regexp::Syntax::Token::UnicodeProperty::V2_2_0 = T.let(T.unsafe(nil), Array)
1774
+ Regexp::Syntax::Token::UnicodeProperty::V2_3_0 = T.let(T.unsafe(nil), Array)
1775
+ Regexp::Syntax::Token::UnicodeProperty::V2_4_0 = T.let(T.unsafe(nil), Array)
1776
+ Regexp::Syntax::Token::UnicodeProperty::V2_5_0 = T.let(T.unsafe(nil), Array)
1777
+ Regexp::Syntax::Token::UnicodeProperty::V2_6_0 = T.let(T.unsafe(nil), Array)
1778
+ Regexp::Syntax::Token::UnicodeProperty::V2_6_2 = T.let(T.unsafe(nil), Array)
1779
+ Regexp::Syntax::Token::UnicodeProperty::V2_6_3 = T.let(T.unsafe(nil), Array)
1780
+ Regexp::Syntax::Token::UnicodeProperty::V3_1_0 = T.let(T.unsafe(nil), Array)
1781
+ Regexp::Syntax::Token::UnicodeProperty::V3_2_0 = T.let(T.unsafe(nil), Array)
1782
+
1783
+ class Regexp::Syntax::UnknownSyntaxNameError < ::Regexp::Syntax::SyntaxError
1784
+ # @return [UnknownSyntaxNameError] a new instance of UnknownSyntaxNameError
1785
+ def initialize(name); end
1786
+ end
1787
+
1788
+ class Regexp::Syntax::V1_8_6 < ::Regexp::Syntax::Base; end
1789
+ class Regexp::Syntax::V1_9_1 < ::Regexp::Syntax::V1_8_6; end
1790
+ class Regexp::Syntax::V1_9_3 < ::Regexp::Syntax::V1_9_1; end
1791
+ class Regexp::Syntax::V2_0_0 < ::Regexp::Syntax::V1_9_3; end
1792
+ class Regexp::Syntax::V2_2_0 < ::Regexp::Syntax::V2_0_0; end
1793
+ class Regexp::Syntax::V2_3_0 < ::Regexp::Syntax::V2_2_0; end
1794
+ class Regexp::Syntax::V2_4_0 < ::Regexp::Syntax::V2_3_0; end
1795
+ class Regexp::Syntax::V2_4_1 < ::Regexp::Syntax::V2_4_0; end
1796
+ class Regexp::Syntax::V2_5_0 < ::Regexp::Syntax::V2_4_1; end
1797
+ class Regexp::Syntax::V2_6_0 < ::Regexp::Syntax::V2_5_0; end
1798
+ class Regexp::Syntax::V2_6_2 < ::Regexp::Syntax::V2_6_0; end
1799
+ class Regexp::Syntax::V2_6_3 < ::Regexp::Syntax::V2_6_2; end
1800
+ class Regexp::Syntax::V3_1_0 < ::Regexp::Syntax::V2_6_3; end
1801
+ class Regexp::Syntax::V3_2_0 < ::Regexp::Syntax::V3_1_0; end
1802
+ Regexp::Syntax::VERSION_CONST_REGEXP = T.let(T.unsafe(nil), Regexp)
1803
+ Regexp::Syntax::VERSION_FORMAT = T.let(T.unsafe(nil), String)
1804
+ Regexp::Syntax::VERSION_REGEXP = T.let(T.unsafe(nil), Regexp)
1805
+ Regexp::TOKEN_KEYS = T.let(T.unsafe(nil), Array)
1806
+
1807
+ class Regexp::Token < ::Struct
1808
+ def conditional_level; end
1809
+ def conditional_level=(_); end
1810
+ def length; end
1811
+ def level; end
1812
+ def level=(_); end
1813
+
1814
+ # Returns the value of attribute next.
1815
+ def next; end
1816
+
1817
+ # Sets the attribute next
1818
+ #
1819
+ # @param value the value to set the attribute next to.
1820
+ def next=(_arg0); end
1821
+
1822
+ def offset; end
1823
+
1824
+ # Returns the value of attribute previous.
1825
+ def previous; end
1826
+
1827
+ # Sets the attribute previous
1828
+ #
1829
+ # @param value the value to set the attribute previous to.
1830
+ def previous=(_arg0); end
1831
+
1832
+ def set_level; end
1833
+ def set_level=(_); end
1834
+ def te; end
1835
+ def te=(_); end
1836
+ def text; end
1837
+ def text=(_); end
1838
+ def token; end
1839
+ def token=(_); end
1840
+ def ts; end
1841
+ def ts=(_); end
1842
+ def type; end
1843
+ def type=(_); end
1844
+
1845
+ class << self
1846
+ def [](*_arg0); end
1847
+ def inspect; end
1848
+ def members; end
1849
+ def new(*_arg0); end
1850
+ end
1851
+ end