workos 2.10.0 → 2.11.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (72) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +32 -3
  3. data/bin/tapioca +29 -0
  4. data/lib/workos/version.rb +1 -1
  5. data/sorbet/rbi/gems/addressable@2.8.0.rbi +290 -0
  6. data/sorbet/rbi/gems/{ast.rbi → ast@2.4.2.rbi} +27 -22
  7. data/sorbet/rbi/gems/codecov@0.2.12.rbi +55 -0
  8. data/sorbet/rbi/gems/coderay@1.1.3.rbi +8 -0
  9. data/sorbet/rbi/gems/crack@0.4.5.rbi +57 -0
  10. data/sorbet/rbi/gems/diff-lcs@1.4.4.rbi +185 -0
  11. data/sorbet/rbi/gems/docile@1.3.5.rbi +54 -0
  12. data/sorbet/rbi/gems/hashdiff@1.0.1.rbi +82 -0
  13. data/sorbet/rbi/gems/json@2.5.1.rbi +109 -0
  14. data/sorbet/rbi/gems/method_source@1.0.0.rbi +8 -0
  15. data/sorbet/rbi/gems/parallel@1.20.1.rbi +113 -0
  16. data/sorbet/rbi/gems/parser@3.0.1.0.rbi +1187 -0
  17. data/sorbet/rbi/gems/pry@0.14.2.rbi +8 -0
  18. data/sorbet/rbi/gems/public_suffix@4.0.6.rbi +146 -0
  19. data/sorbet/rbi/gems/{rainbow.rbi → rainbow@3.0.0.rbi} +90 -55
  20. data/sorbet/rbi/gems/{rake.rbi → rake@13.0.3.rbi} +587 -424
  21. data/sorbet/rbi/gems/rbi@0.0.16.rbi +2118 -0
  22. data/sorbet/rbi/gems/regexp_parser@2.1.1.rbi +1117 -0
  23. data/sorbet/rbi/gems/{rexml.rbi → rexml@3.2.5.rbi} +587 -506
  24. data/sorbet/rbi/gems/{rspec-core.rbi → rspec-core@3.9.3.rbi} +2321 -1752
  25. data/sorbet/rbi/gems/{rspec-expectations.rbi → rspec-expectations@3.9.4.rbi} +1119 -677
  26. data/sorbet/rbi/gems/{rspec-mocks.rbi → rspec-mocks@3.9.1.rbi} +1327 -933
  27. data/sorbet/rbi/gems/rspec-support@3.9.4.rbi +511 -0
  28. data/sorbet/rbi/gems/rspec@3.9.0.rbi +38 -0
  29. data/sorbet/rbi/gems/rubocop-ast@1.4.1.rbi +1881 -0
  30. data/sorbet/rbi/gems/rubocop@0.93.1.rbi +11497 -0
  31. data/sorbet/rbi/gems/ruby-progressbar@1.11.0.rbi +405 -0
  32. data/sorbet/rbi/gems/simplecov-html@0.12.3.rbi +89 -0
  33. data/sorbet/rbi/gems/simplecov@0.21.2.rbi +577 -0
  34. data/sorbet/rbi/gems/simplecov_json_formatter@0.1.2.rbi +8 -0
  35. data/sorbet/rbi/gems/spoom@1.1.15.rbi +1549 -0
  36. data/sorbet/rbi/gems/tapioca@0.7.3.rbi +1718 -0
  37. data/sorbet/rbi/gems/thor@1.2.1.rbi +844 -0
  38. data/sorbet/rbi/gems/unicode-display_width@1.7.0.rbi +22 -0
  39. data/sorbet/rbi/gems/unparser@0.6.2.rbi +8 -0
  40. data/sorbet/rbi/gems/{vcr.rbi → vcr@5.0.0.rbi} +528 -401
  41. data/sorbet/rbi/gems/webmock@3.12.2.rbi +662 -0
  42. data/sorbet/rbi/gems/yard-sorbet@0.8.0.rbi +268 -0
  43. data/sorbet/rbi/gems/yard@0.9.26.rbi +4048 -0
  44. data/sorbet/tapioca/config.yml +13 -0
  45. data/sorbet/tapioca/require.rb +4 -0
  46. data/workos.gemspec +1 -1
  47. metadata +60 -50
  48. data/sorbet/rbi/gems/addressable.rbi +0 -199
  49. data/sorbet/rbi/gems/codecov.rbi +0 -37
  50. data/sorbet/rbi/gems/crack.rbi +0 -62
  51. data/sorbet/rbi/gems/docile.rbi +0 -36
  52. data/sorbet/rbi/gems/hashdiff.rbi +0 -66
  53. data/sorbet/rbi/gems/parallel.rbi +0 -83
  54. data/sorbet/rbi/gems/parser.rbi +0 -1429
  55. data/sorbet/rbi/gems/public_suffix.rbi +0 -104
  56. data/sorbet/rbi/gems/regexp_parser.rbi +0 -926
  57. data/sorbet/rbi/gems/rspec-support.rbi +0 -280
  58. data/sorbet/rbi/gems/rspec.rbi +0 -15
  59. data/sorbet/rbi/gems/rubocop-ast.rbi +0 -1355
  60. data/sorbet/rbi/gems/rubocop.rbi +0 -7253
  61. data/sorbet/rbi/gems/ruby-progressbar.rbi +0 -304
  62. data/sorbet/rbi/gems/simplecov-html.rbi +0 -35
  63. data/sorbet/rbi/gems/simplecov.rbi +0 -406
  64. data/sorbet/rbi/gems/unicode-display_width.rbi +0 -17
  65. data/sorbet/rbi/gems/webmock.rbi +0 -556
  66. data/sorbet/rbi/gems/yard.rbi +0 -1165
  67. data/sorbet/rbi/sorbet-typed/lib/rainbow/all/rainbow.rbi +0 -276
  68. data/sorbet/rbi/sorbet-typed/lib/rake/all/rake.rbi +0 -645
  69. data/sorbet/rbi/sorbet-typed/lib/rspec-core/all/rspec-core.rbi +0 -1891
  70. data/sorbet/rbi/sorbet-typed/lib/rubocop/~>0.85/rubocop.rbi +0 -2072
  71. data/sorbet/rbi/sorbet-typed/lib/yard/all/yard.rbi +0 -1214
  72. data/sorbet/rbi/todo.rbi +0 -5
@@ -0,0 +1,1187 @@
1
+ # typed: true
2
+
3
+ # DO NOT EDIT MANUALLY
4
+ # This is an autogenerated file for types exported from the `parser` gem.
5
+ # Please instead update this file by running `bin/tapioca gem parser`.
6
+
7
+ module Parser; end
8
+ module Parser::AST; end
9
+
10
+ class Parser::AST::Node < ::AST::Node
11
+ def assign_properties(properties); end
12
+ def loc; end
13
+ def location; end
14
+ end
15
+
16
+ class Parser::AST::Processor < ::AST::Processor
17
+ def on_alias(node); end
18
+ def on_and(node); end
19
+ def on_and_asgn(node); end
20
+ def on_arg(node); end
21
+ def on_arg_expr(node); end
22
+ def on_args(node); end
23
+ def on_argument(node); end
24
+ def on_array(node); end
25
+ def on_array_pattern(node); end
26
+ def on_array_pattern_with_tail(node); end
27
+ def on_back_ref(node); end
28
+ def on_begin(node); end
29
+ def on_block(node); end
30
+ def on_block_pass(node); end
31
+ def on_blockarg(node); end
32
+ def on_blockarg_expr(node); end
33
+ def on_break(node); end
34
+ def on_case(node); end
35
+ def on_case_match(node); end
36
+ def on_casgn(node); end
37
+ def on_class(node); end
38
+ def on_const(node); end
39
+ def on_const_pattern(node); end
40
+ def on_csend(node); end
41
+ def on_cvar(node); end
42
+ def on_cvasgn(node); end
43
+ def on_def(node); end
44
+ def on_defined?(node); end
45
+ def on_defs(node); end
46
+ def on_dstr(node); end
47
+ def on_dsym(node); end
48
+ def on_eflipflop(node); end
49
+ def on_empty_else(node); end
50
+ def on_ensure(node); end
51
+ def on_erange(node); end
52
+ def on_find_pattern(node); end
53
+ def on_for(node); end
54
+ def on_forward_arg(node); end
55
+ def on_gvar(node); end
56
+ def on_gvasgn(node); end
57
+ def on_hash(node); end
58
+ def on_hash_pattern(node); end
59
+ def on_if(node); end
60
+ def on_if_guard(node); end
61
+ def on_iflipflop(node); end
62
+ def on_in_match(node); end
63
+ def on_in_pattern(node); end
64
+ def on_index(node); end
65
+ def on_indexasgn(node); end
66
+ def on_irange(node); end
67
+ def on_ivar(node); end
68
+ def on_ivasgn(node); end
69
+ def on_kwarg(node); end
70
+ def on_kwargs(node); end
71
+ def on_kwbegin(node); end
72
+ def on_kwoptarg(node); end
73
+ def on_kwrestarg(node); end
74
+ def on_kwsplat(node); end
75
+ def on_lambda(node); end
76
+ def on_lvar(node); end
77
+ def on_lvasgn(node); end
78
+ def on_masgn(node); end
79
+ def on_match_alt(node); end
80
+ def on_match_as(node); end
81
+ def on_match_current_line(node); end
82
+ def on_match_pattern(node); end
83
+ def on_match_pattern_p(node); end
84
+ def on_match_rest(node); end
85
+ def on_match_var(node); end
86
+ def on_match_with_lvasgn(node); end
87
+ def on_mlhs(node); end
88
+ def on_module(node); end
89
+ def on_next(node); end
90
+ def on_not(node); end
91
+ def on_nth_ref(node); end
92
+ def on_numblock(node); end
93
+ def on_op_asgn(node); end
94
+ def on_optarg(node); end
95
+ def on_or(node); end
96
+ def on_or_asgn(node); end
97
+ def on_pair(node); end
98
+ def on_pin(node); end
99
+ def on_postexe(node); end
100
+ def on_preexe(node); end
101
+ def on_procarg0(node); end
102
+ def on_redo(node); end
103
+ def on_regexp(node); end
104
+ def on_resbody(node); end
105
+ def on_rescue(node); end
106
+ def on_restarg(node); end
107
+ def on_restarg_expr(node); end
108
+ def on_retry(node); end
109
+ def on_return(node); end
110
+ def on_sclass(node); end
111
+ def on_send(node); end
112
+ def on_shadowarg(node); end
113
+ def on_splat(node); end
114
+ def on_super(node); end
115
+ def on_undef(node); end
116
+ def on_unless_guard(node); end
117
+ def on_until(node); end
118
+ def on_until_post(node); end
119
+ def on_var(node); end
120
+ def on_vasgn(node); end
121
+ def on_when(node); end
122
+ def on_while(node); end
123
+ def on_while_post(node); end
124
+ def on_xstr(node); end
125
+ def on_yield(node); end
126
+ def process_argument_node(node); end
127
+ def process_regular_node(node); end
128
+ def process_var_asgn_node(node); end
129
+ def process_variable_node(node); end
130
+ end
131
+
132
+ class Parser::Base < ::Racc::Parser
133
+ def initialize(builder = T.unsafe(nil)); end
134
+
135
+ def builder; end
136
+ def context; end
137
+ def current_arg_stack; end
138
+ def diagnostics; end
139
+ def lexer; end
140
+ def max_numparam_stack; end
141
+ def parse(source_buffer); end
142
+ def parse_with_comments(source_buffer); end
143
+ def pattern_hash_keys; end
144
+ def pattern_variables; end
145
+ def reset; end
146
+ def source_buffer; end
147
+ def static_env; end
148
+ def tokenize(source_buffer, recover = T.unsafe(nil)); end
149
+
150
+ private
151
+
152
+ def check_kwarg_name(name_t); end
153
+ def diagnostic(level, reason, arguments, location_t, highlights_ts = T.unsafe(nil)); end
154
+ def next_token; end
155
+ def on_error(error_token_id, error_value, value_stack); end
156
+
157
+ class << self
158
+ def default_parser; end
159
+ def parse(string, file = T.unsafe(nil), line = T.unsafe(nil)); end
160
+ def parse_file(filename); end
161
+ def parse_file_with_comments(filename); end
162
+ def parse_with_comments(string, file = T.unsafe(nil), line = T.unsafe(nil)); end
163
+
164
+ private
165
+
166
+ def setup_source_buffer(file, line, string, encoding); end
167
+ end
168
+ end
169
+
170
+ module Parser::Builders; end
171
+
172
+ class Parser::Builders::Default
173
+ def initialize; end
174
+
175
+ def __ENCODING__(__ENCODING__t); end
176
+ def __FILE__(__FILE__t); end
177
+ def __LINE__(__LINE__t); end
178
+ def accessible(node); end
179
+ def alias(alias_t, to, from); end
180
+ def arg(name_t); end
181
+ def arg_expr(expr); end
182
+ def args(begin_t, args, end_t, check_args = T.unsafe(nil)); end
183
+ def array(begin_t, elements, end_t); end
184
+ def array_pattern(lbrack_t, elements, rbrack_t); end
185
+ def assign(lhs, eql_t, rhs); end
186
+ def assignable(node); end
187
+ def associate(begin_t, pairs, end_t); end
188
+ def attr_asgn(receiver, dot_t, selector_t); end
189
+ def back_ref(token); end
190
+ def begin(begin_t, body, end_t); end
191
+ 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
192
+ def begin_keyword(begin_t, body, end_t); end
193
+ def binary_op(receiver, operator_t, arg); end
194
+ def block(method_call, begin_t, args, body, end_t); end
195
+ def block_pass(amper_t, arg); end
196
+ def blockarg(amper_t, name_t); end
197
+ def blockarg_expr(amper_t, expr); end
198
+ def call_lambda(lambda_t); end
199
+ def call_method(receiver, dot_t, selector_t, lparen_t = T.unsafe(nil), args = T.unsafe(nil), rparen_t = T.unsafe(nil)); end
200
+ def call_type_for_dot(dot_t); end
201
+ def case(case_t, expr, when_bodies, else_t, else_body, end_t); end
202
+ def case_match(case_t, expr, in_bodies, else_t, else_body, end_t); end
203
+ def character(char_t); end
204
+ def complex(complex_t); end
205
+ def compstmt(statements); end
206
+ def condition(cond_t, cond, then_t, if_true, else_t, if_false, end_t); end
207
+ def condition_mod(if_true, if_false, cond_t, cond); end
208
+ def const(name_t); end
209
+ def const_fetch(scope, t_colon2, name_t); end
210
+ def const_global(t_colon3, name_t); end
211
+ def const_op_assignable(node); end
212
+ def const_pattern(const, ldelim_t, pattern, rdelim_t); end
213
+ def cvar(token); end
214
+ def dedent_string(node, dedent_level); end
215
+ def def_class(class_t, name, lt_t, superclass, body, end_t); end
216
+ def def_endless_method(def_t, name_t, args, assignment_t, body); end
217
+ def def_endless_singleton(def_t, definee, dot_t, name_t, args, assignment_t, body); end
218
+ def def_method(def_t, name_t, args, body, end_t); end
219
+ def def_module(module_t, name, body, end_t); end
220
+ def def_sclass(class_t, lshft_t, expr, body, end_t); end
221
+ def def_singleton(def_t, definee, dot_t, name_t, args, body, end_t); end
222
+ def emit_file_line_as_literals; end
223
+ def emit_file_line_as_literals=(_arg0); end
224
+ def false(false_t); end
225
+ def find_pattern(lbrack_t, elements, rbrack_t); end
226
+ def float(float_t); end
227
+ def for(for_t, iterator, in_t, iteratee, do_t, body, end_t); end
228
+ def forward_arg(dots_t); end
229
+ def forward_only_args(begin_t, dots_t, end_t); end
230
+ def forwarded_args(dots_t); end
231
+ def gvar(token); end
232
+ def hash_pattern(lbrace_t, kwargs, rbrace_t); end
233
+ def ident(token); end
234
+ def if_guard(if_t, if_body); end
235
+ def in_match(lhs, in_t, rhs); end
236
+ def in_pattern(in_t, pattern, guard, then_t, body); end
237
+ def index(receiver, lbrack_t, indexes, rbrack_t); end
238
+ def index_asgn(receiver, lbrack_t, indexes, rbrack_t); end
239
+ def integer(integer_t); end
240
+ def ivar(token); end
241
+ def keyword_cmd(type, keyword_t, lparen_t = T.unsafe(nil), args = T.unsafe(nil), rparen_t = T.unsafe(nil)); end
242
+ def kwarg(name_t); end
243
+ def kwnilarg(dstar_t, nil_t); end
244
+ def kwoptarg(name_t, value); end
245
+ def kwrestarg(dstar_t, name_t = T.unsafe(nil)); end
246
+ def kwsplat(dstar_t, arg); end
247
+ def logical_op(type, lhs, op_t, rhs); end
248
+ def loop(type, keyword_t, cond, do_t, body, end_t); end
249
+ def loop_mod(type, body, keyword_t, cond); end
250
+ def match_alt(left, pipe_t, right); end
251
+ def match_as(value, assoc_t, as); end
252
+ def match_hash_var(name_t); end
253
+ def match_hash_var_from_str(begin_t, strings, end_t); end
254
+ def match_label(label_type, label); end
255
+ def match_nil_pattern(dstar_t, nil_t); end
256
+ def match_op(receiver, match_t, arg); end
257
+ def match_pair(label_type, label, value); end
258
+ def match_pattern(lhs, match_t, rhs); end
259
+ def match_pattern_p(lhs, match_t, rhs); end
260
+ def match_rest(star_t, name_t = T.unsafe(nil)); end
261
+ def match_var(name_t); end
262
+ def match_with_trailing_comma(match, comma_t); end
263
+ def multi_assign(lhs, eql_t, rhs); end
264
+ def multi_lhs(begin_t, items, end_t); end
265
+ def nil(nil_t); end
266
+ def not_op(not_t, begin_t = T.unsafe(nil), receiver = T.unsafe(nil), end_t = T.unsafe(nil)); end
267
+ def nth_ref(token); end
268
+ def numargs(max_numparam); end
269
+ def objc_kwarg(kwname_t, assoc_t, name_t); end
270
+ def objc_restarg(star_t, name = T.unsafe(nil)); end
271
+ def objc_varargs(pair, rest_of_varargs); end
272
+ def op_assign(lhs, op_t, rhs); end
273
+ def optarg(name_t, eql_t, value); end
274
+ def pair(key, assoc_t, value); end
275
+ def pair_keyword(key_t, value); end
276
+ def pair_list_18(list); end
277
+ def pair_quoted(begin_t, parts, end_t, value); end
278
+ def parser; end
279
+ def parser=(_arg0); end
280
+ def pin(pin_t, var); end
281
+ def postexe(postexe_t, lbrace_t, compstmt, rbrace_t); end
282
+ def preexe(preexe_t, lbrace_t, compstmt, rbrace_t); end
283
+ def procarg0(arg); end
284
+ def range_exclusive(lhs, dot3_t, rhs); end
285
+ def range_inclusive(lhs, dot2_t, rhs); end
286
+ def rational(rational_t); end
287
+ def regexp_compose(begin_t, parts, end_t, options); end
288
+ def regexp_options(regopt_t); end
289
+ def rescue_body(rescue_t, exc_list, assoc_t, exc_var, then_t, compound_stmt); end
290
+ def restarg(star_t, name_t = T.unsafe(nil)); end
291
+ def restarg_expr(star_t, expr = T.unsafe(nil)); end
292
+ def self(token); end
293
+ def shadowarg(name_t); end
294
+ def splat(star_t, arg = T.unsafe(nil)); end
295
+ def string(string_t); end
296
+ def string_compose(begin_t, parts, end_t); end
297
+ def string_internal(string_t); end
298
+ def symbol(symbol_t); end
299
+ def symbol_compose(begin_t, parts, end_t); end
300
+ def symbol_internal(symbol_t); end
301
+ def symbols_compose(begin_t, parts, end_t); end
302
+ def ternary(cond, question_t, if_true, colon_t, if_false); end
303
+ def true(true_t); end
304
+ def unary_num(unary_t, numeric); end
305
+ def unary_op(op_t, receiver); end
306
+ def undef_method(undef_t, names); end
307
+ def unless_guard(unless_t, unless_body); end
308
+ def when(when_t, patterns, then_t, body); end
309
+ def word(parts); end
310
+ def words_compose(begin_t, parts, end_t); end
311
+ def xstring_compose(begin_t, parts, end_t); end
312
+
313
+ private
314
+
315
+ def arg_name_collides?(this_name, that_name); end
316
+ def arg_prefix_map(op_t, name_t = T.unsafe(nil)); end
317
+ def binary_op_map(left_e, op_t, right_e); end
318
+ def block_map(receiver_l, begin_t, end_t); end
319
+ def check_assignment_to_numparam(name, loc); end
320
+ def check_condition(cond); end
321
+ def check_duplicate_arg(this_arg, map = T.unsafe(nil)); end
322
+ def check_duplicate_args(args, map = T.unsafe(nil)); end
323
+ def check_duplicate_pattern_key(name, loc); end
324
+ def check_duplicate_pattern_variable(name, loc); end
325
+ def check_lvar_name(name, loc); end
326
+ def check_reserved_for_numparam(name, loc); end
327
+ def collapse_string_parts?(parts); end
328
+ def collection_map(begin_t, parts, end_t); end
329
+ def condition_map(keyword_t, cond_e, begin_t, body_e, else_t, else_e, end_t); end
330
+ def constant_map(scope, colon2_t, name_t); end
331
+ def definition_map(keyword_t, operator_t, name_t, end_t); end
332
+ def delimited_string_map(string_t); end
333
+ def diagnostic(type, reason, arguments, location, highlights = T.unsafe(nil)); end
334
+ def eh_keyword_map(compstmt_e, keyword_t, body_es, else_t, else_e); end
335
+ def endless_definition_map(keyword_t, operator_t, name_t, assignment_t, body_e); end
336
+ def expr_map(loc); end
337
+ def for_map(keyword_t, in_t, begin_t, end_t); end
338
+ def guard_map(keyword_t, guard_body_e); end
339
+ def index_map(receiver_e, lbrack_t, rbrack_t); end
340
+ def join_exprs(left_expr, right_expr); end
341
+ def keyword_map(keyword_t, begin_t, args, end_t); end
342
+ def keyword_mod_map(pre_e, keyword_t, post_e); end
343
+ def kwarg_map(name_t, value_e = T.unsafe(nil)); end
344
+ def kwargs?(node); end
345
+ def loc(token); end
346
+ def module_definition_map(keyword_t, name_e, operator_t, end_t); end
347
+ def n(type, children, source_map); end
348
+ def n0(type, source_map); end
349
+ def numeric(kind, token); end
350
+ def pair_keyword_map(key_t, value_e); end
351
+ def pair_quoted_map(begin_t, end_t, value_e); end
352
+ def prefix_string_map(symbol); end
353
+ def range_map(start_e, op_t, end_e); end
354
+ def regexp_map(begin_t, end_t, options_e); end
355
+ def rescue_body_map(keyword_t, exc_list_e, assoc_t, exc_var_e, then_t, compstmt_e); end
356
+ def rewrite_hash_args_to_kwargs(args); end
357
+ def send_binary_op_map(lhs_e, selector_t, rhs_e); end
358
+ def send_index_map(receiver_e, lbrack_t, rbrack_t); end
359
+ def send_map(receiver_e, dot_t, selector_t, begin_t = T.unsafe(nil), args = T.unsafe(nil), end_t = T.unsafe(nil)); end
360
+ def send_unary_op_map(selector_t, arg_e); end
361
+ def static_regexp(parts, options); end
362
+ def static_regexp_node(node); end
363
+ def static_string(nodes); end
364
+ def string_map(begin_t, parts, end_t); end
365
+ def string_value(token); end
366
+ def ternary_map(begin_e, question_t, mid_e, colon_t, end_e); end
367
+ def token_map(token); end
368
+ def unary_op_map(op_t, arg_e = T.unsafe(nil)); end
369
+ def unquoted_map(token); end
370
+ def validate_definee(definee); end
371
+ def value(token); end
372
+ def var_send_map(variable_e); end
373
+ def variable_map(name_t); end
374
+
375
+ class << self
376
+ def emit_arg_inside_procarg0; end
377
+ def emit_arg_inside_procarg0=(_arg0); end
378
+ def emit_encoding; end
379
+ def emit_encoding=(_arg0); end
380
+ def emit_forward_arg; end
381
+ def emit_forward_arg=(_arg0); end
382
+ def emit_index; end
383
+ def emit_index=(_arg0); end
384
+ def emit_kwargs; end
385
+ def emit_kwargs=(_arg0); end
386
+ def emit_lambda; end
387
+ def emit_lambda=(_arg0); end
388
+ def emit_match_pattern; end
389
+ def emit_match_pattern=(_arg0); end
390
+ def emit_procarg0; end
391
+ def emit_procarg0=(_arg0); end
392
+ def modernize; end
393
+ end
394
+ end
395
+
396
+ class Parser::ClobberingError < ::RuntimeError; end
397
+
398
+ class Parser::Context
399
+ def initialize; end
400
+
401
+ def class_definition_allowed?; end
402
+ def dynamic_const_definition_allowed?; end
403
+ def empty?; end
404
+ def in_block?; end
405
+ def in_class?; end
406
+ def in_dynamic_block?; end
407
+ def in_lambda?; end
408
+ def indirectly_in_def?; end
409
+ def module_definition_allowed?; end
410
+ def pop; end
411
+ def push(state); end
412
+ def reset; end
413
+ def stack; end
414
+ end
415
+
416
+ class Parser::CurrentArgStack
417
+ def initialize; end
418
+
419
+ def empty?; end
420
+ def pop; end
421
+ def push(value); end
422
+ def reset; end
423
+ def set(value); end
424
+ def stack; end
425
+ def top; end
426
+ end
427
+
428
+ module Parser::Deprecation
429
+ def warn_of_deprecation; end
430
+ def warned_of_deprecation=(_arg0); end
431
+ end
432
+
433
+ class Parser::Diagnostic
434
+ def initialize(level, reason, arguments, location, highlights = T.unsafe(nil)); end
435
+
436
+ def arguments; end
437
+ def highlights; end
438
+ def level; end
439
+ def location; end
440
+ def message; end
441
+ def reason; end
442
+ def render; end
443
+
444
+ private
445
+
446
+ def first_line_only(range); end
447
+ def last_line_only(range); end
448
+ def render_line(range, ellipsis = T.unsafe(nil), range_end = T.unsafe(nil)); end
449
+ end
450
+
451
+ class Parser::Diagnostic::Engine
452
+ def initialize(consumer = T.unsafe(nil)); end
453
+
454
+ def all_errors_are_fatal; end
455
+ def all_errors_are_fatal=(_arg0); end
456
+ def consumer; end
457
+ def consumer=(_arg0); end
458
+ def ignore_warnings; end
459
+ def ignore_warnings=(_arg0); end
460
+ def process(diagnostic); end
461
+
462
+ protected
463
+
464
+ def ignore?(diagnostic); end
465
+ def raise?(diagnostic); end
466
+ end
467
+
468
+ Parser::Diagnostic::LEVELS = T.let(T.unsafe(nil), Array)
469
+
470
+ class Parser::Lexer
471
+ def initialize(version); end
472
+
473
+ def advance; end
474
+ def cmdarg; end
475
+ def cmdarg=(_arg0); end
476
+ def cmdarg_stack; end
477
+ def command_start; end
478
+ def command_start=(_arg0); end
479
+ def comments; end
480
+ def comments=(_arg0); end
481
+ def cond; end
482
+ def cond=(_arg0); end
483
+ def cond_stack; end
484
+ def context; end
485
+ def context=(_arg0); end
486
+ def dedent_level; end
487
+ def diagnostics; end
488
+ def diagnostics=(_arg0); end
489
+ def encoding; end
490
+ def force_utf32; end
491
+ def force_utf32=(_arg0); end
492
+ def in_kwarg; end
493
+ def in_kwarg=(_arg0); end
494
+ def lambda_stack; end
495
+ def paren_nest; end
496
+ def pop_cmdarg; end
497
+ def pop_cond; end
498
+ def push_cmdarg; end
499
+ def push_cond; end
500
+ def reset(reset_state = T.unsafe(nil)); end
501
+ def source_buffer; end
502
+ def source_buffer=(source_buffer); end
503
+ def state; end
504
+ def state=(state); end
505
+ def static_env; end
506
+ def static_env=(_arg0); end
507
+ def tokens; end
508
+ def tokens=(_arg0); end
509
+
510
+ protected
511
+
512
+ def arg_or_cmdarg(cmd_state); end
513
+ def diagnostic(type, reason, arguments = T.unsafe(nil), location = T.unsafe(nil), highlights = T.unsafe(nil)); end
514
+ def emit(type, value = T.unsafe(nil), s = T.unsafe(nil), e = T.unsafe(nil)); end
515
+ def emit_comment(s = T.unsafe(nil), e = T.unsafe(nil)); end
516
+ def emit_do(do_block = T.unsafe(nil)); end
517
+ def emit_table(table, s = T.unsafe(nil), e = T.unsafe(nil)); end
518
+ def encode_escape(ord); end
519
+ def eof_codepoint?(point); end
520
+ def literal; end
521
+ def next_state_for_literal(literal); end
522
+ def pop_literal; end
523
+ def push_literal(*args); end
524
+ def range(s = T.unsafe(nil), e = T.unsafe(nil)); end
525
+ def stack_pop; end
526
+ def tok(s = T.unsafe(nil), e = T.unsafe(nil)); end
527
+ def version?(*versions); end
528
+
529
+ class << self
530
+ def lex_en_expr_arg; end
531
+ def lex_en_expr_arg=(_arg0); end
532
+ def lex_en_expr_beg; end
533
+ def lex_en_expr_beg=(_arg0); end
534
+ def lex_en_expr_cmdarg; end
535
+ def lex_en_expr_cmdarg=(_arg0); end
536
+ def lex_en_expr_dot; end
537
+ def lex_en_expr_dot=(_arg0); end
538
+ def lex_en_expr_end; end
539
+ def lex_en_expr_end=(_arg0); end
540
+ def lex_en_expr_endarg; end
541
+ def lex_en_expr_endarg=(_arg0); end
542
+ def lex_en_expr_endfn; end
543
+ def lex_en_expr_endfn=(_arg0); end
544
+ def lex_en_expr_fname; end
545
+ def lex_en_expr_fname=(_arg0); end
546
+ def lex_en_expr_labelarg; end
547
+ def lex_en_expr_labelarg=(_arg0); end
548
+ def lex_en_expr_mid; end
549
+ def lex_en_expr_mid=(_arg0); end
550
+ def lex_en_expr_value; end
551
+ def lex_en_expr_value=(_arg0); end
552
+ def lex_en_expr_variable; end
553
+ def lex_en_expr_variable=(_arg0); end
554
+ def lex_en_interp_backslash_delimited; end
555
+ def lex_en_interp_backslash_delimited=(_arg0); end
556
+ def lex_en_interp_backslash_delimited_words; end
557
+ def lex_en_interp_backslash_delimited_words=(_arg0); end
558
+ def lex_en_interp_string; end
559
+ def lex_en_interp_string=(_arg0); end
560
+ def lex_en_interp_words; end
561
+ def lex_en_interp_words=(_arg0); end
562
+ def lex_en_leading_dot; end
563
+ def lex_en_leading_dot=(_arg0); end
564
+ def lex_en_line_begin; end
565
+ def lex_en_line_begin=(_arg0); end
566
+ def lex_en_line_comment; end
567
+ def lex_en_line_comment=(_arg0); end
568
+ def lex_en_plain_backslash_delimited; end
569
+ def lex_en_plain_backslash_delimited=(_arg0); end
570
+ def lex_en_plain_backslash_delimited_words; end
571
+ def lex_en_plain_backslash_delimited_words=(_arg0); end
572
+ def lex_en_plain_string; end
573
+ def lex_en_plain_string=(_arg0); end
574
+ def lex_en_plain_words; end
575
+ def lex_en_plain_words=(_arg0); end
576
+ def lex_en_regexp_modifiers; end
577
+ def lex_en_regexp_modifiers=(_arg0); end
578
+ def lex_error; end
579
+ def lex_error=(_arg0); end
580
+ def lex_start; end
581
+ def lex_start=(_arg0); end
582
+
583
+ private
584
+
585
+ def _lex_eof_trans; end
586
+ def _lex_eof_trans=(_arg0); end
587
+ def _lex_from_state_actions; end
588
+ def _lex_from_state_actions=(_arg0); end
589
+ def _lex_index_offsets; end
590
+ def _lex_index_offsets=(_arg0); end
591
+ def _lex_indicies; end
592
+ def _lex_indicies=(_arg0); end
593
+ def _lex_key_spans; end
594
+ def _lex_key_spans=(_arg0); end
595
+ def _lex_to_state_actions; end
596
+ def _lex_to_state_actions=(_arg0); end
597
+ def _lex_trans_actions; end
598
+ def _lex_trans_actions=(_arg0); end
599
+ def _lex_trans_keys; end
600
+ def _lex_trans_keys=(_arg0); end
601
+ def _lex_trans_targs; end
602
+ def _lex_trans_targs=(_arg0); end
603
+ end
604
+ end
605
+
606
+ class Parser::Lexer::Dedenter
607
+ def initialize(dedent_level); end
608
+
609
+ def dedent(string); end
610
+ def interrupt; end
611
+ end
612
+
613
+ Parser::Lexer::Dedenter::TAB_WIDTH = T.let(T.unsafe(nil), Integer)
614
+ Parser::Lexer::ESCAPES = T.let(T.unsafe(nil), Hash)
615
+ Parser::Lexer::KEYWORDS = T.let(T.unsafe(nil), Hash)
616
+ Parser::Lexer::KEYWORDS_BEGIN = T.let(T.unsafe(nil), Hash)
617
+ Parser::Lexer::LEX_STATES = T.let(T.unsafe(nil), Hash)
618
+
619
+ class Parser::Lexer::Literal
620
+ def initialize(lexer, str_type, delimiter, str_s, heredoc_e = T.unsafe(nil), indent = T.unsafe(nil), dedent_body = T.unsafe(nil), label_allowed = T.unsafe(nil)); end
621
+
622
+ def backslash_delimited?; end
623
+ def dedent_level; end
624
+ def end_interp_brace_and_try_closing; end
625
+ def extend_content; end
626
+ def extend_space(ts, te); end
627
+ def extend_string(string, ts, te); end
628
+ def flush_string; end
629
+ def heredoc?; end
630
+ def heredoc_e; end
631
+ def infer_indent_level(line); end
632
+ def interpolate?; end
633
+ def munge_escape?(character); end
634
+ def nest_and_try_closing(delimiter, ts, te, lookahead = T.unsafe(nil)); end
635
+ def plain_heredoc?; end
636
+ def regexp?; end
637
+ def saved_herebody_s; end
638
+ def saved_herebody_s=(_arg0); end
639
+ def squiggly_heredoc?; end
640
+ def start_interp_brace; end
641
+ def str_s; end
642
+ def supports_line_continuation_via_slash?; end
643
+ def type; end
644
+ def words?; end
645
+
646
+ protected
647
+
648
+ def clear_buffer; end
649
+ def coerce_encoding(string); end
650
+ def delimiter?(delimiter); end
651
+ def emit(token, type, s, e); end
652
+ def emit_start_tok; end
653
+ end
654
+
655
+ Parser::Lexer::Literal::DELIMITERS = T.let(T.unsafe(nil), Hash)
656
+ Parser::Lexer::Literal::TYPES = T.let(T.unsafe(nil), Hash)
657
+ Parser::Lexer::PUNCTUATION = T.let(T.unsafe(nil), Hash)
658
+ Parser::Lexer::PUNCTUATION_BEGIN = T.let(T.unsafe(nil), Hash)
659
+ Parser::Lexer::REGEXP_META_CHARACTERS = T.let(T.unsafe(nil), Regexp)
660
+
661
+ class Parser::Lexer::StackState
662
+ def initialize(name); end
663
+
664
+ def active?; end
665
+ def clear; end
666
+ def empty?; end
667
+ def inspect; end
668
+ def lexpop; end
669
+ def pop; end
670
+ def push(bit); end
671
+ def to_s; end
672
+ end
673
+
674
+ Parser::MESSAGES = T.let(T.unsafe(nil), Hash)
675
+
676
+ class Parser::MaxNumparamStack
677
+ def initialize; end
678
+
679
+ def empty?; end
680
+ def has_numparams?; end
681
+ def has_ordinary_params!; end
682
+ def has_ordinary_params?; end
683
+ def pop; end
684
+ def push; end
685
+ def register(numparam); end
686
+ def stack; end
687
+ def top; end
688
+
689
+ private
690
+
691
+ def set(value); end
692
+ end
693
+
694
+ Parser::MaxNumparamStack::ORDINARY_PARAMS = T.let(T.unsafe(nil), Integer)
695
+
696
+ module Parser::Messages
697
+ class << self
698
+ def compile(reason, arguments); end
699
+ end
700
+ end
701
+
702
+ module Parser::Meta; end
703
+ Parser::Meta::NODE_TYPES = T.let(T.unsafe(nil), Set)
704
+
705
+ class Parser::Rewriter < ::Parser::AST::Processor
706
+ extend ::Parser::Deprecation
707
+
708
+ def initialize(*_arg0); end
709
+
710
+ def assignment?(node); end
711
+ def insert_after(range, content); end
712
+ def insert_before(range, content); end
713
+ def remove(range); end
714
+ def replace(range, content); end
715
+ def rewrite(source_buffer, ast); end
716
+ def wrap(range, before, after); end
717
+ end
718
+
719
+ Parser::Rewriter::DEPRECATION_WARNING = T.let(T.unsafe(nil), String)
720
+ module Parser::Source; end
721
+
722
+ class Parser::Source::Buffer
723
+ def initialize(name, first_line = T.unsafe(nil), source: T.unsafe(nil)); end
724
+
725
+ def column_for_position(position); end
726
+ def decompose_position(position); end
727
+ def first_line; end
728
+ def freeze; end
729
+ def inspect; end
730
+ def last_line; end
731
+ def line_for_position(position); end
732
+ def line_range(lineno); end
733
+ def name; end
734
+ def raw_source=(input); end
735
+ def read; end
736
+ def slice(range); end
737
+ def source; end
738
+ def source=(input); end
739
+ def source_line(lineno); end
740
+ def source_lines; end
741
+ def source_range; end
742
+
743
+ private
744
+
745
+ def bsearch(line_begins, position); end
746
+ def line_begins; end
747
+ def line_index_for_position(position); end
748
+
749
+ class << self
750
+ def recognize_encoding(string); end
751
+ def reencode_string(input); end
752
+ end
753
+ end
754
+
755
+ Parser::Source::Buffer::ENCODING_RE = T.let(T.unsafe(nil), Regexp)
756
+
757
+ class Parser::Source::Comment
758
+ def initialize(range); end
759
+
760
+ def ==(other); end
761
+ def document?; end
762
+ def inline?; end
763
+ def inspect; end
764
+ def loc; end
765
+ def location; end
766
+ def text; end
767
+ def type; end
768
+
769
+ class << self
770
+ def associate(ast, comments); end
771
+ def associate_locations(ast, comments); end
772
+ end
773
+ end
774
+
775
+ class Parser::Source::Comment::Associator
776
+ def initialize(ast, comments); end
777
+
778
+ def associate; end
779
+ def associate_locations; end
780
+ def skip_directives; end
781
+ def skip_directives=(_arg0); end
782
+
783
+ private
784
+
785
+ def advance_comment; end
786
+ def advance_through_directives; end
787
+ def associate_and_advance_comment(node); end
788
+ def children_in_source_order(node); end
789
+ def current_comment_before?(node); end
790
+ def current_comment_before_end?(node); end
791
+ def current_comment_decorates?(node); end
792
+ def do_associate; end
793
+ def process_leading_comments(node); end
794
+ def process_trailing_comments(node); end
795
+ def visit(node); end
796
+ end
797
+
798
+ Parser::Source::Comment::Associator::MAGIC_COMMENT_RE = T.let(T.unsafe(nil), Regexp)
799
+ Parser::Source::Comment::Associator::POSTFIX_TYPES = T.let(T.unsafe(nil), Set)
800
+
801
+ class Parser::Source::Map
802
+ def initialize(expression); end
803
+
804
+ def ==(other); end
805
+ def column; end
806
+ def expression; end
807
+ def first_line; end
808
+ def last_column; end
809
+ def last_line; end
810
+ def line; end
811
+ def node; end
812
+ def node=(node); end
813
+ def to_hash; end
814
+ def with_expression(expression_l); end
815
+
816
+ protected
817
+
818
+ def update_expression(expression_l); end
819
+ def with(&block); end
820
+
821
+ private
822
+
823
+ def initialize_copy(other); end
824
+ end
825
+
826
+ class Parser::Source::Map::Collection < ::Parser::Source::Map
827
+ def initialize(begin_l, end_l, expression_l); end
828
+
829
+ def begin; end
830
+ def end; end
831
+ end
832
+
833
+ class Parser::Source::Map::Condition < ::Parser::Source::Map
834
+ def initialize(keyword_l, begin_l, else_l, end_l, expression_l); end
835
+
836
+ def begin; end
837
+ def else; end
838
+ def end; end
839
+ def keyword; end
840
+ end
841
+
842
+ class Parser::Source::Map::Constant < ::Parser::Source::Map
843
+ def initialize(double_colon, name, expression); end
844
+
845
+ def double_colon; end
846
+ def name; end
847
+ def operator; end
848
+ def with_operator(operator_l); end
849
+
850
+ protected
851
+
852
+ def update_operator(operator_l); end
853
+ end
854
+
855
+ class Parser::Source::Map::Definition < ::Parser::Source::Map
856
+ def initialize(keyword_l, operator_l, name_l, end_l); end
857
+
858
+ def end; end
859
+ def keyword; end
860
+ def name; end
861
+ def operator; end
862
+ end
863
+
864
+ class Parser::Source::Map::For < ::Parser::Source::Map
865
+ def initialize(keyword_l, in_l, begin_l, end_l, expression_l); end
866
+
867
+ def begin; end
868
+ def end; end
869
+ def in; end
870
+ def keyword; end
871
+ end
872
+
873
+ class Parser::Source::Map::Heredoc < ::Parser::Source::Map
874
+ def initialize(begin_l, body_l, end_l); end
875
+
876
+ def heredoc_body; end
877
+ def heredoc_end; end
878
+ end
879
+
880
+ class Parser::Source::Map::Index < ::Parser::Source::Map
881
+ def initialize(begin_l, end_l, expression_l); end
882
+
883
+ def begin; end
884
+ def end; end
885
+ def operator; end
886
+ def with_operator(operator_l); end
887
+
888
+ protected
889
+
890
+ def update_operator(operator_l); end
891
+ end
892
+
893
+ class Parser::Source::Map::Keyword < ::Parser::Source::Map
894
+ def initialize(keyword_l, begin_l, end_l, expression_l); end
895
+
896
+ def begin; end
897
+ def end; end
898
+ def keyword; end
899
+ end
900
+
901
+ class Parser::Source::Map::MethodDefinition < ::Parser::Source::Map
902
+ def initialize(keyword_l, operator_l, name_l, end_l, assignment_l, body_l); end
903
+
904
+ def assignment; end
905
+ def end; end
906
+ def keyword; end
907
+ def name; end
908
+ def operator; end
909
+ end
910
+
911
+ class Parser::Source::Map::ObjcKwarg < ::Parser::Source::Map
912
+ def initialize(keyword_l, operator_l, argument_l, expression_l); end
913
+
914
+ def argument; end
915
+ def keyword; end
916
+ def operator; end
917
+ end
918
+
919
+ class Parser::Source::Map::Operator < ::Parser::Source::Map
920
+ def initialize(operator, expression); end
921
+
922
+ def operator; end
923
+ end
924
+
925
+ class Parser::Source::Map::RescueBody < ::Parser::Source::Map
926
+ def initialize(keyword_l, assoc_l, begin_l, expression_l); end
927
+
928
+ def assoc; end
929
+ def begin; end
930
+ def keyword; end
931
+ end
932
+
933
+ class Parser::Source::Map::Send < ::Parser::Source::Map
934
+ def initialize(dot_l, selector_l, begin_l, end_l, expression_l); end
935
+
936
+ def begin; end
937
+ def dot; end
938
+ def end; end
939
+ def operator; end
940
+ def selector; end
941
+ def with_operator(operator_l); end
942
+
943
+ protected
944
+
945
+ def update_operator(operator_l); end
946
+ end
947
+
948
+ class Parser::Source::Map::Ternary < ::Parser::Source::Map
949
+ def initialize(question_l, colon_l, expression_l); end
950
+
951
+ def colon; end
952
+ def question; end
953
+ end
954
+
955
+ class Parser::Source::Map::Variable < ::Parser::Source::Map
956
+ def initialize(name_l, expression_l = T.unsafe(nil)); end
957
+
958
+ def name; end
959
+ def operator; end
960
+ def with_operator(operator_l); end
961
+
962
+ protected
963
+
964
+ def update_operator(operator_l); end
965
+ end
966
+
967
+ class Parser::Source::Range
968
+ include ::Comparable
969
+ include ::RuboCop::AST::Ext::Range
970
+
971
+ def initialize(source_buffer, begin_pos, end_pos); end
972
+
973
+ def <=>(other); end
974
+ def adjust(begin_pos: T.unsafe(nil), end_pos: T.unsafe(nil)); end
975
+ def begin; end
976
+ def begin_pos; end
977
+ def column; end
978
+ def column_range; end
979
+ def contained?(other); end
980
+ def contains?(other); end
981
+ def crossing?(other); end
982
+ def disjoint?(other); end
983
+ def empty?; end
984
+ def end; end
985
+ def end_pos; end
986
+ def eql?(_arg0); end
987
+ def first_line; end
988
+ def hash; end
989
+ def inspect; end
990
+ def intersect(other); end
991
+ def is?(*what); end
992
+ def join(other); end
993
+ def last_column; end
994
+ def last_line; end
995
+ def length; end
996
+ def line; end
997
+ def overlaps?(other); end
998
+ def resize(new_size); end
999
+ def size; end
1000
+ def source; end
1001
+ def source_buffer; end
1002
+ def source_line; end
1003
+ def to_a; end
1004
+ def to_range; end
1005
+ def to_s; end
1006
+ def with(begin_pos: T.unsafe(nil), end_pos: T.unsafe(nil)); end
1007
+ end
1008
+
1009
+ class Parser::Source::Rewriter
1010
+ extend ::Parser::Deprecation
1011
+
1012
+ def initialize(source_buffer); end
1013
+
1014
+ def diagnostics; end
1015
+ def insert_after(range, content); end
1016
+ def insert_after_multi(range, content); end
1017
+ def insert_before(range, content); end
1018
+ def insert_before_multi(range, content); end
1019
+ def process; end
1020
+ def remove(range); end
1021
+ def replace(range, content); end
1022
+ def source_buffer; end
1023
+ def transaction; end
1024
+ def wrap(range, before, after); end
1025
+
1026
+ private
1027
+
1028
+ def active_clobber; end
1029
+ def active_clobber=(value); end
1030
+ def active_insertions; end
1031
+ def active_insertions=(value); end
1032
+ def active_queue; end
1033
+ def adjacent?(range1, range2); end
1034
+ def adjacent_insertion_mask(range); end
1035
+ def adjacent_insertions?(range); end
1036
+ def adjacent_position_mask(range); end
1037
+ def adjacent_updates?(range); end
1038
+ def append(action); end
1039
+ def can_merge?(action, existing); end
1040
+ def clobbered_insertion?(insertion); end
1041
+ def clobbered_position_mask(range); end
1042
+ def in_transaction?; end
1043
+ def merge_actions(action, existing); end
1044
+ def merge_actions!(action, existing); end
1045
+ def merge_replacements(actions); end
1046
+ def raise_clobber_error(action, existing); end
1047
+ def record_insertion(range); end
1048
+ def record_replace(range); end
1049
+ def replace_actions(old, updated); end
1050
+ def replace_compatible_with_insertion?(replace, insertion); end
1051
+ end
1052
+
1053
+ class Parser::Source::Rewriter::Action
1054
+ include ::Comparable
1055
+
1056
+ def initialize(range, replacement = T.unsafe(nil), allow_multiple_insertions = T.unsafe(nil), order = T.unsafe(nil)); end
1057
+
1058
+ def <=>(other); end
1059
+ def allow_multiple_insertions; end
1060
+ def allow_multiple_insertions?; end
1061
+ def order; end
1062
+ def range; end
1063
+ def replacement; end
1064
+ def to_s; end
1065
+ end
1066
+
1067
+ Parser::Source::Rewriter::DEPRECATION_WARNING = T.let(T.unsafe(nil), String)
1068
+
1069
+ class Parser::Source::TreeRewriter
1070
+ extend ::Parser::Deprecation
1071
+
1072
+ def initialize(source_buffer, crossing_deletions: T.unsafe(nil), different_replacements: T.unsafe(nil), swallowed_insertions: T.unsafe(nil)); end
1073
+
1074
+ def as_nested_actions; end
1075
+ def as_replacements; end
1076
+ def diagnostics; end
1077
+ def empty?; end
1078
+ def import!(foreign_rewriter, offset: T.unsafe(nil)); end
1079
+ def in_transaction?; end
1080
+ def insert_after(range, content); end
1081
+ def insert_after_multi(range, text); end
1082
+ def insert_before(range, content); end
1083
+ def insert_before_multi(range, text); end
1084
+ def inspect; end
1085
+ def merge(with); end
1086
+ def merge!(with); end
1087
+ def process; end
1088
+ def remove(range); end
1089
+ def replace(range, content); end
1090
+ def source_buffer; end
1091
+ def transaction; end
1092
+ def wrap(range, insert_before, insert_after); end
1093
+
1094
+ protected
1095
+
1096
+ def action_root; end
1097
+
1098
+ private
1099
+
1100
+ def action_summary; end
1101
+ def check_policy_validity; end
1102
+ def check_range_validity(range); end
1103
+ def combine(range, attributes); end
1104
+ def enforce_policy(event); end
1105
+ def trigger_policy(event, range: T.unsafe(nil), conflict: T.unsafe(nil), **arguments); end
1106
+ end
1107
+
1108
+ Parser::Source::TreeRewriter::ACTIONS = T.let(T.unsafe(nil), Array)
1109
+
1110
+ class Parser::Source::TreeRewriter::Action
1111
+ def initialize(range, enforcer, insert_before: T.unsafe(nil), replacement: T.unsafe(nil), insert_after: T.unsafe(nil), children: T.unsafe(nil)); end
1112
+
1113
+ def combine(action); end
1114
+ def contract; end
1115
+ def empty?; end
1116
+ def insert_after; end
1117
+ def insert_before; end
1118
+ def insertion?; end
1119
+ def moved(source_buffer, offset); end
1120
+ def nested_actions; end
1121
+ def ordered_replacements; end
1122
+ def range; end
1123
+ def replacement; end
1124
+
1125
+ protected
1126
+
1127
+ def analyse_hierarchy(action); end
1128
+ def bsearch_child_index(from = T.unsafe(nil)); end
1129
+ def call_enforcer_for_merge(action); end
1130
+ def check_fusible(action, *fusible); end
1131
+ def children; end
1132
+ def combine_children(more_children); end
1133
+ def do_combine(action); end
1134
+ def fuse_deletions(action, fusible, other_sibblings); end
1135
+ def merge(action); end
1136
+ def place_in_hierarchy(action); end
1137
+ def swallow(children); end
1138
+ 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
1139
+ end
1140
+
1141
+ Parser::Source::TreeRewriter::DEPRECATION_WARNING = T.let(T.unsafe(nil), String)
1142
+ Parser::Source::TreeRewriter::POLICY_TO_LEVEL = T.let(T.unsafe(nil), Hash)
1143
+
1144
+ class Parser::StaticEnvironment
1145
+ def initialize; end
1146
+
1147
+ def declare(name); end
1148
+ def declare_forward_args; end
1149
+ def declared?(name); end
1150
+ def declared_forward_args?; end
1151
+ def empty?; end
1152
+ def extend_dynamic; end
1153
+ def extend_static; end
1154
+ def reset; end
1155
+ def unextend; end
1156
+ end
1157
+
1158
+ Parser::StaticEnvironment::FORWARD_ARGS = T.let(T.unsafe(nil), Symbol)
1159
+
1160
+ class Parser::SyntaxError < ::StandardError
1161
+ def initialize(diagnostic); end
1162
+
1163
+ def diagnostic; end
1164
+ end
1165
+
1166
+ class Parser::TreeRewriter < ::Parser::AST::Processor
1167
+ def assignment?(node); end
1168
+ def insert_after(range, content); end
1169
+ def insert_before(range, content); end
1170
+ def remove(range); end
1171
+ def replace(range, content); end
1172
+ def rewrite(source_buffer, ast, **policy); end
1173
+ def wrap(range, before, after); end
1174
+ end
1175
+
1176
+ Parser::VERSION = T.let(T.unsafe(nil), String)
1177
+
1178
+ class Parser::VariablesStack
1179
+ def initialize; end
1180
+
1181
+ def declare(name); end
1182
+ def declared?(name); end
1183
+ def empty?; end
1184
+ def pop; end
1185
+ def push; end
1186
+ def reset; end
1187
+ end