shopify-ruby-definitions 0.0.1 → 1.1.0

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