dry-monads-sorbet 1.1.6 → 1.1.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (111) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/ci.yml +14 -22
  3. data/.gitignore +3 -1
  4. data/CHANGELOG.md +4 -0
  5. data/Gemfile +1 -6
  6. data/bin/tapioca +29 -0
  7. data/dry-monads-sorbet.gemspec +3 -2
  8. data/lib/bundled_rbi/dry-monads.rbi +3 -3
  9. data/lib/dry/monads/sorbet/version.rb +1 -1
  10. data/nix/sources.json +14 -0
  11. data/nix/sources.nix +174 -0
  12. data/run_ci.sh +7 -0
  13. data/shell.nix +20 -0
  14. data/sorbet/config +6 -0
  15. data/sorbet/rbi/gems/{ast.rbi → ast@2.4.2.rbi} +28 -22
  16. data/sorbet/rbi/gems/byebug@11.1.3.rbi +1568 -0
  17. data/sorbet/rbi/gems/coderay@1.1.3.rbi +1005 -0
  18. data/sorbet/rbi/gems/concurrent-ruby@1.1.9.rbi +915 -0
  19. data/sorbet/rbi/gems/diff-lcs@1.4.4.rbi +8 -0
  20. data/sorbet/rbi/gems/docile@1.4.0.rbi +54 -0
  21. data/sorbet/rbi/gems/dry-core@0.7.1.rbi +92 -0
  22. data/sorbet/rbi/gems/dry-equalizer@0.3.0.rbi +28 -0
  23. data/sorbet/rbi/gems/dry-monads@1.4.0.rbi +697 -0
  24. data/sorbet/rbi/gems/ffaker@2.20.0.rbi +3171 -0
  25. data/sorbet/rbi/gems/method_source@1.0.0.rbi +72 -0
  26. data/sorbet/rbi/gems/parallel@1.21.0.rbi +113 -0
  27. data/sorbet/rbi/gems/parser@3.0.2.0.rbi +1189 -0
  28. data/sorbet/rbi/gems/pry-byebug@3.8.0.rbi +458 -0
  29. data/sorbet/rbi/gems/{pry.rbi → pry@0.14.1.rbi} +2264 -1727
  30. data/sorbet/rbi/gems/{rainbow.rbi → rainbow@3.0.0.rbi} +90 -55
  31. data/sorbet/rbi/gems/{rake.rbi → rake@13.0.6.rbi} +578 -431
  32. data/sorbet/rbi/gems/rb-fsevent@0.11.0.rbi +8 -0
  33. data/sorbet/rbi/gems/rb-readline@0.5.5.rbi +884 -0
  34. data/sorbet/rbi/gems/rbi@0.0.6.rbi +1405 -0
  35. data/sorbet/rbi/gems/regexp_parser@2.1.1.rbi +1120 -0
  36. data/sorbet/rbi/gems/{rexml.rbi → rexml@3.2.5.rbi} +564 -497
  37. data/sorbet/rbi/gems/{rspec-core.rbi → rspec-core@3.10.1.rbi} +2345 -1766
  38. data/sorbet/rbi/gems/{rspec-expectations.rbi → rspec-expectations@3.10.1.rbi} +1149 -698
  39. data/sorbet/rbi/gems/{rspec-mocks.rbi → rspec-mocks@3.10.2.rbi} +1299 -936
  40. data/sorbet/rbi/gems/rspec-support@3.10.2.rbi +509 -0
  41. data/sorbet/rbi/gems/rspec@3.10.0.rbi +38 -0
  42. data/sorbet/rbi/gems/rubocop-ast@1.12.0.rbi +1938 -0
  43. data/sorbet/rbi/gems/rubocop-rspec@2.5.0.rbi +1786 -0
  44. data/sorbet/rbi/gems/rubocop@1.22.1.rbi +13252 -0
  45. data/sorbet/rbi/gems/ruby-progressbar@1.11.0.rbi +405 -0
  46. data/sorbet/rbi/gems/simplecov-html@0.12.3.rbi +89 -0
  47. data/sorbet/rbi/gems/simplecov@0.21.2.rbi +577 -0
  48. data/sorbet/rbi/gems/simplecov_json_formatter@0.1.3.rbi +8 -0
  49. data/sorbet/rbi/gems/spoom@1.1.5.rbi +1241 -0
  50. data/sorbet/rbi/gems/stackprof@0.2.17.rbi +98 -0
  51. data/sorbet/rbi/gems/tapioca@0.5.2.rbi +949 -0
  52. data/sorbet/rbi/gems/thor@1.1.0.rbi +839 -0
  53. data/sorbet/rbi/gems/unicode-display_width@2.1.0.rbi +26 -0
  54. data/sorbet/rbi/gems/unparser@0.6.0.rbi +8 -0
  55. data/sorbet/tapioca/require.rb +4 -0
  56. metadata +65 -68
  57. data/.ruby-version +0 -1
  58. data/sorbet/rbi/gems/activesupport.rbi +0 -1722
  59. data/sorbet/rbi/gems/byebug.rbi +0 -1041
  60. data/sorbet/rbi/gems/coderay.rbi +0 -285
  61. data/sorbet/rbi/gems/concurrent-ruby.rbi +0 -1586
  62. data/sorbet/rbi/gems/docile.rbi +0 -32
  63. data/sorbet/rbi/gems/dry-core.rbi +0 -38
  64. data/sorbet/rbi/gems/dry-equalizer.rbi +0 -26
  65. data/sorbet/rbi/gems/dry-monads.rbi +0 -510
  66. data/sorbet/rbi/gems/em-websocket.rbi +0 -225
  67. data/sorbet/rbi/gems/eventmachine.rbi +0 -489
  68. data/sorbet/rbi/gems/ffaker.rbi +0 -60
  69. data/sorbet/rbi/gems/guard.rbi +0 -397
  70. data/sorbet/rbi/gems/http_parser.rb.rbi +0 -37
  71. data/sorbet/rbi/gems/i18n.rbi +0 -133
  72. data/sorbet/rbi/gems/kwalify.rbi +0 -340
  73. data/sorbet/rbi/gems/listen.rbi +0 -324
  74. data/sorbet/rbi/gems/lumberjack.rbi +0 -300
  75. data/sorbet/rbi/gems/method_source.rbi +0 -64
  76. data/sorbet/rbi/gems/multi_json.rbi +0 -62
  77. data/sorbet/rbi/gems/nenv.rbi +0 -60
  78. data/sorbet/rbi/gems/notiffany.rbi +0 -215
  79. data/sorbet/rbi/gems/parallel.rbi +0 -82
  80. data/sorbet/rbi/gems/parser.rbi +0 -1846
  81. data/sorbet/rbi/gems/pry-byebug.rbi +0 -155
  82. data/sorbet/rbi/gems/rb-fsevent.rbi +0 -31
  83. data/sorbet/rbi/gems/rb-readline.rbi +0 -767
  84. data/sorbet/rbi/gems/reek.rbi +0 -1027
  85. data/sorbet/rbi/gems/regexp_parser.rbi +0 -913
  86. data/sorbet/rbi/gems/rspec-support.rbi +0 -280
  87. data/sorbet/rbi/gems/rspec.rbi +0 -15
  88. data/sorbet/rbi/gems/rubocop-ast.rbi +0 -1053
  89. data/sorbet/rbi/gems/rubocop-rspec.rbi +0 -937
  90. data/sorbet/rbi/gems/rubocop.rbi +0 -6841
  91. data/sorbet/rbi/gems/ruby-progressbar.rbi +0 -305
  92. data/sorbet/rbi/gems/shellany.rbi +0 -29
  93. data/sorbet/rbi/gems/shoulda-matchers.rbi +0 -1848
  94. data/sorbet/rbi/gems/simplecov-html.rbi +0 -35
  95. data/sorbet/rbi/gems/simplecov.rbi +0 -361
  96. data/sorbet/rbi/gems/sqlite3.rbi +0 -354
  97. data/sorbet/rbi/gems/stackprof.rbi +0 -52
  98. data/sorbet/rbi/gems/thor.rbi +0 -32
  99. data/sorbet/rbi/gems/thread_safe.rbi +0 -82
  100. data/sorbet/rbi/gems/timecop.rbi +0 -98
  101. data/sorbet/rbi/gems/tzinfo.rbi +0 -406
  102. data/sorbet/rbi/gems/unicode-display_width.rbi +0 -17
  103. data/sorbet/rbi/hidden-definitions/errors.txt +0 -7267
  104. data/sorbet/rbi/hidden-definitions/hidden.rbi +0 -14661
  105. data/sorbet/rbi/sorbet-typed/lib/activesupport/>=6.0.0.rc1/activesupport.rbi +0 -23
  106. data/sorbet/rbi/sorbet-typed/lib/activesupport/all/activesupport.rbi +0 -1431
  107. data/sorbet/rbi/sorbet-typed/lib/minitest/all/minitest.rbi +0 -108
  108. data/sorbet/rbi/sorbet-typed/lib/rainbow/all/rainbow.rbi +0 -276
  109. data/sorbet/rbi/sorbet-typed/lib/rubocop/~>0.85/rubocop.rbi +0 -2072
  110. data/sorbet/rbi/sorbet-typed/lib/rubocop-rspec/~>1.39/rubocop-rspec.rbi +0 -398
  111. data/sorbet/rbi/todo.rbi +0 -8
@@ -0,0 +1,1189 @@
1
+ # DO NOT EDIT MANUALLY
2
+ # This is an autogenerated file for types exported from the `parser` gem.
3
+ # Please instead update this file by running `bin/tapioca gem parser`.
4
+
5
+ # typed: true
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_by_identity(ast, comments); end
772
+ def associate_locations(ast, comments); end
773
+ end
774
+ end
775
+
776
+ class Parser::Source::Comment::Associator
777
+ def initialize(ast, comments); end
778
+
779
+ def associate; end
780
+ def associate_by_identity; end
781
+ def associate_locations; end
782
+ def skip_directives; end
783
+ def skip_directives=(_arg0); end
784
+
785
+ private
786
+
787
+ def advance_comment; end
788
+ def advance_through_directives; end
789
+ def associate_and_advance_comment(node); end
790
+ def children_in_source_order(node); end
791
+ def current_comment_before?(node); end
792
+ def current_comment_before_end?(node); end
793
+ def current_comment_decorates?(node); end
794
+ def do_associate; end
795
+ def process_leading_comments(node); end
796
+ def process_trailing_comments(node); end
797
+ def visit(node); end
798
+ end
799
+
800
+ Parser::Source::Comment::Associator::MAGIC_COMMENT_RE = T.let(T.unsafe(nil), Regexp)
801
+ Parser::Source::Comment::Associator::POSTFIX_TYPES = T.let(T.unsafe(nil), Set)
802
+
803
+ class Parser::Source::Map
804
+ def initialize(expression); end
805
+
806
+ def ==(other); end
807
+ def column; end
808
+ def expression; end
809
+ def first_line; end
810
+ def last_column; end
811
+ def last_line; end
812
+ def line; end
813
+ def node; end
814
+ def node=(node); end
815
+ def to_hash; end
816
+ def with_expression(expression_l); end
817
+
818
+ protected
819
+
820
+ def update_expression(expression_l); end
821
+ def with(&block); end
822
+
823
+ private
824
+
825
+ def initialize_copy(other); end
826
+ end
827
+
828
+ class Parser::Source::Map::Collection < ::Parser::Source::Map
829
+ def initialize(begin_l, end_l, expression_l); end
830
+
831
+ def begin; end
832
+ def end; end
833
+ end
834
+
835
+ class Parser::Source::Map::Condition < ::Parser::Source::Map
836
+ def initialize(keyword_l, begin_l, else_l, end_l, expression_l); end
837
+
838
+ def begin; end
839
+ def else; end
840
+ def end; end
841
+ def keyword; end
842
+ end
843
+
844
+ class Parser::Source::Map::Constant < ::Parser::Source::Map
845
+ def initialize(double_colon, name, expression); end
846
+
847
+ def double_colon; end
848
+ def name; end
849
+ def operator; end
850
+ def with_operator(operator_l); end
851
+
852
+ protected
853
+
854
+ def update_operator(operator_l); end
855
+ end
856
+
857
+ class Parser::Source::Map::Definition < ::Parser::Source::Map
858
+ def initialize(keyword_l, operator_l, name_l, end_l); end
859
+
860
+ def end; end
861
+ def keyword; end
862
+ def name; end
863
+ def operator; end
864
+ end
865
+
866
+ class Parser::Source::Map::For < ::Parser::Source::Map
867
+ def initialize(keyword_l, in_l, begin_l, end_l, expression_l); end
868
+
869
+ def begin; end
870
+ def end; end
871
+ def in; end
872
+ def keyword; end
873
+ end
874
+
875
+ class Parser::Source::Map::Heredoc < ::Parser::Source::Map
876
+ def initialize(begin_l, body_l, end_l); end
877
+
878
+ def heredoc_body; end
879
+ def heredoc_end; end
880
+ end
881
+
882
+ class Parser::Source::Map::Index < ::Parser::Source::Map
883
+ def initialize(begin_l, end_l, expression_l); end
884
+
885
+ def begin; end
886
+ def end; end
887
+ def operator; end
888
+ def with_operator(operator_l); end
889
+
890
+ protected
891
+
892
+ def update_operator(operator_l); end
893
+ end
894
+
895
+ class Parser::Source::Map::Keyword < ::Parser::Source::Map
896
+ def initialize(keyword_l, begin_l, end_l, expression_l); end
897
+
898
+ def begin; end
899
+ def end; end
900
+ def keyword; end
901
+ end
902
+
903
+ class Parser::Source::Map::MethodDefinition < ::Parser::Source::Map
904
+ def initialize(keyword_l, operator_l, name_l, end_l, assignment_l, body_l); end
905
+
906
+ def assignment; end
907
+ def end; end
908
+ def keyword; end
909
+ def name; end
910
+ def operator; end
911
+ end
912
+
913
+ class Parser::Source::Map::ObjcKwarg < ::Parser::Source::Map
914
+ def initialize(keyword_l, operator_l, argument_l, expression_l); end
915
+
916
+ def argument; end
917
+ def keyword; end
918
+ def operator; end
919
+ end
920
+
921
+ class Parser::Source::Map::Operator < ::Parser::Source::Map
922
+ def initialize(operator, expression); end
923
+
924
+ def operator; end
925
+ end
926
+
927
+ class Parser::Source::Map::RescueBody < ::Parser::Source::Map
928
+ def initialize(keyword_l, assoc_l, begin_l, expression_l); end
929
+
930
+ def assoc; end
931
+ def begin; end
932
+ def keyword; end
933
+ end
934
+
935
+ class Parser::Source::Map::Send < ::Parser::Source::Map
936
+ def initialize(dot_l, selector_l, begin_l, end_l, expression_l); end
937
+
938
+ def begin; end
939
+ def dot; end
940
+ def end; end
941
+ def operator; end
942
+ def selector; end
943
+ def with_operator(operator_l); end
944
+
945
+ protected
946
+
947
+ def update_operator(operator_l); end
948
+ end
949
+
950
+ class Parser::Source::Map::Ternary < ::Parser::Source::Map
951
+ def initialize(question_l, colon_l, expression_l); end
952
+
953
+ def colon; end
954
+ def question; end
955
+ end
956
+
957
+ class Parser::Source::Map::Variable < ::Parser::Source::Map
958
+ def initialize(name_l, expression_l = T.unsafe(nil)); end
959
+
960
+ def name; end
961
+ def operator; end
962
+ def with_operator(operator_l); end
963
+
964
+ protected
965
+
966
+ def update_operator(operator_l); end
967
+ end
968
+
969
+ class Parser::Source::Range
970
+ include ::Comparable
971
+ include ::RuboCop::AST::Ext::Range
972
+
973
+ def initialize(source_buffer, begin_pos, end_pos); end
974
+
975
+ def <=>(other); end
976
+ def adjust(begin_pos: T.unsafe(nil), end_pos: T.unsafe(nil)); end
977
+ def begin; end
978
+ def begin_pos; end
979
+ def column; end
980
+ def column_range; end
981
+ def contained?(other); end
982
+ def contains?(other); end
983
+ def crossing?(other); end
984
+ def disjoint?(other); end
985
+ def empty?; end
986
+ def end; end
987
+ def end_pos; end
988
+ def eql?(_arg0); end
989
+ def first_line; end
990
+ def hash; end
991
+ def inspect; end
992
+ def intersect(other); end
993
+ def is?(*what); end
994
+ def join(other); end
995
+ def last_column; end
996
+ def last_line; end
997
+ def length; end
998
+ def line; end
999
+ def overlaps?(other); end
1000
+ def resize(new_size); end
1001
+ def size; end
1002
+ def source; end
1003
+ def source_buffer; end
1004
+ def source_line; end
1005
+ def to_a; end
1006
+ def to_range; end
1007
+ def to_s; end
1008
+ def with(begin_pos: T.unsafe(nil), end_pos: T.unsafe(nil)); end
1009
+ end
1010
+
1011
+ class Parser::Source::Rewriter
1012
+ extend ::Parser::Deprecation
1013
+
1014
+ def initialize(source_buffer); end
1015
+
1016
+ def diagnostics; end
1017
+ def insert_after(range, content); end
1018
+ def insert_after_multi(range, content); end
1019
+ def insert_before(range, content); end
1020
+ def insert_before_multi(range, content); end
1021
+ def process; end
1022
+ def remove(range); end
1023
+ def replace(range, content); end
1024
+ def source_buffer; end
1025
+ def transaction; end
1026
+ def wrap(range, before, after); end
1027
+
1028
+ private
1029
+
1030
+ def active_clobber; end
1031
+ def active_clobber=(value); end
1032
+ def active_insertions; end
1033
+ def active_insertions=(value); end
1034
+ def active_queue; end
1035
+ def adjacent?(range1, range2); end
1036
+ def adjacent_insertion_mask(range); end
1037
+ def adjacent_insertions?(range); end
1038
+ def adjacent_position_mask(range); end
1039
+ def adjacent_updates?(range); end
1040
+ def append(action); end
1041
+ def can_merge?(action, existing); end
1042
+ def clobbered_insertion?(insertion); end
1043
+ def clobbered_position_mask(range); end
1044
+ def in_transaction?; end
1045
+ def merge_actions(action, existing); end
1046
+ def merge_actions!(action, existing); end
1047
+ def merge_replacements(actions); end
1048
+ def raise_clobber_error(action, existing); end
1049
+ def record_insertion(range); end
1050
+ def record_replace(range); end
1051
+ def replace_actions(old, updated); end
1052
+ def replace_compatible_with_insertion?(replace, insertion); end
1053
+ end
1054
+
1055
+ class Parser::Source::Rewriter::Action
1056
+ include ::Comparable
1057
+
1058
+ def initialize(range, replacement = T.unsafe(nil), allow_multiple_insertions = T.unsafe(nil), order = T.unsafe(nil)); end
1059
+
1060
+ def <=>(other); end
1061
+ def allow_multiple_insertions; end
1062
+ def allow_multiple_insertions?; end
1063
+ def order; end
1064
+ def range; end
1065
+ def replacement; end
1066
+ def to_s; end
1067
+ end
1068
+
1069
+ Parser::Source::Rewriter::DEPRECATION_WARNING = T.let(T.unsafe(nil), String)
1070
+
1071
+ class Parser::Source::TreeRewriter
1072
+ extend ::Parser::Deprecation
1073
+
1074
+ def initialize(source_buffer, crossing_deletions: T.unsafe(nil), different_replacements: T.unsafe(nil), swallowed_insertions: T.unsafe(nil)); end
1075
+
1076
+ def as_nested_actions; end
1077
+ def as_replacements; end
1078
+ def diagnostics; end
1079
+ def empty?; end
1080
+ def import!(foreign_rewriter, offset: T.unsafe(nil)); end
1081
+ def in_transaction?; end
1082
+ def insert_after(range, content); end
1083
+ def insert_after_multi(range, text); end
1084
+ def insert_before(range, content); end
1085
+ def insert_before_multi(range, text); end
1086
+ def inspect; end
1087
+ def merge(with); end
1088
+ def merge!(with); end
1089
+ def process; end
1090
+ def remove(range); end
1091
+ def replace(range, content); end
1092
+ def source_buffer; end
1093
+ def transaction; end
1094
+ def wrap(range, insert_before, insert_after); end
1095
+
1096
+ protected
1097
+
1098
+ def action_root; end
1099
+
1100
+ private
1101
+
1102
+ def action_summary; end
1103
+ def check_policy_validity; end
1104
+ def check_range_validity(range); end
1105
+ def combine(range, attributes); end
1106
+ def enforce_policy(event); end
1107
+ def trigger_policy(event, range: T.unsafe(nil), conflict: T.unsafe(nil), **arguments); end
1108
+ end
1109
+
1110
+ Parser::Source::TreeRewriter::ACTIONS = T.let(T.unsafe(nil), Array)
1111
+
1112
+ class Parser::Source::TreeRewriter::Action
1113
+ def initialize(range, enforcer, insert_before: T.unsafe(nil), replacement: T.unsafe(nil), insert_after: T.unsafe(nil), children: T.unsafe(nil)); end
1114
+
1115
+ def combine(action); end
1116
+ def contract; end
1117
+ def empty?; end
1118
+ def insert_after; end
1119
+ def insert_before; end
1120
+ def insertion?; end
1121
+ def moved(source_buffer, offset); end
1122
+ def nested_actions; end
1123
+ def ordered_replacements; end
1124
+ def range; end
1125
+ def replacement; end
1126
+
1127
+ protected
1128
+
1129
+ def analyse_hierarchy(action); end
1130
+ def bsearch_child_index(from = T.unsafe(nil)); end
1131
+ def call_enforcer_for_merge(action); end
1132
+ def check_fusible(action, *fusible); end
1133
+ def children; end
1134
+ def combine_children(more_children); end
1135
+ def do_combine(action); end
1136
+ def fuse_deletions(action, fusible, other_sibblings); end
1137
+ def merge(action); end
1138
+ def place_in_hierarchy(action); end
1139
+ def swallow(children); end
1140
+ 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
1141
+ end
1142
+
1143
+ Parser::Source::TreeRewriter::DEPRECATION_WARNING = T.let(T.unsafe(nil), String)
1144
+ Parser::Source::TreeRewriter::POLICY_TO_LEVEL = T.let(T.unsafe(nil), Hash)
1145
+
1146
+ class Parser::StaticEnvironment
1147
+ def initialize; end
1148
+
1149
+ def declare(name); end
1150
+ def declare_forward_args; end
1151
+ def declared?(name); end
1152
+ def declared_forward_args?; end
1153
+ def empty?; end
1154
+ def extend_dynamic; end
1155
+ def extend_static; end
1156
+ def reset; end
1157
+ def unextend; end
1158
+ end
1159
+
1160
+ Parser::StaticEnvironment::FORWARD_ARGS = T.let(T.unsafe(nil), Symbol)
1161
+
1162
+ class Parser::SyntaxError < ::StandardError
1163
+ def initialize(diagnostic); end
1164
+
1165
+ def diagnostic; end
1166
+ end
1167
+
1168
+ class Parser::TreeRewriter < ::Parser::AST::Processor
1169
+ def assignment?(node); end
1170
+ def insert_after(range, content); end
1171
+ def insert_before(range, content); end
1172
+ def remove(range); end
1173
+ def replace(range, content); end
1174
+ def rewrite(source_buffer, ast, **policy); end
1175
+ def wrap(range, before, after); end
1176
+ end
1177
+
1178
+ Parser::VERSION = T.let(T.unsafe(nil), String)
1179
+
1180
+ class Parser::VariablesStack
1181
+ def initialize; end
1182
+
1183
+ def declare(name); end
1184
+ def declared?(name); end
1185
+ def empty?; end
1186
+ def pop; end
1187
+ def push; end
1188
+ def reset; end
1189
+ end