twirbet 0.1.0 → 0.1.1

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