ruby-lsp 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (80) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/ci.yml +6 -0
  3. data/.rubocop.yml +16 -0
  4. data/CHANGELOG.md +13 -0
  5. data/Gemfile +8 -5
  6. data/Gemfile.lock +55 -10
  7. data/README.md +40 -0
  8. data/VERSION +1 -1
  9. data/bin/tapioca +29 -0
  10. data/dev.yml +3 -0
  11. data/exe/ruby-lsp +19 -4
  12. data/lib/internal.rb +7 -0
  13. data/lib/ruby-lsp.rb +1 -0
  14. data/lib/ruby_lsp/cli.rb +12 -5
  15. data/lib/ruby_lsp/document.rb +37 -14
  16. data/lib/ruby_lsp/handler.rb +78 -23
  17. data/lib/ruby_lsp/requests/base_request.rb +11 -0
  18. data/lib/ruby_lsp/requests/code_actions.rb +1 -0
  19. data/lib/ruby_lsp/requests/diagnostics.rb +1 -0
  20. data/lib/ruby_lsp/requests/document_highlight.rb +96 -0
  21. data/lib/ruby_lsp/requests/document_symbol.rb +1 -10
  22. data/lib/ruby_lsp/requests/folding_ranges.rb +3 -2
  23. data/lib/ruby_lsp/requests/formatting.rb +2 -1
  24. data/lib/ruby_lsp/requests/rubocop_request.rb +1 -0
  25. data/lib/ruby_lsp/requests/selection_ranges.rb +1 -0
  26. data/lib/ruby_lsp/requests/semantic_highlighting.rb +17 -3
  27. data/lib/ruby_lsp/requests/support/rubocop_diagnostic.rb +1 -0
  28. data/lib/ruby_lsp/requests/support/selection_range.rb +1 -0
  29. data/lib/ruby_lsp/requests/support/semantic_token_encoder.rb +12 -1
  30. data/lib/ruby_lsp/requests/support/syntax_error_diagnostic.rb +1 -0
  31. data/lib/ruby_lsp/requests.rb +2 -0
  32. data/lib/ruby_lsp/store.rb +19 -3
  33. data/rakelib/check_docs.rake +4 -1
  34. data/ruby-lsp.gemspec +1 -0
  35. data/sorbet/config +4 -0
  36. data/sorbet/rbi/.rubocop.yml +8 -0
  37. data/sorbet/rbi/gems/ansi@1.5.0.rbi +338 -0
  38. data/sorbet/rbi/gems/ast@2.4.2.rbi +522 -0
  39. data/sorbet/rbi/gems/builder@3.2.4.rbi +418 -0
  40. data/sorbet/rbi/gems/coderay@1.1.3.rbi +8 -0
  41. data/sorbet/rbi/gems/debug@1.5.0.rbi +1273 -0
  42. data/sorbet/rbi/gems/diff-lcs@1.5.0.rbi +867 -0
  43. data/sorbet/rbi/gems/io-console@0.5.11.rbi +8 -0
  44. data/sorbet/rbi/gems/irb@1.4.1.rbi +376 -0
  45. data/sorbet/rbi/gems/language_server-protocol@3.16.0.3.rbi +7325 -0
  46. data/sorbet/rbi/gems/method_source@1.0.0.rbi +8 -0
  47. data/sorbet/rbi/gems/minitest-reporters@1.5.0.rbi +612 -0
  48. data/sorbet/rbi/gems/minitest@5.15.0.rbi +994 -0
  49. data/sorbet/rbi/gems/parallel@1.22.1.rbi +163 -0
  50. data/sorbet/rbi/gems/parser@3.1.2.0.rbi +3968 -0
  51. data/sorbet/rbi/gems/prettier_print@0.1.0.rbi +734 -0
  52. data/sorbet/rbi/gems/pry@0.14.1.rbi +8 -0
  53. data/sorbet/rbi/gems/rainbow@3.1.1.rbi +227 -0
  54. data/sorbet/rbi/gems/rake@13.0.6.rbi +1853 -0
  55. data/sorbet/rbi/gems/rbi@0.0.14.rbi +2337 -0
  56. data/sorbet/rbi/gems/regexp_parser@2.5.0.rbi +1854 -0
  57. data/sorbet/rbi/gems/reline@0.3.1.rbi +1274 -0
  58. data/sorbet/rbi/gems/rexml@3.2.5.rbi +3852 -0
  59. data/sorbet/rbi/gems/rubocop-ast@1.18.0.rbi +4180 -0
  60. data/sorbet/rbi/gems/rubocop-minitest@0.20.0.rbi +1369 -0
  61. data/sorbet/rbi/gems/rubocop-rake@0.6.0.rbi +246 -0
  62. data/sorbet/rbi/gems/rubocop-shopify@2.6.0.rbi +8 -0
  63. data/sorbet/rbi/gems/rubocop-sorbet@0.6.8.rbi +652 -0
  64. data/sorbet/rbi/gems/rubocop@1.30.0.rbi +36729 -0
  65. data/sorbet/rbi/gems/ruby-progressbar@1.11.0.rbi +732 -0
  66. data/sorbet/rbi/gems/spoom@1.1.11.rbi +1600 -0
  67. data/sorbet/rbi/gems/syntax_tree@2.7.1.rbi +6777 -0
  68. data/sorbet/rbi/gems/tapioca@0.8.1.rbi +1972 -0
  69. data/sorbet/rbi/gems/thor@1.2.1.rbi +2921 -0
  70. data/sorbet/rbi/gems/unicode-display_width@2.1.0.rbi +27 -0
  71. data/sorbet/rbi/gems/unparser@0.6.5.rbi +2789 -0
  72. data/sorbet/rbi/gems/webrick@1.7.0.rbi +1779 -0
  73. data/sorbet/rbi/gems/yard-sorbet@0.6.1.rbi +289 -0
  74. data/sorbet/rbi/gems/yard@0.9.27.rbi +13048 -0
  75. data/sorbet/rbi/shims/fiddle.rbi +4 -0
  76. data/sorbet/rbi/shims/hash.rbi +6 -0
  77. data/sorbet/rbi/shims/rdoc.rbi +4 -0
  78. data/sorbet/tapioca/config.yml +13 -0
  79. data/sorbet/tapioca/require.rb +7 -0
  80. metadata +64 -2
@@ -0,0 +1,1273 @@
1
+ # typed: false
2
+
3
+ # DO NOT EDIT MANUALLY
4
+ # This is an autogenerated file for types exported from the `debug` gem.
5
+ # Please instead update this file by running `bin/tapioca gem debug`.
6
+
7
+ class Binding
8
+ def b(pre: T.unsafe(nil), do: T.unsafe(nil), up_level: T.unsafe(nil)); end
9
+ def break(pre: T.unsafe(nil), do: T.unsafe(nil), up_level: T.unsafe(nil)); end
10
+ end
11
+
12
+ # $VERBOSE = true
13
+ module DEBUGGER__
14
+ class << self
15
+ def add_catch_breakpoint(pat); end
16
+
17
+ # manual configuration methods
18
+ def add_line_breakpoint(file, line, **kw); end
19
+
20
+ def capture_frames(_arg0); end
21
+
22
+ # Unix domain socket configuration
23
+ def check_dir_authority(path); end
24
+
25
+ def commands; end
26
+
27
+ # For case insensitive file system (like Windows)
28
+ # Note that this check is not enough because case sensitive/insensitive is
29
+ # depend on the file system. So this check is only roughly estimation.
30
+ def compare_path(a, b); end
31
+
32
+ def create_method_added_tracker; end
33
+ def create_unix_domain_socket_name(base_dir = T.unsafe(nil)); end
34
+ def create_unix_domain_socket_name_prefix(base_dir = T.unsafe(nil)); end
35
+ def frame_depth; end
36
+ def help; end
37
+ def helps; end
38
+ def info(msg); end
39
+ def initialize_session(&init_ui); end
40
+ def load_rc; end
41
+ def log(level, msg); end
42
+
43
+ # @private
44
+ def method_added(tp); end
45
+
46
+ def open(host: T.unsafe(nil), port: T.unsafe(nil), sock_path: T.unsafe(nil), sock_dir: T.unsafe(nil), nonstop: T.unsafe(nil), **kw); end
47
+ def open_tcp(port:, host: T.unsafe(nil), nonstop: T.unsafe(nil), **kw); end
48
+ def open_unix(sock_path: T.unsafe(nil), sock_dir: T.unsafe(nil), nonstop: T.unsafe(nil), **kw); end
49
+
50
+ # Help
51
+ def parse_help; end
52
+
53
+ # String for requiring location
54
+ # nil for -r
55
+ def require_location; end
56
+
57
+ def safe_inspect(obj, max_length: T.unsafe(nil), short: T.unsafe(nil)); end
58
+
59
+ # boot utilities
60
+ def setup_initial_suspend; end
61
+
62
+ # start methods
63
+ def start(nonstop: T.unsafe(nil), **kw); end
64
+
65
+ def step_in(&b); end
66
+ def unix_domain_socket_dir; end
67
+ def unix_domain_socket_homedir; end
68
+ def unix_domain_socket_tmpdir; end
69
+ def warn(msg); end
70
+ end
71
+ end
72
+
73
+ class DEBUGGER__::Breakpoint
74
+ include ::DEBUGGER__::SkipPathHelper
75
+ include ::DEBUGGER__::Color
76
+
77
+ # @return [Breakpoint] a new instance of Breakpoint
78
+ def initialize(cond, command, path, do_enable: T.unsafe(nil)); end
79
+
80
+ def delete; end
81
+
82
+ # @return [Boolean]
83
+ def deleted?; end
84
+
85
+ def description; end
86
+ def disable; end
87
+
88
+ # @return [Boolean]
89
+ def duplicable?; end
90
+
91
+ def enable; end
92
+
93
+ # @return [Boolean]
94
+ def enabled?; end
95
+
96
+ def generate_label(name); end
97
+
98
+ # Returns the value of attribute key.
99
+ def key; end
100
+
101
+ # @return [Boolean]
102
+ def oneshot?; end
103
+
104
+ def safe_eval(b, expr); end
105
+ def setup; end
106
+
107
+ # @return [Boolean]
108
+ def skip_path?(path); end
109
+
110
+ def suspend; end
111
+ def to_s; end
112
+ end
113
+
114
+ DEBUGGER__::CONFIG = T.let(T.unsafe(nil), DEBUGGER__::Config)
115
+ DEBUGGER__::CONFIG_MAP = T.let(T.unsafe(nil), Hash)
116
+ DEBUGGER__::CONFIG_SET = T.let(T.unsafe(nil), Hash)
117
+
118
+ class DEBUGGER__::CallTracer < ::DEBUGGER__::Tracer
119
+ def setup; end
120
+
121
+ # @return [Boolean]
122
+ def skip_with_pattern?(tp); end
123
+ end
124
+
125
+ class DEBUGGER__::CatchBreakpoint < ::DEBUGGER__::Breakpoint
126
+ # @return [CatchBreakpoint] a new instance of CatchBreakpoint
127
+ def initialize(pat, cond: T.unsafe(nil), command: T.unsafe(nil), path: T.unsafe(nil)); end
128
+
129
+ def description; end
130
+
131
+ # Returns the value of attribute last_exc.
132
+ def last_exc; end
133
+
134
+ def setup; end
135
+ def to_s; end
136
+ end
137
+
138
+ class DEBUGGER__::CheckBreakpoint < ::DEBUGGER__::Breakpoint
139
+ # @return [CheckBreakpoint] a new instance of CheckBreakpoint
140
+ def initialize(cond:, command: T.unsafe(nil), path: T.unsafe(nil)); end
141
+
142
+ def setup; end
143
+ def to_s; end
144
+ end
145
+
146
+ module DEBUGGER__::Color
147
+ def color_pp(obj, width); end
148
+ def colored_inspect(obj, width: T.unsafe(nil), no_color: T.unsafe(nil)); end
149
+ def colorize(str, color); end
150
+ def colorize_blue(str); end
151
+ def colorize_code(code); end
152
+ def colorize_cyan(str); end
153
+ def colorize_dim(str); end
154
+ def colorize_magenta(str); end
155
+ def irb_colorize(str, color); end
156
+ def with_inspection_error_guard; end
157
+ end
158
+
159
+ DEBUGGER__::Color::SUPPORT_COLORABLE_OPTION = T.let(T.unsafe(nil), TrueClass)
160
+
161
+ class DEBUGGER__::Config
162
+ # @return [Config] a new instance of Config
163
+ def initialize(argv); end
164
+
165
+ def [](key); end
166
+ def []=(key, val); end
167
+ def append_config(key, val); end
168
+ def inspect; end
169
+ def set_config(**kw); end
170
+ def update(conf); end
171
+
172
+ private
173
+
174
+ def config; end
175
+ def disable_sigdump(old_sig); end
176
+ def enable_sigdump(sig); end
177
+
178
+ # @yield [old, new]
179
+ def if_updated(old_conf, new_conf, key); end
180
+
181
+ def parse_config_value(name, valstr); end
182
+
183
+ # emergency simple sigdump.
184
+ # Use `sigdump` gem for more rich features.
185
+ def setup_sigdump(old_sig = T.unsafe(nil), sig = T.unsafe(nil)); end
186
+
187
+ class << self
188
+ def config; end
189
+ def config_to_env_hash(config); end
190
+ def parse_argv(argv); end
191
+ def parse_config_value(name, valstr); end
192
+ end
193
+ end
194
+
195
+ class DEBUGGER__::Console
196
+ include ::DEBUGGER__::Color
197
+
198
+ # @return [Console] a new instance of Console
199
+ def initialize; end
200
+
201
+ def deactivate; end
202
+ def history; end
203
+ def history_file; end
204
+ def load_history; end
205
+ def load_history_if_not_loaded; end
206
+ def parse_input(buff, commands); end
207
+ def read_history_file; end
208
+ def readline(prompt); end
209
+ def readline_setup(prompt); end
210
+
211
+ private
212
+
213
+ def get_command(line); end
214
+ end
215
+
216
+ DEBUGGER__::Console::FH = T.let(T.unsafe(nil), String)
217
+ DEBUGGER__::Console::SIGWINCH_SUPPORTED = T.let(T.unsafe(nil), TrueClass)
218
+
219
+ class DEBUGGER__::ExceptionTracer < ::DEBUGGER__::Tracer
220
+ def setup; end
221
+
222
+ # @return [Boolean]
223
+ def skip_with_pattern?(tp); end
224
+ end
225
+
226
+ module DEBUGGER__::ForkInterceptor
227
+ def _fork; end
228
+
229
+ private
230
+
231
+ def __fork_setup_for_debugger; end
232
+ end
233
+
234
+ class DEBUGGER__::FrameInfo < ::Struct
235
+ # Returns the value of attribute _callee
236
+ #
237
+ # @return [Object] the current value of _callee
238
+ def _callee; end
239
+
240
+ # Sets the attribute _callee
241
+ #
242
+ # @param value [Object] the value to set the attribute _callee to.
243
+ # @return [Object] the newly set value
244
+ def _callee=(_); end
245
+
246
+ # Returns the value of attribute _local_variables
247
+ #
248
+ # @return [Object] the current value of _local_variables
249
+ def _local_variables; end
250
+
251
+ # Sets the attribute _local_variables
252
+ #
253
+ # @param value [Object] the value to set the attribute _local_variables to.
254
+ # @return [Object] the newly set value
255
+ def _local_variables=(_); end
256
+
257
+ # Returns the value of attribute binding
258
+ #
259
+ # @return [Object] the current value of binding
260
+ def binding; end
261
+
262
+ # Sets the attribute binding
263
+ #
264
+ # @param value [Object] the value to set the attribute binding to.
265
+ # @return [Object] the newly set value
266
+ def binding=(_); end
267
+
268
+ def block_identifier; end
269
+ def c_identifier; end
270
+ def callee; end
271
+
272
+ # Returns the value of attribute class
273
+ #
274
+ # @return [Object] the current value of class
275
+ def class; end
276
+
277
+ # Sets the attribute class
278
+ #
279
+ # @param value [Object] the value to set the attribute class to.
280
+ # @return [Object] the newly set value
281
+ def class=(_); end
282
+
283
+ # Returns the value of attribute dupped_binding
284
+ #
285
+ # @return [Object] the current value of dupped_binding
286
+ def dupped_binding; end
287
+
288
+ # Sets the attribute dupped_binding
289
+ #
290
+ # @param value [Object] the value to set the attribute dupped_binding to.
291
+ # @return [Object] the newly set value
292
+ def dupped_binding=(_); end
293
+
294
+ def eval_binding; end
295
+ def file_lines; end
296
+
297
+ # Returns the value of attribute frame_depth
298
+ #
299
+ # @return [Object] the current value of frame_depth
300
+ def frame_depth; end
301
+
302
+ # Sets the attribute frame_depth
303
+ #
304
+ # @param value [Object] the value to set the attribute frame_depth to.
305
+ # @return [Object] the newly set value
306
+ def frame_depth=(_); end
307
+
308
+ def frame_type; end
309
+
310
+ # Returns the value of attribute has_raised_exception
311
+ #
312
+ # @return [Object] the current value of has_raised_exception
313
+ def has_raised_exception; end
314
+
315
+ # Sets the attribute has_raised_exception
316
+ #
317
+ # @param value [Object] the value to set the attribute has_raised_exception to.
318
+ # @return [Object] the newly set value
319
+ def has_raised_exception=(_); end
320
+
321
+ # Returns the value of attribute has_return_value
322
+ #
323
+ # @return [Object] the current value of has_return_value
324
+ def has_return_value; end
325
+
326
+ # Sets the attribute has_return_value
327
+ #
328
+ # @param value [Object] the value to set the attribute has_return_value to.
329
+ # @return [Object] the newly set value
330
+ def has_return_value=(_); end
331
+
332
+ # Returns the value of attribute iseq
333
+ #
334
+ # @return [Object] the current value of iseq
335
+ def iseq; end
336
+
337
+ # Sets the attribute iseq
338
+ #
339
+ # @param value [Object] the value to set the attribute iseq to.
340
+ # @return [Object] the newly set value
341
+ def iseq=(_); end
342
+
343
+ def local_variables; end
344
+
345
+ # Returns the value of attribute location
346
+ #
347
+ # @return [Object] the current value of location
348
+ def location; end
349
+
350
+ # Sets the attribute location
351
+ #
352
+ # @param value [Object] the value to set the attribute location to.
353
+ # @return [Object] the newly set value
354
+ def location=(_); end
355
+
356
+ def location_str; end
357
+ def method_identifier; end
358
+ def name; end
359
+ def other_identifier; end
360
+ def path; end
361
+ def pretty_path; end
362
+
363
+ # Returns the value of attribute raised_exception
364
+ #
365
+ # @return [Object] the current value of raised_exception
366
+ def raised_exception; end
367
+
368
+ # Sets the attribute raised_exception
369
+ #
370
+ # @param value [Object] the value to set the attribute raised_exception to.
371
+ # @return [Object] the newly set value
372
+ def raised_exception=(_); end
373
+
374
+ def realpath; end
375
+ def return_str; end
376
+
377
+ # Returns the value of attribute return_value
378
+ #
379
+ # @return [Object] the current value of return_value
380
+ def return_value; end
381
+
382
+ # Sets the attribute return_value
383
+ #
384
+ # @param value [Object] the value to set the attribute return_value to.
385
+ # @return [Object] the newly set value
386
+ def return_value=(_); end
387
+
388
+ # Returns the value of attribute self
389
+ #
390
+ # @return [Object] the current value of self
391
+ def self; end
392
+
393
+ # Sets the attribute self
394
+ #
395
+ # @param value [Object] the value to set the attribute self to.
396
+ # @return [Object] the newly set value
397
+ def self=(_); end
398
+
399
+ # Returns the value of attribute show_line
400
+ #
401
+ # @return [Object] the current value of show_line
402
+ def show_line; end
403
+
404
+ # Sets the attribute show_line
405
+ #
406
+ # @param value [Object] the value to set the attribute show_line to.
407
+ # @return [Object] the newly set value
408
+ def show_line=(_); end
409
+
410
+ private
411
+
412
+ def get_singleton_class(obj); end
413
+ def klass_sig; end
414
+ def local_variable_get(var); end
415
+ def parameters_info; end
416
+
417
+ class << self
418
+ def [](*_arg0); end
419
+ def inspect; end
420
+ def keyword_init?; end
421
+ def members; end
422
+ def new(*_arg0); end
423
+ end
424
+ end
425
+
426
+ DEBUGGER__::FrameInfo::BLOCK_LABL_REGEXP = T.let(T.unsafe(nil), Regexp)
427
+ DEBUGGER__::FrameInfo::HOME = T.let(T.unsafe(nil), String)
428
+
429
+ class DEBUGGER__::ISeqBreakpoint < ::DEBUGGER__::Breakpoint
430
+ # @return [ISeqBreakpoint] a new instance of ISeqBreakpoint
431
+ def initialize(iseq, events, oneshot: T.unsafe(nil)); end
432
+
433
+ def enable; end
434
+ def setup; end
435
+ end
436
+
437
+ DEBUGGER__::LOG_LEVELS = T.let(T.unsafe(nil), Hash)
438
+
439
+ class DEBUGGER__::LineBreakpoint < ::DEBUGGER__::Breakpoint
440
+ # @return [LineBreakpoint] a new instance of LineBreakpoint
441
+ def initialize(path, line, cond: T.unsafe(nil), oneshot: T.unsafe(nil), hook_call: T.unsafe(nil), command: T.unsafe(nil)); end
442
+
443
+ def activate(iseq, event, line); end
444
+ def activate_exact(iseq, events, line); end
445
+
446
+ # @return [Boolean]
447
+ def duplicable?; end
448
+
449
+ def enable; end
450
+ def inspect; end
451
+
452
+ # Returns the value of attribute iseq.
453
+ def iseq; end
454
+
455
+ # Returns the value of attribute line.
456
+ def line; end
457
+
458
+ # Returns the value of attribute path.
459
+ def path; end
460
+
461
+ def setup; end
462
+ def to_s; end
463
+ def try_activate; end
464
+ end
465
+
466
+ class DEBUGGER__::LineBreakpoint::NearestISeq < ::Struct
467
+ # Returns the value of attribute events
468
+ #
469
+ # @return [Object] the current value of events
470
+ def events; end
471
+
472
+ # Sets the attribute events
473
+ #
474
+ # @param value [Object] the value to set the attribute events to.
475
+ # @return [Object] the newly set value
476
+ def events=(_); end
477
+
478
+ # Returns the value of attribute iseq
479
+ #
480
+ # @return [Object] the current value of iseq
481
+ def iseq; end
482
+
483
+ # Sets the attribute iseq
484
+ #
485
+ # @param value [Object] the value to set the attribute iseq to.
486
+ # @return [Object] the newly set value
487
+ def iseq=(_); end
488
+
489
+ # Returns the value of attribute line
490
+ #
491
+ # @return [Object] the current value of line
492
+ def line; end
493
+
494
+ # Sets the attribute line
495
+ #
496
+ # @param value [Object] the value to set the attribute line to.
497
+ # @return [Object] the newly set value
498
+ def line=(_); end
499
+
500
+ class << self
501
+ def [](*_arg0); end
502
+ def inspect; end
503
+ def keyword_init?; end
504
+ def members; end
505
+ def new(*_arg0); end
506
+ end
507
+ end
508
+
509
+ class DEBUGGER__::LineTracer < ::DEBUGGER__::Tracer
510
+ def setup; end
511
+ end
512
+
513
+ DEBUGGER__::METHOD_ADDED_TRACKER = T.let(T.unsafe(nil), TracePoint)
514
+
515
+ class DEBUGGER__::MethodBreakpoint < ::DEBUGGER__::Breakpoint
516
+ # @return [MethodBreakpoint] a new instance of MethodBreakpoint
517
+ def initialize(b, klass_name, op, method_name, cond: T.unsafe(nil), command: T.unsafe(nil), path: T.unsafe(nil)); end
518
+
519
+ def enable; end
520
+ def eval_class_name; end
521
+
522
+ # Returns the value of attribute method.
523
+ def method; end
524
+
525
+ def override(klass); end
526
+ def search_method; end
527
+ def setup; end
528
+ def sig; end
529
+
530
+ # Returns the value of attribute sig_method_name.
531
+ def sig_method_name; end
532
+
533
+ def to_s; end
534
+ def try_enable(added: T.unsafe(nil)); end
535
+ end
536
+
537
+ module DEBUGGER__::MultiProcessGroup
538
+ def after_fork(child: T.unsafe(nil)); end
539
+ def info(msg); end
540
+ def lock; end
541
+
542
+ # @return [Boolean]
543
+ def locked?; end
544
+
545
+ def multi_process!; end
546
+ def sync(&b); end
547
+ def unlock; end
548
+
549
+ private
550
+
551
+ def lock_level_down; end
552
+ def lock_level_up; end
553
+ def trylock; end
554
+ end
555
+
556
+ class DEBUGGER__::ObjectTracer < ::DEBUGGER__::Tracer
557
+ # @return [ObjectTracer] a new instance of ObjectTracer
558
+ def initialize(ui, obj_id, obj_inspect, **kw); end
559
+
560
+ def colorized_obj_inspect; end
561
+ def description; end
562
+ def setup; end
563
+ end
564
+
565
+ class DEBUGGER__::PostmortemError < ::RuntimeError; end
566
+
567
+ class DEBUGGER__::PresetCommand < ::Struct
568
+ # Returns the value of attribute auto_continue
569
+ #
570
+ # @return [Object] the current value of auto_continue
571
+ def auto_continue; end
572
+
573
+ # Sets the attribute auto_continue
574
+ #
575
+ # @param value [Object] the value to set the attribute auto_continue to.
576
+ # @return [Object] the newly set value
577
+ def auto_continue=(_); end
578
+
579
+ # Returns the value of attribute commands
580
+ #
581
+ # @return [Object] the current value of commands
582
+ def commands; end
583
+
584
+ # Sets the attribute commands
585
+ #
586
+ # @param value [Object] the value to set the attribute commands to.
587
+ # @return [Object] the newly set value
588
+ def commands=(_); end
589
+
590
+ # Returns the value of attribute source
591
+ #
592
+ # @return [Object] the current value of source
593
+ def source; end
594
+
595
+ # Sets the attribute source
596
+ #
597
+ # @param value [Object] the value to set the attribute source to.
598
+ # @return [Object] the newly set value
599
+ def source=(_); end
600
+
601
+ class << self
602
+ def [](*_arg0); end
603
+ def inspect; end
604
+ def keyword_init?; end
605
+ def members; end
606
+ def new(*_arg0); end
607
+ end
608
+ end
609
+
610
+ class DEBUGGER__::ProcessGroup
611
+ # @return [ProcessGroup] a new instance of ProcessGroup
612
+ def initialize; end
613
+
614
+ def after_fork; end
615
+ def lock; end
616
+
617
+ # @return [Boolean]
618
+ def locked?; end
619
+
620
+ # @return [Boolean]
621
+ def multi?; end
622
+
623
+ def multi_process!; end
624
+ def sync; end
625
+ def trylock; end
626
+ def unlock; end
627
+ end
628
+
629
+ DEBUGGER__::SESSION = T.let(T.unsafe(nil), DEBUGGER__::Session)
630
+ DEBUGGER__::SHORT_INSPECT_LENGTH = T.let(T.unsafe(nil), Integer)
631
+ DEBUGGER__::SO_VERSION = T.let(T.unsafe(nil), String)
632
+
633
+ class DEBUGGER__::Session
634
+ include ::DEBUGGER__::Color
635
+
636
+ # @return [Session] a new instance of Session
637
+ def initialize; end
638
+
639
+ def activate(ui = T.unsafe(nil), on_fork: T.unsafe(nil)); end
640
+
641
+ # @return [Boolean]
642
+ def active?; end
643
+
644
+ def add_bp(bp); end
645
+ def add_catch_breakpoint(pat); end
646
+ def add_check_breakpoint(cond, path, command); end
647
+ def add_iseq_breakpoint(iseq, **kw); end
648
+ def add_line_breakpoint(file, line, **kw); end
649
+ def add_preset_commands(name, cmds, kick: T.unsafe(nil), continue: T.unsafe(nil)); end
650
+
651
+ # tracers
652
+ def add_tracer(tracer); end
653
+
654
+ def after_fork_parent; end
655
+ def ask(msg, default = T.unsafe(nil)); end
656
+ def before_fork(need_lock = T.unsafe(nil)); end
657
+ def bp_index(specific_bp_key); end
658
+
659
+ # @return [Boolean]
660
+ def break_at?(file, line); end
661
+
662
+ def cancel_auto_continue; end
663
+ def capture_exception_frames(*exclude_path); end
664
+ def check_postmortem; end
665
+ def clean_bps; end
666
+ def clear_line_breakpoints(path); end
667
+ def config_command(arg); end
668
+ def config_set(key, val, append: T.unsafe(nil)); end
669
+ def config_show(key); end
670
+ def deactivate; end
671
+ def delete_bp(arg = T.unsafe(nil)); end
672
+ def enter_postmortem_session(exc); end
673
+
674
+ # can be called by other threads
675
+ def get_thread_client(th = T.unsafe(nil)); end
676
+
677
+ # @return [Boolean]
678
+ def in_subsession?; end
679
+
680
+ def inspect; end
681
+ def intercept_trap_sigint(flag, &b); end
682
+
683
+ # @return [Boolean]
684
+ def intercept_trap_sigint?; end
685
+
686
+ def intercept_trap_sigint_end; end
687
+ def intercept_trap_sigint_start(prev); end
688
+
689
+ # Returns the value of attribute intercepted_sigint_cmd.
690
+ def intercepted_sigint_cmd; end
691
+
692
+ # breakpoint management
693
+ def iterate_bps; end
694
+
695
+ def managed_thread_clients; end
696
+ def method_added(tp); end
697
+
698
+ # event
699
+ def on_load(iseq, src); end
700
+
701
+ def on_thread_begin(th); end
702
+ def parse_break(arg); end
703
+ def pop_event; end
704
+ def postmortem=(is_enable); end
705
+ def process_command(line); end
706
+ def process_event(evt); end
707
+
708
+ # Returns the value of attribute process_group.
709
+ def process_group; end
710
+
711
+ def process_info; end
712
+ def prompt; end
713
+ def rehash_bps; end
714
+ def repl_add_breakpoint(arg); end
715
+ def repl_add_catch_breakpoint(arg); end
716
+ def repl_add_watch_breakpoint(arg); end
717
+ def repl_open; end
718
+ def repl_open_setup; end
719
+ def repl_open_tcp(host, port, **kw); end
720
+ def repl_open_vscode; end
721
+ def reset_ui(ui); end
722
+ def resolve_path(file); end
723
+ def save_int_trap(cmd); end
724
+ def session_server_main; end
725
+ def setup_threads; end
726
+ def show_bps(specific_bp = T.unsafe(nil)); end
727
+ def show_help(arg = T.unsafe(nil)); end
728
+ def source(iseq); end
729
+ def step_command(type, arg); end
730
+ def switch_thread(n); end
731
+ def thread_list; end
732
+
733
+ # threads
734
+ def update_thread_list; end
735
+
736
+ def wait_command; end
737
+ def wait_command_loop(tc); end
738
+ def width; end
739
+
740
+ private
741
+
742
+ def ask_thread_client(th); end
743
+ def create_thread_client(th); end
744
+ def enter_subsession; end
745
+ def leave_subsession(type); end
746
+ def restart_all_threads; end
747
+ def running_thread_clients_count; end
748
+ def stop_all_threads; end
749
+ def thread_stopper; end
750
+ def waiting_thread_clients; end
751
+ end
752
+
753
+ DEBUGGER__::Session::BREAK_KEYWORDS = T.let(T.unsafe(nil), Array)
754
+
755
+ module DEBUGGER__::SkipPathHelper
756
+ # @return [Boolean]
757
+ def skip_internal_path?(path); end
758
+
759
+ # @return [Boolean]
760
+ def skip_location?(loc); end
761
+
762
+ # @return [Boolean]
763
+ def skip_path?(path); end
764
+ end
765
+
766
+ class DEBUGGER__::SourceRepository
767
+ include ::DEBUGGER__::Color
768
+
769
+ # @return [SourceRepository] a new instance of SourceRepository
770
+ def initialize; end
771
+
772
+ def add(iseq, src); end
773
+ def get(iseq); end
774
+ def get_colored(iseq); end
775
+ end
776
+
777
+ class DEBUGGER__::ThreadClient
778
+ include ::DEBUGGER__::Color
779
+ include ::DEBUGGER__::SkipPathHelper
780
+
781
+ # @return [ThreadClient] a new instance of ThreadClient
782
+ def initialize(id, q_evt, q_cmd, thr = T.unsafe(nil)); end
783
+
784
+ def <<(req); end
785
+ def assemble_arguments(args); end
786
+ def class_method_map(classes); end
787
+ def close; end
788
+ def collect_locals(frame); end
789
+ def current_frame; end
790
+ def deactivate; end
791
+ def default_frame_formatter(frame); end
792
+ def event!(ev, *args); end
793
+ def frame_eval(src, re_raise: T.unsafe(nil)); end
794
+ def frame_eval_core(src, b); end
795
+ def frame_str(i, frame: T.unsafe(nil)); end
796
+ def generate_info; end
797
+ def get_frame(index); end
798
+
799
+ # Returns the value of attribute id.
800
+ def id; end
801
+
802
+ def inspect; end
803
+ def location; end
804
+
805
+ # cmd: breakpoint
806
+ def make_breakpoint(args); end
807
+
808
+ # @return [Boolean]
809
+ def management?; end
810
+
811
+ def mark_as_management; end
812
+ def name; end
813
+ def on_breakpoint(tp, bp); end
814
+ def on_init(name); end
815
+ def on_load(iseq, eval_src); end
816
+ def on_pause; end
817
+ def on_trace(trace_id, msg); end
818
+ def on_trap(sig); end
819
+ def outline_method(o, klass, obj); end
820
+ def puts(str = T.unsafe(nil)); end
821
+ def puts_variable_info(label, obj, pat); end
822
+
823
+ # Returns the value of attribute recorder.
824
+ def recorder; end
825
+
826
+ def replay_suspend; end
827
+
828
+ # @return [Boolean]
829
+ def running?; end
830
+
831
+ def set_mode(mode); end
832
+
833
+ # cmd: show edit
834
+ def show_by_editor(path = T.unsafe(nil)); end
835
+
836
+ def show_consts(pat, only_self: T.unsafe(nil)); end
837
+ def show_frame(i = T.unsafe(nil)); end
838
+
839
+ # cmd: show frames
840
+ def show_frames(max = T.unsafe(nil), pattern = T.unsafe(nil)); end
841
+
842
+ def show_globals(pat); end
843
+ def show_ivars(pat); end
844
+ def show_locals(pat); end
845
+
846
+ # cmd: show outline
847
+ def show_outline(expr); end
848
+
849
+ def show_src(frame_index: T.unsafe(nil), update_line: T.unsafe(nil), max_lines: T.unsafe(nil), start_line: T.unsafe(nil), end_line: T.unsafe(nil), dir: T.unsafe(nil)); end
850
+
851
+ # cmd: show
852
+ def special_local_variables(frame); end
853
+
854
+ def step_tp(iter, events = T.unsafe(nil)); end
855
+ def suspend(event, tp = T.unsafe(nil), bp: T.unsafe(nil), sig: T.unsafe(nil), postmortem_frames: T.unsafe(nil), replay_frames: T.unsafe(nil), postmortem_exc: T.unsafe(nil)); end
856
+
857
+ # Returns the value of attribute thread.
858
+ def thread; end
859
+
860
+ def to_s; end
861
+ def tp_allow_reentry; end
862
+ def truncate(string, width:); end
863
+ def wait_next_action; end
864
+ def wait_next_action_; end
865
+
866
+ # events
867
+ def wait_reply(event_arg); end
868
+
869
+ # @return [Boolean]
870
+ def waiting?; end
871
+
872
+ class << self
873
+ def current; end
874
+ end
875
+ end
876
+
877
+ # copied from irb
878
+ class DEBUGGER__::ThreadClient::Output
879
+ include ::DEBUGGER__::Color
880
+
881
+ # @return [Output] a new instance of Output
882
+ def initialize(output); end
883
+
884
+ def dump(name, strs); end
885
+
886
+ private
887
+
888
+ def col_widths(strs, cols:); end
889
+
890
+ # @return [Boolean]
891
+ def fits_on_line?(strs, cols:, offset: T.unsafe(nil)); end
892
+
893
+ def screen_width; end
894
+ end
895
+
896
+ DEBUGGER__::ThreadClient::Output::MARGIN = T.let(T.unsafe(nil), String)
897
+
898
+ class DEBUGGER__::ThreadClient::Recorder
899
+ include ::DEBUGGER__::SkipPathHelper
900
+
901
+ # @return [Recorder] a new instance of Recorder
902
+ def initialize; end
903
+
904
+ # Returns the value of attribute backup_frames.
905
+ def backup_frames; end
906
+
907
+ # Sets the attribute backup_frames
908
+ #
909
+ # @param value the value to set the attribute backup_frames to.
910
+ def backup_frames=(_arg0); end
911
+
912
+ # @return [Boolean]
913
+ def can_step_back?; end
914
+
915
+ def current_frame; end
916
+
917
+ # for debugging
918
+ def current_position; end
919
+
920
+ def disable; end
921
+ def enable; end
922
+
923
+ # @return [Boolean]
924
+ def enabled?; end
925
+
926
+ # Returns the value of attribute index.
927
+ def index; end
928
+
929
+ # Returns the value of attribute log.
930
+ def log; end
931
+
932
+ def log_index; end
933
+
934
+ # @return [Boolean]
935
+ def replaying?; end
936
+
937
+ def step_back; end
938
+ def step_forward; end
939
+ def step_reset; end
940
+ end
941
+
942
+ DEBUGGER__::ThreadClient::SKIP_GLOBAL_LIST = T.let(T.unsafe(nil), Array)
943
+ DEBUGGER__::ThreadClient::SPECIAL_LOCAL_VARS = T.let(T.unsafe(nil), Array)
944
+ DEBUGGER__::ThreadClient::SUPPORT_TARGET_THREAD = T.let(T.unsafe(nil), TrueClass)
945
+ class DEBUGGER__::ThreadClient::SuspendReplay < ::Exception; end
946
+
947
+ class DEBUGGER__::Tracer
948
+ include ::DEBUGGER__::SkipPathHelper
949
+ include ::DEBUGGER__::Color
950
+
951
+ # @return [Tracer] a new instance of Tracer
952
+ def initialize(ui, pattern: T.unsafe(nil), into: T.unsafe(nil)); end
953
+
954
+ def colorize(str, color); end
955
+ def description; end
956
+ def disable; end
957
+ def enable; end
958
+ def header(depth); end
959
+
960
+ # Returns the value of attribute key.
961
+ def key; end
962
+
963
+ def minfo(tp); end
964
+ def out(tp, msg = T.unsafe(nil), depth = T.unsafe(nil)); end
965
+ def puts(msg); end
966
+
967
+ # @return [Boolean]
968
+ def skip?(tp); end
969
+
970
+ # @return [Boolean]
971
+ def skip_with_pattern?(tp); end
972
+
973
+ def to_s; end
974
+
975
+ # Returns the value of attribute type.
976
+ def type; end
977
+ end
978
+
979
+ module DEBUGGER__::TrapInterceptor
980
+ def trap(sig, *command, &command_proc); end
981
+ end
982
+
983
+ class DEBUGGER__::UI_Base
984
+ def event(type, *args); end
985
+ def flush; end
986
+ end
987
+
988
+ class DEBUGGER__::UI_LocalConsole < ::DEBUGGER__::UI_Base
989
+ # @return [UI_LocalConsole] a new instance of UI_LocalConsole
990
+ def initialize; end
991
+
992
+ def activate(session, on_fork: T.unsafe(nil)); end
993
+ def after_fork_parent; end
994
+ def ask(prompt); end
995
+ def deactivate; end
996
+ def puts(str = T.unsafe(nil)); end
997
+ def quit(n); end
998
+ def readline(prompt = T.unsafe(nil)); end
999
+
1000
+ # @return [Boolean]
1001
+ def remote?; end
1002
+
1003
+ def setup_interrupt; end
1004
+ def width; end
1005
+ end
1006
+
1007
+ class DEBUGGER__::WatchIVarBreakpoint < ::DEBUGGER__::Breakpoint
1008
+ # @return [WatchIVarBreakpoint] a new instance of WatchIVarBreakpoint
1009
+ def initialize(ivar, object, current, cond: T.unsafe(nil), command: T.unsafe(nil), path: T.unsafe(nil)); end
1010
+
1011
+ def setup; end
1012
+ def to_s; end
1013
+ def watch_eval(tp); end
1014
+ end
1015
+
1016
+ module IRB::Color
1017
+ class << self
1018
+ def clear(colorable: T.unsafe(nil)); end
1019
+ def colorable?; end
1020
+ def colorize(text, seq, colorable: T.unsafe(nil)); end
1021
+ def colorize_code(code, complete: T.unsafe(nil), ignore_error: T.unsafe(nil), colorable: T.unsafe(nil)); end
1022
+ def inspect_colorable?(obj, seen: T.unsafe(nil)); end
1023
+
1024
+ private
1025
+
1026
+ def dispatch_seq(token, expr, str, in_symbol:); end
1027
+ def scan(code, allow_last_error:); end
1028
+ def without_circular_ref(obj, seen:, &block); end
1029
+ end
1030
+ end
1031
+
1032
+ IRB::Color::BLUE = T.let(T.unsafe(nil), Integer)
1033
+ IRB::Color::BOLD = T.let(T.unsafe(nil), Integer)
1034
+ IRB::Color::CLEAR = T.let(T.unsafe(nil), Integer)
1035
+ IRB::Color::CYAN = T.let(T.unsafe(nil), Integer)
1036
+ IRB::Color::DIM = T.let(T.unsafe(nil), Integer)
1037
+ IRB::Color::GREEN = T.let(T.unsafe(nil), Integer)
1038
+ IRB::Color::MAGENTA = T.let(T.unsafe(nil), Integer)
1039
+ IRB::Color::RED = T.let(T.unsafe(nil), Integer)
1040
+ IRB::Color::REVERSE = T.let(T.unsafe(nil), Integer)
1041
+ IRB::Color::UNDERLINE = T.let(T.unsafe(nil), Integer)
1042
+ IRB::Color::YELLOW = T.let(T.unsafe(nil), Integer)
1043
+
1044
+ # trap
1045
+ module Kernel
1046
+ def debugger(pre: T.unsafe(nil), do: T.unsafe(nil), up_level: T.unsafe(nil)); end
1047
+ def trap(sig, *command, &command_proc); end
1048
+ end
1049
+
1050
+ # Also, modules included into Object need to be scanned and have their
1051
+ # instance methods removed from blank slate. In theory, modules
1052
+ # included into Kernel would have to be removed as well, but a
1053
+ # "feature" of Ruby prevents late includes into modules from being
1054
+ # exposed in the first place.
1055
+ class Module
1056
+ def method_added(mid); end
1057
+ def singleton_method_added(mid); end
1058
+ end
1059
+
1060
+ class Reline::LineEditor
1061
+ def initialize(config, encoding); end
1062
+
1063
+ def add_dialog_proc(name, p, context = T.unsafe(nil)); end
1064
+ def auto_indent_proc; end
1065
+ def auto_indent_proc=(_arg0); end
1066
+ def byte_pointer; end
1067
+ def byte_pointer=(val); end
1068
+ def call_completion_proc; end
1069
+ def call_completion_proc_with_checking_args(pre, target, post); end
1070
+ def completion_append_character; end
1071
+ def completion_append_character=(_arg0); end
1072
+ def completion_proc; end
1073
+ def completion_proc=(_arg0); end
1074
+ def confirm_multiline_termination; end
1075
+ def confirm_multiline_termination_proc; end
1076
+ def confirm_multiline_termination_proc=(_arg0); end
1077
+ def delete_text(start = T.unsafe(nil), length = T.unsafe(nil)); end
1078
+ def dig_perfect_match_proc; end
1079
+ def dig_perfect_match_proc=(_arg0); end
1080
+ def editing_mode; end
1081
+ def eof?; end
1082
+ def finalize; end
1083
+ def finish; end
1084
+ def finished?; end
1085
+ def input_key(key); end
1086
+ def insert_text(text); end
1087
+ def just_move_cursor; end
1088
+ def line; end
1089
+ def multiline_off; end
1090
+ def multiline_on; end
1091
+ def output=(_arg0); end
1092
+ def output_modifier_proc; end
1093
+ def output_modifier_proc=(_arg0); end
1094
+ def pre_input_hook; end
1095
+ def pre_input_hook=(_arg0); end
1096
+ def prompt_proc; end
1097
+ def prompt_proc=(_arg0); end
1098
+ def rerender; end
1099
+ def rerender_all; end
1100
+ def reset(prompt = T.unsafe(nil), encoding:); end
1101
+ def reset_line; end
1102
+ def reset_variables(prompt = T.unsafe(nil), encoding:); end
1103
+ def resize; end
1104
+ def retrieve_completion_block(set_completion_quote_character = T.unsafe(nil)); end
1105
+ def set_pasting_state(in_pasting); end
1106
+ def set_signal_handlers; end
1107
+ def simplified_rendering?; end
1108
+ def whole_buffer; end
1109
+ def whole_lines(index: T.unsafe(nil), line: T.unsafe(nil)); end
1110
+ def wrap_method_call(method_symbol, method_obj, key, with_operator = T.unsafe(nil)); end
1111
+
1112
+ private
1113
+
1114
+ def argumentable?(method_obj); end
1115
+ def backward_char(key, arg: T.unsafe(nil)); end
1116
+ def backward_delete_char(key, arg: T.unsafe(nil)); end
1117
+ def backward_word(key); end
1118
+ def beginning_of_line(key); end
1119
+ def byteinsert(str, byte_pointer, other); end
1120
+ def byteslice!(str, byte_pointer, size); end
1121
+ def calculate_height_by_lines(lines, prompt); end
1122
+ def calculate_height_by_width(width); end
1123
+ def calculate_nearest_cursor(line_to_calc = T.unsafe(nil), cursor = T.unsafe(nil), started_from = T.unsafe(nil), byte_pointer = T.unsafe(nil), update = T.unsafe(nil)); end
1124
+ def calculate_scroll_partial_screen(highest_in_all, cursor_y); end
1125
+ def calculate_width(str, allow_escape_code = T.unsafe(nil)); end
1126
+ def capitalize_word(key); end
1127
+ def check_mode_string; end
1128
+ def check_multiline_prompt(buffer); end
1129
+ def clear_dialog; end
1130
+ def clear_each_dialog(dialog); end
1131
+ def clear_screen(key); end
1132
+ def clear_screen_buffer(prompt, prompt_list, prompt_width); end
1133
+ def complete(list, just_show_list = T.unsafe(nil)); end
1134
+ def complete_internal_proc(list, is_menu); end
1135
+ def copy_for_vi(text); end
1136
+ def delete_char(key); end
1137
+ def delete_char_or_list(key); end
1138
+ def downcase_word(key); end
1139
+ def ed_argument_digit(key); end
1140
+ def ed_clear_screen(key); end
1141
+ def ed_delete_next_char(key, arg: T.unsafe(nil)); end
1142
+ def ed_delete_prev_char(key, arg: T.unsafe(nil)); end
1143
+ def ed_delete_prev_word(key); end
1144
+ def ed_digit(key); end
1145
+ def ed_insert(key); end
1146
+ def ed_kill_line(key); end
1147
+ def ed_move_to_beg(key); end
1148
+ def ed_move_to_end(key); end
1149
+ def ed_newline(key); end
1150
+ def ed_next_char(key, arg: T.unsafe(nil)); end
1151
+ def ed_next_history(key, arg: T.unsafe(nil)); end
1152
+ def ed_prev_char(key, arg: T.unsafe(nil)); end
1153
+ def ed_prev_history(key, arg: T.unsafe(nil)); end
1154
+ def ed_prev_word(key); end
1155
+ def ed_quoted_insert(str, arg: T.unsafe(nil)); end
1156
+ def ed_search_next_history(key, arg: T.unsafe(nil)); end
1157
+ def ed_search_prev_history(key, arg: T.unsafe(nil)); end
1158
+ def ed_transpose_chars(key); end
1159
+ def ed_transpose_words(key); end
1160
+ def ed_unassigned(key); end
1161
+ def em_capitol_case(key); end
1162
+ def em_delete(key); end
1163
+ def em_delete_next_word(key); end
1164
+ def em_delete_or_list(key); end
1165
+ def em_delete_prev_char(key, arg: T.unsafe(nil)); end
1166
+ def em_exchange_mark(key); end
1167
+ def em_kill_line(key); end
1168
+ def em_kill_region(key); end
1169
+ def em_lower_case(key); end
1170
+ def em_next_word(key); end
1171
+ def em_set_mark(key); end
1172
+ def em_upper_case(key); end
1173
+ def em_yank(key); end
1174
+ def em_yank_pop(key); end
1175
+ def end_of_line(key); end
1176
+ def exchange_point_and_mark(key); end
1177
+ def forward_char(key, arg: T.unsafe(nil)); end
1178
+ def forward_search_history(key); end
1179
+ def forward_word(key); end
1180
+ def generate_searcher; end
1181
+ def history_search_backward(key, arg: T.unsafe(nil)); end
1182
+ def history_search_forward(key, arg: T.unsafe(nil)); end
1183
+ def inclusive?(method_obj); end
1184
+ def incremental_search_history(key); end
1185
+ def insert_new_line(cursor_line, next_line); end
1186
+ def key_delete(key); end
1187
+ def key_newline(key); end
1188
+ def kill_line(key); end
1189
+ def kill_whole_line(key); end
1190
+ def menu(target, list); end
1191
+ def modify_lines(before); end
1192
+ def move_completed_list(list, direction); end
1193
+ def move_cursor_down(val); end
1194
+ def move_cursor_up(val); end
1195
+ def next_history(key, arg: T.unsafe(nil)); end
1196
+ def normal_char(key); end
1197
+ def padding_space_with_escape_sequences(str, width); end
1198
+ def previous_history(key, arg: T.unsafe(nil)); end
1199
+ def process_auto_indent; end
1200
+ def process_insert(force: T.unsafe(nil)); end
1201
+ def process_key(key, method_symbol); end
1202
+ def quoted_insert(str, arg: T.unsafe(nil)); end
1203
+ def render_dialog(cursor_column); end
1204
+ def render_each_dialog(dialog, cursor_column); end
1205
+ def render_partial(prompt, prompt_width, line_to_render, this_started_from, with_control: T.unsafe(nil)); end
1206
+ def render_whole_lines(lines, prompt, prompt_width); end
1207
+ def rerender_added_newline(prompt, prompt_width); end
1208
+ def rerender_all_lines; end
1209
+ def rerender_changed_current_line; end
1210
+ def reset_dialog(dialog, old_dialog); end
1211
+ def reverse_search_history(key); end
1212
+ def run_for_operators(key, method_symbol, &block); end
1213
+ def scroll_down(val); end
1214
+ def search_next_char(key, arg, need_prev_char: T.unsafe(nil), inclusive: T.unsafe(nil)); end
1215
+ def search_prev_char(key, arg, need_next_char = T.unsafe(nil)); end
1216
+ def self_insert(key); end
1217
+ def set_mark(key); end
1218
+ def show_menu; end
1219
+ def split_by_width(str, max_width); end
1220
+ def transpose_chars(key); end
1221
+ def transpose_words(key); end
1222
+ def unix_line_discard(key); end
1223
+ def unix_word_rubout(key); end
1224
+ def upcase_word(key); end
1225
+ def vi_add(key); end
1226
+ def vi_add_at_eol(key); end
1227
+ def vi_change_meta(key, arg: T.unsafe(nil)); end
1228
+ def vi_command_mode(key); end
1229
+ def vi_delete_meta(key, arg: T.unsafe(nil)); end
1230
+ def vi_delete_prev_char(key); end
1231
+ def vi_end_big_word(key, arg: T.unsafe(nil), inclusive: T.unsafe(nil)); end
1232
+ def vi_end_of_transmission(key); end
1233
+ def vi_end_word(key, arg: T.unsafe(nil), inclusive: T.unsafe(nil)); end
1234
+ def vi_eof_maybe(key); end
1235
+ def vi_first_print(key); end
1236
+ def vi_histedit(key); end
1237
+ def vi_insert(key); end
1238
+ def vi_insert_at_bol(key); end
1239
+ def vi_join_lines(key, arg: T.unsafe(nil)); end
1240
+ def vi_kill_line_prev(key); end
1241
+ def vi_list_or_eof(key); end
1242
+ def vi_movement_mode(key); end
1243
+ def vi_next_big_word(key, arg: T.unsafe(nil)); end
1244
+ def vi_next_char(key, arg: T.unsafe(nil), inclusive: T.unsafe(nil)); end
1245
+ def vi_next_word(key, arg: T.unsafe(nil)); end
1246
+ def vi_paste_next(key, arg: T.unsafe(nil)); end
1247
+ def vi_paste_prev(key, arg: T.unsafe(nil)); end
1248
+ def vi_prev_big_word(key, arg: T.unsafe(nil)); end
1249
+ def vi_prev_char(key, arg: T.unsafe(nil)); end
1250
+ def vi_prev_word(key, arg: T.unsafe(nil)); end
1251
+ def vi_replace_char(key, arg: T.unsafe(nil)); end
1252
+ def vi_search_next(key); end
1253
+ def vi_search_prev(key); end
1254
+ def vi_to_column(key, arg: T.unsafe(nil)); end
1255
+ def vi_to_history_line(key); end
1256
+ def vi_to_next_char(key, arg: T.unsafe(nil), inclusive: T.unsafe(nil)); end
1257
+ def vi_to_prev_char(key, arg: T.unsafe(nil)); end
1258
+ def vi_yank(key, arg: T.unsafe(nil)); end
1259
+ def vi_zero(key); end
1260
+ def yank(key); end
1261
+ def yank_pop(key); end
1262
+ end
1263
+
1264
+ Reline::LineEditor::CompletionJourneyData = Struct
1265
+ Reline::LineEditor::DIALOG_DEFAULT_HEIGHT = T.let(T.unsafe(nil), Integer)
1266
+ Reline::LineEditor::MenuInfo = Struct
1267
+ Reline::LineEditor::PROMPT_LIST_CACHE_TIMEOUT = T.let(T.unsafe(nil), Float)
1268
+ Reline::LineEditor::VI_MOTIONS = T.let(T.unsafe(nil), Array)
1269
+
1270
+ class RubyVM::InstructionSequence
1271
+ def traceable_lines_norec(lines); end
1272
+ def traceable_lines_rec(lines); end
1273
+ end