yard-sorbet 0.0.1 → 0.4.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (56) hide show
  1. checksums.yaml +4 -4
  2. data/lib/yard-sorbet.rb +4 -2
  3. data/lib/yard-sorbet/directives.rb +5 -1
  4. data/lib/yard-sorbet/sig_handler.rb +81 -32
  5. data/lib/yard-sorbet/sig_to_yard.rb +26 -6
  6. data/lib/yard-sorbet/struct_handler.rb +27 -11
  7. data/lib/yard-sorbet/version.rb +1 -1
  8. metadata +76 -79
  9. data/.editorconfig +0 -9
  10. data/.gitignore +0 -40
  11. data/.rspec +0 -1
  12. data/.rubocop.yml +0 -47
  13. data/.travis.yml +0 -7
  14. data/CHANGELOG.md +0 -10
  15. data/Gemfile +0 -14
  16. data/README.md +0 -17
  17. data/Rakefile +0 -11
  18. data/sorbet/config +0 -2
  19. data/sorbet/rbi/gems/ast.rbi +0 -47
  20. data/sorbet/rbi/gems/byebug.rbi +0 -1039
  21. data/sorbet/rbi/gems/codecov.rbi +0 -19
  22. data/sorbet/rbi/gems/coderay.rbi +0 -91
  23. data/sorbet/rbi/gems/docile.rbi +0 -31
  24. data/sorbet/rbi/gems/jaro_winkler.rbi +0 -14
  25. data/sorbet/rbi/gems/method_source.rbi +0 -63
  26. data/sorbet/rbi/gems/parallel.rbi +0 -81
  27. data/sorbet/rbi/gems/parser.rbi +0 -920
  28. data/sorbet/rbi/gems/pry-byebug.rbi +0 -149
  29. data/sorbet/rbi/gems/pry.rbi +0 -1964
  30. data/sorbet/rbi/gems/rainbow.rbi +0 -117
  31. data/sorbet/rbi/gems/rake.rbi +0 -635
  32. data/sorbet/rbi/gems/rspec-core.rbi +0 -1686
  33. data/sorbet/rbi/gems/rspec-expectations.rbi +0 -387
  34. data/sorbet/rbi/gems/rspec-mocks.rbi +0 -819
  35. data/sorbet/rbi/gems/rspec-support.rbi +0 -270
  36. data/sorbet/rbi/gems/rspec.rbi +0 -14
  37. data/sorbet/rbi/gems/rubocop-rspec.rbi +0 -889
  38. data/sorbet/rbi/gems/rubocop.rbi +0 -7139
  39. data/sorbet/rbi/gems/ruby-progressbar.rbi +0 -304
  40. data/sorbet/rbi/gems/simplecov-html.rbi +0 -30
  41. data/sorbet/rbi/gems/simplecov.rbi +0 -225
  42. data/sorbet/rbi/gems/site_ruby.rbi +0 -114
  43. data/sorbet/rbi/gems/unicode-display_width.rbi +0 -16
  44. data/sorbet/rbi/gems/yard.rbi +0 -1181
  45. data/sorbet/rbi/hidden-definitions/errors.txt +0 -3045
  46. data/sorbet/rbi/hidden-definitions/hidden.rbi +0 -4469
  47. data/sorbet/rbi/sorbet-typed/lib/bundler/all/bundler.rbi +0 -8684
  48. data/sorbet/rbi/sorbet-typed/lib/ruby/all/gem.rbi +0 -4222
  49. data/sorbet/rbi/sorbet-typed/lib/ruby/all/open3.rbi +0 -111
  50. data/sorbet/rbi/sorbet-typed/lib/ruby/all/resolv.rbi +0 -543
  51. data/spec/data/sig_handler.rb.txt +0 -196
  52. data/spec/data/struct_handler.rb.txt +0 -25
  53. data/spec/spec_helper.rb +0 -111
  54. data/spec/yard_sorbet/sig_handler_spec.rb +0 -233
  55. data/spec/yard_sorbet/struct_handler_spec.rb +0 -48
  56. data/yard-sorbet.gemspec +0 -27
@@ -1,19 +0,0 @@
1
- # This file is autogenerated. Do not edit it by hand. Regenerate it with:
2
- # srb rbi gems
3
-
4
- # typed: strong
5
- #
6
- # If you would like to make changes to this file, great! Please create the gem's shim here:
7
- #
8
- # https://github.com/sorbet/sorbet-typed/new/master?filename=lib/codecov/all/codecov.rbi
9
- #
10
- # codecov-0.1.16
11
- class SimpleCov::Formatter::Codecov
12
- def file_to_codecov(file); end
13
- def format(result); end
14
- def net_blockers(switch); end
15
- def result_to_codecov(result); end
16
- def result_to_codecov_coverage(result); end
17
- def result_to_codecov_messages(result); end
18
- def shortened_filename(file); end
19
- end
@@ -1,91 +0,0 @@
1
- # This file is autogenerated. Do not edit it by hand. Regenerate it with:
2
- # srb rbi gems
3
-
4
- # typed: strong
5
- #
6
- # If you would like to make changes to this file, great! Please create the gem's shim here:
7
- #
8
- # https://github.com/sorbet/sorbet-typed/new/master?filename=lib/coderay/all/coderay.rbi
9
- #
10
- # coderay-1.1.2
11
- module CodeRay
12
- def self.coderay_path(*path); end
13
- def self.encode(code, lang, format, options = nil); end
14
- def self.encode_file(filename, format, options = nil); end
15
- def self.encode_tokens(tokens, format, options = nil); end
16
- def self.encoder(format, options = nil); end
17
- def self.get_scanner_options(options); end
18
- def self.highlight(code, lang, options = nil, format = nil); end
19
- def self.highlight_file(filename, options = nil, format = nil); end
20
- def self.scan(code, lang, options = nil, &block); end
21
- def self.scan_file(filename, lang = nil, options = nil, &block); end
22
- def self.scanner(lang, options = nil, &block); end
23
- end
24
- module CodeRay::PluginHost
25
- def [](id, *args, &blk); end
26
- def all_plugins; end
27
- def const_missing(const); end
28
- def default(id = nil); end
29
- def list; end
30
- def load(id, *args, &blk); end
31
- def load_all; end
32
- def load_plugin_map; end
33
- def make_plugin_hash; end
34
- def map(hash); end
35
- def path_to(plugin_id); end
36
- def plugin_hash; end
37
- def plugin_path(*args); end
38
- def register(plugin, id); end
39
- def self.extended(mod); end
40
- def validate_id(id); end
41
- end
42
- class CodeRay::PluginHost::PluginNotFound < LoadError
43
- end
44
- class CodeRay::PluginHost::HostNotFound < LoadError
45
- end
46
- module CodeRay::Encoders
47
- extend CodeRay::PluginHost
48
- end
49
- module CodeRay::Plugin
50
- def aliases; end
51
- def plugin_host(host = nil); end
52
- def plugin_id; end
53
- def register_for(id); end
54
- def title(title = nil); end
55
- end
56
- class CodeRay::Encoders::Encoder
57
- def <<(token); end
58
- def begin_group(kind); end
59
- def begin_line(kind); end
60
- def compile(tokens, options = nil); end
61
- def encode(code, lang, options = nil); end
62
- def encode_tokens(tokens, options = nil); end
63
- def end_group(kind); end
64
- def end_line(kind); end
65
- def file_extension; end
66
- def finish(options); end
67
- def get_output(options); end
68
- def highlight(code, lang, options = nil); end
69
- def initialize(options = nil); end
70
- def options; end
71
- def options=(arg0); end
72
- def output(data); end
73
- def scanner; end
74
- def scanner=(arg0); end
75
- def self.const_missing(sym); end
76
- def self.file_extension; end
77
- def setup(options); end
78
- def text_token(text, kind); end
79
- def token(content, kind); end
80
- def tokens(tokens, options = nil); end
81
- extend CodeRay::Plugin
82
- end
83
- class CodeRay::Encoders::Terminal < CodeRay::Encoders::Encoder
84
- def begin_group(kind); end
85
- def begin_line(kind); end
86
- def end_group(kind); end
87
- def end_line(kind); end
88
- def open_token(kind); end
89
- def setup(options); end
90
- def text_token(text, kind); end
91
- end
@@ -1,31 +0,0 @@
1
- # This file is autogenerated. Do not edit it by hand. Regenerate it with:
2
- # srb rbi gems
3
-
4
- # typed: strong
5
- #
6
- # If you would like to make changes to this file, great! Please create the gem's shim here:
7
- #
8
- # https://github.com/sorbet/sorbet-typed/new/master?filename=lib/docile/all/docile.rbi
9
- #
10
- # docile-1.3.2
11
- module Docile
12
- def dsl_eval(dsl, *args, &block); end
13
- def dsl_eval_immutable(dsl, *args, &block); end
14
- def dsl_eval_with_block_return(dsl, *args, &block); end
15
- def self.dsl_eval(dsl, *args, &block); end
16
- def self.dsl_eval_immutable(dsl, *args, &block); end
17
- def self.dsl_eval_with_block_return(dsl, *args, &block); end
18
- extend Docile::Execution
19
- end
20
- module Docile::Execution
21
- def exec_in_proxy_context(dsl, proxy_type, *args, &block); end
22
- def self.exec_in_proxy_context(dsl, proxy_type, *args, &block); end
23
- end
24
- class Docile::FallbackContextProxy
25
- def initialize(receiver, fallback); end
26
- def instance_variables; end
27
- def method_missing(method, *args, &block); end
28
- end
29
- class Docile::ChainingFallbackContextProxy < Docile::FallbackContextProxy
30
- def method_missing(method, *args, &block); end
31
- end
@@ -1,14 +0,0 @@
1
- # This file is autogenerated. Do not edit it by hand. Regenerate it with:
2
- # srb rbi gems
3
-
4
- # typed: strong
5
- #
6
- # If you would like to make changes to this file, great! Please create the gem's shim here:
7
- #
8
- # https://github.com/sorbet/sorbet-typed/new/master?filename=lib/jaro_winkler/all/jaro_winkler.rbi
9
- #
10
- # jaro_winkler-1.5.4
11
- module JaroWinkler
12
- def self.distance(*arg0); end
13
- def self.jaro_distance(*arg0); end
14
- end
@@ -1,63 +0,0 @@
1
- # This file is autogenerated. Do not edit it by hand. Regenerate it with:
2
- # srb rbi gems
3
-
4
- # typed: strong
5
- #
6
- # If you would like to make changes to this file, great! Please create the gem's shim here:
7
- #
8
- # https://github.com/sorbet/sorbet-typed/new/master?filename=lib/method_source/all/method_source.rbi
9
- #
10
- # method_source-0.9.2
11
- module MethodSource
12
- def self.comment_helper(source_location, name = nil); end
13
- def self.extract_code(source_location); end
14
- def self.lines_for(file_name, name = nil); end
15
- def self.source_helper(source_location, name = nil); end
16
- def self.valid_expression?(str); end
17
- extend MethodSource::CodeHelpers
18
- end
19
- module MethodSource::ReeSourceLocation
20
- def source_location; end
21
- end
22
- module MethodSource::SourceLocation
23
- end
24
- module MethodSource::SourceLocation::MethodExtensions
25
- def source_location; end
26
- def trace_func(event, file, line, id, binding, classname); end
27
- end
28
- module MethodSource::SourceLocation::ProcExtensions
29
- def source_location; end
30
- end
31
- module MethodSource::SourceLocation::UnboundMethodExtensions
32
- def source_location; end
33
- end
34
- module MethodSource::CodeHelpers
35
- def comment_describing(file, line_number); end
36
- def complete_expression?(str); end
37
- def expression_at(file, line_number, options = nil); end
38
- def extract_first_expression(lines, consume = nil, &block); end
39
- def extract_last_comment(lines); end
40
- end
41
- module MethodSource::CodeHelpers::IncompleteExpression
42
- def self.===(ex); end
43
- def self.rbx?; end
44
- end
45
- class MethodSource::SourceNotFoundError < StandardError
46
- end
47
- module MethodSource::MethodExtensions
48
- def comment; end
49
- def self.included(klass); end
50
- def source; end
51
- end
52
- class Method
53
- include MethodSource::MethodExtensions
54
- include MethodSource::SourceLocation::MethodExtensions
55
- end
56
- class UnboundMethod
57
- include MethodSource::MethodExtensions
58
- include MethodSource::SourceLocation::UnboundMethodExtensions
59
- end
60
- class Proc
61
- include MethodSource::MethodExtensions
62
- include MethodSource::SourceLocation::ProcExtensions
63
- end
@@ -1,81 +0,0 @@
1
- # This file is autogenerated. Do not edit it by hand. Regenerate it with:
2
- # srb rbi gems
3
-
4
- # typed: strong
5
- #
6
- # If you would like to make changes to this file, great! Please create the gem's shim here:
7
- #
8
- # https://github.com/sorbet/sorbet-typed/new/master?filename=lib/parallel/all/parallel.rbi
9
- #
10
- # parallel-1.19.1
11
- module Parallel
12
- def self.add_progress_bar!(job_factory, options); end
13
- def self.all?(*args, &block); end
14
- def self.any?(*args, &block); end
15
- def self.call_with_index(item, index, options, &block); end
16
- def self.create_workers(job_factory, options, &block); end
17
- def self.each(array, options = nil, &block); end
18
- def self.each_with_index(array, options = nil, &block); end
19
- def self.extract_count_from_options(options); end
20
- def self.flat_map(*args, &block); end
21
- def self.handle_exception(exception, results); end
22
- def self.in_processes(options = nil, &block); end
23
- def self.in_threads(options = nil); end
24
- def self.map(source, options = nil, &block); end
25
- def self.map_with_index(array, options = nil, &block); end
26
- def self.process_incoming_jobs(read, write, job_factory, options, &block); end
27
- def self.replace_worker(job_factory, workers, i, options, blk); end
28
- def self.with_instrumentation(item, index, options); end
29
- def self.work_direct(job_factory, options, &block); end
30
- def self.work_in_processes(job_factory, options, &blk); end
31
- def self.work_in_threads(job_factory, options, &block); end
32
- def self.worker(job_factory, options, &block); end
33
- def self.worker_number; end
34
- def self.worker_number=(worker_num); end
35
- extend Parallel::ProcessorCount
36
- end
37
- module Parallel::ProcessorCount
38
- def physical_processor_count; end
39
- def processor_count; end
40
- end
41
- class Parallel::DeadWorker < StandardError
42
- end
43
- class Parallel::Break < StandardError
44
- end
45
- class Parallel::Kill < StandardError
46
- end
47
- class Parallel::UndumpableException < StandardError
48
- def backtrace; end
49
- def initialize(original); end
50
- end
51
- class Parallel::ExceptionWrapper
52
- def exception; end
53
- def initialize(exception); end
54
- end
55
- class Parallel::Worker
56
- def close_pipes; end
57
- def initialize(read, write, pid); end
58
- def pid; end
59
- def read; end
60
- def stop; end
61
- def thread; end
62
- def thread=(arg0); end
63
- def wait; end
64
- def work(data); end
65
- def write; end
66
- end
67
- class Parallel::JobFactory
68
- def initialize(source, mutex); end
69
- def next; end
70
- def pack(item, index); end
71
- def producer?; end
72
- def queue_wrapper(array); end
73
- def size; end
74
- def unpack(data); end
75
- end
76
- class Parallel::UserInterruptHandler
77
- def self.kill(thing); end
78
- def self.kill_on_ctrl_c(pids, options); end
79
- def self.restore_interrupt(old, signal); end
80
- def self.trap_interrupt(signal); end
81
- end
@@ -1,920 +0,0 @@
1
- # This file is autogenerated. Do not edit it by hand. Regenerate it with:
2
- # srb rbi gems
3
-
4
- # typed: strong
5
- #
6
- # If you would like to make changes to this file, great! Please create the gem's shim here:
7
- #
8
- # https://github.com/sorbet/sorbet-typed/new/master?filename=lib/parser/all/parser.rbi
9
- #
10
- # parser-2.7.0.1
11
- module Parser
12
- end
13
- module Parser::Deprecation
14
- def warn_of_deprecation; end
15
- def warned_of_deprecation=(arg0); end
16
- end
17
- module Parser::AST
18
- end
19
- class Parser::AST::Node < AST::Node
20
- def assign_properties(properties); end
21
- def loc; end
22
- def location; end
23
- end
24
- class Parser::AST::Processor < AST::Processor
25
- def on_alias(node); end
26
- def on_and(node); end
27
- def on_and_asgn(node); end
28
- def on_arg(node); end
29
- def on_arg_expr(node); end
30
- def on_args(node); end
31
- def on_argument(node); end
32
- def on_array(node); end
33
- def on_array_pattern(node); end
34
- def on_array_pattern_with_tail(node); end
35
- def on_back_ref(node); end
36
- def on_begin(node); end
37
- def on_block(node); end
38
- def on_block_pass(node); end
39
- def on_blockarg(node); end
40
- def on_blockarg_expr(node); end
41
- def on_break(node); end
42
- def on_case(node); end
43
- def on_case_match(node); end
44
- def on_casgn(node); end
45
- def on_class(node); end
46
- def on_const(node); end
47
- def on_const_pattern(node); end
48
- def on_csend(node); end
49
- def on_cvar(node); end
50
- def on_cvasgn(node); end
51
- def on_def(node); end
52
- def on_defined?(node); end
53
- def on_defs(node); end
54
- def on_dstr(node); end
55
- def on_dsym(node); end
56
- def on_eflipflop(node); end
57
- def on_ensure(node); end
58
- def on_erange(node); end
59
- def on_for(node); end
60
- def on_gvar(node); end
61
- def on_gvasgn(node); end
62
- def on_hash(node); end
63
- def on_hash_pattern(node); end
64
- def on_if(node); end
65
- def on_if_guard(node); end
66
- def on_iflipflop(node); end
67
- def on_in_match(node); end
68
- def on_in_pattern(node); end
69
- def on_index(node); end
70
- def on_indexasgn(node); end
71
- def on_irange(node); end
72
- def on_ivar(node); end
73
- def on_ivasgn(node); end
74
- def on_kwarg(node); end
75
- def on_kwbegin(node); end
76
- def on_kwoptarg(node); end
77
- def on_kwrestarg(node); end
78
- def on_kwsplat(node); end
79
- def on_lambda(node); end
80
- def on_lvar(node); end
81
- def on_lvasgn(node); end
82
- def on_masgn(node); end
83
- def on_match_alt(node); end
84
- def on_match_as(node); end
85
- def on_match_current_line(node); end
86
- def on_match_rest(node); end
87
- def on_match_var(node); end
88
- def on_match_with_lvasgn(node); end
89
- def on_mlhs(node); end
90
- def on_module(node); end
91
- def on_next(node); end
92
- def on_not(node); end
93
- def on_nth_ref(node); end
94
- def on_numblock(node); end
95
- def on_op_asgn(node); end
96
- def on_optarg(node); end
97
- def on_or(node); end
98
- def on_or_asgn(node); end
99
- def on_pair(node); end
100
- def on_pin(node); end
101
- def on_postexe(node); end
102
- def on_preexe(node); end
103
- def on_procarg0(node); end
104
- def on_redo(node); end
105
- def on_regexp(node); end
106
- def on_resbody(node); end
107
- def on_rescue(node); end
108
- def on_restarg(node); end
109
- def on_restarg_expr(node); end
110
- def on_retry(node); end
111
- def on_return(node); end
112
- def on_sclass(node); end
113
- def on_send(node); end
114
- def on_shadowarg(node); end
115
- def on_splat(node); end
116
- def on_super(node); end
117
- def on_undef(node); end
118
- def on_unless_guard(node); end
119
- def on_until(node); end
120
- def on_until_post(node); end
121
- def on_var(node); end
122
- def on_vasgn(node); end
123
- def on_when(node); end
124
- def on_while(node); end
125
- def on_while_post(node); end
126
- def on_xstr(node); end
127
- def on_yield(node); end
128
- def process_argument_node(node); end
129
- def process_regular_node(node); end
130
- def process_var_asgn_node(node); end
131
- def process_variable_node(node); end
132
- end
133
- module Parser::Meta
134
- end
135
- module Parser::Source
136
- end
137
- class Parser::Source::Buffer
138
- def column_for_position(position); end
139
- def decompose_position(position); end
140
- def first_line; end
141
- def initialize(name, first_line = nil); end
142
- def last_line; end
143
- def line_begins; end
144
- def line_for(position); end
145
- def line_for_position(position); end
146
- def line_range(lineno); end
147
- def name; end
148
- def raw_source=(input); end
149
- def read; end
150
- def self.recognize_encoding(string); end
151
- def self.reencode_string(input); end
152
- def slice(range); end
153
- def source; end
154
- def source=(input); end
155
- def source_line(lineno); end
156
- def source_lines; end
157
- def source_range; end
158
- end
159
- class Parser::Source::Range
160
- def <=>(other); end
161
- def adjust(begin_pos: nil, end_pos: nil); end
162
- def begin; end
163
- def begin_pos; end
164
- def column; end
165
- def column_range; end
166
- def contained?(other); end
167
- def contains?(other); end
168
- def crossing?(other); end
169
- def disjoint?(other); end
170
- def empty?; end
171
- def end; end
172
- def end_pos; end
173
- def first_line; end
174
- def initialize(source_buffer, begin_pos, end_pos); end
175
- def inspect; end
176
- def intersect(other); end
177
- def is?(*what); end
178
- def join(other); end
179
- def last_column; end
180
- def last_line; end
181
- def length; end
182
- def line; end
183
- def overlaps?(other); end
184
- def resize(new_size); end
185
- def size; end
186
- def source; end
187
- def source_buffer; end
188
- def source_line; end
189
- def to_a; end
190
- def to_s; end
191
- def with(begin_pos: nil, end_pos: nil); end
192
- include Comparable
193
- end
194
- class Parser::Source::Comment
195
- def ==(other); end
196
- def document?; end
197
- def initialize(range); end
198
- def inline?; end
199
- def inspect; end
200
- def loc; end
201
- def location; end
202
- def self.associate(ast, comments); end
203
- def self.associate_locations(ast, comments); end
204
- def text; end
205
- def type; end
206
- end
207
- class Parser::Source::Comment::Associator
208
- def advance_comment; end
209
- def advance_through_directives; end
210
- def associate; end
211
- def associate_and_advance_comment(node); end
212
- def associate_locations; end
213
- def current_comment_before?(node); end
214
- def current_comment_before_end?(node); end
215
- def current_comment_decorates?(node); end
216
- def do_associate; end
217
- def initialize(ast, comments); end
218
- def process_leading_comments(node); end
219
- def process_trailing_comments(node); end
220
- def skip_directives; end
221
- def skip_directives=(arg0); end
222
- def visit(node); end
223
- end
224
- class Parser::Source::Rewriter
225
- def active_clobber; end
226
- def active_clobber=(value); end
227
- def active_insertions; end
228
- def active_insertions=(value); end
229
- def active_queue; end
230
- def adjacent?(range1, range2); end
231
- def adjacent_insertion_mask(range); end
232
- def adjacent_insertions?(range); end
233
- def adjacent_position_mask(range); end
234
- def adjacent_updates?(range); end
235
- def append(action); end
236
- def can_merge?(action, existing); end
237
- def clobbered_insertion?(insertion); end
238
- def clobbered_position_mask(range); end
239
- def diagnostics; end
240
- def in_transaction?; end
241
- def initialize(source_buffer); end
242
- def insert_after(range, content); end
243
- def insert_after_multi(range, content); end
244
- def insert_before(range, content); end
245
- def insert_before_multi(range, content); end
246
- def merge_actions!(action, existing); end
247
- def merge_actions(action, existing); end
248
- def merge_replacements(actions); end
249
- def process; end
250
- def raise_clobber_error(action, existing); end
251
- def record_insertion(range); end
252
- def record_replace(range); end
253
- def remove(range); end
254
- def replace(range, content); end
255
- def replace_actions(old, updated); end
256
- def replace_compatible_with_insertion?(replace, insertion); end
257
- def source_buffer; end
258
- def transaction; end
259
- def wrap(range, before, after); end
260
- extend Parser::Deprecation
261
- end
262
- class Parser::Source::Rewriter::Action
263
- def <=>(other); end
264
- def allow_multiple_insertions; end
265
- def allow_multiple_insertions?; end
266
- def initialize(range, replacement = nil, allow_multiple_insertions = nil, order = nil); end
267
- def order; end
268
- def range; end
269
- def replacement; end
270
- def to_s; end
271
- include Comparable
272
- end
273
- class Parser::Source::TreeRewriter
274
- def check_policy_validity; end
275
- def check_range_validity(range); end
276
- def combine(range, attributes); end
277
- def diagnostics; end
278
- def enforce_policy(event); end
279
- def in_transaction?; end
280
- def initialize(source_buffer, crossing_deletions: nil, different_replacements: nil, swallowed_insertions: nil); end
281
- def insert_after(range, content); end
282
- def insert_after_multi(range, text); end
283
- def insert_before(range, content); end
284
- def insert_before_multi(range, text); end
285
- def process; end
286
- def remove(range); end
287
- def replace(range, content); end
288
- def source_buffer; end
289
- def transaction; end
290
- def trigger_policy(event, range: nil, conflict: nil, **arguments); end
291
- def wrap(range, insert_before, insert_after); end
292
- extend Parser::Deprecation
293
- end
294
- class Parser::Source::TreeRewriter::Action
295
- def call_enforcer_for_merge(action); end
296
- def combine(action); end
297
- def do_combine(action); end
298
- def fuse_deletions(action, fusible, other_sibblings); end
299
- def initialize(range, enforcer, insert_before: nil, replacement: nil, insert_after: nil, children: nil); end
300
- def insert_after; end
301
- def insert_before; end
302
- def insertion?; end
303
- def merge(action); end
304
- def ordered_replacements; end
305
- def place_in_hierachy(action); end
306
- def range; end
307
- def relationship_with(action); end
308
- def replacement; end
309
- def swallow(children); end
310
- def with(range: nil, children: nil, insert_before: nil, replacement: nil, insert_after: nil); end
311
- end
312
- class Parser::Source::Map
313
- def ==(other); end
314
- def column; end
315
- def expression; end
316
- def first_line; end
317
- def initialize(expression); end
318
- def initialize_copy(other); end
319
- def last_column; end
320
- def last_line; end
321
- def line; end
322
- def node; end
323
- def node=(node); end
324
- def to_hash; end
325
- def update_expression(expression_l); end
326
- def with(&block); end
327
- def with_expression(expression_l); end
328
- end
329
- class Parser::Source::Map::Operator < Parser::Source::Map
330
- def initialize(operator, expression); end
331
- def operator; end
332
- end
333
- class Parser::Source::Map::Collection < Parser::Source::Map
334
- def begin; end
335
- def end; end
336
- def initialize(begin_l, end_l, expression_l); end
337
- end
338
- class Parser::Source::Map::Constant < Parser::Source::Map
339
- def double_colon; end
340
- def initialize(double_colon, name, expression); end
341
- def name; end
342
- def operator; end
343
- def update_operator(operator_l); end
344
- def with_operator(operator_l); end
345
- end
346
- class Parser::Source::Map::Variable < Parser::Source::Map
347
- def initialize(name_l, expression_l = nil); end
348
- def name; end
349
- def operator; end
350
- def update_operator(operator_l); end
351
- def with_operator(operator_l); end
352
- end
353
- class Parser::Source::Map::Keyword < Parser::Source::Map
354
- def begin; end
355
- def end; end
356
- def initialize(keyword_l, begin_l, end_l, expression_l); end
357
- def keyword; end
358
- end
359
- class Parser::Source::Map::Definition < Parser::Source::Map
360
- def end; end
361
- def initialize(keyword_l, operator_l, name_l, end_l); end
362
- def keyword; end
363
- def name; end
364
- def operator; end
365
- end
366
- class Parser::Source::Map::Send < Parser::Source::Map
367
- def begin; end
368
- def dot; end
369
- def end; end
370
- def initialize(dot_l, selector_l, begin_l, end_l, expression_l); end
371
- def operator; end
372
- def selector; end
373
- def update_operator(operator_l); end
374
- def with_operator(operator_l); end
375
- end
376
- class Parser::Source::Map::Index < Parser::Source::Map
377
- def begin; end
378
- def end; end
379
- def initialize(begin_l, end_l, expression_l); end
380
- def operator; end
381
- def update_operator(operator_l); end
382
- def with_operator(operator_l); end
383
- end
384
- class Parser::Source::Map::Condition < Parser::Source::Map
385
- def begin; end
386
- def else; end
387
- def end; end
388
- def initialize(keyword_l, begin_l, else_l, end_l, expression_l); end
389
- def keyword; end
390
- end
391
- class Parser::Source::Map::Ternary < Parser::Source::Map
392
- def colon; end
393
- def initialize(question_l, colon_l, expression_l); end
394
- def question; end
395
- end
396
- class Parser::Source::Map::For < Parser::Source::Map
397
- def begin; end
398
- def end; end
399
- def in; end
400
- def initialize(keyword_l, in_l, begin_l, end_l, expression_l); end
401
- def keyword; end
402
- end
403
- class Parser::Source::Map::RescueBody < Parser::Source::Map
404
- def assoc; end
405
- def begin; end
406
- def initialize(keyword_l, assoc_l, begin_l, expression_l); end
407
- def keyword; end
408
- end
409
- class Parser::Source::Map::Heredoc < Parser::Source::Map
410
- def heredoc_body; end
411
- def heredoc_end; end
412
- def initialize(begin_l, body_l, end_l); end
413
- end
414
- class Parser::Source::Map::ObjcKwarg < Parser::Source::Map
415
- def argument; end
416
- def initialize(keyword_l, operator_l, argument_l, expression_l); end
417
- def keyword; end
418
- def operator; end
419
- end
420
- class Parser::SyntaxError < StandardError
421
- def diagnostic; end
422
- def initialize(diagnostic); end
423
- end
424
- class Parser::ClobberingError < RuntimeError
425
- end
426
- class Parser::Diagnostic
427
- def arguments; end
428
- def first_line_only(range); end
429
- def highlights; end
430
- def initialize(level, reason, arguments, location, highlights = nil); end
431
- def last_line_only(range); end
432
- def level; end
433
- def location; end
434
- def message; end
435
- def reason; end
436
- def render; end
437
- def render_line(range, ellipsis = nil, range_end = nil); end
438
- end
439
- class Parser::Diagnostic::Engine
440
- def all_errors_are_fatal; end
441
- def all_errors_are_fatal=(arg0); end
442
- def consumer; end
443
- def consumer=(arg0); end
444
- def ignore?(diagnostic); end
445
- def ignore_warnings; end
446
- def ignore_warnings=(arg0); end
447
- def initialize(consumer = nil); end
448
- def process(diagnostic); end
449
- def raise?(diagnostic); end
450
- end
451
- class Parser::StaticEnvironment
452
- def declare(name); end
453
- def declare_forward_args; end
454
- def declared?(name); end
455
- def declared_forward_args?; end
456
- def extend_dynamic; end
457
- def extend_static; end
458
- def initialize; end
459
- def reset; end
460
- def unextend; end
461
- end
462
- class Parser::Lexer
463
- def advance; end
464
- def arg_or_cmdarg(cmd_state); end
465
- def cmdarg; end
466
- def cmdarg=(arg0); end
467
- def command_start; end
468
- def command_start=(arg0); end
469
- def comments; end
470
- def comments=(arg0); end
471
- def cond; end
472
- def cond=(arg0); end
473
- def context; end
474
- def context=(arg0); end
475
- def dedent_level; end
476
- def diagnostic(type, reason, arguments = nil, location = nil, highlights = nil); end
477
- def diagnostics; end
478
- def diagnostics=(arg0); end
479
- def emit(type, value = nil, s = nil, e = nil); end
480
- def emit_comment(s = nil, e = nil); end
481
- def emit_do(do_block = nil); end
482
- def emit_table(table, s = nil, e = nil); end
483
- def encode_escape(ord); end
484
- def encoding; end
485
- def eof_codepoint?(point); end
486
- def force_utf32; end
487
- def force_utf32=(arg0); end
488
- def in_kwarg; end
489
- def in_kwarg=(arg0); end
490
- def initialize(version); end
491
- def literal; end
492
- def next_state_for_literal(literal); end
493
- def pop_cmdarg; end
494
- def pop_cond; end
495
- def pop_literal; end
496
- def push_cmdarg; end
497
- def push_cond; end
498
- def push_literal(*args); end
499
- def range(s = nil, e = nil); end
500
- def reset(reset_state = nil); end
501
- def self._lex_eof_trans; end
502
- def self._lex_eof_trans=(arg0); end
503
- def self._lex_from_state_actions; end
504
- def self._lex_from_state_actions=(arg0); end
505
- def self._lex_index_offsets; end
506
- def self._lex_index_offsets=(arg0); end
507
- def self._lex_indicies; end
508
- def self._lex_indicies=(arg0); end
509
- def self._lex_key_spans; end
510
- def self._lex_key_spans=(arg0); end
511
- def self._lex_to_state_actions; end
512
- def self._lex_to_state_actions=(arg0); end
513
- def self._lex_trans_actions; end
514
- def self._lex_trans_actions=(arg0); end
515
- def self._lex_trans_keys; end
516
- def self._lex_trans_keys=(arg0); end
517
- def self._lex_trans_targs; end
518
- def self._lex_trans_targs=(arg0); end
519
- def self.lex_en_expr_arg; end
520
- def self.lex_en_expr_arg=(arg0); end
521
- def self.lex_en_expr_beg; end
522
- def self.lex_en_expr_beg=(arg0); end
523
- def self.lex_en_expr_cmdarg; end
524
- def self.lex_en_expr_cmdarg=(arg0); end
525
- def self.lex_en_expr_dot; end
526
- def self.lex_en_expr_dot=(arg0); end
527
- def self.lex_en_expr_end; end
528
- def self.lex_en_expr_end=(arg0); end
529
- def self.lex_en_expr_endarg; end
530
- def self.lex_en_expr_endarg=(arg0); end
531
- def self.lex_en_expr_endfn; end
532
- def self.lex_en_expr_endfn=(arg0); end
533
- def self.lex_en_expr_fname; end
534
- def self.lex_en_expr_fname=(arg0); end
535
- def self.lex_en_expr_labelarg; end
536
- def self.lex_en_expr_labelarg=(arg0); end
537
- def self.lex_en_expr_mid; end
538
- def self.lex_en_expr_mid=(arg0); end
539
- def self.lex_en_expr_value; end
540
- def self.lex_en_expr_value=(arg0); end
541
- def self.lex_en_expr_variable; end
542
- def self.lex_en_expr_variable=(arg0); end
543
- def self.lex_en_interp_backslash_delimited; end
544
- def self.lex_en_interp_backslash_delimited=(arg0); end
545
- def self.lex_en_interp_backslash_delimited_words; end
546
- def self.lex_en_interp_backslash_delimited_words=(arg0); end
547
- def self.lex_en_interp_string; end
548
- def self.lex_en_interp_string=(arg0); end
549
- def self.lex_en_interp_words; end
550
- def self.lex_en_interp_words=(arg0); end
551
- def self.lex_en_leading_dot; end
552
- def self.lex_en_leading_dot=(arg0); end
553
- def self.lex_en_line_begin; end
554
- def self.lex_en_line_begin=(arg0); end
555
- def self.lex_en_line_comment; end
556
- def self.lex_en_line_comment=(arg0); end
557
- def self.lex_en_plain_backslash_delimited; end
558
- def self.lex_en_plain_backslash_delimited=(arg0); end
559
- def self.lex_en_plain_backslash_delimited_words; end
560
- def self.lex_en_plain_backslash_delimited_words=(arg0); end
561
- def self.lex_en_plain_string; end
562
- def self.lex_en_plain_string=(arg0); end
563
- def self.lex_en_plain_words; end
564
- def self.lex_en_plain_words=(arg0); end
565
- def self.lex_en_regexp_modifiers; end
566
- def self.lex_en_regexp_modifiers=(arg0); end
567
- def self.lex_error; end
568
- def self.lex_error=(arg0); end
569
- def self.lex_start; end
570
- def self.lex_start=(arg0); end
571
- def source_buffer; end
572
- def source_buffer=(source_buffer); end
573
- def stack_pop; end
574
- def state; end
575
- def state=(state); end
576
- def static_env; end
577
- def static_env=(arg0); end
578
- def tok(s = nil, e = nil); end
579
- def tokens; end
580
- def tokens=(arg0); end
581
- def version?(*versions); end
582
- end
583
- class Parser::Lexer::Literal
584
- def backslash_delimited?; end
585
- def clear_buffer; end
586
- def coerce_encoding(string); end
587
- def dedent_level; end
588
- def delimiter?(delimiter); end
589
- def emit(token, type, s, e); end
590
- def emit_start_tok; end
591
- def end_interp_brace_and_try_closing; end
592
- def extend_content; end
593
- def extend_space(ts, te); end
594
- def extend_string(string, ts, te); end
595
- def flush_string; end
596
- def heredoc?; end
597
- def heredoc_e; end
598
- def infer_indent_level(line); end
599
- def initialize(lexer, str_type, delimiter, str_s, heredoc_e = nil, indent = nil, dedent_body = nil, label_allowed = nil); end
600
- def interpolate?; end
601
- def munge_escape?(character); end
602
- def nest_and_try_closing(delimiter, ts, te, lookahead = nil); end
603
- def plain_heredoc?; end
604
- def regexp?; end
605
- def saved_herebody_s; end
606
- def saved_herebody_s=(arg0); end
607
- def squiggly_heredoc?; end
608
- def start_interp_brace; end
609
- def str_s; end
610
- def supports_line_continuation_via_slash?; end
611
- def type; end
612
- def words?; end
613
- end
614
- class Parser::Lexer::StackState
615
- def active?; end
616
- def clear; end
617
- def empty?; end
618
- def initialize(name); end
619
- def inspect; end
620
- def lexpop; end
621
- def pop; end
622
- def push(bit); end
623
- def to_s; end
624
- end
625
- class Parser::Lexer::Dedenter
626
- def dedent(string); end
627
- def initialize(dedent_level); end
628
- def interrupt; end
629
- end
630
- class Parser::Builders::Default
631
- def __ENCODING__(__ENCODING__t); end
632
- def __FILE__(__FILE__t); end
633
- def __LINE__(__LINE__t); end
634
- def accessible(node); end
635
- def alias(alias_t, to, from); end
636
- def arg(name_t); end
637
- def arg_expr(expr); end
638
- def arg_name_collides?(this_name, that_name); end
639
- def arg_prefix_map(op_t, name_t = nil); end
640
- def args(begin_t, args, end_t, check_args = nil); end
641
- def array(begin_t, elements, end_t); end
642
- def array_pattern(lbrack_t, elements, rbrack_t); end
643
- def assign(lhs, eql_t, rhs); end
644
- def assignable(node); end
645
- def associate(begin_t, pairs, end_t); end
646
- def attr_asgn(receiver, dot_t, selector_t); end
647
- def back_ref(token); end
648
- def begin(begin_t, body, end_t); end
649
- def begin_body(compound_stmt, rescue_bodies = nil, else_t = nil, else_ = nil, ensure_t = nil, ensure_ = nil); end
650
- def begin_keyword(begin_t, body, end_t); end
651
- def binary_op(receiver, operator_t, arg); end
652
- def binary_op_map(left_e, op_t, right_e); end
653
- def block(method_call, begin_t, args, body, end_t); end
654
- def block_map(receiver_l, begin_t, end_t); end
655
- def block_pass(amper_t, arg); end
656
- def blockarg(amper_t, name_t); end
657
- def blockarg_expr(amper_t, expr); end
658
- def call_lambda(lambda_t); end
659
- def call_method(receiver, dot_t, selector_t, lparen_t = nil, args = nil, rparen_t = nil); end
660
- def call_type_for_dot(dot_t); end
661
- def case(case_t, expr, when_bodies, else_t, else_body, end_t); end
662
- def case_match(case_t, expr, in_bodies, else_t, else_body, end_t); end
663
- def character(char_t); end
664
- def check_assignment_to_numparam(node); end
665
- def check_condition(cond); end
666
- def check_duplicate_arg(this_arg, map = nil); end
667
- def check_duplicate_args(args, map = nil); end
668
- def check_duplicate_pattern_key(name, loc); end
669
- def check_duplicate_pattern_variable(name, loc); end
670
- def check_lvar_name(name, loc); end
671
- def collapse_string_parts?(parts); end
672
- def collection_map(begin_t, parts, end_t); end
673
- def complex(complex_t); end
674
- def compstmt(statements); end
675
- def condition(cond_t, cond, then_t, if_true, else_t, if_false, end_t); end
676
- def condition_map(keyword_t, cond_e, begin_t, body_e, else_t, else_e, end_t); end
677
- def condition_mod(if_true, if_false, cond_t, cond); end
678
- def const(name_t); end
679
- def const_fetch(scope, t_colon2, name_t); end
680
- def const_global(t_colon3, name_t); end
681
- def const_op_assignable(node); end
682
- def const_pattern(const, ldelim_t, pattern, rdelim_t); end
683
- def constant_map(scope, colon2_t, name_t); end
684
- def cvar(token); end
685
- def dedent_string(node, dedent_level); end
686
- def def_class(class_t, name, lt_t, superclass, body, end_t); end
687
- def def_method(def_t, name_t, args, body, end_t); end
688
- def def_module(module_t, name, body, end_t); end
689
- def def_sclass(class_t, lshft_t, expr, body, end_t); end
690
- def def_singleton(def_t, definee, dot_t, name_t, args, body, end_t); end
691
- def definition_map(keyword_t, operator_t, name_t, end_t); end
692
- def delimited_string_map(string_t); end
693
- def diagnostic(type, reason, arguments, location, highlights = nil); end
694
- def eh_keyword_map(compstmt_e, keyword_t, body_es, else_t, else_e); end
695
- def emit_file_line_as_literals; end
696
- def emit_file_line_as_literals=(arg0); end
697
- def expr_map(loc); end
698
- def false(false_t); end
699
- def float(float_t); end
700
- def for(for_t, iterator, in_t, iteratee, do_t, body, end_t); end
701
- def for_map(keyword_t, in_t, begin_t, end_t); end
702
- def forward_args(begin_t, dots_t, end_t); end
703
- def forwarded_args(dots_t); end
704
- def guard_map(keyword_t, guard_body_e); end
705
- def gvar(token); end
706
- def hash_pattern(lbrace_t, kwargs, rbrace_t); end
707
- def ident(token); end
708
- def if_guard(if_t, if_body); end
709
- def in_match(lhs, in_t, rhs); end
710
- def in_pattern(in_t, pattern, guard, then_t, body); end
711
- def index(receiver, lbrack_t, indexes, rbrack_t); end
712
- def index_asgn(receiver, lbrack_t, indexes, rbrack_t); end
713
- def index_map(receiver_e, lbrack_t, rbrack_t); end
714
- def initialize; end
715
- def integer(integer_t); end
716
- def ivar(token); end
717
- def join_exprs(left_expr, right_expr); end
718
- def keyword_cmd(type, keyword_t, lparen_t = nil, args = nil, rparen_t = nil); end
719
- def keyword_map(keyword_t, begin_t, args, end_t); end
720
- def keyword_mod_map(pre_e, keyword_t, post_e); end
721
- def kwarg(name_t); end
722
- def kwarg_map(name_t, value_e = nil); end
723
- def kwnilarg(dstar_t, nil_t); end
724
- def kwoptarg(name_t, value); end
725
- def kwrestarg(dstar_t, name_t = nil); end
726
- def kwsplat(dstar_t, arg); end
727
- def loc(token); end
728
- def logical_op(type, lhs, op_t, rhs); end
729
- def loop(type, keyword_t, cond, do_t, body, end_t); end
730
- def loop_mod(type, body, keyword_t, cond); end
731
- def match_alt(left, pipe_t, right); end
732
- def match_as(value, assoc_t, as); end
733
- def match_hash_var(name_t); end
734
- def match_hash_var_from_str(begin_t, strings, end_t); end
735
- def match_label(label_type, label); end
736
- def match_nil_pattern(dstar_t, nil_t); end
737
- def match_op(receiver, match_t, arg); end
738
- def match_pair(label_type, label, value); end
739
- def match_rest(star_t, name_t = nil); end
740
- def match_var(name_t); end
741
- def match_with_trailing_comma(match); end
742
- def module_definition_map(keyword_t, name_e, operator_t, end_t); end
743
- def multi_assign(lhs, eql_t, rhs); end
744
- def multi_lhs(begin_t, items, end_t); end
745
- def n(type, children, source_map); end
746
- def n0(type, source_map); end
747
- def nil(nil_t); end
748
- def not_op(not_t, begin_t = nil, receiver = nil, end_t = nil); end
749
- def nth_ref(token); end
750
- def numargs(max_numparam); end
751
- def numeric(kind, token); end
752
- def objc_kwarg(kwname_t, assoc_t, name_t); end
753
- def objc_restarg(star_t, name = nil); end
754
- def objc_varargs(pair, rest_of_varargs); end
755
- def op_assign(lhs, op_t, rhs); end
756
- def optarg(name_t, eql_t, value); end
757
- def pair(key, assoc_t, value); end
758
- def pair_keyword(key_t, value); end
759
- def pair_keyword_map(key_t, value_e); end
760
- def pair_list_18(list); end
761
- def pair_quoted(begin_t, parts, end_t, value); end
762
- def pair_quoted_map(begin_t, end_t, value_e); end
763
- def parser; end
764
- def parser=(arg0); end
765
- def pin(pin_t, var); end
766
- def postexe(postexe_t, lbrace_t, compstmt, rbrace_t); end
767
- def preexe(preexe_t, lbrace_t, compstmt, rbrace_t); end
768
- def prefix_string_map(symbol); end
769
- def procarg0(arg); end
770
- def range_exclusive(lhs, dot3_t, rhs); end
771
- def range_inclusive(lhs, dot2_t, rhs); end
772
- def range_map(start_e, op_t, end_e); end
773
- def rational(rational_t); end
774
- def regexp_compose(begin_t, parts, end_t, options); end
775
- def regexp_map(begin_t, end_t, options_e); end
776
- def regexp_options(regopt_t); end
777
- def rescue_body(rescue_t, exc_list, assoc_t, exc_var, then_t, compound_stmt); end
778
- def rescue_body_map(keyword_t, exc_list_e, assoc_t, exc_var_e, then_t, compstmt_e); end
779
- def restarg(star_t, name_t = nil); end
780
- def restarg_expr(star_t, expr = nil); end
781
- def self(token); end
782
- def self.emit_arg_inside_procarg0; end
783
- def self.emit_arg_inside_procarg0=(arg0); end
784
- def self.emit_encoding; end
785
- def self.emit_encoding=(arg0); end
786
- def self.emit_index; end
787
- def self.emit_index=(arg0); end
788
- def self.emit_lambda; end
789
- def self.emit_lambda=(arg0); end
790
- def self.emit_procarg0; end
791
- def self.emit_procarg0=(arg0); end
792
- def self.modernize; end
793
- def send_binary_op_map(lhs_e, selector_t, rhs_e); end
794
- def send_index_map(receiver_e, lbrack_t, rbrack_t); end
795
- def send_map(receiver_e, dot_t, selector_t, begin_t = nil, args = nil, end_t = nil); end
796
- def send_unary_op_map(selector_t, arg_e); end
797
- def shadowarg(name_t); end
798
- def splat(star_t, arg = nil); end
799
- def static_regexp(parts, options); end
800
- def static_regexp_node(node); end
801
- def static_string(nodes); end
802
- def string(string_t); end
803
- def string_compose(begin_t, parts, end_t); end
804
- def string_internal(string_t); end
805
- def string_map(begin_t, parts, end_t); end
806
- def string_value(token); end
807
- def symbol(symbol_t); end
808
- def symbol_compose(begin_t, parts, end_t); end
809
- def symbol_internal(symbol_t); end
810
- def symbols_compose(begin_t, parts, end_t); end
811
- def ternary(cond, question_t, if_true, colon_t, if_false); end
812
- def ternary_map(begin_e, question_t, mid_e, colon_t, end_e); end
813
- def token_map(token); end
814
- def true(true_t); end
815
- def unary_num(unary_t, numeric); end
816
- def unary_op(op_t, receiver); end
817
- def unary_op_map(op_t, arg_e = nil); end
818
- def undef_method(undef_t, names); end
819
- def unless_guard(unless_t, unless_body); end
820
- def unquoted_map(token); end
821
- def value(token); end
822
- def var_send_map(variable_e); end
823
- def variable_map(name_t); end
824
- def when(when_t, patterns, then_t, body); end
825
- def word(parts); end
826
- def words_compose(begin_t, parts, end_t); end
827
- def xstring_compose(begin_t, parts, end_t); end
828
- end
829
- class Parser::Context
830
- def class_definition_allowed?; end
831
- def dynamic_const_definition_allowed?; end
832
- def in_block?; end
833
- def in_class?; end
834
- def in_dynamic_block?; end
835
- def in_lambda?; end
836
- def indirectly_in_def?; end
837
- def initialize; end
838
- def module_definition_allowed?; end
839
- def pop; end
840
- def push(state); end
841
- def reset; end
842
- def stack; end
843
- end
844
- class Parser::MaxNumparamStack
845
- def has_numparams?; end
846
- def has_ordinary_params!; end
847
- def has_ordinary_params?; end
848
- def initialize; end
849
- def pop; end
850
- def push; end
851
- def register(numparam); end
852
- def set(value); end
853
- def stack; end
854
- def top; end
855
- end
856
- class Parser::CurrentArgStack
857
- def initialize; end
858
- def pop; end
859
- def push(value); end
860
- def reset; end
861
- def set(value); end
862
- def stack; end
863
- def top; end
864
- end
865
- class Parser::VariablesStack
866
- def declare(name); end
867
- def declared?(name); end
868
- def initialize; end
869
- def pop; end
870
- def push; end
871
- def reset; end
872
- end
873
- class Parser::Base < Racc::Parser
874
- def builder; end
875
- def check_kwarg_name(name_t); end
876
- def context; end
877
- def current_arg_stack; end
878
- def diagnostic(level, reason, arguments, location_t, highlights_ts = nil); end
879
- def diagnostics; end
880
- def initialize(builder = nil); end
881
- def max_numparam_stack; end
882
- def next_token; end
883
- def on_error(error_token_id, error_value, value_stack); end
884
- def parse(source_buffer); end
885
- def parse_with_comments(source_buffer); end
886
- def pattern_hash_keys; end
887
- def pattern_variables; end
888
- def reset; end
889
- def self.default_parser; end
890
- def self.parse(string, file = nil, line = nil); end
891
- def self.parse_file(filename); end
892
- def self.parse_file_with_comments(filename); end
893
- def self.parse_with_comments(string, file = nil, line = nil); end
894
- def self.setup_source_buffer(file, line, string, encoding); end
895
- def source_buffer; end
896
- def static_env; end
897
- def tokenize(source_buffer, recover = nil); end
898
- end
899
- class Parser::Rewriter < Parser::AST::Processor
900
- def assignment?(node); end
901
- def initialize(*arg0); end
902
- def insert_after(range, content); end
903
- def insert_before(range, content); end
904
- def remove(range); end
905
- def replace(range, content); end
906
- def rewrite(source_buffer, ast); end
907
- def wrap(range, before, after); end
908
- extend Parser::Deprecation
909
- end
910
- class Parser::TreeRewriter < Parser::AST::Processor
911
- def assignment?(node); end
912
- def insert_after(range, content); end
913
- def insert_before(range, content); end
914
- def remove(range); end
915
- def replace(range, content); end
916
- def rewrite(source_buffer, ast, **policy); end
917
- def wrap(range, before, after); end
918
- end
919
- module Parser::Builders
920
- end