sorbet-result 1.1.0 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.ruby-version +1 -1
- data/.standard.yml +1 -1
- data/CHANGELOG.md +17 -0
- data/Gemfile +1 -1
- data/Gemfile.lock +85 -68
- data/README.md +4 -4
- data/lib/typed/no_payload_on_failure_error.rb +8 -3
- data/lib/typed/result.rb +33 -3
- data/sorbet/rbi/gems/{ast@2.4.2.rbi → ast@2.4.3.rbi} +4 -3
- data/sorbet/rbi/gems/benchmark@0.4.1.rbi +619 -0
- data/sorbet/rbi/gems/cgi@0.5.0.rbi +2961 -0
- data/sorbet/rbi/gems/date@3.4.1.rbi +75 -0
- data/sorbet/rbi/gems/erb@4.0.4.rbi +910 -0
- data/sorbet/rbi/gems/{erubi@1.12.0.rbi → erubi@1.13.1.rbi} +25 -15
- data/sorbet/rbi/gems/{io-console@0.7.2.rbi → io-console@0.8.0.rbi} +1 -0
- data/sorbet/rbi/gems/{json@2.7.1.rbi → json@2.12.2.rbi} +736 -238
- data/sorbet/rbi/gems/{language_server-protocol@3.17.0.3.rbi → language_server-protocol@3.17.0.5.rbi} +12 -5
- data/sorbet/rbi/gems/lint_roller@1.1.0.rbi +1 -0
- data/sorbet/rbi/gems/logger@1.7.0.rbi +963 -0
- data/sorbet/rbi/gems/{minitest@5.22.2.rbi → minitest@5.25.5.rbi} +326 -308
- data/sorbet/rbi/gems/netrc@0.11.0.rbi +1 -0
- data/sorbet/rbi/gems/{parallel@1.24.0.rbi → parallel@1.27.0.rbi} +32 -21
- data/sorbet/rbi/gems/{parser@3.3.0.5.rbi → parser@3.3.8.0.rbi} +448 -385
- data/sorbet/rbi/gems/pp@0.6.2.rbi +368 -0
- data/sorbet/rbi/gems/prettyprint@0.2.0.rbi +477 -0
- data/sorbet/rbi/gems/prism@1.4.0.rbi +41732 -0
- data/sorbet/rbi/gems/{psych@5.1.2.rbi → psych@5.2.6.rbi} +974 -236
- data/sorbet/rbi/gems/{racc@1.7.3.rbi → racc@1.8.1.rbi} +38 -33
- data/sorbet/rbi/gems/rainbow@3.1.1.rbi +1 -0
- data/sorbet/rbi/gems/{rake@13.1.0.rbi → rake@13.3.0.rbi} +62 -58
- data/sorbet/rbi/gems/rbi@0.3.6.rbi +6893 -0
- data/sorbet/rbi/gems/rbs@3.9.4.rbi +6976 -0
- data/sorbet/rbi/gems/{regexp_parser@2.9.0.rbi → regexp_parser@2.10.0.rbi} +196 -172
- data/sorbet/rbi/gems/{reline@0.4.2.rbi → reline@0.6.1.rbi} +1 -0
- data/sorbet/rbi/gems/{rubocop-ast@1.30.0.rbi → rubocop-ast@1.45.1.rbi} +1673 -958
- data/sorbet/rbi/gems/{rubocop-performance@1.20.2.rbi → rubocop-performance@1.25.0.rbi} +1 -0
- data/sorbet/rbi/gems/{rubocop-sorbet@0.7.7.rbi → rubocop-sorbet@0.9.0.rbi} +1 -0
- data/sorbet/rbi/gems/{rubocop@1.60.2.rbi → rubocop@1.75.8.rbi} +9990 -5267
- data/sorbet/rbi/gems/ruby-progressbar@1.13.0.rbi +1 -0
- data/sorbet/rbi/gems/spoom@1.6.1.rbi +7274 -0
- data/sorbet/rbi/gems/standard-custom@1.0.2.rbi +1 -0
- data/sorbet/rbi/gems/{standard-performance@1.3.1.rbi → standard-performance@1.8.0.rbi} +1 -0
- data/sorbet/rbi/gems/{standard-sorbet@0.0.2.rbi → standard-sorbet@0.0.3.rbi} +1 -0
- data/sorbet/rbi/gems/{standard@1.34.0.rbi → standard@1.50.0.rbi} +182 -97
- data/sorbet/rbi/gems/{stringio@3.1.0.rbi → stringio@3.1.7.rbi} +1 -0
- data/sorbet/rbi/gems/{tapioca@0.12.0.rbi → tapioca@0.16.11.rbi} +489 -364
- data/sorbet/rbi/gems/{thor@1.3.0.rbi → thor@1.3.2.rbi} +114 -81
- data/sorbet/rbi/gems/unicode-display_width@3.1.4.rbi +132 -0
- data/sorbet/rbi/gems/unicode-emoji@4.0.4.rbi +251 -0
- data/sorbet/rbi/gems/{yard-sorbet@0.8.1.rbi → yard-sorbet@0.9.0.rbi} +36 -29
- data/sorbet/rbi/gems/{yard@0.9.34.rbi → yard@0.9.37.rbi} +430 -270
- metadata +46 -55
- data/.tool-versions +0 -1
- data/sorbet/rbi/gems/prettier_print@1.2.1.rbi +0 -951
- data/sorbet/rbi/gems/prism@0.24.0.rbi +0 -31040
- data/sorbet/rbi/gems/rbi@0.1.9.rbi +0 -3006
- data/sorbet/rbi/gems/rexml@3.2.6.rbi +0 -4781
- data/sorbet/rbi/gems/spoom@1.2.4.rbi +0 -3777
- data/sorbet/rbi/gems/syntax_tree@6.2.0.rbi +0 -23133
- data/sorbet/rbi/gems/unicode-display_width@2.5.0.rbi +0 -65
@@ -4,6 +4,7 @@
|
|
4
4
|
# This is an autogenerated file for types exported from the `parser` gem.
|
5
5
|
# Please instead update this file by running `bin/tapioca gem parser`.
|
6
6
|
|
7
|
+
|
7
8
|
# @api public
|
8
9
|
#
|
9
10
|
# source://parser//lib/parser.rb#19
|
@@ -52,603 +53,605 @@ end
|
|
52
53
|
# @api public
|
53
54
|
#
|
54
55
|
# source://parser//lib/parser/ast/processor.rb#9
|
55
|
-
class Parser::AST::Processor
|
56
|
+
class Parser::AST::Processor
|
57
|
+
include ::AST::Processor::Mixin
|
58
|
+
|
56
59
|
# @api public
|
57
60
|
#
|
58
|
-
# source://parser//lib/parser/ast/processor.rb#
|
61
|
+
# source://parser//lib/parser/ast/processor.rb#12
|
59
62
|
def on_alias(node); end
|
60
63
|
|
61
64
|
# @api public
|
62
65
|
#
|
63
|
-
# source://parser//lib/parser/ast/processor.rb#
|
66
|
+
# source://parser//lib/parser/ast/processor.rb#12
|
64
67
|
def on_and(node); end
|
65
68
|
|
66
69
|
# @api public
|
67
70
|
#
|
68
|
-
# source://parser//lib/parser/ast/processor.rb#
|
71
|
+
# source://parser//lib/parser/ast/processor.rb#12
|
69
72
|
def on_and_asgn(node); end
|
70
73
|
|
71
74
|
# @api public
|
72
75
|
# @private
|
73
76
|
#
|
74
|
-
# source://parser//lib/parser/ast/processor.rb#
|
77
|
+
# source://parser//lib/parser/ast/processor.rb#118
|
75
78
|
def on_arg(node); end
|
76
79
|
|
77
80
|
# @api public
|
78
81
|
#
|
79
|
-
# source://parser//lib/parser/ast/processor.rb#
|
82
|
+
# source://parser//lib/parser/ast/processor.rb#12
|
80
83
|
def on_arg_expr(node); end
|
81
84
|
|
82
85
|
# @api public
|
83
86
|
#
|
84
|
-
# source://parser//lib/parser/ast/processor.rb#
|
87
|
+
# source://parser//lib/parser/ast/processor.rb#12
|
85
88
|
def on_args(node); end
|
86
89
|
|
87
90
|
# @api public
|
88
91
|
#
|
89
|
-
# source://parser//lib/parser/ast/processor.rb#
|
92
|
+
# source://parser//lib/parser/ast/processor.rb#105
|
90
93
|
def on_argument(node); end
|
91
94
|
|
92
95
|
# @api public
|
93
96
|
#
|
94
|
-
# source://parser//lib/parser/ast/processor.rb#
|
97
|
+
# source://parser//lib/parser/ast/processor.rb#12
|
95
98
|
def on_array(node); end
|
96
99
|
|
97
100
|
# @api public
|
98
101
|
#
|
99
|
-
# source://parser//lib/parser/ast/processor.rb#
|
102
|
+
# source://parser//lib/parser/ast/processor.rb#12
|
100
103
|
def on_array_pattern(node); end
|
101
104
|
|
102
105
|
# @api public
|
103
106
|
#
|
104
|
-
# source://parser//lib/parser/ast/processor.rb#
|
107
|
+
# source://parser//lib/parser/ast/processor.rb#12
|
105
108
|
def on_array_pattern_with_tail(node); end
|
106
109
|
|
107
110
|
# @api public
|
108
111
|
# @private
|
109
112
|
#
|
110
|
-
# source://parser//lib/parser/ast/processor.rb#
|
113
|
+
# source://parser//lib/parser/ast/processor.rb#34
|
111
114
|
def on_back_ref(node); end
|
112
115
|
|
113
116
|
# @api public
|
114
117
|
#
|
115
|
-
# source://parser//lib/parser/ast/processor.rb#
|
118
|
+
# source://parser//lib/parser/ast/processor.rb#12
|
116
119
|
def on_begin(node); end
|
117
120
|
|
118
121
|
# @api public
|
119
122
|
#
|
120
|
-
# source://parser//lib/parser/ast/processor.rb#
|
123
|
+
# source://parser//lib/parser/ast/processor.rb#12
|
121
124
|
def on_block(node); end
|
122
125
|
|
123
126
|
# @api public
|
124
127
|
#
|
125
|
-
# source://parser//lib/parser/ast/processor.rb#
|
128
|
+
# source://parser//lib/parser/ast/processor.rb#12
|
126
129
|
def on_block_pass(node); end
|
127
130
|
|
128
131
|
# @api public
|
129
132
|
# @private
|
130
133
|
#
|
131
|
-
# source://parser//lib/parser/ast/processor.rb#
|
134
|
+
# source://parser//lib/parser/ast/processor.rb#118
|
132
135
|
def on_blockarg(node); end
|
133
136
|
|
134
137
|
# @api public
|
135
138
|
#
|
136
|
-
# source://parser//lib/parser/ast/processor.rb#
|
139
|
+
# source://parser//lib/parser/ast/processor.rb#12
|
137
140
|
def on_blockarg_expr(node); end
|
138
141
|
|
139
142
|
# @api public
|
140
143
|
#
|
141
|
-
# source://parser//lib/parser/ast/processor.rb#
|
144
|
+
# source://parser//lib/parser/ast/processor.rb#12
|
142
145
|
def on_break(node); end
|
143
146
|
|
144
147
|
# @api public
|
145
148
|
#
|
146
|
-
# source://parser//lib/parser/ast/processor.rb#
|
149
|
+
# source://parser//lib/parser/ast/processor.rb#12
|
147
150
|
def on_case(node); end
|
148
151
|
|
149
152
|
# @api public
|
150
153
|
#
|
151
|
-
# source://parser//lib/parser/ast/processor.rb#
|
154
|
+
# source://parser//lib/parser/ast/processor.rb#12
|
152
155
|
def on_case_match(node); end
|
153
156
|
|
154
157
|
# @api public
|
155
158
|
#
|
156
|
-
# source://parser//lib/parser/ast/processor.rb#
|
159
|
+
# source://parser//lib/parser/ast/processor.rb#89
|
157
160
|
def on_casgn(node); end
|
158
161
|
|
159
162
|
# @api public
|
160
163
|
#
|
161
|
-
# source://parser//lib/parser/ast/processor.rb#
|
164
|
+
# source://parser//lib/parser/ast/processor.rb#12
|
162
165
|
def on_class(node); end
|
163
166
|
|
164
167
|
# @api public
|
165
168
|
#
|
166
|
-
# source://parser//lib/parser/ast/processor.rb#
|
169
|
+
# source://parser//lib/parser/ast/processor.rb#81
|
167
170
|
def on_const(node); end
|
168
171
|
|
169
172
|
# @api public
|
170
173
|
#
|
171
|
-
# source://parser//lib/parser/ast/processor.rb#
|
174
|
+
# source://parser//lib/parser/ast/processor.rb#12
|
172
175
|
def on_const_pattern(node); end
|
173
176
|
|
174
177
|
# @api public
|
175
178
|
#
|
176
|
-
# source://parser//lib/parser/ast/processor.rb#
|
179
|
+
# source://parser//lib/parser/ast/processor.rb#181
|
177
180
|
def on_csend(node); end
|
178
181
|
|
179
182
|
# @api public
|
180
183
|
# @private
|
181
184
|
#
|
182
|
-
# source://parser//lib/parser/ast/processor.rb#
|
185
|
+
# source://parser//lib/parser/ast/processor.rb#34
|
183
186
|
def on_cvar(node); end
|
184
187
|
|
185
188
|
# @api public
|
186
189
|
# @private
|
187
190
|
#
|
188
|
-
# source://parser//lib/parser/ast/processor.rb#
|
191
|
+
# source://parser//lib/parser/ast/processor.rb#58
|
189
192
|
def on_cvasgn(node); end
|
190
193
|
|
191
194
|
# @api public
|
192
195
|
#
|
193
|
-
# source://parser//lib/parser/ast/processor.rb#
|
196
|
+
# source://parser//lib/parser/ast/processor.rb#160
|
194
197
|
def on_def(node); end
|
195
198
|
|
196
199
|
# @api public
|
197
200
|
#
|
198
|
-
# source://parser//lib/parser/ast/processor.rb#
|
201
|
+
# source://parser//lib/parser/ast/processor.rb#12
|
199
202
|
def on_defined?(node); end
|
200
203
|
|
201
204
|
# @api public
|
202
205
|
#
|
203
|
-
# source://parser//lib/parser/ast/processor.rb#
|
206
|
+
# source://parser//lib/parser/ast/processor.rb#169
|
204
207
|
def on_defs(node); end
|
205
208
|
|
206
209
|
# @api public
|
207
210
|
#
|
208
|
-
# source://parser//lib/parser/ast/processor.rb#
|
211
|
+
# source://parser//lib/parser/ast/processor.rb#12
|
209
212
|
def on_dstr(node); end
|
210
213
|
|
211
214
|
# @api public
|
212
215
|
#
|
213
|
-
# source://parser//lib/parser/ast/processor.rb#
|
216
|
+
# source://parser//lib/parser/ast/processor.rb#12
|
214
217
|
def on_dsym(node); end
|
215
218
|
|
216
219
|
# @api public
|
217
220
|
#
|
218
|
-
# source://parser//lib/parser/ast/processor.rb#
|
221
|
+
# source://parser//lib/parser/ast/processor.rb#12
|
219
222
|
def on_eflipflop(node); end
|
220
223
|
|
221
224
|
# @api public
|
222
225
|
#
|
223
|
-
# source://parser//lib/parser/ast/processor.rb#
|
226
|
+
# source://parser//lib/parser/ast/processor.rb#288
|
224
227
|
def on_empty_else(node); end
|
225
228
|
|
226
229
|
# @api public
|
227
230
|
#
|
228
|
-
# source://parser//lib/parser/ast/processor.rb#
|
231
|
+
# source://parser//lib/parser/ast/processor.rb#12
|
229
232
|
def on_ensure(node); end
|
230
233
|
|
231
234
|
# @api public
|
232
235
|
#
|
233
|
-
# source://parser//lib/parser/ast/processor.rb#
|
236
|
+
# source://parser//lib/parser/ast/processor.rb#12
|
234
237
|
def on_erange(node); end
|
235
238
|
|
236
239
|
# @api public
|
237
240
|
#
|
238
|
-
# source://parser//lib/parser/ast/processor.rb#
|
241
|
+
# source://parser//lib/parser/ast/processor.rb#12
|
239
242
|
def on_find_pattern(node); end
|
240
243
|
|
241
244
|
# @api public
|
242
245
|
#
|
243
|
-
# source://parser//lib/parser/ast/processor.rb#
|
246
|
+
# source://parser//lib/parser/ast/processor.rb#12
|
244
247
|
def on_for(node); end
|
245
248
|
|
246
249
|
# @api public
|
247
250
|
# @private
|
248
251
|
#
|
249
|
-
# source://parser//lib/parser/ast/processor.rb#
|
252
|
+
# source://parser//lib/parser/ast/processor.rb#118
|
250
253
|
def on_forward_arg(node); end
|
251
254
|
|
252
255
|
# @api public
|
253
256
|
#
|
254
|
-
# source://parser//lib/parser/ast/processor.rb#
|
257
|
+
# source://parser//lib/parser/ast/processor.rb#12
|
255
258
|
def on_forwarded_kwrestarg(node); end
|
256
259
|
|
257
260
|
# @api public
|
258
261
|
#
|
259
|
-
# source://parser//lib/parser/ast/processor.rb#
|
262
|
+
# source://parser//lib/parser/ast/processor.rb#12
|
260
263
|
def on_forwarded_restarg(node); end
|
261
264
|
|
262
265
|
# @api public
|
263
266
|
# @private
|
264
267
|
#
|
265
|
-
# source://parser//lib/parser/ast/processor.rb#
|
268
|
+
# source://parser//lib/parser/ast/processor.rb#34
|
266
269
|
def on_gvar(node); end
|
267
270
|
|
268
271
|
# @api public
|
269
272
|
# @private
|
270
273
|
#
|
271
|
-
# source://parser//lib/parser/ast/processor.rb#
|
274
|
+
# source://parser//lib/parser/ast/processor.rb#58
|
272
275
|
def on_gvasgn(node); end
|
273
276
|
|
274
277
|
# @api public
|
275
278
|
#
|
276
|
-
# source://parser//lib/parser/ast/processor.rb#
|
279
|
+
# source://parser//lib/parser/ast/processor.rb#12
|
277
280
|
def on_hash(node); end
|
278
281
|
|
279
282
|
# @api public
|
280
283
|
#
|
281
|
-
# source://parser//lib/parser/ast/processor.rb#
|
284
|
+
# source://parser//lib/parser/ast/processor.rb#12
|
282
285
|
def on_hash_pattern(node); end
|
283
286
|
|
284
287
|
# @api public
|
285
288
|
#
|
286
|
-
# source://parser//lib/parser/ast/processor.rb#
|
289
|
+
# source://parser//lib/parser/ast/processor.rb#12
|
287
290
|
def on_if(node); end
|
288
291
|
|
289
292
|
# @api public
|
290
293
|
#
|
291
|
-
# source://parser//lib/parser/ast/processor.rb#
|
294
|
+
# source://parser//lib/parser/ast/processor.rb#12
|
292
295
|
def on_if_guard(node); end
|
293
296
|
|
294
297
|
# @api public
|
295
298
|
#
|
296
|
-
# source://parser//lib/parser/ast/processor.rb#
|
299
|
+
# source://parser//lib/parser/ast/processor.rb#12
|
297
300
|
def on_iflipflop(node); end
|
298
301
|
|
299
302
|
# @api public
|
300
303
|
#
|
301
|
-
# source://parser//lib/parser/ast/processor.rb#
|
304
|
+
# source://parser//lib/parser/ast/processor.rb#12
|
302
305
|
def on_in_match(node); end
|
303
306
|
|
304
307
|
# @api public
|
305
308
|
#
|
306
|
-
# source://parser//lib/parser/ast/processor.rb#
|
309
|
+
# source://parser//lib/parser/ast/processor.rb#12
|
307
310
|
def on_in_pattern(node); end
|
308
311
|
|
309
312
|
# @api public
|
310
313
|
#
|
311
|
-
# source://parser//lib/parser/ast/processor.rb#
|
314
|
+
# source://parser//lib/parser/ast/processor.rb#12
|
312
315
|
def on_index(node); end
|
313
316
|
|
314
317
|
# @api public
|
315
318
|
#
|
316
|
-
# source://parser//lib/parser/ast/processor.rb#
|
319
|
+
# source://parser//lib/parser/ast/processor.rb#12
|
317
320
|
def on_indexasgn(node); end
|
318
321
|
|
319
322
|
# @api public
|
320
323
|
#
|
321
|
-
# source://parser//lib/parser/ast/processor.rb#
|
324
|
+
# source://parser//lib/parser/ast/processor.rb#12
|
322
325
|
def on_irange(node); end
|
323
326
|
|
324
327
|
# @api public
|
325
328
|
# @private
|
326
329
|
#
|
327
|
-
# source://parser//lib/parser/ast/processor.rb#
|
330
|
+
# source://parser//lib/parser/ast/processor.rb#34
|
328
331
|
def on_ivar(node); end
|
329
332
|
|
330
333
|
# @api public
|
331
334
|
# @private
|
332
335
|
#
|
333
|
-
# source://parser//lib/parser/ast/processor.rb#
|
336
|
+
# source://parser//lib/parser/ast/processor.rb#58
|
334
337
|
def on_ivasgn(node); end
|
335
338
|
|
336
339
|
# @api public
|
337
340
|
# @private
|
338
341
|
#
|
339
|
-
# source://parser//lib/parser/ast/processor.rb#
|
342
|
+
# source://parser//lib/parser/ast/processor.rb#118
|
340
343
|
def on_kwarg(node); end
|
341
344
|
|
342
345
|
# @api public
|
343
346
|
#
|
344
|
-
# source://parser//lib/parser/ast/processor.rb#
|
347
|
+
# source://parser//lib/parser/ast/processor.rb#12
|
345
348
|
def on_kwargs(node); end
|
346
349
|
|
347
350
|
# @api public
|
348
351
|
#
|
349
|
-
# source://parser//lib/parser/ast/processor.rb#
|
352
|
+
# source://parser//lib/parser/ast/processor.rb#12
|
350
353
|
def on_kwbegin(node); end
|
351
354
|
|
352
355
|
# @api public
|
353
356
|
# @private
|
354
357
|
#
|
355
|
-
# source://parser//lib/parser/ast/processor.rb#
|
358
|
+
# source://parser//lib/parser/ast/processor.rb#118
|
356
359
|
def on_kwoptarg(node); end
|
357
360
|
|
358
361
|
# @api public
|
359
362
|
# @private
|
360
363
|
#
|
361
|
-
# source://parser//lib/parser/ast/processor.rb#
|
364
|
+
# source://parser//lib/parser/ast/processor.rb#118
|
362
365
|
def on_kwrestarg(node); end
|
363
366
|
|
364
367
|
# @api public
|
365
368
|
#
|
366
|
-
# source://parser//lib/parser/ast/processor.rb#
|
369
|
+
# source://parser//lib/parser/ast/processor.rb#12
|
367
370
|
def on_kwsplat(node); end
|
368
371
|
|
369
372
|
# @api public
|
370
373
|
#
|
371
|
-
# source://parser//lib/parser/ast/processor.rb#
|
374
|
+
# source://parser//lib/parser/ast/processor.rb#12
|
372
375
|
def on_lambda(node); end
|
373
376
|
|
374
377
|
# @api public
|
375
378
|
# @private
|
376
379
|
#
|
377
|
-
# source://parser//lib/parser/ast/processor.rb#
|
380
|
+
# source://parser//lib/parser/ast/processor.rb#34
|
378
381
|
def on_lvar(node); end
|
379
382
|
|
380
383
|
# @api public
|
381
384
|
# @private
|
382
385
|
#
|
383
|
-
# source://parser//lib/parser/ast/processor.rb#
|
386
|
+
# source://parser//lib/parser/ast/processor.rb#58
|
384
387
|
def on_lvasgn(node); end
|
385
388
|
|
386
389
|
# @api public
|
387
390
|
#
|
388
|
-
# source://parser//lib/parser/ast/processor.rb#
|
391
|
+
# source://parser//lib/parser/ast/processor.rb#12
|
389
392
|
def on_masgn(node); end
|
390
393
|
|
391
394
|
# @api public
|
392
395
|
#
|
393
|
-
# source://parser//lib/parser/ast/processor.rb#
|
396
|
+
# source://parser//lib/parser/ast/processor.rb#12
|
394
397
|
def on_match_alt(node); end
|
395
398
|
|
396
399
|
# @api public
|
397
400
|
#
|
398
|
-
# source://parser//lib/parser/ast/processor.rb#
|
401
|
+
# source://parser//lib/parser/ast/processor.rb#12
|
399
402
|
def on_match_as(node); end
|
400
403
|
|
401
404
|
# @api public
|
402
405
|
#
|
403
|
-
# source://parser//lib/parser/ast/processor.rb#
|
406
|
+
# source://parser//lib/parser/ast/processor.rb#12
|
404
407
|
def on_match_current_line(node); end
|
405
408
|
|
406
409
|
# @api public
|
407
410
|
#
|
408
|
-
# source://parser//lib/parser/ast/processor.rb#
|
411
|
+
# source://parser//lib/parser/ast/processor.rb#12
|
409
412
|
def on_match_pattern(node); end
|
410
413
|
|
411
414
|
# @api public
|
412
415
|
#
|
413
|
-
# source://parser//lib/parser/ast/processor.rb#
|
416
|
+
# source://parser//lib/parser/ast/processor.rb#12
|
414
417
|
def on_match_pattern_p(node); end
|
415
418
|
|
416
419
|
# @api public
|
417
420
|
#
|
418
|
-
# source://parser//lib/parser/ast/processor.rb#
|
421
|
+
# source://parser//lib/parser/ast/processor.rb#12
|
419
422
|
def on_match_rest(node); end
|
420
423
|
|
421
424
|
# @api public
|
422
425
|
# @private
|
423
426
|
#
|
424
|
-
# source://parser//lib/parser/ast/processor.rb#
|
427
|
+
# source://parser//lib/parser/ast/processor.rb#34
|
425
428
|
def on_match_var(node); end
|
426
429
|
|
427
430
|
# @api public
|
428
431
|
#
|
429
|
-
# source://parser//lib/parser/ast/processor.rb#
|
432
|
+
# source://parser//lib/parser/ast/processor.rb#12
|
430
433
|
def on_match_with_lvasgn(node); end
|
431
434
|
|
432
435
|
# @api public
|
433
436
|
#
|
434
|
-
# source://parser//lib/parser/ast/processor.rb#
|
437
|
+
# source://parser//lib/parser/ast/processor.rb#12
|
435
438
|
def on_mlhs(node); end
|
436
439
|
|
437
440
|
# @api public
|
438
441
|
#
|
439
|
-
# source://parser//lib/parser/ast/processor.rb#
|
442
|
+
# source://parser//lib/parser/ast/processor.rb#12
|
440
443
|
def on_module(node); end
|
441
444
|
|
442
445
|
# @api public
|
443
446
|
#
|
444
|
-
# source://parser//lib/parser/ast/processor.rb#
|
447
|
+
# source://parser//lib/parser/ast/processor.rb#12
|
445
448
|
def on_next(node); end
|
446
449
|
|
447
450
|
# @api public
|
448
451
|
#
|
449
|
-
# source://parser//lib/parser/ast/processor.rb#
|
452
|
+
# source://parser//lib/parser/ast/processor.rb#12
|
450
453
|
def on_not(node); end
|
451
454
|
|
452
455
|
# @api public
|
453
456
|
# @private
|
454
457
|
#
|
455
|
-
# source://parser//lib/parser/ast/processor.rb#
|
458
|
+
# source://parser//lib/parser/ast/processor.rb#34
|
456
459
|
def on_nth_ref(node); end
|
457
460
|
|
458
461
|
# @api public
|
459
462
|
#
|
460
|
-
# source://parser//lib/parser/ast/processor.rb#
|
463
|
+
# source://parser//lib/parser/ast/processor.rb#198
|
461
464
|
def on_numblock(node); end
|
462
465
|
|
463
466
|
# @api public
|
464
467
|
#
|
465
|
-
# source://parser//lib/parser/ast/processor.rb#
|
468
|
+
# source://parser//lib/parser/ast/processor.rb#70
|
466
469
|
def on_op_asgn(node); end
|
467
470
|
|
468
471
|
# @api public
|
469
472
|
# @private
|
470
473
|
#
|
471
|
-
# source://parser//lib/parser/ast/processor.rb#
|
474
|
+
# source://parser//lib/parser/ast/processor.rb#118
|
472
475
|
def on_optarg(node); end
|
473
476
|
|
474
477
|
# @api public
|
475
478
|
#
|
476
|
-
# source://parser//lib/parser/ast/processor.rb#
|
479
|
+
# source://parser//lib/parser/ast/processor.rb#12
|
477
480
|
def on_or(node); end
|
478
481
|
|
479
482
|
# @api public
|
480
483
|
#
|
481
|
-
# source://parser//lib/parser/ast/processor.rb#
|
484
|
+
# source://parser//lib/parser/ast/processor.rb#12
|
482
485
|
def on_or_asgn(node); end
|
483
486
|
|
484
487
|
# @api public
|
485
488
|
#
|
486
|
-
# source://parser//lib/parser/ast/processor.rb#
|
489
|
+
# source://parser//lib/parser/ast/processor.rb#12
|
487
490
|
def on_pair(node); end
|
488
491
|
|
489
492
|
# @api public
|
490
493
|
#
|
491
|
-
# source://parser//lib/parser/ast/processor.rb#
|
494
|
+
# source://parser//lib/parser/ast/processor.rb#12
|
492
495
|
def on_pin(node); end
|
493
496
|
|
494
497
|
# @api public
|
495
498
|
#
|
496
|
-
# source://parser//lib/parser/ast/processor.rb#
|
499
|
+
# source://parser//lib/parser/ast/processor.rb#12
|
497
500
|
def on_postexe(node); end
|
498
501
|
|
499
502
|
# @api public
|
500
503
|
#
|
501
|
-
# source://parser//lib/parser/ast/processor.rb#
|
504
|
+
# source://parser//lib/parser/ast/processor.rb#12
|
502
505
|
def on_preexe(node); end
|
503
506
|
|
504
507
|
# @api public
|
505
508
|
#
|
506
|
-
# source://parser//lib/parser/ast/processor.rb#
|
509
|
+
# source://parser//lib/parser/ast/processor.rb#132
|
507
510
|
def on_procarg0(node); end
|
508
511
|
|
509
512
|
# @api public
|
510
513
|
#
|
511
|
-
# source://parser//lib/parser/ast/processor.rb#
|
514
|
+
# source://parser//lib/parser/ast/processor.rb#12
|
512
515
|
def on_redo(node); end
|
513
516
|
|
514
517
|
# @api public
|
515
518
|
#
|
516
|
-
# source://parser//lib/parser/ast/processor.rb#
|
519
|
+
# source://parser//lib/parser/ast/processor.rb#12
|
517
520
|
def on_regexp(node); end
|
518
521
|
|
519
522
|
# @api public
|
520
523
|
#
|
521
|
-
# source://parser//lib/parser/ast/processor.rb#
|
524
|
+
# source://parser//lib/parser/ast/processor.rb#12
|
522
525
|
def on_resbody(node); end
|
523
526
|
|
524
527
|
# @api public
|
525
528
|
#
|
526
|
-
# source://parser//lib/parser/ast/processor.rb#
|
529
|
+
# source://parser//lib/parser/ast/processor.rb#12
|
527
530
|
def on_rescue(node); end
|
528
531
|
|
529
532
|
# @api public
|
530
533
|
# @private
|
531
534
|
#
|
532
|
-
# source://parser//lib/parser/ast/processor.rb#
|
535
|
+
# source://parser//lib/parser/ast/processor.rb#118
|
533
536
|
def on_restarg(node); end
|
534
537
|
|
535
538
|
# @api public
|
536
539
|
#
|
537
|
-
# source://parser//lib/parser/ast/processor.rb#
|
540
|
+
# source://parser//lib/parser/ast/processor.rb#12
|
538
541
|
def on_restarg_expr(node); end
|
539
542
|
|
540
543
|
# @api public
|
541
544
|
#
|
542
|
-
# source://parser//lib/parser/ast/processor.rb#
|
545
|
+
# source://parser//lib/parser/ast/processor.rb#12
|
543
546
|
def on_retry(node); end
|
544
547
|
|
545
548
|
# @api public
|
546
549
|
#
|
547
|
-
# source://parser//lib/parser/ast/processor.rb#
|
550
|
+
# source://parser//lib/parser/ast/processor.rb#12
|
548
551
|
def on_return(node); end
|
549
552
|
|
550
553
|
# @api public
|
551
554
|
#
|
552
|
-
# source://parser//lib/parser/ast/processor.rb#
|
555
|
+
# source://parser//lib/parser/ast/processor.rb#12
|
553
556
|
def on_sclass(node); end
|
554
557
|
|
555
558
|
# @api public
|
556
559
|
#
|
557
|
-
# source://parser//lib/parser/ast/processor.rb#
|
560
|
+
# source://parser//lib/parser/ast/processor.rb#181
|
558
561
|
def on_send(node); end
|
559
562
|
|
560
563
|
# @api public
|
561
564
|
# @private
|
562
565
|
#
|
563
|
-
# source://parser//lib/parser/ast/processor.rb#
|
566
|
+
# source://parser//lib/parser/ast/processor.rb#118
|
564
567
|
def on_shadowarg(node); end
|
565
568
|
|
566
569
|
# @api public
|
567
570
|
#
|
568
|
-
# source://parser//lib/parser/ast/processor.rb#
|
571
|
+
# source://parser//lib/parser/ast/processor.rb#12
|
569
572
|
def on_splat(node); end
|
570
573
|
|
571
574
|
# @api public
|
572
575
|
#
|
573
|
-
# source://parser//lib/parser/ast/processor.rb#
|
576
|
+
# source://parser//lib/parser/ast/processor.rb#12
|
574
577
|
def on_super(node); end
|
575
578
|
|
576
579
|
# @api public
|
577
580
|
#
|
578
|
-
# source://parser//lib/parser/ast/processor.rb#
|
581
|
+
# source://parser//lib/parser/ast/processor.rb#12
|
579
582
|
def on_undef(node); end
|
580
583
|
|
581
584
|
# @api public
|
582
585
|
#
|
583
|
-
# source://parser//lib/parser/ast/processor.rb#
|
586
|
+
# source://parser//lib/parser/ast/processor.rb#12
|
584
587
|
def on_unless_guard(node); end
|
585
588
|
|
586
589
|
# @api public
|
587
590
|
#
|
588
|
-
# source://parser//lib/parser/ast/processor.rb#
|
591
|
+
# source://parser//lib/parser/ast/processor.rb#12
|
589
592
|
def on_until(node); end
|
590
593
|
|
591
594
|
# @api public
|
592
595
|
#
|
593
|
-
# source://parser//lib/parser/ast/processor.rb#
|
596
|
+
# source://parser//lib/parser/ast/processor.rb#12
|
594
597
|
def on_until_post(node); end
|
595
598
|
|
596
599
|
# @api public
|
597
600
|
#
|
598
|
-
# source://parser//lib/parser/ast/processor.rb#
|
601
|
+
# source://parser//lib/parser/ast/processor.rb#29
|
599
602
|
def on_var(node); end
|
600
603
|
|
601
604
|
# @api public
|
602
605
|
#
|
603
|
-
# source://parser//lib/parser/ast/processor.rb#
|
606
|
+
# source://parser//lib/parser/ast/processor.rb#45
|
604
607
|
def on_vasgn(node); end
|
605
608
|
|
606
609
|
# @api public
|
607
610
|
#
|
608
|
-
# source://parser//lib/parser/ast/processor.rb#
|
611
|
+
# source://parser//lib/parser/ast/processor.rb#12
|
609
612
|
def on_when(node); end
|
610
613
|
|
611
614
|
# @api public
|
612
615
|
#
|
613
|
-
# source://parser//lib/parser/ast/processor.rb#
|
616
|
+
# source://parser//lib/parser/ast/processor.rb#12
|
614
617
|
def on_while(node); end
|
615
618
|
|
616
619
|
# @api public
|
617
620
|
#
|
618
|
-
# source://parser//lib/parser/ast/processor.rb#
|
621
|
+
# source://parser//lib/parser/ast/processor.rb#12
|
619
622
|
def on_while_post(node); end
|
620
623
|
|
621
624
|
# @api public
|
622
625
|
#
|
623
|
-
# source://parser//lib/parser/ast/processor.rb#
|
626
|
+
# source://parser//lib/parser/ast/processor.rb#12
|
624
627
|
def on_xstr(node); end
|
625
628
|
|
626
629
|
# @api public
|
627
630
|
#
|
628
|
-
# source://parser//lib/parser/ast/processor.rb#
|
631
|
+
# source://parser//lib/parser/ast/processor.rb#12
|
629
632
|
def on_yield(node); end
|
630
633
|
|
631
634
|
# @api public
|
632
635
|
# @private
|
633
636
|
#
|
634
|
-
# source://parser//lib/parser/ast/processor.rb#
|
637
|
+
# source://parser//lib/parser/ast/processor.rb#281
|
635
638
|
def process_argument_node(node); end
|
636
639
|
|
637
640
|
# @api public
|
638
641
|
#
|
639
|
-
# source://parser//lib/parser/ast/processor.rb#
|
642
|
+
# source://parser//lib/parser/ast/processor.rb#12
|
640
643
|
def process_regular_node(node); end
|
641
644
|
|
642
645
|
# @api public
|
643
646
|
# @private
|
644
647
|
#
|
645
|
-
# source://parser//lib/parser/ast/processor.rb#
|
648
|
+
# source://parser//lib/parser/ast/processor.rb#273
|
646
649
|
def process_var_asgn_node(node); end
|
647
650
|
|
648
651
|
# @api public
|
649
652
|
# @private
|
650
653
|
#
|
651
|
-
# source://parser//lib/parser/ast/processor.rb#
|
654
|
+
# source://parser//lib/parser/ast/processor.rb#265
|
652
655
|
def process_variable_node(node); end
|
653
656
|
end
|
654
657
|
|
@@ -656,44 +659,44 @@ end
|
|
656
659
|
#
|
657
660
|
# @api public
|
658
661
|
#
|
659
|
-
# source://parser//lib/parser/base.rb#
|
662
|
+
# source://parser//lib/parser/base.rb#19
|
660
663
|
class Parser::Base < ::Racc::Parser
|
661
664
|
# @api public
|
662
665
|
# @param builder [Parser::Builders::Default] The AST builder to use.
|
663
666
|
# @return [Base] a new instance of Base
|
664
667
|
#
|
665
|
-
# source://parser//lib/parser/base.rb#
|
668
|
+
# source://parser//lib/parser/base.rb#129
|
666
669
|
def initialize(builder = T.unsafe(nil)); end
|
667
670
|
|
668
671
|
# @api public
|
669
672
|
#
|
670
|
-
# source://parser//lib/parser/base.rb#
|
673
|
+
# source://parser//lib/parser/base.rb#117
|
671
674
|
def builder; end
|
672
675
|
|
673
676
|
# @api public
|
674
677
|
#
|
675
|
-
# source://parser//lib/parser/base.rb#
|
678
|
+
# source://parser//lib/parser/base.rb#120
|
676
679
|
def context; end
|
677
680
|
|
678
681
|
# @api public
|
679
682
|
#
|
680
|
-
# source://parser//lib/parser/base.rb#
|
683
|
+
# source://parser//lib/parser/base.rb#122
|
681
684
|
def current_arg_stack; end
|
682
685
|
|
683
686
|
# @api public
|
684
687
|
# @return [Parser::Diagnostic::Engine]
|
685
688
|
#
|
686
|
-
# source://parser//lib/parser/base.rb#
|
689
|
+
# source://parser//lib/parser/base.rb#116
|
687
690
|
def diagnostics; end
|
688
691
|
|
689
692
|
# @api public
|
690
693
|
#
|
691
|
-
# source://parser//lib/parser/base.rb#
|
694
|
+
# source://parser//lib/parser/base.rb#115
|
692
695
|
def lexer; end
|
693
696
|
|
694
697
|
# @api public
|
695
698
|
#
|
696
|
-
# source://parser//lib/parser/base.rb#
|
699
|
+
# source://parser//lib/parser/base.rb#121
|
697
700
|
def max_numparam_stack; end
|
698
701
|
|
699
702
|
# Parses a source buffer and returns the AST, or `nil` in case of a non fatal error.
|
@@ -702,7 +705,7 @@ class Parser::Base < ::Racc::Parser
|
|
702
705
|
# @param source_buffer [Parser::Source::Buffer] The source buffer to parse.
|
703
706
|
# @return [Parser::AST::Node, nil]
|
704
707
|
#
|
705
|
-
# source://parser//lib/parser/base.rb#
|
708
|
+
# source://parser//lib/parser/base.rb#189
|
706
709
|
def parse(source_buffer); end
|
707
710
|
|
708
711
|
# Parses a source buffer and returns the AST and the source code comments.
|
@@ -712,35 +715,35 @@ class Parser::Base < ::Racc::Parser
|
|
712
715
|
# @see #parse
|
713
716
|
# @see Parser::Source::Comment#associate
|
714
717
|
#
|
715
|
-
# source://parser//lib/parser/base.rb#
|
718
|
+
# source://parser//lib/parser/base.rb#207
|
716
719
|
def parse_with_comments(source_buffer); end
|
717
720
|
|
718
721
|
# @api public
|
719
722
|
#
|
720
|
-
# source://parser//lib/parser/base.rb#
|
723
|
+
# source://parser//lib/parser/base.rb#124
|
721
724
|
def pattern_hash_keys; end
|
722
725
|
|
723
726
|
# @api public
|
724
727
|
#
|
725
|
-
# source://parser//lib/parser/base.rb#
|
728
|
+
# source://parser//lib/parser/base.rb#123
|
726
729
|
def pattern_variables; end
|
727
730
|
|
728
731
|
# Resets the state of the parser.
|
729
732
|
#
|
730
733
|
# @api public
|
731
734
|
#
|
732
|
-
# source://parser//lib/parser/base.rb#
|
735
|
+
# source://parser//lib/parser/base.rb#170
|
733
736
|
def reset; end
|
734
737
|
|
735
738
|
# @api public
|
736
739
|
#
|
737
|
-
# source://parser//lib/parser/base.rb#
|
740
|
+
# source://parser//lib/parser/base.rb#119
|
738
741
|
def source_buffer; end
|
739
742
|
|
740
743
|
# @api public
|
741
744
|
# @return [Parser::StaticEnvironment]
|
742
745
|
#
|
743
|
-
# source://parser//lib/parser/base.rb#
|
746
|
+
# source://parser//lib/parser/base.rb#118
|
744
747
|
def static_env; end
|
745
748
|
|
746
749
|
# Parses a source buffer and returns the AST, the source code comments,
|
@@ -764,36 +767,36 @@ class Parser::Base < ::Racc::Parser
|
|
764
767
|
# @param recover [Boolean] If true, recover from syntax errors. False by default.
|
765
768
|
# @return [Array]
|
766
769
|
#
|
767
|
-
# source://parser//lib/parser/base.rb#
|
770
|
+
# source://parser//lib/parser/base.rb#236
|
768
771
|
def tokenize(source_buffer, recover = T.unsafe(nil)); end
|
769
772
|
|
770
773
|
private
|
771
774
|
|
772
775
|
# @api public
|
773
776
|
#
|
774
|
-
# source://parser//lib/parser/base.rb#
|
777
|
+
# source://parser//lib/parser/base.rb#260
|
775
778
|
def check_kwarg_name(name_t); end
|
776
779
|
|
777
780
|
# @api public
|
778
781
|
#
|
779
|
-
# source://parser//lib/parser/base.rb#
|
782
|
+
# source://parser//lib/parser/base.rb#269
|
780
783
|
def diagnostic(level, reason, arguments, location_t, highlights_ts = T.unsafe(nil)); end
|
781
784
|
|
782
785
|
# @api public
|
783
786
|
#
|
784
|
-
# source://parser//lib/parser/base.rb#
|
787
|
+
# source://parser//lib/parser/base.rb#254
|
785
788
|
def next_token; end
|
786
789
|
|
787
790
|
# @api public
|
788
791
|
#
|
789
|
-
# source://parser//lib/parser/base.rb#
|
792
|
+
# source://parser//lib/parser/base.rb#285
|
790
793
|
def on_error(error_token_id, error_value, value_stack); end
|
791
794
|
|
792
795
|
class << self
|
793
796
|
# @api public
|
794
797
|
# @return [Parser::Base] parser with the default options set.
|
795
798
|
#
|
796
|
-
# source://parser//lib/parser/base.rb#
|
799
|
+
# source://parser//lib/parser/base.rb#87
|
797
800
|
def default_parser; end
|
798
801
|
|
799
802
|
# Parses a string of Ruby code and returns the AST. If the source
|
@@ -808,7 +811,7 @@ class Parser::Base < ::Racc::Parser
|
|
808
811
|
# @param line [Numeric] The initial line number.
|
809
812
|
# @return [Parser::AST::Node]
|
810
813
|
#
|
811
|
-
# source://parser//lib/parser/base.rb#
|
814
|
+
# source://parser//lib/parser/base.rb#33
|
812
815
|
def parse(string, file = T.unsafe(nil), line = T.unsafe(nil)); end
|
813
816
|
|
814
817
|
# Parses Ruby source code by reading it from a file. If the source
|
@@ -820,7 +823,7 @@ class Parser::Base < ::Racc::Parser
|
|
820
823
|
# @return [Parser::AST::Node]
|
821
824
|
# @see #parse
|
822
825
|
#
|
823
|
-
# source://parser//lib/parser/base.rb#
|
826
|
+
# source://parser//lib/parser/base.rb#67
|
824
827
|
def parse_file(filename); end
|
825
828
|
|
826
829
|
# Parses Ruby source code by reading it from a file and returns the AST and
|
@@ -832,7 +835,7 @@ class Parser::Base < ::Racc::Parser
|
|
832
835
|
# @return [Array]
|
833
836
|
# @see #parse
|
834
837
|
#
|
835
|
-
# source://parser//lib/parser/base.rb#
|
838
|
+
# source://parser//lib/parser/base.rb#80
|
836
839
|
def parse_file_with_comments(filename); end
|
837
840
|
|
838
841
|
# Parses a string of Ruby code and returns the AST and comments. If the
|
@@ -847,21 +850,21 @@ class Parser::Base < ::Racc::Parser
|
|
847
850
|
# @param line [Numeric] The initial line number.
|
848
851
|
# @return [Array]
|
849
852
|
#
|
850
|
-
# source://parser//lib/parser/base.rb#
|
853
|
+
# source://parser//lib/parser/base.rb#52
|
851
854
|
def parse_with_comments(string, file = T.unsafe(nil), line = T.unsafe(nil)); end
|
852
855
|
|
853
856
|
private
|
854
857
|
|
855
858
|
# @api public
|
856
859
|
#
|
857
|
-
# source://parser//lib/parser/base.rb#
|
860
|
+
# source://parser//lib/parser/base.rb#100
|
858
861
|
def setup_source_buffer(file, line, string, encoding); end
|
859
862
|
end
|
860
863
|
end
|
861
864
|
|
862
865
|
# @api public
|
863
866
|
#
|
864
|
-
# source://parser//lib/parser.rb#
|
867
|
+
# source://parser//lib/parser.rb#78
|
865
868
|
module Parser::Builders; end
|
866
869
|
|
867
870
|
# source://parser//lib/parser/builders/default.rb#8
|
@@ -896,7 +899,7 @@ class Parser::Builders::Default
|
|
896
899
|
# source://parser//lib/parser/builders/default.rb#440
|
897
900
|
def array(begin_t, elements, end_t); end
|
898
901
|
|
899
|
-
# source://parser//lib/parser/builders/default.rb#
|
902
|
+
# source://parser//lib/parser/builders/default.rb#1598
|
900
903
|
def array_pattern(lbrack_t, elements, rbrack_t); end
|
901
904
|
|
902
905
|
# source://parser//lib/parser/builders/default.rb#767
|
@@ -908,28 +911,28 @@ class Parser::Builders::Default
|
|
908
911
|
# source://parser//lib/parser/builders/default.rb#540
|
909
912
|
def associate(begin_t, pairs, end_t); end
|
910
913
|
|
911
|
-
# source://parser//lib/parser/builders/default.rb#
|
914
|
+
# source://parser//lib/parser/builders/default.rb#1175
|
912
915
|
def attr_asgn(receiver, dot_t, selector_t); end
|
913
916
|
|
914
917
|
# source://parser//lib/parser/builders/default.rb#612
|
915
918
|
def back_ref(token); end
|
916
919
|
|
917
|
-
# source://parser//lib/parser/builders/default.rb#
|
920
|
+
# source://parser//lib/parser/builders/default.rb#1443
|
918
921
|
def begin(begin_t, body, end_t); end
|
919
922
|
|
920
|
-
# source://parser//lib/parser/builders/default.rb#
|
923
|
+
# source://parser//lib/parser/builders/default.rb#1385
|
921
924
|
def begin_body(compound_stmt, rescue_bodies = T.unsafe(nil), else_t = T.unsafe(nil), else_ = T.unsafe(nil), ensure_t = T.unsafe(nil), ensure_ = T.unsafe(nil)); end
|
922
925
|
|
923
|
-
# source://parser//lib/parser/builders/default.rb#
|
926
|
+
# source://parser//lib/parser/builders/default.rb#1461
|
924
927
|
def begin_keyword(begin_t, body, end_t); end
|
925
928
|
|
926
|
-
# source://parser//lib/parser/builders/default.rb#
|
929
|
+
# source://parser//lib/parser/builders/default.rb#1213
|
927
930
|
def binary_op(receiver, operator_t, arg); end
|
928
931
|
|
929
932
|
# source://parser//lib/parser/builders/default.rb#1122
|
930
933
|
def block(method_call, begin_t, args, body, end_t); end
|
931
934
|
|
932
|
-
# source://parser//lib/parser/builders/default.rb#
|
935
|
+
# source://parser//lib/parser/builders/default.rb#1161
|
933
936
|
def block_pass(amper_t, arg); end
|
934
937
|
|
935
938
|
# source://parser//lib/parser/builders/default.rb#982
|
@@ -947,10 +950,10 @@ class Parser::Builders::Default
|
|
947
950
|
# source://parser//lib/parser/builders/default.rb#1068
|
948
951
|
def call_type_for_dot(dot_t); end
|
949
952
|
|
950
|
-
# source://parser//lib/parser/builders/default.rb#
|
953
|
+
# source://parser//lib/parser/builders/default.rb#1318
|
951
954
|
def case(case_t, expr, when_bodies, else_t, else_body, end_t); end
|
952
955
|
|
953
|
-
# source://parser//lib/parser/builders/default.rb#
|
956
|
+
# source://parser//lib/parser/builders/default.rb#1481
|
954
957
|
def case_match(case_t, expr, in_bodies, else_t, else_body, end_t); end
|
955
958
|
|
956
959
|
# source://parser//lib/parser/builders/default.rb#343
|
@@ -959,13 +962,13 @@ class Parser::Builders::Default
|
|
959
962
|
# source://parser//lib/parser/builders/default.rb#284
|
960
963
|
def complex(complex_t); end
|
961
964
|
|
962
|
-
# source://parser//lib/parser/builders/default.rb#
|
965
|
+
# source://parser//lib/parser/builders/default.rb#1431
|
963
966
|
def compstmt(statements); end
|
964
967
|
|
965
|
-
# source://parser//lib/parser/builders/default.rb#
|
968
|
+
# source://parser//lib/parser/builders/default.rb#1294
|
966
969
|
def condition(cond_t, cond, then_t, if_true, else_t, if_false, end_t); end
|
967
970
|
|
968
|
-
# source://parser//lib/parser/builders/default.rb#
|
971
|
+
# source://parser//lib/parser/builders/default.rb#1300
|
969
972
|
def condition_mod(if_true, if_false, cond_t, cond); end
|
970
973
|
|
971
974
|
# source://parser//lib/parser/builders/default.rb#686
|
@@ -980,7 +983,7 @@ class Parser::Builders::Default
|
|
980
983
|
# source://parser//lib/parser/builders/default.rb#763
|
981
984
|
def const_op_assignable(node); end
|
982
985
|
|
983
|
-
# source://parser//lib/parser/builders/default.rb#
|
986
|
+
# source://parser//lib/parser/builders/default.rb#1628
|
984
987
|
def const_pattern(const, ldelim_t, pattern, rdelim_t); end
|
985
988
|
|
986
989
|
# source://parser//lib/parser/builders/default.rb#607
|
@@ -1019,13 +1022,13 @@ class Parser::Builders::Default
|
|
1019
1022
|
# source://parser//lib/parser/builders/default.rb#265
|
1020
1023
|
def false(false_t); end
|
1021
1024
|
|
1022
|
-
# source://parser//lib/parser/builders/default.rb#
|
1025
|
+
# source://parser//lib/parser/builders/default.rb#1619
|
1023
1026
|
def find_pattern(lbrack_t, elements, rbrack_t); end
|
1024
1027
|
|
1025
1028
|
# source://parser//lib/parser/builders/default.rb#276
|
1026
1029
|
def float(float_t); end
|
1027
1030
|
|
1028
|
-
# source://parser//lib/parser/builders/default.rb#
|
1031
|
+
# source://parser//lib/parser/builders/default.rb#1339
|
1029
1032
|
def for(for_t, iterator, in_t, iteratee, do_t, body, end_t); end
|
1030
1033
|
|
1031
1034
|
# source://parser//lib/parser/builders/default.rb#913
|
@@ -1046,25 +1049,25 @@ class Parser::Builders::Default
|
|
1046
1049
|
# source://parser//lib/parser/builders/default.rb#596
|
1047
1050
|
def gvar(token); end
|
1048
1051
|
|
1049
|
-
# source://parser//lib/parser/builders/default.rb#
|
1052
|
+
# source://parser//lib/parser/builders/default.rb#1592
|
1050
1053
|
def hash_pattern(lbrace_t, kwargs, rbrace_t); end
|
1051
1054
|
|
1052
1055
|
# source://parser//lib/parser/builders/default.rb#586
|
1053
1056
|
def ident(token); end
|
1054
1057
|
|
1055
|
-
# source://parser//lib/parser/builders/default.rb#
|
1058
|
+
# source://parser//lib/parser/builders/default.rb#1508
|
1056
1059
|
def if_guard(if_t, if_body); end
|
1057
1060
|
|
1058
|
-
# source://parser//lib/parser/builders/default.rb#
|
1061
|
+
# source://parser//lib/parser/builders/default.rb#1487
|
1059
1062
|
def in_match(lhs, in_t, rhs); end
|
1060
1063
|
|
1061
|
-
# source://parser//lib/parser/builders/default.rb#
|
1064
|
+
# source://parser//lib/parser/builders/default.rb#1502
|
1062
1065
|
def in_pattern(in_t, pattern, guard, then_t, body); end
|
1063
1066
|
|
1064
|
-
# source://parser//lib/parser/builders/default.rb#
|
1067
|
+
# source://parser//lib/parser/builders/default.rb#1184
|
1065
1068
|
def index(receiver, lbrack_t, indexes, rbrack_t); end
|
1066
1069
|
|
1067
|
-
# source://parser//lib/parser/builders/default.rb#
|
1070
|
+
# source://parser//lib/parser/builders/default.rb#1198
|
1068
1071
|
def index_asgn(receiver, lbrack_t, indexes, rbrack_t); end
|
1069
1072
|
|
1070
1073
|
# source://parser//lib/parser/builders/default.rb#272
|
@@ -1073,7 +1076,7 @@ class Parser::Builders::Default
|
|
1073
1076
|
# source://parser//lib/parser/builders/default.rb#591
|
1074
1077
|
def ivar(token); end
|
1075
1078
|
|
1076
|
-
# source://parser//lib/parser/builders/default.rb#
|
1079
|
+
# source://parser//lib/parser/builders/default.rb#1347
|
1077
1080
|
def keyword_cmd(type, keyword_t, lparen_t = T.unsafe(nil), args = T.unsafe(nil), rparen_t = T.unsafe(nil)); end
|
1078
1081
|
|
1079
1082
|
# source://parser//lib/parser/builders/default.rb#944
|
@@ -1091,52 +1094,52 @@ class Parser::Builders::Default
|
|
1091
1094
|
# source://parser//lib/parser/builders/default.rb#535
|
1092
1095
|
def kwsplat(dstar_t, arg); end
|
1093
1096
|
|
1094
|
-
# source://parser//lib/parser/builders/default.rb#
|
1097
|
+
# source://parser//lib/parser/builders/default.rb#1287
|
1095
1098
|
def logical_op(type, lhs, op_t, rhs); end
|
1096
1099
|
|
1097
|
-
# source://parser//lib/parser/builders/default.rb#
|
1100
|
+
# source://parser//lib/parser/builders/default.rb#1325
|
1098
1101
|
def loop(type, keyword_t, cond, do_t, body, end_t); end
|
1099
1102
|
|
1100
|
-
# source://parser//lib/parser/builders/default.rb#
|
1103
|
+
# source://parser//lib/parser/builders/default.rb#1330
|
1101
1104
|
def loop_mod(type, body, keyword_t, cond); end
|
1102
1105
|
|
1103
|
-
# source://parser//lib/parser/builders/default.rb#
|
1106
|
+
# source://parser//lib/parser/builders/default.rb#1642
|
1104
1107
|
def match_alt(left, pipe_t, right); end
|
1105
1108
|
|
1106
|
-
# source://parser//lib/parser/builders/default.rb#
|
1109
|
+
# source://parser//lib/parser/builders/default.rb#1649
|
1107
1110
|
def match_as(value, assoc_t, as); end
|
1108
1111
|
|
1109
|
-
# source://parser//lib/parser/builders/default.rb#
|
1112
|
+
# source://parser//lib/parser/builders/default.rb#1528
|
1110
1113
|
def match_hash_var(name_t); end
|
1111
1114
|
|
1112
|
-
# source://parser//lib/parser/builders/default.rb#
|
1115
|
+
# source://parser//lib/parser/builders/default.rb#1542
|
1113
1116
|
def match_hash_var_from_str(begin_t, strings, end_t); end
|
1114
1117
|
|
1115
|
-
# source://parser//lib/parser/builders/default.rb#
|
1118
|
+
# source://parser//lib/parser/builders/default.rb#1680
|
1116
1119
|
def match_label(label_type, label); end
|
1117
1120
|
|
1118
|
-
# source://parser//lib/parser/builders/default.rb#
|
1121
|
+
# source://parser//lib/parser/builders/default.rb#1656
|
1119
1122
|
def match_nil_pattern(dstar_t, nil_t); end
|
1120
1123
|
|
1121
|
-
# source://parser//lib/parser/builders/default.rb#
|
1124
|
+
# source://parser//lib/parser/builders/default.rb#1235
|
1122
1125
|
def match_op(receiver, match_t, arg); end
|
1123
1126
|
|
1124
|
-
# source://parser//lib/parser/builders/default.rb#
|
1127
|
+
# source://parser//lib/parser/builders/default.rb#1661
|
1125
1128
|
def match_pair(label_type, label, value); end
|
1126
1129
|
|
1127
|
-
# source://parser//lib/parser/builders/default.rb#
|
1130
|
+
# source://parser//lib/parser/builders/default.rb#1492
|
1128
1131
|
def match_pattern(lhs, match_t, rhs); end
|
1129
1132
|
|
1130
|
-
# source://parser//lib/parser/builders/default.rb#
|
1133
|
+
# source://parser//lib/parser/builders/default.rb#1497
|
1131
1134
|
def match_pattern_p(lhs, match_t, rhs); end
|
1132
1135
|
|
1133
|
-
# source://parser//lib/parser/builders/default.rb#
|
1136
|
+
# source://parser//lib/parser/builders/default.rb#1581
|
1134
1137
|
def match_rest(star_t, name_t = T.unsafe(nil)); end
|
1135
1138
|
|
1136
|
-
# source://parser//lib/parser/builders/default.rb#
|
1139
|
+
# source://parser//lib/parser/builders/default.rb#1516
|
1137
1140
|
def match_var(name_t); end
|
1138
1141
|
|
1139
|
-
# source://parser//lib/parser/builders/default.rb#
|
1142
|
+
# source://parser//lib/parser/builders/default.rb#1624
|
1140
1143
|
def match_with_trailing_comma(match, comma_t); end
|
1141
1144
|
|
1142
1145
|
# source://parser//lib/parser/builders/default.rb#805
|
@@ -1148,7 +1151,7 @@ class Parser::Builders::Default
|
|
1148
1151
|
# source://parser//lib/parser/builders/default.rb#255
|
1149
1152
|
def nil(nil_t); end
|
1150
1153
|
|
1151
|
-
# source://parser//lib/parser/builders/default.rb#
|
1154
|
+
# source://parser//lib/parser/builders/default.rb#1263
|
1152
1155
|
def not_op(not_t, begin_t = T.unsafe(nil), receiver = T.unsafe(nil), end_t = T.unsafe(nil)); end
|
1153
1156
|
|
1154
1157
|
# source://parser//lib/parser/builders/default.rb#617
|
@@ -1163,7 +1166,7 @@ class Parser::Builders::Default
|
|
1163
1166
|
# source://parser//lib/parser/builders/default.rb#1052
|
1164
1167
|
def objc_restarg(star_t, name = T.unsafe(nil)); end
|
1165
1168
|
|
1166
|
-
# source://parser//lib/parser/builders/default.rb#
|
1169
|
+
# source://parser//lib/parser/builders/default.rb#1166
|
1167
1170
|
def objc_varargs(pair, rest_of_varargs); end
|
1168
1171
|
|
1169
1172
|
# source://parser//lib/parser/builders/default.rb#774
|
@@ -1193,13 +1196,13 @@ class Parser::Builders::Default
|
|
1193
1196
|
# source://parser//lib/parser/builders/default.rb#225
|
1194
1197
|
def parser=(_arg0); end
|
1195
1198
|
|
1196
|
-
# source://parser//lib/parser/builders/default.rb#
|
1199
|
+
# source://parser//lib/parser/builders/default.rb#1637
|
1197
1200
|
def pin(pin_t, var); end
|
1198
1201
|
|
1199
|
-
# source://parser//lib/parser/builders/default.rb#
|
1202
|
+
# source://parser//lib/parser/builders/default.rb#1370
|
1200
1203
|
def postexe(postexe_t, lbrace_t, compstmt, rbrace_t); end
|
1201
1204
|
|
1202
|
-
# source://parser//lib/parser/builders/default.rb#
|
1205
|
+
# source://parser//lib/parser/builders/default.rb#1365
|
1203
1206
|
def preexe(preexe_t, lbrace_t, compstmt, rbrace_t); end
|
1204
1207
|
|
1205
1208
|
# source://parser//lib/parser/builders/default.rb#992
|
@@ -1220,7 +1223,7 @@ class Parser::Builders::Default
|
|
1220
1223
|
# source://parser//lib/parser/builders/default.rb#417
|
1221
1224
|
def regexp_options(regopt_t); end
|
1222
1225
|
|
1223
|
-
# source://parser//lib/parser/builders/default.rb#
|
1226
|
+
# source://parser//lib/parser/builders/default.rb#1377
|
1224
1227
|
def rescue_body(rescue_t, exc_list, assoc_t, exc_var, then_t, compound_stmt); end
|
1225
1228
|
|
1226
1229
|
# source://parser//lib/parser/builders/default.rb#933
|
@@ -1259,7 +1262,7 @@ class Parser::Builders::Default
|
|
1259
1262
|
# source://parser//lib/parser/builders/default.rb#469
|
1260
1263
|
def symbols_compose(begin_t, parts, end_t); end
|
1261
1264
|
|
1262
|
-
# source://parser//lib/parser/builders/default.rb#
|
1265
|
+
# source://parser//lib/parser/builders/default.rb#1305
|
1263
1266
|
def ternary(cond, question_t, if_true, colon_t, if_false); end
|
1264
1267
|
|
1265
1268
|
# source://parser//lib/parser/builders/default.rb#260
|
@@ -1268,16 +1271,16 @@ class Parser::Builders::Default
|
|
1268
1271
|
# source://parser//lib/parser/builders/default.rb#294
|
1269
1272
|
def unary_num(unary_t, numeric); end
|
1270
1273
|
|
1271
|
-
# source://parser//lib/parser/builders/default.rb#
|
1274
|
+
# source://parser//lib/parser/builders/default.rb#1251
|
1272
1275
|
def unary_op(op_t, receiver); end
|
1273
1276
|
|
1274
1277
|
# source://parser//lib/parser/builders/default.rb#873
|
1275
1278
|
def undef_method(undef_t, names); end
|
1276
1279
|
|
1277
|
-
# source://parser//lib/parser/builders/default.rb#
|
1280
|
+
# source://parser//lib/parser/builders/default.rb#1512
|
1278
1281
|
def unless_guard(unless_t, unless_body); end
|
1279
1282
|
|
1280
|
-
# source://parser//lib/parser/builders/default.rb#
|
1283
|
+
# source://parser//lib/parser/builders/default.rb#1312
|
1281
1284
|
def when(when_t, patterns, then_t, body); end
|
1282
1285
|
|
1283
1286
|
# source://parser//lib/parser/builders/default.rb#455
|
@@ -1291,184 +1294,184 @@ class Parser::Builders::Default
|
|
1291
1294
|
|
1292
1295
|
private
|
1293
1296
|
|
1294
|
-
# source://parser//lib/parser/builders/default.rb#
|
1297
|
+
# source://parser//lib/parser/builders/default.rb#1829
|
1295
1298
|
def arg_name_collides?(this_name, that_name); end
|
1296
1299
|
|
1297
|
-
# source://parser//lib/parser/builders/default.rb#
|
1300
|
+
# source://parser//lib/parser/builders/default.rb#2025
|
1298
1301
|
def arg_prefix_map(op_t, name_t = T.unsafe(nil)); end
|
1299
1302
|
|
1300
|
-
# source://parser//lib/parser/builders/default.rb#
|
1303
|
+
# source://parser//lib/parser/builders/default.rb#1999
|
1301
1304
|
def binary_op_map(left_e, op_t, right_e); end
|
1302
1305
|
|
1303
|
-
# source://parser//lib/parser/builders/default.rb#
|
1306
|
+
# source://parser//lib/parser/builders/default.rb#2127
|
1304
1307
|
def block_map(receiver_l, begin_t, end_t); end
|
1305
1308
|
|
1306
|
-
# source://parser//lib/parser/builders/default.rb#
|
1309
|
+
# source://parser//lib/parser/builders/default.rb#1804
|
1307
1310
|
def check_assignment_to_numparam(name, loc); end
|
1308
1311
|
|
1309
|
-
# source://parser//lib/parser/builders/default.rb#
|
1312
|
+
# source://parser//lib/parser/builders/default.rb#1696
|
1310
1313
|
def check_condition(cond); end
|
1311
1314
|
|
1312
|
-
# source://parser//lib/parser/builders/default.rb#
|
1315
|
+
# source://parser//lib/parser/builders/default.rb#1775
|
1313
1316
|
def check_duplicate_arg(this_arg, map = T.unsafe(nil)); end
|
1314
1317
|
|
1315
|
-
# source://parser//lib/parser/builders/default.rb#
|
1318
|
+
# source://parser//lib/parser/builders/default.rb#1750
|
1316
1319
|
def check_duplicate_args(args, map = T.unsafe(nil)); end
|
1317
1320
|
|
1318
|
-
# source://parser//lib/parser/builders/default.rb#
|
1321
|
+
# source://parser//lib/parser/builders/default.rb#1862
|
1319
1322
|
def check_duplicate_pattern_key(name, loc); end
|
1320
1323
|
|
1321
|
-
# source://parser//lib/parser/builders/default.rb#
|
1324
|
+
# source://parser//lib/parser/builders/default.rb#1852
|
1322
1325
|
def check_duplicate_pattern_variable(name, loc); end
|
1323
1326
|
|
1324
|
-
# source://parser//lib/parser/builders/default.rb#
|
1327
|
+
# source://parser//lib/parser/builders/default.rb#1844
|
1325
1328
|
def check_lvar_name(name, loc); end
|
1326
1329
|
|
1327
|
-
# source://parser//lib/parser/builders/default.rb#
|
1330
|
+
# source://parser//lib/parser/builders/default.rb#1819
|
1328
1331
|
def check_reserved_for_numparam(name, loc); end
|
1329
1332
|
|
1330
|
-
# source://parser//lib/parser/builders/default.rb#
|
1333
|
+
# source://parser//lib/parser/builders/default.rb#2293
|
1331
1334
|
def collapse_string_parts?(parts); end
|
1332
1335
|
|
1333
|
-
# source://parser//lib/parser/builders/default.rb#
|
1336
|
+
# source://parser//lib/parser/builders/default.rb#1950
|
1334
1337
|
def collection_map(begin_t, parts, end_t); end
|
1335
1338
|
|
1336
|
-
# source://parser//lib/parser/builders/default.rb#
|
1339
|
+
# source://parser//lib/parser/builders/default.rb#2154
|
1337
1340
|
def condition_map(keyword_t, cond_e, begin_t, body_e, else_t, else_e, end_t); end
|
1338
1341
|
|
1339
|
-
# source://parser//lib/parser/builders/default.rb#
|
1342
|
+
# source://parser//lib/parser/builders/default.rb#1985
|
1340
1343
|
def constant_map(scope, colon2_t, name_t); end
|
1341
1344
|
|
1342
|
-
# source://parser//lib/parser/builders/default.rb#
|
1345
|
+
# source://parser//lib/parser/builders/default.rb#2058
|
1343
1346
|
def definition_map(keyword_t, operator_t, name_t, end_t); end
|
1344
1347
|
|
1345
|
-
# source://parser//lib/parser/builders/default.rb#
|
1348
|
+
# source://parser//lib/parser/builders/default.rb#1891
|
1346
1349
|
def delimited_string_map(string_t); end
|
1347
1350
|
|
1348
|
-
# source://parser//lib/parser/builders/default.rb#
|
1351
|
+
# source://parser//lib/parser/builders/default.rb#2315
|
1349
1352
|
def diagnostic(type, reason, arguments, location, highlights = T.unsafe(nil)); end
|
1350
1353
|
|
1351
|
-
# source://parser//lib/parser/builders/default.rb#
|
1354
|
+
# source://parser//lib/parser/builders/default.rb#2198
|
1352
1355
|
def eh_keyword_map(compstmt_e, keyword_t, body_es, else_t, else_e); end
|
1353
1356
|
|
1354
|
-
# source://parser//lib/parser/builders/default.rb#
|
1357
|
+
# source://parser//lib/parser/builders/default.rb#2064
|
1355
1358
|
def endless_definition_map(keyword_t, operator_t, name_t, assignment_t, body_e); end
|
1356
1359
|
|
1357
|
-
# source://parser//lib/parser/builders/default.rb#
|
1360
|
+
# source://parser//lib/parser/builders/default.rb#1946
|
1358
1361
|
def expr_map(loc); end
|
1359
1362
|
|
1360
|
-
# source://parser//lib/parser/builders/default.rb#
|
1363
|
+
# source://parser//lib/parser/builders/default.rb#2179
|
1361
1364
|
def for_map(keyword_t, in_t, begin_t, end_t); end
|
1362
1365
|
|
1363
|
-
# source://parser//lib/parser/builders/default.rb#
|
1366
|
+
# source://parser//lib/parser/builders/default.rb#2226
|
1364
1367
|
def guard_map(keyword_t, guard_body_e); end
|
1365
1368
|
|
1366
|
-
# source://parser//lib/parser/builders/default.rb#
|
1369
|
+
# source://parser//lib/parser/builders/default.rb#2116
|
1367
1370
|
def index_map(receiver_e, lbrack_t, rbrack_t); end
|
1368
1371
|
|
1369
|
-
# source://parser//lib/parser/builders/default.rb#
|
1372
|
+
# source://parser//lib/parser/builders/default.rb#1882
|
1370
1373
|
def join_exprs(left_expr, right_expr); end
|
1371
1374
|
|
1372
|
-
# source://parser//lib/parser/builders/default.rb#
|
1375
|
+
# source://parser//lib/parser/builders/default.rb#2132
|
1373
1376
|
def keyword_map(keyword_t, begin_t, args, end_t); end
|
1374
1377
|
|
1375
|
-
# source://parser//lib/parser/builders/default.rb#
|
1378
|
+
# source://parser//lib/parser/builders/default.rb#2149
|
1376
1379
|
def keyword_mod_map(pre_e, keyword_t, post_e); end
|
1377
1380
|
|
1378
|
-
# source://parser//lib/parser/builders/default.rb#
|
1381
|
+
# source://parser//lib/parser/builders/default.rb#2035
|
1379
1382
|
def kwarg_map(name_t, value_e = T.unsafe(nil)); end
|
1380
1383
|
|
1381
|
-
# source://parser//lib/parser/builders/default.rb#
|
1384
|
+
# source://parser//lib/parser/builders/default.rb#2346
|
1382
1385
|
def kwargs?(node); end
|
1383
1386
|
|
1384
|
-
# source://parser//lib/parser/builders/default.rb#
|
1387
|
+
# source://parser//lib/parser/builders/default.rb#2310
|
1385
1388
|
def loc(token); end
|
1386
1389
|
|
1387
|
-
# source://parser//lib/parser/builders/default.rb#
|
1390
|
+
# source://parser//lib/parser/builders/default.rb#2048
|
1388
1391
|
def module_definition_map(keyword_t, name_e, operator_t, end_t); end
|
1389
1392
|
|
1390
|
-
# source://parser//lib/parser/builders/default.rb#
|
1393
|
+
# source://parser//lib/parser/builders/default.rb#1874
|
1391
1394
|
def n(type, children, source_map); end
|
1392
1395
|
|
1393
|
-
# source://parser//lib/parser/builders/default.rb#
|
1396
|
+
# source://parser//lib/parser/builders/default.rb#1878
|
1394
1397
|
def n0(type, source_map); end
|
1395
1398
|
|
1396
1399
|
# source://parser//lib/parser/builders/default.rb#288
|
1397
1400
|
def numeric(kind, token); end
|
1398
1401
|
|
1399
|
-
# source://parser//lib/parser/builders/default.rb#
|
1402
|
+
# source://parser//lib/parser/builders/default.rb#1916
|
1400
1403
|
def pair_keyword_map(key_t, value_e); end
|
1401
1404
|
|
1402
|
-
# source://parser//lib/parser/builders/default.rb#
|
1405
|
+
# source://parser//lib/parser/builders/default.rb#1931
|
1403
1406
|
def pair_quoted_map(begin_t, end_t, value_e); end
|
1404
1407
|
|
1405
|
-
# source://parser//lib/parser/builders/default.rb#
|
1408
|
+
# source://parser//lib/parser/builders/default.rb#1902
|
1406
1409
|
def prefix_string_map(symbol); end
|
1407
1410
|
|
1408
|
-
# source://parser//lib/parser/builders/default.rb#
|
1411
|
+
# source://parser//lib/parser/builders/default.rb#2013
|
1409
1412
|
def range_map(start_e, op_t, end_e); end
|
1410
1413
|
|
1411
|
-
# source://parser//lib/parser/builders/default.rb#
|
1414
|
+
# source://parser//lib/parser/builders/default.rb#1980
|
1412
1415
|
def regexp_map(begin_t, end_t, options_e); end
|
1413
1416
|
|
1414
|
-
# source://parser//lib/parser/builders/default.rb#
|
1417
|
+
# source://parser//lib/parser/builders/default.rb#2185
|
1415
1418
|
def rescue_body_map(keyword_t, exc_list_e, assoc_t, exc_var_e, then_t, compstmt_e); end
|
1416
1419
|
|
1417
|
-
# source://parser//lib/parser/builders/default.rb#
|
1420
|
+
# source://parser//lib/parser/builders/default.rb#2336
|
1418
1421
|
def rewrite_hash_args_to_kwargs(args); end
|
1419
1422
|
|
1420
|
-
# source://parser//lib/parser/builders/default.rb#
|
1423
|
+
# source://parser//lib/parser/builders/default.rb#2098
|
1421
1424
|
def send_binary_op_map(lhs_e, selector_t, rhs_e); end
|
1422
1425
|
|
1423
|
-
# source://parser//lib/parser/builders/default.rb#
|
1426
|
+
# source://parser//lib/parser/builders/default.rb#2121
|
1424
1427
|
def send_index_map(receiver_e, lbrack_t, rbrack_t); end
|
1425
1428
|
|
1426
|
-
# source://parser//lib/parser/builders/default.rb#
|
1429
|
+
# source://parser//lib/parser/builders/default.rb#2072
|
1427
1430
|
def send_map(receiver_e, dot_t, selector_t, begin_t = T.unsafe(nil), args = T.unsafe(nil), end_t = T.unsafe(nil)); end
|
1428
1431
|
|
1429
|
-
# source://parser//lib/parser/builders/default.rb#
|
1432
|
+
# source://parser//lib/parser/builders/default.rb#2104
|
1430
1433
|
def send_unary_op_map(selector_t, arg_e); end
|
1431
1434
|
|
1432
|
-
# source://parser//lib/parser/builders/default.rb#
|
1435
|
+
# source://parser//lib/parser/builders/default.rb#2257
|
1433
1436
|
def static_regexp(parts, options); end
|
1434
1437
|
|
1435
|
-
# source://parser//lib/parser/builders/default.rb#
|
1438
|
+
# source://parser//lib/parser/builders/default.rb#2282
|
1436
1439
|
def static_regexp_node(node); end
|
1437
1440
|
|
1438
|
-
# source://parser//lib/parser/builders/default.rb#
|
1441
|
+
# source://parser//lib/parser/builders/default.rb#2240
|
1439
1442
|
def static_string(nodes); end
|
1440
1443
|
|
1441
|
-
# source://parser//lib/parser/builders/default.rb#
|
1444
|
+
# source://parser//lib/parser/builders/default.rb#1966
|
1442
1445
|
def string_map(begin_t, parts, end_t); end
|
1443
1446
|
|
1444
|
-
# source://parser//lib/parser/builders/default.rb#
|
1447
|
+
# source://parser//lib/parser/builders/default.rb#2302
|
1445
1448
|
def string_value(token); end
|
1446
1449
|
|
1447
|
-
# source://parser//lib/parser/builders/default.rb#
|
1450
|
+
# source://parser//lib/parser/builders/default.rb#2174
|
1448
1451
|
def ternary_map(begin_e, question_t, mid_e, colon_t, end_e); end
|
1449
1452
|
|
1450
|
-
# source://parser//lib/parser/builders/default.rb#
|
1453
|
+
# source://parser//lib/parser/builders/default.rb#1887
|
1451
1454
|
def token_map(token); end
|
1452
1455
|
|
1453
|
-
# source://parser//lib/parser/builders/default.rb#
|
1456
|
+
# source://parser//lib/parser/builders/default.rb#2003
|
1454
1457
|
def unary_op_map(op_t, arg_e = T.unsafe(nil)); end
|
1455
1458
|
|
1456
|
-
# source://parser//lib/parser/builders/default.rb#
|
1459
|
+
# source://parser//lib/parser/builders/default.rb#1911
|
1457
1460
|
def unquoted_map(token); end
|
1458
1461
|
|
1459
|
-
# source://parser//lib/parser/builders/default.rb#
|
1462
|
+
# source://parser//lib/parser/builders/default.rb#2324
|
1460
1463
|
def validate_definee(definee); end
|
1461
1464
|
|
1462
|
-
# source://parser//lib/parser/builders/default.rb#
|
1465
|
+
# source://parser//lib/parser/builders/default.rb#1789
|
1463
1466
|
def validate_no_forward_arg_after_restarg(args); end
|
1464
1467
|
|
1465
|
-
# source://parser//lib/parser/builders/default.rb#
|
1468
|
+
# source://parser//lib/parser/builders/default.rb#2298
|
1466
1469
|
def value(token); end
|
1467
1470
|
|
1468
|
-
# source://parser//lib/parser/builders/default.rb#
|
1471
|
+
# source://parser//lib/parser/builders/default.rb#2092
|
1469
1472
|
def var_send_map(variable_e); end
|
1470
1473
|
|
1471
|
-
# source://parser//lib/parser/builders/default.rb#
|
1474
|
+
# source://parser//lib/parser/builders/default.rb#1995
|
1472
1475
|
def variable_map(name_t); end
|
1473
1476
|
|
1474
1477
|
class << self
|
@@ -1552,57 +1555,63 @@ class Parser::ClobberingError < ::RuntimeError; end
|
|
1552
1555
|
class Parser::Context
|
1553
1556
|
# @return [Context] a new instance of Context
|
1554
1557
|
#
|
1555
|
-
# source://parser//lib/parser/context.rb#
|
1558
|
+
# source://parser//lib/parser/context.rb#30
|
1556
1559
|
def initialize; end
|
1557
1560
|
|
1558
|
-
# source://parser//lib/parser/context.rb#
|
1561
|
+
# source://parser//lib/parser/context.rb#45
|
1562
|
+
def cant_return; end
|
1563
|
+
|
1564
|
+
# source://parser//lib/parser/context.rb#45
|
1565
|
+
def cant_return=(_arg0); end
|
1566
|
+
|
1567
|
+
# source://parser//lib/parser/context.rb#45
|
1559
1568
|
def in_argdef; end
|
1560
1569
|
|
1561
|
-
# source://parser//lib/parser/context.rb#
|
1570
|
+
# source://parser//lib/parser/context.rb#45
|
1562
1571
|
def in_argdef=(_arg0); end
|
1563
1572
|
|
1564
|
-
# source://parser//lib/parser/context.rb#
|
1573
|
+
# source://parser//lib/parser/context.rb#45
|
1565
1574
|
def in_block; end
|
1566
1575
|
|
1567
|
-
# source://parser//lib/parser/context.rb#
|
1576
|
+
# source://parser//lib/parser/context.rb#45
|
1568
1577
|
def in_block=(_arg0); end
|
1569
1578
|
|
1570
|
-
# source://parser//lib/parser/context.rb#
|
1579
|
+
# source://parser//lib/parser/context.rb#45
|
1571
1580
|
def in_class; end
|
1572
1581
|
|
1573
|
-
# source://parser//lib/parser/context.rb#
|
1582
|
+
# source://parser//lib/parser/context.rb#45
|
1574
1583
|
def in_class=(_arg0); end
|
1575
1584
|
|
1576
|
-
# source://parser//lib/parser/context.rb#
|
1585
|
+
# source://parser//lib/parser/context.rb#45
|
1577
1586
|
def in_def; end
|
1578
1587
|
|
1579
|
-
# source://parser//lib/parser/context.rb#
|
1588
|
+
# source://parser//lib/parser/context.rb#45
|
1580
1589
|
def in_def=(_arg0); end
|
1581
1590
|
|
1582
|
-
# source://parser//lib/parser/context.rb#
|
1591
|
+
# source://parser//lib/parser/context.rb#45
|
1583
1592
|
def in_defined; end
|
1584
1593
|
|
1585
|
-
# source://parser//lib/parser/context.rb#
|
1594
|
+
# source://parser//lib/parser/context.rb#45
|
1586
1595
|
def in_defined=(_arg0); end
|
1587
1596
|
|
1588
1597
|
# @return [Boolean]
|
1589
1598
|
#
|
1590
|
-
# source://parser//lib/parser/context.rb#
|
1599
|
+
# source://parser//lib/parser/context.rb#47
|
1591
1600
|
def in_dynamic_block?; end
|
1592
1601
|
|
1593
|
-
# source://parser//lib/parser/context.rb#
|
1602
|
+
# source://parser//lib/parser/context.rb#45
|
1594
1603
|
def in_kwarg; end
|
1595
1604
|
|
1596
|
-
# source://parser//lib/parser/context.rb#
|
1605
|
+
# source://parser//lib/parser/context.rb#45
|
1597
1606
|
def in_kwarg=(_arg0); end
|
1598
1607
|
|
1599
|
-
# source://parser//lib/parser/context.rb#
|
1608
|
+
# source://parser//lib/parser/context.rb#45
|
1600
1609
|
def in_lambda; end
|
1601
1610
|
|
1602
|
-
# source://parser//lib/parser/context.rb#
|
1611
|
+
# source://parser//lib/parser/context.rb#45
|
1603
1612
|
def in_lambda=(_arg0); end
|
1604
1613
|
|
1605
|
-
# source://parser//lib/parser/context.rb#
|
1614
|
+
# source://parser//lib/parser/context.rb#34
|
1606
1615
|
def reset; end
|
1607
1616
|
end
|
1608
1617
|
|
@@ -1907,7 +1916,7 @@ class Parser::Lexer
|
|
1907
1916
|
|
1908
1917
|
# Return next token: [type, value].
|
1909
1918
|
#
|
1910
|
-
# source://parser//lib/parser/lexer-F1.rb#
|
1919
|
+
# source://parser//lib/parser/lexer-F1.rb#8419
|
1911
1920
|
def advance; end
|
1912
1921
|
|
1913
1922
|
# Returns the value of attribute cmdarg.
|
@@ -1968,6 +1977,9 @@ class Parser::Lexer
|
|
1968
1977
|
# source://parser//lib/parser/lexer-F1.rb#8248
|
1969
1978
|
def cond_stack; end
|
1970
1979
|
|
1980
|
+
# source://parser//lib/parser/lexer-F1.rb#8281
|
1981
|
+
def construct_float(chars); end
|
1982
|
+
|
1971
1983
|
# Returns the value of attribute context.
|
1972
1984
|
#
|
1973
1985
|
# source://parser//lib/parser/lexer-F1.rb#8244
|
@@ -1980,7 +1992,7 @@ class Parser::Lexer
|
|
1980
1992
|
# source://parser//lib/parser/lexer-F1.rb#8244
|
1981
1993
|
def context=(_arg0); end
|
1982
1994
|
|
1983
|
-
# source://parser//lib/parser/lexer-F1.rb#
|
1995
|
+
# source://parser//lib/parser/lexer-F1.rb#8414
|
1984
1996
|
def dedent_level; end
|
1985
1997
|
|
1986
1998
|
# Returns the value of attribute diagnostics.
|
@@ -1995,7 +2007,7 @@ class Parser::Lexer
|
|
1995
2007
|
# source://parser//lib/parser/lexer-F1.rb#8240
|
1996
2008
|
def diagnostics=(_arg0); end
|
1997
2009
|
|
1998
|
-
# source://parser//lib/parser/lexer-F1.rb#
|
2010
|
+
# source://parser//lib/parser/lexer-F1.rb#8367
|
1999
2011
|
def encoding; end
|
2000
2012
|
|
2001
2013
|
# Returns the value of attribute force_utf32.
|
@@ -2020,19 +2032,19 @@ class Parser::Lexer
|
|
2020
2032
|
# source://parser//lib/parser/lexer-F1.rb#8248
|
2021
2033
|
def paren_nest; end
|
2022
2034
|
|
2023
|
-
# source://parser//lib/parser/lexer-F1.rb#
|
2035
|
+
# source://parser//lib/parser/lexer-F1.rb#8401
|
2024
2036
|
def pop_cmdarg; end
|
2025
2037
|
|
2026
|
-
# source://parser//lib/parser/lexer-F1.rb#
|
2038
|
+
# source://parser//lib/parser/lexer-F1.rb#8410
|
2027
2039
|
def pop_cond; end
|
2028
2040
|
|
2029
|
-
# source://parser//lib/parser/lexer-F1.rb#
|
2041
|
+
# source://parser//lib/parser/lexer-F1.rb#8396
|
2030
2042
|
def push_cmdarg; end
|
2031
2043
|
|
2032
|
-
# source://parser//lib/parser/lexer-F1.rb#
|
2044
|
+
# source://parser//lib/parser/lexer-F1.rb#8405
|
2033
2045
|
def push_cond; end
|
2034
2046
|
|
2035
|
-
# source://parser//lib/parser/lexer-F1.rb#
|
2047
|
+
# source://parser//lib/parser/lexer-F1.rb#8290
|
2036
2048
|
def reset(reset_state = T.unsafe(nil)); end
|
2037
2049
|
|
2038
2050
|
# %
|
@@ -2040,13 +2052,13 @@ class Parser::Lexer
|
|
2040
2052
|
# source://parser//lib/parser/lexer-F1.rb#8238
|
2041
2053
|
def source_buffer; end
|
2042
2054
|
|
2043
|
-
# source://parser//lib/parser/lexer-F1.rb#
|
2055
|
+
# source://parser//lib/parser/lexer-F1.rb#8343
|
2044
2056
|
def source_buffer=(source_buffer); end
|
2045
2057
|
|
2046
|
-
# source://parser//lib/parser/lexer-F1.rb#
|
2058
|
+
# source://parser//lib/parser/lexer-F1.rb#8388
|
2047
2059
|
def state; end
|
2048
2060
|
|
2049
|
-
# source://parser//lib/parser/lexer-F1.rb#
|
2061
|
+
# source://parser//lib/parser/lexer-F1.rb#8392
|
2050
2062
|
def state=(state); end
|
2051
2063
|
|
2052
2064
|
# Returns the value of attribute static_env.
|
@@ -2080,69 +2092,69 @@ class Parser::Lexer
|
|
2080
2092
|
|
2081
2093
|
protected
|
2082
2094
|
|
2083
|
-
# source://parser//lib/parser/lexer-F1.rb#
|
2095
|
+
# source://parser//lib/parser/lexer-F1.rb#14701
|
2084
2096
|
def arg_or_cmdarg(cmd_state); end
|
2085
2097
|
|
2086
|
-
# source://parser//lib/parser/lexer-F1.rb#
|
2098
|
+
# source://parser//lib/parser/lexer-F1.rb#14763
|
2087
2099
|
def check_ambiguous_slash(tm); end
|
2088
2100
|
|
2089
|
-
# source://parser//lib/parser/lexer-F1.rb#
|
2101
|
+
# source://parser//lib/parser/lexer-F1.rb#14725
|
2090
2102
|
def diagnostic(type, reason, arguments = T.unsafe(nil), location = T.unsafe(nil), highlights = T.unsafe(nil)); end
|
2091
2103
|
|
2092
|
-
# source://parser//lib/parser/lexer-F1.rb#
|
2104
|
+
# source://parser//lib/parser/lexer-F1.rb#14731
|
2093
2105
|
def e_lbrace; end
|
2094
2106
|
|
2095
|
-
# source://parser//lib/parser/lexer-F1.rb#
|
2107
|
+
# source://parser//lib/parser/lexer-F1.rb#14675
|
2096
2108
|
def emit(type, value = T.unsafe(nil), s = T.unsafe(nil), e = T.unsafe(nil)); end
|
2097
2109
|
|
2098
|
-
# source://parser//lib/parser/lexer-F1.rb#
|
2110
|
+
# source://parser//lib/parser/lexer-F1.rb#14784
|
2099
2111
|
def emit_class_var(ts = T.unsafe(nil), te = T.unsafe(nil)); end
|
2100
2112
|
|
2101
|
-
# source://parser//lib/parser/lexer-F1.rb#
|
2113
|
+
# source://parser//lib/parser/lexer-F1.rb#14812
|
2102
2114
|
def emit_colon_with_digits(p, tm, diag_msg); end
|
2103
2115
|
|
2104
|
-
# source://parser//lib/parser/lexer-F1.rb#
|
2116
|
+
# source://parser//lib/parser/lexer-F1.rb#14709
|
2105
2117
|
def emit_comment(s = T.unsafe(nil), e = T.unsafe(nil)); end
|
2106
2118
|
|
2107
|
-
# source://parser//lib/parser/lexer-F1.rb#
|
2119
|
+
# source://parser//lib/parser/lexer-F1.rb#14721
|
2108
2120
|
def emit_comment_from_range(p, pe); end
|
2109
2121
|
|
2110
|
-
# source://parser//lib/parser/lexer-F1.rb#
|
2122
|
+
# source://parser//lib/parser/lexer-F1.rb#14691
|
2111
2123
|
def emit_do(do_block = T.unsafe(nil)); end
|
2112
2124
|
|
2113
|
-
# source://parser//lib/parser/lexer-F1.rb#
|
2125
|
+
# source://parser//lib/parser/lexer-F1.rb#14774
|
2114
2126
|
def emit_global_var(ts = T.unsafe(nil), te = T.unsafe(nil)); end
|
2115
2127
|
|
2116
|
-
# source://parser//lib/parser/lexer-F1.rb#
|
2128
|
+
# source://parser//lib/parser/lexer-F1.rb#14792
|
2117
2129
|
def emit_instance_var(ts = T.unsafe(nil), te = T.unsafe(nil)); end
|
2118
2130
|
|
2119
|
-
# source://parser//lib/parser/lexer-F1.rb#
|
2131
|
+
# source://parser//lib/parser/lexer-F1.rb#14800
|
2120
2132
|
def emit_rbrace_rparen_rbrack; end
|
2121
2133
|
|
2122
|
-
# source://parser//lib/parser/lexer-F1.rb#
|
2134
|
+
# source://parser//lib/parser/lexer-F1.rb#14822
|
2123
2135
|
def emit_singleton_class; end
|
2124
2136
|
|
2125
|
-
# source://parser//lib/parser/lexer-F1.rb#
|
2137
|
+
# source://parser//lib/parser/lexer-F1.rb#14685
|
2126
2138
|
def emit_table(table, s = T.unsafe(nil), e = T.unsafe(nil)); end
|
2127
2139
|
|
2128
|
-
# source://parser//lib/parser/lexer-F1.rb#
|
2140
|
+
# source://parser//lib/parser/lexer-F1.rb#14740
|
2129
2141
|
def numeric_literal_int; end
|
2130
2142
|
|
2131
|
-
# source://parser//lib/parser/lexer-F1.rb#
|
2143
|
+
# source://parser//lib/parser/lexer-F1.rb#14759
|
2132
2144
|
def on_newline(p); end
|
2133
2145
|
|
2134
|
-
# source://parser//lib/parser/lexer-F1.rb#
|
2146
|
+
# source://parser//lib/parser/lexer-F1.rb#14671
|
2135
2147
|
def range(s = T.unsafe(nil), e = T.unsafe(nil)); end
|
2136
2148
|
|
2137
|
-
# source://parser//lib/parser/lexer-F1.rb#
|
2149
|
+
# source://parser//lib/parser/lexer-F1.rb#14662
|
2138
2150
|
def stack_pop; end
|
2139
2151
|
|
2140
|
-
# source://parser//lib/parser/lexer-F1.rb#
|
2152
|
+
# source://parser//lib/parser/lexer-F1.rb#14667
|
2141
2153
|
def tok(s = T.unsafe(nil), e = T.unsafe(nil)); end
|
2142
2154
|
|
2143
2155
|
# @return [Boolean]
|
2144
2156
|
#
|
2145
|
-
# source://parser//lib/parser/lexer-F1.rb#
|
2157
|
+
# source://parser//lib/parser/lexer-F1.rb#14658
|
2146
2158
|
def version?(*versions); end
|
2147
2159
|
|
2148
2160
|
class << self
|
@@ -2489,16 +2501,16 @@ end
|
|
2489
2501
|
# source://parser//lib/parser/lexer/dedenter.rb#7
|
2490
2502
|
Parser::Lexer::Dedenter::TAB_WIDTH = T.let(T.unsafe(nil), Integer)
|
2491
2503
|
|
2492
|
-
# source://parser//lib/parser/lexer-F1.rb#
|
2504
|
+
# source://parser//lib/parser/lexer-F1.rb#14869
|
2493
2505
|
Parser::Lexer::ESCAPE_WHITESPACE = T.let(T.unsafe(nil), Hash)
|
2494
2506
|
|
2495
|
-
# source://parser//lib/parser/lexer-F1.rb#
|
2507
|
+
# source://parser//lib/parser/lexer-F1.rb#14855
|
2496
2508
|
Parser::Lexer::KEYWORDS = T.let(T.unsafe(nil), Hash)
|
2497
2509
|
|
2498
|
-
# source://parser//lib/parser/lexer-F1.rb#
|
2510
|
+
# source://parser//lib/parser/lexer-F1.rb#14862
|
2499
2511
|
Parser::Lexer::KEYWORDS_BEGIN = T.let(T.unsafe(nil), Hash)
|
2500
2512
|
|
2501
|
-
# source://parser//lib/parser/lexer-F1.rb#
|
2513
|
+
# source://parser//lib/parser/lexer-F1.rb#8371
|
2502
2514
|
Parser::Lexer::LEX_STATES = T.let(T.unsafe(nil), Hash)
|
2503
2515
|
|
2504
2516
|
# source://parser//lib/parser/lexer/literal.rb#6
|
@@ -2607,10 +2619,10 @@ Parser::Lexer::Literal::TYPES = T.let(T.unsafe(nil), Hash)
|
|
2607
2619
|
|
2608
2620
|
# Mapping of strings to parser tokens.
|
2609
2621
|
#
|
2610
|
-
# source://parser//lib/parser/lexer-F1.rb#
|
2622
|
+
# source://parser//lib/parser/lexer-F1.rb#14829
|
2611
2623
|
Parser::Lexer::PUNCTUATION = T.let(T.unsafe(nil), Hash)
|
2612
2624
|
|
2613
|
-
# source://parser//lib/parser/lexer-F1.rb#
|
2625
|
+
# source://parser//lib/parser/lexer-F1.rb#14849
|
2614
2626
|
Parser::Lexer::PUNCTUATION_BEGIN = T.let(T.unsafe(nil), Hash)
|
2615
2627
|
|
2616
2628
|
# source://parser//lib/parser/lexer/stack_state.rb#5
|
@@ -2723,10 +2735,10 @@ class Parser::LexerStrings
|
|
2723
2735
|
|
2724
2736
|
protected
|
2725
2737
|
|
2726
|
-
# source://parser//lib/parser/lexer-strings.rb#
|
2738
|
+
# source://parser//lib/parser/lexer-strings.rb#5406
|
2727
2739
|
def check_ambiguous_slash(tm); end
|
2728
2740
|
|
2729
|
-
# source://parser//lib/parser/lexer-strings.rb#
|
2741
|
+
# source://parser//lib/parser/lexer-strings.rb#5417
|
2730
2742
|
def check_invalid_escapes(p); end
|
2731
2743
|
|
2732
2744
|
# source://parser//lib/parser/lexer-strings.rb#5136
|
@@ -2738,10 +2750,10 @@ class Parser::LexerStrings
|
|
2738
2750
|
# source://parser//lib/parser/lexer-strings.rb#5128
|
2739
2751
|
def emit(type, value = T.unsafe(nil), s = T.unsafe(nil), e = T.unsafe(nil)); end
|
2740
2752
|
|
2741
|
-
# source://parser//lib/parser/lexer-strings.rb#
|
2753
|
+
# source://parser//lib/parser/lexer-strings.rb#5396
|
2742
2754
|
def emit_character_constant; end
|
2743
2755
|
|
2744
|
-
# source://parser//lib/parser/lexer-strings.rb#
|
2756
|
+
# source://parser//lib/parser/lexer-strings.rb#5373
|
2745
2757
|
def emit_interp_var(interp_var_kind); end
|
2746
2758
|
|
2747
2759
|
# @return [Boolean]
|
@@ -2752,7 +2764,7 @@ class Parser::LexerStrings
|
|
2752
2764
|
# source://parser//lib/parser/lexer-strings.rb#5291
|
2753
2765
|
def encode_escape(ord); end
|
2754
2766
|
|
2755
|
-
# source://parser//lib/parser/lexer-strings.rb#
|
2767
|
+
# source://parser//lib/parser/lexer-strings.rb#5384
|
2756
2768
|
def encode_escaped_char(p); end
|
2757
2769
|
|
2758
2770
|
# @return [Boolean]
|
@@ -2766,7 +2778,7 @@ class Parser::LexerStrings
|
|
2766
2778
|
# source://parser//lib/parser/lexer-strings.rb#5225
|
2767
2779
|
def extend_interp_digit_var; end
|
2768
2780
|
|
2769
|
-
# source://parser//lib/parser/lexer-strings.rb#
|
2781
|
+
# source://parser//lib/parser/lexer-strings.rb#5364
|
2770
2782
|
def extend_interp_var(current_literal); end
|
2771
2783
|
|
2772
2784
|
# source://parser//lib/parser/lexer-strings.rb#5234
|
@@ -2795,13 +2807,13 @@ class Parser::LexerStrings
|
|
2795
2807
|
# source://parser//lib/parser/lexer-strings.rb#5124
|
2796
2808
|
def range(s = T.unsafe(nil), e = T.unsafe(nil)); end
|
2797
2809
|
|
2798
|
-
# source://parser//lib/parser/lexer-strings.rb#
|
2810
|
+
# source://parser//lib/parser/lexer-strings.rb#5356
|
2799
2811
|
def read_post_meta_or_ctrl_char(p); end
|
2800
2812
|
|
2801
|
-
# source://parser//lib/parser/lexer-strings.rb#
|
2813
|
+
# source://parser//lib/parser/lexer-strings.rb#5388
|
2802
2814
|
def slash_c_char; end
|
2803
2815
|
|
2804
|
-
# source://parser//lib/parser/lexer-strings.rb#
|
2816
|
+
# source://parser//lib/parser/lexer-strings.rb#5392
|
2805
2817
|
def slash_m_char; end
|
2806
2818
|
|
2807
2819
|
# source://parser//lib/parser/lexer-strings.rb#5120
|
@@ -3104,7 +3116,7 @@ end
|
|
3104
3116
|
# source://parser//lib/parser/lexer-strings.rb#3287
|
3105
3117
|
Parser::LexerStrings::ESCAPES = T.let(T.unsafe(nil), Hash)
|
3106
3118
|
|
3107
|
-
# source://parser//lib/parser/lexer-strings.rb#
|
3119
|
+
# source://parser//lib/parser/lexer-strings.rb#5423
|
3108
3120
|
Parser::LexerStrings::ESCAPE_WHITESPACE = T.let(T.unsafe(nil), Hash)
|
3109
3121
|
|
3110
3122
|
# source://parser//lib/parser/lexer-strings.rb#3332
|
@@ -3218,10 +3230,17 @@ module Parser::Meta; end
|
|
3218
3230
|
|
3219
3231
|
# All node types that parser can produce. Not all parser versions
|
3220
3232
|
# will be able to produce every possible node.
|
3233
|
+
# Includes node types that are only emitted by the prism parser translator.
|
3221
3234
|
#
|
3222
|
-
# source://parser//lib/parser/meta.rb#
|
3235
|
+
# source://parser//lib/parser/meta.rb#17
|
3223
3236
|
Parser::Meta::NODE_TYPES = T.let(T.unsafe(nil), Set)
|
3224
3237
|
|
3238
|
+
# These are node types required by `Prism::Translation::Parser`,
|
3239
|
+
# which has advanced syntax support ahead of the Parser gem.
|
3240
|
+
#
|
3241
|
+
# source://parser//lib/parser/meta.rb#9
|
3242
|
+
Parser::Meta::PRISM_TRANSLATION_PARSER_NODE_TYPES = T.let(T.unsafe(nil), Array)
|
3243
|
+
|
3225
3244
|
# {Parser::Rewriter} is deprecated. Use {Parser::TreeRewriter} instead.
|
3226
3245
|
# It has a backwards compatible API and uses {Parser::Source::TreeRewriter}
|
3227
3246
|
# instead of {Parser::Source::Rewriter}.
|
@@ -3329,7 +3348,7 @@ class Parser::Source::Buffer
|
|
3329
3348
|
# @api public
|
3330
3349
|
# @return [Buffer] a new instance of Buffer
|
3331
3350
|
#
|
3332
|
-
# source://parser//lib/parser/source/buffer.rb#
|
3351
|
+
# source://parser//lib/parser/source/buffer.rb#110
|
3333
3352
|
def initialize(name, first_line = T.unsafe(nil), source: T.unsafe(nil)); end
|
3334
3353
|
|
3335
3354
|
# Convert a character index into the source to a column number.
|
@@ -3338,7 +3357,7 @@ class Parser::Source::Buffer
|
|
3338
3357
|
# @param position [Integer]
|
3339
3358
|
# @return [Integer] column
|
3340
3359
|
#
|
3341
|
-
# source://parser//lib/parser/source/buffer.rb#
|
3360
|
+
# source://parser//lib/parser/source/buffer.rb#247
|
3342
3361
|
def column_for_position(position); end
|
3343
3362
|
|
3344
3363
|
# Convert a character index into the source to a `[line, column]` tuple.
|
@@ -3347,7 +3366,7 @@ class Parser::Source::Buffer
|
|
3347
3366
|
# @param position [Integer]
|
3348
3367
|
# @return [[Integer, Integer]] `[line, column]`
|
3349
3368
|
#
|
3350
|
-
# source://parser//lib/parser/source/buffer.rb#
|
3369
|
+
# source://parser//lib/parser/source/buffer.rb#222
|
3351
3370
|
def decompose_position(position); end
|
3352
3371
|
|
3353
3372
|
# First line of the buffer, 1 by default.
|
@@ -3360,12 +3379,12 @@ class Parser::Source::Buffer
|
|
3360
3379
|
|
3361
3380
|
# @api public
|
3362
3381
|
#
|
3363
|
-
# source://parser//lib/parser/source/buffer.rb#
|
3382
|
+
# source://parser//lib/parser/source/buffer.rb#317
|
3364
3383
|
def freeze; end
|
3365
3384
|
|
3366
3385
|
# @api public
|
3367
3386
|
#
|
3368
|
-
# source://parser//lib/parser/source/buffer.rb#
|
3387
|
+
# source://parser//lib/parser/source/buffer.rb#323
|
3369
3388
|
def inspect; end
|
3370
3389
|
|
3371
3390
|
# Number of last line in the buffer
|
@@ -3373,7 +3392,7 @@ class Parser::Source::Buffer
|
|
3373
3392
|
# @api public
|
3374
3393
|
# @return [Integer]
|
3375
3394
|
#
|
3376
|
-
# source://parser//lib/parser/source/buffer.rb#
|
3395
|
+
# source://parser//lib/parser/source/buffer.rb#312
|
3377
3396
|
def last_line; end
|
3378
3397
|
|
3379
3398
|
# Convert a character index into the source to a line number.
|
@@ -3382,7 +3401,7 @@ class Parser::Source::Buffer
|
|
3382
3401
|
# @param position [Integer]
|
3383
3402
|
# @return [Integer] line
|
3384
3403
|
#
|
3385
|
-
# source://parser//lib/parser/source/buffer.rb#
|
3404
|
+
# source://parser//lib/parser/source/buffer.rb#236
|
3386
3405
|
def line_for_position(position); end
|
3387
3406
|
|
3388
3407
|
# Extract line `lineno` as a new `Range`, taking `first_line` into account.
|
@@ -3392,7 +3411,7 @@ class Parser::Source::Buffer
|
|
3392
3411
|
# @raise [IndexError] if `lineno` is out of bounds
|
3393
3412
|
# @return [Range]
|
3394
3413
|
#
|
3395
|
-
# source://parser//lib/parser/source/buffer.rb#
|
3414
|
+
# source://parser//lib/parser/source/buffer.rb#289
|
3396
3415
|
def line_range(lineno); end
|
3397
3416
|
|
3398
3417
|
# Buffer name. If the buffer was created from a file, the name corresponds
|
@@ -3411,7 +3430,7 @@ class Parser::Source::Buffer
|
|
3411
3430
|
# @raise [ArgumentError] if already populated
|
3412
3431
|
# @return [String]
|
3413
3432
|
#
|
3414
|
-
# source://parser//lib/parser/source/buffer.rb#
|
3433
|
+
# source://parser//lib/parser/source/buffer.rb#185
|
3415
3434
|
def raw_source=(input); end
|
3416
3435
|
|
3417
3436
|
# Populate this buffer from correspondingly named file.
|
@@ -3422,12 +3441,12 @@ class Parser::Source::Buffer
|
|
3422
3441
|
# @raise [ArgumentError] if already populated
|
3423
3442
|
# @return [Buffer] self
|
3424
3443
|
#
|
3425
|
-
# source://parser//lib/parser/source/buffer.rb#
|
3444
|
+
# source://parser//lib/parser/source/buffer.rb#136
|
3426
3445
|
def read; end
|
3427
3446
|
|
3428
3447
|
# @api public
|
3429
3448
|
#
|
3430
|
-
# source://parser//lib/parser/source/buffer.rb#
|
3449
|
+
# source://parser//lib/parser/source/buffer.rb#199
|
3431
3450
|
def slice(start, length = T.unsafe(nil)); end
|
3432
3451
|
|
3433
3452
|
# Source code contained in this buffer.
|
@@ -3436,7 +3455,7 @@ class Parser::Source::Buffer
|
|
3436
3455
|
# @raise [RuntimeError] if buffer is not populated yet
|
3437
3456
|
# @return [String] source code
|
3438
3457
|
#
|
3439
|
-
# source://parser//lib/parser/source/buffer.rb#
|
3458
|
+
# source://parser//lib/parser/source/buffer.rb#150
|
3440
3459
|
def source; end
|
3441
3460
|
|
3442
3461
|
# Populate this buffer from a string with encoding autodetection.
|
@@ -3448,7 +3467,7 @@ class Parser::Source::Buffer
|
|
3448
3467
|
# @raise [EncodingError] if `input` includes invalid byte sequence for the encoding
|
3449
3468
|
# @return [String]
|
3450
3469
|
#
|
3451
|
-
# source://parser//lib/parser/source/buffer.rb#
|
3470
|
+
# source://parser//lib/parser/source/buffer.rb#167
|
3452
3471
|
def source=(input); end
|
3453
3472
|
|
3454
3473
|
# Extract line `lineno` from source, taking `first_line` into account.
|
@@ -3458,7 +3477,7 @@ class Parser::Source::Buffer
|
|
3458
3477
|
# @raise [IndexError] if `lineno` is out of bounds
|
3459
3478
|
# @return [String]
|
3460
3479
|
#
|
3461
|
-
# source://parser//lib/parser/source/buffer.rb#
|
3480
|
+
# source://parser//lib/parser/source/buffer.rb#278
|
3462
3481
|
def source_line(lineno); end
|
3463
3482
|
|
3464
3483
|
# Return an `Array` of source code lines.
|
@@ -3466,30 +3485,30 @@ class Parser::Source::Buffer
|
|
3466
3485
|
# @api public
|
3467
3486
|
# @return [Array<String>]
|
3468
3487
|
#
|
3469
|
-
# source://parser//lib/parser/source/buffer.rb#
|
3488
|
+
# source://parser//lib/parser/source/buffer.rb#257
|
3470
3489
|
def source_lines; end
|
3471
3490
|
|
3472
3491
|
# @api public
|
3473
3492
|
# @return [Range] A range covering the whole source
|
3474
3493
|
#
|
3475
|
-
# source://parser//lib/parser/source/buffer.rb#
|
3494
|
+
# source://parser//lib/parser/source/buffer.rb#303
|
3476
3495
|
def source_range; end
|
3477
3496
|
|
3478
3497
|
private
|
3479
3498
|
|
3480
3499
|
# @api public
|
3481
3500
|
#
|
3482
|
-
# source://parser//lib/parser/source/buffer.rb#
|
3501
|
+
# source://parser//lib/parser/source/buffer.rb#353
|
3483
3502
|
def bsearch(line_begins, position); end
|
3484
3503
|
|
3485
3504
|
# @api public
|
3486
3505
|
#
|
3487
|
-
# source://parser//lib/parser/source/buffer.rb#
|
3506
|
+
# source://parser//lib/parser/source/buffer.rb#330
|
3488
3507
|
def line_begins; end
|
3489
3508
|
|
3490
3509
|
# @api public
|
3491
3510
|
#
|
3492
|
-
# source://parser//lib/parser/source/buffer.rb#
|
3511
|
+
# source://parser//lib/parser/source/buffer.rb#344
|
3493
3512
|
def line_index_for_position(position); end
|
3494
3513
|
|
3495
3514
|
class << self
|
@@ -3498,9 +3517,10 @@ class Parser::Source::Buffer
|
|
3498
3517
|
#
|
3499
3518
|
# @api public
|
3500
3519
|
# @param string [String]
|
3520
|
+
# @raise [Parser::UnknownEncodingInMagicComment] if the encoding is not recognized
|
3501
3521
|
# @return [String, nil] encoding name, if recognized
|
3502
3522
|
#
|
3503
|
-
# source://parser//lib/parser/source/buffer.rb#
|
3523
|
+
# source://parser//lib/parser/source/buffer.rb#52
|
3504
3524
|
def recognize_encoding(string); end
|
3505
3525
|
|
3506
3526
|
# Recognize encoding of `input` and process it so it could be lexed.
|
@@ -3518,7 +3538,7 @@ class Parser::Source::Buffer
|
|
3518
3538
|
# @raise [EncodingError]
|
3519
3539
|
# @return [String]
|
3520
3540
|
#
|
3521
|
-
# source://parser//lib/parser/source/buffer.rb#
|
3541
|
+
# source://parser//lib/parser/source/buffer.rb#95
|
3522
3542
|
def reencode_string(input); end
|
3523
3543
|
end
|
3524
3544
|
end
|
@@ -5124,80 +5144,80 @@ end
|
|
5124
5144
|
# source://parser//lib/parser/source/tree_rewriter.rb#391
|
5125
5145
|
Parser::Source::TreeRewriter::ACTIONS = T.let(T.unsafe(nil), Array)
|
5126
5146
|
|
5127
|
-
# source://parser//lib/parser/source/tree_rewriter/action.rb#
|
5147
|
+
# source://parser//lib/parser/source/tree_rewriter/action.rb#14
|
5128
5148
|
class Parser::Source::TreeRewriter::Action
|
5129
|
-
# source://parser//lib/parser/source/tree_rewriter/action.rb#
|
5149
|
+
# source://parser//lib/parser/source/tree_rewriter/action.rb#17
|
5130
5150
|
def initialize(range, enforcer, insert_before: T.unsafe(nil), replacement: T.unsafe(nil), insert_after: T.unsafe(nil), children: T.unsafe(nil)); end
|
5131
5151
|
|
5132
|
-
# source://parser//lib/parser/source/tree_rewriter/action.rb#
|
5152
|
+
# source://parser//lib/parser/source/tree_rewriter/action.rb#29
|
5133
5153
|
def combine(action); end
|
5134
5154
|
|
5135
|
-
# source://parser//lib/parser/source/tree_rewriter/action.rb#
|
5155
|
+
# source://parser//lib/parser/source/tree_rewriter/action.rb#68
|
5136
5156
|
def contract; end
|
5137
5157
|
|
5138
|
-
# source://parser//lib/parser/source/tree_rewriter/action.rb#
|
5158
|
+
# source://parser//lib/parser/source/tree_rewriter/action.rb#34
|
5139
5159
|
def empty?; end
|
5140
5160
|
|
5141
|
-
# source://parser//lib/parser/source/tree_rewriter/action.rb#
|
5161
|
+
# source://parser//lib/parser/source/tree_rewriter/action.rb#15
|
5142
5162
|
def insert_after; end
|
5143
5163
|
|
5144
|
-
# source://parser//lib/parser/source/tree_rewriter/action.rb#
|
5164
|
+
# source://parser//lib/parser/source/tree_rewriter/action.rb#15
|
5145
5165
|
def insert_before; end
|
5146
5166
|
|
5147
|
-
# source://parser//lib/parser/source/tree_rewriter/action.rb#
|
5167
|
+
# source://parser//lib/parser/source/tree_rewriter/action.rb#58
|
5148
5168
|
def insertion?; end
|
5149
5169
|
|
5150
|
-
# source://parser//lib/parser/source/tree_rewriter/action.rb#
|
5170
|
+
# source://parser//lib/parser/source/tree_rewriter/action.rb#81
|
5151
5171
|
def moved(source_buffer, offset); end
|
5152
5172
|
|
5153
|
-
# source://parser//lib/parser/source/tree_rewriter/action.rb#
|
5173
|
+
# source://parser//lib/parser/source/tree_rewriter/action.rb#50
|
5154
5174
|
def nested_actions; end
|
5155
5175
|
|
5156
|
-
# source://parser//lib/parser/source/tree_rewriter/action.rb#
|
5176
|
+
# source://parser//lib/parser/source/tree_rewriter/action.rb#41
|
5157
5177
|
def ordered_replacements; end
|
5158
5178
|
|
5159
|
-
# source://parser//lib/parser/source/tree_rewriter/action.rb#
|
5179
|
+
# source://parser//lib/parser/source/tree_rewriter/action.rb#15
|
5160
5180
|
def range; end
|
5161
5181
|
|
5162
|
-
# source://parser//lib/parser/source/tree_rewriter/action.rb#
|
5182
|
+
# source://parser//lib/parser/source/tree_rewriter/action.rb#15
|
5163
5183
|
def replacement; end
|
5164
5184
|
|
5165
5185
|
protected
|
5166
5186
|
|
5167
|
-
# source://parser//lib/parser/source/tree_rewriter/action.rb#
|
5187
|
+
# source://parser//lib/parser/source/tree_rewriter/action.rb#159
|
5168
5188
|
def analyse_hierarchy(action); end
|
5169
5189
|
|
5170
|
-
# source://parser//lib/parser/source/tree_rewriter/action.rb#
|
5190
|
+
# source://parser//lib/parser/source/tree_rewriter/action.rb#146
|
5171
5191
|
def bsearch_child_index(from = T.unsafe(nil)); end
|
5172
5192
|
|
5173
|
-
# source://parser//lib/parser/source/tree_rewriter/action.rb#
|
5193
|
+
# source://parser//lib/parser/source/tree_rewriter/action.rb#225
|
5174
5194
|
def call_enforcer_for_merge(action); end
|
5175
5195
|
|
5176
|
-
# source://parser//lib/parser/source/tree_rewriter/action.rb#
|
5196
|
+
# source://parser//lib/parser/source/tree_rewriter/action.rb#205
|
5177
5197
|
def check_fusible(action, *fusible); end
|
5178
5198
|
|
5179
|
-
# source://parser//lib/parser/source/tree_rewriter/action.rb#
|
5199
|
+
# source://parser//lib/parser/source/tree_rewriter/action.rb#95
|
5180
5200
|
def children; end
|
5181
5201
|
|
5182
|
-
# source://parser//lib/parser/source/tree_rewriter/action.rb#
|
5202
|
+
# source://parser//lib/parser/source/tree_rewriter/action.rb#130
|
5183
5203
|
def combine_children(more_children); end
|
5184
5204
|
|
5185
|
-
# source://parser//lib/parser/source/tree_rewriter/action.rb#
|
5205
|
+
# source://parser//lib/parser/source/tree_rewriter/action.rb#103
|
5186
5206
|
def do_combine(action); end
|
5187
5207
|
|
5188
|
-
# source://parser//lib/parser/source/tree_rewriter/action.rb#
|
5208
|
+
# source://parser//lib/parser/source/tree_rewriter/action.rb#136
|
5189
5209
|
def fuse_deletions(action, fusible, other_sibblings); end
|
5190
5210
|
|
5191
|
-
# source://parser//lib/parser/source/tree_rewriter/action.rb#
|
5211
|
+
# source://parser//lib/parser/source/tree_rewriter/action.rb#216
|
5192
5212
|
def merge(action); end
|
5193
5213
|
|
5194
|
-
# source://parser//lib/parser/source/tree_rewriter/action.rb#
|
5214
|
+
# source://parser//lib/parser/source/tree_rewriter/action.rb#111
|
5195
5215
|
def place_in_hierarchy(action); end
|
5196
5216
|
|
5197
|
-
# source://parser//lib/parser/source/tree_rewriter/action.rb#
|
5217
|
+
# source://parser//lib/parser/source/tree_rewriter/action.rb#233
|
5198
5218
|
def swallow(children); end
|
5199
5219
|
|
5200
|
-
# source://parser//lib/parser/source/tree_rewriter/action.rb#
|
5220
|
+
# source://parser//lib/parser/source/tree_rewriter/action.rb#97
|
5201
5221
|
def with(range: T.unsafe(nil), enforcer: T.unsafe(nil), children: T.unsafe(nil), insert_before: T.unsafe(nil), replacement: T.unsafe(nil), insert_after: T.unsafe(nil)); end
|
5202
5222
|
end
|
5203
5223
|
|
@@ -5215,90 +5235,122 @@ Parser::Source::TreeRewriter::POLICY_TO_LEVEL = T.let(T.unsafe(nil), Hash)
|
|
5215
5235
|
class Parser::StaticEnvironment
|
5216
5236
|
# @return [StaticEnvironment] a new instance of StaticEnvironment
|
5217
5237
|
#
|
5218
|
-
# source://parser//lib/parser/static_environment.rb#
|
5238
|
+
# source://parser//lib/parser/static_environment.rb#17
|
5219
5239
|
def initialize; end
|
5220
5240
|
|
5221
|
-
# source://parser//lib/parser/static_environment.rb#
|
5241
|
+
# source://parser//lib/parser/static_environment.rb#55
|
5222
5242
|
def declare(name); end
|
5223
5243
|
|
5224
|
-
#
|
5244
|
+
# Anonymous blockarg
|
5245
|
+
#
|
5246
|
+
# source://parser//lib/parser/static_environment.rb#77
|
5225
5247
|
def declare_anonymous_blockarg; end
|
5226
5248
|
|
5227
|
-
#
|
5249
|
+
# Anonymous kwresarg
|
5250
|
+
#
|
5251
|
+
# source://parser//lib/parser/static_environment.rb#113
|
5228
5252
|
def declare_anonymous_kwrestarg; end
|
5229
5253
|
|
5230
|
-
#
|
5254
|
+
# Anonymous restarg
|
5255
|
+
#
|
5256
|
+
# source://parser//lib/parser/static_environment.rb#95
|
5231
5257
|
def declare_anonymous_restarg; end
|
5232
5258
|
|
5233
|
-
#
|
5259
|
+
# Forward args
|
5260
|
+
#
|
5261
|
+
# source://parser//lib/parser/static_environment.rb#67
|
5234
5262
|
def declare_forward_args; end
|
5235
5263
|
|
5236
5264
|
# @return [Boolean]
|
5237
5265
|
#
|
5238
|
-
# source://parser//lib/parser/static_environment.rb#
|
5266
|
+
# source://parser//lib/parser/static_environment.rb#61
|
5239
5267
|
def declared?(name); end
|
5240
5268
|
|
5241
5269
|
# @return [Boolean]
|
5242
5270
|
#
|
5243
|
-
# source://parser//lib/parser/static_environment.rb#
|
5271
|
+
# source://parser//lib/parser/static_environment.rb#81
|
5244
5272
|
def declared_anonymous_blockarg?; end
|
5245
5273
|
|
5246
5274
|
# @return [Boolean]
|
5247
5275
|
#
|
5248
|
-
# source://parser//lib/parser/static_environment.rb#
|
5276
|
+
# source://parser//lib/parser/static_environment.rb#85
|
5277
|
+
def declared_anonymous_blockarg_in_current_scpe?; end
|
5278
|
+
|
5279
|
+
# @return [Boolean]
|
5280
|
+
#
|
5281
|
+
# source://parser//lib/parser/static_environment.rb#117
|
5249
5282
|
def declared_anonymous_kwrestarg?; end
|
5250
5283
|
|
5251
5284
|
# @return [Boolean]
|
5252
5285
|
#
|
5253
|
-
# source://parser//lib/parser/static_environment.rb#
|
5286
|
+
# source://parser//lib/parser/static_environment.rb#121
|
5287
|
+
def declared_anonymous_kwrestarg_in_current_scope?; end
|
5288
|
+
|
5289
|
+
# @return [Boolean]
|
5290
|
+
#
|
5291
|
+
# source://parser//lib/parser/static_environment.rb#99
|
5254
5292
|
def declared_anonymous_restarg?; end
|
5255
5293
|
|
5256
5294
|
# @return [Boolean]
|
5257
5295
|
#
|
5258
|
-
# source://parser//lib/parser/static_environment.rb#
|
5296
|
+
# source://parser//lib/parser/static_environment.rb#103
|
5297
|
+
def declared_anonymous_restarg_in_current_scope?; end
|
5298
|
+
|
5299
|
+
# @return [Boolean]
|
5300
|
+
#
|
5301
|
+
# source://parser//lib/parser/static_environment.rb#71
|
5259
5302
|
def declared_forward_args?; end
|
5260
5303
|
|
5261
5304
|
# @return [Boolean]
|
5262
5305
|
#
|
5263
|
-
# source://parser//lib/parser/static_environment.rb#
|
5306
|
+
# source://parser//lib/parser/static_environment.rb#129
|
5264
5307
|
def empty?; end
|
5265
5308
|
|
5266
|
-
# source://parser//lib/parser/static_environment.rb#
|
5309
|
+
# source://parser//lib/parser/static_environment.rb#33
|
5267
5310
|
def extend_dynamic; end
|
5268
5311
|
|
5269
|
-
# source://parser//lib/parser/static_environment.rb#
|
5312
|
+
# source://parser//lib/parser/static_environment.rb#26
|
5270
5313
|
def extend_static; end
|
5271
5314
|
|
5272
5315
|
# @return [Boolean]
|
5273
5316
|
#
|
5274
|
-
# source://parser//lib/parser/static_environment.rb#
|
5317
|
+
# source://parser//lib/parser/static_environment.rb#89
|
5275
5318
|
def parent_has_anonymous_blockarg?; end
|
5276
5319
|
|
5277
5320
|
# @return [Boolean]
|
5278
5321
|
#
|
5279
|
-
# source://parser//lib/parser/static_environment.rb#
|
5322
|
+
# source://parser//lib/parser/static_environment.rb#125
|
5280
5323
|
def parent_has_anonymous_kwrestarg?; end
|
5281
5324
|
|
5282
5325
|
# @return [Boolean]
|
5283
5326
|
#
|
5284
|
-
# source://parser//lib/parser/static_environment.rb#
|
5327
|
+
# source://parser//lib/parser/static_environment.rb#107
|
5285
5328
|
def parent_has_anonymous_restarg?; end
|
5286
5329
|
|
5287
|
-
# source://parser//lib/parser/static_environment.rb#
|
5330
|
+
# source://parser//lib/parser/static_environment.rb#21
|
5288
5331
|
def reset; end
|
5289
5332
|
|
5290
|
-
# source://parser//lib/parser/static_environment.rb#
|
5333
|
+
# source://parser//lib/parser/static_environment.rb#49
|
5291
5334
|
def unextend; end
|
5292
5335
|
end
|
5293
5336
|
|
5294
|
-
# source://parser//lib/parser/static_environment.rb#
|
5295
|
-
Parser::StaticEnvironment::
|
5337
|
+
# source://parser//lib/parser/static_environment.rb#15
|
5338
|
+
Parser::StaticEnvironment::ANONYMOUS_BLOCKARG_INHERITED = T.let(T.unsafe(nil), Symbol)
|
5339
|
+
|
5340
|
+
# source://parser//lib/parser/static_environment.rb#14
|
5341
|
+
Parser::StaticEnvironment::ANONYMOUS_BLOCKARG_IN_CURRENT_SCOPE = T.let(T.unsafe(nil), Symbol)
|
5342
|
+
|
5343
|
+
# source://parser//lib/parser/static_environment.rb#12
|
5344
|
+
Parser::StaticEnvironment::ANONYMOUS_KWRESTARG_INHERITED = T.let(T.unsafe(nil), Symbol)
|
5345
|
+
|
5346
|
+
# source://parser//lib/parser/static_environment.rb#11
|
5347
|
+
Parser::StaticEnvironment::ANONYMOUS_KWRESTARG_IN_CURRENT_SCOPE = T.let(T.unsafe(nil), Symbol)
|
5296
5348
|
|
5297
5349
|
# source://parser//lib/parser/static_environment.rb#9
|
5298
|
-
Parser::StaticEnvironment::
|
5350
|
+
Parser::StaticEnvironment::ANONYMOUS_RESTARG_INHERITED = T.let(T.unsafe(nil), Symbol)
|
5299
5351
|
|
5300
5352
|
# source://parser//lib/parser/static_environment.rb#8
|
5301
|
-
Parser::StaticEnvironment::
|
5353
|
+
Parser::StaticEnvironment::ANONYMOUS_RESTARG_IN_CURRENT_SCOPE = T.let(T.unsafe(nil), Symbol)
|
5302
5354
|
|
5303
5355
|
# source://parser//lib/parser/static_environment.rb#6
|
5304
5356
|
Parser::StaticEnvironment::FORWARD_ARGS = T.let(T.unsafe(nil), Symbol)
|
@@ -5438,6 +5490,17 @@ class Parser::TreeRewriter < ::Parser::AST::Processor
|
|
5438
5490
|
def wrap(range, before, after); end
|
5439
5491
|
end
|
5440
5492
|
|
5493
|
+
# {Parser::UnknownEncodingInMagicComment} is raised when a magic encoding
|
5494
|
+
# comment is encountered that the currently running Ruby version doesn't
|
5495
|
+
# recognize. It inherits from {ArgumentError} since that is the exception
|
5496
|
+
# Ruby itself raises when trying to execute a file with an unknown encoding.
|
5497
|
+
# As such, it is also not a {Parser::SyntaxError}.
|
5498
|
+
#
|
5499
|
+
# @api public
|
5500
|
+
#
|
5501
|
+
# source://parser//lib/parser/unknown_encoding_in_magic_comment_error.rb#13
|
5502
|
+
class Parser::UnknownEncodingInMagicComment < ::ArgumentError; end
|
5503
|
+
|
5441
5504
|
# source://parser//lib/parser/version.rb#4
|
5442
5505
|
Parser::VERSION = T.let(T.unsafe(nil), String)
|
5443
5506
|
|