diff --git a/sorbet/rbi/gems/.gitattributes b/sorbet/rbi/gems/.gitattributes
new file mode 100644
index 00000000..d9bb82a4
--- /dev/null
+++ b/sorbet/rbi/gems/.gitattributes
@@ -0,0 +1 @@
+**/*.rbi linguist-generated=true
diff --git a/sorbet/rbi/gems/json@2.6.3.rbi b/sorbet/rbi/gems/json@2.7.1.rbi
similarity index 92%
rename from sorbet/rbi/gems/json@2.6.3.rbi
rename to sorbet/rbi/gems/json@2.7.1.rbi
index 259116aa..e22ce040 100644
--- a/sorbet/rbi/gems/json@2.6.3.rbi
+++ b/sorbet/rbi/gems/json@2.7.1.rbi
@@ -1,10 +1,12 @@
-# typed: true
+# typed: false
# DO NOT EDIT MANUALLY
# This is an autogenerated file for types exported from the `json` gem.
# Please instead update this file by running `bin/tapioca gem json`.
# Extends any Class to include _json_creatable?_ method.
+#
+# source://json//lib/json/common.rb#689
class Class < ::Module
# Returns true if this class can be used to create an instance
# from a serialised JSON string. The class has to implement a class
@@ -13,7 +15,7 @@ class Class < ::Module
#
# @return [Boolean]
#
- # source://json//json/common.rb#700
+ # source://json//lib/json/common.rb#694
def json_creatable?; end
end
@@ -300,6 +302,15 @@ end
# # Raises JSON::NestingError (nesting of 2 is too deep):
# JSON.generate(obj, max_nesting: 2)
#
+# ====== Escaping Options
+#
+# Options +script_safe+ (boolean) specifies wether '\u2028', '\u2029'
+# and '/' should be escaped as to make the JSON object safe to interpolate in script
+# tags.
+#
+# Options +ascii_only+ (boolean) specifies wether all characters outside the ASCII range
+# should be escaped.
+#
# ====== Output Options
#
# The default formatting options generate the most compact
@@ -586,6 +597,8 @@ end
# Parsed JSON:
# Without custom addition: "#" (String)
# With custom addition: # (Foo)
+#
+# source://json//lib/json/version.rb#2
module JSON
private
@@ -617,8 +630,8 @@ module JSON
# Output:
# {"foo":[0,1],"bar":{"baz":2,"bat":3},"bam":"bad"}
#
- # source://json//json/common.rb#631
- def dump(obj, anIO = T.unsafe(nil), limit = T.unsafe(nil)); end
+ # source://json//lib/json/common.rb#614
+ def dump(obj, anIO = T.unsafe(nil), limit = T.unsafe(nil), kwargs = T.unsafe(nil)); end
# :call-seq:
# JSON.fast_generate(obj, opts) -> new_string
@@ -634,13 +647,13 @@ module JSON
# # Raises SystemStackError (stack level too deep):
# JSON.fast_generate(a)
#
- # source://json//json/common.rb#335
+ # source://json//lib/json/common.rb#328
def fast_generate(obj, opts = T.unsafe(nil)); end
# :stopdoc:
# I want to deprecate these later, so I'll first be silent about them, and later delete them.
#
- # source://json//json/common.rb#335
+ # source://json//lib/json/common.rb#328
def fast_unparse(obj, opts = T.unsafe(nil)); end
# :call-seq:
@@ -679,7 +692,7 @@ module JSON
# # Raises JSON::NestingError (nesting of 100 is too deep):
# JSON.generate(a)
#
- # source://json//json/common.rb#296
+ # source://json//lib/json/common.rb#299
def generate(obj, opts = T.unsafe(nil)); end
# :call-seq:
@@ -810,7 +823,7 @@ module JSON
# #"Admin", "password"=>"0wn3d"}>}
#
- # source://json//json/common.rb#557
+ # source://json//lib/json/common.rb#540
def load(source, proc = T.unsafe(nil), options = T.unsafe(nil)); end
# :call-seq:
@@ -821,7 +834,7 @@ module JSON
#
# See method #parse.
#
- # source://json//json/common.rb#245
+ # source://json//lib/json/common.rb#248
def load_file(filespec, opts = T.unsafe(nil)); end
# :call-seq:
@@ -832,9 +845,12 @@ module JSON
#
# See method #parse!
#
- # source://json//json/common.rb#256
+ # source://json//lib/json/common.rb#259
def load_file!(filespec, opts = T.unsafe(nil)); end
+ # source://json//lib/json/common.rb#642
+ def merge_dump_options(opts, strict: T.unsafe(nil)); end
+
# :call-seq:
# JSON.parse(source, opts) -> object
#
@@ -883,7 +899,7 @@ module JSON
# # Raises JSON::ParserError (783: unexpected token at ''):
# JSON.parse('')
#
- # source://json//json/common.rb#215
+ # source://json//lib/json/common.rb#218
def parse(source, opts = T.unsafe(nil)); end
# :call-seq:
@@ -898,7 +914,7 @@ module JSON
# which disables checking for nesting depth.
# - Option +allow_nan+, if not provided, defaults to +true+.
#
- # source://json//json/common.rb#230
+ # source://json//lib/json/common.rb#233
def parse!(source, opts = T.unsafe(nil)); end
# :call-seq:
@@ -931,28 +947,28 @@ module JSON
# }
# }
#
- # source://json//json/common.rb#390
+ # source://json//lib/json/common.rb#373
def pretty_generate(obj, opts = T.unsafe(nil)); end
# :stopdoc:
# I want to deprecate these later, so I'll first be silent about them, and later delete them.
#
- # source://json//json/common.rb#390
+ # source://json//lib/json/common.rb#373
def pretty_unparse(obj, opts = T.unsafe(nil)); end
# Recursively calls passed _Proc_ if the parsed data structure is an _Array_ or _Hash_
#
- # source://json//json/common.rb#575
+ # source://json//lib/json/common.rb#558
def recurse_proc(result, &proc); end
- # source://json//json/common.rb#557
+ # source://json//lib/json/common.rb#540
def restore(source, proc = T.unsafe(nil), options = T.unsafe(nil)); end
# :stopdoc:
# I want to deprecate these later, so I'll first be silent about them, and
# later delete them.
#
- # source://json//json/common.rb#296
+ # source://json//lib/json/common.rb#299
def unparse(obj, opts = T.unsafe(nil)); end
class << self
@@ -968,26 +984,26 @@ module JSON
# ruby = [0, 1, nil]
# JSON[ruby] # => '[0,1,null]'
#
- # source://json//json/common.rb#18
+ # source://json//lib/json/common.rb#21
def [](object, opts = T.unsafe(nil)); end
- # source://json//json/common.rb#81
+ # source://json//lib/json/common.rb#84
def create_fast_state; end
# Returns the current create identifier.
# See also JSON.create_id=.
#
- # source://json//json/common.rb#126
+ # source://json//lib/json/common.rb#129
def create_id; end
# Sets create identifier, which is used to decide if the _json_create_
# hook of a class should be called; initial value is +json_class+:
# JSON.create_id # => 'json_class'
#
- # source://json//json/common.rb#120
+ # source://json//lib/json/common.rb#123
def create_id=(new_value); end
- # source://json//json/common.rb#91
+ # source://json//lib/json/common.rb#94
def create_pretty_state; end
# Return the constant located at _path_. The format of _path_ has to be
@@ -995,7 +1011,7 @@ module JSON
# level (absolute namespace path?). If there doesn't exist a constant at
# the given path, an ArgumentError is raised.
#
- # source://json//json/common.rb#42
+ # source://json//lib/json/common.rb#45
def deep_const_get(path); end
# :call-seq:
@@ -1026,23 +1042,23 @@ module JSON
# Output:
# {"foo":[0,1],"bar":{"baz":2,"bat":3},"bam":"bad"}
#
- # source://json//json/common.rb#631
- def dump(obj, anIO = T.unsafe(nil), limit = T.unsafe(nil)); end
+ # source://json//lib/json/common.rb#614
+ def dump(obj, anIO = T.unsafe(nil), limit = T.unsafe(nil), kwargs = T.unsafe(nil)); end
# Sets or returns the default options for the JSON.dump method.
# Initially:
# opts = JSON.dump_default_options
- # opts # => {:max_nesting=>false, :allow_nan=>true, :escape_slash=>false}
+ # opts # => {:max_nesting=>false, :allow_nan=>true, :script_safe=>false}
#
- # source://json//json/common.rb#596
+ # source://json//lib/json/common.rb#579
def dump_default_options; end
# Sets or returns the default options for the JSON.dump method.
# Initially:
# opts = JSON.dump_default_options
- # opts # => {:max_nesting=>false, :allow_nan=>true, :escape_slash=>false}
+ # opts # => {:max_nesting=>false, :allow_nan=>true, :script_safe=>false}
#
- # source://json//json/common.rb#596
+ # source://json//lib/json/common.rb#579
def dump_default_options=(_arg0); end
# :call-seq:
@@ -1059,13 +1075,13 @@ module JSON
# # Raises SystemStackError (stack level too deep):
# JSON.fast_generate(a)
#
- # source://json//json/common.rb#335
+ # source://json//lib/json/common.rb#328
def fast_generate(obj, opts = T.unsafe(nil)); end
# :stopdoc:
# I want to deprecate these later, so I'll first be silent about them, and later delete them.
#
- # source://json//json/common.rb#335
+ # source://json//lib/json/common.rb#328
def fast_unparse(obj, opts = T.unsafe(nil)); end
# :call-seq:
@@ -1104,24 +1120,24 @@ module JSON
# # Raises JSON::NestingError (nesting of 100 is too deep):
# JSON.generate(a)
#
- # source://json//json/common.rb#296
+ # source://json//lib/json/common.rb#299
def generate(obj, opts = T.unsafe(nil)); end
# Returns the JSON generator module that is used by JSON. This is
# either JSON::Ext::Generator or JSON::Pure::Generator:
# JSON.generator # => JSON::Ext::Generator
#
- # source://json//json/common.rb#103
+ # source://json//lib/json/common.rb#106
def generator; end
# Set the module _generator_ to be used by JSON.
#
- # source://json//json/common.rb#58
+ # source://json//lib/json/common.rb#61
def generator=(generator); end
# Encodes string using String.encode.
#
- # source://json//json/common.rb#653
+ # source://json//lib/json/common.rb#638
def iconv(to, from, string); end
# :call-seq:
@@ -1252,7 +1268,7 @@ module JSON
# #"Admin", "password"=>"0wn3d"}>}
#
- # source://json//json/common.rb#557
+ # source://json//lib/json/common.rb#540
def load(source, proc = T.unsafe(nil), options = T.unsafe(nil)); end
# Sets or returns default options for the JSON.load method.
@@ -1260,7 +1276,7 @@ module JSON
# opts = JSON.load_default_options
# opts # => {:max_nesting=>false, :allow_nan=>true, :allow_blank=>true, :create_additions=>true}
#
- # source://json//json/common.rb#420
+ # source://json//lib/json/common.rb#403
def load_default_options; end
# Sets or returns default options for the JSON.load method.
@@ -1268,7 +1284,7 @@ module JSON
# opts = JSON.load_default_options
# opts # => {:max_nesting=>false, :allow_nan=>true, :allow_blank=>true, :create_additions=>true}
#
- # source://json//json/common.rb#420
+ # source://json//lib/json/common.rb#403
def load_default_options=(_arg0); end
# :call-seq:
@@ -1279,7 +1295,7 @@ module JSON
#
# See method #parse.
#
- # source://json//json/common.rb#245
+ # source://json//lib/json/common.rb#248
def load_file(filespec, opts = T.unsafe(nil)); end
# :call-seq:
@@ -1290,7 +1306,7 @@ module JSON
#
# See method #parse!
#
- # source://json//json/common.rb#256
+ # source://json//lib/json/common.rb#259
def load_file!(filespec, opts = T.unsafe(nil)); end
# :call-seq:
@@ -1341,7 +1357,7 @@ module JSON
# # Raises JSON::ParserError (783: unexpected token at ''):
# JSON.parse('')
#
- # source://json//json/common.rb#215
+ # source://json//lib/json/common.rb#218
def parse(source, opts = T.unsafe(nil)); end
# :call-seq:
@@ -1356,19 +1372,19 @@ module JSON
# which disables checking for nesting depth.
# - Option +allow_nan+, if not provided, defaults to +true+.
#
- # source://json//json/common.rb#230
+ # source://json//lib/json/common.rb#233
def parse!(source, opts = T.unsafe(nil)); end
# Returns the JSON parser class that is used by JSON. This is either
# JSON::Ext::Parser or JSON::Pure::Parser:
# JSON.parser # => JSON::Ext::Parser
#
- # source://json//json/common.rb#29
+ # source://json//lib/json/common.rb#32
def parser; end
# Set the JSON parser class _parser_ to be used by JSON.
#
- # source://json//json/common.rb#32
+ # source://json//lib/json/common.rb#35
def parser=(parser); end
# :call-seq:
@@ -1401,111 +1417,123 @@ module JSON
# }
# }
#
- # source://json//json/common.rb#390
+ # source://json//lib/json/common.rb#373
def pretty_generate(obj, opts = T.unsafe(nil)); end
# :stopdoc:
# I want to deprecate these later, so I'll first be silent about them, and later delete them.
#
- # source://json//json/common.rb#390
+ # source://json//lib/json/common.rb#373
def pretty_unparse(obj, opts = T.unsafe(nil)); end
# Recursively calls passed _Proc_ if the parsed data structure is an _Array_ or _Hash_
#
- # source://json//json/common.rb#575
+ # source://json//lib/json/common.rb#558
def recurse_proc(result, &proc); end
- # source://json//json/common.rb#557
+ # source://json//lib/json/common.rb#540
def restore(source, proc = T.unsafe(nil), options = T.unsafe(nil)); end
# Sets or Returns the JSON generator state class that is used by JSON. This is
# either JSON::Ext::Generator::State or JSON::Pure::Generator::State:
# JSON.state # => JSON::Ext::Generator::State
#
- # source://json//json/common.rb#108
+ # source://json//lib/json/common.rb#111
def state; end
# Sets or Returns the JSON generator state class that is used by JSON. This is
# either JSON::Ext::Generator::State or JSON::Pure::Generator::State:
# JSON.state # => JSON::Ext::Generator::State
#
- # source://json//json/common.rb#108
+ # source://json//lib/json/common.rb#111
def state=(_arg0); end
# :stopdoc:
# I want to deprecate these later, so I'll first be silent about them, and
# later delete them.
#
- # source://json//json/common.rb#296
+ # source://json//lib/json/common.rb#299
def unparse(obj, opts = T.unsafe(nil)); end
+
+ private
+
+ # source://json//lib/json/common.rb#642
+ def merge_dump_options(opts, strict: T.unsafe(nil)); end
end
end
-# source://json//json/common.rb#114
+# source://json//lib/json/common.rb#117
JSON::CREATE_ID_TLS_KEY = T.let(T.unsafe(nil), String)
-# source://json//json/common.rb#111
+# source://json//lib/json/common.rb#114
JSON::DEFAULT_CREATE_ID = T.let(T.unsafe(nil), String)
+# source://json//lib/json/generic_object.rb#5
class JSON::GenericObject < ::OpenStruct
- # source://json//json/generic_object.rb#63
+ # source://json//lib/json/generic_object.rb#63
def as_json(*_arg0); end
- # source://json//json/generic_object.rb#47
+ # source://json//lib/json/generic_object.rb#47
def to_hash; end
- # source://json//json/generic_object.rb#67
+ # source://json//lib/json/generic_object.rb#67
def to_json(*a); end
- # source://json//json/generic_object.rb#59
+ # source://json//lib/json/generic_object.rb#59
def |(other); end
class << self
- # source://json//json/generic_object.rb#41
+ # source://json//lib/json/generic_object.rb#41
def dump(obj, *args); end
- # source://json//json/generic_object.rb#21
+ # source://json//lib/json/generic_object.rb#21
def from_hash(object); end
# Sets the attribute json_creatable
#
# @param value the value to set the attribute json_creatable to.
#
- # source://json//json/generic_object.rb#13
+ # source://json//lib/json/generic_object.rb#13
def json_creatable=(_arg0); end
# @return [Boolean]
#
- # source://json//json/generic_object.rb#9
+ # source://json//lib/json/generic_object.rb#9
def json_creatable?; end
- # source://json//json/generic_object.rb#15
+ # source://json//lib/json/generic_object.rb#15
def json_create(data); end
- # source://json//json/generic_object.rb#36
+ # source://json//lib/json/generic_object.rb#36
def load(source, proc = T.unsafe(nil), opts = T.unsafe(nil)); end
end
end
# The base exception for JSON errors.
+#
+# source://json//lib/json/common.rb#140
class JSON::JSONError < ::StandardError
class << self
- # source://json//json/common.rb#138
+ # source://json//lib/json/common.rb#141
def wrap(exception); end
end
end
-# source://json//json/common.rb#35
+# source://json//lib/json/common.rb#6
+JSON::NOT_SET = T.let(T.unsafe(nil), Object)
+
+# source://json//lib/json/common.rb#38
JSON::Parser = JSON::Ext::Parser
-# source://json//json/common.rb#73
+# source://json//lib/json/common.rb#76
JSON::State = JSON::Ext::Generator::State
# For backwards compatibility
#
-# source://json//json/common.rb#159
+# source://json//lib/json/common.rb#162
JSON::UnparserError = JSON::GeneratorError
+# source://json//lib/json/common.rb#652
module Kernel
private
@@ -1516,18 +1544,18 @@ module Kernel
# The _opts_ argument is passed through to generate/parse respectively. See
# generate and parse for their documentation.
#
- # source://json//json/common.rb#685
+ # source://json//lib/json/common.rb#679
def JSON(object, *args); end
# Outputs _objs_ to STDOUT as JSON strings in the shortest form, that is in
# one line.
#
- # source://json//json/common.rb#663
+ # source://json//lib/json/common.rb#657
def j(*objs); end
# Outputs _objs_ to STDOUT as JSON strings in a pretty format, with
# indentation and over many lines.
#
- # source://json//json/common.rb#672
+ # source://json//lib/json/common.rb#666
def jj(*objs); end
end
diff --git a/sorbet/rbi/gems/minitest-reporters@1.6.1.rbi b/sorbet/rbi/gems/minitest-reporters@1.6.1.rbi
index c17586ce..8579ff77 100644
--- a/sorbet/rbi/gems/minitest-reporters@1.6.1.rbi
+++ b/sorbet/rbi/gems/minitest-reporters@1.6.1.rbi
@@ -7,79 +7,82 @@
# source://minitest-reporters//lib/minitest/reporters.rb#3
module Minitest
class << self
- # source://minitest/5.21.2/lib/minitest.rb#176
+ # source://minitest/5.22.2/lib/minitest.rb#197
def __run(reporter, options); end
- # source://minitest/5.21.2/lib/minitest.rb#97
+ # source://minitest/5.22.2/lib/minitest.rb#97
def after_run(&block); end
- # source://minitest/5.21.2/lib/minitest.rb#19
+ # source://minitest/5.22.2/lib/minitest.rb#19
def allow_fork; end
- # source://minitest/5.21.2/lib/minitest.rb#19
+ # source://minitest/5.22.2/lib/minitest.rb#19
def allow_fork=(_arg0); end
- # source://minitest/5.21.2/lib/minitest.rb#69
+ # source://minitest/5.22.2/lib/minitest.rb#69
def autorun; end
- # source://minitest/5.21.2/lib/minitest.rb#19
+ # source://minitest/5.22.2/lib/minitest.rb#19
def backtrace_filter; end
- # source://minitest/5.21.2/lib/minitest.rb#19
+ # source://minitest/5.22.2/lib/minitest.rb#19
def backtrace_filter=(_arg0); end
- # source://minitest/5.21.2/lib/minitest.rb#18
+ # source://minitest/5.22.2/lib/minitest.rb#18
def cattr_accessor(name); end
- # source://minitest/5.21.2/lib/minitest.rb#1134
+ # source://minitest/5.22.2/lib/minitest.rb#1146
def clock_time; end
- # source://minitest/5.21.2/lib/minitest.rb#19
+ # source://minitest/5.22.2/lib/minitest.rb#177
+ def empty_run!(options); end
+
+ # source://minitest/5.22.2/lib/minitest.rb#19
def extensions; end
- # source://minitest/5.21.2/lib/minitest.rb#19
+ # source://minitest/5.22.2/lib/minitest.rb#19
def extensions=(_arg0); end
- # source://minitest/5.21.2/lib/minitest.rb#271
+ # source://minitest/5.22.2/lib/minitest.rb#292
def filter_backtrace(bt); end
- # source://minitest/5.21.2/lib/minitest.rb#19
+ # source://minitest/5.22.2/lib/minitest.rb#19
def info_signal; end
- # source://minitest/5.21.2/lib/minitest.rb#19
+ # source://minitest/5.22.2/lib/minitest.rb#19
def info_signal=(_arg0); end
- # source://minitest/5.21.2/lib/minitest.rb#101
+ # source://minitest/5.22.2/lib/minitest.rb#101
def init_plugins(options); end
- # source://minitest/5.21.2/lib/minitest.rb#108
+ # source://minitest/5.22.2/lib/minitest.rb#108
def load_plugins; end
- # source://minitest/5.21.2/lib/minitest.rb#19
+ # source://minitest/5.22.2/lib/minitest.rb#19
def parallel_executor; end
- # source://minitest/5.21.2/lib/minitest.rb#19
+ # source://minitest/5.22.2/lib/minitest.rb#19
def parallel_executor=(_arg0); end
- # source://minitest/5.21.2/lib/minitest.rb#189
+ # source://minitest/5.22.2/lib/minitest.rb#210
def process_args(args = T.unsafe(nil)); end
- # source://minitest/5.21.2/lib/minitest.rb#19
+ # source://minitest/5.22.2/lib/minitest.rb#19
def reporter; end
- # source://minitest/5.21.2/lib/minitest.rb#19
+ # source://minitest/5.22.2/lib/minitest.rb#19
def reporter=(_arg0); end
- # source://minitest/5.21.2/lib/minitest.rb#143
+ # source://minitest/5.22.2/lib/minitest.rb#143
def run(args = T.unsafe(nil)); end
- # source://minitest/5.21.2/lib/minitest.rb#1125
+ # source://minitest/5.22.2/lib/minitest.rb#1137
def run_one_method(klass, method_name); end
- # source://minitest/5.21.2/lib/minitest.rb#19
+ # source://minitest/5.22.2/lib/minitest.rb#19
def seed; end
- # source://minitest/5.21.2/lib/minitest.rb#19
+ # source://minitest/5.22.2/lib/minitest.rb#19
def seed=(_arg0); end
end
end
diff --git a/sorbet/rbi/gems/minitest@5.21.2.rbi b/sorbet/rbi/gems/minitest@5.22.2.rbi
similarity index 87%
rename from sorbet/rbi/gems/minitest@5.21.2.rbi
rename to sorbet/rbi/gems/minitest@5.22.2.rbi
index d6bbf6c2..1c0eeba4 100644
--- a/sorbet/rbi/gems/minitest@5.21.2.rbi
+++ b/sorbet/rbi/gems/minitest@5.22.2.rbi
@@ -12,7 +12,7 @@ module Minitest
# Internal run method. Responsible for telling all Runnable
# sub-classes to run.
#
- # source://minitest//lib/minitest.rb#176
+ # source://minitest//lib/minitest.rb#197
def __run(reporter, options); end
# A simple hook allowing you to run a block of code after everything
@@ -43,16 +43,19 @@ module Minitest
# source://minitest//lib/minitest.rb#18
def cattr_accessor(name); end
- # source://minitest//lib/minitest.rb#1134
+ # source://minitest//lib/minitest.rb#1146
def clock_time; end
+ # source://minitest//lib/minitest.rb#177
+ def empty_run!(options); end
+
# source://minitest//lib/minitest.rb#19
def extensions; end
# source://minitest//lib/minitest.rb#19
def extensions=(_arg0); end
- # source://minitest//lib/minitest.rb#271
+ # source://minitest//lib/minitest.rb#292
def filter_backtrace(bt); end
# source://minitest//lib/minitest.rb#19
@@ -73,7 +76,7 @@ module Minitest
# source://minitest//lib/minitest.rb#19
def parallel_executor=(_arg0); end
- # source://minitest//lib/minitest.rb#189
+ # source://minitest//lib/minitest.rb#210
def process_args(args = T.unsafe(nil)); end
# source://minitest//lib/minitest.rb#19
@@ -92,7 +95,7 @@ module Minitest
# Minitest.run(args)
# Minitest.__run(reporter, options)
# Runnable.runnables.each
- # runnable.run(reporter, options)
+ # runnable_klass.run(reporter, options)
# self.runnable_methods.each
# self.run_one_method(self, runnable_method, reporter)
# Minitest.run_one_method(klass, runnable_method)
@@ -101,7 +104,7 @@ module Minitest
# source://minitest//lib/minitest.rb#143
def run(args = T.unsafe(nil)); end
- # source://minitest//lib/minitest.rb#1125
+ # source://minitest//lib/minitest.rb#1137
def run_one_method(klass, method_name); end
# source://minitest//lib/minitest.rb#19
@@ -115,24 +118,24 @@ end
# Defines the API for Reporters. Subclass this and override whatever
# you want. Go nuts.
#
-# source://minitest//lib/minitest.rb#627
+# source://minitest//lib/minitest.rb#638
class Minitest::AbstractReporter
# @return [AbstractReporter] a new instance of AbstractReporter
#
- # source://minitest//lib/minitest.rb#629
+ # source://minitest//lib/minitest.rb#640
def initialize; end
# Did this run pass?
#
# @return [Boolean]
#
- # source://minitest//lib/minitest.rb#664
+ # source://minitest//lib/minitest.rb#675
def passed?; end
# About to start running a test. This allows a reporter to show
# that it is starting or that we are in the middle of a test run.
#
- # source://minitest//lib/minitest.rb#643
+ # source://minitest//lib/minitest.rb#654
def prerecord(klass, name); end
# Output and record the result of the test. Call
@@ -140,43 +143,43 @@ class Minitest::AbstractReporter
# result character string. Stores the result of the run if the run
# did not pass.
#
- # source://minitest//lib/minitest.rb#652
+ # source://minitest//lib/minitest.rb#663
def record(result); end
# Outputs the summary of the run.
#
- # source://minitest//lib/minitest.rb#658
+ # source://minitest//lib/minitest.rb#669
def report; end
# Starts reporting on the run.
#
- # source://minitest//lib/minitest.rb#636
+ # source://minitest//lib/minitest.rb#647
def start; end
- # source://minitest//lib/minitest.rb#668
+ # source://minitest//lib/minitest.rb#679
def synchronize(&block); end
end
# Represents run failures.
#
-# source://minitest//lib/minitest.rb#951
+# source://minitest//lib/minitest.rb#962
class Minitest::Assertion < ::Exception
- # source://minitest//lib/minitest.rb#954
+ # source://minitest//lib/minitest.rb#965
def error; end
# Where was this run before an assertion was raised?
#
- # source://minitest//lib/minitest.rb#961
+ # source://minitest//lib/minitest.rb#972
def location; end
- # source://minitest//lib/minitest.rb#968
+ # source://minitest//lib/minitest.rb#980
def result_code; end
- # source://minitest//lib/minitest.rb#972
+ # source://minitest//lib/minitest.rb#984
def result_label; end
end
-# source://minitest//lib/minitest.rb#952
+# source://minitest//lib/minitest.rb#963
Minitest::Assertion::RE = T.let(T.unsafe(nil), Regexp)
# Minitest Assertions. All assertion methods accept a +msg+ which is
@@ -628,77 +631,77 @@ Minitest::Assertions::UNDEFINED = T.let(T.unsafe(nil), Object)
#
# See Minitest.backtrace_filter=.
#
-# source://minitest//lib/minitest.rb#1096
+# source://minitest//lib/minitest.rb#1108
class Minitest::BacktraceFilter
# @return [BacktraceFilter] a new instance of BacktraceFilter
#
- # source://minitest//lib/minitest.rb#1102
+ # source://minitest//lib/minitest.rb#1114
def initialize(regexp = T.unsafe(nil)); end
# Filter +bt+ to something useful. Returns the whole thing if
# $DEBUG (ruby) or $MT_DEBUG (env).
#
- # source://minitest//lib/minitest.rb#1110
+ # source://minitest//lib/minitest.rb#1122
def filter(bt); end
# Returns the value of attribute regexp.
#
- # source://minitest//lib/minitest.rb#1100
+ # source://minitest//lib/minitest.rb#1112
def regexp; end
# Sets the attribute regexp
#
# @param value the value to set the attribute regexp to.
#
- # source://minitest//lib/minitest.rb#1100
+ # source://minitest//lib/minitest.rb#1112
def regexp=(_arg0); end
end
-# source://minitest//lib/minitest.rb#1098
+# source://minitest//lib/minitest.rb#1110
Minitest::BacktraceFilter::MT_RE = T.let(T.unsafe(nil), Regexp)
# Dispatch to multiple reporters as one.
#
-# source://minitest//lib/minitest.rb#900
+# source://minitest//lib/minitest.rb#911
class Minitest::CompositeReporter < ::Minitest::AbstractReporter
# @return [CompositeReporter] a new instance of CompositeReporter
#
- # source://minitest//lib/minitest.rb#906
+ # source://minitest//lib/minitest.rb#917
def initialize(*reporters); end
# Add another reporter to the mix.
#
- # source://minitest//lib/minitest.rb#918
+ # source://minitest//lib/minitest.rb#929
def <<(reporter); end
- # source://minitest//lib/minitest.rb#911
+ # source://minitest//lib/minitest.rb#922
def io; end
# @return [Boolean]
#
- # source://minitest//lib/minitest.rb#922
+ # source://minitest//lib/minitest.rb#933
def passed?; end
- # source://minitest//lib/minitest.rb#930
+ # source://minitest//lib/minitest.rb#941
def prerecord(klass, name); end
- # source://minitest//lib/minitest.rb#937
+ # source://minitest//lib/minitest.rb#948
def record(result); end
- # source://minitest//lib/minitest.rb#943
+ # source://minitest//lib/minitest.rb#954
def report; end
# The list of reporters to dispatch to.
#
- # source://minitest//lib/minitest.rb#904
+ # source://minitest//lib/minitest.rb#915
def reporters; end
# The list of reporters to dispatch to.
#
- # source://minitest//lib/minitest.rb#904
+ # source://minitest//lib/minitest.rb#915
def reporters=(_arg0); end
- # source://minitest//lib/minitest.rb#926
+ # source://minitest//lib/minitest.rb#937
def start; end
end
@@ -727,48 +730,48 @@ end
# # ... lots of test methods ...
# end
#
-# source://minitest//lib/minitest.rb#1040
+# source://minitest//lib/minitest.rb#1052
module Minitest::Guard
# Is this running on jruby?
#
# @return [Boolean]
#
- # source://minitest//lib/minitest.rb#1045
+ # source://minitest//lib/minitest.rb#1057
def jruby?(platform = T.unsafe(nil)); end
# Is this running on maglev?
#
# @return [Boolean]
#
- # source://minitest//lib/minitest.rb#1052
+ # source://minitest//lib/minitest.rb#1064
def maglev?(platform = T.unsafe(nil)); end
# Is this running on mri?
#
# @return [Boolean]
#
- # source://minitest//lib/minitest.rb#1062
+ # source://minitest//lib/minitest.rb#1074
def mri?(platform = T.unsafe(nil)); end
# Is this running on macOS?
#
# @return [Boolean]
#
- # source://minitest//lib/minitest.rb#1069
+ # source://minitest//lib/minitest.rb#1081
def osx?(platform = T.unsafe(nil)); end
# Is this running on rubinius?
#
# @return [Boolean]
#
- # source://minitest//lib/minitest.rb#1076
+ # source://minitest//lib/minitest.rb#1088
def rubinius?(platform = T.unsafe(nil)); end
# Is this running on windows?
#
# @return [Boolean]
#
- # source://minitest//lib/minitest.rb#1086
+ # source://minitest//lib/minitest.rb#1098
def windows?(platform = T.unsafe(nil)); end
end
@@ -931,36 +934,36 @@ end
# plugin, pull this out of the composite and replace it with your
# own.
#
-# source://minitest//lib/minitest.rb#699
+# source://minitest//lib/minitest.rb#710
class Minitest::ProgressReporter < ::Minitest::Reporter
- # source://minitest//lib/minitest.rb#700
+ # source://minitest//lib/minitest.rb#711
def prerecord(klass, name); end
- # source://minitest//lib/minitest.rb#707
+ # source://minitest//lib/minitest.rb#718
def record(result); end
end
# Shared code for anything that can get passed to a Reporter. See
# Minitest::Test & Minitest::Result.
#
-# source://minitest//lib/minitest.rb#521
+# source://minitest//lib/minitest.rb#532
module Minitest::Reportable
# @raise [NotImplementedError]
#
- # source://minitest//lib/minitest.rb#543
+ # source://minitest//lib/minitest.rb#554
def class_name; end
# Did this run error?
#
# @return [Boolean]
#
- # source://minitest//lib/minitest.rb#564
+ # source://minitest//lib/minitest.rb#575
def error?; end
# The location identifier of this test. Depends on a method
# existing called class_name.
#
- # source://minitest//lib/minitest.rb#538
+ # source://minitest//lib/minitest.rb#549
def location; end
# Did this run pass?
@@ -970,50 +973,50 @@ module Minitest::Reportable
#
# @return [Boolean]
#
- # source://minitest//lib/minitest.rb#528
+ # source://minitest//lib/minitest.rb#539
def passed?; end
# Returns ".", "F", or "E" based on the result of the run.
#
- # source://minitest//lib/minitest.rb#550
+ # source://minitest//lib/minitest.rb#561
def result_code; end
# Was this run skipped?
#
# @return [Boolean]
#
- # source://minitest//lib/minitest.rb#557
+ # source://minitest//lib/minitest.rb#568
def skipped?; end
end
-# source://minitest//lib/minitest.rb#532
+# source://minitest//lib/minitest.rb#543
Minitest::Reportable::BASE_DIR = T.let(T.unsafe(nil), String)
-# source://minitest//lib/minitest.rb#675
+# source://minitest//lib/minitest.rb#686
class Minitest::Reporter < ::Minitest::AbstractReporter
# @return [Reporter] a new instance of Reporter
#
- # source://minitest//lib/minitest.rb#684
+ # source://minitest//lib/minitest.rb#695
def initialize(io = T.unsafe(nil), options = T.unsafe(nil)); end
# The IO used to report.
#
- # source://minitest//lib/minitest.rb#677
+ # source://minitest//lib/minitest.rb#688
def io; end
# The IO used to report.
#
- # source://minitest//lib/minitest.rb#677
+ # source://minitest//lib/minitest.rb#688
def io=(_arg0); end
# Command-line options for this run.
#
- # source://minitest//lib/minitest.rb#682
+ # source://minitest//lib/minitest.rb#693
def options; end
# Command-line options for this run.
#
- # source://minitest//lib/minitest.rb#682
+ # source://minitest//lib/minitest.rb#693
def options=(_arg0); end
end
@@ -1023,80 +1026,80 @@ end
# blow up. By using Result.from(a_test) you can be reasonably sure
# that the test result can be marshalled.
#
-# source://minitest//lib/minitest.rb#576
+# source://minitest//lib/minitest.rb#587
class Minitest::Result < ::Minitest::Runnable
include ::Minitest::Reportable
- # source://minitest//lib/minitest.rb#610
+ # source://minitest//lib/minitest.rb#621
def class_name; end
# The class name of the test result.
#
- # source://minitest//lib/minitest.rb#585
+ # source://minitest//lib/minitest.rb#596
def klass; end
# The class name of the test result.
#
- # source://minitest//lib/minitest.rb#585
+ # source://minitest//lib/minitest.rb#596
def klass=(_arg0); end
# The location of the test method.
#
- # source://minitest//lib/minitest.rb#590
+ # source://minitest//lib/minitest.rb#601
def source_location; end
# The location of the test method.
#
- # source://minitest//lib/minitest.rb#590
+ # source://minitest//lib/minitest.rb#601
def source_location=(_arg0); end
- # source://minitest//lib/minitest.rb#614
+ # source://minitest//lib/minitest.rb#625
def to_s; end
class << self
# Create a new test result from a Runnable instance.
#
- # source://minitest//lib/minitest.rb#595
+ # source://minitest//lib/minitest.rb#606
def from(runnable); end
end
end
# re-open
#
-# source://minitest//lib/minitest.rb#284
+# source://minitest//lib/minitest.rb#305
class Minitest::Runnable
# @return [Runnable] a new instance of Runnable
#
- # source://minitest//lib/minitest.rb#452
+ # source://minitest//lib/minitest.rb#463
def initialize(name); end
# Number of assertions executed in this run.
#
- # source://minitest//lib/minitest.rb#288
+ # source://minitest//lib/minitest.rb#309
def assertions; end
# Number of assertions executed in this run.
#
- # source://minitest//lib/minitest.rb#288
+ # source://minitest//lib/minitest.rb#309
def assertions=(_arg0); end
- # source://minitest//lib/minitest.rb#448
+ # source://minitest//lib/minitest.rb#459
def failure; end
# An assertion raised during the run, if any.
#
- # source://minitest//lib/minitest.rb#293
+ # source://minitest//lib/minitest.rb#314
def failures; end
# An assertion raised during the run, if any.
#
- # source://minitest//lib/minitest.rb#293
+ # source://minitest//lib/minitest.rb#314
def failures=(_arg0); end
- # source://minitest//lib/minitest.rb#434
+ # source://minitest//lib/minitest.rb#445
def marshal_dump; end
- # source://minitest//lib/minitest.rb#444
+ # source://minitest//lib/minitest.rb#455
def marshal_load(ary); end
# Metadata you attach to the test results that get sent to the reporter.
@@ -1106,29 +1109,29 @@ class Minitest::Runnable
# NOTE: this data *must* be plain (read: marshal-able) data!
# Hashes! Arrays! Strings!
#
- # source://minitest//lib/minitest.rb#467
+ # source://minitest//lib/minitest.rb#478
def metadata; end
# Sets metadata, mainly used for +Result.from+.
#
- # source://minitest//lib/minitest.rb#474
+ # source://minitest//lib/minitest.rb#485
def metadata=(_arg0); end
# Returns true if metadata exists.
#
# @return [Boolean]
#
- # source://minitest//lib/minitest.rb#479
+ # source://minitest//lib/minitest.rb#490
def metadata?; end
# Name of the run.
#
- # source://minitest//lib/minitest.rb#311
+ # source://minitest//lib/minitest.rb#332
def name; end
# Set the name of the run.
#
- # source://minitest//lib/minitest.rb#318
+ # source://minitest//lib/minitest.rb#339
def name=(o); end
# Did this run pass?
@@ -1139,7 +1142,7 @@ class Minitest::Runnable
# @raise [NotImplementedError]
# @return [Boolean]
#
- # source://minitest//lib/minitest.rb#496
+ # source://minitest//lib/minitest.rb#507
def passed?; end
# Returns a single character string to print based on the result
@@ -1148,14 +1151,14 @@ class Minitest::Runnable
#
# @raise [NotImplementedError]
#
- # source://minitest//lib/minitest.rb#505
+ # source://minitest//lib/minitest.rb#516
def result_code; end
# Runs a single method. Needs to return self.
#
# @raise [NotImplementedError]
#
- # source://minitest//lib/minitest.rb#486
+ # source://minitest//lib/minitest.rb#497
def run; end
# Was this run skipped? See #passed? for more information.
@@ -1163,42 +1166,42 @@ class Minitest::Runnable
# @raise [NotImplementedError]
# @return [Boolean]
#
- # source://minitest//lib/minitest.rb#512
+ # source://minitest//lib/minitest.rb#523
def skipped?; end
# The time it took to run.
#
- # source://minitest//lib/minitest.rb#298
+ # source://minitest//lib/minitest.rb#319
def time; end
# The time it took to run.
#
- # source://minitest//lib/minitest.rb#298
+ # source://minitest//lib/minitest.rb#319
def time=(_arg0); end
- # source://minitest//lib/minitest.rb#300
+ # source://minitest//lib/minitest.rb#321
def time_it; end
class << self
- # source://minitest//lib/minitest.rb#1144
+ # source://minitest//lib/minitest.rb#1156
def inherited(klass); end
# Returns all instance methods matching the pattern +re+.
#
- # source://minitest//lib/minitest.rb#325
+ # source://minitest//lib/minitest.rb#346
def methods_matching(re); end
- # source://minitest//lib/minitest.rb#404
+ # source://minitest//lib/minitest.rb#415
def on_signal(name, action); end
- # source://minitest//lib/minitest.rb#329
+ # source://minitest//lib/minitest.rb#350
def reset; end
# Responsible for running all runnable methods in a given class,
# each in its own instance. Each instance is passed to the
# reporter to record.
#
- # source://minitest//lib/minitest.rb#340
+ # source://minitest//lib/minitest.rb#361
def run(reporter, options = T.unsafe(nil)); end
# Runs a single method and has the reporter record the result.
@@ -1206,7 +1209,7 @@ class Minitest::Runnable
# that subclasses can specialize the running of an individual
# test. See Minitest::ParallelTest::ClassMethods for an example.
#
- # source://minitest//lib/minitest.rb#376
+ # source://minitest//lib/minitest.rb#387
def run_one_method(klass, method_name, reporter); end
# Each subclass of Runnable is responsible for overriding this
@@ -1214,33 +1217,33 @@ class Minitest::Runnable
#
# @raise [NotImplementedError]
#
- # source://minitest//lib/minitest.rb#421
+ # source://minitest//lib/minitest.rb#432
def runnable_methods; end
# Returns all subclasses of Runnable.
#
- # source://minitest//lib/minitest.rb#428
+ # source://minitest//lib/minitest.rb#439
def runnables; end
# Defines the order to run tests (:random by default). Override
# this or use a convenience method to change it for your tests.
#
- # source://minitest//lib/minitest.rb#385
+ # source://minitest//lib/minitest.rb#396
def test_order; end
- # source://minitest//lib/minitest.rb#389
+ # source://minitest//lib/minitest.rb#400
def with_info_handler(reporter, &block); end
end
end
-# source://minitest//lib/minitest.rb#402
+# source://minitest//lib/minitest.rb#413
Minitest::Runnable::SIGNALS = T.let(T.unsafe(nil), Hash)
# Assertion raised when skipping a run.
#
-# source://minitest//lib/minitest.rb#980
+# source://minitest//lib/minitest.rb#992
class Minitest::Skip < ::Minitest::Assertion
- # source://minitest//lib/minitest.rb#981
+ # source://minitest//lib/minitest.rb#993
def result_label; end
end
@@ -1264,113 +1267,113 @@ end
# end
# end
#
-# source://minitest//lib/minitest.rb#735
+# source://minitest//lib/minitest.rb#746
class Minitest::StatisticsReporter < ::Minitest::Reporter
# @return [StatisticsReporter] a new instance of StatisticsReporter
#
- # source://minitest//lib/minitest.rb#779
+ # source://minitest//lib/minitest.rb#790
def initialize(io = T.unsafe(nil), options = T.unsafe(nil)); end
# Total number of assertions.
#
- # source://minitest//lib/minitest.rb#739
+ # source://minitest//lib/minitest.rb#750
def assertions; end
# Total number of assertions.
#
- # source://minitest//lib/minitest.rb#739
+ # source://minitest//lib/minitest.rb#750
def assertions=(_arg0); end
# Total number of test cases.
#
- # source://minitest//lib/minitest.rb#744
+ # source://minitest//lib/minitest.rb#755
def count; end
# Total number of test cases.
#
- # source://minitest//lib/minitest.rb#744
+ # source://minitest//lib/minitest.rb#755
def count=(_arg0); end
# Total number of tests that erred.
#
- # source://minitest//lib/minitest.rb#772
+ # source://minitest//lib/minitest.rb#783
def errors; end
# Total number of tests that erred.
#
- # source://minitest//lib/minitest.rb#772
+ # source://minitest//lib/minitest.rb#783
def errors=(_arg0); end
# Total number of tests that failed.
#
- # source://minitest//lib/minitest.rb#767
+ # source://minitest//lib/minitest.rb#778
def failures; end
# Total number of tests that failed.
#
- # source://minitest//lib/minitest.rb#767
+ # source://minitest//lib/minitest.rb#778
def failures=(_arg0); end
# @return [Boolean]
#
- # source://minitest//lib/minitest.rb#792
+ # source://minitest//lib/minitest.rb#803
def passed?; end
- # source://minitest//lib/minitest.rb#800
+ # source://minitest//lib/minitest.rb#811
def record(result); end
# Report on the tracked statistics.
#
- # source://minitest//lib/minitest.rb#810
+ # source://minitest//lib/minitest.rb#821
def report; end
# An +Array+ of test cases that failed or were skipped.
#
- # source://minitest//lib/minitest.rb#749
+ # source://minitest//lib/minitest.rb#760
def results; end
# An +Array+ of test cases that failed or were skipped.
#
- # source://minitest//lib/minitest.rb#749
+ # source://minitest//lib/minitest.rb#760
def results=(_arg0); end
# Total number of tests that where skipped.
#
- # source://minitest//lib/minitest.rb#777
+ # source://minitest//lib/minitest.rb#788
def skips; end
# Total number of tests that where skipped.
#
- # source://minitest//lib/minitest.rb#777
+ # source://minitest//lib/minitest.rb#788
def skips=(_arg0); end
- # source://minitest//lib/minitest.rb#796
+ # source://minitest//lib/minitest.rb#807
def start; end
# Time the test run started. If available, the monotonic clock is
# used and this is a +Float+, otherwise it's an instance of
# +Time+.
#
- # source://minitest//lib/minitest.rb#756
+ # source://minitest//lib/minitest.rb#767
def start_time; end
# Time the test run started. If available, the monotonic clock is
# used and this is a +Float+, otherwise it's an instance of
# +Time+.
#
- # source://minitest//lib/minitest.rb#756
+ # source://minitest//lib/minitest.rb#767
def start_time=(_arg0); end
# Test run time. If available, the monotonic clock is used and
# this is a +Float+, otherwise it's an instance of +Time+.
#
- # source://minitest//lib/minitest.rb#762
+ # source://minitest//lib/minitest.rb#773
def total_time; end
# Test run time. If available, the monotonic clock is used and
# this is a +Float+, otherwise it's an instance of +Time+.
#
- # source://minitest//lib/minitest.rb#762
+ # source://minitest//lib/minitest.rb#773
def total_time=(_arg0); end
end
@@ -1382,48 +1385,48 @@ end
# plugin, pull this out of the composite and replace it with your
# own.
#
-# source://minitest//lib/minitest.rb#830
+# source://minitest//lib/minitest.rb#841
class Minitest::SummaryReporter < ::Minitest::StatisticsReporter
- # source://minitest//lib/minitest.rb#865
+ # source://minitest//lib/minitest.rb#876
def aggregated_results(io); end
# Returns the value of attribute old_sync.
#
- # source://minitest//lib/minitest.rb#833
+ # source://minitest//lib/minitest.rb#844
def old_sync; end
# Sets the attribute old_sync
#
# @param value the value to set the attribute old_sync to.
#
- # source://minitest//lib/minitest.rb#833
+ # source://minitest//lib/minitest.rb#844
def old_sync=(_arg0); end
- # source://minitest//lib/minitest.rb#848
+ # source://minitest//lib/minitest.rb#859
def report; end
# :startdoc:
#
- # source://minitest//lib/minitest.rb#836
+ # source://minitest//lib/minitest.rb#847
def start; end
- # source://minitest//lib/minitest.rb#860
+ # source://minitest//lib/minitest.rb#871
def statistics; end
- # source://minitest//lib/minitest.rb#885
+ # source://minitest//lib/minitest.rb#896
def summary; end
# :stopdoc:
#
- # source://minitest//lib/minitest.rb#832
+ # source://minitest//lib/minitest.rb#843
def sync; end
# :stopdoc:
#
- # source://minitest//lib/minitest.rb#832
+ # source://minitest//lib/minitest.rb#843
def sync=(_arg0); end
- # source://minitest//lib/minitest.rb#881
+ # source://minitest//lib/minitest.rb#892
def to_s; end
end
@@ -1601,36 +1604,36 @@ Minitest::Test::TEARDOWN_METHODS = T.let(T.unsafe(nil), Array)
# Assertion wrapping an unexpected error that was raised during a run.
#
-# source://minitest//lib/minitest.rb#989
+# source://minitest//lib/minitest.rb#1001
class Minitest::UnexpectedError < ::Minitest::Assertion
include ::Minitest::Compress
# @return [UnexpectedError] a new instance of UnexpectedError
#
- # source://minitest//lib/minitest.rb#995
+ # source://minitest//lib/minitest.rb#1007
def initialize(error); end
- # source://minitest//lib/minitest.rb#1008
+ # source://minitest//lib/minitest.rb#1020
def backtrace; end
# TODO: figure out how to use `cause` instead
#
- # source://minitest//lib/minitest.rb#993
+ # source://minitest//lib/minitest.rb#1005
def error; end
# TODO: figure out how to use `cause` instead
#
- # source://minitest//lib/minitest.rb#993
+ # source://minitest//lib/minitest.rb#1005
def error=(_arg0); end
- # source://minitest//lib/minitest.rb#1014
+ # source://minitest//lib/minitest.rb#1026
def message; end
- # source://minitest//lib/minitest.rb#1020
+ # source://minitest//lib/minitest.rb#1032
def result_label; end
end
-# source://minitest//lib/minitest.rb#1012
+# source://minitest//lib/minitest.rb#1024
Minitest::UnexpectedError::BASE_RE = T.let(T.unsafe(nil), Regexp)
# source://minitest//lib/minitest.rb#12
diff --git a/sorbet/rbi/gems/parser@3.2.2.4.rbi b/sorbet/rbi/gems/parser@3.3.0.5.rbi
similarity index 69%
rename from sorbet/rbi/gems/parser@3.2.2.4.rbi
rename to sorbet/rbi/gems/parser@3.3.0.5.rbi
index 7e0fb4c0..0acdc763 100644
--- a/sorbet/rbi/gems/parser@3.2.2.4.rbi
+++ b/sorbet/rbi/gems/parser@3.3.0.5.rbi
@@ -7,14 +7,7 @@
# @api public
#
# source://parser//lib/parser.rb#19
-module Parser
- class << self
- private
-
- # source://parser//lib/parser/current.rb#5
- def warn_syntax_deviation(feature, version); end
- end
-end
+module Parser; end
# @api public
#
@@ -876,7 +869,7 @@ class Parser::Builders::Default
# source://parser//lib/parser/builders/default.rb#243
def initialize; end
- # source://parser//lib/parser/builders/default.rb#690
+ # source://parser//lib/parser/builders/default.rb#703
def __ENCODING__(__ENCODING__t); end
# source://parser//lib/parser/builders/default.rb#348
@@ -885,79 +878,79 @@ class Parser::Builders::Default
# source://parser//lib/parser/builders/default.rb#312
def __LINE__(__LINE__t); end
- # source://parser//lib/parser/builders/default.rb#616
+ # source://parser//lib/parser/builders/default.rb#622
def accessible(node); end
- # source://parser//lib/parser/builders/default.rb#865
+ # source://parser//lib/parser/builders/default.rb#878
def alias(alias_t, to, from); end
- # source://parser//lib/parser/builders/default.rb#904
+ # source://parser//lib/parser/builders/default.rb#917
def arg(name_t); end
- # source://parser//lib/parser/builders/default.rb#994
+ # source://parser//lib/parser/builders/default.rb#1007
def arg_expr(expr); end
- # source://parser//lib/parser/builders/default.rb#874
+ # source://parser//lib/parser/builders/default.rb#887
def args(begin_t, args, end_t, check_args = T.unsafe(nil)); end
# source://parser//lib/parser/builders/default.rb#440
def array(begin_t, elements, end_t); end
- # source://parser//lib/parser/builders/default.rb#1577
+ # source://parser//lib/parser/builders/default.rb#1590
def array_pattern(lbrack_t, elements, rbrack_t); end
- # source://parser//lib/parser/builders/default.rb#754
+ # source://parser//lib/parser/builders/default.rb#767
def assign(lhs, eql_t, rhs); end
- # source://parser//lib/parser/builders/default.rb#699
+ # source://parser//lib/parser/builders/default.rb#712
def assignable(node); end
# source://parser//lib/parser/builders/default.rb#540
def associate(begin_t, pairs, end_t); end
- # source://parser//lib/parser/builders/default.rb#1158
+ # source://parser//lib/parser/builders/default.rb#1171
def attr_asgn(receiver, dot_t, selector_t); end
- # source://parser//lib/parser/builders/default.rb#606
+ # source://parser//lib/parser/builders/default.rb#612
def back_ref(token); end
- # source://parser//lib/parser/builders/default.rb#1422
+ # source://parser//lib/parser/builders/default.rb#1435
def begin(begin_t, body, end_t); end
- # source://parser//lib/parser/builders/default.rb#1364
+ # source://parser//lib/parser/builders/default.rb#1377
def begin_body(compound_stmt, rescue_bodies = T.unsafe(nil), else_t = T.unsafe(nil), else_ = T.unsafe(nil), ensure_t = T.unsafe(nil), ensure_ = T.unsafe(nil)); end
- # source://parser//lib/parser/builders/default.rb#1440
+ # source://parser//lib/parser/builders/default.rb#1453
def begin_keyword(begin_t, body, end_t); end
- # source://parser//lib/parser/builders/default.rb#1192
+ # source://parser//lib/parser/builders/default.rb#1205
def binary_op(receiver, operator_t, arg); end
- # source://parser//lib/parser/builders/default.rb#1109
+ # source://parser//lib/parser/builders/default.rb#1122
def block(method_call, begin_t, args, body, end_t); end
- # source://parser//lib/parser/builders/default.rb#1144
+ # source://parser//lib/parser/builders/default.rb#1157
def block_pass(amper_t, arg); end
- # source://parser//lib/parser/builders/default.rb#969
+ # source://parser//lib/parser/builders/default.rb#982
def blockarg(amper_t, name_t); end
- # source://parser//lib/parser/builders/default.rb#1014
+ # source://parser//lib/parser/builders/default.rb#1027
def blockarg_expr(amper_t, expr); end
- # source://parser//lib/parser/builders/default.rb#1100
+ # source://parser//lib/parser/builders/default.rb#1113
def call_lambda(lambda_t); end
- # source://parser//lib/parser/builders/default.rb#1083
+ # source://parser//lib/parser/builders/default.rb#1096
def call_method(receiver, dot_t, selector_t, lparen_t = T.unsafe(nil), args = T.unsafe(nil), rparen_t = T.unsafe(nil)); end
- # source://parser//lib/parser/builders/default.rb#1055
+ # source://parser//lib/parser/builders/default.rb#1068
def call_type_for_dot(dot_t); end
- # source://parser//lib/parser/builders/default.rb#1297
+ # source://parser//lib/parser/builders/default.rb#1310
def case(case_t, expr, when_bodies, else_t, else_body, end_t); end
- # source://parser//lib/parser/builders/default.rb#1460
+ # source://parser//lib/parser/builders/default.rb#1473
def case_match(case_t, expr, in_bodies, else_t, else_body, end_t); end
# source://parser//lib/parser/builders/default.rb#343
@@ -966,55 +959,55 @@ class Parser::Builders::Default
# source://parser//lib/parser/builders/default.rb#284
def complex(complex_t); end
- # source://parser//lib/parser/builders/default.rb#1410
+ # source://parser//lib/parser/builders/default.rb#1423
def compstmt(statements); end
- # source://parser//lib/parser/builders/default.rb#1273
+ # source://parser//lib/parser/builders/default.rb#1286
def condition(cond_t, cond, then_t, if_true, else_t, if_false, end_t); end
- # source://parser//lib/parser/builders/default.rb#1279
+ # source://parser//lib/parser/builders/default.rb#1292
def condition_mod(if_true, if_false, cond_t, cond); end
- # source://parser//lib/parser/builders/default.rb#673
+ # source://parser//lib/parser/builders/default.rb#686
def const(name_t); end
- # source://parser//lib/parser/builders/default.rb#685
+ # source://parser//lib/parser/builders/default.rb#698
def const_fetch(scope, t_colon2, name_t); end
- # source://parser//lib/parser/builders/default.rb#678
+ # source://parser//lib/parser/builders/default.rb#691
def const_global(t_colon3, name_t); end
- # source://parser//lib/parser/builders/default.rb#750
+ # source://parser//lib/parser/builders/default.rb#763
def const_op_assignable(node); end
- # source://parser//lib/parser/builders/default.rb#1607
+ # source://parser//lib/parser/builders/default.rb#1620
def const_pattern(const, ldelim_t, pattern, rdelim_t); end
- # source://parser//lib/parser/builders/default.rb#601
+ # source://parser//lib/parser/builders/default.rb#607
def cvar(token); end
# source://parser//lib/parser/builders/default.rb#388
def dedent_string(node, dedent_level); end
- # source://parser//lib/parser/builders/default.rb#801
+ # source://parser//lib/parser/builders/default.rb#814
def def_class(class_t, name, lt_t, superclass, body, end_t); end
- # source://parser//lib/parser/builders/default.rb#832
+ # source://parser//lib/parser/builders/default.rb#845
def def_endless_method(def_t, name_t, args, assignment_t, body); end
- # source://parser//lib/parser/builders/default.rb#850
+ # source://parser//lib/parser/builders/default.rb#863
def def_endless_singleton(def_t, definee, dot_t, name_t, args, assignment_t, body); end
- # source://parser//lib/parser/builders/default.rb#824
+ # source://parser//lib/parser/builders/default.rb#837
def def_method(def_t, name_t, args, body, end_t); end
- # source://parser//lib/parser/builders/default.rb#814
+ # source://parser//lib/parser/builders/default.rb#827
def def_module(module_t, name, body, end_t); end
- # source://parser//lib/parser/builders/default.rb#808
+ # source://parser//lib/parser/builders/default.rb#821
def def_sclass(class_t, lshft_t, expr, body, end_t); end
- # source://parser//lib/parser/builders/default.rb#840
+ # source://parser//lib/parser/builders/default.rb#853
def def_singleton(def_t, definee, dot_t, name_t, args, body, end_t); end
# source://parser//lib/parser/builders/default.rb#237
@@ -1026,52 +1019,52 @@ class Parser::Builders::Default
# source://parser//lib/parser/builders/default.rb#265
def false(false_t); end
- # source://parser//lib/parser/builders/default.rb#1598
+ # source://parser//lib/parser/builders/default.rb#1611
def find_pattern(lbrack_t, elements, rbrack_t); end
# source://parser//lib/parser/builders/default.rb#276
def float(float_t); end
- # source://parser//lib/parser/builders/default.rb#1318
+ # source://parser//lib/parser/builders/default.rb#1331
def for(for_t, iterator, in_t, iteratee, do_t, body, end_t); end
- # source://parser//lib/parser/builders/default.rb#900
+ # source://parser//lib/parser/builders/default.rb#913
def forward_arg(dots_t); end
- # source://parser//lib/parser/builders/default.rb#890
+ # source://parser//lib/parser/builders/default.rb#903
def forward_only_args(begin_t, dots_t, end_t); end
- # source://parser//lib/parser/builders/default.rb#1071
+ # source://parser//lib/parser/builders/default.rb#1084
def forwarded_args(dots_t); end
- # source://parser//lib/parser/builders/default.rb#1079
+ # source://parser//lib/parser/builders/default.rb#1092
def forwarded_kwrestarg(dstar_t); end
- # source://parser//lib/parser/builders/default.rb#1075
+ # source://parser//lib/parser/builders/default.rb#1088
def forwarded_restarg(star_t); end
# source://parser//lib/parser/builders/default.rb#596
def gvar(token); end
- # source://parser//lib/parser/builders/default.rb#1571
+ # source://parser//lib/parser/builders/default.rb#1584
def hash_pattern(lbrace_t, kwargs, rbrace_t); end
# source://parser//lib/parser/builders/default.rb#586
def ident(token); end
- # source://parser//lib/parser/builders/default.rb#1487
+ # source://parser//lib/parser/builders/default.rb#1500
def if_guard(if_t, if_body); end
- # source://parser//lib/parser/builders/default.rb#1466
+ # source://parser//lib/parser/builders/default.rb#1479
def in_match(lhs, in_t, rhs); end
- # source://parser//lib/parser/builders/default.rb#1481
+ # source://parser//lib/parser/builders/default.rb#1494
def in_pattern(in_t, pattern, guard, then_t, body); end
- # source://parser//lib/parser/builders/default.rb#1167
+ # source://parser//lib/parser/builders/default.rb#1180
def index(receiver, lbrack_t, indexes, rbrack_t); end
- # source://parser//lib/parser/builders/default.rb#1181
+ # source://parser//lib/parser/builders/default.rb#1194
def index_asgn(receiver, lbrack_t, indexes, rbrack_t); end
# source://parser//lib/parser/builders/default.rb#272
@@ -1080,103 +1073,103 @@ class Parser::Builders::Default
# source://parser//lib/parser/builders/default.rb#591
def ivar(token); end
- # source://parser//lib/parser/builders/default.rb#1326
+ # source://parser//lib/parser/builders/default.rb#1339
def keyword_cmd(type, keyword_t, lparen_t = T.unsafe(nil), args = T.unsafe(nil), rparen_t = T.unsafe(nil)); end
- # source://parser//lib/parser/builders/default.rb#931
+ # source://parser//lib/parser/builders/default.rb#944
def kwarg(name_t); end
- # source://parser//lib/parser/builders/default.rb#957
+ # source://parser//lib/parser/builders/default.rb#970
def kwnilarg(dstar_t, nil_t); end
- # source://parser//lib/parser/builders/default.rb#938
+ # source://parser//lib/parser/builders/default.rb#951
def kwoptarg(name_t, value); end
- # source://parser//lib/parser/builders/default.rb#945
+ # source://parser//lib/parser/builders/default.rb#958
def kwrestarg(dstar_t, name_t = T.unsafe(nil)); end
# source://parser//lib/parser/builders/default.rb#535
def kwsplat(dstar_t, arg); end
- # source://parser//lib/parser/builders/default.rb#1266
+ # source://parser//lib/parser/builders/default.rb#1279
def logical_op(type, lhs, op_t, rhs); end
- # source://parser//lib/parser/builders/default.rb#1304
+ # source://parser//lib/parser/builders/default.rb#1317
def loop(type, keyword_t, cond, do_t, body, end_t); end
- # source://parser//lib/parser/builders/default.rb#1309
+ # source://parser//lib/parser/builders/default.rb#1322
def loop_mod(type, body, keyword_t, cond); end
- # source://parser//lib/parser/builders/default.rb#1621
+ # source://parser//lib/parser/builders/default.rb#1634
def match_alt(left, pipe_t, right); end
- # source://parser//lib/parser/builders/default.rb#1628
+ # source://parser//lib/parser/builders/default.rb#1641
def match_as(value, assoc_t, as); end
- # source://parser//lib/parser/builders/default.rb#1507
+ # source://parser//lib/parser/builders/default.rb#1520
def match_hash_var(name_t); end
- # source://parser//lib/parser/builders/default.rb#1521
+ # source://parser//lib/parser/builders/default.rb#1534
def match_hash_var_from_str(begin_t, strings, end_t); end
- # source://parser//lib/parser/builders/default.rb#1659
+ # source://parser//lib/parser/builders/default.rb#1672
def match_label(label_type, label); end
- # source://parser//lib/parser/builders/default.rb#1635
+ # source://parser//lib/parser/builders/default.rb#1648
def match_nil_pattern(dstar_t, nil_t); end
- # source://parser//lib/parser/builders/default.rb#1214
+ # source://parser//lib/parser/builders/default.rb#1227
def match_op(receiver, match_t, arg); end
- # source://parser//lib/parser/builders/default.rb#1640
+ # source://parser//lib/parser/builders/default.rb#1653
def match_pair(label_type, label, value); end
- # source://parser//lib/parser/builders/default.rb#1471
+ # source://parser//lib/parser/builders/default.rb#1484
def match_pattern(lhs, match_t, rhs); end
- # source://parser//lib/parser/builders/default.rb#1476
+ # source://parser//lib/parser/builders/default.rb#1489
def match_pattern_p(lhs, match_t, rhs); end
- # source://parser//lib/parser/builders/default.rb#1560
+ # source://parser//lib/parser/builders/default.rb#1573
def match_rest(star_t, name_t = T.unsafe(nil)); end
- # source://parser//lib/parser/builders/default.rb#1495
+ # source://parser//lib/parser/builders/default.rb#1508
def match_var(name_t); end
- # source://parser//lib/parser/builders/default.rb#1603
+ # source://parser//lib/parser/builders/default.rb#1616
def match_with_trailing_comma(match, comma_t); end
- # source://parser//lib/parser/builders/default.rb#792
+ # source://parser//lib/parser/builders/default.rb#805
def multi_assign(lhs, eql_t, rhs); end
- # source://parser//lib/parser/builders/default.rb#787
+ # source://parser//lib/parser/builders/default.rb#800
def multi_lhs(begin_t, items, end_t); end
# source://parser//lib/parser/builders/default.rb#255
def nil(nil_t); end
- # source://parser//lib/parser/builders/default.rb#1242
+ # source://parser//lib/parser/builders/default.rb#1255
def not_op(not_t, begin_t = T.unsafe(nil), receiver = T.unsafe(nil), end_t = T.unsafe(nil)); end
- # source://parser//lib/parser/builders/default.rb#611
+ # source://parser//lib/parser/builders/default.rb#617
def nth_ref(token); end
- # source://parser//lib/parser/builders/default.rb#886
+ # source://parser//lib/parser/builders/default.rb#899
def numargs(max_numparam); end
- # source://parser//lib/parser/builders/default.rb#1025
+ # source://parser//lib/parser/builders/default.rb#1038
def objc_kwarg(kwname_t, assoc_t, name_t); end
- # source://parser//lib/parser/builders/default.rb#1039
+ # source://parser//lib/parser/builders/default.rb#1052
def objc_restarg(star_t, name = T.unsafe(nil)); end
- # source://parser//lib/parser/builders/default.rb#1149
+ # source://parser//lib/parser/builders/default.rb#1162
def objc_varargs(pair, rest_of_varargs); end
- # source://parser//lib/parser/builders/default.rb#761
+ # source://parser//lib/parser/builders/default.rb#774
def op_assign(lhs, op_t, rhs); end
- # source://parser//lib/parser/builders/default.rb#911
+ # source://parser//lib/parser/builders/default.rb#924
def optarg(name_t, eql_t, value); end
# source://parser//lib/parser/builders/default.rb#488
@@ -1200,16 +1193,16 @@ class Parser::Builders::Default
# source://parser//lib/parser/builders/default.rb#225
def parser=(_arg0); end
- # source://parser//lib/parser/builders/default.rb#1616
+ # source://parser//lib/parser/builders/default.rb#1629
def pin(pin_t, var); end
- # source://parser//lib/parser/builders/default.rb#1349
+ # source://parser//lib/parser/builders/default.rb#1362
def postexe(postexe_t, lbrace_t, compstmt, rbrace_t); end
- # source://parser//lib/parser/builders/default.rb#1344
+ # source://parser//lib/parser/builders/default.rb#1357
def preexe(preexe_t, lbrace_t, compstmt, rbrace_t); end
- # source://parser//lib/parser/builders/default.rb#979
+ # source://parser//lib/parser/builders/default.rb#992
def procarg0(arg); end
# source://parser//lib/parser/builders/default.rb#572
@@ -1227,19 +1220,19 @@ class Parser::Builders::Default
# source://parser//lib/parser/builders/default.rb#417
def regexp_options(regopt_t); end
- # source://parser//lib/parser/builders/default.rb#1356
+ # source://parser//lib/parser/builders/default.rb#1369
def rescue_body(rescue_t, exc_list, assoc_t, exc_var, then_t, compound_stmt); end
- # source://parser//lib/parser/builders/default.rb#920
+ # source://parser//lib/parser/builders/default.rb#933
def restarg(star_t, name_t = T.unsafe(nil)); end
- # source://parser//lib/parser/builders/default.rb#1003
+ # source://parser//lib/parser/builders/default.rb#1016
def restarg_expr(star_t, expr = T.unsafe(nil)); end
# source://parser//lib/parser/builders/default.rb#581
def self(token); end
- # source://parser//lib/parser/builders/default.rb#962
+ # source://parser//lib/parser/builders/default.rb#975
def shadowarg(name_t); end
# source://parser//lib/parser/builders/default.rb#445
@@ -1266,7 +1259,7 @@ class Parser::Builders::Default
# source://parser//lib/parser/builders/default.rb#469
def symbols_compose(begin_t, parts, end_t); end
- # source://parser//lib/parser/builders/default.rb#1284
+ # source://parser//lib/parser/builders/default.rb#1297
def ternary(cond, question_t, if_true, colon_t, if_false); end
# source://parser//lib/parser/builders/default.rb#260
@@ -1275,16 +1268,16 @@ class Parser::Builders::Default
# source://parser//lib/parser/builders/default.rb#294
def unary_num(unary_t, numeric); end
- # source://parser//lib/parser/builders/default.rb#1230
+ # source://parser//lib/parser/builders/default.rb#1243
def unary_op(op_t, receiver); end
- # source://parser//lib/parser/builders/default.rb#860
+ # source://parser//lib/parser/builders/default.rb#873
def undef_method(undef_t, names); end
- # source://parser//lib/parser/builders/default.rb#1491
+ # source://parser//lib/parser/builders/default.rb#1504
def unless_guard(unless_t, unless_body); end
- # source://parser//lib/parser/builders/default.rb#1291
+ # source://parser//lib/parser/builders/default.rb#1304
def when(when_t, patterns, then_t, body); end
# source://parser//lib/parser/builders/default.rb#455
@@ -1298,184 +1291,184 @@ class Parser::Builders::Default
private
- # source://parser//lib/parser/builders/default.rb#1808
+ # source://parser//lib/parser/builders/default.rb#1821
def arg_name_collides?(this_name, that_name); end
- # source://parser//lib/parser/builders/default.rb#2004
+ # source://parser//lib/parser/builders/default.rb#2017
def arg_prefix_map(op_t, name_t = T.unsafe(nil)); end
- # source://parser//lib/parser/builders/default.rb#1978
+ # source://parser//lib/parser/builders/default.rb#1991
def binary_op_map(left_e, op_t, right_e); end
- # source://parser//lib/parser/builders/default.rb#2106
+ # source://parser//lib/parser/builders/default.rb#2119
def block_map(receiver_l, begin_t, end_t); end
- # source://parser//lib/parser/builders/default.rb#1783
+ # source://parser//lib/parser/builders/default.rb#1796
def check_assignment_to_numparam(name, loc); end
- # source://parser//lib/parser/builders/default.rb#1675
+ # source://parser//lib/parser/builders/default.rb#1688
def check_condition(cond); end
- # source://parser//lib/parser/builders/default.rb#1754
+ # source://parser//lib/parser/builders/default.rb#1767
def check_duplicate_arg(this_arg, map = T.unsafe(nil)); end
- # source://parser//lib/parser/builders/default.rb#1729
+ # source://parser//lib/parser/builders/default.rb#1742
def check_duplicate_args(args, map = T.unsafe(nil)); end
- # source://parser//lib/parser/builders/default.rb#1841
+ # source://parser//lib/parser/builders/default.rb#1854
def check_duplicate_pattern_key(name, loc); end
- # source://parser//lib/parser/builders/default.rb#1831
+ # source://parser//lib/parser/builders/default.rb#1844
def check_duplicate_pattern_variable(name, loc); end
- # source://parser//lib/parser/builders/default.rb#1823
+ # source://parser//lib/parser/builders/default.rb#1836
def check_lvar_name(name, loc); end
- # source://parser//lib/parser/builders/default.rb#1798
+ # source://parser//lib/parser/builders/default.rb#1811
def check_reserved_for_numparam(name, loc); end
- # source://parser//lib/parser/builders/default.rb#2263
+ # source://parser//lib/parser/builders/default.rb#2280
def collapse_string_parts?(parts); end
- # source://parser//lib/parser/builders/default.rb#1929
+ # source://parser//lib/parser/builders/default.rb#1942
def collection_map(begin_t, parts, end_t); end
- # source://parser//lib/parser/builders/default.rb#2133
+ # source://parser//lib/parser/builders/default.rb#2146
def condition_map(keyword_t, cond_e, begin_t, body_e, else_t, else_e, end_t); end
- # source://parser//lib/parser/builders/default.rb#1964
+ # source://parser//lib/parser/builders/default.rb#1977
def constant_map(scope, colon2_t, name_t); end
- # source://parser//lib/parser/builders/default.rb#2037
+ # source://parser//lib/parser/builders/default.rb#2050
def definition_map(keyword_t, operator_t, name_t, end_t); end
- # source://parser//lib/parser/builders/default.rb#1870
+ # source://parser//lib/parser/builders/default.rb#1883
def delimited_string_map(string_t); end
- # source://parser//lib/parser/builders/default.rb#2285
+ # source://parser//lib/parser/builders/default.rb#2302
def diagnostic(type, reason, arguments, location, highlights = T.unsafe(nil)); end
- # source://parser//lib/parser/builders/default.rb#2177
+ # source://parser//lib/parser/builders/default.rb#2190
def eh_keyword_map(compstmt_e, keyword_t, body_es, else_t, else_e); end
- # source://parser//lib/parser/builders/default.rb#2043
+ # source://parser//lib/parser/builders/default.rb#2056
def endless_definition_map(keyword_t, operator_t, name_t, assignment_t, body_e); end
- # source://parser//lib/parser/builders/default.rb#1925
+ # source://parser//lib/parser/builders/default.rb#1938
def expr_map(loc); end
- # source://parser//lib/parser/builders/default.rb#2158
+ # source://parser//lib/parser/builders/default.rb#2171
def for_map(keyword_t, in_t, begin_t, end_t); end
- # source://parser//lib/parser/builders/default.rb#2205
+ # source://parser//lib/parser/builders/default.rb#2218
def guard_map(keyword_t, guard_body_e); end
- # source://parser//lib/parser/builders/default.rb#2095
+ # source://parser//lib/parser/builders/default.rb#2108
def index_map(receiver_e, lbrack_t, rbrack_t); end
- # source://parser//lib/parser/builders/default.rb#1861
+ # source://parser//lib/parser/builders/default.rb#1874
def join_exprs(left_expr, right_expr); end
- # source://parser//lib/parser/builders/default.rb#2111
+ # source://parser//lib/parser/builders/default.rb#2124
def keyword_map(keyword_t, begin_t, args, end_t); end
- # source://parser//lib/parser/builders/default.rb#2128
+ # source://parser//lib/parser/builders/default.rb#2141
def keyword_mod_map(pre_e, keyword_t, post_e); end
- # source://parser//lib/parser/builders/default.rb#2014
+ # source://parser//lib/parser/builders/default.rb#2027
def kwarg_map(name_t, value_e = T.unsafe(nil)); end
- # source://parser//lib/parser/builders/default.rb#2316
+ # source://parser//lib/parser/builders/default.rb#2333
def kwargs?(node); end
- # source://parser//lib/parser/builders/default.rb#2280
+ # source://parser//lib/parser/builders/default.rb#2297
def loc(token); end
- # source://parser//lib/parser/builders/default.rb#2027
+ # source://parser//lib/parser/builders/default.rb#2040
def module_definition_map(keyword_t, name_e, operator_t, end_t); end
- # source://parser//lib/parser/builders/default.rb#1853
+ # source://parser//lib/parser/builders/default.rb#1866
def n(type, children, source_map); end
- # source://parser//lib/parser/builders/default.rb#1857
+ # source://parser//lib/parser/builders/default.rb#1870
def n0(type, source_map); end
# source://parser//lib/parser/builders/default.rb#288
def numeric(kind, token); end
- # source://parser//lib/parser/builders/default.rb#1895
+ # source://parser//lib/parser/builders/default.rb#1908
def pair_keyword_map(key_t, value_e); end
- # source://parser//lib/parser/builders/default.rb#1910
+ # source://parser//lib/parser/builders/default.rb#1923
def pair_quoted_map(begin_t, end_t, value_e); end
- # source://parser//lib/parser/builders/default.rb#1881
+ # source://parser//lib/parser/builders/default.rb#1894
def prefix_string_map(symbol); end
- # source://parser//lib/parser/builders/default.rb#1992
+ # source://parser//lib/parser/builders/default.rb#2005
def range_map(start_e, op_t, end_e); end
- # source://parser//lib/parser/builders/default.rb#1959
+ # source://parser//lib/parser/builders/default.rb#1972
def regexp_map(begin_t, end_t, options_e); end
- # source://parser//lib/parser/builders/default.rb#2164
+ # source://parser//lib/parser/builders/default.rb#2177
def rescue_body_map(keyword_t, exc_list_e, assoc_t, exc_var_e, then_t, compstmt_e); end
- # source://parser//lib/parser/builders/default.rb#2306
+ # source://parser//lib/parser/builders/default.rb#2323
def rewrite_hash_args_to_kwargs(args); end
- # source://parser//lib/parser/builders/default.rb#2077
+ # source://parser//lib/parser/builders/default.rb#2090
def send_binary_op_map(lhs_e, selector_t, rhs_e); end
- # source://parser//lib/parser/builders/default.rb#2100
+ # source://parser//lib/parser/builders/default.rb#2113
def send_index_map(receiver_e, lbrack_t, rbrack_t); end
- # source://parser//lib/parser/builders/default.rb#2051
+ # source://parser//lib/parser/builders/default.rb#2064
def send_map(receiver_e, dot_t, selector_t, begin_t = T.unsafe(nil), args = T.unsafe(nil), end_t = T.unsafe(nil)); end
- # source://parser//lib/parser/builders/default.rb#2083
+ # source://parser//lib/parser/builders/default.rb#2096
def send_unary_op_map(selector_t, arg_e); end
- # source://parser//lib/parser/builders/default.rb#2236
+ # source://parser//lib/parser/builders/default.rb#2249
def static_regexp(parts, options); end
- # source://parser//lib/parser/builders/default.rb#2256
+ # source://parser//lib/parser/builders/default.rb#2269
def static_regexp_node(node); end
- # source://parser//lib/parser/builders/default.rb#2219
+ # source://parser//lib/parser/builders/default.rb#2232
def static_string(nodes); end
- # source://parser//lib/parser/builders/default.rb#1945
+ # source://parser//lib/parser/builders/default.rb#1958
def string_map(begin_t, parts, end_t); end
- # source://parser//lib/parser/builders/default.rb#2272
+ # source://parser//lib/parser/builders/default.rb#2289
def string_value(token); end
- # source://parser//lib/parser/builders/default.rb#2153
+ # source://parser//lib/parser/builders/default.rb#2166
def ternary_map(begin_e, question_t, mid_e, colon_t, end_e); end
- # source://parser//lib/parser/builders/default.rb#1866
+ # source://parser//lib/parser/builders/default.rb#1879
def token_map(token); end
- # source://parser//lib/parser/builders/default.rb#1982
+ # source://parser//lib/parser/builders/default.rb#1995
def unary_op_map(op_t, arg_e = T.unsafe(nil)); end
- # source://parser//lib/parser/builders/default.rb#1890
+ # source://parser//lib/parser/builders/default.rb#1903
def unquoted_map(token); end
- # source://parser//lib/parser/builders/default.rb#2294
+ # source://parser//lib/parser/builders/default.rb#2311
def validate_definee(definee); end
- # source://parser//lib/parser/builders/default.rb#1768
+ # source://parser//lib/parser/builders/default.rb#1781
def validate_no_forward_arg_after_restarg(args); end
- # source://parser//lib/parser/builders/default.rb#2268
+ # source://parser//lib/parser/builders/default.rb#2285
def value(token); end
- # source://parser//lib/parser/builders/default.rb#2071
+ # source://parser//lib/parser/builders/default.rb#2084
def var_send_map(variable_e); end
- # source://parser//lib/parser/builders/default.rb#1974
+ # source://parser//lib/parser/builders/default.rb#1987
def variable_map(name_t); end
class << self
@@ -1671,9 +1664,6 @@ class Parser::CurrentArgStack
def top; end
end
-# source://parser//lib/parser/current.rb#111
-Parser::CurrentRuby = Parser::Ruby32
-
# @api private
#
# source://parser//lib/parser/deprecation.rb#7
@@ -2090,69 +2080,69 @@ class Parser::Lexer
protected
- # source://parser//lib/parser/lexer-F1.rb#14631
+ # source://parser//lib/parser/lexer-F1.rb#14692
def arg_or_cmdarg(cmd_state); end
- # source://parser//lib/parser/lexer-F1.rb#14693
+ # source://parser//lib/parser/lexer-F1.rb#14754
def check_ambiguous_slash(tm); end
- # source://parser//lib/parser/lexer-F1.rb#14655
+ # source://parser//lib/parser/lexer-F1.rb#14716
def diagnostic(type, reason, arguments = T.unsafe(nil), location = T.unsafe(nil), highlights = T.unsafe(nil)); end
- # source://parser//lib/parser/lexer-F1.rb#14661
+ # source://parser//lib/parser/lexer-F1.rb#14722
def e_lbrace; end
- # source://parser//lib/parser/lexer-F1.rb#14605
+ # source://parser//lib/parser/lexer-F1.rb#14666
def emit(type, value = T.unsafe(nil), s = T.unsafe(nil), e = T.unsafe(nil)); end
- # source://parser//lib/parser/lexer-F1.rb#14714
+ # source://parser//lib/parser/lexer-F1.rb#14775
def emit_class_var(ts = T.unsafe(nil), te = T.unsafe(nil)); end
- # source://parser//lib/parser/lexer-F1.rb#14742
+ # source://parser//lib/parser/lexer-F1.rb#14803
def emit_colon_with_digits(p, tm, diag_msg); end
- # source://parser//lib/parser/lexer-F1.rb#14639
+ # source://parser//lib/parser/lexer-F1.rb#14700
def emit_comment(s = T.unsafe(nil), e = T.unsafe(nil)); end
- # source://parser//lib/parser/lexer-F1.rb#14651
+ # source://parser//lib/parser/lexer-F1.rb#14712
def emit_comment_from_range(p, pe); end
- # source://parser//lib/parser/lexer-F1.rb#14621
+ # source://parser//lib/parser/lexer-F1.rb#14682
def emit_do(do_block = T.unsafe(nil)); end
- # source://parser//lib/parser/lexer-F1.rb#14704
+ # source://parser//lib/parser/lexer-F1.rb#14765
def emit_global_var(ts = T.unsafe(nil), te = T.unsafe(nil)); end
- # source://parser//lib/parser/lexer-F1.rb#14722
+ # source://parser//lib/parser/lexer-F1.rb#14783
def emit_instance_var(ts = T.unsafe(nil), te = T.unsafe(nil)); end
- # source://parser//lib/parser/lexer-F1.rb#14730
+ # source://parser//lib/parser/lexer-F1.rb#14791
def emit_rbrace_rparen_rbrack; end
- # source://parser//lib/parser/lexer-F1.rb#14752
+ # source://parser//lib/parser/lexer-F1.rb#14813
def emit_singleton_class; end
- # source://parser//lib/parser/lexer-F1.rb#14615
+ # source://parser//lib/parser/lexer-F1.rb#14676
def emit_table(table, s = T.unsafe(nil), e = T.unsafe(nil)); end
- # source://parser//lib/parser/lexer-F1.rb#14670
+ # source://parser//lib/parser/lexer-F1.rb#14731
def numeric_literal_int; end
- # source://parser//lib/parser/lexer-F1.rb#14689
+ # source://parser//lib/parser/lexer-F1.rb#14750
def on_newline(p); end
- # source://parser//lib/parser/lexer-F1.rb#14601
+ # source://parser//lib/parser/lexer-F1.rb#14662
def range(s = T.unsafe(nil), e = T.unsafe(nil)); end
- # source://parser//lib/parser/lexer-F1.rb#14592
+ # source://parser//lib/parser/lexer-F1.rb#14653
def stack_pop; end
- # source://parser//lib/parser/lexer-F1.rb#14597
+ # source://parser//lib/parser/lexer-F1.rb#14658
def tok(s = T.unsafe(nil), e = T.unsafe(nil)); end
# @return [Boolean]
#
- # source://parser//lib/parser/lexer-F1.rb#14588
+ # source://parser//lib/parser/lexer-F1.rb#14649
def version?(*versions); end
class << self
@@ -2499,13 +2489,13 @@ end
# source://parser//lib/parser/lexer/dedenter.rb#7
Parser::Lexer::Dedenter::TAB_WIDTH = T.let(T.unsafe(nil), Integer)
-# source://parser//lib/parser/lexer-F1.rb#14799
+# source://parser//lib/parser/lexer-F1.rb#14860
Parser::Lexer::ESCAPE_WHITESPACE = T.let(T.unsafe(nil), Hash)
-# source://parser//lib/parser/lexer-F1.rb#14785
+# source://parser//lib/parser/lexer-F1.rb#14846
Parser::Lexer::KEYWORDS = T.let(T.unsafe(nil), Hash)
-# source://parser//lib/parser/lexer-F1.rb#14792
+# source://parser//lib/parser/lexer-F1.rb#14853
Parser::Lexer::KEYWORDS_BEGIN = T.let(T.unsafe(nil), Hash)
# source://parser//lib/parser/lexer-F1.rb#8362
@@ -2513,108 +2503,114 @@ Parser::Lexer::LEX_STATES = T.let(T.unsafe(nil), Hash)
# source://parser//lib/parser/lexer/literal.rb#6
class Parser::Lexer::Literal
- # source://parser//lib/parser/lexer/literal.rb#40
+ # source://parser//lib/parser/lexer/literal.rb#42
def initialize(lexer, str_type, delimiter, str_s, heredoc_e = T.unsafe(nil), indent = T.unsafe(nil), dedent_body = T.unsafe(nil), label_allowed = T.unsafe(nil)); end
- # source://parser//lib/parser/lexer/literal.rb#114
+ # source://parser//lib/parser/lexer/literal.rb#116
def backslash_delimited?; end
- # source://parser//lib/parser/lexer/literal.rb#37
+ # source://parser//lib/parser/lexer/literal.rb#39
def dedent_level; end
- # source://parser//lib/parser/lexer/literal.rb#189
+ # source://parser//lib/parser/lexer/literal.rb#191
def end_interp_brace_and_try_closing; end
- # source://parser//lib/parser/lexer/literal.rb#216
+ # source://parser//lib/parser/lexer/literal.rb#218
def extend_content; end
- # source://parser//lib/parser/lexer/literal.rb#220
+ # source://parser//lib/parser/lexer/literal.rb#222
def extend_space(ts, te); end
- # source://parser//lib/parser/lexer/literal.rb#195
+ # source://parser//lib/parser/lexer/literal.rb#197
def extend_string(string, ts, te); end
- # source://parser//lib/parser/lexer/literal.rb#202
+ # source://parser//lib/parser/lexer/literal.rb#204
def flush_string; end
- # source://parser//lib/parser/lexer/literal.rb#102
+ # source://parser//lib/parser/lexer/literal.rb#104
def heredoc?; end
- # source://parser//lib/parser/lexer/literal.rb#37
+ # source://parser//lib/parser/lexer/literal.rb#39
def heredoc_e; end
- # source://parser//lib/parser/lexer/literal.rb#166
+ # source://parser//lib/parser/lexer/literal.rb#168
def infer_indent_level(line); end
- # source://parser//lib/parser/lexer/literal.rb#89
+ # source://parser//lib/parser/lexer/literal.rb#91
def interpolate?; end
- # source://parser//lib/parser/lexer/literal.rb#122
+ # source://parser//lib/parser/lexer/literal.rb#124
def munge_escape?(character); end
- # source://parser//lib/parser/lexer/literal.rb#132
+ # source://parser//lib/parser/lexer/literal.rb#134
def nest_and_try_closing(delimiter, ts, te, lookahead = T.unsafe(nil)); end
- # source://parser//lib/parser/lexer/literal.rb#106
+ # source://parser//lib/parser/lexer/literal.rb#108
def plain_heredoc?; end
- # source://parser//lib/parser/lexer/literal.rb#98
+ # source://parser//lib/parser/lexer/literal.rb#100
def regexp?; end
- # source://parser//lib/parser/lexer/literal.rb#38
+ # source://parser//lib/parser/lexer/literal.rb#40
def saved_herebody_s; end
- # source://parser//lib/parser/lexer/literal.rb#38
+ # source://parser//lib/parser/lexer/literal.rb#40
def saved_herebody_s=(_arg0); end
- # source://parser//lib/parser/lexer/literal.rb#110
+ # source://parser//lib/parser/lexer/literal.rb#112
def squiggly_heredoc?; end
- # source://parser//lib/parser/lexer/literal.rb#185
+ # source://parser//lib/parser/lexer/literal.rb#187
def start_interp_brace; end
- # source://parser//lib/parser/lexer/literal.rb#37
+ # source://parser//lib/parser/lexer/literal.rb#39
def str_s; end
- # source://parser//lib/parser/lexer/literal.rb#230
+ # source://parser//lib/parser/lexer/literal.rb#232
def supports_line_continuation_via_slash?; end
- # source://parser//lib/parser/lexer/literal.rb#118
+ # source://parser//lib/parser/lexer/literal.rb#120
def type; end
- # source://parser//lib/parser/lexer/literal.rb#93
+ # source://parser//lib/parser/lexer/literal.rb#95
def words?; end
protected
- # source://parser//lib/parser/lexer/literal.rb#248
+ # source://parser//lib/parser/lexer/literal.rb#263
def clear_buffer; end
- # source://parser//lib/parser/lexer/literal.rb#244
+ # source://parser//lib/parser/lexer/literal.rb#259
def coerce_encoding(string); end
- # source://parser//lib/parser/lexer/literal.rb#236
+ # source://parser//lib/parser/lexer/literal.rb#238
def delimiter?(delimiter); end
- # source://parser//lib/parser/lexer/literal.rb#264
+ # source://parser//lib/parser/lexer/literal.rb#279
def emit(token, type, s, e); end
- # source://parser//lib/parser/lexer/literal.rb#259
+ # source://parser//lib/parser/lexer/literal.rb#274
def emit_start_tok; end
end
# source://parser//lib/parser/lexer/literal.rb#7
Parser::Lexer::Literal::DELIMITERS = T.let(T.unsafe(nil), Hash)
+# source://parser//lib/parser/lexer/literal.rb#8
+Parser::Lexer::Literal::SPACE = T.let(T.unsafe(nil), Integer)
+
# source://parser//lib/parser/lexer/literal.rb#9
+Parser::Lexer::Literal::TAB = T.let(T.unsafe(nil), Integer)
+
+# source://parser//lib/parser/lexer/literal.rb#11
Parser::Lexer::Literal::TYPES = T.let(T.unsafe(nil), Hash)
# Mapping of strings to parser tokens.
#
-# source://parser//lib/parser/lexer-F1.rb#14759
+# source://parser//lib/parser/lexer-F1.rb#14820
Parser::Lexer::PUNCTUATION = T.let(T.unsafe(nil), Hash)
-# source://parser//lib/parser/lexer-F1.rb#14779
+# source://parser//lib/parser/lexer-F1.rb#14840
Parser::Lexer::PUNCTUATION_BEGIN = T.let(T.unsafe(nil), Hash)
# source://parser//lib/parser/lexer/stack_state.rb#5
@@ -3200,7 +3196,7 @@ Parser::MaxNumparamStack::ORDINARY_PARAMS = T.let(T.unsafe(nil), Integer)
# @api private
#
-# source://parser//lib/parser/messages.rb#107
+# source://parser//lib/parser/messages.rb#112
module Parser::Messages
class << self
# Formats the message, returns a raw template if there's nothing to interpolate
@@ -3210,7 +3206,7 @@ module Parser::Messages
#
# @api private
#
- # source://parser//lib/parser/messages.rb#114
+ # source://parser//lib/parser/messages.rb#119
def compile(reason, arguments); end
end
end
@@ -3315,2027 +3311,235 @@ end
# source://parser//lib/parser/rewriter.rb#91
Parser::Rewriter::DEPRECATION_WARNING = T.let(T.unsafe(nil), String)
-# source://parser//lib/parser/ruby32.rb#14
-class Parser::Ruby32 < ::Parser::Base
- # reduce 0 omitted
- #
- # source://parser//lib/parser/ruby32.rb#8421
- def _reduce_1(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#8475
- def _reduce_10(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#9110
- def _reduce_100(val, _values, result); end
+# @api public
+#
+# source://parser//lib/parser.rb#30
+module Parser::Source; end
- # reduce 101 omitted
+# A buffer with source code. {Buffer} contains the source code itself,
+# associated location information (name and first line), and takes care
+# of encoding.
+#
+# A source buffer is immutable once populated.
+#
+# @api public
+#
+# source://parser//lib/parser/source/buffer.rb#25
+class Parser::Source::Buffer
+ # @api public
+ # @return [Buffer] a new instance of Buffer
#
- # source://parser//lib/parser/ruby32.rb#9119
- def _reduce_102(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#9125
- def _reduce_103(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#9131
- def _reduce_104(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#9137
- def _reduce_105(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#9143
- def _reduce_106(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#9149
- def _reduce_107(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#9155
- def _reduce_108(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#9161
- def _reduce_109(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#8481
- def _reduce_11(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#9167
- def _reduce_110(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#9177
- def _reduce_111(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#9183
- def _reduce_112(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#9193
- def _reduce_113(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#9200
- def _reduce_114(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#9207
- def _reduce_115(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#9213
- def _reduce_116(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#9219
- def _reduce_117(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#9225
- def _reduce_118(val, _values, result); end
+ # source://parser//lib/parser/source/buffer.rb#105
+ def initialize(name, first_line = T.unsafe(nil), source: T.unsafe(nil)); end
- # source://parser//lib/parser/ruby32.rb#9231
- def _reduce_119(val, _values, result); end
+ # Convert a character index into the source to a column number.
+ #
+ # @api private
+ # @param position [Integer]
+ # @return [Integer] column
+ #
+ # source://parser//lib/parser/source/buffer.rb#242
+ def column_for_position(position); end
- # source://parser//lib/parser/ruby32.rb#8498
- def _reduce_12(val, _values, result); end
+ # Convert a character index into the source to a `[line, column]` tuple.
+ #
+ # @api public
+ # @param position [Integer]
+ # @return [[Integer, Integer]] `[line, column]`
+ #
+ # source://parser//lib/parser/source/buffer.rb#217
+ def decompose_position(position); end
- # source://parser//lib/parser/ruby32.rb#9237
- def _reduce_120(val, _values, result); end
+ # First line of the buffer, 1 by default.
+ #
+ # @api public
+ # @return [Integer] first line
+ #
+ # source://parser//lib/parser/source/buffer.rb#26
+ def first_line; end
- # source://parser//lib/parser/ruby32.rb#9243
- def _reduce_121(val, _values, result); end
+ # @api public
+ #
+ # source://parser//lib/parser/source/buffer.rb#312
+ def freeze; end
- # source://parser//lib/parser/ruby32.rb#9249
- def _reduce_122(val, _values, result); end
+ # @api public
+ #
+ # source://parser//lib/parser/source/buffer.rb#318
+ def inspect; end
- # source://parser//lib/parser/ruby32.rb#9256
- def _reduce_123(val, _values, result); end
+ # Number of last line in the buffer
+ #
+ # @api public
+ # @return [Integer]
+ #
+ # source://parser//lib/parser/source/buffer.rb#307
+ def last_line; end
- # source://parser//lib/parser/ruby32.rb#9263
- def _reduce_124(val, _values, result); end
+ # Convert a character index into the source to a line number.
+ #
+ # @api private
+ # @param position [Integer]
+ # @return [Integer] line
+ #
+ # source://parser//lib/parser/source/buffer.rb#231
+ def line_for_position(position); end
- # source://parser//lib/parser/ruby32.rb#9269
- def _reduce_125(val, _values, result); end
+ # Extract line `lineno` as a new `Range`, taking `first_line` into account.
+ #
+ # @api public
+ # @param lineno [Integer]
+ # @raise [IndexError] if `lineno` is out of bounds
+ # @return [Range]
+ #
+ # source://parser//lib/parser/source/buffer.rb#284
+ def line_range(lineno); end
- # reduce 126 omitted
+ # Buffer name. If the buffer was created from a file, the name corresponds
+ # to relative path to the file.
#
- # source://parser//lib/parser/ruby32.rb#9277
- def _reduce_127(val, _values, result); end
+ # @api public
+ # @return [String] buffer name
+ #
+ # source://parser//lib/parser/source/buffer.rb#26
+ def name; end
- # source://parser//lib/parser/ruby32.rb#9283
- def _reduce_128(val, _values, result); end
+ # Populate this buffer from a string without encoding autodetection.
+ #
+ # @api public
+ # @param input [String]
+ # @raise [ArgumentError] if already populated
+ # @return [String]
+ #
+ # source://parser//lib/parser/source/buffer.rb#180
+ def raw_source=(input); end
- # source://parser//lib/parser/ruby32.rb#9289
- def _reduce_129(val, _values, result); end
+ # Populate this buffer from correspondingly named file.
+ #
+ # @api public
+ # @example
+ # Parser::Source::Buffer.new('foo/bar.rb').read
+ # @raise [ArgumentError] if already populated
+ # @return [Buffer] self
+ #
+ # source://parser//lib/parser/source/buffer.rb#131
+ def read; end
- # source://parser//lib/parser/ruby32.rb#8504
- def _reduce_13(val, _values, result); end
+ # @api public
+ #
+ # source://parser//lib/parser/source/buffer.rb#194
+ def slice(start, length = T.unsafe(nil)); end
- # reduce 134 omitted
+ # Source code contained in this buffer.
+ #
+ # @api public
+ # @raise [RuntimeError] if buffer is not populated yet
+ # @return [String] source code
#
- # source://parser//lib/parser/ruby32.rb#9305
- def _reduce_135(val, _values, result); end
+ # source://parser//lib/parser/source/buffer.rb#145
+ def source; end
- # reduce 136 omitted
+ # Populate this buffer from a string with encoding autodetection.
+ # `input` is mutated if not frozen.
+ #
+ # @api public
+ # @param input [String]
+ # @raise [ArgumentError] if already populated
+ # @raise [EncodingError] if `input` includes invalid byte sequence for the encoding
+ # @return [String]
#
- # source://parser//lib/parser/ruby32.rb#9313
- def _reduce_137(val, _values, result); end
+ # source://parser//lib/parser/source/buffer.rb#162
+ def source=(input); end
- # source://parser//lib/parser/ruby32.rb#9319
- def _reduce_138(val, _values, result); end
+ # Extract line `lineno` from source, taking `first_line` into account.
+ #
+ # @api public
+ # @param lineno [Integer]
+ # @raise [IndexError] if `lineno` is out of bounds
+ # @return [String]
+ #
+ # source://parser//lib/parser/source/buffer.rb#273
+ def source_line(lineno); end
- # source://parser//lib/parser/ruby32.rb#9325
- def _reduce_139(val, _values, result); end
+ # Return an `Array` of source code lines.
+ #
+ # @api public
+ # @return [Array]
+ #
+ # source://parser//lib/parser/source/buffer.rb#252
+ def source_lines; end
- # source://parser//lib/parser/ruby32.rb#8510
- def _reduce_14(val, _values, result); end
+ # @api public
+ # @return [Range] A range covering the whole source
+ #
+ # source://parser//lib/parser/source/buffer.rb#298
+ def source_range; end
- # source://parser//lib/parser/ruby32.rb#8516
- def _reduce_15(val, _values, result); end
+ private
- # source://parser//lib/parser/ruby32.rb#8522
- def _reduce_16(val, _values, result); end
+ # @api public
+ #
+ # source://parser//lib/parser/source/buffer.rb#348
+ def bsearch(line_begins, position); end
- # reduce 17 omitted
+ # @api public
#
- # source://parser//lib/parser/ruby32.rb#8530
- def _reduce_18(val, _values, result); end
+ # source://parser//lib/parser/source/buffer.rb#325
+ def line_begins; end
- # source://parser//lib/parser/ruby32.rb#8536
- def _reduce_19(val, _values, result); end
+ # @api public
+ #
+ # source://parser//lib/parser/source/buffer.rb#339
+ def line_index_for_position(position); end
- # source://parser//lib/parser/ruby32.rb#8428
- def _reduce_2(val, _values, result); end
+ class << self
+ # Try to recognize encoding of `string` as Ruby would, i.e. by looking for
+ # magic encoding comment or UTF-8 BOM. `string` can be in any encoding.
+ #
+ # @api public
+ # @param string [String]
+ # @return [String, nil] encoding name, if recognized
+ #
+ # source://parser//lib/parser/source/buffer.rb#51
+ def recognize_encoding(string); end
- # source://parser//lib/parser/ruby32.rb#8542
- def _reduce_20(val, _values, result); end
+ # Recognize encoding of `input` and process it so it could be lexed.
+ #
+ # * If `input` does not contain BOM or magic encoding comment, it is
+ # kept in the original encoding.
+ # * If the detected encoding is binary, `input` is kept in binary.
+ # * Otherwise, `input` is re-encoded into UTF-8 and returned as a
+ # new string.
+ #
+ # This method mutates the encoding of `input`, but not its content.
+ #
+ # @api public
+ # @param input [String]
+ # @raise [EncodingError]
+ # @return [String]
+ #
+ # source://parser//lib/parser/source/buffer.rb#90
+ def reencode_string(input); end
+ end
+end
- # source://parser//lib/parser/ruby32.rb#8548
- def _reduce_21(val, _values, result); end
+# @api private
+#
+# source://parser//lib/parser/source/buffer.rb#31
+Parser::Source::Buffer::ENCODING_RE = T.let(T.unsafe(nil), Regexp)
- # reduce 210 omitted
+# A comment in the source code.
+#
+# @api public
+#
+# source://parser//lib/parser/source/comment.rb#17
+class Parser::Source::Comment
+ # @api public
+ # @param range [Parser::Source::Range]
+ # @return [Comment] a new instance of Comment
#
- # source://parser//lib/parser/ruby32.rb#9473
- def _reduce_211(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#9479
- def _reduce_212(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#9485
- def _reduce_213(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#9494
- def _reduce_214(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#9503
- def _reduce_215(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#9512
- def _reduce_216(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#9521
- def _reduce_217(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#9529
- def _reduce_218(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#9537
- def _reduce_219(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#8556
- def _reduce_22(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#9543
- def _reduce_220(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#9549
- def _reduce_221(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#9555
- def _reduce_222(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#9561
- def _reduce_223(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#9567
- def _reduce_224(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#9573
- def _reduce_225(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#9579
- def _reduce_226(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#9585
- def _reduce_227(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#9591
- def _reduce_228(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#9597
- def _reduce_229(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#8564
- def _reduce_23(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#9603
- def _reduce_230(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#9609
- def _reduce_231(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#9615
- def _reduce_232(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#9623
- def _reduce_233(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#9629
- def _reduce_234(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#9635
- def _reduce_235(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#9641
- def _reduce_236(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#9647
- def _reduce_237(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#9653
- def _reduce_238(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#8570
- def _reduce_24(val, _values, result); end
-
- # reduce 239 omitted
- #
- # source://parser//lib/parser/ruby32.rb#9661
- def _reduce_240(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#9667
- def _reduce_241(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#9673
- def _reduce_242(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#9679
- def _reduce_243(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#9685
- def _reduce_244(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#9691
- def _reduce_245(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#9697
- def _reduce_246(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#9703
- def _reduce_247(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#9709
- def _reduce_248(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#9715
- def _reduce_249(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#8576
- def _reduce_25(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#9721
- def _reduce_250(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#9727
- def _reduce_251(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#9733
- def _reduce_252(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#9740
- def _reduce_253(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#9747
- def _reduce_254(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#9761
- def _reduce_255(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#9781
- def _reduce_256(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#9795
- def _reduce_257(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#8583
- def _reduce_26(val, _values, result); end
-
- # reduce 262 omitted
- #
- # source://parser//lib/parser/ruby32.rb#9825
- def _reduce_263(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#9831
- def _reduce_264(val, _values, result); end
-
- # reduce 267 omitted
- #
- # source://parser//lib/parser/ruby32.rb#9843
- def _reduce_268(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#9849
- def _reduce_269(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#8590
- def _reduce_27(val, _values, result); end
-
- # reduce 270 omitted
- #
- # source://parser//lib/parser/ruby32.rb#9857
- def _reduce_271(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#9867
- def _reduce_272(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#9873
- def _reduce_273(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#9883
- def _reduce_274(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#9893
- def _reduce_275(val, _values, result); end
-
- # reduce 276 omitted
- #
- # source://parser//lib/parser/ruby32.rb#9901
- def _reduce_277(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#8596
- def _reduce_28(val, _values, result); end
-
- # reduce 279 omitted
- #
- # source://parser//lib/parser/ruby32.rb#9911
- def _reduce_280(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#9917
- def _reduce_281(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#9923
- def _reduce_282(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#9929
- def _reduce_283(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#9935
- def _reduce_284(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#9942
- def _reduce_285(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#9950
- def _reduce_286(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#9956
- def _reduce_287(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#9983
- def _reduce_288(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#10004
- def _reduce_289(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#8602
- def _reduce_29(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#10010
- def _reduce_290(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#10020
- def _reduce_291(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#10026
- def _reduce_292(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#10032
- def _reduce_293(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#10038
- def _reduce_294(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#10044
- def _reduce_295(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#10054
- def _reduce_296(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#10060
- def _reduce_297(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#10066
- def _reduce_298(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#10076
- def _reduce_299(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#8437
- def _reduce_3(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#8612
- def _reduce_30(val, _values, result); end
-
- # reduce 300 omitted
- #
- # source://parser//lib/parser/ruby32.rb#10084
- def _reduce_301(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#10090
- def _reduce_302(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#10096
- def _reduce_303(val, _values, result); end
-
- # reduce 313 omitted
- #
- # source://parser//lib/parser/ruby32.rb#10122
- def _reduce_314(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#10128
- def _reduce_315(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#10134
- def _reduce_316(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#10142
- def _reduce_317(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#10148
- def _reduce_318(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#10154
- def _reduce_319(val, _values, result); end
-
- # reduce 31 omitted
- #
- # source://parser//lib/parser/ruby32.rb#8620
- def _reduce_32(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#10160
- def _reduce_320(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#10166
- def _reduce_321(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#10172
- def _reduce_322(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#10178
- def _reduce_323(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#10184
- def _reduce_324(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#10190
- def _reduce_325(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#10196
- def _reduce_326(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#10202
- def _reduce_327(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#10208
- def _reduce_328(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#10214
- def _reduce_329(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#8626
- def _reduce_33(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#10220
- def _reduce_330(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#10226
- def _reduce_331(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#10234
- def _reduce_332(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#10240
- def _reduce_333(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#10246
- def _reduce_334(val, _values, result); end
-
- # reduce 335 omitted
- #
- # source://parser//lib/parser/ruby32.rb#10258
- def _reduce_336(val, _values, result); end
-
- # reduce 337 omitted
- #
- # source://parser//lib/parser/ruby32.rb#10268
- def _reduce_338(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#10277
- def _reduce_339(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#8633
- def _reduce_34(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#10286
- def _reduce_340(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#10292
- def _reduce_341(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#10298
- def _reduce_342(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#10308
- def _reduce_343(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#10318
- def _reduce_344(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#10328
- def _reduce_345(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#10334
- def _reduce_346(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#10341
- def _reduce_347(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#10357
- def _reduce_348(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#10365
- def _reduce_349(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#8644
- def _reduce_35(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#10377
- def _reduce_350(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#10384
- def _reduce_351(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#10398
- def _reduce_352(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#10410
- def _reduce_353(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#10422
- def _reduce_354(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#10428
- def _reduce_355(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#10434
- def _reduce_356(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#10440
- def _reduce_357(val, _values, result); end
-
- # reduce 358 omitted
- #
- # source://parser//lib/parser/ruby32.rb#10448
- def _reduce_359(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#10454
- def _reduce_360(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#10460
- def _reduce_361(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#10467
- def _reduce_362(val, _values, result); end
-
- # reduce 364 omitted
- #
- # source://parser//lib/parser/ruby32.rb#10479
- def _reduce_365(val, _values, result); end
-
- # reduce 368 omitted
- #
- # source://parser//lib/parser/ruby32.rb#10491
- def _reduce_369(val, _values, result); end
-
- # reduce 36 omitted
- #
- # source://parser//lib/parser/ruby32.rb#8652
- def _reduce_37(val, _values, result); end
-
- # reduce 370 omitted
- #
- # source://parser//lib/parser/ruby32.rb#10504
- def _reduce_371(val, _values, result); end
-
- # reduce 373 omitted
- #
- # source://parser//lib/parser/ruby32.rb#10514
- def _reduce_374(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#10520
- def _reduce_375(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#10526
- def _reduce_376(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#10532
- def _reduce_377(val, _values, result); end
-
- # reduce 378 omitted
- #
- # source://parser//lib/parser/ruby32.rb#10540
- def _reduce_379(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#8658
- def _reduce_38(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#10547
- def _reduce_380(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#10555
- def _reduce_381(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#10561
- def _reduce_382(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#10567
- def _reduce_383(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#10573
- def _reduce_384(val, _values, result); end
-
- # reduce 386 omitted
- #
- # source://parser//lib/parser/ruby32.rb#10583
- def _reduce_387(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#10589
- def _reduce_388(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#10595
- def _reduce_389(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#8664
- def _reduce_39(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#10601
- def _reduce_390(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#10607
- def _reduce_391(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#10613
- def _reduce_392(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#10619
- def _reduce_393(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#10625
- def _reduce_394(val, _values, result); end
-
- # reduce 395 omitted
- #
- # source://parser//lib/parser/ruby32.rb#10633
- def _reduce_396(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#10642
- def _reduce_397(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#10652
- def _reduce_398(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#10660
- def _reduce_399(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#8443
- def _reduce_4(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#8673
- def _reduce_40(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#10669
- def _reduce_400(val, _values, result); end
-
- # reduce 401 omitted
- #
- # source://parser//lib/parser/ruby32.rb#10679
- def _reduce_402(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#10688
- def _reduce_403(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#10698
- def _reduce_404(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#10706
- def _reduce_405(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#10715
- def _reduce_406(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#10722
- def _reduce_407(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#10730
- def _reduce_408(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#10737
- def _reduce_409(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#8682
- def _reduce_41(val, _values, result); end
-
- # reduce 410 omitted
- #
- # source://parser//lib/parser/ruby32.rb#10747
- def _reduce_411(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#10753
- def _reduce_412(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#10759
- def _reduce_413(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#10768
- def _reduce_414(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#10777
- def _reduce_415(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#10783
- def _reduce_416(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#10789
- def _reduce_417(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#10795
- def _reduce_418(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#10801
- def _reduce_419(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#8691
- def _reduce_42(val, _values, result); end
-
- # reduce 420 omitted
- #
- # source://parser//lib/parser/ruby32.rb#10810
- def _reduce_421(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#10819
- def _reduce_422(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#10825
- def _reduce_423(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#10841
- def _reduce_424(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#10849
- def _reduce_425(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#10859
- def _reduce_426(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#10866
- def _reduce_427(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#10873
- def _reduce_428(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#10880
- def _reduce_429(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#8699
- def _reduce_43(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#10887
- def _reduce_430(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#10894
- def _reduce_431(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#10901
- def _reduce_432(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#10909
- def _reduce_433(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#10917
- def _reduce_434(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#10929
- def _reduce_435(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#10940
- def _reduce_436(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#10948
- def _reduce_437(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#10956
- def _reduce_438(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#10964
- def _reduce_439(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#8708
- def _reduce_44(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#10970
- def _reduce_440(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#10978
- def _reduce_441(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#10986
- def _reduce_442(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#10994
- def _reduce_443(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#11000
- def _reduce_444(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#11006
- def _reduce_445(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#11013
- def _reduce_446(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#11020
- def _reduce_447(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#11027
- def _reduce_448(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#11034
- def _reduce_449(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#8722
- def _reduce_45(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#11041
- def _reduce_450(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#11051
- def _reduce_451(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#11058
- def _reduce_452(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#11064
- def _reduce_453(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#11075
- def _reduce_454(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#11082
- def _reduce_455(val, _values, result); end
-
- # reduce 456 omitted
- #
- # source://parser//lib/parser/ruby32.rb#11090
- def _reduce_457(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#11102
- def _reduce_458(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#11110
- def _reduce_459(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#8742
- def _reduce_46(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#11117
- def _reduce_460(val, _values, result); end
-
- # reduce 461 omitted
- #
- # source://parser//lib/parser/ruby32.rb#11125
- def _reduce_462(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#11131
- def _reduce_463(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#11137
- def _reduce_464(val, _values, result); end
-
- # reduce 465 omitted
- #
- # source://parser//lib/parser/ruby32.rb#11145
- def _reduce_466(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#11155
- def _reduce_467(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#11161
- def _reduce_468(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#11167
- def _reduce_469(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#8756
- def _reduce_47(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#11173
- def _reduce_470(val, _values, result); end
-
- # reduce 471 omitted
- #
- # source://parser//lib/parser/ruby32.rb#11181
- def _reduce_472(val, _values, result); end
-
- # reduce 473 omitted
- #
- # source://parser//lib/parser/ruby32.rb#11189
- def _reduce_474(val, _values, result); end
-
- # reduce 475 omitted
- #
- # source://parser//lib/parser/ruby32.rb#11197
- def _reduce_476(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#11204
- def _reduce_477(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#8776
- def _reduce_48(val, _values, result); end
-
- # reduce 479 omitted
- #
- # source://parser//lib/parser/ruby32.rb#11215
- def _reduce_480(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#11223
- def _reduce_481(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#11231
- def _reduce_482(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#11239
- def _reduce_483(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#11246
- def _reduce_484(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#11254
- def _reduce_485(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#11262
- def _reduce_486(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#11270
- def _reduce_487(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#11277
- def _reduce_488(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#11283
- def _reduce_489(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#11289
- def _reduce_490(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#11295
- def _reduce_491(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#11303
- def _reduce_492(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#11311
- def _reduce_493(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#11317
- def _reduce_494(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#11323
- def _reduce_495(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#11330
- def _reduce_496(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#11336
- def _reduce_497(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#11342
- def _reduce_498(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#11348
- def _reduce_499(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#8449
- def _reduce_5(val, _values, result); end
-
- # reduce 49 omitted
- #
- # source://parser//lib/parser/ruby32.rb#8784
- def _reduce_50(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#11354
- def _reduce_500(val, _values, result); end
-
- # reduce 501 omitted
- #
- # source://parser//lib/parser/ruby32.rb#11362
- def _reduce_502(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#11372
- def _reduce_503(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#11382
- def _reduce_504(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#11388
- def _reduce_505(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#11394
- def _reduce_506(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#11400
- def _reduce_507(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#11406
- def _reduce_508(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#11412
- def _reduce_509(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#11418
- def _reduce_510(val, _values, result); end
-
- # reduce 511 omitted
- #
- # source://parser//lib/parser/ruby32.rb#11426
- def _reduce_512(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#11432
- def _reduce_513(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#11438
- def _reduce_514(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#11444
- def _reduce_515(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#11450
- def _reduce_516(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#11456
- def _reduce_517(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#11462
- def _reduce_518(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#11468
- def _reduce_519(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#11474
- def _reduce_520(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#11480
- def _reduce_521(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#11486
- def _reduce_522(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#11492
- def _reduce_523(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#11498
- def _reduce_524(val, _values, result); end
-
- # reduce 525 omitted
- #
- # source://parser//lib/parser/ruby32.rb#11506
- def _reduce_526(val, _values, result); end
-
- # reduce 527 omitted
- #
- # source://parser//lib/parser/ruby32.rb#11514
- def _reduce_528(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#11520
- def _reduce_529(val, _values, result); end
-
- # reduce 52 omitted
- #
- # source://parser//lib/parser/ruby32.rb#8798
- def _reduce_53(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#11526
- def _reduce_530(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#11532
- def _reduce_531(val, _values, result); end
-
- # reduce 534 omitted
- #
- # source://parser//lib/parser/ruby32.rb#11544
- def _reduce_535(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#11550
- def _reduce_536(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#8804
- def _reduce_54(val, _values, result); end
-
- # reduce 544 omitted
- #
- # source://parser//lib/parser/ruby32.rb#11572
- def _reduce_545(val, _values, result); end
-
- # reduce 546 omitted
- #
- # source://parser//lib/parser/ruby32.rb#11580
- def _reduce_547(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#11586
- def _reduce_548(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#11598
- def _reduce_549(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#8810
- def _reduce_55(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#11605
- def _reduce_550(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#11612
- def _reduce_551(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#11618
- def _reduce_552(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#11624
- def _reduce_553(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#11630
- def _reduce_554(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#11645
- def _reduce_555(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#11651
- def _reduce_556(val, _values, result); end
-
- # reduce 558 omitted
- #
- # source://parser//lib/parser/ruby32.rb#11661
- def _reduce_559(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#8816
- def _reduce_56(val, _values, result); end
-
- # reduce 560 omitted
- #
- # source://parser//lib/parser/ruby32.rb#11669
- def _reduce_561(val, _values, result); end
-
- # reduce 564 omitted
- #
- # source://parser//lib/parser/ruby32.rb#11681
- def _reduce_565(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#11687
- def _reduce_566(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#11693
- def _reduce_567(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#11699
- def _reduce_568(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#11706
- def _reduce_569(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#8822
- def _reduce_57(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#11713
- def _reduce_570(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#11719
- def _reduce_571(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#11726
- def _reduce_572(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#11733
- def _reduce_573(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#11739
- def _reduce_574(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#11745
- def _reduce_575(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#11751
- def _reduce_576(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#11757
- def _reduce_577(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#11763
- def _reduce_578(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#11769
- def _reduce_579(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#8834
- def _reduce_58(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#11775
- def _reduce_580(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#11781
- def _reduce_581(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#11787
- def _reduce_582(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#11793
- def _reduce_583(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#11799
- def _reduce_584(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#11805
- def _reduce_585(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#11811
- def _reduce_586(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#11817
- def _reduce_587(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#11823
- def _reduce_588(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#11829
- def _reduce_589(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#8843
- def _reduce_59(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#11835
- def _reduce_590(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#11841
- def _reduce_591(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#11847
- def _reduce_592(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#11853
- def _reduce_593(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#11859
- def _reduce_594(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#11865
- def _reduce_595(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#11872
- def _reduce_596(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#11881
- def _reduce_597(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#11887
- def _reduce_598(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#11893
- def _reduce_599(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#8455
- def _reduce_6(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#8855
- def _reduce_60(val, _values, result); end
-
- # reduce 602 omitted
- #
- # source://parser//lib/parser/ruby32.rb#11905
- def _reduce_603(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#11912
- def _reduce_604(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#11919
- def _reduce_605(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#11925
- def _reduce_606(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#11936
- def _reduce_607(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#11943
- def _reduce_608(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#11950
- def _reduce_609(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#11957
- def _reduce_610(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#11964
- def _reduce_611(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#11970
- def _reduce_612(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#11976
- def _reduce_613(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#11982
- def _reduce_614(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#11988
- def _reduce_615(val, _values, result); end
-
- # reduce 616 omitted
- #
- # source://parser//lib/parser/ruby32.rb#11996
- def _reduce_617(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#12002
- def _reduce_618(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#12008
- def _reduce_619(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#12014
- def _reduce_620(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#12020
- def _reduce_621(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#12026
- def _reduce_622(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#12032
- def _reduce_623(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#12038
- def _reduce_624(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#12044
- def _reduce_625(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#12050
- def _reduce_626(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#12056
- def _reduce_627(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#12062
- def _reduce_628(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#12068
- def _reduce_629(val, _values, result); end
-
- # reduce 62 omitted
- #
- # source://parser//lib/parser/ruby32.rb#8868
- def _reduce_63(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#12074
- def _reduce_630(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#12080
- def _reduce_631(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#12086
- def _reduce_632(val, _values, result); end
-
- # reduce 633 omitted
- #
- # source://parser//lib/parser/ruby32.rb#12094
- def _reduce_634(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#12101
- def _reduce_635(val, _values, result); end
-
- # reduce 636 omitted
- #
- # source://parser//lib/parser/ruby32.rb#12112
- def _reduce_637(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#12120
- def _reduce_638(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#12128
- def _reduce_639(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#8874
- def _reduce_64(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#12134
- def _reduce_640(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#12140
- def _reduce_641(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#12146
- def _reduce_642(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#12152
- def _reduce_643(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#12159
- def _reduce_644(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#12165
- def _reduce_645(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#12171
- def _reduce_646(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#12180
- def _reduce_647(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#12190
- def _reduce_648(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#12198
- def _reduce_649(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#8881
- def _reduce_65(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#12207
- def _reduce_650(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#12215
- def _reduce_651(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#12224
- def _reduce_652(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#12231
- def _reduce_653(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#12239
- def _reduce_654(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#12248
- def _reduce_655(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#12255
- def _reduce_656(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#12263
- def _reduce_657(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#12270
- def _reduce_658(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#12278
- def _reduce_659(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#8891
- def _reduce_66(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#12284
- def _reduce_660(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#12290
- def _reduce_661(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#12296
- def _reduce_662(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#12302
- def _reduce_663(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#12308
- def _reduce_664(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#12314
- def _reduce_665(val, _values, result); end
-
- # reduce 666 omitted
- #
- # source://parser//lib/parser/ruby32.rb#12322
- def _reduce_667(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#12332
- def _reduce_668(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#12339
- def _reduce_669(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#8897
- def _reduce_67(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#12346
- def _reduce_670(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#12352
- def _reduce_671(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#12358
- def _reduce_672(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#12364
- def _reduce_673(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#12379
- def _reduce_674(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#12387
- def _reduce_675(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#12395
- def _reduce_676(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#12402
- def _reduce_677(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#12409
- def _reduce_678(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#12415
- def _reduce_679(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#8904
- def _reduce_68(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#12421
- def _reduce_680(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#12427
- def _reduce_681(val, _values, result); end
-
- # reduce 683 omitted
- #
- # source://parser//lib/parser/ruby32.rb#12437
- def _reduce_684(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#12443
- def _reduce_685(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#12451
- def _reduce_686(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#12459
- def _reduce_687(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#12467
- def _reduce_688(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#12475
- def _reduce_689(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#12481
- def _reduce_690(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#12487
- def _reduce_691(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#12493
- def _reduce_692(val, _values, result); end
-
- # reduce 694 omitted
- #
- # source://parser//lib/parser/ruby32.rb#12503
- def _reduce_695(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#12511
- def _reduce_696(val, _values, result); end
-
- # reduce 698 omitted
- #
- # source://parser//lib/parser/ruby32.rb#12523
- def _reduce_699(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#8461
- def _reduce_7(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#12531
- def _reduce_700(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#12539
- def _reduce_701(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#12545
- def _reduce_702(val, _values, result); end
-
- # reduce 703 omitted
- #
- # source://parser//lib/parser/ruby32.rb#12553
- def _reduce_704(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#12559
- def _reduce_705(val, _values, result); end
-
- # reduce 706 omitted
- #
- # source://parser//lib/parser/ruby32.rb#12567
- def _reduce_707(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#12573
- def _reduce_708(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#12579
- def _reduce_709(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#12585
- def _reduce_710(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#12591
- def _reduce_711(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#12597
- def _reduce_712(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#12603
- def _reduce_713(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#12609
- def _reduce_714(val, _values, result); end
-
- # reduce 71 omitted
- #
- # source://parser//lib/parser/ruby32.rb#8916
- def _reduce_72(val, _values, result); end
-
- # reduce 724 omitted
- #
- # source://parser//lib/parser/ruby32.rb#12639
- def _reduce_725(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#12645
- def _reduce_726(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#8923
- def _reduce_73(val, _values, result); end
-
- # reduce 730 omitted
- #
- # source://parser//lib/parser/ruby32.rb#12659
- def _reduce_731(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#12665
- def _reduce_732(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#12671
- def _reduce_733(val, _values, result); end
-
- # reduce 735 omitted
- #
- # source://parser//lib/parser/ruby32.rb#12681
- def _reduce_736(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#8930
- def _reduce_74(val, _values, result); end
-
- # reduce 739 omitted
- #
- # source://parser//lib/parser/ruby32.rb#12693
- def _reduce_740(val, _values, result); end
-
- # reduce 75 omitted
- #
- # source://parser//lib/parser/ruby32.rb#8939
- def _reduce_76(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#8946
- def _reduce_77(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#8957
- def _reduce_78(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#8964
- def _reduce_79(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#8975
- def _reduce_80(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#8982
- def _reduce_81(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#8993
- def _reduce_82(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#9000
- def _reduce_83(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#9007
- def _reduce_84(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#9014
- def _reduce_85(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#9021
- def _reduce_86(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#9028
- def _reduce_87(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#9034
- def _reduce_88(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#9040
- def _reduce_89(val, _values, result); end
-
- # reduce 8 omitted
- #
- # source://parser//lib/parser/ruby32.rb#8469
- def _reduce_9(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#9046
- def _reduce_90(val, _values, result); end
-
- # reduce 91 omitted
- #
- # source://parser//lib/parser/ruby32.rb#9054
- def _reduce_92(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#9061
- def _reduce_93(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#9068
- def _reduce_94(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#9076
- def _reduce_95(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#9083
- def _reduce_96(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#9091
- def _reduce_97(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#9097
- def _reduce_98(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#9104
- def _reduce_99(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#12699
- def _reduce_none(val, _values, result); end
-
- # source://parser//lib/parser/ruby32.rb#21
- def default_encoding; end
-
- # source://parser//lib/parser/ruby32.rb#25
- def endless_method_name(name_t); end
-
- # source://parser//lib/parser/ruby32.rb#38
- def local_pop; end
-
- # source://parser//lib/parser/ruby32.rb#31
- def local_push; end
-
- # source://parser//lib/parser/ruby32.rb#45
- def try_declare_numparam(node); end
-
- # source://parser//lib/parser/ruby32.rb#17
- def version; end
-end
-
-# source://parser//lib/parser/ruby32.rb#8008
-Parser::Ruby32::Racc_arg = T.let(T.unsafe(nil), Array)
-
-# source://parser//lib/parser/ruby32.rb#8415
-Parser::Ruby32::Racc_debug_parser = T.let(T.unsafe(nil), FalseClass)
-
-# source://parser//lib/parser/ruby32.rb#8025
-Parser::Ruby32::Racc_token_to_s_table = T.let(T.unsafe(nil), Array)
-
-# @api public
-#
-# source://parser//lib/parser.rb#30
-module Parser::Source; end
-
-# A buffer with source code. {Buffer} contains the source code itself,
-# associated location information (name and first line), and takes care
-# of encoding.
-#
-# A source buffer is immutable once populated.
-#
-# @api public
-#
-# source://parser//lib/parser/source/buffer.rb#25
-class Parser::Source::Buffer
- # @api public
- # @return [Buffer] a new instance of Buffer
- #
- # source://parser//lib/parser/source/buffer.rb#105
- def initialize(name, first_line = T.unsafe(nil), source: T.unsafe(nil)); end
-
- # Convert a character index into the source to a column number.
- #
- # @api private
- # @param position [Integer]
- # @return [Integer] column
- #
- # source://parser//lib/parser/source/buffer.rb#242
- def column_for_position(position); end
-
- # Convert a character index into the source to a `[line, column]` tuple.
- #
- # @api public
- # @param position [Integer]
- # @return [[Integer, Integer]] `[line, column]`
- #
- # source://parser//lib/parser/source/buffer.rb#217
- def decompose_position(position); end
-
- # First line of the buffer, 1 by default.
- #
- # @api public
- # @return [Integer] first line
- #
- # source://parser//lib/parser/source/buffer.rb#26
- def first_line; end
-
- # @api public
- #
- # source://parser//lib/parser/source/buffer.rb#312
- def freeze; end
-
- # @api public
- #
- # source://parser//lib/parser/source/buffer.rb#318
- def inspect; end
-
- # Number of last line in the buffer
- #
- # @api public
- # @return [Integer]
- #
- # source://parser//lib/parser/source/buffer.rb#307
- def last_line; end
-
- # Convert a character index into the source to a line number.
- #
- # @api private
- # @param position [Integer]
- # @return [Integer] line
- #
- # source://parser//lib/parser/source/buffer.rb#231
- def line_for_position(position); end
-
- # Extract line `lineno` as a new `Range`, taking `first_line` into account.
- #
- # @api public
- # @param lineno [Integer]
- # @raise [IndexError] if `lineno` is out of bounds
- # @return [Range]
- #
- # source://parser//lib/parser/source/buffer.rb#284
- def line_range(lineno); end
-
- # Buffer name. If the buffer was created from a file, the name corresponds
- # to relative path to the file.
- #
- # @api public
- # @return [String] buffer name
- #
- # source://parser//lib/parser/source/buffer.rb#26
- def name; end
-
- # Populate this buffer from a string without encoding autodetection.
- #
- # @api public
- # @param input [String]
- # @raise [ArgumentError] if already populated
- # @return [String]
- #
- # source://parser//lib/parser/source/buffer.rb#180
- def raw_source=(input); end
-
- # Populate this buffer from correspondingly named file.
- #
- # @api public
- # @example
- # Parser::Source::Buffer.new('foo/bar.rb').read
- # @raise [ArgumentError] if already populated
- # @return [Buffer] self
- #
- # source://parser//lib/parser/source/buffer.rb#131
- def read; end
-
- # @api public
- #
- # source://parser//lib/parser/source/buffer.rb#194
- def slice(start, length = T.unsafe(nil)); end
-
- # Source code contained in this buffer.
- #
- # @api public
- # @raise [RuntimeError] if buffer is not populated yet
- # @return [String] source code
- #
- # source://parser//lib/parser/source/buffer.rb#145
- def source; end
-
- # Populate this buffer from a string with encoding autodetection.
- # `input` is mutated if not frozen.
- #
- # @api public
- # @param input [String]
- # @raise [ArgumentError] if already populated
- # @raise [EncodingError] if `input` includes invalid byte sequence for the encoding
- # @return [String]
- #
- # source://parser//lib/parser/source/buffer.rb#162
- def source=(input); end
-
- # Extract line `lineno` from source, taking `first_line` into account.
- #
- # @api public
- # @param lineno [Integer]
- # @raise [IndexError] if `lineno` is out of bounds
- # @return [String]
- #
- # source://parser//lib/parser/source/buffer.rb#273
- def source_line(lineno); end
-
- # Return an `Array` of source code lines.
- #
- # @api public
- # @return [Array]
- #
- # source://parser//lib/parser/source/buffer.rb#252
- def source_lines; end
-
- # @api public
- # @return [Range] A range covering the whole source
- #
- # source://parser//lib/parser/source/buffer.rb#298
- def source_range; end
-
- private
-
- # @api public
- #
- # source://parser//lib/parser/source/buffer.rb#348
- def bsearch(line_begins, position); end
-
- # @api public
- #
- # source://parser//lib/parser/source/buffer.rb#325
- def line_begins; end
-
- # @api public
- #
- # source://parser//lib/parser/source/buffer.rb#339
- def line_index_for_position(position); end
-
- class << self
- # Try to recognize encoding of `string` as Ruby would, i.e. by looking for
- # magic encoding comment or UTF-8 BOM. `string` can be in any encoding.
- #
- # @api public
- # @param string [String]
- # @return [String, nil] encoding name, if recognized
- #
- # source://parser//lib/parser/source/buffer.rb#51
- def recognize_encoding(string); end
-
- # Recognize encoding of `input` and process it so it could be lexed.
- #
- # * If `input` does not contain BOM or magic encoding comment, it is
- # kept in the original encoding.
- # * If the detected encoding is binary, `input` is kept in binary.
- # * Otherwise, `input` is re-encoded into UTF-8 and returned as a
- # new string.
- #
- # This method mutates the encoding of `input`, but not its content.
- #
- # @api public
- # @param input [String]
- # @raise [EncodingError]
- # @return [String]
- #
- # source://parser//lib/parser/source/buffer.rb#90
- def reencode_string(input); end
- end
-end
-
-# @api private
-#
-# source://parser//lib/parser/source/buffer.rb#31
-Parser::Source::Buffer::ENCODING_RE = T.let(T.unsafe(nil), Regexp)
-
-# A comment in the source code.
-#
-# @api public
-#
-# source://parser//lib/parser/source/comment.rb#17
-class Parser::Source::Comment
- # @api public
- # @param range [Parser::Source::Range]
- # @return [Comment] a new instance of Comment
- #
- # source://parser//lib/parser/source/comment.rb#67
- def initialize(range); end
+ # source://parser//lib/parser/source/comment.rb#67
+ def initialize(range); end
# Compares comments. Two comments are equal if they
# correspond to the same source range.
@@ -7020,10 +5224,10 @@ class Parser::StaticEnvironment
# source://parser//lib/parser/static_environment.rb#58
def declare_anonymous_blockarg; end
- # source://parser//lib/parser/static_environment.rb#74
+ # source://parser//lib/parser/static_environment.rb#82
def declare_anonymous_kwrestarg; end
- # source://parser//lib/parser/static_environment.rb#66
+ # source://parser//lib/parser/static_environment.rb#70
def declare_anonymous_restarg; end
# source://parser//lib/parser/static_environment.rb#50
@@ -7041,12 +5245,12 @@ class Parser::StaticEnvironment
# @return [Boolean]
#
- # source://parser//lib/parser/static_environment.rb#78
+ # source://parser//lib/parser/static_environment.rb#86
def declared_anonymous_kwrestarg?; end
# @return [Boolean]
#
- # source://parser//lib/parser/static_environment.rb#70
+ # source://parser//lib/parser/static_environment.rb#74
def declared_anonymous_restarg?; end
# @return [Boolean]
@@ -7056,7 +5260,7 @@ class Parser::StaticEnvironment
# @return [Boolean]
#
- # source://parser//lib/parser/static_environment.rb#82
+ # source://parser//lib/parser/static_environment.rb#94
def empty?; end
# source://parser//lib/parser/static_environment.rb#27
@@ -7065,6 +5269,21 @@ class Parser::StaticEnvironment
# source://parser//lib/parser/static_environment.rb#20
def extend_static; end
+ # @return [Boolean]
+ #
+ # source://parser//lib/parser/static_environment.rb#66
+ def parent_has_anonymous_blockarg?; end
+
+ # @return [Boolean]
+ #
+ # source://parser//lib/parser/static_environment.rb#90
+ def parent_has_anonymous_kwrestarg?; end
+
+ # @return [Boolean]
+ #
+ # source://parser//lib/parser/static_environment.rb#78
+ def parent_has_anonymous_restarg?; end
+
# source://parser//lib/parser/static_environment.rb#15
def reset; end
diff --git a/sorbet/rbi/gems/rbi@0.1.6.rbi b/sorbet/rbi/gems/rbi@0.1.6.rbi
index ec3c48ec..e3e903a6 100644
--- a/sorbet/rbi/gems/rbi@0.1.6.rbi
+++ b/sorbet/rbi/gems/rbi@0.1.6.rbi
@@ -1820,7 +1820,7 @@ class RBI::Rewriters::Merge::Conflict < ::T::Struct
def to_s; end
class << self
- # source://sorbet-runtime/0.5.11219/lib/types/struct.rb#13
+ # source://sorbet-runtime/0.5.11287/lib/types/struct.rb#13
def inherited(s); end
end
end
@@ -2037,7 +2037,7 @@ class RBI::Rewriters::RemoveKnownDefinitions::Operation < ::T::Struct
def to_s; end
class << self
- # source://sorbet-runtime/0.5.11219/lib/types/struct.rb#13
+ # source://sorbet-runtime/0.5.11287/lib/types/struct.rb#13
def inherited(s); end
end
end
@@ -2670,7 +2670,7 @@ class RBI::Tree < ::RBI::NodeWithComments
sig { params(annotation: ::String, annotate_scopes: T::Boolean, annotate_properties: T::Boolean).void }
def annotate!(annotation, annotate_scopes: T.unsafe(nil), annotate_properties: T.unsafe(nil)); end
- # source://tapioca/0.12.0/lib/tapioca/rbi_ext/model.rb#38
+ # source://tapioca/0.13.0/lib/tapioca/rbi_ext/model.rb#38
sig do
params(
name: ::String,
@@ -2680,19 +2680,19 @@ class RBI::Tree < ::RBI::NodeWithComments
end
def create_class(name, superclass_name: T.unsafe(nil), &block); end
- # source://tapioca/0.12.0/lib/tapioca/rbi_ext/model.rb#45
+ # source://tapioca/0.13.0/lib/tapioca/rbi_ext/model.rb#45
sig { params(name: ::String, value: ::String).void }
def create_constant(name, value:); end
- # source://tapioca/0.12.0/lib/tapioca/rbi_ext/model.rb#55
+ # source://tapioca/0.13.0/lib/tapioca/rbi_ext/model.rb#55
sig { params(name: ::String).void }
def create_extend(name); end
- # source://tapioca/0.12.0/lib/tapioca/rbi_ext/model.rb#50
+ # source://tapioca/0.13.0/lib/tapioca/rbi_ext/model.rb#50
sig { params(name: ::String).void }
def create_include(name); end
- # source://tapioca/0.12.0/lib/tapioca/rbi_ext/model.rb#89
+ # source://tapioca/0.13.0/lib/tapioca/rbi_ext/model.rb#89
sig do
params(
name: ::String,
@@ -2705,19 +2705,36 @@ class RBI::Tree < ::RBI::NodeWithComments
end
def create_method(name, parameters: T.unsafe(nil), return_type: T.unsafe(nil), class_method: T.unsafe(nil), visibility: T.unsafe(nil), comments: T.unsafe(nil)); end
- # source://tapioca/0.12.0/lib/tapioca/rbi_ext/model.rb#60
+ # source://tapioca/0.13.0/lib/tapioca/rbi_ext/model.rb#112
+ sig do
+ params(
+ name: ::String,
+ sigs: T::Array[::RBI::Sig],
+ parameters: T::Array[::RBI::Param],
+ class_method: T::Boolean,
+ visibility: ::RBI::Visibility,
+ comments: T::Array[::RBI::Comment]
+ ).void
+ end
+ def create_method_with_sigs(name, sigs:, parameters: T.unsafe(nil), class_method: T.unsafe(nil), visibility: T.unsafe(nil), comments: T.unsafe(nil)); end
+
+ # source://tapioca/0.13.0/lib/tapioca/rbi_ext/model.rb#60
sig { params(name: ::String).void }
def create_mixes_in_class_methods(name); end
- # source://tapioca/0.12.0/lib/tapioca/rbi_ext/model.rb#25
+ # source://tapioca/0.13.0/lib/tapioca/rbi_ext/model.rb#25
sig { params(name: ::String, block: T.nilable(T.proc.params(scope: ::RBI::Scope).void)).returns(::RBI::Scope) }
def create_module(name, &block); end
- # source://tapioca/0.12.0/lib/tapioca/rbi_ext/model.rb#9
+ # source://tapioca/0.13.0/lib/tapioca/rbi_ext/model.rb#9
sig { params(constant: ::Module, block: T.nilable(T.proc.params(scope: ::RBI::Scope).void)).returns(::RBI::Scope) }
def create_path(constant, &block); end
- # source://tapioca/0.12.0/lib/tapioca/rbi_ext/model.rb#74
+ # source://tapioca/0.13.0/lib/tapioca/rbi_ext/model.rb#133
+ sig { params(parameters: T::Array[::RBI::TypedParam], return_type: ::String).returns(::RBI::Sig) }
+ def create_sig(parameters: T.unsafe(nil), return_type: T.unsafe(nil)); end
+
+ # source://tapioca/0.13.0/lib/tapioca/rbi_ext/model.rb#74
sig do
params(
name: ::String,
@@ -2779,11 +2796,11 @@ class RBI::Tree < ::RBI::NodeWithComments
private
- # source://tapioca/0.12.0/lib/tapioca/rbi_ext/model.rb#116
+ # source://tapioca/0.13.0/lib/tapioca/rbi_ext/model.rb#148
sig { params(node: ::RBI::Node).returns(::RBI::Node) }
def create_node(node); end
- # source://tapioca/0.12.0/lib/tapioca/rbi_ext/model.rb#111
+ # source://tapioca/0.13.0/lib/tapioca/rbi_ext/model.rb#143
sig { returns(T::Hash[::String, ::RBI::Node]) }
def nodes_cache; end
end
diff --git a/sorbet/rbi/gems/rdoc@6.6.2.rbi b/sorbet/rbi/gems/rdoc@6.6.2.rbi
new file mode 100644
index 00000000..7bec7b2e
--- /dev/null
+++ b/sorbet/rbi/gems/rdoc@6.6.2.rbi
@@ -0,0 +1,12561 @@
+# typed: false
+
+# DO NOT EDIT MANUALLY
+# This is an autogenerated file for types exported from the `rdoc` gem.
+# Please instead update this file by running `bin/tapioca gem rdoc`.
+
+module ERB::Escape
+ private
+
+ def html_escape(_arg0); end
+
+ class << self
+ def html_escape(_arg0); end
+ end
+end
+
+# RDoc produces documentation for Ruby source files by parsing the source and
+# extracting the definition for classes, modules, methods, includes and
+# requires. It associates these with optional documentation contained in an
+# immediately preceding comment block then renders the result using an output
+# formatter.
+#
+# For a simple introduction to writing or generating documentation using RDoc
+# see the README.
+#
+# == Roadmap
+#
+# If you think you found a bug in RDoc see CONTRIBUTING@Bugs
+#
+# If you want to use RDoc to create documentation for your Ruby source files,
+# see RDoc::Markup and refer to rdoc --help for command line usage.
+#
+# If you want to set the default markup format see
+# RDoc::Markup@Supported+Formats
+#
+# If you want to store rdoc configuration in your gem (such as the default
+# markup format) see RDoc::Options@Saved+Options
+#
+# If you want to write documentation for Ruby files see RDoc::Parser::Ruby
+#
+# If you want to write documentation for extensions written in C see
+# RDoc::Parser::C
+#
+# If you want to generate documentation using rake see RDoc::Task.
+#
+# If you want to drive RDoc programmatically, see RDoc::RDoc.
+#
+# If you want to use the library to format text blocks into HTML or other
+# formats, look at RDoc::Markup.
+#
+# If you want to make an RDoc plugin such as a generator or directive handler
+# see RDoc::RDoc.
+#
+# If you want to write your own output generator see RDoc::Generator.
+#
+# If you want an overview of how RDoc works see CONTRIBUTING
+#
+# == Credits
+#
+# RDoc is currently being maintained by Eric Hodel .
+#
+# Dave Thomas is the original author of RDoc.
+#
+# * The Ruby parser in rdoc/parse.rb is based heavily on the outstanding
+# work of Keiju ISHITSUKA of Nippon Rational Inc, who produced the Ruby
+# parser for irb and the rtags package.
+#
+# source://rdoc//lib/rdoc.rb#58
+module RDoc
+ class << self
+ # Seaches and returns the directory for settings.
+ #
+ # 1. $HOME/.rdoc directory, if it exists.
+ # 2. The +rdoc+ directory under the path specified by the
+ # +XDG_DATA_HOME+ environment variable, if it is set.
+ # 3. $HOME/.local/share/rdoc directory.
+ #
+ # Other than the home directory, the containing directory will be
+ # created automatically.
+ #
+ # source://rdoc//lib/rdoc.rb#134
+ def home; end
+
+ # Loads the best available YAML library.
+ #
+ # source://rdoc//lib/rdoc.rb#107
+ def load_yaml; end
+ end
+end
+
+# Represent an alias, which is an old_name/new_name pair associated with a
+# particular context
+# --
+# TODO implement Alias as a proxy to a method/attribute, inheriting from
+# MethodAttr
+#
+# source://rdoc//lib/rdoc/alias.rb#9
+class RDoc::Alias < ::RDoc::CodeObject
+ # Creates a new Alias with a token stream of +text+ that aliases +old_name+
+ # to +new_name+, has +comment+ and is a +singleton+ context.
+ #
+ # @return [Alias] a new instance of Alias
+ #
+ # source://rdoc//lib/rdoc/alias.rb#37
+ def initialize(text, old_name, new_name, comment, singleton = T.unsafe(nil)); end
+
+ # Order by #singleton then #new_name
+ #
+ # source://rdoc//lib/rdoc/alias.rb#50
+ def <=>(other); end
+
+ # HTML fragment reference for this alias
+ #
+ # source://rdoc//lib/rdoc/alias.rb#57
+ def aref; end
+
+ # Full old name including namespace
+ #
+ # source://rdoc//lib/rdoc/alias.rb#65
+ def full_old_name; end
+
+ # HTML id-friendly version of +#new_name+.
+ #
+ # source://rdoc//lib/rdoc/alias.rb#72
+ def html_name; end
+
+ # source://rdoc//lib/rdoc/alias.rb#76
+ def inspect; end
+
+ # Aliased method's name
+ #
+ # source://rdoc//lib/rdoc/alias.rb#14
+ def name; end
+
+ # '::' for the alias of a singleton method/attribute, '#' for instance-level.
+ #
+ # source://rdoc//lib/rdoc/alias.rb#87
+ def name_prefix; end
+
+ # Aliased method's name
+ #
+ # source://rdoc//lib/rdoc/alias.rb#14
+ def new_name; end
+
+ # Aliasee method's name
+ #
+ # source://rdoc//lib/rdoc/alias.rb#21
+ def old_name; end
+
+ # New name with prefix '::' or '#'.
+ #
+ # source://rdoc//lib/rdoc/alias.rb#101
+ def pretty_name; end
+
+ # New name with prefix '::' or '#'.
+ #
+ # source://rdoc//lib/rdoc/alias.rb#101
+ def pretty_new_name; end
+
+ # Old name with prefix '::' or '#'.
+ #
+ # source://rdoc//lib/rdoc/alias.rb#94
+ def pretty_old_name; end
+
+ # Is this an alias declared in a singleton context?
+ #
+ # source://rdoc//lib/rdoc/alias.rb#26
+ def singleton; end
+
+ # Is this an alias declared in a singleton context?
+ #
+ # source://rdoc//lib/rdoc/alias.rb#26
+ def singleton=(_arg0); end
+
+ # Source file token stream
+ #
+ # source://rdoc//lib/rdoc/alias.rb#31
+ def text; end
+
+ # source://rdoc//lib/rdoc/alias.rb#107
+ def to_s; end
+end
+
+# AnyMethod is the base class for objects representing methods
+#
+# source://rdoc//lib/rdoc/any_method.rb#5
+class RDoc::AnyMethod < ::RDoc::MethodAttr
+ include ::RDoc::TokenStream
+
+ # Creates a new AnyMethod with a token stream +text+ and +name+
+ #
+ # @return [AnyMethod] a new instance of AnyMethod
+ #
+ # source://rdoc//lib/rdoc/any_method.rb#46
+ def initialize(text, name); end
+
+ # Adds +an_alias+ as an alias for this method in +context+.
+ #
+ # source://rdoc//lib/rdoc/any_method.rb#59
+ def add_alias(an_alias, context = T.unsafe(nil)); end
+
+ # Prefix for +aref+ is 'method'.
+ #
+ # source://rdoc//lib/rdoc/any_method.rb#76
+ def aref_prefix; end
+
+ # The call_seq or the param_seq with method name, if there is no call_seq.
+ #
+ # Use this for displaying a method's argument lists.
+ #
+ # source://rdoc//lib/rdoc/any_method.rb#85
+ def arglists; end
+
+ # The C function that implements this method (if it was defined in a C file)
+ #
+ # source://rdoc//lib/rdoc/any_method.rb#27
+ def c_function; end
+
+ # The C function that implements this method (if it was defined in a C file)
+ #
+ # source://rdoc//lib/rdoc/any_method.rb#27
+ def c_function=(_arg0); end
+
+ # Different ways to call this method
+ #
+ # source://rdoc//lib/rdoc/any_method.rb#96
+ def call_seq; end
+
+ # Sets the different ways you can call this method. If an empty +call_seq+
+ # is given nil is assumed.
+ #
+ # See also #param_seq
+ #
+ # source://rdoc//lib/rdoc/any_method.rb#112
+ def call_seq=(call_seq); end
+
+ # If true this method uses +super+ to call a superclass version
+ #
+ # source://rdoc//lib/rdoc/any_method.rb#39
+ def calls_super; end
+
+ # If true this method uses +super+ to call a superclass version
+ #
+ # source://rdoc//lib/rdoc/any_method.rb#39
+ def calls_super=(_arg0); end
+
+ # Don't rename \#initialize to \::new
+ #
+ # source://rdoc//lib/rdoc/any_method.rb#22
+ def dont_rename_initialize; end
+
+ # Don't rename \#initialize to \::new
+ #
+ # source://rdoc//lib/rdoc/any_method.rb#22
+ def dont_rename_initialize=(_arg0); end
+
+ # Whether the method has a call-seq.
+ #
+ # @return [Boolean]
+ #
+ # source://rdoc//lib/rdoc/any_method.rb#121
+ def has_call_seq?; end
+
+ # Loads is_alias_for from the internal name. Returns nil if the alias
+ # cannot be found.
+ #
+ # source://rdoc//lib/rdoc/any_method.rb#129
+ def is_alias_for; end
+
+ # Dumps this AnyMethod for use by ri. See also #marshal_load
+ #
+ # source://rdoc//lib/rdoc/any_method.rb#147
+ def marshal_dump; end
+
+ # Loads this AnyMethod from +array+. For a loaded AnyMethod the following
+ # methods will return cached values:
+ #
+ # * #full_name
+ # * #parent_name
+ #
+ # source://rdoc//lib/rdoc/any_method.rb#184
+ def marshal_load(array); end
+
+ # Method name
+ #
+ # If the method has no assigned name, it extracts it from #call_seq.
+ #
+ # source://rdoc//lib/rdoc/any_method.rb#233
+ def name; end
+
+ # A list of this method's method and yield parameters. +call-seq+ params
+ # are preferred over parsed method and block params.
+ #
+ # source://rdoc//lib/rdoc/any_method.rb#246
+ def param_list; end
+
+ # Pretty parameter list for this method. If the method's parameters were
+ # given by +call-seq+ it is preferred over the parsed values.
+ #
+ # source://rdoc//lib/rdoc/any_method.rb#278
+ def param_seq; end
+
+ # Parameters for this method
+ #
+ # source://rdoc//lib/rdoc/any_method.rb#34
+ def params; end
+
+ # Parameters for this method
+ #
+ # source://rdoc//lib/rdoc/any_method.rb#34
+ def params=(_arg0); end
+
+ # The section title of the method (if defined in a C file via +:category:+)
+ #
+ # source://rdoc//lib/rdoc/any_method.rb#30
+ def section_title; end
+
+ # The section title of the method (if defined in a C file via +:category:+)
+ #
+ # source://rdoc//lib/rdoc/any_method.rb#30
+ def section_title=(_arg0); end
+
+ # Whether to skip the method description, true for methods that have
+ # aliases with a call-seq that doesn't include the method name.
+ #
+ # @return [Boolean]
+ #
+ # source://rdoc//lib/rdoc/any_method.rb#310
+ def skip_description?; end
+
+ # Sets the store for this method and its referenced code objects.
+ #
+ # source://rdoc//lib/rdoc/any_method.rb#317
+ def store=(store); end
+
+ # For methods that +super+, find the superclass method that would be called.
+ #
+ # source://rdoc//lib/rdoc/any_method.rb#326
+ def superclass_method; end
+
+ protected
+
+ # call_seq without deduplication and alias lookup.
+ #
+ # source://rdoc//lib/rdoc/any_method.rb#345
+ def _call_seq; end
+
+ private
+
+ # call_seq with alias examples information removed, if this
+ # method is an alias method.
+ #
+ # source://rdoc//lib/rdoc/any_method.rb#355
+ def deduplicate_call_seq(call_seq); end
+end
+
+# An attribute created by \#attr, \#attr_reader, \#attr_writer or
+# \#attr_accessor
+#
+# source://rdoc//lib/rdoc/attr.rb#6
+class RDoc::Attr < ::RDoc::MethodAttr
+ # Creates a new Attr with body +text+, +name+, read/write status +rw+ and
+ # +comment+. +singleton+ marks this as a class attribute.
+ #
+ # @return [Attr] a new instance of Attr
+ #
+ # source://rdoc//lib/rdoc/attr.rb#25
+ def initialize(text, name, rw, comment, singleton = T.unsafe(nil)); end
+
+ # Attributes are equal when their names, singleton and rw are identical
+ #
+ # source://rdoc//lib/rdoc/attr.rb#36
+ def ==(other); end
+
+ # Add +an_alias+ as an attribute in +context+.
+ #
+ # source://rdoc//lib/rdoc/attr.rb#46
+ def add_alias(an_alias, context); end
+
+ # The #aref prefix for attributes
+ #
+ # source://rdoc//lib/rdoc/attr.rb#61
+ def aref_prefix; end
+
+ # Attributes never call super. See RDoc::AnyMethod#calls_super
+ #
+ # An RDoc::Attr can show up in the method list in some situations (see
+ # Gem::ConfigFile)
+ #
+ # source://rdoc//lib/rdoc/attr.rb#71
+ def calls_super; end
+
+ # Returns attr_reader, attr_writer or attr_accessor as appropriate.
+ #
+ # source://rdoc//lib/rdoc/attr.rb#78
+ def definition; end
+
+ # source://rdoc//lib/rdoc/attr.rb#86
+ def inspect; end
+
+ # Dumps this Attr for use by ri. See also #marshal_load
+ #
+ # source://rdoc//lib/rdoc/attr.rb#102
+ def marshal_dump; end
+
+ # Loads this Attr from +array+. For a loaded Attr the following
+ # methods will return cached values:
+ #
+ # * #full_name
+ # * #parent_name
+ #
+ # source://rdoc//lib/rdoc/attr.rb#124
+ def marshal_load(array); end
+
+ # source://rdoc//lib/rdoc/attr.rb#151
+ def pretty_print(q); end
+
+ # Is the attribute readable ('R'), writable ('W') or both ('RW')?
+ #
+ # source://rdoc//lib/rdoc/attr.rb#19
+ def rw; end
+
+ # Is the attribute readable ('R'), writable ('W') or both ('RW')?
+ #
+ # source://rdoc//lib/rdoc/attr.rb#19
+ def rw=(_arg0); end
+
+ # source://rdoc//lib/rdoc/attr.rb#162
+ def to_s; end
+
+ # Attributes do not have token streams.
+ #
+ # An RDoc::Attr can show up in the method list in some situations (see
+ # Gem::ConfigFile)
+ #
+ # source://rdoc//lib/rdoc/attr.rb#172
+ def token_stream; end
+end
+
+# ClassModule is the base class for objects representing either a class or a
+# module.
+#
+# source://rdoc//lib/rdoc/class_module.rb#6
+class RDoc::ClassModule < ::RDoc::Context
+ # Creates a new ClassModule with +name+ with optional +superclass+
+ #
+ # This is a constructor for subclasses, and must never be called directly.
+ #
+ # @return [ClassModule] a new instance of ClassModule
+ #
+ # source://rdoc//lib/rdoc/class_module.rb#111
+ def initialize(name, superclass = T.unsafe(nil)); end
+
+ # Adds +comment+ to this ClassModule's list of comments at +location+. This
+ # method is preferred over #comment= since it allows ri data to be updated
+ # across multiple runs.
+ #
+ # source://rdoc//lib/rdoc/class_module.rb#127
+ def add_comment(comment, location); end
+
+ # source://rdoc//lib/rdoc/class_module.rb#148
+ def add_things(my_things, other_things); end
+
+ # Ancestors list for this ClassModule: the list of included modules
+ # (classes will add their superclass if any).
+ #
+ # Returns the included classes or modules, not the includes
+ # themselves. The returned values are either String or
+ # RDoc::NormalModule instances (see RDoc::Include#module).
+ #
+ # The values are returned in reverse order of their inclusion,
+ # which is the order suitable for searching methods/attributes
+ # in the ancestors. The superclass, if any, comes last.
+ #
+ # source://rdoc//lib/rdoc/class_module.rb#171
+ def ancestors; end
+
+ # HTML fragment reference for this module or class. See
+ # RDoc::NormalClass#aref and RDoc::NormalModule#aref
+ #
+ # source://rdoc//lib/rdoc/class_module.rb#183
+ def aref; end
+
+ # @raise [NotImplementedError]
+ #
+ # source://rdoc//lib/rdoc/class_module.rb#175
+ def aref_prefix; end
+
+ # Clears the comment. Used by the Ruby parser.
+ #
+ # source://rdoc//lib/rdoc/class_module.rb#195
+ def clear_comment; end
+
+ # This method is deprecated, use #add_comment instead.
+ #
+ # Appends +comment+ to the current comment, but separated by a rule. Works
+ # more like +=.
+ #
+ # source://rdoc//lib/rdoc/class_module.rb#205
+ def comment=(comment); end
+
+ # Comment and the location it came from. Use #add_comment to add comments
+ #
+ # source://rdoc//lib/rdoc/class_module.rb#35
+ def comment_location; end
+
+ # Comment and the location it came from. Use #add_comment to add comments
+ #
+ # source://rdoc//lib/rdoc/class_module.rb#35
+ def comment_location=(_arg0); end
+
+ # Prepares this ClassModule for use by a generator.
+ #
+ # See RDoc::Store#complete
+ #
+ # source://rdoc//lib/rdoc/class_module.rb#223
+ def complete(min_visibility); end
+
+ # Constants that are aliases for this class or module
+ #
+ # source://rdoc//lib/rdoc/class_module.rb#30
+ def constant_aliases; end
+
+ # Constants that are aliases for this class or module
+ #
+ # source://rdoc//lib/rdoc/class_module.rb#30
+ def constant_aliases=(_arg0); end
+
+ # Handy wrapper for marking up this class or module's comment
+ #
+ # source://rdoc//lib/rdoc/generator/markup.rb#131
+ def description; end
+
+ # source://rdoc//lib/rdoc/class_module.rb#37
+ def diagram; end
+
+ # source://rdoc//lib/rdoc/class_module.rb#37
+ def diagram=(_arg0); end
+
+ # Ancestors list for this ClassModule: the list of included modules
+ # (classes will add their superclass if any).
+ #
+ # Returns the included classes or modules, not the includes
+ # themselves. The returned values are either String or
+ # RDoc::NormalModule instances (see RDoc::Include#module).
+ #
+ # The values are returned in reverse order of their inclusion,
+ # which is the order suitable for searching methods/attributes
+ # in the ancestors. The superclass, if any, comes last.
+ #
+ # Ancestors of this class or module only
+ #
+ # source://rdoc//lib/rdoc/class_module.rb#171
+ def direct_ancestors; end
+
+ # Does this ClassModule or any of its methods have document_self set?
+ #
+ # source://rdoc//lib/rdoc/class_module.rb#233
+ def document_self_or_methods; end
+
+ # Does this class or module have a comment with content or is
+ # #received_nodoc true?
+ #
+ # @return [Boolean]
+ #
+ # source://rdoc//lib/rdoc/class_module.rb#241
+ def documented?; end
+
+ # Iterates the ancestors of this class or module for which an
+ # RDoc::ClassModule exists.
+ #
+ # source://rdoc//lib/rdoc/class_module.rb#251
+ def each_ancestor; end
+
+ # Looks for a symbol in the #ancestors. See Context#find_local_symbol.
+ #
+ # source://rdoc//lib/rdoc/class_module.rb#264
+ def find_ancestor_local_symbol(symbol); end
+
+ # Finds a class or module with +name+ in this namespace or its descendants
+ #
+ # source://rdoc//lib/rdoc/class_module.rb#276
+ def find_class_named(name); end
+
+ # Return the fully qualified name of this class or module
+ #
+ # source://rdoc//lib/rdoc/class_module.rb#289
+ def full_name; end
+
+ # Class or module this constant is an alias for
+ #
+ # source://rdoc//lib/rdoc/class_module.rb#42
+ def is_alias_for; end
+
+ # Class or module this constant is an alias for
+ #
+ # source://rdoc//lib/rdoc/class_module.rb#42
+ def is_alias_for=(_arg0); end
+
+ # TODO: filter included items by #display?
+ #
+ # source://rdoc//lib/rdoc/class_module.rb#300
+ def marshal_dump; end
+
+ # source://rdoc//lib/rdoc/class_module.rb#346
+ def marshal_load(array); end
+
+ # Merges +class_module+ into this ClassModule.
+ #
+ # The data in +class_module+ is preferred over the receiver.
+ #
+ # source://rdoc//lib/rdoc/class_module.rb#435
+ def merge(class_module); end
+
+ # Merges collection +mine+ with +other+ preferring other. +other_files+ is
+ # used to help determine which items should be deleted.
+ #
+ # Yields whether the item should be added or removed (true or false) and the
+ # item to be added or removed.
+ #
+ # merge_collections things, other.things, other.in_files do |add, thing|
+ # if add then
+ # # add the thing
+ # else
+ # # remove the thing
+ # end
+ # end
+ #
+ # source://rdoc//lib/rdoc/class_module.rb#519
+ def merge_collections(mine, other, other_files, &block); end
+
+ # Merges the comments in this ClassModule with the comments in the other
+ # ClassModule +cm+.
+ #
+ # source://rdoc//lib/rdoc/class_module.rb#531
+ def merge_sections(cm); end
+
+ # Does this object represent a module?
+ #
+ # @return [Boolean]
+ #
+ # source://rdoc//lib/rdoc/class_module.rb#570
+ def module?; end
+
+ # Allows overriding the initial name.
+ #
+ # Used for modules and classes that are constant aliases.
+ #
+ # source://rdoc//lib/rdoc/class_module.rb#579
+ def name=(new_name); end
+
+ # Name to use to generate the url:
+ # modules and classes that are aliases for another
+ # module or class return the name of the latter.
+ #
+ # source://rdoc//lib/rdoc/class_module.rb#622
+ def name_for_path; end
+
+ # Returns the classes and modules that are not constants
+ # aliasing another class or module. For use by formatters
+ # only (caches its result).
+ #
+ # source://rdoc//lib/rdoc/class_module.rb#631
+ def non_aliases; end
+
+ # Parses +comment_location+ into an RDoc::Markup::Document composed of
+ # multiple RDoc::Markup::Documents with their file set.
+ #
+ # source://rdoc//lib/rdoc/class_module.rb#587
+ def parse(comment_location); end
+
+ # Path to this class or module for use with HTML generator output.
+ #
+ # source://rdoc//lib/rdoc/class_module.rb#613
+ def path; end
+
+ # Updates the child modules or classes of class/module +parent+ by
+ # deleting the ones that have been removed from the documentation.
+ #
+ # +parent_hash+ is either parent.modules_hash or
+ # parent.classes_hash and +all_hash+ is ::all_modules_hash or
+ # ::all_classes_hash.
+ #
+ # source://rdoc//lib/rdoc/class_module.rb#643
+ def remove_nodoc_children; end
+
+ # source://rdoc//lib/rdoc/class_module.rb#657
+ def remove_things(my_things, other_files); end
+
+ # Search record used by RDoc::Generator::JsonIndex
+ #
+ # source://rdoc//lib/rdoc/class_module.rb#672
+ def search_record; end
+
+ # Sets the store for this class or module and its contained code objects.
+ #
+ # source://rdoc//lib/rdoc/class_module.rb#687
+ def store=(store); end
+
+ # Get the superclass of this class. Attempts to retrieve the superclass
+ # object, returns the name if it is not known.
+ #
+ # source://rdoc//lib/rdoc/class_module.rb#701
+ def superclass; end
+
+ # Set the superclass of this class to +superclass+
+ #
+ # @raise [NoMethodError]
+ #
+ # source://rdoc//lib/rdoc/class_module.rb#708
+ def superclass=(superclass); end
+
+ # source://rdoc//lib/rdoc/class_module.rb#713
+ def to_s; end
+
+ # 'module' or 'class'
+ #
+ # source://rdoc//lib/rdoc/class_module.rb#724
+ def type; end
+
+ # Updates the child modules & classes by replacing the ones that are
+ # aliases through a constant.
+ #
+ # The aliased module/class is replaced in the children and in
+ # RDoc::Store#modules_hash or RDoc::Store#classes_hash
+ # by a copy that has RDoc::ClassModule#is_alias_for set to
+ # the aliased module/class, and this copy is added to #aliases
+ # of the aliased module/class.
+ #
+ # Formatters can use the #non_aliases method to retrieve children that
+ # are not aliases, for instance to list the namespace content, since
+ # the aliased modules are included in the constants of the class/module,
+ # that are listed separately.
+ #
+ # source://rdoc//lib/rdoc/class_module.rb#743
+ def update_aliases; end
+
+ # Deletes from #extends those whose module has been removed from the
+ # documentation.
+ # --
+ # FIXME: like update_includes, extends are not reliably removed
+ #
+ # source://rdoc//lib/rdoc/class_module.rb#791
+ def update_extends; end
+
+ # Deletes from #includes those whose module has been removed from the
+ # documentation.
+ # --
+ # FIXME: includes are not reliably removed, see _possible_bug test case
+ #
+ # source://rdoc//lib/rdoc/class_module.rb#776
+ def update_includes; end
+
+ class << self
+ # Return a RDoc::ClassModule of class +class_type+ that is a copy
+ # of module +module+. Used to promote modules to classes.
+ # --
+ # TODO move to RDoc::NormalClass (I think)
+ #
+ # source://rdoc//lib/rdoc/class_module.rb#50
+ def from_module(class_type, mod); end
+ end
+end
+
+# Base class for the RDoc code tree.
+#
+# We contain the common stuff for contexts (which are containers) and other
+# elements (methods, attributes and so on)
+#
+# Here's the tree of the CodeObject subclasses:
+#
+# * RDoc::Context
+# * RDoc::TopLevel
+# * RDoc::ClassModule
+# * RDoc::AnonClass (never used so far)
+# * RDoc::NormalClass
+# * RDoc::NormalModule
+# * RDoc::SingleClass
+# * RDoc::MethodAttr
+# * RDoc::Attr
+# * RDoc::AnyMethod
+# * RDoc::GhostMethod
+# * RDoc::MetaMethod
+# * RDoc::Alias
+# * RDoc::Constant
+# * RDoc::Mixin
+# * RDoc::Require
+# * RDoc::Include
+#
+# source://rdoc//lib/rdoc/code_object.rb#28
+class RDoc::CodeObject
+ include ::RDoc::Text
+ include ::RDoc::Generator::Markup
+
+ # Creates a new CodeObject that will document itself and its children
+ #
+ # @return [CodeObject] a new instance of CodeObject
+ #
+ # source://rdoc//lib/rdoc/code_object.rb#102
+ def initialize; end
+
+ # Our comment
+ #
+ # source://rdoc//lib/rdoc/code_object.rb#35
+ def comment; end
+
+ # Replaces our comment with +comment+, unless it is empty.
+ #
+ # source://rdoc//lib/rdoc/code_object.rb#135
+ def comment=(comment); end
+
+ # Should this CodeObject be displayed in output?
+ #
+ # A code object should be displayed if:
+ #
+ # * The item didn't have a nodoc or wasn't in a container that had nodoc
+ # * The item wasn't ignored
+ # * The item has documentation and was not suppressed
+ #
+ # @return [Boolean]
+ #
+ # source://rdoc//lib/rdoc/code_object.rb#163
+ def display?; end
+
+ # Do we document our children?
+ #
+ # source://rdoc//lib/rdoc/code_object.rb#40
+ def document_children; end
+
+ # Enables or disables documentation of this CodeObject's children unless it
+ # has been turned off by :enddoc:
+ #
+ # source://rdoc//lib/rdoc/code_object.rb#172
+ def document_children=(document_children); end
+
+ # Do we document ourselves?
+ #
+ # source://rdoc//lib/rdoc/code_object.rb#45
+ def document_self; end
+
+ # Enables or disables documentation of this CodeObject unless it has been
+ # turned off by :enddoc:. If the argument is +nil+ it means the
+ #
+ # source://rdoc//lib/rdoc/code_object.rb#183
+ def document_self=(document_self); end
+
+ # Does this object have a comment with content or is #received_nodoc true?
+ #
+ # @return [Boolean]
+ #
+ # source://rdoc//lib/rdoc/code_object.rb#194
+ def documented?; end
+
+ # Are we done documenting (ie, did we come across a :enddoc:)?
+ #
+ # source://rdoc//lib/rdoc/code_object.rb#50
+ def done_documenting; end
+
+ # Turns documentation on/off, and turns on/off #document_self
+ # and #document_children.
+ #
+ # Once documentation has been turned off (by +:enddoc:+),
+ # the object will refuse to turn #document_self or
+ # will have no effect in the current file.
+ #
+ # source://rdoc//lib/rdoc/code_object.rb#207
+ def done_documenting=(value); end
+
+ # Yields each parent of this CodeObject. See also
+ # RDoc::ClassModule#each_ancestor
+ #
+ # source://rdoc//lib/rdoc/code_object.rb#218
+ def each_parent; end
+
+ # Which file this code object was defined in
+ #
+ # source://rdoc//lib/rdoc/code_object.rb#55
+ def file; end
+
+ # File name where this CodeObject was found.
+ #
+ # See also RDoc::Context#in_files
+ #
+ # source://rdoc//lib/rdoc/code_object.rb#233
+ def file_name; end
+
+ # Force documentation of this CodeObject
+ #
+ # source://rdoc//lib/rdoc/code_object.rb#60
+ def force_documentation; end
+
+ # Force the documentation of this object unless documentation
+ # has been turned off by :enddoc:
+ # --
+ # HACK untested, was assigning to an ivar
+ #
+ # source://rdoc//lib/rdoc/code_object.rb#245
+ def force_documentation=(value); end
+
+ # Sets the full_name overriding any computed full name.
+ #
+ # Set to +nil+ to clear RDoc's cached value
+ #
+ # source://rdoc//lib/rdoc/code_object.rb#254
+ def full_name=(full_name); end
+
+ # Use this to ignore a CodeObject and all its children until found again
+ # (#record_location is called). An ignored item will not be displayed in
+ # documentation.
+ #
+ # See github issue #55
+ #
+ # The ignored status is temporary in order to allow implementation details
+ # to be hidden. At the end of processing a file RDoc allows all classes
+ # and modules to add new documentation to previously created classes.
+ #
+ # If a class was ignored (via stopdoc) then reopened later with additional
+ # documentation it should be displayed. If a class was ignored and never
+ # reopened it should not be displayed. The ignore flag allows this to
+ # occur.
+ #
+ # source://rdoc//lib/rdoc/code_object.rb#274
+ def ignore; end
+
+ # Has this class been ignored?
+ #
+ # See also #ignore
+ #
+ # @return [Boolean]
+ #
+ # source://rdoc//lib/rdoc/code_object.rb#287
+ def ignored?; end
+
+ # Initializes state for visibility of this CodeObject and its children.
+ #
+ # source://rdoc//lib/rdoc/code_object.rb#121
+ def initialize_visibility; end
+
+ # Line in #file where this CodeObject was defined
+ #
+ # source://rdoc//lib/rdoc/code_object.rb#65
+ def line; end
+
+ # Line in #file where this CodeObject was defined
+ #
+ # source://rdoc//lib/rdoc/code_object.rb#65
+ def line=(_arg0); end
+
+ # Hash of arbitrary metadata for this CodeObject
+ #
+ # source://rdoc//lib/rdoc/code_object.rb#70
+ def metadata; end
+
+ # The options instance from the store this CodeObject is attached to, or a
+ # default options instance if the CodeObject is not attached.
+ #
+ # This is used by Text#snippet
+ #
+ # source://rdoc//lib/rdoc/code_object.rb#297
+ def options; end
+
+ # Our parent CodeObject. The parent may be missing for classes loaded from
+ # legacy RI data stores.
+ #
+ # source://rdoc//lib/rdoc/code_object.rb#309
+ def parent; end
+
+ # Sets the parent CodeObject
+ #
+ # source://rdoc//lib/rdoc/code_object.rb#75
+ def parent=(_arg0); end
+
+ # File name of our parent
+ #
+ # source://rdoc//lib/rdoc/code_object.rb#331
+ def parent_file_name; end
+
+ # Name of our parent
+ #
+ # source://rdoc//lib/rdoc/code_object.rb#338
+ def parent_name; end
+
+ # source://rdoc//lib/rdoc/code_object.rb#80
+ def received_nodoc; end
+
+ # Records the RDoc::TopLevel (file) where this code object was defined
+ #
+ # source://rdoc//lib/rdoc/code_object.rb#345
+ def record_location(top_level); end
+
+ # The section this CodeObject is in. Sections allow grouping of constants,
+ # attributes and methods inside a class or module.
+ #
+ # source://rdoc//lib/rdoc/code_object.rb#355
+ def section; end
+
+ # Set the section this CodeObject is in
+ #
+ # source://rdoc//lib/rdoc/code_object.rb#85
+ def section=(_arg0); end
+
+ # Enable capture of documentation unless documentation has been
+ # turned off by :enddoc:
+ #
+ # source://rdoc//lib/rdoc/code_object.rb#365
+ def start_doc; end
+
+ # Disable capture of documentation
+ #
+ # source://rdoc//lib/rdoc/code_object.rb#377
+ def stop_doc; end
+
+ # The RDoc::Store for this object.
+ #
+ # source://rdoc//lib/rdoc/code_object.rb#90
+ def store; end
+
+ # Sets the +store+ that contains this CodeObject
+ #
+ # source://rdoc//lib/rdoc/code_object.rb#387
+ def store=(store); end
+
+ # Use this to suppress a CodeObject and all its children until the next file
+ # it is seen in or documentation is discovered. A suppressed item with
+ # documentation will be displayed while an ignored item with documentation
+ # may not be displayed.
+ #
+ # source://rdoc//lib/rdoc/code_object.rb#404
+ def suppress; end
+
+ # Has this class been suppressed?
+ #
+ # See also #suppress
+ #
+ # @return [Boolean]
+ #
+ # source://rdoc//lib/rdoc/code_object.rb#417
+ def suppressed?; end
+
+ # We are the model of the code, but we know that at some point we will be
+ # worked on by viewers. By implementing the Viewable protocol, viewers can
+ # associated themselves with these objects.
+ #
+ # source://rdoc//lib/rdoc/code_object.rb#97
+ def viewer; end
+
+ # We are the model of the code, but we know that at some point we will be
+ # worked on by viewers. By implementing the Viewable protocol, viewers can
+ # associated themselves with these objects.
+ #
+ # source://rdoc//lib/rdoc/code_object.rb#97
+ def viewer=(_arg0); end
+end
+
+# source://rdoc//lib/rdoc/comment.rb#12
+class RDoc::Comment
+ include ::RDoc::Text
+
+ # Creates a new comment with +text+ that is found in the RDoc::TopLevel
+ # +location+.
+ #
+ # @return [Comment] a new instance of Comment
+ #
+ # source://rdoc//lib/rdoc/comment.rb#56
+ def initialize(text = T.unsafe(nil), location = T.unsafe(nil), language = T.unsafe(nil)); end
+
+ # source://rdoc//lib/rdoc/comment.rb#74
+ def ==(other); end
+
+ # Overrides the content returned by #parse. Use when there is no #text
+ # source for this comment
+ #
+ # source://rdoc//lib/rdoc/comment.rb#50
+ def document=(_arg0); end
+
+ # A comment is empty if its text String is empty.
+ #
+ # @return [Boolean]
+ #
+ # source://rdoc//lib/rdoc/comment.rb#128
+ def empty?; end
+
+ # HACK dubious
+ #
+ # source://rdoc//lib/rdoc/comment.rb#135
+ def encode!(encoding); end
+
+ # Look for a 'call-seq' in the comment to override the normal parameter
+ # handling. The :call-seq: is indented from the baseline. All lines of the
+ # same indentation level and prefix are consumed.
+ #
+ # For example, all of the following will be used as the :call-seq:
+ #
+ # # :call-seq:
+ # # ARGF.readlines(sep=$/) -> array
+ # # ARGF.readlines(limit) -> array
+ # # ARGF.readlines(sep, limit) -> array
+ # #
+ # # ARGF.to_a(sep=$/) -> array
+ # # ARGF.to_a(limit) -> array
+ # # ARGF.to_a(sep, limit) -> array
+ #
+ # source://rdoc//lib/rdoc/comment.rb#95
+ def extract_call_seq(method); end
+
+ # The RDoc::TopLevel this comment was found in
+ #
+ # For duck-typing when merging classes at load time
+ #
+ # source://rdoc//lib/rdoc/comment.rb#24
+ def file; end
+
+ # The format of this comment. Defaults to RDoc::Markup
+ #
+ # source://rdoc//lib/rdoc/comment.rb#19
+ def format; end
+
+ # Sets the format of this comment and resets any parsed document
+ #
+ # source://rdoc//lib/rdoc/comment.rb#143
+ def format=(format); end
+
+ # source://rdoc//lib/rdoc/comment.rb#148
+ def inspect; end
+
+ # Line where this Comment was written
+ #
+ # source://rdoc//lib/rdoc/comment.rb#29
+ def line; end
+
+ # Line where this Comment was written
+ #
+ # source://rdoc//lib/rdoc/comment.rb#29
+ def line=(_arg0); end
+
+ # The RDoc::TopLevel this comment was found in
+ #
+ # source://rdoc//lib/rdoc/comment.rb#24
+ def location; end
+
+ # The RDoc::TopLevel this comment was found in
+ #
+ # source://rdoc//lib/rdoc/comment.rb#24
+ def location=(_arg0); end
+
+ # Normalizes the text. See RDoc::Text#normalize_comment for details
+ #
+ # source://rdoc//lib/rdoc/comment.rb#157
+ def normalize; end
+
+ # Was this text normalized?
+ #
+ # @return [Boolean]
+ #
+ # source://rdoc//lib/rdoc/comment.rb#171
+ def normalized?; end
+
+ # Parses the comment into an RDoc::Markup::Document. The parsed document is
+ # cached until the text is changed.
+ #
+ # source://rdoc//lib/rdoc/comment.rb#179
+ def parse; end
+
+ # Removes private sections from this comment. Private sections are flush to
+ # the comment marker and start with -- and end with ++.
+ # For C-style comments, a private marker may not start at the opening of the
+ # comment.
+ #
+ # /*
+ # *--
+ # * private
+ # *++
+ # * public
+ # */
+ #
+ # source://rdoc//lib/rdoc/comment.rb#200
+ def remove_private; end
+
+ # The text for this comment
+ #
+ # source://rdoc//lib/rdoc/comment.rb#39
+ def text; end
+
+ # Replaces this comment's text with +text+ and resets the parsed document.
+ #
+ # An error is raised if the comment contains a document but no text.
+ #
+ # @raise [RDoc::Error]
+ #
+ # source://rdoc//lib/rdoc/comment.rb#214
+ def text=(text); end
+
+ # The text for this comment
+ #
+ # Alias for text
+ #
+ # source://rdoc//lib/rdoc/comment.rb#39
+ def to_s; end
+
+ # Returns true if this comment is in TomDoc format.
+ #
+ # @return [Boolean]
+ #
+ # source://rdoc//lib/rdoc/comment.rb#225
+ def tomdoc?; end
+
+ private
+
+ # --
+ # TODO deep copy @document
+ #
+ # source://rdoc//lib/rdoc/comment.rb#70
+ def initialize_copy(copy); end
+end
+
+# A constant
+#
+# source://rdoc//lib/rdoc/constant.rb#5
+class RDoc::Constant < ::RDoc::CodeObject
+ # Creates a new constant with +name+, +value+ and +comment+
+ #
+ # @return [Constant] a new instance of Constant
+ #
+ # source://rdoc//lib/rdoc/constant.rb#32
+ def initialize(name, value, comment); end
+
+ # Constants are ordered by name
+ #
+ # source://rdoc//lib/rdoc/constant.rb#47
+ def <=>(other); end
+
+ # Constants are equal when their #parent and #name is the same
+ #
+ # source://rdoc//lib/rdoc/constant.rb#56
+ def ==(other); end
+
+ # A constant is documented if it has a comment, or is an alias
+ # for a documented class or module.
+ #
+ # @return [Boolean]
+ #
+ # source://rdoc//lib/rdoc/constant.rb#66
+ def documented?; end
+
+ # Full constant name including namespace
+ #
+ # source://rdoc//lib/rdoc/constant.rb#81
+ def full_name; end
+
+ # source://rdoc//lib/rdoc/constant.rb#99
+ def inspect; end
+
+ # The module or class this constant is an alias for
+ #
+ # source://rdoc//lib/rdoc/constant.rb#88
+ def is_alias_for; end
+
+ # Sets the module or class this is constant is an alias for.
+ #
+ # source://rdoc//lib/rdoc/constant.rb#12
+ def is_alias_for=(_arg0); end
+
+ # Dumps this Constant for use by ri. See also #marshal_load
+ #
+ # source://rdoc//lib/rdoc/constant.rb#109
+ def marshal_dump; end
+
+ # Loads this Constant from +array+. For a loaded Constant the following
+ # methods will return cached values:
+ #
+ # * #full_name
+ # * #parent_name
+ #
+ # source://rdoc//lib/rdoc/constant.rb#135
+ def marshal_load(array); end
+
+ # The constant's name
+ #
+ # source://rdoc//lib/rdoc/constant.rb#17
+ def name; end
+
+ # The constant's name
+ #
+ # source://rdoc//lib/rdoc/constant.rb#17
+ def name=(_arg0); end
+
+ # Path to this constant for use with HTML generator output.
+ #
+ # source://rdoc//lib/rdoc/constant.rb#153
+ def path; end
+
+ # source://rdoc//lib/rdoc/constant.rb#157
+ def pretty_print(q); end
+
+ # Sets the store for this class or module and its contained code objects.
+ #
+ # source://rdoc//lib/rdoc/constant.rb#171
+ def store=(store); end
+
+ # source://rdoc//lib/rdoc/constant.rb#177
+ def to_s; end
+
+ # The constant's value
+ #
+ # source://rdoc//lib/rdoc/constant.rb#22
+ def value; end
+
+ # The constant's value
+ #
+ # source://rdoc//lib/rdoc/constant.rb#22
+ def value=(_arg0); end
+
+ # The constant's visibility
+ #
+ # source://rdoc//lib/rdoc/constant.rb#27
+ def visibility; end
+
+ # The constant's visibility
+ #
+ # source://rdoc//lib/rdoc/constant.rb#27
+ def visibility=(_arg0); end
+end
+
+# A Context is something that can hold modules, classes, methods, attributes,
+# aliases, requires, and includes. Classes, modules, and files are all
+# Contexts.
+#
+# source://rdoc//lib/rdoc/context.rb#7
+class RDoc::Context < ::RDoc::CodeObject
+ include ::Comparable
+
+ # Creates an unnamed empty context with public current visibility
+ #
+ # @return [Context] a new instance of Context
+ #
+ # source://rdoc//lib/rdoc/context.rb#123
+ def initialize; end
+
+ # Contexts are sorted by full_name
+ #
+ # source://rdoc//lib/rdoc/context.rb#171
+ def <=>(other); end
+
+ # Adds an item of type +klass+ with the given +name+ and +comment+ to the
+ # context.
+ #
+ # Currently only RDoc::Extend and RDoc::Include are supported.
+ #
+ # source://rdoc//lib/rdoc/context.rb#183
+ def add(klass, name, comment); end
+
+ # Adds +an_alias+ that is automatically resolved
+ #
+ # source://rdoc//lib/rdoc/context.rb#198
+ def add_alias(an_alias); end
+
+ # Adds +attribute+ if not already there. If it is (as method(s) or attribute),
+ # updates the comment if it was empty.
+ #
+ # The attribute is registered only if it defines a new method.
+ # For instance, attr_reader :foo will not be registered
+ # if method +foo+ exists, but attr_accessor :foo will be registered
+ # if method +foo+ exists, but foo= does not.
+ #
+ # source://rdoc//lib/rdoc/context.rb#225
+ def add_attribute(attribute); end
+
+ # Adds a class named +given_name+ with +superclass+.
+ #
+ # Both +given_name+ and +superclass+ may contain '::', and are
+ # interpreted relative to the +self+ context. This allows handling correctly
+ # examples like these:
+ # class RDoc::Gauntlet < Gauntlet
+ # module Mod
+ # class Object # implies < ::Object
+ # class SubObject < Object # this is _not_ ::Object
+ #
+ # Given class Container::Item RDoc assumes +Container+ is a module
+ # unless it later sees class Container. +add_class+ automatically
+ # upgrades +given_name+ to a class in this case.
+ #
+ # source://rdoc//lib/rdoc/context.rb#288
+ def add_class(class_type, given_name, superclass = T.unsafe(nil)); end
+
+ # Adds the class or module +mod+ to the modules or
+ # classes Hash +self_hash+, and to +all_hash+ (either
+ # TopLevel::modules_hash or TopLevel::classes_hash),
+ # unless #done_documenting is +true+. Sets the #parent of +mod+
+ # to +self+, and its #section to #current_section. Returns +mod+.
+ #
+ # source://rdoc//lib/rdoc/context.rb#404
+ def add_class_or_module(mod, self_hash, all_hash); end
+
+ # Adds +constant+ if not already there. If it is, updates the comment,
+ # value and/or is_alias_for of the known constant if they were empty/nil.
+ #
+ # source://rdoc//lib/rdoc/context.rb#429
+ def add_constant(constant); end
+
+ # Adds extension module +ext+ which should be an RDoc::Extend
+ #
+ # source://rdoc//lib/rdoc/context.rb#463
+ def add_extend(ext); end
+
+ # Adds included module +include+ which should be an RDoc::Include
+ #
+ # source://rdoc//lib/rdoc/context.rb#454
+ def add_include(include); end
+
+ # Adds +method+ if not already there. If it is (as method or attribute),
+ # updates the comment if it was empty.
+ #
+ # source://rdoc//lib/rdoc/context.rb#473
+ def add_method(method); end
+
+ # Adds a module named +name+. If RDoc already knows +name+ is a class then
+ # that class is returned instead. See also #add_class.
+ #
+ # source://rdoc//lib/rdoc/context.rb#506
+ def add_module(class_type, name); end
+
+ # Adds an alias from +from+ (a class or module) to +name+ which was defined
+ # in +file+.
+ #
+ # source://rdoc//lib/rdoc/context.rb#527
+ def add_module_alias(from, from_name, to, file); end
+
+ # Adds a module by +RDoc::NormalModule+ instance. See also #add_module.
+ #
+ # source://rdoc//lib/rdoc/context.rb#519
+ def add_module_by_normal_module(mod); end
+
+ # Adds +require+ to this context's top level
+ #
+ # source://rdoc//lib/rdoc/context.rb#568
+ def add_require(require); end
+
+ # Returns a section with +title+, creating it if it doesn't already exist.
+ # +comment+ will be appended to the section's comment.
+ #
+ # A section with a +title+ of +nil+ will return the default section.
+ #
+ # See also RDoc::Context::Section
+ #
+ # source://rdoc//lib/rdoc/context.rb#586
+ def add_section(title, comment = T.unsafe(nil)); end
+
+ # Adds +thing+ to the collection +array+
+ #
+ # source://rdoc//lib/rdoc/context.rb#600
+ def add_to(array, thing); end
+
+ # Class/module aliases
+ #
+ # source://rdoc//lib/rdoc/context.rb#25
+ def aliases; end
+
+ # Is there any content?
+ #
+ # This means any of: comment, aliases, methods, attributes, external
+ # aliases, require, constant.
+ #
+ # Includes and extends are also checked unless includes == false.
+ #
+ # source://rdoc//lib/rdoc/context.rb#616
+ def any_content(includes = T.unsafe(nil)); end
+
+ # All attr* methods
+ #
+ # source://rdoc//lib/rdoc/context.rb#30
+ def attributes; end
+
+ # Block params to be used in the next MethodAttr parsed under this context
+ #
+ # source://rdoc//lib/rdoc/context.rb#35
+ def block_params; end
+
+ # Block params to be used in the next MethodAttr parsed under this context
+ #
+ # source://rdoc//lib/rdoc/context.rb#35
+ def block_params=(_arg0); end
+
+ # Creates the full name for a child with +name+
+ #
+ # source://rdoc//lib/rdoc/context.rb#632
+ def child_name(name); end
+
+ # Class attributes
+ #
+ # source://rdoc//lib/rdoc/context.rb#645
+ def class_attributes; end
+
+ # Class methods
+ #
+ # source://rdoc//lib/rdoc/context.rb#652
+ def class_method_list; end
+
+ # Array of classes in this context
+ #
+ # source://rdoc//lib/rdoc/context.rb#659
+ def classes; end
+
+ # All classes and modules in this namespace
+ #
+ # source://rdoc//lib/rdoc/context.rb#666
+ def classes_and_modules; end
+
+ # Hash of classes keyed by class name
+ #
+ # source://rdoc//lib/rdoc/context.rb#673
+ def classes_hash; end
+
+ # Constants defined
+ #
+ # source://rdoc//lib/rdoc/context.rb#40
+ def constants; end
+
+ # Hash of registered constants.
+ #
+ # source://rdoc//lib/rdoc/context.rb#118
+ def constants_hash; end
+
+ # Current visibility of this line
+ #
+ # source://rdoc//lib/rdoc/context.rb#102
+ def current_line_visibility=(_arg0); end
+
+ # The current documentation section that new items will be added to. If
+ # temporary_section is available it will be used.
+ #
+ # source://rdoc//lib/rdoc/context.rb#681
+ def current_section; end
+
+ # Sets the current documentation section of documentation
+ #
+ # source://rdoc//lib/rdoc/context.rb#45
+ def current_section=(_arg0); end
+
+ # Is part of this thing was defined in +file+?
+ #
+ # @return [Boolean]
+ #
+ # source://rdoc//lib/rdoc/context.rb#694
+ def defined_in?(file); end
+
+ # source://rdoc//lib/rdoc/context.rb#698
+ def display(method_attr); end
+
+ # Iterator for ancestors for duck-typing. Does nothing. See
+ # RDoc::ClassModule#each_ancestor.
+ #
+ # This method exists to make it easy to work with Context subclasses that
+ # aren't part of RDoc.
+ #
+ # source://rdoc//lib/rdoc/context.rb#713
+ def each_ancestor; end
+
+ # Iterator for attributes
+ #
+ # source://rdoc//lib/rdoc/context.rb#719
+ def each_attribute; end
+
+ # Iterator for classes and modules
+ #
+ # source://rdoc//lib/rdoc/context.rb#726
+ def each_classmodule(&block); end
+
+ # Iterator for constants
+ #
+ # source://rdoc//lib/rdoc/context.rb#733
+ def each_constant; end
+
+ # Iterator for extension modules
+ #
+ # source://rdoc//lib/rdoc/context.rb#747
+ def each_extend; end
+
+ # Iterator for included modules
+ #
+ # source://rdoc//lib/rdoc/context.rb#740
+ def each_include; end
+
+ # Iterator for methods
+ #
+ # source://rdoc//lib/rdoc/context.rb#754
+ def each_method; end
+
+ # Iterator for each section's contents sorted by title. The +section+, the
+ # section's +constants+ and the sections +attributes+ are yielded. The
+ # +constants+ and +attributes+ collections are sorted.
+ #
+ # To retrieve methods in a section use #methods_by_type with the optional
+ # +section+ parameter.
+ #
+ # NOTE: Do not edit collections yielded by this method
+ #
+ # source://rdoc//lib/rdoc/context.rb#770
+ def each_section; end
+
+ # Modules this context is extended with
+ #
+ # source://rdoc//lib/rdoc/context.rb#60
+ def extends; end
+
+ # Aliases that could not be resolved.
+ #
+ # source://rdoc//lib/rdoc/context.rb#92
+ def external_aliases; end
+
+ # Finds an attribute +name+ with singleton value +singleton+.
+ #
+ # source://rdoc//lib/rdoc/context.rb#787
+ def find_attribute(name, singleton); end
+
+ # Finds an attribute with +name+ in this context
+ #
+ # source://rdoc//lib/rdoc/context.rb#795
+ def find_attribute_named(name); end
+
+ # Finds a class method with +name+ in this context
+ #
+ # source://rdoc//lib/rdoc/context.rb#809
+ def find_class_method_named(name); end
+
+ # Finds a constant with +name+ in this context
+ #
+ # source://rdoc//lib/rdoc/context.rb#816
+ def find_constant_named(name); end
+
+ # Find a module at a higher scope
+ #
+ # source://rdoc//lib/rdoc/context.rb#825
+ def find_enclosing_module_named(name); end
+
+ # Finds an external alias +name+ with singleton value +singleton+.
+ #
+ # source://rdoc//lib/rdoc/context.rb#832
+ def find_external_alias(name, singleton); end
+
+ # Finds an external alias with +name+ in this context
+ #
+ # source://rdoc//lib/rdoc/context.rb#839
+ def find_external_alias_named(name); end
+
+ # Finds a file with +name+ in this context
+ #
+ # source://rdoc//lib/rdoc/context.rb#853
+ def find_file_named(name); end
+
+ # Finds an instance method with +name+ in this context
+ #
+ # source://rdoc//lib/rdoc/context.rb#860
+ def find_instance_method_named(name); end
+
+ # Finds a method, constant, attribute, external alias, module or file
+ # named +symbol+ in this context.
+ #
+ # source://rdoc//lib/rdoc/context.rb#868
+ def find_local_symbol(symbol); end
+
+ # Finds a method named +name+ with singleton value +singleton+.
+ #
+ # source://rdoc//lib/rdoc/context.rb#880
+ def find_method(name, singleton); end
+
+ # Finds a instance or module method with +name+ in this context
+ #
+ # source://rdoc//lib/rdoc/context.rb#893
+ def find_method_named(name); end
+
+ # Find a module with +name+ using ruby's scoping rules
+ #
+ # source://rdoc//lib/rdoc/context.rb#907
+ def find_module_named(name); end
+
+ # Look up +symbol+, first as a module, then as a local symbol.
+ #
+ # source://rdoc//lib/rdoc/context.rb#917
+ def find_symbol(symbol); end
+
+ # Look up a module named +symbol+.
+ #
+ # source://rdoc//lib/rdoc/context.rb#924
+ def find_symbol_module(symbol); end
+
+ # The full name for this context. This method is overridden by subclasses.
+ #
+ # source://rdoc//lib/rdoc/context.rb#957
+ def full_name; end
+
+ # Does this context and its methods and constants all have documentation?
+ #
+ # (Yes, fully documented doesn't mean everything.)
+ #
+ # @return [Boolean]
+ #
+ # source://rdoc//lib/rdoc/context.rb#966
+ def fully_documented?; end
+
+ # URL for this with a +prefix+
+ #
+ # source://rdoc//lib/rdoc/context.rb#976
+ def http_url(prefix); end
+
+ # Files this context is found in
+ #
+ # source://rdoc//lib/rdoc/context.rb#50
+ def in_files; end
+
+ # Modules this context includes
+ #
+ # source://rdoc//lib/rdoc/context.rb#55
+ def includes; end
+
+ # Sets the defaults for methods and so-forth
+ #
+ # source://rdoc//lib/rdoc/context.rb#145
+ def initialize_methods_etc; end
+
+ # Instance attributes
+ #
+ # source://rdoc//lib/rdoc/context.rb#987
+ def instance_attributes; end
+
+ # Instance methods
+ # --
+ # TODO remove this later
+ #
+ # source://rdoc//lib/rdoc/context.rb#1003
+ def instance_method_list; end
+
+ # Instance methods
+ #
+ # source://rdoc//lib/rdoc/context.rb#994
+ def instance_methods; end
+
+ # Methods defined in this context
+ #
+ # source://rdoc//lib/rdoc/context.rb#65
+ def method_list; end
+
+ # Breaks method_list into a nested hash by type ('class' or
+ # 'instance') and visibility (+:public+, +:protected+, +:private+).
+ #
+ # If +section+ is provided only methods in that RDoc::Context::Section will
+ # be returned.
+ #
+ # source://rdoc//lib/rdoc/context.rb#1015
+ def methods_by_type(section = T.unsafe(nil)); end
+
+ # Hash of registered methods. Attributes are also registered here,
+ # twice if they are RW.
+ #
+ # source://rdoc//lib/rdoc/context.rb#108
+ def methods_hash; end
+
+ # Yields AnyMethod and Attr entries matching the list of names in +methods+.
+ #
+ # source://rdoc//lib/rdoc/context.rb#1038
+ def methods_matching(methods, singleton = T.unsafe(nil), &block); end
+
+ # Array of modules in this context
+ #
+ # source://rdoc//lib/rdoc/context.rb#1051
+ def modules; end
+
+ # Hash of modules keyed by module name
+ #
+ # source://rdoc//lib/rdoc/context.rb#1058
+ def modules_hash; end
+
+ # Name of this class excluding namespace. See also full_name
+ #
+ # source://rdoc//lib/rdoc/context.rb#70
+ def name; end
+
+ # Name to use to generate the url.
+ # #full_name by default.
+ #
+ # source://rdoc//lib/rdoc/context.rb#1066
+ def name_for_path; end
+
+ # Changes the visibility for new methods to +visibility+
+ #
+ # source://rdoc//lib/rdoc/context.rb#1073
+ def ongoing_visibility=(visibility); end
+
+ # Params to be used in the next MethodAttr parsed under this context
+ #
+ # source://rdoc//lib/rdoc/context.rb#113
+ def params; end
+
+ # Params to be used in the next MethodAttr parsed under this context
+ #
+ # source://rdoc//lib/rdoc/context.rb#113
+ def params=(_arg0); end
+
+ # Record +top_level+ as a file +self+ is in.
+ #
+ # source://rdoc//lib/rdoc/context.rb#1080
+ def record_location(top_level); end
+
+ # Should we remove this context from the documentation?
+ #
+ # The answer is yes if:
+ # * #received_nodoc is +true+
+ # * #any_content is +false+ (not counting includes)
+ # * All #includes are modules (not a string), and their module has
+ # #remove_from_documentation? == true
+ # * All classes and modules have #remove_from_documentation? == true
+ #
+ # @return [Boolean]
+ #
+ # source://rdoc//lib/rdoc/context.rb#1094
+ def remove_from_documentation?; end
+
+ # Removes methods and attributes with a visibility less than +min_visibility+.
+ # --
+ # TODO mark the visibility of attributes in the template (if not public?)
+ #
+ # source://rdoc//lib/rdoc/context.rb#1107
+ def remove_invisible(min_visibility); end
+
+ # Only called when min_visibility == :public or :private
+ #
+ # source://rdoc//lib/rdoc/context.rb#1117
+ def remove_invisible_in(array, min_visibility); end
+
+ # Files this context requires
+ #
+ # source://rdoc//lib/rdoc/context.rb#75
+ def requires; end
+
+ # Tries to resolve unmatched aliases when a method or attribute has just
+ # been added.
+ #
+ # source://rdoc//lib/rdoc/context.rb#1133
+ def resolve_aliases(added); end
+
+ # Returns RDoc::Context::Section objects referenced in this context for use
+ # in a table of contents.
+ #
+ # source://rdoc//lib/rdoc/context.rb#1149
+ def section_contents; end
+
+ # Sections in this context
+ #
+ # source://rdoc//lib/rdoc/context.rb#1173
+ def sections; end
+
+ # source://rdoc//lib/rdoc/context.rb#1177
+ def sections_hash; end
+
+ # Given an array +names+ of constants, set the visibility of each constant to
+ # +visibility+
+ #
+ # source://rdoc//lib/rdoc/context.rb#1202
+ def set_constant_visibility_for(names, visibility); end
+
+ # Sets the current section to a section with +title+. See also #add_section
+ #
+ # source://rdoc//lib/rdoc/context.rb#1184
+ def set_current_section(title, comment); end
+
+ # Given an array +methods+ of method names, set the visibility of each to
+ # +visibility+
+ #
+ # source://rdoc//lib/rdoc/context.rb#1192
+ def set_visibility_for(methods, visibility, singleton = T.unsafe(nil)); end
+
+ # Sorts sections alphabetically (default) or in TomDoc fashion (none,
+ # Public, Internal, Deprecated)
+ #
+ # source://rdoc//lib/rdoc/context.rb#1213
+ def sort_sections; end
+
+ # Use this section for the next method, attribute or constant added.
+ #
+ # source://rdoc//lib/rdoc/context.rb#80
+ def temporary_section; end
+
+ # Use this section for the next method, attribute or constant added.
+ #
+ # source://rdoc//lib/rdoc/context.rb#80
+ def temporary_section=(_arg0); end
+
+ # source://rdoc//lib/rdoc/context.rb#1229
+ def to_s; end
+
+ # Return the TopLevel that owns us
+ # --
+ # FIXME we can be 'owned' by several TopLevel (see #record_location &
+ # #in_files)
+ #
+ # source://rdoc//lib/rdoc/context.rb#1239
+ def top_level; end
+
+ # Hash old_name => [aliases], for aliases
+ # that haven't (yet) been resolved to a method/attribute.
+ # (Not to be confused with the aliases of the context.)
+ #
+ # source://rdoc//lib/rdoc/context.rb#87
+ def unmatched_alias_lists; end
+
+ # Hash old_name => [aliases], for aliases
+ # that haven't (yet) been resolved to a method/attribute.
+ # (Not to be confused with the aliases of the context.)
+ #
+ # source://rdoc//lib/rdoc/context.rb#87
+ def unmatched_alias_lists=(_arg0); end
+
+ # Upgrades NormalModule +mod+ in +enclosing+ to a +class_type+
+ #
+ # source://rdoc//lib/rdoc/context.rb#1249
+ def upgrade_to_class(mod, class_type, enclosing); end
+
+ # Current visibility of this context
+ #
+ # source://rdoc//lib/rdoc/context.rb#97
+ def visibility; end
+
+ # Current visibility of this context
+ #
+ # source://rdoc//lib/rdoc/context.rb#97
+ def visibility=(_arg0); end
+end
+
+# A section of documentation like:
+#
+# # :section: The title
+# # The body
+#
+# Sections can be referenced multiple times and will be collapsed into a
+# single section.
+#
+# source://rdoc//lib/rdoc/context/section.rb#13
+class RDoc::Context::Section
+ include ::RDoc::Text
+ include ::RDoc::Generator::Markup
+
+ # Creates a new section with +title+ and +comment+
+ #
+ # @return [Section] a new instance of Section
+ #
+ # source://rdoc//lib/rdoc/context/section.rb#42
+ def initialize(parent, title, comment); end
+
+ # Sections are equal when they have the same #title
+ #
+ # source://rdoc//lib/rdoc/context/section.rb#54
+ def ==(other); end
+
+ # Adds +comment+ to this section
+ #
+ # source://rdoc//lib/rdoc/context/section.rb#63
+ def add_comment(comment); end
+
+ # Anchor reference for linking to this section
+ #
+ # source://rdoc//lib/rdoc/context/section.rb#83
+ def aref; end
+
+ # Section comment
+ #
+ # source://rdoc//lib/rdoc/context/section.rb#22
+ def comment; end
+
+ # Section comments
+ #
+ # source://rdoc//lib/rdoc/context/section.rb#27
+ def comments; end
+
+ # Sections are equal when they have the same #title
+ #
+ # source://rdoc//lib/rdoc/context/section.rb#54
+ def eql?(other); end
+
+ # Extracts the comment for this section from the original comment block.
+ # If the first line contains :section:, strip it and use the rest.
+ # Otherwise remove lines up to the line containing :section:, and look
+ # for those lines again at the end and remove them. This lets us write
+ #
+ # # :section: The title
+ # # The body
+ #
+ # source://rdoc//lib/rdoc/context/section.rb#98
+ def extract_comment(comment); end
+
+ # source://rdoc//lib/rdoc/context/section.rb#130
+ def hash; end
+
+ # The files comments in this section come from
+ #
+ # source://rdoc//lib/rdoc/context/section.rb#137
+ def in_files; end
+
+ # source://rdoc//lib/rdoc/context/section.rb#126
+ def inspect; end
+
+ # Serializes this Section. The title and parsed comment are saved, but not
+ # the section parent which must be restored manually.
+ #
+ # source://rdoc//lib/rdoc/context/section.rb#158
+ def marshal_dump; end
+
+ # De-serializes this Section. The section parent must be restored manually.
+ #
+ # source://rdoc//lib/rdoc/context/section.rb#169
+ def marshal_load(array); end
+
+ # Context this Section lives in
+ #
+ # source://rdoc//lib/rdoc/context/section.rb#32
+ def parent; end
+
+ # Parses +comment_location+ into an RDoc::Markup::Document composed of
+ # multiple RDoc::Markup::Documents with their file set.
+ #
+ # source://rdoc//lib/rdoc/context/section.rb#180
+ def parse; end
+
+ # The section's title, or 'Top Section' if the title is nil.
+ #
+ # This is used by the table of contents template so the name is silly.
+ #
+ # source://rdoc//lib/rdoc/context/section.rb#208
+ def plain_html; end
+
+ # Removes a comment from this section if it is from the same file as
+ # +comment+
+ #
+ # source://rdoc//lib/rdoc/context/section.rb#216
+ def remove_comment(comment); end
+
+ # Section title
+ #
+ # source://rdoc//lib/rdoc/context/section.rb#37
+ def title; end
+end
+
+# RDoc::CrossReference is a reusable way to create cross references for names.
+#
+# source://rdoc//lib/rdoc/cross_reference.rb#8
+class RDoc::CrossReference
+ # Allows cross-references to be created based on the given +context+
+ # (RDoc::Context).
+ #
+ # @return [CrossReference] a new instance of CrossReference
+ #
+ # source://rdoc//lib/rdoc/cross_reference.rb#127
+ def initialize(context); end
+
+ # Returns a reference to +name+.
+ #
+ # If the reference is found and +name+ is not documented +text+ will be
+ # returned. If +name+ is escaped +name+ is returned. If +name+ is not
+ # found +text+ is returned.
+ #
+ # source://rdoc//lib/rdoc/cross_reference.rb#190
+ def resolve(name, text); end
+
+ # Returns a method reference to +name+.
+ #
+ # source://rdoc//lib/rdoc/cross_reference.rb#137
+ def resolve_method(name); end
+
+ # Hash of references that have been looked-up to their replacements
+ #
+ # source://rdoc//lib/rdoc/cross_reference.rb#121
+ def seen; end
+
+ # Hash of references that have been looked-up to their replacements
+ #
+ # source://rdoc//lib/rdoc/cross_reference.rb#121
+ def seen=(_arg0); end
+end
+
+# Regular expression to match method arguments.
+#
+# source://rdoc//lib/rdoc/cross_reference.rb#28
+RDoc::CrossReference::METHOD_ARGS_REGEXP_STR = T.let(T.unsafe(nil), String)
+
+# Regular expression to match a single method argument.
+#
+# source://rdoc//lib/rdoc/cross_reference.rb#23
+RDoc::CrossReference::METHOD_ARG_REGEXP_STR = T.let(T.unsafe(nil), String)
+
+# A subclass of ERB that writes directly to an IO. Credit to Aaron Patterson
+# and Masatoshi SEKI.
+#
+# To use:
+#
+# erbio = RDoc::ERBIO.new '<%= "hello world" %>', nil, nil
+#
+# File.open 'hello.txt', 'w' do |io|
+# erbio.result binding
+# end
+#
+# Note that binding must enclose the io you wish to output on.
+#
+# source://rdoc//lib/rdoc/erbio.rb#18
+class RDoc::ERBIO < ::ERB
+ # Defaults +eoutvar+ to 'io', otherwise is identical to ERB's initialize
+ #
+ # @return [ERBIO] a new instance of ERBIO
+ #
+ # source://rdoc//lib/rdoc/erbio.rb#23
+ def initialize(str, trim_mode: T.unsafe(nil), eoutvar: T.unsafe(nil)); end
+
+ # Instructs +compiler+ how to write to +io_variable+
+ #
+ # source://rdoc//lib/rdoc/erbio.rb#30
+ def set_eoutvar(compiler, io_variable); end
+end
+
+# Allows an ERB template to be rendered in the context (binding) of an
+# existing ERB template evaluation.
+#
+# source://rdoc//lib/rdoc/erb_partial.rb#6
+class RDoc::ERBPartial < ::ERB
+ # Overrides +compiler+ startup to set the +eoutvar+ to an empty string only
+ # if it isn't already set.
+ #
+ # source://rdoc//lib/rdoc/erb_partial.rb#12
+ def set_eoutvar(compiler, eoutvar = T.unsafe(nil)); end
+end
+
+# This class is a wrapper around File IO and Encoding that helps RDoc load
+# files and convert them to the correct encoding.
+#
+# source://rdoc//lib/rdoc/encoding.rb#8
+module RDoc::Encoding
+ class << self
+ # Changes encoding based on +encoding+ without converting and returns new
+ # string
+ #
+ # source://rdoc//lib/rdoc/encoding.rb#112
+ def change_encoding(text, encoding); end
+
+ # Detects the encoding of +string+ based on the magic comment
+ #
+ # source://rdoc//lib/rdoc/encoding.rb#92
+ def detect_encoding(string); end
+
+ # Reads the contents of +filename+ and handles any encoding directives in
+ # the file.
+ #
+ # The content will be converted to the +encoding+. If the file cannot be
+ # converted a warning will be printed and nil will be returned.
+ #
+ # If +force_transcode+ is true the document will be transcoded and any
+ # unknown character in the target encoding will be replaced with '?'
+ #
+ # source://rdoc//lib/rdoc/encoding.rb#32
+ def read_file(filename, encoding, force_transcode = T.unsafe(nil)); end
+
+ # Removes magic comments and shebang
+ #
+ # source://rdoc//lib/rdoc/encoding.rb#102
+ def remove_magic_comment(string); end
+ end
+end
+
+# source://rdoc//lib/rdoc/encoding.rb#10
+RDoc::Encoding::HEADER_REGEXP = T.let(T.unsafe(nil), Regexp)
+
+# source://rdoc//lib/rdoc/generator/darkfish.rb#55
+class RDoc::Generator::Darkfish
+ include ::ERB::Escape
+ include ::ERB::Util
+
+ # Initialize a few instance variables before we start
+ #
+ # @return [Darkfish] a new instance of Darkfish
+ #
+ # source://rdoc//lib/rdoc/generator/darkfish.rb#159
+ def initialize(store, options); end
+
+ # Creates a template from its components and the +body_file+.
+ #
+ # For backwards compatibility, if +body_file+ contains "--op from the
+ # options for a full path.
+ #
+ # source://rdoc//lib/rdoc/generator/darkfish.rb#102
+ def base_dir; end
+
+ # Directory where generated class HTML files live relative to the output
+ # dir.
+ #
+ # source://rdoc//lib/rdoc/generator/darkfish.rb#191
+ def class_dir; end
+
+ # Classes and modules to be used by this generator, not necessarily
+ # displayed. See also #modsort
+ #
+ # source://rdoc//lib/rdoc/generator/darkfish.rb#108
+ def classes; end
+
+ # Copies static files from the static_path into the output directory
+ #
+ # source://rdoc//lib/rdoc/generator/darkfish.rb#265
+ def copy_static; end
+
+ # Output progress information if debugging is enabled
+ #
+ # source://rdoc//lib/rdoc/generator/darkfish.rb#182
+ def debug_msg(*msg); end
+
+ # No files will be written when dry_run is true.
+ #
+ # source://rdoc//lib/rdoc/generator/darkfish.rb#113
+ def dry_run; end
+
+ # No files will be written when dry_run is true.
+ #
+ # source://rdoc//lib/rdoc/generator/darkfish.rb#113
+ def dry_run=(_arg0); end
+
+ # Directory where generated class HTML files live relative to the output
+ # dir.
+ #
+ # source://rdoc//lib/rdoc/generator/darkfish.rb#199
+ def file_dir; end
+
+ # When false the generate methods return a String instead of writing to a
+ # file. The default is true.
+ #
+ # source://rdoc//lib/rdoc/generator/darkfish.rb#119
+ def file_output; end
+
+ # When false the generate methods return a String instead of writing to a
+ # file. The default is true.
+ #
+ # source://rdoc//lib/rdoc/generator/darkfish.rb#119
+ def file_output=(_arg0); end
+
+ # Files to be displayed by this generator
+ #
+ # source://rdoc//lib/rdoc/generator/darkfish.rb#124
+ def files; end
+
+ # Create the directories the generated docs will live in if they don't
+ # already exist.
+ #
+ # source://rdoc//lib/rdoc/generator/darkfish.rb#207
+ def gen_sub_directories; end
+
+ # Build the initial indices and output objects based on an array of TopLevel
+ # objects containing the extracted information.
+ #
+ # source://rdoc//lib/rdoc/generator/darkfish.rb#241
+ def generate; end
+
+ # Generates a class file for +klass+
+ #
+ # source://rdoc//lib/rdoc/generator/darkfish.rb#337
+ def generate_class(klass, template_file = T.unsafe(nil)); end
+
+ # Generate a documentation file for each class and module
+ #
+ # source://rdoc//lib/rdoc/generator/darkfish.rb#368
+ def generate_class_files; end
+
+ # Generate a documentation file for each file
+ #
+ # source://rdoc//lib/rdoc/generator/darkfish.rb#395
+ def generate_file_files; end
+
+ # Generate an index page which lists all the classes which are documented.
+ #
+ # source://rdoc//lib/rdoc/generator/darkfish.rb#303
+ def generate_index; end
+
+ # Generate a page file for +file+
+ #
+ # source://rdoc//lib/rdoc/generator/darkfish.rb#464
+ def generate_page(file); end
+
+ # Generates the 404 page for the RDoc servlet
+ #
+ # source://rdoc//lib/rdoc/generator/darkfish.rb#493
+ def generate_servlet_not_found(message); end
+
+ # Generates the servlet root page for the RDoc servlet
+ #
+ # source://rdoc//lib/rdoc/generator/darkfish.rb#526
+ def generate_servlet_root(installed); end
+
+ # Generate an index page which lists all the classes which are documented.
+ #
+ # source://rdoc//lib/rdoc/generator/darkfish.rb#553
+ def generate_table_of_contents; end
+
+ # Return a list of the documented modules sorted by salience first, then
+ # by name.
+ #
+ # source://rdoc//lib/rdoc/generator/darkfish.rb#294
+ def get_sorted_module_list(classes); end
+
+ # Try to extract Subversion information out of the first constant whose
+ # value looks like a subversion Id tag. If no matching constant is found,
+ # and empty hash is returned.
+ #
+ # source://rdoc//lib/rdoc/generator/darkfish.rb#652
+ def get_svninfo(klass); end
+
+ # source://rdoc//lib/rdoc/generator/darkfish.rb#584
+ def install_rdoc_static_file(source, destination, options); end
+
+ # The JSON index generator for this Darkfish generator
+ #
+ # source://rdoc//lib/rdoc/generator/darkfish.rb#129
+ def json_index; end
+
+ # Methods to be displayed by this generator
+ #
+ # source://rdoc//lib/rdoc/generator/darkfish.rb#134
+ def methods; end
+
+ # Sorted list of classes and modules to be displayed by this generator
+ #
+ # source://rdoc//lib/rdoc/generator/darkfish.rb#139
+ def modsort; end
+
+ # The output directory
+ #
+ # source://rdoc//lib/rdoc/generator/darkfish.rb#154
+ def outputdir; end
+
+ # Renders the ERb contained in +file_name+ relative to the template
+ # directory and returns the result based on the current context.
+ #
+ # source://rdoc//lib/rdoc/generator/darkfish.rb#699
+ def render(file_name); end
+
+ # Load and render the erb template in the given +template_file+ and write
+ # it out to +out_file+.
+ #
+ # Both +template_file+ and +out_file+ should be Pathname-like objects.
+ #
+ # An io will be yielded which must be captured by binding in the caller.
+ #
+ # source://rdoc//lib/rdoc/generator/darkfish.rb#717
+ def render_template(template_file, out_file = T.unsafe(nil)); end
+
+ # Prepares for generation of output from the current directory
+ #
+ # source://rdoc//lib/rdoc/generator/darkfish.rb#604
+ def setup; end
+
+ # The RDoc::Store that is the source of the generated content
+ #
+ # source://rdoc//lib/rdoc/generator/darkfish.rb#144
+ def store; end
+
+ # The directory where the template files live
+ #
+ # source://rdoc//lib/rdoc/generator/darkfish.rb#149
+ def template_dir; end
+
+ # Retrieves a cache template for +file+, if present, or fills the cache.
+ #
+ # source://rdoc//lib/rdoc/generator/darkfish.rb#764
+ def template_for(file, page = T.unsafe(nil), klass = T.unsafe(nil)); end
+
+ # Creates the result for +template+ with +context+. If an error is raised a
+ # Pathname +template_file+ will indicate the file where the error occurred.
+ #
+ # source://rdoc//lib/rdoc/generator/darkfish.rb#751
+ def template_result(template, context, template_file); end
+
+ # Return a string describing the amount of time in the given number of
+ # seconds in terms a human can understand easily.
+ #
+ # source://rdoc//lib/rdoc/generator/darkfish.rb#621
+ def time_delta_string(seconds); end
+
+ # Copy over the stylesheet into the appropriate place in the output
+ # directory.
+ #
+ # source://rdoc//lib/rdoc/generator/darkfish.rb#215
+ def write_style_sheet; end
+end
+
+# source://rdoc//lib/rdoc/generator/json_index.rb#77
+class RDoc::Generator::JsonIndex
+ include ::RDoc::Text
+
+ # Creates a new generator. +parent_generator+ is used to determine the
+ # class_dir and file_dir of links in the output index.
+ #
+ # +options+ are the same options passed to the parent generator.
+ #
+ # @return [JsonIndex] a new instance of JsonIndex
+ #
+ # source://rdoc//lib/rdoc/generator/json_index.rb#94
+ def initialize(parent_generator, options); end
+
+ # Builds the JSON index as a Hash.
+ #
+ # source://rdoc//lib/rdoc/generator/json_index.rb#110
+ def build_index; end
+
+ # The directory classes are written to
+ #
+ # source://rdoc//lib/rdoc/generator/json_index.rb#271
+ def class_dir; end
+
+ # Output progress information if debugging is enabled
+ #
+ # source://rdoc//lib/rdoc/generator/json_index.rb#123
+ def debug_msg(*msg); end
+
+ # The directory files are written to
+ #
+ # source://rdoc//lib/rdoc/generator/json_index.rb#278
+ def file_dir; end
+
+ # Writes the JSON index to disk
+ #
+ # source://rdoc//lib/rdoc/generator/json_index.rb#131
+ def generate; end
+
+ # Compress the search_index.js file using gzip
+ #
+ # source://rdoc//lib/rdoc/generator/json_index.rb#166
+ def generate_gzipped; end
+
+ # source://rdoc//lib/rdoc/generator/json_index.rb#86
+ def index; end
+
+ # Adds classes and modules to the index
+ #
+ # source://rdoc//lib/rdoc/generator/json_index.rb#211
+ def index_classes; end
+
+ # Adds methods to the index
+ #
+ # source://rdoc//lib/rdoc/generator/json_index.rb#230
+ def index_methods; end
+
+ # Adds pages to the index
+ #
+ # source://rdoc//lib/rdoc/generator/json_index.rb#251
+ def index_pages; end
+
+ # source://rdoc//lib/rdoc/generator/json_index.rb#282
+ def reset(files, classes); end
+
+ # Removes whitespace and downcases +string+
+ #
+ # source://rdoc//lib/rdoc/generator/json_index.rb#296
+ def search_string(string); end
+end
+
+# Generates a POT file.
+#
+# Here is a translator work flow with the generator.
+#
+# == Create .pot
+#
+# You create .pot file by pot formatter:
+#
+# % rdoc --format pot
+#
+# It generates doc/rdoc.pot.
+#
+# == Create .po
+#
+# You create .po file from doc/rdoc.pot. This operation is needed only
+# the first time. This work flow assumes that you are a translator
+# for Japanese.
+#
+# You create locale/ja/rdoc.po from doc/rdoc.pot. You can use msginit
+# provided by GNU gettext or rmsginit provided by gettext gem. This
+# work flow uses gettext gem because it is more portable than GNU
+# gettext for Rubyists. Gettext gem is implemented by pure Ruby.
+#
+# % gem install gettext
+# % mkdir -p locale/ja
+# % rmsginit --input doc/rdoc.pot --output locale/ja/rdoc.po --locale ja
+#
+# Translate messages in .po
+#
+# You translate messages in .po by a PO file editor. po-mode.el exists
+# for Emacs users. There are some GUI tools such as GTranslator.
+# There are some Web services such as POEditor and Tansifex. You can
+# edit by your favorite text editor because .po is a text file.
+# Generate localized documentation
+#
+# You can generate localized documentation with locale/ja/rdoc.po:
+#
+# % rdoc --locale ja
+#
+# You can find documentation in Japanese in doc/. Yay!
+#
+# == Update translation
+#
+# You need to update translation when your application is added or
+# modified messages.
+#
+# You can update .po by the following command lines:
+#
+# % rdoc --format pot
+# % rmsgmerge --update locale/ja/rdoc.po doc/rdoc.pot
+#
+# You edit locale/ja/rdoc.po to translate new messages.
+#
+# source://rdoc//lib/rdoc/generator/pot.rb#56
+class RDoc::Generator::POT
+ # Set up a new .pot generator
+ #
+ # @return [POT] a new instance of POT
+ #
+ # source://rdoc//lib/rdoc/generator/pot.rb#68
+ def initialize(store, options); end
+
+ # source://rdoc//lib/rdoc/generator/pot.rb#85
+ def class_dir; end
+
+ # Writes .pot to disk.
+ #
+ # source://rdoc//lib/rdoc/generator/pot.rb#76
+ def generate; end
+
+ private
+
+ # source://rdoc//lib/rdoc/generator/pot.rb#90
+ def extract_messages; end
+end
+
+# Extracts message from RDoc::Store
+#
+# source://rdoc//lib/rdoc/generator/pot/message_extractor.rb#5
+class RDoc::Generator::POT::MessageExtractor
+ # Creates a message extractor for +store+.
+ #
+ # @return [MessageExtractor] a new instance of MessageExtractor
+ #
+ # source://rdoc//lib/rdoc/generator/pot/message_extractor.rb#10
+ def initialize(store); end
+
+ # Extracts messages from +store+, stores them into
+ # RDoc::Generator::POT::PO and returns it.
+ #
+ # source://rdoc//lib/rdoc/generator/pot/message_extractor.rb#19
+ def extract; end
+
+ private
+
+ # source://rdoc//lib/rdoc/generator/pot/message_extractor.rb#64
+ def entry(msgid, options); end
+
+ # source://rdoc//lib/rdoc/generator/pot/message_extractor.rb#28
+ def extract_from_klass(klass); end
+
+ # source://rdoc//lib/rdoc/generator/pot/message_extractor.rb#51
+ def extract_text(text, comment, location = T.unsafe(nil)); end
+end
+
+# Generates a PO format text
+#
+# source://rdoc//lib/rdoc/generator/pot/po.rb#5
+class RDoc::Generator::POT::PO
+ # Creates an object that represents PO format.
+ #
+ # @return [PO] a new instance of PO
+ #
+ # source://rdoc//lib/rdoc/generator/pot/po.rb#10
+ def initialize; end
+
+ # Adds a PO entry to the PO.
+ #
+ # source://rdoc//lib/rdoc/generator/pot/po.rb#18
+ def add(entry); end
+
+ # Returns PO format text for the PO.
+ #
+ # source://rdoc//lib/rdoc/generator/pot/po.rb#29
+ def to_s; end
+
+ private
+
+ # source://rdoc//lib/rdoc/generator/pot/po.rb#40
+ def add_header; end
+
+ # source://rdoc//lib/rdoc/generator/pot/po.rb#44
+ def header_entry; end
+
+ # source://rdoc//lib/rdoc/generator/pot/po.rb#73
+ def sort_entries; end
+end
+
+# A PO entry in PO
+#
+# source://rdoc//lib/rdoc/generator/pot/po_entry.rb#5
+class RDoc::Generator::POT::POEntry
+ # Creates a PO entry for +msgid+. Other valus can be specified by
+ # +options+.
+ #
+ # @return [POEntry] a new instance of POEntry
+ #
+ # source://rdoc//lib/rdoc/generator/pot/po_entry.rb#29
+ def initialize(msgid, options = T.unsafe(nil)); end
+
+ # The comment content extracted from source file
+ #
+ # source://rdoc//lib/rdoc/generator/pot/po_entry.rb#17
+ def extracted_comment; end
+
+ # The flags of the PO entry
+ #
+ # source://rdoc//lib/rdoc/generator/pot/po_entry.rb#23
+ def flags; end
+
+ # Merges the PO entry with +other_entry+.
+ #
+ # source://rdoc//lib/rdoc/generator/pot/po_entry.rb#56
+ def merge(other_entry); end
+
+ # The msgid content
+ #
+ # source://rdoc//lib/rdoc/generator/pot/po_entry.rb#8
+ def msgid; end
+
+ # The msgstr content
+ #
+ # source://rdoc//lib/rdoc/generator/pot/po_entry.rb#11
+ def msgstr; end
+
+ # The locations where the PO entry is extracted
+ #
+ # source://rdoc//lib/rdoc/generator/pot/po_entry.rb#20
+ def references; end
+
+ # Returns the PO entry in PO format.
+ #
+ # source://rdoc//lib/rdoc/generator/pot/po_entry.rb#41
+ def to_s; end
+
+ # The comment content created by translator (PO editor)
+ #
+ # source://rdoc//lib/rdoc/generator/pot/po_entry.rb#14
+ def translator_comment; end
+
+ private
+
+ # source://rdoc//lib/rdoc/generator/pot/po_entry.rb#120
+ def escape(string); end
+
+ # source://rdoc//lib/rdoc/generator/pot/po_entry.rb#72
+ def format_comment(mark, comment); end
+
+ # source://rdoc//lib/rdoc/generator/pot/po_entry.rb#88
+ def format_extracted_comment; end
+
+ # source://rdoc//lib/rdoc/generator/pot/po_entry.rb#102
+ def format_flags; end
+
+ # source://rdoc//lib/rdoc/generator/pot/po_entry.rb#109
+ def format_message(message); end
+
+ # source://rdoc//lib/rdoc/generator/pot/po_entry.rb#92
+ def format_references; end
+
+ # source://rdoc//lib/rdoc/generator/pot/po_entry.rb#84
+ def format_translator_comment; end
+
+ # source://rdoc//lib/rdoc/generator/pot/po_entry.rb#137
+ def merge_array(array1, array2); end
+
+ # source://rdoc//lib/rdoc/generator/pot/po_entry.rb#133
+ def merge_string(string1, string2); end
+end
+
+# Generates ri data files
+#
+# source://rdoc//lib/rdoc/generator/ri.rb#5
+class RDoc::Generator::RI
+ # Set up a new ri generator
+ #
+ # @return [RI] a new instance of RI
+ #
+ # source://rdoc//lib/rdoc/generator/ri.rb#17
+ def initialize(store, options); end
+
+ # Writes the parsed data store to disk for use by ri.
+ #
+ # source://rdoc//lib/rdoc/generator/ri.rb#26
+ def generate; end
+end
+
+# A message container for a locale.
+#
+# This object provides the following two features:
+#
+# * Loads translated messages from .po file.
+# * Translates a message into the locale.
+#
+# source://rdoc//lib/rdoc/i18n/locale.rb#10
+class RDoc::I18n::Locale
+ # Creates a new locale object for +name+ locale. +name+ must
+ # follow IETF language tag format.
+ #
+ # @return [Locale] a new instance of Locale
+ #
+ # source://rdoc//lib/rdoc/i18n/locale.rb#48
+ def initialize(name); end
+
+ # Loads translation messages from +locale_directory+/+@name+/rdoc.po
+ # or +locale_directory+/+@name+.po. The former has high priority.
+ #
+ # This method requires gettext gem for parsing .po file. If you
+ # don't have gettext gem, this method doesn't load .po file. This
+ # method warns and returns +false+.
+ #
+ # Returns +true+ if succeeded, +false+ otherwise.
+ #
+ # source://rdoc//lib/rdoc/i18n/locale.rb#63
+ def load(locale_directory); end
+
+ # The name of the locale. It uses IETF language tag format
+ # +[language[_territory][.codeset][@modifier]]+.
+ #
+ # See also {BCP 47 - Tags for Identifying
+ # Languages}[http://tools.ietf.org/rfc/bcp/bcp47.txt].
+ #
+ # source://rdoc//lib/rdoc/i18n/locale.rb#42
+ def name; end
+
+ # Translates the +message+ into locale. If there is no translation
+ # messages for +message+ in locale, +message+ itself is returned.
+ #
+ # source://rdoc//lib/rdoc/i18n/locale.rb#98
+ def translate(message); end
+
+ class << self
+ # Returns the locale object for +locale_name+.
+ #
+ # source://rdoc//lib/rdoc/i18n/locale.rb#19
+ def [](locale_name); end
+
+ # Sets the locale object for +locale_name+.
+ #
+ # Normally, this method is not used. This method is useful for
+ # testing.
+ #
+ # source://rdoc//lib/rdoc/i18n/locale.rb#29
+ def []=(locale_name, locale); end
+ end
+end
+
+# An i18n supported text.
+#
+# This object provides the following two features:
+#
+# * Extracts translation messages from wrapped raw text.
+# * Translates wrapped raw text in specified locale.
+#
+# Wrapped raw text is one of String, RDoc::Comment or Array of them.
+#
+# source://rdoc//lib/rdoc/i18n/text.rb#12
+class RDoc::I18n::Text
+ # Creates a new i18n supported text for +raw+ text.
+ #
+ # @return [Text] a new instance of Text
+ #
+ # source://rdoc//lib/rdoc/i18n/text.rb#17
+ def initialize(raw); end
+
+ # Extracts translation target messages and yields each message.
+ #
+ # Each yielded message is a Hash. It consists of the followings:
+ #
+ # :type :: :paragraph
+ # :paragraph :: String (The translation target message itself.)
+ # :line_no :: Integer (The line number of the :paragraph is started.)
+ #
+ # The above content may be added in the future.
+ #
+ # source://rdoc//lib/rdoc/i18n/text.rb#32
+ def extract_messages; end
+
+ # Translates raw text into +locale+.
+ #
+ # source://rdoc//lib/rdoc/i18n/text.rb#44
+ def translate(locale); end
+
+ private
+
+ # source://rdoc//lib/rdoc/i18n/text.rb#88
+ def each_line(raw, &block); end
+
+ # @yield [part]
+ #
+ # source://rdoc//lib/rdoc/i18n/text.rb#101
+ def emit_empty_line_event(line, line_no); end
+
+ # source://rdoc//lib/rdoc/i18n/text.rb#110
+ def emit_paragraph_event(paragraph, paragraph_start_line, line_no, &block); end
+
+ # source://rdoc//lib/rdoc/i18n/text.rb#60
+ def parse(&block); end
+end
+
+# source://rdoc//lib/rdoc/markdown.rb#182
+class RDoc::Markdown
+ # Creates a new markdown parser that enables the given +extensions+.
+ #
+ # @return [Markdown] a new instance of Markdown
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#668
+ def initialize(extensions = T.unsafe(nil), debug = T.unsafe(nil)); end
+
+ # Alphanumeric = %literals.Alphanumeric
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#14705
+ def _Alphanumeric; end
+
+ # AlphanumericAscii = %literals.AlphanumericAscii
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#14712
+ def _AlphanumericAscii; end
+
+ # AtxHeading = AtxStart:s @Sp AtxInline+:a (@Sp /#*/ @Sp)? @Newline { RDoc::Markup::Heading.new(s, a.join) }
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#1162
+ def _AtxHeading; end
+
+ # AtxInline = !@Newline !(@Sp /#*/ @Sp @Newline) Inline
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#1080
+ def _AtxInline; end
+
+ # AtxStart = < /\#{1,6}/ > { text.length }
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#1136
+ def _AtxStart; end
+
+ # AutoLink = (AutoLinkUrl | AutoLinkEmail)
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#11574
+ def _AutoLink; end
+
+ # AutoLinkEmail = "<" "mailto:"? < /[\w+.\/!%~$-]+/i "@" (!@Newline !">" .)+ > ">" { "mailto:#{text}" }
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#11707
+ def _AutoLinkEmail; end
+
+ # AutoLinkUrl = "<" < /[A-Za-z]+/ "://" (!@Newline !">" .)+ > ">" { text }
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#11592
+ def _AutoLinkUrl; end
+
+ # BOM = %literals.BOM
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#14719
+ def _BOM; end
+
+ # BlankLine = @Sp @Newline { "\n" }
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#14148
+ def _BlankLine; end
+
+ # Block = @BlankLine* (BlockQuote | Verbatim | CodeFence | Table | Note | Reference | HorizontalRule | Heading | OrderedList | BulletList | DefinitionList | HtmlBlock | StyleBlock | Para | Plain)
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#939
+ def _Block; end
+
+ # BlockQuote = BlockQuoteRaw:a { RDoc::Markup::BlockQuote.new(*a) }
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#1566
+ def _BlockQuote; end
+
+ # BlockQuoteRaw = @StartList:a (">" " "? Line:l { a << l } (!">" !@BlankLine Line:c { a << c })* (@BlankLine:n { a << n })*)+ { inner_parse a.join }
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#1589
+ def _BlockQuoteRaw; end
+
+ # Bullet = !HorizontalRule @NonindentSpace /[+*-]/ @Spacechar+
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#2154
+ def _Bullet; end
+
+ # BulletList = &Bullet (ListTight | ListLoose):a { RDoc::Markup::List.new(:BULLET, *a) }
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#2198
+ def _BulletList; end
+
+ # CharEntity = "&" < /[A-Za-z0-9]+/ > ";" { if entity = HTML_ENTITIES[text] then entity.pack 'U*' else "{text};" end }
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#14812
+ def _CharEntity; end
+
+ # Code = (Ticks1 @Sp < ((!"`" Nonspacechar)+ | !Ticks1 /`+/ | !(@Sp Ticks1) (@Spacechar | @Newline !@BlankLine))+ > @Sp Ticks1 | Ticks2 @Sp < ((!"`" Nonspacechar)+ | !Ticks2 /`+/ | !(@Sp Ticks2) (@Spacechar | @Newline !@BlankLine))+ > @Sp Ticks2 | Ticks3 @Sp < ((!"`" Nonspacechar)+ | !Ticks3 /`+/ | !(@Sp Ticks3) (@Spacechar | @Newline !@BlankLine))+ > @Sp Ticks3 | Ticks4 @Sp < ((!"`" Nonspacechar)+ | !Ticks4 /`+/ | !(@Sp Ticks4) (@Spacechar | @Newline !@BlankLine))+ > @Sp Ticks4 | Ticks5 @Sp < ((!"`" Nonspacechar)+ | !Ticks5 /`+/ | !(@Sp Ticks5) (@Spacechar | @Newline !@BlankLine))+ > @Sp Ticks5) { "#{text}
" }
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#12511
+ def _Code; end
+
+ # CodeFence = &{ github? } Ticks3 (@Sp StrChunk:format)? Spnl < ((!"`" Nonspacechar)+ | !Ticks3 /`+/ | Spacechar | @Newline)+ > Ticks3 @Sp @Newline* { verbatim = RDoc::Markup::Verbatim.new text verbatim.format = format.intern if format.instance_of?(String) verbatim }
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#15681
+ def _CodeFence; end
+
+ # DecEntity = "" < /[0-9]+/ > ";" { [text.to_i].pack 'U' }
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#14776
+ def _DecEntity; end
+
+ # DefinitionList = &{ definition_lists? } DefinitionListItem+:list { RDoc::Markup::List.new :NOTE, *list.flatten }
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#16339
+ def _DefinitionList; end
+
+ # DefinitionListDefinition = @NonindentSpace ":" @Space Inlines:a @BlankLine+ { paragraph a }
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#16482
+ def _DefinitionListDefinition; end
+
+ # DefinitionListItem = DefinitionListLabel+:label DefinitionListDefinition+:defns { list_items = [] list_items << RDoc::Markup::ListItem.new(label, defns.shift) list_items.concat defns.map { |defn| RDoc::Markup::ListItem.new nil, defn } unless list_items.empty? list_items }
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#16383
+ def _DefinitionListItem; end
+
+ # DefinitionListLabel = StrChunk:label @Sp @Newline { label }
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#16449
+ def _DefinitionListLabel; end
+
+ # Digit = [0-9]
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#14691
+ def _Digit; end
+
+ # Doc = BOM? Block*:a { RDoc::Markup::Document.new(*a.compact) }
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#899
+ def _Doc; end
+
+ # Emph = (EmphStar | EmphUl)
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#10283
+ def _Emph; end
+
+ # EmphStar = "*" !@Whitespace @StartList:a (!"*" Inline:b { a << b } | StrongStar:b { a << b })+ "*" { emphasis a.join }
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#10319
+ def _EmphStar; end
+
+ # EmphUl = "_" !@Whitespace @StartList:a (!"_" Inline:b { a << b } | StrongUl:b { a << b })+ "_" { emphasis a.join }
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#10477
+ def _EmphUl; end
+
+ # EmptyTitle = ""
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#12086
+ def _EmptyTitle; end
+
+ # Endline = (@LineBreak | @TerminalEndline | @NormalEndline)
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#9917
+ def _Endline; end
+
+ # Entity = (HexEntity | DecEntity | CharEntity):a { a }
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#9880
+ def _Entity; end
+
+ # Enumerator = @NonindentSpace [0-9]+ "." @Spacechar+
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#2687
+ def _Enumerator; end
+
+ # Eof = !.
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#14542
+ def _Eof; end
+
+ # EscapedChar = "\\" !@Newline < /[:\\`|*_{}\[\]()#+.!><-]/ > { text }
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#9841
+ def _EscapedChar; end
+
+ # ExplicitLink = Label:l "(" @Sp Source:s Spnl Title @Sp ")" { "{#{l}}[#{s}]" }
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#11147
+ def _ExplicitLink; end
+
+ # ExtendedSpecialChar = &{ notes? } "^"
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#15184
+ def _ExtendedSpecialChar; end
+
+ # Heading = (SetextHeading | AtxHeading)
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#1548
+ def _Heading; end
+
+ # HexEntity = //i < /[0-9a-fA-F]+/ > ";" { [text.to_i(16)].pack 'U' }
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#14740
+ def _HexEntity; end
+
+ # HorizontalRule = @NonindentSpace ("*" @Sp "*" @Sp "*" (@Sp "*")* | "-" @Sp "-" @Sp "-" (@Sp "-")* | "_" @Sp "_" @Sp "_" (@Sp "_")*) @Sp @Newline @BlankLine+ { RDoc::Markup::Rule.new 1 }
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#1932
+ def _HorizontalRule; end
+
+ # HtmlAnchor = HtmlOpenAnchor (HtmlAnchor | !HtmlCloseAnchor .)* HtmlCloseAnchor
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#2971
+ def _HtmlAnchor; end
+
+ # HtmlAttribute = (AlphanumericAscii | "-")+ Spnl ("=" Spnl (Quoted | (!">" Nonspacechar)+))? Spnl
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#14273
+ def _HtmlAttribute; end
+
+ # HtmlBlock = < (HtmlBlockInTags | HtmlComment | HtmlBlockSelfClosing | HtmlUnclosed) > @BlankLine+ { if html? then RDoc::Markup::Raw.new text end }
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#8768
+ def _HtmlBlock; end
+
+ # HtmlBlockAddress = HtmlBlockOpenAddress (HtmlBlockAddress | !HtmlBlockCloseAddress .)* HtmlBlockCloseAddress
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#3137
+ def _HtmlBlockAddress; end
+
+ # HtmlBlockBlockquote = HtmlBlockOpenBlockquote (HtmlBlockBlockquote | !HtmlBlockCloseBlockquote .)* HtmlBlockCloseBlockquote
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#3303
+ def _HtmlBlockBlockquote; end
+
+ # HtmlBlockCenter = HtmlBlockOpenCenter (HtmlBlockCenter | !HtmlBlockCloseCenter .)* HtmlBlockCloseCenter
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#3469
+ def _HtmlBlockCenter; end
+
+ # HtmlBlockCloseAddress = "<" Spnl "/" ("address" | "ADDRESS") Spnl ">"
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#3085
+ def _HtmlBlockCloseAddress; end
+
+ # HtmlBlockCloseBlockquote = "<" Spnl "/" ("blockquote" | "BLOCKQUOTE") Spnl ">"
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#3251
+ def _HtmlBlockCloseBlockquote; end
+
+ # HtmlBlockCloseCenter = "<" Spnl "/" ("center" | "CENTER") Spnl ">"
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#3417
+ def _HtmlBlockCloseCenter; end
+
+ # HtmlBlockCloseDd = "<" Spnl "/" ("dd" | "DD") Spnl ">"
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#6737
+ def _HtmlBlockCloseDd; end
+
+ # HtmlBlockCloseDir = "<" Spnl "/" ("dir" | "DIR") Spnl ">"
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#3583
+ def _HtmlBlockCloseDir; end
+
+ # HtmlBlockCloseDiv = "<" Spnl "/" ("div" | "DIV") Spnl ">"
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#3749
+ def _HtmlBlockCloseDiv; end
+
+ # HtmlBlockCloseDl = "<" Spnl "/" ("dl" | "DL") Spnl ">"
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#3915
+ def _HtmlBlockCloseDl; end
+
+ # HtmlBlockCloseDt = "<" Spnl "/" ("dt" | "DT") Spnl ">"
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#6903
+ def _HtmlBlockCloseDt; end
+
+ # HtmlBlockCloseFieldset = "<" Spnl "/" ("fieldset" | "FIELDSET") Spnl ">"
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#4081
+ def _HtmlBlockCloseFieldset; end
+
+ # HtmlBlockCloseForm = "<" Spnl "/" ("form" | "FORM") Spnl ">"
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#4247
+ def _HtmlBlockCloseForm; end
+
+ # HtmlBlockCloseFrameset = "<" Spnl "/" ("frameset" | "FRAMESET") Spnl ">"
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#7069
+ def _HtmlBlockCloseFrameset; end
+
+ # HtmlBlockCloseH1 = "<" Spnl "/" ("h1" | "H1") Spnl ">"
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#4413
+ def _HtmlBlockCloseH1; end
+
+ # HtmlBlockCloseH2 = "<" Spnl "/" ("h2" | "H2") Spnl ">"
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#4579
+ def _HtmlBlockCloseH2; end
+
+ # HtmlBlockCloseH3 = "<" Spnl "/" ("h3" | "H3") Spnl ">"
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#4745
+ def _HtmlBlockCloseH3; end
+
+ # HtmlBlockCloseH4 = "<" Spnl "/" ("h4" | "H4") Spnl ">"
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#4911
+ def _HtmlBlockCloseH4; end
+
+ # HtmlBlockCloseH5 = "<" Spnl "/" ("h5" | "H5") Spnl ">"
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#5077
+ def _HtmlBlockCloseH5; end
+
+ # HtmlBlockCloseH6 = "<" Spnl "/" ("h6" | "H6") Spnl ">"
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#5243
+ def _HtmlBlockCloseH6; end
+
+ # HtmlBlockCloseHead = "<" Spnl "/" ("head" | "HEAD") Spnl ">"
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#8552
+ def _HtmlBlockCloseHead; end
+
+ # HtmlBlockCloseLi = "<" Spnl "/" ("li" | "LI") Spnl ">"
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#7235
+ def _HtmlBlockCloseLi; end
+
+ # HtmlBlockCloseMenu = "<" Spnl "/" ("menu" | "MENU") Spnl ">"
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#5409
+ def _HtmlBlockCloseMenu; end
+
+ # HtmlBlockCloseNoframes = "<" Spnl "/" ("noframes" | "NOFRAMES") Spnl ">"
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#5575
+ def _HtmlBlockCloseNoframes; end
+
+ # HtmlBlockCloseNoscript = "<" Spnl "/" ("noscript" | "NOSCRIPT") Spnl ">"
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#5741
+ def _HtmlBlockCloseNoscript; end
+
+ # HtmlBlockCloseOl = "<" Spnl "/" ("ol" | "OL") Spnl ">"
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#5907
+ def _HtmlBlockCloseOl; end
+
+ # HtmlBlockCloseP = "<" Spnl "/" ("p" | "P") Spnl ">"
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#6073
+ def _HtmlBlockCloseP; end
+
+ # HtmlBlockClosePre = "<" Spnl "/" ("pre" | "PRE") Spnl ">"
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#6239
+ def _HtmlBlockClosePre; end
+
+ # HtmlBlockCloseScript = "<" Spnl "/" ("script" | "SCRIPT") Spnl ">"
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#8397
+ def _HtmlBlockCloseScript; end
+
+ # HtmlBlockCloseTable = "<" Spnl "/" ("table" | "TABLE") Spnl ">"
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#6405
+ def _HtmlBlockCloseTable; end
+
+ # HtmlBlockCloseTbody = "<" Spnl "/" ("tbody" | "TBODY") Spnl ">"
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#7401
+ def _HtmlBlockCloseTbody; end
+
+ # HtmlBlockCloseTd = "<" Spnl "/" ("td" | "TD") Spnl ">"
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#7567
+ def _HtmlBlockCloseTd; end
+
+ # HtmlBlockCloseTfoot = "<" Spnl "/" ("tfoot" | "TFOOT") Spnl ">"
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#7733
+ def _HtmlBlockCloseTfoot; end
+
+ # HtmlBlockCloseTh = "<" Spnl "/" ("th" | "TH") Spnl ">"
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#7899
+ def _HtmlBlockCloseTh; end
+
+ # HtmlBlockCloseThead = "<" Spnl "/" ("thead" | "THEAD") Spnl ">"
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#8065
+ def _HtmlBlockCloseThead; end
+
+ # HtmlBlockCloseTr = "<" Spnl "/" ("tr" | "TR") Spnl ">"
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#8231
+ def _HtmlBlockCloseTr; end
+
+ # HtmlBlockCloseUl = "<" Spnl "/" ("ul" | "UL") Spnl ">"
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#6571
+ def _HtmlBlockCloseUl; end
+
+ # HtmlBlockDd = HtmlBlockOpenDd (HtmlBlockDd | !HtmlBlockCloseDd .)* HtmlBlockCloseDd
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#6789
+ def _HtmlBlockDd; end
+
+ # HtmlBlockDir = HtmlBlockOpenDir (HtmlBlockDir | !HtmlBlockCloseDir .)* HtmlBlockCloseDir
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#3635
+ def _HtmlBlockDir; end
+
+ # HtmlBlockDiv = HtmlBlockOpenDiv (HtmlBlockDiv | !HtmlBlockCloseDiv .)* HtmlBlockCloseDiv
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#3801
+ def _HtmlBlockDiv; end
+
+ # HtmlBlockDl = HtmlBlockOpenDl (HtmlBlockDl | !HtmlBlockCloseDl .)* HtmlBlockCloseDl
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#3967
+ def _HtmlBlockDl; end
+
+ # HtmlBlockDt = HtmlBlockOpenDt (HtmlBlockDt | !HtmlBlockCloseDt .)* HtmlBlockCloseDt
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#6955
+ def _HtmlBlockDt; end
+
+ # HtmlBlockFieldset = HtmlBlockOpenFieldset (HtmlBlockFieldset | !HtmlBlockCloseFieldset .)* HtmlBlockCloseFieldset
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#4133
+ def _HtmlBlockFieldset; end
+
+ # HtmlBlockForm = HtmlBlockOpenForm (HtmlBlockForm | !HtmlBlockCloseForm .)* HtmlBlockCloseForm
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#4299
+ def _HtmlBlockForm; end
+
+ # HtmlBlockFrameset = HtmlBlockOpenFrameset (HtmlBlockFrameset | !HtmlBlockCloseFrameset .)* HtmlBlockCloseFrameset
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#7121
+ def _HtmlBlockFrameset; end
+
+ # HtmlBlockH1 = HtmlBlockOpenH1 (HtmlBlockH1 | !HtmlBlockCloseH1 .)* HtmlBlockCloseH1
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#4465
+ def _HtmlBlockH1; end
+
+ # HtmlBlockH2 = HtmlBlockOpenH2 (HtmlBlockH2 | !HtmlBlockCloseH2 .)* HtmlBlockCloseH2
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#4631
+ def _HtmlBlockH2; end
+
+ # HtmlBlockH3 = HtmlBlockOpenH3 (HtmlBlockH3 | !HtmlBlockCloseH3 .)* HtmlBlockCloseH3
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#4797
+ def _HtmlBlockH3; end
+
+ # HtmlBlockH4 = HtmlBlockOpenH4 (HtmlBlockH4 | !HtmlBlockCloseH4 .)* HtmlBlockCloseH4
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#4963
+ def _HtmlBlockH4; end
+
+ # HtmlBlockH5 = HtmlBlockOpenH5 (HtmlBlockH5 | !HtmlBlockCloseH5 .)* HtmlBlockCloseH5
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#5129
+ def _HtmlBlockH5; end
+
+ # HtmlBlockH6 = HtmlBlockOpenH6 (HtmlBlockH6 | !HtmlBlockCloseH6 .)* HtmlBlockCloseH6
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#5295
+ def _HtmlBlockH6; end
+
+ # HtmlBlockHead = HtmlBlockOpenHead (!HtmlBlockCloseHead .)* HtmlBlockCloseHead
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#8604
+ def _HtmlBlockHead; end
+
+ # HtmlBlockInTags = (HtmlAnchor | HtmlBlockAddress | HtmlBlockBlockquote | HtmlBlockCenter | HtmlBlockDir | HtmlBlockDiv | HtmlBlockDl | HtmlBlockFieldset | HtmlBlockForm | HtmlBlockH1 | HtmlBlockH2 | HtmlBlockH3 | HtmlBlockH4 | HtmlBlockH5 | HtmlBlockH6 | HtmlBlockMenu | HtmlBlockNoframes | HtmlBlockNoscript | HtmlBlockOl | HtmlBlockP | HtmlBlockPre | HtmlBlockTable | HtmlBlockUl | HtmlBlockDd | HtmlBlockDt | HtmlBlockFrameset | HtmlBlockLi | HtmlBlockTbody | HtmlBlockTd | HtmlBlockTfoot | HtmlBlockTh | HtmlBlockThead | HtmlBlockTr | HtmlBlockScript | HtmlBlockHead)
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#8651
+ def _HtmlBlockInTags; end
+
+ # HtmlBlockLi = HtmlBlockOpenLi (HtmlBlockLi | !HtmlBlockCloseLi .)* HtmlBlockCloseLi
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#7287
+ def _HtmlBlockLi; end
+
+ # HtmlBlockMenu = HtmlBlockOpenMenu (HtmlBlockMenu | !HtmlBlockCloseMenu .)* HtmlBlockCloseMenu
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#5461
+ def _HtmlBlockMenu; end
+
+ # HtmlBlockNoframes = HtmlBlockOpenNoframes (HtmlBlockNoframes | !HtmlBlockCloseNoframes .)* HtmlBlockCloseNoframes
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#5627
+ def _HtmlBlockNoframes; end
+
+ # HtmlBlockNoscript = HtmlBlockOpenNoscript (HtmlBlockNoscript | !HtmlBlockCloseNoscript .)* HtmlBlockCloseNoscript
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#5793
+ def _HtmlBlockNoscript; end
+
+ # HtmlBlockOl = HtmlBlockOpenOl (HtmlBlockOl | !HtmlBlockCloseOl .)* HtmlBlockCloseOl
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#5959
+ def _HtmlBlockOl; end
+
+ # HtmlBlockOpenAddress = "<" Spnl ("address" | "ADDRESS") Spnl HtmlAttribute* ">"
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#3029
+ def _HtmlBlockOpenAddress; end
+
+ # HtmlBlockOpenBlockquote = "<" Spnl ("blockquote" | "BLOCKQUOTE") Spnl HtmlAttribute* ">"
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#3195
+ def _HtmlBlockOpenBlockquote; end
+
+ # HtmlBlockOpenCenter = "<" Spnl ("center" | "CENTER") Spnl HtmlAttribute* ">"
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#3361
+ def _HtmlBlockOpenCenter; end
+
+ # HtmlBlockOpenDd = "<" Spnl ("dd" | "DD") Spnl HtmlAttribute* ">"
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#6681
+ def _HtmlBlockOpenDd; end
+
+ # HtmlBlockOpenDir = "<" Spnl ("dir" | "DIR") Spnl HtmlAttribute* ">"
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#3527
+ def _HtmlBlockOpenDir; end
+
+ # HtmlBlockOpenDiv = "<" Spnl ("div" | "DIV") Spnl HtmlAttribute* ">"
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#3693
+ def _HtmlBlockOpenDiv; end
+
+ # HtmlBlockOpenDl = "<" Spnl ("dl" | "DL") Spnl HtmlAttribute* ">"
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#3859
+ def _HtmlBlockOpenDl; end
+
+ # HtmlBlockOpenDt = "<" Spnl ("dt" | "DT") Spnl HtmlAttribute* ">"
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#6847
+ def _HtmlBlockOpenDt; end
+
+ # HtmlBlockOpenFieldset = "<" Spnl ("fieldset" | "FIELDSET") Spnl HtmlAttribute* ">"
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#4025
+ def _HtmlBlockOpenFieldset; end
+
+ # HtmlBlockOpenForm = "<" Spnl ("form" | "FORM") Spnl HtmlAttribute* ">"
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#4191
+ def _HtmlBlockOpenForm; end
+
+ # HtmlBlockOpenFrameset = "<" Spnl ("frameset" | "FRAMESET") Spnl HtmlAttribute* ">"
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#7013
+ def _HtmlBlockOpenFrameset; end
+
+ # HtmlBlockOpenH1 = "<" Spnl ("h1" | "H1") Spnl HtmlAttribute* ">"
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#4357
+ def _HtmlBlockOpenH1; end
+
+ # HtmlBlockOpenH2 = "<" Spnl ("h2" | "H2") Spnl HtmlAttribute* ">"
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#4523
+ def _HtmlBlockOpenH2; end
+
+ # HtmlBlockOpenH3 = "<" Spnl ("h3" | "H3") Spnl HtmlAttribute* ">"
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#4689
+ def _HtmlBlockOpenH3; end
+
+ # HtmlBlockOpenH4 = "<" Spnl ("h4" | "H4") Spnl HtmlAttribute* ">"
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#4855
+ def _HtmlBlockOpenH4; end
+
+ # HtmlBlockOpenH5 = "<" Spnl ("h5" | "H5") Spnl HtmlAttribute* ">"
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#5021
+ def _HtmlBlockOpenH5; end
+
+ # HtmlBlockOpenH6 = "<" Spnl ("h6" | "H6") Spnl HtmlAttribute* ">"
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#5187
+ def _HtmlBlockOpenH6; end
+
+ # HtmlBlockOpenHead = "<" Spnl ("head" | "HEAD") Spnl HtmlAttribute* ">"
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#8496
+ def _HtmlBlockOpenHead; end
+
+ # HtmlBlockOpenLi = "<" Spnl ("li" | "LI") Spnl HtmlAttribute* ">"
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#7179
+ def _HtmlBlockOpenLi; end
+
+ # HtmlBlockOpenMenu = "<" Spnl ("menu" | "MENU") Spnl HtmlAttribute* ">"
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#5353
+ def _HtmlBlockOpenMenu; end
+
+ # HtmlBlockOpenNoframes = "<" Spnl ("noframes" | "NOFRAMES") Spnl HtmlAttribute* ">"
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#5519
+ def _HtmlBlockOpenNoframes; end
+
+ # HtmlBlockOpenNoscript = "<" Spnl ("noscript" | "NOSCRIPT") Spnl HtmlAttribute* ">"
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#5685
+ def _HtmlBlockOpenNoscript; end
+
+ # HtmlBlockOpenOl = "<" Spnl ("ol" | "OL") Spnl HtmlAttribute* ">"
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#5851
+ def _HtmlBlockOpenOl; end
+
+ # HtmlBlockOpenP = "<" Spnl ("p" | "P") Spnl HtmlAttribute* ">"
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#6017
+ def _HtmlBlockOpenP; end
+
+ # HtmlBlockOpenPre = "<" Spnl ("pre" | "PRE") Spnl HtmlAttribute* ">"
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#6183
+ def _HtmlBlockOpenPre; end
+
+ # HtmlBlockOpenScript = "<" Spnl ("script" | "SCRIPT") Spnl HtmlAttribute* ">"
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#8341
+ def _HtmlBlockOpenScript; end
+
+ # HtmlBlockOpenTable = "<" Spnl ("table" | "TABLE") Spnl HtmlAttribute* ">"
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#6349
+ def _HtmlBlockOpenTable; end
+
+ # HtmlBlockOpenTbody = "<" Spnl ("tbody" | "TBODY") Spnl HtmlAttribute* ">"
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#7345
+ def _HtmlBlockOpenTbody; end
+
+ # HtmlBlockOpenTd = "<" Spnl ("td" | "TD") Spnl HtmlAttribute* ">"
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#7511
+ def _HtmlBlockOpenTd; end
+
+ # HtmlBlockOpenTfoot = "<" Spnl ("tfoot" | "TFOOT") Spnl HtmlAttribute* ">"
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#7677
+ def _HtmlBlockOpenTfoot; end
+
+ # HtmlBlockOpenTh = "<" Spnl ("th" | "TH") Spnl HtmlAttribute* ">"
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#7843
+ def _HtmlBlockOpenTh; end
+
+ # HtmlBlockOpenThead = "<" Spnl ("thead" | "THEAD") Spnl HtmlAttribute* ">"
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#8009
+ def _HtmlBlockOpenThead; end
+
+ # HtmlBlockOpenTr = "<" Spnl ("tr" | "TR") Spnl HtmlAttribute* ">"
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#8175
+ def _HtmlBlockOpenTr; end
+
+ # HtmlBlockOpenUl = "<" Spnl ("ul" | "UL") Spnl HtmlAttribute* ">"
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#6515
+ def _HtmlBlockOpenUl; end
+
+ # HtmlBlockP = HtmlBlockOpenP (HtmlBlockP | !HtmlBlockCloseP .)* HtmlBlockCloseP
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#6125
+ def _HtmlBlockP; end
+
+ # HtmlBlockPre = HtmlBlockOpenPre (HtmlBlockPre | !HtmlBlockClosePre .)* HtmlBlockClosePre
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#6291
+ def _HtmlBlockPre; end
+
+ # HtmlBlockScript = HtmlBlockOpenScript (!HtmlBlockCloseScript .)* HtmlBlockCloseScript
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#8449
+ def _HtmlBlockScript; end
+
+ # HtmlBlockSelfClosing = "<" Spnl HtmlBlockType Spnl HtmlAttribute* "/" Spnl ">"
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#8896
+ def _HtmlBlockSelfClosing; end
+
+ # HtmlBlockTable = HtmlBlockOpenTable (HtmlBlockTable | !HtmlBlockCloseTable .)* HtmlBlockCloseTable
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#6457
+ def _HtmlBlockTable; end
+
+ # HtmlBlockTbody = HtmlBlockOpenTbody (HtmlBlockTbody | !HtmlBlockCloseTbody .)* HtmlBlockCloseTbody
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#7453
+ def _HtmlBlockTbody; end
+
+ # HtmlBlockTd = HtmlBlockOpenTd (HtmlBlockTd | !HtmlBlockCloseTd .)* HtmlBlockCloseTd
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#7619
+ def _HtmlBlockTd; end
+
+ # HtmlBlockTfoot = HtmlBlockOpenTfoot (HtmlBlockTfoot | !HtmlBlockCloseTfoot .)* HtmlBlockCloseTfoot
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#7785
+ def _HtmlBlockTfoot; end
+
+ # HtmlBlockTh = HtmlBlockOpenTh (HtmlBlockTh | !HtmlBlockCloseTh .)* HtmlBlockCloseTh
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#7951
+ def _HtmlBlockTh; end
+
+ # HtmlBlockThead = HtmlBlockOpenThead (HtmlBlockThead | !HtmlBlockCloseThead .)* HtmlBlockCloseThead
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#8117
+ def _HtmlBlockThead; end
+
+ # HtmlBlockTr = HtmlBlockOpenTr (HtmlBlockTr | !HtmlBlockCloseTr .)* HtmlBlockCloseTr
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#8283
+ def _HtmlBlockTr; end
+
+ # HtmlBlockType = ("ADDRESS" | "BLOCKQUOTE" | "CENTER" | "DD" | "DIR" | "DIV" | "DL" | "DT" | "FIELDSET" | "FORM" | "FRAMESET" | "H1" | "H2" | "H3" | "H4" | "H5" | "H6" | "HR" | "ISINDEX" | "LI" | "MENU" | "NOFRAMES" | "NOSCRIPT" | "OL" | "P" | "PRE" | "SCRIPT" | "TABLE" | "TBODY" | "TD" | "TFOOT" | "TH" | "THEAD" | "TR" | "UL" | "address" | "blockquote" | "center" | "dd" | "dir" | "div" | "dl" | "dt" | "fieldset" | "form" | "frameset" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "hr" | "isindex" | "li" | "menu" | "noframes" | "noscript" | "ol" | "p" | "pre" | "script" | "table" | "tbody" | "td" | "tfoot" | "th" | "thead" | "tr" | "ul")
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#8951
+ def _HtmlBlockType; end
+
+ # HtmlBlockUl = HtmlBlockOpenUl (HtmlBlockUl | !HtmlBlockCloseUl .)* HtmlBlockCloseUl
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#6623
+ def _HtmlBlockUl; end
+
+ # HtmlCloseAnchor = "<" Spnl "/" ("a" | "A") Spnl ">"
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#2919
+ def _HtmlCloseAnchor; end
+
+ # HtmlComment = "" .)* "-->"
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#14415
+ def _HtmlComment; end
+
+ # HtmlOpenAnchor = "<" Spnl ("a" | "A") Spnl HtmlAttribute* ">"
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#2863
+ def _HtmlOpenAnchor; end
+
+ # HtmlTag = "<" Spnl "/"? AlphanumericAscii+ Spnl HtmlAttribute* "/"? Spnl ">"
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#14462
+ def _HtmlTag; end
+
+ # HtmlUnclosed = "<" Spnl HtmlUnclosedType Spnl HtmlAttribute* Spnl ">"
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#8828
+ def _HtmlUnclosed; end
+
+ # HtmlUnclosedType = ("HR" | "hr")
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#8878
+ def _HtmlUnclosedType; end
+
+ # Image = "!" (ExplicitLink | ReferenceLink):a { "rdoc-image:#{a[/\[(.*)\]/, 1]}" }
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#10972
+ def _Image; end
+
+ # InStyleTags = StyleOpen (!StyleClose .)* StyleClose
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#9281
+ def _InStyleTags; end
+
+ # Indent = /\t| /
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#14860
+ def _Indent; end
+
+ # IndentedLine = Indent Line
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#14867
+ def _IndentedLine; end
+
+ # Inline = (Str | @Endline | UlOrStarLine | @Space | Strong | Emph | Strike | Image | Link | NoteReference | InlineNote | Code | RawHtml | Entity | EscapedChar | Symbol)
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#9586
+ def _Inline; end
+
+ # InlineNote = &{ notes? } "^[" @StartList:a (!"]" Inline:l { a << l })+ "]" { ref = [:inline, @note_order.length] @footnotes[ref] = paragraph a note_for ref }
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#15431
+ def _InlineNote; end
+
+ # Inlines = (!@Endline Inline:i { i } | @Endline:c !(&{ github? } Ticks3 /[^`\n]*$/) &Inline { c })+:chunks @Endline? { chunks }
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#9365
+ def _Inlines; end
+
+ # Label = "[" (!"^" &{ notes? } | &. &{ !notes? }) @StartList:a (!"]" Inline:l { a << l })* "]" { a.join.gsub(/\s+/, ' ') }
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#11907
+ def _Label; end
+
+ # Line = @RawLine:a { a }
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#14938
+ def _Line; end
+
+ # LineBreak = " " @NormalEndline { RDoc::Markup::HardBreak.new }
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#10042
+ def _LineBreak; end
+
+ # Link = (ExplicitLink | ReferenceLink | AutoLink)
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#11011
+ def _Link; end
+
+ # ListBlock = !@BlankLine Line:a ListBlockLine*:c { [a, *c] }
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#2548
+ def _ListBlock; end
+
+ # ListBlockLine = !@BlankLine !(Indent? (Bullet | Enumerator)) !HorizontalRule OptionallyIndentedLine
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#2793
+ def _ListBlockLine; end
+
+ # ListContinuationBlock = @StartList:a @BlankLine* { a << "\n" } (Indent ListBlock:b { a.concat b })+ { a }
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#2592
+ def _ListContinuationBlock; end
+
+ # ListItem = (Bullet | Enumerator) @StartList:a ListBlock:b { a << b } (ListContinuationBlock:c { a.push(*c) })* { list_item_from a }
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#2392
+ def _ListItem; end
+
+ # ListItemTight = (Bullet | Enumerator) ListBlock:a (!@BlankLine ListContinuationBlock:b { a.push(*b) })* !ListContinuationBlock { list_item_from a }
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#2468
+ def _ListItemTight; end
+
+ # ListLoose = @StartList:a (ListItem:b @BlankLine* { a << b })+ { a }
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#2304
+ def _ListLoose; end
+
+ # ListTight = ListItemTight+:a @BlankLine* !(Bullet | Enumerator) { a }
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#2239
+ def _ListTight; end
+
+ # Newline = %literals.Newline
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#14726
+ def _Newline; end
+
+ # NonblankIndentedLine = !@BlankLine IndentedLine
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#1821
+ def _NonblankIndentedLine; end
+
+ # NonindentSpace = / {0,3}/
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#14853
+ def _NonindentSpace; end
+
+ # Nonspacechar = !@Spacechar !@Newline .
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#14552
+ def _Nonspacechar; end
+
+ # NormalChar = !(@SpecialChar | @Spacechar | @Newline) .
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#14653
+ def _NormalChar; end
+
+ # NormalEndline = @Sp @Newline !@BlankLine !">" !AtxStart !(Line /={1,}|-{1,}/ @Newline) { "\n" }
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#9938
+ def _NormalEndline; end
+
+ # Note = &{ notes? } @NonindentSpace RawNoteReference:ref ":" @Sp @StartList:a RawNoteBlock:i { a.concat i } (&Indent RawNoteBlock:i { a.concat i })* { @footnotes[ref] = paragraph a nil }
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#15333
+ def _Note; end
+
+ # NoteReference = &{ notes? } RawNoteReference:ref { note_for ref }
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#15207
+ def _NoteReference; end
+
+ # Notes = (Note | SkipBlock)*
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#15538
+ def _Notes; end
+
+ # OptionallyIndentedLine = Indent? Line
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#14888
+ def _OptionallyIndentedLine; end
+
+ # OrderedList = &Enumerator (ListTight | ListLoose):a { RDoc::Markup::List.new(:NUMBER, *a) }
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#2752
+ def _OrderedList; end
+
+ # Para = @NonindentSpace Inlines:a @BlankLine+ { paragraph a }
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#1014
+ def _Para; end
+
+ # Plain = Inlines:a { paragraph a }
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#1057
+ def _Plain; end
+
+ # Quoted = ("\"" (!"\"" .)* "\"" | "'" (!"'" .)* "'")
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#14175
+ def _Quoted; end
+
+ # RawHtml = < (HtmlComment | HtmlBlockScript | HtmlTag) > { if html? then text else '' end }
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#14108
+ def _RawHtml; end
+
+ # RawLine = (< /[^\r\n]*/ @Newline > | < .+ > @Eof) { text }
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#14961
+ def _RawLine; end
+
+ # RawNoteBlock = @StartList:a (!@BlankLine !RawNoteReference OptionallyIndentedLine:l { a << l })+ < @BlankLine* > { a << text } { a }
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#15560
+ def _RawNoteBlock; end
+
+ # RawNoteReference = "[^" < (!@Newline !"]" .)+ > "]" { text }
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#15237
+ def _RawNoteReference; end
+
+ # RefSrc = < Nonspacechar+ > { text }
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#12026
+ def _RefSrc; end
+
+ # RefTitle = (RefTitleSingle | RefTitleDouble | RefTitleParens | EmptyTitle)
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#12062
+ def _RefTitle; end
+
+ # RefTitleDouble = Spnl "\"" < (!("\"" @Sp @Newline | @Newline) .)* > "\"" { text }
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#12185
+ def _RefTitleDouble; end
+
+ # RefTitleParens = Spnl "(" < (!(")" @Sp @Newline | @Newline) .)* > ")" { text }
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#12277
+ def _RefTitleParens; end
+
+ # RefTitleSingle = Spnl "'" < (!("'" @Sp @Newline | @Newline) .)* > "'" { text }
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#12093
+ def _RefTitleSingle; end
+
+ # Reference = @NonindentSpace !"[]" Label:label ":" Spnl RefSrc:link RefTitle @BlankLine+ { # TODO use title reference label, link nil }
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#11832
+ def _Reference; end
+
+ # ReferenceLink = (ReferenceLinkDouble | ReferenceLinkSingle)
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#11032
+ def _ReferenceLink; end
+
+ # ReferenceLinkDouble = Label:content < Spnl > !"[]" Label:label { link_to content, label, text }
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#11050
+ def _ReferenceLinkDouble; end
+
+ # ReferenceLinkSingle = Label:content < (Spnl "[]")? > { link_to content, content, text }
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#11096
+ def _ReferenceLinkSingle; end
+
+ # References = (Reference | SkipBlock)*
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#12369
+ def _References; end
+
+ # SetextBottom1 = /={1,}/ @Newline
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#1262
+ def _SetextBottom1; end
+
+ # SetextBottom2 = /-{1,}/ @Newline
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#1283
+ def _SetextBottom2; end
+
+ # SetextHeading = (SetextHeading1 | SetextHeading2)
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#1244
+ def _SetextHeading; end
+
+ # SetextHeading1 = &(@RawLine SetextBottom1) @StartList:a (!@Endline Inline:b { a << b })+ @Sp @Newline SetextBottom1 { RDoc::Markup::Heading.new(1, a.join) }
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#1304
+ def _SetextHeading1; end
+
+ # SetextHeading2 = &(@RawLine SetextBottom2) @StartList:a (!@Endline Inline:b { a << b })+ @Sp @Newline SetextBottom2 { RDoc::Markup::Heading.new(2, a.join) }
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#1426
+ def _SetextHeading2; end
+
+ # SkipBlock = (HtmlBlock | (!"#" !SetextBottom1 !SetextBottom2 !@BlankLine @RawLine)+ @BlankLine* | @BlankLine+ | @RawLine)
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#15040
+ def _SkipBlock; end
+
+ # Source = ("<" < SourceContents > ">" | < SourceContents >) { text }
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#11206
+ def _Source; end
+
+ # SourceContents = ((!"(" !")" !">" Nonspacechar)+ | "(" SourceContents ")")*
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#11266
+ def _SourceContents; end
+
+ # Sp = @Spacechar*
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#14584
+ def _Sp; end
+
+ # Space = @Spacechar+ { " " }
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#9646
+ def _Space; end
+
+ # Spacechar = %literals.Spacechar
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#14733
+ def _Spacechar; end
+
+ # SpecialChar = (/[~*_`&\[\]() { text } | < @Spacechar /\*+/ &@Spacechar > { text })
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#10129
+ def _StarLine; end
+
+ # StartList = &. { [] }
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#14914
+ def _StartList; end
+
+ # Str = @StartList:a < @NormalChar+ > { a = text } (StrChunk:c { a << c })* { a }
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#9678
+ def _Str; end
+
+ # StrChunk = < (@NormalChar | /_+/ &Alphanumeric)+ > { text }
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#9751
+ def _StrChunk; end
+
+ # Strike = &{ strike? } "~~" !@Whitespace @StartList:a (!"~~" Inline:b { a << b })+ "~~" { strike a.join }
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#10861
+ def _Strike; end
+
+ # Strong = (StrongStar | StrongUl)
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#10635
+ def _Strong; end
+
+ # StrongStar = "**" !@Whitespace @StartList:a (!"**" Inline:b { a << b })+ "**" { strong a.join }
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#10653
+ def _StrongStar; end
+
+ # StrongUl = "__" !@Whitespace @StartList:a (!"__" Inline:b { a << b })+ "__" { strong a.join }
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#10757
+ def _StrongUl; end
+
+ # StyleBlock = < InStyleTags > @BlankLine* { if css? then RDoc::Markup::Raw.new text end }
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#9328
+ def _StyleBlock; end
+
+ # StyleClose = "<" Spnl "/" ("style" | "STYLE") Spnl ">"
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#9229
+ def _StyleClose; end
+
+ # StyleOpen = "<" Spnl ("style" | "STYLE") Spnl HtmlAttribute* ">"
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#9173
+ def _StyleOpen; end
+
+ # Symbol = < @SpecialChar > { text }
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#10069
+ def _Symbol; end
+
+ # Table = &{ github? } TableHead:header TableLine:line TableRow+:body { table = RDoc::Markup::Table.new(header, line, body) }
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#15937
+ def _Table; end
+
+ # TableAlign = < /:?-+:?/ > @Sp { text.start_with?(":") ? (text.end_with?(":") ? :center : :left) : (text.end_with?(":") ? :right : nil) }
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#16304
+ def _TableAlign; end
+
+ # TableAlign2 = "|" @Sp TableAlign
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#16278
+ def _TableAlign2; end
+
+ # TableHead = TableItem2+:items "|"? @Newline { items }
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#15993
+ def _TableHead; end
+
+ # TableItem = < /(?:\\.|[^|\n])+/ > { text.strip.gsub(/\\(.)/, '\1') }
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#16159
+ def _TableItem; end
+
+ # TableItem2 = "|" TableItem
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#16138
+ def _TableItem2; end
+
+ # TableLine = ((TableAlign:align1 TableAlign2*:aligns {[align1, *aligns] }):line | TableAlign2+:line) "|"? @Newline { line }
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#16185
+ def _TableLine; end
+
+ # TableRow = ((TableItem:item1 TableItem2*:items { [item1, *items] }):row | TableItem2+:row) "|"? @Newline { row }
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#16045
+ def _TableRow; end
+
+ # TerminalEndline = @Sp @Newline @Eof
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#10016
+ def _TerminalEndline; end
+
+ # Ticks1 = "`" !"`"
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#12391
+ def _Ticks1; end
+
+ # Ticks2 = "``" !"`"
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#12415
+ def _Ticks2; end
+
+ # Ticks3 = "```" !"`"
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#12439
+ def _Ticks3; end
+
+ # Ticks4 = "````" !"`"
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#12463
+ def _Ticks4; end
+
+ # Ticks5 = "`````" !"`"
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#12487
+ def _Ticks5; end
+
+ # Title = (TitleSingle | TitleDouble | ""):a { a }
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#11383
+ def _Title; end
+
+ # TitleDouble = "\"" (!("\"" @Sp (")" | @Newline)) .)* "\""
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#11497
+ def _TitleDouble; end
+
+ # TitleSingle = "'" (!("'" @Sp (")" | @Newline)) .)* "'"
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#11420
+ def _TitleSingle; end
+
+ # UlLine = (< /_{4,}/ > { text } | < @Spacechar /_+/ &@Spacechar > { text })
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#10206
+ def _UlLine; end
+
+ # UlOrStarLine = (UlLine | StarLine):a { a }
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#10095
+ def _UlOrStarLine; end
+
+ # Verbatim = VerbatimChunk+:a { RDoc::Markup::Verbatim.new(*a.flatten) }
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#1895
+ def _Verbatim; end
+
+ # VerbatimChunk = @BlankLine*:a NonblankIndentedLine+:b { a.concat b }
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#1845
+ def _VerbatimChunk; end
+
+ # Whitespace = (@Spacechar | @Newline)
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#10301
+ def _Whitespace; end
+
+ # root = Doc
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#892
+ def _root; end
+
+ # source://rdoc//lib/rdoc/markdown.rb#502
+ def apply(rule); end
+
+ # source://rdoc//lib/rdoc/markdown.rb#468
+ def apply_with_args(rule, *args); end
+
+ # source://rdoc//lib/rdoc/markdown.rb#610
+ def break_on_newline=(enable); end
+
+ # source://rdoc//lib/rdoc/markdown.rb#606
+ def break_on_newline?; end
+
+ # source://rdoc//lib/rdoc/markdown.rb#610
+ def css=(enable); end
+
+ # source://rdoc//lib/rdoc/markdown.rb#606
+ def css?; end
+
+ # source://rdoc//lib/rdoc/markdown.rb#250
+ def current_character(target = T.unsafe(nil)); end
+
+ # source://rdoc//lib/rdoc/markdown.rb#211
+ def current_column(target = T.unsafe(nil)); end
+
+ # source://rdoc//lib/rdoc/markdown.rb#234
+ def current_line(target = T.unsafe(nil)); end
+
+ # source://rdoc//lib/rdoc/markdown.rb#259
+ def current_pos_info(target = T.unsafe(nil)); end
+
+ # source://rdoc//lib/rdoc/markdown.rb#610
+ def definition_lists=(enable); end
+
+ # source://rdoc//lib/rdoc/markdown.rb#606
+ def definition_lists?; end
+
+ # Wraps `text` in emphasis for rdoc inline formatting
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#683
+ def emphasis(text); end
+
+ # :category: Extensions
+ #
+ # Enables or disables the extension with `name`
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#705
+ def extension(name, enable); end
+
+ # :category: Extensions
+ #
+ # Is the extension `name` enabled?
+ #
+ # @return [Boolean]
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#696
+ def extension?(name); end
+
+ # source://rdoc//lib/rdoc/markdown.rb#449
+ def external_invoke(other, rule, *args); end
+
+ # Returns the value of attribute failed_rule.
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#371
+ def failed_rule; end
+
+ # Returns the value of attribute failing_rule_offset.
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#208
+ def failing_rule_offset; end
+
+ # source://rdoc//lib/rdoc/markdown.rb#318
+ def failure_caret; end
+
+ # source://rdoc//lib/rdoc/markdown.rb#323
+ def failure_character; end
+
+ # source://rdoc//lib/rdoc/markdown.rb#306
+ def failure_info; end
+
+ # source://rdoc//lib/rdoc/markdown.rb#327
+ def failure_oneline; end
+
+ # source://rdoc//lib/rdoc/markdown.rb#393
+ def get_byte; end
+
+ # source://rdoc//lib/rdoc/markdown.rb#271
+ def get_line(no); end
+
+ # source://rdoc//lib/rdoc/markdown.rb#285
+ def get_text(start); end
+
+ # source://rdoc//lib/rdoc/markdown.rb#610
+ def github=(enable); end
+
+ # source://rdoc//lib/rdoc/markdown.rb#606
+ def github?; end
+
+ # source://rdoc//lib/rdoc/markdown.rb#535
+ def grow_lr(rule, args, start_pos, m); end
+
+ # source://rdoc//lib/rdoc/markdown.rb#610
+ def html=(enable); end
+
+ # source://rdoc//lib/rdoc/markdown.rb#606
+ def html?; end
+
+ # Parses `text` in a clone of this parser. This is used for handling nested
+ # lists the same way as markdown_parser.
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#717
+ def inner_parse(text); end
+
+ # source://rdoc//lib/rdoc/markdown.rb#267
+ def lines; end
+
+ # Finds a link reference for `label` and creates a new link to it with
+ # `content` as the link text. If `label` was not encountered in the
+ # reference-gathering parser pass the label and content are reconstructed
+ # with the linking `text` (usually whitespace).
+ #
+ # @raise [ParseError]
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#737
+ def link_to(content, label = T.unsafe(nil), text = T.unsafe(nil)); end
+
+ # Creates an RDoc::Markup::ListItem by parsing the `unparsed` content from
+ # the first parsing pass.
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#754
+ def list_item_from(unparsed); end
+
+ # source://rdoc//lib/rdoc/markdown.rb#373
+ def match_string(str); end
+
+ # Stores `label` as a note and fills in previously unknown note references.
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#762
+ def note(label); end
+
+ # Creates a new link for the footnote `reference` and adds the reference to
+ # the note order list for proper display at the end of the document.
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#776
+ def note_for(ref); end
+
+ # source://rdoc//lib/rdoc/markdown.rb#610
+ def notes=(enable); end
+
+ # source://rdoc//lib/rdoc/markdown.rb#606
+ def notes?; end
+
+ # Creates an RDoc::Markup::Paragraph from `parts` and including
+ # extension-specific behavior
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#793
+ def paragraph(parts); end
+
+ # Parses `markdown` into an RDoc::Document
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#808
+ def parse(markdown); end
+
+ # The internal kpeg parse method
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#414
+ def peg_parse(rule = T.unsafe(nil)); end
+
+ # Returns the value of attribute pos.
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#209
+ def pos; end
+
+ # Sets the attribute pos
+ #
+ # @param value the value to set the attribute pos to.
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#209
+ def pos=(_arg0); end
+
+ # source://rdoc//lib/rdoc/markdown.rb#221
+ def position_line_offsets; end
+
+ # @raise [ParseError]
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#341
+ def raise_error; end
+
+ # Stores `label` as a reference to `link` and fills in previously unknown
+ # link references.
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#855
+ def reference(label, link); end
+
+ # Returns the value of attribute result.
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#209
+ def result; end
+
+ # Sets the attribute result
+ #
+ # @param value the value to set the attribute result to.
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#209
+ def result=(_arg0); end
+
+ # source://rdoc//lib/rdoc/markdown.rb#383
+ def scan(reg); end
+
+ # source://rdoc//lib/rdoc/markdown.rb#364
+ def set_failed_rule(name); end
+
+ # Sets the string and current parsing position for the parser.
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#290
+ def set_string(string, pos); end
+
+ # :stopdoc:
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#887
+ def setup_foreign_grammar; end
+
+ # Prepares for parsing +str+. If you define a custom initialize you must
+ # call this method before #parse
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#196
+ def setup_parser(str, debug = T.unsafe(nil)); end
+
+ # source://rdoc//lib/rdoc/markdown.rb#345
+ def show_error(io = T.unsafe(nil)); end
+
+ # source://rdoc//lib/rdoc/markdown.rb#297
+ def show_pos; end
+
+ # Wraps `text` in strike markup for rdoc inline formatting
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#877
+ def strike(text); end
+
+ # source://rdoc//lib/rdoc/markdown.rb#610
+ def strike=(enable); end
+
+ # source://rdoc//lib/rdoc/markdown.rb#606
+ def strike?; end
+
+ # Returns the value of attribute string.
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#207
+ def string; end
+
+ # Wraps `text` in strong markup for rdoc inline formatting
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#866
+ def strong(text); end
+
+ private
+
+ # This is distinct from setup_parser so that a standalone parser
+ # can redefine #initialize and still have access to the proper
+ # parser setup code.
+ # TODO remove when kpeg 0.10 is released
+ #
+ # @return [Markdown] a new instance of Markdown
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#188
+ def orig_initialize(str, debug = T.unsafe(nil)); end
+
+ class << self
+ # Creates extension methods for the `name` extension to enable and disable
+ # the extension and to query if they are active.
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#603
+ def extension(name); end
+
+ # Parses the `markdown` document into an RDoc::Document using the default
+ # extensions.
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#656
+ def parse(markdown); end
+
+ # source://rdoc//lib/rdoc/markdown.rb#566
+ def rule_info(name, rendered); end
+ end
+end
+
+# source://rdoc//lib/rdoc/markdown.rb#257
+class RDoc::Markdown::KpegPosInfo < ::Struct
+ # Returns the value of attribute char
+ #
+ # @return [Object] the current value of char
+ def char; end
+
+ # Sets the attribute char
+ #
+ # @param value [Object] the value to set the attribute char to.
+ # @return [Object] the newly set value
+ def char=(_); end
+
+ # Returns the value of attribute col
+ #
+ # @return [Object] the current value of col
+ def col; end
+
+ # Sets the attribute col
+ #
+ # @param value [Object] the value to set the attribute col to.
+ # @return [Object] the newly set value
+ def col=(_); end
+
+ # Returns the value of attribute line
+ #
+ # @return [Object] the current value of line
+ def line; end
+
+ # Sets the attribute line
+ #
+ # @param value [Object] the value to set the attribute line to.
+ # @return [Object] the newly set value
+ def line=(_); end
+
+ # Returns the value of attribute lno
+ #
+ # @return [Object] the current value of lno
+ def lno; end
+
+ # Sets the attribute lno
+ #
+ # @param value [Object] the value to set the attribute lno to.
+ # @return [Object] the newly set value
+ def lno=(_); end
+
+ # Returns the value of attribute pos
+ #
+ # @return [Object] the current value of pos
+ def pos; end
+
+ # Sets the attribute pos
+ #
+ # @param value [Object] the value to set the attribute pos to.
+ # @return [Object] the newly set value
+ def pos=(_); end
+
+ class << self
+ def [](*_arg0); end
+ def inspect; end
+ def keyword_init?; end
+ def members; end
+ def new(*_arg0); end
+ end
+end
+
+# This set of literals is for Ruby 1.9 regular expressions and gives full
+# unicode support.
+#
+# Unlike peg-markdown, this set of literals recognizes Unicode alphanumeric
+# characters, newlines and spaces.
+#
+# source://rdoc//lib/rdoc/markdown/literals.rb#11
+class RDoc::Markdown::Literals
+ # This is distinct from setup_parser so that a standalone parser
+ # can redefine #initialize and still have access to the proper
+ # parser setup code.
+ #
+ # @return [Literals] a new instance of Literals
+ #
+ # source://rdoc//lib/rdoc/markdown/literals.rb#17
+ def initialize(str, debug = T.unsafe(nil)); end
+
+ # Alphanumeric = /\p{Word}/
+ #
+ # source://rdoc//lib/rdoc/markdown/literals.rb#405
+ def _Alphanumeric; end
+
+ # AlphanumericAscii = /[A-Za-z0-9]/
+ #
+ # source://rdoc//lib/rdoc/markdown/literals.rb#412
+ def _AlphanumericAscii; end
+
+ # BOM = "uFEFF"
+ #
+ # source://rdoc//lib/rdoc/markdown/literals.rb#419
+ def _BOM; end
+
+ # Newline = /\n|\r\n?|\p{Zl}|\p{Zp}/
+ #
+ # source://rdoc//lib/rdoc/markdown/literals.rb#426
+ def _Newline; end
+
+ # NonAlphanumeric = /\p{^Word}/
+ #
+ # source://rdoc//lib/rdoc/markdown/literals.rb#433
+ def _NonAlphanumeric; end
+
+ # Spacechar = /\t|\p{Zs}/
+ #
+ # source://rdoc//lib/rdoc/markdown/literals.rb#440
+ def _Spacechar; end
+
+ # source://rdoc//lib/rdoc/markdown/literals.rb#331
+ def apply(rule); end
+
+ # source://rdoc//lib/rdoc/markdown/literals.rb#297
+ def apply_with_args(rule, *args); end
+
+ # source://rdoc//lib/rdoc/markdown/literals.rb#79
+ def current_character(target = T.unsafe(nil)); end
+
+ # source://rdoc//lib/rdoc/markdown/literals.rb#40
+ def current_column(target = T.unsafe(nil)); end
+
+ # source://rdoc//lib/rdoc/markdown/literals.rb#63
+ def current_line(target = T.unsafe(nil)); end
+
+ # source://rdoc//lib/rdoc/markdown/literals.rb#88
+ def current_pos_info(target = T.unsafe(nil)); end
+
+ # source://rdoc//lib/rdoc/markdown/literals.rb#278
+ def external_invoke(other, rule, *args); end
+
+ # Returns the value of attribute failed_rule.
+ #
+ # source://rdoc//lib/rdoc/markdown/literals.rb#200
+ def failed_rule; end
+
+ # Returns the value of attribute failing_rule_offset.
+ #
+ # source://rdoc//lib/rdoc/markdown/literals.rb#37
+ def failing_rule_offset; end
+
+ # source://rdoc//lib/rdoc/markdown/literals.rb#147
+ def failure_caret; end
+
+ # source://rdoc//lib/rdoc/markdown/literals.rb#152
+ def failure_character; end
+
+ # source://rdoc//lib/rdoc/markdown/literals.rb#135
+ def failure_info; end
+
+ # source://rdoc//lib/rdoc/markdown/literals.rb#156
+ def failure_oneline; end
+
+ # source://rdoc//lib/rdoc/markdown/literals.rb#222
+ def get_byte; end
+
+ # source://rdoc//lib/rdoc/markdown/literals.rb#100
+ def get_line(no); end
+
+ # source://rdoc//lib/rdoc/markdown/literals.rb#114
+ def get_text(start); end
+
+ # source://rdoc//lib/rdoc/markdown/literals.rb#364
+ def grow_lr(rule, args, start_pos, m); end
+
+ # source://rdoc//lib/rdoc/markdown/literals.rb#96
+ def lines; end
+
+ # source://rdoc//lib/rdoc/markdown/literals.rb#202
+ def match_string(str); end
+
+ # source://rdoc//lib/rdoc/markdown/literals.rb#243
+ def parse(rule = T.unsafe(nil)); end
+
+ # Returns the value of attribute pos.
+ #
+ # source://rdoc//lib/rdoc/markdown/literals.rb#38
+ def pos; end
+
+ # Sets the attribute pos
+ #
+ # @param value the value to set the attribute pos to.
+ #
+ # source://rdoc//lib/rdoc/markdown/literals.rb#38
+ def pos=(_arg0); end
+
+ # source://rdoc//lib/rdoc/markdown/literals.rb#50
+ def position_line_offsets; end
+
+ # @raise [ParseError]
+ #
+ # source://rdoc//lib/rdoc/markdown/literals.rb#170
+ def raise_error; end
+
+ # Returns the value of attribute result.
+ #
+ # source://rdoc//lib/rdoc/markdown/literals.rb#38
+ def result; end
+
+ # Sets the attribute result
+ #
+ # @param value the value to set the attribute result to.
+ #
+ # source://rdoc//lib/rdoc/markdown/literals.rb#38
+ def result=(_arg0); end
+
+ # source://rdoc//lib/rdoc/markdown/literals.rb#212
+ def scan(reg); end
+
+ # source://rdoc//lib/rdoc/markdown/literals.rb#193
+ def set_failed_rule(name); end
+
+ # Sets the string and current parsing position for the parser.
+ #
+ # source://rdoc//lib/rdoc/markdown/literals.rb#119
+ def set_string(string, pos); end
+
+ # :startdoc:
+ # :stopdoc:
+ #
+ # source://rdoc//lib/rdoc/markdown/literals.rb#402
+ def setup_foreign_grammar; end
+
+ # Prepares for parsing +str+. If you define a custom initialize you must
+ # call this method before #parse
+ #
+ # source://rdoc//lib/rdoc/markdown/literals.rb#25
+ def setup_parser(str, debug = T.unsafe(nil)); end
+
+ # source://rdoc//lib/rdoc/markdown/literals.rb#174
+ def show_error(io = T.unsafe(nil)); end
+
+ # source://rdoc//lib/rdoc/markdown/literals.rb#126
+ def show_pos; end
+
+ # Returns the value of attribute string.
+ #
+ # source://rdoc//lib/rdoc/markdown/literals.rb#36
+ def string; end
+
+ class << self
+ # source://rdoc//lib/rdoc/markdown/literals.rb#395
+ def rule_info(name, rendered); end
+ end
+end
+
+# source://rdoc//lib/rdoc/markdown/literals.rb#86
+class RDoc::Markdown::Literals::KpegPosInfo < ::Struct
+ # Returns the value of attribute char
+ #
+ # @return [Object] the current value of char
+ def char; end
+
+ # Sets the attribute char
+ #
+ # @param value [Object] the value to set the attribute char to.
+ # @return [Object] the newly set value
+ def char=(_); end
+
+ # Returns the value of attribute col
+ #
+ # @return [Object] the current value of col
+ def col; end
+
+ # Sets the attribute col
+ #
+ # @param value [Object] the value to set the attribute col to.
+ # @return [Object] the newly set value
+ def col=(_); end
+
+ # Returns the value of attribute line
+ #
+ # @return [Object] the current value of line
+ def line; end
+
+ # Sets the attribute line
+ #
+ # @param value [Object] the value to set the attribute line to.
+ # @return [Object] the newly set value
+ def line=(_); end
+
+ # Returns the value of attribute lno
+ #
+ # @return [Object] the current value of lno
+ def lno; end
+
+ # Sets the attribute lno
+ #
+ # @param value [Object] the value to set the attribute lno to.
+ # @return [Object] the newly set value
+ def lno=(_); end
+
+ # Returns the value of attribute pos
+ #
+ # @return [Object] the current value of pos
+ def pos; end
+
+ # Sets the attribute pos
+ #
+ # @param value [Object] the value to set the attribute pos to.
+ # @return [Object] the newly set value
+ def pos=(_); end
+
+ class << self
+ def [](*_arg0); end
+ def inspect; end
+ def keyword_init?; end
+ def members; end
+ def new(*_arg0); end
+ end
+end
+
+# source://rdoc//lib/rdoc/markdown/literals.rb#257
+class RDoc::Markdown::Literals::MemoEntry
+ # @return [MemoEntry] a new instance of MemoEntry
+ #
+ # source://rdoc//lib/rdoc/markdown/literals.rb#258
+ def initialize(ans, pos); end
+
+ # Returns the value of attribute ans.
+ #
+ # source://rdoc//lib/rdoc/markdown/literals.rb#266
+ def ans; end
+
+ # Returns the value of attribute left_rec.
+ #
+ # source://rdoc//lib/rdoc/markdown/literals.rb#267
+ def left_rec; end
+
+ # Sets the attribute left_rec
+ #
+ # @param value the value to set the attribute left_rec to.
+ #
+ # source://rdoc//lib/rdoc/markdown/literals.rb#267
+ def left_rec=(_arg0); end
+
+ # source://rdoc//lib/rdoc/markdown/literals.rb#269
+ def move!(ans, pos, result); end
+
+ # Returns the value of attribute pos.
+ #
+ # source://rdoc//lib/rdoc/markdown/literals.rb#266
+ def pos; end
+
+ # Returns the value of attribute result.
+ #
+ # source://rdoc//lib/rdoc/markdown/literals.rb#266
+ def result; end
+
+ # Returns the value of attribute set.
+ #
+ # source://rdoc//lib/rdoc/markdown/literals.rb#266
+ def set; end
+end
+
+# source://rdoc//lib/rdoc/markdown/literals.rb#386
+class RDoc::Markdown::Literals::RuleInfo
+ # @return [RuleInfo] a new instance of RuleInfo
+ #
+ # source://rdoc//lib/rdoc/markdown/literals.rb#387
+ def initialize(name, rendered); end
+
+ # Returns the value of attribute name.
+ #
+ # source://rdoc//lib/rdoc/markdown/literals.rb#392
+ def name; end
+
+ # Returns the value of attribute rendered.
+ #
+ # source://rdoc//lib/rdoc/markdown/literals.rb#392
+ def rendered; end
+end
+
+# source://rdoc//lib/rdoc/markdown.rb#428
+class RDoc::Markdown::MemoEntry
+ # @return [MemoEntry] a new instance of MemoEntry
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#429
+ def initialize(ans, pos); end
+
+ # Returns the value of attribute ans.
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#437
+ def ans; end
+
+ # Returns the value of attribute left_rec.
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#438
+ def left_rec; end
+
+ # Sets the attribute left_rec
+ #
+ # @param value the value to set the attribute left_rec to.
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#438
+ def left_rec=(_arg0); end
+
+ # source://rdoc//lib/rdoc/markdown.rb#440
+ def move!(ans, pos, result); end
+
+ # Returns the value of attribute pos.
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#437
+ def pos; end
+
+ # Returns the value of attribute result.
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#437
+ def result; end
+
+ # Returns the value of attribute set.
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#437
+ def set; end
+end
+
+# source://rdoc//lib/rdoc/markdown.rb#557
+class RDoc::Markdown::RuleInfo
+ # @return [RuleInfo] a new instance of RuleInfo
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#558
+ def initialize(name, rendered); end
+
+ # Returns the value of attribute name.
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#563
+ def name; end
+
+ # Returns the value of attribute rendered.
+ #
+ # source://rdoc//lib/rdoc/markdown.rb#563
+ def rendered; end
+end
+
+# source://rdoc//lib/rdoc/markup.rb#106
+class RDoc::Markup
+ # Take a block of text and use various heuristics to determine its
+ # structure (paragraphs, lists, and so on). Invoke an event handler as we
+ # identify significant chunks.
+ #
+ # @return [Markup] a new instance of Markup
+ #
+ # source://rdoc//lib/rdoc/markup.rb#146
+ def initialize(attribute_manager = T.unsafe(nil)); end
+
+ # Add to the sequences recognized as general markup.
+ #
+ # source://rdoc//lib/rdoc/markup.rb#163
+ def add_html(tag, name); end
+
+ # Add to other inline sequences. For example, we could add WikiWords using
+ # something like:
+ #
+ # parser.add_regexp_handling(/\b([A-Z][a-z]+[A-Z]\w+)/, :WIKIWORD)
+ #
+ # Each wiki word will be presented to the output formatter.
+ #
+ # source://rdoc//lib/rdoc/markup.rb#175
+ def add_regexp_handling(pattern, name); end
+
+ # Add to the sequences used to add formatting to an individual word (such
+ # as *bold*). Matching entries will generate attributes that the output
+ # formatters can recognize by their +name+.
+ #
+ # source://rdoc//lib/rdoc/markup.rb#156
+ def add_word_pair(start, stop, name); end
+
+ # An AttributeManager which handles inline markup.
+ #
+ # source://rdoc//lib/rdoc/markup.rb#111
+ def attribute_manager; end
+
+ # We take +input+, parse it if necessary, then invoke the output +formatter+
+ # using a Visitor to render the result.
+ #
+ # source://rdoc//lib/rdoc/markup.rb#183
+ def convert(input, formatter); end
+
+ class << self
+ # Parses +str+ into an RDoc::Markup::Document.
+ #
+ # source://rdoc//lib/rdoc/markup.rb#116
+ def parse(str); end
+ end
+end
+
+# An AttrChanger records a change in attributes. It contains a bitmap of the
+# attributes to turn on, and a bitmap of those to turn off.
+#
+# source://rdoc//lib/rdoc/markup/attr_changer.rb#4
+class RDoc::Markup::AttrChanger < ::Struct
+ # source://rdoc//lib/rdoc/markup/attr_changer.rb#18
+ def inspect; end
+
+ # source://rdoc//lib/rdoc/markup/attr_changer.rb#14
+ def to_s; end
+end
+
+# An array of attributes which parallels the characters in a string.
+#
+# source://rdoc//lib/rdoc/markup/attr_span.rb#5
+class RDoc::Markup::AttrSpan
+ # Creates a new AttrSpan for +length+ characters
+ #
+ # @return [AttrSpan] a new instance of AttrSpan
+ #
+ # source://rdoc//lib/rdoc/markup/attr_span.rb#10
+ def initialize(length, exclusive); end
+
+ # Accesses flags for character +n+
+ #
+ # source://rdoc//lib/rdoc/markup/attr_span.rb#31
+ def [](n); end
+
+ # Toggles +bits+ from +start+ to +length+
+ #
+ # source://rdoc//lib/rdoc/markup/attr_span.rb#17
+ def set_attrs(start, length, bits); end
+end
+
+# Manages changes of attributes in a block of text
+#
+# source://rdoc//lib/rdoc/markup/attribute_manager.rb#6
+class RDoc::Markup::AttributeManager
+ # Creates a new attribute manager that understands bold, emphasized and
+ # teletype text.
+ #
+ # @return [AttributeManager] a new instance of AttributeManager
+ #
+ # source://rdoc//lib/rdoc/markup/attribute_manager.rb#80
+ def initialize; end
+
+ # Adds a markup class with +name+ for words surrounded by HTML tag +tag+.
+ # To process emphasis tags:
+ #
+ # am.add_html 'em', :EM
+ #
+ # source://rdoc//lib/rdoc/markup/attribute_manager.rb#286
+ def add_html(tag, name, exclusive = T.unsafe(nil)); end
+
+ # Adds a regexp handling for +pattern+ with +name+. A simple URL handler
+ # would be:
+ #
+ # @am.add_regexp_handling(/((https?:)\S+\w)/, :HYPERLINK)
+ #
+ # source://rdoc//lib/rdoc/markup/attribute_manager.rb#298
+ def add_regexp_handling(pattern, name, exclusive = T.unsafe(nil)); end
+
+ # Adds a markup class with +name+ for words wrapped in the +start+ and
+ # +stop+ character. To make words wrapped with "*" bold:
+ #
+ # am.add_word_pair '*', '*', :BOLD
+ #
+ # @raise [ArgumentError]
+ #
+ # source://rdoc//lib/rdoc/markup/attribute_manager.rb#261
+ def add_word_pair(start, stop, name, exclusive = T.unsafe(nil)); end
+
+ # Return an attribute object with the given turn_on and turn_off bits set
+ #
+ # source://rdoc//lib/rdoc/markup/attribute_manager.rb#103
+ def attribute(turn_on, turn_off); end
+
+ # The attributes enabled for this markup object.
+ #
+ # source://rdoc//lib/rdoc/markup/attribute_manager.rb#40
+ def attributes; end
+
+ # Changes the current attribute from +current+ to +new+
+ #
+ # source://rdoc//lib/rdoc/markup/attribute_manager.rb#110
+ def change_attribute(current, new); end
+
+ # Used by the tests to change attributes by name from +current_set+ to
+ # +new_set+
+ #
+ # source://rdoc//lib/rdoc/markup/attribute_manager.rb#119
+ def changed_attribute_by_name(current_set, new_set); end
+
+ # Map attributes like textto the sequence
+ # \001\002\001\003, where is a per-attribute specific
+ # character
+ #
+ # source://rdoc//lib/rdoc/markup/attribute_manager.rb#154
+ def convert_attrs(str, attrs, exclusive = T.unsafe(nil)); end
+
+ # source://rdoc//lib/rdoc/markup/attribute_manager.rb#160
+ def convert_attrs_matching_word_pairs(str, attrs, exclusive); end
+
+ # source://rdoc//lib/rdoc/markup/attribute_manager.rb#185
+ def convert_attrs_word_pair_map(str, attrs, exclusive); end
+
+ # Converts HTML tags to RDoc attributes
+ #
+ # source://rdoc//lib/rdoc/markup/attribute_manager.rb#206
+ def convert_html(str, attrs, exclusive = T.unsafe(nil)); end
+
+ # Converts regexp handling sequences to RDoc attributes
+ #
+ # source://rdoc//lib/rdoc/markup/attribute_manager.rb#223
+ def convert_regexp_handlings(str, attrs, exclusive = T.unsafe(nil)); end
+
+ # Copies +start_pos+ to +end_pos+ from the current string
+ #
+ # source://rdoc//lib/rdoc/markup/attribute_manager.rb#135
+ def copy_string(start_pos, end_pos); end
+
+ # Debug method that prints a string along with its attributes
+ #
+ # source://rdoc//lib/rdoc/markup/attribute_manager.rb#329
+ def display_attributes; end
+
+ # @return [Boolean]
+ #
+ # source://rdoc//lib/rdoc/markup/attribute_manager.rb#142
+ def exclusive?(attr); end
+
+ # A bits of exclusive maps
+ #
+ # source://rdoc//lib/rdoc/markup/attribute_manager.rb#74
+ def exclusive_bitmap; end
+
+ # Processes +str+ converting attributes, HTML and regexp handlings
+ #
+ # source://rdoc//lib/rdoc/markup/attribute_manager.rb#307
+ def flow(str); end
+
+ # This maps HTML tags to the corresponding attribute char
+ #
+ # source://rdoc//lib/rdoc/markup/attribute_manager.rb#58
+ def html_tags; end
+
+ # Escapes regexp handling sequences of text to prevent conversion to RDoc
+ #
+ # source://rdoc//lib/rdoc/markup/attribute_manager.rb#239
+ def mask_protected_sequences; end
+
+ # This maps delimiters that occur around words (such as *bold* or +tt+)
+ # where the start and end delimiters and the same. This lets us optimize
+ # the regexp
+ #
+ # source://rdoc//lib/rdoc/markup/attribute_manager.rb#47
+ def matching_word_pairs; end
+
+ # A \ in front of a character that would normally be processed turns off
+ # processing. We do this by turning \< into <#{PROTECT}
+ #
+ # source://rdoc//lib/rdoc/markup/attribute_manager.rb#64
+ def protectable; end
+
+ # And this maps _regexp handling_ sequences to a name. A regexp handling
+ # sequence is something like a WikiWord
+ #
+ # source://rdoc//lib/rdoc/markup/attribute_manager.rb#70
+ def regexp_handlings; end
+
+ # Splits the string into chunks by attribute change
+ #
+ # source://rdoc//lib/rdoc/markup/attribute_manager.rb#354
+ def split_into_flow; end
+
+ # Unescapes regexp handling sequences of text
+ #
+ # source://rdoc//lib/rdoc/markup/attribute_manager.rb#251
+ def unmask_protected_sequences; end
+
+ # And this is used when the delimiters aren't the same. In this case the
+ # hash maps a pattern to the attribute character
+ #
+ # source://rdoc//lib/rdoc/markup/attribute_manager.rb#53
+ def word_pair_map; end
+end
+
+# source://rdoc//lib/rdoc/markup/attribute_manager.rb#147
+RDoc::Markup::AttributeManager::NON_PRINTING_END = T.let(T.unsafe(nil), String)
+
+# source://rdoc//lib/rdoc/markup/attribute_manager.rb#146
+RDoc::Markup::AttributeManager::NON_PRINTING_START = T.let(T.unsafe(nil), String)
+
+# We manage a set of attributes. Each attribute has a symbol name and a bit
+# value.
+#
+# source://rdoc//lib/rdoc/markup/attributes.rb#6
+class RDoc::Markup::Attributes
+ # Creates a new attributes set.
+ #
+ # @return [Attributes] a new instance of Attributes
+ #
+ # source://rdoc//lib/rdoc/markup/attributes.rb#16
+ def initialize; end
+
+ # Returns a string representation of +bitmap+
+ #
+ # source://rdoc//lib/rdoc/markup/attributes.rb#46
+ def as_string(bitmap); end
+
+ # Returns a unique bit for +name+
+ #
+ # source://rdoc//lib/rdoc/markup/attributes.rb#29
+ def bitmap_for(name); end
+
+ # yields each attribute name in +bitmap+
+ #
+ # source://rdoc//lib/rdoc/markup/attributes.rb#60
+ def each_name_of(bitmap); end
+
+ # The regexp handling attribute type. See RDoc::Markup#add_regexp_handling
+ #
+ # source://rdoc//lib/rdoc/markup/attributes.rb#11
+ def regexp_handling; end
+end
+
+# An empty line. This class is a singleton.
+#
+# source://rdoc//lib/rdoc/markup/blank_line.rb#5
+class RDoc::Markup::BlankLine
+ # Calls #accept_blank_line on +visitor+
+ #
+ # source://rdoc//lib/rdoc/markup/blank_line.rb#19
+ def accept(visitor); end
+
+ # source://rdoc//lib/rdoc/markup/blank_line.rb#23
+ def pretty_print(q); end
+
+ class << self
+ # RDoc::Markup::BlankLine is a singleton
+ #
+ # source://rdoc//lib/rdoc/markup/blank_line.rb#12
+ def new; end
+ end
+end
+
+# A quoted section which contains markup items.
+#
+# source://rdoc//lib/rdoc/markup/block_quote.rb#5
+class RDoc::Markup::BlockQuote < ::RDoc::Markup::Raw
+ # Calls #accept_block_quote on +visitor+
+ #
+ # source://rdoc//lib/rdoc/markup/block_quote.rb#10
+ def accept(visitor); end
+end
+
+# A Document containing lists, headings, paragraphs, etc.
+#
+# source://rdoc//lib/rdoc/markup/document.rb#5
+class RDoc::Markup::Document
+ include ::Enumerable
+
+ # Creates a new Document with +parts+
+ #
+ # @return [Document] a new instance of Document
+ #
+ # source://rdoc//lib/rdoc/markup/document.rb#29
+ def initialize(*parts); end
+
+ # Appends +part+ to the document
+ #
+ # source://rdoc//lib/rdoc/markup/document.rb#40
+ def <<(part); end
+
+ # source://rdoc//lib/rdoc/markup/document.rb#56
+ def ==(other); end
+
+ # Runs this document and all its #items through +visitor+
+ #
+ # source://rdoc//lib/rdoc/markup/document.rb#65
+ def accept(visitor); end
+
+ # Concatenates the given +parts+ onto the document
+ #
+ # source://rdoc//lib/rdoc/markup/document.rb#76
+ def concat(parts); end
+
+ # Enumerator for the parts of this document
+ #
+ # source://rdoc//lib/rdoc/markup/document.rb#83
+ def each(&block); end
+
+ # Does this document have no parts?
+ #
+ # @return [Boolean]
+ #
+ # source://rdoc//lib/rdoc/markup/document.rb#90
+ def empty?; end
+
+ # The file this document was created from. See also
+ # RDoc::ClassModule#add_comment
+ #
+ # source://rdoc//lib/rdoc/markup/document.rb#13
+ def file; end
+
+ # The file this Document was created from.
+ #
+ # source://rdoc//lib/rdoc/markup/document.rb#97
+ def file=(location); end
+
+ # When this is a collection of documents (#file is not set and this document
+ # contains only other documents as its direct children) #merge replaces
+ # documents in this class with documents from +other+ when the file matches
+ # and adds documents from +other+ when the files do not.
+ #
+ # The information in +other+ is preferred over the receiver
+ #
+ # source://rdoc//lib/rdoc/markup/document.rb#114
+ def merge(other); end
+
+ # Does this Document contain other Documents?
+ #
+ # @return [Boolean]
+ #
+ # source://rdoc//lib/rdoc/markup/document.rb#134
+ def merged?; end
+
+ # If a heading is below the given level it will be omitted from the
+ # table_of_contents
+ #
+ # source://rdoc//lib/rdoc/markup/document.rb#19
+ def omit_headings_below; end
+
+ # If a heading is below the given level it will be omitted from the
+ # table_of_contents
+ #
+ # source://rdoc//lib/rdoc/markup/document.rb#19
+ def omit_headings_below=(_arg0); end
+
+ # The parts of the Document
+ #
+ # source://rdoc//lib/rdoc/markup/document.rb#24
+ def parts; end
+
+ # source://rdoc//lib/rdoc/markup/document.rb#138
+ def pretty_print(q); end
+
+ # Appends +parts+ to the document
+ #
+ # source://rdoc//lib/rdoc/markup/document.rb#151
+ def push(*parts); end
+
+ # Returns an Array of headings in the document.
+ #
+ # Require 'rdoc/markup/formatter' before calling this method.
+ #
+ # source://rdoc//lib/rdoc/markup/document.rb#160
+ def table_of_contents; end
+end
+
+# Base class for RDoc markup formatters
+#
+# Formatters are a visitor that converts an RDoc::Markup tree (from a comment)
+# into some kind of output. RDoc ships with formatters for converting back to
+# rdoc, ANSI text, HTML, a Table of Contents and other formats.
+#
+# If you'd like to write your own Formatter use
+# RDoc::Markup::FormatterTestCase. If you're writing a text-output formatter
+# use RDoc::Markup::TextFormatterTestCase which provides extra test cases.
+#
+# source://rdoc//lib/rdoc/markup/formatter.rb#13
+class RDoc::Markup::Formatter
+ # Creates a new Formatter
+ #
+ # @return [Formatter] a new instance of Formatter
+ #
+ # source://rdoc//lib/rdoc/markup/formatter.rb#48
+ def initialize(options, markup = T.unsafe(nil)); end
+
+ # Adds +document+ to the output
+ #
+ # source://rdoc//lib/rdoc/markup/formatter.rb#69
+ def accept_document(document); end
+
+ # Adds a regexp handling for links of the form rdoc-...:
+ #
+ # source://rdoc//lib/rdoc/markup/formatter.rb#83
+ def add_regexp_handling_RDOCLINK; end
+
+ # Adds a regexp handling for links of the form {}[] and
+ # []
+ #
+ # source://rdoc//lib/rdoc/markup/formatter.rb#91
+ def add_regexp_handling_TIDYLINK; end
+
+ # Add a new set of tags for an attribute. We allow separate start and end
+ # tags for flexibility
+ #
+ # source://rdoc//lib/rdoc/markup/formatter.rb#105
+ def add_tag(name, start, stop); end
+
+ # Allows +tag+ to be decorated with additional information.
+ #
+ # source://rdoc//lib/rdoc/markup/formatter.rb#113
+ def annotate(tag); end
+
+ # Marks up +content+
+ #
+ # source://rdoc//lib/rdoc/markup/formatter.rb#120
+ def convert(content); end
+
+ # Converts flow items +flow+
+ #
+ # source://rdoc//lib/rdoc/markup/formatter.rb#127
+ def convert_flow(flow); end
+
+ # Converts added regexp handlings. See RDoc::Markup#add_regexp_handling
+ #
+ # source://rdoc//lib/rdoc/markup/formatter.rb#150
+ def convert_regexp_handling(target); end
+
+ # Converts a string to be fancier if desired
+ #
+ # source://rdoc//lib/rdoc/markup/formatter.rb#176
+ def convert_string(string); end
+
+ # Use ignore in your subclass to ignore the content of a node.
+ #
+ # ##
+ # # We don't support raw nodes in ToNoRaw
+ #
+ # alias accept_raw ignore
+ #
+ # source://rdoc//lib/rdoc/markup/formatter.rb#188
+ def ignore(*node); end
+
+ # Are we currently inside tt tags?
+ #
+ # @return [Boolean]
+ #
+ # source://rdoc//lib/rdoc/markup/formatter.rb#194
+ def in_tt?; end
+
+ # Turns off tags for +item+ on +res+
+ #
+ # source://rdoc//lib/rdoc/markup/formatter.rb#216
+ def off_tags(res, item); end
+
+ # Turns on tags for +item+ on +res+
+ #
+ # source://rdoc//lib/rdoc/markup/formatter.rb#201
+ def on_tags(res, item); end
+
+ # Extracts and a scheme, url and an anchor id from +url+ and returns them.
+ #
+ # source://rdoc//lib/rdoc/markup/formatter.rb#231
+ def parse_url(url); end
+
+ # Is +tag+ a tt tag?
+ #
+ # @return [Boolean]
+ #
+ # source://rdoc//lib/rdoc/markup/formatter.rb#261
+ def tt?(tag); end
+
+ class << self
+ # Converts a target url to one that is relative to a given path
+ #
+ # source://rdoc//lib/rdoc/markup/formatter.rb#24
+ def gen_relative_url(path, target); end
+ end
+end
+
+# A hard-break in the middle of a paragraph.
+#
+# source://rdoc//lib/rdoc/markup/hard_break.rb#5
+class RDoc::Markup::HardBreak
+ # source://rdoc//lib/rdoc/markup/hard_break.rb#23
+ def ==(other); end
+
+ # Calls #accept_hard_break on +visitor+
+ #
+ # source://rdoc//lib/rdoc/markup/hard_break.rb#19
+ def accept(visitor); end
+
+ # source://rdoc//lib/rdoc/markup/hard_break.rb#27
+ def pretty_print(q); end
+
+ class << self
+ # RDoc::Markup::HardBreak is a singleton
+ #
+ # source://rdoc//lib/rdoc/markup/hard_break.rb#12
+ def new; end
+ end
+end
+
+# source://rdoc//lib/rdoc/markup/heading.rb#6
+class RDoc::Markup::Heading < ::Struct
+ # source://rdoc//lib/rdoc/markup/heading.rb#40
+ def accept(visitor); end
+
+ # source://rdoc//lib/rdoc/markup/heading.rb#47
+ def aref; end
+
+ # source://rdoc//lib/rdoc/markup/heading.rb#55
+ def label(context = T.unsafe(nil)); end
+
+ # source://rdoc//lib/rdoc/markup/heading.rb#68
+ def plain_html; end
+
+ # source://rdoc//lib/rdoc/markup/heading.rb#72
+ def pretty_print(q); end
+
+ class << self
+ # source://rdoc//lib/rdoc/markup/heading.rb#22
+ def to_html; end
+
+ # source://rdoc//lib/rdoc/markup/heading.rb#14
+ def to_label; end
+ end
+end
+
+# A file included at generation time. Objects of this class are created by
+# RDoc::RD for an extension-less include.
+#
+# This implementation in incomplete.
+#
+# source://rdoc//lib/rdoc/markup/include.rb#8
+class RDoc::Markup::Include
+ # Creates a new include that will import +file+ from +include_path+
+ #
+ # @return [Include] a new instance of Include
+ #
+ # source://rdoc//lib/rdoc/markup/include.rb#23
+ def initialize(file, include_path); end
+
+ # source://rdoc//lib/rdoc/markup/include.rb#28
+ def ==(other); end
+
+ # The filename to be included, without extension
+ #
+ # source://rdoc//lib/rdoc/markup/include.rb#13
+ def file; end
+
+ # Directories to search for #file
+ #
+ # source://rdoc//lib/rdoc/markup/include.rb#18
+ def include_path; end
+
+ # source://rdoc//lib/rdoc/markup/include.rb#33
+ def pretty_print(q); end
+end
+
+# An Indented Paragraph of text
+#
+# source://rdoc//lib/rdoc/markup/indented_paragraph.rb#5
+class RDoc::Markup::IndentedParagraph < ::RDoc::Markup::Raw
+ # Creates a new IndentedParagraph containing +parts+ indented with +indent+
+ # spaces
+ #
+ # @return [IndentedParagraph] a new instance of IndentedParagraph
+ #
+ # source://rdoc//lib/rdoc/markup/indented_paragraph.rb#16
+ def initialize(indent, *parts); end
+
+ # source://rdoc//lib/rdoc/markup/indented_paragraph.rb#22
+ def ==(other); end
+
+ # Calls #accept_indented_paragraph on +visitor+
+ #
+ # source://rdoc//lib/rdoc/markup/indented_paragraph.rb#29
+ def accept(visitor); end
+
+ # The indent in number of spaces
+ #
+ # source://rdoc//lib/rdoc/markup/indented_paragraph.rb#10
+ def indent; end
+
+ # Joins the raw paragraph text and converts inline HardBreaks to the
+ # +hard_break+ text followed by the indent.
+ #
+ # source://rdoc//lib/rdoc/markup/indented_paragraph.rb#37
+ def text(hard_break = T.unsafe(nil)); end
+end
+
+# A List is a homogeneous set of ListItems.
+#
+# The supported list types include:
+#
+# :BULLET::
+# An unordered list
+# :LABEL::
+# An unordered definition list, but using an alternate RDoc::Markup syntax
+# :LALPHA::
+# An ordered list using increasing lowercase English letters
+# :NOTE::
+# An unordered definition list
+# :NUMBER::
+# An ordered list using increasing Arabic numerals
+# :UALPHA::
+# An ordered list using increasing uppercase English letters
+#
+# Definition lists behave like HTML definition lists. Each list item can
+# describe multiple terms. See RDoc::Markup::ListItem for how labels and
+# definition are stored as list items.
+#
+# source://rdoc//lib/rdoc/markup/list.rb#24
+class RDoc::Markup::List
+ # Creates a new list of +type+ with +items+. Valid list types are:
+ # +:BULLET+, +:LABEL+, +:LALPHA+, +:NOTE+, +:NUMBER+, +:UALPHA+
+ #
+ # @return [List] a new instance of List
+ #
+ # source://rdoc//lib/rdoc/markup/list.rb#40
+ def initialize(type = T.unsafe(nil), *items); end
+
+ # Appends +item+ to the list
+ #
+ # source://rdoc//lib/rdoc/markup/list.rb#49
+ def <<(item); end
+
+ # source://rdoc//lib/rdoc/markup/list.rb#53
+ def ==(other); end
+
+ # Runs this list and all its #items through +visitor+
+ #
+ # source://rdoc//lib/rdoc/markup/list.rb#62
+ def accept(visitor); end
+
+ # Is the list empty?
+ #
+ # @return [Boolean]
+ #
+ # source://rdoc//lib/rdoc/markup/list.rb#75
+ def empty?; end
+
+ # Items in the list
+ #
+ # source://rdoc//lib/rdoc/markup/list.rb#34
+ def items; end
+
+ # Returns the last item in the list
+ #
+ # source://rdoc//lib/rdoc/markup/list.rb#82
+ def last; end
+
+ # source://rdoc//lib/rdoc/markup/list.rb#86
+ def pretty_print(q); end
+
+ # Appends +items+ to the list
+ #
+ # source://rdoc//lib/rdoc/markup/list.rb#97
+ def push(*items); end
+
+ # The list's type
+ #
+ # source://rdoc//lib/rdoc/markup/list.rb#29
+ def type; end
+
+ # The list's type
+ #
+ # source://rdoc//lib/rdoc/markup/list.rb#29
+ def type=(_arg0); end
+end
+
+# An item within a List that contains paragraphs, headings, etc.
+#
+# For BULLET, NUMBER, LALPHA and UALPHA lists, the label will always be nil.
+# For NOTE and LABEL lists, the list label may contain:
+#
+# * a single String for a single label
+# * an Array of Strings for a list item with multiple terms
+# * nil for an extra description attached to a previously labeled list item
+#
+# source://rdoc//lib/rdoc/markup/list_item.rb#12
+class RDoc::Markup::ListItem
+ # Creates a new ListItem with an optional +label+ containing +parts+
+ #
+ # @return [ListItem] a new instance of ListItem
+ #
+ # source://rdoc//lib/rdoc/markup/list_item.rb#27
+ def initialize(label = T.unsafe(nil), *parts); end
+
+ # Appends +part+ to the ListItem
+ #
+ # source://rdoc//lib/rdoc/markup/list_item.rb#36
+ def <<(part); end
+
+ # source://rdoc//lib/rdoc/markup/list_item.rb#40
+ def ==(other); end
+
+ # Runs this list item and all its #parts through +visitor+
+ #
+ # source://rdoc//lib/rdoc/markup/list_item.rb#49
+ def accept(visitor); end
+
+ # Is the ListItem empty?
+ #
+ # @return [Boolean]
+ #
+ # source://rdoc//lib/rdoc/markup/list_item.rb#62
+ def empty?; end
+
+ # The label for the ListItem
+ #
+ # source://rdoc//lib/rdoc/markup/list_item.rb#17
+ def label; end
+
+ # The label for the ListItem
+ #
+ # source://rdoc//lib/rdoc/markup/list_item.rb#17
+ def label=(_arg0); end
+
+ # Length of parts in the ListItem
+ #
+ # source://rdoc//lib/rdoc/markup/list_item.rb#69
+ def length; end
+
+ # Parts of the ListItem
+ #
+ # source://rdoc//lib/rdoc/markup/list_item.rb#22
+ def parts; end
+
+ # source://rdoc//lib/rdoc/markup/list_item.rb#73
+ def pretty_print(q); end
+
+ # Adds +parts+ to the ListItem
+ #
+ # source://rdoc//lib/rdoc/markup/list_item.rb#95
+ def push(*parts); end
+end
+
+# A Paragraph of text
+#
+# source://rdoc//lib/rdoc/markup/paragraph.rb#5
+class RDoc::Markup::Paragraph < ::RDoc::Markup::Raw
+ # Calls #accept_paragraph on +visitor+
+ #
+ # source://rdoc//lib/rdoc/markup/paragraph.rb#10
+ def accept(visitor); end
+
+ # Joins the raw paragraph text and converts inline HardBreaks to the
+ # +hard_break+ text.
+ #
+ # source://rdoc//lib/rdoc/markup/paragraph.rb#18
+ def text(hard_break = T.unsafe(nil)); end
+end
+
+# A recursive-descent parser for RDoc markup.
+#
+# The parser tokenizes an input string then parses the tokens into a Document.
+# Documents can be converted into output formats by writing a visitor like
+# RDoc::Markup::ToHTML.
+#
+# The parser only handles the block-level constructs Paragraph, List,
+# ListItem, Heading, Verbatim, BlankLine, Rule and BlockQuote.
+# Inline markup such as \+blah\+ is handled separately by
+# RDoc::Markup::AttributeManager.
+#
+# To see what markup the Parser implements read RDoc. To see how to use
+# RDoc markup to format text in your program read RDoc::Markup.
+#
+# source://rdoc//lib/rdoc/markup/parser.rb#19
+class RDoc::Markup::Parser
+ include ::RDoc::Text
+
+ # Creates a new Parser. See also ::parse
+ #
+ # @return [Parser] a new instance of Parser
+ #
+ # source://rdoc//lib/rdoc/markup/parser.rb#79
+ def initialize; end
+
+ # Builds a Heading of +level+
+ #
+ # source://rdoc//lib/rdoc/markup/parser.rb#90
+ def build_heading(level); end
+
+ # Builds a List flush to +margin+
+ #
+ # source://rdoc//lib/rdoc/markup/parser.rb#108
+ def build_list(margin); end
+
+ # Builds a Paragraph that is flush to +margin+
+ #
+ # source://rdoc//lib/rdoc/markup/parser.rb#208
+ def build_paragraph(margin); end
+
+ # Builds a Verbatim that is indented from +margin+.
+ #
+ # The verbatim block is shifted left (the least indented lines start in
+ # column 0). Each part of the verbatim is one line of text, always
+ # terminated by a newline. Blank lines always consist of a single newline
+ # character, and there is never a single newline at the end of the verbatim.
+ #
+ # source://rdoc//lib/rdoc/markup/parser.rb#243
+ def build_verbatim(margin); end
+
+ # Enables display of debugging information
+ #
+ # source://rdoc//lib/rdoc/markup/parser.rb#48
+ def debug; end
+
+ # Enables display of debugging information
+ #
+ # source://rdoc//lib/rdoc/markup/parser.rb#48
+ def debug=(_arg0); end
+
+ # Pulls the next token from the stream.
+ #
+ # source://rdoc//lib/rdoc/markup/parser.rb#327
+ def get; end
+
+ # Parses the tokens into an array of RDoc::Markup::XXX objects,
+ # and appends them to the passed +parent+ RDoc::Markup::YYY object.
+ #
+ # Exits at the end of the token stream, or when it encounters a token
+ # in a column less than +indent+ (unless it is a NEWLINE).
+ #
+ # Returns +parent+.
+ #
+ # source://rdoc//lib/rdoc/markup/parser.rb#342
+ def parse(parent, indent = T.unsafe(nil)); end
+
+ # Small hook that is overridden by RDoc::TomDoc
+ #
+ # source://rdoc//lib/rdoc/markup/parser.rb#406
+ def parse_text(parent, indent); end
+
+ # Returns the next token on the stream without modifying the stream
+ #
+ # source://rdoc//lib/rdoc/markup/parser.rb#413
+ def peek_token; end
+
+ # Creates the StringScanner
+ #
+ # source://rdoc//lib/rdoc/markup/parser.rb#468
+ def setup_scanner(input); end
+
+ # Skips the next token if its type is +token_type+.
+ #
+ # Optionally raises an error if the next token is not of the expected type.
+ #
+ # @raise [ParseError]
+ #
+ # source://rdoc//lib/rdoc/markup/parser.rb#477
+ def skip(token_type, error = T.unsafe(nil)); end
+
+ # Turns text +input+ into a stream of tokens
+ #
+ # source://rdoc//lib/rdoc/markup/parser.rb#488
+ def tokenize(input); end
+
+ # Token accessor
+ #
+ # source://rdoc//lib/rdoc/markup/parser.rb#53
+ def tokens; end
+
+ # Returns the current token to the token stream
+ #
+ # @raise [Error]
+ #
+ # source://rdoc//lib/rdoc/markup/parser.rb#578
+ def unget; end
+
+ class << self
+ # Parses +str+ into a Document.
+ #
+ # Use RDoc::Markup#parse instead of this method.
+ #
+ # source://rdoc//lib/rdoc/markup/parser.rb#60
+ def parse(str); end
+
+ # Returns a token stream for +str+, for testing
+ #
+ # source://rdoc//lib/rdoc/markup/parser.rb#70
+ def tokenize(str); end
+ end
+end
+
+# A simple wrapper of StringScanner that is aware of the current column and lineno
+#
+# source://rdoc//lib/rdoc/markup/parser.rb#422
+class RDoc::Markup::Parser::MyStringScanner
+ # :stopdoc:
+ #
+ # @return [MyStringScanner] a new instance of MyStringScanner
+ #
+ # source://rdoc//lib/rdoc/markup/parser.rb#425
+ def initialize(input); end
+
+ # source://rdoc//lib/rdoc/markup/parser.rb#458
+ def [](i); end
+
+ # @return [Boolean]
+ #
+ # source://rdoc//lib/rdoc/markup/parser.rb#450
+ def eos?; end
+
+ # source://rdoc//lib/rdoc/markup/parser.rb#454
+ def matched; end
+
+ # source://rdoc//lib/rdoc/markup/parser.rb#445
+ def newline!; end
+
+ # source://rdoc//lib/rdoc/markup/parser.rb#441
+ def pos; end
+
+ # source://rdoc//lib/rdoc/markup/parser.rb#430
+ def scan(re); end
+
+ # source://rdoc//lib/rdoc/markup/parser.rb#436
+ def unscan(s); end
+end
+
+# Handle common directives that can occur in a block of text:
+#
+# \:include: filename
+#
+# Directives can be escaped by preceding them with a backslash.
+#
+# RDoc plugin authors can register additional directives to be handled by
+# using RDoc::Markup::PreProcess::register.
+#
+# Any directive that is not built-in to RDoc (including those registered via
+# plugins) will be stored in the metadata hash on the CodeObject the comment
+# is attached to. See RDoc::Markup@Directives for the list of built-in
+# directives.
+#
+# source://rdoc//lib/rdoc/markup/pre_process.rb#17
+class RDoc::Markup::PreProcess
+ # Creates a new pre-processor for +input_file_name+ that will look for
+ # included files in +include_path+
+ #
+ # @return [PreProcess] a new instance of PreProcess
+ #
+ # source://rdoc//lib/rdoc/markup/pre_process.rb#78
+ def initialize(input_file_name, include_path); end
+
+ # Look for the given file in the directory containing the current file,
+ # and then in each of the directories specified in the RDOC_INCLUDE path
+ #
+ # source://rdoc//lib/rdoc/markup/pre_process.rb#288
+ def find_include_file(name); end
+
+ # Look for directives in the given +text+.
+ #
+ # Options that we don't handle are yielded. If the block returns false the
+ # directive is restored to the text. If the block returns nil or no block
+ # was given the directive is handled according to the registered directives.
+ # If a String was returned the directive is replaced with the string.
+ #
+ # If no matching directive was registered the directive is restored to the
+ # text.
+ #
+ # If +code_object+ is given and the directive is unknown then the
+ # directive's parameter is set as metadata on the +code_object+. See
+ # RDoc::CodeObject#metadata for details.
+ #
+ # source://rdoc//lib/rdoc/markup/pre_process.rb#99
+ def handle(text, code_object = T.unsafe(nil), &block); end
+
+ # Performs the actions described by +directive+ and its parameter +param+.
+ #
+ # +code_object+ is used for directives that operate on a class or module.
+ # +prefix+ is used to ensure the replacement for handled directives is
+ # correct. +encoding+ is used for the include directive.
+ #
+ # For a list of directives in RDoc see RDoc::Markup.
+ # --
+ # When 1.8.7 support is ditched prefix can be defaulted to ''
+ #
+ # source://rdoc//lib/rdoc/markup/pre_process.rb#150
+ def handle_directive(prefix, directive, param, code_object = T.unsafe(nil), encoding = T.unsafe(nil)); end
+
+ # Handles the :include: _filename_ directive.
+ #
+ # If the first line of the included file starts with '#', and contains
+ # an encoding information in the form 'coding:' or 'coding=', it is
+ # removed.
+ #
+ # If all lines in the included file start with a '#', this leading '#'
+ # is removed before inclusion. The included content is indented like
+ # the :include: directive.
+ # --
+ # so all content will be verbatim because of the likely space after '#'?
+ # TODO shift left the whole file content in that case
+ # TODO comment stop/start #-- and #++ in included file must be processed here
+ #
+ # source://rdoc//lib/rdoc/markup/pre_process.rb#262
+ def include_file(name, indent, encoding); end
+
+ # An RDoc::Options instance that will be filled in with overrides from
+ # directives
+ #
+ # source://rdoc//lib/rdoc/markup/pre_process.rb#23
+ def options; end
+
+ # An RDoc::Options instance that will be filled in with overrides from
+ # directives
+ #
+ # source://rdoc//lib/rdoc/markup/pre_process.rb#23
+ def options=(_arg0); end
+
+ class << self
+ # Adds a post-process handler for directives. The handler will be called
+ # with the result RDoc::Comment (or text String) and the code object for the
+ # comment (if any).
+ #
+ # source://rdoc//lib/rdoc/markup/pre_process.rb#30
+ def post_process(&block); end
+
+ # Registered post-processors
+ #
+ # source://rdoc//lib/rdoc/markup/pre_process.rb#37
+ def post_processors; end
+
+ # Registers +directive+ as one handled by RDoc. If a block is given the
+ # directive will be replaced by the result of the block, otherwise the
+ # directive will be removed from the processed text.
+ #
+ # The block will be called with the directive name and the directive
+ # parameter:
+ #
+ # RDoc::Markup::PreProcess.register 'my-directive' do |directive, param|
+ # # replace text, etc.
+ # end
+ #
+ # source://rdoc//lib/rdoc/markup/pre_process.rb#53
+ def register(directive, &block); end
+
+ # Registered directives
+ #
+ # source://rdoc//lib/rdoc/markup/pre_process.rb#60
+ def registered; end
+
+ # Clears all registered directives and post-processors
+ #
+ # source://rdoc//lib/rdoc/markup/pre_process.rb#67
+ def reset; end
+ end
+end
+
+# A section of text that is added to the output document as-is
+#
+# source://rdoc//lib/rdoc/markup/raw.rb#5
+class RDoc::Markup::Raw
+ # Creates a new Raw containing +parts+
+ #
+ # @return [Raw] a new instance of Raw
+ #
+ # source://rdoc//lib/rdoc/markup/raw.rb#15
+ def initialize(*parts); end
+
+ # Appends +text+
+ #
+ # source://rdoc//lib/rdoc/markup/raw.rb#23
+ def <<(text); end
+
+ # source://rdoc//lib/rdoc/markup/raw.rb#27
+ def ==(other); end
+
+ # Calls #accept_raw+ on +visitor+
+ #
+ # source://rdoc//lib/rdoc/markup/raw.rb#34
+ def accept(visitor); end
+
+ # Appends +other+'s parts
+ #
+ # source://rdoc//lib/rdoc/markup/raw.rb#41
+ def merge(other); end
+
+ # The component parts of the list
+ #
+ # source://rdoc//lib/rdoc/markup/raw.rb#10
+ def parts; end
+
+ # source://rdoc//lib/rdoc/markup/raw.rb#45
+ def pretty_print(q); end
+
+ # Appends +texts+ onto this Paragraph
+ #
+ # source://rdoc//lib/rdoc/markup/raw.rb#58
+ def push(*texts); end
+
+ # The raw text
+ #
+ # source://rdoc//lib/rdoc/markup/raw.rb#65
+ def text; end
+end
+
+# Hold details of a regexp handling sequence
+#
+# source://rdoc//lib/rdoc/markup/regexp_handling.rb#5
+class RDoc::Markup::RegexpHandling
+ # Creates a new regexp handling sequence of +type+ with +text+
+ #
+ # @return [RegexpHandling] a new instance of RegexpHandling
+ #
+ # source://rdoc//lib/rdoc/markup/regexp_handling.rb#20
+ def initialize(type, text); end
+
+ # Regexp handlings are equal when the have the same text and type
+ #
+ # source://rdoc//lib/rdoc/markup/regexp_handling.rb#27
+ def ==(o); end
+
+ # source://rdoc//lib/rdoc/markup/regexp_handling.rb#31
+ def inspect; end
+
+ # Regexp handling text
+ #
+ # source://rdoc//lib/rdoc/markup/regexp_handling.rb#15
+ def text; end
+
+ # Regexp handling text
+ #
+ # source://rdoc//lib/rdoc/markup/regexp_handling.rb#15
+ def text=(_arg0); end
+
+ # source://rdoc//lib/rdoc/markup/regexp_handling.rb#36
+ def to_s; end
+
+ # Regexp handling type
+ #
+ # source://rdoc//lib/rdoc/markup/regexp_handling.rb#10
+ def type; end
+end
+
+# A horizontal rule with a weight
+#
+# source://rdoc//lib/rdoc/markup/rule.rb#5
+class RDoc::Markup::Rule < ::Struct
+ # Calls #accept_rule on +visitor+
+ #
+ # source://rdoc//lib/rdoc/markup/rule.rb#10
+ def accept(visitor); end
+
+ # source://rdoc//lib/rdoc/markup/rule.rb#14
+ def pretty_print(q); end
+end
+
+# A section of table
+#
+# source://rdoc//lib/rdoc/markup/table.rb#5
+class RDoc::Markup::Table
+ # Creates new instance
+ #
+ # @return [Table] a new instance of Table
+ #
+ # source://rdoc//lib/rdoc/markup/table.rb#16
+ def initialize(header, align, body); end
+
+ # :stopdoc:
+ #
+ # source://rdoc//lib/rdoc/markup/table.rb#21
+ def ==(other); end
+
+ # source://rdoc//lib/rdoc/markup/table.rb#28
+ def accept(visitor); end
+
+ # alignments of each column
+ #
+ # source://rdoc//lib/rdoc/markup/table.rb#10
+ def align; end
+
+ # alignments of each column
+ #
+ # source://rdoc//lib/rdoc/markup/table.rb#10
+ def align=(_arg0); end
+
+ # body texts of each column
+ #
+ # source://rdoc//lib/rdoc/markup/table.rb#13
+ def body; end
+
+ # body texts of each column
+ #
+ # source://rdoc//lib/rdoc/markup/table.rb#13
+ def body=(_arg0); end
+
+ # headers of each column
+ #
+ # source://rdoc//lib/rdoc/markup/table.rb#7
+ def header; end
+
+ # headers of each column
+ #
+ # source://rdoc//lib/rdoc/markup/table.rb#7
+ def header=(_arg0); end
+
+ # source://rdoc//lib/rdoc/markup/table.rb#32
+ def pretty_print(q); end
+end
+
+# Outputs RDoc markup with vibrant ANSI color!
+#
+# source://rdoc//lib/rdoc/markup/to_ansi.rb#5
+class RDoc::Markup::ToAnsi < ::RDoc::Markup::ToRdoc
+ # Creates a new ToAnsi visitor that is ready to output vibrant ANSI color!
+ #
+ # @return [ToAnsi] a new instance of ToAnsi
+ #
+ # source://rdoc//lib/rdoc/markup/to_ansi.rb#10
+ def initialize(markup = T.unsafe(nil)); end
+
+ # Overrides indent width to ensure output lines up correctly.
+ #
+ # source://rdoc//lib/rdoc/markup/to_ansi.rb#31
+ def accept_list_item_end(list_item); end
+
+ # Adds coloring to note and label list items
+ #
+ # source://rdoc//lib/rdoc/markup/to_ansi.rb#55
+ def accept_list_item_start(list_item); end
+
+ # Maps attributes to ANSI sequences
+ #
+ # source://rdoc//lib/rdoc/markup/to_ansi.rb#22
+ def init_tags; end
+
+ # Starts accepting with a reset screen
+ #
+ # source://rdoc//lib/rdoc/markup/to_ansi.rb#87
+ def start_accepting; end
+end
+
+# Outputs RDoc markup with hot backspace action! You will probably need a
+# pager to use this output format.
+#
+# This formatter won't work on 1.8.6 because it lacks String#chars.
+#
+# source://rdoc//lib/rdoc/markup/to_bs.rb#8
+class RDoc::Markup::ToBs < ::RDoc::Markup::ToRdoc
+ # Returns a new ToBs that is ready for hot backspace action!
+ #
+ # @return [ToBs] a new instance of ToBs
+ #
+ # source://rdoc//lib/rdoc/markup/to_bs.rb#13
+ def initialize(markup = T.unsafe(nil)); end
+
+ # Makes heading text bold.
+ #
+ # source://rdoc//lib/rdoc/markup/to_bs.rb#33
+ def accept_heading(heading); end
+
+ # Turns on or off regexp handling for +convert_string+
+ #
+ # source://rdoc//lib/rdoc/markup/to_bs.rb#46
+ def annotate(tag); end
+
+ # Calls convert_string on the result of convert_regexp_handling
+ #
+ # source://rdoc//lib/rdoc/markup/to_bs.rb#59
+ def convert_regexp_handling(target); end
+
+ # Adds bold or underline mixed with backspaces
+ #
+ # source://rdoc//lib/rdoc/markup/to_bs.rb#66
+ def convert_string(string); end
+
+ # Sets a flag that is picked up by #annotate to do the right thing in
+ # #convert_string
+ #
+ # source://rdoc//lib/rdoc/markup/to_bs.rb#24
+ def init_tags; end
+end
+
+# Outputs RDoc markup as HTML.
+#
+# source://rdoc//lib/rdoc/markup/to_html.rb#7
+class RDoc::Markup::ToHtml < ::RDoc::Markup::Formatter
+ include ::RDoc::Text
+
+ # Creates a new formatter that will output HTML
+ #
+ # @return [ToHtml] a new instance of ToHtml
+ #
+ # source://rdoc//lib/rdoc/markup/to_html.rb#45
+ def initialize(options, markup = T.unsafe(nil)); end
+
+ # Adds +blank_line+ to the output
+ #
+ # source://rdoc//lib/rdoc/markup/to_html.rb#291
+ def accept_blank_line(blank_line); end
+
+ # Adds +block_quote+ to the output
+ #
+ # source://rdoc//lib/rdoc/markup/to_html.rb#190
+ def accept_block_quote(block_quote); end
+
+ # Adds +heading+ to the output. The headings greater than 6 are trimmed to
+ # level 6.
+ #
+ # source://rdoc//lib/rdoc/markup/to_html.rb#299
+ def accept_heading(heading); end
+
+ # Finishes consumption of +list+
+ #
+ # source://rdoc//lib/rdoc/markup/to_html.rb#262
+ def accept_list_end(list); end
+
+ # Finishes consumption of +list_item+
+ #
+ # source://rdoc//lib/rdoc/markup/to_html.rb#284
+ def accept_list_item_end(list_item); end
+
+ # Prepares the visitor for consuming +list_item+
+ #
+ # source://rdoc//lib/rdoc/markup/to_html.rb#273
+ def accept_list_item_start(list_item); end
+
+ # Prepares the visitor for consuming +list+
+ #
+ # source://rdoc//lib/rdoc/markup/to_html.rb#253
+ def accept_list_start(list); end
+
+ # Adds +paragraph+ to the output
+ #
+ # source://rdoc//lib/rdoc/markup/to_html.rb#203
+ def accept_paragraph(paragraph); end
+
+ # Adds +raw+ to the output
+ #
+ # source://rdoc//lib/rdoc/markup/to_html.rb#320
+ def accept_raw(raw); end
+
+ # Adds +rule+ to the output
+ #
+ # source://rdoc//lib/rdoc/markup/to_html.rb#246
+ def accept_rule(rule); end
+
+ # Adds +table+ to the output
+ #
+ # source://rdoc//lib/rdoc/markup/to_html.rb#327
+ def accept_table(header, body, aligns); end
+
+ # Adds +verbatim+ to the output
+ #
+ # source://rdoc//lib/rdoc/markup/to_html.rb#216
+ def accept_verbatim(verbatim); end
+
+ # The RDoc::CodeObject HTML is being generated for. This is used to
+ # generate namespaced URI fragments
+ #
+ # source://rdoc//lib/rdoc/markup/to_html.rb#33
+ def code_object; end
+
+ # The RDoc::CodeObject HTML is being generated for. This is used to
+ # generate namespaced URI fragments
+ #
+ # source://rdoc//lib/rdoc/markup/to_html.rb#33
+ def code_object=(_arg0); end
+
+ # CGI-escapes +text+
+ #
+ # source://rdoc//lib/rdoc/markup/to_html.rb#352
+ def convert_string(text); end
+
+ # Returns the generated output
+ #
+ # source://rdoc//lib/rdoc/markup/to_html.rb#183
+ def end_accepting; end
+
+ # Path to this document for relative links
+ #
+ # source://rdoc//lib/rdoc/markup/to_html.rb#38
+ def from_path; end
+
+ # Path to this document for relative links
+ #
+ # source://rdoc//lib/rdoc/markup/to_html.rb#38
+ def from_path=(_arg0); end
+
+ # Generate a link to +url+ with content +text+. Handles the special cases
+ # for img: and link: described under handle_regexp_HYPERLINK
+ #
+ # source://rdoc//lib/rdoc/markup/to_html.rb#360
+ def gen_url(url, text); end
+
+ # source://rdoc//lib/rdoc/markup/to_html.rb#85
+ def handle_RDOCLINK(url); end
+
+ # +target+ is a
+ #
+ # source://rdoc//lib/rdoc/markup/to_html.rb#110
+ def handle_regexp_HARD_BREAK(target); end
+
+ # +target+ is a potential link. The following schemes are handled:
+ #
+ # mailto:::
+ # Inserted as-is.
+ # http:::
+ # Links are checked to see if they reference an image. If so, that image
+ # gets inserted using an
tag. Otherwise a conventional
+ # is used.
+ # link:::
+ # Reference to a local file relative to the output directory.
+ #
+ # source://rdoc//lib/rdoc/markup/to_html.rb#126
+ def handle_regexp_HYPERLINK(target); end
+
+ # +target+ is an rdoc-schemed link that will be converted into a hyperlink.
+ #
+ # For the +rdoc-ref+ scheme the named reference will be returned without
+ # creating a link.
+ #
+ # For the +rdoc-label+ scheme the footnote and label prefixes are stripped
+ # when creating a link. All other contents will be linked verbatim.
+ #
+ # source://rdoc//lib/rdoc/markup/to_html.rb#141
+ def handle_regexp_RDOCLINK(target); end
+
+ # This +target+ is a link where the label is different from the URL
+ # label[url] or {long label}[url]
+ #
+ # source://rdoc//lib/rdoc/markup/to_html.rb#149
+ def handle_regexp_TIDYLINK(target); end
+
+ # Determines the HTML list element for +list_type+ and +open_tag+
+ #
+ # @raise [RDoc::Error]
+ #
+ # source://rdoc//lib/rdoc/markup/to_html.rb#385
+ def html_list_name(list_type, open_tag); end
+
+ # source://rdoc//lib/rdoc/markup/to_html.rb#26
+ def in_list_entry; end
+
+ # Adds regexp handlings about link notations.
+ #
+ # source://rdoc//lib/rdoc/markup/to_html.rb#80
+ def init_link_notation_regexp_handlings; end
+
+ # Adds regexp handlings.
+ #
+ # source://rdoc//lib/rdoc/markup/to_html.rb#70
+ def init_regexp_handlings; end
+
+ # Maps attributes to HTML tags
+ #
+ # source://rdoc//lib/rdoc/markup/to_html.rb#394
+ def init_tags; end
+
+ # source://rdoc//lib/rdoc/markup/to_html.rb#27
+ def list; end
+
+ # Returns the HTML end-tag for +list_type+
+ #
+ # source://rdoc//lib/rdoc/markup/to_html.rb#420
+ def list_end_for(list_type); end
+
+ # Returns the HTML tag for +list_type+, possible using a label from
+ # +list_item+
+ #
+ # source://rdoc//lib/rdoc/markup/to_html.rb#404
+ def list_item_start(list_item, list_type); end
+
+ # Returns true if text is valid ruby syntax
+ #
+ # @return [Boolean]
+ #
+ # source://rdoc//lib/rdoc/markup/to_html.rb#434
+ def parseable?(text); end
+
+ # source://rdoc//lib/rdoc/markup/to_html.rb#25
+ def res; end
+
+ # Prepares the visitor for HTML generation
+ #
+ # source://rdoc//lib/rdoc/markup/to_html.rb#174
+ def start_accepting; end
+
+ # Converts +item+ to HTML using RDoc::Text#to_html
+ #
+ # source://rdoc//lib/rdoc/markup/to_html.rb#448
+ def to_html(item); end
+end
+
+# source://rdoc//lib/rdoc/markup/to_html.rb#65
+RDoc::Markup::ToHtml::URL_CHARACTERS_REGEXP_STR = T.let(T.unsafe(nil), String)
+
+# Subclass of the RDoc::Markup::ToHtml class that supports looking up method
+# names, classes, etc to create links. RDoc::CrossReference is used to
+# generate those links based on the current context.
+#
+# source://rdoc//lib/rdoc/markup/to_html_crossref.rb#7
+class RDoc::Markup::ToHtmlCrossref < ::RDoc::Markup::ToHtml
+ # Creates a new crossref resolver that generates links relative to +context+
+ # which lives at +from_path+ in the generated files. '#' characters on
+ # references are removed unless +show_hash+ is true. Only method names
+ # preceded by '#' or '::' are linked, unless +hyperlink_all+ is true.
+ #
+ # @raise [ArgumentError]
+ # @return [ToHtmlCrossref] a new instance of ToHtmlCrossref
+ #
+ # source://rdoc//lib/rdoc/markup/to_html_crossref.rb#32
+ def initialize(options, from_path, context, markup = T.unsafe(nil)); end
+
+ # RDoc::CodeObject for generating references
+ #
+ # source://rdoc//lib/rdoc/markup/to_html_crossref.rb#19
+ def context; end
+
+ # RDoc::CodeObject for generating references
+ #
+ # source://rdoc//lib/rdoc/markup/to_html_crossref.rb#19
+ def context=(_arg0); end
+
+ # Creates a link to the reference +name+ if the name exists. If +text+ is
+ # given it is used as the link text, otherwise +name+ is used.
+ #
+ # source://rdoc//lib/rdoc/markup/to_html_crossref.rb#61
+ def cross_reference(name, text = T.unsafe(nil), code = T.unsafe(nil)); end
+
+ # Generates links for rdoc-ref: scheme URLs and allows
+ # RDoc::Markup::ToHtml to handle other schemes.
+ #
+ # source://rdoc//lib/rdoc/markup/to_html_crossref.rb#131
+ def gen_url(url, text); end
+
+ # We're invoked when any text matches the CROSSREF pattern. If we find the
+ # corresponding reference, generate a link. If the name we're looking for
+ # contains no punctuation, we look for it up the module/class chain. For
+ # example, ToHtml is found, even without the RDoc::Markup:: prefix,
+ # because we look for it in module Markup first.
+ #
+ # source://rdoc//lib/rdoc/markup/to_html_crossref.rb#83
+ def handle_regexp_CROSSREF(target); end
+
+ # Handles rdoc-ref: scheme links and allows RDoc::Markup::ToHtml to
+ # handle other schemes.
+ #
+ # source://rdoc//lib/rdoc/markup/to_html_crossref.rb#102
+ def handle_regexp_HYPERLINK(target); end
+
+ # +target+ is an rdoc-schemed link that will be converted into a hyperlink.
+ # For the rdoc-ref scheme the cross-reference will be looked up and the
+ # given name will be used.
+ #
+ # All other contents are handled by
+ # {the superclass}[rdoc-ref:RDoc::Markup::ToHtml#handle_regexp_RDOCLINK]
+ #
+ # source://rdoc//lib/rdoc/markup/to_html_crossref.rb#116
+ def handle_regexp_RDOCLINK(target); end
+
+ # source://rdoc//lib/rdoc/markup/to_html_crossref.rb#46
+ def init_link_notation_regexp_handlings; end
+
+ # Creates an HTML link to +name+ with the given +text+.
+ #
+ # source://rdoc//lib/rdoc/markup/to_html_crossref.rb#141
+ def link(name, text, code = T.unsafe(nil)); end
+
+ # Should we show '#' characters on method references?
+ #
+ # source://rdoc//lib/rdoc/markup/to_html_crossref.rb#24
+ def show_hash; end
+
+ # Should we show '#' characters on method references?
+ #
+ # source://rdoc//lib/rdoc/markup/to_html_crossref.rb#24
+ def show_hash=(_arg0); end
+end
+
+# Outputs RDoc markup as paragraphs with inline markup only.
+#
+# source://rdoc//lib/rdoc/markup/to_html_snippet.rb#5
+class RDoc::Markup::ToHtmlSnippet < ::RDoc::Markup::ToHtml
+ # Creates a new ToHtmlSnippet formatter that will cut off the input on the
+ # next word boundary after the given number of +characters+ or +paragraphs+
+ # of text have been encountered.
+ #
+ # @return [ToHtmlSnippet] a new instance of ToHtmlSnippet
+ #
+ # source://rdoc//lib/rdoc/markup/to_html_snippet.rb#37
+ def initialize(options, characters = T.unsafe(nil), paragraphs = T.unsafe(nil), markup = T.unsafe(nil)); end
+
+ # Adds +heading+ to the output as a paragraph
+ #
+ # source://rdoc//lib/rdoc/markup/to_html_snippet.rb#53
+ def accept_heading(heading); end
+
+ # Finishes consumption of +list_item+
+ #
+ # source://rdoc//lib/rdoc/markup/to_html_snippet.rb#85
+ def accept_list_item_end(list_item); end
+
+ # Prepares the visitor for consuming +list_item+
+ #
+ # source://rdoc//lib/rdoc/markup/to_html_snippet.rb#91
+ def accept_list_item_start(list_item); end
+
+ # Prepares the visitor for consuming +list+
+ #
+ # source://rdoc//lib/rdoc/markup/to_html_snippet.rb#98
+ def accept_list_start(list); end
+
+ # Adds +paragraph+ to the output
+ #
+ # source://rdoc//lib/rdoc/markup/to_html_snippet.rb#72
+ def accept_paragraph(paragraph); end
+
+ # Raw sections are untrusted and ignored
+ #
+ # source://rdoc//lib/rdoc/markup/formatter.rb#188
+ def accept_raw(*node); end
+
+ # Rules are ignored
+ #
+ # source://rdoc//lib/rdoc/markup/formatter.rb#188
+ def accept_rule(*node); end
+
+ # Adds +verbatim+ to the output
+ #
+ # source://rdoc//lib/rdoc/markup/to_html_snippet.rb#107
+ def accept_verbatim(verbatim); end
+
+ # Throws +:done+ when paragraph_limit paragraphs have been encountered
+ #
+ # source://rdoc//lib/rdoc/markup/to_html_snippet.rb#198
+ def add_paragraph; end
+
+ # After this many characters the input will be cut off.
+ #
+ # source://rdoc//lib/rdoc/markup/to_html_snippet.rb#10
+ def character_limit; end
+
+ # The number of characters seen so far.
+ #
+ # source://rdoc//lib/rdoc/markup/to_html_snippet.rb#15
+ def characters; end
+
+ # Marks up +content+
+ #
+ # source://rdoc//lib/rdoc/markup/to_html_snippet.rb#207
+ def convert(content); end
+
+ # Converts flow items +flow+
+ #
+ # source://rdoc//lib/rdoc/markup/to_html_snippet.rb#218
+ def convert_flow(flow); end
+
+ # Returns just the text of +link+, +url+ is only used to determine the link
+ # type.
+ #
+ # source://rdoc//lib/rdoc/markup/to_html_snippet.rb#171
+ def gen_url(url, text); end
+
+ # Removes escaping from the cross-references in +target+
+ #
+ # source://rdoc//lib/rdoc/markup/to_html_snippet.rb#131
+ def handle_regexp_CROSSREF(target); end
+
+ # +target+ is a
+ #
+ # source://rdoc//lib/rdoc/markup/to_html_snippet.rb#138
+ def handle_regexp_HARD_BREAK(target); end
+
+ # In snippets, there are no lists
+ #
+ # source://rdoc//lib/rdoc/markup/to_html_snippet.rb#191
+ def html_list_name(list_type, open_tag); end
+
+ # Lists are paragraphs, but notes and labels have a separator
+ #
+ # source://rdoc//lib/rdoc/markup/to_html_snippet.rb#146
+ def list_item_start(list_item, list_type); end
+
+ # The attribute bitmask
+ #
+ # source://rdoc//lib/rdoc/markup/to_html_snippet.rb#20
+ def mask; end
+
+ # Maintains a bitmask to allow HTML elements to be closed properly. See
+ # RDoc::Markup::Formatter.
+ #
+ # source://rdoc//lib/rdoc/markup/to_html_snippet.rb#264
+ def off_tags(res, item); end
+
+ # Maintains a bitmask to allow HTML elements to be closed properly. See
+ # RDoc::Markup::Formatter.
+ #
+ # source://rdoc//lib/rdoc/markup/to_html_snippet.rb#254
+ def on_tags(res, item); end
+
+ # After this many paragraphs the input will be cut off.
+ #
+ # source://rdoc//lib/rdoc/markup/to_html_snippet.rb#25
+ def paragraph_limit; end
+
+ # Count of paragraphs found
+ #
+ # source://rdoc//lib/rdoc/markup/to_html_snippet.rb#30
+ def paragraphs; end
+
+ # Prepares the visitor for HTML snippet generation
+ #
+ # source://rdoc//lib/rdoc/markup/to_html_snippet.rb#122
+ def start_accepting; end
+
+ # Truncates +text+ at the end of the first word after the character_limit.
+ #
+ # source://rdoc//lib/rdoc/markup/to_html_snippet.rb#273
+ def truncate(text); end
+end
+
+# Joins the parts of an RDoc::Markup::Paragraph into a single String.
+#
+# This allows for easier maintenance and testing of Markdown support.
+#
+# This formatter only works on Paragraph instances. Attempting to process
+# other markup syntax items will not work.
+#
+# source://rdoc//lib/rdoc/markup/to_joined_paragraph.rb#10
+class RDoc::Markup::ToJoinedParagraph < ::RDoc::Markup::Formatter
+ # @return [ToJoinedParagraph] a new instance of ToJoinedParagraph
+ #
+ # source://rdoc//lib/rdoc/markup/to_joined_paragraph.rb#12
+ def initialize; end
+
+ # source://rdoc//lib/rdoc/markup/formatter.rb#188
+ def accept_block_quote(*node); end
+
+ # source://rdoc//lib/rdoc/markup/formatter.rb#188
+ def accept_heading(*node); end
+
+ # source://rdoc//lib/rdoc/markup/formatter.rb#188
+ def accept_list_end(*node); end
+
+ # source://rdoc//lib/rdoc/markup/formatter.rb#188
+ def accept_list_item_end(*node); end
+
+ # source://rdoc//lib/rdoc/markup/formatter.rb#188
+ def accept_list_item_start(*node); end
+
+ # source://rdoc//lib/rdoc/markup/formatter.rb#188
+ def accept_list_start(*node); end
+
+ # Converts the parts of +paragraph+ to a single entry.
+ #
+ # source://rdoc//lib/rdoc/markup/to_joined_paragraph.rb#25
+ def accept_paragraph(paragraph); end
+
+ # source://rdoc//lib/rdoc/markup/formatter.rb#188
+ def accept_raw(*node); end
+
+ # source://rdoc//lib/rdoc/markup/formatter.rb#188
+ def accept_rule(*node); end
+
+ # source://rdoc//lib/rdoc/markup/formatter.rb#188
+ def accept_table(*node); end
+
+ # source://rdoc//lib/rdoc/markup/formatter.rb#188
+ def accept_verbatim(*node); end
+
+ # source://rdoc//lib/rdoc/markup/to_joined_paragraph.rb#19
+ def end_accepting; end
+
+ # source://rdoc//lib/rdoc/markup/to_joined_paragraph.rb#16
+ def start_accepting; end
+end
+
+# Creates HTML-safe labels suitable for use in id attributes. Tidylinks are
+# converted to their link part and cross-reference links have the suppression
+# marks removed (\\SomeClass is converted to SomeClass).
+#
+# source://rdoc//lib/rdoc/markup/to_label.rb#9
+class RDoc::Markup::ToLabel < ::RDoc::Markup::Formatter
+ # Creates a new formatter that will output HTML-safe labels
+ #
+ # @return [ToLabel] a new instance of ToLabel
+ #
+ # source://rdoc//lib/rdoc/markup/to_label.rb#16
+ def initialize(markup = T.unsafe(nil)); end
+
+ # source://rdoc//lib/rdoc/markup/formatter.rb#188
+ def accept_blank_line(*node); end
+
+ # source://rdoc//lib/rdoc/markup/formatter.rb#188
+ def accept_block_quote(*node); end
+
+ # source://rdoc//lib/rdoc/markup/formatter.rb#188
+ def accept_heading(*node); end
+
+ # source://rdoc//lib/rdoc/markup/formatter.rb#188
+ def accept_list_end(*node); end
+
+ # source://rdoc//lib/rdoc/markup/formatter.rb#188
+ def accept_list_item_end(*node); end
+
+ # source://rdoc//lib/rdoc/markup/formatter.rb#188
+ def accept_list_item_start(*node); end
+
+ # source://rdoc//lib/rdoc/markup/formatter.rb#188
+ def accept_list_start(*node); end
+
+ # source://rdoc//lib/rdoc/markup/formatter.rb#188
+ def accept_paragraph(*node); end
+
+ # source://rdoc//lib/rdoc/markup/formatter.rb#188
+ def accept_raw(*node); end
+
+ # source://rdoc//lib/rdoc/markup/formatter.rb#188
+ def accept_rule(*node); end
+
+ # source://rdoc//lib/rdoc/markup/formatter.rb#188
+ def accept_verbatim(*node); end
+
+ # Converts +text+ to an HTML-safe label
+ #
+ # source://rdoc//lib/rdoc/markup/to_label.rb#32
+ def convert(text); end
+
+ # source://rdoc//lib/rdoc/markup/formatter.rb#188
+ def end_accepting(*node); end
+
+ # Converts the CROSSREF +target+ to plain text, removing the suppression
+ # marker, if any
+ #
+ # source://rdoc//lib/rdoc/markup/to_label.rb#42
+ def handle_regexp_CROSSREF(target); end
+
+ # source://rdoc//lib/rdoc/markup/formatter.rb#188
+ def handle_regexp_HARD_BREAK(*node); end
+
+ # Converts the TIDYLINK +target+ to just the text part
+ #
+ # source://rdoc//lib/rdoc/markup/to_label.rb#51
+ def handle_regexp_TIDYLINK(target); end
+
+ # source://rdoc//lib/rdoc/markup/to_label.rb#11
+ def res; end
+
+ # source://rdoc//lib/rdoc/markup/formatter.rb#188
+ def start_accepting(*node); end
+end
+
+# Outputs parsed markup as Markdown
+#
+# source://rdoc//lib/rdoc/markup/to_markdown.rb#7
+class RDoc::Markup::ToMarkdown < ::RDoc::Markup::ToRdoc
+ # Creates a new formatter that will output Markdown format text
+ #
+ # @return [ToMarkdown] a new instance of ToMarkdown
+ #
+ # source://rdoc//lib/rdoc/markup/to_markdown.rb#12
+ def initialize(markup = T.unsafe(nil)); end
+
+ # Finishes consumption of `list`
+ #
+ # source://rdoc//lib/rdoc/markup/to_markdown.rb#47
+ def accept_list_end(list); end
+
+ # Finishes consumption of `list_item`
+ #
+ # source://rdoc//lib/rdoc/markup/to_markdown.rb#56
+ def accept_list_item_end(list_item); end
+
+ # Prepares the visitor for consuming `list_item`
+ #
+ # source://rdoc//lib/rdoc/markup/to_markdown.rb#75
+ def accept_list_item_start(list_item); end
+
+ # Prepares the visitor for consuming `list`
+ #
+ # source://rdoc//lib/rdoc/markup/to_markdown.rb#100
+ def accept_list_start(list); end
+
+ # Adds `rule` to the output
+ #
+ # source://rdoc//lib/rdoc/markup/to_markdown.rb#117
+ def accept_rule(rule); end
+
+ # Outputs `verbatim` indented 4 columns
+ #
+ # source://rdoc//lib/rdoc/markup/to_markdown.rb#126
+ def accept_verbatim(verbatim); end
+
+ # Creates a Markdown-style URL from +url+ with +text+.
+ #
+ # source://rdoc//lib/rdoc/markup/to_markdown.rb#140
+ def gen_url(url, text); end
+
+ # Handles rdoc- type links for footnotes.
+ #
+ # source://rdoc//lib/rdoc/markup/to_markdown.rb#149
+ def handle_rdoc_link(url); end
+
+ # Adds a newline to the output
+ #
+ # source://rdoc//lib/rdoc/markup/to_markdown.rb#40
+ def handle_regexp_HARD_BREAK(target); end
+
+ # Converts the rdoc-...: links into a Markdown.style links.
+ #
+ # source://rdoc//lib/rdoc/markup/to_markdown.rb#187
+ def handle_regexp_RDOCLINK(target); end
+
+ # Converts the RDoc markup tidylink into a Markdown.style link.
+ #
+ # source://rdoc//lib/rdoc/markup/to_markdown.rb#169
+ def handle_regexp_TIDYLINK(target); end
+
+ # Maps attributes to HTML sequences
+ #
+ # source://rdoc//lib/rdoc/markup/to_markdown.rb#31
+ def init_tags; end
+end
+
+# Outputs RDoc markup as RDoc markup! (mostly)
+#
+# source://rdoc//lib/rdoc/markup/to_rdoc.rb#5
+class RDoc::Markup::ToRdoc < ::RDoc::Markup::Formatter
+ # Creates a new formatter that will output (mostly) \RDoc markup
+ #
+ # @return [ToRdoc] a new instance of ToRdoc
+ #
+ # source://rdoc//lib/rdoc/markup/to_rdoc.rb#45
+ def initialize(markup = T.unsafe(nil)); end
+
+ # Adds +blank_line+ to the output
+ #
+ # source://rdoc//lib/rdoc/markup/to_rdoc.rb#77
+ def accept_blank_line(blank_line); end
+
+ # Adds +paragraph+ to the output
+ #
+ # source://rdoc//lib/rdoc/markup/to_rdoc.rb#84
+ def accept_block_quote(block_quote); end
+
+ # Adds +heading+ to the output
+ #
+ # source://rdoc//lib/rdoc/markup/to_rdoc.rb#99
+ def accept_heading(heading); end
+
+ # Adds +paragraph+ to the output
+ #
+ # source://rdoc//lib/rdoc/markup/to_rdoc.rb#203
+ def accept_indented_paragraph(paragraph); end
+
+ # Finishes consumption of +list+
+ #
+ # source://rdoc//lib/rdoc/markup/to_rdoc.rb#110
+ def accept_list_end(list); end
+
+ # Finishes consumption of +list_item+
+ #
+ # source://rdoc//lib/rdoc/markup/to_rdoc.rb#119
+ def accept_list_item_end(list_item); end
+
+ # Prepares the visitor for consuming +list_item+
+ #
+ # source://rdoc//lib/rdoc/markup/to_rdoc.rb#143
+ def accept_list_item_start(list_item); end
+
+ # Prepares the visitor for consuming +list+
+ #
+ # source://rdoc//lib/rdoc/markup/to_rdoc.rb#168
+ def accept_list_start(list); end
+
+ # Adds +paragraph+ to the output
+ #
+ # source://rdoc//lib/rdoc/markup/to_rdoc.rb#195
+ def accept_paragraph(paragraph); end
+
+ # Adds +raw+ to the output
+ #
+ # source://rdoc//lib/rdoc/markup/to_rdoc.rb#213
+ def accept_raw(raw); end
+
+ # Adds +rule+ to the output
+ #
+ # source://rdoc//lib/rdoc/markup/to_rdoc.rb#220
+ def accept_rule(rule); end
+
+ # Adds +table+ to the output
+ #
+ # source://rdoc//lib/rdoc/markup/to_rdoc.rb#243
+ def accept_table(header, body, aligns); end
+
+ # Outputs +verbatim+ indented 2 columns
+ #
+ # source://rdoc//lib/rdoc/markup/to_rdoc.rb#229
+ def accept_verbatim(verbatim); end
+
+ # Applies attribute-specific markup to +text+ using RDoc::AttributeManager
+ #
+ # source://rdoc//lib/rdoc/markup/to_rdoc.rb#271
+ def attributes(text); end
+
+ # Returns the generated output
+ #
+ # source://rdoc//lib/rdoc/markup/to_rdoc.rb#279
+ def end_accepting; end
+
+ # Adds a newline to the output
+ #
+ # source://rdoc//lib/rdoc/markup/to_rdoc.rb#295
+ def handle_regexp_HARD_BREAK(target); end
+
+ # Removes preceding \\ from the suppressed crossref +target+
+ #
+ # source://rdoc//lib/rdoc/markup/to_rdoc.rb#286
+ def handle_regexp_SUPPRESSED_CROSSREF(target); end
+
+ # Current indent amount for output in characters
+ #
+ # source://rdoc//lib/rdoc/markup/to_rdoc.rb#10
+ def indent; end
+
+ # Current indent amount for output in characters
+ #
+ # source://rdoc//lib/rdoc/markup/to_rdoc.rb#10
+ def indent=(_arg0); end
+
+ # Maps attributes to HTML sequences
+ #
+ # source://rdoc//lib/rdoc/markup/to_rdoc.rb#68
+ def init_tags; end
+
+ # Stack of current list indexes for alphabetic and numeric lists
+ #
+ # source://rdoc//lib/rdoc/markup/to_rdoc.rb#20
+ def list_index; end
+
+ # Stack of list types
+ #
+ # source://rdoc//lib/rdoc/markup/to_rdoc.rb#25
+ def list_type; end
+
+ # Stack of list widths for indentation
+ #
+ # source://rdoc//lib/rdoc/markup/to_rdoc.rb#30
+ def list_width; end
+
+ # Prefix for the next list item. See #use_prefix
+ #
+ # source://rdoc//lib/rdoc/markup/to_rdoc.rb#35
+ def prefix; end
+
+ # Output accumulator
+ #
+ # source://rdoc//lib/rdoc/markup/to_rdoc.rb#40
+ def res; end
+
+ # Prepares the visitor for text generation
+ #
+ # source://rdoc//lib/rdoc/markup/to_rdoc.rb#302
+ def start_accepting; end
+
+ # Adds the stored #prefix to the output and clears it. Lists generate a
+ # prefix for later consumption.
+ #
+ # source://rdoc//lib/rdoc/markup/to_rdoc.rb#316
+ def use_prefix; end
+
+ # Output width in characters
+ #
+ # source://rdoc//lib/rdoc/markup/to_rdoc.rb#15
+ def width; end
+
+ # Output width in characters
+ #
+ # source://rdoc//lib/rdoc/markup/to_rdoc.rb#15
+ def width=(_arg0); end
+
+ # Wraps +text+ to #width
+ #
+ # source://rdoc//lib/rdoc/markup/to_rdoc.rb#326
+ def wrap(text); end
+end
+
+# Extracts just the RDoc::Markup::Heading elements from a
+# RDoc::Markup::Document to help build a table of contents
+#
+# source://rdoc//lib/rdoc/markup/to_table_of_contents.rb#6
+class RDoc::Markup::ToTableOfContents < ::RDoc::Markup::Formatter
+ # @return [ToTableOfContents] a new instance of ToTableOfContents
+ #
+ # source://rdoc//lib/rdoc/markup/to_table_of_contents.rb#27
+ def initialize; end
+
+ # source://rdoc//lib/rdoc/markup/formatter.rb#188
+ def accept_blank_line(*node); end
+
+ # :stopdoc:
+ #
+ # source://rdoc//lib/rdoc/markup/formatter.rb#188
+ def accept_block_quote(*node); end
+
+ # Adds +document+ to the output, using its heading cutoff if present
+ #
+ # source://rdoc//lib/rdoc/markup/to_table_of_contents.rb#36
+ def accept_document(document); end
+
+ # Adds +heading+ to the table of contents
+ #
+ # source://rdoc//lib/rdoc/markup/to_table_of_contents.rb#45
+ def accept_heading(heading); end
+
+ # source://rdoc//lib/rdoc/markup/formatter.rb#188
+ def accept_list_end(*node); end
+
+ # source://rdoc//lib/rdoc/markup/formatter.rb#188
+ def accept_list_end_bullet(*node); end
+
+ # source://rdoc//lib/rdoc/markup/formatter.rb#188
+ def accept_list_item_end(*node); end
+
+ # source://rdoc//lib/rdoc/markup/formatter.rb#188
+ def accept_list_item_start(*node); end
+
+ # source://rdoc//lib/rdoc/markup/formatter.rb#188
+ def accept_list_start(*node); end
+
+ # source://rdoc//lib/rdoc/markup/formatter.rb#188
+ def accept_paragraph(*node); end
+
+ # source://rdoc//lib/rdoc/markup/formatter.rb#188
+ def accept_raw(*node); end
+
+ # source://rdoc//lib/rdoc/markup/formatter.rb#188
+ def accept_rule(*node); end
+
+ # source://rdoc//lib/rdoc/markup/formatter.rb#188
+ def accept_table(*node); end
+
+ # source://rdoc//lib/rdoc/markup/formatter.rb#188
+ def accept_verbatim(*node); end
+
+ # Returns the table of contents
+ #
+ # source://rdoc//lib/rdoc/markup/to_table_of_contents.rb#52
+ def end_accepting; end
+
+ # Omits headings with a level less than the given level.
+ #
+ # source://rdoc//lib/rdoc/markup/to_table_of_contents.rb#25
+ def omit_headings_below; end
+
+ # Omits headings with a level less than the given level.
+ #
+ # source://rdoc//lib/rdoc/markup/to_table_of_contents.rb#25
+ def omit_headings_below=(_arg0); end
+
+ # Output accumulator
+ #
+ # source://rdoc//lib/rdoc/markup/to_table_of_contents.rb#20
+ def res; end
+
+ # Prepares the visitor for text generation
+ #
+ # source://rdoc//lib/rdoc/markup/to_table_of_contents.rb#59
+ def start_accepting; end
+
+ # Returns true if +heading+ is below the display threshold
+ #
+ # @return [Boolean]
+ #
+ # source://rdoc//lib/rdoc/markup/to_table_of_contents.rb#67
+ def suppressed?(heading); end
+
+ class << self
+ # Singleton for table-of-contents generation
+ #
+ # source://rdoc//lib/rdoc/markup/to_table_of_contents.rb#13
+ def to_toc; end
+ end
+end
+
+# This Markup outputter is used for testing purposes.
+#
+# source://rdoc//lib/rdoc/markup/to_test.rb#5
+class RDoc::Markup::ToTest < ::RDoc::Markup::Formatter
+ # source://rdoc//lib/rdoc/markup/to_test.rb#55
+ def accept_blank_line(blank_line); end
+
+ # source://rdoc//lib/rdoc/markup/to_test.rb#59
+ def accept_heading(heading); end
+
+ # source://rdoc//lib/rdoc/markup/to_test.rb#44
+ def accept_list_end(list); end
+
+ # source://rdoc//lib/rdoc/markup/to_test.rb#52
+ def accept_list_item_end(list_item); end
+
+ # source://rdoc//lib/rdoc/markup/to_test.rb#48
+ def accept_list_item_start(list_item); end
+
+ # source://rdoc//lib/rdoc/markup/to_test.rb#33
+ def accept_list_start(list); end
+
+ # source://rdoc//lib/rdoc/markup/to_test.rb#21
+ def accept_paragraph(paragraph); end
+
+ # source://rdoc//lib/rdoc/markup/to_test.rb#25
+ def accept_raw(raw); end
+
+ # source://rdoc//lib/rdoc/markup/to_test.rb#63
+ def accept_rule(rule); end
+
+ # source://rdoc//lib/rdoc/markup/to_test.rb#29
+ def accept_verbatim(verbatim); end
+
+ # source://rdoc//lib/rdoc/markup/to_test.rb#17
+ def end_accepting; end
+
+ # :section: Visitor
+ #
+ # source://rdoc//lib/rdoc/markup/to_test.rb#12
+ def start_accepting; end
+end
+
+# Extracts sections of text enclosed in plus, tt or code. Used to discover
+# undocumented parameters.
+#
+# source://rdoc//lib/rdoc/markup/to_tt_only.rb#6
+class RDoc::Markup::ToTtOnly < ::RDoc::Markup::Formatter
+ # Creates a new tt-only formatter.
+ #
+ # @return [ToTtOnly] a new instance of ToTtOnly
+ #
+ # source://rdoc//lib/rdoc/markup/to_tt_only.rb#21
+ def initialize(markup = T.unsafe(nil)); end
+
+ # Does nothing to +markup_item+ because it doesn't have any user-built
+ # content
+ #
+ # source://rdoc//lib/rdoc/markup/to_tt_only.rb#71
+ def accept_blank_line(markup_item); end
+
+ # Adds tts from +block_quote+ to the output
+ #
+ # source://rdoc//lib/rdoc/markup/to_tt_only.rb#30
+ def accept_block_quote(block_quote); end
+
+ # Does nothing to +markup_item+ because it doesn't have any user-built
+ # content
+ #
+ # source://rdoc//lib/rdoc/markup/to_tt_only.rb#71
+ def accept_heading(markup_item); end
+
+ # Pops the list type for +list+ from #list_type
+ #
+ # source://rdoc//lib/rdoc/markup/to_tt_only.rb#37
+ def accept_list_end(list); end
+
+ # Does nothing to +markup_item+ because it doesn't have any user-built
+ # content
+ #
+ # source://rdoc//lib/rdoc/markup/to_tt_only.rb#71
+ def accept_list_item_end(markup_item); end
+
+ # Prepares the visitor for consuming +list_item+
+ #
+ # source://rdoc//lib/rdoc/markup/to_tt_only.rb#51
+ def accept_list_item_start(list_item); end
+
+ # Pushes the list type for +list+ onto #list_type
+ #
+ # source://rdoc//lib/rdoc/markup/to_tt_only.rb#44
+ def accept_list_start(list); end
+
+ # Adds +paragraph+ to the output
+ #
+ # source://rdoc//lib/rdoc/markup/to_tt_only.rb#63
+ def accept_paragraph(paragraph); end
+
+ # Does nothing to +markup_item+ because it doesn't have any user-built
+ # content
+ #
+ # source://rdoc//lib/rdoc/markup/to_tt_only.rb#71
+ def accept_raw(markup_item); end
+
+ # Does nothing to +markup_item+ because it doesn't have any user-built
+ # content
+ #
+ # source://rdoc//lib/rdoc/markup/to_tt_only.rb#71
+ def accept_rule(markup_item); end
+
+ # Does nothing to +markup_item+ because it doesn't have any user-built
+ # content
+ #
+ # source://rdoc//lib/rdoc/markup/to_tt_only.rb#71
+ def accept_verbatim(markup_item); end
+
+ # Does nothing to +markup_item+ because it doesn't have any user-built
+ # content
+ #
+ # source://rdoc//lib/rdoc/markup/to_tt_only.rb#71
+ def do_nothing(markup_item); end
+
+ # Returns an Array of items that were wrapped in plus, tt or code.
+ #
+ # source://rdoc//lib/rdoc/markup/to_tt_only.rb#107
+ def end_accepting; end
+
+ # Stack of list types
+ #
+ # source://rdoc//lib/rdoc/markup/to_tt_only.rb#11
+ def list_type; end
+
+ # Output accumulator
+ #
+ # source://rdoc//lib/rdoc/markup/to_tt_only.rb#16
+ def res; end
+
+ # Prepares the visitor for gathering tt sections
+ #
+ # source://rdoc//lib/rdoc/markup/to_tt_only.rb#114
+ def start_accepting; end
+
+ # Extracts tt sections from +text+
+ #
+ # source://rdoc//lib/rdoc/markup/to_tt_only.rb#84
+ def tt_sections(text); end
+end
+
+# A section of verbatim text
+#
+# source://rdoc//lib/rdoc/markup/verbatim.rb#5
+class RDoc::Markup::Verbatim < ::RDoc::Markup::Raw
+ # @return [Verbatim] a new instance of Verbatim
+ #
+ # source://rdoc//lib/rdoc/markup/verbatim.rb#12
+ def initialize(*parts); end
+
+ # source://rdoc//lib/rdoc/markup/verbatim.rb#18
+ def ==(other); end
+
+ # Calls #accept_verbatim on +visitor+
+ #
+ # source://rdoc//lib/rdoc/markup/verbatim.rb#25
+ def accept(visitor); end
+
+ # Format of this verbatim section
+ #
+ # source://rdoc//lib/rdoc/markup/verbatim.rb#10
+ def format; end
+
+ # Format of this verbatim section
+ #
+ # source://rdoc//lib/rdoc/markup/verbatim.rb#10
+ def format=(_arg0); end
+
+ # Collapses 3+ newlines into two newlines
+ #
+ # source://rdoc//lib/rdoc/markup/verbatim.rb#32
+ def normalize; end
+
+ # source://rdoc//lib/rdoc/markup/verbatim.rb#53
+ def pretty_print(q); end
+
+ # Is this verbatim section Ruby code?
+ #
+ # @return [Boolean]
+ #
+ # source://rdoc//lib/rdoc/markup/verbatim.rb#71
+ def ruby?; end
+
+ # The text of the section
+ #
+ # source://rdoc//lib/rdoc/markup/verbatim.rb#79
+ def text; end
+end
+
+# Abstract class representing either a method or an attribute.
+#
+# source://rdoc//lib/rdoc/method_attr.rb#5
+class RDoc::MethodAttr < ::RDoc::CodeObject
+ include ::Comparable
+
+ # Creates a new MethodAttr from token stream +text+ and method or attribute
+ # name +name+.
+ #
+ # Usually this is called by super from a subclass.
+ #
+ # @return [MethodAttr] a new instance of MethodAttr
+ #
+ # source://rdoc//lib/rdoc/method_attr.rb#78
+ def initialize(text, name); end
+
+ # Order by #singleton then #name
+ #
+ # source://rdoc//lib/rdoc/method_attr.rb#113
+ def <=>(other); end
+
+ # source://rdoc//lib/rdoc/method_attr.rb#121
+ def ==(other); end
+
+ # Abstract method. Contexts in their building phase call this
+ # to register a new alias for this known method/attribute.
+ #
+ # - creates a new AnyMethod/Attribute named an_alias.new_name;
+ # - adds +self+ as an alias for the new method or attribute
+ # - adds the method or attribute to #aliases
+ # - adds the method or attribute to +context+.
+ #
+ # @raise [NotImplementedError]
+ #
+ # source://rdoc//lib/rdoc/method_attr.rb#209
+ def add_alias(an_alias, context); end
+
+ # Prepend +src+ with line numbers. Relies on the first line of a source
+ # code listing having:
+ #
+ # # File xxxxx, line dddd
+ #
+ # If it has this comment then line numbers are added to +src+ and the ,
+ # line dddd portion of the comment is removed.
+ #
+ # source://rdoc//lib/rdoc/generator/markup.rb#77
+ def add_line_numbers(src); end
+
+ # Array of other names for this method/attribute
+ #
+ # source://rdoc//lib/rdoc/method_attr.rb#32
+ def aliases; end
+
+ # HTML fragment reference for this method
+ #
+ # source://rdoc//lib/rdoc/method_attr.rb#216
+ def aref; end
+
+ # Prefix for +aref+, defined by subclasses.
+ #
+ # @raise [NotImplementedError]
+ #
+ # source://rdoc//lib/rdoc/method_attr.rb#225
+ def aref_prefix; end
+
+ # The call_seq or the param_seq with method name, if there is no call_seq.
+ #
+ # source://rdoc//lib/rdoc/method_attr.rb#64
+ def arglists; end
+
+ # Parameters yielded by the called block
+ #
+ # source://rdoc//lib/rdoc/method_attr.rb#49
+ def block_params; end
+
+ # Attempts to sanitize the content passed by the Ruby parser:
+ # remove outer parentheses, etc.
+ #
+ # source://rdoc//lib/rdoc/method_attr.rb#233
+ def block_params=(value); end
+
+ # Different ways to call this method
+ #
+ # source://rdoc//lib/rdoc/method_attr.rb#59
+ def call_seq; end
+
+ # Different ways to call this method
+ #
+ # source://rdoc//lib/rdoc/method_attr.rb#59
+ def call_seq=(_arg0); end
+
+ # A method/attribute is documented if any of the following is true:
+ # - it has a comment;
+ # - it is an alias for a documented method;
+ # - it has a +#see+ method that is documented.
+ #
+ # @return [Boolean]
+ #
+ # source://rdoc//lib/rdoc/method_attr.rb#132
+ def documented?; end
+
+ # source://rdoc//lib/rdoc/method_attr.rb#178
+ def find_method_or_attribute(name); end
+
+ # source://rdoc//lib/rdoc/method_attr.rb#166
+ def find_see; end
+
+ # Full method/attribute name including namespace
+ #
+ # source://rdoc//lib/rdoc/method_attr.rb#300
+ def full_name; end
+
+ # HTML id-friendly method/attribute name
+ #
+ # source://rdoc//lib/rdoc/method_attr.rb#291
+ def html_name; end
+
+ # source://rdoc//lib/rdoc/method_attr.rb#105
+ def initialize_visibility; end
+
+ # source://rdoc//lib/rdoc/method_attr.rb#304
+ def inspect; end
+
+ # The method/attribute we're aliasing
+ #
+ # source://rdoc//lib/rdoc/method_attr.rb#37
+ def is_alias_for; end
+
+ # The method/attribute we're aliasing
+ #
+ # source://rdoc//lib/rdoc/method_attr.rb#37
+ def is_alias_for=(_arg0); end
+
+ # Turns the method's token stream into HTML.
+ #
+ # Prepends line numbers if +options.line_numbers+ is true.
+ #
+ # source://rdoc//lib/rdoc/generator/markup.rb#101
+ def markup_code; end
+
+ # Name of this method/attribute.
+ #
+ # source://rdoc//lib/rdoc/method_attr.rb#12
+ def name; end
+
+ # Name of this method/attribute.
+ #
+ # source://rdoc//lib/rdoc/method_attr.rb#12
+ def name=(_arg0); end
+
+ # '::' for a class method/attribute, '#' for an instance method.
+ #
+ # source://rdoc//lib/rdoc/method_attr.rb#319
+ def name_prefix; end
+
+ # Name for output to HTML. For class methods the full name with a "." is
+ # used like +SomeClass.method_name+. For instance methods the class name is
+ # used if +context+ does not match the parent.
+ #
+ # This is to help prevent people from using :: to call class methods.
+ #
+ # source://rdoc//lib/rdoc/method_attr.rb#330
+ def output_name(context); end
+
+ # Pretty parameter list for this method
+ #
+ # source://rdoc//lib/rdoc/method_attr.rb#69
+ def param_seq; end
+
+ # Parameters for this method
+ #
+ # source://rdoc//lib/rdoc/method_attr.rb#54
+ def params; end
+
+ # Parameters for this method
+ #
+ # source://rdoc//lib/rdoc/method_attr.rb#54
+ def params=(_arg0); end
+
+ # Name of our parent with special handling for un-marshaled methods
+ #
+ # source://rdoc//lib/rdoc/method_attr.rb#360
+ def parent_name; end
+
+ # Path to this method for use with HTML generator output.
+ #
+ # source://rdoc//lib/rdoc/method_attr.rb#353
+ def path; end
+
+ # Method/attribute name with class/instance indicator
+ #
+ # source://rdoc//lib/rdoc/method_attr.rb#339
+ def pretty_name; end
+
+ # source://rdoc//lib/rdoc/method_attr.rb#364
+ def pretty_print(q); end
+
+ # Used by RDoc::Generator::JsonIndex to create a record for the search
+ # engine.
+ #
+ # source://rdoc//lib/rdoc/method_attr.rb#398
+ def search_record; end
+
+ # A method/attribute to look at,
+ # in particular if this method/attribute has no documentation.
+ #
+ # It can be a method/attribute of the superclass or of an included module,
+ # including the Kernel module, which is always appended to the included
+ # modules.
+ #
+ # Returns +nil+ if there is no such method/attribute.
+ # The +#is_alias_for+ method/attribute, if any, is not included.
+ #
+ # Templates may generate a "see also ..." if this method/attribute
+ # has documentation, and "see ..." if it does not.
+ #
+ # source://rdoc//lib/rdoc/method_attr.rb#152
+ def see; end
+
+ # Is this a singleton method/attribute?
+ #
+ # source://rdoc//lib/rdoc/method_attr.rb#22
+ def singleton; end
+
+ # Is this a singleton method/attribute?
+ #
+ # source://rdoc//lib/rdoc/method_attr.rb#22
+ def singleton=(_arg0); end
+
+ # Sets the store for this class or module and its contained code objects.
+ #
+ # source://rdoc//lib/rdoc/method_attr.rb#160
+ def store=(store); end
+
+ # Source file token stream
+ #
+ # source://rdoc//lib/rdoc/method_attr.rb#27
+ def text; end
+
+ # source://rdoc//lib/rdoc/method_attr.rb#410
+ def to_s; end
+
+ # Type of method/attribute (class or instance)
+ #
+ # source://rdoc//lib/rdoc/method_attr.rb#346
+ def type; end
+
+ # public, protected, private
+ #
+ # source://rdoc//lib/rdoc/method_attr.rb#17
+ def visibility; end
+
+ # public, protected, private
+ #
+ # source://rdoc//lib/rdoc/method_attr.rb#17
+ def visibility=(_arg0); end
+
+ private
+
+ # Resets cached data for the object so it can be rebuilt by accessor methods
+ #
+ # source://rdoc//lib/rdoc/method_attr.rb#101
+ def initialize_copy(other); end
+end
+
+# A Mixin adds features from a module into another context. RDoc::Include and
+# RDoc::Extend are both mixins.
+#
+# source://rdoc//lib/rdoc/mixin.rb#6
+class RDoc::Mixin < ::RDoc::CodeObject
+ # Creates a new Mixin for +name+ with +comment+
+ #
+ # @return [Mixin] a new instance of Mixin
+ #
+ # source://rdoc//lib/rdoc/mixin.rb#16
+ def initialize(name, comment); end
+
+ # Mixins are sorted by name
+ #
+ # source://rdoc//lib/rdoc/mixin.rb#26
+ def <=>(other); end
+
+ # source://rdoc//lib/rdoc/mixin.rb#32
+ def ==(other); end
+
+ # source://rdoc//lib/rdoc/mixin.rb#32
+ def eql?(other); end
+
+ # Full name based on #module
+ #
+ # source://rdoc//lib/rdoc/mixin.rb#41
+ def full_name; end
+
+ # source://rdoc//lib/rdoc/mixin.rb#46
+ def hash; end
+
+ # source://rdoc//lib/rdoc/mixin.rb#50
+ def inspect; end
+
+ # Attempts to locate the included module object. Returns the name if not
+ # known.
+ #
+ # The scoping rules of Ruby to resolve the name of an included module are:
+ # - first look into the children of the current context;
+ # - if not found, look into the children of included modules,
+ # in reverse inclusion order;
+ # - if still not found, go up the hierarchy of names.
+ #
+ # This method has O(n!)
behavior when the module calling
+ # include is referencing nonexistent modules. Avoid calling #module until
+ # after all the files are parsed. This behavior is due to ruby's constant
+ # lookup behavior.
+ #
+ # As of the beginning of October, 2011, no gem includes nonexistent modules.
+ #
+ # source://rdoc//lib/rdoc/mixin.rb#75
+ def module; end
+
+ # Name of included module
+ #
+ # source://rdoc//lib/rdoc/mixin.rb#11
+ def name; end
+
+ # Name of included module
+ #
+ # source://rdoc//lib/rdoc/mixin.rb#11
+ def name=(_arg0); end
+
+ # Sets the store for this class or module and its contained code objects.
+ #
+ # source://rdoc//lib/rdoc/mixin.rb#110
+ def store=(store); end
+
+ # source://rdoc//lib/rdoc/mixin.rb#116
+ def to_s; end
+end
+
+# A normal class, neither singleton nor anonymous
+#
+# source://rdoc//lib/rdoc/normal_class.rb#5
+class RDoc::NormalClass < ::RDoc::ClassModule
+ # The ancestors of this class including modules. Unlike Module#ancestors,
+ # this class is not included in the result. The result will contain both
+ # RDoc::ClassModules and Strings.
+ #
+ # source://rdoc//lib/rdoc/normal_class.rb#12
+ def ancestors; end
+
+ # source://rdoc//lib/rdoc/normal_class.rb#24
+ def aref_prefix; end
+
+ # The definition of this class, class MyClassName
+ #
+ # source://rdoc//lib/rdoc/normal_class.rb#31
+ def definition; end
+
+ # source://rdoc//lib/rdoc/normal_class.rb#35
+ def direct_ancestors; end
+
+ # source://rdoc//lib/rdoc/normal_class.rb#39
+ def inspect; end
+
+ # source://rdoc//lib/rdoc/normal_class.rb#56
+ def pretty_print(q); end
+
+ # source://rdoc//lib/rdoc/normal_class.rb#47
+ def to_s; end
+end
+
+# A normal module, like NormalClass
+#
+# source://rdoc//lib/rdoc/normal_module.rb#5
+class RDoc::NormalModule < ::RDoc::ClassModule
+ # source://rdoc//lib/rdoc/normal_module.rb#7
+ def aref_prefix; end
+
+ # The definition of this module, module MyModuleName
+ #
+ # source://rdoc//lib/rdoc/normal_module.rb#21
+ def definition; end
+
+ # source://rdoc//lib/rdoc/normal_module.rb#11
+ def inspect; end
+
+ # This is a module, returns true
+ #
+ # @return [Boolean]
+ #
+ # source://rdoc//lib/rdoc/normal_module.rb#28
+ def module?; end
+
+ # source://rdoc//lib/rdoc/normal_module.rb#32
+ def pretty_print(q); end
+
+ # Modules don't have one, raises NoMethodError
+ #
+ # @raise [NoMethodError]
+ #
+ # source://rdoc//lib/rdoc/normal_module.rb#69
+ def superclass; end
+end
+
+# RDoc::Options handles the parsing and storage of options
+#
+# == Saved Options
+#
+# You can save some options like the markup format in the
+# .rdoc_options file in your gem. The easiest way to do this is:
+#
+# rdoc --markup tomdoc --write-options
+#
+# Which will automatically create the file and fill it with the options you
+# specified.
+#
+# The following options will not be saved since they interfere with the user's
+# preferences or with the normal operation of RDoc:
+#
+# * +--coverage-report+
+# * +--dry-run+
+# * +--encoding+
+# * +--force-update+
+# * +--format+
+# * +--pipe+
+# * +--quiet+
+# * +--template+
+# * +--verbose+
+#
+# == Custom Options
+#
+# Generators can hook into RDoc::Options to add generator-specific command
+# line options.
+#
+# When --format is encountered in ARGV, RDoc calls ::setup_options on
+# the generator class to add extra options to the option parser. Options for
+# custom generators must occur after --format. rdoc --help
+# will list options for all installed generators.
+#
+# Example:
+#
+# class RDoc::Generator::Spellcheck
+# RDoc::RDoc.add_generator self
+#
+# def self.setup_options rdoc_options
+# op = rdoc_options.option_parser
+#
+# op.on('--spell-dictionary DICTIONARY',
+# RDoc::Options::Path) do |dictionary|
+# rdoc_options.spell_dictionary = dictionary
+# end
+# end
+# end
+#
+# Of course, RDoc::Options does not respond to +spell_dictionary+ by default
+# so you will need to add it:
+#
+# class RDoc::Options
+#
+# ##
+# # The spell dictionary used by the spell-checking plugin.
+#
+# attr_accessor :spell_dictionary
+#
+# end
+#
+# == Option Validators
+#
+# OptionParser validators will validate and cast user input values. In
+# addition to the validators that ship with OptionParser (String, Integer,
+# Float, TrueClass, FalseClass, Array, Regexp, Date, Time, URI, etc.),
+# RDoc::Options adds Path, PathArray and Template.
+#
+# source://rdoc//lib/rdoc/options.rb#75
+class RDoc::Options
+ # @return [Options] a new instance of Options
+ #
+ # source://rdoc//lib/rdoc/options.rb#346
+ def initialize(loaded_options = T.unsafe(nil)); end
+
+ # source://rdoc//lib/rdoc/options.rb#459
+ def ==(other); end
+
+ # Character-set for HTML output. #encoding is preferred over #charset
+ #
+ # source://rdoc//lib/rdoc/options.rb#151
+ def charset; end
+
+ # Character-set for HTML output. #encoding is preferred over #charset
+ #
+ # source://rdoc//lib/rdoc/options.rb#151
+ def charset=(_arg0); end
+
+ # Check that the files on the command line exist
+ #
+ # source://rdoc//lib/rdoc/options.rb#483
+ def check_files; end
+
+ # Ensure only one generator is loaded
+ #
+ # source://rdoc//lib/rdoc/options.rb#504
+ def check_generator; end
+
+ # If true, only report on undocumented files
+ #
+ # source://rdoc//lib/rdoc/options.rb#243
+ def coverage_report; end
+
+ # If true, only report on undocumented files
+ #
+ # source://rdoc//lib/rdoc/options.rb#243
+ def coverage_report=(_arg0); end
+
+ # Set the title, but only if not already set. Used to set the title
+ # from a source file, so that a title set from the command line
+ # will have the priority.
+ #
+ # source://rdoc//lib/rdoc/options.rb#516
+ def default_title=(string); end
+
+ # If true, RDoc will not write any files.
+ #
+ # source://rdoc//lib/rdoc/options.rb#156
+ def dry_run; end
+
+ # If true, RDoc will not write any files.
+ #
+ # source://rdoc//lib/rdoc/options.rb#156
+ def dry_run=(_arg0); end
+
+ # The output encoding. All input files will be transcoded to this encoding.
+ #
+ # The default encoding is UTF-8. This is set via --encoding.
+ #
+ # source://rdoc//lib/rdoc/options.rb#163
+ def encoding; end
+
+ # The output encoding. All input files will be transcoded to this encoding.
+ #
+ # The default encoding is UTF-8. This is set via --encoding.
+ #
+ # source://rdoc//lib/rdoc/options.rb#163
+ def encoding=(_arg0); end
+
+ # Create a regexp for #exclude
+ #
+ # source://rdoc//lib/rdoc/options.rb#544
+ def exclude; end
+
+ # Files matching this pattern will be excluded
+ #
+ # source://rdoc//lib/rdoc/options.rb#168
+ def exclude=(_arg0); end
+
+ # The list of files to be processed
+ #
+ # source://rdoc//lib/rdoc/options.rb#173
+ def files; end
+
+ # The list of files to be processed
+ #
+ # source://rdoc//lib/rdoc/options.rb#173
+ def files=(_arg0); end
+
+ # Completes any unfinished option setup business such as filtering for
+ # existent files, creating a regexp for #exclude and setting a default
+ # #template.
+ #
+ # source://rdoc//lib/rdoc/options.rb#560
+ def finish; end
+
+ # Fixes the page_dir to be relative to the root_dir and adds the page_dir to
+ # the files list.
+ #
+ # source://rdoc//lib/rdoc/options.rb#601
+ def finish_page_dir; end
+
+ # Create the output even if the output directory does not look
+ # like an rdoc output directory
+ #
+ # source://rdoc//lib/rdoc/options.rb#179
+ def force_output; end
+
+ # Create the output even if the output directory does not look
+ # like an rdoc output directory
+ #
+ # source://rdoc//lib/rdoc/options.rb#179
+ def force_output=(_arg0); end
+
+ # Scan newer sources than the flag file if true.
+ #
+ # source://rdoc//lib/rdoc/options.rb#184
+ def force_update; end
+
+ # Scan newer sources than the flag file if true.
+ #
+ # source://rdoc//lib/rdoc/options.rb#184
+ def force_update=(_arg0); end
+
+ # Formatter to mark up text with
+ #
+ # source://rdoc//lib/rdoc/options.rb#189
+ def formatter; end
+
+ # Formatter to mark up text with
+ #
+ # source://rdoc//lib/rdoc/options.rb#189
+ def formatter=(_arg0); end
+
+ # Description of the output generator (set with the --format option)
+ #
+ # source://rdoc//lib/rdoc/options.rb#194
+ def generator; end
+
+ # Description of the output generator (set with the --format option)
+ #
+ # source://rdoc//lib/rdoc/options.rb#194
+ def generator=(_arg0); end
+
+ # Returns a properly-space list of generators and their descriptions.
+ #
+ # source://rdoc//lib/rdoc/options.rb#620
+ def generator_descriptions; end
+
+ # For #==
+ #
+ # source://rdoc//lib/rdoc/options.rb#199
+ def generator_name; end
+
+ # Loaded generator options. Used to prevent --help from loading the same
+ # options multiple times.
+ #
+ # source://rdoc//lib/rdoc/options.rb#205
+ def generator_options; end
+
+ # Loaded generator options. Used to prevent --help from loading the same
+ # options multiple times.
+ #
+ # source://rdoc//lib/rdoc/options.rb#205
+ def generator_options=(_arg0); end
+
+ # Old rdoc behavior: hyperlink all words that match a method name,
+ # even if not preceded by '#' or '::'
+ #
+ # source://rdoc//lib/rdoc/options.rb#211
+ def hyperlink_all; end
+
+ # Old rdoc behavior: hyperlink all words that match a method name,
+ # even if not preceded by '#' or '::'
+ #
+ # source://rdoc//lib/rdoc/options.rb#211
+ def hyperlink_all=(_arg0); end
+
+ # source://rdoc//lib/rdoc/options.rb#351
+ def init_ivars; end
+
+ # source://rdoc//lib/rdoc/options.rb#396
+ def init_with(map); end
+
+ # Include line numbers in the source code
+ #
+ # source://rdoc//lib/rdoc/options.rb#216
+ def line_numbers; end
+
+ # Include line numbers in the source code
+ #
+ # source://rdoc//lib/rdoc/options.rb#216
+ def line_numbers=(_arg0); end
+
+ # The output locale.
+ #
+ # source://rdoc//lib/rdoc/options.rb#221
+ def locale; end
+
+ # The output locale.
+ #
+ # source://rdoc//lib/rdoc/options.rb#221
+ def locale=(_arg0); end
+
+ # The directory where locale data live.
+ #
+ # source://rdoc//lib/rdoc/options.rb#226
+ def locale_dir; end
+
+ # The directory where locale data live.
+ #
+ # source://rdoc//lib/rdoc/options.rb#226
+ def locale_dir=(_arg0); end
+
+ # Name of the file, class or module to display in the initial index page (if
+ # not specified the first file we encounter is used)
+ #
+ # source://rdoc//lib/rdoc/options.rb#232
+ def main_page; end
+
+ # Name of the file, class or module to display in the initial index page (if
+ # not specified the first file we encounter is used)
+ #
+ # source://rdoc//lib/rdoc/options.rb#232
+ def main_page=(_arg0); end
+
+ # The default markup format. The default is 'rdoc'. 'markdown', 'tomdoc'
+ # and 'rd' are also built-in.
+ #
+ # source://rdoc//lib/rdoc/options.rb#238
+ def markup; end
+
+ # The default markup format. The default is 'rdoc'. 'markdown', 'tomdoc'
+ # and 'rd' are also built-in.
+ #
+ # source://rdoc//lib/rdoc/options.rb#238
+ def markup=(_arg0); end
+
+ # The name of the output directory
+ #
+ # source://rdoc//lib/rdoc/options.rb#248
+ def op_dir; end
+
+ # The name of the output directory
+ #
+ # source://rdoc//lib/rdoc/options.rb#248
+ def op_dir=(_arg0); end
+
+ # The OptionParser for this instance
+ #
+ # source://rdoc//lib/rdoc/options.rb#253
+ def option_parser; end
+
+ # The OptionParser for this instance
+ #
+ # source://rdoc//lib/rdoc/options.rb#253
+ def option_parser=(_arg0); end
+
+ # Output heading decorations?
+ #
+ # source://rdoc//lib/rdoc/options.rb#257
+ def output_decoration; end
+
+ # Output heading decorations?
+ #
+ # source://rdoc//lib/rdoc/options.rb#257
+ def output_decoration=(_arg0); end
+
+ # source://rdoc//lib/rdoc/options.rb#427
+ def override(map); end
+
+ # Directory where guides, FAQ, and other pages not associated with a class
+ # live. You may leave this unset if these are at the root of your project.
+ #
+ # source://rdoc//lib/rdoc/options.rb#263
+ def page_dir; end
+
+ # Directory where guides, FAQ, and other pages not associated with a class
+ # live. You may leave this unset if these are at the root of your project.
+ #
+ # source://rdoc//lib/rdoc/options.rb#263
+ def page_dir=(_arg0); end
+
+ # Parses command line options.
+ #
+ # source://rdoc//lib/rdoc/options.rb#646
+ def parse(argv); end
+
+ # Is RDoc in pipe mode?
+ #
+ # source://rdoc//lib/rdoc/options.rb#268
+ def pipe; end
+
+ # Is RDoc in pipe mode?
+ #
+ # source://rdoc//lib/rdoc/options.rb#268
+ def pipe=(_arg0); end
+
+ # Don't display progress as we process the files
+ #
+ # source://rdoc//lib/rdoc/options.rb#1191
+ def quiet; end
+
+ # Set quietness to +bool+
+ #
+ # source://rdoc//lib/rdoc/options.rb#1198
+ def quiet=(bool); end
+
+ # Array of directories to search for files to satisfy an :include:
+ #
+ # source://rdoc//lib/rdoc/options.rb#273
+ def rdoc_include; end
+
+ # Array of directories to search for files to satisfy an :include:
+ #
+ # source://rdoc//lib/rdoc/options.rb#273
+ def rdoc_include=(_arg0); end
+
+ # Root of the source documentation will be generated for. Set this when
+ # building documentation outside the source directory. Defaults to the
+ # current directory.
+ #
+ # source://rdoc//lib/rdoc/options.rb#280
+ def root; end
+
+ # Root of the source documentation will be generated for. Set this when
+ # building documentation outside the source directory. Defaults to the
+ # current directory.
+ #
+ # source://rdoc//lib/rdoc/options.rb#280
+ def root=(_arg0); end
+
+ # Removes directories from +path+ that are outside the current directory
+ #
+ # source://rdoc//lib/rdoc/options.rb#1205
+ def sanitize_path(path); end
+
+ # Set up an output generator for the named +generator_name+.
+ #
+ # If the found generator responds to :setup_options it will be called with
+ # the options instance. This allows generators to add custom options or set
+ # default options.
+ #
+ # source://rdoc//lib/rdoc/options.rb#1232
+ def setup_generator(generator_name = T.unsafe(nil)); end
+
+ # Include the '#' at the front of hyperlinked instance method names
+ #
+ # source://rdoc//lib/rdoc/options.rb#285
+ def show_hash; end
+
+ # Include the '#' at the front of hyperlinked instance method names
+ #
+ # source://rdoc//lib/rdoc/options.rb#285
+ def show_hash=(_arg0); end
+
+ # Indicates if files of test suites should be skipped
+ #
+ # source://rdoc//lib/rdoc/options.rb#344
+ def skip_tests; end
+
+ # Indicates if files of test suites should be skipped
+ #
+ # source://rdoc//lib/rdoc/options.rb#344
+ def skip_tests=(_arg0); end
+
+ # Directory to copy static files from
+ #
+ # source://rdoc//lib/rdoc/options.rb#290
+ def static_path; end
+
+ # Directory to copy static files from
+ #
+ # source://rdoc//lib/rdoc/options.rb#290
+ def static_path=(_arg0); end
+
+ # The number of columns in a tab
+ #
+ # source://rdoc//lib/rdoc/options.rb#295
+ def tab_width; end
+
+ # The number of columns in a tab
+ #
+ # source://rdoc//lib/rdoc/options.rb#295
+ def tab_width=(_arg0); end
+
+ # Template to be used when generating output
+ #
+ # source://rdoc//lib/rdoc/options.rb#300
+ def template; end
+
+ # Template to be used when generating output
+ #
+ # source://rdoc//lib/rdoc/options.rb#300
+ def template=(_arg0); end
+
+ # Directory the template lives in
+ #
+ # source://rdoc//lib/rdoc/options.rb#305
+ def template_dir; end
+
+ # Directory the template lives in
+ #
+ # source://rdoc//lib/rdoc/options.rb#305
+ def template_dir=(_arg0); end
+
+ # Finds the template dir for +template+
+ #
+ # source://rdoc//lib/rdoc/options.rb#1254
+ def template_dir_for(template); end
+
+ # Additional template stylesheets
+ #
+ # source://rdoc//lib/rdoc/options.rb#310
+ def template_stylesheets; end
+
+ # Additional template stylesheets
+ #
+ # source://rdoc//lib/rdoc/options.rb#310
+ def template_stylesheets=(_arg0); end
+
+ # Documentation title
+ #
+ # source://rdoc//lib/rdoc/options.rb#315
+ def title; end
+
+ # Documentation title
+ #
+ # source://rdoc//lib/rdoc/options.rb#315
+ def title=(_arg0); end
+
+ # For dumping YAML
+ #
+ # source://rdoc//lib/rdoc/options.rb#523
+ def to_yaml(*options); end
+
+ # Should RDoc update the timestamps in the output dir?
+ #
+ # source://rdoc//lib/rdoc/options.rb#320
+ def update_output_dir; end
+
+ # Should RDoc update the timestamps in the output dir?
+ #
+ # source://rdoc//lib/rdoc/options.rb#320
+ def update_output_dir=(_arg0); end
+
+ # Verbosity, zero means quiet
+ #
+ # source://rdoc//lib/rdoc/options.rb#325
+ def verbosity; end
+
+ # Verbosity, zero means quiet
+ #
+ # source://rdoc//lib/rdoc/options.rb#325
+ def verbosity=(_arg0); end
+
+ # Minimum visibility of a documented method. One of +:public+, +:protected+,
+ # +:private+ or +:nodoc+.
+ #
+ # The +:nodoc+ visibility ignores all directives related to visibility. The
+ # directive.
+ #
+ # source://rdoc//lib/rdoc/options.rb#340
+ def visibility; end
+
+ # Sets the minimum visibility of a documented method.
+ #
+ # Accepts +:public+, +:protected+, +:private+, +:nodoc+, or +:all+.
+ #
+ # When +:all+ is passed, visibility is set to +:private+, similarly to
+ # RDOCOPT="--all", see #visibility for more information.
+ #
+ # source://rdoc//lib/rdoc/options.rb#1271
+ def visibility=(visibility); end
+
+ # Displays a warning using Kernel#warn if we're being verbose
+ #
+ # source://rdoc//lib/rdoc/options.rb#1283
+ def warn(message); end
+
+ # URL of web cvs frontend
+ #
+ # source://rdoc//lib/rdoc/options.rb#330
+ def webcvs; end
+
+ # URL of web cvs frontend
+ #
+ # source://rdoc//lib/rdoc/options.rb#330
+ def webcvs=(_arg0); end
+
+ # Writes the YAML file .rdoc_options to the current directory containing the
+ # parsed options.
+ #
+ # source://rdoc//lib/rdoc/options.rb#1291
+ def write_options; end
+
+ # source://rdoc//lib/rdoc/options.rb#423
+ def yaml_initialize(tag, map); end
+
+ class << self
+ # Loads options from .rdoc_options if the file exists, otherwise creates a
+ # new RDoc::Options instance.
+ #
+ # @raise [RDoc::Error]
+ #
+ # source://rdoc//lib/rdoc/options.rb#1305
+ def load_options; end
+ end
+end
+
+# A parser is simple a class that subclasses RDoc::Parser and implements #scan
+# to fill in an RDoc::TopLevel with parsed data.
+#
+# The initialize method takes an RDoc::TopLevel to fill with parsed content,
+# the name of the file to be parsed, the content of the file, an RDoc::Options
+# object and an RDoc::Stats object to inform the user of parsed items. The
+# scan method is then called to parse the file and must return the
+# RDoc::TopLevel object. By calling super these items will be set for you.
+#
+# In order to be used by RDoc the parser needs to register the file extensions
+# it can parse. Use ::parse_files_matching to register extensions.
+#
+# require 'rdoc'
+#
+# class RDoc::Parser::Xyz < RDoc::Parser
+# parse_files_matching /\.xyz$/
+#
+# def initialize top_level, file_name, content, options, stats
+# super
+#
+# # extra initialization if needed
+# end
+#
+# def scan
+# # parse file and fill in @top_level
+# end
+# end
+#
+# source://rdoc//lib/rdoc/parser.rb#33
+class RDoc::Parser
+ # Creates a new Parser storing +top_level+, +file_name+, +content+,
+ # +options+ and +stats+ in instance variables. In +@preprocess+ an
+ # RDoc::Markup::PreProcess object is created which allows processing of
+ # directives.
+ #
+ # @return [Parser] a new instance of Parser
+ #
+ # source://rdoc//lib/rdoc/parser.rb#252
+ def initialize(top_level, file_name, content, options, stats); end
+
+ # The name of the file being parsed
+ #
+ # source://rdoc//lib/rdoc/parser.rb#52
+ def file_name; end
+
+ # Normalizes tabs in +body+
+ #
+ # source://rdoc//lib/rdoc/parser.rb#272
+ def handle_tab_width(body); end
+
+ class << self
+ # Alias an extension to another extension. After this call, files ending
+ # "new_ext" will be parsed using the same parser as "old_ext"
+ #
+ # source://rdoc//lib/rdoc/parser.rb#58
+ def alias_extension(old_ext, new_ext); end
+
+ # Determines if the file is a "binary" file which basically means it has
+ # content that an RDoc parser shouldn't try to consume.
+ #
+ # @return [Boolean]
+ #
+ # source://rdoc//lib/rdoc/parser.rb#74
+ def binary?(file); end
+
+ # Return a parser that can handle a particular extension
+ #
+ # source://rdoc//lib/rdoc/parser.rb#107
+ def can_parse(file_name); end
+
+ # Returns a parser that can handle the extension for +file_name+. This does
+ # not depend upon the file being readable.
+ #
+ # source://rdoc//lib/rdoc/parser.rb#120
+ def can_parse_by_name(file_name); end
+
+ # Returns the file type from the modeline in +file_name+
+ #
+ # source://rdoc//lib/rdoc/parser.rb#141
+ def check_modeline(file_name); end
+
+ # Finds and instantiates the correct parser for the given +file_name+ and
+ # +content+.
+ #
+ # source://rdoc//lib/rdoc/parser.rb#167
+ def for(top_level, file_name, content, options, stats); end
+
+ # Record which file types this parser can understand.
+ #
+ # It is ok to call this multiple times.
+ #
+ # source://rdoc//lib/rdoc/parser.rb#201
+ def parse_files_matching(regexp); end
+
+ # An Array of arrays that maps file extension (or name) regular
+ # expressions to parser classes that will parse matching filenames.
+ #
+ # Use parse_files_matching to register a parser's file extensions.
+ #
+ # source://rdoc//lib/rdoc/parser.rb#45
+ def parsers; end
+
+ # Removes an emacs-style modeline from the first line of the document
+ #
+ # source://rdoc//lib/rdoc/parser.rb#208
+ def remove_modeline(content); end
+
+ # If there is a markup: parser_name comment at the front of the
+ # file, use it to determine the parser. For example:
+ #
+ # # markup: rdoc
+ # # Class comment can go here
+ #
+ # class C
+ # end
+ #
+ # The comment should appear as the first line of the +content+.
+ #
+ # If the content contains a shebang or editor modeline the comment may
+ # appear on the second or third line.
+ #
+ # Any comment style may be used to hide the markup comment.
+ #
+ # source://rdoc//lib/rdoc/parser.rb#229
+ def use_markup(content); end
+
+ # Checks if +file+ is a zip file in disguise. Signatures from
+ # http://www.garykessler.net/library/file_sigs.html
+ #
+ # @return [Boolean]
+ #
+ # source://rdoc//lib/rdoc/parser.rb#94
+ def zip?(file); end
+ end
+end
+
+# RDoc::Parser::C attempts to parse C extension files. It looks for
+# the standard patterns that you find in extensions: +rb_define_class+,
+# +rb_define_method+ and so on. It tries to find the corresponding
+# C source for the methods and extract comments, but if we fail
+# we don't worry too much.
+#
+# The comments associated with a Ruby method are extracted from the C
+# comment block associated with the routine that _implements_ that
+# method, that is to say the method whose name is given in the
+# +rb_define_method+ call. For example, you might write:
+#
+# /*
+# * Returns a new array that is a one-dimensional flattening of this
+# * array (recursively). That is, for every element that is an array,
+# * extract its elements into the new array.
+# *
+# * s = [ 1, 2, 3 ] #=> [1, 2, 3]
+# * t = [ 4, 5, 6, [7, 8] ] #=> [4, 5, 6, [7, 8]]
+# * a = [ s, t, 9, 10 ] #=> [[1, 2, 3], [4, 5, 6, [7, 8]], 9, 10]
+# * a.flatten #=> [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
+# */
+# static VALUE
+# rb_ary_flatten(VALUE ary)
+# {
+# ary = rb_obj_dup(ary);
+# rb_ary_flatten_bang(ary);
+# return ary;
+# }
+#
+# ...
+#
+# void
+# Init_Array(void)
+# {
+# ...
+# rb_define_method(rb_cArray, "flatten", rb_ary_flatten, 0);
+#
+# Here RDoc will determine from the +rb_define_method+ line that there's a
+# method called "flatten" in class Array, and will look for the implementation
+# in the method +rb_ary_flatten+. It will then use the comment from that
+# method in the HTML output. This method must be in the same source file
+# as the +rb_define_method+.
+#
+# The comment blocks may include special directives:
+#
+# [Document-class: +name+]
+# Documentation for the named class.
+#
+# [Document-module: +name+]
+# Documentation for the named module.
+#
+# [Document-const: +name+]
+# Documentation for the named +rb_define_const+.
+#
+# Constant values can be supplied on the first line of the comment like so:
+#
+# /* 300: The highest possible score in bowling */
+# rb_define_const(cFoo, "PERFECT", INT2FIX(300));
+#
+# The value can contain internal colons so long as they are escaped with a \
+#
+# [Document-global: +name+]
+# Documentation for the named +rb_define_global_const+
+#
+# [Document-variable: +name+]
+# Documentation for the named +rb_define_variable+
+#
+# [Document-method\: +method_name+]
+# Documentation for the named method. Use this when the method name is
+# unambiguous.
+#
+# [Document-method\: ClassName::method_name]
+# Documentation for a singleton method in the given class. Use this when
+# the method name alone is ambiguous.
+#
+# [Document-method\: ClassName#method_name]
+# Documentation for a instance method in the given class. Use this when the
+# method name alone is ambiguous.
+#
+# [Document-attr: +name+]
+# Documentation for the named attribute.
+#
+# [call-seq: text up to an empty line]
+# Because C source doesn't give descriptive names to Ruby-level parameters,
+# you need to document the calling sequence explicitly
+#
+# In addition, RDoc assumes by default that the C method implementing a
+# Ruby function is in the same source file as the rb_define_method call.
+# If this isn't the case, add the comment:
+#
+# rb_define_method(....); // in filename
+#
+# As an example, we might have an extension that defines multiple classes
+# in its Init_xxx method. We could document them using
+#
+# /*
+# * Document-class: MyClass
+# *
+# * Encapsulate the writing and reading of the configuration
+# * file. ...
+# */
+#
+# /*
+# * Document-method: read_value
+# *
+# * call-seq:
+# * cfg.read_value(key) -> value
+# * cfg.read_value(key} { |key| } -> value
+# *
+# * Return the value corresponding to +key+ from the configuration.
+# * In the second form, if the key isn't found, invoke the
+# * block and return its value.
+# */
+#
+# source://rdoc//lib/rdoc/parser/c.rb#119
+class RDoc::Parser::C < ::RDoc::Parser
+ include ::RDoc::Text
+
+ # Prepares for parsing a C file. See RDoc::Parser#initialize for details on
+ # the arguments.
+ #
+ # @return [C] a new instance of C
+ #
+ # source://rdoc//lib/rdoc/parser/c.rb#171
+ def initialize(top_level, file_name, content, options, stats); end
+
+ # Add alias, either from a direct alias definition, or from two
+ # method that reference the same function.
+ #
+ # source://rdoc//lib/rdoc/parser/c.rb#250
+ def add_alias(var_name, class_obj, old_name, new_name, comment); end
+
+ # Maps C variable names to names of Ruby classes or modules
+ #
+ # source://rdoc//lib/rdoc/parser/c.rb#133
+ def classes; end
+
+ # C file the parser is parsing
+ #
+ # source://rdoc//lib/rdoc/parser/c.rb#138
+ def content; end
+
+ # C file the parser is parsing
+ #
+ # source://rdoc//lib/rdoc/parser/c.rb#138
+ def content=(_arg0); end
+
+ # Scans #content for rb_define_alias
+ #
+ # source://rdoc//lib/rdoc/parser/c.rb#222
+ def do_aliases; end
+
+ # Scans #content for rb_attr and rb_define_attr
+ #
+ # source://rdoc//lib/rdoc/parser/c.rb#263
+ def do_attrs; end
+
+ # Scans #content for boot_defclass
+ #
+ # source://rdoc//lib/rdoc/parser/c.rb#286
+ def do_boot_defclass; end
+
+ # Scans #content for rb_define_class, boot_defclass, rb_define_class_under
+ # and rb_singleton_class
+ #
+ # source://rdoc//lib/rdoc/parser/c.rb#298
+ def do_classes_and_modules; end
+
+ # Scans #content for rb_define_variable, rb_define_readonly_variable,
+ # rb_define_const and rb_define_global_const
+ #
+ # source://rdoc//lib/rdoc/parser/c.rb#396
+ def do_constants; end
+
+ # Scans #content for rb_include_module
+ #
+ # source://rdoc//lib/rdoc/parser/c.rb#442
+ def do_includes; end
+
+ # Scans #content for rb_define_method, rb_define_singleton_method,
+ # rb_define_module_function, rb_define_private_method,
+ # rb_define_global_function and define_filetest_function
+ #
+ # source://rdoc//lib/rdoc/parser/c.rb#458
+ def do_methods; end
+
+ # Creates classes and module that were missing were defined due to the file
+ # order being different than the declaration order.
+ #
+ # source://rdoc//lib/rdoc/parser/c.rb#507
+ def do_missing; end
+
+ # Dependencies from a missing enclosing class to the classes in
+ # missing_dependencies that depend upon it.
+ #
+ # source://rdoc//lib/rdoc/parser/c.rb#144
+ def enclosure_dependencies; end
+
+ # Finds the comment for an alias on +class_name+ from +new_name+ to
+ # +old_name+
+ #
+ # source://rdoc//lib/rdoc/parser/c.rb#523
+ def find_alias_comment(class_name, new_name, old_name); end
+
+ # Finds a comment for rb_define_attr, rb_attr or Document-attr.
+ #
+ # +var_name+ is the C class variable the attribute is defined on.
+ # +attr_name+ is the attribute's name.
+ #
+ # +read+ and +write+ are the read/write flags ('1' or '0'). Either both or
+ # neither must be provided.
+ #
+ # source://rdoc//lib/rdoc/parser/c.rb#541
+ def find_attr_comment(var_name, attr_name, read = T.unsafe(nil), write = T.unsafe(nil)); end
+
+ # Find the C code corresponding to a Ruby method
+ #
+ # source://rdoc//lib/rdoc/parser/c.rb#598
+ def find_body(class_name, meth_name, meth_obj, file_content, quiet = T.unsafe(nil)); end
+
+ # Finds a RDoc::NormalClass or RDoc::NormalModule for +raw_name+
+ #
+ # source://rdoc//lib/rdoc/parser/c.rb#682
+ def find_class(raw_name, name, base_name = T.unsafe(nil)); end
+
+ # Look for class or module documentation above Init_+class_name+(void),
+ # in a Document-class +class_name+ (or module) comment or above an
+ # rb_define_class (or module). If a comment is supplied above a matching
+ # Init_ and a rb_define_class the Init_ comment is used.
+ #
+ # /*
+ # * This is a comment for Foo
+ # */
+ # Init_Foo(void) {
+ # VALUE cFoo = rb_define_class("Foo", rb_cObject);
+ # }
+ #
+ # /*
+ # * Document-class: Foo
+ # * This is a comment for Foo
+ # */
+ # Init_foo(void) {
+ # VALUE cFoo = rb_define_class("Foo", rb_cObject);
+ # }
+ #
+ # /*
+ # * This is a comment for Foo
+ # */
+ # VALUE cFoo = rb_define_class("Foo", rb_cObject);
+ #
+ # source://rdoc//lib/rdoc/parser/c.rb#723
+ def find_class_comment(class_name, class_mod); end
+
+ # Finds a comment matching +type+ and +const_name+ either above the
+ # comment or in the matching Document- section.
+ #
+ # source://rdoc//lib/rdoc/parser/c.rb#779
+ def find_const_comment(type, const_name, class_name = T.unsafe(nil)); end
+
+ # Handles modifiers in +comment+ and updates +meth_obj+ as appropriate.
+ #
+ # source://rdoc//lib/rdoc/parser/c.rb#796
+ def find_modifiers(comment, meth_obj); end
+
+ # Finds a Document-method override for +meth_obj+ on +class_name+
+ #
+ # source://rdoc//lib/rdoc/parser/c.rb#806
+ def find_override_comment(class_name, meth_obj); end
+
+ # Generate a Ruby-method table
+ #
+ # source://rdoc//lib/rdoc/parser/c.rb#574
+ def gen_body_table(file_content); end
+
+ # Generate a const table
+ #
+ # source://rdoc//lib/rdoc/parser/c.rb#756
+ def gen_const_table(file_content); end
+
+ # Creates a new RDoc::Attr +attr_name+ on class +var_name+ that is either
+ # +read+, +write+ or both
+ #
+ # source://rdoc//lib/rdoc/parser/c.rb#828
+ def handle_attr(var_name, attr_name, read, write); end
+
+ # Creates a new RDoc::NormalClass or RDoc::NormalModule based on +type+
+ # named +class_name+ in +parent+ which was assigned to the C +var_name+.
+ #
+ # source://rdoc//lib/rdoc/parser/c.rb#857
+ def handle_class_module(var_name, type, class_name, parent, in_module); end
+
+ # Adds constants. By providing some_value: at the start of the comment you
+ # can override the C value of the comment to give a friendly definition.
+ #
+ # /* 300: The perfect score in bowling */
+ # rb_define_const(cFoo, "PERFECT", INT2FIX(300));
+ #
+ # Will override INT2FIX(300) with the value +300+ in the output
+ # RDoc. Values may include quotes and escaped colons (\:).
+ #
+ # source://rdoc//lib/rdoc/parser/c.rb#922
+ def handle_constants(type, var_name, const_name, definition); end
+
+ # Removes #ifdefs that would otherwise confuse us
+ #
+ # source://rdoc//lib/rdoc/parser/c.rb#972
+ def handle_ifdefs_in(body); end
+
+ # Adds an RDoc::AnyMethod +meth_name+ defined on a class or module assigned
+ # to +var_name+. +type+ is the type of method definition function used.
+ # +singleton_method+ and +module_function+ create a singleton method.
+ #
+ # source://rdoc//lib/rdoc/parser/c.rb#981
+ def handle_method(type, var_name, meth_name, function, param_count, source_file = T.unsafe(nil)); end
+
+ # Registers a singleton class +sclass_var+ as a singleton of +class_var+
+ #
+ # source://rdoc//lib/rdoc/parser/c.rb#1051
+ def handle_singleton(sclass_var, class_var); end
+
+ # Maps C variable names to names of Ruby classes (and singleton classes)
+ #
+ # source://rdoc//lib/rdoc/parser/c.rb#149
+ def known_classes; end
+
+ # Loads the variable map with the given +name+ from the RDoc::Store, if
+ # present.
+ #
+ # source://rdoc//lib/rdoc/parser/c.rb#1062
+ def load_variable_map(map_name); end
+
+ # Look for directives in a normal comment block:
+ #
+ # /*
+ # * :title: My Awesome Project
+ # */
+ #
+ # This method modifies the +comment+
+ #
+ # source://rdoc//lib/rdoc/parser/c.rb#1091
+ def look_for_directives_in(context, comment); end
+
+ # Classes found while parsing the C file that were not yet registered due to
+ # a missing enclosing class. These are processed by do_missing
+ #
+ # source://rdoc//lib/rdoc/parser/c.rb#155
+ def missing_dependencies; end
+
+ # Creates a RDoc::Comment instance.
+ #
+ # source://rdoc//lib/rdoc/parser/c.rb#1221
+ def new_comment(text = T.unsafe(nil), location = T.unsafe(nil), language = T.unsafe(nil)); end
+
+ # Extracts parameters from the +method_body+ and returns a method
+ # parameter string. Follows 1.9.3dev's scan-arg-spec, see README.EXT
+ #
+ # source://rdoc//lib/rdoc/parser/c.rb#1110
+ def rb_scan_args(method_body); end
+
+ # Removes lines that are commented out that might otherwise get picked up
+ # when scanning for classes and methods
+ #
+ # source://rdoc//lib/rdoc/parser/c.rb#1193
+ def remove_commented_out_lines; end
+
+ # Extracts the classes, modules, methods, attributes, constants and aliases
+ # from a C file and returns an RDoc::TopLevel for this file
+ #
+ # source://rdoc//lib/rdoc/parser/c.rb#1201
+ def scan; end
+
+ # Maps C variable names to names of Ruby singleton classes
+ #
+ # source://rdoc//lib/rdoc/parser/c.rb#160
+ def singleton_classes; end
+
+ # The TopLevel items in the parsed file belong to
+ #
+ # source://rdoc//lib/rdoc/parser/c.rb#165
+ def top_level; end
+end
+
+# :stopdoc:
+#
+# source://rdoc//lib/rdoc/parser/c.rb#126
+RDoc::Parser::C::BOOL_ARG_PATTERN = T.let(T.unsafe(nil), Regexp)
+
+# source://rdoc//lib/rdoc/parser/c.rb#127
+RDoc::Parser::C::TRUE_VALUES = T.let(T.unsafe(nil), Array)
+
+# A ChangeLog file parser.
+#
+# This parser converts a ChangeLog into an RDoc::Markup::Document. When
+# viewed as HTML a ChangeLog page will have an entry for each day's entries in
+# the sidebar table of contents.
+#
+# This parser is meant to parse the MRI ChangeLog, but can be used to parse any
+# {GNU style Change
+# Log}[http://www.gnu.org/prep/standards/html_node/Style-of-Change-Logs.html].
+#
+# source://rdoc//lib/rdoc/parser/changelog.rb#14
+class RDoc::Parser::ChangeLog < ::RDoc::Parser
+ include ::RDoc::Parser::Text
+
+ # Attaches the +continuation+ of the previous line to the +entry_body+.
+ #
+ # Continued function listings are joined together as a single entry.
+ # Continued descriptions are joined to make a single paragraph.
+ #
+ # source://rdoc//lib/rdoc/parser/changelog.rb#26
+ def continue_entry_body(entry_body, continuation); end
+
+ # Creates an RDoc::Markup::Document given the +groups+ of ChangeLog entries.
+ #
+ # source://rdoc//lib/rdoc/parser/changelog.rb#44
+ def create_document(groups); end
+
+ # Returns a list of ChangeLog entries an RDoc::Markup nodes for the given
+ # +entries+.
+ #
+ # source://rdoc//lib/rdoc/parser/changelog.rb#66
+ def create_entries(entries); end
+
+ # Returns an RDoc::Markup::List containing the given +items+ in the
+ # ChangeLog
+ #
+ # source://rdoc//lib/rdoc/parser/changelog.rb#83
+ def create_items(items); end
+
+ # Groups +entries+ by date.
+ #
+ # source://rdoc//lib/rdoc/parser/changelog.rb#103
+ def group_entries(entries); end
+
+ # Parse date in ISO-8601, RFC-2822, or default of Git
+ #
+ # source://rdoc//lib/rdoc/parser/changelog.rb#119
+ def parse_date(date); end
+
+ # Parses the entries in the ChangeLog.
+ #
+ # Returns an Array of each ChangeLog entry in order of parsing.
+ #
+ # A ChangeLog entry is an Array containing the ChangeLog title (date and
+ # committer) and an Array of ChangeLog items (file and function changed with
+ # description).
+ #
+ # An example result would be:
+ #
+ # [ 'Tue Dec 4 08:33:46 2012 Eric Hodel ',
+ # [ 'README.EXT: Converted to RDoc format',
+ # 'README.EXT.ja: ditto']]
+ #
+ # source://rdoc//lib/rdoc/parser/changelog.rb#149
+ def parse_entries; end
+
+ # Converts the ChangeLog into an RDoc::Markup::Document
+ #
+ # source://rdoc//lib/rdoc/parser/changelog.rb#206
+ def scan; end
+end
+
+# The extension for Git commit log
+#
+# source://rdoc//lib/rdoc/parser/changelog.rb#222
+module RDoc::Parser::ChangeLog::Git
+ # Returns a list of ChangeLog entries as
+ # RDoc::Parser::ChangeLog::Git::LogEntry list for the given
+ # +entries+.
+ #
+ # source://rdoc//lib/rdoc/parser/changelog.rb#262
+ def create_entries(entries); end
+
+ # Parses the entries in the Git commit logs
+ #
+ # source://rdoc//lib/rdoc/parser/changelog.rb#235
+ def parse_entries; end
+
+ # Parses auxiliary info. Currentry `base-url` to expand
+ # references is effective.
+ #
+ # source://rdoc//lib/rdoc/parser/changelog.rb#227
+ def parse_info(info); end
+end
+
+# source://rdoc//lib/rdoc/parser/changelog.rb#271
+RDoc::Parser::ChangeLog::Git::HEADING_LEVEL = T.let(T.unsafe(nil), Integer)
+
+# source://rdoc//lib/rdoc/parser/changelog.rb#270
+class RDoc::Parser::ChangeLog::Git::LogEntry < ::Struct
+ # @return [LogEntry] a new instance of LogEntry
+ #
+ # source://rdoc//lib/rdoc/parser/changelog.rb#273
+ def initialize(base, commit, author, email, date, contents); end
+
+ # source://rdoc//lib/rdoc/parser/changelog.rb#313
+ def accept(visitor); end
+
+ # source://rdoc//lib/rdoc/parser/changelog.rb#294
+ def aref; end
+
+ # Returns the value of attribute author
+ #
+ # @return [Object] the current value of author
+ def author; end
+
+ # Sets the attribute author
+ #
+ # @param value [Object] the value to set the attribute author to.
+ # @return [Object] the newly set value
+ def author=(_); end
+
+ # Returns the value of attribute base
+ #
+ # @return [Object] the current value of base
+ def base; end
+
+ # Sets the attribute base
+ #
+ # @param value [Object] the value to set the attribute base to.
+ # @return [Object] the newly set value
+ def base=(_); end
+
+ # Returns the value of attribute commit
+ #
+ # @return [Object] the current value of commit
+ def commit; end
+
+ # Sets the attribute commit
+ #
+ # @param value [Object] the value to set the attribute commit to.
+ # @return [Object] the newly set value
+ def commit=(_); end
+
+ # Returns the value of attribute contents
+ #
+ # @return [Object] the current value of contents
+ def contents; end
+
+ # Sets the attribute contents
+ #
+ # @param value [Object] the value to set the attribute contents to.
+ # @return [Object] the newly set value
+ def contents=(_); end
+
+ # Returns the value of attribute date
+ #
+ # @return [Object] the current value of date
+ def date; end
+
+ # Sets the attribute date
+ #
+ # @param value [Object] the value to set the attribute date to.
+ # @return [Object] the newly set value
+ def date=(_); end
+
+ # Returns the value of attribute email
+ #
+ # @return [Object] the current value of email
+ def email; end
+
+ # Sets the attribute email
+ #
+ # @param value [Object] the value to set the attribute email to.
+ # @return [Object] the newly set value
+ def email=(_); end
+
+ # source://rdoc//lib/rdoc/parser/changelog.rb#298
+ def label(context = T.unsafe(nil)); end
+
+ # source://rdoc//lib/rdoc/parser/changelog.rb#290
+ def level; end
+
+ # source://rdoc//lib/rdoc/parser/changelog.rb#330
+ def pretty_print(q); end
+
+ # source://rdoc//lib/rdoc/parser/changelog.rb#302
+ def text; end
+
+ class << self
+ def [](*_arg0); end
+ def inspect; end
+ def keyword_init?; end
+ def members; end
+ def new(*_arg0); end
+ end
+end
+
+# Parse a Markdown format file. The parsed RDoc::Markup::Document is attached
+# as a file comment.
+#
+# source://rdoc//lib/rdoc/parser/markdown.rb#6
+class RDoc::Parser::Markdown < ::RDoc::Parser
+ include ::RDoc::Parser::Text
+
+ # Creates an Markdown-format TopLevel for the given file.
+ #
+ # source://rdoc//lib/rdoc/parser/markdown.rb#15
+ def scan; end
+end
+
+# Parse a RD format file. The parsed RDoc::Markup::Document is attached as a
+# file comment.
+#
+# source://rdoc//lib/rdoc/parser/rd.rb#6
+class RDoc::Parser::RD < ::RDoc::Parser
+ include ::RDoc::Parser::Text
+
+ # Creates an rd-format TopLevel for the given file.
+ #
+ # source://rdoc//lib/rdoc/parser/rd.rb#15
+ def scan; end
+end
+
+# Wrapper for Ripper lex states
+#
+# source://rdoc//lib/rdoc/parser/ripper_state_lex.rb#7
+class RDoc::Parser::RipperStateLex
+ # New lexer for +code+.
+ #
+ # @return [RipperStateLex] a new instance of RipperStateLex
+ #
+ # source://rdoc//lib/rdoc/parser/ripper_state_lex.rb#576
+ def initialize(code); end
+
+ # source://rdoc//lib/rdoc/parser/ripper_state_lex.rb#322
+ def get_squashed_tk; end
+
+ private
+
+ # source://rdoc//lib/rdoc/parser/ripper_state_lex.rb#465
+ def get_embdoc_tk(tk); end
+
+ # source://rdoc//lib/rdoc/parser/ripper_state_lex.rb#474
+ def get_heredoc_tk(heredoc_name, indent); end
+
+ # source://rdoc//lib/rdoc/parser/ripper_state_lex.rb#549
+ def get_op_tk(tk); end
+
+ # source://rdoc//lib/rdoc/parser/ripper_state_lex.rb#447
+ def get_regexp_tk(tk); end
+
+ # source://rdoc//lib/rdoc/parser/ripper_state_lex.rb#420
+ def get_string_tk(tk); end
+
+ # source://rdoc//lib/rdoc/parser/ripper_state_lex.rb#373
+ def get_symbol_tk(tk); end
+
+ # source://rdoc//lib/rdoc/parser/ripper_state_lex.rb#511
+ def get_words_tk(tk); end
+
+ # @return [Boolean]
+ #
+ # source://rdoc//lib/rdoc/parser/ripper_state_lex.rb#499
+ def heredoc_end?(name, indent, tk); end
+
+ # source://rdoc//lib/rdoc/parser/ripper_state_lex.rb#493
+ def retrieve_heredoc_info(tk); end
+
+ class << self
+ # Returns +true+ if lex state will be +END+ after +token+.
+ #
+ # @return [Boolean]
+ #
+ # source://rdoc//lib/rdoc/parser/ripper_state_lex.rb#597
+ def end?(token); end
+
+ # Returns tokens parsed from +code+.
+ #
+ # source://rdoc//lib/rdoc/parser/ripper_state_lex.rb#584
+ def parse(code); end
+ end
+end
+
+# source://rdoc//lib/rdoc/parser/ripper_state_lex.rb#20
+RDoc::Parser::RipperStateLex::EXPR_ARG = T.let(T.unsafe(nil), Integer)
+
+# source://rdoc//lib/rdoc/parser/ripper_state_lex.rb#31
+RDoc::Parser::RipperStateLex::EXPR_ARG_ANY = T.let(T.unsafe(nil), Integer)
+
+# source://rdoc//lib/rdoc/parser/ripper_state_lex.rb#16
+RDoc::Parser::RipperStateLex::EXPR_BEG = T.let(T.unsafe(nil), Integer)
+
+# source://rdoc//lib/rdoc/parser/ripper_state_lex.rb#30
+RDoc::Parser::RipperStateLex::EXPR_BEG_ANY = T.let(T.unsafe(nil), Integer)
+
+# source://rdoc//lib/rdoc/parser/ripper_state_lex.rb#25
+RDoc::Parser::RipperStateLex::EXPR_CLASS = T.let(T.unsafe(nil), Integer)
+
+# source://rdoc//lib/rdoc/parser/ripper_state_lex.rb#21
+RDoc::Parser::RipperStateLex::EXPR_CMDARG = T.let(T.unsafe(nil), Integer)
+
+# source://rdoc//lib/rdoc/parser/ripper_state_lex.rb#24
+RDoc::Parser::RipperStateLex::EXPR_DOT = T.let(T.unsafe(nil), Integer)
+
+# source://rdoc//lib/rdoc/parser/ripper_state_lex.rb#17
+RDoc::Parser::RipperStateLex::EXPR_END = T.let(T.unsafe(nil), Integer)
+
+# source://rdoc//lib/rdoc/parser/ripper_state_lex.rb#18
+RDoc::Parser::RipperStateLex::EXPR_ENDARG = T.let(T.unsafe(nil), Integer)
+
+# source://rdoc//lib/rdoc/parser/ripper_state_lex.rb#19
+RDoc::Parser::RipperStateLex::EXPR_ENDFN = T.let(T.unsafe(nil), Integer)
+
+# source://rdoc//lib/rdoc/parser/ripper_state_lex.rb#32
+RDoc::Parser::RipperStateLex::EXPR_END_ANY = T.let(T.unsafe(nil), Integer)
+
+# source://rdoc//lib/rdoc/parser/ripper_state_lex.rb#28
+RDoc::Parser::RipperStateLex::EXPR_FITEM = T.let(T.unsafe(nil), Integer)
+
+# source://rdoc//lib/rdoc/parser/ripper_state_lex.rb#23
+RDoc::Parser::RipperStateLex::EXPR_FNAME = T.let(T.unsafe(nil), Integer)
+
+# source://rdoc//lib/rdoc/parser/ripper_state_lex.rb#26
+RDoc::Parser::RipperStateLex::EXPR_LABEL = T.let(T.unsafe(nil), Integer)
+
+# source://rdoc//lib/rdoc/parser/ripper_state_lex.rb#27
+RDoc::Parser::RipperStateLex::EXPR_LABELED = T.let(T.unsafe(nil), Integer)
+
+# source://rdoc//lib/rdoc/parser/ripper_state_lex.rb#22
+RDoc::Parser::RipperStateLex::EXPR_MID = T.let(T.unsafe(nil), Integer)
+
+# source://rdoc//lib/rdoc/parser/ripper_state_lex.rb#15
+RDoc::Parser::RipperStateLex::EXPR_NONE = T.let(T.unsafe(nil), Integer)
+
+# source://rdoc//lib/rdoc/parser/ripper_state_lex.rb#29
+RDoc::Parser::RipperStateLex::EXPR_VALUE = T.let(T.unsafe(nil), Integer)
+
+# source://rdoc//lib/rdoc/parser/ripper_state_lex.rb#312
+class RDoc::Parser::RipperStateLex::InnerStateLex < ::Ripper::Filter
+ # @return [InnerStateLex] a new instance of InnerStateLex
+ #
+ # source://rdoc//lib/rdoc/parser/ripper_state_lex.rb#313
+ def initialize(code); end
+
+ # source://rdoc//lib/rdoc/parser/ripper_state_lex.rb#317
+ def on_default(event, tok, data); end
+end
+
+# TODO: Remove this constants after Ruby 2.4 EOL
+#
+# source://rdoc//lib/rdoc/parser/ripper_state_lex.rb#11
+RDoc::Parser::RipperStateLex::RIPPER_HAS_LEX_STATE = T.let(T.unsafe(nil), TrueClass)
+
+# source://rdoc//lib/rdoc/parser/ripper_state_lex.rb#13
+class RDoc::Parser::RipperStateLex::Token < ::Struct
+ # Returns the value of attribute char_no
+ #
+ # @return [Object] the current value of char_no
+ def char_no; end
+
+ # Sets the attribute char_no
+ #
+ # @param value [Object] the value to set the attribute char_no to.
+ # @return [Object] the newly set value
+ def char_no=(_); end
+
+ # Returns the value of attribute kind
+ #
+ # @return [Object] the current value of kind
+ def kind; end
+
+ # Sets the attribute kind
+ #
+ # @param value [Object] the value to set the attribute kind to.
+ # @return [Object] the newly set value
+ def kind=(_); end
+
+ # Returns the value of attribute line_no
+ #
+ # @return [Object] the current value of line_no
+ def line_no; end
+
+ # Sets the attribute line_no
+ #
+ # @param value [Object] the value to set the attribute line_no to.
+ # @return [Object] the newly set value
+ def line_no=(_); end
+
+ # Returns the value of attribute state
+ #
+ # @return [Object] the current value of state
+ def state; end
+
+ # Sets the attribute state
+ #
+ # @param value [Object] the value to set the attribute state to.
+ # @return [Object] the newly set value
+ def state=(_); end
+
+ # Returns the value of attribute text
+ #
+ # @return [Object] the current value of text
+ def text; end
+
+ # Sets the attribute text
+ #
+ # @param value [Object] the value to set the attribute text to.
+ # @return [Object] the newly set value
+ def text=(_); end
+
+ class << self
+ def [](*_arg0); end
+ def inspect; end
+ def keyword_init?; end
+ def members; end
+ def new(*_arg0); end
+ end
+end
+
+# Extracts code elements from a source file returning a TopLevel object
+# containing the constituent file elements.
+#
+# This file is based on rtags
+#
+# RubyParser understands how to document:
+# * classes
+# * modules
+# * methods
+# * constants
+# * aliases
+# * private, public, protected
+# * private_class_function, public_class_function
+# * private_constant, public_constant
+# * module_function
+# * attr, attr_reader, attr_writer, attr_accessor
+# * extra accessors given on the command line
+# * metaprogrammed methods
+# * require
+# * include
+#
+# == Method Arguments
+#
+# --
+# NOTE: I don't think this works, needs tests, remove the paragraph following
+# this block when known to work
+#
+# The parser extracts the arguments from the method definition. You can
+# override this with a custom argument definition using the :args: directive:
+#
+# ##
+# # This method tries over and over until it is tired
+#
+# def go_go_go(thing_to_try, tries = 10) # :args: thing_to_try
+# puts thing_to_try
+# go_go_go thing_to_try, tries - 1
+# end
+#
+# If you have a more-complex set of overrides you can use the :call-seq:
+# directive:
+# ++
+#
+# The parser extracts the arguments from the method definition. You can
+# override this with a custom argument definition using the :call-seq:
+# directive:
+#
+# ##
+# # This method can be called with a range or an offset and length
+# #
+# # :call-seq:
+# # my_method(Range)
+# # my_method(offset, length)
+#
+# def my_method(*args)
+# end
+#
+# The parser extracts +yield+ expressions from method bodies to gather the
+# yielded argument names. If your method manually calls a block instead of
+# yielding or you want to override the discovered argument names use
+# the :yields: directive:
+#
+# ##
+# # My method is awesome
+#
+# def my_method(&block) # :yields: happy, times
+# block.call 1, 2
+# end
+#
+# == Metaprogrammed Methods
+#
+# To pick up a metaprogrammed method, the parser looks for a comment starting
+# with '##' before an identifier:
+#
+# ##
+# # This is a meta-programmed method!
+#
+# add_my_method :meta_method, :arg1, :arg2
+#
+# The parser looks at the token after the identifier to determine the name, in
+# this example, :meta_method. If a name cannot be found, a warning is printed
+# and 'unknown is used.
+#
+# You can force the name of a method using the :method: directive:
+#
+# ##
+# # :method: some_method!
+#
+# By default, meta-methods are instance methods. To indicate that a method is
+# a singleton method instead use the :singleton-method: directive:
+#
+# ##
+# # :singleton-method:
+#
+# You can also use the :singleton-method: directive with a name:
+#
+# ##
+# # :singleton-method: some_method!
+#
+# You can define arguments for metaprogrammed methods via either the
+# :call-seq:, :arg: or :args: directives.
+#
+# Additionally you can mark a method as an attribute by
+# using :attr:, :attr_reader:, :attr_writer: or :attr_accessor:. Just like
+# for :method:, the name is optional.
+#
+# ##
+# # :attr_reader: my_attr_name
+#
+# == Hidden methods and attributes
+#
+# You can provide documentation for methods that don't appear using
+# the :method:, :singleton-method: and :attr: directives:
+#
+# ##
+# # :attr_writer: ghost_writer
+# # There is an attribute here, but you can't see it!
+#
+# ##
+# # :method: ghost_method
+# # There is a method here, but you can't see it!
+#
+# ##
+# # this is a comment for a regular method
+#
+# def regular_method() end
+#
+# Note that by default, the :method: directive will be ignored if there is a
+# standard rdocable item following it.
+#
+# source://rdoc//lib/rdoc/parser/ruby.rb#144
+class RDoc::Parser::Ruby < ::RDoc::Parser
+ include ::RDoc::TokenStream
+ include ::RDoc::Parser::RubyTools
+
+ # Creates a new Ruby parser.
+ #
+ # @return [Ruby] a new instance of Ruby
+ #
+ # source://rdoc//lib/rdoc/parser/ruby.rb#164
+ def initialize(top_level, file_name, content, options, stats); end
+
+ # Look for the first comment in a file that isn't a shebang line.
+ #
+ # source://rdoc//lib/rdoc/parser/ruby.rb#236
+ def collect_first_comment; end
+
+ # Consumes trailing whitespace from the token stream
+ #
+ # source://rdoc//lib/rdoc/parser/ruby.rb#279
+ def consume_trailing_spaces; end
+
+ # Creates a new attribute in +container+ with +name+.
+ #
+ # source://rdoc//lib/rdoc/parser/ruby.rb#286
+ def create_attr(container, single, name, rw, comment); end
+
+ # Creates a module alias in +container+ at +rhs_name+ (or at the top-level
+ # for "::") with the name from +constant+.
+ #
+ # source://rdoc//lib/rdoc/parser/ruby.rb#300
+ def create_module_alias(container, constant, rhs_name); end
+
+ # Aborts with +msg+
+ #
+ # source://rdoc//lib/rdoc/parser/ruby.rb#313
+ def error(msg); end
+
+ # Looks for a true or false token.
+ #
+ # source://rdoc//lib/rdoc/parser/ruby.rb#322
+ def get_bool; end
+
+ # Look for the name of a class of module (optionally with a leading :: or
+ # with :: separated named) and return the ultimate name, the associated
+ # container, and the given name (with the ::).
+ #
+ # source://rdoc//lib/rdoc/parser/ruby.rb#340
+ def get_class_or_module(container, ignore_constants = T.unsafe(nil)); end
+
+ # Return a superclass, which can be either a constant of an expression
+ #
+ # source://rdoc//lib/rdoc/parser/ruby.rb#423
+ def get_class_specification; end
+
+ # Parse a constant, which might be qualified by one or more class or module
+ # names
+ #
+ # source://rdoc//lib/rdoc/parser/ruby.rb#456
+ def get_constant; end
+
+ # Little hack going on here. In the statement:
+ #
+ # f = 2*(1+yield)
+ #
+ # We see the RPAREN as the next token, so we need to exit early. This still
+ # won't catch all cases (such as "a = yield + 1"
+ #
+ # source://rdoc//lib/rdoc/parser/ruby.rb#558
+ def get_end_token(tk); end
+
+ # Get an included module that may be surrounded by parens
+ #
+ # source://rdoc//lib/rdoc/parser/ruby.rb#473
+ def get_included_module_with_optional_parens; end
+
+ # Retrieves the method container for a singleton method.
+ #
+ # source://rdoc//lib/rdoc/parser/ruby.rb#578
+ def get_method_container(container, name_t); end
+
+ # Extracts a name or symbol from the token stream.
+ #
+ # source://rdoc//lib/rdoc/parser/ruby.rb#621
+ def get_symbol_or_name; end
+
+ # Retrieves the read token stream and replaces +pattern+ with +replacement+
+ # using gsub. If the result is only a ";" returns an empty string.
+ #
+ # source://rdoc//lib/rdoc/parser/ruby.rb#194
+ def get_tkread_clean(pattern, replacement); end
+
+ # Extracts the visibility information for the visibility token +tk+
+ # and +single+ class type identifier.
+ #
+ # Returns the visibility type (a string), the visibility (a symbol) and
+ # +singleton+ if the methods following should be converted to singleton
+ # methods.
+ #
+ # source://rdoc//lib/rdoc/parser/ruby.rb#208
+ def get_visibility_information(tk, single); end
+
+ # Look for directives in a normal comment block:
+ #
+ # # :stopdoc:
+ # # Don't display comment from this point forward
+ #
+ # This routine modifies its +comment+ parameter.
+ #
+ # source://rdoc//lib/rdoc/parser/ruby.rb#661
+ def look_for_directives_in(container, comment); end
+
+ # Adds useful info about the parser to +message+
+ #
+ # source://rdoc//lib/rdoc/parser/ruby.rb#681
+ def make_message(message); end
+
+ # Creates a comment with the correct format
+ #
+ # source://rdoc//lib/rdoc/parser/ruby.rb#693
+ def new_comment(comment, line_no = T.unsafe(nil)); end
+
+ # Parses an +alias+ in +context+ with +comment+
+ #
+ # source://rdoc//lib/rdoc/parser/ruby.rb#762
+ def parse_alias(context, single, tk, comment); end
+
+ # Creates an RDoc::Attr for the name following +tk+, setting the comment to
+ # +comment+.
+ #
+ # source://rdoc//lib/rdoc/parser/ruby.rb#704
+ def parse_attr(context, single, tk, comment); end
+
+ # Creates an RDoc::Attr for each attribute listed after +tk+, setting the
+ # comment for each to +comment+.
+ #
+ # source://rdoc//lib/rdoc/parser/ruby.rb#733
+ def parse_attr_accessor(context, single, tk, comment); end
+
+ # Extracts call parameters from the token stream.
+ #
+ # source://rdoc//lib/rdoc/parser/ruby.rb#801
+ def parse_call_parameters(tk); end
+
+ # Parses a class in +context+ with +comment+
+ #
+ # source://rdoc//lib/rdoc/parser/ruby.rb#844
+ def parse_class(container, single, tk, comment); end
+
+ # Parses and creates a regular class
+ #
+ # source://rdoc//lib/rdoc/parser/ruby.rb#878
+ def parse_class_regular(container, declaration_context, single, name_t, given_name, comment); end
+
+ # Parses a singleton class in +container+ with the given +name+ and
+ # +comment+.
+ #
+ # source://rdoc//lib/rdoc/parser/ruby.rb#918
+ def parse_class_singleton(container, name, comment); end
+
+ # Generates an RDoc::Method or RDoc::Attr from +comment+ by looking for
+ # :method: or :attr: directives in +comment+.
+ #
+ # source://rdoc//lib/rdoc/parser/ruby.rb#1083
+ def parse_comment(container, tk, comment); end
+
+ # Parse a comment that is describing an attribute in +container+ with the
+ # given +name+ and +comment+.
+ #
+ # source://rdoc//lib/rdoc/parser/ruby.rb#1111
+ def parse_comment_attr(container, type, name, comment); end
+
+ # source://rdoc//lib/rdoc/parser/ruby.rb#1123
+ def parse_comment_ghost(container, text, name, column, line_no, comment); end
+
+ # Creates an RDoc::Method on +container+ from +comment+ if there is a
+ # Signature section in the comment
+ #
+ # source://rdoc//lib/rdoc/parser/ruby.rb#1162
+ def parse_comment_tomdoc(container, tk, comment); end
+
+ # Parses a constant in +context+ with +comment+. If +ignore_constants+ is
+ # true, no found constants will be added to RDoc.
+ #
+ # source://rdoc//lib/rdoc/parser/ruby.rb#957
+ def parse_constant(container, tk, comment, ignore_constants = T.unsafe(nil)); end
+
+ # source://rdoc//lib/rdoc/parser/ruby.rb#1024
+ def parse_constant_body(container, constant, is_array_or_hash); end
+
+ # Parses a Module#private_constant or Module#public_constant call from +tk+.
+ #
+ # source://rdoc//lib/rdoc/parser/ruby.rb#2094
+ def parse_constant_visibility(container, single, tk); end
+
+ # Parses an +include+ or +extend+, indicated by the +klass+ and adds it to
+ # +container+ # with +comment+
+ #
+ # source://rdoc//lib/rdoc/parser/ruby.rb#1197
+ def parse_extend_or_include(klass, container, comment); end
+
+ # Parses identifiers that can create new methods or change visibility.
+ #
+ # Returns true if the comment was not consumed.
+ #
+ # source://rdoc//lib/rdoc/parser/ruby.rb#1235
+ def parse_identifier(container, single, tk, comment); end
+
+ # Parses an +included+ with a block feature of ActiveSupport::Concern.
+ #
+ # source://rdoc//lib/rdoc/parser/ruby.rb#1217
+ def parse_included_with_activesupport_concern(container, comment); end
+
+ # Parses a meta-programmed attribute and creates an RDoc::Attr.
+ #
+ # To create foo and bar attributes on class C with comment "My attributes":
+ #
+ # class C
+ #
+ # ##
+ # # :attr:
+ # #
+ # # My attributes
+ #
+ # my_attr :foo, :bar
+ #
+ # end
+ #
+ # To create a foo attribute on class C with comment "My attribute":
+ #
+ # class C
+ #
+ # ##
+ # # :attr: foo
+ # #
+ # # My attribute
+ #
+ # my_attr :foo, :bar
+ #
+ # end
+ #
+ # source://rdoc//lib/rdoc/parser/ruby.rb#1299
+ def parse_meta_attr(context, single, tk, comment); end
+
+ # Parses a meta-programmed method
+ #
+ # source://rdoc//lib/rdoc/parser/ruby.rb#1333
+ def parse_meta_method(container, single, tk, comment); end
+
+ # Parses the name of a metaprogrammed method. +comment+ is used to
+ # determine the name while +tk+ is used in an error message if the name
+ # cannot be determined.
+ #
+ # source://rdoc//lib/rdoc/parser/ruby.rb#1379
+ def parse_meta_method_name(comment, tk); end
+
+ # Parses the parameters and block for a meta-programmed method.
+ #
+ # source://rdoc//lib/rdoc/parser/ruby.rb#1403
+ def parse_meta_method_params(container, single, meth, tk, comment); end
+
+ # Parses a normal method defined by +def+
+ #
+ # source://rdoc//lib/rdoc/parser/ruby.rb#1435
+ def parse_method(container, single, tk, comment); end
+
+ # Parses a method that needs to be ignored.
+ #
+ # source://rdoc//lib/rdoc/parser/ruby.rb#1514
+ def parse_method_dummy(container); end
+
+ # Parses the name of a method in +container+.
+ #
+ # Returns the method name, the container it is in (for def Foo.name) and if
+ # it is a singleton or regular method.
+ #
+ # source://rdoc//lib/rdoc/parser/ruby.rb#1527
+ def parse_method_name(container); end
+
+ # For the given +container+ and initial name token +name_t+ the method name
+ # is parsed from the token stream for a regular method.
+ #
+ # source://rdoc//lib/rdoc/parser/ruby.rb#1554
+ def parse_method_name_regular(container, name_t); end
+
+ # For the given +container+ and initial name token +name_t+ the method name
+ # and the new +container+ (if necessary) are parsed from the token stream
+ # for a singleton method.
+ #
+ # source://rdoc//lib/rdoc/parser/ruby.rb#1572
+ def parse_method_name_singleton(container, name_t); end
+
+ # Extracts +yield+ parameters from +method+
+ #
+ # source://rdoc//lib/rdoc/parser/ruby.rb#1616
+ def parse_method_or_yield_parameters(method = T.unsafe(nil), modifiers = T.unsafe(nil)); end
+
+ # Capture the method's parameters. Along the way, look for a comment
+ # containing:
+ #
+ # # yields: ....
+ #
+ # and add this as the block_params for the method
+ #
+ # source://rdoc//lib/rdoc/parser/ruby.rb#1683
+ def parse_method_parameters(method); end
+
+ # Parses the parameters and body of +meth+
+ #
+ # source://rdoc//lib/rdoc/parser/ruby.rb#1484
+ def parse_method_params_and_body(container, single, meth, added_container); end
+
+ # Parses an RDoc::NormalModule in +container+ with +comment+
+ #
+ # source://rdoc//lib/rdoc/parser/ruby.rb#1698
+ def parse_module(container, single, tk, comment); end
+
+ # Parses an RDoc::Require in +context+ containing +comment+
+ #
+ # source://rdoc//lib/rdoc/parser/ruby.rb#1720
+ def parse_require(context, comment); end
+
+ # Parses a rescue
+ #
+ # source://rdoc//lib/rdoc/parser/ruby.rb#1741
+ def parse_rescue; end
+
+ # The core of the Ruby parser.
+ #
+ # source://rdoc//lib/rdoc/parser/ruby.rb#1772
+ def parse_statements(container, single = T.unsafe(nil), current_method = T.unsafe(nil), comment = T.unsafe(nil)); end
+
+ # Parse up to +no+ symbol arguments
+ #
+ # source://rdoc//lib/rdoc/parser/ruby.rb#1962
+ def parse_symbol_arg(no = T.unsafe(nil)); end
+
+ # Parses up to +no+ symbol arguments surrounded by () and places them in
+ # +args+.
+ #
+ # source://rdoc//lib/rdoc/parser/ruby.rb#1977
+ def parse_symbol_arg_paren(no); end
+
+ # Parses up to +no+ symbol arguments separated by spaces and places them in
+ # +args+.
+ #
+ # source://rdoc//lib/rdoc/parser/ruby.rb#2005
+ def parse_symbol_arg_space(no, tk); end
+
+ # Returns symbol text from the next token
+ #
+ # source://rdoc//lib/rdoc/parser/ruby.rb#2036
+ def parse_symbol_in_arg; end
+
+ # Parses statements in the top-level +container+
+ #
+ # source://rdoc//lib/rdoc/parser/ruby.rb#2053
+ def parse_top_level_statements(container); end
+
+ # Determines the visibility in +container+ from +tk+
+ #
+ # source://rdoc//lib/rdoc/parser/ruby.rb#2071
+ def parse_visibility(container, single, tk); end
+
+ # Determines the block parameter for +context+
+ #
+ # source://rdoc//lib/rdoc/parser/ruby.rb#2110
+ def parse_yield(context, single, tk, method); end
+
+ # Directives are modifier comments that can appear after class, module, or
+ # method names. For example:
+ #
+ # def fred # :yields: a, b
+ #
+ # or:
+ #
+ #
+ # We return the directive name and any parameters as a two element array if
+ # the name is in +allowed+. A directive can be found anywhere up to the end
+ # of the current line.
+ #
+ # source://rdoc//lib/rdoc/parser/ruby.rb#2131
+ def read_directive(allowed); end
+
+ # Handles directives following the definition for +context+ (any
+ # RDoc::CodeObject) if the directives are +allowed+ at this point.
+ #
+ # See also RDoc::Markup::PreProcess#handle_directive
+ #
+ # source://rdoc//lib/rdoc/parser/ruby.rb#2163
+ def read_documentation_modifiers(context, allowed); end
+
+ # Records the location of this +container+ in the file for this parser and
+ # adds it to the list of classes and modules in the file.
+ #
+ # source://rdoc//lib/rdoc/parser/ruby.rb#2182
+ def record_location(container); end
+
+ # Retrieve comment body without =begin/=end
+ #
+ # source://rdoc//lib/rdoc/parser/ruby.rb#1761
+ def retrieve_comment_body(tk); end
+
+ # Scans this Ruby file for Ruby constructs
+ #
+ # source://rdoc//lib/rdoc/parser/ruby.rb#2194
+ def scan; end
+
+ # skip the var [in] part of a 'for' statement
+ #
+ # source://rdoc//lib/rdoc/parser/ruby.rb#2282
+ def skip_for_variable; end
+
+ # Skips the next method in +container+
+ #
+ # source://rdoc//lib/rdoc/parser/ruby.rb#2293
+ def skip_method(container); end
+
+ # while, until, and for have an optional do
+ #
+ # source://rdoc//lib/rdoc/parser/ruby.rb#2241
+ def skip_optional_do_after_expression; end
+
+ # Skip opening parentheses and yield the block.
+ # Skip closing parentheses too when exists.
+ #
+ # source://rdoc//lib/rdoc/parser/ruby.rb#401
+ def skip_parentheses(&block); end
+
+ # Skip spaces until a comment is found
+ #
+ # source://rdoc//lib/rdoc/parser/ruby.rb#2302
+ def skip_tkspace_comment(skip_nl = T.unsafe(nil)); end
+
+ # Marks containers between +container+ and +ancestor+ as ignored
+ #
+ # source://rdoc//lib/rdoc/parser/ruby.rb#646
+ def suppress_parents(container, ancestor); end
+
+ # Return +true+ if +tk+ is a newline.
+ #
+ # @return [Boolean]
+ #
+ # source://rdoc//lib/rdoc/parser/ruby.rb#186
+ def tk_nl?(tk); end
+
+ # Updates visibility in +container+ from +vis_type+ and +vis+.
+ #
+ # source://rdoc//lib/rdoc/parser/ruby.rb#2314
+ def update_visibility(container, vis_type, vis, singleton); end
+
+ # Prints +message+ to +$stderr+ unless we're being quiet
+ #
+ # source://rdoc//lib/rdoc/parser/ruby.rb#2359
+ def warn(message); end
+end
+
+# Collection of methods for writing parsers
+#
+# source://rdoc//lib/rdoc/parser/ruby_tools.rb#5
+module RDoc::Parser::RubyTools
+ # Adds a token listener +obj+, but you should probably use token_listener
+ #
+ # source://rdoc//lib/rdoc/parser/ruby_tools.rb#10
+ def add_token_listener(obj); end
+
+ # Fetches the next token from the scanner
+ #
+ # source://rdoc//lib/rdoc/parser/ruby_tools.rb#18
+ def get_tk; end
+
+ # Reads and returns all tokens up to one of +tokens+. Leaves the matched
+ # token in the token list.
+ #
+ # source://rdoc//lib/rdoc/parser/ruby_tools.rb#52
+ def get_tk_until(*tokens); end
+
+ # Retrieves a String representation of the read tokens
+ #
+ # source://rdoc//lib/rdoc/parser/ruby_tools.rb#73
+ def get_tkread; end
+
+ # Peek equivalent for get_tkread
+ #
+ # source://rdoc//lib/rdoc/parser/ruby_tools.rb#82
+ def peek_read; end
+
+ # Peek at the next token, but don't remove it from the stream
+ #
+ # source://rdoc//lib/rdoc/parser/ruby_tools.rb#89
+ def peek_tk; end
+
+ # Removes the token listener +obj+
+ #
+ # source://rdoc//lib/rdoc/parser/ruby_tools.rb#97
+ def remove_token_listener(obj); end
+
+ # Resets the tools
+ #
+ # source://rdoc//lib/rdoc/parser/ruby_tools.rb#104
+ def reset; end
+
+ # Skips whitespace tokens including newlines
+ #
+ # source://rdoc//lib/rdoc/parser/ruby_tools.rb#115
+ def skip_tkspace; end
+
+ # Skips whitespace tokens excluding newlines
+ #
+ # source://rdoc//lib/rdoc/parser/ruby_tools.rb#129
+ def skip_tkspace_without_nl; end
+
+ # Has +obj+ listen to tokens
+ #
+ # source://rdoc//lib/rdoc/parser/ruby_tools.rb#143
+ def token_listener(obj); end
+
+ # Returns +tk+ to the scanner
+ #
+ # source://rdoc//lib/rdoc/parser/ruby_tools.rb#153
+ def unget_tk(tk); end
+end
+
+# Parse a non-source file. We basically take the whole thing as one big
+# comment.
+#
+# source://rdoc//lib/rdoc/parser/simple.rb#6
+class RDoc::Parser::Simple < ::RDoc::Parser
+ include ::RDoc::Parser::Text
+
+ # Prepare to parse a plain file
+ #
+ # @return [Simple] a new instance of Simple
+ #
+ # source://rdoc//lib/rdoc/parser/simple.rb#17
+ def initialize(top_level, file_name, content, options, stats); end
+
+ # source://rdoc//lib/rdoc/parser/simple.rb#12
+ def content; end
+
+ # Removes the encoding magic comment from +text+
+ #
+ # source://rdoc//lib/rdoc/parser/simple.rb#41
+ def remove_coding_comment(text); end
+
+ # Removes private comments.
+ #
+ # Unlike RDoc::Comment#remove_private this implementation only looks for two
+ # dashes at the beginning of the line. Three or more dashes are considered
+ # to be a rule and ignored.
+ #
+ # source://rdoc//lib/rdoc/parser/simple.rb#52
+ def remove_private_comment(comment); end
+
+ # Extract the file contents and attach them to the TopLevel as a comment
+ #
+ # source://rdoc//lib/rdoc/parser/simple.rb#28
+ def scan; end
+end
+
+# source://rdoc//lib/rdoc/rd.rb#72
+class RDoc::RD
+ class << self
+ # Parses +rd+ source and returns an RDoc::Markup::Document. If the
+ # =begin or =end lines are missing they will be added.
+ #
+ # source://rdoc//lib/rdoc/rd.rb#78
+ def parse(rd); end
+ end
+end
+
+# RD format parser for headings, paragraphs, lists, verbatim sections that
+# exist as blocks.
+#
+# source://rdoc//lib/rdoc/rd/block_parser.rb#664
+class RDoc::RD::BlockParser < ::Racc::Parser
+ # Creates a new RDoc::RD::BlockParser. Use #parse to parse an rd-format
+ # document.
+ #
+ # @return [BlockParser] a new instance of BlockParser
+ #
+ # source://rdoc//lib/rdoc/rd/block_parser.rb#699
+ def initialize; end
+
+ # reduce 0 omitted
+ #
+ # source://rdoc//lib/rdoc/rd/block_parser.rb#1334
+ def _reduce_1(val, _values, result); end
+
+ # source://rdoc//lib/rdoc/rd/block_parser.rb#1376
+ def _reduce_10(val, _values, result); end
+
+ # source://rdoc//lib/rdoc/rd/block_parser.rb#1381
+ def _reduce_11(val, _values, result); end
+
+ # source://rdoc//lib/rdoc/rd/block_parser.rb#1386
+ def _reduce_12(val, _values, result); end
+
+ # source://rdoc//lib/rdoc/rd/block_parser.rb#1394
+ def _reduce_13(val, _values, result); end
+
+ # source://rdoc//lib/rdoc/rd/block_parser.rb#1400
+ def _reduce_14(val, _values, result); end
+
+ # source://rdoc//lib/rdoc/rd/block_parser.rb#1407
+ def _reduce_15(val, _values, result); end
+
+ # source://rdoc//lib/rdoc/rd/block_parser.rb#1412
+ def _reduce_16(val, _values, result); end
+
+ # source://rdoc//lib/rdoc/rd/block_parser.rb#1417
+ def _reduce_17(val, _values, result); end
+
+ # source://rdoc//lib/rdoc/rd/block_parser.rb#1428
+ def _reduce_18(val, _values, result); end
+
+ # source://rdoc//lib/rdoc/rd/block_parser.rb#1439
+ def _reduce_19(val, _values, result); end
+
+ # @raise [ParseError]
+ #
+ # source://rdoc//lib/rdoc/rd/block_parser.rb#1339
+ def _reduce_2(val, _values, result); end
+
+ # source://rdoc//lib/rdoc/rd/block_parser.rb#1445
+ def _reduce_20(val, _values, result); end
+
+ # source://rdoc//lib/rdoc/rd/block_parser.rb#1451
+ def _reduce_21(val, _values, result); end
+
+ # source://rdoc//lib/rdoc/rd/block_parser.rb#1457
+ def _reduce_22(val, _values, result); end
+
+ # reduce 26 omitted
+ #
+ # source://rdoc//lib/rdoc/rd/block_parser.rb#1473
+ def _reduce_27(val, _values, result); end
+
+ # source://rdoc//lib/rdoc/rd/block_parser.rb#1479
+ def _reduce_28(val, _values, result); end
+
+ # source://rdoc//lib/rdoc/rd/block_parser.rb#1485
+ def _reduce_29(val, _values, result); end
+
+ # source://rdoc//lib/rdoc/rd/block_parser.rb#1344
+ def _reduce_3(val, _values, result); end
+
+ # source://rdoc//lib/rdoc/rd/block_parser.rb#1491
+ def _reduce_30(val, _values, result); end
+
+ # source://rdoc//lib/rdoc/rd/block_parser.rb#1496
+ def _reduce_31(val, _values, result); end
+
+ # source://rdoc//lib/rdoc/rd/block_parser.rb#1501
+ def _reduce_32(val, _values, result); end
+
+ # source://rdoc//lib/rdoc/rd/block_parser.rb#1507
+ def _reduce_33(val, _values, result); end
+
+ # source://rdoc//lib/rdoc/rd/block_parser.rb#1512
+ def _reduce_34(val, _values, result); end
+
+ # source://rdoc//lib/rdoc/rd/block_parser.rb#1517
+ def _reduce_35(val, _values, result); end
+
+ # source://rdoc//lib/rdoc/rd/block_parser.rb#1523
+ def _reduce_36(val, _values, result); end
+
+ # source://rdoc//lib/rdoc/rd/block_parser.rb#1529
+ def _reduce_37(val, _values, result); end
+
+ # source://rdoc//lib/rdoc/rd/block_parser.rb#1534
+ def _reduce_38(val, _values, result); end
+
+ # source://rdoc//lib/rdoc/rd/block_parser.rb#1539
+ def _reduce_39(val, _values, result); end
+
+ # source://rdoc//lib/rdoc/rd/block_parser.rb#1349
+ def _reduce_4(val, _values, result); end
+
+ # source://rdoc//lib/rdoc/rd/block_parser.rb#1545
+ def _reduce_40(val, _values, result); end
+
+ # source://rdoc//lib/rdoc/rd/block_parser.rb#1551
+ def _reduce_41(val, _values, result); end
+
+ # source://rdoc//lib/rdoc/rd/block_parser.rb#1556
+ def _reduce_42(val, _values, result); end
+
+ # source://rdoc//lib/rdoc/rd/block_parser.rb#1561
+ def _reduce_43(val, _values, result); end
+
+ # source://rdoc//lib/rdoc/rd/block_parser.rb#1569
+ def _reduce_44(val, _values, result); end
+
+ # source://rdoc//lib/rdoc/rd/block_parser.rb#1575
+ def _reduce_45(val, _values, result); end
+
+ # source://rdoc//lib/rdoc/rd/block_parser.rb#1580
+ def _reduce_46(val, _values, result); end
+
+ # source://rdoc//lib/rdoc/rd/block_parser.rb#1585
+ def _reduce_47(val, _values, result); end
+
+ # source://rdoc//lib/rdoc/rd/block_parser.rb#1591
+ def _reduce_48(val, _values, result); end
+
+ # source://rdoc//lib/rdoc/rd/block_parser.rb#1597
+ def _reduce_49(val, _values, result); end
+
+ # source://rdoc//lib/rdoc/rd/block_parser.rb#1354
+ def _reduce_5(val, _values, result); end
+
+ # source://rdoc//lib/rdoc/rd/block_parser.rb#1603
+ def _reduce_50(val, _values, result); end
+
+ # source://rdoc//lib/rdoc/rd/block_parser.rb#1609
+ def _reduce_51(val, _values, result); end
+
+ # source://rdoc//lib/rdoc/rd/block_parser.rb#1615
+ def _reduce_52(val, _values, result); end
+
+ # reduce 53 omitted
+ #
+ # source://rdoc//lib/rdoc/rd/block_parser.rb#1622
+ def _reduce_54(val, _values, result); end
+
+ # source://rdoc//lib/rdoc/rd/block_parser.rb#1627
+ def _reduce_55(val, _values, result); end
+
+ # reduce 56 omitted
+ #
+ # source://rdoc//lib/rdoc/rd/block_parser.rb#1634
+ def _reduce_57(val, _values, result); end
+
+ # source://rdoc//lib/rdoc/rd/block_parser.rb#1359
+ def _reduce_6(val, _values, result); end
+
+ # reduce 61 omitted
+ #
+ # source://rdoc//lib/rdoc/rd/block_parser.rb#1647
+ def _reduce_62(val, _values, result); end
+
+ # source://rdoc//lib/rdoc/rd/block_parser.rb#1653
+ def _reduce_63(val, _values, result); end
+
+ # source://rdoc//lib/rdoc/rd/block_parser.rb#1659
+ def _reduce_64(val, _values, result); end
+
+ # source://rdoc//lib/rdoc/rd/block_parser.rb#1665
+ def _reduce_65(val, _values, result); end
+
+ # source://rdoc//lib/rdoc/rd/block_parser.rb#1671
+ def _reduce_66(val, _values, result); end
+
+ # source://rdoc//lib/rdoc/rd/block_parser.rb#1677
+ def _reduce_67(val, _values, result); end
+
+ # source://rdoc//lib/rdoc/rd/block_parser.rb#1682
+ def _reduce_68(val, _values, result); end
+
+ # source://rdoc//lib/rdoc/rd/block_parser.rb#1687
+ def _reduce_69(val, _values, result); end
+
+ # reduce 70 omitted
+ #
+ # source://rdoc//lib/rdoc/rd/block_parser.rb#1694
+ def _reduce_71(val, _values, result); end
+
+ # source://rdoc//lib/rdoc/rd/block_parser.rb#1699
+ def _reduce_72(val, _values, result); end
+
+ # reduce 7 omitted
+ #
+ # source://rdoc//lib/rdoc/rd/block_parser.rb#1366
+ def _reduce_8(val, _values, result); end
+
+ # source://rdoc//lib/rdoc/rd/block_parser.rb#1371
+ def _reduce_9(val, _values, result); end
+
+ # source://rdoc//lib/rdoc/rd/block_parser.rb#1704
+ def _reduce_none(val, _values, result); end
+
+ # Adds footnote +content+ to the document
+ #
+ # source://rdoc//lib/rdoc/rd/block_parser.rb#1049
+ def add_footnote(content); end
+
+ # Adds label +label+ to the document
+ #
+ # source://rdoc//lib/rdoc/rd/block_parser.rb#1063
+ def add_label(label); end
+
+ # Retrieves the content of +values+ as a single String
+ #
+ # source://rdoc//lib/rdoc/rd/block_parser.rb#1032
+ def content(values); end
+
+ # Footnotes for this document
+ #
+ # source://rdoc//lib/rdoc/rd/block_parser.rb#683
+ def footnotes; end
+
+ # Path to find included files in
+ #
+ # source://rdoc//lib/rdoc/rd/block_parser.rb#693
+ def include_path; end
+
+ # Path to find included files in
+ #
+ # source://rdoc//lib/rdoc/rd/block_parser.rb#693
+ def include_path=(_arg0); end
+
+ # Labels for items in this document
+ #
+ # source://rdoc//lib/rdoc/rd/block_parser.rb#688
+ def labels; end
+
+ # Current line number
+ #
+ # source://rdoc//lib/rdoc/rd/block_parser.rb#987
+ def line_index; end
+
+ # Returns the next token from the document
+ #
+ # source://rdoc//lib/rdoc/rd/block_parser.rb#755
+ def next_token; end
+
+ # Raises a ParseError when invalid formatting is found
+ #
+ # @raise [ParseError]
+ #
+ # source://rdoc//lib/rdoc/rd/block_parser.rb#971
+ def on_error(et, ev, _values); end
+
+ # Creates a paragraph for +value+
+ #
+ # source://rdoc//lib/rdoc/rd/block_parser.rb#1039
+ def paragraph(value); end
+
+ # Parses +src+ and returns an RDoc::Markup::Document.
+ #
+ # source://rdoc//lib/rdoc/rd/block_parser.rb#711
+ def parse(src); end
+
+ private
+
+ # Cuts off excess whitespace in +src+
+ #
+ # source://rdoc//lib/rdoc/rd/block_parser.rb#935
+ def cut_off(src); end
+
+ # Formats line numbers +line_numbers+ prettily
+ #
+ # source://rdoc//lib/rdoc/rd/block_parser.rb#1023
+ def format_line_num(*line_numbers); end
+
+ # Retrieves the content for +file+ from the include_path
+ #
+ # source://rdoc//lib/rdoc/rd/block_parser.rb#1004
+ def get_included(file); end
+
+ # Yields to the given block if +indent+ matches the current indent, otherwise
+ # an indentation token is processed.
+ #
+ # source://rdoc//lib/rdoc/rd/block_parser.rb#917
+ def if_current_indent_equal(indent); end
+
+ # Parses subtree +src+
+ #
+ # source://rdoc//lib/rdoc/rd/block_parser.rb#994
+ def parse_subtree(src); end
+
+ # source://rdoc//lib/rdoc/rd/block_parser.rb#962
+ def set_term_to_element(parent, term); end
+end
+
+# source://rdoc//lib/rdoc/rd/block_parser.rb#1328
+RDoc::RD::BlockParser::Racc_debug_parser = T.let(T.unsafe(nil), FalseClass)
+
+# Inline keeps track of markup and labels to create proper links.
+#
+# source://rdoc//lib/rdoc/rd/inline.rb#5
+class RDoc::RD::Inline
+ # Initializes the Inline with +rdoc+ and +inline+
+ #
+ # @return [Inline] a new instance of Inline
+ #
+ # source://rdoc//lib/rdoc/rd/inline.rb#34
+ def initialize(rdoc, reference); end
+
+ # source://rdoc//lib/rdoc/rd/inline.rb#42
+ def ==(other); end
+
+ # Appends +more+ to this inline. +more+ may be a String or another Inline.
+ #
+ # source://rdoc//lib/rdoc/rd/inline.rb#50
+ def append(more); end
+
+ # source://rdoc//lib/rdoc/rd/inline.rb#65
+ def inspect; end
+
+ # The markup of this reference in RDoc format
+ #
+ # source://rdoc//lib/rdoc/rd/inline.rb#15
+ def rdoc; end
+
+ # The text of the reference
+ #
+ # source://rdoc//lib/rdoc/rd/inline.rb#10
+ def reference; end
+
+ # The markup of this reference in RDoc format
+ #
+ # source://rdoc//lib/rdoc/rd/inline.rb#15
+ def to_s; end
+
+ class << self
+ # Creates a new Inline for +rdoc+ and +reference+.
+ #
+ # +rdoc+ may be another Inline or a String. If +reference+ is not given it
+ # will use the text from +rdoc+.
+ #
+ # source://rdoc//lib/rdoc/rd/inline.rb#23
+ def new(rdoc, reference = T.unsafe(nil)); end
+ end
+end
+
+# RD format parser for inline markup such as emphasis, links, footnotes, etc.
+#
+# source://rdoc//lib/rdoc/rd/inline_parser.rb#665
+class RDoc::RD::InlineParser < ::Racc::Parser
+ # Creates a new parser for inline markup in the rd format. The +block_parser+
+ # is used to for footnotes and labels in the inline text.
+ #
+ # @return [InlineParser] a new instance of InlineParser
+ #
+ # source://rdoc//lib/rdoc/rd/inline_parser.rb#738
+ def initialize(block_parser); end
+
+ # reduce 100 omitted
+ #
+ # source://rdoc//lib/rdoc/rd/inline_parser.rb#1750
+ def _reduce_101(val, _values, result); end
+
+ # source://rdoc//lib/rdoc/rd/inline_parser.rb#1757
+ def _reduce_102(val, _values, result); end
+
+ # reduce 108 omitted
+ #
+ # source://rdoc//lib/rdoc/rd/inline_parser.rb#1775
+ def _reduce_109(val, _values, result); end
+
+ # reduce 110 omitted
+ #
+ # source://rdoc//lib/rdoc/rd/inline_parser.rb#1782
+ def _reduce_111(val, _values, result); end
+
+ # reduce 112 omitted
+ #
+ # source://rdoc//lib/rdoc/rd/inline_parser.rb#1790
+ def _reduce_113(val, _values, result); end
+
+ # source://rdoc//lib/rdoc/rd/inline_parser.rb#1795
+ def _reduce_114(val, _values, result); end
+
+ # source://rdoc//lib/rdoc/rd/inline_parser.rb#1800
+ def _reduce_115(val, _values, result); end
+
+ # reduce 12 omitted
+ #
+ # source://rdoc//lib/rdoc/rd/inline_parser.rb#1413
+ def _reduce_13(val, _values, result); end
+
+ # reduce 135 omitted
+ #
+ # source://rdoc//lib/rdoc/rd/inline_parser.rb#1845
+ def _reduce_136(val, _values, result); end
+
+ # source://rdoc//lib/rdoc/rd/inline_parser.rb#1420
+ def _reduce_14(val, _values, result); end
+
+ # source://rdoc//lib/rdoc/rd/inline_parser.rb#1427
+ def _reduce_15(val, _values, result); end
+
+ # source://rdoc//lib/rdoc/rd/inline_parser.rb#1434
+ def _reduce_16(val, _values, result); end
+
+ # source://rdoc//lib/rdoc/rd/inline_parser.rb#1441
+ def _reduce_17(val, _values, result); end
+
+ # source://rdoc//lib/rdoc/rd/inline_parser.rb#1449
+ def _reduce_18(val, _values, result); end
+
+ # source://rdoc//lib/rdoc/rd/inline_parser.rb#1455
+ def _reduce_19(val, _values, result); end
+
+ # reduce 1 omitted
+ #
+ # source://rdoc//lib/rdoc/rd/inline_parser.rb#1385
+ def _reduce_2(val, _values, result); end
+
+ # source://rdoc//lib/rdoc/rd/inline_parser.rb#1463
+ def _reduce_20(val, _values, result); end
+
+ # source://rdoc//lib/rdoc/rd/inline_parser.rb#1469
+ def _reduce_21(val, _values, result); end
+
+ # source://rdoc//lib/rdoc/rd/inline_parser.rb#1478
+ def _reduce_22(val, _values, result); end
+
+ # source://rdoc//lib/rdoc/rd/inline_parser.rb#1484
+ def _reduce_23(val, _values, result); end
+
+ # source://rdoc//lib/rdoc/rd/inline_parser.rb#1490
+ def _reduce_24(val, _values, result); end
+
+ # source://rdoc//lib/rdoc/rd/inline_parser.rb#1496
+ def _reduce_25(val, _values, result); end
+
+ # source://rdoc//lib/rdoc/rd/inline_parser.rb#1505
+ def _reduce_26(val, _values, result); end
+
+ # source://rdoc//lib/rdoc/rd/inline_parser.rb#1511
+ def _reduce_27(val, _values, result); end
+
+ # reduce 28 omitted
+ #
+ # source://rdoc//lib/rdoc/rd/inline_parser.rb#1520
+ def _reduce_29(val, _values, result); end
+
+ # source://rdoc//lib/rdoc/rd/inline_parser.rb#1390
+ def _reduce_3(val, _values, result); end
+
+ # source://rdoc//lib/rdoc/rd/inline_parser.rb#1525
+ def _reduce_30(val, _values, result); end
+
+ # source://rdoc//lib/rdoc/rd/inline_parser.rb#1530
+ def _reduce_31(val, _values, result); end
+
+ # source://rdoc//lib/rdoc/rd/inline_parser.rb#1536
+ def _reduce_32(val, _values, result); end
+
+ # source://rdoc//lib/rdoc/rd/inline_parser.rb#1542
+ def _reduce_33(val, _values, result); end
+
+ # source://rdoc//lib/rdoc/rd/inline_parser.rb#1548
+ def _reduce_34(val, _values, result); end
+
+ # reduce 35 omitted
+ #
+ # source://rdoc//lib/rdoc/rd/inline_parser.rb#1556
+ def _reduce_36(val, _values, result); end
+
+ # source://rdoc//lib/rdoc/rd/inline_parser.rb#1561
+ def _reduce_37(val, _values, result); end
+
+ # source://rdoc//lib/rdoc/rd/inline_parser.rb#1566
+ def _reduce_38(val, _values, result); end
+
+ # source://rdoc//lib/rdoc/rd/inline_parser.rb#1572
+ def _reduce_39(val, _values, result); end
+
+ # source://rdoc//lib/rdoc/rd/inline_parser.rb#1578
+ def _reduce_40(val, _values, result); end
+
+ # source://rdoc//lib/rdoc/rd/inline_parser.rb#1584
+ def _reduce_41(val, _values, result); end
+
+ # reduce 42 omitted
+ #
+ # source://rdoc//lib/rdoc/rd/inline_parser.rb#1592
+ def _reduce_43(val, _values, result); end
+
+ # source://rdoc//lib/rdoc/rd/inline_parser.rb#1598
+ def _reduce_44(val, _values, result); end
+
+ # source://rdoc//lib/rdoc/rd/inline_parser.rb#1604
+ def _reduce_45(val, _values, result); end
+
+ # source://rdoc//lib/rdoc/rd/inline_parser.rb#1610
+ def _reduce_46(val, _values, result); end
+
+ # reduce 56 omitted
+ #
+ # source://rdoc//lib/rdoc/rd/inline_parser.rb#1636
+ def _reduce_57(val, _values, result); end
+
+ # source://rdoc//lib/rdoc/rd/inline_parser.rb#1642
+ def _reduce_58(val, _values, result); end
+
+ # source://rdoc//lib/rdoc/rd/inline_parser.rb#1648
+ def _reduce_59(val, _values, result); end
+
+ # source://rdoc//lib/rdoc/rd/inline_parser.rb#1654
+ def _reduce_60(val, _values, result); end
+
+ # reduce 61 omitted
+ #
+ # source://rdoc//lib/rdoc/rd/inline_parser.rb#1661
+ def _reduce_62(val, _values, result); end
+
+ # reduce 63 omitted
+ #
+ # source://rdoc//lib/rdoc/rd/inline_parser.rb#1669
+ def _reduce_64(val, _values, result); end
+
+ # reduce 77 omitted
+ #
+ # source://rdoc//lib/rdoc/rd/inline_parser.rb#1701
+ def _reduce_78(val, _values, result); end
+
+ # reduce 137 omitted
+ #
+ # source://rdoc//lib/rdoc/rd/inline_parser.rb#1852
+ def _reduce_none(val, _values, result); end
+
+ # Creates a new RDoc::RD::Inline for the +rdoc+ markup and the raw +reference+
+ #
+ # source://rdoc//lib/rdoc/rd/inline_parser.rb#887
+ def inline(rdoc, reference = T.unsafe(nil)); end
+
+ # Returns the next token from the inline text
+ #
+ # source://rdoc//lib/rdoc/rd/inline_parser.rb#756
+ def next_token; end
+
+ # Returns words following an error
+ #
+ # source://rdoc//lib/rdoc/rd/inline_parser.rb#876
+ def next_words_on_error; end
+
+ # Raises a ParseError when invalid formatting is found
+ #
+ # @raise [ParseError]
+ #
+ # source://rdoc//lib/rdoc/rd/inline_parser.rb#836
+ def on_error(et, ev, values); end
+
+ # Parses the +inline+ text from RD format into RDoc format.
+ #
+ # source://rdoc//lib/rdoc/rd/inline_parser.rb#745
+ def parse(inline); end
+
+ # Returns words before the error
+ #
+ # source://rdoc//lib/rdoc/rd/inline_parser.rb#853
+ def prev_words_on_error(ev); end
+
+ private
+
+ # Returns the last line of +src+
+ #
+ # source://rdoc//lib/rdoc/rd/inline_parser.rb#864
+ def last_line(src); end
+end
+
+# source://rdoc//lib/rdoc/rd/inline_parser.rb#1377
+RDoc::RD::InlineParser::Racc_debug_parser = T.let(T.unsafe(nil), FalseClass)
+
+# This is the driver for generating RDoc output. It handles file parsing and
+# generation of output.
+#
+# To use this class to generate RDoc output via the API, the recommended way
+# is:
+#
+# rdoc = RDoc::RDoc.new
+# options = RDoc::Options.load_options # returns an RDoc::Options instance
+# # set extra options
+# rdoc.document options
+#
+# You can also generate output like the +rdoc+ executable:
+#
+# rdoc = RDoc::RDoc.new
+# rdoc.document argv
+#
+# Where +argv+ is an array of strings, each corresponding to an argument you'd
+# give rdoc on the command line. See rdoc --help for details.
+#
+# source://rdoc//lib/rdoc/rdoc.rb#29
+class RDoc::RDoc
+ # Creates a new RDoc::RDoc instance. Call #document to parse files and
+ # generate documentation.
+ #
+ # @return [RDoc] a new instance of RDoc
+ #
+ # source://rdoc//lib/rdoc/rdoc.rb#100
+ def initialize; end
+
+ # Generates documentation or a coverage report depending upon the settings
+ # in +options+.
+ #
+ # +options+ can be either an RDoc::Options instance or an array of strings
+ # equivalent to the strings that would be passed on the command line like
+ # %w[-q -o doc -t My\ Doc\ Title]. #document will automatically
+ # call RDoc::Options#finish if an options instance was given.
+ #
+ # For a list of options, see either RDoc::Options or rdoc --help.
+ #
+ # By default, output will be stored in a directory called "doc" below the
+ # current directory, so make sure you're somewhere writable before invoking.
+ #
+ # source://rdoc//lib/rdoc/rdoc.rb#450
+ def document(options); end
+
+ # Report an error message and exit
+ #
+ # @raise [RDoc::Error]
+ #
+ # source://rdoc//lib/rdoc/rdoc.rb#113
+ def error(msg); end
+
+ # Gathers a set of parseable files from the files and directories listed in
+ # +files+.
+ #
+ # source://rdoc//lib/rdoc/rdoc.rb#121
+ def gather_files(files); end
+
+ # Generates documentation for +file_info+ (from #parse_files) into the
+ # output dir using the generator selected
+ # by the RDoc options
+ #
+ # source://rdoc//lib/rdoc/rdoc.rb#515
+ def generate; end
+
+ # Generator instance used for creating output
+ #
+ # source://rdoc//lib/rdoc/rdoc.rb#52
+ def generator; end
+
+ # Generator instance used for creating output
+ #
+ # source://rdoc//lib/rdoc/rdoc.rb#52
+ def generator=(_arg0); end
+
+ # Turns RDoc from stdin into HTML
+ #
+ # source://rdoc//lib/rdoc/rdoc.rb#142
+ def handle_pipe; end
+
+ # Installs a siginfo handler that prints the current filename.
+ #
+ # source://rdoc//lib/rdoc/rdoc.rb#157
+ def install_siginfo_handler; end
+
+ # Hash of files and their last modified times.
+ #
+ # source://rdoc//lib/rdoc/rdoc.rb#57
+ def last_modified; end
+
+ # Return a list of the files to be processed in a directory. We know that
+ # this directory doesn't have a .document file, so we're looking for real
+ # files. However we may well contain subdirectories which must be tested
+ # for .document files.
+ #
+ # source://rdoc//lib/rdoc/rdoc.rb#323
+ def list_files_in_directory(dir); end
+
+ # Given a list of files and directories, create a list of all the Ruby
+ # files they contain.
+ #
+ # If +force_doc+ is true we always add the given files, if false, only
+ # add files that we guarantee we can parse. It is true when looking at
+ # files given on the command line, false when recursing through
+ # subdirectories.
+ #
+ # The effect of this is that if you want a file with a non-standard
+ # extension parsed, you must name it explicitly.
+ #
+ # source://rdoc//lib/rdoc/rdoc.rb#275
+ def normalized_file_list(relative_files, force_doc = T.unsafe(nil), exclude_pattern = T.unsafe(nil)); end
+
+ # RDoc options
+ #
+ # source://rdoc//lib/rdoc/rdoc.rb#62
+ def options; end
+
+ # RDoc options
+ #
+ # source://rdoc//lib/rdoc/rdoc.rb#62
+ def options=(_arg0); end
+
+ # Return the path name of the flag file in an output directory.
+ #
+ # source://rdoc//lib/rdoc/rdoc.rb#240
+ def output_flag_file(op_dir); end
+
+ # The .document file contains a list of file and directory name patterns,
+ # representing candidates for documentation. It may also contain comments
+ # (starting with '#')
+ #
+ # source://rdoc//lib/rdoc/rdoc.rb#249
+ def parse_dot_doc_file(in_dir, filename); end
+
+ # Parses +filename+ and returns an RDoc::TopLevel
+ #
+ # source://rdoc//lib/rdoc/rdoc.rb#332
+ def parse_file(filename); end
+
+ # Parse each file on the command line, recursively entering directories.
+ #
+ # source://rdoc//lib/rdoc/rdoc.rb#404
+ def parse_files(files); end
+
+ # Removes a siginfo handler and replaces the previous
+ #
+ # source://rdoc//lib/rdoc/rdoc.rb#534
+ def remove_siginfo_handler; end
+
+ # Removes file extensions known to be unparseable from +files+ and TAGS
+ # files for emacs and vim.
+ #
+ # source://rdoc//lib/rdoc/rdoc.rb#428
+ def remove_unparseable(files); end
+
+ # Create an output dir if it doesn't exist. If it does exist, but doesn't
+ # contain the flag file created.rid then we refuse to use it, as
+ # we may clobber some manually generated documentation
+ #
+ # source://rdoc//lib/rdoc/rdoc.rb#170
+ def setup_output_dir(dir, force); end
+
+ # Accessor for statistics. Available after each call to parse_files
+ #
+ # source://rdoc//lib/rdoc/rdoc.rb#67
+ def stats; end
+
+ # The current documentation store
+ #
+ # source://rdoc//lib/rdoc/rdoc.rb#72
+ def store; end
+
+ # Sets the current documentation tree to +store+ and sets the store's rdoc
+ # driver to this instance.
+ #
+ # source://rdoc//lib/rdoc/rdoc.rb#215
+ def store=(store); end
+
+ # Update the flag file in an output directory.
+ #
+ # source://rdoc//lib/rdoc/rdoc.rb#223
+ def update_output_dir(op_dir, time, last = T.unsafe(nil)); end
+
+ class << self
+ # Add +klass+ that can generate output after parsing
+ #
+ # source://rdoc//lib/rdoc/rdoc.rb#77
+ def add_generator(klass); end
+
+ # Active RDoc::RDoc instance
+ #
+ # source://rdoc//lib/rdoc/rdoc.rb#85
+ def current; end
+
+ # Sets the active RDoc::RDoc instance
+ #
+ # source://rdoc//lib/rdoc/rdoc.rb#92
+ def current=(rdoc); end
+ end
+end
+
+# List of directory names skipped if test suites should be skipped
+#
+# source://rdoc//lib/rdoc/rdoc.rb#46
+RDoc::RDoc::TEST_SUITE_DIRECTORY_NAMES = T.let(T.unsafe(nil), Array)
+
+# List of directory names always skipped
+#
+# source://rdoc//lib/rdoc/rdoc.rb#41
+RDoc::RDoc::UNCONDITIONALLY_SKIPPED_DIRECTORIES = T.let(T.unsafe(nil), Array)
+
+# The RI driver implements the command-line ri tool.
+#
+# The driver supports:
+# * loading RI data from:
+# * Ruby's standard library
+# * RubyGems
+# * ~/.rdoc
+# * A user-supplied directory
+# * Paging output (uses RI_PAGER environment variable, PAGER environment
+# variable or the less, more and pager programs)
+# * Interactive mode with tab-completion
+# * Abbreviated names (ri Zl shows Zlib documentation)
+# * Colorized output
+# * Merging output from multiple RI data sources
+#
+# source://rdoc//lib/rdoc/ri/driver.rb#25
+class RDoc::RI::Driver
+ # Creates a new driver using +initial_options+ from ::process_args
+ #
+ # @return [Driver] a new instance of Driver
+ #
+ # source://rdoc//lib/rdoc/ri/driver.rb#391
+ def initialize(initial_options = T.unsafe(nil)); end
+
+ # Adds paths for undocumented classes +also_in+ to +out+
+ #
+ # source://rdoc//lib/rdoc/ri/driver.rb#429
+ def add_also_in(out, also_in); end
+
+ # Adds a class header to +out+ for class +name+ which is described in
+ # +classes+.
+ #
+ # source://rdoc//lib/rdoc/ri/driver.rb#446
+ def add_class(out, name, classes); end
+
+ # Adds +extends+ to +out+
+ #
+ # source://rdoc//lib/rdoc/ri/driver.rb#473
+ def add_extends(out, extends); end
+
+ # Adds a list of +extensions+ to this module of the given +type+ to +out+.
+ # add_includes and add_extends call this, so you should use those directly.
+ #
+ # source://rdoc//lib/rdoc/ri/driver.rb#481
+ def add_extension_modules(out, type, extensions); end
+
+ # Renders multiple included +modules+ from +store+ to +out+.
+ #
+ # source://rdoc//lib/rdoc/ri/driver.rb#499
+ def add_extension_modules_multiple(out, store, modules); end
+
+ # Adds a single extension module +include+ from +store+ to +out+
+ #
+ # source://rdoc//lib/rdoc/ri/driver.rb#526
+ def add_extension_modules_single(out, store, include); end
+
+ # Adds "(from ...)" to +out+ for +store+
+ #
+ # source://rdoc//lib/rdoc/ri/driver.rb#466
+ def add_from(out, store); end
+
+ # Adds +includes+ to +out+
+ #
+ # source://rdoc//lib/rdoc/ri/driver.rb#540
+ def add_includes(out, includes); end
+
+ # Looks up the method +name+ and adds it to +out+
+ #
+ # source://rdoc//lib/rdoc/ri/driver.rb#547
+ def add_method(out, name); end
+
+ # Adds documentation for all methods in +klass+ to +out+
+ #
+ # source://rdoc//lib/rdoc/ri/driver.rb#558
+ def add_method_documentation(out, klass); end
+
+ # Adds a list of +methods+ to +out+ with a heading of +name+
+ #
+ # source://rdoc//lib/rdoc/ri/driver.rb#571
+ def add_method_list(out, methods, name); end
+
+ # Returns ancestor classes of +klass+
+ #
+ # source://rdoc//lib/rdoc/ri/driver.rb#591
+ def ancestors_of(klass); end
+
+ # source://rdoc//lib/rdoc/ri/driver.rb#926
+ def check_did_you_mean; end
+
+ # For RubyGems backwards compatibility
+ #
+ # source://rdoc//lib/rdoc/ri/driver.rb#622
+ def class_cache; end
+
+ # Builds a RDoc::Markup::Document from +found+, +klasess+ and +includes+
+ #
+ # source://rdoc//lib/rdoc/ri/driver.rb#628
+ def class_document(name, found, klasses, includes, extends); end
+
+ # Adds the class +comment+ to +out+.
+ #
+ # source://rdoc//lib/rdoc/ri/driver.rb#650
+ def class_document_comment(out, comment); end
+
+ # Adds the constants from +klass+ to the Document +out+.
+ #
+ # source://rdoc//lib/rdoc/ri/driver.rb#670
+ def class_document_constants(out, klass); end
+
+ # Hash mapping a known class or module to the stores it can be loaded from
+ #
+ # source://rdoc//lib/rdoc/ri/driver.rb#694
+ def classes; end
+
+ # Returns the stores wherein +name+ is found along with the classes,
+ # extends and includes that match it
+ #
+ # source://rdoc//lib/rdoc/ri/driver.rb#714
+ def classes_and_includes_and_extends_for(name); end
+
+ # Completes +name+ based on the caches. For Readline
+ #
+ # source://rdoc//lib/rdoc/ri/driver.rb#739
+ def complete(name); end
+
+ # source://rdoc//lib/rdoc/ri/driver.rb#750
+ def complete_klass(name, klass, selector, method, completions); end
+
+ # source://rdoc//lib/rdoc/ri/driver.rb#769
+ def complete_method(name, klass, selector, completions); end
+
+ # Converts +document+ to text and writes it to the pager
+ #
+ # source://rdoc//lib/rdoc/ri/driver.rb#789
+ def display(document); end
+
+ # Outputs formatted RI data for class +name+. Groups undocumented classes
+ #
+ # source://rdoc//lib/rdoc/ri/driver.rb#802
+ def display_class(name); end
+
+ # Outputs formatted RI data for method +name+
+ #
+ # source://rdoc//lib/rdoc/ri/driver.rb#818
+ def display_method(name); end
+
+ # Outputs formatted RI data for the class or method +name+.
+ #
+ # Returns true if +name+ was found, false if it was not an alternative could
+ # be guessed, raises an error if +name+ couldn't be guessed.
+ #
+ # source://rdoc//lib/rdoc/ri/driver.rb#832
+ def display_name(name); end
+
+ # Displays each name in +name+
+ #
+ # source://rdoc//lib/rdoc/ri/driver.rb#861
+ def display_names(names); end
+
+ # Outputs formatted RI data for page +name+.
+ #
+ # source://rdoc//lib/rdoc/ri/driver.rb#872
+ def display_page(name); end
+
+ # Outputs a formatted RI page list for the pages in +store+.
+ #
+ # source://rdoc//lib/rdoc/ri/driver.rb#903
+ def display_page_list(store, pages = T.unsafe(nil), search = T.unsafe(nil)); end
+
+ # Expands abbreviated klass +klass+ into a fully-qualified class. "Zl::Da"
+ # will be expanded to Zlib::DataError.
+ #
+ # source://rdoc//lib/rdoc/ri/driver.rb#947
+ def expand_class(klass); end
+
+ # Expands the class portion of +name+ into a fully-qualified class. See
+ # #expand_class.
+ #
+ # source://rdoc//lib/rdoc/ri/driver.rb#965
+ def expand_name(name); end
+
+ # Filters the methods in +found+ trying to find a match for +name+.
+ #
+ # source://rdoc//lib/rdoc/ri/driver.rb#981
+ def filter_methods(found, name); end
+
+ # Yields items matching +name+ including the store they were found in, the
+ # class being searched for, the class they were found in (an ancestor) the
+ # types of methods to look up (from #method_type), and the method name being
+ # searched for
+ #
+ # source://rdoc//lib/rdoc/ri/driver.rb#999
+ def find_methods(name); end
+
+ # Finds a store that matches +name+ which can be the name of a gem, "ruby",
+ # "home" or "site".
+ #
+ # See also RDoc::Store#source
+ #
+ # @raise [RDoc::RI::Driver::NotFoundError]
+ #
+ # source://rdoc//lib/rdoc/ri/driver.rb#1045
+ def find_store(name); end
+
+ # Creates a new RDoc::Markup::Formatter. If a formatter is given with -f,
+ # use it. If we're outputting to a pager, use bs, otherwise ansi.
+ #
+ # source://rdoc//lib/rdoc/ri/driver.rb#1062
+ def formatter(io); end
+
+ # Runs ri interactively using Readline if it is available.
+ #
+ # source://rdoc//lib/rdoc/ri/driver.rb#1075
+ def interactive; end
+
+ # Lists classes known to ri starting with +names+. If +names+ is empty all
+ # known classes are shown.
+ #
+ # source://rdoc//lib/rdoc/ri/driver.rb#1114
+ def list_known_classes(names = T.unsafe(nil)); end
+
+ # Returns an Array of methods matching +name+
+ #
+ # source://rdoc//lib/rdoc/ri/driver.rb#1146
+ def list_methods_matching(name); end
+
+ # Loads RI data for method +name+ on +klass+ from +store+. +type+ and
+ # +cache+ indicate if it is a class or instance method.
+ #
+ # source://rdoc//lib/rdoc/ri/driver.rb#1185
+ def load_method(store, cache, klass, type, name); end
+
+ # Returns an Array of RI data for methods matching +name+
+ #
+ # source://rdoc//lib/rdoc/ri/driver.rb#1208
+ def load_methods_matching(name); end
+
+ # Returns a filtered list of methods matching +name+
+ #
+ # source://rdoc//lib/rdoc/ri/driver.rb#1229
+ def lookup_method(name); end
+
+ # Builds a RDoc::Markup::Document from +found+, +klasses+ and +includes+
+ #
+ # source://rdoc//lib/rdoc/ri/driver.rb#1254
+ def method_document(name, filtered); end
+
+ # Returns the type of method (:both, :instance, :class) for +selector+
+ #
+ # source://rdoc//lib/rdoc/ri/driver.rb#1272
+ def method_type(selector); end
+
+ # Returns a regular expression for +name+ that will match an
+ # RDoc::AnyMethod's name.
+ #
+ # source://rdoc//lib/rdoc/ri/driver.rb#1284
+ def name_regexp(name); end
+
+ # Paginates output through a pager program.
+ #
+ # source://rdoc//lib/rdoc/ri/driver.rb#1298
+ def page; end
+
+ # Are we using a pager?
+ #
+ # @return [Boolean]
+ #
+ # source://rdoc//lib/rdoc/ri/driver.rb#1316
+ def paging?; end
+
+ # Extracts the class, selector and method name parts from +name+ like
+ # Foo::Bar#baz.
+ #
+ # NOTE: Given Foo::Bar, Bar is considered a class even though it may be a
+ # method
+ #
+ # source://rdoc//lib/rdoc/ri/driver.rb#1327
+ def parse_name(name); end
+
+ # Renders the +klass+ from +store+ to +out+. If the klass has no
+ # documentable items the class is added to +also_in+ instead.
+ #
+ # source://rdoc//lib/rdoc/ri/driver.rb#1359
+ def render_class(out, store, klass, also_in); end
+
+ # source://rdoc//lib/rdoc/ri/driver.rb#1389
+ def render_method(out, store, method, name); end
+
+ # source://rdoc//lib/rdoc/ri/driver.rb#1409
+ def render_method_arguments(out, arglists); end
+
+ # source://rdoc//lib/rdoc/ri/driver.rb#1418
+ def render_method_comment(out, method, alias_for = T.unsafe(nil)); end
+
+ # source://rdoc//lib/rdoc/ri/driver.rb#1436
+ def render_method_superclass(out, method); end
+
+ # Looks up and displays ri data according to the options given.
+ #
+ # source://rdoc//lib/rdoc/ri/driver.rb#1448
+ def run; end
+
+ # Sets up a pager program to pass output through. Tries the RI_PAGER and
+ # PAGER environment variables followed by pager, less then more.
+ #
+ # source://rdoc//lib/rdoc/ri/driver.rb#1468
+ def setup_pager; end
+
+ # Show all method documentation following a class or module
+ #
+ # source://rdoc//lib/rdoc/ri/driver.rb#62
+ def show_all; end
+
+ # Show all method documentation following a class or module
+ #
+ # source://rdoc//lib/rdoc/ri/driver.rb#62
+ def show_all=(_arg0); end
+
+ # Starts a WEBrick server for ri.
+ #
+ # source://rdoc//lib/rdoc/ri/driver.rb#1494
+ def start_server; end
+
+ # An RDoc::RI::Store for each entry in the RI path
+ #
+ # source://rdoc//lib/rdoc/ri/driver.rb#67
+ def stores; end
+
+ # An RDoc::RI::Store for each entry in the RI path
+ #
+ # source://rdoc//lib/rdoc/ri/driver.rb#67
+ def stores=(_arg0); end
+
+ # Controls the user of the pager vs $stdout
+ #
+ # source://rdoc//lib/rdoc/ri/driver.rb#72
+ def use_stdout; end
+
+ # Controls the user of the pager vs $stdout
+ #
+ # source://rdoc//lib/rdoc/ri/driver.rb#72
+ def use_stdout=(_arg0); end
+
+ class << self
+ # Default options for ri
+ #
+ # source://rdoc//lib/rdoc/ri/driver.rb#77
+ def default_options; end
+
+ # Dump +data_path+ using pp
+ #
+ # source://rdoc//lib/rdoc/ri/driver.rb#98
+ def dump(data_path); end
+
+ # Parses +argv+ and returns a Hash of options
+ #
+ # source://rdoc//lib/rdoc/ri/driver.rb#109
+ def process_args(argv); end
+
+ # Runs the ri command line executable using +argv+
+ #
+ # source://rdoc//lib/rdoc/ri/driver.rb#376
+ def run(argv = T.unsafe(nil)); end
+ end
+end
+
+# Raised when a name isn't found in the ri data stores
+#
+# source://rdoc//lib/rdoc/ri/driver.rb#35
+class RDoc::RI::Driver::NotFoundError < ::RDoc::RI::Driver::Error
+ # @return [NotFoundError] a new instance of NotFoundError
+ #
+ # source://rdoc//lib/rdoc/ri/driver.rb#37
+ def initialize(klass, suggestion_proc = T.unsafe(nil)); end
+
+ # source://rdoc//lib/rdoc/ri/driver.rb#49
+ def message; end
+
+ # Name that wasn't found
+ #
+ # source://rdoc//lib/rdoc/ri/driver.rb#45
+ def name; end
+end
+
+# For RubyGems backwards compatibility
+#
+# source://rdoc//lib/rdoc/ri/formatter.rb#5
+module RDoc::RI::Formatter; end
+
+# source://rdoc//lib/rdoc/ri/store.rb#4
+RDoc::RI::Store = RDoc::Store
+
+# A file loaded by \#require
+#
+# source://rdoc//lib/rdoc/require.rb#5
+class RDoc::Require < ::RDoc::CodeObject
+ # Creates a new Require that loads +name+ with +comment+
+ #
+ # @return [Require] a new instance of Require
+ #
+ # source://rdoc//lib/rdoc/require.rb#15
+ def initialize(name, comment); end
+
+ # source://rdoc//lib/rdoc/require.rb#22
+ def inspect; end
+
+ # Name of the required file
+ #
+ # source://rdoc//lib/rdoc/require.rb#10
+ def name; end
+
+ # Name of the required file
+ #
+ # source://rdoc//lib/rdoc/require.rb#10
+ def name=(_arg0); end
+
+ # source://rdoc//lib/rdoc/require.rb#31
+ def to_s; end
+
+ # The RDoc::TopLevel corresponding to this require, or +nil+ if not found.
+ #
+ # source://rdoc//lib/rdoc/require.rb#38
+ def top_level; end
+end
+
+# A singleton class
+#
+# source://rdoc//lib/rdoc/single_class.rb#5
+class RDoc::SingleClass < ::RDoc::ClassModule
+ # Adds the superclass to the included modules.
+ #
+ # source://rdoc//lib/rdoc/single_class.rb#10
+ def ancestors; end
+
+ # source://rdoc//lib/rdoc/single_class.rb#14
+ def aref_prefix; end
+
+ # The definition of this singleton class, class << MyClassName
+ #
+ # source://rdoc//lib/rdoc/single_class.rb#21
+ def definition; end
+
+ # source://rdoc//lib/rdoc/single_class.rb#25
+ def pretty_print(q); end
+end
+
+# RDoc statistics collector which prints a summary and report of a project's
+# documentation totals.
+#
+# source://rdoc//lib/rdoc/stats.rb#6
+class RDoc::Stats
+ include ::RDoc::Text
+
+ # Creates a new Stats that will have +num_files+. +verbosity+ defaults to 1
+ # which will create an RDoc::Stats::Normal outputter.
+ #
+ # @return [Stats] a new instance of Stats
+ #
+ # source://rdoc//lib/rdoc/stats.rb#29
+ def initialize(store, num_files, verbosity = T.unsafe(nil)); end
+
+ # Records the parsing of an alias +as+.
+ #
+ # source://rdoc//lib/rdoc/stats.rb#52
+ def add_alias(as); end
+
+ # Records the parsing of an attribute +attribute+
+ #
+ # source://rdoc//lib/rdoc/stats.rb#59
+ def add_attribute(attribute); end
+
+ # Records the parsing of a class +klass+
+ #
+ # source://rdoc//lib/rdoc/stats.rb#66
+ def add_class(klass); end
+
+ # Records the parsing of +constant+
+ #
+ # source://rdoc//lib/rdoc/stats.rb#73
+ def add_constant(constant); end
+
+ # Records the parsing of +file+
+ #
+ # source://rdoc//lib/rdoc/stats.rb#80
+ def add_file(file); end
+
+ # Records the parsing of +method+
+ #
+ # source://rdoc//lib/rdoc/stats.rb#88
+ def add_method(method); end
+
+ # Records the parsing of a module +mod+
+ #
+ # source://rdoc//lib/rdoc/stats.rb#95
+ def add_module(mod); end
+
+ # Call this to mark the beginning of parsing for display purposes
+ #
+ # source://rdoc//lib/rdoc/stats.rb#102
+ def begin_adding; end
+
+ # Calculates documentation totals and percentages for classes, modules,
+ # constants, attributes and methods.
+ #
+ # source://rdoc//lib/rdoc/stats.rb#110
+ def calculate; end
+
+ # Output level for the coverage report
+ #
+ # source://rdoc//lib/rdoc/stats.rb#13
+ def coverage_level; end
+
+ # Sets coverage report level. Accepted values are:
+ #
+ # false or nil:: No report
+ # 0:: Classes, modules, constants, attributes, methods
+ # 1:: Level 0 + method parameters
+ #
+ # source://rdoc//lib/rdoc/stats.rb#158
+ def coverage_level=(level); end
+
+ # Returns the length and number of undocumented items in +collection+.
+ #
+ # source://rdoc//lib/rdoc/stats.rb#167
+ def doc_stats(collection); end
+
+ # Call this to mark the end of parsing for display purposes
+ #
+ # source://rdoc//lib/rdoc/stats.rb#175
+ def done_adding; end
+
+ # Count of files parsed during parsing
+ #
+ # source://rdoc//lib/rdoc/stats.rb#18
+ def files_so_far; end
+
+ # The documentation status of this project. +true+ when 100%, +false+ when
+ # less than 100% and +nil+ when unknown.
+ #
+ # Set by calling #calculate
+ #
+ # @return [Boolean]
+ #
+ # source://rdoc//lib/rdoc/stats.rb#185
+ def fully_documented?; end
+
+ # A report that says you did a great job!
+ #
+ # source://rdoc//lib/rdoc/stats.rb#192
+ def great_job; end
+
+ # Total number of files found
+ #
+ # source://rdoc//lib/rdoc/stats.rb#23
+ def num_files; end
+
+ # Calculates the percentage of items documented.
+ #
+ # source://rdoc//lib/rdoc/stats.rb#204
+ def percent_doc; end
+
+ # Returns a report on which items are not documented
+ #
+ # source://rdoc//lib/rdoc/stats.rb#218
+ def report; end
+
+ # Returns a report on undocumented attributes in ClassModule +cm+
+ #
+ # source://rdoc//lib/rdoc/stats.rb#259
+ def report_attributes(cm); end
+
+ # Returns a report on undocumented items in ClassModule +cm+
+ #
+ # source://rdoc//lib/rdoc/stats.rb#277
+ def report_class_module(cm); end
+
+ # Returns a report on undocumented constants in ClassModule +cm+
+ #
+ # source://rdoc//lib/rdoc/stats.rb#329
+ def report_constants(cm); end
+
+ # Returns a report on undocumented methods in ClassModule +cm+
+ #
+ # source://rdoc//lib/rdoc/stats.rb#351
+ def report_methods(cm); end
+
+ # Returns a summary of the collected statistics.
+ #
+ # source://rdoc//lib/rdoc/stats.rb#389
+ def summary; end
+
+ # Determines which parameters in +method+ were not documented. Returns a
+ # total parameter count and an Array of undocumented methods.
+ #
+ # source://rdoc//lib/rdoc/stats.rb#439
+ def undoc_params(method); end
+end
+
+# Stats printer that prints just the files being documented with a progress
+# bar
+#
+# source://rdoc//lib/rdoc/stats/normal.rb#13
+class RDoc::Stats::Normal < ::RDoc::Stats::Quiet
+ # source://rdoc//lib/rdoc/stats/normal.rb#15
+ def begin_adding; end
+
+ # source://rdoc//lib/rdoc/stats/normal.rb#54
+ def done_adding; end
+
+ # Prints a file with a progress bar
+ #
+ # source://rdoc//lib/rdoc/stats/normal.rb#23
+ def print_file(files_so_far, filename); end
+end
+
+# Stats printer that prints nothing
+#
+# source://rdoc//lib/rdoc/stats/quiet.rb#5
+class RDoc::Stats::Quiet
+ # Creates a new Quiet that will print nothing
+ #
+ # @return [Quiet] a new instance of Quiet
+ #
+ # source://rdoc//lib/rdoc/stats/quiet.rb#10
+ def initialize(num_files); end
+
+ # Prints a message at the beginning of parsing
+ #
+ # source://rdoc//lib/rdoc/stats/quiet.rb#17
+ def begin_adding(*_arg0); end
+
+ # Prints when RDoc is done
+ #
+ # source://rdoc//lib/rdoc/stats/quiet.rb#57
+ def done_adding(*_arg0); end
+
+ # Prints when an alias is added
+ #
+ # source://rdoc//lib/rdoc/stats/quiet.rb#22
+ def print_alias(*_arg0); end
+
+ # Prints when an attribute is added
+ #
+ # source://rdoc//lib/rdoc/stats/quiet.rb#27
+ def print_attribute(*_arg0); end
+
+ # Prints when a class is added
+ #
+ # source://rdoc//lib/rdoc/stats/quiet.rb#32
+ def print_class(*_arg0); end
+
+ # Prints when a constant is added
+ #
+ # source://rdoc//lib/rdoc/stats/quiet.rb#37
+ def print_constant(*_arg0); end
+
+ # Prints when a file is added
+ #
+ # source://rdoc//lib/rdoc/stats/quiet.rb#42
+ def print_file(*_arg0); end
+
+ # Prints when a method is added
+ #
+ # source://rdoc//lib/rdoc/stats/quiet.rb#47
+ def print_method(*_arg0); end
+
+ # Prints when a module is added
+ #
+ # source://rdoc//lib/rdoc/stats/quiet.rb#52
+ def print_module(*_arg0); end
+end
+
+# Stats printer that prints everything documented, including the documented
+# status
+#
+# source://rdoc//lib/rdoc/stats/verbose.rb#6
+class RDoc::Stats::Verbose < ::RDoc::Stats::Normal
+ # Returns a marker for RDoc::CodeObject +co+ being undocumented
+ #
+ # source://rdoc//lib/rdoc/stats/verbose.rb#11
+ def nodoc(co); end
+
+ # source://rdoc//lib/rdoc/stats/verbose.rb#15
+ def print_alias(as); end
+
+ # source://rdoc//lib/rdoc/stats/verbose.rb#19
+ def print_attribute(attribute); end
+
+ # source://rdoc//lib/rdoc/stats/verbose.rb#23
+ def print_class(klass); end
+
+ # source://rdoc//lib/rdoc/stats/verbose.rb#27
+ def print_constant(constant); end
+
+ # source://rdoc//lib/rdoc/stats/verbose.rb#31
+ def print_file(files_so_far, file); end
+
+ # source://rdoc//lib/rdoc/stats/verbose.rb#36
+ def print_method(method); end
+
+ # source://rdoc//lib/rdoc/stats/verbose.rb#40
+ def print_module(mod); end
+end
+
+# A set of rdoc data for a single project (gem, path, etc.).
+#
+# The store manages reading and writing ri data for a project and maintains a
+# cache of methods, classes and ancestors in the store.
+#
+# The store maintains a #cache of its contents for faster lookup. After
+# adding items to the store it must be flushed using #save_cache. The cache
+# contains the following structures:
+#
+# @cache = {
+# :ancestors => {}, # class name => ancestor names
+# :attributes => {}, # class name => attributes
+# :class_methods => {}, # class name => class methods
+# :instance_methods => {}, # class name => instance methods
+# :modules => [], # classes and modules in this store
+# :pages => [], # page names
+# }
+# --
+# TODO need to prune classes
+#
+# source://rdoc//lib/rdoc/store.rb#25
+class RDoc::Store
+ # Creates a new Store of +type+ that will load or save to +path+
+ #
+ # @return [Store] a new instance of Store
+ #
+ # source://rdoc//lib/rdoc/store.rb#127
+ def initialize(path = T.unsafe(nil), type = T.unsafe(nil)); end
+
+ # Adds +module+ as an enclosure (namespace) for the given +variable+ for C
+ # files.
+ #
+ # source://rdoc//lib/rdoc/store.rb#169
+ def add_c_enclosure(variable, namespace); end
+
+ # Adds C variables from an RDoc::Parser::C
+ #
+ # source://rdoc//lib/rdoc/store.rb#176
+ def add_c_variables(c_parser); end
+
+ # Adds the file with +name+ as an RDoc::TopLevel to the store. Returns the
+ # created RDoc::TopLevel.
+ #
+ # source://rdoc//lib/rdoc/store.rb#188
+ def add_file(absolute_name, relative_name: T.unsafe(nil), parser: T.unsafe(nil)); end
+
+ # Returns all classes discovered by RDoc
+ #
+ # source://rdoc//lib/rdoc/store.rb#212
+ def all_classes; end
+
+ # Returns all classes and modules discovered by RDoc
+ #
+ # source://rdoc//lib/rdoc/store.rb#219
+ def all_classes_and_modules; end
+
+ # All TopLevels known to RDoc
+ #
+ # source://rdoc//lib/rdoc/store.rb#226
+ def all_files; end
+
+ # Returns all modules discovered by RDoc
+ #
+ # source://rdoc//lib/rdoc/store.rb#233
+ def all_modules; end
+
+ # Ancestors cache accessor. Maps a klass name to an Array of its ancestors
+ # in this store. If Foo in this store inherits from Object, Kernel won't be
+ # listed (it will be included from ruby's ri store).
+ #
+ # source://rdoc//lib/rdoc/store.rb#242
+ def ancestors; end
+
+ # Attributes cache accessor. Maps a class to an Array of its attributes.
+ #
+ # source://rdoc//lib/rdoc/store.rb#249
+ def attributes; end
+
+ # Maps C variables to class or module names for each parsed C file.
+ #
+ # source://rdoc//lib/rdoc/store.rb#80
+ def c_class_variables; end
+
+ # Stores the name of the C variable a class belongs to. This helps wire up
+ # classes defined from C across files.
+ #
+ # source://rdoc//lib/rdoc/store.rb#73
+ def c_enclosure_classes; end
+
+ # source://rdoc//lib/rdoc/store.rb#75
+ def c_enclosure_names; end
+
+ # Maps C variables to singleton class names for each parsed C file.
+ #
+ # source://rdoc//lib/rdoc/store.rb#85
+ def c_singleton_class_variables; end
+
+ # The contents of the Store
+ #
+ # source://rdoc//lib/rdoc/store.rb#112
+ def cache; end
+
+ # Path to the cache file
+ #
+ # source://rdoc//lib/rdoc/store.rb#256
+ def cache_path; end
+
+ # Path to the ri data for +klass_name+
+ #
+ # source://rdoc//lib/rdoc/store.rb#263
+ def class_file(klass_name); end
+
+ # Class methods cache accessor. Maps a class to an Array of its class
+ # methods (not full name).
+ #
+ # source://rdoc//lib/rdoc/store.rb#272
+ def class_methods; end
+
+ # Path where data for +klass_name+ will be stored (methods or class data)
+ #
+ # source://rdoc//lib/rdoc/store.rb#279
+ def class_path(klass_name); end
+
+ # Hash of all classes known to RDoc
+ #
+ # source://rdoc//lib/rdoc/store.rb#286
+ def classes_hash; end
+
+ # Removes empty items and ensures item in each collection are unique and
+ # sorted
+ #
+ # source://rdoc//lib/rdoc/store.rb#294
+ def clean_cache_collection(collection); end
+
+ # Prepares the RDoc code object tree for use by a generator.
+ #
+ # It finds unique classes/modules defined, and replaces classes/modules that
+ # are aliases for another one by a copy with RDoc::ClassModule#is_alias_for
+ # set.
+ #
+ # It updates the RDoc::ClassModule#constant_aliases attribute of "real"
+ # classes or modules.
+ #
+ # It also completely removes the classes and modules that should be removed
+ # from the documentation and the methods that have a visibility below
+ # +min_visibility+, which is the --visibility option.
+ #
+ # See also RDoc::Context#remove_from_documentation?
+ #
+ # source://rdoc//lib/rdoc/store.rb#322
+ def complete(min_visibility); end
+
+ # If true this Store will not write any files
+ #
+ # source://rdoc//lib/rdoc/store.rb#90
+ def dry_run; end
+
+ # If true this Store will not write any files
+ #
+ # source://rdoc//lib/rdoc/store.rb#90
+ def dry_run=(_arg0); end
+
+ # The encoding of the contents in the Store
+ #
+ # source://rdoc//lib/rdoc/store.rb#117
+ def encoding; end
+
+ # The encoding of the contents in the Store
+ #
+ # source://rdoc//lib/rdoc/store.rb#117
+ def encoding=(_arg0); end
+
+ # Hash of all files known to RDoc
+ #
+ # source://rdoc//lib/rdoc/store.rb#362
+ def files_hash; end
+
+ # Finds the enclosure (namespace) for the given C +variable+.
+ #
+ # source://rdoc//lib/rdoc/store.rb#369
+ def find_c_enclosure(variable); end
+
+ # Finds the class with +name+ in all discovered classes
+ #
+ # source://rdoc//lib/rdoc/store.rb#394
+ def find_class_named(name); end
+
+ # Finds the class with +name+ starting in namespace +from+
+ #
+ # source://rdoc//lib/rdoc/store.rb#401
+ def find_class_named_from(name, from); end
+
+ # Finds the class or module with +name+
+ #
+ # source://rdoc//lib/rdoc/store.rb#419
+ def find_class_or_module(name); end
+
+ # Finds the file with +name+ in all discovered files
+ #
+ # source://rdoc//lib/rdoc/store.rb#427
+ def find_file_named(name); end
+
+ # Finds the module with +name+ in all discovered modules
+ #
+ # source://rdoc//lib/rdoc/store.rb#434
+ def find_module_named(name); end
+
+ # Returns the RDoc::TopLevel that is a text file and has the given
+ # +file_name+
+ #
+ # source://rdoc//lib/rdoc/store.rb#442
+ def find_text_page(file_name); end
+
+ # Finds unique classes/modules defined in +all_hash+,
+ # and returns them as an array. Performs the alias
+ # updates in +all_hash+: see ::complete.
+ # --
+ # TODO aliases should be registered by Context#add_module_alias
+ #
+ # source://rdoc//lib/rdoc/store.rb#455
+ def find_unique(all_hash); end
+
+ # Fixes the erroneous BasicObject < Object in 1.9.
+ #
+ # Because we assumed all classes without a stated superclass
+ # inherit from Object, we have the above wrong inheritance.
+ #
+ # We fix BasicObject right away if we are running in a Ruby
+ # version >= 1.9.
+ #
+ # source://rdoc//lib/rdoc/store.rb#474
+ def fix_basic_object_inheritance; end
+
+ # Friendly rendition of #path
+ #
+ # source://rdoc//lib/rdoc/store.rb#483
+ def friendly_path; end
+
+ # source://rdoc//lib/rdoc/store.rb#495
+ def inspect; end
+
+ # Instance methods cache accessor. Maps a class to an Array of its
+ # instance methods (not full name).
+ #
+ # source://rdoc//lib/rdoc/store.rb#503
+ def instance_methods; end
+
+ # Loads all items from this store into memory. This recreates a
+ # documentation tree for use by a generator
+ #
+ # source://rdoc//lib/rdoc/store.rb#511
+ def load_all; end
+
+ # Loads cache file for this store
+ #
+ # source://rdoc//lib/rdoc/store.rb#559
+ def load_cache; end
+
+ # Loads ri data for +klass_name+ and hooks it up to this store.
+ #
+ # source://rdoc//lib/rdoc/store.rb#600
+ def load_class(klass_name); end
+
+ # Loads ri data for +klass_name+
+ #
+ # source://rdoc//lib/rdoc/store.rb#618
+ def load_class_data(klass_name); end
+
+ # Loads ri data for +method_name+ in +klass_name+
+ #
+ # source://rdoc//lib/rdoc/store.rb#633
+ def load_method(klass_name, method_name); end
+
+ # Loads ri data for +page_name+
+ #
+ # source://rdoc//lib/rdoc/store.rb#653
+ def load_page(page_name); end
+
+ # Gets the main page for this RDoc store. This page is used as the root of
+ # the RDoc server.
+ #
+ # source://rdoc//lib/rdoc/store.rb#671
+ def main; end
+
+ # Sets the main page for this RDoc store.
+ #
+ # source://rdoc//lib/rdoc/store.rb#678
+ def main=(page); end
+
+ # Converts the variable => ClassModule map +variables+ from a C parser into
+ # a variable => class name map.
+ #
+ # source://rdoc//lib/rdoc/store.rb#686
+ def make_variable_map(variables); end
+
+ # Path to the ri data for +method_name+ in +klass_name+
+ #
+ # source://rdoc//lib/rdoc/store.rb#699
+ def method_file(klass_name, method_name); end
+
+ # Modules cache accessor. An Array of all the module (and class) names in
+ # the store.
+ #
+ # source://rdoc//lib/rdoc/store.rb#713
+ def module_names; end
+
+ # Hash of all modules known to RDoc
+ #
+ # source://rdoc//lib/rdoc/store.rb#720
+ def modules_hash; end
+
+ # Returns the RDoc::TopLevel that is a text file and has the given +name+
+ #
+ # source://rdoc//lib/rdoc/store.rb#727
+ def page(name); end
+
+ # Path to the ri data for +page_name+
+ #
+ # source://rdoc//lib/rdoc/store.rb#736
+ def page_file(page_name); end
+
+ # Path this store reads or writes
+ #
+ # source://rdoc//lib/rdoc/store.rb#95
+ def path; end
+
+ # Path this store reads or writes
+ #
+ # source://rdoc//lib/rdoc/store.rb#95
+ def path=(_arg0); end
+
+ # The RDoc::RDoc driver for this parse tree. This allows classes consulting
+ # the documentation tree to access user-set options, for example.
+ #
+ # source://rdoc//lib/rdoc/store.rb#101
+ def rdoc; end
+
+ # The RDoc::RDoc driver for this parse tree. This allows classes consulting
+ # the documentation tree to access user-set options, for example.
+ #
+ # source://rdoc//lib/rdoc/store.rb#101
+ def rdoc=(_arg0); end
+
+ # Removes from +all_hash+ the contexts that are nodoc or have no content.
+ #
+ # See RDoc::Context#remove_from_documentation?
+ #
+ # source://rdoc//lib/rdoc/store.rb#747
+ def remove_nodoc(all_hash); end
+
+ # Saves all entries in the store
+ #
+ # source://rdoc//lib/rdoc/store.rb#757
+ def save; end
+
+ # Writes the cache file for this store
+ #
+ # source://rdoc//lib/rdoc/store.rb#782
+ def save_cache; end
+
+ # Writes the ri data for +klass+ (or module)
+ #
+ # source://rdoc//lib/rdoc/store.rb#809
+ def save_class(klass); end
+
+ # Writes the ri data for +method+ on +klass+
+ #
+ # source://rdoc//lib/rdoc/store.rb#883
+ def save_method(klass, method); end
+
+ # Writes the ri data for +page+
+ #
+ # source://rdoc//lib/rdoc/store.rb#906
+ def save_page(page); end
+
+ # Source of the contents of this store.
+ #
+ # For a store from a gem the source is the gem name. For a store from the
+ # home directory the source is "home". For system ri store (the standard
+ # library documentation) the source is"ruby". For a store from the site
+ # ri directory the store is "site". For other stores the source is the
+ # #path.
+ #
+ # source://rdoc//lib/rdoc/store.rb#932
+ def source; end
+
+ # Gets the title for this RDoc store. This is used as the title in each
+ # page on the RDoc server
+ #
+ # source://rdoc//lib/rdoc/store.rb#946
+ def title; end
+
+ # Sets the title page for this RDoc store.
+ #
+ # source://rdoc//lib/rdoc/store.rb#953
+ def title=(title); end
+
+ # Type of ri datastore this was loaded from. See RDoc::RI::Driver,
+ # RDoc::RI::Paths.
+ #
+ # source://rdoc//lib/rdoc/store.rb#107
+ def type; end
+
+ # Type of ri datastore this was loaded from. See RDoc::RI::Driver,
+ # RDoc::RI::Paths.
+ #
+ # source://rdoc//lib/rdoc/store.rb#107
+ def type=(_arg0); end
+
+ # Returns the unique classes discovered by RDoc.
+ #
+ # ::complete must have been called prior to using this method.
+ #
+ # source://rdoc//lib/rdoc/store.rb#962
+ def unique_classes; end
+
+ # Returns the unique classes and modules discovered by RDoc.
+ # ::complete must have been called prior to using this method.
+ #
+ # source://rdoc//lib/rdoc/store.rb#970
+ def unique_classes_and_modules; end
+
+ # Returns the unique modules discovered by RDoc.
+ # ::complete must have been called prior to using this method.
+ #
+ # source://rdoc//lib/rdoc/store.rb#978
+ def unique_modules; end
+
+ # The lazy constants alias will be discovered in passing
+ #
+ # source://rdoc//lib/rdoc/store.rb#122
+ def unmatched_constant_alias; end
+
+ # Sets the parser of +absolute_name+, unless it from a source code file.
+ #
+ # source://rdoc//lib/rdoc/store.rb#203
+ def update_parser_of_file(absolute_name, parser); end
+end
+
+# Raised when a stored file for a class, module, page or method is missing.
+#
+# source://rdoc//lib/rdoc/store.rb#36
+class RDoc::Store::MissingFileError < ::RDoc::Store::Error
+ # Creates a new MissingFileError for the missing +file+ for the given
+ # +name+ that should have been in the +store+.
+ #
+ # @return [MissingFileError] a new instance of MissingFileError
+ #
+ # source://rdoc//lib/rdoc/store.rb#57
+ def initialize(store, file, name); end
+
+ # The file the #name should be saved as
+ #
+ # source://rdoc//lib/rdoc/store.rb#46
+ def file; end
+
+ # source://rdoc//lib/rdoc/store.rb#63
+ def message; end
+
+ # The name of the object the #file would be loaded from
+ #
+ # source://rdoc//lib/rdoc/store.rb#51
+ def name; end
+
+ # The store the file should exist in
+ #
+ # source://rdoc//lib/rdoc/store.rb#41
+ def store; end
+end
+
+# RDoc::Task creates the following rake tasks to generate and clean up RDoc
+# output:
+#
+# [rdoc]
+# Main task for this RDoc task.
+#
+# [clobber_rdoc]
+# Delete all the rdoc files. This target is automatically added to the main
+# clobber target.
+#
+# [rerdoc]
+# Rebuild the rdoc files from scratch, even if they are not out of date.
+#
+# [rdoc:coverage]
+# Print RDoc coverage report for all rdoc files.
+#
+# Simple Example:
+#
+# require 'rdoc/task'
+#
+# RDoc::Task.new do |rdoc|
+# rdoc.main = "README.rdoc"
+# rdoc.rdoc_files.include("README.rdoc", "lib/**/*.rb")
+# end
+#
+# The +rdoc+ object passed to the block is an RDoc::Task object. See the
+# attributes list for the RDoc::Task class for available customization options.
+#
+# == Specifying different task names
+#
+# You may wish to give the task a different name, such as if you are
+# generating two sets of documentation. For instance, if you want to have a
+# development set of documentation including private methods:
+#
+# require 'rdoc/task'
+#
+# RDoc::Task.new :rdoc_dev do |rdoc|
+# rdoc.main = "README.rdoc"
+# rdoc.rdoc_files.include("README.rdoc", "lib/**/*.rb")
+# rdoc.options << "--all"
+# end
+#
+# The tasks would then be named :rdoc_dev,
+# :clobber_rdoc_dev, and :rerdoc_dev.
+#
+# If you wish to have completely different task names, then pass a Hash as
+# first argument. With the :rdoc, :clobber_rdoc and
+# :rerdoc options, you can customize the task names to your liking.
+#
+# For example:
+#
+# require 'rdoc/task'
+#
+# RDoc::Task.new(:rdoc => "rdoc", :clobber_rdoc => "rdoc:clean",
+# :rerdoc => "rdoc:force")
+#
+# This will create the tasks :rdoc, :rdoc:clean,
+# :rdoc:force, and :rdoc:coverage.
+#
+# source://rdoc//lib/rdoc/task.rb#99
+class RDoc::Task < ::Rake::TaskLib
+ # Create an RDoc task with the given name. See the RDoc::Task class overview
+ # for documentation.
+ #
+ # @return [Task] a new instance of Task
+ # @yield [_self]
+ # @yieldparam _self [RDoc::Task] the object that the method was called on
+ #
+ # source://rdoc//lib/rdoc/task.rb#158
+ def initialize(name = T.unsafe(nil)); end
+
+ # The block passed to this method will be called just before running the
+ # RDoc generator. It is allowed to modify RDoc::Task attributes inside the
+ # block.
+ #
+ # source://rdoc//lib/rdoc/task.rb#288
+ def before_running_rdoc(&block); end
+
+ # Ensures that +names+ only includes names for the :rdoc, :clobber_rdoc and
+ # :rerdoc. If other names are given an ArgumentError is raised.
+ #
+ # source://rdoc//lib/rdoc/task.rb#174
+ def check_names(names); end
+
+ # Task description for the clobber rdoc task or its renamed equivalent
+ #
+ # source://rdoc//lib/rdoc/task.rb#188
+ def clobber_task_description; end
+
+ # Task description for the coverage task or its renamed description
+ #
+ # source://rdoc//lib/rdoc/task.rb#309
+ def coverage_task_description; end
+
+ # Sets default task values
+ #
+ # source://rdoc//lib/rdoc/task.rb#195
+ def defaults; end
+
+ # Create the tasks defined by this task lib.
+ #
+ # source://rdoc//lib/rdoc/task.rb#224
+ def define; end
+
+ # Whether to run the rdoc process as an external shell (default is false)
+ #
+ # source://rdoc//lib/rdoc/task.rb#152
+ def external; end
+
+ # Whether to run the rdoc process as an external shell (default is false)
+ #
+ # source://rdoc//lib/rdoc/task.rb#152
+ def external=(_arg0); end
+
+ # Name of format generator (--format) used by rdoc. (defaults to
+ # rdoc's default)
+ #
+ # source://rdoc//lib/rdoc/task.rb#137
+ def generator; end
+
+ # Name of format generator (--format) used by rdoc. (defaults to
+ # rdoc's default)
+ #
+ # source://rdoc//lib/rdoc/task.rb#137
+ def generator=(_arg0); end
+
+ # All source is inline now. This method is deprecated
+ #
+ # source://rdoc//lib/rdoc/task.rb#209
+ def inline_source; end
+
+ # All source is inline now. This method is deprecated
+ #
+ # source://rdoc//lib/rdoc/task.rb#217
+ def inline_source=(value); end
+
+ # Name of file to be used as the main, top level file of the RDoc. (default
+ # is none)
+ #
+ # source://rdoc//lib/rdoc/task.rb#126
+ def main; end
+
+ # Name of file to be used as the main, top level file of the RDoc. (default
+ # is none)
+ #
+ # source://rdoc//lib/rdoc/task.rb#126
+ def main=(_arg0); end
+
+ # Comment markup format. rdoc, rd and tomdoc are supported. (default is
+ # 'rdoc')
+ #
+ # source://rdoc//lib/rdoc/task.rb#110
+ def markup; end
+
+ # Comment markup format. rdoc, rd and tomdoc are supported. (default is
+ # 'rdoc')
+ #
+ # source://rdoc//lib/rdoc/task.rb#110
+ def markup=(_arg0); end
+
+ # Name of the main, top level task. (default is :rdoc)
+ #
+ # source://rdoc//lib/rdoc/task.rb#104
+ def name; end
+
+ # Name of the main, top level task. (default is :rdoc)
+ #
+ # source://rdoc//lib/rdoc/task.rb#104
+ def name=(_arg0); end
+
+ # List of options that will be supplied to RDoc
+ #
+ # source://rdoc//lib/rdoc/task.rb#272
+ def option_list; end
+
+ # Additional list of options to be passed rdoc. (default is [])
+ #
+ # source://rdoc//lib/rdoc/task.rb#147
+ def options; end
+
+ # Additional list of options to be passed rdoc. (default is [])
+ #
+ # source://rdoc//lib/rdoc/task.rb#147
+ def options=(_arg0); end
+
+ # Name of directory to receive the html output files. (default is "html")
+ #
+ # source://rdoc//lib/rdoc/task.rb#115
+ def rdoc_dir; end
+
+ # Name of directory to receive the html output files. (default is "html")
+ #
+ # source://rdoc//lib/rdoc/task.rb#115
+ def rdoc_dir=(_arg0); end
+
+ # List of files to be included in the rdoc generation. (default is [])
+ #
+ # source://rdoc//lib/rdoc/task.rb#142
+ def rdoc_files; end
+
+ # List of files to be included in the rdoc generation. (default is [])
+ #
+ # source://rdoc//lib/rdoc/task.rb#142
+ def rdoc_files=(_arg0); end
+
+ # Task description for the rdoc task or its renamed equivalent
+ #
+ # source://rdoc//lib/rdoc/task.rb#295
+ def rdoc_task_description; end
+
+ # Task description for the rerdoc task or its renamed description
+ #
+ # source://rdoc//lib/rdoc/task.rb#302
+ def rerdoc_task_description; end
+
+ # Name of template to be used by rdoc. (defaults to rdoc's default)
+ #
+ # source://rdoc//lib/rdoc/task.rb#131
+ def template; end
+
+ # Name of template to be used by rdoc. (defaults to rdoc's default)
+ #
+ # source://rdoc//lib/rdoc/task.rb#131
+ def template=(_arg0); end
+
+ # Title of RDoc documentation. (defaults to rdoc's default)
+ #
+ # source://rdoc//lib/rdoc/task.rb#120
+ def title; end
+
+ # Title of RDoc documentation. (defaults to rdoc's default)
+ #
+ # source://rdoc//lib/rdoc/task.rb#120
+ def title=(_arg0); end
+
+ private
+
+ # source://rdoc//lib/rdoc/task.rb#326
+ def clobber_task_name; end
+
+ # source://rdoc//lib/rdoc/task.rb#340
+ def coverage_task_name; end
+
+ # source://rdoc//lib/rdoc/task.rb#315
+ def rdoc_target; end
+
+ # source://rdoc//lib/rdoc/task.rb#319
+ def rdoc_task_name; end
+
+ # source://rdoc//lib/rdoc/task.rb#333
+ def rerdoc_task_name; end
+end
+
+# Methods for manipulating comment text
+#
+# source://rdoc//lib/rdoc/text.rb#11
+module RDoc::Text
+ # Expands tab characters in +text+ to eight spaces
+ #
+ # source://rdoc//lib/rdoc/text.rb#63
+ def expand_tabs(text); end
+
+ # Flush +text+ left based on the shortest line
+ #
+ # source://rdoc//lib/rdoc/text.rb#82
+ def flush_left(text); end
+
+ # The language for this text. This affects stripping comments
+ # markers.
+ #
+ # source://rdoc//lib/rdoc/text.rb#17
+ def language; end
+
+ # The language for this text. This affects stripping comments
+ # markers.
+ #
+ # source://rdoc//lib/rdoc/text.rb#17
+ def language=(_arg0); end
+
+ # Convert a string in markup format into HTML.
+ #
+ # Requires the including class to implement #formatter
+ #
+ # source://rdoc//lib/rdoc/text.rb#101
+ def markup(text); end
+
+ # Strips hashes, expands tabs then flushes +text+ to the left
+ #
+ # source://rdoc//lib/rdoc/text.rb#117
+ def normalize_comment(text); end
+
+ # Normalizes +text+ then builds a RDoc::Markup::Document from it
+ #
+ # source://rdoc//lib/rdoc/text.rb#135
+ def parse(text, format = T.unsafe(nil)); end
+
+ # The first +limit+ characters of +text+ as HTML
+ #
+ # source://rdoc//lib/rdoc/text.rb#149
+ def snippet(text, limit = T.unsafe(nil)); end
+
+ # Strips leading # characters from +text+
+ #
+ # source://rdoc//lib/rdoc/text.rb#158
+ def strip_hashes(text); end
+
+ # Strips leading and trailing \n characters from +text+
+ #
+ # source://rdoc//lib/rdoc/text.rb#170
+ def strip_newlines(text); end
+
+ # Strips /* */ style comments
+ #
+ # source://rdoc//lib/rdoc/text.rb#177
+ def strip_stars(text); end
+
+ # source://rdoc//lib/rdoc/text.rb#200
+ def to_html(text); end
+
+ # Wraps +txt+ to +line_len+
+ #
+ # source://rdoc//lib/rdoc/text.rb#287
+ def wrap(txt, line_len = T.unsafe(nil)); end
+
+ class << self
+ # Transcodes +character+ to +encoding+ with a +fallback+ character.
+ #
+ # source://rdoc//lib/rdoc/text.rb#55
+ def encode_fallback(character, encoding, fallback); end
+ end
+end
+
+# Character class to be separated by a space when concatenating
+# lines.
+#
+# source://rdoc//lib/rdoc/text.rb#320
+RDoc::Text::SPACE_SEPARATED_LETTER_CLASS = T.let(T.unsafe(nil), Regexp)
+
+# A TokenStream is a list of tokens, gathered during the parse of some entity
+# (say a method). Entities populate these streams by being registered with the
+# lexer. Any class can collect tokens by including TokenStream. From the
+# outside, you use such an object by calling the start_collecting_tokens
+# method, followed by calls to add_token and pop_token.
+#
+# source://rdoc//lib/rdoc/token_stream.rb#9
+module RDoc::TokenStream
+ # Adds one +token+ to the collected tokens
+ #
+ # source://rdoc//lib/rdoc/token_stream.rb#84
+ def add_token(token); end
+
+ # Adds +tokens+ to the collected tokens
+ #
+ # source://rdoc//lib/rdoc/token_stream.rb#77
+ def add_tokens(tokens); end
+
+ # Starts collecting tokens
+ #
+ # source://rdoc//lib/rdoc/token_stream.rb#91
+ def collect_tokens; end
+
+ # Remove the last token from the collected tokens
+ #
+ # source://rdoc//lib/rdoc/token_stream.rb#100
+ def pop_token; end
+
+ # Starts collecting tokens
+ #
+ # source://rdoc//lib/rdoc/token_stream.rb#91
+ def start_collecting_tokens; end
+
+ # Current token stream
+ #
+ # source://rdoc//lib/rdoc/token_stream.rb#107
+ def token_stream; end
+
+ # Returns a string representation of the token stream
+ #
+ # source://rdoc//lib/rdoc/token_stream.rb#114
+ def tokens_to_s; end
+
+ class << self
+ # Converts +token_stream+ to HTML wrapping various tokens with
+ # elements. Some tokens types are wrapped in spans
+ # with the given class names. Other token types are not wrapped in spans.
+ #
+ # source://rdoc//lib/rdoc/token_stream.rb#16
+ def to_html(token_stream); end
+ end
+end
+
+# A parser for TomDoc based on TomDoc 1.0.0-rc1 (02adef9b5a)
+#
+# The TomDoc specification can be found at:
+#
+# http://tomdoc.org
+#
+# The latest version of the TomDoc specification can be found at:
+#
+# https://github.com/mojombo/tomdoc/blob/master/tomdoc.md
+#
+# To choose TomDoc as your only default format see RDoc::Options@Saved+Options
+# for instructions on setting up a .rdoc_options
file to store
+# your project default.
+#
+# There are a few differences between this parser and the specification. A
+# best-effort was made to follow the specification as closely as possible but
+# some choices to deviate were made.
+#
+# A future version of RDoc will warn when a MUST or MUST NOT is violated and
+# may warn when a SHOULD or SHOULD NOT is violated. RDoc will always try
+# to emit documentation even if given invalid TomDoc.
+#
+# Here are some implementation choices this parser currently makes:
+#
+# This parser allows rdoc-style inline markup but you should not depended on
+# it.
+#
+# This parser allows a space between the comment and the method body.
+#
+# This parser does not require the default value to be described for an
+# optional argument.
+#
+# This parser does not examine the order of sections. An Examples section may
+# precede the Arguments section.
+#
+# This class is documented in TomDoc format. Since this is a subclass of the
+# RDoc markup parser there isn't much to see here, unfortunately.
+#
+# source://rdoc//lib/rdoc/tom_doc.rb#42
+class RDoc::TomDoc < ::RDoc::Markup::Parser
+ # Public: Creates a new TomDoc parser. See also RDoc::Markup::parse
+ #
+ # @return [TomDoc] a new instance of TomDoc
+ #
+ # source://rdoc//lib/rdoc/tom_doc.rb#130
+ def initialize; end
+
+ # Internal: Builds a heading from the token stream
+ #
+ # level - The level of heading to create
+ #
+ # Returns an RDoc::Markup::Heading
+ #
+ # source://rdoc//lib/rdoc/tom_doc.rb#143
+ def build_heading(level); end
+
+ # Internal: Builds a paragraph from the token stream
+ #
+ # margin - Unused
+ #
+ # Returns an RDoc::Markup::Paragraph.
+ #
+ # source://rdoc//lib/rdoc/tom_doc.rb#173
+ def build_paragraph(margin); end
+
+ # Internal: Builds a verbatim from the token stream. A verbatim in the
+ # Examples section will be marked as in Ruby format.
+ #
+ # margin - The indentation from the margin for lines that belong to this
+ # verbatim section.
+ #
+ # Returns an RDoc::Markup::Verbatim
+ #
+ # source://rdoc//lib/rdoc/tom_doc.rb#159
+ def build_verbatim(margin); end
+
+ # Detects a section change to "Returns" and adds a heading
+ #
+ # source://rdoc//lib/rdoc/tom_doc.rb#213
+ def parse_text(parent, indent); end
+
+ # Internal: Turns text into an Array of tokens
+ #
+ # text - A String containing TomDoc-format text.
+ #
+ # Returns self.
+ #
+ # source://rdoc//lib/rdoc/tom_doc.rb#231
+ def tokenize(text); end
+
+ # Internal: Token accessor
+ #
+ # source://rdoc//lib/rdoc/tom_doc.rb#46
+ def tokens; end
+
+ class << self
+ # Internal: Adds a post-processor which sets the RDoc section based on the
+ # comment's status.
+ #
+ # Returns nothing.
+ #
+ # source://rdoc//lib/rdoc/tom_doc.rb#53
+ def add_post_processor; end
+
+ # Public: Parses TomDoc from text
+ #
+ # text - A String containing TomDoc-format text.
+ #
+ # Examples
+ #
+ # RDoc::TomDoc.parse <<-TOMDOC
+ # This method does some things
+ #
+ # Returns nothing.
+ # TOMDOC
+ # # => #
+ #
+ # Returns an RDoc::Markup::Document representing the TomDoc format.
+ #
+ # source://rdoc//lib/rdoc/tom_doc.rb#84
+ def parse(text); end
+
+ # Internal: Extracts the Signature section's method signature
+ #
+ # comment - An RDoc::Comment that will be parsed and have the signature
+ # extracted
+ #
+ # Returns a String containing the signature and nil if not
+ #
+ # source://rdoc//lib/rdoc/tom_doc.rb#100
+ def signature(comment); end
+ end
+end
+
+# A TopLevel context is a representation of the contents of a single file
+#
+# source://rdoc//lib/rdoc/top_level.rb#5
+class RDoc::TopLevel < ::RDoc::Context
+ # Creates a new TopLevel for the file at +absolute_name+. If documentation
+ # is being generated outside the source dir +relative_name+ is relative to
+ # the source directory.
+ #
+ # @return [TopLevel] a new instance of TopLevel
+ #
+ # source://rdoc//lib/rdoc/top_level.rb#43
+ def initialize(absolute_name, relative_name = T.unsafe(nil)); end
+
+ # An RDoc::TopLevel is equal to another with the same relative_name
+ #
+ # source://rdoc//lib/rdoc/top_level.rb#67
+ def ==(other); end
+
+ # Absolute name of this file
+ #
+ # source://rdoc//lib/rdoc/top_level.rb#22
+ def absolute_name; end
+
+ # Absolute name of this file
+ #
+ # source://rdoc//lib/rdoc/top_level.rb#22
+ def absolute_name=(_arg0); end
+
+ # Adds +an_alias+ to +Object+ instead of +self+.
+ #
+ # source://rdoc//lib/rdoc/top_level.rb#76
+ def add_alias(an_alias); end
+
+ # Adds +constant+ to +Object+ instead of +self+.
+ #
+ # source://rdoc//lib/rdoc/top_level.rb#85
+ def add_constant(constant); end
+
+ # Adds +include+ to +Object+ instead of +self+.
+ #
+ # source://rdoc//lib/rdoc/top_level.rb#94
+ def add_include(include); end
+
+ # Adds +method+ to +Object+ instead of +self+.
+ #
+ # source://rdoc//lib/rdoc/top_level.rb#103
+ def add_method(method); end
+
+ # Adds class or module +mod+. Used in the building phase
+ # by the Ruby parser.
+ #
+ # source://rdoc//lib/rdoc/top_level.rb#113
+ def add_to_classes_or_modules(mod); end
+
+ # Base name of this file
+ #
+ # source://rdoc//lib/rdoc/top_level.rb#120
+ def base_name; end
+
+ # All the classes or modules that were declared in
+ # this file. These are assigned to either +#classes_hash+
+ # or +#modules_hash+ once we know what they really are.
+ #
+ # source://rdoc//lib/rdoc/top_level.rb#29
+ def classes_or_modules; end
+
+ # Returns a URL for this source file on some web repository. Use the -W
+ # command line option to set.
+ #
+ # source://rdoc//lib/rdoc/generator/markup.rb#149
+ def cvs_url; end
+
+ # source://rdoc//lib/rdoc/top_level.rb#31
+ def diagram; end
+
+ # source://rdoc//lib/rdoc/top_level.rb#31
+ def diagram=(_arg0); end
+
+ # Only a TopLevel that contains text file) will be displayed. See also
+ # RDoc::CodeObject#display?
+ #
+ # @return [Boolean]
+ #
+ # source://rdoc//lib/rdoc/top_level.rb#130
+ def display?; end
+
+ # An RDoc::TopLevel is equal to another with the same relative_name
+ #
+ # source://rdoc//lib/rdoc/top_level.rb#67
+ def eql?(other); end
+
+ # This TopLevel's File::Stat struct
+ #
+ # source://rdoc//lib/rdoc/top_level.rb#12
+ def file_stat; end
+
+ # This TopLevel's File::Stat struct
+ #
+ # source://rdoc//lib/rdoc/top_level.rb#12
+ def file_stat=(_arg0); end
+
+ # See RDoc::TopLevel::find_class_or_module
+ # --
+ # TODO Why do we search through all classes/modules found, not just the
+ # ones of this instance?
+ #
+ # source://rdoc//lib/rdoc/top_level.rb#140
+ def find_class_or_module(name); end
+
+ # Finds a class or module named +symbol+
+ #
+ # source://rdoc//lib/rdoc/top_level.rb#147
+ def find_local_symbol(symbol); end
+
+ # Finds a module or class with +name+
+ #
+ # source://rdoc//lib/rdoc/top_level.rb#154
+ def find_module_named(name); end
+
+ # Returns the relative name of this file
+ #
+ # source://rdoc//lib/rdoc/top_level.rb#161
+ def full_name; end
+
+ # An RDoc::TopLevel has the same hash as another with the same
+ # relative_name
+ #
+ # source://rdoc//lib/rdoc/top_level.rb#169
+ def hash; end
+
+ # URL for this with a +prefix+
+ #
+ # source://rdoc//lib/rdoc/top_level.rb#176
+ def http_url(prefix); end
+
+ # source://rdoc//lib/rdoc/top_level.rb#182
+ def inspect; end
+
+ # Time this file was last modified, if known
+ #
+ # source://rdoc//lib/rdoc/top_level.rb#194
+ def last_modified; end
+
+ # Dumps this TopLevel for use by ri. See also #marshal_load
+ #
+ # source://rdoc//lib/rdoc/top_level.rb#201
+ def marshal_dump; end
+
+ # Loads this TopLevel from +array+.
+ #
+ # source://rdoc//lib/rdoc/top_level.rb#213
+ def marshal_load(array); end
+
+ # Base name of this file
+ #
+ # source://rdoc//lib/rdoc/top_level.rb#120
+ def name; end
+
+ # Returns the NormalClass "Object", creating it if not found.
+ #
+ # Records +self+ as a location in "Object".
+ #
+ # source://rdoc//lib/rdoc/top_level.rb#227
+ def object_class; end
+
+ # Base name of this file without the extension
+ #
+ # source://rdoc//lib/rdoc/top_level.rb#238
+ def page_name; end
+
+ # The parser class that processed this file
+ #
+ # source://rdoc//lib/rdoc/top_level.rb#36
+ def parser; end
+
+ # Sets the parser for this toplevel context, also the store.
+ #
+ # source://rdoc//lib/rdoc/top_level.rb#58
+ def parser=(val); end
+
+ # Path to this file for use with HTML generator output.
+ #
+ # source://rdoc//lib/rdoc/top_level.rb#248
+ def path; end
+
+ # source://rdoc//lib/rdoc/top_level.rb#252
+ def pretty_print(q); end
+
+ # Relative name of this file
+ #
+ # source://rdoc//lib/rdoc/top_level.rb#17
+ def relative_name; end
+
+ # Relative name of this file
+ #
+ # source://rdoc//lib/rdoc/top_level.rb#17
+ def relative_name=(_arg0); end
+
+ # Search record used by RDoc::Generator::JsonIndex
+ #
+ # source://rdoc//lib/rdoc/top_level.rb#266
+ def search_record; end
+
+ # Is this TopLevel from a text file instead of a source code file?
+ #
+ # @return [Boolean]
+ #
+ # source://rdoc//lib/rdoc/top_level.rb#283
+ def text?; end
+
+ # source://rdoc//lib/rdoc/top_level.rb#287
+ def to_s; end
+end
+
+# :stopdoc:
+#
+# source://rdoc//lib/rdoc/task.rb#347
+module Rake
+ extend ::FileUtils::StreamUtils_
+ extend ::FileUtils
+end
+
+# For backwards compatibility
+#
+# source://rdoc//lib/rdoc/task.rb#352
+Rake::RDocTask = RDoc::Task
diff --git a/sorbet/rbi/gems/regexp_parser@2.8.3.rbi b/sorbet/rbi/gems/regexp_parser@2.9.0.rbi
similarity index 97%
rename from sorbet/rbi/gems/regexp_parser@2.8.3.rbi
rename to sorbet/rbi/gems/regexp_parser@2.9.0.rbi
index 8068e546..34ad4f2a 100644
--- a/sorbet/rbi/gems/regexp_parser@2.8.3.rbi
+++ b/sorbet/rbi/gems/regexp_parser@2.9.0.rbi
@@ -94,6 +94,9 @@ end
class Regexp::Expression::Anchor::NonWordBoundary < ::Regexp::Expression::Anchor::Base
# source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#17
def human_name; end
+
+ # source://regexp_parser//lib/regexp_parser/expression/methods/negative.rb#13
+ def negative?; end
end
# source://regexp_parser//lib/regexp_parser/expression/classes/anchor.rb#13
@@ -127,12 +130,18 @@ end
class Regexp::Expression::Assertion::NegativeLookahead < ::Regexp::Expression::Assertion::Base
# source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#21
def human_name; end
+
+ # source://regexp_parser//lib/regexp_parser/expression/methods/negative.rb#14
+ def negative?; end
end
# source://regexp_parser//lib/regexp_parser/expression/classes/group.rb#71
class Regexp::Expression::Assertion::NegativeLookbehind < ::Regexp::Expression::Assertion::Base
# source://regexp_parser//lib/regexp_parser/expression/methods/human_name.rb#22
def human_name; end
+
+ # source://regexp_parser//lib/regexp_parser/expression/methods/negative.rb#15
+ def negative?; end
end
# alias for symmetry between token symbol and Expression class name
@@ -574,10 +583,10 @@ end
class Regexp::Expression::CharacterSet < ::Regexp::Expression::Subexpression
# @return [CharacterSet] a new instance of CharacterSet
#
- # source://regexp_parser//lib/regexp_parser/expression/classes/character_set.rb#9
+ # source://regexp_parser//lib/regexp_parser/expression/classes/character_set.rb#6
def initialize(token, options = T.unsafe(nil)); end
- # source://regexp_parser//lib/regexp_parser/expression/classes/character_set.rb#19
+ # source://regexp_parser//lib/regexp_parser/expression/classes/character_set.rb#16
def close; end
# Returns the value of attribute closed.
@@ -600,14 +609,9 @@ class Regexp::Expression::CharacterSet < ::Regexp::Expression::Subexpression
# source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#98
def match_length; end
- # source://regexp_parser//lib/regexp_parser/expression/classes/character_set.rb#15
+ # source://regexp_parser//lib/regexp_parser/expression/classes/character_set.rb#12
def negate; end
- # Returns the value of attribute negative.
- #
- # source://regexp_parser//lib/regexp_parser/expression/classes/character_set.rb#3
- def negated?; end
-
# Returns the value of attribute negative.
#
# source://regexp_parser//lib/regexp_parser/expression/classes/character_set.rb#3
@@ -620,9 +624,7 @@ class Regexp::Expression::CharacterSet < ::Regexp::Expression::Subexpression
# source://regexp_parser//lib/regexp_parser/expression/classes/character_set.rb#3
def negative=(_arg0); end
- # Returns the value of attribute negative.
- #
- # source://regexp_parser//lib/regexp_parser/expression/classes/character_set.rb#3
+ # source://regexp_parser//lib/regexp_parser/expression/methods/negative.rb#16
def negative?; end
# source://regexp_parser//lib/regexp_parser/expression/methods/parts.rb#15
@@ -686,6 +688,9 @@ end
class Regexp::Expression::CharacterType::Base < ::Regexp::Expression::Base
# source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#98
def match_length; end
+
+ # source://regexp_parser//lib/regexp_parser/expression/methods/negative.rb#17
+ def negative?; end
end
# source://regexp_parser//lib/regexp_parser/expression/classes/character_type.rb#6
@@ -1151,10 +1156,10 @@ end
# source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#85
Regexp::Expression::MatchLength = Regexp::MatchLength
-# source://regexp_parser//lib/regexp_parser/expression/classes/posix_class.rb#14
+# source://regexp_parser//lib/regexp_parser/expression/classes/posix_class.rb#10
Regexp::Expression::Nonposixclass = Regexp::Expression::PosixClass
-# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#121
+# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#118
Regexp::Expression::Nonproperty = Regexp::Expression::UnicodeProperty
# source://regexp_parser//lib/regexp_parser/expression/classes/posix_class.rb#2
@@ -1162,23 +1167,21 @@ class Regexp::Expression::PosixClass < ::Regexp::Expression::Base
# source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#98
def match_length; end
- # source://regexp_parser//lib/regexp_parser/expression/classes/posix_class.rb#7
+ # source://regexp_parser//lib/regexp_parser/expression/classes/posix_class.rb#3
def name; end
- # @return [Boolean]
- #
- # source://regexp_parser//lib/regexp_parser/expression/classes/posix_class.rb#3
+ # source://regexp_parser//lib/regexp_parser/expression/methods/negative.rb#18
def negative?; end
end
# alias for symmetry between token symbol and Expression class name
#
-# source://regexp_parser//lib/regexp_parser/expression/classes/posix_class.rb#13
+# source://regexp_parser//lib/regexp_parser/expression/classes/posix_class.rb#9
Regexp::Expression::Posixclass = Regexp::Expression::PosixClass
# alias for symmetry between token symbol and Expression class name
#
-# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#120
+# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#117
Regexp::Expression::Property = Regexp::Expression::UnicodeProperty
# TODO: in v3.0.0, maybe put Shared back into Base, and inherit from Base and
@@ -1370,7 +1373,7 @@ end
# alias for symmetry between token symbol and Expression class name
#
-# source://regexp_parser//lib/regexp_parser/expression/classes/character_set.rb#25
+# source://regexp_parser//lib/regexp_parser/expression/classes/character_set.rb#22
Regexp::Expression::Set = Regexp::Expression::CharacterSet
# source://regexp_parser//lib/regexp_parser/expression/shared.rb#2
@@ -1453,6 +1456,18 @@ module Regexp::Expression::Shared
# source://regexp_parser//lib/regexp_parser/expression/methods/tests.rb#36
def is?(test_token, test_type = T.unsafe(nil)); end
+ # not an alias so as to respect overrides of #negative?
+ #
+ # @return [Boolean]
+ #
+ # source://regexp_parser//lib/regexp_parser/expression/methods/negative.rb#8
+ def negated?; end
+
+ # @return [Boolean]
+ #
+ # source://regexp_parser//lib/regexp_parser/expression/methods/negative.rb#3
+ def negative?; end
+
# source://regexp_parser//lib/regexp_parser/expression/shared.rb#100
def nesting_level=(lvl); end
@@ -1794,22 +1809,22 @@ end
# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#2
module Regexp::Expression::UnicodeProperty; end
-# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#112
+# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#108
class Regexp::Expression::UnicodeProperty::Age < ::Regexp::Expression::UnicodeProperty::Base; end
-# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#17
+# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#13
class Regexp::Expression::UnicodeProperty::Alnum < ::Regexp::Expression::UnicodeProperty::Base; end
-# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#18
+# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#14
class Regexp::Expression::UnicodeProperty::Alpha < ::Regexp::Expression::UnicodeProperty::Base; end
-# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#35
+# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#31
class Regexp::Expression::UnicodeProperty::Any < ::Regexp::Expression::UnicodeProperty::Base; end
-# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#19
+# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#15
class Regexp::Expression::UnicodeProperty::Ascii < ::Regexp::Expression::UnicodeProperty::Base; end
-# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#36
+# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#32
class Regexp::Expression::UnicodeProperty::Assigned < ::Regexp::Expression::UnicodeProperty::Base; end
# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#3
@@ -1817,226 +1832,227 @@ class Regexp::Expression::UnicodeProperty::Base < ::Regexp::Expression::Base
# source://regexp_parser//lib/regexp_parser/expression/methods/match_length.rb#98
def match_length; end
- # source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#8
+ # source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#4
def name; end
- # @return [Boolean]
- #
- # source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#4
+ # source://regexp_parser//lib/regexp_parser/expression/methods/negative.rb#19
def negative?; end
- # source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#12
+ # source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#8
def shortcut; end
end
-# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#20
+# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#16
class Regexp::Expression::UnicodeProperty::Blank < ::Regexp::Expression::UnicodeProperty::Base; end
-# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#116
+# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#109
class Regexp::Expression::UnicodeProperty::Block < ::Regexp::Expression::UnicodeProperty::Base; end
-# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#21
+# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#17
class Regexp::Expression::UnicodeProperty::Cntrl < ::Regexp::Expression::UnicodeProperty::Base; end
-# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#101
+# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#97
module Regexp::Expression::UnicodeProperty::Codepoint; end
-# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#104
+# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#100
class Regexp::Expression::UnicodeProperty::Codepoint::Any < ::Regexp::Expression::UnicodeProperty::Codepoint::Base; end
-# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#102
+# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#98
class Regexp::Expression::UnicodeProperty::Codepoint::Base < ::Regexp::Expression::UnicodeProperty::Base; end
-# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#105
+# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#101
class Regexp::Expression::UnicodeProperty::Codepoint::Control < ::Regexp::Expression::UnicodeProperty::Codepoint::Base; end
-# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#106
+# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#102
class Regexp::Expression::UnicodeProperty::Codepoint::Format < ::Regexp::Expression::UnicodeProperty::Codepoint::Base; end
-# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#108
+# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#104
class Regexp::Expression::UnicodeProperty::Codepoint::PrivateUse < ::Regexp::Expression::UnicodeProperty::Codepoint::Base; end
-# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#107
+# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#103
class Regexp::Expression::UnicodeProperty::Codepoint::Surrogate < ::Regexp::Expression::UnicodeProperty::Codepoint::Base; end
-# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#109
+# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#105
class Regexp::Expression::UnicodeProperty::Codepoint::Unassigned < ::Regexp::Expression::UnicodeProperty::Codepoint::Base; end
-# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#113
+# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#110
class Regexp::Expression::UnicodeProperty::Derived < ::Regexp::Expression::UnicodeProperty::Base; end
-# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#22
+# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#18
class Regexp::Expression::UnicodeProperty::Digit < ::Regexp::Expression::UnicodeProperty::Base; end
-# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#114
+# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#111
class Regexp::Expression::UnicodeProperty::Emoji < ::Regexp::Expression::UnicodeProperty::Base; end
-# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#23
+# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#112
+class Regexp::Expression::UnicodeProperty::Enumerated < ::Regexp::Expression::UnicodeProperty::Base; end
+
+# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#19
class Regexp::Expression::UnicodeProperty::Graph < ::Regexp::Expression::UnicodeProperty::Base; end
-# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#38
+# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#34
module Regexp::Expression::UnicodeProperty::Letter; end
-# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#41
+# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#37
class Regexp::Expression::UnicodeProperty::Letter::Any < ::Regexp::Expression::UnicodeProperty::Letter::Base; end
-# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#39
+# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#35
class Regexp::Expression::UnicodeProperty::Letter::Base < ::Regexp::Expression::UnicodeProperty::Base; end
-# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#42
+# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#38
class Regexp::Expression::UnicodeProperty::Letter::Cased < ::Regexp::Expression::UnicodeProperty::Letter::Base; end
-# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#44
+# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#40
class Regexp::Expression::UnicodeProperty::Letter::Lowercase < ::Regexp::Expression::UnicodeProperty::Letter::Base; end
-# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#46
+# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#42
class Regexp::Expression::UnicodeProperty::Letter::Modifier < ::Regexp::Expression::UnicodeProperty::Letter::Base; end
-# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#47
+# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#43
class Regexp::Expression::UnicodeProperty::Letter::Other < ::Regexp::Expression::UnicodeProperty::Letter::Base; end
-# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#45
+# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#41
class Regexp::Expression::UnicodeProperty::Letter::Titlecase < ::Regexp::Expression::UnicodeProperty::Letter::Base; end
-# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#43
+# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#39
class Regexp::Expression::UnicodeProperty::Letter::Uppercase < ::Regexp::Expression::UnicodeProperty::Letter::Base; end
-# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#24
+# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#20
class Regexp::Expression::UnicodeProperty::Lower < ::Regexp::Expression::UnicodeProperty::Base; end
-# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#50
+# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#46
module Regexp::Expression::UnicodeProperty::Mark; end
-# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#53
+# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#49
class Regexp::Expression::UnicodeProperty::Mark::Any < ::Regexp::Expression::UnicodeProperty::Mark::Base; end
-# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#51
+# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#47
class Regexp::Expression::UnicodeProperty::Mark::Base < ::Regexp::Expression::UnicodeProperty::Base; end
-# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#54
+# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#50
class Regexp::Expression::UnicodeProperty::Mark::Combining < ::Regexp::Expression::UnicodeProperty::Mark::Base; end
-# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#57
+# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#53
class Regexp::Expression::UnicodeProperty::Mark::Enclosing < ::Regexp::Expression::UnicodeProperty::Mark::Base; end
-# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#55
+# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#51
class Regexp::Expression::UnicodeProperty::Mark::Nonspacing < ::Regexp::Expression::UnicodeProperty::Mark::Base; end
-# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#56
+# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#52
class Regexp::Expression::UnicodeProperty::Mark::Spacing < ::Regexp::Expression::UnicodeProperty::Mark::Base; end
-# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#33
+# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#29
class Regexp::Expression::UnicodeProperty::Newline < ::Regexp::Expression::UnicodeProperty::Base; end
-# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#60
+# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#56
module Regexp::Expression::UnicodeProperty::Number; end
-# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#63
+# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#59
class Regexp::Expression::UnicodeProperty::Number::Any < ::Regexp::Expression::UnicodeProperty::Number::Base; end
-# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#61
+# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#57
class Regexp::Expression::UnicodeProperty::Number::Base < ::Regexp::Expression::UnicodeProperty::Base; end
-# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#64
+# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#60
class Regexp::Expression::UnicodeProperty::Number::Decimal < ::Regexp::Expression::UnicodeProperty::Number::Base; end
-# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#65
+# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#61
class Regexp::Expression::UnicodeProperty::Number::Letter < ::Regexp::Expression::UnicodeProperty::Number::Base; end
-# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#66
+# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#62
class Regexp::Expression::UnicodeProperty::Number::Other < ::Regexp::Expression::UnicodeProperty::Number::Base; end
-# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#25
+# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#21
class Regexp::Expression::UnicodeProperty::Print < ::Regexp::Expression::UnicodeProperty::Base; end
-# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#26
+# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#22
class Regexp::Expression::UnicodeProperty::Punct < ::Regexp::Expression::UnicodeProperty::Base; end
-# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#69
+# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#65
module Regexp::Expression::UnicodeProperty::Punctuation; end
-# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#72
+# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#68
class Regexp::Expression::UnicodeProperty::Punctuation::Any < ::Regexp::Expression::UnicodeProperty::Punctuation::Base; end
-# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#70
+# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#66
class Regexp::Expression::UnicodeProperty::Punctuation::Base < ::Regexp::Expression::UnicodeProperty::Base; end
-# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#76
+# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#72
class Regexp::Expression::UnicodeProperty::Punctuation::Close < ::Regexp::Expression::UnicodeProperty::Punctuation::Base; end
-# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#73
+# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#69
class Regexp::Expression::UnicodeProperty::Punctuation::Connector < ::Regexp::Expression::UnicodeProperty::Punctuation::Base; end
-# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#74
+# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#70
class Regexp::Expression::UnicodeProperty::Punctuation::Dash < ::Regexp::Expression::UnicodeProperty::Punctuation::Base; end
-# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#78
+# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#74
class Regexp::Expression::UnicodeProperty::Punctuation::Final < ::Regexp::Expression::UnicodeProperty::Punctuation::Base; end
-# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#77
+# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#73
class Regexp::Expression::UnicodeProperty::Punctuation::Initial < ::Regexp::Expression::UnicodeProperty::Punctuation::Base; end
-# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#75
+# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#71
class Regexp::Expression::UnicodeProperty::Punctuation::Open < ::Regexp::Expression::UnicodeProperty::Punctuation::Base; end
-# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#79
+# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#75
class Regexp::Expression::UnicodeProperty::Punctuation::Other < ::Regexp::Expression::UnicodeProperty::Punctuation::Base; end
-# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#115
+# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#113
class Regexp::Expression::UnicodeProperty::Script < ::Regexp::Expression::UnicodeProperty::Base; end
-# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#82
+# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#78
module Regexp::Expression::UnicodeProperty::Separator; end
-# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#85
+# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#81
class Regexp::Expression::UnicodeProperty::Separator::Any < ::Regexp::Expression::UnicodeProperty::Separator::Base; end
-# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#83
+# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#79
class Regexp::Expression::UnicodeProperty::Separator::Base < ::Regexp::Expression::UnicodeProperty::Base; end
-# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#87
+# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#83
class Regexp::Expression::UnicodeProperty::Separator::Line < ::Regexp::Expression::UnicodeProperty::Separator::Base; end
-# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#88
+# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#84
class Regexp::Expression::UnicodeProperty::Separator::Paragraph < ::Regexp::Expression::UnicodeProperty::Separator::Base; end
-# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#86
+# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#82
class Regexp::Expression::UnicodeProperty::Separator::Space < ::Regexp::Expression::UnicodeProperty::Separator::Base; end
-# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#27
+# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#23
class Regexp::Expression::UnicodeProperty::Space < ::Regexp::Expression::UnicodeProperty::Base; end
-# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#91
+# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#87
module Regexp::Expression::UnicodeProperty::Symbol; end
-# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#94
+# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#90
class Regexp::Expression::UnicodeProperty::Symbol::Any < ::Regexp::Expression::UnicodeProperty::Symbol::Base; end
-# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#92
+# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#88
class Regexp::Expression::UnicodeProperty::Symbol::Base < ::Regexp::Expression::UnicodeProperty::Base; end
-# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#96
+# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#92
class Regexp::Expression::UnicodeProperty::Symbol::Currency < ::Regexp::Expression::UnicodeProperty::Symbol::Base; end
-# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#95
+# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#91
class Regexp::Expression::UnicodeProperty::Symbol::Math < ::Regexp::Expression::UnicodeProperty::Symbol::Base; end
-# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#97
+# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#93
class Regexp::Expression::UnicodeProperty::Symbol::Modifier < ::Regexp::Expression::UnicodeProperty::Symbol::Base; end
-# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#98
+# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#94
class Regexp::Expression::UnicodeProperty::Symbol::Other < ::Regexp::Expression::UnicodeProperty::Symbol::Base; end
-# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#28
+# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#24
class Regexp::Expression::UnicodeProperty::Upper < ::Regexp::Expression::UnicodeProperty::Base; end
-# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#29
+# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#25
class Regexp::Expression::UnicodeProperty::Word < ::Regexp::Expression::UnicodeProperty::Base; end
-# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#31
+# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#27
class Regexp::Expression::UnicodeProperty::XPosixPunct < ::Regexp::Expression::UnicodeProperty::Base; end
-# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#30
+# source://regexp_parser//lib/regexp_parser/expression/classes/unicode_property.rb#26
class Regexp::Expression::UnicodeProperty::Xdigit < ::Regexp::Expression::UnicodeProperty::Base; end
# source://regexp_parser//lib/regexp_parser/expression/classes/free_space.rb#11
@@ -2343,7 +2359,7 @@ class Regexp::Parser
private
- # source://regexp_parser//lib/regexp_parser/parser.rb#573
+ # source://regexp_parser//lib/regexp_parser/parser.rb#574
def active_opts; end
# source://regexp_parser//lib/regexp_parser/parser.rb#99
@@ -2356,7 +2372,7 @@ class Regexp::Parser
# an instance of Backreference::Number, its #referenced_expression is set to
# the instance of Group::Capture that it refers to via its number.
#
- # source://regexp_parser//lib/regexp_parser/parser.rb#580
+ # source://regexp_parser//lib/regexp_parser/parser.rb#581
def assign_referenced_expressions; end
# source://regexp_parser//lib/regexp_parser/parser.rb#227
@@ -2377,13 +2393,13 @@ class Regexp::Parser
# source://regexp_parser//lib/regexp_parser/parser.rb#56
def captured_group_counts=(_arg0); end
- # source://regexp_parser//lib/regexp_parser/parser.rb#569
+ # source://regexp_parser//lib/regexp_parser/parser.rb#570
def close_completed_character_set_range; end
# source://regexp_parser//lib/regexp_parser/parser.rb#210
def close_group; end
- # source://regexp_parser//lib/regexp_parser/parser.rb#537
+ # source://regexp_parser//lib/regexp_parser/parser.rb#538
def close_set; end
# source://regexp_parser//lib/regexp_parser/parser.rb#269
@@ -2421,10 +2437,10 @@ class Regexp::Parser
# source://regexp_parser//lib/regexp_parser/parser.rb#114
def group(token); end
- # source://regexp_parser//lib/regexp_parser/parser.rb#508
+ # source://regexp_parser//lib/regexp_parser/parser.rb#509
def increase_group_level(exp); end
- # source://regexp_parser//lib/regexp_parser/parser.rb#548
+ # source://regexp_parser//lib/regexp_parser/parser.rb#549
def intersection(token); end
# source://regexp_parser//lib/regexp_parser/parser.rb#360
@@ -2436,7 +2452,7 @@ class Regexp::Parser
# source://regexp_parser//lib/regexp_parser/parser.rb#368
def meta(token); end
- # source://regexp_parser//lib/regexp_parser/parser.rb#533
+ # source://regexp_parser//lib/regexp_parser/parser.rb#534
def negate_set; end
# source://regexp_parser//lib/regexp_parser/parser.rb#299
@@ -2472,7 +2488,7 @@ class Regexp::Parser
# source://regexp_parser//lib/regexp_parser/parser.rb#165
def open_group(token); end
- # source://regexp_parser//lib/regexp_parser/parser.rb#526
+ # source://regexp_parser//lib/regexp_parser/parser.rb#527
def open_set(token); end
# source://regexp_parser//lib/regexp_parser/parser.rb#130
@@ -2499,10 +2515,10 @@ class Regexp::Parser
# source://regexp_parser//lib/regexp_parser/parser.rb#397
def property(token); end
- # source://regexp_parser//lib/regexp_parser/parser.rb#478
+ # source://regexp_parser//lib/regexp_parser/parser.rb#479
def quantifier(token); end
- # source://regexp_parser//lib/regexp_parser/parser.rb#541
+ # source://regexp_parser//lib/regexp_parser/parser.rb#542
def range(token); end
# Returns the value of attribute root.
@@ -2520,7 +2536,7 @@ class Regexp::Parser
# source://regexp_parser//lib/regexp_parser/parser.rb#379
def sequence_operation(klass, token); end
- # source://regexp_parser//lib/regexp_parser/parser.rb#514
+ # source://regexp_parser//lib/regexp_parser/parser.rb#515
def set(token); end
# Returns the value of attribute switching_options.
@@ -2538,7 +2554,7 @@ class Regexp::Parser
# source://regexp_parser//lib/regexp_parser/parser.rb#198
def total_captured_group_count; end
- # source://regexp_parser//lib/regexp_parser/parser.rb#552
+ # source://regexp_parser//lib/regexp_parser/parser.rb#553
def type(token); end
class << self
@@ -3355,7 +3371,7 @@ Regexp::Syntax::Token::PosixClass::Type = T.let(T.unsafe(nil), Symbol)
# alias for symmetry between token symbol and Token module name
#
-# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#731
+# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#749
Regexp::Syntax::Token::Property = Regexp::Syntax::Token::UnicodeProperty
# source://regexp_parser//lib/regexp_parser/syntax/token/quantifier.rb#3
@@ -3452,7 +3468,7 @@ Regexp::Syntax::Token::UnicodeProperty::Age_V3_1_0 = T.let(T.unsafe(nil), Array)
# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#62
Regexp::Syntax::Token::UnicodeProperty::Age_V3_2_0 = T.let(T.unsafe(nil), Array)
-# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#721
+# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#739
Regexp::Syntax::Token::UnicodeProperty::All = T.let(T.unsafe(nil), Array)
# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#13
@@ -3503,7 +3519,7 @@ Regexp::Syntax::Token::UnicodeProperty::Derived_V2_4_0 = T.let(T.unsafe(nil), Ar
# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#129
Regexp::Syntax::Token::UnicodeProperty::Derived_V2_5_0 = T.let(T.unsafe(nil), Array)
-# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#706
+# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#724
Regexp::Syntax::Token::UnicodeProperty::Emoji = T.let(T.unsafe(nil), Array)
# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#694
@@ -3512,7 +3528,13 @@ Regexp::Syntax::Token::UnicodeProperty::Emoji_V2_5_0 = T.let(T.unsafe(nil), Arra
# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#702
Regexp::Syntax::Token::UnicodeProperty::Emoji_V2_6_0 = T.let(T.unsafe(nil), Array)
-# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#724
+# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#722
+Regexp::Syntax::Token::UnicodeProperty::Enumerated = T.let(T.unsafe(nil), Array)
+
+# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#706
+Regexp::Syntax::Token::UnicodeProperty::Enumerated_V2_4_0 = T.let(T.unsafe(nil), Array)
+
+# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#742
Regexp::Syntax::Token::UnicodeProperty::NonType = T.let(T.unsafe(nil), Symbol)
# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#11
@@ -3554,7 +3576,7 @@ Regexp::Syntax::Token::UnicodeProperty::Script_V3_1_0 = T.let(T.unsafe(nil), Arr
# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#322
Regexp::Syntax::Token::UnicodeProperty::Script_V3_2_0 = T.let(T.unsafe(nil), Array)
-# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#723
+# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#741
Regexp::Syntax::Token::UnicodeProperty::Type = T.let(T.unsafe(nil), Symbol)
# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#692
@@ -3590,40 +3612,40 @@ Regexp::Syntax::Token::UnicodeProperty::UnicodeBlock_V3_1_0 = T.let(T.unsafe(nil
# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#670
Regexp::Syntax::Token::UnicodeProperty::UnicodeBlock_V3_2_0 = T.let(T.unsafe(nil), Array)
-# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#708
+# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#726
Regexp::Syntax::Token::UnicodeProperty::V1_9_0 = T.let(T.unsafe(nil), Array)
-# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#709
+# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#727
Regexp::Syntax::Token::UnicodeProperty::V1_9_3 = T.let(T.unsafe(nil), Array)
-# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#710
+# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#728
Regexp::Syntax::Token::UnicodeProperty::V2_0_0 = T.let(T.unsafe(nil), Array)
-# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#711
+# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#729
Regexp::Syntax::Token::UnicodeProperty::V2_2_0 = T.let(T.unsafe(nil), Array)
-# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#712
+# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#730
Regexp::Syntax::Token::UnicodeProperty::V2_3_0 = T.let(T.unsafe(nil), Array)
-# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#713
+# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#731
Regexp::Syntax::Token::UnicodeProperty::V2_4_0 = T.let(T.unsafe(nil), Array)
-# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#714
+# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#732
Regexp::Syntax::Token::UnicodeProperty::V2_5_0 = T.let(T.unsafe(nil), Array)
-# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#715
+# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#733
Regexp::Syntax::Token::UnicodeProperty::V2_6_0 = T.let(T.unsafe(nil), Array)
-# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#716
+# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#734
Regexp::Syntax::Token::UnicodeProperty::V2_6_2 = T.let(T.unsafe(nil), Array)
-# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#717
+# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#735
Regexp::Syntax::Token::UnicodeProperty::V2_6_3 = T.let(T.unsafe(nil), Array)
-# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#718
+# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#736
Regexp::Syntax::Token::UnicodeProperty::V3_1_0 = T.let(T.unsafe(nil), Array)
-# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#719
+# source://regexp_parser//lib/regexp_parser/syntax/token/unicode_property.rb#737
Regexp::Syntax::Token::UnicodeProperty::V3_2_0 = T.let(T.unsafe(nil), Array)
# source://regexp_parser//lib/regexp_parser/syntax/version_lookup.rb#12
diff --git a/sorbet/rbi/gems/rubocop-ast@1.30.0.rbi b/sorbet/rbi/gems/rubocop-ast@1.31.2.rbi
similarity index 99%
rename from sorbet/rbi/gems/rubocop-ast@1.30.0.rbi
rename to sorbet/rbi/gems/rubocop-ast@1.31.2.rbi
index c2d15673..9badffee 100644
--- a/sorbet/rbi/gems/rubocop-ast@1.30.0.rbi
+++ b/sorbet/rbi/gems/rubocop-ast@1.31.2.rbi
@@ -5766,38 +5766,38 @@ end
class RuboCop::AST::ProcessedSource
# @return [ProcessedSource] a new instance of ProcessedSource
#
- # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#26
- def initialize(source, ruby_version, path = T.unsafe(nil)); end
+ # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#29
+ def initialize(source, ruby_version, path = T.unsafe(nil), parser_engine: T.unsafe(nil)); end
- # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#63
+ # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#73
def [](*args); end
# Returns the value of attribute ast.
#
- # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#18
+ # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#21
def ast; end
- # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#41
+ # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#51
def ast_with_comments; end
# @return [Boolean]
#
- # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#102
+ # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#112
def blank?; end
# Returns the value of attribute buffer.
#
- # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#18
+ # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#21
def buffer; end
# Raw source checksum for tracking infinite loops.
#
- # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#74
+ # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#84
def checksum; end
# @return [Comment, nil] the comment at that line, if any.
#
- # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#107
+ # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#117
def comment_at_line(line); end
# Consider using `each_comment_in_lines` instead
@@ -5805,170 +5805,178 @@ class RuboCop::AST::ProcessedSource
# @deprecated use contains_comment?
# @return [Boolean] if any of the lines in the given `source_range` has a comment.
#
- # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#129
+ # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#139
def commented?(source_range); end
# Returns the value of attribute comments.
#
- # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#18
+ # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#21
def comments; end
# Should have been called `comments_before_or_at_line`. Doubtful it has of any valid use.
#
# @deprecated Use `each_comment_in_lines`
#
- # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#137
+ # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#147
def comments_before_line(line); end
# Consider using `each_comment_in_lines` instead
#
# @return [Boolean] if any of the lines in the given `source_range` has a comment.
#
- # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#129
+ # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#139
def contains_comment?(source_range); end
- # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#151
+ # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#161
def current_line(token); end
# Returns the value of attribute diagnostics.
#
- # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#18
+ # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#21
def diagnostics; end
# @deprecated Use `comments.each`
#
- # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#79
+ # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#89
def each_comment(&block); end
# Enumerates on the comments contained with the given `line_range`
#
- # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#117
+ # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#127
def each_comment_in_lines(line_range); end
# @deprecated Use `tokens.each`
#
- # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#89
+ # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#99
def each_token(&block); end
- # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#98
+ # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#108
def file_path; end
# @deprecated Use `comment_at_line`, `each_comment_in_lines`, or `comments.find`
#
- # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#84
+ # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#94
def find_comment(&block); end
# @deprecated Use `tokens.find`
#
- # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#94
+ # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#104
def find_token(&block); end
- # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#172
+ # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#182
def first_token_of(range_or_node); end
- # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#155
+ # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#165
def following_line(token); end
- # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#176
+ # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#186
def last_token_of(range_or_node); end
- # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#159
+ # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#169
def line_indentation(line_number); end
# @return [Boolean] if the given line number has a comment.
#
- # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#112
+ # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#122
def line_with_comment?(line); end
# Returns the source lines, line break characters removed, excluding a
# possible __END__ and everything that comes after.
#
- # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#49
+ # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#59
def lines; end
+ # Returns the value of attribute parser_engine.
+ #
+ # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#21
+ def parser_engine; end
+
# Returns the value of attribute parser_error.
#
- # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#18
+ # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#21
def parser_error; end
# Returns the value of attribute path.
#
- # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#18
+ # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#21
def path; end
- # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#147
+ # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#157
def preceding_line(token); end
# Returns the value of attribute raw_source.
#
- # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#18
+ # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#21
def raw_source; end
# Returns the value of attribute ruby_version.
#
- # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#18
+ # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#21
def ruby_version; end
# The tokens list is always sorted by token position, except for cases when heredoc
# is passed as a method argument. In this case tokens are interleaved by
# heredoc contents' tokens.
#
- # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#183
+ # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#193
def sorted_tokens; end
# @return [Boolean]
#
- # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#141
+ # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#151
def start_with?(string); end
# Returns the value of attribute tokens.
#
- # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#18
+ # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#21
def tokens; end
- # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#166
+ # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#176
def tokens_within(range_or_node); end
# @return [Boolean]
#
- # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#67
+ # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#77
def valid_syntax?; end
private
- # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#190
+ # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#200
def comment_index; end
- # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#278
- def create_parser(ruby_version); end
+ # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#312
+ def create_parser(ruby_version, parser_engine); end
- # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#294
+ # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#328
def first_token_index(range_or_node); end
- # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#299
+ # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#333
def last_token_index(range_or_node); end
- # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#196
- def parse(source, ruby_version); end
+ # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#206
+ def parse(source, ruby_version, parser_engine); end
- # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#230
- def parser_class(ruby_version); end
+ # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#240
+ def parser_class(ruby_version, parser_engine); end
- # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#304
+ # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#338
def source_range(range_or_node); end
- # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#213
+ # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#223
def tokenize(parser); end
class << self
- # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#21
- def from_file(path, ruby_version); end
+ # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#24
+ def from_file(path, ruby_version, parser_engine: T.unsafe(nil)); end
end
end
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#15
RuboCop::AST::ProcessedSource::INVALID_LEVELS = T.let(T.unsafe(nil), Array)
+# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#18
+RuboCop::AST::ProcessedSource::PARSER_ENGINES = T.let(T.unsafe(nil), Array)
+
# @api private
#
# source://rubocop-ast//lib/rubocop/ast/processed_source.rb#13
diff --git a/sorbet/rbi/gems/rubocop-shopify@2.14.0.rbi b/sorbet/rbi/gems/rubocop-shopify@2.15.1.rbi
similarity index 100%
rename from sorbet/rbi/gems/rubocop-shopify@2.14.0.rbi
rename to sorbet/rbi/gems/rubocop-shopify@2.15.1.rbi
diff --git a/sorbet/rbi/gems/rubocop-sorbet@0.7.6.rbi b/sorbet/rbi/gems/rubocop-sorbet@0.7.8.rbi
similarity index 96%
rename from sorbet/rbi/gems/rubocop-sorbet@0.7.6.rbi
rename to sorbet/rbi/gems/rubocop-sorbet@0.7.8.rbi
index 1d487f3a..fb505a0d 100644
--- a/sorbet/rbi/gems/rubocop-sorbet@0.7.6.rbi
+++ b/sorbet/rbi/gems/rubocop-sorbet@0.7.8.rbi
@@ -694,26 +694,26 @@ class RuboCop::Cop::Sorbet::ForbidTStruct < ::RuboCop::Cop::Base
include ::RuboCop::Cop::CommentsHelp
extend ::RuboCop::Cop::AutoCorrector
- # source://rubocop-sorbet//lib/rubocop/cop/sorbet/forbid_t_struct.rb#164
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/forbid_t_struct.rb#169
def on_class(node); end
- # source://rubocop-sorbet//lib/rubocop/cop/sorbet/forbid_t_struct.rb#205
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/forbid_t_struct.rb#210
def on_send(node); end
- # source://rubocop-sorbet//lib/rubocop/cop/sorbet/forbid_t_struct.rb#162
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/forbid_t_struct.rb#167
def t_props?(param0 = T.unsafe(nil)); end
- # source://rubocop-sorbet//lib/rubocop/cop/sorbet/forbid_t_struct.rb#157
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/forbid_t_struct.rb#162
def t_struct?(param0 = T.unsafe(nil)); end
private
- # source://rubocop-sorbet//lib/rubocop/cop/sorbet/forbid_t_struct.rb#213
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/forbid_t_struct.rb#218
def initialize_method(indent, props); end
# @return [Boolean]
#
- # source://rubocop-sorbet//lib/rubocop/cop/sorbet/forbid_t_struct.rb#226
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/forbid_t_struct.rb#258
def previous_line_blank?(node); end
end
@@ -775,9 +775,7 @@ class RuboCop::Cop::Sorbet::ForbidTStruct::Property
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/forbid_t_struct.rb#105
def node; end
- # Returns the value of attribute type.
- #
- # source://rubocop-sorbet//lib/rubocop/cop/sorbet/forbid_t_struct.rb#105
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/forbid_t_struct.rb#155
def type; end
end
@@ -1199,12 +1197,6 @@ RuboCop::Cop::Sorbet::RedundantExtendTSig::RESTRICT_ON_SEND = T.let(T.unsafe(nil
# - returns, or void
# - soft, checked, or on_failure
#
-# # bad
-# sig { returns(Integer).params(x: Integer) }
-#
-# # good
-# sig { params(x: Integer).returns(Integer) }
-#
# @example
# # bad
# sig { void.abstract }
@@ -1212,6 +1204,12 @@ RuboCop::Cop::Sorbet::RedundantExtendTSig::RESTRICT_ON_SEND = T.let(T.unsafe(nil
# # good
# sig { abstract.void }
#
+# # bad
+# sig { returns(Integer).params(x: Integer) }
+#
+# # good
+# sig { params(x: Integer).returns(Integer) }
+#
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/signature_build_order.rb#31
class RuboCop::Cop::Sorbet::SignatureBuildOrder < ::RuboCop::Cop::Cop
include ::RuboCop::Cop::Sorbet::SignatureHelp
@@ -1474,6 +1472,53 @@ RuboCop::Cop::Sorbet::ValidSigil::SIGIL_REGEX = T.let(T.unsafe(nil), Regexp)
# source://rubocop-sorbet//lib/rubocop/cop/sorbet/sigils/valid_sigil.rb#53
RuboCop::Cop::Sorbet::ValidSigil::STRICTNESS_LEVELS = T.let(T.unsafe(nil), Array)
+# Disallows the usage of `.void.checked(:tests)`.
+#
+# Using `.void` changes the value returned from the method, but only if
+# runtime type checking is enabled for the method. Methods marked `.void`
+# will return different values in tests compared with non-test
+# environments. This is particularly troublesome if branching on the
+# result of a `.void` method, because the returned value in test code
+# will be the truthy `VOID` value, while the non-test return value may be
+# falsy depending on the method's implementation.
+#
+# - Use `.returns(T.anything).checked(:tests)` to keep the runtime type
+# checking for the rest of the parameters.
+# - Use `.void.checked(:never)` if you are on an older version of Sorbet
+# which does not have `T.anything` (meaning versions 0.5.10781 or
+# earlier. Versions released after 2023-04-14 include `T.anything`.)
+#
+# @example
+#
+# # bad
+# sig { void.checked(:tests) }
+#
+# # good
+# sig { void }
+# sig { returns(T.anything).checked(:tests) }
+# sig { void.checked(:never) }
+#
+# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/void_checked_tests.rb#31
+class RuboCop::Cop::Sorbet::VoidCheckedTests < ::RuboCop::Cop::Base
+ include ::RuboCop::Cop::RangeHelp
+ include ::RuboCop::Cop::Sorbet::SignatureHelp
+ extend ::RuboCop::Cop::AutoCorrector
+
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/void_checked_tests.rb#37
+ def checked_tests(param0); end
+
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/void_checked_tests.rb#58
+ def on_signature(node); end
+
+ private
+
+ # source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/void_checked_tests.rb#48
+ def top_level_void(node); end
+end
+
+# source://rubocop-sorbet//lib/rubocop/cop/sorbet/signatures/void_checked_tests.rb#41
+RuboCop::Cop::Sorbet::VoidCheckedTests::MESSAGE = T.let(T.unsafe(nil), String)
+
module RuboCop::Cop::Style; end
class RuboCop::Cop::Style::MutableConstant < ::RuboCop::Cop::Base
diff --git a/sorbet/rbi/gems/rubocop@1.58.0.rbi b/sorbet/rbi/gems/rubocop@1.62.1.rbi
similarity index 97%
rename from sorbet/rbi/gems/rubocop@1.58.0.rbi
rename to sorbet/rbi/gems/rubocop@1.62.1.rbi
index ed762b1d..7e458202 100644
--- a/sorbet/rbi/gems/rubocop@1.58.0.rbi
+++ b/sorbet/rbi/gems/rubocop@1.62.1.rbi
@@ -100,15 +100,18 @@ class RuboCop::CLI
# source://rubocop//lib/rubocop/cli.rb#152
def act_on_options; end
- # source://rubocop//lib/rubocop/cli.rb#189
+ # source://rubocop//lib/rubocop/cli.rb#194
def apply_default_formatter; end
# source://rubocop//lib/rubocop/cli.rb#121
def execute_runners; end
+ # source://rubocop//lib/rubocop/cli.rb#178
+ def handle_editor_mode; end
+
# @raise [Finished]
#
- # source://rubocop//lib/rubocop/cli.rb#178
+ # source://rubocop//lib/rubocop/cli.rb#183
def handle_exiting_options; end
# source://rubocop//lib/rubocop/cli.rb#140
@@ -123,7 +126,7 @@ class RuboCop::CLI
# source://rubocop//lib/rubocop/cli.rb#117
def run_command(name); end
- # source://rubocop//lib/rubocop/cli.rb#169
+ # source://rubocop//lib/rubocop/cli.rb#170
def set_options_to_config_loader; end
# source://rubocop//lib/rubocop/cli.rb#129
@@ -166,77 +169,83 @@ end
class RuboCop::CLI::Command::AutoGenerateConfig < ::RuboCop::CLI::Command::Base
# @api private
#
- # source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#22
+ # source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#25
def run; end
private
# @api private
#
- # source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#98
+ # source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#107
def add_formatter; end
# @api private
#
- # source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#106
+ # source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#115
def add_inheritance_from_auto_generated_file(config_file); end
# @api private
#
- # source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#102
+ # source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#111
def execute_runner; end
# @api private
#
- # source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#127
+ # source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#136
def existing_configuration(config_file); end
# @api private
#
- # source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#60
+ # source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#65
def line_length_cop(config); end
# @api private
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#48
+ # source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#53
def line_length_enabled?(config); end
# @api private
#
- # source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#56
+ # source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#61
def max_line_length(config); end
# @api private
#
- # source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#31
+ # source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#34
def maybe_run_line_length_cop; end
# @api private
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#153
+ # source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#73
+ def only_exclude?; end
+
+ # @api private
+ # @return [Boolean]
+ #
+ # source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#162
def options_config_in_root?; end
# @api private
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#64
+ # source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#69
def options_has_only_flag?; end
# @api private
#
- # source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#144
+ # source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#153
def relative_path_to_todo_from_options_config; end
# @api private
#
- # source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#91
+ # source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#100
def reset_config_and_auto_gen_file; end
# @api private
#
- # source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#82
+ # source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#91
def run_all_cops(line_length_contents); end
# Do an initial run with only Layout/LineLength so that cops that
@@ -245,23 +254,23 @@ class RuboCop::CLI::Command::AutoGenerateConfig < ::RuboCop::CLI::Command::Base
#
# @api private
#
- # source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#71
+ # source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#80
def run_line_length_cop; end
# @api private
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#52
+ # source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#57
def same_max_line_length?(config1, config2); end
# @api private
#
- # source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#43
+ # source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#48
def skip_line_length_cop(reason); end
# @api private
#
- # source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#133
+ # source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#142
def write_config_file(file_name, file_string, rubocop_yml_contents); end
end
@@ -288,7 +297,12 @@ RuboCop::CLI::Command::AutoGenerateConfig::PHASE_1_OVERRIDDEN = T.let(T.unsafe(n
# @api private
#
# source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#20
-RuboCop::CLI::Command::AutoGenerateConfig::PHASE_1_SKIPPED = T.let(T.unsafe(nil), String)
+RuboCop::CLI::Command::AutoGenerateConfig::PHASE_1_SKIPPED_ONLY_COPS = T.let(T.unsafe(nil), String)
+
+# @api private
+#
+# source://rubocop//lib/rubocop/cli/command/auto_generate_config.rb#22
+RuboCop::CLI::Command::AutoGenerateConfig::PHASE_1_SKIPPED_ONLY_EXCLUDE = T.let(T.unsafe(nil), String)
# @api private
#
@@ -426,7 +440,7 @@ RuboCop::CLI::Command::InitDotfile::DOTFILE = T.let(T.unsafe(nil), String)
# @api private
#
# source://rubocop//lib/rubocop/cli/command/lsp.rb#10
-class RuboCop::CLI::Command::Lsp < ::RuboCop::CLI::Command::Base
+class RuboCop::CLI::Command::LSP < ::RuboCop::CLI::Command::Base
# @api private
#
# source://rubocop//lib/rubocop/cli/command/lsp.rb#13
@@ -946,7 +960,7 @@ end
# during a run of the rubocop program, if files in several
# directories are inspected.
#
-# source://rubocop//lib/rubocop/config.rb#14
+# source://rubocop//lib/rubocop/config.rb#12
class RuboCop::Config
include ::RuboCop::PathUtil
include ::RuboCop::FileFinder
@@ -954,7 +968,7 @@ class RuboCop::Config
# @return [Config] a new instance of Config
#
- # source://rubocop//lib/rubocop/config.rb#32
+ # source://rubocop//lib/rubocop/config.rb#30
def initialize(hash = T.unsafe(nil), loaded_path = T.unsafe(nil)); end
# source://forwardable/1.3.3/forwardable.rb#231
@@ -965,15 +979,15 @@ class RuboCop::Config
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/config.rb#172
+ # source://rubocop//lib/rubocop/config.rb#170
def active_support_extensions_enabled?; end
- # source://rubocop//lib/rubocop/config.rb#98
+ # source://rubocop//lib/rubocop/config.rb#96
def add_excludes_from_higher_level(highest_config); end
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/config.rb#195
+ # source://rubocop//lib/rubocop/config.rb#193
def allowed_camel_case_file?(file); end
# Paths specified in configuration files starting with .rubocop are
@@ -982,25 +996,25 @@ class RuboCop::Config
# config/default.yml, for example, are not relative to RuboCop's config
# directory since that wouldn't work.
#
- # source://rubocop//lib/rubocop/config.rb#239
+ # source://rubocop//lib/rubocop/config.rb#237
def base_dir_for_path_parameters; end
- # source://rubocop//lib/rubocop/config.rb#264
+ # source://rubocop//lib/rubocop/config.rb#266
def bundler_lock_file_path; end
- # source://rubocop//lib/rubocop/config.rb#53
+ # source://rubocop//lib/rubocop/config.rb#51
def check; end
# @api private
# @return [Boolean] whether config for this badge has 'Include' or 'Exclude' keys
#
- # source://rubocop//lib/rubocop/config.rb#144
+ # source://rubocop//lib/rubocop/config.rb#142
def clusivity_config_for_badge?(badge); end
# source://forwardable/1.3.3/forwardable.rb#231
def delete(*args, **_arg1, &block); end
- # source://rubocop//lib/rubocop/config.rb#110
+ # source://rubocop//lib/rubocop/config.rb#108
def deprecation_check; end
# source://forwardable/1.3.3/forwardable.rb#231
@@ -1008,7 +1022,7 @@ class RuboCop::Config
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/config.rb#164
+ # source://rubocop//lib/rubocop/config.rb#162
def disabled_new_cops?; end
# source://forwardable/1.3.3/forwardable.rb#231
@@ -1019,7 +1033,7 @@ class RuboCop::Config
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/config.rb#168
+ # source://rubocop//lib/rubocop/config.rb#166
def enabled_new_cops?; end
# source://forwardable/1.3.3/forwardable.rb#231
@@ -1027,22 +1041,22 @@ class RuboCop::Config
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/config.rb#217
+ # source://rubocop//lib/rubocop/config.rb#215
def file_to_exclude?(file); end
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/config.rb#176
+ # source://rubocop//lib/rubocop/config.rb#174
def file_to_include?(file); end
- # source://rubocop//lib/rubocop/config.rb#160
+ # source://rubocop//lib/rubocop/config.rb#158
def for_all_cops; end
# Note: the 'Enabled' attribute is same as that returned by `for_cop`
#
# @return [Config] for the given cop merged with that of its department (if any)
#
- # source://rubocop//lib/rubocop/config.rb#130
+ # source://rubocop//lib/rubocop/config.rb#128
def for_badge(badge); end
# Note: the 'Enabled' attribute is calculated according to the department's
@@ -1050,7 +1064,7 @@ class RuboCop::Config
#
# @return [Config] for the given cop / cop name.
#
- # source://rubocop//lib/rubocop/config.rb#124
+ # source://rubocop//lib/rubocop/config.rb#122
def for_cop(cop); end
# Note: the 'Enabled' attribute will be present only if specified
@@ -1058,17 +1072,17 @@ class RuboCop::Config
#
# @return [Config] for the given department name.
#
- # source://rubocop//lib/rubocop/config.rb#155
+ # source://rubocop//lib/rubocop/config.rb#153
def for_department(department_name); end
- # source://rubocop//lib/rubocop/config.rb#287
+ # source://rubocop//lib/rubocop/config.rb#289
def inspect; end
# True if this is a config file that is shipped with RuboCop
#
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/config.rb#78
+ # source://rubocop//lib/rubocop/config.rb#76
def internal?; end
# source://forwardable/1.3.3/forwardable.rb#231
@@ -1077,15 +1091,15 @@ class RuboCop::Config
# source://forwardable/1.3.3/forwardable.rb#231
def keys(*args, **_arg1, &block); end
- # source://rubocop//lib/rubocop/config.rb#49
+ # source://rubocop//lib/rubocop/config.rb#47
def loaded_features; end
# Returns the value of attribute loaded_path.
#
- # source://rubocop//lib/rubocop/config.rb#22
+ # source://rubocop//lib/rubocop/config.rb#20
def loaded_path; end
- # source://rubocop//lib/rubocop/config.rb#83
+ # source://rubocop//lib/rubocop/config.rb#81
def make_excludes_absolute; end
# source://forwardable/1.3.3/forwardable.rb#231
@@ -1094,16 +1108,19 @@ class RuboCop::Config
# source://forwardable/1.3.3/forwardable.rb#231
def merge(*args, **_arg1, &block); end
- # source://rubocop//lib/rubocop/config.rb#230
+ # source://rubocop//lib/rubocop/config.rb#247
+ def parser_engine; end
+
+ # source://rubocop//lib/rubocop/config.rb#228
def path_relative_to_config(path); end
- # source://rubocop//lib/rubocop/config.rb#226
+ # source://rubocop//lib/rubocop/config.rb#224
def patterns_to_exclude; end
- # source://rubocop//lib/rubocop/config.rb#222
+ # source://rubocop//lib/rubocop/config.rb#220
def patterns_to_include; end
- # source://rubocop//lib/rubocop/config.rb#275
+ # source://rubocop//lib/rubocop/config.rb#277
def pending_cops; end
# Returns true if there's a chance that an Include pattern matches hidden
@@ -1111,19 +1128,19 @@ class RuboCop::Config
#
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/config.rb#209
+ # source://rubocop//lib/rubocop/config.rb#207
def possibly_include_hidden?; end
# source://forwardable/1.3.3/forwardable.rb#231
def replace(*args, **_arg1, &block); end
- # source://rubocop//lib/rubocop/config.rb#73
+ # source://rubocop//lib/rubocop/config.rb#71
def signature; end
- # source://rubocop//lib/rubocop/config.rb#260
+ # source://rubocop//lib/rubocop/config.rb#262
def smart_loaded_path; end
- # source://rubocop//lib/rubocop/config.rb#249
+ # source://rubocop//lib/rubocop/config.rb#251
def target_rails_version; end
# source://forwardable/1.3.3/forwardable.rb#231
@@ -1135,7 +1152,7 @@ class RuboCop::Config
# source://forwardable/1.3.3/forwardable.rb#231
def to_hash(*args, **_arg1, &block); end
- # source://rubocop//lib/rubocop/config.rb#69
+ # source://rubocop//lib/rubocop/config.rb#67
def to_s; end
# source://forwardable/1.3.3/forwardable.rb#231
@@ -1144,32 +1161,32 @@ class RuboCop::Config
# source://forwardable/1.3.3/forwardable.rb#231
def validate(*args, **_arg1, &block); end
- # source://rubocop//lib/rubocop/config.rb#60
+ # source://rubocop//lib/rubocop/config.rb#58
def validate_after_resolution; end
private
- # source://rubocop//lib/rubocop/config.rb#322
+ # source://rubocop//lib/rubocop/config.rb#324
def department_of(qualified_cop_name); end
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/config.rb#310
+ # source://rubocop//lib/rubocop/config.rb#312
def enable_cop?(qualified_cop_name, cop_options); end
- # source://rubocop//lib/rubocop/config.rb#297
+ # source://rubocop//lib/rubocop/config.rb#299
def read_rails_version_from_bundler_lock_file; end
- # source://rubocop//lib/rubocop/config.rb#293
+ # source://rubocop//lib/rubocop/config.rb#295
def target_rails_version_from_bundler_lock_file; end
class << self
- # source://rubocop//lib/rubocop/config.rb#24
+ # source://rubocop//lib/rubocop/config.rb#22
def create(hash, path, check: T.unsafe(nil)); end
end
end
-# source://rubocop//lib/rubocop/config.rb#19
+# source://rubocop//lib/rubocop/config.rb#17
class RuboCop::Config::CopConfig < ::Struct
# Returns the value of attribute metadata
#
@@ -1202,7 +1219,7 @@ class RuboCop::Config::CopConfig < ::Struct
end
end
-# source://rubocop//lib/rubocop/config.rb#21
+# source://rubocop//lib/rubocop/config.rb#19
RuboCop::Config::DEFAULT_RAILS_VERSION = T.let(T.unsafe(nil), Float)
# This class has methods related to finding configuration path.
@@ -1236,7 +1253,7 @@ class RuboCop::ConfigFinder
# @api private
#
- # source://rubocop//lib/rubocop/config_finder.rb#59
+ # source://rubocop//lib/rubocop/config_finder.rb#69
def expand_path(path); end
# @api private
@@ -1252,11 +1269,16 @@ class RuboCop::ConfigFinder
# @api private
#
# source://rubocop//lib/rubocop/config_finder.rb#44
+ def find_project_root_dot_config; end
+
+ # @api private
+ #
+ # source://rubocop//lib/rubocop/config_finder.rb#54
def find_user_dotfile; end
# @api private
#
- # source://rubocop//lib/rubocop/config_finder.rb#52
+ # source://rubocop//lib/rubocop/config_finder.rb#62
def find_user_xdg_config; end
end
end
@@ -1287,12 +1309,12 @@ RuboCop::ConfigFinder::XDG_CONFIG = T.let(T.unsafe(nil), String)
# during a run of the rubocop program, if files in several
# directories are inspected.
#
-# source://rubocop//lib/rubocop/config_loader.rb#18
+# source://rubocop//lib/rubocop/config_loader.rb#17
class RuboCop::ConfigLoader
extend ::RuboCop::FileFinder
class << self
- # source://rubocop//lib/rubocop/config_loader.rb#138
+ # source://rubocop//lib/rubocop/config_loader.rb#137
def add_excludes_from_files(config, config_file); end
# Used to add features that were required inside a config or from
@@ -1300,13 +1322,13 @@ class RuboCop::ConfigLoader
#
# @api private
#
- # source://rubocop//lib/rubocop/config_loader.rb#199
+ # source://rubocop//lib/rubocop/config_loader.rb#198
def add_loaded_features(loaded_features); end
- # source://rubocop//lib/rubocop/config_loader.rb#81
+ # source://rubocop//lib/rubocop/config_loader.rb#80
def add_missing_namespaces(path, hash); end
- # source://rubocop//lib/rubocop/config_loader.rb#42
+ # source://rubocop//lib/rubocop/config_loader.rb#41
def clear_options; end
# Returns the path of .rubocop.yml searching upwards in the
@@ -1315,128 +1337,128 @@ class RuboCop::ConfigLoader
# user's home directory is checked. If there's no .rubocop.yml
# there either, the path to the default file is returned.
#
- # source://rubocop//lib/rubocop/config_loader.rb#105
+ # source://rubocop//lib/rubocop/config_loader.rb#104
def configuration_file_for(target_dir); end
- # source://rubocop//lib/rubocop/config_loader.rb#109
+ # source://rubocop//lib/rubocop/config_loader.rb#108
def configuration_from_file(config_file, check: T.unsafe(nil)); end
# Returns the value of attribute debug.
#
- # source://rubocop//lib/rubocop/config_loader.rb#34
+ # source://rubocop//lib/rubocop/config_loader.rb#33
def debug; end
# Sets the attribute debug
#
# @param value the value to set the attribute debug to.
#
- # source://rubocop//lib/rubocop/config_loader.rb#34
+ # source://rubocop//lib/rubocop/config_loader.rb#33
def debug=(_arg0); end
# Returns the value of attribute debug.
#
- # source://rubocop//lib/rubocop/config_loader.rb#34
+ # source://rubocop//lib/rubocop/config_loader.rb#33
def debug?; end
- # source://rubocop//lib/rubocop/config_loader.rb#148
+ # source://rubocop//lib/rubocop/config_loader.rb#147
def default_configuration; end
# Sets the attribute default_configuration
#
# @param value the value to set the attribute default_configuration to.
#
- # source://rubocop//lib/rubocop/config_loader.rb#36
+ # source://rubocop//lib/rubocop/config_loader.rb#35
def default_configuration=(_arg0); end
# Returns the value of attribute disable_pending_cops.
#
- # source://rubocop//lib/rubocop/config_loader.rb#34
+ # source://rubocop//lib/rubocop/config_loader.rb#33
def disable_pending_cops; end
# Sets the attribute disable_pending_cops
#
# @param value the value to set the attribute disable_pending_cops to.
#
- # source://rubocop//lib/rubocop/config_loader.rb#34
+ # source://rubocop//lib/rubocop/config_loader.rb#33
def disable_pending_cops=(_arg0); end
# Returns the value of attribute enable_pending_cops.
#
- # source://rubocop//lib/rubocop/config_loader.rb#34
+ # source://rubocop//lib/rubocop/config_loader.rb#33
def enable_pending_cops; end
# Sets the attribute enable_pending_cops
#
# @param value the value to set the attribute enable_pending_cops to.
#
- # source://rubocop//lib/rubocop/config_loader.rb#34
+ # source://rubocop//lib/rubocop/config_loader.rb#33
def enable_pending_cops=(_arg0); end
# Returns the value of attribute ignore_parent_exclusion.
#
- # source://rubocop//lib/rubocop/config_loader.rb#34
+ # source://rubocop//lib/rubocop/config_loader.rb#33
def ignore_parent_exclusion; end
# Sets the attribute ignore_parent_exclusion
#
# @param value the value to set the attribute ignore_parent_exclusion to.
#
- # source://rubocop//lib/rubocop/config_loader.rb#34
+ # source://rubocop//lib/rubocop/config_loader.rb#33
def ignore_parent_exclusion=(_arg0); end
# Returns the value of attribute ignore_parent_exclusion.
#
- # source://rubocop//lib/rubocop/config_loader.rb#34
+ # source://rubocop//lib/rubocop/config_loader.rb#33
def ignore_parent_exclusion?; end
# Returns the value of attribute ignore_unrecognized_cops.
#
- # source://rubocop//lib/rubocop/config_loader.rb#34
+ # source://rubocop//lib/rubocop/config_loader.rb#33
def ignore_unrecognized_cops; end
# Sets the attribute ignore_unrecognized_cops
#
# @param value the value to set the attribute ignore_unrecognized_cops to.
#
- # source://rubocop//lib/rubocop/config_loader.rb#34
+ # source://rubocop//lib/rubocop/config_loader.rb#33
def ignore_unrecognized_cops=(_arg0); end
# @api private
#
- # source://rubocop//lib/rubocop/config_loader.rb#156
+ # source://rubocop//lib/rubocop/config_loader.rb#155
def inject_defaults!(project_root); end
- # source://rubocop//lib/rubocop/config_loader.rb#48
+ # source://rubocop//lib/rubocop/config_loader.rb#47
def load_file(file, check: T.unsafe(nil)); end
# @raise [TypeError]
#
- # source://rubocop//lib/rubocop/config_loader.rb#68
+ # source://rubocop//lib/rubocop/config_loader.rb#67
def load_yaml_configuration(absolute_path); end
# Returns the value of attribute loaded_features.
#
- # source://rubocop//lib/rubocop/config_loader.rb#37
+ # source://rubocop//lib/rubocop/config_loader.rb#36
def loaded_features; end
# Return a recursive merge of two hashes. That is, a normal hash merge,
# with the addition that any value that is a hash, and occurs in both
# arguments, will also be merged. And so on.
#
- # source://rubocop//lib/rubocop/config_loader.rb#96
+ # source://rubocop//lib/rubocop/config_loader.rb#95
def merge(base_hash, derived_hash); end
# Merges the given configuration with the default one.
#
- # source://rubocop//lib/rubocop/config_loader.rb#192
+ # source://rubocop//lib/rubocop/config_loader.rb#191
def merge_with_default(config, config_file, unset_nil: T.unsafe(nil)); end
- # source://rubocop//lib/rubocop/config_loader.rb#129
+ # source://rubocop//lib/rubocop/config_loader.rb#128
def pending_cops_only_qualified(pending_cops); end
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/config_loader.rb#133
+ # source://rubocop//lib/rubocop/config_loader.rb#132
def possible_new_cops?(config); end
# Returns the path RuboCop inferred as the root of the project. No file
@@ -1444,48 +1466,48 @@ class RuboCop::ConfigLoader
#
# @deprecated Use `RuboCop::ConfigFinder.project_root` instead.
#
- # source://rubocop//lib/rubocop/config_loader.rb#167
+ # source://rubocop//lib/rubocop/config_loader.rb#166
def project_root; end
- # source://rubocop//lib/rubocop/config_loader.rb#176
+ # source://rubocop//lib/rubocop/config_loader.rb#175
def warn_on_pending_cops(pending_cops); end
- # source://rubocop//lib/rubocop/config_loader.rb#184
+ # source://rubocop//lib/rubocop/config_loader.rb#183
def warn_pending_cop(cop); end
private
- # source://rubocop//lib/rubocop/config_loader.rb#213
+ # source://rubocop//lib/rubocop/config_loader.rb#212
def check_duplication(yaml_code, absolute_path); end
- # source://rubocop//lib/rubocop/config_loader.rb#205
+ # source://rubocop//lib/rubocop/config_loader.rb#204
def file_path(file); end
# Read the specified file, or exit with a friendly, concise message on
# stderr. Care is taken to use the standard OS exit code for a "file not
# found" error.
#
- # source://rubocop//lib/rubocop/config_loader.rb#233
+ # source://rubocop//lib/rubocop/config_loader.rb#232
def read_file(absolute_path); end
- # source://rubocop//lib/rubocop/config_loader.rb#209
+ # source://rubocop//lib/rubocop/config_loader.rb#208
def resolver; end
- # source://rubocop//lib/rubocop/config_loader.rb#239
+ # source://rubocop//lib/rubocop/config_loader.rb#238
def yaml_safe_load(yaml_code, filename); end
- # source://rubocop//lib/rubocop/config_loader.rb#249
+ # source://rubocop//lib/rubocop/config_loader.rb#248
def yaml_safe_load!(yaml_code, filename); end
end
end
-# source://rubocop//lib/rubocop/config_loader.rb#21
+# source://rubocop//lib/rubocop/config_loader.rb#20
RuboCop::ConfigLoader::DEFAULT_FILE = T.let(T.unsafe(nil), String)
-# source://rubocop//lib/rubocop/config_loader.rb#19
+# source://rubocop//lib/rubocop/config_loader.rb#18
RuboCop::ConfigLoader::DOTFILE = T.let(T.unsafe(nil), String)
-# source://rubocop//lib/rubocop/config_loader.rb#20
+# source://rubocop//lib/rubocop/config_loader.rb#19
RuboCop::ConfigLoader::RUBOCOP_HOME = T.let(T.unsafe(nil), String)
# A help class for ConfigLoader that handles configuration resolution.
@@ -1638,7 +1660,7 @@ end
# Raised when a RuboCop configuration file is not found.
#
-# source://rubocop//lib/rubocop/config_loader.rb#10
+# source://rubocop//lib/rubocop/config_loader.rb#9
class RuboCop::ConfigNotFoundError < ::RuboCop::Error; end
# This class handles obsolete configuration.
@@ -2207,13 +2229,13 @@ end
# Handles validation of configuration, for example cop names, parameter
# names, and Ruby versions.
#
-# source://rubocop//lib/rubocop/config_validator.rb#8
+# source://rubocop//lib/rubocop/config_validator.rb#6
class RuboCop::ConfigValidator
extend ::Forwardable
# @return [ConfigValidator] a new instance of ConfigValidator
#
- # source://rubocop//lib/rubocop/config_validator.rb#27
+ # source://rubocop//lib/rubocop/config_validator.rb#26
def initialize(config); end
# source://forwardable/1.3.3/forwardable.rb#231
@@ -2222,10 +2244,10 @@ class RuboCop::ConfigValidator
# source://forwardable/1.3.3/forwardable.rb#231
def smart_loaded_path(*args, **_arg1, &block); end
- # source://rubocop//lib/rubocop/config_validator.rb#63
+ # source://rubocop//lib/rubocop/config_validator.rb#62
def target_ruby_version; end
- # source://rubocop//lib/rubocop/config_validator.rb#33
+ # source://rubocop//lib/rubocop/config_validator.rb#32
def validate; end
# Validations that should only be run after all config resolving has
@@ -2234,100 +2256,103 @@ class RuboCop::ConfigValidator
# chain has been loaded so that only the final value is validated, and
# any obsolete but overridden values are ignored.
#
- # source://rubocop//lib/rubocop/config_validator.rb#59
+ # source://rubocop//lib/rubocop/config_validator.rb#58
def validate_after_resolution; end
# @raise [ValidationError]
#
- # source://rubocop//lib/rubocop/config_validator.rb#67
+ # source://rubocop//lib/rubocop/config_validator.rb#66
def validate_section_presence(name); end
private
# @raise [ValidationError]
#
- # source://rubocop//lib/rubocop/config_validator.rb#104
+ # source://rubocop//lib/rubocop/config_validator.rb#103
def alert_about_unrecognized_cops(invalid_cop_names); end
# source://rubocop//lib/rubocop/config_validator.rb#253
def check_cop_config_value(hash, parent = T.unsafe(nil)); end
- # source://rubocop//lib/rubocop/config_validator.rb#77
+ # source://rubocop//lib/rubocop/config_validator.rb#76
def check_obsoletions; end
# @raise [ValidationError]
#
- # source://rubocop//lib/rubocop/config_validator.rb#84
+ # source://rubocop//lib/rubocop/config_validator.rb#83
def check_target_ruby; end
- # source://rubocop//lib/rubocop/config_validator.rb#195
+ # source://rubocop//lib/rubocop/config_validator.rb#194
def each_invalid_parameter(cop_name); end
- # source://rubocop//lib/rubocop/config_validator.rb#120
+ # source://rubocop//lib/rubocop/config_validator.rb#119
def list_unknown_cops(invalid_cop_names); end
# FIXME: Handling colors in exception messages like this is ugly.
#
- # source://rubocop//lib/rubocop/config_validator.rb#266
- def msg_not_boolean(parent, key, value); end
+ # source://rubocop//lib/rubocop/config_validator.rb#273
+ def param_error_message(parent, key, value, supposed_values); end
- # source://rubocop//lib/rubocop/config_validator.rb#242
+ # source://rubocop//lib/rubocop/config_validator.rb#241
def reject_conflicting_safe_settings; end
# @raise [ValidationError]
#
- # source://rubocop//lib/rubocop/config_validator.rb#233
+ # source://rubocop//lib/rubocop/config_validator.rb#232
def reject_mutually_exclusive_defaults; end
- # source://rubocop//lib/rubocop/config_validator.rb#142
+ # source://rubocop//lib/rubocop/config_validator.rb#141
def suggestion(name); end
# Returns the value of attribute target_ruby.
#
- # source://rubocop//lib/rubocop/config_validator.rb#75
+ # source://rubocop//lib/rubocop/config_validator.rb#74
def target_ruby; end
- # source://rubocop//lib/rubocop/config_validator.rb#207
+ # source://rubocop//lib/rubocop/config_validator.rb#206
def validate_enforced_styles(valid_cop_names); end
# @raise [ValidationError]
#
- # source://rubocop//lib/rubocop/config_validator.rb#169
+ # source://rubocop//lib/rubocop/config_validator.rb#168
def validate_new_cops_parameter; end
- # source://rubocop//lib/rubocop/config_validator.rb#180
+ # source://rubocop//lib/rubocop/config_validator.rb#179
def validate_parameter_names(valid_cop_names); end
- # source://rubocop//lib/rubocop/config_validator.rb#227
+ # source://rubocop//lib/rubocop/config_validator.rb#226
def validate_support_and_has_list(name, formats, valid); end
# @raise [ValidationError]
#
- # source://rubocop//lib/rubocop/config_validator.rb#158
+ # source://rubocop//lib/rubocop/config_validator.rb#157
def validate_syntax_cop; end
end
# @api private
#
-# source://rubocop//lib/rubocop/config_validator.rb#12
+# source://rubocop//lib/rubocop/config_validator.rb#10
RuboCop::ConfigValidator::COMMON_PARAMS = T.let(T.unsafe(nil), Array)
-# source://rubocop//lib/rubocop/config_validator.rb#22
+# source://rubocop//lib/rubocop/config_validator.rb#21
+RuboCop::ConfigValidator::CONFIG_CHECK_AUTOCORRECTS = T.let(T.unsafe(nil), Array)
+
+# source://rubocop//lib/rubocop/config_validator.rb#20
RuboCop::ConfigValidator::CONFIG_CHECK_DEPARTMENTS = T.let(T.unsafe(nil), Array)
# @api private
#
-# source://rubocop//lib/rubocop/config_validator.rb#21
+# source://rubocop//lib/rubocop/config_validator.rb#19
RuboCop::ConfigValidator::CONFIG_CHECK_KEYS = T.let(T.unsafe(nil), Set)
# @api private
#
-# source://rubocop//lib/rubocop/config_validator.rb#14
+# source://rubocop//lib/rubocop/config_validator.rb#12
RuboCop::ConfigValidator::INTERNAL_PARAMS = T.let(T.unsafe(nil), Array)
# @api private
#
-# source://rubocop//lib/rubocop/config_validator.rb#18
+# source://rubocop//lib/rubocop/config_validator.rb#16
RuboCop::ConfigValidator::NEW_COPS_VALUES = T.let(T.unsafe(nil), Array)
# source://rubocop//lib/rubocop/cop/util.rb#4
@@ -2748,34 +2773,34 @@ module RuboCop::Cop::AutocorrectLogic
private
- # source://rubocop//lib/rubocop/cop/autocorrect_logic.rb#46
+ # source://rubocop//lib/rubocop/cop/autocorrect_logic.rb#51
def disable_offense(offense_range); end
- # source://rubocop//lib/rubocop/cop/autocorrect_logic.rb#113
+ # source://rubocop//lib/rubocop/cop/autocorrect_logic.rb#118
def disable_offense_at_end_of_line(range, eol_comment); end
- # source://rubocop//lib/rubocop/cop/autocorrect_logic.rb#117
+ # source://rubocop//lib/rubocop/cop/autocorrect_logic.rb#122
def disable_offense_before_and_after(range_by_lines); end
- # source://rubocop//lib/rubocop/cop/autocorrect_logic.rb#56
+ # source://rubocop//lib/rubocop/cop/autocorrect_logic.rb#61
def disable_offense_with_eol_or_surround_comment(range); end
- # source://rubocop//lib/rubocop/cop/autocorrect_logic.rb#109
+ # source://rubocop//lib/rubocop/cop/autocorrect_logic.rb#114
def max_line_length; end
# Expand the given range to include all of any lines it covers. Does not
# include newline at end of the last line.
#
- # source://rubocop//lib/rubocop/cop/autocorrect_logic.rb#99
+ # source://rubocop//lib/rubocop/cop/autocorrect_logic.rb#104
def range_by_lines(range); end
- # source://rubocop//lib/rubocop/cop/autocorrect_logic.rb#90
+ # source://rubocop//lib/rubocop/cop/autocorrect_logic.rb#95
def range_of_first_line(range); end
- # source://rubocop//lib/rubocop/cop/autocorrect_logic.rb#67
+ # source://rubocop//lib/rubocop/cop/autocorrect_logic.rb#72
def surrounding_heredoc(offense_range); end
- # source://rubocop//lib/rubocop/cop/autocorrect_logic.rb#78
+ # source://rubocop//lib/rubocop/cop/autocorrect_logic.rb#83
def surrounding_percent_array(offense_range); end
end
@@ -2893,7 +2918,7 @@ class RuboCop::Cop::Base
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/cop/base.rb#239
+ # source://rubocop//lib/rubocop/cop/base.rb#243
def active_support_extensions_enabled?; end
# Adds an offense that has no particular location.
@@ -2910,16 +2935,22 @@ class RuboCop::Cop::Base
# source://rubocop//lib/rubocop/cop/base.rb#172
def add_offense(node_or_range, message: T.unsafe(nil), severity: T.unsafe(nil), &block); end
+ # @api private
+ # @return [Boolean]
+ #
+ # source://rubocop//lib/rubocop/cop/base.rb#313
+ def always_autocorrect?; end
+
# Called before any investigation
#
# @api private
#
- # source://rubocop//lib/rubocop/cop/base.rb#295
+ # source://rubocop//lib/rubocop/cop/base.rb#299
def begin_investigation(processed_source, offset: T.unsafe(nil), original: T.unsafe(nil)); end
# @api private
#
- # source://rubocop//lib/rubocop/cop/base.rb#280
+ # source://rubocop//lib/rubocop/cop/base.rb#284
def callbacks_needed; end
# Returns the value of attribute config.
@@ -2933,6 +2964,12 @@ class RuboCop::Cop::Base
# source://rubocop//lib/rubocop/cop/base.rb#227
def config_to_allow_offenses=(hash); end
+ # @api private
+ # @return [Boolean]
+ #
+ # source://rubocop//lib/rubocop/cop/base.rb#319
+ def contextual_autocorrect?; end
+
# Configuration Helpers
#
# source://rubocop//lib/rubocop/cop/base.rb#217
@@ -2943,7 +2980,7 @@ class RuboCop::Cop::Base
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/cop/base.rb#251
+ # source://rubocop//lib/rubocop/cop/base.rb#255
def excluded_file?(file); end
# This method should be overridden when a cop's behavior depends
@@ -2965,7 +3002,7 @@ class RuboCop::Cop::Base
# source://rubocop//lib/rubocop/cop/base.rb#205
def external_dependency_checksum; end
- # source://rubocop//lib/rubocop/cop/base.rb#308
+ # source://rubocop//lib/rubocop/cop/base.rb#323
def inspect; end
# Gets called if no message is specified when calling `add_offense` or
@@ -2980,7 +3017,7 @@ class RuboCop::Cop::Base
# @deprecated Make potential errors with previous API more obvious
#
- # source://rubocop//lib/rubocop/cop/base.rb#271
+ # source://rubocop//lib/rubocop/cop/base.rb#275
def offenses; end
# Called after all on_... have been called
@@ -3003,9 +3040,12 @@ class RuboCop::Cop::Base
# There should be very limited reasons for a Cop to do it's own parsing
#
- # source://rubocop//lib/rubocop/cop/base.rb#256
+ # source://rubocop//lib/rubocop/cop/base.rb#260
def parse(source, path = T.unsafe(nil)); end
+ # source://rubocop//lib/rubocop/cop/base.rb#235
+ def parser_engine; end
+
# Returns the value of attribute processed_source.
#
# source://rubocop//lib/rubocop/cop/base.rb#43
@@ -3015,15 +3055,15 @@ class RuboCop::Cop::Base
#
# @api private
#
- # source://rubocop//lib/rubocop/cop/base.rb#262
+ # source://rubocop//lib/rubocop/cop/base.rb#266
def ready; end
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/cop/base.rb#243
+ # source://rubocop//lib/rubocop/cop/base.rb#247
def relevant_file?(file); end
- # source://rubocop//lib/rubocop/cop/base.rb#235
+ # source://rubocop//lib/rubocop/cop/base.rb#239
def target_rails_version; end
# source://rubocop//lib/rubocop/cop/base.rb#231
@@ -3031,83 +3071,83 @@ class RuboCop::Cop::Base
private
- # source://rubocop//lib/rubocop/cop/base.rb#436
+ # source://rubocop//lib/rubocop/cop/base.rb#451
def annotate(message); end
- # source://rubocop//lib/rubocop/cop/base.rb#320
+ # source://rubocop//lib/rubocop/cop/base.rb#335
def apply_correction(corrector); end
# @return [Symbol] offense status
#
- # source://rubocop//lib/rubocop/cop/base.rb#400
+ # source://rubocop//lib/rubocop/cop/base.rb#415
def attempt_correction(range, corrector); end
# Reserved for Cop::Cop
#
- # source://rubocop//lib/rubocop/cop/base.rb#316
+ # source://rubocop//lib/rubocop/cop/base.rb#331
def callback_argument(range); end
# Called to complete an investigation
#
- # source://rubocop//lib/rubocop/cop/base.rb#349
+ # source://rubocop//lib/rubocop/cop/base.rb#364
def complete_investigation; end
# @return [Symbol, Corrector] offense status
#
- # source://rubocop//lib/rubocop/cop/base.rb#374
+ # source://rubocop//lib/rubocop/cop/base.rb#389
def correct(range); end
- # source://rubocop//lib/rubocop/cop/base.rb#334
+ # source://rubocop//lib/rubocop/cop/base.rb#349
def current_corrector; end
# Reserved for Commissioner:
#
- # source://rubocop//lib/rubocop/cop/base.rb#326
+ # source://rubocop//lib/rubocop/cop/base.rb#341
def current_offense_locations; end
- # source://rubocop//lib/rubocop/cop/base.rb#338
+ # source://rubocop//lib/rubocop/cop/base.rb#353
def current_offenses; end
- # source://rubocop//lib/rubocop/cop/base.rb#330
+ # source://rubocop//lib/rubocop/cop/base.rb#345
def currently_disabled_lines; end
- # source://rubocop//lib/rubocop/cop/base.rb#464
+ # source://rubocop//lib/rubocop/cop/base.rb#479
def custom_severity; end
- # source://rubocop//lib/rubocop/cop/base.rb#460
+ # source://rubocop//lib/rubocop/cop/base.rb#475
def default_severity; end
- # source://rubocop//lib/rubocop/cop/base.rb#414
+ # source://rubocop//lib/rubocop/cop/base.rb#429
def disable_uncorrectable(range); end
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/cop/base.rb#450
+ # source://rubocop//lib/rubocop/cop/base.rb#465
def enabled_line?(line_number); end
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/cop/base.rb#442
+ # source://rubocop//lib/rubocop/cop/base.rb#457
def file_name_matches_any?(file, parameter, default_result); end
- # source://rubocop//lib/rubocop/cop/base.rb#432
+ # source://rubocop//lib/rubocop/cop/base.rb#447
def find_message(range, message); end
- # source://rubocop//lib/rubocop/cop/base.rb#456
+ # source://rubocop//lib/rubocop/cop/base.rb#471
def find_severity(_range, severity); end
- # source://rubocop//lib/rubocop/cop/base.rb#477
+ # source://rubocop//lib/rubocop/cop/base.rb#492
def range_for_original(range); end
- # source://rubocop//lib/rubocop/cop/base.rb#421
+ # source://rubocop//lib/rubocop/cop/base.rb#436
def range_from_node_or_range(node_or_range); end
- # source://rubocop//lib/rubocop/cop/base.rb#369
+ # source://rubocop//lib/rubocop/cop/base.rb#384
def reset_investigation; end
# @return [Symbol] offense status
#
- # source://rubocop//lib/rubocop/cop/base.rb#389
+ # source://rubocop//lib/rubocop/cop/base.rb#404
def use_corrector(range, corrector); end
class << self
@@ -3127,7 +3167,7 @@ class RuboCop::Cop::Base
# @api private
#
- # source://rubocop//lib/rubocop/cop/base.rb#285
+ # source://rubocop//lib/rubocop/cop/base.rb#289
def callbacks_needed; end
# source://rubocop//lib/rubocop/cop/base.rb#93
@@ -3197,15 +3237,15 @@ class RuboCop::Cop::Base
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/cop/base.rb#360
+ # source://rubocop//lib/rubocop/cop/base.rb#375
def builtin?; end
- # source://rubocop//lib/rubocop/cop/base.rb#342
+ # source://rubocop//lib/rubocop/cop/base.rb#357
def restrict_on_send; end
end
end
-# source://rubocop//lib/rubocop/cop/base.rb#346
+# source://rubocop//lib/rubocop/cop/base.rb#361
RuboCop::Cop::Base::EMPTY_OFFENSES = T.let(T.unsafe(nil), Array)
# Reports of an investigation.
@@ -4751,7 +4791,7 @@ module RuboCop::Cop::ConfigurableFormatting
#
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/cop/mixin/configurable_formatting.rb#29
+ # source://rubocop//lib/rubocop/cop/mixin/configurable_formatting.rb#30
def class_emitter_method?(node, name); end
# source://rubocop//lib/rubocop/cop/mixin/configurable_formatting.rb#17
@@ -4759,7 +4799,7 @@ module RuboCop::Cop::ConfigurableFormatting
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/cop/mixin/configurable_formatting.rb#23
+ # source://rubocop//lib/rubocop/cop/mixin/configurable_formatting.rb#24
def valid_name?(node, name, given_style = T.unsafe(nil)); end
end
@@ -4999,7 +5039,7 @@ class RuboCop::Cop::Corrector < ::Parser::Source::TreeRewriter
# Legacy
#
- # source://parser/3.2.2.4/lib/parser/source/tree_rewriter.rb#252
+ # source://parser/3.3.0.5/lib/parser/source/tree_rewriter.rb#252
def rewrite; end
# Swaps sources at the given ranges.
@@ -5231,9 +5271,6 @@ class RuboCop::Cop::EachToForCorrector
# source://rubocop//lib/rubocop/cop/correctors/each_to_for_corrector.rb#36
def offending_range; end
-
- # source://rubocop//lib/rubocop/cop/correctors/each_to_for_corrector.rb#44
- def replacement_range(end_pos); end
end
# source://rubocop//lib/rubocop/cop/correctors/each_to_for_corrector.rb#10
@@ -5389,45 +5426,39 @@ class RuboCop::Cop::ForToEachCorrector
private
- # source://rubocop//lib/rubocop/cop/correctors/for_to_each_corrector.rb#55
+ # source://rubocop//lib/rubocop/cop/correctors/for_to_each_corrector.rb#57
def collection_end; end
# Returns the value of attribute collection_node.
#
- # source://rubocop//lib/rubocop/cop/correctors/for_to_each_corrector.rb#23
+ # source://rubocop//lib/rubocop/cop/correctors/for_to_each_corrector.rb#25
def collection_node; end
- # source://rubocop//lib/rubocop/cop/correctors/for_to_each_corrector.rb#29
+ # source://rubocop//lib/rubocop/cop/correctors/for_to_each_corrector.rb#31
def collection_source; end
- # source://rubocop//lib/rubocop/cop/correctors/for_to_each_corrector.rb#25
+ # source://rubocop//lib/rubocop/cop/correctors/for_to_each_corrector.rb#27
def correction; end
- # source://rubocop//lib/rubocop/cop/correctors/for_to_each_corrector.rb#43
- def end_position; end
+ # source://rubocop//lib/rubocop/cop/correctors/for_to_each_corrector.rb#45
+ def end_range; end
# Returns the value of attribute for_node.
#
- # source://rubocop//lib/rubocop/cop/correctors/for_to_each_corrector.rb#23
+ # source://rubocop//lib/rubocop/cop/correctors/for_to_each_corrector.rb#25
def for_node; end
- # source://rubocop//lib/rubocop/cop/correctors/for_to_each_corrector.rb#51
+ # source://rubocop//lib/rubocop/cop/correctors/for_to_each_corrector.rb#53
def keyword_begin; end
- # source://rubocop//lib/rubocop/cop/correctors/for_to_each_corrector.rb#63
- def offending_range; end
-
- # source://rubocop//lib/rubocop/cop/correctors/for_to_each_corrector.rb#67
- def replacement_range(end_pos); end
-
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/cop/correctors/for_to_each_corrector.rb#37
+ # source://rubocop//lib/rubocop/cop/correctors/for_to_each_corrector.rb#39
def requires_parentheses?; end
# Returns the value of attribute variable_node.
#
- # source://rubocop//lib/rubocop/cop/correctors/for_to_each_corrector.rb#23
+ # source://rubocop//lib/rubocop/cop/correctors/for_to_each_corrector.rb#25
def variable_node; end
end
@@ -6100,7 +6131,7 @@ class RuboCop::Cop::Gemspec::RequiredRubyVersion < ::RuboCop::Cop::Base
# source://rubocop//lib/rubocop/cop/gemspec/required_ruby_version.rb#78
def on_new_investigation; end
- # source://rubocop//lib/rubocop/cop/gemspec/required_ruby_version.rb#82
+ # source://rubocop//lib/rubocop/cop/gemspec/required_ruby_version.rb#84
def on_send(node); end
# source://rubocop//lib/rubocop/cop/gemspec/required_ruby_version.rb#65
@@ -6110,13 +6141,13 @@ class RuboCop::Cop::Gemspec::RequiredRubyVersion < ::RuboCop::Cop::Base
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/cop/gemspec/required_ruby_version.rb#94
+ # source://rubocop//lib/rubocop/cop/gemspec/required_ruby_version.rb#96
def dynamic_version?(node); end
- # source://rubocop//lib/rubocop/cop/gemspec/required_ruby_version.rb#100
+ # source://rubocop//lib/rubocop/cop/gemspec/required_ruby_version.rb#102
def extract_ruby_version(required_ruby_version); end
- # source://rubocop//lib/rubocop/cop/gemspec/required_ruby_version.rb#116
+ # source://rubocop//lib/rubocop/cop/gemspec/required_ruby_version.rb#120
def not_equal_message(required_ruby_version, target_ruby_version); end
end
@@ -8899,15 +8930,19 @@ class RuboCop::Cop::Layout::EmptyLineAfterMagicComment < ::RuboCop::Cop::Base
private
+ # source://rubocop//lib/rubocop/cop/layout/empty_line_after_magic_comment.rb#61
+ def comments_before_code(source); end
+
# Find the last magic comment in the source file.
#
- # Take all comments that precede the first line of code, select the
+ # Take all comments that precede the first line of code (or just take
+ # them all in the case when there is no code), select the
# magic comments, and return the last magic comment in the file.
#
# @return [Parser::Source::Comment] if magic comments exist before code
# @return [nil] otherwise
#
- # source://rubocop//lib/rubocop/cop/layout/empty_line_after_magic_comment.rb#54
+ # source://rubocop//lib/rubocop/cop/layout/empty_line_after_magic_comment.rb#55
def last_magic_comment(source); end
# source://rubocop//lib/rubocop/cop/layout/empty_line_after_magic_comment.rb#43
@@ -10040,7 +10075,9 @@ RuboCop::Cop::Layout::EmptyLinesAroundModuleBody::KIND = T.let(T.unsafe(nil), St
# This `Layout/EndAlignment` cop aligns with keywords (e.g. `if`, `while`, `case`)
# by default. On the other hand, `Layout/BeginEndAlignment` cop aligns with
# `EnforcedStyleAlignWith: start_of_line` by default due to `||= begin` tends
-# to align with the start of the line. These style can be configured by each cop.
+# to align with the start of the line. `Layout/DefEndAlignment` cop also aligns with
+# `EnforcedStyleAlignWith: start_of_line` by default.
+# These style can be configured by each cop.
#
# @example EnforcedStyleAlignWith: keyword (default)
# # bad
@@ -10091,7 +10128,7 @@ RuboCop::Cop::Layout::EmptyLinesAroundModuleBody::KIND = T.let(T.unsafe(nil), St
# if true
# end
#
-# source://rubocop//lib/rubocop/cop/layout/end_alignment.rb#75
+# source://rubocop//lib/rubocop/cop/layout/end_alignment.rb#77
class RuboCop::Cop::Layout::EndAlignment < ::RuboCop::Cop::Base
include ::RuboCop::Cop::CheckAssignment
include ::RuboCop::Cop::ConfigurableEnforcedStyle
@@ -10099,54 +10136,54 @@ class RuboCop::Cop::Layout::EndAlignment < ::RuboCop::Cop::Base
include ::RuboCop::Cop::EndKeywordAlignment
extend ::RuboCop::Cop::AutoCorrector
- # source://rubocop//lib/rubocop/cop/layout/end_alignment.rb#105
+ # source://rubocop//lib/rubocop/cop/layout/end_alignment.rb#111
def on_case(node); end
- # source://rubocop//lib/rubocop/cop/layout/end_alignment.rb#105
+ # source://rubocop//lib/rubocop/cop/layout/end_alignment.rb#111
def on_case_match(node); end
- # source://rubocop//lib/rubocop/cop/layout/end_alignment.rb#81
+ # source://rubocop//lib/rubocop/cop/layout/end_alignment.rb#83
def on_class(node); end
- # source://rubocop//lib/rubocop/cop/layout/end_alignment.rb#93
+ # source://rubocop//lib/rubocop/cop/layout/end_alignment.rb#99
def on_if(node); end
- # source://rubocop//lib/rubocop/cop/layout/end_alignment.rb#89
+ # source://rubocop//lib/rubocop/cop/layout/end_alignment.rb#95
def on_module(node); end
- # source://rubocop//lib/rubocop/cop/layout/end_alignment.rb#85
+ # source://rubocop//lib/rubocop/cop/layout/end_alignment.rb#87
def on_sclass(node); end
- # source://rubocop//lib/rubocop/cop/layout/end_alignment.rb#101
+ # source://rubocop//lib/rubocop/cop/layout/end_alignment.rb#107
def on_until(node); end
- # source://rubocop//lib/rubocop/cop/layout/end_alignment.rb#97
+ # source://rubocop//lib/rubocop/cop/layout/end_alignment.rb#103
def on_while(node); end
private
- # source://rubocop//lib/rubocop/cop/layout/end_alignment.rb#161
+ # source://rubocop//lib/rubocop/cop/layout/end_alignment.rb#167
def alignment_node(node); end
- # source://rubocop//lib/rubocop/cop/layout/end_alignment.rb#178
+ # source://rubocop//lib/rubocop/cop/layout/end_alignment.rb#184
def alignment_node_for_variable_style(node); end
- # source://rubocop//lib/rubocop/cop/layout/end_alignment.rb#142
+ # source://rubocop//lib/rubocop/cop/layout/end_alignment.rb#148
def asgn_variable_align_with(outer_node, inner_node); end
- # source://rubocop//lib/rubocop/cop/layout/end_alignment.rb#196
+ # source://rubocop//lib/rubocop/cop/layout/end_alignment.rb#202
def assignment_or_operator_method(node); end
- # source://rubocop//lib/rubocop/cop/layout/end_alignment.rb#116
+ # source://rubocop//lib/rubocop/cop/layout/end_alignment.rb#122
def autocorrect(corrector, node); end
- # source://rubocop//lib/rubocop/cop/layout/end_alignment.rb#131
+ # source://rubocop//lib/rubocop/cop/layout/end_alignment.rb#137
def check_asgn_alignment(outer_node, inner_node); end
- # source://rubocop//lib/rubocop/cop/layout/end_alignment.rb#120
+ # source://rubocop//lib/rubocop/cop/layout/end_alignment.rb#126
def check_assignment(node, rhs); end
- # source://rubocop//lib/rubocop/cop/layout/end_alignment.rb#152
+ # source://rubocop//lib/rubocop/cop/layout/end_alignment.rb#158
def check_other_alignment(node); end
end
@@ -10535,7 +10572,10 @@ RuboCop::Cop::Layout::FirstArgumentIndentation::MSG = T.let(T.unsafe(nil), Strin
# Checks the indentation of the first element in an array literal
# where the opening bracket and the first element are on separate lines.
-# The other elements' indentations are handled by the ArrayAlignment cop.
+# The other elements' indentations are handled by `Layout/ArrayAlignment` cop.
+#
+# This cop will respect `Layout/ArrayAlignment` and will not work when
+# `EnforcedStyle: with_fixed_indentation` is specified for `Layout/ArrayAlignment`.
#
# By default, array literals that are arguments in a method call with
# parentheses, and where the opening square bracket of the array is on the
@@ -10608,49 +10648,57 @@ RuboCop::Cop::Layout::FirstArgumentIndentation::MSG = T.let(T.unsafe(nil), Strin
# :completely_different
# ]
#
-# source://rubocop//lib/rubocop/cop/layout/first_array_element_indentation.rb#82
+# source://rubocop//lib/rubocop/cop/layout/first_array_element_indentation.rb#85
class RuboCop::Cop::Layout::FirstArrayElementIndentation < ::RuboCop::Cop::Base
include ::RuboCop::Cop::Alignment
include ::RuboCop::Cop::ConfigurableEnforcedStyle
include ::RuboCop::Cop::MultilineElementIndentation
extend ::RuboCop::Cop::AutoCorrector
- # source://rubocop//lib/rubocop/cop/layout/first_array_element_indentation.rb#91
+ # source://rubocop//lib/rubocop/cop/layout/first_array_element_indentation.rb#94
def on_array(node); end
- # source://rubocop//lib/rubocop/cop/layout/first_array_element_indentation.rb#95
+ # source://rubocop//lib/rubocop/cop/layout/first_array_element_indentation.rb#98
def on_csend(node); end
- # source://rubocop//lib/rubocop/cop/layout/first_array_element_indentation.rb#95
+ # source://rubocop//lib/rubocop/cop/layout/first_array_element_indentation.rb#98
def on_send(node); end
private
- # source://rubocop//lib/rubocop/cop/layout/first_array_element_indentation.rb#104
+ # source://rubocop//lib/rubocop/cop/layout/first_array_element_indentation.rb#189
+ def array_alignment_config; end
+
+ # source://rubocop//lib/rubocop/cop/layout/first_array_element_indentation.rb#109
def autocorrect(corrector, node); end
# Returns the description of what the correct indentation is based on.
#
- # source://rubocop//lib/rubocop/cop/layout/first_array_element_indentation.rb#142
+ # source://rubocop//lib/rubocop/cop/layout/first_array_element_indentation.rb#147
def base_description(indent_base_type); end
- # source://rubocop//lib/rubocop/cop/layout/first_array_element_indentation.rb#108
+ # source://rubocop//lib/rubocop/cop/layout/first_array_element_indentation.rb#113
def brace_alignment_style; end
- # source://rubocop//lib/rubocop/cop/layout/first_array_element_indentation.rb#112
+ # source://rubocop//lib/rubocop/cop/layout/first_array_element_indentation.rb#117
def check(array_node, left_parenthesis); end
- # source://rubocop//lib/rubocop/cop/layout/first_array_element_indentation.rb#126
+ # source://rubocop//lib/rubocop/cop/layout/first_array_element_indentation.rb#131
def check_right_bracket(right_bracket, first_elem, left_bracket, left_parenthesis); end
- # source://rubocop//lib/rubocop/cop/layout/first_array_element_indentation.rb#155
+ # @return [Boolean]
+ #
+ # source://rubocop//lib/rubocop/cop/layout/first_array_element_indentation.rb#183
+ def enforce_first_argument_with_fixed_indentation?; end
+
+ # source://rubocop//lib/rubocop/cop/layout/first_array_element_indentation.rb#160
def message(base_description); end
- # source://rubocop//lib/rubocop/cop/layout/first_array_element_indentation.rb#163
+ # source://rubocop//lib/rubocop/cop/layout/first_array_element_indentation.rb#168
def message_for_right_bracket(indent_base_type); end
end
-# source://rubocop//lib/rubocop/cop/layout/first_array_element_indentation.rb#88
+# source://rubocop//lib/rubocop/cop/layout/first_array_element_indentation.rb#91
RuboCop::Cop::Layout::FirstArrayElementIndentation::MSG = T.let(T.unsafe(nil), String)
# Checks for a line break before the first element in a
@@ -11651,7 +11699,7 @@ RuboCop::Cop::Layout::HeredocArgumentClosingParenthesis::MSG = T.let(T.unsafe(ni
#
# Note: When ``Layout/LineLength``'s `AllowHeredoc` is false (not default),
# this cop does not add any offenses for long here documents to
-# avoid `Layout/LineLength`'s offenses.
+# avoid ``Layout/LineLength``'s offenses.
#
# @example
# # bad
@@ -14075,6 +14123,9 @@ class RuboCop::Cop::Layout::RedundantLineBreak < ::RuboCop::Cop::Base
include ::RuboCop::Cop::CheckAssignment
extend ::RuboCop::Cop::AutoCorrector
+ # source://rubocop//lib/rubocop/cop/layout/redundant_line_break.rb#55
+ def on_csend(node); end
+
# source://rubocop//lib/rubocop/cop/layout/redundant_line_break.rb#51
def on_lvasgn(node); end
@@ -14083,61 +14134,71 @@ class RuboCop::Cop::Layout::RedundantLineBreak < ::RuboCop::Cop::Base
private
- # source://rubocop//lib/rubocop/cop/layout/redundant_line_break.rb#72
+ # source://rubocop//lib/rubocop/cop/layout/redundant_line_break.rb#73
def check_assignment(node, _rhs); end
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/cop/layout/redundant_line_break.rb#120
+ # source://rubocop//lib/rubocop/cop/layout/redundant_line_break.rb#133
def comment_within?(node); end
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/cop/layout/redundant_line_break.rb#90
+ # source://rubocop//lib/rubocop/cop/layout/redundant_line_break.rb#103
def configured_to_not_be_inspected?(node); end
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/cop/layout/redundant_line_break.rb#114
+ # source://rubocop//lib/rubocop/cop/layout/redundant_line_break.rb#127
def convertible_block?(node); end
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/cop/layout/redundant_line_break.rb#68
+ # source://rubocop//lib/rubocop/cop/layout/redundant_line_break.rb#69
def end_with_percent_blank_string?(processed_source); end
- # source://rubocop//lib/rubocop/cop/layout/redundant_line_break.rb#142
+ # @return [Boolean]
+ #
+ # source://rubocop//lib/rubocop/cop/layout/redundant_line_break.rb#97
+ def index_access_call_chained?(node); end
+
+ # source://rubocop//lib/rubocop/cop/layout/redundant_line_break.rb#155
def max_line_length; end
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/cop/layout/redundant_line_break.rb#85
+ # source://rubocop//lib/rubocop/cop/layout/redundant_line_break.rb#86
def offense?(node); end
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/cop/layout/redundant_line_break.rb#97
+ # source://rubocop//lib/rubocop/cop/layout/redundant_line_break.rb#110
def other_cop_takes_precedence?(node); end
- # source://rubocop//lib/rubocop/cop/layout/redundant_line_break.rb#78
+ # source://rubocop//lib/rubocop/cop/layout/redundant_line_break.rb#79
def register_offense(node); end
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/cop/layout/redundant_line_break.rb#103
+ # source://rubocop//lib/rubocop/cop/layout/redundant_line_break.rb#93
+ def require_backslash?(node); end
+
+ # @return [Boolean]
+ #
+ # source://rubocop//lib/rubocop/cop/layout/redundant_line_break.rb#116
def single_line_block_chain_enabled?; end
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/cop/layout/redundant_line_break.rb#107
+ # source://rubocop//lib/rubocop/cop/layout/redundant_line_break.rb#120
def suitable_as_single_line?(node); end
- # source://rubocop//lib/rubocop/cop/layout/redundant_line_break.rb#133
+ # source://rubocop//lib/rubocop/cop/layout/redundant_line_break.rb#146
def to_single_line(source); end
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/cop/layout/redundant_line_break.rb#128
+ # source://rubocop//lib/rubocop/cop/layout/redundant_line_break.rb#141
def too_long?(node); end
end
@@ -14272,6 +14333,9 @@ class RuboCop::Cop::Layout::SingleLineBlockChain < ::RuboCop::Cop::Base
include ::RuboCop::Cop::RangeHelp
extend ::RuboCop::Cop::AutoCorrector
+ # source://rubocop//lib/rubocop/cop/layout/single_line_block_chain.rb#32
+ def on_csend(node); end
+
# source://rubocop//lib/rubocop/cop/layout/single_line_block_chain.rb#32
def on_send(node); end
@@ -14279,13 +14343,13 @@ class RuboCop::Cop::Layout::SingleLineBlockChain < ::RuboCop::Cop::Base
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/cop/layout/single_line_block_chain.rb#55
+ # source://rubocop//lib/rubocop/cop/layout/single_line_block_chain.rb#56
def call_method_after_block?(node, dot_range, closing_block_delimiter_line_num); end
- # source://rubocop//lib/rubocop/cop/layout/single_line_block_chain.rb#39
+ # source://rubocop//lib/rubocop/cop/layout/single_line_block_chain.rb#40
def offending_range(node); end
- # source://rubocop//lib/rubocop/cop/layout/single_line_block_chain.rb#61
+ # source://rubocop//lib/rubocop/cop/layout/single_line_block_chain.rb#62
def selector_range(node); end
class << self
@@ -15110,35 +15174,38 @@ class RuboCop::Cop::Layout::SpaceBeforeBlockBraces < ::RuboCop::Cop::Base
private
- # source://rubocop//lib/rubocop/cop/layout/space_before_block_braces.rb#124
+ # source://rubocop//lib/rubocop/cop/layout/space_before_block_braces.rb#133
def autocorrect(corrector, range); end
- # source://rubocop//lib/rubocop/cop/layout/space_before_block_braces.rb#144
+ # source://rubocop//lib/rubocop/cop/layout/space_before_block_braces.rb#153
def block_delimiters_style; end
# source://rubocop//lib/rubocop/cop/layout/space_before_block_braces.rb#83
def check_empty(left_brace, space_plus_brace, used_style); end
- # source://rubocop//lib/rubocop/cop/layout/space_before_block_braces.rb#100
+ # source://rubocop//lib/rubocop/cop/layout/space_before_block_braces.rb#109
def check_non_empty(left_brace, space_plus_brace, used_style); end
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/cop/layout/space_before_block_braces.rb#140
+ # source://rubocop//lib/rubocop/cop/layout/space_before_block_braces.rb#149
def conflict_with_block_delimiters?(node); end
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/cop/layout/space_before_block_braces.rb#148
+ # source://rubocop//lib/rubocop/cop/layout/space_before_block_braces.rb#157
def empty_braces?(loc); end
- # source://rubocop//lib/rubocop/cop/layout/space_before_block_braces.rb#115
+ # source://rubocop//lib/rubocop/cop/layout/space_before_block_braces.rb#101
+ def handle_different_styles_for_empty_braces(used_style); end
+
+ # source://rubocop//lib/rubocop/cop/layout/space_before_block_braces.rb#124
def space_detected(left_brace, space_plus_brace); end
- # source://rubocop//lib/rubocop/cop/layout/space_before_block_braces.rb#108
+ # source://rubocop//lib/rubocop/cop/layout/space_before_block_braces.rb#117
def space_missing(left_brace); end
- # source://rubocop//lib/rubocop/cop/layout/space_before_block_braces.rb#131
+ # source://rubocop//lib/rubocop/cop/layout/space_before_block_braces.rb#140
def style_for_empty_braces; end
class << self
@@ -16929,10 +16996,10 @@ RuboCop::Cop::Lint::BigDecimalNew::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array
# Checks for places where binary operator has identical operands.
#
# It covers arithmetic operators: `-`, `/`, `%`;
-# comparison operators: `==`, `===`, `=~`, `>`, `>=`, `<`, `<=`;
+# comparison operators: `==`, `===`, `=~`, `>`, `>=`, `<`, ``<=``;
# bitwise operators: `|`, `^`, `&`;
# boolean operators: `&&`, `||`
-# and "spaceship" operator - `<=>`.
+# and "spaceship" operator - ``<=>``.
#
# Simple arithmetic operations are allowed by this cop: `+`, `*`, `**`, `<<` and `>>`.
# Although these can be rewritten in a different way, it should not be necessary to
@@ -17155,7 +17222,7 @@ end
# source://rubocop//lib/rubocop/cop/lint/constant_definition_in_block.rb#67
RuboCop::Cop::Lint::ConstantDefinitionInBlock::MSG = T.let(T.unsafe(nil), String)
-# Checks for overwriting an exception with an exception result by use `rescue =>`.
+# Checks for overwriting an exception with an exception result by use ``rescue =>``.
#
# You intended to write as `rescue StandardError`.
# However, you have written `rescue => StandardError`.
@@ -19324,6 +19391,9 @@ class RuboCop::Cop::Lint::HashCompareByIdentity < ::RuboCop::Cop::Base
# source://rubocop//lib/rubocop/cop/lint/hash_compare_by_identity.rb#37
def id_as_hash_key?(param0 = T.unsafe(nil)); end
+ # source://rubocop//lib/rubocop/cop/lint/hash_compare_by_identity.rb#41
+ def on_csend(node); end
+
# source://rubocop//lib/rubocop/cop/lint/hash_compare_by_identity.rb#41
def on_send(node); end
end
@@ -19770,6 +19840,43 @@ end
# source://rubocop//lib/rubocop/cop/lint/interpolation_check.rb#28
RuboCop::Cop::Lint::InterpolationCheck::MSG = T.let(T.unsafe(nil), String)
+# Emulates the following Ruby warning in Ruby 3.3.
+#
+# [source,ruby]
+# ----
+# $ ruby -e '0.times { it }'
+# -e:1: warning: `it` calls without arguments will refer to the first block param in Ruby 3.4;
+# use it() or self.it
+# ----
+#
+# `it` calls without arguments will refer to the first block param in Ruby 3.4.
+# So use `it()` or `self.it` to ensure compatibility.
+#
+# @example
+#
+# # bad
+# do_something { it }
+#
+# # good
+# do_something { it() }
+# do_something { self.it }
+#
+# source://rubocop//lib/rubocop/cop/lint/it_without_arguments_in_block.rb#27
+class RuboCop::Cop::Lint::ItWithoutArgumentsInBlock < ::RuboCop::Cop::Base
+ include ::RuboCop::AST::NodePattern::Macros
+
+ # @return [Boolean]
+ #
+ # source://rubocop//lib/rubocop/cop/lint/it_without_arguments_in_block.rb#48
+ def deprecated_it_method?(node); end
+
+ # source://rubocop//lib/rubocop/cop/lint/it_without_arguments_in_block.rb#33
+ def on_block(node); end
+end
+
+# source://rubocop//lib/rubocop/cop/lint/it_without_arguments_in_block.rb#30
+RuboCop::Cop::Lint::ItWithoutArgumentsInBlock::MSG = T.let(T.unsafe(nil), String)
+
# Checks uses of lambda without a literal block.
# It emulates the following warning in Ruby 3.0:
#
@@ -19946,6 +20053,19 @@ class RuboCop::Cop::Lint::LiteralAssignmentInCondition < ::RuboCop::Cop::Base
private
+ # @return [Boolean]
+ #
+ # source://rubocop//lib/rubocop/cop/lint/literal_assignment_in_condition.rb#62
+ def all_literals?(node); end
+
+ # source://rubocop//lib/rubocop/cop/lint/literal_assignment_in_condition.rb#79
+ def offense_range(asgn_node, rhs); end
+
+ # @return [Boolean]
+ #
+ # source://rubocop//lib/rubocop/cop/lint/literal_assignment_in_condition.rb#75
+ def parallel_assignment_with_splat_operator?(node); end
+
# @yield [node]
#
# source://rubocop//lib/rubocop/cop/lint/literal_assignment_in_condition.rb#56
@@ -20642,22 +20762,16 @@ class RuboCop::Cop::Lint::NextWithoutAccumulator < ::RuboCop::Cop::Base
# source://rubocop//lib/rubocop/cop/lint/next_without_accumulator.rb#28
def on_block(node); end
- # source://rubocop//lib/rubocop/cop/lint/next_without_accumulator.rb#51
+ # source://rubocop//lib/rubocop/cop/lint/next_without_accumulator.rb#42
def on_block_body_of_reduce(param0 = T.unsafe(nil)); end
- # source://rubocop//lib/rubocop/cop/lint/next_without_accumulator.rb#38
+ # source://rubocop//lib/rubocop/cop/lint/next_without_accumulator.rb#28
def on_numblock(node); end
- # source://rubocop//lib/rubocop/cop/lint/next_without_accumulator.rb#56
- def on_numblock_body_of_reduce(param0 = T.unsafe(nil)); end
-
private
- # source://rubocop//lib/rubocop/cop/lint/next_without_accumulator.rb#60
+ # source://rubocop//lib/rubocop/cop/lint/next_without_accumulator.rb#49
def parent_block_node(node); end
-
- # source://rubocop//lib/rubocop/cop/lint/next_without_accumulator.rb#64
- def parent_numblock_node(node); end
end
# source://rubocop//lib/rubocop/cop/lint/next_without_accumulator.rb#26
@@ -21017,7 +21131,7 @@ RuboCop::Cop::Lint::NonLocalExitFromIterator::MSG = T.let(T.unsafe(nil), String)
#
# Conversion with `Integer`, `Float`, etc. will raise an `ArgumentError`
# if given input that is not numeric (eg. an empty string), whereas
-# `to_i`, etc. will try to convert regardless of input (`''.to_i => 0`).
+# `to_i`, etc. will try to convert regardless of input (``''.to_i => 0``).
# As such, this cop is disabled by default because it's not necessarily
# always correct to raise if a value is not numeric.
#
@@ -21075,7 +21189,10 @@ class RuboCop::Cop::Lint::NumberConversion < ::RuboCop::Cop::Base
include ::RuboCop::Cop::AllowedPattern
extend ::RuboCop::Cop::AutoCorrector
- # source://rubocop//lib/rubocop/cop/lint/number_conversion.rb#103
+ # source://rubocop//lib/rubocop/cop/lint/number_conversion.rb#107
+ def on_csend(node); end
+
+ # source://rubocop//lib/rubocop/cop/lint/number_conversion.rb#107
def on_send(node); end
# source://rubocop//lib/rubocop/cop/lint/number_conversion.rb#93
@@ -21088,43 +21205,43 @@ class RuboCop::Cop::Lint::NumberConversion < ::RuboCop::Cop::Base
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/cop/lint/number_conversion.rb#160
+ # source://rubocop//lib/rubocop/cop/lint/number_conversion.rb#165
def allow_receiver?(receiver); end
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/cop/lint/number_conversion.rb#172
+ # source://rubocop//lib/rubocop/cop/lint/number_conversion.rb#177
def allowed_method_name?(name); end
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/cop/lint/number_conversion.rb#182
+ # source://rubocop//lib/rubocop/cop/lint/number_conversion.rb#187
def conversion_method?(method_name); end
- # source://rubocop//lib/rubocop/cop/lint/number_conversion.rb#146
+ # source://rubocop//lib/rubocop/cop/lint/number_conversion.rb#151
def correct_method(node, receiver); end
- # source://rubocop//lib/rubocop/cop/lint/number_conversion.rb#150
+ # source://rubocop//lib/rubocop/cop/lint/number_conversion.rb#155
def correct_sym_method(to_method); end
- # source://rubocop//lib/rubocop/cop/lint/number_conversion.rb#129
+ # source://rubocop//lib/rubocop/cop/lint/number_conversion.rb#134
def handle_as_symbol(node); end
- # source://rubocop//lib/rubocop/cop/lint/number_conversion.rb#110
+ # source://rubocop//lib/rubocop/cop/lint/number_conversion.rb#115
def handle_conversion_method(node); end
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/cop/lint/number_conversion.rb#190
+ # source://rubocop//lib/rubocop/cop/lint/number_conversion.rb#195
def ignored_class?(name); end
- # source://rubocop//lib/rubocop/cop/lint/number_conversion.rb#186
+ # source://rubocop//lib/rubocop/cop/lint/number_conversion.rb#191
def ignored_classes; end
- # source://rubocop//lib/rubocop/cop/lint/number_conversion.rb#155
+ # source://rubocop//lib/rubocop/cop/lint/number_conversion.rb#160
def remove_parentheses(corrector, node); end
- # source://rubocop//lib/rubocop/cop/lint/number_conversion.rb#176
+ # source://rubocop//lib/rubocop/cop/lint/number_conversion.rb#181
def top_receiver(node); end
end
@@ -22013,7 +22130,8 @@ RuboCop::Cop::Lint::RedundantRequireStatement::RUBY_22_LOADED_FEATURES = T.let(T
# Checks for redundant safe navigation calls.
# Use cases where a constant, named in camel case for classes and modules is `nil` are rare,
-# and an offense is not detected when the receiver is a snake case constant.
+# and an offense is not detected when the receiver is a constant. The detection also applies
+# to literal receivers, except for `nil`.
#
# For all receivers, the `instance_of?`, `kind_of?`, `is_a?`, `eql?`, `respond_to?`,
# and `equal?` methods are checked by default.
@@ -22076,10 +22194,9 @@ RuboCop::Cop::Lint::RedundantRequireStatement::RUBY_22_LOADED_FEATURES = T.let(T
# do_something if attrs.nil_safe_method(:[])
# do_something if attrs&.not_nil_safe_method(:[])
#
-# source://rubocop//lib/rubocop/cop/lint/redundant_safe_navigation.rb#77
+# source://rubocop//lib/rubocop/cop/lint/redundant_safe_navigation.rb#78
class RuboCop::Cop::Lint::RedundantSafeNavigation < ::RuboCop::Cop::Base
include ::RuboCop::Cop::AllowedMethods
- include ::RuboCop::Cop::RangeHelp
extend ::RuboCop::Cop::AutoCorrector
# source://rubocop//lib/rubocop/cop/lint/redundant_safe_navigation.rb#95
@@ -22098,12 +22215,17 @@ class RuboCop::Cop::Lint::RedundantSafeNavigation < ::RuboCop::Cop::Base
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/cop/lint/redundant_safe_navigation.rb#134
+ # source://rubocop//lib/rubocop/cop/lint/redundant_safe_navigation.rb#133
+ def assume_receiver_instance_exists?(receiver); end
+
+ # @return [Boolean]
+ #
+ # source://rubocop//lib/rubocop/cop/lint/redundant_safe_navigation.rb#139
def check?(node); end
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/cop/lint/redundant_safe_navigation.rb#144
+ # source://rubocop//lib/rubocop/cop/lint/redundant_safe_navigation.rb#149
def condition?(parent, node); end
end
@@ -22349,15 +22471,15 @@ class RuboCop::Cop::Lint::RedundantWithIndex < ::RuboCop::Cop::Base
# source://rubocop//lib/rubocop/cop/lint/redundant_with_index.rb#36
def on_numblock(node); end
- # source://rubocop//lib/rubocop/cop/lint/redundant_with_index.rb#56
+ # source://rubocop//lib/rubocop/cop/lint/redundant_with_index.rb#57
def redundant_with_index?(param0 = T.unsafe(nil)); end
private
- # source://rubocop//lib/rubocop/cop/lint/redundant_with_index.rb#66
+ # source://rubocop//lib/rubocop/cop/lint/redundant_with_index.rb#67
def message(node); end
- # source://rubocop//lib/rubocop/cop/lint/redundant_with_index.rb#74
+ # source://rubocop//lib/rubocop/cop/lint/redundant_with_index.rb#75
def with_index_range(send); end
end
@@ -22691,13 +22813,13 @@ class RuboCop::Cop::Lint::RescueType < ::RuboCop::Cop::Base
private
- # source://rubocop//lib/rubocop/cop/lint/rescue_type.rb#71
+ # source://rubocop//lib/rubocop/cop/lint/rescue_type.rb#69
def correction(*exceptions); end
- # source://rubocop//lib/rubocop/cop/lint/rescue_type.rb#82
+ # source://rubocop//lib/rubocop/cop/lint/rescue_type.rb#80
def invalid_exceptions(exceptions); end
- # source://rubocop//lib/rubocop/cop/lint/rescue_type.rb#78
+ # source://rubocop//lib/rubocop/cop/lint/rescue_type.rb#76
def valid_exceptions(exceptions); end
end
@@ -22935,7 +23057,7 @@ class RuboCop::Cop::Lint::ScriptPermission < ::RuboCop::Cop::Base
private
# source://rubocop//lib/rubocop/cop/lint/script_permission.rb#55
- def autocorrect(comment); end
+ def autocorrect; end
# @return [Boolean]
#
@@ -23166,7 +23288,7 @@ class RuboCop::Cop::Lint::ShadowedArgument < ::RuboCop::Cop::Base
# Get argument references without assignments' references
#
- # source://rubocop//lib/rubocop/cop/lint/shadowed_argument.rb#160
+ # source://rubocop//lib/rubocop/cop/lint/shadowed_argument.rb#161
def argument_references(argument); end
# Find the first argument assignment, which doesn't reference the
@@ -23182,17 +23304,17 @@ class RuboCop::Cop::Lint::ShadowedArgument < ::RuboCop::Cop::Base
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/cop/lint/shadowed_argument.rb#170
+ # source://rubocop//lib/rubocop/cop/lint/shadowed_argument.rb#171
def ignore_implicit_references?; end
# Check whether the given node is nested into block or conditional.
#
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/cop/lint/shadowed_argument.rb#151
+ # source://rubocop//lib/rubocop/cop/lint/shadowed_argument.rb#152
def node_within_block_or_conditional?(node, stop_search_node); end
- # source://rubocop//lib/rubocop/cop/lint/shadowed_argument.rb#143
+ # source://rubocop//lib/rubocop/cop/lint/shadowed_argument.rb#144
def reference_pos(node); end
# source://rubocop//lib/rubocop/cop/lint/shadowed_argument.rb#95
@@ -23663,13 +23785,13 @@ class RuboCop::Cop::Lint::Syntax < ::RuboCop::Cop::Base
# source://rubocop//lib/rubocop/cop/lint/syntax.rb#19
def add_offense_from_diagnostic(diagnostic, ruby_version); end
- # source://rubocop//lib/rubocop/cop/lint/syntax.rb#26
+ # source://rubocop//lib/rubocop/cop/lint/syntax.rb#29
def add_offense_from_error(error); end
- # source://rubocop//lib/rubocop/cop/lint/syntax.rb#31
+ # source://rubocop//lib/rubocop/cop/lint/syntax.rb#34
def beautify_message(message); end
- # source://rubocop//lib/rubocop/cop/lint/syntax.rb#37
+ # source://rubocop//lib/rubocop/cop/lint/syntax.rb#40
def find_severity(_range, _severity); end
end
@@ -23712,12 +23834,12 @@ class RuboCop::Cop::Lint::ToEnumArguments < ::RuboCop::Cop::Base
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/cop/lint/to_enum_arguments.rb#78
+ # source://rubocop//lib/rubocop/cop/lint/to_enum_arguments.rb#83
def argument_match?(send_arg, def_arg); end
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/cop/lint/to_enum_arguments.rb#63
+ # source://rubocop//lib/rubocop/cop/lint/to_enum_arguments.rb#68
def arguments_match?(arguments, def_node); end
end
@@ -25351,7 +25473,7 @@ class RuboCop::Cop::Lint::UselessSetterCall::MethodVariableTracker
end
# Checks for uses of `Integer#times` that will never yield
-# (when the integer <= 0) or that will only ever yield once
+# (when the integer ``<= 0``) or that will only ever yield once
# (`1.times`).
#
# @example
@@ -25482,47 +25604,47 @@ class RuboCop::Cop::Lint::Void < ::RuboCop::Cop::Base
private
- # source://rubocop//lib/rubocop/cop/lint/void.rb#212
+ # source://rubocop//lib/rubocop/cop/lint/void.rb#217
def autocorrect_nonmutating_send(corrector, node, suggestion); end
- # source://rubocop//lib/rubocop/cop/lint/void.rb#208
+ # source://rubocop//lib/rubocop/cop/lint/void.rb#213
def autocorrect_void_expression(corrector, node); end
- # source://rubocop//lib/rubocop/cop/lint/void.rb#196
+ # source://rubocop//lib/rubocop/cop/lint/void.rb#201
def autocorrect_void_op(corrector, node); end
# source://rubocop//lib/rubocop/cop/lint/void.rb#99
def check_begin(node); end
- # source://rubocop//lib/rubocop/cop/lint/void.rb#108
+ # source://rubocop//lib/rubocop/cop/lint/void.rb#113
def check_expression(expr); end
- # source://rubocop//lib/rubocop/cop/lint/void.rb#146
+ # source://rubocop//lib/rubocop/cop/lint/void.rb#151
def check_literal(node); end
- # source://rubocop//lib/rubocop/cop/lint/void.rb#170
+ # source://rubocop//lib/rubocop/cop/lint/void.rb#175
def check_nonmutating(node); end
- # source://rubocop//lib/rubocop/cop/lint/void.rb#154
+ # source://rubocop//lib/rubocop/cop/lint/void.rb#159
def check_self(node); end
- # source://rubocop//lib/rubocop/cop/lint/void.rb#128
+ # source://rubocop//lib/rubocop/cop/lint/void.rb#133
def check_var(node); end
- # source://rubocop//lib/rubocop/cop/lint/void.rb#162
+ # source://rubocop//lib/rubocop/cop/lint/void.rb#167
def check_void_expression(node); end
- # source://rubocop//lib/rubocop/cop/lint/void.rb#118
+ # source://rubocop//lib/rubocop/cop/lint/void.rb#123
def check_void_op(node, &block); end
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/cop/lint/void.rb#221
+ # source://rubocop//lib/rubocop/cop/lint/void.rb#226
def entirely_literal?(node); end
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/cop/lint/void.rb#188
+ # source://rubocop//lib/rubocop/cop/lint/void.rb#193
def in_void_context?(node); end
end
@@ -25777,9 +25899,9 @@ module RuboCop::Cop::Metrics; end
#
# Interpreting ABC size:
#
-# * <= 17 satisfactory
-# * 18..30 unsatisfactory
-# * > 30 dangerous
+# * ``<= 17`` satisfactory
+# * `18..30` unsatisfactory
+# * `>` 30 dangerous
#
# You can have repeated "attributes" calls count as a single "branch".
# For this purpose, attributes are any method with no argument; no attempt
@@ -27367,43 +27489,43 @@ class RuboCop::Cop::Naming::BlockForwarding < ::RuboCop::Cop::Base
extend ::RuboCop::Cop::AutoCorrector
extend ::RuboCop::Cop::TargetRubyVersion
- # source://rubocop//lib/rubocop/cop/naming/block_forwarding.rb#54
+ # source://rubocop//lib/rubocop/cop/naming/block_forwarding.rb#55
def on_def(node); end
- # source://rubocop//lib/rubocop/cop/naming/block_forwarding.rb#54
+ # source://rubocop//lib/rubocop/cop/naming/block_forwarding.rb#55
def on_defs(node); end
private
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/cop/naming/block_forwarding.rb#87
+ # source://rubocop//lib/rubocop/cop/naming/block_forwarding.rb#95
def anonymous_block_argument?(node); end
- # source://rubocop//lib/rubocop/cop/naming/block_forwarding.rb#119
+ # source://rubocop//lib/rubocop/cop/naming/block_forwarding.rb#127
def block_forwarding_name; end
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/cop/naming/block_forwarding.rb#73
+ # source://rubocop//lib/rubocop/cop/naming/block_forwarding.rb#81
def expected_block_forwarding_style?(node, last_argument); end
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/cop/naming/block_forwarding.rb#91
+ # source://rubocop//lib/rubocop/cop/naming/block_forwarding.rb#99
def explicit_block_argument?(node); end
- # source://rubocop//lib/rubocop/cop/naming/block_forwarding.rb#95
+ # source://rubocop//lib/rubocop/cop/naming/block_forwarding.rb#103
def register_offense(block_argument, node); end
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/cop/naming/block_forwarding.rb#111
+ # source://rubocop//lib/rubocop/cop/naming/block_forwarding.rb#119
def use_block_argument_as_local_variable?(node, last_argument); end
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/cop/naming/block_forwarding.rb#83
+ # source://rubocop//lib/rubocop/cop/naming/block_forwarding.rb#91
def use_kwarg_in_method_definition?(node); end
class << self
@@ -27512,7 +27634,7 @@ class RuboCop::Cop::Naming::ConstantName < ::RuboCop::Cop::Base
# source://rubocop//lib/rubocop/cop/naming/constant_name.rb#27
def class_or_struct_return_method?(param0 = T.unsafe(nil)); end
- # source://rubocop//lib/rubocop/cop/naming/constant_name.rb#69
+ # source://rubocop//lib/rubocop/cop/naming/constant_name.rb#68
def literal_receiver?(param0 = T.unsafe(nil)); end
# source://rubocop//lib/rubocop/cop/naming/constant_name.rb#33
@@ -27527,7 +27649,7 @@ class RuboCop::Cop::Naming::ConstantName < ::RuboCop::Cop::Base
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/cop/naming/constant_name.rb#74
+ # source://rubocop//lib/rubocop/cop/naming/constant_name.rb#73
def allowed_conditional_expression_on_rhs?(node); end
# @return [Boolean]
@@ -27537,7 +27659,7 @@ class RuboCop::Cop::Naming::ConstantName < ::RuboCop::Cop::Base
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/cop/naming/constant_name.rb#78
+ # source://rubocop//lib/rubocop/cop/naming/constant_name.rb#77
def contains_constant?(node); end
end
@@ -30026,6 +30148,7 @@ RuboCop::Cop::Security::MarshalLoad::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Arr
# # bad
# open(something)
# open("| #{something}")
+# open("| foo")
# URI.open(something)
#
# # good
@@ -30035,7 +30158,6 @@ RuboCop::Cop::Security::MarshalLoad::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Arr
#
# # good (literal strings)
# open("foo.text")
-# open("| foo")
# URI.open("http://example.com")
#
# source://rubocop//lib/rubocop/cop/security/open.rb#37
@@ -30846,6 +30968,12 @@ RuboCop::Cop::Style::AndOr::MSG = T.let(T.unsafe(nil), String)
# This cop identifies places where `do_something(*args, &block)`
# can be replaced by `do_something(...)`.
#
+# In Ruby 3.1, anonymous block forwarding has been added.
+#
+# This cop identifies places where `do_something(&block)` can be replaced
+# by `do_something(&)`; if desired, this functionality can be disabled
+# by setting `UseAnonymousForwarding: false`.
+#
# In Ruby 3.2, anonymous args/kwargs forwarding has been added.
#
# This cop also identifies places where `use_args(*args)`/`use_kwargs(**kwargs)` can be
@@ -30862,7 +30990,7 @@ RuboCop::Cop::Style::AndOr::MSG = T.let(T.unsafe(nil), String)
# Names not on this list are likely to be meaningful and are allowed by default.
#
# @example RedundantBlockArgumentNames: ['blk', 'block', 'proc'] (default)
-# # bad
+# # bad - But it is good with `EnforcedStyle: explicit` set for `Naming/BlockForwarding`.
# def foo(&block)
# bar(&block)
# end
@@ -30873,21 +31001,24 @@ RuboCop::Cop::Style::AndOr::MSG = T.let(T.unsafe(nil), String)
# end
# @example UseAnonymousForwarding: true (default, only relevant for Ruby >= 3.2)
# # bad
-# def foo(*args, **kwargs)
+# def foo(*args, **kwargs, &block)
# args_only(*args)
# kwargs_only(**kwargs)
+# block_only(&block)
# end
#
# # good
-# def foo(*, **)
+# def foo(*, **, &)
# args_only(*)
# kwargs_only(**)
+# block_only(&)
# end
# @example UseAnonymousForwarding: false (only relevant for Ruby >= 3.2)
# # good
-# def foo(*args, **kwargs)
+# def foo(*args, **kwargs, &block)
# args_only(*args)
# kwargs_only(**kwargs)
+# block_only(&block)
# end
# @example AllowOnlyRestArgument: true (default, only relevant for Ruby < 3.2)
# # good
@@ -30945,201 +31076,222 @@ RuboCop::Cop::Style::AndOr::MSG = T.let(T.unsafe(nil), String)
# bar(...)
# end
#
-# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#116
+# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#125
class RuboCop::Cop::Style::ArgumentsForwarding < ::RuboCop::Cop::Base
include ::RuboCop::Cop::RangeHelp
extend ::RuboCop::Cop::AutoCorrector
extend ::RuboCop::Cop::TargetRubyVersion
- # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#134
+ # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#144
def on_def(node); end
- # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#134
+ # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#144
def on_defs(node); end
private
- # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#174
+ # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#185
def add_forward_all_offenses(node, send_classifications, forwardable_args); end
- # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#295
+ # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#350
def add_parens_if_missing(node, corrector); end
- # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#183
+ # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#212
def add_post_ruby_32_offenses(def_node, send_classifications, forwardable_args); end
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#287
+ # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#342
def allow_only_rest_arguments?; end
- # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#279
+ # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#334
def arguments_range(node, first_node); end
- # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#226
+ # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#263
def classification_and_forwards(def_node, send_node, referenced_lvars, forwardable_args); end
- # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#211
+ # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#248
def classify_send_nodes(def_node, send_nodes, referenced_lvars, forwardable_args); end
- # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#158
+ # @return [Boolean]
+ #
+ # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#494
+ def explicit_block_name?; end
+
+ # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#168
def extract_forwardable_args(args); end
- # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#201
+ # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#238
def non_splat_or_block_pass_lvar_references(body); end
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#170
+ # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#180
def only_forwards_all?(send_classifications); end
- # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#162
+ # @return [Boolean]
+ #
+ # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#292
+ def outside_block?(node); end
+
+ # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#172
def redundant_forwardable_named_args(restarg, kwrestarg, blockarg); end
- # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#243
+ # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#282
def redundant_named_arg(arg, config_name, keyword); end
- # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#269
+ # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#324
def register_forward_all_offense(def_or_send, send_or_arguments, rest_or_splat); end
- # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#253
+ # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#298
def register_forward_args_offense(def_arguments_or_send, rest_arg_or_splat); end
- # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#261
+ # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#314
+ def register_forward_block_arg_offense(add_parens, def_arguments_or_send, block_arg); end
+
+ # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#306
def register_forward_kwargs_offense(add_parens, def_arguments_or_send, kwrest_arg_or_splat); end
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#291
+ # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#346
def use_anonymous_forwarding?; end
class << self
- # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#130
+ # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#140
def autocorrect_incompatible_with; end
end
end
-# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#124
+# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#133
RuboCop::Cop::Style::ArgumentsForwarding::ADDITIONAL_ARG_TYPES = T.let(T.unsafe(nil), Array)
-# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#127
+# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#136
RuboCop::Cop::Style::ArgumentsForwarding::ARGS_MSG = T.let(T.unsafe(nil), String)
-# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#123
+# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#138
+RuboCop::Cop::Style::ArgumentsForwarding::BLOCK_MSG = T.let(T.unsafe(nil), String)
+
+# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#132
RuboCop::Cop::Style::ArgumentsForwarding::FORWARDING_LVAR_TYPES = T.let(T.unsafe(nil), Array)
-# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#126
+# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#135
RuboCop::Cop::Style::ArgumentsForwarding::FORWARDING_MSG = T.let(T.unsafe(nil), String)
-# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#128
+# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#137
RuboCop::Cop::Style::ArgumentsForwarding::KWARGS_MSG = T.let(T.unsafe(nil), String)
# Classifies send nodes for possible rest/kwrest/all (including block) forwarding.
#
-# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#302
+# source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#357
class RuboCop::Cop::Style::ArgumentsForwarding::SendNodeClassifier
extend ::RuboCop::AST::NodePattern::Macros
# @return [SendNodeClassifier] a new instance of SendNodeClassifier
#
- # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#314
+ # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#369
def initialize(def_node, send_node, referenced_lvars, forwardable_args, **config); end
- # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#342
+ # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#397
def classification; end
- # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#309
+ # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#364
def extract_forwarded_kwrest_arg(param0 = T.unsafe(nil), param1); end
- # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#336
+ # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#391
def forwarded_block_arg; end
- # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#312
+ # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#367
def forwarded_block_arg?(param0 = T.unsafe(nil), param1); end
- # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#330
+ # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#385
def forwarded_kwrest_arg; end
- # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#324
+ # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#379
def forwarded_rest_arg; end
- # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#306
+ # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#361
def forwarded_rest_arg?(param0 = T.unsafe(nil), param1); end
private
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#410
+ # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#465
def additional_kwargs?; end
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#406
+ # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#461
def additional_kwargs_or_forwarded_kwargs?; end
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#420
+ # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#475
def allow_offense_for_no_block?; end
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#391
+ # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#446
def any_arg_referenced?; end
- # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#375
+ # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#430
def arguments; end
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#354
+ # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#409
def can_forward_all?; end
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#414
+ # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#469
def forward_additional_kwargs?; end
- # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#371
+ # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#426
def forwarded_rest_and_kwrest_args; end
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#424
+ # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#488
+ def missing_rest_arg_or_kwrest_arg?; end
+
+ # @return [Boolean]
+ #
+ # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#479
def no_additional_args?; end
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#399
+ # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#454
def no_post_splat_args?; end
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#367
+ # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#422
def offensive_block_forwarding?; end
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#387
+ # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#442
def referenced_block_arg?; end
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#383
+ # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#438
def referenced_kwrest_arg?; end
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#379
+ # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#434
def referenced_rest_arg?; end
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#363
+ # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#418
def ruby_32_missing_rest_or_kwest?; end
- # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#395
+ # source://rubocop//lib/rubocop/cop/style/arguments_forwarding.rb#450
def target_ruby_version; end
end
@@ -31182,7 +31334,7 @@ RuboCop::Cop::Style::ArrayCoercion::CHECK_MSG = T.let(T.unsafe(nil), String)
RuboCop::Cop::Style::ArrayCoercion::SPLAT_MSG = T.let(T.unsafe(nil), String)
# Identifies usages of `arr[0]` and `arr[-1]` and suggests to change
-# them to use `arr.first` and `arr.instead`.
+# them to use `arr.first` and `arr.last` instead.
#
# The cop is disabled by default due to safety concerns.
#
@@ -32046,27 +32198,27 @@ RuboCop::Cop::Style::BlockDelimiters::BRACES_REQUIRED_MESSAGE = T.let(T.unsafe(n
# Corrector to correct conditional assignment in `case` statements.
#
-# source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#605
+# source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#604
class RuboCop::Cop::Style::CaseCorrector
extend ::RuboCop::Cop::Style::ConditionalAssignmentHelper
extend ::RuboCop::Cop::Style::ConditionalCorrectorHelper
class << self
- # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#610
+ # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#609
def correct(corrector, cop, node); end
- # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#620
+ # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#619
def move_assignment_inside_condition(corrector, node); end
private
- # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#640
+ # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#639
def extract_branches(case_node); end
- # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#634
+ # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#633
def extract_tail_branches(node); end
- # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#650
+ # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#649
def move_branch_inside_condition(corrector, branch, condition, assignment, column); end
end
end
@@ -32430,9 +32582,12 @@ class RuboCop::Cop::Style::ClassCheck < ::RuboCop::Cop::Base
include ::RuboCop::Cop::ConfigurableEnforcedStyle
extend ::RuboCop::Cop::AutoCorrector
- # source://rubocop//lib/rubocop/cop/style/class_check.rb#44
+ # source://rubocop//lib/rubocop/cop/style/class_check.rb#45
def message(node); end
+ # source://rubocop//lib/rubocop/cop/style/class_check.rb#33
+ def on_csend(node); end
+
# source://rubocop//lib/rubocop/cop/style/class_check.rb#33
def on_send(node); end
end
@@ -32738,6 +32893,8 @@ RuboCop::Cop::Style::ClassVars::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
# array.reject { |e| e.nil? }
# array.delete_if { |e| e.nil? }
# array.select { |e| !e.nil? }
+# array.grep_v(nil)
+# array.grep_v(NilClass)
#
# # good
# array.compact
@@ -32753,49 +32910,55 @@ RuboCop::Cop::Style::ClassVars::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
# # good
# params.reject(&:nil?)
#
-# source://rubocop//lib/rubocop/cop/style/collection_compact.rb#42
+# source://rubocop//lib/rubocop/cop/style/collection_compact.rb#44
class RuboCop::Cop::Style::CollectionCompact < ::RuboCop::Cop::Base
include ::RuboCop::Cop::AllowedReceivers
include ::RuboCop::Cop::RangeHelp
extend ::RuboCop::Cop::AutoCorrector
extend ::RuboCop::Cop::TargetRubyVersion
- # source://rubocop//lib/rubocop/cop/style/collection_compact.rb#82
+ # source://rubocop//lib/rubocop/cop/style/collection_compact.rb#85
+ def grep_v_with_nil?(param0 = T.unsafe(nil)); end
+
+ # source://rubocop//lib/rubocop/cop/style/collection_compact.rb#89
+ def on_csend(node); end
+
+ # source://rubocop//lib/rubocop/cop/style/collection_compact.rb#89
def on_send(node); end
- # source://rubocop//lib/rubocop/cop/style/collection_compact.rb#62
+ # source://rubocop//lib/rubocop/cop/style/collection_compact.rb#64
def reject_method?(param0 = T.unsafe(nil)); end
- # source://rubocop//lib/rubocop/cop/style/collection_compact.rb#55
+ # source://rubocop//lib/rubocop/cop/style/collection_compact.rb#57
def reject_method_with_block_pass?(param0 = T.unsafe(nil)); end
- # source://rubocop//lib/rubocop/cop/style/collection_compact.rb#72
+ # source://rubocop//lib/rubocop/cop/style/collection_compact.rb#74
def select_method?(param0 = T.unsafe(nil)); end
private
- # source://rubocop//lib/rubocop/cop/style/collection_compact.rb#119
+ # source://rubocop//lib/rubocop/cop/style/collection_compact.rb#129
def good_method_name(node); end
- # source://rubocop//lib/rubocop/cop/style/collection_compact.rb#97
+ # source://rubocop//lib/rubocop/cop/style/collection_compact.rb#106
def offense_range(node); end
- # source://rubocop//lib/rubocop/cop/style/collection_compact.rb#127
+ # source://rubocop//lib/rubocop/cop/style/collection_compact.rb#137
def range(begin_pos_node, end_pos_node); end
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/cop/style/collection_compact.rb#113
+ # source://rubocop//lib/rubocop/cop/style/collection_compact.rb#123
def to_enum_method?(node); end
end
-# source://rubocop//lib/rubocop/cop/style/collection_compact.rb#48
+# source://rubocop//lib/rubocop/cop/style/collection_compact.rb#50
RuboCop::Cop::Style::CollectionCompact::MSG = T.let(T.unsafe(nil), String)
-# source://rubocop//lib/rubocop/cop/style/collection_compact.rb#49
+# source://rubocop//lib/rubocop/cop/style/collection_compact.rb#51
RuboCop::Cop::Style::CollectionCompact::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
-# source://rubocop//lib/rubocop/cop/style/collection_compact.rb#50
+# source://rubocop//lib/rubocop/cop/style/collection_compact.rb#52
RuboCop::Cop::Style::CollectionCompact::TO_ENUM_METHODS = T.let(T.unsafe(nil), Array)
# Enforces the use of consistent method names
@@ -32999,6 +33162,9 @@ class RuboCop::Cop::Style::CombinableLoops < ::RuboCop::Cop::Base
# source://rubocop//lib/rubocop/cop/style/combinable_loops.rb#105
def combine_with_left_sibling(corrector, node); end
+ # source://rubocop//lib/rubocop/cop/style/combinable_loops.rb#112
+ def correct_end_of_block(corrector, node); end
+
# @return [Boolean]
#
# source://rubocop//lib/rubocop/cop/style/combinable_loops.rb#93
@@ -33288,44 +33454,44 @@ RuboCop::Cop::Style::CommentAnnotation::MSG_SPACE_STYLE = T.let(T.unsafe(nil), S
# y
# end
#
-# source://rubocop//lib/rubocop/cop/style/commented_keyword.rb#43
+# source://rubocop//lib/rubocop/cop/style/commented_keyword.rb#45
class RuboCop::Cop::Style::CommentedKeyword < ::RuboCop::Cop::Base
include ::RuboCop::Cop::RangeHelp
extend ::RuboCop::Cop::AutoCorrector
- # source://rubocop//lib/rubocop/cop/style/commented_keyword.rb#57
+ # source://rubocop//lib/rubocop/cop/style/commented_keyword.rb#60
def on_new_investigation; end
private
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/cop/style/commented_keyword.rb#80
+ # source://rubocop//lib/rubocop/cop/style/commented_keyword.rb#83
def offensive?(comment); end
- # source://rubocop//lib/rubocop/cop/style/commented_keyword.rb#67
+ # source://rubocop//lib/rubocop/cop/style/commented_keyword.rb#70
def register_offense(comment, matched_keyword); end
- # source://rubocop//lib/rubocop/cop/style/commented_keyword.rb#86
+ # source://rubocop//lib/rubocop/cop/style/commented_keyword.rb#89
def source_line(comment); end
end
-# source://rubocop//lib/rubocop/cop/style/commented_keyword.rb#52
+# source://rubocop//lib/rubocop/cop/style/commented_keyword.rb#54
RuboCop::Cop::Style::CommentedKeyword::ALLOWED_COMMENTS = T.let(T.unsafe(nil), Array)
-# source://rubocop//lib/rubocop/cop/style/commented_keyword.rb#53
+# source://rubocop//lib/rubocop/cop/style/commented_keyword.rb#55
RuboCop::Cop::Style::CommentedKeyword::ALLOWED_COMMENT_REGEXES = T.let(T.unsafe(nil), Array)
-# source://rubocop//lib/rubocop/cop/style/commented_keyword.rb#49
+# source://rubocop//lib/rubocop/cop/style/commented_keyword.rb#51
RuboCop::Cop::Style::CommentedKeyword::KEYWORDS = T.let(T.unsafe(nil), Array)
-# source://rubocop//lib/rubocop/cop/style/commented_keyword.rb#50
+# source://rubocop//lib/rubocop/cop/style/commented_keyword.rb#52
RuboCop::Cop::Style::CommentedKeyword::KEYWORD_REGEXES = T.let(T.unsafe(nil), Array)
-# source://rubocop//lib/rubocop/cop/style/commented_keyword.rb#47
+# source://rubocop//lib/rubocop/cop/style/commented_keyword.rb#49
RuboCop::Cop::Style::CommentedKeyword::MSG = T.let(T.unsafe(nil), String)
-# source://rubocop//lib/rubocop/cop/style/commented_keyword.rb#55
+# source://rubocop//lib/rubocop/cop/style/commented_keyword.rb#58
RuboCop::Cop::Style::CommentedKeyword::REGEXP = T.let(T.unsafe(nil), Regexp)
# Enforces the use of `Comparable#clamp` instead of comparison by minimum and maximum.
@@ -33414,20 +33580,23 @@ RuboCop::Cop::Style::ComparableClamp::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Ar
class RuboCop::Cop::Style::ConcatArrayLiterals < ::RuboCop::Cop::Base
extend ::RuboCop::Cop::AutoCorrector
+ # source://rubocop//lib/rubocop/cop/style/concat_array_literals.rb#34
+ def on_csend(node); end
+
# source://rubocop//lib/rubocop/cop/style/concat_array_literals.rb#34
def on_send(node); end
private
- # source://rubocop//lib/rubocop/cop/style/concat_array_literals.rb#69
+ # source://rubocop//lib/rubocop/cop/style/concat_array_literals.rb#70
def offense_range(node); end
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/cop/style/concat_array_literals.rb#86
+ # source://rubocop//lib/rubocop/cop/style/concat_array_literals.rb#87
def percent_literals_includes_only_basic_literals?(node); end
- # source://rubocop//lib/rubocop/cop/style/concat_array_literals.rb#73
+ # source://rubocop//lib/rubocop/cop/style/concat_array_literals.rb#74
def preferred_method(node); end
end
@@ -33441,8 +33610,8 @@ RuboCop::Cop::Style::ConcatArrayLiterals::MSG_FOR_PERCENT_LITERALS = T.let(T.uns
RuboCop::Cop::Style::ConcatArrayLiterals::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
# Check for `if` and `case` statements where each branch is used for
-# assignment to the same variable when using the return of the
-# condition can be used instead.
+# both the assignment and comparison of the same variable
+# when using the return of the condition can be used instead.
#
# @example EnforcedStyle: assign_to_condition (default)
# # bad
@@ -33783,16 +33952,16 @@ module RuboCop::Cop::Style::ConditionalCorrectorHelper
# source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#461
def assignment(node); end
- # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#491
+ # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#490
def correct_branches(corrector, branches); end
- # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#468
+ # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#467
def correct_if_branches(corrector, cop, node); end
# source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#441
def remove_whitespace_in_branches(corrector, branch, condition, column); end
- # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#478
+ # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#477
def replace_branch_assignment(corrector, branch); end
# source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#454
@@ -34017,6 +34186,9 @@ class RuboCop::Cop::Style::DateTime < ::RuboCop::Cop::Base
# source://rubocop//lib/rubocop/cop/style/date_time.rb#61
def historic_date?(param0 = T.unsafe(nil)); end
+ # source://rubocop//lib/rubocop/cop/style/date_time.rb#70
+ def on_csend(node); end
+
# source://rubocop//lib/rubocop/cop/style/date_time.rb#70
def on_send(node); end
@@ -34025,12 +34197,12 @@ class RuboCop::Cop::Style::DateTime < ::RuboCop::Cop::Base
private
- # source://rubocop//lib/rubocop/cop/style/date_time.rb#85
+ # source://rubocop//lib/rubocop/cop/style/date_time.rb#86
def autocorrect(corrector, node); end
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/cop/style/date_time.rb#81
+ # source://rubocop//lib/rubocop/cop/style/date_time.rb#82
def disallow_coercion?; end
end
@@ -34773,7 +34945,7 @@ class RuboCop::Cop::Style::EachForSimpleLoop < ::RuboCop::Cop::Base
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/cop/style/each_for_simple_loop.rb#48
+ # source://rubocop//lib/rubocop/cop/style/each_for_simple_loop.rb#46
def offending?(node); end
end
@@ -35639,40 +35811,40 @@ class RuboCop::Cop::Style::EvalWithLocation < ::RuboCop::Cop::Base
private
- # source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#195
+ # source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#184
def add_offense_for_different_line(node, line_node, line_diff); end
- # source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#142
+ # source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#131
def add_offense_for_incorrect_line(method_name, line_node, sign, line_diff); end
- # source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#210
+ # source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#199
def add_offense_for_missing_line(node, code); end
- # source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#217
+ # source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#206
def add_offense_for_missing_location(node, code); end
- # source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#189
+ # source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#178
def add_offense_for_same_line(node, line_node); end
- # source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#154
+ # source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#143
def check_file(node, file_node); end
- # source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#167
+ # source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#156
def check_line(node, code); end
# source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#95
def check_location(node, code); end
- # source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#202
+ # source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#191
def expected_line(sign, line_diff); end
# source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#122
def file_and_line(node); end
- # source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#177
+ # source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#166
def line_difference(line_node, code); end
- # source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#229
+ # source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#218
def missing_line(node, code); end
# source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#109
@@ -35688,20 +35860,13 @@ class RuboCop::Cop::Style::EvalWithLocation < ::RuboCop::Cop::Base
# source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#118
def special_line_keyword?(node); end
- # source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#181
+ # source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#170
def string_first_line(str_node); end
# @return [Boolean]
#
# source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#127
def with_binding?(node); end
-
- # FIXME: It's a Style/ConditionalAssignment's false positive.
- #
- # @return [Boolean]
- #
- # source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#133
- def with_lineno?(node); end
end
# source://rubocop//lib/rubocop/cop/style/eval_with_location.rb#59
@@ -35780,6 +35945,9 @@ class RuboCop::Cop::Style::ExactRegexpMatch < ::RuboCop::Cop::Base
# source://rubocop//lib/rubocop/cop/style/exact_regexp_match.rb#32
def exact_regexp_match(param0 = T.unsafe(nil)); end
+ # source://rubocop//lib/rubocop/cop/style/exact_regexp_match.rb#40
+ def on_csend(node); end
+
# source://rubocop//lib/rubocop/cop/style/exact_regexp_match.rb#40
def on_send(node); end
@@ -35787,10 +35955,10 @@ class RuboCop::Cop::Style::ExactRegexpMatch < ::RuboCop::Cop::Base
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/cop/style/exact_regexp_match.rb#55
+ # source://rubocop//lib/rubocop/cop/style/exact_regexp_match.rb#56
def exact_match_pattern?(parsed_regexp); end
- # source://rubocop//lib/rubocop/cop/style/exact_regexp_match.rb#62
+ # source://rubocop//lib/rubocop/cop/style/exact_regexp_match.rb#63
def new_method(node); end
end
@@ -36517,7 +36685,7 @@ class RuboCop::Cop::Style::For < ::RuboCop::Cop::Base
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/cop/style/for.rb#82
+ # source://rubocop//lib/rubocop/cop/style/for.rb#84
def suspect_enumerable?(node); end
end
@@ -37381,19 +37549,22 @@ class RuboCop::Cop::Style::HashEachMethods < ::RuboCop::Cop::Base
include ::RuboCop::Cop::Lint::UnusedArgument
extend ::RuboCop::Cop::AutoCorrector
- # source://rubocop//lib/rubocop/cop/style/hash_each_methods.rb#50
+ # source://rubocop//lib/rubocop/cop/style/hash_each_methods.rb#74
+ def check_unused_block_args(node, key, value); end
+
+ # source://rubocop//lib/rubocop/cop/style/hash_each_methods.rb#51
def each_arguments(param0 = T.unsafe(nil)); end
- # source://rubocop//lib/rubocop/cop/style/hash_each_methods.rb#45
+ # source://rubocop//lib/rubocop/cop/style/hash_each_methods.rb#46
def kv_each(param0 = T.unsafe(nil)); end
- # source://rubocop//lib/rubocop/cop/style/hash_each_methods.rb#55
+ # source://rubocop//lib/rubocop/cop/style/hash_each_methods.rb#56
def kv_each_with_block_pass(param0 = T.unsafe(nil)); end
# source://rubocop//lib/rubocop/cop/style/hash_each_methods.rb#60
def on_block(node); end
- # source://rubocop//lib/rubocop/cop/style/hash_each_methods.rb#83
+ # source://rubocop//lib/rubocop/cop/style/hash_each_methods.rb#95
def on_block_pass(node); end
# source://rubocop//lib/rubocop/cop/style/hash_each_methods.rb#60
@@ -37401,47 +37572,63 @@ class RuboCop::Cop::Style::HashEachMethods < ::RuboCop::Cop::Base
private
- # source://rubocop//lib/rubocop/cop/style/hash_each_methods.rb#134
+ # source://rubocop//lib/rubocop/cop/style/hash_each_methods.rb#180
def check_argument(variable); end
- # source://rubocop//lib/rubocop/cop/style/hash_each_methods.rb#158
+ # source://rubocop//lib/rubocop/cop/style/hash_each_methods.rb#204
def correct_args(node, corrector); end
- # source://rubocop//lib/rubocop/cop/style/hash_each_methods.rb#144
+ # source://rubocop//lib/rubocop/cop/style/hash_each_methods.rb#190
def correct_implicit(node, corrector, method_name); end
- # source://rubocop//lib/rubocop/cop/style/hash_each_methods.rb#149
+ # source://rubocop//lib/rubocop/cop/style/hash_each_methods.rb#195
def correct_key_value_each(node, corrector); end
- # source://rubocop//lib/rubocop/cop/style/hash_each_methods.rb#130
+ # source://rubocop//lib/rubocop/cop/style/hash_each_methods.rb#176
def format_message(method_name, current); end
- # source://rubocop//lib/rubocop/cop/style/hash_each_methods.rb#165
+ # @return [Boolean]
+ #
+ # source://rubocop//lib/rubocop/cop/style/hash_each_methods.rb#103
+ def handleable?(node); end
+
+ # source://rubocop//lib/rubocop/cop/style/hash_each_methods.rb#211
def kv_range(outer_node); end
- # source://rubocop//lib/rubocop/cop/style/hash_each_methods.rb#106
+ # source://rubocop//lib/rubocop/cop/style/hash_each_methods.rb#133
def message(prefer, method_name, unused_code); end
- # source://rubocop//lib/rubocop/cop/style/hash_each_methods.rb#112
+ # source://rubocop//lib/rubocop/cop/style/hash_each_methods.rb#139
def register_each_args_offense(node, message, prefer, unused_range); end
- # source://rubocop//lib/rubocop/cop/style/hash_each_methods.rb#91
+ # source://rubocop//lib/rubocop/cop/style/hash_each_methods.rb#110
def register_kv_offense(target, method); end
- # source://rubocop//lib/rubocop/cop/style/hash_each_methods.rb#119
+ # source://rubocop//lib/rubocop/cop/style/hash_each_methods.rb#146
def register_kv_with_block_pass_offense(node, target, method); end
+ # source://rubocop//lib/rubocop/cop/style/hash_each_methods.rb#167
+ def root_receiver(node); end
+
+ # @return [Boolean]
+ #
+ # source://rubocop//lib/rubocop/cop/style/hash_each_methods.rb#121
+ def unused_block_arg_exist?(node, block_arg); end
+
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/cop/style/hash_each_methods.rb#102
- def unused_block_arg_exist?(node, block_arg_source); end
+ # source://rubocop//lib/rubocop/cop/style/hash_each_methods.rb#157
+ def use_array_converter_method_as_preceding?(node); end
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/cop/style/hash_each_methods.rb#140
+ # source://rubocop//lib/rubocop/cop/style/hash_each_methods.rb#186
def used?(arg); end
end
+# source://rubocop//lib/rubocop/cop/style/hash_each_methods.rb#43
+RuboCop::Cop::Style::HashEachMethods::ARRAY_CONVERTER_METHODS = T.let(T.unsafe(nil), Array)
+
# source://rubocop//lib/rubocop/cop/style/hash_each_methods.rb#41
RuboCop::Cop::Style::HashEachMethods::MSG = T.let(T.unsafe(nil), String)
@@ -37483,6 +37670,9 @@ class RuboCop::Cop::Style::HashExcept < ::RuboCop::Cop::Base
# source://rubocop//lib/rubocop/cop/style/hash_except.rb#44
def bad_method_with_poro?(param0 = T.unsafe(nil)); end
+ # source://rubocop//lib/rubocop/cop/style/hash_except.rb#75
+ def on_csend(node); end
+
# source://rubocop//lib/rubocop/cop/style/hash_except.rb#75
def on_send(node); end
@@ -37490,42 +37680,42 @@ class RuboCop::Cop::Style::HashExcept < ::RuboCop::Cop::Base
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/cop/style/hash_except.rb#93
+ # source://rubocop//lib/rubocop/cop/style/hash_except.rb#94
def bad_method?(block); end
- # source://rubocop//lib/rubocop/cop/style/hash_except.rb#165
+ # source://rubocop//lib/rubocop/cop/style/hash_except.rb#166
def decorate_source(value); end
- # source://rubocop//lib/rubocop/cop/style/hash_except.rb#173
+ # source://rubocop//lib/rubocop/cop/style/hash_except.rb#174
def except_key(node); end
- # source://rubocop//lib/rubocop/cop/style/hash_except.rb#152
+ # source://rubocop//lib/rubocop/cop/style/hash_except.rb#153
def except_key_source(key); end
- # source://rubocop//lib/rubocop/cop/style/hash_except.rb#146
+ # source://rubocop//lib/rubocop/cop/style/hash_except.rb#147
def extract_body_if_negated(body); end
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/cop/style/hash_except.rb#127
+ # source://rubocop//lib/rubocop/cop/style/hash_except.rb#128
def included?(negated, body); end
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/cop/style/hash_except.rb#131
+ # source://rubocop//lib/rubocop/cop/style/hash_except.rb#132
def not_included?(negated, body); end
- # source://rubocop//lib/rubocop/cop/style/hash_except.rb#182
+ # source://rubocop//lib/rubocop/cop/style/hash_except.rb#183
def offense_range(node); end
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/cop/style/hash_except.rb#135
+ # source://rubocop//lib/rubocop/cop/style/hash_except.rb#136
def safe_to_register_offense?(block, except_key); end
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/cop/style/hash_except.rb#111
+ # source://rubocop//lib/rubocop/cop/style/hash_except.rb#112
def semantically_except_method?(send, block); end
end
@@ -37717,35 +37907,35 @@ class RuboCop::Cop::Style::HashSyntax < ::RuboCop::Cop::Base
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#198
+ # source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#199
def acceptable_19_syntax_symbol?(sym_name); end
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#252
+ # source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#256
def argument_without_space?(node); end
# source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#178
def autocorrect(corrector, node); end
- # source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#256
+ # source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#260
def autocorrect_hash_rockets(corrector, pair_node); end
- # source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#265
+ # source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#269
def autocorrect_no_mixed_keys(corrector, pair_node); end
- # source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#231
+ # source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#235
def autocorrect_ruby19(corrector, pair_node); end
- # source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#216
+ # source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#220
def check(pairs, delim, msg); end
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#273
+ # source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#277
def force_hash_rockets?(pairs); end
- # source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#244
+ # source://rubocop//lib/rubocop/cop/style/hash_syntax.rb#248
def range_for_autocorrect_ruby19(pair_node); end
# @return [Boolean]
@@ -37959,43 +38149,43 @@ class RuboCop::Cop::Style::IdenticalConditionalBranches < ::RuboCop::Cop::Base
private
- # source://rubocop//lib/rubocop/cop/style/identical_conditional_branches.rb#181
+ # source://rubocop//lib/rubocop/cop/style/identical_conditional_branches.rb#184
def assignable_condition_value(node); end
# source://rubocop//lib/rubocop/cop/style/identical_conditional_branches.rb#140
def check_branches(node, branches); end
- # source://rubocop//lib/rubocop/cop/style/identical_conditional_branches.rb#190
+ # source://rubocop//lib/rubocop/cop/style/identical_conditional_branches.rb#193
def check_expressions(node, expressions, insert_position); end
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/cop/style/identical_conditional_branches.rb#170
+ # source://rubocop//lib/rubocop/cop/style/identical_conditional_branches.rb#173
def duplicated_expressions?(node, expressions); end
# `elsif` branches show up in the if node as nested `else` branches. We
# need to recursively iterate over all `else` branches.
#
- # source://rubocop//lib/rubocop/cop/style/identical_conditional_branches.rb#230
+ # source://rubocop//lib/rubocop/cop/style/identical_conditional_branches.rb#233
def expand_elses(branch); end
- # source://rubocop//lib/rubocop/cop/style/identical_conditional_branches.rb#245
+ # source://rubocop//lib/rubocop/cop/style/identical_conditional_branches.rb#248
def head(node); end
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/cop/style/identical_conditional_branches.rb#214
+ # source://rubocop//lib/rubocop/cop/style/identical_conditional_branches.rb#217
def last_child_of_parent?(node); end
- # source://rubocop//lib/rubocop/cop/style/identical_conditional_branches.rb#224
+ # source://rubocop//lib/rubocop/cop/style/identical_conditional_branches.rb#227
def message(node); end
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/cop/style/identical_conditional_branches.rb#220
+ # source://rubocop//lib/rubocop/cop/style/identical_conditional_branches.rb#223
def single_child_branch?(branch_node); end
- # source://rubocop//lib/rubocop/cop/style/identical_conditional_branches.rb#241
+ # source://rubocop//lib/rubocop/cop/style/identical_conditional_branches.rb#244
def tail(node); end
end
@@ -38004,24 +38194,24 @@ RuboCop::Cop::Style::IdenticalConditionalBranches::MSG = T.let(T.unsafe(nil), St
# Corrector to correct conditional assignment in `if` statements.
#
-# source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#560
+# source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#559
class RuboCop::Cop::Style::IfCorrector
extend ::RuboCop::Cop::Style::ConditionalAssignmentHelper
extend ::RuboCop::Cop::Style::ConditionalCorrectorHelper
class << self
- # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#565
+ # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#564
def correct(corrector, cop, node); end
- # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#569
+ # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#568
def move_assignment_inside_condition(corrector, node); end
private
- # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#583
+ # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#582
def extract_tail_branches(node); end
- # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#590
+ # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#589
def move_branch_inside_condition(corrector, branch, condition, assignment, column); end
end
end
@@ -38723,7 +38913,7 @@ class RuboCop::Cop::Style::InverseMethods < ::RuboCop::Cop::Base
# source://rubocop//lib/rubocop/cop/style/inverse_methods.rb#181
def dot_range(loc); end
- # source://rubocop//lib/rubocop/cop/style/inverse_methods.rb#164
+ # source://rubocop//lib/rubocop/cop/style/inverse_methods.rb#166
def end_parentheses(node, method_call); end
# source://rubocop//lib/rubocop/cop/style/inverse_methods.rb#150
@@ -38740,7 +38930,7 @@ class RuboCop::Cop::Style::InverseMethods < ::RuboCop::Cop::Base
# source://rubocop//lib/rubocop/cop/style/inverse_methods.rb#154
def negated?(node); end
- # source://rubocop//lib/rubocop/cop/style/inverse_methods.rb#158
+ # source://rubocop//lib/rubocop/cop/style/inverse_methods.rb#162
def not_to_receiver(node, method_call); end
# When comparing classes, `!(Integer < Numeric)` is not the same as
@@ -38751,6 +38941,11 @@ class RuboCop::Cop::Style::InverseMethods < ::RuboCop::Cop::Base
# source://rubocop//lib/rubocop/cop/style/inverse_methods.rb#172
def possible_class_hierarchy_check?(lhs, rhs, method); end
+ # @return [Boolean]
+ #
+ # source://rubocop//lib/rubocop/cop/style/inverse_methods.rb#158
+ def relational_comparison_with_safe_navigation?(node); end
+
# source://rubocop//lib/rubocop/cop/style/inverse_methods.rb#185
def remove_end_parenthesis(corrector, node, method, method_call); end
@@ -38802,12 +38997,14 @@ RuboCop::Cop::Style::InverseMethods::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Arr
# foo unless x != y
# foo unless x >= 10
# foo unless x.even?
+# foo unless odd?
#
# # good
# foo if bar
# foo if x == y
# foo if x < 10
# foo if x.odd?
+# foo if even?
#
# # bad (complex condition)
# foo unless x != y || x.even?
@@ -38818,36 +39015,45 @@ RuboCop::Cop::Style::InverseMethods::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Arr
# # good (if)
# foo if !condition
#
-# source://rubocop//lib/rubocop/cop/style/invertible_unless_condition.rb#51
+# source://rubocop//lib/rubocop/cop/style/invertible_unless_condition.rb#53
class RuboCop::Cop::Style::InvertibleUnlessCondition < ::RuboCop::Cop::Base
extend ::RuboCop::Cop::AutoCorrector
- # source://rubocop//lib/rubocop/cop/style/invertible_unless_condition.rb#56
+ # source://rubocop//lib/rubocop/cop/style/invertible_unless_condition.rb#58
def on_if(node); end
private
- # source://rubocop//lib/rubocop/cop/style/invertible_unless_condition.rb#91
+ # source://rubocop//lib/rubocop/cop/style/invertible_unless_condition.rb#133
def autocorrect(corrector, node); end
- # source://rubocop//lib/rubocop/cop/style/invertible_unless_condition.rb#104
+ # source://rubocop//lib/rubocop/cop/style/invertible_unless_condition.rb#146
def autocorrect_send_node(corrector, node); end
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/cop/style/invertible_unless_condition.rb#85
+ # source://rubocop//lib/rubocop/cop/style/invertible_unless_condition.rb#90
def inheritance_check?(node); end
- # source://rubocop//lib/rubocop/cop/style/invertible_unless_condition.rb#112
+ # source://rubocop//lib/rubocop/cop/style/invertible_unless_condition.rb#154
def inverse_methods; end
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/cop/style/invertible_unless_condition.rb#70
+ # source://rubocop//lib/rubocop/cop/style/invertible_unless_condition.rb#75
def invertible?(node); end
+
+ # source://rubocop//lib/rubocop/cop/style/invertible_unless_condition.rb#96
+ def preferred_condition(node); end
+
+ # source://rubocop//lib/rubocop/cop/style/invertible_unless_condition.rb#126
+ def preferred_logical_condition(node); end
+
+ # source://rubocop//lib/rubocop/cop/style/invertible_unless_condition.rb#104
+ def preferred_send_condition(node); end
end
-# source://rubocop//lib/rubocop/cop/style/invertible_unless_condition.rb#54
+# source://rubocop//lib/rubocop/cop/style/invertible_unless_condition.rb#56
RuboCop::Cop::Style::InvertibleUnlessCondition::MSG = T.let(T.unsafe(nil), String)
# Checks for hardcoded IP addresses, which can make code
@@ -39443,32 +39649,35 @@ class RuboCop::Cop::Style::MapCompactWithConditionalBlock < ::RuboCop::Cop::Base
# source://rubocop//lib/rubocop/cop/style/map_compact_with_conditional_block.rb#46
def map_and_compact?(param0 = T.unsafe(nil)); end
+ # source://rubocop//lib/rubocop/cop/style/map_compact_with_conditional_block.rb#72
+ def on_csend(node); end
+
# source://rubocop//lib/rubocop/cop/style/map_compact_with_conditional_block.rb#72
def on_send(node); end
private
- # source://rubocop//lib/rubocop/cop/style/map_compact_with_conditional_block.rb#125
+ # source://rubocop//lib/rubocop/cop/style/map_compact_with_conditional_block.rb#126
def range(node); end
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/cop/style/map_compact_with_conditional_block.rb#91
+ # source://rubocop//lib/rubocop/cop/style/map_compact_with_conditional_block.rb#92
def returns_block_argument?(block_argument_node, return_value_node); end
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/cop/style/map_compact_with_conditional_block.rb#95
+ # source://rubocop//lib/rubocop/cop/style/map_compact_with_conditional_block.rb#96
def truthy_branch?(node); end
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/cop/style/map_compact_with_conditional_block.rb#115
+ # source://rubocop//lib/rubocop/cop/style/map_compact_with_conditional_block.rb#116
def truthy_branch_for_guard?(node); end
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/cop/style/map_compact_with_conditional_block.rb#105
+ # source://rubocop//lib/rubocop/cop/style/map_compact_with_conditional_block.rb#106
def truthy_branch_for_if?(node); end
end
@@ -39502,7 +39711,7 @@ class RuboCop::Cop::Style::MapToHash < ::RuboCop::Cop::Base
extend ::RuboCop::Cop::TargetRubyVersion
# source://rubocop//lib/rubocop/cop/style/map_to_hash.rb#41
- def map_to_h?(param0 = T.unsafe(nil)); end
+ def map_to_h(param0 = T.unsafe(nil)); end
# source://rubocop//lib/rubocop/cop/style/map_to_hash.rb#52
def on_csend(node); end
@@ -39512,7 +39721,7 @@ class RuboCop::Cop::Style::MapToHash < ::RuboCop::Cop::Base
private
- # source://rubocop//lib/rubocop/cop/style/map_to_hash.rb#67
+ # source://rubocop//lib/rubocop/cop/style/map_to_hash.rb#68
def autocorrect(corrector, to_h, map); end
class << self
@@ -39767,23 +39976,20 @@ class RuboCop::Cop::Style::MethodCallWithArgsParentheses < ::RuboCop::Cop::Base
# source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses.rb#217
def on_send(node); end
- # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses.rb#217
- def on_super(node); end
-
# source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses.rb#217
def on_yield(node); end
private
- # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses.rb#226
+ # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses.rb#225
def args_begin(node); end
- # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses.rb#235
+ # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses.rb#233
def args_end(node); end
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses.rb#239
+ # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses.rb#237
def args_parenthesized?(node); end
class << self
@@ -39805,12 +40011,12 @@ module RuboCop::Cop::Style::MethodCallWithArgsParentheses::OmitParentheses
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#165
+ # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#174
def allowed_chained_call_with_parentheses?(node); end
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#161
+ # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#170
def allowed_multiline_call_with_parentheses?(node); end
# @return [Boolean]
@@ -39820,17 +40026,17 @@ module RuboCop::Cop::Style::MethodCallWithArgsParentheses::OmitParentheses
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#174
+ # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#183
def ambiguous_literal?(node); end
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#203
+ # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#212
def assigned_before?(node, target); end
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#211
+ # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#220
def assignment_in_condition?(node); end
# source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#31
@@ -39838,57 +40044,62 @@ module RuboCop::Cop::Style::MethodCallWithArgsParentheses::OmitParentheses
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#142
+ # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#151
def call_as_argument_or_chain?(node); end
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#99
+ # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#144
+ def call_in_argument_with_block?(node); end
+
+ # @return [Boolean]
+ #
+ # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#100
def call_in_literals?(node); end
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#110
+ # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#111
def call_in_logical_operators?(node); end
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#148
+ # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#157
def call_in_match_pattern?(node); end
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#119
+ # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#120
def call_in_optional_arguments?(node); end
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#123
+ # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#124
def call_in_single_line_inheritance?(node); end
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#127
+ # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#128
def call_with_ambiguous_arguments?(node); end
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#138
+ # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#140
def call_with_braced_block?(node); end
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#221
+ # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#230
def forwards_anonymous_rest_arguments?(node); end
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#190
+ # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#199
def hash_literal?(node); end
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#154
+ # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#163
def hash_literal_in_arguments?(node); end
# @return [Boolean]
@@ -39898,7 +40109,7 @@ module RuboCop::Cop::Style::MethodCallWithArgsParentheses::OmitParentheses
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#207
+ # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#216
def inside_string_interpolation?(node); end
# Require hash value omission be enclosed in parentheses to prevent the following issue:
@@ -39916,7 +40127,7 @@ module RuboCop::Cop::Style::MethodCallWithArgsParentheses::OmitParentheses
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#186
+ # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#195
def logical_operator?(node); end
# source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#40
@@ -39932,7 +40143,7 @@ module RuboCop::Cop::Style::MethodCallWithArgsParentheses::OmitParentheses
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#194
+ # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#203
def regexp_slash_literal?(node); end
# @return [Boolean]
@@ -39942,7 +40153,7 @@ module RuboCop::Cop::Style::MethodCallWithArgsParentheses::OmitParentheses
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#178
+ # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#187
def splat?(node); end
# @return [Boolean]
@@ -39957,12 +40168,12 @@ module RuboCop::Cop::Style::MethodCallWithArgsParentheses::OmitParentheses
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#182
+ # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#191
def ternary_if?(node); end
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#198
+ # source://rubocop//lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb#207
def unary_literal?(node); end
end
@@ -40008,6 +40219,9 @@ RuboCop::Cop::Style::MethodCallWithArgsParentheses::RequireParentheses::REQUIRE_
# This cop can be customized allowed methods with `AllowedMethods`.
# By default, there are no methods to allowed.
#
+# NOTE: This cop allows the use of `it()` without arguments in blocks,
+# as in `0.times { it() }`, following `Lint/ItWithoutArgumentsInBlock` cop.
+#
# @example
# # bad
# object.some_method()
@@ -40021,55 +40235,66 @@ RuboCop::Cop::Style::MethodCallWithArgsParentheses::RequireParentheses::REQUIRE_
# # good
# object.foo()
#
-# source://rubocop//lib/rubocop/cop/style/method_call_without_args_parentheses.rb#26
+# source://rubocop//lib/rubocop/cop/style/method_call_without_args_parentheses.rb#29
class RuboCop::Cop::Style::MethodCallWithoutArgsParentheses < ::RuboCop::Cop::Base
include ::RuboCop::Cop::AllowedMethods
include ::RuboCop::Cop::AllowedPattern
extend ::RuboCop::Cop::AutoCorrector
- # source://rubocop//lib/rubocop/cop/style/method_call_without_args_parentheses.rb#33
+ # source://rubocop//lib/rubocop/cop/style/method_call_without_args_parentheses.rb#37
def on_send(node); end
private
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/cop/style/method_call_without_args_parentheses.rb#60
+ # source://rubocop//lib/rubocop/cop/style/method_call_without_args_parentheses.rb#66
def allowed_method_name?(name); end
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/cop/style/method_call_without_args_parentheses.rb#74
+ # source://rubocop//lib/rubocop/cop/style/method_call_without_args_parentheses.rb#94
def any_assignment?(node); end
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/cop/style/method_call_without_args_parentheses.rb#56
+ # source://rubocop//lib/rubocop/cop/style/method_call_without_args_parentheses.rb#62
def default_argument?(node); end
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/cop/style/method_call_without_args_parentheses.rb#52
+ # source://rubocop//lib/rubocop/cop/style/method_call_without_args_parentheses.rb#58
def ineligible_node?(node); end
- # source://rubocop//lib/rubocop/cop/style/method_call_without_args_parentheses.rb#97
+ # source://rubocop//lib/rubocop/cop/style/method_call_without_args_parentheses.rb#117
def offense_range(node); end
- # source://rubocop//lib/rubocop/cop/style/method_call_without_args_parentheses.rb#45
+ # Respects `Lint/ItWithoutArgumentsInBlock` cop and the following Ruby 3.3's warning:
+ #
+ # $ ruby -e '0.times { begin; it; end }'
+ # -e:1: warning: `it` calls without arguments will refer to the first block param in
+ # Ruby 3.4; use it() or self.it
+ #
+ # @return [Boolean]
+ #
+ # source://rubocop//lib/rubocop/cop/style/method_call_without_args_parentheses.rb#86
+ def parenthesized_it_method_in_block?(node); end
+
+ # source://rubocop//lib/rubocop/cop/style/method_call_without_args_parentheses.rb#51
def register_offense(node); end
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/cop/style/method_call_without_args_parentheses.rb#64
+ # source://rubocop//lib/rubocop/cop/style/method_call_without_args_parentheses.rb#70
def same_name_assignment?(node); end
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/cop/style/method_call_without_args_parentheses.rb#90
+ # source://rubocop//lib/rubocop/cop/style/method_call_without_args_parentheses.rb#110
def variable_in_mass_assignment?(variable_name, node); end
end
-# source://rubocop//lib/rubocop/cop/style/method_call_without_args_parentheses.rb#31
+# source://rubocop//lib/rubocop/cop/style/method_call_without_args_parentheses.rb#34
RuboCop::Cop::Style::MethodCallWithoutArgsParentheses::MSG = T.let(T.unsafe(nil), String)
# Checks for methods called on a do...end block. The point of
@@ -41045,33 +41270,33 @@ class RuboCop::Cop::Style::MultilineMethodSignature < ::RuboCop::Cop::Base
private
- # source://rubocop//lib/rubocop/cop/style/multiline_method_signature.rb#60
+ # source://rubocop//lib/rubocop/cop/style/multiline_method_signature.rb#69
def arguments_range(node); end
- # source://rubocop//lib/rubocop/cop/style/multiline_method_signature.rb#41
+ # source://rubocop//lib/rubocop/cop/style/multiline_method_signature.rb#42
def autocorrect(corrector, node, begin_of_arguments); end
- # source://rubocop//lib/rubocop/cop/style/multiline_method_signature.rb#72
+ # source://rubocop//lib/rubocop/cop/style/multiline_method_signature.rb#81
def closing_line(node); end
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/cop/style/multiline_method_signature.rb#76
+ # source://rubocop//lib/rubocop/cop/style/multiline_method_signature.rb#85
def correction_exceeds_max_line_length?(node); end
- # source://rubocop//lib/rubocop/cop/style/multiline_method_signature.rb#84
+ # source://rubocop//lib/rubocop/cop/style/multiline_method_signature.rb#93
def definition_width(node); end
- # source://rubocop//lib/rubocop/cop/style/multiline_method_signature.rb#80
+ # source://rubocop//lib/rubocop/cop/style/multiline_method_signature.rb#89
def indentation_width(node); end
- # source://rubocop//lib/rubocop/cop/style/multiline_method_signature.rb#56
+ # source://rubocop//lib/rubocop/cop/style/multiline_method_signature.rb#65
def last_line_source_of_arguments(arguments); end
- # source://rubocop//lib/rubocop/cop/style/multiline_method_signature.rb#88
+ # source://rubocop//lib/rubocop/cop/style/multiline_method_signature.rb#97
def max_line_length; end
- # source://rubocop//lib/rubocop/cop/style/multiline_method_signature.rb#68
+ # source://rubocop//lib/rubocop/cop/style/multiline_method_signature.rb#77
def opening_line(node); end
end
@@ -41118,28 +41343,28 @@ class RuboCop::Cop::Style::MultilineTernaryOperator < ::RuboCop::Cop::Base
private
- # source://rubocop//lib/rubocop/cop/style/multiline_ternary_operator.rb#60
+ # source://rubocop//lib/rubocop/cop/style/multiline_ternary_operator.rb#64
def autocorrect(corrector, node); end
- # source://rubocop//lib/rubocop/cop/style/multiline_ternary_operator.rb#84
+ # source://rubocop//lib/rubocop/cop/style/multiline_ternary_operator.rb#86
def comments_in_condition(node); end
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/cop/style/multiline_ternary_operator.rb#90
+ # source://rubocop//lib/rubocop/cop/style/multiline_ternary_operator.rb#92
def enforce_single_line_ternary_operator?(node); end
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/cop/style/multiline_ternary_operator.rb#56
+ # source://rubocop//lib/rubocop/cop/style/multiline_ternary_operator.rb#60
def offense?(node); end
- # source://rubocop//lib/rubocop/cop/style/multiline_ternary_operator.rb#70
+ # source://rubocop//lib/rubocop/cop/style/multiline_ternary_operator.rb#72
def replacement(node); end
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/cop/style/multiline_ternary_operator.rb#94
+ # source://rubocop//lib/rubocop/cop/style/multiline_ternary_operator.rb#96
def use_assignment_method?(node); end
end
@@ -41389,7 +41614,7 @@ class RuboCop::Cop::Style::MutableConstant < ::RuboCop::Cop::Base
include ::RuboCop::Cop::ConfigurableEnforcedStyle
extend ::RuboCop::Cop::AutoCorrector
- # source://rubocop-sorbet/0.7.6/lib/rubocop/cop/sorbet/mutable_constant_sorbet_aware_behaviour.rb#18
+ # source://rubocop-sorbet/0.7.8/lib/rubocop/cop/sorbet/mutable_constant_sorbet_aware_behaviour.rb#18
def on_assignment(value); end
# source://rubocop//lib/rubocop/cop/style/mutable_constant.rb#127
@@ -41407,7 +41632,7 @@ class RuboCop::Cop::Style::MutableConstant < ::RuboCop::Cop::Base
# source://rubocop//lib/rubocop/cop/style/mutable_constant.rb#217
def splat_value(param0 = T.unsafe(nil)); end
- # source://rubocop-sorbet/0.7.6/lib/rubocop/cop/sorbet/mutable_constant_sorbet_aware_behaviour.rb#12
+ # source://rubocop-sorbet/0.7.8/lib/rubocop/cop/sorbet/mutable_constant_sorbet_aware_behaviour.rb#12
def t_let(param0 = T.unsafe(nil)); end
private
@@ -42154,17 +42379,17 @@ class RuboCop::Cop::Style::NilComparison < ::RuboCop::Cop::Base
private
- # source://rubocop//lib/rubocop/cop/style/nil_comparison.rb#65
+ # source://rubocop//lib/rubocop/cop/style/nil_comparison.rb#67
def message(_node); end
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/cop/style/nil_comparison.rb#77
+ # source://rubocop//lib/rubocop/cop/style/nil_comparison.rb#79
def prefer_comparison?; end
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/cop/style/nil_comparison.rb#69
+ # source://rubocop//lib/rubocop/cop/style/nil_comparison.rb#71
def style_check?(node, &block); end
end
@@ -42804,11 +43029,13 @@ class RuboCop::Cop::Style::ObjectThen < ::RuboCop::Cop::Base
# source://rubocop//lib/rubocop/cop/style/object_then.rb#48
def check_method_node(node); end
- # source://rubocop//lib/rubocop/cop/style/object_then.rb#68
+ # source://rubocop//lib/rubocop/cop/style/object_then.rb#70
def message(node); end
- # source://rubocop//lib/rubocop/cop/style/object_then.rb#57
- def preferred_method(node); end
+ # @return [Boolean]
+ #
+ # source://rubocop//lib/rubocop/cop/style/object_then.rb#59
+ def preferred_method?(node); end
end
# source://rubocop//lib/rubocop/cop/style/object_then.rb#32
@@ -42940,8 +43167,8 @@ end
RuboCop::Cop::Style::OpenStructUse::MSG = T.let(T.unsafe(nil), String)
# Checks for redundant dot before operator method call.
-# The target operator methods are `|`, `^`, `&`, `<=>`, `==`, `===`, `=~`, `>`, `>=`, `<`,
-# `<=`, `<<`, `>>`, `+`, `-`, `*`, `/`, `%`, `**`, `~`, `!`, `!=`, and `!~`.
+# The target operator methods are `|`, `^`, `&`, ``<=>``, `==`, `===`, `=~`, `>`, `>=`, `<`,
+# ``<=``, `<<`, `>>`, `+`, `-`, `*`, `/`, `%`, `**`, `~`, `!`, `!=`, and `!~`.
#
# @example
#
@@ -43274,7 +43501,7 @@ class RuboCop::Cop::Style::ParallelAssignment::AssignmentSorter
def tsort_each_child(assignment); end
# source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#145
- def tsort_each_node(&block); end
+ def tsort_each_node(*_arg0, **_arg1, &_arg2); end
# source://rubocop//lib/rubocop/cop/style/parallel_assignment.rb#136
def uses_var?(param0, param1); end
@@ -43446,20 +43673,20 @@ class RuboCop::Cop::Style::ParenthesesAroundCondition < ::RuboCop::Cop::Base
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/cop/style/parentheses_around_condition.rb#122
+ # source://rubocop//lib/rubocop/cop/style/parentheses_around_condition.rb#130
def allow_multiline_conditions?; end
- # source://rubocop//lib/rubocop/cop/style/parentheses_around_condition.rb#110
+ # source://rubocop//lib/rubocop/cop/style/parentheses_around_condition.rb#118
def message(node); end
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/cop/style/parentheses_around_condition.rb#103
+ # source://rubocop//lib/rubocop/cop/style/parentheses_around_condition.rb#111
def modifier_op?(node); end
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/cop/style/parentheses_around_condition.rb#116
+ # source://rubocop//lib/rubocop/cop/style/parentheses_around_condition.rb#124
def parens_allowed?(node); end
# source://rubocop//lib/rubocop/cop/style/parentheses_around_condition.rb#80
@@ -43467,7 +43694,12 @@ class RuboCop::Cop::Style::ParenthesesAroundCondition < ::RuboCop::Cop::Base
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/cop/style/parentheses_around_condition.rb#95
+ # source://rubocop//lib/rubocop/cop/style/parentheses_around_condition.rb#96
+ def require_parentheses?(node, condition_body); end
+
+ # @return [Boolean]
+ #
+ # source://rubocop//lib/rubocop/cop/style/parentheses_around_condition.rb#103
def semicolon_separated_expressions?(first_exp, rest_exps); end
end
@@ -43888,56 +44120,56 @@ RuboCop::Cop::Style::QuotedSymbols::MSG_SINGLE = T.let(T.unsafe(nil), String)
# raise MyCustomError.new(arg1, arg2, arg3)
# fail 'message'
#
-# source://rubocop//lib/rubocop/cop/style/raise_args.rb#44
+# source://rubocop//lib/rubocop/cop/style/raise_args.rb#47
class RuboCop::Cop::Style::RaiseArgs < ::RuboCop::Cop::Base
include ::RuboCop::Cop::ConfigurableEnforcedStyle
extend ::RuboCop::Cop::AutoCorrector
- # source://rubocop//lib/rubocop/cop/style/raise_args.rb#53
+ # source://rubocop//lib/rubocop/cop/style/raise_args.rb#56
def on_send(node); end
private
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/cop/style/raise_args.rb#129
+ # source://rubocop//lib/rubocop/cop/style/raise_args.rb#132
def acceptable_exploded_args?(args); end
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/cop/style/raise_args.rb#143
+ # source://rubocop//lib/rubocop/cop/style/raise_args.rb#146
def allowed_non_exploded_type?(arg); end
- # source://rubocop//lib/rubocop/cop/style/raise_args.rb#92
+ # source://rubocop//lib/rubocop/cop/style/raise_args.rb#95
def check_compact(node); end
- # source://rubocop//lib/rubocop/cop/style/raise_args.rb#108
+ # source://rubocop//lib/rubocop/cop/style/raise_args.rb#111
def check_exploded(node); end
- # source://rubocop//lib/rubocop/cop/style/raise_args.rb#66
+ # source://rubocop//lib/rubocop/cop/style/raise_args.rb#69
def correction_compact_to_exploded(node); end
- # source://rubocop//lib/rubocop/cop/style/raise_args.rb#78
+ # source://rubocop//lib/rubocop/cop/style/raise_args.rb#81
def correction_exploded_to_compact(node); end
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/cop/style/raise_args.rb#149
+ # source://rubocop//lib/rubocop/cop/style/raise_args.rb#152
def requires_parens?(parent); end
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/cop/style/raise_args.rb#125
+ # source://rubocop//lib/rubocop/cop/style/raise_args.rb#128
def use_new_method?(first_arg); end
end
-# source://rubocop//lib/rubocop/cop/style/raise_args.rb#49
+# source://rubocop//lib/rubocop/cop/style/raise_args.rb#52
RuboCop::Cop::Style::RaiseArgs::COMPACT_MSG = T.let(T.unsafe(nil), String)
-# source://rubocop//lib/rubocop/cop/style/raise_args.rb#48
+# source://rubocop//lib/rubocop/cop/style/raise_args.rb#51
RuboCop::Cop::Style::RaiseArgs::EXPLODED_MSG = T.let(T.unsafe(nil), String)
-# source://rubocop//lib/rubocop/cop/style/raise_args.rb#51
+# source://rubocop//lib/rubocop/cop/style/raise_args.rb#54
RuboCop::Cop::Style::RaiseArgs::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
# Checks for the use of randomly generated numbers,
@@ -44057,20 +44289,23 @@ class RuboCop::Cop::Style::RedundantArgument < ::RuboCop::Cop::Base
include ::RuboCop::Cop::RangeHelp
extend ::RuboCop::Cop::AutoCorrector
+ # source://rubocop//lib/rubocop/cop/style/redundant_argument.rb#64
+ def on_csend(node); end
+
# source://rubocop//lib/rubocop/cop/style/redundant_argument.rb#64
def on_send(node); end
private
- # source://rubocop//lib/rubocop/cop/style/redundant_argument.rb#93
+ # source://rubocop//lib/rubocop/cop/style/redundant_argument.rb#94
def argument_range(node); end
- # source://rubocop//lib/rubocop/cop/style/redundant_argument.rb#86
+ # source://rubocop//lib/rubocop/cop/style/redundant_argument.rb#87
def redundant_arg_for_method(method_name); end
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/cop/style/redundant_argument.rb#79
+ # source://rubocop//lib/rubocop/cop/style/redundant_argument.rb#80
def redundant_argument?(node); end
end
@@ -44170,22 +44405,25 @@ class RuboCop::Cop::Style::RedundantAssignment < ::RuboCop::Cop::Base
private
- # source://rubocop//lib/rubocop/cop/style/redundant_assignment.rb#91
+ # source://rubocop//lib/rubocop/cop/style/redundant_assignment.rb#99
def check_begin_node(node); end
- # source://rubocop//lib/rubocop/cop/style/redundant_assignment.rb#57
+ # source://rubocop//lib/rubocop/cop/style/redundant_assignment.rb#58
def check_branch(node); end
- # source://rubocop//lib/rubocop/cop/style/redundant_assignment.rb#71
+ # source://rubocop//lib/rubocop/cop/style/redundant_assignment.rb#79
+ def check_case_match_node(node); end
+
+ # source://rubocop//lib/rubocop/cop/style/redundant_assignment.rb#74
def check_case_node(node); end
- # source://rubocop//lib/rubocop/cop/style/redundant_assignment.rb#87
+ # source://rubocop//lib/rubocop/cop/style/redundant_assignment.rb#95
def check_ensure_node(node); end
- # source://rubocop//lib/rubocop/cop/style/redundant_assignment.rb#76
+ # source://rubocop//lib/rubocop/cop/style/redundant_assignment.rb#84
def check_if_node(node); end
- # source://rubocop//lib/rubocop/cop/style/redundant_assignment.rb#83
+ # source://rubocop//lib/rubocop/cop/style/redundant_assignment.rb#91
def check_rescue_node(node); end
end
@@ -44778,21 +45016,24 @@ RuboCop::Cop::Style::RedundantDoubleSplatHashBraces::MSG = T.let(T.unsafe(nil),
class RuboCop::Cop::Style::RedundantEach < ::RuboCop::Cop::Base
extend ::RuboCop::Cop::AutoCorrector
+ # source://rubocop//lib/rubocop/cop/style/redundant_each.rb#43
+ def on_csend(node); end
+
# source://rubocop//lib/rubocop/cop/style/redundant_each.rb#43
def on_send(node); end
private
- # source://rubocop//lib/rubocop/cop/style/redundant_each.rb#93
+ # source://rubocop//lib/rubocop/cop/style/redundant_each.rb#96
def message(node); end
- # source://rubocop//lib/rubocop/cop/style/redundant_each.rb#85
+ # source://rubocop//lib/rubocop/cop/style/redundant_each.rb#86
def range(node); end
- # source://rubocop//lib/rubocop/cop/style/redundant_each.rb#63
+ # source://rubocop//lib/rubocop/cop/style/redundant_each.rb#64
def redundant_each_method(node); end
- # source://rubocop//lib/rubocop/cop/style/redundant_each.rb#104
+ # source://rubocop//lib/rubocop/cop/style/redundant_each.rb#107
def remove_redundant_each(corrector, range, redundant_node); end
end
@@ -45441,34 +45682,44 @@ class RuboCop::Cop::Style::RedundantLineContinuation < ::RuboCop::Cop::Base
# @return [Boolean]
#
# source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#168
+ def allowed_type?(node); end
+
+ # @return [Boolean]
+ #
+ # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#186
def argument_is_method?(node); end
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#136
+ # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#146
def argument_newline?(node); end
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#100
+ # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#101
def ends_with_backslash_without_comment?(source_line); end
- # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#148
+ # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#162
def find_node_for_line(line); end
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#124
+ # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#133
def inside_string_literal?(range, token); end
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#108
+ # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#109
def inside_string_literal_or_method_with_argument?(range); end
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#175
+ # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#117
+ def leading_dot_method_chain_with_blank_line?(range); end
+
+ # @return [Boolean]
+ #
+ # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#193
def method_call_with_arguments?(node); end
# A method call without parentheses such as the following cannot remove `\`:
@@ -45478,12 +45729,12 @@ class RuboCop::Cop::Style::RedundantLineContinuation < ::RuboCop::Cop::Base
#
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#132
+ # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#141
def method_with_argument?(current_token, next_token); end
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#116
+ # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#123
def redundant_line_continuation?(range); end
# @return [Boolean]
@@ -45493,17 +45744,17 @@ class RuboCop::Cop::Style::RedundantLineContinuation < ::RuboCop::Cop::Base
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#154
+ # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#172
def same_line?(node, line); end
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#179
+ # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#197
def start_with_arithmetic_operator?(source_line); end
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#104
+ # source://rubocop//lib/rubocop/cop/style/redundant_line_continuation.rb#105
def string_concatenation?(source_line); end
end
@@ -45531,34 +45782,31 @@ class RuboCop::Cop::Style::RedundantParentheses < ::RuboCop::Cop::Base
include ::RuboCop::Cop::Parentheses
extend ::RuboCop::Cop::AutoCorrector
- # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#35
+ # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#32
def allowed_pin_operator?(param0 = T.unsafe(nil)); end
- # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#38
+ # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#35
def arg_in_call_with_block?(param0 = T.unsafe(nil)); end
- # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#254
+ # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#269
def first_send_argument?(param0 = T.unsafe(nil)); end
- # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#259
+ # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#274
def first_super_argument?(param0 = T.unsafe(nil)); end
- # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#264
+ # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#279
def first_yield_argument?(param0 = T.unsafe(nil)); end
- # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#166
+ # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#175
def interpolation?(param0 = T.unsafe(nil)); end
- # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#29
+ # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#26
def method_node_and_args(param0 = T.unsafe(nil)); end
- # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#40
+ # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#37
def on_begin(node); end
- # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#26
- def range_end?(param0 = T.unsafe(nil)); end
-
- # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#32
+ # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#29
def rescue?(param0 = T.unsafe(nil)); end
# source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#23
@@ -45568,120 +45816,130 @@ class RuboCop::Cop::Style::RedundantParentheses < ::RuboCop::Cop::Base
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#70
+ # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#177
+ def allow_in_multiline_conditions?; end
+
+ # @return [Boolean]
+ #
+ # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#68
def allowed_ancestor?(node); end
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#63
+ # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#60
def allowed_expression?(node); end
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#75
+ # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#73
def allowed_method_call?(node); end
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#80
+ # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#78
def allowed_multiple_expression?(node); end
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#89
+ # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#87
def allowed_ternary?(node); end
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#268
+ # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#283
def call_chain_starts_with_int?(begin_node, send_node); end
- # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#131
+ # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#136
def check(begin_node); end
- # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#168
+ # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#184
def check_send(begin_node, node); end
- # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#177
+ # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#193
def check_unary(begin_node, node); end
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#201
+ # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#217
def disallowed_literal?(begin_node, node); end
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#109
+ # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#114
def empty_parentheses?(node); end
- # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#142
+ # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#147
def find_offense_message(begin_node, node); end
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#114
+ # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#119
def first_arg_begins_with_hash_literal?(node); end
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#243
+ # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#258
def first_argument?(node); end
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#56
+ # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#53
def ignore_syntax?(node); end
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#197
+ # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#213
def keyword_ancestor?(node); end
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#216
+ # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#232
def keyword_with_redundant_parentheses?(node); end
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#102
+ # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#100
def like_method_argument_parentheses?(node); end
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#229
+ # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#245
def method_call_with_redundant_parentheses?(node); end
- # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#123
+ # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#128
def method_chain_begins_with_hash_literal(node); end
- # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#187
+ # @return [Boolean]
+ #
+ # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#107
+ def multiline_control_flow_statements?(node); end
+
+ # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#203
def offense(node, msg); end
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#239
+ # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#254
def only_begin_arg?(args); end
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#48
+ # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#45
def parens_allowed?(node); end
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#205
+ # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#221
def raised_to_power_negative_numeric?(begin_node, node); end
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#193
+ # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#209
def suspect_unary?(node); end
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#95
+ # source://rubocop//lib/rubocop/cop/style/redundant_parentheses.rb#93
def ternary_parentheses_required?; end
end
@@ -46103,31 +46361,34 @@ class RuboCop::Cop::Style::RedundantReturn < ::RuboCop::Cop::Base
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/cop/style/redundant_return.rb#169
+ # source://rubocop//lib/rubocop/cop/style/redundant_return.rb#175
def allow_multiple_return_values?; end
- # source://rubocop//lib/rubocop/cop/style/redundant_return.rb#164
+ # source://rubocop//lib/rubocop/cop/style/redundant_return.rb#170
def check_begin_node(node); end
# source://rubocop//lib/rubocop/cop/style/redundant_return.rb#110
def check_branch(node); end
- # source://rubocop//lib/rubocop/cop/style/redundant_return.rb#138
+ # source://rubocop//lib/rubocop/cop/style/redundant_return.rb#144
+ def check_case_match_node(node); end
+
+ # source://rubocop//lib/rubocop/cop/style/redundant_return.rb#139
def check_case_node(node); end
- # source://rubocop//lib/rubocop/cop/style/redundant_return.rb#159
+ # source://rubocop//lib/rubocop/cop/style/redundant_return.rb#165
def check_ensure_node(node); end
- # source://rubocop//lib/rubocop/cop/style/redundant_return.rb#143
+ # source://rubocop//lib/rubocop/cop/style/redundant_return.rb#149
def check_if_node(node); end
- # source://rubocop//lib/rubocop/cop/style/redundant_return.rb#155
+ # source://rubocop//lib/rubocop/cop/style/redundant_return.rb#161
def check_resbody_node(node); end
- # source://rubocop//lib/rubocop/cop/style/redundant_return.rb#150
+ # source://rubocop//lib/rubocop/cop/style/redundant_return.rb#156
def check_rescue_node(node); end
- # source://rubocop//lib/rubocop/cop/style/redundant_return.rb#126
+ # source://rubocop//lib/rubocop/cop/style/redundant_return.rb#127
def check_return_node(node); end
# source://rubocop//lib/rubocop/cop/style/redundant_return.rb#80
@@ -46141,7 +46402,7 @@ class RuboCop::Cop::Style::RedundantReturn < ::RuboCop::Cop::Base
# source://rubocop//lib/rubocop/cop/style/redundant_return.rb#95
def hash_without_braces?(node); end
- # source://rubocop//lib/rubocop/cop/style/redundant_return.rb#173
+ # source://rubocop//lib/rubocop/cop/style/redundant_return.rb#179
def message(node); end
end
@@ -46168,7 +46429,8 @@ RuboCop::Cop::Style::RedundantReturn::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Ar
# protected scope, you cannot send private messages this way.
#
# Note we allow uses of `self` with operators because it would be awkward
-# otherwise.
+# otherwise. Also allows the use of `self.it` without arguments in blocks,
+# as in `0.times { self.it }`, following `Lint/ItWithoutArgumentsInBlock` cop.
#
# @example
#
@@ -46193,114 +46455,125 @@ RuboCop::Cop::Style::RedundantReturn::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Ar
# end
# end
#
-# source://rubocop//lib/rubocop/cop/style/redundant_self.rb#44
+# source://rubocop//lib/rubocop/cop/style/redundant_self.rb#45
class RuboCop::Cop::Style::RedundantSelf < ::RuboCop::Cop::Base
extend ::RuboCop::Cop::AutoCorrector
# @return [RedundantSelf] a new instance of RedundantSelf
#
- # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#59
+ # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#60
def initialize(config = T.unsafe(nil), options = T.unsafe(nil)); end
# Assignment of self.x
#
- # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#67
+ # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#68
def on_and_asgn(node); end
- # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#85
+ # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#86
def on_args(node); end
- # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#119
+ # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#120
def on_block(node); end
- # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#89
+ # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#90
def on_blockarg(node); end
# Using self.x to distinguish from local variable x
#
- # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#80
+ # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#81
def on_def(node); end
# Using self.x to distinguish from local variable x
#
- # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#80
+ # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#81
def on_defs(node); end
- # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#125
+ # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#126
def on_if(node); end
- # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#103
+ # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#104
def on_in_pattern(node); end
- # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#98
+ # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#99
def on_lvasgn(node); end
- # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#93
+ # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#94
def on_masgn(node); end
- # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#119
+ # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#120
def on_numblock(node); end
- # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#73
+ # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#74
def on_op_asgn(node); end
# Assignment of self.x
#
- # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#67
+ # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#68
def on_or_asgn(node); end
- # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#107
+ # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#108
def on_send(node); end
- # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#125
+ # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#126
def on_until(node); end
- # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#125
+ # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#126
def on_while(node); end
private
- # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#181
+ # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#196
def add_lhs_to_local_variables_scopes(rhs, lhs); end
- # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#189
+ # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#204
def add_masgn_lhs_variables(rhs, lhs); end
- # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#195
+ # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#210
def add_match_var_scopes(in_pattern_node); end
- # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#143
+ # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#144
def add_scope(node, local_variables = T.unsafe(nil)); end
- # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#175
+ # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#190
def allow_self(node); end
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#149
+ # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#150
def allowed_send_node?(node); end
- # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#166
+ # Respects `Lint/ItWithoutArgumentsInBlock` cop and the following Ruby 3.3's warning:
+ #
+ # $ ruby -e '0.times { begin; it; end }'
+ # -e:1: warning: `it` calls without arguments will refer to the first block param in
+ # Ruby 3.4; use it() or self.it
+ #
+ # @return [Boolean]
+ #
+ # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#165
+ def it_method_in_block?(node); end
+
+ # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#181
def on_argument(node); end
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#158
+ # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#173
def regular_method_call?(node); end
class << self
- # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#55
+ # source://rubocop//lib/rubocop/cop/style/redundant_self.rb#56
def autocorrect_incompatible_with; end
end
end
-# source://rubocop//lib/rubocop/cop/style/redundant_self.rb#48
+# source://rubocop//lib/rubocop/cop/style/redundant_self.rb#49
RuboCop::Cop::Style::RedundantSelf::KERNEL_METHODS = T.let(T.unsafe(nil), Array)
-# source://rubocop//lib/rubocop/cop/style/redundant_self.rb#49
+# source://rubocop//lib/rubocop/cop/style/redundant_self.rb#50
RuboCop::Cop::Style::RedundantSelf::KEYWORDS = T.let(T.unsafe(nil), Array)
-# source://rubocop//lib/rubocop/cop/style/redundant_self.rb#47
+# source://rubocop//lib/rubocop/cop/style/redundant_self.rb#48
RuboCop::Cop::Style::RedundantSelf::MSG = T.let(T.unsafe(nil), String)
# Checks for places where redundant assignments are made for in place
@@ -46484,6 +46757,9 @@ class RuboCop::Cop::Style::RedundantSort < ::RuboCop::Cop::Base
include ::RuboCop::Cop::RangeHelp
extend ::RuboCop::Cop::AutoCorrector
+ # source://rubocop//lib/rubocop/cop/style/redundant_sort.rb#104
+ def on_csend(node); end
+
# source://rubocop//lib/rubocop/cop/style/redundant_sort.rb#104
def on_send(node); end
@@ -46495,45 +46771,45 @@ class RuboCop::Cop::Style::RedundantSort < ::RuboCop::Cop::Base
# This gets the start of the accessor whether it has a dot
# (e.g. `.first`) or doesn't (e.g. `[0]`)
#
- # source://rubocop//lib/rubocop/cop/style/redundant_sort.rb#192
+ # source://rubocop//lib/rubocop/cop/style/redundant_sort.rb#193
def accessor_start(node); end
- # source://rubocop//lib/rubocop/cop/style/redundant_sort.rb#182
+ # source://rubocop//lib/rubocop/cop/style/redundant_sort.rb#183
def arg_node(node); end
- # source://rubocop//lib/rubocop/cop/style/redundant_sort.rb#186
+ # source://rubocop//lib/rubocop/cop/style/redundant_sort.rb#187
def arg_value(node); end
- # source://rubocop//lib/rubocop/cop/style/redundant_sort.rb#147
+ # source://rubocop//lib/rubocop/cop/style/redundant_sort.rb#148
def autocorrect(corrector, node, sort_node, sorter, accessor); end
- # source://rubocop//lib/rubocop/cop/style/redundant_sort.rb#165
+ # source://rubocop//lib/rubocop/cop/style/redundant_sort.rb#166
def base(accessor, arg); end
- # source://rubocop//lib/rubocop/cop/style/redundant_sort.rb#114
+ # source://rubocop//lib/rubocop/cop/style/redundant_sort.rb#115
def find_redundant_sort(*nodes); end
- # source://rubocop//lib/rubocop/cop/style/redundant_sort.rb#135
+ # source://rubocop//lib/rubocop/cop/style/redundant_sort.rb#136
def message(node, sorter, accessor); end
- # source://rubocop//lib/rubocop/cop/style/redundant_sort.rb#131
+ # source://rubocop//lib/rubocop/cop/style/redundant_sort.rb#132
def offense_range(sort_node, node); end
- # source://rubocop//lib/rubocop/cop/style/redundant_sort.rb#124
+ # source://rubocop//lib/rubocop/cop/style/redundant_sort.rb#125
def register_offense(node, sort_node, sorter, accessor); end
- # source://rubocop//lib/rubocop/cop/style/redundant_sort.rb#156
+ # source://rubocop//lib/rubocop/cop/style/redundant_sort.rb#157
def replace_with_logical_operator(corrector, node); end
- # source://rubocop//lib/rubocop/cop/style/redundant_sort.rb#173
+ # source://rubocop//lib/rubocop/cop/style/redundant_sort.rb#174
def suffix(sorter); end
- # source://rubocop//lib/rubocop/cop/style/redundant_sort.rb#161
+ # source://rubocop//lib/rubocop/cop/style/redundant_sort.rb#162
def suggestion(sorter, accessor, arg); end
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/cop/style/redundant_sort.rb#200
+ # source://rubocop//lib/rubocop/cop/style/redundant_sort.rb#201
def with_logical_operator?(node); end
end
@@ -47495,6 +47771,9 @@ RuboCop::Cop::Style::SafeNavigation::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Style::Sample < ::RuboCop::Cop::Base
extend ::RuboCop::Cop::AutoCorrector
+ # source://rubocop//lib/rubocop/cop/style/sample.rb#41
+ def on_csend(node); end
+
# source://rubocop//lib/rubocop/cop/style/sample.rb#41
def on_send(node); end
@@ -47503,36 +47782,36 @@ class RuboCop::Cop::Style::Sample < ::RuboCop::Cop::Base
private
- # source://rubocop//lib/rubocop/cop/style/sample.rb#123
+ # source://rubocop//lib/rubocop/cop/style/sample.rb#122
def correction(shuffle_arg, method, method_args); end
- # source://rubocop//lib/rubocop/cop/style/sample.rb#139
+ # source://rubocop//lib/rubocop/cop/style/sample.rb#138
def extract_source(args); end
- # source://rubocop//lib/rubocop/cop/style/sample.rb#117
+ # source://rubocop//lib/rubocop/cop/style/sample.rb#116
def message(shuffle_arg, method, method_args, range); end
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/cop/style/sample.rb#58
+ # source://rubocop//lib/rubocop/cop/style/sample.rb#59
def offensive?(method, method_args); end
- # source://rubocop//lib/rubocop/cop/style/sample.rb#95
+ # source://rubocop//lib/rubocop/cop/style/sample.rb#96
def range_size(range_node); end
- # source://rubocop//lib/rubocop/cop/style/sample.rb#130
+ # source://rubocop//lib/rubocop/cop/style/sample.rb#129
def sample_arg(method, method_args); end
- # source://rubocop//lib/rubocop/cop/style/sample.rb#69
+ # source://rubocop//lib/rubocop/cop/style/sample.rb#70
def sample_size(method_args); end
- # source://rubocop//lib/rubocop/cop/style/sample.rb#78
+ # source://rubocop//lib/rubocop/cop/style/sample.rb#79
def sample_size_for_one_arg(arg); end
- # source://rubocop//lib/rubocop/cop/style/sample.rb#88
+ # source://rubocop//lib/rubocop/cop/style/sample.rb#89
def sample_size_for_two_args(first, second); end
- # source://rubocop//lib/rubocop/cop/style/sample.rb#111
+ # source://rubocop//lib/rubocop/cop/style/sample.rb#112
def source_range(shuffle_node, node); end
end
@@ -47589,6 +47868,9 @@ class RuboCop::Cop::Style::SelectByRegexp < ::RuboCop::Cop::Base
# source://rubocop//lib/rubocop/cop/style/select_by_regexp.rb#74
def env_const?(param0 = T.unsafe(nil)); end
+ # source://rubocop//lib/rubocop/cop/style/select_by_regexp.rb#88
+ def on_csend(node); end
+
# source://rubocop//lib/rubocop/cop/style/select_by_regexp.rb#88
def on_send(node); end
@@ -47597,31 +47879,31 @@ class RuboCop::Cop::Style::SelectByRegexp < ::RuboCop::Cop::Base
private
- # source://rubocop//lib/rubocop/cop/style/select_by_regexp.rb#132
+ # source://rubocop//lib/rubocop/cop/style/select_by_regexp.rb#133
def extract_send_node(block_node); end
- # source://rubocop//lib/rubocop/cop/style/select_by_regexp.rb#145
+ # source://rubocop//lib/rubocop/cop/style/select_by_regexp.rb#146
def find_regexp(node, block); end
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/cop/style/select_by_regexp.rb#156
+ # source://rubocop//lib/rubocop/cop/style/select_by_regexp.rb#157
def match_predicate_without_receiver?(node); end
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/cop/style/select_by_regexp.rb#141
+ # source://rubocop//lib/rubocop/cop/style/select_by_regexp.rb#142
def opposite?(regexp_method_send_node); end
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/cop/style/select_by_regexp.rb#106
+ # source://rubocop//lib/rubocop/cop/style/select_by_regexp.rb#107
def receiver_allowed?(node); end
- # source://rubocop//lib/rubocop/cop/style/select_by_regexp.rb#120
+ # source://rubocop//lib/rubocop/cop/style/select_by_regexp.rb#121
def register_offense(node, block_node, regexp, replacement); end
- # source://rubocop//lib/rubocop/cop/style/select_by_regexp.rb#112
+ # source://rubocop//lib/rubocop/cop/style/select_by_regexp.rb#113
def replacement(regexp_method_send_node, node); end
end
@@ -47977,8 +48259,11 @@ RuboCop::Cop::Style::SignalException::RAISE_MSG = T.let(T.unsafe(nil), String)
# source://rubocop//lib/rubocop/cop/style/signal_exception.rb#114
RuboCop::Cop::Style::SignalException::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
-# Sometimes using dig method ends up with just a single
-# argument. In such cases, dig should be replaced with [].
+# Sometimes using `dig` method ends up with just a single
+# argument. In such cases, dig should be replaced with `[]`.
+#
+# Since replacing `hash&.dig(:key)` with `hash[:key]` could potentially lead to error,
+# calls to the `dig` method using safe navigation will be ignored.
#
# @example
# # bad
@@ -47997,24 +48282,24 @@ RuboCop::Cop::Style::SignalException::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Ar
# keys = %i[key1 key2]
# { key1: { key2: 'value' } }.dig(*keys)
#
-# source://rubocop//lib/rubocop/cop/style/single_argument_dig.rb#31
+# source://rubocop//lib/rubocop/cop/style/single_argument_dig.rb#34
class RuboCop::Cop::Style::SingleArgumentDig < ::RuboCop::Cop::Base
extend ::RuboCop::Cop::AutoCorrector
- # source://rubocop//lib/rubocop/cop/style/single_argument_dig.rb#43
+ # source://rubocop//lib/rubocop/cop/style/single_argument_dig.rb#46
def on_send(node); end
- # source://rubocop//lib/rubocop/cop/style/single_argument_dig.rb#39
+ # source://rubocop//lib/rubocop/cop/style/single_argument_dig.rb#42
def single_argument_dig?(param0 = T.unsafe(nil)); end
end
-# source://rubocop//lib/rubocop/cop/style/single_argument_dig.rb#36
+# source://rubocop//lib/rubocop/cop/style/single_argument_dig.rb#39
RuboCop::Cop::Style::SingleArgumentDig::IGNORED_ARGUMENT_TYPES = T.let(T.unsafe(nil), Array)
-# source://rubocop//lib/rubocop/cop/style/single_argument_dig.rb#34
+# source://rubocop//lib/rubocop/cop/style/single_argument_dig.rb#37
RuboCop::Cop::Style::SingleArgumentDig::MSG = T.let(T.unsafe(nil), String)
-# source://rubocop//lib/rubocop/cop/style/single_argument_dig.rb#35
+# source://rubocop//lib/rubocop/cop/style/single_argument_dig.rb#38
RuboCop::Cop::Style::SingleArgumentDig::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
# Checks whether the block parameters of a single-line
@@ -48220,32 +48505,69 @@ RuboCop::Cop::Style::SingleLineMethods::MSG = T.let(T.unsafe(nil), String)
# source://rubocop//lib/rubocop/cop/style/single_line_methods.rb#39
RuboCop::Cop::Style::SingleLineMethods::NOT_SUPPORTED_ENDLESS_METHOD_BODY_TYPES = T.let(T.unsafe(nil), Array)
-# Checks that arrays are sliced with endless ranges instead of
-# `ary[start..-1]` on Ruby 2.6+.
+# Checks that arrays are not sliced with the redundant `ary[0..-1]`, replacing it with `ary`,
+# and ensures arrays are sliced with endless ranges instead of `ary[start..-1]` on Ruby 2.6+,
+# and with beginless ranges instead of `ary[nil..end]` on Ruby 2.7+.
#
# @example
# # bad
-# items[1..-1]
+# items[0..-1]
+# items[0..nil]
+# items[0...nil]
+#
+# # good
+# items
+#
+# # bad
+# items[1..-1] # Ruby 2.6+
+# items[1..nil] # Ruby 2.6+
#
# # good
-# items[1..]
+# items[1..] # Ruby 2.6+
#
-# source://rubocop//lib/rubocop/cop/style/slicing_with_range.rb#28
+# # bad
+# items[nil..42] # Ruby 2.7+
+#
+# # good
+# items[..42] # Ruby 2.7+
+# items[0..42] # Ruby 2.7+
+#
+# source://rubocop//lib/rubocop/cop/style/slicing_with_range.rb#46
class RuboCop::Cop::Style::SlicingWithRange < ::RuboCop::Cop::Base
extend ::RuboCop::Cop::AutoCorrector
extend ::RuboCop::Cop::TargetRubyVersion
- # source://rubocop//lib/rubocop/cop/style/slicing_with_range.rb#40
+ # source://rubocop//lib/rubocop/cop/style/slicing_with_range.rb#77
def on_send(node); end
- # source://rubocop//lib/rubocop/cop/style/slicing_with_range.rb#38
+ # source://rubocop//lib/rubocop/cop/style/slicing_with_range.rb#73
+ def range_from_zero?(param0 = T.unsafe(nil)); end
+
+ # source://rubocop//lib/rubocop/cop/style/slicing_with_range.rb#57
+ def range_from_zero_till_minus_one?(param0 = T.unsafe(nil)); end
+
+ # source://rubocop//lib/rubocop/cop/style/slicing_with_range.rb#65
def range_till_minus_one?(param0 = T.unsafe(nil)); end
+
+ private
+
+ # source://rubocop//lib/rubocop/cop/style/slicing_with_range.rb#111
+ def beginless(range_node); end
+
+ # source://rubocop//lib/rubocop/cop/style/slicing_with_range.rb#107
+ def endless(range_node); end
+
+ # source://rubocop//lib/rubocop/cop/style/slicing_with_range.rb#93
+ def offense_message_with_removal_range(range_node, selector); end
end
-# source://rubocop//lib/rubocop/cop/style/slicing_with_range.rb#34
+# source://rubocop//lib/rubocop/cop/style/slicing_with_range.rb#52
RuboCop::Cop::Style::SlicingWithRange::MSG = T.let(T.unsafe(nil), String)
-# source://rubocop//lib/rubocop/cop/style/slicing_with_range.rb#35
+# source://rubocop//lib/rubocop/cop/style/slicing_with_range.rb#53
+RuboCop::Cop::Style::SlicingWithRange::MSG_USELESS_RANGE = T.let(T.unsafe(nil), String)
+
+# source://rubocop//lib/rubocop/cop/style/slicing_with_range.rb#54
RuboCop::Cop::Style::SlicingWithRange::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
# If the branch of a conditional consists solely of a conditional node,
@@ -48739,6 +49061,9 @@ class RuboCop::Cop::Style::StringChars < ::RuboCop::Cop::Base
include ::RuboCop::Cop::RangeHelp
extend ::RuboCop::Cop::AutoCorrector
+ # source://rubocop//lib/rubocop/cop/style/string_chars.rb#29
+ def on_csend(node); end
+
# source://rubocop//lib/rubocop/cop/style/string_chars.rb#29
def on_send(node); end
end
@@ -49086,7 +49411,10 @@ class RuboCop::Cop::Style::Strip < ::RuboCop::Cop::Base
# source://rubocop//lib/rubocop/cop/style/strip.rb#24
def lstrip_rstrip(param0 = T.unsafe(nil)); end
- # source://rubocop//lib/rubocop/cop/style/strip.rb#29
+ # source://rubocop//lib/rubocop/cop/style/strip.rb#31
+ def on_csend(node); end
+
+ # source://rubocop//lib/rubocop/cop/style/strip.rb#31
def on_send(node); end
end
@@ -49399,7 +49727,7 @@ RuboCop::Cop::Style::SymbolLiteral::MSG = T.let(T.unsafe(nil), String)
# # good
# something.map(&:upcase)
#
-# source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#87
+# source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#123
class RuboCop::Cop::Style::SymbolProc < ::RuboCop::Cop::Base
include ::RuboCop::Cop::CommentsHelp
include ::RuboCop::Cop::RangeHelp
@@ -49409,117 +49737,117 @@ class RuboCop::Cop::Style::SymbolProc < ::RuboCop::Cop::Base
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#136
+ # source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#172
def destructuring_block_argument?(argument_node); end
- # source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#116
+ # source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#152
def on_block(node); end
- # source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#116
+ # source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#152
def on_numblock(node); end
- # source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#98
+ # source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#134
def proc_node?(param0 = T.unsafe(nil)); end
- # source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#104
+ # source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#140
def symbol_proc?(param0 = T.unsafe(nil)); end
- # source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#101
+ # source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#137
def symbol_proc_receiver?(param0 = T.unsafe(nil)); end
private
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#204
+ # source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#240
def allow_comments?; end
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#200
+ # source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#236
def allow_if_method_has_argument?(send_node); end
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#151
+ # source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#187
def allowed_method_name?(name); end
- # source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#164
+ # source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#200
def autocorrect(corrector, node); end
- # source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#176
+ # source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#212
def autocorrect_with_args(corrector, node, args, method_name); end
- # source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#172
+ # source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#208
def autocorrect_without_args(corrector, node); end
- # source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#190
+ # source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#226
def begin_pos_for_replacement(node); end
- # source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#185
+ # source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#221
def block_range_with_space(node); end
- # source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#155
+ # source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#191
def register_offense(node, method_name, block_method_name); end
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#147
+ # source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#183
def unsafe_array_usage?(node); end
# See: https://github.com/rubocop/rubocop/issues/10864
#
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#143
+ # source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#179
def unsafe_hash_usage?(node); end
class << self
- # source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#111
+ # source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#147
def autocorrect_incompatible_with; end
end
end
-# source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#94
+# source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#130
RuboCop::Cop::Style::SymbolProc::MSG = T.let(T.unsafe(nil), String)
-# source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#95
+# source://rubocop//lib/rubocop/cop/style/symbol_proc.rb#131
RuboCop::Cop::Style::SymbolProc::SUPER_TYPES = T.let(T.unsafe(nil), Array)
# Corrector to correct conditional assignment in ternary conditions.
#
-# source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#500
+# source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#499
class RuboCop::Cop::Style::TernaryCorrector
extend ::RuboCop::Cop::Style::ConditionalAssignmentHelper
extend ::RuboCop::Cop::Style::ConditionalCorrectorHelper
class << self
- # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#505
+ # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#504
def correct(corrector, node); end
- # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#509
+ # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#508
def move_assignment_inside_condition(corrector, node); end
private
- # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#523
+ # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#522
def correction(node); end
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#536
+ # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#535
def element_assignment?(node); end
- # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#540
+ # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#539
def extract_branches(node); end
- # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#553
+ # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#552
def move_branch_inside_condition(corrector, branch, assignment); end
- # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#548
+ # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#547
def remove_parentheses(corrector, node); end
- # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#527
+ # source://rubocop//lib/rubocop/cop/style/conditional_assignment.rb#526
def ternary(node); end
end
end
@@ -50668,22 +50996,25 @@ class RuboCop::Cop::Style::UnpackFirst < ::RuboCop::Cop::Base
extend ::RuboCop::Cop::AutoCorrector
extend ::RuboCop::Cop::TargetRubyVersion
- # source://rubocop//lib/rubocop/cop/style/unpack_first.rb#38
+ # source://rubocop//lib/rubocop/cop/style/unpack_first.rb#37
+ def on_csend(node); end
+
+ # source://rubocop//lib/rubocop/cop/style/unpack_first.rb#37
def on_send(node); end
- # source://rubocop//lib/rubocop/cop/style/unpack_first.rb#31
+ # source://rubocop//lib/rubocop/cop/style/unpack_first.rb#30
def unpack_and_first_element?(param0 = T.unsafe(nil)); end
private
- # source://rubocop//lib/rubocop/cop/style/unpack_first.rb#54
+ # source://rubocop//lib/rubocop/cop/style/unpack_first.rb#53
def first_element_range(node, unpack_call); end
end
# source://rubocop//lib/rubocop/cop/style/unpack_first.rb#26
RuboCop::Cop::Style::UnpackFirst::MSG = T.let(T.unsafe(nil), String)
-# source://rubocop//lib/rubocop/cop/style/unpack_first.rb#28
+# source://rubocop//lib/rubocop/cop/style/unpack_first.rb#27
RuboCop::Cop::Style::UnpackFirst::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
# Checks for variable interpolation (like "#@ivar").
@@ -53340,176 +53671,181 @@ RuboCop::Cop::VisibilityHelp::VISIBILITY_SCOPES = T.let(T.unsafe(nil), Set)
class RuboCop::DirectiveComment
# @return [DirectiveComment] a new instance of DirectiveComment
#
- # source://rubocop//lib/rubocop/directive_comment.rb#30
+ # source://rubocop//lib/rubocop/directive_comment.rb#32
def initialize(comment, cop_registry = T.unsafe(nil)); end
# Checks if all cops specified in this directive
#
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/directive_comment.rb#80
+ # source://rubocop//lib/rubocop/directive_comment.rb#82
def all_cops?; end
# Returns the value of attribute comment.
#
- # source://rubocop//lib/rubocop/directive_comment.rb#28
+ # source://rubocop//lib/rubocop/directive_comment.rb#30
def comment; end
# Returns array of specified in this directive cop names
#
- # source://rubocop//lib/rubocop/directive_comment.rb#85
+ # source://rubocop//lib/rubocop/directive_comment.rb#87
def cop_names; end
# Returns the value of attribute cop_registry.
#
- # source://rubocop//lib/rubocop/directive_comment.rb#28
+ # source://rubocop//lib/rubocop/directive_comment.rb#30
def cop_registry; end
# Returns the value of attribute cops.
#
- # source://rubocop//lib/rubocop/directive_comment.rb#28
+ # source://rubocop//lib/rubocop/directive_comment.rb#30
def cops; end
# Returns array of specified in this directive department names
# when all department disabled
#
- # source://rubocop//lib/rubocop/directive_comment.rb#91
+ # source://rubocop//lib/rubocop/directive_comment.rb#93
def department_names; end
- # source://rubocop//lib/rubocop/directive_comment.rb#105
+ # source://rubocop//lib/rubocop/directive_comment.rb#107
def directive_count; end
# Checks if this directive disables cops
#
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/directive_comment.rb#60
+ # source://rubocop//lib/rubocop/directive_comment.rb#62
def disabled?; end
# Checks if this directive disables all cops
#
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/directive_comment.rb#75
+ # source://rubocop//lib/rubocop/directive_comment.rb#77
def disabled_all?; end
# Checks if this directive enables cops
#
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/directive_comment.rb#65
+ # source://rubocop//lib/rubocop/directive_comment.rb#67
def enabled?; end
# Checks if this directive enables all cops
#
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/directive_comment.rb#70
+ # source://rubocop//lib/rubocop/directive_comment.rb#72
def enabled_all?; end
# Checks if directive departments include cop
#
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/directive_comment.rb#96
+ # source://rubocop//lib/rubocop/directive_comment.rb#98
def in_directive_department?(cop); end
# Returns line number for directive
#
- # source://rubocop//lib/rubocop/directive_comment.rb#110
+ # source://rubocop//lib/rubocop/directive_comment.rb#112
def line_number; end
# Checks if this directive contains all the given cop names
#
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/directive_comment.rb#42
+ # source://rubocop//lib/rubocop/directive_comment.rb#44
def match?(cop_names); end
# Returns match captures to directive comment pattern
#
- # source://rubocop//lib/rubocop/directive_comment.rb#55
+ # source://rubocop//lib/rubocop/directive_comment.rb#57
def match_captures; end
# Returns the value of attribute mode.
#
- # source://rubocop//lib/rubocop/directive_comment.rb#28
+ # source://rubocop//lib/rubocop/directive_comment.rb#30
def mode; end
# Checks if cop department has already used in directive comment
#
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/directive_comment.rb#101
+ # source://rubocop//lib/rubocop/directive_comment.rb#103
def overridden_by_department?(cop); end
- # source://rubocop//lib/rubocop/directive_comment.rb#46
+ # source://rubocop//lib/rubocop/directive_comment.rb#48
def range; end
# Checks if this directive relates to single line
#
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/directive_comment.rb#37
+ # source://rubocop//lib/rubocop/directive_comment.rb#39
def single_line?; end
private
- # source://rubocop//lib/rubocop/directive_comment.rb#130
+ # source://rubocop//lib/rubocop/directive_comment.rb#133
def all_cop_names; end
- # source://rubocop//lib/rubocop/directive_comment.rb#134
+ # source://rubocop//lib/rubocop/directive_comment.rb#137
def cop_names_for_department(department); end
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/directive_comment.rb#126
+ # source://rubocop//lib/rubocop/directive_comment.rb#129
def department?(name); end
- # source://rubocop//lib/rubocop/directive_comment.rb#140
- def exclude_redundant_directive_cop(cops); end
+ # source://rubocop//lib/rubocop/directive_comment.rb#142
+ def exclude_lint_department_cops(cops); end
- # source://rubocop//lib/rubocop/directive_comment.rb#120
+ # source://rubocop//lib/rubocop/directive_comment.rb#122
def parsed_cop_names; end
- # source://rubocop//lib/rubocop/directive_comment.rb#116
+ # source://rubocop//lib/rubocop/directive_comment.rb#118
def splitted_cops_string; end
class << self
- # source://rubocop//lib/rubocop/directive_comment.rb#24
+ # source://rubocop//lib/rubocop/directive_comment.rb#26
def before_comment(line); end
end
end
# @api private
#
-# source://rubocop//lib/rubocop/directive_comment.rb#17
+# source://rubocop//lib/rubocop/directive_comment.rb#19
RuboCop::DirectiveComment::COPS_PATTERN = T.let(T.unsafe(nil), String)
# @api private
#
-# source://rubocop//lib/rubocop/directive_comment.rb#15
+# source://rubocop//lib/rubocop/directive_comment.rb#17
RuboCop::DirectiveComment::COP_NAMES_PATTERN = T.let(T.unsafe(nil), String)
# @api private
#
-# source://rubocop//lib/rubocop/directive_comment.rb#13
+# source://rubocop//lib/rubocop/directive_comment.rb#15
RuboCop::DirectiveComment::COP_NAME_PATTERN = T.let(T.unsafe(nil), String)
# @api private
#
-# source://rubocop//lib/rubocop/directive_comment.rb#19
+# source://rubocop//lib/rubocop/directive_comment.rb#21
RuboCop::DirectiveComment::DIRECTIVE_COMMENT_REGEXP = T.let(T.unsafe(nil), Regexp)
+# @api private
+#
+# source://rubocop//lib/rubocop/directive_comment.rb#9
+RuboCop::DirectiveComment::LINT_DEPARTMENT = T.let(T.unsafe(nil), String)
+
# @api private
#
# source://rubocop//lib/rubocop/directive_comment.rb#11
-RuboCop::DirectiveComment::REDUNDANT_DIRECTIVE_COP = T.let(T.unsafe(nil), String)
+RuboCop::DirectiveComment::LINT_REDUNDANT_DIRECTIVE_COP = T.let(T.unsafe(nil), String)
# @api private
#
-# source://rubocop//lib/rubocop/directive_comment.rb#9
-RuboCop::DirectiveComment::REDUNDANT_DIRECTIVE_COP_DEPARTMENT = T.let(T.unsafe(nil), String)
+# source://rubocop//lib/rubocop/directive_comment.rb#13
+RuboCop::DirectiveComment::LINT_SYNTAX_COP = T.let(T.unsafe(nil), String)
# An Error exception is different from an Offense with severity 'error'
# When this exception is raised, it means that RuboCop is unable to perform
@@ -53650,7 +53986,12 @@ module RuboCop::Ext::RegexpNode
private
- # source://rubocop//lib/rubocop/ext/regexp_node.rb#68
+ # @return [Boolean]
+ #
+ # source://rubocop//lib/rubocop/ext/regexp_node.rb#65
+ def named_capturing?(exp, event, named); end
+
+ # source://rubocop//lib/rubocop/ext/regexp_node.rb#73
def with_interpolations_blanked; end
end
@@ -54089,100 +54430,108 @@ class RuboCop::Formatter::DisabledConfigFormatter < ::RuboCop::Formatter::BaseFo
# source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#27
def initialize(output, options = T.unsafe(nil)); end
- # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#39
+ # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#40
def file_finished(file, offenses); end
# source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#33
- def file_started(_file, _file_info); end
+ def file_started(_file, options); end
- # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#47
+ # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#48
def finished(_inspected_files); end
private
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#68
+ # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#69
def auto_gen_enforced_style?; end
- # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#72
+ # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#73
def command; end
- # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#156
+ # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#161
def cop_config_params(default_cfg, cfg); end
- # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#176
+ # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#181
def default_config(cop_name); end
- # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#220
+ # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#225
def excludes(offending_files, cop_name, parent); end
- # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#191
+ # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#196
def filtered_config(cfg); end
+ # Returns true if the given arr include the given elm or if any of the
+ # given arr is a regexp that matches the given elm.
+ #
+ # @return [Boolean]
+ #
+ # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#273
+ def include_or_match?(arr, elm); end
+
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#241
+ # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#246
def merge_mode_for_exclude?(cfg); end
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#262
+ # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#267
def no_exclude_limit?; end
- # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#101
+ # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#102
def output_cop(cop_name, offense_count); end
- # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#128
+ # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#133
def output_cop_comments(output_buffer, cfg, cop_name, offense_count); end
- # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#180
+ # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#185
def output_cop_config(output_buffer, cfg, cop_name); end
- # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#163
+ # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#168
def output_cop_param_comments(output_buffer, params, default_cfg); end
- # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#210
+ # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#215
def output_exclude_list(output_buffer, offending_files, cop_name); end
- # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#245
+ # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#250
def output_exclude_path(output_buffer, exclude_path, parent); end
- # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#199
+ # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#204
def output_offending_files(output_buffer, cfg, cop_name); end
- # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#95
+ # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#96
def output_offenses; end
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#258
+ # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#263
def safe_autocorrect?(config); end
- # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#115
+ # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#116
def set_max(cfg, cop_name); end
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#64
+ # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#65
def show_offense_counts?; end
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#60
+ # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#61
def show_timestamp?; end
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#148
+ # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#153
def supports_safe_autocorrect?(cop_class, default_cfg); end
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#152
+ # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#157
def supports_unsafe_autocorrect?(cop_class, default_cfg); end
- # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#91
+ # source://rubocop//lib/rubocop/formatter/disabled_config_formatter.rb#92
def timestamp; end
class << self
@@ -54325,33 +54674,33 @@ RuboCop::Formatter::FuubarStyleFormatter::RESET_SEQUENCE = T.let(T.unsafe(nil),
# This formatter formats report data as GitHub Workflow commands resulting
# in GitHub check annotations when run within GitHub Actions.
#
-# source://rubocop//lib/rubocop/formatter/git_hub_actions_formatter.rb#7
+# source://rubocop//lib/rubocop/formatter/github_actions_formatter.rb#7
class RuboCop::Formatter::GitHubActionsFormatter < ::RuboCop::Formatter::BaseFormatter
- # source://rubocop//lib/rubocop/formatter/git_hub_actions_formatter.rb#14
+ # source://rubocop//lib/rubocop/formatter/github_actions_formatter.rb#14
def file_finished(file, offenses); end
- # source://rubocop//lib/rubocop/formatter/git_hub_actions_formatter.rb#18
+ # source://rubocop//lib/rubocop/formatter/github_actions_formatter.rb#18
def finished(_inspected_files); end
- # source://rubocop//lib/rubocop/formatter/git_hub_actions_formatter.rb#10
+ # source://rubocop//lib/rubocop/formatter/github_actions_formatter.rb#10
def started(_target_files); end
private
- # source://rubocop//lib/rubocop/formatter/git_hub_actions_formatter.rb#29
+ # source://rubocop//lib/rubocop/formatter/github_actions_formatter.rb#29
def github_escape(string); end
- # source://rubocop//lib/rubocop/formatter/git_hub_actions_formatter.rb#41
+ # source://rubocop//lib/rubocop/formatter/github_actions_formatter.rb#41
def github_severity(offense); end
- # source://rubocop//lib/rubocop/formatter/git_hub_actions_formatter.rb#33
+ # source://rubocop//lib/rubocop/formatter/github_actions_formatter.rb#33
def minimum_severity_to_fail; end
- # source://rubocop//lib/rubocop/formatter/git_hub_actions_formatter.rb#45
+ # source://rubocop//lib/rubocop/formatter/github_actions_formatter.rb#45
def report_offense(file, offense); end
end
-# source://rubocop//lib/rubocop/formatter/git_hub_actions_formatter.rb#8
+# source://rubocop//lib/rubocop/formatter/github_actions_formatter.rb#8
RuboCop::Formatter::GitHubActionsFormatter::ESCAPE_MAP = T.let(T.unsafe(nil), Hash)
# This formatter saves the output as an html file.
@@ -54360,33 +54709,49 @@ RuboCop::Formatter::GitHubActionsFormatter::ESCAPE_MAP = T.let(T.unsafe(nil), Ha
class RuboCop::Formatter::HTMLFormatter < ::RuboCop::Formatter::BaseFormatter
# @return [HTMLFormatter] a new instance of HTMLFormatter
#
- # source://rubocop//lib/rubocop/formatter/html_formatter.rb#28
+ # source://rubocop//lib/rubocop/formatter/html_formatter.rb#29
def initialize(output, options = T.unsafe(nil)); end
- # source://rubocop//lib/rubocop/formatter/html_formatter.rb#38
+ # source://rubocop//lib/rubocop/formatter/html_formatter.rb#39
def file_finished(file, offenses); end
# Returns the value of attribute files.
#
- # source://rubocop//lib/rubocop/formatter/html_formatter.rb#26
+ # source://rubocop//lib/rubocop/formatter/html_formatter.rb#27
def files; end
- # source://rubocop//lib/rubocop/formatter/html_formatter.rb#43
+ # source://rubocop//lib/rubocop/formatter/html_formatter.rb#44
def finished(inspected_files); end
- # source://rubocop//lib/rubocop/formatter/html_formatter.rb#49
+ # source://rubocop//lib/rubocop/formatter/html_formatter.rb#50
def render_html; end
- # source://rubocop//lib/rubocop/formatter/html_formatter.rb#34
+ # source://rubocop//lib/rubocop/formatter/html_formatter.rb#35
def started(target_files); end
# Returns the value of attribute summary.
#
- # source://rubocop//lib/rubocop/formatter/html_formatter.rb#26
+ # source://rubocop//lib/rubocop/formatter/html_formatter.rb#27
def summary; end
end
-# source://rubocop//lib/rubocop/formatter/html_formatter.rb#13
+# This class provides helper methods used in the ERB CSS template.
+#
+# source://rubocop//lib/rubocop/formatter/html_formatter.rb#135
+class RuboCop::Formatter::HTMLFormatter::CSSContext
+ # Make Kernel#binding public.
+ #
+ # source://rubocop//lib/rubocop/formatter/html_formatter.rb#146
+ def binding; end
+end
+
+# source://rubocop//lib/rubocop/formatter/html_formatter.rb#136
+RuboCop::Formatter::HTMLFormatter::CSSContext::SEVERITY_COLORS = T.let(T.unsafe(nil), Hash)
+
+# source://rubocop//lib/rubocop/formatter/html_formatter.rb#12
+RuboCop::Formatter::HTMLFormatter::CSS_PATH = T.let(T.unsafe(nil), String)
+
+# source://rubocop//lib/rubocop/formatter/html_formatter.rb#14
class RuboCop::Formatter::HTMLFormatter::Color < ::Struct
# Returns the value of attribute alpha
#
@@ -54410,7 +54775,7 @@ class RuboCop::Formatter::HTMLFormatter::Color < ::Struct
# @return [Object] the newly set value
def blue=(_); end
- # source://rubocop//lib/rubocop/formatter/html_formatter.rb#18
+ # source://rubocop//lib/rubocop/formatter/html_formatter.rb#19
def fade_out(amount); end
# Returns the value of attribute green
@@ -54435,7 +54800,7 @@ class RuboCop::Formatter::HTMLFormatter::Color < ::Struct
# @return [Object] the newly set value
def red=(_); end
- # source://rubocop//lib/rubocop/formatter/html_formatter.rb#14
+ # source://rubocop//lib/rubocop/formatter/html_formatter.rb#15
def to_s; end
class << self
@@ -54452,63 +54817,63 @@ RuboCop::Formatter::HTMLFormatter::ELLIPSES = T.let(T.unsafe(nil), String)
# This class provides helper methods used in the ERB template.
#
-# source://rubocop//lib/rubocop/formatter/html_formatter.rb#60
+# source://rubocop//lib/rubocop/formatter/html_formatter.rb#61
class RuboCop::Formatter::HTMLFormatter::ERBContext
include ::RuboCop::PathUtil
include ::RuboCop::Formatter::TextUtil
# @return [ERBContext] a new instance of ERBContext
#
- # source://rubocop//lib/rubocop/formatter/html_formatter.rb#76
+ # source://rubocop//lib/rubocop/formatter/html_formatter.rb#69
def initialize(files, summary); end
- # source://rubocop//lib/rubocop/formatter/html_formatter.rb#123
+ # source://rubocop//lib/rubocop/formatter/html_formatter.rb#116
def base64_encoded_logo_image; end
# Make Kernel#binding public.
#
- # source://rubocop//lib/rubocop/formatter/html_formatter.rb#83
+ # source://rubocop//lib/rubocop/formatter/html_formatter.rb#76
def binding; end
- # source://rubocop//lib/rubocop/formatter/html_formatter.rb#88
+ # source://rubocop//lib/rubocop/formatter/html_formatter.rb#81
def decorated_message(offense); end
- # source://rubocop//lib/rubocop/formatter/html_formatter.rb#119
+ # source://rubocop//lib/rubocop/formatter/html_formatter.rb#112
def escape(string); end
# Returns the value of attribute files.
#
- # source://rubocop//lib/rubocop/formatter/html_formatter.rb#74
+ # source://rubocop//lib/rubocop/formatter/html_formatter.rb#67
def files; end
- # source://rubocop//lib/rubocop/formatter/html_formatter.rb#99
+ # source://rubocop//lib/rubocop/formatter/html_formatter.rb#92
def highlight_source_tag(offense); end
- # source://rubocop//lib/rubocop/formatter/html_formatter.rb#92
+ # source://rubocop//lib/rubocop/formatter/html_formatter.rb#85
def highlighted_source_line(offense); end
- # source://rubocop//lib/rubocop/formatter/html_formatter.rb#115
+ # source://rubocop//lib/rubocop/formatter/html_formatter.rb#108
def possible_ellipses(location); end
- # source://rubocop//lib/rubocop/formatter/html_formatter.rb#110
+ # source://rubocop//lib/rubocop/formatter/html_formatter.rb#124
+ def render_css; end
+
+ # source://rubocop//lib/rubocop/formatter/html_formatter.rb#103
def source_after_highlight(offense); end
- # source://rubocop//lib/rubocop/formatter/html_formatter.rb#105
+ # source://rubocop//lib/rubocop/formatter/html_formatter.rb#98
def source_before_highlight(offense); end
# Returns the value of attribute summary.
#
- # source://rubocop//lib/rubocop/formatter/html_formatter.rb#74
+ # source://rubocop//lib/rubocop/formatter/html_formatter.rb#67
def summary; end
end
-# source://rubocop//lib/rubocop/formatter/html_formatter.rb#72
+# source://rubocop//lib/rubocop/formatter/html_formatter.rb#65
RuboCop::Formatter::HTMLFormatter::ERBContext::LOGO_IMAGE_PATH = T.let(T.unsafe(nil), String)
-# source://rubocop//lib/rubocop/formatter/html_formatter.rb#64
-RuboCop::Formatter::HTMLFormatter::ERBContext::SEVERITY_COLORS = T.let(T.unsafe(nil), Hash)
-
-# source://rubocop//lib/rubocop/formatter/html_formatter.rb#24
+# source://rubocop//lib/rubocop/formatter/html_formatter.rb#25
class RuboCop::Formatter::HTMLFormatter::FileOffenses < ::Struct
# Returns the value of attribute offenses
#
@@ -54541,7 +54906,7 @@ class RuboCop::Formatter::HTMLFormatter::FileOffenses < ::Struct
end
end
-# source://rubocop//lib/rubocop/formatter/html_formatter.rb#23
+# source://rubocop//lib/rubocop/formatter/html_formatter.rb#24
class RuboCop::Formatter::HTMLFormatter::Summary < ::Struct
# Returns the value of attribute inspected_files
#
@@ -54590,22 +54955,22 @@ RuboCop::Formatter::HTMLFormatter::TEMPLATE_PATH = T.let(T.unsafe(nil), String)
# This formatter formats the report data in JSON format.
#
-# source://rubocop//lib/rubocop/formatter/json_formatter.rb#9
+# source://rubocop//lib/rubocop/formatter/json_formatter.rb#8
class RuboCop::Formatter::JSONFormatter < ::RuboCop::Formatter::BaseFormatter
include ::RuboCop::PathUtil
# @return [JSONFormatter] a new instance of JSONFormatter
#
- # source://rubocop//lib/rubocop/formatter/json_formatter.rb#14
+ # source://rubocop//lib/rubocop/formatter/json_formatter.rb#13
def initialize(output, options = T.unsafe(nil)); end
- # source://rubocop//lib/rubocop/formatter/json_formatter.rb#23
+ # source://rubocop//lib/rubocop/formatter/json_formatter.rb#22
def file_finished(file, offenses); end
- # source://rubocop//lib/rubocop/formatter/json_formatter.rb#28
+ # source://rubocop//lib/rubocop/formatter/json_formatter.rb#27
def finished(inspected_files); end
- # source://rubocop//lib/rubocop/formatter/json_formatter.rb#43
+ # source://rubocop//lib/rubocop/formatter/json_formatter.rb#42
def hash_for_file(file, offenses); end
# TODO: Consider better solution for Offense#real_column.
@@ -54613,21 +54978,21 @@ class RuboCop::Formatter::JSONFormatter < ::RuboCop::Formatter::BaseFormatter
# So, the minimum value of `last_column` should be 1.
# And non-zero value of `last_column` should be used as is.
#
- # source://rubocop//lib/rubocop/formatter/json_formatter.rb#65
+ # source://rubocop//lib/rubocop/formatter/json_formatter.rb#64
def hash_for_location(offense); end
- # source://rubocop//lib/rubocop/formatter/json_formatter.rb#50
+ # source://rubocop//lib/rubocop/formatter/json_formatter.rb#49
def hash_for_offense(offense); end
- # source://rubocop//lib/rubocop/formatter/json_formatter.rb#33
+ # source://rubocop//lib/rubocop/formatter/json_formatter.rb#32
def metadata_hash; end
# Returns the value of attribute output_hash.
#
- # source://rubocop//lib/rubocop/formatter/json_formatter.rb#12
+ # source://rubocop//lib/rubocop/formatter/json_formatter.rb#11
def output_hash; end
- # source://rubocop//lib/rubocop/formatter/json_formatter.rb#19
+ # source://rubocop//lib/rubocop/formatter/json_formatter.rb#18
def started(target_files); end
end
@@ -54733,6 +55098,9 @@ end
#
# source://rubocop//lib/rubocop/formatter/offense_count_formatter.rb#16
class RuboCop::Formatter::OffenseCountFormatter < ::RuboCop::Formatter::BaseFormatter
+ # source://rubocop//lib/rubocop/formatter/offense_count_formatter.rb#81
+ def cop_information(cop_name); end
+
# source://rubocop//lib/rubocop/formatter/offense_count_formatter.rb#42
def file_finished(_file, offenses); end
@@ -54744,7 +55112,7 @@ class RuboCop::Formatter::OffenseCountFormatter < ::RuboCop::Formatter::BaseForm
# source://rubocop//lib/rubocop/formatter/offense_count_formatter.rb#17
def offense_counts; end
- # source://rubocop//lib/rubocop/formatter/offense_count_formatter.rb#74
+ # source://rubocop//lib/rubocop/formatter/offense_count_formatter.rb#73
def ordered_offense_counts(offense_counts); end
# source://rubocop//lib/rubocop/formatter/offense_count_formatter.rb#56
@@ -54753,7 +55121,7 @@ class RuboCop::Formatter::OffenseCountFormatter < ::RuboCop::Formatter::BaseForm
# source://rubocop//lib/rubocop/formatter/offense_count_formatter.rb#19
def started(target_files); end
- # source://rubocop//lib/rubocop/formatter/offense_count_formatter.rb#78
+ # source://rubocop//lib/rubocop/formatter/offense_count_formatter.rb#77
def total_offense_count(offense_counts); end
end
@@ -55019,50 +55387,63 @@ end
# source://rubocop//lib/rubocop/options.rb#8
class RuboCop::IncorrectCopNameError < ::StandardError; end
-# Encapsulation of a lockfile for use when checking for gems.
-# Does not actually resolve gems, just parses the lockfile.
-#
-# @api private
+# The RuboCop's built-in LSP module.
#
-# source://rubocop//lib/rubocop/lockfile.rb#7
-class RuboCop::Lockfile
- # Gems that the bundle depends on
+# source://rubocop//lib/rubocop/lsp.rb#5
+module RuboCop::LSP
+ private
+
+ # Disable LSP.
#
- # @api private
+ # @return [void]
#
- # source://rubocop//lib/rubocop/lockfile.rb#9
- def dependencies; end
+ # source://rubocop//lib/rubocop/lsp.rb#25
+ def disable; end
- # All activated gems, including transitive dependencies
+ # Enable LSP.
#
- # @api private
+ # @return [void]
#
- # source://rubocop//lib/rubocop/lockfile.rb#16
- def gems; end
+ # source://rubocop//lib/rubocop/lsp.rb#18
+ def enable; end
- # @api private
+ # Returns true when LSP is enabled, false when disabled.
+ #
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/lockfile.rb#24
- def includes_gem?(name); end
+ # source://rubocop//lib/rubocop/lsp.rb#11
+ def enabled?; end
- private
+ class << self
+ # Disable LSP.
+ #
+ # @return [void]
+ #
+ # source://rubocop//lib/rubocop/lsp.rb#25
+ def disable; end
- # @api private
- #
- # source://rubocop//lib/rubocop/lockfile.rb#30
- def parser; end
-end
+ # Enable LSP.
+ #
+ # @return [void]
+ #
+ # source://rubocop//lib/rubocop/lsp.rb#18
+ def enable; end
-# source://rubocop//lib/rubocop/lsp/logger.rb#13
-module RuboCop::Lsp; end
+ # Returns true when LSP is enabled, false when disabled.
+ #
+ # @return [Boolean]
+ #
+ # source://rubocop//lib/rubocop/lsp.rb#11
+ def enabled?; end
+ end
+end
# Log for Language Server Protocol of RuboCop.
#
# @api private
#
# source://rubocop//lib/rubocop/lsp/logger.rb#16
-class RuboCop::Lsp::Logger
+class RuboCop::LSP::Logger
class << self
# @api private
#
@@ -55076,7 +55457,7 @@ end
# @api private
#
# source://rubocop//lib/rubocop/lsp/routes.rb#18
-class RuboCop::Lsp::Routes
+class RuboCop::LSP::Routes
# @api private
# @return [Routes] a new instance of Routes
#
@@ -55154,7 +55535,7 @@ end
# @api private
#
# source://rubocop//lib/rubocop/lsp/runtime.rb#16
-class RuboCop::Lsp::Runtime
+class RuboCop::LSP::Runtime
# @api private
# @return [Runtime] a new instance of Runtime
#
@@ -55220,42 +55601,42 @@ end
#
# @api private
#
-# source://rubocop//lib/rubocop/lsp/server.rb#21
-class RuboCop::Lsp::Server
+# source://rubocop//lib/rubocop/lsp/server.rb#22
+class RuboCop::LSP::Server
# @api private
# @return [Server] a new instance of Server
#
- # source://rubocop//lib/rubocop/lsp/server.rb#22
+ # source://rubocop//lib/rubocop/lsp/server.rb#23
def initialize(config_store); end
# @api private
#
- # source://rubocop//lib/rubocop/lsp/server.rb#56
+ # source://rubocop//lib/rubocop/lsp/server.rb#59
def configure(options); end
# @api private
#
- # source://rubocop//lib/rubocop/lsp/server.rb#48
+ # source://rubocop//lib/rubocop/lsp/server.rb#51
def format(path, text, command:); end
# @api private
#
- # source://rubocop//lib/rubocop/lsp/server.rb#52
+ # source://rubocop//lib/rubocop/lsp/server.rb#55
def offenses(path, text); end
# @api private
#
- # source://rubocop//lib/rubocop/lsp/server.rb#29
+ # source://rubocop//lib/rubocop/lsp/server.rb#32
def start; end
# @api private
#
- # source://rubocop//lib/rubocop/lsp/server.rb#62
+ # source://rubocop//lib/rubocop/lsp/server.rb#65
def stop(&block); end
# @api private
#
- # source://rubocop//lib/rubocop/lsp/server.rb#44
+ # source://rubocop//lib/rubocop/lsp/server.rb#47
def write(response); end
end
@@ -55264,7 +55645,7 @@ end
# @api private
#
# source://rubocop//lib/rubocop/lsp/severity.rb#7
-class RuboCop::Lsp::Severity
+class RuboCop::LSP::Severity
class << self
# @api private
#
@@ -55276,7 +55657,42 @@ end
# @api private
#
# source://rubocop//lib/rubocop/lsp/severity.rb#8
-RuboCop::Lsp::Severity::SEVERITIES = T.let(T.unsafe(nil), Hash)
+RuboCop::LSP::Severity::SEVERITIES = T.let(T.unsafe(nil), Hash)
+
+# Encapsulation of a lockfile for use when checking for gems.
+# Does not actually resolve gems, just parses the lockfile.
+#
+# @api private
+#
+# source://rubocop//lib/rubocop/lockfile.rb#7
+class RuboCop::Lockfile
+ # Gems that the bundle depends on
+ #
+ # @api private
+ #
+ # source://rubocop//lib/rubocop/lockfile.rb#9
+ def dependencies; end
+
+ # All activated gems, including transitive dependencies
+ #
+ # @api private
+ #
+ # source://rubocop//lib/rubocop/lockfile.rb#16
+ def gems; end
+
+ # @api private
+ # @return [Boolean]
+ #
+ # source://rubocop//lib/rubocop/lockfile.rb#24
+ def includes_gem?(name); end
+
+ private
+
+ # @api private
+ #
+ # source://rubocop//lib/rubocop/lockfile.rb#30
+ def parser; end
+end
# Parse different formats of magic comments.
#
@@ -55635,7 +56051,7 @@ class RuboCop::Options
# @api private
#
- # source://rubocop//lib/rubocop/options.rb#228
+ # source://rubocop//lib/rubocop/options.rb#229
def add_additional_modes(opts); end
# the autocorrect command-line arguments map to the autocorrect @options values like so:
@@ -55647,12 +56063,12 @@ class RuboCop::Options
#
# @api private
#
- # source://rubocop//lib/rubocop/options.rb#139
+ # source://rubocop//lib/rubocop/options.rb#140
def add_autocorrection_options(opts); end
# @api private
#
- # source://rubocop//lib/rubocop/options.rb#204
+ # source://rubocop//lib/rubocop/options.rb#205
def add_cache_options(opts); end
# @api private
@@ -55662,42 +56078,42 @@ class RuboCop::Options
# @api private
#
- # source://rubocop//lib/rubocop/options.rb#162
+ # source://rubocop//lib/rubocop/options.rb#163
def add_config_generation_options(opts); end
# @api private
#
- # source://rubocop//lib/rubocop/options.rb#180
+ # source://rubocop//lib/rubocop/options.rb#181
def add_cop_selection_csv_option(option, opts); end
# @api private
#
- # source://rubocop//lib/rubocop/options.rb#240
+ # source://rubocop//lib/rubocop/options.rb#241
def add_general_options(opts); end
# @api private
#
- # source://rubocop//lib/rubocop/options.rb#211
+ # source://rubocop//lib/rubocop/options.rb#212
def add_lsp_option(opts); end
# @api private
#
- # source://rubocop//lib/rubocop/options.rb#104
+ # source://rubocop//lib/rubocop/options.rb#105
def add_output_options(opts); end
# @api private
#
- # source://rubocop//lib/rubocop/options.rb#252
+ # source://rubocop//lib/rubocop/options.rb#253
def add_profile_options(opts); end
# @api private
#
- # source://rubocop//lib/rubocop/options.rb#217
+ # source://rubocop//lib/rubocop/options.rb#218
def add_server_options(opts); end
# @api private
#
- # source://rubocop//lib/rubocop/options.rb#195
+ # source://rubocop//lib/rubocop/options.rb#196
def add_severity_option(opts); end
# @api private
@@ -55707,7 +56123,7 @@ class RuboCop::Options
# @api private
#
- # source://rubocop//lib/rubocop/options.rb#262
+ # source://rubocop//lib/rubocop/options.rb#263
def handle_deprecated_option(old_option, new_option); end
# Finds the option in `args` starting with -- and converts it to a symbol,
@@ -55715,7 +56131,7 @@ class RuboCop::Options
#
# @api private
#
- # source://rubocop//lib/rubocop/options.rb#296
+ # source://rubocop//lib/rubocop/options.rb#297
def long_opt_symbol(args); end
# Sets a value in the @options hash, based on the given long option and its
@@ -55723,17 +56139,17 @@ class RuboCop::Options
#
# @api private
#
- # source://rubocop//lib/rubocop/options.rb#285
+ # source://rubocop//lib/rubocop/options.rb#286
def option(opts, *args); end
# @api private
#
- # source://rubocop//lib/rubocop/options.rb#267
+ # source://rubocop//lib/rubocop/options.rb#268
def rainbow; end
# @api private
#
- # source://rubocop//lib/rubocop/options.rb#301
+ # source://rubocop//lib/rubocop/options.rb#302
def require_feature(file); end
# Creates a section of options in order to separate them visually when
@@ -55741,7 +56157,7 @@ class RuboCop::Options
#
# @api private
#
- # source://rubocop//lib/rubocop/options.rb#277
+ # source://rubocop//lib/rubocop/options.rb#278
def section(opts, heading, &_block); end
end
@@ -55764,141 +56180,141 @@ RuboCop::Options::E_STDIN_NO_PATH = T.let(T.unsafe(nil), String)
#
# @api private
#
-# source://rubocop//lib/rubocop/options.rb#497
+# source://rubocop//lib/rubocop/options.rb#498
module RuboCop::OptionsHelp; end
# @api private
#
-# source://rubocop//lib/rubocop/options.rb#499
+# source://rubocop//lib/rubocop/options.rb#500
RuboCop::OptionsHelp::FORMATTER_OPTION_LIST = T.let(T.unsafe(nil), Array)
# @api private
#
-# source://rubocop//lib/rubocop/options.rb#498
+# source://rubocop//lib/rubocop/options.rb#499
RuboCop::OptionsHelp::MAX_EXCL = T.let(T.unsafe(nil), String)
# @api private
#
-# source://rubocop//lib/rubocop/options.rb#501
+# source://rubocop//lib/rubocop/options.rb#502
RuboCop::OptionsHelp::TEXT = T.let(T.unsafe(nil), Hash)
# Validates option arguments and the options' compatibility with each other.
#
# @api private
#
-# source://rubocop//lib/rubocop/options.rb#311
+# source://rubocop//lib/rubocop/options.rb#312
class RuboCop::OptionsValidator
# @api private
# @return [OptionsValidator] a new instance of OptionsValidator
#
- # source://rubocop//lib/rubocop/options.rb#349
+ # source://rubocop//lib/rubocop/options.rb#350
def initialize(options); end
# @api private
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/options.rb#471
+ # source://rubocop//lib/rubocop/options.rb#472
def boolean_or_empty_cache?; end
# @api private
#
- # source://rubocop//lib/rubocop/options.rb#437
+ # source://rubocop//lib/rubocop/options.rb#442
def disable_parallel_when_invalid_option_combo; end
# @api private
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/options.rb#463
- def display_only_fail_level_offenses_with_autocorrect?; end
-
- # @api private
- # @return [Boolean]
- #
- # source://rubocop//lib/rubocop/options.rb#467
+ # source://rubocop//lib/rubocop/options.rb#468
def except_syntax?; end
# @api private
#
- # source://rubocop//lib/rubocop/options.rb#475
+ # source://rubocop//lib/rubocop/options.rb#476
def incompatible_options; end
# @api private
#
- # source://rubocop//lib/rubocop/options.rb#450
+ # source://rubocop//lib/rubocop/options.rb#455
def invalid_arguments_for_parallel; end
# @api private
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/options.rb#458
+ # source://rubocop//lib/rubocop/options.rb#463
def only_includes_redundant_disable?; end
# @api private
#
- # source://rubocop//lib/rubocop/options.rb#384
+ # source://rubocop//lib/rubocop/options.rb#382
def validate_auto_gen_config; end
# @api private
# @raise [OptionArgumentError]
#
- # source://rubocop//lib/rubocop/options.rb#423
+ # source://rubocop//lib/rubocop/options.rb#428
def validate_autocorrect; end
# @api private
# @raise [OptionArgumentError]
#
- # source://rubocop//lib/rubocop/options.rb#487
+ # source://rubocop//lib/rubocop/options.rb#488
def validate_cache_enabled_for_cache_root; end
# @api private
# @raise [OptionArgumentError]
#
- # source://rubocop//lib/rubocop/options.rb#358
+ # source://rubocop//lib/rubocop/options.rb#359
def validate_compatibility; end
# @api private
#
- # source://rubocop//lib/rubocop/options.rb#353
+ # source://rubocop//lib/rubocop/options.rb#354
def validate_cop_options; end
# @api private
# @raise [OptionArgumentError]
#
- # source://rubocop//lib/rubocop/options.rb#405
+ # source://rubocop//lib/rubocop/options.rb#403
def validate_display_only_correctable_and_autocorrect; end
# @api private
# @raise [OptionArgumentError]
#
- # source://rubocop//lib/rubocop/options.rb#397
+ # source://rubocop//lib/rubocop/options.rb#395
def validate_display_only_failed; end
# @api private
# @raise [OptionArgumentError]
#
- # source://rubocop//lib/rubocop/options.rb#414
+ # source://rubocop//lib/rubocop/options.rb#412
def validate_display_only_failed_and_display_only_correctable; end
# @api private
# @raise [OptionParser::MissingArgument]
#
- # source://rubocop//lib/rubocop/options.rb#479
+ # source://rubocop//lib/rubocop/options.rb#480
def validate_exclude_limit_option; end
+ # @api private
+ # @raise [OptionArgumentError]
+ #
+ # source://rubocop//lib/rubocop/options.rb#421
+ def validate_lsp_and_editor_mode; end
+
class << self
# Cop name validation must be done later than option parsing, so it's not
# called from within Options.
#
# @api private
#
- # source://rubocop//lib/rubocop/options.rb#318
+ # source://rubocop//lib/rubocop/options.rb#319
def validate_cop_list(names); end
private
# @api private
#
- # source://rubocop//lib/rubocop/options.rb#335
+ # source://rubocop//lib/rubocop/options.rb#336
def format_message_from(name, cop_names); end
end
end
@@ -55911,21 +56327,21 @@ module RuboCop::PathUtil
# Returns true for an absolute Unix or Windows path.
#
- # source://rubocop//lib/rubocop/path_util.rb#72
+ # source://rubocop//lib/rubocop/path_util.rb#76
def absolute?(path); end
# Returns true for a glob
#
- # source://rubocop//lib/rubocop/path_util.rb#77
+ # source://rubocop//lib/rubocop/path_util.rb#81
def glob?(path); end
- # source://rubocop//lib/rubocop/path_util.rb#107
+ # source://rubocop//lib/rubocop/path_util.rb#111
def hidden_dir?(path); end
- # source://rubocop//lib/rubocop/path_util.rb#90
+ # source://rubocop//lib/rubocop/path_util.rb#94
def hidden_file?(path); end
- # source://rubocop//lib/rubocop/path_util.rb#81
+ # source://rubocop//lib/rubocop/path_util.rb#85
def hidden_file_in_not_hidden_dir?(pattern, path); end
# source://rubocop//lib/rubocop/path_util.rb#48
@@ -55933,7 +56349,7 @@ module RuboCop::PathUtil
# Loose check to reduce memory allocations
#
- # source://rubocop//lib/rubocop/path_util.rb#97
+ # source://rubocop//lib/rubocop/path_util.rb#101
def maybe_hidden_file?(path); end
# source://rubocop//lib/rubocop/path_util.rb#13
@@ -55947,29 +56363,29 @@ module RuboCop::PathUtil
#
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/path_util.rb#72
+ # source://rubocop//lib/rubocop/path_util.rb#76
def absolute?(path); end
# Returns true for a glob
#
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/path_util.rb#77
+ # source://rubocop//lib/rubocop/path_util.rb#81
def glob?(path); end
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/path_util.rb#107
+ # source://rubocop//lib/rubocop/path_util.rb#111
def hidden_dir?(path); end
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/path_util.rb#90
+ # source://rubocop//lib/rubocop/path_util.rb#94
def hidden_file?(path); end
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/path_util.rb#81
+ # source://rubocop//lib/rubocop/path_util.rb#85
def hidden_file_in_not_hidden_dir?(pattern, path); end
# @return [Boolean]
@@ -55981,7 +56397,7 @@ module RuboCop::PathUtil
#
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/path_util.rb#97
+ # source://rubocop//lib/rubocop/path_util.rb#101
def maybe_hidden_file?(path); end
# source://rubocop//lib/rubocop/path_util.rb#13
@@ -56004,7 +56420,7 @@ module RuboCop::PathUtil
end
end
-# source://rubocop//lib/rubocop/path_util.rb#94
+# source://rubocop//lib/rubocop/path_util.rb#98
RuboCop::PathUtil::HIDDEN_FILE_PATTERN = T.let(T.unsafe(nil), String)
# source://rubocop//lib/rubocop/path_util.rb#31
@@ -56393,7 +56809,7 @@ class RuboCop::Runner
# source://rubocop//lib/rubocop/runner.rb#414
def formatter_set; end
- # source://rubocop//lib/rubocop/runner.rb#470
+ # source://rubocop//lib/rubocop/runner.rb#471
def get_processed_source(file); end
# source://rubocop//lib/rubocop/runner.rb#342
@@ -56444,7 +56860,7 @@ class RuboCop::Runner
# otherwise dormant team that can be used for config- and option-
# level caching in ResultCache.
#
- # source://rubocop//lib/rubocop/runner.rb#492
+ # source://rubocop//lib/rubocop/runner.rb#499
def standby_team(config); end
# @return [Boolean]
@@ -56541,173 +56957,180 @@ RuboCop::StringInterpreter::STRING_ESCAPES = T.let(T.unsafe(nil), Hash)
# source://rubocop//lib/rubocop/string_interpreter.rb#12
RuboCop::StringInterpreter::STRING_ESCAPE_REGEX = T.let(T.unsafe(nil), Regexp)
-# This class finds target files to inspect by scanning the directory tree
-# and picking ruby files.
+# This class finds target files to inspect by scanning the directory tree and picking ruby files.
#
# @api private
#
-# source://rubocop//lib/rubocop/target_finder.rb#7
+# source://rubocop//lib/rubocop/target_finder.rb#6
class RuboCop::TargetFinder
# @api private
# @return [TargetFinder] a new instance of TargetFinder
#
- # source://rubocop//lib/rubocop/target_finder.rb#10
+ # source://rubocop//lib/rubocop/target_finder.rb#9
def initialize(config_store, options = T.unsafe(nil)); end
+ # Generate a list of target files by expanding globbing patterns (if any). If args is empty,
+ # recursively find all Ruby source files under the current directory
+ #
# @api private
+ # @return [Array] array of file paths
#
- # source://rubocop//lib/rubocop/target_finder.rb#149
- def all_cops_include; end
+ # source://rubocop//lib/rubocop/target_finder.rb#17
+ def find(args, mode); end
+
+ # Search for files recursively starting at the given base directory using the given flags that
+ # determine how the match is made. Excluded files will be removed later by the caller, but as an
+ # optimization find_files removes the top level directories that are excluded in configuration
+ # in the normal way (dir/**/*).
+ #
+ # @api private
+ #
+ # source://rubocop//lib/rubocop/target_finder.rb#58
+ def find_files(base_dir, flags); end
+
+ # Finds all Ruby source files under the current or other supplied directory. A Ruby source file
+ # is defined as a file with the `.rb` extension or a file with no extension that has a ruby
+ # shebang line as its first line.
+ # It is possible to specify includes and excludes using the config file, so you can include
+ # other Ruby files like Rakefiles and gemspecs.
+ #
+ # @api private
+ # @param base_dir Root directory under which to search for
+ # ruby source files
+ # @return [Array] Array of filenames
+ #
+ # source://rubocop//lib/rubocop/target_finder.rb#41
+ def target_files_in_dir(base_dir = T.unsafe(nil)); end
+
+ private
# @api private
#
# source://rubocop//lib/rubocop/target_finder.rb#120
+ def all_cops_include; end
+
+ # @api private
+ #
+ # source://rubocop//lib/rubocop/target_finder.rb#106
def combined_exclude_glob_patterns(base_dir); end
# @api private
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/target_finder.rb#176
+ # source://rubocop//lib/rubocop/target_finder.rb#172
def configured_include?(file); end
# @api private
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/target_finder.rb#19
+ # source://rubocop//lib/rubocop/target_finder.rb#208
def debug?; end
# @api private
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/target_finder.rb#23
+ # source://rubocop//lib/rubocop/target_finder.rb#212
def fail_fast?; end
- # Generate a list of target files by expanding globbing patterns
- # (if any). If args is empty, recursively find all Ruby source
- # files under the current directory
- #
# @api private
- # @return [Array] array of file paths
+ # @return [Boolean]
#
- # source://rubocop//lib/rubocop/target_finder.rb#31
- def find(args, mode); end
+ # source://rubocop//lib/rubocop/target_finder.rb#200
+ def force_exclusion?; end
- # Search for files recursively starting at the given base directory using
- # the given flags that determine how the match is made. Excluded files will
- # be removed later by the caller, but as an optimization find_files removes
- # the top level directories that are excluded in configuration in the
- # normal way (dir/**/*).
- #
# @api private
+ # @return [Boolean]
#
- # source://rubocop//lib/rubocop/target_finder.rb#83
- def find_files(base_dir, flags); end
+ # source://rubocop//lib/rubocop/target_finder.rb#204
+ def ignore_parent_exclusion?; end
# @api private
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/target_finder.rb#15
- def force_exclusion?; end
+ # source://rubocop//lib/rubocop/target_finder.rb#145
+ def included_file?(file); end
# @api private
- # @return [Boolean]
#
- # source://rubocop//lib/rubocop/target_finder.rb#180
- def included_file?(file); end
+ # source://rubocop//lib/rubocop/target_finder.rb#191
+ def order; end
# @api private
#
- # source://rubocop//lib/rubocop/target_finder.rb#184
+ # source://rubocop//lib/rubocop/target_finder.rb#124
def process_explicit_path(path, mode); end
# @api private
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/target_finder.rb#153
+ # source://rubocop//lib/rubocop/target_finder.rb#176
def ruby_executable?(file); end
# @api private
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/target_finder.rb#127
+ # source://rubocop//lib/rubocop/target_finder.rb#157
def ruby_extension?(file); end
# @api private
#
- # source://rubocop//lib/rubocop/target_finder.rb#131
+ # source://rubocop//lib/rubocop/target_finder.rb#161
def ruby_extensions; end
# @api private
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/target_finder.rb#172
+ # source://rubocop//lib/rubocop/target_finder.rb#149
def ruby_file?(file); end
# @api private
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/target_finder.rb#138
+ # source://rubocop//lib/rubocop/target_finder.rb#168
def ruby_filename?(file); end
# @api private
#
- # source://rubocop//lib/rubocop/target_finder.rb#142
+ # source://rubocop//lib/rubocop/target_finder.rb#113
def ruby_filenames; end
# @api private
#
- # source://rubocop//lib/rubocop/target_finder.rb#164
+ # source://rubocop//lib/rubocop/target_finder.rb#187
def ruby_interpreters(file); end
# @api private
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/target_finder.rb#168
+ # source://rubocop//lib/rubocop/target_finder.rb#153
def stdin?; end
# @api private
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/target_finder.rb#112
+ # source://rubocop//lib/rubocop/target_finder.rb#98
def symlink_excluded_or_infinite_loop?(base_dir, current_dir, exclude_pattern, flags); end
- # Finds all Ruby source files under the current or other supplied
- # directory. A Ruby source file is defined as a file with the `.rb`
- # extension or a file with no extension that has a ruby shebang line
- # as its first line.
- # It is possible to specify includes and excludes using the config file,
- # so you can include other Ruby files like Rakefiles and gemspecs.
- #
- # @api private
- # @param base_dir Root directory under which to search for
- # ruby source files
- # @return [Array] Array of filenames
- #
- # source://rubocop//lib/rubocop/target_finder.rb#56
- def target_files_in_dir(base_dir = T.unsafe(nil)); end
-
# @api private
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/target_finder.rb#69
+ # source://rubocop//lib/rubocop/target_finder.rb#73
def to_inspect?(file, hidden_files, base_dir_config); end
# @api private
#
- # source://rubocop//lib/rubocop/target_finder.rb#96
+ # source://rubocop//lib/rubocop/target_finder.rb#82
def wanted_dir_patterns(base_dir, exclude_pattern, flags); end
- private
-
# @api private
#
- # source://rubocop//lib/rubocop/target_finder.rb#201
- def order; end
+ # source://rubocop//lib/rubocop/target_finder.rb#134
+ def without_excluded(files); end
end
# @api private
#
-# source://rubocop//lib/rubocop/target_finder.rb#8
+# source://rubocop//lib/rubocop/target_finder.rb#7
RuboCop::TargetFinder::HIDDEN_PATH_SUBSTRING = T.let(T.unsafe(nil), String)
# The kind of Ruby that code inspected by RuboCop is written in.
@@ -56719,34 +57142,34 @@ class RuboCop::TargetRuby
# @api private
# @return [TargetRuby] a new instance of TargetRuby
#
- # source://rubocop//lib/rubocop/target_ruby.rb#252
+ # source://rubocop//lib/rubocop/target_ruby.rb#254
def initialize(config); end
# @api private
#
- # source://rubocop//lib/rubocop/target_ruby.rb#268
+ # source://rubocop//lib/rubocop/target_ruby.rb#270
def rubocop_version_with_support; end
# @api private
#
- # source://rubocop//lib/rubocop/target_ruby.rb#256
+ # source://rubocop//lib/rubocop/target_ruby.rb#258
def source; end
# @api private
# @return [Boolean]
#
- # source://rubocop//lib/rubocop/target_ruby.rb#264
+ # source://rubocop//lib/rubocop/target_ruby.rb#266
def supported?; end
# @api private
#
- # source://rubocop//lib/rubocop/target_ruby.rb#260
+ # source://rubocop//lib/rubocop/target_ruby.rb#262
def version; end
class << self
# @api private
#
- # source://rubocop//lib/rubocop/target_ruby.rb#238
+ # source://rubocop//lib/rubocop/target_ruby.rb#240
def supported_versions; end
end
end
@@ -56755,23 +57178,23 @@ end
#
# @api private
#
-# source://rubocop//lib/rubocop/target_ruby.rb#107
+# source://rubocop//lib/rubocop/target_ruby.rb#187
class RuboCop::TargetRuby::BundlerLockFile < ::RuboCop::TargetRuby::Source
# @api private
#
- # source://rubocop//lib/rubocop/target_ruby.rb#108
+ # source://rubocop//lib/rubocop/target_ruby.rb#188
def name; end
private
# @api private
#
- # source://rubocop//lib/rubocop/target_ruby.rb#141
+ # source://rubocop//lib/rubocop/target_ruby.rb#221
def bundler_lock_file_path; end
# @api private
#
- # source://rubocop//lib/rubocop/target_ruby.rb#114
+ # source://rubocop//lib/rubocop/target_ruby.rb#194
def find_version; end
end
@@ -56784,18 +57207,18 @@ RuboCop::TargetRuby::DEFAULT_VERSION = T.let(T.unsafe(nil), Float)
#
# @api private
#
-# source://rubocop//lib/rubocop/target_ruby.rb#226
+# source://rubocop//lib/rubocop/target_ruby.rb#228
class RuboCop::TargetRuby::Default < ::RuboCop::TargetRuby::Source
# @api private
#
- # source://rubocop//lib/rubocop/target_ruby.rb#227
+ # source://rubocop//lib/rubocop/target_ruby.rb#229
def name; end
private
# @api private
#
- # source://rubocop//lib/rubocop/target_ruby.rb#233
+ # source://rubocop//lib/rubocop/target_ruby.rb#235
def find_version; end
end
@@ -56803,62 +57226,62 @@ end
#
# @api private
#
-# source://rubocop//lib/rubocop/target_ruby.rb#148
+# source://rubocop//lib/rubocop/target_ruby.rb#53
class RuboCop::TargetRuby::GemspecFile < ::RuboCop::TargetRuby::Source
extend ::RuboCop::AST::NodePattern::Macros
- # source://rubocop//lib/rubocop/target_ruby.rb#159
+ # source://rubocop//lib/rubocop/target_ruby.rb#64
def gem_requirement_versions(param0 = T.unsafe(nil)); end
# @api private
#
- # source://rubocop//lib/rubocop/target_ruby.rb#165
+ # source://rubocop//lib/rubocop/target_ruby.rb#70
def name; end
- # source://rubocop//lib/rubocop/target_ruby.rb#154
+ # source://rubocop//lib/rubocop/target_ruby.rb#59
def required_ruby_version(param0); end
private
# @api private
#
- # source://rubocop//lib/rubocop/target_ruby.rb#214
+ # source://rubocop//lib/rubocop/target_ruby.rb#121
def find_default_minimal_known_ruby(right_hand_side); end
# @api private
#
- # source://rubocop//lib/rubocop/target_ruby.rb#171
+ # source://rubocop//lib/rubocop/target_ruby.rb#76
def find_version; end
# @api private
#
- # source://rubocop//lib/rubocop/target_ruby.rb#181
+ # source://rubocop//lib/rubocop/target_ruby.rb#86
def gemspec_filename; end
# @api private
#
- # source://rubocop//lib/rubocop/target_ruby.rb#188
+ # source://rubocop//lib/rubocop/target_ruby.rb#93
def gemspec_filepath; end
# @api private
#
- # source://rubocop//lib/rubocop/target_ruby.rb#210
+ # source://rubocop//lib/rubocop/target_ruby.rb#117
def version_from_array(array); end
# @api private
#
- # source://rubocop//lib/rubocop/target_ruby.rb#193
+ # source://rubocop//lib/rubocop/target_ruby.rb#98
def version_from_gemspec_file(file); end
# @api private
#
- # source://rubocop//lib/rubocop/target_ruby.rb#198
+ # source://rubocop//lib/rubocop/target_ruby.rb#105
def version_from_right_hand_side(right_hand_side); end
end
# @api private
#
-# source://rubocop//lib/rubocop/target_ruby.rb#151
+# source://rubocop//lib/rubocop/target_ruby.rb#56
RuboCop::TargetRuby::GemspecFile::GEMSPEC_EXTENSION = T.let(T.unsafe(nil), String)
# @api private
@@ -56894,49 +57317,49 @@ end
#
# @api private
#
-# source://rubocop//lib/rubocop/target_ruby.rb#53
+# source://rubocop//lib/rubocop/target_ruby.rb#133
class RuboCop::TargetRuby::RubyVersionFile < ::RuboCop::TargetRuby::Source
# @api private
#
- # source://rubocop//lib/rubocop/target_ruby.rb#57
+ # source://rubocop//lib/rubocop/target_ruby.rb#137
def name; end
private
# @api private
#
- # source://rubocop//lib/rubocop/target_ruby.rb#63
+ # source://rubocop//lib/rubocop/target_ruby.rb#143
def filename; end
# @api private
#
- # source://rubocop//lib/rubocop/target_ruby.rb#71
+ # source://rubocop//lib/rubocop/target_ruby.rb#151
def find_version; end
# @api private
#
- # source://rubocop//lib/rubocop/target_ruby.rb#67
+ # source://rubocop//lib/rubocop/target_ruby.rb#147
def pattern; end
# @api private
#
- # source://rubocop//lib/rubocop/target_ruby.rb#78
+ # source://rubocop//lib/rubocop/target_ruby.rb#158
def version_file; end
end
# @api private
#
-# source://rubocop//lib/rubocop/target_ruby.rb#54
+# source://rubocop//lib/rubocop/target_ruby.rb#134
RuboCop::TargetRuby::RubyVersionFile::RUBY_VERSION_FILENAME = T.let(T.unsafe(nil), String)
# @api private
#
-# source://rubocop//lib/rubocop/target_ruby.rb#55
+# source://rubocop//lib/rubocop/target_ruby.rb#135
RuboCop::TargetRuby::RubyVersionFile::RUBY_VERSION_PATTERN = T.let(T.unsafe(nil), Regexp)
# @api private
#
-# source://rubocop//lib/rubocop/target_ruby.rb#242
+# source://rubocop//lib/rubocop/target_ruby.rb#244
RuboCop::TargetRuby::SOURCES = T.let(T.unsafe(nil), Array)
# A place where information about a target ruby version is found.
@@ -56972,34 +57395,34 @@ end
#
# @api private
#
-# source://rubocop//lib/rubocop/target_ruby.rb#86
+# source://rubocop//lib/rubocop/target_ruby.rb#166
class RuboCop::TargetRuby::ToolVersionsFile < ::RuboCop::TargetRuby::RubyVersionFile
# @api private
#
- # source://rubocop//lib/rubocop/target_ruby.rb#90
+ # source://rubocop//lib/rubocop/target_ruby.rb#170
def name; end
private
# @api private
#
- # source://rubocop//lib/rubocop/target_ruby.rb#96
+ # source://rubocop//lib/rubocop/target_ruby.rb#176
def filename; end
# @api private
#
- # source://rubocop//lib/rubocop/target_ruby.rb#100
+ # source://rubocop//lib/rubocop/target_ruby.rb#180
def pattern; end
end
# @api private
#
-# source://rubocop//lib/rubocop/target_ruby.rb#87
+# source://rubocop//lib/rubocop/target_ruby.rb#167
RuboCop::TargetRuby::ToolVersionsFile::TOOL_VERSIONS_FILENAME = T.let(T.unsafe(nil), String)
# @api private
#
-# source://rubocop//lib/rubocop/target_ruby.rb#88
+# source://rubocop//lib/rubocop/target_ruby.rb#168
RuboCop::TargetRuby::ToolVersionsFile::TOOL_VERSIONS_PATTERN = T.let(T.unsafe(nil), Regexp)
# source://rubocop//lib/rubocop/ast_aliases.rb#7
@@ -57025,12 +57448,12 @@ module RuboCop::Version
class << self
# @api private
#
- # source://rubocop//lib/rubocop/version.rb#93
+ # source://rubocop//lib/rubocop/version.rb#108
def document_version; end
# @api private
#
- # source://rubocop//lib/rubocop/version.rb#43
+ # source://rubocop//lib/rubocop/version.rb#58
def extension_versions(env); end
# Returns feature version in one of two ways:
@@ -57040,12 +57463,17 @@ module RuboCop::Version
#
# @api private
#
- # source://rubocop//lib/rubocop/version.rb#77
+ # source://rubocop//lib/rubocop/version.rb#92
def feature_version(feature); end
# @api private
#
- # source://rubocop//lib/rubocop/version.rb#98
+ # source://rubocop//lib/rubocop/version.rb#43
+ def parser_version; end
+
+ # @api private
+ #
+ # source://rubocop//lib/rubocop/version.rb#113
def server_mode; end
# @api private
diff --git a/sorbet/rbi/gems/tapioca@0.12.0.rbi b/sorbet/rbi/gems/tapioca@0.13.0.rbi
similarity index 97%
rename from sorbet/rbi/gems/tapioca@0.12.0.rbi
rename to sorbet/rbi/gems/tapioca@0.13.0.rbi
index 18dc495e..4193920c 100644
--- a/sorbet/rbi/gems/tapioca@0.12.0.rbi
+++ b/sorbet/rbi/gems/tapioca@0.13.0.rbi
@@ -115,6 +115,19 @@ class RBI::Tree < ::RBI::NodeWithComments
end
def create_method(name, parameters: T.unsafe(nil), return_type: T.unsafe(nil), class_method: T.unsafe(nil), visibility: T.unsafe(nil), comments: T.unsafe(nil)); end
+ # source://tapioca//lib/tapioca/rbi_ext/model.rb#112
+ sig do
+ params(
+ name: ::String,
+ sigs: T::Array[::RBI::Sig],
+ parameters: T::Array[::RBI::Param],
+ class_method: T::Boolean,
+ visibility: ::RBI::Visibility,
+ comments: T::Array[::RBI::Comment]
+ ).void
+ end
+ def create_method_with_sigs(name, sigs:, parameters: T.unsafe(nil), class_method: T.unsafe(nil), visibility: T.unsafe(nil), comments: T.unsafe(nil)); end
+
# source://tapioca//lib/tapioca/rbi_ext/model.rb#60
sig { params(name: ::String).void }
def create_mixes_in_class_methods(name); end
@@ -127,6 +140,10 @@ class RBI::Tree < ::RBI::NodeWithComments
sig { params(constant: ::Module, block: T.nilable(T.proc.params(scope: ::RBI::Scope).void)).returns(::RBI::Scope) }
def create_path(constant, &block); end
+ # source://tapioca//lib/tapioca/rbi_ext/model.rb#133
+ sig { params(parameters: T::Array[::RBI::TypedParam], return_type: ::String).returns(::RBI::Sig) }
+ def create_sig(parameters: T.unsafe(nil), return_type: T.unsafe(nil)); end
+
# source://tapioca//lib/tapioca/rbi_ext/model.rb#74
sig do
params(
@@ -189,22 +206,22 @@ class RBI::Tree < ::RBI::NodeWithComments
private
- # source://tapioca//lib/tapioca/rbi_ext/model.rb#116
+ # source://tapioca//lib/tapioca/rbi_ext/model.rb#148
sig { params(node: ::RBI::Node).returns(::RBI::Node) }
def create_node(node); end
- # source://tapioca//lib/tapioca/rbi_ext/model.rb#111
+ # source://tapioca//lib/tapioca/rbi_ext/model.rb#143
sig { returns(T::Hash[::String, ::RBI::Node]) }
def nodes_cache; end
end
-# source://tapioca//lib/tapioca/rbi_ext/model.rb#126
+# source://tapioca//lib/tapioca/rbi_ext/model.rb#158
class RBI::TypedParam < ::T::Struct
const :param, ::RBI::Param
const :type, ::String
class << self
- # source://sorbet-runtime/0.5.11219/lib/types/struct.rb#13
+ # source://sorbet-runtime/0.5.11287/lib/types/struct.rb#13
def inherited(s); end
end
end
@@ -539,11 +556,11 @@ class Tapioca::Commands::AbstractDsl < ::Tapioca::Commands::CommandWithoutTracke
sig { returns(T::Array[::String]) }
def all_requested_constants; end
- # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#284
+ # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#285
sig { params(cause: ::Symbol, files: T::Array[::String]).returns(::String) }
def build_error_for_files(cause, files); end
- # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#208
+ # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#209
sig do
params(
constant_name: ::String,
@@ -562,7 +579,7 @@ class Tapioca::Commands::AbstractDsl < ::Tapioca::Commands::CommandWithoutTracke
sig { params(compiler_names: T::Array[::String]).returns(T::Array[T.class_of(Tapioca::Dsl::Compiler)]) }
def constantize_compilers(compiler_names); end
- # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#344
+ # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#345
sig { returns(T::Array[::String]) }
def constants_from_requested_paths; end
@@ -570,7 +587,7 @@ class Tapioca::Commands::AbstractDsl < ::Tapioca::Commands::CommandWithoutTracke
sig { returns(::Tapioca::Dsl::Pipeline) }
def create_pipeline; end
- # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#247
+ # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#248
sig { params(constant_name: ::String).returns(::Pathname) }
def dsl_rbi_filename(constant_name); end
@@ -578,7 +595,7 @@ class Tapioca::Commands::AbstractDsl < ::Tapioca::Commands::CommandWithoutTracke
sig { params(requested_constants: T::Array[::String], path: ::Pathname).returns(T::Set[::Pathname]) }
def existing_rbi_filenames(requested_constants, path: T.unsafe(nil)); end
- # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#339
+ # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#340
sig { params(constant: ::String).returns(::String) }
def generate_command_for(constant); end
@@ -590,7 +607,7 @@ class Tapioca::Commands::AbstractDsl < ::Tapioca::Commands::CommandWithoutTracke
sig { void }
def load_application; end
- # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#226
+ # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#227
sig { params(dir: ::Pathname).void }
def perform_dsl_verification(dir); end
@@ -598,31 +615,31 @@ class Tapioca::Commands::AbstractDsl < ::Tapioca::Commands::CommandWithoutTracke
sig { returns(::Tapioca::Dsl::Pipeline) }
def pipeline; end
- # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#235
+ # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#236
sig { params(files: T::Set[::Pathname]).void }
def purge_stale_dsl_rbi_files(files); end
- # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#334
+ # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#335
sig { params(constant: ::String).returns(::String) }
def rbi_filename_for(constant); end
- # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#315
+ # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#316
sig { params(path: ::Pathname).returns(T::Array[::Pathname]) }
def rbi_files_in(path); end
- # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#293
+ # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#294
sig { params(diff: T::Hash[::String, ::Symbol], command: ::Symbol).void }
def report_diff_and_exit_if_out_of_date(diff, command); end
- # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#188
+ # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#189
sig { params(name: ::String).returns(T.nilable(T.class_of(Tapioca::Dsl::Compiler))) }
def resolve(name); end
- # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#322
+ # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#323
sig { params(class_name: ::String).returns(::String) }
def underscore(class_name); end
- # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#252
+ # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#253
sig { params(tmp_dir: ::Pathname).returns(T::Hash[::String, ::Symbol]) }
def verify_dsl_rbi(tmp_dir:); end
end
@@ -661,11 +678,11 @@ class Tapioca::Commands::AbstractGem < ::Tapioca::Commands::Command
private
- # source://tapioca//lib/tapioca/commands/abstract_gem.rb#221
+ # source://tapioca//lib/tapioca/commands/abstract_gem.rb#223
sig { returns(T::Array[::String]) }
def added_rbis; end
- # source://tapioca//lib/tapioca/commands/abstract_gem.rb#282
+ # source://tapioca//lib/tapioca/commands/abstract_gem.rb#284
sig { params(cause: ::Symbol, files: T::Array[::String]).returns(::String) }
def build_error_for_files(cause, files); end
@@ -673,19 +690,19 @@ class Tapioca::Commands::AbstractGem < ::Tapioca::Commands::Command
sig { params(gem: ::Tapioca::Gemfile::GemSpec).void }
def compile_gem_rbi(gem); end
- # source://tapioca//lib/tapioca/commands/abstract_gem.rb#216
+ # source://tapioca//lib/tapioca/commands/abstract_gem.rb#218
sig { params(gem_name: ::String).returns(::Pathname) }
def existing_rbi(gem_name); end
- # source://tapioca//lib/tapioca/commands/abstract_gem.rb#264
+ # source://tapioca//lib/tapioca/commands/abstract_gem.rb#266
sig { returns(T::Hash[::String, ::String]) }
def existing_rbis; end
- # source://tapioca//lib/tapioca/commands/abstract_gem.rb#228
+ # source://tapioca//lib/tapioca/commands/abstract_gem.rb#230
sig { params(gem_name: ::String).returns(::Pathname) }
def expected_rbi(gem_name); end
- # source://tapioca//lib/tapioca/commands/abstract_gem.rb#270
+ # source://tapioca//lib/tapioca/commands/abstract_gem.rb#272
sig { returns(T::Hash[::String, ::String]) }
def expected_rbis; end
@@ -698,11 +715,11 @@ class Tapioca::Commands::AbstractGem < ::Tapioca::Commands::Command
end
def gem_dependencies(gem, dependencies = T.unsafe(nil)); end
- # source://tapioca//lib/tapioca/commands/abstract_gem.rb#233
+ # source://tapioca//lib/tapioca/commands/abstract_gem.rb#235
sig { params(gem_name: ::String).returns(T::Boolean) }
def gem_rbi_exists?(gem_name); end
- # source://tapioca//lib/tapioca/commands/abstract_gem.rb#277
+ # source://tapioca//lib/tapioca/commands/abstract_gem.rb#279
sig { params(gem_name: ::String, version: ::String).returns(::Pathname) }
def gem_rbi_filename(gem_name, version); end
@@ -710,27 +727,27 @@ class Tapioca::Commands::AbstractGem < ::Tapioca::Commands::Command
sig { params(gem_names: T::Array[::String]).returns(T::Array[::Tapioca::Gemfile::GemSpec]) }
def gems_to_generate(gem_names); end
- # source://tapioca//lib/tapioca/commands/abstract_gem.rb#287
+ # source://tapioca//lib/tapioca/commands/abstract_gem.rb#289
sig { params(gem: ::Tapioca::Gemfile::GemSpec, file: ::RBI::File).void }
def merge_with_exported_rbi(gem, file); end
- # source://tapioca//lib/tapioca/commands/abstract_gem.rb#258
+ # source://tapioca//lib/tapioca/commands/abstract_gem.rb#260
sig { params(old_filename: ::Pathname, new_filename: ::Pathname).void }
def move(old_filename, new_filename); end
- # source://tapioca//lib/tapioca/commands/abstract_gem.rb#168
+ # source://tapioca//lib/tapioca/commands/abstract_gem.rb#170
sig { void }
def perform_additions; end
- # source://tapioca//lib/tapioca/commands/abstract_gem.rb#141
+ # source://tapioca//lib/tapioca/commands/abstract_gem.rb#143
sig { void }
def perform_removals; end
- # source://tapioca//lib/tapioca/commands/abstract_gem.rb#211
+ # source://tapioca//lib/tapioca/commands/abstract_gem.rb#213
sig { returns(T::Array[::String]) }
def removed_rbis; end
- # source://tapioca//lib/tapioca/commands/abstract_gem.rb#238
+ # source://tapioca//lib/tapioca/commands/abstract_gem.rb#240
sig { params(diff: T::Hash[::String, ::Symbol], command: ::Symbol).void }
def report_diff_and_exit_if_out_of_date(diff, command); end
end
@@ -859,7 +876,7 @@ class Tapioca::Commands::Command
sig { void }
def initialize; end
- # source://thor/1.3.0/lib/thor/base.rb#155
+ # source://thor/1.3.1/lib/thor/base.rb#155
sig { returns(::Thor::Actions) }
def file_writer; end
@@ -1121,7 +1138,7 @@ class Tapioca::ConfigHelper::ConfigError < ::T::Struct
const :message_parts, T::Array[::Tapioca::ConfigHelper::ConfigErrorMessagePart]
class << self
- # source://sorbet-runtime/0.5.11219/lib/types/struct.rb#13
+ # source://sorbet-runtime/0.5.11287/lib/types/struct.rb#13
def inherited(s); end
end
end
@@ -1132,7 +1149,7 @@ class Tapioca::ConfigHelper::ConfigErrorMessagePart < ::T::Struct
const :colors, T::Array[::Symbol]
class << self
- # source://sorbet-runtime/0.5.11219/lib/types/struct.rb#13
+ # source://sorbet-runtime/0.5.11287/lib/types/struct.rb#13
def inherited(s); end
end
end
@@ -2223,15 +2240,15 @@ class Tapioca::Gemfile::GemSpec
sig { returns(T::Array[::Gem::Dependency]) }
def dependencies; end
- # source://tapioca//lib/tapioca/gemfile.rb#190
+ # source://tapioca//lib/tapioca/gemfile.rb#201
sig { returns(T::Boolean) }
def export_rbi_files?; end
- # source://tapioca//lib/tapioca/gemfile.rb#185
+ # source://tapioca//lib/tapioca/gemfile.rb#196
sig { returns(T::Array[::String]) }
def exported_rbi_files; end
- # source://tapioca//lib/tapioca/gemfile.rb#195
+ # source://tapioca//lib/tapioca/gemfile.rb#206
sig { returns(::RBI::MergeTree) }
def exported_rbi_tree; end
@@ -2259,7 +2276,7 @@ class Tapioca::Gemfile::GemSpec
sig { returns(::String) }
def rbi_file_name; end
- # source://tapioca//lib/tapioca/gemfile.rb#207
+ # source://tapioca//lib/tapioca/gemfile.rb#218
sig { params(file: ::Pathname).returns(::Pathname) }
def relative_path_for(file); end
@@ -2270,31 +2287,31 @@ class Tapioca::Gemfile::GemSpec
private
- # source://tapioca//lib/tapioca/gemfile.rb#218
+ # source://tapioca//lib/tapioca/gemfile.rb#229
sig { returns(T::Array[::Pathname]) }
def collect_files; end
- # source://tapioca//lib/tapioca/gemfile.rb#233
+ # source://tapioca//lib/tapioca/gemfile.rb#244
sig { returns(T.nilable(T::Boolean)) }
def default_gem?; end
- # source://tapioca//lib/tapioca/gemfile.rb#292
+ # source://tapioca//lib/tapioca/gemfile.rb#303
sig { returns(T::Boolean) }
def gem_ignored?; end
- # source://tapioca//lib/tapioca/gemfile.rb#271
+ # source://tapioca//lib/tapioca/gemfile.rb#282
sig { params(path: ::String).returns(T::Boolean) }
def has_parent_gemspec?(path); end
- # source://tapioca//lib/tapioca/gemfile.rb#238
+ # source://tapioca//lib/tapioca/gemfile.rb#249
sig { returns(::Regexp) }
def require_paths_prefix_matcher; end
- # source://tapioca//lib/tapioca/gemfile.rb#250
+ # source://tapioca//lib/tapioca/gemfile.rb#261
sig { params(file: ::String).returns(::Pathname) }
def resolve_to_ruby_lib_dir(file); end
- # source://tapioca//lib/tapioca/gemfile.rb#264
+ # source://tapioca//lib/tapioca/gemfile.rb#275
sig { returns(::String) }
def version_string; end
@@ -2432,7 +2449,7 @@ class Tapioca::Loaders::Loader
# @param engine [T.class_of(Rails::Engine)]
# @return [Array]
#
- # source://sorbet-runtime/0.5.11219/lib/types/private/methods/_methods.rb#252
+ # source://sorbet-runtime/0.5.11287/lib/types/private/methods/_methods.rb#257
def eager_load_paths(*args, **_arg1, &blk); end
# source://tapioca//lib/tapioca/loaders/loader.rb#198
@@ -3340,7 +3357,7 @@ module Tapioca::Static::SymbolLoader
# @return [Array]
#
- # source://sorbet-runtime/0.5.11219/lib/types/private/methods/_methods.rb#252
+ # source://sorbet-runtime/0.5.11287/lib/types/private/methods/_methods.rb#257
def engines(*args, **_arg1, &blk); end
# source://tapioca//lib/tapioca/static/symbol_loader.rb#82
@@ -3468,14 +3485,12 @@ class URI::Source < ::URI::File
sig { params(v: T.nilable(::String)).returns(T::Boolean) }
def check_host(v); end
- # source://uri/0.12.1/uri/generic.rb#243
def gem_name; end
# source://tapioca//lib/tapioca/helpers/source_uri.rb#25
sig { returns(T.nilable(::String)) }
def gem_version; end
- # source://uri/0.12.1/uri/generic.rb#283
def line_number; end
# source://tapioca//lib/tapioca/helpers/source_uri.rb#51
diff --git a/sorbet/rbi/gems/thor@1.3.0.rbi b/sorbet/rbi/gems/thor@1.3.1.rbi
similarity index 97%
rename from sorbet/rbi/gems/thor@1.3.0.rbi
rename to sorbet/rbi/gems/thor@1.3.1.rbi
index 9ed8f62f..a806aa38 100644
--- a/sorbet/rbi/gems/thor@1.3.0.rbi
+++ b/sorbet/rbi/gems/thor@1.3.1.rbi
@@ -662,7 +662,7 @@ module Thor::Actions
# 'config.gem "rspec"'
# end
#
- # source://thor//lib/thor/actions/file_manipulation.rb#193
+ # source://thor//lib/thor/actions/file_manipulation.rb#192
def append_file(path, *args, &block); end
# Append text to a file. Since it depends on insert_into_file, it's reversible.
@@ -680,7 +680,7 @@ module Thor::Actions
# 'config.gem "rspec"'
# end
#
- # source://thor//lib/thor/actions/file_manipulation.rb#193
+ # source://thor//lib/thor/actions/file_manipulation.rb#192
def append_to_file(path, *args, &block); end
# Loads an external file and execute it in the instance binding.
@@ -721,7 +721,7 @@ module Thor::Actions
#
# chmod "script/server", 0755
#
- # source://thor//lib/thor/actions/file_manipulation.rb#146
+ # source://thor//lib/thor/actions/file_manipulation.rb#145
def chmod(path, mode, config = T.unsafe(nil)); end
# Comment all lines matching a given regex. It will leave the space
@@ -737,16 +737,25 @@ module Thor::Actions
#
# comment_lines 'config/initializers/session_store.rb', /cookie_store/
#
- # source://thor//lib/thor/actions/file_manipulation.rb#310
+ # source://thor//lib/thor/actions/file_manipulation.rb#308
def comment_lines(path, flag, *args); end
+ # Copies the file from the relative source to the relative destination. If
+ # the destination is not given it's assumed to be equal to the source.
+ #
+ # ==== Parameters
+ # source:: the relative path to the source root.
+ # destination:: the relative path to the destination root.
+ # config:: give :verbose => false to not log the status, and
+ # :mode => :preserve, to preserve the file mode from the source.
+ #
# ==== Examples
#
# copy_file "README", "doc/README"
#
# copy_file "doc/README"
#
- # source://thor//lib/thor/actions/file_manipulation.rb#21
+ # source://thor//lib/thor/actions/file_manipulation.rb#20
def copy_file(source, *args, &block); end
# Create a new file relative to the destination root with the given data,
@@ -885,7 +894,7 @@ module Thor::Actions
# content.split("\n").first
# end
#
- # source://thor//lib/thor/actions/file_manipulation.rb#82
+ # source://thor//lib/thor/actions/file_manipulation.rb#81
def get(source, *args, &block); end
# Run a regular expression replacement on a file.
@@ -905,7 +914,7 @@ module Thor::Actions
# match << " no more. Use thor!"
# end
#
- # source://thor//lib/thor/actions/file_manipulation.rb#263
+ # source://thor//lib/thor/actions/file_manipulation.rb#262
def gsub_file(path, flag, *args, &block); end
# Goes to the root and execute the given block.
@@ -930,7 +939,7 @@ module Thor::Actions
# " filter_parameter :password\n"
# end
#
- # source://thor//lib/thor/actions/file_manipulation.rb#217
+ # source://thor//lib/thor/actions/file_manipulation.rb#216
def inject_into_class(path, klass, *args, &block); end
# source://thor//lib/thor/actions/inject_into_file.rb#26
@@ -953,7 +962,7 @@ module Thor::Actions
# " def help; 'help'; end\n"
# end
#
- # source://thor//lib/thor/actions/file_manipulation.rb#240
+ # source://thor//lib/thor/actions/file_manipulation.rb#239
def inject_into_module(path, module_name, *args, &block); end
# source://thor//lib/thor/actions/inject_into_file.rb#26
@@ -987,7 +996,7 @@ module Thor::Actions
#
# link_file "doc/README"
#
- # source://thor//lib/thor/actions/file_manipulation.rb#51
+ # source://thor//lib/thor/actions/file_manipulation.rb#50
def link_file(source, *args); end
# Prepend text to a file. Since it depends on insert_into_file, it's reversible.
@@ -1005,7 +1014,7 @@ module Thor::Actions
# 'config.gem "rspec"'
# end
#
- # source://thor//lib/thor/actions/file_manipulation.rb#171
+ # source://thor//lib/thor/actions/file_manipulation.rb#170
def prepend_file(path, *args, &block); end
# Prepend text to a file. Since it depends on insert_into_file, it's reversible.
@@ -1023,7 +1032,7 @@ module Thor::Actions
# 'config.gem "rspec"'
# end
#
- # source://thor//lib/thor/actions/file_manipulation.rb#171
+ # source://thor//lib/thor/actions/file_manipulation.rb#170
def prepend_to_file(path, *args, &block); end
# Returns the given path relative to the absolute root (ie, root where
@@ -1043,7 +1052,7 @@ module Thor::Actions
# remove_file 'README'
# remove_file 'app/controllers/application_controller.rb'
#
- # source://thor//lib/thor/actions/file_manipulation.rb#327
+ # source://thor//lib/thor/actions/file_manipulation.rb#325
def remove_dir(path, config = T.unsafe(nil)); end
# Removes a file at the given location.
@@ -1057,7 +1066,7 @@ module Thor::Actions
# remove_file 'README'
# remove_file 'app/controllers/application_controller.rb'
#
- # source://thor//lib/thor/actions/file_manipulation.rb#327
+ # source://thor//lib/thor/actions/file_manipulation.rb#325
def remove_file(path, config = T.unsafe(nil)); end
# Executes a command returning the contents of the command.
@@ -1105,7 +1114,7 @@ module Thor::Actions
#
# template "doc/README"
#
- # source://thor//lib/thor/actions/file_manipulation.rb#118
+ # source://thor//lib/thor/actions/file_manipulation.rb#117
def template(source, *args, &block); end
# Run a thor command. A hash of options can be given and it's converted to
@@ -1129,9 +1138,8 @@ module Thor::Actions
# source://thor//lib/thor/actions.rb#308
def thor(command, *args); end
- # Uncomment all lines matching a given regex. It will leave the space
- # which existed before the comment hash in tact but will remove any spacing
- # between the comment hash and the beginning of the line.
+ # Uncomment all lines matching a given regex. Preserves indentation before
+ # the comment hash and removes the hash and any immediate following space.
#
# ==== Parameters
# path:: path of the file to be changed
@@ -1142,7 +1150,7 @@ module Thor::Actions
#
# uncomment_lines 'config/initializers/session_store.rb', /active_record/
#
- # source://thor//lib/thor/actions/file_manipulation.rb#291
+ # source://thor//lib/thor/actions/file_manipulation.rb#289
def uncomment_lines(path, flag, *args); end
protected
@@ -1157,25 +1165,25 @@ module Thor::Actions
private
- # source://thor//lib/thor/actions/file_manipulation.rb#348
+ # source://thor//lib/thor/actions/file_manipulation.rb#346
def capture(*args); end
- # source://thor//lib/thor/actions/file_manipulation.rb#344
+ # source://thor//lib/thor/actions/file_manipulation.rb#342
def concat(string); end
# Returns the value of attribute output_buffer.
#
- # source://thor//lib/thor/actions/file_manipulation.rb#339
+ # source://thor//lib/thor/actions/file_manipulation.rb#337
def output_buffer; end
# Sets the attribute output_buffer
#
# @param value the value to set the attribute output_buffer to.
#
- # source://thor//lib/thor/actions/file_manipulation.rb#339
+ # source://thor//lib/thor/actions/file_manipulation.rb#337
def output_buffer=(_arg0); end
- # source://thor//lib/thor/actions/file_manipulation.rb#352
+ # source://thor//lib/thor/actions/file_manipulation.rb#350
def with_output_buffer(buf = T.unsafe(nil)); end
class << self
@@ -1187,9 +1195,9 @@ end
# Thor::Actions#capture depends on what kind of buffer is used in ERB.
# Thus CapturableERB fixes ERB to use String buffer.
#
-# source://thor//lib/thor/actions/file_manipulation.rb#364
+# source://thor//lib/thor/actions/file_manipulation.rb#362
class Thor::Actions::CapturableERB < ::ERB
- # source://thor//lib/thor/actions/file_manipulation.rb#365
+ # source://thor//lib/thor/actions/file_manipulation.rb#363
def set_eoutvar(compiler, eoutvar = T.unsafe(nil)); end
end
@@ -1541,7 +1549,7 @@ class Thor::Argument
# source://thor//lib/thor/parser/argument.rb#5
def enum; end
- # source://thor//lib/thor/parser/argument.rb#55
+ # source://thor//lib/thor/parser/argument.rb#52
def enum_to_s; end
# Returns the value of attribute name.
@@ -1564,12 +1572,12 @@ class Thor::Argument
# @return [Boolean]
#
- # source://thor//lib/thor/parser/argument.rb#42
+ # source://thor//lib/thor/parser/argument.rb#39
def required?; end
# @return [Boolean]
#
- # source://thor//lib/thor/parser/argument.rb#46
+ # source://thor//lib/thor/parser/argument.rb#43
def show_default?; end
# Returns the value of attribute type.
@@ -1577,22 +1585,22 @@ class Thor::Argument
# source://thor//lib/thor/parser/argument.rb#5
def type; end
- # source://thor//lib/thor/parser/argument.rb#38
+ # source://thor//lib/thor/parser/argument.rb#35
def usage; end
protected
- # source://thor//lib/thor/parser/argument.rb#74
+ # source://thor//lib/thor/parser/argument.rb#71
def default_banner; end
# @return [Boolean]
#
- # source://thor//lib/thor/parser/argument.rb#70
+ # source://thor//lib/thor/parser/argument.rb#67
def valid_type?(type); end
# @raise [ArgumentError]
#
- # source://thor//lib/thor/parser/argument.rb#65
+ # source://thor//lib/thor/parser/argument.rb#62
def validate!; end
end
@@ -3277,14 +3285,15 @@ class Thor::Options < ::Thor::Arguments
# source://thor//lib/thor/parser/options.rb#244
def normalize_switch(arg); end
- # Parse boolean values which can be given as --foo=true, --foo or --no-foo.
+ # Parse boolean values which can be given as --foo=true or --foo for true values, or
+ # --foo=false, --no-foo or --skip-foo for false values.
#
- # source://thor//lib/thor/parser/options.rb#255
+ # source://thor//lib/thor/parser/options.rb#256
def parse_boolean(switch); end
# Parse the value at the peek analyzing if it requires an input or not.
#
- # source://thor//lib/thor/parser/options.rb#273
+ # source://thor//lib/thor/parser/options.rb#274
def parse_peek(switch, option); end
# @return [Boolean]
@@ -3479,15 +3488,15 @@ class Thor::Shell::Basic
# Readline.
#
# ==== Example
- # ask("What is your name?")
+ # ask("What is your name?")
#
- # ask("What is the planet furthest from the sun?", :default => "Pluto")
+ # ask("What is the planet furthest from the sun?", :default => "Neptune")
#
- # ask("What is your favorite Neopolitan flavor?", :limited_to => ["strawberry", "chocolate", "vanilla"])
+ # ask("What is your favorite Neopolitan flavor?", :limited_to => ["strawberry", "chocolate", "vanilla"])
#
- # ask("What is your password?", :echo => false)
+ # ask("What is your password?", :echo => false)
#
- # ask("Where should the file be saved?", :path => true)
+ # ask("Where should the file be saved?", :path => true)
#
# source://thor//lib/thor/shell/basic.rb#80
def ask(statement, *args); end
@@ -3540,7 +3549,7 @@ class Thor::Shell::Basic
# source://thor//lib/thor/shell/basic.rb#31
def mute?; end
- # Make a question the to user and returns true if the user replies "n" or
+ # Asks the user a question and returns true if the user replies "n" or
# "no".
#
# @return [Boolean]
@@ -3596,7 +3605,7 @@ class Thor::Shell::Basic
# are passed straight to puts (behavior got from Highline).
#
# ==== Example
- # say("I know you knew that.")
+ # say("I know you knew that.")
#
# source://thor//lib/thor/shell/basic.rb#98
def say(message = T.unsafe(nil), color = T.unsafe(nil), force_new_line = T.unsafe(nil)); end
@@ -3606,7 +3615,7 @@ class Thor::Shell::Basic
# are passed straight to puts (behavior got from Highline).
#
# ==== Example
- # say_error("error: something went wrong")
+ # say_error("error: something went wrong")
#
# source://thor//lib/thor/shell/basic.rb#115
def say_error(message = T.unsafe(nil), color = T.unsafe(nil), force_new_line = T.unsafe(nil)); end
@@ -3625,7 +3634,7 @@ class Thor::Shell::Basic
# source://thor//lib/thor/shell/basic.rb#258
def set_color(string, *_arg1); end
- # Make a question the to user and returns true if the user replies "y" or
+ # Asks the user a question and returns true if the user replies "y" or
# "yes".
#
# @return [Boolean]
@@ -3873,7 +3882,7 @@ class Thor::Shell::HTML < ::Thor::Shell::Basic
# Ask something to the user and receives a response.
#
# ==== Example
- # ask("What is your name?")
+ # ask("What is your name?")
#
# TODO: Implement #ask for Thor::Shell::HTML
#
@@ -3998,13 +4007,10 @@ class Thor::Shell::TablePrinter < ::Thor::Shell::ColumnPrinter
private
- # source://thor//lib/thor/shell/table_printer.rb#120
- def as_unicode; end
-
# source://thor//lib/thor/shell/table_printer.rb#72
def format_cell(column, row_size, index); end
- # source://thor//lib/thor/shell/table_printer.rb#115
+ # source://thor//lib/thor/shell/table_printer.rb#113
def indentation; end
# source://thor//lib/thor/shell/table_printer.rb#47
diff --git a/sorbet/rbi/gems/yard-sorbet@0.8.1.rbi b/sorbet/rbi/gems/yard-sorbet@0.8.1.rbi
index f511d4cc..6f747483 100644
--- a/sorbet/rbi/gems/yard-sorbet@0.8.1.rbi
+++ b/sorbet/rbi/gems/yard-sorbet@0.8.1.rbi
@@ -381,7 +381,7 @@ class YARDSorbet::TStructProp < ::T::Struct
const :types, T::Array[::String]
class << self
- # source://sorbet-runtime/0.5.11219/lib/types/struct.rb#13
+ # source://sorbet-runtime/0.5.11287/lib/types/struct.rb#13
def inherited(s); end
end
end
diff --git a/sorbet/rbi/gems/yard@0.9.34.rbi b/sorbet/rbi/gems/yard@0.9.36.rbi
similarity index 99%
rename from sorbet/rbi/gems/yard@0.9.34.rbi
rename to sorbet/rbi/gems/yard@0.9.36.rbi
index 39510918..cf3844a6 100644
--- a/sorbet/rbi/gems/yard@0.9.34.rbi
+++ b/sorbet/rbi/gems/yard@0.9.36.rbi
@@ -2480,7 +2480,7 @@ class YARD::CodeObjects::Base
# the paths are equal
# @return [Boolean] whether or not the objects are considered the same
#
- # source://yard//lib/yard/code_objects/base.rb#322
+ # source://yard//lib/yard/code_objects/base.rb#323
def ==(other); end
# Accesses a custom attribute on the object
@@ -2489,7 +2489,7 @@ class YARD::CodeObjects::Base
# @return [Object, nil] the custom attribute or nil if not found.
# @see #[]=
#
- # source://yard//lib/yard/code_objects/base.rb#342
+ # source://yard//lib/yard/code_objects/base.rb#343
def [](key); end
# Sets a custom attribute on the object
@@ -2499,7 +2499,7 @@ class YARD::CodeObjects::Base
# @return [void]
# @see #[]
#
- # source://yard//lib/yard/code_objects/base.rb#355
+ # source://yard//lib/yard/code_objects/base.rb#356
def []=(key, value); end
# Associates a file with a code object, optionally adding the line where it was defined.
@@ -2520,7 +2520,7 @@ class YARD::CodeObjects::Base
# @see Docstring#add_tag
# @since 0.8.4
#
- # source://yard//lib/yard/code_objects/base.rb#560
+ # source://yard//lib/yard/code_objects/base.rb#561
def add_tag(*tags); end
# The non-localized documentation string associated with the object
@@ -2547,7 +2547,7 @@ class YARD::CodeObjects::Base
# the locale of the documentation string.
# @return [Docstring] the documentation string
#
- # source://yard//lib/yard/code_objects/base.rb#404
+ # source://yard//lib/yard/code_objects/base.rb#405
def docstring(locale = T.unsafe(nil)); end
# Attaches a docstring to a code object by parsing the comments attached to the statement
@@ -2556,7 +2556,7 @@ class YARD::CodeObjects::Base
# @param comments [String, Array, Docstring] the comments attached to the code object to be parsed
# into a docstring and meta tags.
#
- # source://yard//lib/yard/code_objects/base.rb#426
+ # source://yard//lib/yard/code_objects/base.rb#427
def docstring=(comments); end
# Marks whether or not the method is conditionally defined at runtime
@@ -2587,7 +2587,7 @@ class YARD::CodeObjects::Base
# the paths are equal
# @return [Boolean] whether or not the objects are considered the same
#
- # source://yard//lib/yard/code_objects/base.rb#322
+ # source://yard//lib/yard/code_objects/base.rb#323
def eql?(other); end
# Tests if another object is equal to this, including a proxy
@@ -2596,15 +2596,16 @@ class YARD::CodeObjects::Base
# the paths are equal
# @return [Boolean] whether or not the objects are considered the same
#
- # source://yard//lib/yard/code_objects/base.rb#322
+ # source://yard//lib/yard/code_objects/base.rb#323
def equal?(other); end
# Returns the filename the object was first parsed at, taking
# definitions with docstrings first.
#
# @return [String] a filename
+ # @return [nil] if there is no file associated with the object
#
- # source://yard//lib/yard/code_objects/base.rb#306
+ # source://yard//lib/yard/code_objects/base.rb#307
def file; end
# The files the object was defined in. To add a file, use {#add_file}.
@@ -2629,7 +2630,7 @@ class YARD::CodeObjects::Base
# @return [String] the rendered template
# @see Templates::Engine#render
#
- # source://yard//lib/yard/code_objects/base.rb#504
+ # source://yard//lib/yard/code_objects/base.rb#505
def format(options = T.unsafe(nil)); end
# @return [String] the group this object is associated with
@@ -2649,19 +2650,19 @@ class YARD::CodeObjects::Base
# @return [Boolean]
# @see Docstring#has_tag?
#
- # source://yard//lib/yard/code_objects/base.rb#555
+ # source://yard//lib/yard/code_objects/base.rb#556
def has_tag?(name); end
# @return [Integer] the object's hash value (for equality checking)
#
- # source://yard//lib/yard/code_objects/base.rb#333
+ # source://yard//lib/yard/code_objects/base.rb#334
def hash; end
# Inspects the object, returning the type and path
#
# @return [String] a string describing the object
#
- # source://yard//lib/yard/code_objects/base.rb#512
+ # source://yard//lib/yard/code_objects/base.rb#513
def inspect; end
# Returns the line the object was first parsed at (or nil)
@@ -2669,13 +2670,13 @@ class YARD::CodeObjects::Base
# @return [Fixnum] the line where the object was first defined.
# @return [nil] if there is no line associated with the object
#
- # source://yard//lib/yard/code_objects/base.rb#314
+ # source://yard//lib/yard/code_objects/base.rb#315
def line; end
# @overload dynamic_attr_name
# @overload dynamic_attr_name=
#
- # source://yard//lib/yard/code_objects/base.rb#372
+ # source://yard//lib/yard/code_objects/base.rb#373
def method_missing(meth, *args, &block); end
# The name of the object
@@ -2703,7 +2704,7 @@ class YARD::CodeObjects::Base
# for {Registry.root}). If obj is nil, the object is unregistered
# from the Registry.
#
- # source://yard//lib/yard/code_objects/base.rb#521
+ # source://yard//lib/yard/code_objects/base.rb#522
def namespace=(obj); end
# The namespace the object is defined in. If the object is in the
@@ -2720,7 +2721,7 @@ class YARD::CodeObjects::Base
# for {Registry.root}). If obj is nil, the object is unregistered
# from the Registry.
#
- # source://yard//lib/yard/code_objects/base.rb#521
+ # source://yard//lib/yard/code_objects/base.rb#522
def parent=(obj); end
# Represents the unique path of the object. The default implementation
@@ -2733,19 +2734,19 @@ class YARD::CodeObjects::Base
# @return [String] the unique path of the object
# @see #sep
#
- # source://yard//lib/yard/code_objects/base.rb#452
+ # source://yard//lib/yard/code_objects/base.rb#453
def path; end
# @param other [Base, String] another code object (or object path)
# @return [String] the shortest relative path from this object to +other+
# @since 0.5.3
#
- # source://yard//lib/yard/code_objects/base.rb#474
+ # source://yard//lib/yard/code_objects/base.rb#475
def relative_path(other); end
# @return [Boolean] whether or not this object is a RootObject
#
- # source://yard//lib/yard/code_objects/base.rb#566
+ # source://yard//lib/yard/code_objects/base.rb#567
def root?; end
# Override this method with a custom component separator. For instance,
@@ -2756,7 +2757,7 @@ class YARD::CodeObjects::Base
# @return [String] the component that separates the namespace path
# and the name (default is {NSEP})
#
- # source://yard//lib/yard/code_objects/base.rb#575
+ # source://yard//lib/yard/code_objects/base.rb#576
def sep; end
# The one line signature representing an object. For a method, this will
@@ -2789,7 +2790,7 @@ class YARD::CodeObjects::Base
# @param statement [#source, String] the +Parser::Statement+ holding the source code or the raw source
# as a +String+ for the definition of the code object only (not the block)
#
- # source://yard//lib/yard/code_objects/base.rb#387
+ # source://yard//lib/yard/code_objects/base.rb#388
def source=(statement); end
# Language of the source code associated with the object. Defaults to
@@ -2812,14 +2813,14 @@ class YARD::CodeObjects::Base
#
# @see Docstring#tag
#
- # source://yard//lib/yard/code_objects/base.rb#547
+ # source://yard//lib/yard/code_objects/base.rb#548
def tag(name); end
# Gets a list of tags from the {#docstring}
#
# @see Docstring#tags
#
- # source://yard//lib/yard/code_objects/base.rb#551
+ # source://yard//lib/yard/code_objects/base.rb#552
def tags(name = T.unsafe(nil)); end
# @note Override this method if your object has a special title that does
@@ -2828,12 +2829,12 @@ class YARD::CodeObjects::Base
# @return [String] the display title for an object
# @see 0.8.4
#
- # source://yard//lib/yard/code_objects/base.rb#467
+ # source://yard//lib/yard/code_objects/base.rb#468
def title; end
# @return [nil] this object does not turn into an array
#
- # source://yard//lib/yard/code_objects/base.rb#336
+ # source://yard//lib/yard/code_objects/base.rb#337
def to_ary; end
# Represents the unique path of the object. The default implementation
@@ -2846,7 +2847,7 @@ class YARD::CodeObjects::Base
# @return [String] the unique path of the object
# @see #sep
#
- # source://yard//lib/yard/code_objects/base.rb#452
+ # source://yard//lib/yard/code_objects/base.rb#453
def to_s; end
# Default type is the lowercase class name without the "Object" suffix.
@@ -2854,7 +2855,7 @@ class YARD::CodeObjects::Base
#
# @return [Symbol] the type of code object this represents
#
- # source://yard//lib/yard/code_objects/base.rb#436
+ # source://yard//lib/yard/code_objects/base.rb#437
def type; end
# @return [Symbol] the visibility of an object (:public, :private, :protected)
@@ -2877,7 +2878,7 @@ class YARD::CodeObjects::Base
# @see #copy_to
# @since 0.8.0
#
- # source://yard//lib/yard/code_objects/base.rb#586
+ # source://yard//lib/yard/code_objects/base.rb#587
def copyable_attributes; end
private
@@ -2887,10 +2888,10 @@ class YARD::CodeObjects::Base
# @param source [String] the source code to format
# @return [String] formatted source
#
- # source://yard//lib/yard/code_objects/base.rb#598
+ # source://yard//lib/yard/code_objects/base.rb#599
def format_source(source); end
- # source://yard//lib/yard/code_objects/base.rb#605
+ # source://yard//lib/yard/code_objects/base.rb#606
def translate_docstring(locale); end
class << self
@@ -11033,10 +11034,10 @@ class YARD::Parser::SourceParser
# @since 0.5.6
#
- # source://yard//lib/yard/parser/source_parser.rb#516
+ # source://yard//lib/yard/parser/source_parser.rb#515
def parser_class; end
- # source://yard//lib/yard/parser/source_parser.rb#501
+ # source://yard//lib/yard/parser/source_parser.rb#500
def parser_type=(value); end
# Guesses the parser type to use depending on the file extension.
@@ -11044,14 +11045,14 @@ class YARD::Parser::SourceParser
# @param filename [String] the filename to use to guess the parser type
# @return [Symbol] a parser type that matches the filename
#
- # source://yard//lib/yard/parser/source_parser.rb#509
+ # source://yard//lib/yard/parser/source_parser.rb#508
def parser_type_for_filename(filename); end
# Runs a {Handlers::Processor} object to post process the parsed statements.
#
# @return [void]
#
- # source://yard//lib/yard/parser/source_parser.rb#491
+ # source://yard//lib/yard/parser/source_parser.rb#490
def post_process; end
class << self