diff --git a/Library/Homebrew/sorbet/rbi/dsl/rubo_cop/cop/formula_audit/text.rbi b/Library/Homebrew/sorbet/rbi/dsl/rubo_cop/cop/formula_audit/text.rbi index 6107e5dc64..701f3a0d6c 100644 --- a/Library/Homebrew/sorbet/rbi/dsl/rubo_cop/cop/formula_audit/text.rbi +++ b/Library/Homebrew/sorbet/rbi/dsl/rubo_cop/cop/formula_audit/text.rbi @@ -5,14 +5,4 @@ # Please instead update this file by running `bin/tapioca dsl RuboCop::Cop::FormulaAudit::Text`. -class RuboCop::Cop::FormulaAudit::Text - sig do - params( - node: RuboCop::AST::Node, - pattern: T.any(String, Symbol), - kwargs: T.untyped, - block: T.untyped - ).returns(T.untyped) - end - def prefix_path(node, *pattern, **kwargs, &block); end -end +class RuboCop::Cop::FormulaAudit::Text; end diff --git a/Library/Homebrew/sorbet/rbi/gems/csv@3.3.4.rbi b/Library/Homebrew/sorbet/rbi/gems/csv@3.3.5.rbi similarity index 96% rename from Library/Homebrew/sorbet/rbi/gems/csv@3.3.4.rbi rename to Library/Homebrew/sorbet/rbi/gems/csv@3.3.5.rbi index c82d13e613..1ad863986d 100644 --- a/Library/Homebrew/sorbet/rbi/gems/csv@3.3.4.rbi +++ b/Library/Homebrew/sorbet/rbi/gems/csv@3.3.5.rbi @@ -915,14 +915,29 @@ class CSV # end # end # - # source://csv//lib/csv.rb#2507 + # source://csv//lib/csv.rb#2511 def add_row(row); end + # source://csv//lib/csv.rb#2389 + def binmode(*args, **_arg1, &block); end + # @return [Boolean] # # source://csv//lib/csv.rb#2396 def binmode?; end + # source://csv//lib/csv.rb#2389 + def close(*args, **_arg1, &block); end + + # source://csv//lib/csv.rb#2389 + def close_read(*args, **_arg1, &block); end + + # source://csv//lib/csv.rb#2389 + def close_write(*args, **_arg1, &block); end + + # source://csv//lib/csv.rb#2389 + def closed?(*args, **_arg1, &block); end + # :call-seq: # csv.col_sep -> string # @@ -1075,7 +1090,7 @@ class CSV # @return [Boolean] # - # source://csv//lib/csv.rb#2432 + # source://csv//lib/csv.rb#2444 def eof; end # @return [Boolean] @@ -1083,6 +1098,12 @@ class CSV # source://csv//lib/csv.rb#2432 def eof?; end + # source://csv//lib/csv.rb#2389 + def external_encoding(*args, **_arg1, &block); end + + # source://csv//lib/csv.rb#2389 + def fcntl(*args, **_arg1, &block); end + # :call-seq: # csv.field_size_limit -> integer or nil # @@ -1095,11 +1116,17 @@ class CSV # source://csv//lib/csv.rb#2176 def field_size_limit; end + # source://csv//lib/csv.rb#2389 + def fileno(*args, **_arg1, &block); end + # @raise [NotImplementedError] # # source://csv//lib/csv.rb#2404 def flock(*args); end + # source://csv//lib/csv.rb#2389 + def flush(*args, **_arg1, &block); end + # :call-seq: # csv.force_quotes? -> true or false # @@ -1113,6 +1140,9 @@ class CSV # source://csv//lib/csv.rb#2307 def force_quotes?; end + # source://csv//lib/csv.rb#2389 + def fsync(*args, **_arg1, &block); end + # :call-seq: # csv.shift -> array, csv_row, or nil # @@ -1147,7 +1177,7 @@ class CSV # # Raises IOError (not opened for reading) # csv.shift # - # source://csv//lib/csv.rb#2803 + # source://csv//lib/csv.rb#2814 def gets; end # The block need not return a \String object: @@ -1240,11 +1270,17 @@ class CSV # source://csv//lib/csv.rb#2825 def inspect; end + # source://csv//lib/csv.rb#2389 + def internal_encoding(*args, **_arg1, &block); end + # @raise [NotImplementedError] # # source://csv//lib/csv.rb#2409 def ioctl(*args); end + # source://csv//lib/csv.rb#2389 + def isatty(*args, **_arg1, &block); end + # :call-seq: # csv.liberal_parsing? -> true or false # @@ -1325,6 +1361,15 @@ class CSV # source://csv//lib/csv.rb#2414 def path; end + # source://csv//lib/csv.rb#2389 + def pid(*args, **_arg1, &block); end + + # source://csv//lib/csv.rb#2389 + def pos(*args, **_arg1, &block); end + + # source://csv//lib/csv.rb#2389 + def pos=(*args, **_arg1, &block); end + # :call-seq: # csv << row -> self # @@ -1376,7 +1421,7 @@ class CSV # end # end # - # source://csv//lib/csv.rb#2507 + # source://csv//lib/csv.rb#2512 def puts(row); end # :call-seq: @@ -1458,7 +1503,7 @@ class CSV # # Raises IOError (not opened for reading) # csv.shift # - # source://csv//lib/csv.rb#2803 + # source://csv//lib/csv.rb#2815 def readline; end # :call-seq: @@ -1493,9 +1538,12 @@ class CSV # # Raises IOError (not opened for reading) # csv.read # - # source://csv//lib/csv.rb#2730 + # source://csv//lib/csv.rb#2738 def readlines; end + # source://csv//lib/csv.rb#2389 + def reopen(*args, **_arg1, &block); end + # :call-seq: # csv.return_headers? -> true or false # @@ -1523,6 +1571,9 @@ class CSV # source://csv//lib/csv.rb#2154 def row_sep; end + # source://csv//lib/csv.rb#2389 + def seek(*args, **_arg1, &block); end + # :call-seq: # csv.shift -> array, csv_row, or nil # @@ -1587,6 +1638,18 @@ class CSV # source://csv//lib/csv.rb#2418 def stat(*args); end + # source://csv//lib/csv.rb#2389 + def string(*args, **_arg1, &block); end + + # source://csv//lib/csv.rb#2389 + def sync(*args, **_arg1, &block); end + + # source://csv//lib/csv.rb#2389 + def sync=(*args, **_arg1, &block); end + + # source://csv//lib/csv.rb#2389 + def tell(*args, **_arg1, &block); end + # @raise [NotImplementedError] # # source://csv//lib/csv.rb#2423 @@ -1595,6 +1658,12 @@ class CSV # source://csv//lib/csv.rb#2428 def to_io; end + # source://csv//lib/csv.rb#2389 + def truncate(*args, **_arg1, &block); end + + # source://csv//lib/csv.rb#2389 + def tty?(*args, **_arg1, &block); end + # :call-seq: # csv.unconverted_fields? -> object # @@ -2500,16 +2569,6 @@ end # source://csv//lib/csv.rb#895 CSV::ConverterEncoding = T.let(T.unsafe(nil), Encoding) -# A \Hash containing the names and \Procs for the built-in field converters. -# See {Built-In Field Converters}[#class-CSV-label-Built-In+Field+Converters]. -# -# This \Hash is intentionally left unfrozen, and may be extended with -# custom field converters. -# See {Custom Field Converters}[#class-CSV-label-Custom+Field+Converters]. -# -# source://csv//lib/csv.rb#903 -CSV::Converters = T.let(T.unsafe(nil), Hash) - # A Regexp used to find and convert some common Date formats. # # source://csv//lib/csv.rb#884 @@ -2520,6 +2579,88 @@ CSV::DateMatcher = T.let(T.unsafe(nil), Regexp) # source://csv//lib/csv.rb#887 CSV::DateTimeMatcher = T.let(T.unsafe(nil), Regexp) +# A FieldInfo Struct contains details about a field's position in the data +# source it was read from. CSV will pass this Struct to some blocks that make +# decisions based on field structure. See CSV.convert_fields() for an +# example. +# +# index:: The zero-based index of the field in its row. +# line:: The line of the data source this row is from. +# header:: The header for the column, when available. +# quoted?:: True or false, whether the original value is quoted or not. +# +# source://csv//lib/csv.rb#881 +class CSV::FieldInfo < ::Struct + # Returns the value of attribute header + # + # @return [Object] the current value of header + # + # source://csv//lib/csv.rb#881 + def header; end + + # Sets the attribute header + # + # @param value [Object] the value to set the attribute header to. + # @return [Object] the newly set value + # + # source://csv//lib/csv.rb#881 + def header=(_); end + + # Returns the value of attribute index + # + # @return [Object] the current value of index + # + # source://csv//lib/csv.rb#881 + def index; end + + # Sets the attribute index + # + # @param value [Object] the value to set the attribute index to. + # @return [Object] the newly set value + # + # source://csv//lib/csv.rb#881 + def index=(_); end + + # Returns the value of attribute line + # + # @return [Object] the current value of line + # + # source://csv//lib/csv.rb#881 + def line; end + + # Sets the attribute line + # + # @param value [Object] the value to set the attribute line to. + # @return [Object] the newly set value + # + # source://csv//lib/csv.rb#881 + def line=(_); end + + # Returns the value of attribute quoted? + # + # @return [Object] the current value of quoted? + # + # source://csv//lib/csv.rb#881 + def quoted?; end + + class << self + # source://csv//lib/csv.rb#881 + def [](*_arg0); end + + # source://csv//lib/csv.rb#881 + def inspect; end + + # source://csv//lib/csv.rb#881 + def keyword_init?; end + + # source://csv//lib/csv.rb#881 + def members; end + + # source://csv//lib/csv.rb#881 + def new(*_arg0); end + end +end + # Note: Don't use this class directly. This is an internal class. # # source://csv//lib/csv/fields_converter.rb#5 @@ -2617,7 +2758,7 @@ class CSV::MalformedCSVError < ::RuntimeError # Returns the value of attribute line_number. # - # source://csv//lib/csv.rb#853 + # source://csv//lib/csv.rb#854 def lineno; end end @@ -2912,7 +3053,7 @@ CSV::Parser::STRING_SCANNER_SCAN_ACCEPT_STRING = T.let(T.unsafe(nil), TrueClass) # Uses StringScanner (the official strscan gem). Strscan provides lexical # scanning operations on a String. We inherit its object and take advantage # on the methods. For more information, please visit: -# https://ruby-doc.org/stdlib-2.6.1/libdoc/strscan/rdoc/StringScanner.html +# https://docs.ruby-lang.org/en/master/StringScanner.html # # source://csv//lib/csv/parser.rb#52 class CSV::Parser::Scanner < ::StringScanner @@ -2936,6 +3077,7 @@ class CSV::Parser::Scanner < ::StringScanner # source://csv//lib/csv/parser.rb#69 def keep_start; end + # source://csv//lib/csv/parser.rb#53 def scan_all(_arg0); end end @@ -3162,7 +3304,7 @@ class CSV::Row # # Returns +nil+ if the header does not exist. # - # source://csv//lib/csv/row.rb#203 + # source://csv//lib/csv/row.rb#215 def [](header_or_index, minimum_index = T.unsafe(nil)); end # :call-seq: @@ -3350,9 +3492,12 @@ class CSV::Row # If no block is given, returns a new Enumerator: # row.each # => #:each> # - # source://csv//lib/csv/row.rb#610 + # source://csv//lib/csv/row.rb#618 def each_pair(&block); end + # source://csv//lib/csv/row.rb#124 + def empty?(*args, **_arg1, &block); end + # :call-seq: # fetch(header) -> value # fetch(header, default) -> value @@ -3536,7 +3681,7 @@ class CSV::Row # # @return [Boolean] # - # source://csv//lib/csv/row.rb#279 + # source://csv//lib/csv/row.rb#285 def header?(header); end # :call-seq: @@ -3569,7 +3714,7 @@ class CSV::Row # # @return [Boolean] # - # source://csv//lib/csv/row.rb#279 + # source://csv//lib/csv/row.rb#282 def include?(header); end # :call-seq: @@ -3619,9 +3764,12 @@ class CSV::Row # # @return [Boolean] # - # source://csv//lib/csv/row.rb#279 + # source://csv//lib/csv/row.rb#283 def key?(header); end + # source://csv//lib/csv/row.rb#124 + def length(*args, **_arg1, &block); end + # :call-seq: # row.has_key?(header) -> true or false # @@ -3630,7 +3778,7 @@ class CSV::Row # # @return [Boolean] # - # source://csv//lib/csv/row.rb#279 + # source://csv//lib/csv/row.rb#284 def member?(header); end # :call-seq: @@ -3646,6 +3794,12 @@ class CSV::Row # source://csv//lib/csv/row.rb#410 def push(*args); end + # source://csv//lib/csv/row.rb#124 + def size(*args, **_arg1, &block); end + + # source://csv//lib/csv/row.rb#675 + def to_ary(*_arg0); end + # :call-seq: # row.to_csv -> csv_string # @@ -3693,7 +3847,7 @@ class CSV::Row # row = table[0] # row.to_h # => {"Name"=>"Foo"} # - # source://csv//lib/csv/row.rb#653 + # source://csv//lib/csv/row.rb#660 def to_hash; end # :call-seq: @@ -3705,7 +3859,7 @@ class CSV::Row # row = table[0] # row.to_csv # => "foo,0\n" # - # source://csv//lib/csv/row.rb#694 + # source://csv//lib/csv/row.rb#697 def to_s(**options); end # :call-seq: @@ -3755,7 +3909,7 @@ class CSV::Row # Returns all fields if no argument given: # row.fields # => ["Foo", "Bar", "Baz"] # - # source://csv//lib/csv/row.rb#530 + # source://csv//lib/csv/row.rb#551 def values_at(*headers_and_or_indices); end protected @@ -4533,6 +4687,9 @@ class CSV::Table # source://csv//lib/csv/table.rb#930 def each(&block); end + # source://csv//lib/csv/table.rb#223 + def empty?(*args, **_arg1, &block); end + # :call-seq: # table.headers -> array_of_headers # @@ -4574,6 +4731,9 @@ class CSV::Table # source://csv//lib/csv/table.rb#1048 def inspect; end + # source://csv//lib/csv/table.rb#223 + def length(*args, **_arg1, &block); end + # The current access mode for indexing and iteration. # # source://csv//lib/csv/table.rb#214 @@ -4598,6 +4758,9 @@ class CSV::Table # source://csv//lib/csv/table.rb#788 def push(*rows); end + # source://csv//lib/csv/table.rb#223 + def size(*args, **_arg1, &block); end + # :call-seq: # table.to_a -> array_of_arrays # @@ -4649,7 +4812,7 @@ class CSV::Table # Limit rows if option +limit+ is given like +2+: # table.to_csv(limit: 2) # => "Name,Value\nfoo,0\nbar,1\n" # - # source://csv//lib/csv/table.rb#1004 + # source://csv//lib/csv/table.rb#1015 def to_s(write_headers: T.unsafe(nil), limit: T.unsafe(nil), **options); end # :call-seq: diff --git a/Library/Homebrew/sorbet/rbi/gems/parallel_tests@5.2.0.rbi b/Library/Homebrew/sorbet/rbi/gems/parallel_tests@5.3.0.rbi similarity index 92% rename from Library/Homebrew/sorbet/rbi/gems/parallel_tests@5.2.0.rbi rename to Library/Homebrew/sorbet/rbi/gems/parallel_tests@5.3.0.rbi index 045411b7f9..94358b7e40 100644 --- a/Library/Homebrew/sorbet/rbi/gems/parallel_tests@5.2.0.rbi +++ b/Library/Homebrew/sorbet/rbi/gems/parallel_tests@5.3.0.rbi @@ -78,36 +78,39 @@ class ParallelTests::CLI # source://parallel_tests//lib/parallel_tests/cli.rb#189 def any_test_failed?(test_results); end - # source://parallel_tests//lib/parallel_tests/cli.rb#375 + # source://parallel_tests//lib/parallel_tests/cli.rb#401 def append_test_options(options, argv); end - # source://parallel_tests//lib/parallel_tests/cli.rb#416 + # source://parallel_tests//lib/parallel_tests/cli.rb#442 def detailed_duration(seconds); end - # source://parallel_tests//lib/parallel_tests/cli.rb#390 + # source://parallel_tests//lib/parallel_tests/cli.rb#416 def execute_command_in_parallel(command, num_processes, options); end # source://parallel_tests//lib/parallel_tests/cli.rb#56 def execute_in_parallel(items, num_processes, options); end - # source://parallel_tests//lib/parallel_tests/cli.rb#364 + # source://parallel_tests//lib/parallel_tests/cli.rb#390 def extract_file_paths(argv); end - # source://parallel_tests//lib/parallel_tests/cli.rb#370 + # source://parallel_tests//lib/parallel_tests/cli.rb#396 def extract_test_options(argv); end - # source://parallel_tests//lib/parallel_tests/cli.rb#423 + # source://parallel_tests//lib/parallel_tests/cli.rb#449 def final_fail_message; end # @return [Boolean] # - # source://parallel_tests//lib/parallel_tests/cli.rb#433 + # source://parallel_tests//lib/parallel_tests/cli.rb#459 def first_is_1?; end # source://parallel_tests//lib/parallel_tests/cli.rb#31 def handle_interrupt; end - # source://parallel_tests//lib/parallel_tests/cli.rb#383 + # source://parallel_tests//lib/parallel_tests/cli.rb#482 + def heredoc(text, newline_padding); end + + # source://parallel_tests//lib/parallel_tests/cli.rb#409 def load_runner(type); end # source://parallel_tests//lib/parallel_tests/cli.rb#138 @@ -128,7 +131,7 @@ class ParallelTests::CLI # source://parallel_tests//lib/parallel_tests/cli.rb#148 def report_results(test_results, options); end - # source://parallel_tests//lib/parallel_tests/cli.rb#411 + # source://parallel_tests//lib/parallel_tests/cli.rb#437 def report_time_taken(&block); end # source://parallel_tests//lib/parallel_tests/cli.rb#130 @@ -142,12 +145,12 @@ class ParallelTests::CLI # CI systems often fail when there is no output for a long time, so simulate some output # - # source://parallel_tests//lib/parallel_tests/cli.rb#439 + # source://parallel_tests//lib/parallel_tests/cli.rb#465 def simulate_output_for_ci(simulate); end # @return [Boolean] # - # source://parallel_tests//lib/parallel_tests/cli.rb#429 + # source://parallel_tests//lib/parallel_tests/cli.rb#455 def use_colors?; end end diff --git a/Library/Homebrew/sorbet/rbi/gems/rbi@0.3.3.rbi b/Library/Homebrew/sorbet/rbi/gems/rbi@0.3.6.rbi similarity index 65% rename from Library/Homebrew/sorbet/rbi/gems/rbi@0.3.3.rbi rename to Library/Homebrew/sorbet/rbi/gems/rbi@0.3.6.rbi index f60986ffae..fa14e8723a 100644 --- a/Library/Homebrew/sorbet/rbi/gems/rbi@0.3.3.rbi +++ b/Library/Homebrew/sorbet/rbi/gems/rbi@0.3.6.rbi @@ -11,53 +11,41 @@ # This is an autogenerated file for types exported from the `rbi` gem. # Please instead update this file by running `spoom srb sigs export`. -# source://rbi//lib/rbi.rb#8 +# source://rbi//lib/rbi.rb#7 module RBI; end -# source://rbi//lib/rbi/model.rb#804 +# source://rbi//lib/rbi/model.rb#783 class RBI::Arg < ::RBI::Node - # : (String value, ?loc: Loc?) -> void - # # @return [Arg] a new instance of Arg # - # source://rbi//lib/rbi/model.rb#809 + # source://rbi//lib/rbi/model.rb#788 sig { params(value: ::String, loc: T.nilable(::RBI::Loc)).void } def initialize(value, loc: T.unsafe(nil)); end - # : (Object? other) -> bool - # - # source://rbi//lib/rbi/model.rb#815 + # source://rbi//lib/rbi/model.rb#794 sig { params(other: T.nilable(::Object)).returns(T::Boolean) } def ==(other); end - # : -> String - # - # source://rbi//lib/rbi/model.rb#820 + # source://rbi//lib/rbi/model.rb#799 sig { returns(::String) } def to_s; end - # : String - # - # source://rbi//lib/rbi/model.rb#806 + # source://rbi//lib/rbi/model.rb#785 sig { returns(::String) } def value; end end -# Attributes +# @abstract # -# @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. -# -# source://rbi//lib/rbi/model.rb#300 +# source://rbi//lib/rbi/model.rb#292 class RBI::Attr < ::RBI::NodeWithComments include ::RBI::Indexable abstract! - # : (Symbol name, Array[Symbol] names, ?visibility: Visibility, ?sigs: Array[Sig], ?loc: Loc?, ?comments: Array[Comment]) -> void - # # @return [Attr] a new instance of Attr # - # source://rbi//lib/rbi/model.rb#316 + # source://rbi//lib/rbi/model.rb#303 sig do params( name: ::Symbol, @@ -70,67 +58,50 @@ class RBI::Attr < ::RBI::NodeWithComments end def initialize(name, names, visibility: T.unsafe(nil), sigs: T.unsafe(nil), loc: T.unsafe(nil), comments: T.unsafe(nil)); end - # : (Node other) -> bool - # # @return [Boolean] # - # source://rbi//lib/rbi/rewriters/merge_trees.rb#394 + # source://rbi//lib/rbi/rewriters/merge_trees.rb#403 sig { override.params(other: ::RBI::Node).returns(T::Boolean) } def compatible_with?(other); end # @abstract # - # source://rbi//lib/rbi/rewriters/attr_to_methods.rb#58 + # source://rbi//lib/rbi/rewriters/attr_to_methods.rb#59 sig { abstract.returns(T::Array[::RBI::Method]) } def convert_to_methods; end # @abstract # - # source://rbi//lib/rbi/model.rb#324 + # source://rbi//lib/rbi/model.rb#312 sig { abstract.returns(T::Array[::String]) } def fully_qualified_names; end - # : -> Array[String] - # - # source://rbi//lib/rbi/index.rb#109 + # source://rbi//lib/rbi/index.rb#104 sig { override.returns(T::Array[::String]) } def index_ids; end - # : (Node other) -> void - # - # source://rbi//lib/rbi/rewriters/merge_trees.rb#403 + # source://rbi//lib/rbi/rewriters/merge_trees.rb#412 sig { override.params(other: ::RBI::Node).void } def merge_with(other); end - # : Array[Symbol] - # - # source://rbi//lib/rbi/model.rb#307 + # source://rbi//lib/rbi/model.rb#294 sig { returns(T::Array[::Symbol]) } def names; end - # : Array[Sig] - # - # source://rbi//lib/rbi/model.rb#313 + # source://rbi//lib/rbi/model.rb#300 sig { returns(T::Array[::RBI::Sig]) } def sigs; end - # : Visibility - # - # source://rbi//lib/rbi/model.rb#310 + # source://rbi//lib/rbi/model.rb#297 sig { returns(::RBI::Visibility) } def visibility; end - # : Visibility - # - # source://rbi//lib/rbi/model.rb#310 - # @return [Visibility] + # source://rbi//lib/rbi/model.rb#297 def visibility=(_arg0); end private - # : (String name, Sig? sig, Visibility visibility, Loc? loc, Array[Comment] comments) -> Method - # - # source://rbi//lib/rbi/rewriters/attr_to_methods.rb#79 + # source://rbi//lib/rbi/rewriters/attr_to_methods.rb#80 sig do params( name: ::String, @@ -142,9 +113,7 @@ class RBI::Attr < ::RBI::NodeWithComments end def create_getter_method(name, sig, visibility, loc, comments); end - # : (String name, Sig? sig, (Type | String)? attribute_type, Visibility visibility, Loc? loc, Array[Comment] comments) -> Method - # - # source://rbi//lib/rbi/rewriters/attr_to_methods.rb#91 + # source://rbi//lib/rbi/rewriters/attr_to_methods.rb#92 sig do params( name: ::String, @@ -157,22 +126,18 @@ class RBI::Attr < ::RBI::NodeWithComments end def create_setter_method(name, sig, attribute_type, visibility, loc, comments); end - # : -> [Sig?, (Type | String)?] - # # @raise [UnexpectedMultipleSigsError] # - # source://rbi//lib/rbi/rewriters/attr_to_methods.rb#64 + # source://rbi//lib/rbi/rewriters/attr_to_methods.rb#65 sig(:final) { returns([T.nilable(::RBI::Sig), T.nilable(T.any(::RBI::Type, ::String))]) } def parse_sig; end end -# source://rbi//lib/rbi/model.rb#327 +# source://rbi//lib/rbi/model.rb#315 class RBI::AttrAccessor < ::RBI::Attr - # : (Symbol name, *Symbol names, ?visibility: Visibility, ?sigs: Array[Sig], ?loc: Loc?, ?comments: Array[Comment]) ?{ (AttrAccessor node) -> void } -> void - # # @return [AttrAccessor] a new instance of AttrAccessor # - # source://rbi//lib/rbi/model.rb#329 + # source://rbi//lib/rbi/model.rb#317 sig do params( name: ::Symbol, @@ -186,40 +151,30 @@ class RBI::AttrAccessor < ::RBI::Attr end def initialize(name, *names, visibility: T.unsafe(nil), sigs: T.unsafe(nil), loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end - # : (Node other) -> bool - # # @return [Boolean] # - # source://rbi//lib/rbi/rewriters/merge_trees.rb#432 + # source://rbi//lib/rbi/rewriters/merge_trees.rb#441 sig { override.params(other: ::RBI::Node).returns(T::Boolean) } def compatible_with?(other); end - # : -> Array[Method] - # - # source://rbi//lib/rbi/rewriters/attr_to_methods.rb#122 + # source://rbi//lib/rbi/rewriters/attr_to_methods.rb#123 sig { override.returns(T::Array[::RBI::Method]) } def convert_to_methods; end - # : -> Array[String] - # - # source://rbi//lib/rbi/model.rb#336 + # source://rbi//lib/rbi/model.rb#324 sig { override.returns(T::Array[::String]) } def fully_qualified_names; end - # : -> String - # - # source://rbi//lib/rbi/model.rb#343 + # source://rbi//lib/rbi/model.rb#331 sig { override.returns(::String) } def to_s; end end -# source://rbi//lib/rbi/model.rb#349 +# source://rbi//lib/rbi/model.rb#337 class RBI::AttrReader < ::RBI::Attr - # : (Symbol name, *Symbol names, ?visibility: Visibility, ?sigs: Array[Sig], ?loc: Loc?, ?comments: Array[Comment]) ?{ (AttrReader node) -> void } -> void - # # @return [AttrReader] a new instance of AttrReader # - # source://rbi//lib/rbi/model.rb#351 + # source://rbi//lib/rbi/model.rb#339 sig do params( name: ::Symbol, @@ -233,40 +188,30 @@ class RBI::AttrReader < ::RBI::Attr end def initialize(name, *names, visibility: T.unsafe(nil), sigs: T.unsafe(nil), loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end - # : (Node other) -> bool - # # @return [Boolean] # - # source://rbi//lib/rbi/rewriters/merge_trees.rb#416 + # source://rbi//lib/rbi/rewriters/merge_trees.rb#425 sig { override.params(other: ::RBI::Node).returns(T::Boolean) } def compatible_with?(other); end - # : -> Array[Method] - # - # source://rbi//lib/rbi/rewriters/attr_to_methods.rb#137 + # source://rbi//lib/rbi/rewriters/attr_to_methods.rb#138 sig { override.returns(T::Array[::RBI::Method]) } def convert_to_methods; end - # : -> Array[String] - # - # source://rbi//lib/rbi/model.rb#358 + # source://rbi//lib/rbi/model.rb#346 sig { override.returns(T::Array[::String]) } def fully_qualified_names; end - # : -> String - # - # source://rbi//lib/rbi/model.rb#365 + # source://rbi//lib/rbi/model.rb#353 sig { override.returns(::String) } def to_s; end end -# source://rbi//lib/rbi/model.rb#371 +# source://rbi//lib/rbi/model.rb#359 class RBI::AttrWriter < ::RBI::Attr - # : (Symbol name, *Symbol names, ?visibility: Visibility, ?sigs: Array[Sig], ?loc: Loc?, ?comments: Array[Comment]) ?{ (AttrWriter node) -> void } -> void - # # @return [AttrWriter] a new instance of AttrWriter # - # source://rbi//lib/rbi/model.rb#373 + # source://rbi//lib/rbi/model.rb#361 sig do params( name: ::Symbol, @@ -280,53 +225,41 @@ class RBI::AttrWriter < ::RBI::Attr end def initialize(name, *names, visibility: T.unsafe(nil), sigs: T.unsafe(nil), loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end - # : (Node other) -> bool - # # @return [Boolean] # - # source://rbi//lib/rbi/rewriters/merge_trees.rb#424 + # source://rbi//lib/rbi/rewriters/merge_trees.rb#433 sig { override.params(other: ::RBI::Node).returns(T::Boolean) } def compatible_with?(other); end - # : -> Array[Method] - # - # source://rbi//lib/rbi/rewriters/attr_to_methods.rb#147 + # source://rbi//lib/rbi/rewriters/attr_to_methods.rb#148 sig { override.returns(T::Array[::RBI::Method]) } def convert_to_methods; end - # : -> Array[String] - # - # source://rbi//lib/rbi/model.rb#380 + # source://rbi//lib/rbi/model.rb#368 sig { override.returns(T::Array[::String]) } def fully_qualified_names; end - # : -> String - # - # source://rbi//lib/rbi/model.rb#387 + # source://rbi//lib/rbi/model.rb#375 sig { override.returns(::String) } def to_s; end end # An arbitrary blank line that can be added both in trees and comments # -# source://rbi//lib/rbi/model.rb#73 +# source://rbi//lib/rbi/model.rb#70 class RBI::BlankLine < ::RBI::Comment - # : (?loc: Loc?) -> void - # # @return [BlankLine] a new instance of BlankLine # - # source://rbi//lib/rbi/model.rb#75 + # source://rbi//lib/rbi/model.rb#72 sig { params(loc: T.nilable(::RBI::Loc)).void } def initialize(loc: T.unsafe(nil)); end end -# source://rbi//lib/rbi/model.rb#644 +# source://rbi//lib/rbi/model.rb#629 class RBI::BlockParam < ::RBI::Param - # : (String name, ?loc: Loc?, ?comments: Array[Comment]) ?{ (BlockParam node) -> void } -> void - # # @return [BlockParam] a new instance of BlockParam # - # source://rbi//lib/rbi/model.rb#646 + # source://rbi//lib/rbi/model.rb#631 sig do params( name: ::String, @@ -337,26 +270,20 @@ class RBI::BlockParam < ::RBI::Param end def initialize(name, loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end - # : (Object? other) -> bool - # - # source://rbi//lib/rbi/model.rb#658 + # source://rbi//lib/rbi/model.rb#643 sig { params(other: T.nilable(::Object)).returns(T::Boolean) } def ==(other); end - # : -> String - # - # source://rbi//lib/rbi/model.rb#653 + # source://rbi//lib/rbi/model.rb#638 sig { override.returns(::String) } def to_s; end end -# source://rbi//lib/rbi/model.rb#204 +# source://rbi//lib/rbi/model.rb#195 class RBI::Class < ::RBI::Scope - # : (String name, ?superclass_name: String?, ?loc: Loc?, ?comments: Array[Comment]) ?{ (Class node) -> void } -> void - # # @return [Class] a new instance of Class # - # source://rbi//lib/rbi/model.rb#212 + # source://rbi//lib/rbi/model.rb#203 sig do params( name: ::String, @@ -368,71 +295,48 @@ class RBI::Class < ::RBI::Scope end def initialize(name, superclass_name: T.unsafe(nil), loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end - # : (Node other) -> bool - # # @return [Boolean] # - # source://rbi//lib/rbi/rewriters/merge_trees.rb#362 + # source://rbi//lib/rbi/rewriters/merge_trees.rb#371 sig { override.params(other: ::RBI::Node).returns(T::Boolean) } def compatible_with?(other); end - # : -> String - # - # source://rbi//lib/rbi/model.rb#221 + # source://rbi//lib/rbi/model.rb#212 sig { override.returns(::String) } def fully_qualified_name; end - # : String - # - # source://rbi//lib/rbi/model.rb#206 + # source://rbi//lib/rbi/model.rb#197 sig { returns(::String) } def name; end - # : String - # - # source://rbi//lib/rbi/model.rb#206 - # @return [String] + # source://rbi//lib/rbi/model.rb#197 def name=(_arg0); end - # : String? - # - # source://rbi//lib/rbi/model.rb#209 + # source://rbi//lib/rbi/model.rb#200 sig { returns(T.nilable(::String)) } def superclass_name; end - # : String? - # - # source://rbi//lib/rbi/model.rb#209 - # @return [String, nil] + # source://rbi//lib/rbi/model.rb#200 def superclass_name=(_arg0); end end -# source://rbi//lib/rbi/model.rb#54 +# source://rbi//lib/rbi/model.rb#51 class RBI::Comment < ::RBI::Node - # : (String text, ?loc: Loc?) -> void - # # @return [Comment] a new instance of Comment # - # source://rbi//lib/rbi/model.rb#59 + # source://rbi//lib/rbi/model.rb#56 sig { params(text: ::String, loc: T.nilable(::RBI::Loc)).void } def initialize(text, loc: T.unsafe(nil)); end - # : (Object other) -> bool - # - # source://rbi//lib/rbi/model.rb#65 + # source://rbi//lib/rbi/model.rb#62 sig { params(other: ::Object).returns(T::Boolean) } def ==(other); end - # : String - # - # source://rbi//lib/rbi/model.rb#56 + # source://rbi//lib/rbi/model.rb#53 sig { returns(::String) } def text; end - # : String - # - # source://rbi//lib/rbi/model.rb#56 - # @return [String] + # source://rbi//lib/rbi/model.rb#53 def text=(_arg0); end end @@ -451,64 +355,38 @@ end # end # ~~~ # -# source://rbi//lib/rbi/rewriters/merge_trees.rb#546 -# A tree showing incompatibles nodes -# Is rendered as a merge conflict between `left` and` right`: -# ~~~rb -# class Foo -# <<<<<<< left -# def m1; end -# def m2(a); end -# ======= -# def m1(a); end -# def m2; end -# >>>>>>> right -# end +# source://rbi//lib/rbi/rewriters/merge_trees.rb#555 class RBI::ConflictTree < ::RBI::Tree - # : (?left_name: String, ?right_name: String) -> void - # # @return [ConflictTree] a new instance of ConflictTree # - # source://rbi//lib/rbi/rewriters/merge_trees.rb#554 + # source://rbi//lib/rbi/rewriters/merge_trees.rb#563 sig { params(left_name: ::String, right_name: ::String).void } def initialize(left_name: T.unsafe(nil), right_name: T.unsafe(nil)); end - # : Tree - # - # source://rbi//lib/rbi/rewriters/merge_trees.rb#548 + # source://rbi//lib/rbi/rewriters/merge_trees.rb#557 sig { returns(::RBI::Tree) } def left; end - # : String - # - # source://rbi//lib/rbi/rewriters/merge_trees.rb#551 + # source://rbi//lib/rbi/rewriters/merge_trees.rb#560 sig { returns(::String) } def left_name; end - # : Tree - # - # source://rbi//lib/rbi/rewriters/merge_trees.rb#548 - # @return [Tree] + # source://rbi//lib/rbi/rewriters/merge_trees.rb#557 def right; end - # : String - # - # source://rbi//lib/rbi/rewriters/merge_trees.rb#551 - # @return [String] + # source://rbi//lib/rbi/rewriters/merge_trees.rb#560 def right_name; end end # Consts # -# source://rbi//lib/rbi/model.rb#272 +# source://rbi//lib/rbi/model.rb#263 class RBI::Const < ::RBI::NodeWithComments include ::RBI::Indexable - # : (String name, String value, ?loc: Loc?, ?comments: Array[Comment]) ?{ (Const node) -> void } -> void - # # @return [Const] a new instance of Const # - # source://rbi//lib/rbi/model.rb#277 + # source://rbi//lib/rbi/model.rb#268 sig do params( name: ::String, @@ -520,60 +398,45 @@ class RBI::Const < ::RBI::NodeWithComments end def initialize(name, value, loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end - # : (Node other) -> bool - # # @return [Boolean] # - # source://rbi//lib/rbi/rewriters/merge_trees.rb#386 + # source://rbi//lib/rbi/rewriters/merge_trees.rb#395 sig { override.params(other: ::RBI::Node).returns(T::Boolean) } def compatible_with?(other); end - # : -> String - # - # source://rbi//lib/rbi/model.rb#285 + # source://rbi//lib/rbi/model.rb#276 sig { returns(::String) } def fully_qualified_name; end - # : -> Array[String] - # - # source://rbi//lib/rbi/index.rb#99 + # source://rbi//lib/rbi/index.rb#94 sig { override.returns(T::Array[::String]) } def index_ids; end - # : String - # - # source://rbi//lib/rbi/model.rb#274 + # source://rbi//lib/rbi/model.rb#265 sig { returns(::String) } def name; end - # : -> String - # - # source://rbi//lib/rbi/model.rb#293 + # source://rbi//lib/rbi/model.rb#284 sig { override.returns(::String) } def to_s; end - # : String - # - # source://rbi//lib/rbi/model.rb#274 - # @return [String] + # source://rbi//lib/rbi/model.rb#265 def value; end end -# source://rbi//lib/rbi/rewriters/merge_trees.rb#332 +# source://rbi//lib/rbi/rewriters/merge_trees.rb#341 class RBI::DuplicateNodeError < ::RBI::Error; end -# source://rbi//lib/rbi.rb#9 +# source://rbi//lib/rbi.rb#8 class RBI::Error < ::StandardError; end -# source://rbi//lib/rbi/model.rb#694 +# source://rbi//lib/rbi/model.rb#676 class RBI::Extend < ::RBI::Mixin include ::RBI::Indexable - # : (String name, *String names, ?loc: Loc?, ?comments: Array[Comment]) ?{ (Extend node) -> void } -> void - # # @return [Extend] a new instance of Extend # - # source://rbi//lib/rbi/model.rb#696 + # source://rbi//lib/rbi/model.rb#678 sig do params( name: ::String, @@ -585,34 +448,26 @@ class RBI::Extend < ::RBI::Mixin end def initialize(name, *names, loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end - # : (Node other) -> bool - # # @return [Boolean] # - # source://rbi//lib/rbi/rewriters/merge_trees.rb#479 + # source://rbi//lib/rbi/rewriters/merge_trees.rb#488 sig { override.params(other: ::RBI::Node).returns(T::Boolean) } def compatible_with?(other); end - # : -> Array[String] - # - # source://rbi//lib/rbi/index.rb#139 + # source://rbi//lib/rbi/index.rb#134 sig { override.returns(T::Array[::String]) } def index_ids; end - # : -> String - # - # source://rbi//lib/rbi/model.rb#703 + # source://rbi//lib/rbi/model.rb#685 sig { override.returns(::String) } def to_s; end end -# source://rbi//lib/rbi/model.rb#137 +# source://rbi//lib/rbi/model.rb#131 class RBI::File - # : (?strictness: String?, ?comments: Array[Comment]) ?{ (File file) -> void } -> void - # # @return [File] a new instance of File # - # source://rbi//lib/rbi/model.rb#148 + # source://rbi//lib/rbi/model.rb#142 sig do params( strictness: T.nilable(::String), @@ -622,34 +477,23 @@ class RBI::File end def initialize(strictness: T.unsafe(nil), comments: T.unsafe(nil), &block); end - # : (Node node) -> void - # - # source://rbi//lib/rbi/model.rb#156 + # source://rbi//lib/rbi/model.rb#150 sig { params(node: ::RBI::Node).void } def <<(node); end - # : Array[Comment] - # - # source://rbi//lib/rbi/model.rb#145 + # source://rbi//lib/rbi/model.rb#139 sig { returns(T::Array[::RBI::Comment]) } def comments; end - # : Array[Comment] - # - # source://rbi//lib/rbi/model.rb#145 - # @return [Array] + # source://rbi//lib/rbi/model.rb#139 def comments=(_arg0); end - # : -> bool - # # @return [Boolean] # - # source://rbi//lib/rbi/model.rb#161 + # source://rbi//lib/rbi/model.rb#155 sig { returns(T::Boolean) } def empty?; end - # : (?out: (IO | StringIO), ?indent: Integer, ?print_locs: bool, ?max_line_length: Integer?) -> void - # # source://rbi//lib/rbi/printer.rb#817 sig do params( @@ -661,44 +505,28 @@ class RBI::File end def print(out: T.unsafe(nil), indent: T.unsafe(nil), print_locs: T.unsafe(nil), max_line_length: T.unsafe(nil)); end - # : (?out: (IO | StringIO), ?indent: Integer, ?print_locs: bool) -> void - # - # source://rbi//lib/rbi/rbs_printer.rb#1116 + # source://rbi//lib/rbi/rbs_printer.rb#1210 sig { params(out: T.any(::IO, ::StringIO), indent: ::Integer, print_locs: T::Boolean).void } def rbs_print(out: T.unsafe(nil), indent: T.unsafe(nil), print_locs: T.unsafe(nil)); end - # : (?indent: Integer, ?print_locs: bool) -> String - # - # source://rbi//lib/rbi/rbs_printer.rb#1122 + # source://rbi//lib/rbi/rbs_printer.rb#1216 sig { params(indent: ::Integer, print_locs: T::Boolean).returns(::String) } def rbs_string(indent: T.unsafe(nil), print_locs: T.unsafe(nil)); end - # : Tree - # - # source://rbi//lib/rbi/model.rb#139 + # source://rbi//lib/rbi/model.rb#133 sig { returns(::RBI::Tree) } def root; end - # : Tree - # - # source://rbi//lib/rbi/model.rb#139 - # @return [Tree] + # source://rbi//lib/rbi/model.rb#133 def root=(_arg0); end - # : String? - # - # source://rbi//lib/rbi/model.rb#142 + # source://rbi//lib/rbi/model.rb#136 sig { returns(T.nilable(::String)) } def strictness; end - # : String? - # - # source://rbi//lib/rbi/model.rb#142 - # @return [String, nil] + # source://rbi//lib/rbi/model.rb#136 def strictness=(_arg0); end - # : (?indent: Integer, ?print_locs: bool, ?max_line_length: Integer?) -> String - # # source://rbi//lib/rbi/printer.rb#823 sig { params(indent: ::Integer, print_locs: T::Boolean, max_line_length: T.nilable(::Integer)).returns(::String) } def string(indent: T.unsafe(nil), print_locs: T.unsafe(nil), max_line_length: T.unsafe(nil)); end @@ -706,8 +534,6 @@ end # source://rbi//lib/rbi/formatter.rb#5 class RBI::Formatter - # : (?add_sig_templates: bool, ?group_nodes: bool, ?max_line_length: Integer?, ?nest_singleton_methods: bool, ?nest_non_public_members: bool, ?sort_nodes: bool, ?replace_attributes_with_methods: bool) -> void - # # @return [Formatter] a new instance of Formatter # # source://rbi//lib/rbi/formatter.rb#10 @@ -724,32 +550,21 @@ class RBI::Formatter end def initialize(add_sig_templates: T.unsafe(nil), group_nodes: T.unsafe(nil), max_line_length: T.unsafe(nil), nest_singleton_methods: T.unsafe(nil), nest_non_public_members: T.unsafe(nil), sort_nodes: T.unsafe(nil), replace_attributes_with_methods: T.unsafe(nil)); end - # : (RBI::File file) -> void - # # source://rbi//lib/rbi/formatter.rb#35 sig { params(file: ::RBI::File).void } def format_file(file); end - # : (RBI::Tree tree) -> void - # # source://rbi//lib/rbi/formatter.rb#40 sig { params(tree: ::RBI::Tree).void } def format_tree(tree); end - # : Integer? - # # source://rbi//lib/rbi/formatter.rb#7 sig { returns(T.nilable(::Integer)) } def max_line_length; end - # : Integer? - # # source://rbi//lib/rbi/formatter.rb#7 - # @return [Integer, nil] def max_line_length=(_arg0); end - # : (RBI::File file) -> String - # # source://rbi//lib/rbi/formatter.rb#29 sig { params(file: ::RBI::File).returns(::String) } def print_file(file); end @@ -757,54 +572,78 @@ end # source://rbi//lib/rbi/rewriters/group_nodes.rb#84 class RBI::Group < ::RBI::Tree - # : (Kind kind) -> void - # # @return [Group] a new instance of Group # # source://rbi//lib/rbi/rewriters/group_nodes.rb#89 sig { params(kind: ::RBI::Group::Kind).void } def initialize(kind); end - # : Kind - # # source://rbi//lib/rbi/rewriters/group_nodes.rb#86 sig { returns(::RBI::Group::Kind) } def kind; end end # source://rbi//lib/rbi/rewriters/group_nodes.rb#94 -class RBI::Group::Kind < ::T::Enum - enums do - Attrs = new - Consts = new - Helpers = new - Inits = new - Methods = new - MixesInClassMethods = new - Mixins = new - RequiredAncestors = new - Sends = new - SingletonClasses = new - TEnums = new - TStructFields = new - TypeMembers = new +class RBI::Group::Kind + class << self + private + + # source://rbi//lib/rbi/rewriters/group_nodes.rb#109 + def new(*_arg0); end end end +# source://rbi//lib/rbi/rewriters/group_nodes.rb#101 +RBI::Group::Kind::Attrs = T.let(T.unsafe(nil), RBI::Group::Kind) + +# source://rbi//lib/rbi/rewriters/group_nodes.rb#107 +RBI::Group::Kind::Consts = T.let(T.unsafe(nil), RBI::Group::Kind) + +# source://rbi//lib/rbi/rewriters/group_nodes.rb#97 +RBI::Group::Kind::Helpers = T.let(T.unsafe(nil), RBI::Group::Kind) + +# source://rbi//lib/rbi/rewriters/group_nodes.rb#104 +RBI::Group::Kind::Inits = T.let(T.unsafe(nil), RBI::Group::Kind) + +# source://rbi//lib/rbi/rewriters/group_nodes.rb#105 +RBI::Group::Kind::Methods = T.let(T.unsafe(nil), RBI::Group::Kind) + +# source://rbi//lib/rbi/rewriters/group_nodes.rb#99 +RBI::Group::Kind::MixesInClassMethods = T.let(T.unsafe(nil), RBI::Group::Kind) + +# source://rbi//lib/rbi/rewriters/group_nodes.rb#95 +RBI::Group::Kind::Mixins = T.let(T.unsafe(nil), RBI::Group::Kind) + +# source://rbi//lib/rbi/rewriters/group_nodes.rb#96 +RBI::Group::Kind::RequiredAncestors = T.let(T.unsafe(nil), RBI::Group::Kind) + +# source://rbi//lib/rbi/rewriters/group_nodes.rb#100 +RBI::Group::Kind::Sends = T.let(T.unsafe(nil), RBI::Group::Kind) + +# source://rbi//lib/rbi/rewriters/group_nodes.rb#106 +RBI::Group::Kind::SingletonClasses = T.let(T.unsafe(nil), RBI::Group::Kind) + +# source://rbi//lib/rbi/rewriters/group_nodes.rb#103 +RBI::Group::Kind::TEnums = T.let(T.unsafe(nil), RBI::Group::Kind) + +# source://rbi//lib/rbi/rewriters/group_nodes.rb#102 +RBI::Group::Kind::TStructFields = T.let(T.unsafe(nil), RBI::Group::Kind) + +# source://rbi//lib/rbi/rewriters/group_nodes.rb#98 +RBI::Group::Kind::TypeMembers = T.let(T.unsafe(nil), RBI::Group::Kind) + # source://rbi//lib/rbi/rewriters/group_nodes.rb#5 class RBI::GroupNodesError < ::RBI::Error; end # Sorbet's misc. # -# source://rbi//lib/rbi/model.rb#1069 +# source://rbi//lib/rbi/model.rb#1045 class RBI::Helper < ::RBI::NodeWithComments include ::RBI::Indexable - # : (String name, ?loc: Loc?, ?comments: Array[Comment]) ?{ (Helper node) -> void } -> void - # # @return [Helper] a new instance of Helper # - # source://rbi//lib/rbi/model.rb#1074 + # source://rbi//lib/rbi/model.rb#1050 sig do params( name: ::String, @@ -815,42 +654,32 @@ class RBI::Helper < ::RBI::NodeWithComments end def initialize(name, loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end - # : (Node other) -> bool - # # @return [Boolean] # - # source://rbi//lib/rbi/rewriters/merge_trees.rb#495 + # source://rbi//lib/rbi/rewriters/merge_trees.rb#504 sig { override.params(other: ::RBI::Node).returns(T::Boolean) } def compatible_with?(other); end - # : -> Array[String] - # - # source://rbi//lib/rbi/index.rb#169 + # source://rbi//lib/rbi/index.rb#164 sig { override.returns(T::Array[::String]) } def index_ids; end - # : String - # - # source://rbi//lib/rbi/model.rb#1071 + # source://rbi//lib/rbi/model.rb#1047 sig { returns(::String) } def name; end - # : -> String - # - # source://rbi//lib/rbi/model.rb#1082 + # source://rbi//lib/rbi/model.rb#1058 sig { override.returns(::String) } def to_s; end end -# source://rbi//lib/rbi/model.rb#680 +# source://rbi//lib/rbi/model.rb#662 class RBI::Include < ::RBI::Mixin include ::RBI::Indexable - # : (String name, *String names, ?loc: Loc?, ?comments: Array[Comment]) ?{ (Include node) -> void } -> void - # # @return [Include] a new instance of Include # - # source://rbi//lib/rbi/model.rb#682 + # source://rbi//lib/rbi/model.rb#664 sig do params( name: ::String, @@ -862,73 +691,53 @@ class RBI::Include < ::RBI::Mixin end def initialize(name, *names, loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end - # : (Node other) -> bool - # # @return [Boolean] # - # source://rbi//lib/rbi/rewriters/merge_trees.rb#471 + # source://rbi//lib/rbi/rewriters/merge_trees.rb#480 sig { override.params(other: ::RBI::Node).returns(T::Boolean) } def compatible_with?(other); end - # : -> Array[String] - # - # source://rbi//lib/rbi/index.rb#129 + # source://rbi//lib/rbi/index.rb#124 sig { override.returns(T::Array[::String]) } def index_ids; end - # : -> String - # - # source://rbi//lib/rbi/model.rb#689 + # source://rbi//lib/rbi/model.rb#671 sig { override.returns(::String) } def to_s; end end # source://rbi//lib/rbi/index.rb#5 class RBI::Index < ::RBI::Visitor - # : -> void - # # @return [Index] a new instance of Index # - # source://rbi//lib/rbi/index.rb#18 + # source://rbi//lib/rbi/index.rb#16 sig { void } def initialize; end - # : (String id) -> Array[Node] - # - # source://rbi//lib/rbi/index.rb#29 + # source://rbi//lib/rbi/index.rb#27 sig { params(id: ::String).returns(T::Array[::RBI::Node]) } def [](id); end - # : (*Node nodes) -> void - # - # source://rbi//lib/rbi/index.rb#34 + # source://rbi//lib/rbi/index.rb#32 sig { params(nodes: ::RBI::Node).void } def index(*nodes); end - # : -> Array[String] - # - # source://rbi//lib/rbi/index.rb#24 + # source://rbi//lib/rbi/index.rb#22 sig { returns(T::Array[::String]) } def keys; end - # : (Node? node) -> void - # - # source://rbi//lib/rbi/index.rb#40 + # source://rbi//lib/rbi/index.rb#38 sig { override.params(node: T.nilable(::RBI::Node)).void } def visit(node); end private - # : ((Indexable & Node) node) -> void - # - # source://rbi//lib/rbi/index.rb#57 + # source://rbi//lib/rbi/index.rb#55 sig { params(node: T.all(::RBI::Indexable, ::RBI::Node)).void } def index_node(node); end class << self - # : (*Node node) -> Index - # - # source://rbi//lib/rbi/index.rb#10 + # source://rbi//lib/rbi/index.rb#8 sig { params(node: ::RBI::Node).returns(::RBI::Index) } def index(*node); end end @@ -936,9 +745,7 @@ end # A Node that can be referred to by a unique ID inside an index # -# @abstract Subclasses must implement the `abstract` methods below. -# -# source://rbi//lib/rbi/index.rb#70 +# source://rbi//lib/rbi/index.rb#69 module RBI::Indexable interface! @@ -949,49 +756,37 @@ module RBI::Indexable # # @abstract # - # source://rbi//lib/rbi/index.rb#81 - # Unique IDs that refer to this node. - # Some nodes can have multiple ids, for example an attribute accessor matches the ID of the + # source://rbi//lib/rbi/index.rb#76 sig { abstract.returns(T::Array[::String]) } def index_ids; end end -# source://rbi//lib/rbi/model.rb#825 +# source://rbi//lib/rbi/model.rb#804 class RBI::KwArg < ::RBI::Arg - # : (String keyword, String value, ?loc: Loc?) -> void - # # @return [KwArg] a new instance of KwArg # - # source://rbi//lib/rbi/model.rb#830 + # source://rbi//lib/rbi/model.rb#809 sig { params(keyword: ::String, value: ::String, loc: T.nilable(::RBI::Loc)).void } def initialize(keyword, value, loc: T.unsafe(nil)); end - # : (Object? other) -> bool - # - # source://rbi//lib/rbi/model.rb#836 + # source://rbi//lib/rbi/model.rb#815 sig { params(other: T.nilable(::Object)).returns(T::Boolean) } def ==(other); end - # : String - # - # source://rbi//lib/rbi/model.rb#827 + # source://rbi//lib/rbi/model.rb#806 sig { returns(::String) } def keyword; end - # : -> String - # - # source://rbi//lib/rbi/model.rb#841 + # source://rbi//lib/rbi/model.rb#820 sig { returns(::String) } def to_s; end end -# source://rbi//lib/rbi/model.rb#602 +# source://rbi//lib/rbi/model.rb#587 class RBI::KwOptParam < ::RBI::Param - # : (String name, String value, ?loc: Loc?, ?comments: Array[Comment]) ?{ (KwOptParam node) -> void } -> void - # # @return [KwOptParam] a new instance of KwOptParam # - # source://rbi//lib/rbi/model.rb#607 + # source://rbi//lib/rbi/model.rb#592 sig do params( name: ::String, @@ -1003,32 +798,24 @@ class RBI::KwOptParam < ::RBI::Param end def initialize(name, value, loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end - # : (Object? other) -> bool - # - # source://rbi//lib/rbi/model.rb#620 + # source://rbi//lib/rbi/model.rb#605 sig { params(other: T.nilable(::Object)).returns(T::Boolean) } def ==(other); end - # : -> String - # - # source://rbi//lib/rbi/model.rb#615 + # source://rbi//lib/rbi/model.rb#600 sig { override.returns(::String) } def to_s; end - # : String - # - # source://rbi//lib/rbi/model.rb#604 + # source://rbi//lib/rbi/model.rb#589 sig { returns(::String) } def value; end end -# source://rbi//lib/rbi/model.rb#583 +# source://rbi//lib/rbi/model.rb#568 class RBI::KwParam < ::RBI::Param - # : (String name, ?loc: Loc?, ?comments: Array[Comment]) ?{ (KwParam node) -> void } -> void - # # @return [KwParam] a new instance of KwParam # - # source://rbi//lib/rbi/model.rb#585 + # source://rbi//lib/rbi/model.rb#570 sig do params( name: ::String, @@ -1039,26 +826,20 @@ class RBI::KwParam < ::RBI::Param end def initialize(name, loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end - # : (Object? other) -> bool - # - # source://rbi//lib/rbi/model.rb#597 + # source://rbi//lib/rbi/model.rb#582 sig { params(other: T.nilable(::Object)).returns(T::Boolean) } def ==(other); end - # : -> String - # - # source://rbi//lib/rbi/model.rb#592 + # source://rbi//lib/rbi/model.rb#577 sig { override.returns(::String) } def to_s; end end -# source://rbi//lib/rbi/model.rb#625 +# source://rbi//lib/rbi/model.rb#610 class RBI::KwRestParam < ::RBI::Param - # : (String name, ?loc: Loc?, ?comments: Array[Comment]) ?{ (KwRestParam node) -> void } -> void - # # @return [KwRestParam] a new instance of KwRestParam # - # source://rbi//lib/rbi/model.rb#627 + # source://rbi//lib/rbi/model.rb#612 sig do params( name: ::String, @@ -1069,23 +850,17 @@ class RBI::KwRestParam < ::RBI::Param end def initialize(name, loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end - # : (Object? other) -> bool - # - # source://rbi//lib/rbi/model.rb#639 + # source://rbi//lib/rbi/model.rb#624 sig { params(other: T.nilable(::Object)).returns(T::Boolean) } def ==(other); end - # : -> String - # - # source://rbi//lib/rbi/model.rb#634 + # source://rbi//lib/rbi/model.rb#619 sig { override.returns(::String) } def to_s; end end # source://rbi//lib/rbi/loc.rb#5 class RBI::Loc - # : (?file: String?, ?begin_line: Integer?, ?end_line: Integer?, ?begin_column: Integer?, ?end_column: Integer?) -> void - # # @return [Loc] a new instance of Loc # # source://rbi//lib/rbi/loc.rb#26 @@ -1100,51 +875,36 @@ class RBI::Loc end def initialize(file: T.unsafe(nil), begin_line: T.unsafe(nil), end_line: T.unsafe(nil), begin_column: T.unsafe(nil), end_column: T.unsafe(nil)); end - # : Integer? - # # source://rbi//lib/rbi/loc.rb#23 - # @return [Integer, nil] def begin_column; end - # : Integer? - # # source://rbi//lib/rbi/loc.rb#23 sig { returns(T.nilable(::Integer)) } def begin_line; end - # : Integer? - # # source://rbi//lib/rbi/loc.rb#23 - # @return [Integer, nil] def end_column; end - # : Integer? - # # source://rbi//lib/rbi/loc.rb#23 - # @return [Integer, nil] def end_line; end - # : String? - # # source://rbi//lib/rbi/loc.rb#20 sig { returns(T.nilable(::String)) } def file; end - # : -> String? - # - # source://rbi//lib/rbi/loc.rb#44 + # source://rbi//lib/rbi/loc.rb#35 + sig { params(other: ::RBI::Loc).returns(::RBI::Loc) } + def join(other); end + + # source://rbi//lib/rbi/loc.rb#55 sig { returns(T.nilable(::String)) } def source; end - # : -> String - # - # source://rbi//lib/rbi/loc.rb#35 + # source://rbi//lib/rbi/loc.rb#46 sig { returns(::String) } def to_s; end class << self - # : (String file, Prism::Location prism_location) -> Loc - # # source://rbi//lib/rbi/loc.rb#8 sig { params(file: ::String, prism_location: ::Prism::Location).returns(::RBI::Loc) } def from_prism(file, prism_location); end @@ -1153,13 +913,11 @@ end # A tree that _might_ contain conflicts # -# source://rbi//lib/rbi/rewriters/merge_trees.rb#320 +# source://rbi//lib/rbi/rewriters/merge_trees.rb#329 class RBI::MergeTree < ::RBI::Tree - # : (?loc: Loc?, ?comments: Array[Comment], ?conflicts: Array[Rewriters::Merge::Conflict]) ?{ (Tree node) -> void } -> void - # # @return [MergeTree] a new instance of MergeTree # - # source://rbi//lib/rbi/rewriters/merge_trees.rb#325 + # source://rbi//lib/rbi/rewriters/merge_trees.rb#334 sig do params( loc: T.nilable(::RBI::Loc), @@ -1170,24 +928,20 @@ class RBI::MergeTree < ::RBI::Tree end def initialize(loc: T.unsafe(nil), comments: T.unsafe(nil), conflicts: T.unsafe(nil), &block); end - # : Array[Rewriters::Merge::Conflict] - # - # source://rbi//lib/rbi/rewriters/merge_trees.rb#322 + # source://rbi//lib/rbi/rewriters/merge_trees.rb#331 sig { returns(T::Array[::RBI::Rewriters::Merge::Conflict]) } def conflicts; end end # Methods and args # -# source://rbi//lib/rbi/model.rb#395 +# source://rbi//lib/rbi/model.rb#383 class RBI::Method < ::RBI::NodeWithComments include ::RBI::Indexable - # : (String name, ?params: Array[Param], ?is_singleton: bool, ?visibility: Visibility, ?sigs: Array[Sig], ?loc: Loc?, ?comments: Array[Comment]) ?{ (Method node) -> void } -> void - # # @return [Method] a new instance of Method # - # source://rbi//lib/rbi/model.rb#412 + # source://rbi//lib/rbi/model.rb#400 sig do params( name: ::String, @@ -1202,57 +956,39 @@ class RBI::Method < ::RBI::NodeWithComments end def initialize(name, params: T.unsafe(nil), is_singleton: T.unsafe(nil), visibility: T.unsafe(nil), sigs: T.unsafe(nil), loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end - # : (Param param) -> void - # - # source://rbi//lib/rbi/model.rb#432 + # source://rbi//lib/rbi/model.rb#420 sig { params(param: ::RBI::Param).void } def <<(param); end - # : (String name) -> void - # - # source://rbi//lib/rbi/model.rb#467 + # source://rbi//lib/rbi/model.rb#455 sig { params(name: ::String).void } def add_block_param(name); end - # : (String name, String default_value) -> void - # - # source://rbi//lib/rbi/model.rb#457 + # source://rbi//lib/rbi/model.rb#445 sig { params(name: ::String, default_value: ::String).void } def add_kw_opt_param(name, default_value); end - # : (String name) -> void - # - # source://rbi//lib/rbi/model.rb#452 + # source://rbi//lib/rbi/model.rb#440 sig { params(name: ::String).void } def add_kw_param(name); end - # : (String name) -> void - # - # source://rbi//lib/rbi/model.rb#462 + # source://rbi//lib/rbi/model.rb#450 sig { params(name: ::String).void } def add_kw_rest_param(name); end - # : (String name, String default_value) -> void - # - # source://rbi//lib/rbi/model.rb#442 + # source://rbi//lib/rbi/model.rb#430 sig { params(name: ::String, default_value: ::String).void } def add_opt_param(name, default_value); end - # : (String name) -> void - # - # source://rbi//lib/rbi/model.rb#437 + # source://rbi//lib/rbi/model.rb#425 sig { params(name: ::String).void } def add_param(name); end - # : (String name) -> void - # - # source://rbi//lib/rbi/model.rb#447 + # source://rbi//lib/rbi/model.rb#435 sig { params(name: ::String).void } def add_rest_param(name); end - # : (?params: Array[SigParam], ?return_type: (String | Type), ?is_abstract: bool, ?is_override: bool, ?is_overridable: bool, ?is_final: bool, ?type_params: Array[String], ?checked: Symbol?) ?{ (Sig node) -> void } -> void - # - # source://rbi//lib/rbi/model.rb#472 + # source://rbi//lib/rbi/model.rb#460 sig do params( params: T::Array[::RBI::SigParam], @@ -1268,102 +1004,68 @@ class RBI::Method < ::RBI::NodeWithComments end def add_sig(params: T.unsafe(nil), return_type: T.unsafe(nil), is_abstract: T.unsafe(nil), is_override: T.unsafe(nil), is_overridable: T.unsafe(nil), is_final: T.unsafe(nil), type_params: T.unsafe(nil), checked: T.unsafe(nil), &block); end - # : (Node other) -> bool - # # @return [Boolean] # - # source://rbi//lib/rbi/rewriters/merge_trees.rb#440 + # source://rbi//lib/rbi/rewriters/merge_trees.rb#449 sig { override.params(other: ::RBI::Node).returns(T::Boolean) } def compatible_with?(other); end - # : -> String - # - # source://rbi//lib/rbi/model.rb#498 + # source://rbi//lib/rbi/model.rb#486 sig { returns(::String) } def fully_qualified_name; end - # : -> Array[String] - # - # source://rbi//lib/rbi/index.rb#119 + # source://rbi//lib/rbi/index.rb#114 sig { override.returns(T::Array[::String]) } def index_ids; end - # : bool - # - # source://rbi//lib/rbi/model.rb#403 + # source://rbi//lib/rbi/model.rb#391 sig { returns(T::Boolean) } def is_singleton; end - # : bool - # - # source://rbi//lib/rbi/model.rb#403 - # @return [Boolean] + # source://rbi//lib/rbi/model.rb#391 def is_singleton=(_arg0); end - # : (Node other) -> void - # - # source://rbi//lib/rbi/rewriters/merge_trees.rb#450 + # source://rbi//lib/rbi/rewriters/merge_trees.rb#459 sig { override.params(other: ::RBI::Node).void } def merge_with(other); end - # : String - # - # source://rbi//lib/rbi/model.rb#397 + # source://rbi//lib/rbi/model.rb#385 sig { returns(::String) } def name; end - # : String - # - # source://rbi//lib/rbi/model.rb#397 - # @return [String] + # source://rbi//lib/rbi/model.rb#385 def name=(_arg0); end - # : Array[Param] - # - # source://rbi//lib/rbi/model.rb#400 + # source://rbi//lib/rbi/model.rb#388 sig { returns(T::Array[::RBI::Param]) } def params; end - # : Array[Sig] - # - # source://rbi//lib/rbi/model.rb#409 + # source://rbi//lib/rbi/model.rb#397 sig { returns(T::Array[::RBI::Sig]) } def sigs; end - # : Array[Sig] - # - # source://rbi//lib/rbi/model.rb#409 - # @return [Array] + # source://rbi//lib/rbi/model.rb#397 def sigs=(_arg0); end - # : -> String - # - # source://rbi//lib/rbi/model.rb#508 + # source://rbi//lib/rbi/model.rb#496 sig { override.returns(::String) } def to_s; end - # : Visibility - # - # source://rbi//lib/rbi/model.rb#406 + # source://rbi//lib/rbi/model.rb#394 sig { returns(::RBI::Visibility) } def visibility; end - # : Visibility - # - # source://rbi//lib/rbi/model.rb#406 - # @return [Visibility] + # source://rbi//lib/rbi/model.rb#394 def visibility=(_arg0); end end -# source://rbi//lib/rbi/model.rb#1113 +# source://rbi//lib/rbi/model.rb#1089 class RBI::MixesInClassMethods < ::RBI::Mixin include ::RBI::Indexable - # : (String name, *String names, ?loc: Loc?, ?comments: Array[Comment]) ?{ (MixesInClassMethods node) -> void } -> void - # # @return [MixesInClassMethods] a new instance of MixesInClassMethods # - # source://rbi//lib/rbi/model.rb#1115 + # source://rbi//lib/rbi/model.rb#1091 sig do params( name: ::String, @@ -1375,40 +1077,30 @@ class RBI::MixesInClassMethods < ::RBI::Mixin end def initialize(name, *names, loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end - # : (Node other) -> bool - # # @return [Boolean] # - # source://rbi//lib/rbi/rewriters/merge_trees.rb#487 + # source://rbi//lib/rbi/rewriters/merge_trees.rb#496 sig { override.params(other: ::RBI::Node).returns(T::Boolean) } def compatible_with?(other); end - # : -> Array[String] - # - # source://rbi//lib/rbi/index.rb#149 + # source://rbi//lib/rbi/index.rb#144 sig { override.returns(T::Array[::String]) } def index_ids; end - # : -> String - # - # source://rbi//lib/rbi/model.rb#1122 + # source://rbi//lib/rbi/model.rb#1098 sig { override.returns(::String) } def to_s; end end -# Mixins +# @abstract # -# @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. -# -# source://rbi//lib/rbi/model.rb#665 +# source://rbi//lib/rbi/model.rb#651 class RBI::Mixin < ::RBI::NodeWithComments abstract! - # : (String name, Array[String] names, ?loc: Loc?, ?comments: Array[Comment]) -> void - # # @return [Mixin] a new instance of Mixin # - # source://rbi//lib/rbi/model.rb#674 + # source://rbi//lib/rbi/model.rb#656 sig do params( name: ::String, @@ -1419,28 +1111,22 @@ class RBI::Mixin < ::RBI::NodeWithComments end def initialize(name, names, loc: T.unsafe(nil), comments: T.unsafe(nil)); end - # : (Node other) -> bool - # # @return [Boolean] # - # source://rbi//lib/rbi/rewriters/merge_trees.rb#463 + # source://rbi//lib/rbi/rewriters/merge_trees.rb#472 sig { override.params(other: ::RBI::Node).returns(T::Boolean) } def compatible_with?(other); end - # : Array[String] - # - # source://rbi//lib/rbi/model.rb#671 + # source://rbi//lib/rbi/model.rb#653 sig { returns(T::Array[::String]) } def names; end end -# source://rbi//lib/rbi/model.rb#184 +# source://rbi//lib/rbi/model.rb#175 class RBI::Module < ::RBI::Scope - # : (String name, ?loc: Loc?, ?comments: Array[Comment]) ?{ (Module node) -> void } -> void - # # @return [Module] a new instance of Module # - # source://rbi//lib/rbi/model.rb#189 + # source://rbi//lib/rbi/model.rb#180 sig do params( name: ::String, @@ -1451,109 +1137,76 @@ class RBI::Module < ::RBI::Scope end def initialize(name, loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end - # : (Node other) -> bool - # # @return [Boolean] # - # source://rbi//lib/rbi/rewriters/merge_trees.rb#370 + # source://rbi//lib/rbi/rewriters/merge_trees.rb#379 sig { override.params(other: ::RBI::Node).returns(T::Boolean) } def compatible_with?(other); end - # : -> String - # - # source://rbi//lib/rbi/model.rb#197 + # source://rbi//lib/rbi/model.rb#188 sig { override.returns(::String) } def fully_qualified_name; end - # : String - # - # source://rbi//lib/rbi/model.rb#186 + # source://rbi//lib/rbi/model.rb#177 sig { returns(::String) } def name; end - # : String - # - # source://rbi//lib/rbi/model.rb#186 - # @return [String] + # source://rbi//lib/rbi/model.rb#177 def name=(_arg0); end end -# @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. +# @abstract # -# source://rbi//lib/rbi/model.rb#7 +# source://rbi//lib/rbi/model.rb#8 class RBI::Node abstract! - # : (?loc: Loc?) -> void - # # @return [Node] a new instance of Node # - # source://rbi//lib/rbi/model.rb#19 + # source://rbi//lib/rbi/model.rb#16 sig { params(loc: T.nilable(::RBI::Loc)).void } def initialize(loc: T.unsafe(nil)); end # Can `self` and `_other` be merged into a single definition? - # : (Node _other) -> bool # # @return [Boolean] # - # source://rbi//lib/rbi/rewriters/merge_trees.rb#280 - # Can `self` and `_other` be merged into a single definition? + # source://rbi//lib/rbi/rewriters/merge_trees.rb#289 sig { params(_other: ::RBI::Node).returns(T::Boolean) } def compatible_with?(_other); end - # : -> void - # - # source://rbi//lib/rbi/model.rb#25 + # source://rbi//lib/rbi/model.rb#22 sig { void } def detach; end - # : Loc? - # - # source://rbi//lib/rbi/model.rb#16 + # source://rbi//lib/rbi/model.rb#13 sig { returns(T.nilable(::RBI::Loc)) } def loc; end - # : Loc? - # - # source://rbi//lib/rbi/model.rb#16 - # @return [Loc, nil] + # source://rbi//lib/rbi/model.rb#13 def loc=(_arg0); end # Merge `self` and `other` into a single definition - # : (Node other) -> void # - # source://rbi//lib/rbi/rewriters/merge_trees.rb#286 - # Merge `self` and `other` into a single definition + # source://rbi//lib/rbi/rewriters/merge_trees.rb#295 sig { params(other: ::RBI::Node).void } def merge_with(other); end - # : -> ConflictTree? - # - # source://rbi//lib/rbi/rewriters/merge_trees.rb#289 + # source://rbi//lib/rbi/rewriters/merge_trees.rb#298 sig { returns(T.nilable(::RBI::ConflictTree)) } def parent_conflict_tree; end - # : -> Scope? - # - # source://rbi//lib/rbi/model.rb#47 + # source://rbi//lib/rbi/model.rb#44 sig { returns(T.nilable(::RBI::Scope)) } def parent_scope; end - # : Tree? - # - # source://rbi//lib/rbi/model.rb#13 + # source://rbi//lib/rbi/model.rb#10 sig { returns(T.nilable(::RBI::Tree)) } def parent_tree; end - # : Tree? - # - # source://rbi//lib/rbi/model.rb#13 - # @return [Tree, nil] + # source://rbi//lib/rbi/model.rb#10 def parent_tree=(_arg0); end - # : (?out: (IO | StringIO), ?indent: Integer, ?print_locs: bool, ?max_line_length: Integer?) -> void - # # source://rbi//lib/rbi/printer.rb#832 sig do params( @@ -1565,9 +1218,7 @@ class RBI::Node end def print(out: T.unsafe(nil), indent: T.unsafe(nil), print_locs: T.unsafe(nil), max_line_length: T.unsafe(nil)); end - # : (?out: (IO | StringIO), ?indent: Integer, ?print_locs: bool, ?positional_names: bool) -> void - # - # source://rbi//lib/rbi/rbs_printer.rb#1131 + # source://rbi//lib/rbi/rbs_printer.rb#1225 sig do params( out: T.any(::IO, ::StringIO), @@ -1578,87 +1229,64 @@ class RBI::Node end def rbs_print(out: T.unsafe(nil), indent: T.unsafe(nil), print_locs: T.unsafe(nil), positional_names: T.unsafe(nil)); end - # : (?indent: Integer, ?print_locs: bool, ?positional_names: bool) -> String - # - # source://rbi//lib/rbi/rbs_printer.rb#1137 + # source://rbi//lib/rbi/rbs_printer.rb#1231 sig { params(indent: ::Integer, print_locs: T::Boolean, positional_names: T::Boolean).returns(::String) } def rbs_string(indent: T.unsafe(nil), print_locs: T.unsafe(nil), positional_names: T.unsafe(nil)); end - # : (Node node) -> void - # # @raise [ReplaceNodeError] # - # source://rbi//lib/rbi/model.rb#34 + # source://rbi//lib/rbi/model.rb#31 sig { params(node: ::RBI::Node).void } def replace(node); end - # : (Gem::Version version) -> bool - # # @return [Boolean] # # source://rbi//lib/rbi/rewriters/filter_versions.rb#91 sig { params(version: ::Gem::Version).returns(T::Boolean) } def satisfies_version?(version); end - # : (?indent: Integer, ?print_locs: bool, ?max_line_length: Integer?) -> String - # # source://rbi//lib/rbi/printer.rb#838 sig { params(indent: ::Integer, print_locs: T::Boolean, max_line_length: T.nilable(::Integer)).returns(::String) } def string(indent: T.unsafe(nil), print_locs: T.unsafe(nil), max_line_length: T.unsafe(nil)); end end -# @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. +# @abstract # -# source://rbi//lib/rbi/model.rb#90 +# source://rbi//lib/rbi/model.rb#88 class RBI::NodeWithComments < ::RBI::Node abstract! - # : (?loc: Loc?, ?comments: Array[Comment]) -> void - # # @return [NodeWithComments] a new instance of NodeWithComments # - # source://rbi//lib/rbi/model.rb#99 + # source://rbi//lib/rbi/model.rb#93 sig { params(loc: T.nilable(::RBI::Loc), comments: T::Array[::RBI::Comment]).void } def initialize(loc: T.unsafe(nil), comments: T.unsafe(nil)); end - # : -> Array[String] - # - # source://rbi//lib/rbi/model.rb#105 + # source://rbi//lib/rbi/model.rb#99 sig { returns(T::Array[::String]) } def annotations; end - # : Array[Comment] - # - # source://rbi//lib/rbi/model.rb#96 + # source://rbi//lib/rbi/model.rb#90 sig { returns(T::Array[::RBI::Comment]) } def comments; end - # : Array[Comment] - # - # source://rbi//lib/rbi/model.rb#96 - # @return [Array] + # source://rbi//lib/rbi/model.rb#90 def comments=(_arg0); end - # : (Node other) -> void - # - # source://rbi//lib/rbi/rewriters/merge_trees.rb#303 + # source://rbi//lib/rbi/rewriters/merge_trees.rb#312 sig { override.params(other: ::RBI::Node).void } def merge_with(other); end - # : -> Array[Gem::Requirement] - # # source://rbi//lib/rbi/rewriters/filter_versions.rb#101 sig { returns(T::Array[::Gem::Requirement]) } def version_requirements; end end -# source://rbi//lib/rbi/model.rb#547 +# source://rbi//lib/rbi/model.rb#532 class RBI::OptParam < ::RBI::Param - # : (String name, String value, ?loc: Loc?, ?comments: Array[Comment]) ?{ (OptParam node) -> void } -> void - # # @return [OptParam] a new instance of OptParam # - # source://rbi//lib/rbi/model.rb#552 + # source://rbi//lib/rbi/model.rb#537 sig do params( name: ::String, @@ -1670,58 +1298,44 @@ class RBI::OptParam < ::RBI::Param end def initialize(name, value, loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end - # : (Object? other) -> bool - # - # source://rbi//lib/rbi/model.rb#559 + # source://rbi//lib/rbi/model.rb#544 sig { params(other: T.nilable(::Object)).returns(T::Boolean) } def ==(other); end - # : String - # - # source://rbi//lib/rbi/model.rb#549 + # source://rbi//lib/rbi/model.rb#534 sig { returns(::String) } def value; end end -# @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. +# @abstract # -# source://rbi//lib/rbi/model.rb#513 +# source://rbi//lib/rbi/model.rb#502 class RBI::Param < ::RBI::NodeWithComments abstract! - # : (String name, ?loc: Loc?, ?comments: Array[Comment]) -> void - # # @return [Param] a new instance of Param # - # source://rbi//lib/rbi/model.rb#522 + # source://rbi//lib/rbi/model.rb#507 sig { params(name: ::String, loc: T.nilable(::RBI::Loc), comments: T::Array[::RBI::Comment]).void } def initialize(name, loc: T.unsafe(nil), comments: T.unsafe(nil)); end - # : String - # - # source://rbi//lib/rbi/model.rb#519 + # source://rbi//lib/rbi/model.rb#504 sig { returns(::String) } def name; end - # : -> String - # - # source://rbi//lib/rbi/model.rb#529 + # source://rbi//lib/rbi/model.rb#514 sig { override.returns(::String) } def to_s; end end # source://rbi//lib/rbi/parser.rb#7 class RBI::ParseError < ::RBI::Error - # : (String message, Loc location) -> void - # # @return [ParseError] a new instance of ParseError # # source://rbi//lib/rbi/parser.rb#12 sig { params(message: ::String, location: ::RBI::Loc).void } def initialize(message, location); end - # : Loc - # # source://rbi//lib/rbi/parser.rb#9 sig { returns(::RBI::Loc) } def location; end @@ -1729,191 +1343,135 @@ end # source://rbi//lib/rbi/parser.rb#49 class RBI::Parser - # : (String path) -> Tree - # # source://rbi//lib/rbi/parser.rb#80 sig { params(path: ::String).returns(::RBI::Tree) } def parse_file(path); end - # : (String string) -> Tree - # # source://rbi//lib/rbi/parser.rb#75 sig { params(string: ::String).returns(::RBI::Tree) } def parse_string(string); end private - # : (String source, file: String) -> Tree - # # source://rbi//lib/rbi/parser.rb#87 sig { params(source: ::String, file: ::String).returns(::RBI::Tree) } def parse(source, file:); end class << self - # : (String path) -> Tree - # # source://rbi//lib/rbi/parser.rb#57 sig { params(path: ::String).returns(::RBI::Tree) } def parse_file(path); end - # : (Array[String] paths) -> Array[Tree] - # # source://rbi//lib/rbi/parser.rb#62 sig { params(paths: T::Array[::String]).returns(T::Array[::RBI::Tree]) } def parse_files(paths); end - # : (String string) -> Tree - # # source://rbi//lib/rbi/parser.rb#52 sig { params(string: ::String).returns(::RBI::Tree) } def parse_string(string); end - # : (Array[String] strings) -> Array[Tree] - # # source://rbi//lib/rbi/parser.rb#68 sig { params(strings: T::Array[::String]).returns(T::Array[::RBI::Tree]) } def parse_strings(strings); end end end -# source://rbi//lib/rbi/parser.rb#970 +# source://rbi//lib/rbi/parser.rb#1000 class RBI::Parser::HeredocLocationVisitor < ::Prism::Visitor - # : (Prism::Source source, Integer begin_offset, Integer end_offset) -> void - # # @return [HeredocLocationVisitor] a new instance of HeredocLocationVisitor # - # source://rbi//lib/rbi/parser.rb#972 + # source://rbi//lib/rbi/parser.rb#1002 sig { params(source: ::Prism::Source, begin_offset: ::Integer, end_offset: ::Integer).void } def initialize(source, begin_offset, end_offset); end - # : -> Prism::Location - # - # source://rbi//lib/rbi/parser.rb#1003 + # source://rbi//lib/rbi/parser.rb#1033 sig { returns(::Prism::Location) } def location; end - # : (Prism::InterpolatedStringNode node) -> void - # - # source://rbi//lib/rbi/parser.rb#993 + # source://rbi//lib/rbi/parser.rb#1023 sig { override.params(node: ::Prism::InterpolatedStringNode).void } def visit_interpolated_string_node(node); end - # : (Prism::StringNode node) -> void - # - # source://rbi//lib/rbi/parser.rb#982 + # source://rbi//lib/rbi/parser.rb#1012 sig { override.params(node: ::Prism::StringNode).void } def visit_string_node(node); end private - # : (Prism::StringNode | Prism::InterpolatedStringNode node) -> void - # - # source://rbi//lib/rbi/parser.rb#1014 + # source://rbi//lib/rbi/parser.rb#1044 sig { params(node: T.any(::Prism::InterpolatedStringNode, ::Prism::StringNode)).void } def handle_string_node(node); end end -# source://rbi//lib/rbi/parser.rb#885 +# source://rbi//lib/rbi/parser.rb#915 class RBI::Parser::SigBuilder < ::RBI::Parser::Visitor - # : (String content, file: String) -> void - # # @return [SigBuilder] a new instance of SigBuilder # - # source://rbi//lib/rbi/parser.rb#890 + # source://rbi//lib/rbi/parser.rb#920 sig { params(content: ::String, file: ::String).void } def initialize(content, file:); end - # : Sig - # - # source://rbi//lib/rbi/parser.rb#887 + # source://rbi//lib/rbi/parser.rb#917 sig { returns(::RBI::Sig) } def current; end - # : (Prism::AssocNode node) -> void - # - # source://rbi//lib/rbi/parser.rb#962 + # source://rbi//lib/rbi/parser.rb#992 sig { override.params(node: ::Prism::AssocNode).void } def visit_assoc_node(node); end - # : (Prism::CallNode node) -> void - # - # source://rbi//lib/rbi/parser.rb#898 + # source://rbi//lib/rbi/parser.rb#928 sig { override.params(node: ::Prism::CallNode).void } def visit_call_node(node); end end # source://rbi//lib/rbi/parser.rb#164 class RBI::Parser::TreeBuilder < ::RBI::Parser::Visitor - # : (String source, comments: Array[Prism::Comment], file: String) -> void - # # @return [TreeBuilder] a new instance of TreeBuilder # # source://rbi//lib/rbi/parser.rb#172 sig { params(source: ::String, comments: T::Array[::Prism::Comment], file: ::String).void } def initialize(source, comments:, file:); end - # : Prism::Node? - # # source://rbi//lib/rbi/parser.rb#169 sig { returns(T.nilable(::Prism::Node)) } def last_node; end - # : Tree - # # source://rbi//lib/rbi/parser.rb#166 sig { returns(::RBI::Tree) } def tree; end - # : (Prism::CallNode node) -> void - # # source://rbi//lib/rbi/parser.rb#361 sig { params(node: ::Prism::CallNode).void } def visit_call_node(node); end - # : (Prism::ClassNode node) -> void - # # source://rbi//lib/rbi/parser.rb#185 sig { override.params(node: ::Prism::ClassNode).void } def visit_class_node(node); end - # : ((Prism::ConstantWriteNode | Prism::ConstantPathWriteNode) node) -> void - # # source://rbi//lib/rbi/parser.rb#236 sig { params(node: T.any(::Prism::ConstantPathWriteNode, ::Prism::ConstantWriteNode)).void } def visit_constant_assign(node); end - # : (Prism::ConstantPathWriteNode node) -> void - # # source://rbi//lib/rbi/parser.rb#229 sig { override.params(node: ::Prism::ConstantPathWriteNode).void } def visit_constant_path_write_node(node); end - # : (Prism::ConstantWriteNode node) -> void - # # source://rbi//lib/rbi/parser.rb#221 sig { override.params(node: ::Prism::ConstantWriteNode).void } def visit_constant_write_node(node); end - # : (Prism::DefNode node) -> void - # # source://rbi//lib/rbi/parser.rb#291 sig { override.params(node: ::Prism::DefNode).void } def visit_def_node(node); end - # : (Prism::ModuleNode node) -> void - # # source://rbi//lib/rbi/parser.rb#313 sig { override.params(node: ::Prism::ModuleNode).void } def visit_module_node(node); end - # : (Prism::ProgramNode node) -> void - # # source://rbi//lib/rbi/parser.rb#332 sig { override.params(node: ::Prism::ProgramNode).void } def visit_program_node(node); end - # : (Prism::SingletonClassNode node) -> void - # # source://rbi//lib/rbi/parser.rb#344 sig { override.params(node: ::Prism::SingletonClassNode).void } def visit_singleton_class_node(node); end @@ -1921,72 +1479,50 @@ class RBI::Parser::TreeBuilder < ::RBI::Parser::Visitor private # Collect all the remaining comments within a node - # : (Prism::Node node) -> void # # source://rbi//lib/rbi/parser.rb#539 - # Collect all the remaining comments within a node sig { params(node: ::Prism::Node).void } def collect_dangling_comments(node); end # Collect all the remaining comments after visiting the tree - # : -> void # # source://rbi//lib/rbi/parser.rb#557 - # Collect all the remaining comments after visiting the tree sig { void } def collect_orphan_comments; end - # : -> Tree - # # source://rbi//lib/rbi/parser.rb#580 sig { returns(::RBI::Tree) } def current_scope; end - # : -> Array[Sig] - # # source://rbi//lib/rbi/parser.rb#585 sig { returns(T::Array[::RBI::Sig]) } def current_sigs; end - # : (Array[Sig] sigs) -> Array[Comment] - # # source://rbi//lib/rbi/parser.rb#592 sig { params(sigs: T::Array[::RBI::Sig]).returns(T::Array[::RBI::Comment]) } def detach_comments_from_sigs(sigs); end - # : (Prism::Node node) -> Array[Comment] - # # source://rbi//lib/rbi/parser.rb#604 sig { params(node: ::Prism::Node).returns(T::Array[::RBI::Comment]) } def node_comments(node); end - # : (Prism::Comment node) -> Comment - # - # source://rbi//lib/rbi/parser.rb#622 + # source://rbi//lib/rbi/parser.rb#666 sig { params(node: ::Prism::Comment).returns(::RBI::Comment) } def parse_comment(node); end - # : (Prism::Node? node) -> Array[Param] - # - # source://rbi//lib/rbi/parser.rb#661 + # source://rbi//lib/rbi/parser.rb#699 sig { params(node: T.nilable(::Prism::Node)).returns(T::Array[::RBI::Param]) } def parse_params(node); end - # : (Prism::Node? node) -> Array[Arg] - # - # source://rbi//lib/rbi/parser.rb#635 + # source://rbi//lib/rbi/parser.rb#673 sig { params(node: T.nilable(::Prism::Node)).returns(T::Array[::RBI::Arg]) } def parse_send_args(node); end - # : (Prism::CallNode node) -> Sig - # - # source://rbi//lib/rbi/parser.rb#735 + # source://rbi//lib/rbi/parser.rb#765 sig { params(node: ::Prism::CallNode).returns(::RBI::Sig) } def parse_sig(node); end - # : ((Prism::ConstantWriteNode | Prism::ConstantPathWriteNode) node) -> Struct? - # - # source://rbi//lib/rbi/parser.rb#744 + # source://rbi//lib/rbi/parser.rb#774 sig do params( node: T.any(::Prism::ConstantPathWriteNode, ::Prism::ConstantWriteNode) @@ -1994,51 +1530,37 @@ class RBI::Parser::TreeBuilder < ::RBI::Parser::Visitor end def parse_struct(node); end - # : (Prism::CallNode send) -> void - # - # source://rbi//lib/rbi/parser.rb#792 + # source://rbi//lib/rbi/parser.rb#822 sig { params(send: ::Prism::CallNode).void } def parse_tstruct_field(send); end - # : (String name, Prism::Node node) -> Visibility - # - # source://rbi//lib/rbi/parser.rb#829 + # source://rbi//lib/rbi/parser.rb#859 sig { params(name: ::String, node: ::Prism::Node).returns(::RBI::Visibility) } def parse_visibility(name, node); end - # : -> void - # - # source://rbi//lib/rbi/parser.rb#843 + # source://rbi//lib/rbi/parser.rb#873 sig { void } def separate_header_comments; end - # : -> void - # - # source://rbi//lib/rbi/parser.rb#853 + # source://rbi//lib/rbi/parser.rb#883 sig { void } def set_root_tree_loc; end - # : (Prism::Node? node) -> bool - # # @return [Boolean] # - # source://rbi//lib/rbi/parser.rb#872 + # source://rbi//lib/rbi/parser.rb#902 sig { params(node: T.nilable(::Prism::Node)).returns(T::Boolean) } def t_enum_value?(node); end - # : (Prism::Node? node) -> bool - # # @return [Boolean] # - # source://rbi//lib/rbi/parser.rb#867 + # source://rbi//lib/rbi/parser.rb#897 sig { params(node: T.nilable(::Prism::Node)).returns(T::Boolean) } def type_variable_definition?(node); end end # source://rbi//lib/rbi/parser.rb#114 class RBI::Parser::Visitor < ::Prism::Visitor - # : (String source, file: String) -> void - # # @return [Visitor] a new instance of Visitor # # source://rbi//lib/rbi/parser.rb#116 @@ -2047,40 +1569,28 @@ class RBI::Parser::Visitor < ::Prism::Visitor private - # : (Prism::Node node) -> Prism::Location - # # source://rbi//lib/rbi/parser.rb#143 sig { params(node: ::Prism::Node).returns(::Prism::Location) } def adjust_prism_location_for_heredoc(node); end - # : (Prism::Node node) -> Loc - # # source://rbi//lib/rbi/parser.rb#126 sig { params(node: ::Prism::Node).returns(::RBI::Loc) } def node_loc(node); end - # : (Prism::Node? node) -> String? - # # source://rbi//lib/rbi/parser.rb#131 sig { params(node: T.nilable(::Prism::Node)).returns(T.nilable(::String)) } def node_string(node); end - # : (Prism::Node node) -> String - # # source://rbi//lib/rbi/parser.rb#138 sig { params(node: ::Prism::Node).returns(::String) } def node_string!(node); end - # : (Prism::Node? node) -> bool - # # @return [Boolean] # # source://rbi//lib/rbi/parser.rb#154 sig { params(node: T.nilable(::Prism::Node)).returns(T::Boolean) } def self?(node); end - # : (Prism::Node? node) -> bool - # # @return [Boolean] # # source://rbi//lib/rbi/parser.rb#159 @@ -2090,8 +1600,6 @@ end # source://rbi//lib/rbi/printer.rb#7 class RBI::Printer < ::RBI::Visitor - # : (?out: (IO | StringIO), ?indent: Integer, ?print_locs: bool, ?max_line_length: Integer?) -> void - # # @return [Printer] a new instance of Printer # # source://rbi//lib/rbi/printer.rb#21 @@ -2105,459 +1613,307 @@ class RBI::Printer < ::RBI::Visitor end def initialize(out: T.unsafe(nil), indent: T.unsafe(nil), print_locs: T.unsafe(nil), max_line_length: T.unsafe(nil)); end - # : Integer - # # source://rbi//lib/rbi/printer.rb#15 sig { returns(::Integer) } def current_indent; end - # : -> void - # # source://rbi//lib/rbi/printer.rb#39 sig { void } def dedent; end - # : bool - # # source://rbi//lib/rbi/printer.rb#9 - # @return [Boolean] def in_visibility_group; end - # : bool - # # source://rbi//lib/rbi/printer.rb#9 - # @return [Boolean] def in_visibility_group=(_arg0); end - # : -> void - # # source://rbi//lib/rbi/printer.rb#34 - # Printing sig { void } def indent; end - # : Integer? - # # source://rbi//lib/rbi/printer.rb#18 sig { returns(T.nilable(::Integer)) } def max_line_length; end - # : Node? - # # source://rbi//lib/rbi/printer.rb#12 sig { returns(T.nilable(::RBI::Node)) } def previous_node; end # Print a string without indentation nor `\n` at the end. - # : (String string) -> void # # source://rbi//lib/rbi/printer.rb#45 - # Print a string without indentation nor `\n` at the end. sig { params(string: ::String).void } def print(string); end - # : bool - # # source://rbi//lib/rbi/printer.rb#9 sig { returns(T::Boolean) } def print_locs; end - # : bool - # # source://rbi//lib/rbi/printer.rb#9 - # @return [Boolean] def print_locs=(_arg0); end # Print a string with indentation and `\n` at the end. - # : (String string) -> void # # source://rbi//lib/rbi/printer.rb#65 - # Print a string with indentation and `\n` at the end. sig { params(string: ::String).void } def printl(string); end # Print a string without indentation but with a `\n` at the end. - # : (?String? string) -> void # # source://rbi//lib/rbi/printer.rb#51 - # Print a string without indentation but with a `\n` at the end. sig { params(string: T.nilable(::String)).void } def printn(string = T.unsafe(nil)); end # Print a string with indentation but without a `\n` at the end. - # : (?String? string) -> void # # source://rbi//lib/rbi/printer.rb#58 - # Print a string with indentation but without a `\n` at the end. sig { params(string: T.nilable(::String)).void } def printt(string = T.unsafe(nil)); end - # : (Array[Node] nodes) -> void - # # source://rbi//lib/rbi/printer.rb#72 sig { override.params(nodes: T::Array[::RBI::Node]).void } def visit_all(nodes); end - # : (File file) -> void - # # source://rbi//lib/rbi/printer.rb#84 sig { override.params(file: ::RBI::File).void } def visit_file(file); end private - # : (Node node) -> bool - # # @return [Boolean] # # source://rbi//lib/rbi/printer.rb#680 sig { params(node: ::RBI::Node).returns(T::Boolean) } def oneline?(node); end - # : (Node node) -> void - # # source://rbi//lib/rbi/printer.rb#638 sig { params(node: ::RBI::Node).void } def print_blank_line_before(node); end - # : (Node node) -> void - # # source://rbi//lib/rbi/printer.rb#648 sig { params(node: ::RBI::Node).void } def print_loc(node); end - # : (Param node, last: bool) -> void - # # source://rbi//lib/rbi/printer.rb#654 sig { params(node: ::RBI::Param, last: T::Boolean).void } def print_param_comment_leading_space(node, last:); end - # : (Sig node) -> void - # # source://rbi//lib/rbi/printer.rb#736 sig { params(node: ::RBI::Sig).void } def print_sig_as_block(node); end - # : (Sig node) -> void - # # source://rbi//lib/rbi/printer.rb#709 sig { params(node: ::RBI::Sig).void } def print_sig_as_line(node); end - # : (SigParam node, last: bool) -> void - # # source://rbi//lib/rbi/printer.rb#672 sig { params(node: ::RBI::SigParam, last: T::Boolean).void } def print_sig_param_comment_leading_space(node, last:); end - # : (Sig node) -> Array[String] - # # source://rbi//lib/rbi/printer.rb#796 sig { params(node: ::RBI::Sig).returns(T::Array[::String]) } def sig_modifiers(node); end - # : (Arg node) -> void - # # source://rbi//lib/rbi/printer.rb#453 sig { override.params(node: ::RBI::Arg).void } def visit_arg(node); end - # : (Attr node) -> void - # # source://rbi//lib/rbi/printer.rb#258 sig { params(node: ::RBI::Attr).void } def visit_attr(node); end - # : (AttrAccessor node) -> void - # # source://rbi//lib/rbi/printer.rb#241 sig { override.params(node: ::RBI::AttrAccessor).void } def visit_attr_accessor(node); end - # : (AttrReader node) -> void - # # source://rbi//lib/rbi/printer.rb#247 sig { override.params(node: ::RBI::AttrReader).void } def visit_attr_reader(node); end - # : (AttrWriter node) -> void - # # source://rbi//lib/rbi/printer.rb#253 sig { override.params(node: ::RBI::AttrWriter).void } def visit_attr_writer(node); end - # : (BlankLine node) -> void - # # source://rbi//lib/rbi/printer.rb#138 sig { override.params(node: ::RBI::BlankLine).void } def visit_blank_line(node); end - # : (BlockParam node) -> void - # # source://rbi//lib/rbi/printer.rb#373 sig { override.params(node: ::RBI::BlockParam).void } def visit_block_param(node); end - # : (Class node) -> void - # # source://rbi//lib/rbi/printer.rb#158 sig { override.params(node: ::RBI::Class).void } def visit_class(node); end - # : (Comment node) -> void - # # source://rbi//lib/rbi/printer.rb#121 sig { override.params(node: ::RBI::Comment).void } def visit_comment(node); end - # : (ConflictTree node) -> void - # # source://rbi//lib/rbi/printer.rb#614 sig { override.params(node: ::RBI::ConflictTree).void } def visit_conflict_tree(node); end - # : (Const node) -> void - # # source://rbi//lib/rbi/printer.rb#231 sig { override.params(node: ::RBI::Const).void } def visit_const(node); end - # : (Extend node) -> void - # # source://rbi//lib/rbi/printer.rb#385 sig { override.params(node: ::RBI::Extend).void } def visit_extend(node); end - # : (Group node) -> void - # # source://rbi//lib/rbi/printer.rb#583 sig { override.params(node: ::RBI::Group).void } def visit_group(node); end - # : (Helper node) -> void - # # source://rbi//lib/rbi/printer.rb#567 sig { override.params(node: ::RBI::Helper).void } def visit_helper(node); end - # : (Include node) -> void - # # source://rbi//lib/rbi/printer.rb#379 sig { override.params(node: ::RBI::Include).void } def visit_include(node); end - # : (KwArg node) -> void - # # source://rbi//lib/rbi/printer.rb#459 sig { override.params(node: ::RBI::KwArg).void } def visit_kw_arg(node); end - # : (KwOptParam node) -> void - # # source://rbi//lib/rbi/printer.rb#361 sig { override.params(node: ::RBI::KwOptParam).void } def visit_kw_opt_param(node); end - # : (KwParam node) -> void - # # source://rbi//lib/rbi/printer.rb#355 sig { override.params(node: ::RBI::KwParam).void } def visit_kw_param(node); end - # : (KwRestParam node) -> void - # # source://rbi//lib/rbi/printer.rb#367 sig { override.params(node: ::RBI::KwRestParam).void } def visit_kw_rest_param(node); end - # : (Method node) -> void - # # source://rbi//lib/rbi/printer.rb#287 sig { override.params(node: ::RBI::Method).void } def visit_method(node); end - # : (MixesInClassMethods node) -> void - # # source://rbi//lib/rbi/printer.rb#577 sig { override.params(node: ::RBI::MixesInClassMethods).void } def visit_mixes_in_class_methods(node); end - # : (Mixin node) -> void - # # source://rbi//lib/rbi/printer.rb#390 sig { params(node: ::RBI::Mixin).void } def visit_mixin(node); end - # : (Module node) -> void - # # source://rbi//lib/rbi/printer.rb#152 sig { override.params(node: ::RBI::Module).void } def visit_module(node); end - # : (OptParam node) -> void - # # source://rbi//lib/rbi/printer.rb#343 sig { override.params(node: ::RBI::OptParam).void } def visit_opt_param(node); end - # : (Private node) -> void - # # source://rbi//lib/rbi/printer.rb#420 sig { override.params(node: ::RBI::Private).void } def visit_private(node); end - # : (Protected node) -> void - # # source://rbi//lib/rbi/printer.rb#414 sig { override.params(node: ::RBI::Protected).void } def visit_protected(node); end - # : (Public node) -> void - # # source://rbi//lib/rbi/printer.rb#408 sig { override.params(node: ::RBI::Public).void } def visit_public(node); end - # : (RBSComment node) -> void - # # source://rbi//lib/rbi/printer.rb#104 sig { override.params(node: ::RBI::RBSComment).void } def visit_rbs_comment(node); end - # : (ReqParam node) -> void - # # source://rbi//lib/rbi/printer.rb#337 sig { override.params(node: ::RBI::ReqParam).void } def visit_req_param(node); end - # : (RequiresAncestor node) -> void - # # source://rbi//lib/rbi/printer.rb#604 sig { override.params(node: ::RBI::RequiresAncestor).void } def visit_requires_ancestor(node); end - # : (RestParam node) -> void - # # source://rbi//lib/rbi/printer.rb#349 sig { override.params(node: ::RBI::RestParam).void } def visit_rest_param(node); end - # : (Scope node) -> void - # # source://rbi//lib/rbi/printer.rb#175 sig { params(node: ::RBI::Scope).void } def visit_scope(node); end - # : (Scope node) -> void - # # source://rbi//lib/rbi/printer.rb#220 sig { params(node: ::RBI::Scope).void } def visit_scope_body(node); end - # : (ScopeConflict node) -> void - # # source://rbi//lib/rbi/printer.rb#624 sig { override.params(node: ::RBI::ScopeConflict).void } def visit_scope_conflict(node); end - # : (Scope node) -> void - # # source://rbi//lib/rbi/printer.rb#185 sig { params(node: ::RBI::Scope).void } def visit_scope_header(node); end - # : (Send node) -> void - # # source://rbi//lib/rbi/printer.rb#435 sig { override.params(node: ::RBI::Send).void } def visit_send(node); end - # : (Sig node) -> void - # # source://rbi//lib/rbi/printer.rb#465 sig { override.params(node: ::RBI::Sig).void } def visit_sig(node); end - # : (SigParam node) -> void - # # source://rbi//lib/rbi/printer.rb#486 sig { override.params(node: ::RBI::SigParam).void } def visit_sig_param(node); end - # : (SingletonClass node) -> void - # # source://rbi//lib/rbi/printer.rb#170 sig { override.params(node: ::RBI::SingletonClass).void } def visit_singleton_class(node); end - # : (Struct node) -> void - # # source://rbi//lib/rbi/printer.rb#164 sig { override.params(node: ::RBI::Struct).void } def visit_struct(node); end - # : (TStructField node) -> void - # # source://rbi//lib/rbi/printer.rb#509 sig { params(node: ::RBI::TStructField).void } def visit_t_struct_field(node); end - # : (TEnum node) -> void - # # source://rbi//lib/rbi/printer.rb#528 sig { override.params(node: ::RBI::TEnum).void } def visit_tenum(node); end - # : (TEnumBlock node) -> void - # # source://rbi//lib/rbi/printer.rb#534 sig { override.params(node: ::RBI::TEnumBlock).void } def visit_tenum_block(node); end - # : (TEnumValue node) -> void - # # source://rbi//lib/rbi/printer.rb#547 sig { override.params(node: ::RBI::TEnumValue).void } def visit_tenum_value(node); end - # : (Tree node) -> void - # # source://rbi//lib/rbi/printer.rb#144 sig { override.params(node: ::RBI::Tree).void } def visit_tree(node); end - # : (TStruct node) -> void - # # source://rbi//lib/rbi/printer.rb#492 sig { override.params(node: ::RBI::TStruct).void } def visit_tstruct(node); end - # : (TStructConst node) -> void - # # source://rbi//lib/rbi/printer.rb#498 sig { override.params(node: ::RBI::TStructConst).void } def visit_tstruct_const(node); end - # : (TStructProp node) -> void - # # source://rbi//lib/rbi/printer.rb#504 sig { override.params(node: ::RBI::TStructProp).void } def visit_tstruct_prop(node); end - # : (TypeMember node) -> void - # # source://rbi//lib/rbi/printer.rb#557 sig { override.params(node: ::RBI::TypeMember).void } def visit_type_member(node); end - # : (Visibility node) -> void - # # source://rbi//lib/rbi/printer.rb#425 sig { params(node: ::RBI::Visibility).void } def visit_visibility(node); end - # : (VisibilityGroup node) -> void - # # source://rbi//lib/rbi/printer.rb#590 sig { override.params(node: ::RBI::VisibilityGroup).void } def visit_visibility_group(node); end @@ -2566,13 +1922,11 @@ end # source://rbi//lib/rbi/printer.rb#5 class RBI::PrinterError < ::RBI::Error; end -# source://rbi//lib/rbi/model.rb#763 +# source://rbi//lib/rbi/model.rb#742 class RBI::Private < ::RBI::Visibility - # : (?loc: Loc?, ?comments: Array[Comment]) ?{ (Private node) -> void } -> void - # # @return [Private] a new instance of Private # - # source://rbi//lib/rbi/model.rb#765 + # source://rbi//lib/rbi/model.rb#744 sig do params( loc: T.nilable(::RBI::Loc), @@ -2583,13 +1937,11 @@ class RBI::Private < ::RBI::Visibility def initialize(loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end end -# source://rbi//lib/rbi/model.rb#755 +# source://rbi//lib/rbi/model.rb#734 class RBI::Protected < ::RBI::Visibility - # : (?loc: Loc?, ?comments: Array[Comment]) ?{ (Protected node) -> void } -> void - # # @return [Protected] a new instance of Protected # - # source://rbi//lib/rbi/model.rb#757 + # source://rbi//lib/rbi/model.rb#736 sig do params( loc: T.nilable(::RBI::Loc), @@ -2600,13 +1952,11 @@ class RBI::Protected < ::RBI::Visibility def initialize(loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end end -# source://rbi//lib/rbi/model.rb#747 +# source://rbi//lib/rbi/model.rb#726 class RBI::Public < ::RBI::Visibility - # : (?loc: Loc?, ?comments: Array[Comment]) ?{ (Public node) -> void } -> void - # # @return [Public] a new instance of Public # - # source://rbi//lib/rbi/model.rb#749 + # source://rbi//lib/rbi/model.rb#728 sig do params( loc: T.nilable(::RBI::Loc), @@ -2622,57 +1972,41 @@ module RBI::RBS; end # source://rbi//lib/rbi/rbs/method_type_translator.rb#6 class RBI::RBS::MethodTypeTranslator - # : (Method) -> void - # # @return [MethodTypeTranslator] a new instance of MethodTypeTranslator # # source://rbi//lib/rbi/rbs/method_type_translator.rb#22 sig { params(method: ::RBI::Method).void } def initialize(method); end - # : Sig - # # source://rbi//lib/rbi/rbs/method_type_translator.rb#19 sig { returns(::RBI::Sig) } def result; end - # : (::RBS::MethodType) -> void - # # source://rbi//lib/rbi/rbs/method_type_translator.rb#28 sig { params(type: ::RBS::MethodType).void } def visit(type); end private - # : (::RBS::Types::Function::Param, Integer) -> SigParam - # # source://rbi//lib/rbi/rbs/method_type_translator.rb#100 sig { params(param: ::RBS::Types::Function::Param, index: ::Integer).returns(::RBI::SigParam) } def translate_function_param(param, index); end - # : (untyped) -> Type - # # source://rbi//lib/rbi/rbs/method_type_translator.rb#115 sig { params(type: T.untyped).returns(::RBI::Type) } def translate_type(type); end - # : (::RBS::Types::Block) -> void - # # @raise [Error] # # source://rbi//lib/rbi/rbs/method_type_translator.rb#42 sig { params(type: ::RBS::Types::Block).void } def visit_block_type(type); end - # : (::RBS::Types::Function) -> void - # # source://rbi//lib/rbi/rbs/method_type_translator.rb#57 sig { params(type: ::RBS::Types::Function).void } def visit_function_type(type); end class << self - # : (Method, ::RBS::MethodType) -> Sig - # # source://rbi//lib/rbi/rbs/method_type_translator.rb#11 sig { params(method: ::RBI::Method, type: ::RBS::MethodType).returns(::RBI::Sig) } def translate(method, type); end @@ -2685,9 +2019,7 @@ class RBI::RBS::MethodTypeTranslator::Error < ::RBI::Error; end # source://rbi//lib/rbi/rbs/type_translator.rb#6 class RBI::RBS::TypeTranslator class << self - # : (NodeType) -> Type - # - # source://rbi//lib/rbi/rbs/type_translator.rb#37 + # source://rbi//lib/rbi/rbs/type_translator.rb#33 sig do params( type: T.any(::RBS::Types::Alias, ::RBS::Types::Bases::Any, ::RBS::Types::Bases::Bool, ::RBS::Types::Bases::Bottom, ::RBS::Types::Bases::Class, ::RBS::Types::Bases::Instance, ::RBS::Types::Bases::Nil, ::RBS::Types::Bases::Self, ::RBS::Types::Bases::Top, ::RBS::Types::Bases::Void, ::RBS::Types::ClassInstance, ::RBS::Types::ClassSingleton, ::RBS::Types::Function, ::RBS::Types::Interface, ::RBS::Types::Intersection, ::RBS::Types::Literal, ::RBS::Types::Optional, ::RBS::Types::Proc, ::RBS::Types::Record, ::RBS::Types::Tuple, ::RBS::Types::Union, ::RBS::Types::UntypedFunction, ::RBS::Types::Variable) @@ -2697,21 +2029,15 @@ class RBI::RBS::TypeTranslator private - # : (::RBS::Types::ClassInstance) -> Type - # - # source://rbi//lib/rbi/rbs/type_translator.rb#99 + # source://rbi//lib/rbi/rbs/type_translator.rb#95 sig { params(type: ::RBS::Types::ClassInstance).returns(::RBI::Type) } def translate_class_instance(type); end - # : (::RBS::Types::Function) -> Type - # - # source://rbi//lib/rbi/rbs/type_translator.rb#107 + # source://rbi//lib/rbi/rbs/type_translator.rb#103 sig { params(type: ::RBS::Types::Function).returns(::RBI::Type) } def translate_function(type); end - # : (String type_name) -> String - # - # source://rbi//lib/rbi/rbs/type_translator.rb#154 + # source://rbi//lib/rbi/rbs/type_translator.rb#150 sig { params(type_name: ::String).returns(::String) } def translate_t_generic_type(type_name); end end @@ -2719,497 +2045,350 @@ end # A comment representing a RBS type prefixed with `#:` # -# source://rbi//lib/rbi/model.rb#81 +# source://rbi//lib/rbi/model.rb#78 class RBI::RBSComment < ::RBI::Comment - # : (Object other) -> bool - # - # source://rbi//lib/rbi/model.rb#83 + # source://rbi//lib/rbi/model.rb#80 sig { params(other: ::Object).returns(T::Boolean) } def ==(other); end end # source://rbi//lib/rbi/rbs_printer.rb#5 class RBI::RBSPrinter < ::RBI::Visitor - # : (?out: (IO | StringIO), ?indent: Integer, ?print_locs: bool, ?positional_names: bool) -> void - # # @return [RBSPrinter] a new instance of RBSPrinter # - # source://rbi//lib/rbi/rbs_printer.rb#21 + # source://rbi//lib/rbi/rbs_printer.rb#30 sig do params( out: T.any(::IO, ::StringIO), indent: ::Integer, print_locs: T::Boolean, - positional_names: T::Boolean + positional_names: T::Boolean, + max_line_length: T.nilable(::Integer) ).void end - def initialize(out: T.unsafe(nil), indent: T.unsafe(nil), print_locs: T.unsafe(nil), positional_names: T.unsafe(nil)); end + def initialize(out: T.unsafe(nil), indent: T.unsafe(nil), print_locs: T.unsafe(nil), positional_names: T.unsafe(nil), max_line_length: T.unsafe(nil)); end - # : Integer - # # source://rbi//lib/rbi/rbs_printer.rb#15 sig { returns(::Integer) } def current_indent; end - # : -> void - # - # source://rbi//lib/rbi/rbs_printer.rb#39 + # source://rbi//lib/rbi/rbs_printer.rb#49 sig { void } def dedent; end - # : bool - # # source://rbi//lib/rbi/rbs_printer.rb#9 - # @return [Boolean] def in_visibility_group; end - # : bool - # # source://rbi//lib/rbi/rbs_printer.rb#9 - # @return [Boolean] def in_visibility_group=(_arg0); end - # : -> void - # - # source://rbi//lib/rbi/rbs_printer.rb#34 - # Printing + # source://rbi//lib/rbi/rbs_printer.rb#44 sig { void } def indent; end - # : bool - # + # source://rbi//lib/rbi/rbs_printer.rb#21 + sig { returns(T.nilable(::Integer)) } + def max_line_length; end + # source://rbi//lib/rbi/rbs_printer.rb#18 sig { returns(T::Boolean) } def positional_names; end - # : bool - # # source://rbi//lib/rbi/rbs_printer.rb#18 - # @return [Boolean] def positional_names=(_arg0); end - # : Node? - # # source://rbi//lib/rbi/rbs_printer.rb#12 sig { returns(T.nilable(::RBI::Node)) } def previous_node; end # Print a string without indentation nor `\n` at the end. - # : (String string) -> void # - # source://rbi//lib/rbi/rbs_printer.rb#45 - # Print a string without indentation nor `\n` at the end. + # source://rbi//lib/rbi/rbs_printer.rb#55 sig { params(string: ::String).void } def print(string); end - # : (RBI::Attr node, Sig sig) -> void - # - # source://rbi//lib/rbi/rbs_printer.rb#292 + # source://rbi//lib/rbi/rbs_printer.rb#302 sig { params(node: ::RBI::Attr, sig: ::RBI::Sig).void } def print_attr_sig(node, sig); end - # : bool - # # source://rbi//lib/rbi/rbs_printer.rb#9 sig { returns(T::Boolean) } def print_locs; end - # : bool - # # source://rbi//lib/rbi/rbs_printer.rb#9 - # @return [Boolean] def print_locs=(_arg0); end - # : (RBI::Method node, Sig sig) -> void - # - # source://rbi//lib/rbi/rbs_printer.rb#388 + # source://rbi//lib/rbi/rbs_printer.rb#398 sig { params(node: ::RBI::Method, sig: ::RBI::Sig).void } def print_method_sig(node, sig); end + # source://rbi//lib/rbi/rbs_printer.rb#415 + sig { params(node: ::RBI::Method, sig: ::RBI::Sig).void } + def print_method_sig_inline(node, sig); end + + # source://rbi//lib/rbi/rbs_printer.rb#477 + sig { params(node: ::RBI::Method, sig: ::RBI::Sig).void } + def print_method_sig_multiline(node, sig); end + # Print a string with indentation and `\n` at the end. - # : (String string) -> void # - # source://rbi//lib/rbi/rbs_printer.rb#65 - # Print a string with indentation and `\n` at the end. + # source://rbi//lib/rbi/rbs_printer.rb#75 sig { params(string: ::String).void } def printl(string); end # Print a string without indentation but with a `\n` at the end. - # : (?String? string) -> void # - # source://rbi//lib/rbi/rbs_printer.rb#51 - # Print a string without indentation but with a `\n` at the end. + # source://rbi//lib/rbi/rbs_printer.rb#61 sig { params(string: T.nilable(::String)).void } def printn(string = T.unsafe(nil)); end # Print a string with indentation but without a `\n` at the end. - # : (?String? string) -> void # - # source://rbi//lib/rbi/rbs_printer.rb#58 - # Print a string with indentation but without a `\n` at the end. + # source://rbi//lib/rbi/rbs_printer.rb#68 sig { params(string: T.nilable(::String)).void } def printt(string = T.unsafe(nil)); end - # : (Array[Node] nodes) -> void - # - # source://rbi//lib/rbi/rbs_printer.rb#72 + # source://rbi//lib/rbi/rbs_printer.rb#82 sig { override.params(nodes: T::Array[::RBI::Node]).void } def visit_all(nodes); end - # : (Arg node) -> void - # - # source://rbi//lib/rbi/rbs_printer.rb#585 + # source://rbi//lib/rbi/rbs_printer.rb#678 sig { override.params(node: ::RBI::Arg).void } def visit_arg(node); end - # : (Attr node) -> void - # - # source://rbi//lib/rbi/rbs_printer.rb#260 + # source://rbi//lib/rbi/rbs_printer.rb#270 sig { params(node: ::RBI::Attr).void } def visit_attr(node); end - # : (AttrAccessor node) -> void - # - # source://rbi//lib/rbi/rbs_printer.rb#243 + # source://rbi//lib/rbi/rbs_printer.rb#253 sig { override.params(node: ::RBI::AttrAccessor).void } def visit_attr_accessor(node); end - # : (AttrReader node) -> void - # - # source://rbi//lib/rbi/rbs_printer.rb#249 + # source://rbi//lib/rbi/rbs_printer.rb#259 sig { override.params(node: ::RBI::AttrReader).void } def visit_attr_reader(node); end - # : (AttrWriter node) -> void - # - # source://rbi//lib/rbi/rbs_printer.rb#255 + # source://rbi//lib/rbi/rbs_printer.rb#265 sig { override.params(node: ::RBI::AttrWriter).void } def visit_attr_writer(node); end - # : (BlankLine node) -> void - # - # source://rbi//lib/rbi/rbs_printer.rb#114 + # source://rbi//lib/rbi/rbs_printer.rb#124 sig { override.params(node: ::RBI::BlankLine).void } def visit_blank_line(node); end - # : (BlockParam node) -> void - # - # source://rbi//lib/rbi/rbs_printer.rb#517 + # source://rbi//lib/rbi/rbs_printer.rb#610 sig { override.params(node: ::RBI::BlockParam).void } def visit_block_param(node); end - # : (Class node) -> void - # - # source://rbi//lib/rbi/rbs_printer.rb#134 + # source://rbi//lib/rbi/rbs_printer.rb#144 sig { override.params(node: ::RBI::Class).void } def visit_class(node); end - # : (Comment node) -> void - # - # source://rbi//lib/rbi/rbs_printer.rb#97 + # source://rbi//lib/rbi/rbs_printer.rb#107 sig { override.params(node: ::RBI::Comment).void } def visit_comment(node); end - # : (ConflictTree node) -> void - # - # source://rbi//lib/rbi/rbs_printer.rb#721 + # source://rbi//lib/rbi/rbs_printer.rb#814 sig { override.params(node: ::RBI::ConflictTree).void } def visit_conflict_tree(node); end - # : (Const node) -> void - # - # source://rbi//lib/rbi/rbs_printer.rb#227 + # source://rbi//lib/rbi/rbs_printer.rb#237 sig { override.params(node: ::RBI::Const).void } def visit_const(node); end - # : (Extend node) -> void - # - # source://rbi//lib/rbi/rbs_printer.rb#529 + # source://rbi//lib/rbi/rbs_printer.rb#622 sig { override.params(node: ::RBI::Extend).void } def visit_extend(node); end - # : (File file) -> void - # - # source://rbi//lib/rbi/rbs_printer.rb#84 + # source://rbi//lib/rbi/rbs_printer.rb#94 sig { override.params(file: ::RBI::File).void } def visit_file(file); end - # : (Group node) -> void - # - # source://rbi//lib/rbi/rbs_printer.rb#694 + # source://rbi//lib/rbi/rbs_printer.rb#787 sig { override.params(node: ::RBI::Group).void } def visit_group(node); end - # : (Helper node) -> void - # - # source://rbi//lib/rbi/rbs_printer.rb#682 + # source://rbi//lib/rbi/rbs_printer.rb#775 sig { override.params(node: ::RBI::Helper).void } def visit_helper(node); end - # : (Include node) -> void - # - # source://rbi//lib/rbi/rbs_printer.rb#523 + # source://rbi//lib/rbi/rbs_printer.rb#616 sig { override.params(node: ::RBI::Include).void } def visit_include(node); end - # : (KwArg node) -> void - # - # source://rbi//lib/rbi/rbs_printer.rb#591 + # source://rbi//lib/rbi/rbs_printer.rb#684 sig { override.params(node: ::RBI::KwArg).void } def visit_kw_arg(node); end - # : (KwOptParam node) -> void - # - # source://rbi//lib/rbi/rbs_printer.rb#505 + # source://rbi//lib/rbi/rbs_printer.rb#598 sig { override.params(node: ::RBI::KwOptParam).void } def visit_kw_opt_param(node); end - # : (KwParam node) -> void - # - # source://rbi//lib/rbi/rbs_printer.rb#499 + # source://rbi//lib/rbi/rbs_printer.rb#592 sig { override.params(node: ::RBI::KwParam).void } def visit_kw_param(node); end - # : (KwRestParam node) -> void - # - # source://rbi//lib/rbi/rbs_printer.rb#511 + # source://rbi//lib/rbi/rbs_printer.rb#604 sig { override.params(node: ::RBI::KwRestParam).void } def visit_kw_rest_param(node); end - # : (Method node) -> void - # - # source://rbi//lib/rbi/rbs_printer.rb#315 + # source://rbi//lib/rbi/rbs_printer.rb#325 sig { override.params(node: ::RBI::Method).void } def visit_method(node); end - # : (MixesInClassMethods node) -> void - # - # source://rbi//lib/rbi/rbs_printer.rb#688 + # source://rbi//lib/rbi/rbs_printer.rb#781 sig { override.params(node: ::RBI::MixesInClassMethods).void } def visit_mixes_in_class_methods(node); end - # : (Mixin node) -> void - # - # source://rbi//lib/rbi/rbs_printer.rb#534 + # source://rbi//lib/rbi/rbs_printer.rb#627 sig { params(node: ::RBI::Mixin).void } def visit_mixin(node); end - # : (Module node) -> void - # - # source://rbi//lib/rbi/rbs_printer.rb#128 + # source://rbi//lib/rbi/rbs_printer.rb#138 sig { override.params(node: ::RBI::Module).void } def visit_module(node); end - # : (OptParam node) -> void - # - # source://rbi//lib/rbi/rbs_printer.rb#479 + # source://rbi//lib/rbi/rbs_printer.rb#572 sig { override.params(node: ::RBI::OptParam).void } def visit_opt_param(node); end - # : (Private node) -> void - # - # source://rbi//lib/rbi/rbs_printer.rb#564 + # source://rbi//lib/rbi/rbs_printer.rb#657 sig { override.params(node: ::RBI::Private).void } def visit_private(node); end - # : (Protected node) -> void - # - # source://rbi//lib/rbi/rbs_printer.rb#558 + # source://rbi//lib/rbi/rbs_printer.rb#651 sig { override.params(node: ::RBI::Protected).void } def visit_protected(node); end - # : (Public node) -> void - # - # source://rbi//lib/rbi/rbs_printer.rb#552 + # source://rbi//lib/rbi/rbs_printer.rb#645 sig { override.params(node: ::RBI::Public).void } def visit_public(node); end - # : (ReqParam node) -> void - # - # source://rbi//lib/rbi/rbs_printer.rb#469 + # source://rbi//lib/rbi/rbs_printer.rb#562 sig { override.params(node: ::RBI::ReqParam).void } def visit_req_param(node); end - # : (RequiresAncestor node) -> void - # - # source://rbi//lib/rbi/rbs_printer.rb#715 + # source://rbi//lib/rbi/rbs_printer.rb#808 sig { override.params(node: ::RBI::RequiresAncestor).void } def visit_requires_ancestor(node); end - # : (RestParam node) -> void - # - # source://rbi//lib/rbi/rbs_printer.rb#489 + # source://rbi//lib/rbi/rbs_printer.rb#582 sig { override.params(node: ::RBI::RestParam).void } def visit_rest_param(node); end - # : (Scope node) -> void - # - # source://rbi//lib/rbi/rbs_printer.rb#151 + # source://rbi//lib/rbi/rbs_printer.rb#161 sig { params(node: ::RBI::Scope).void } def visit_scope(node); end - # : (Scope node) -> void - # - # source://rbi//lib/rbi/rbs_printer.rb#214 + # source://rbi//lib/rbi/rbs_printer.rb#224 sig { params(node: ::RBI::Scope).void } def visit_scope_body(node); end - # : (ScopeConflict node) -> void - # - # source://rbi//lib/rbi/rbs_printer.rb#731 + # source://rbi//lib/rbi/rbs_printer.rb#824 sig { override.params(node: ::RBI::ScopeConflict).void } def visit_scope_conflict(node); end - # : (Scope node) -> void - # - # source://rbi//lib/rbi/rbs_printer.rb#161 + # source://rbi//lib/rbi/rbs_printer.rb#171 sig { params(node: ::RBI::Scope).void } def visit_scope_header(node); end - # : (Send node) -> void - # - # source://rbi//lib/rbi/rbs_printer.rb#579 + # source://rbi//lib/rbi/rbs_printer.rb#672 sig { override.params(node: ::RBI::Send).void } def visit_send(node); end - # : (Sig node) -> void - # - # source://rbi//lib/rbi/rbs_printer.rb#450 + # source://rbi//lib/rbi/rbs_printer.rb#543 sig { params(node: ::RBI::Sig).void } def visit_sig(node); end - # : (SigParam node) -> void - # - # source://rbi//lib/rbi/rbs_printer.rb#463 + # source://rbi//lib/rbi/rbs_printer.rb#556 sig { params(node: ::RBI::SigParam).void } def visit_sig_param(node); end - # : (SingletonClass node) -> void - # - # source://rbi//lib/rbi/rbs_printer.rb#146 + # source://rbi//lib/rbi/rbs_printer.rb#156 sig { override.params(node: ::RBI::SingletonClass).void } def visit_singleton_class(node); end - # : (Struct node) -> void - # - # source://rbi//lib/rbi/rbs_printer.rb#140 + # source://rbi//lib/rbi/rbs_printer.rb#150 sig { override.params(node: ::RBI::Struct).void } def visit_struct(node); end - # : (TEnum node) -> void - # - # source://rbi//lib/rbi/rbs_printer.rb#648 + # source://rbi//lib/rbi/rbs_printer.rb#741 sig { override.params(node: ::RBI::TEnum).void } def visit_tenum(node); end - # : (TEnumBlock node) -> void - # - # source://rbi//lib/rbi/rbs_printer.rb#654 + # source://rbi//lib/rbi/rbs_printer.rb#747 sig { override.params(node: ::RBI::TEnumBlock).void } def visit_tenum_block(node); end - # : (TEnumValue node) -> void - # - # source://rbi//lib/rbi/rbs_printer.rb#660 + # source://rbi//lib/rbi/rbs_printer.rb#753 sig { override.params(node: ::RBI::TEnumValue).void } def visit_tenum_value(node); end - # : (Tree node) -> void - # - # source://rbi//lib/rbi/rbs_printer.rb#120 + # source://rbi//lib/rbi/rbs_printer.rb#130 sig { override.params(node: ::RBI::Tree).void } def visit_tree(node); end - # : (TStruct node) -> void - # - # source://rbi//lib/rbi/rbs_printer.rb#597 + # source://rbi//lib/rbi/rbs_printer.rb#690 sig { override.params(node: ::RBI::TStruct).void } def visit_tstruct(node); end - # : (TStructConst node) -> void - # - # source://rbi//lib/rbi/rbs_printer.rb#632 + # source://rbi//lib/rbi/rbs_printer.rb#725 sig { override.params(node: ::RBI::TStructConst).void } def visit_tstruct_const(node); end - # : (TStructProp node) -> void - # - # source://rbi//lib/rbi/rbs_printer.rb#640 + # source://rbi//lib/rbi/rbs_printer.rb#733 sig { override.params(node: ::RBI::TStructProp).void } def visit_tstruct_prop(node); end - # : (TypeMember node) -> void - # - # source://rbi//lib/rbi/rbs_printer.rb#676 + # source://rbi//lib/rbi/rbs_printer.rb#769 sig { override.params(node: ::RBI::TypeMember).void } def visit_type_member(node); end - # : (Visibility node) -> void - # - # source://rbi//lib/rbi/rbs_printer.rb#569 + # source://rbi//lib/rbi/rbs_printer.rb#662 sig { params(node: ::RBI::Visibility).void } def visit_visibility(node); end - # : (VisibilityGroup node) -> void - # - # source://rbi//lib/rbi/rbs_printer.rb#701 + # source://rbi//lib/rbi/rbs_printer.rb#794 sig { override.params(node: ::RBI::VisibilityGroup).void } def visit_visibility_group(node); end private - # : (Node node) -> bool - # # @return [Boolean] # - # source://rbi//lib/rbi/rbs_printer.rb#834 + # source://rbi//lib/rbi/rbs_printer.rb#927 sig { params(node: ::RBI::Node).returns(T::Boolean) } def oneline?(node); end # Parse a string containing a `T.let(x, X)` and extract the type # # Returns `nil` is the string is not a `T.let`. - # : (String? code) -> String? # - # source://rbi//lib/rbi/rbs_printer.rb#868 - # Parse a string containing a `T.let(x, X)` and extract the type - # Returns `nil` is the string is not a `T.let`. + # source://rbi//lib/rbi/rbs_printer.rb#961 sig { params(code: T.nilable(::String)).returns(T.nilable(::String)) } def parse_t_let(code); end - # : ((Type | String) type) -> Type - # - # source://rbi//lib/rbi/rbs_printer.rb#856 + # source://rbi//lib/rbi/rbs_printer.rb#949 sig { params(type: T.any(::RBI::Type, ::String)).returns(::RBI::Type) } def parse_type(type); end - # : (Node node) -> void - # - # source://rbi//lib/rbi/rbs_printer.rb#747 + # source://rbi//lib/rbi/rbs_printer.rb#840 sig { params(node: ::RBI::Node).void } def print_blank_line_before(node); end - # : (Node node) -> void - # - # source://rbi//lib/rbi/rbs_printer.rb#766 + # source://rbi//lib/rbi/rbs_printer.rb#859 sig { params(node: ::RBI::Node).void } def print_loc(node); end - # : (Param node, last: bool) -> void - # - # source://rbi//lib/rbi/rbs_printer.rb#808 + # source://rbi//lib/rbi/rbs_printer.rb#901 sig { params(node: ::RBI::Param, last: T::Boolean).void } def print_param_comment_leading_space(node, last:); end - # : (Method node, SigParam param) -> void - # - # source://rbi//lib/rbi/rbs_printer.rb#772 + # source://rbi//lib/rbi/rbs_printer.rb#865 sig { params(node: ::RBI::Method, param: ::RBI::SigParam).void } def print_sig_param(node, param); end - # : (SigParam node, last: bool) -> void - # - # source://rbi//lib/rbi/rbs_printer.rb#826 + # source://rbi//lib/rbi/rbs_printer.rb#919 sig { params(node: ::RBI::SigParam, last: T::Boolean).void } def print_sig_param_comment_leading_space(node, last:); end end @@ -3220,13 +2399,11 @@ class RBI::RBSPrinter::Error < ::RBI::Error; end # source://rbi//lib/rbi/model.rb#5 class RBI::ReplaceNodeError < ::RBI::Error; end -# source://rbi//lib/rbi/model.rb#534 +# source://rbi//lib/rbi/model.rb#519 class RBI::ReqParam < ::RBI::Param - # : (String name, ?loc: Loc?, ?comments: Array[Comment]) ?{ (ReqParam node) -> void } -> void - # # @return [ReqParam] a new instance of ReqParam # - # source://rbi//lib/rbi/model.rb#536 + # source://rbi//lib/rbi/model.rb#521 sig do params( name: ::String, @@ -3237,51 +2414,39 @@ class RBI::ReqParam < ::RBI::Param end def initialize(name, loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end - # : (Object? other) -> bool - # - # source://rbi//lib/rbi/model.rb#542 + # source://rbi//lib/rbi/model.rb#527 sig { params(other: T.nilable(::Object)).returns(T::Boolean) } def ==(other); end end -# source://rbi//lib/rbi/model.rb#1127 +# source://rbi//lib/rbi/model.rb#1103 class RBI::RequiresAncestor < ::RBI::NodeWithComments include ::RBI::Indexable - # : (String name, ?loc: Loc?, ?comments: Array[Comment]) -> void - # # @return [RequiresAncestor] a new instance of RequiresAncestor # - # source://rbi//lib/rbi/model.rb#1132 + # source://rbi//lib/rbi/model.rb#1108 sig { params(name: ::String, loc: T.nilable(::RBI::Loc), comments: T::Array[::RBI::Comment]).void } def initialize(name, loc: T.unsafe(nil), comments: T.unsafe(nil)); end - # : -> Array[String] - # - # source://rbi//lib/rbi/index.rb#159 + # source://rbi//lib/rbi/index.rb#154 sig { override.returns(T::Array[::String]) } def index_ids; end - # : String - # - # source://rbi//lib/rbi/model.rb#1129 + # source://rbi//lib/rbi/model.rb#1105 sig { returns(::String) } def name; end - # : -> String - # - # source://rbi//lib/rbi/model.rb#1139 + # source://rbi//lib/rbi/model.rb#1115 sig { override.returns(::String) } def to_s; end end -# source://rbi//lib/rbi/model.rb#564 +# source://rbi//lib/rbi/model.rb#549 class RBI::RestParam < ::RBI::Param - # : (String name, ?loc: Loc?, ?comments: Array[Comment]) ?{ (RestParam node) -> void } -> void - # # @return [RestParam] a new instance of RestParam # - # source://rbi//lib/rbi/model.rb#566 + # source://rbi//lib/rbi/model.rb#551 sig do params( name: ::String, @@ -3292,15 +2457,11 @@ class RBI::RestParam < ::RBI::Param end def initialize(name, loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end - # : (Object? other) -> bool - # - # source://rbi//lib/rbi/model.rb#578 + # source://rbi//lib/rbi/model.rb#563 sig { params(other: T.nilable(::Object)).returns(T::Boolean) } def ==(other); end - # : -> String - # - # source://rbi//lib/rbi/model.rb#573 + # source://rbi//lib/rbi/model.rb#558 sig { override.returns(::String) } def to_s; end end @@ -3310,36 +2471,26 @@ module RBI::Rewriters; end # source://rbi//lib/rbi/rewriters/add_sig_templates.rb#6 class RBI::Rewriters::AddSigTemplates < ::RBI::Visitor - # : (?with_todo_comment: bool) -> void - # # @return [AddSigTemplates] a new instance of AddSigTemplates # # source://rbi//lib/rbi/rewriters/add_sig_templates.rb#8 sig { params(with_todo_comment: T::Boolean).void } def initialize(with_todo_comment: T.unsafe(nil)); end - # : (Node? node) -> void - # # source://rbi//lib/rbi/rewriters/add_sig_templates.rb#15 sig { override.params(node: T.nilable(::RBI::Node)).void } def visit(node); end private - # : (Attr attr) -> void - # # source://rbi//lib/rbi/rewriters/add_sig_templates.rb#29 sig { params(attr: ::RBI::Attr).void } def add_attr_sig(attr); end - # : (Method method) -> void - # # source://rbi//lib/rbi/rewriters/add_sig_templates.rb#44 sig { params(method: ::RBI::Method).void } def add_method_sig(method); end - # : (NodeWithComments node) -> void - # # source://rbi//lib/rbi/rewriters/add_sig_templates.rb#55 sig { params(node: ::RBI::NodeWithComments).void } def add_todo_comment(node); end @@ -3347,30 +2498,22 @@ end # source://rbi//lib/rbi/rewriters/annotate.rb#6 class RBI::Rewriters::Annotate < ::RBI::Visitor - # : (String annotation, ?annotate_scopes: bool, ?annotate_properties: bool) -> void - # # @return [Annotate] a new instance of Annotate # # source://rbi//lib/rbi/rewriters/annotate.rb#8 sig { params(annotation: ::String, annotate_scopes: T::Boolean, annotate_properties: T::Boolean).void } def initialize(annotation, annotate_scopes: T.unsafe(nil), annotate_properties: T.unsafe(nil)); end - # : (Node? node) -> void - # # source://rbi//lib/rbi/rewriters/annotate.rb#17 sig { override.params(node: T.nilable(::RBI::Node)).void } def visit(node); end private - # : (NodeWithComments node) -> void - # # source://rbi//lib/rbi/rewriters/annotate.rb#30 sig { params(node: ::RBI::NodeWithComments).void } def annotate_node(node); end - # : (Node node) -> bool - # # @return [Boolean] # # source://rbi//lib/rbi/rewriters/annotate.rb#37 @@ -3380,16 +2523,12 @@ end # source://rbi//lib/rbi/rewriters/attr_to_methods.rb#22 class RBI::Rewriters::AttrToMethods < ::RBI::Visitor - # : (Node? node) -> void - # # source://rbi//lib/rbi/rewriters/attr_to_methods.rb#25 sig { override.params(node: T.nilable(::RBI::Node)).void } def visit(node); end private - # : (Node node, with: Array[Node]) -> void - # # @raise [ReplaceNodeError] # # source://rbi//lib/rbi/rewriters/attr_to_methods.rb#38 @@ -3399,24 +2538,18 @@ end # source://rbi//lib/rbi/rewriters/deannotate.rb#6 class RBI::Rewriters::Deannotate < ::RBI::Visitor - # : (String annotation) -> void - # # @return [Deannotate] a new instance of Deannotate # # source://rbi//lib/rbi/rewriters/deannotate.rb#8 sig { params(annotation: ::String).void } def initialize(annotation); end - # : (Node? node) -> void - # # source://rbi//lib/rbi/rewriters/deannotate.rb#15 sig { override.params(node: T.nilable(::RBI::Node)).void } def visit(node); end private - # : (NodeWithComments node) -> void - # # source://rbi//lib/rbi/rewriters/deannotate.rb#26 sig { params(node: ::RBI::NodeWithComments).void } def deannotate_node(node); end @@ -3475,59 +2608,18 @@ end # - RBI with no version annotations are automatically counted towards ALL versions # # source://rbi//lib/rbi/rewriters/filter_versions.rb#57 -# Take a gem version and filter out all RBI that is not relevant to that version based on @version annotations -# in comments. As an example: -# ~~~rb -# tree = Parser.parse_string(<<~RBI) -# class Foo -# # @version > 0.3.0 -# def bar -# end -# # @version <= 0.3.0 -# def bar(arg1) -# end -# RBI -# Rewriters::FilterVersions.filter(tree, Gem::Version.new("0.3.1")) -# assert_equal(<<~RBI, tree.string) -# ~~~ -# Supported operators: -# - equals `=` -# - not equals `!=` -# - greater than `>` -# - greater than or equal to `>=` -# - less than `<` -# - less than or equal to `<=` -# - pessimistic or twiddle-wakka`~>` -# And/or logic: -# - "And" logic: put multiple versions on the same line -# - e.g. `@version > 0.3.0, <1.0.0` means version must be greater than 0.3.0 AND less than 1.0.0 -# - "Or" logic: put multiple versions on subsequent lines -# - e.g. the following means version must be less than 0.3.0 OR greater than 1.0.0 -# ``` -# # @version < 0.3.0 -# # @version > 1.0.0 -# Prerelease versions: -# - Prerelease versions are considered less than their non-prerelease counterparts -# - e.g. `0.4.0-prerelease` is less than `0.4.0` -# RBI with no versions: class RBI::Rewriters::FilterVersions < ::RBI::Visitor - # : (Gem::Version version) -> void - # # @return [FilterVersions] a new instance of FilterVersions # # source://rbi//lib/rbi/rewriters/filter_versions.rb#69 sig { params(version: ::Gem::Version).void } def initialize(version); end - # : (Node? node) -> void - # # source://rbi//lib/rbi/rewriters/filter_versions.rb#76 sig { override.params(node: T.nilable(::RBI::Node)).void } def visit(node); end class << self - # : (Tree tree, Gem::Version version) -> void - # # source://rbi//lib/rbi/rewriters/filter_versions.rb#62 sig { params(tree: ::RBI::Tree, version: ::Gem::Version).void } def filter(tree, version); end @@ -3563,23 +2655,7 @@ RBI::Rewriters::FilterVersions::VERSION_PREFIX = T.let(T.unsafe(nil), String) # ~~~ # # source://rbi//lib/rbi/rewriters/flatten_singleton_methods.rb#30 -# Rewrite non-singleton methods inside singleton classes to singleton methods -# Example: -# ~~~rb -# class << self -# def m1; end -# def self.m2; end -# class << self -# def m3; end -# end -# end -# will be rewritten to: -# def self.m1; end -# def self.m2; end -# def self.m3; end class RBI::Rewriters::FlattenSingletonMethods < ::RBI::Visitor - # : (Node? node) -> void - # # source://rbi//lib/rbi/rewriters/flatten_singleton_methods.rb#33 sig { override.params(node: T.nilable(::RBI::Node)).void } def visit(node); end @@ -3608,29 +2684,13 @@ end # ~~~ # # source://rbi//lib/rbi/rewriters/flatten_visibilities.rb#27 -# Flattens visibility nodes into method nodes -# Example: -# ~~~rb -# class A -# def m1; end -# private -# def m2; end -# def m3; end -# end -# will be transformed into: -# private def m2; end -# private def m3; end class RBI::Rewriters::FlattenVisibilities < ::RBI::Visitor - # : -> void - # # @return [FlattenVisibilities] a new instance of FlattenVisibilities # # source://rbi//lib/rbi/rewriters/flatten_visibilities.rb#29 sig { void } def initialize; end - # : (Node? node) -> void - # # source://rbi//lib/rbi/rewriters/flatten_visibilities.rb#37 sig { override.params(node: T.nilable(::RBI::Node)).void } def visit(node); end @@ -3638,16 +2698,12 @@ end # source://rbi//lib/rbi/rewriters/group_nodes.rb#8 class RBI::Rewriters::GroupNodes < ::RBI::Visitor - # : (Node? node) -> void - # # source://rbi//lib/rbi/rewriters/group_nodes.rb#11 sig { override.params(node: T.nilable(::RBI::Node)).void } def visit(node); end private - # : (Node node) -> Group::Kind - # # source://rbi//lib/rbi/rewriters/group_nodes.rb#35 sig { params(node: ::RBI::Node).returns(::RBI::Group::Kind) } def group_kind(node); end @@ -3688,45 +2744,22 @@ end # ~~~ # # source://rbi//lib/rbi/rewriters/merge_trees.rb#39 -# Merge two RBI trees together -# Be this `Tree`: -# ~~~rb -# class Foo -# attr_accessor :a -# def m; end -# C = 10 -# end -# Merged with this one: -# attr_reader :a -# def m(x); end -# Compatible definitions are merged together while incompatible definitions are moved into a `ConflictTree`: -# <<<<<<< left -# ======= -# >>>>>>> right class RBI::Rewriters::Merge - # : (?left_name: String, ?right_name: String, ?keep: Keep) -> void - # # @return [Merge] a new instance of Merge # # source://rbi//lib/rbi/rewriters/merge_trees.rb#66 sig { params(left_name: ::String, right_name: ::String, keep: ::RBI::Rewriters::Merge::Keep).void } def initialize(left_name: T.unsafe(nil), right_name: T.unsafe(nil), keep: T.unsafe(nil)); end - # : (Tree tree) -> void - # # source://rbi//lib/rbi/rewriters/merge_trees.rb#75 sig { params(tree: ::RBI::Tree).void } def merge(tree); end - # : MergeTree - # # source://rbi//lib/rbi/rewriters/merge_trees.rb#63 sig { returns(::RBI::MergeTree) } def tree; end class << self - # : (Tree left, Tree right, ?left_name: String, ?right_name: String, ?keep: Keep) -> MergeTree - # # source://rbi//lib/rbi/rewriters/merge_trees.rb#50 sig do params( @@ -3744,22 +2777,30 @@ end # Used for logging / error displaying purpose # # source://rbi//lib/rbi/rewriters/merge_trees.rb#82 -class RBI::Rewriters::Merge::Conflict < ::T::Struct - const :left, ::RBI::Node - const :right, ::RBI::Node - const :left_name, ::String - const :right_name, ::String - - # : -> String +class RBI::Rewriters::Merge::Conflict + # @return [Conflict] a new instance of Conflict # - # source://rbi//lib/rbi/rewriters/merge_trees.rb#89 + # source://rbi//lib/rbi/rewriters/merge_trees.rb#90 + sig { params(left: ::RBI::Node, right: ::RBI::Node, left_name: ::String, right_name: ::String).void } + def initialize(left:, right:, left_name:, right_name:); end + + # source://rbi//lib/rbi/rewriters/merge_trees.rb#84 + sig { returns(::RBI::Node) } + def left; end + + # source://rbi//lib/rbi/rewriters/merge_trees.rb#87 + sig { returns(::String) } + def left_name; end + + # source://rbi//lib/rbi/rewriters/merge_trees.rb#84 + def right; end + + # source://rbi//lib/rbi/rewriters/merge_trees.rb#87 + def right_name; end + + # source://rbi//lib/rbi/rewriters/merge_trees.rb#98 sig { returns(::String) } def to_s; end - - class << self - # source://sorbet-runtime/0.5.12079/lib/types/struct.rb#13 - def inherited(s); end - end end # Merge adjacent conflict trees @@ -3793,58 +2834,47 @@ end # end # ~~~ # -# source://rbi//lib/rbi/rewriters/merge_trees.rb#238 -# Merge adjacent conflict trees -# Transform this: -# ~~~rb -# class Foo -# <<<<<<< left -# def m1; end -# ======= -# def m1(a); end -# >>>>>>> right -# def m2(a); end -# def m2; end -# end -# Into this: +# source://rbi//lib/rbi/rewriters/merge_trees.rb#247 class RBI::Rewriters::Merge::ConflictTreeMerger < ::RBI::Visitor - # : (Node? node) -> void - # - # source://rbi//lib/rbi/rewriters/merge_trees.rb#241 + # source://rbi//lib/rbi/rewriters/merge_trees.rb#250 sig { override.params(node: T.nilable(::RBI::Node)).void } def visit(node); end - # : (Array[Node] nodes) -> void - # - # source://rbi//lib/rbi/rewriters/merge_trees.rb#247 + # source://rbi//lib/rbi/rewriters/merge_trees.rb#256 sig { override.params(nodes: T::Array[::RBI::Node]).void } def visit_all(nodes); end private - # : (Tree left, Tree right) -> void - # - # source://rbi//lib/rbi/rewriters/merge_trees.rb#268 + # source://rbi//lib/rbi/rewriters/merge_trees.rb#277 sig { params(left: ::RBI::Tree, right: ::RBI::Tree).void } def merge_conflict_trees(left, right); end end # source://rbi//lib/rbi/rewriters/merge_trees.rb#40 -class RBI::Rewriters::Merge::Keep < ::T::Enum - enums do - LEFT = new - NONE = new - RIGHT = new +class RBI::Rewriters::Merge::Keep + class << self + private + + # source://rbi//lib/rbi/rewriters/merge_trees.rb#45 + def new(*_arg0); end end end -# source://rbi//lib/rbi/rewriters/merge_trees.rb#94 +# source://rbi//lib/rbi/rewriters/merge_trees.rb#42 +RBI::Rewriters::Merge::Keep::LEFT = T.let(T.unsafe(nil), RBI::Rewriters::Merge::Keep) + +# source://rbi//lib/rbi/rewriters/merge_trees.rb#41 +RBI::Rewriters::Merge::Keep::NONE = T.let(T.unsafe(nil), RBI::Rewriters::Merge::Keep) + +# source://rbi//lib/rbi/rewriters/merge_trees.rb#43 +RBI::Rewriters::Merge::Keep::RIGHT = T.let(T.unsafe(nil), RBI::Rewriters::Merge::Keep) + +# source://rbi//lib/rbi/rewriters/merge_trees.rb#103 class RBI::Rewriters::Merge::TreeMerger < ::RBI::Visitor - # : (Tree output, ?left_name: String, ?right_name: String, ?keep: Keep) -> void - # # @return [TreeMerger] a new instance of TreeMerger # - # source://rbi//lib/rbi/rewriters/merge_trees.rb#99 + # source://rbi//lib/rbi/rewriters/merge_trees.rb#108 sig do params( output: ::RBI::Tree, @@ -3855,55 +2885,39 @@ class RBI::Rewriters::Merge::TreeMerger < ::RBI::Visitor end def initialize(output, left_name: T.unsafe(nil), right_name: T.unsafe(nil), keep: T.unsafe(nil)); end - # : Array[Conflict] - # - # source://rbi//lib/rbi/rewriters/merge_trees.rb#96 + # source://rbi//lib/rbi/rewriters/merge_trees.rb#105 sig { returns(T::Array[::RBI::Rewriters::Merge::Conflict]) } def conflicts; end - # : (Node? node) -> void - # - # source://rbi//lib/rbi/rewriters/merge_trees.rb#112 + # source://rbi//lib/rbi/rewriters/merge_trees.rb#121 sig { override.params(node: T.nilable(::RBI::Node)).void } def visit(node); end private - # : -> Tree - # - # source://rbi//lib/rbi/rewriters/merge_trees.rb#161 + # source://rbi//lib/rbi/rewriters/merge_trees.rb#170 sig { returns(::RBI::Tree) } def current_scope; end - # : (Scope left, Scope right) -> void - # - # source://rbi//lib/rbi/rewriters/merge_trees.rb#178 + # source://rbi//lib/rbi/rewriters/merge_trees.rb#187 sig { params(left: ::RBI::Scope, right: ::RBI::Scope).void } def make_conflict_scope(left, right); end - # : (Node left, Node right) -> void - # - # source://rbi//lib/rbi/rewriters/merge_trees.rb#185 + # source://rbi//lib/rbi/rewriters/merge_trees.rb#194 sig { params(left: ::RBI::Node, right: ::RBI::Node).void } def make_conflict_tree(left, right); end - # : (Node node) -> Node? - # - # source://rbi//lib/rbi/rewriters/merge_trees.rb#166 + # source://rbi//lib/rbi/rewriters/merge_trees.rb#175 sig { params(node: ::RBI::Node).returns(T.nilable(::RBI::Node)) } def previous_definition(node); end - # : (Scope left, Scope right) -> Scope - # - # source://rbi//lib/rbi/rewriters/merge_trees.rb#197 + # source://rbi//lib/rbi/rewriters/merge_trees.rb#206 sig { params(left: ::RBI::Scope, right: ::RBI::Scope).returns(::RBI::Scope) } def replace_scope_header(left, right); end end # source://rbi//lib/rbi/rewriters/nest_non_public_members.rb#6 class RBI::Rewriters::NestNonPublicMembers < ::RBI::Visitor - # : (Node? node) -> void - # # source://rbi//lib/rbi/rewriters/nest_non_public_members.rb#9 sig { override.params(node: T.nilable(::RBI::Node)).void } def visit(node); end @@ -3911,8 +2925,6 @@ end # source://rbi//lib/rbi/rewriters/nest_singleton_methods.rb#6 class RBI::Rewriters::NestSingletonMethods < ::RBI::Visitor - # : (Node? node) -> void - # # source://rbi//lib/rbi/rewriters/nest_singleton_methods.rb#9 sig { override.params(node: T.nilable(::RBI::Node)).void } def visit(node); end @@ -3936,27 +2948,13 @@ end # ~~~ # # source://rbi//lib/rbi/rewriters/nest_top_level_members.rb#22 -# This rewriter moves top-level members into a top-level Object class -# Example: -# ~~~rb -# def foo; end -# attr_reader :bar -# will be rewritten to: -# class Object -# def foo; end -# attr_reader :bar -# end class RBI::Rewriters::NestTopLevelMembers < ::RBI::Visitor - # : -> void - # # @return [NestTopLevelMembers] a new instance of NestTopLevelMembers # # source://rbi//lib/rbi/rewriters/nest_top_level_members.rb#24 sig { void } def initialize; end - # : (Node? node) -> void - # # source://rbi//lib/rbi/rewriters/nest_top_level_members.rb#32 sig { override.params(node: T.nilable(::RBI::Node)).void } def visit(node); end @@ -4006,79 +3004,42 @@ end # ~~~ # # source://rbi//lib/rbi/rewriters/remove_known_definitions.rb#48 -# Remove all definitions existing in the index from the current tree -# Let's create an `Index` from two different `Tree`s: -# ~~~rb -# tree1 = Parse.parse_string(<<~RBI) -# class Foo -# def foo; end -# end -# RBI -# tree2 = Parse.parse_string(<<~RBI) -# FOO = 10 -# index = Index.index(tree1, tree2) -# We can use `RemoveKnownDefinitions` to remove the definitions found in the `index` from the `Tree` to clean: -# tree_to_clean = Parser.parse_string(<<~RBI) -# def bar; end -# BAR = 42 -# cleaned_tree, operations = RemoveKnownDefinitions.remove(tree_to_clean, index) -# assert_equal(<<~RBI, cleaned_tree) -# assert_equal(<<~OPERATIONS, operations.join("\n")) -# Deleted ::Foo#foo at -:2:2-2-16 (duplicate from -:2:2-2:16) -# Deleted ::FOO at -:5:0-5:8 (duplicate from -:1:0-1:8) -# OPERATIONS class RBI::Rewriters::RemoveKnownDefinitions < ::RBI::Visitor - # : (Index index) -> void - # # @return [RemoveKnownDefinitions] a new instance of RemoveKnownDefinitions # # source://rbi//lib/rbi/rewriters/remove_known_definitions.rb#53 sig { params(index: ::RBI::Index).void } def initialize(index); end - # : Array[Operation] - # # source://rbi//lib/rbi/rewriters/remove_known_definitions.rb#50 sig { returns(T::Array[::RBI::Rewriters::RemoveKnownDefinitions::Operation]) } def operations; end - # : (Node? node) -> void - # # source://rbi//lib/rbi/rewriters/remove_known_definitions.rb#75 sig { override.params(node: T.nilable(::RBI::Node)).void } def visit(node); end - # : (Array[Node] nodes) -> void - # # source://rbi//lib/rbi/rewriters/remove_known_definitions.rb#69 sig { params(nodes: T::Array[::RBI::Node]).void } def visit_all(nodes); end private - # : (Node node, Node previous) -> bool - # # @return [Boolean] # # source://rbi//lib/rbi/rewriters/remove_known_definitions.rb#103 sig { params(node: ::RBI::Node, previous: ::RBI::Node).returns(T::Boolean) } def can_delete_node?(node, previous); end - # : (Node node, Node previous) -> void - # # source://rbi//lib/rbi/rewriters/remove_known_definitions.rb#121 sig { params(node: ::RBI::Node, previous: ::RBI::Node).void } def delete_node(node, previous); end - # : (Indexable node) -> Node? - # # source://rbi//lib/rbi/rewriters/remove_known_definitions.rb#94 sig { params(node: ::RBI::Indexable).returns(T.nilable(::RBI::Node)) } def previous_definition_for(node); end class << self - # : (Tree tree, Index index) -> [Tree, Array[Operation]] - # # source://rbi//lib/rbi/rewriters/remove_known_definitions.rb#61 sig do params( @@ -4091,52 +3052,45 @@ class RBI::Rewriters::RemoveKnownDefinitions < ::RBI::Visitor end # source://rbi//lib/rbi/rewriters/remove_known_definitions.rb#126 -class RBI::Rewriters::RemoveKnownDefinitions::Operation < ::T::Struct - const :deleted_node, ::RBI::Node - const :duplicate_of, ::RBI::Node - - # : -> String +class RBI::Rewriters::RemoveKnownDefinitions::Operation + # @return [Operation] a new instance of Operation # # source://rbi//lib/rbi/rewriters/remove_known_definitions.rb#131 + sig { params(deleted_node: ::RBI::Node, duplicate_of: ::RBI::Node).void } + def initialize(deleted_node:, duplicate_of:); end + + # source://rbi//lib/rbi/rewriters/remove_known_definitions.rb#128 + sig { returns(::RBI::Node) } + def deleted_node; end + + # source://rbi//lib/rbi/rewriters/remove_known_definitions.rb#128 + def duplicate_of; end + + # source://rbi//lib/rbi/rewriters/remove_known_definitions.rb#137 sig { returns(::String) } def to_s; end - - class << self - # source://sorbet-runtime/0.5.12079/lib/types/struct.rb#13 - def inherited(s); end - end end # source://rbi//lib/rbi/rewriters/sort_nodes.rb#6 class RBI::Rewriters::SortNodes < ::RBI::Visitor - # : (Node? node) -> void - # # source://rbi//lib/rbi/rewriters/sort_nodes.rb#9 sig { override.params(node: T.nilable(::RBI::Node)).void } def visit(node); end private - # : (Group::Kind kind) -> Integer - # # source://rbi//lib/rbi/rewriters/sort_nodes.rb#74 sig { params(kind: ::RBI::Group::Kind).returns(::Integer) } def group_rank(kind); end - # : (Node node) -> String? - # # source://rbi//lib/rbi/rewriters/sort_nodes.rb#95 sig { params(node: ::RBI::Node).returns(T.nilable(::String)) } def node_name(node); end - # : (Node node) -> Integer - # # source://rbi//lib/rbi/rewriters/sort_nodes.rb#46 sig { params(node: ::RBI::Node).returns(::Integer) } def node_rank(node); end - # : (Node node) -> void - # # source://rbi//lib/rbi/rewriters/sort_nodes.rb#107 sig { params(node: ::RBI::Node).void } def sort_node_names!(node); end @@ -4146,28 +3100,20 @@ end # # source://rbi//lib/rbi/rewriters/translate_rbs_sigs.rb#7 class RBI::Rewriters::TranslateRBSSigs < ::RBI::Visitor - # : (Node? node) -> void - # # source://rbi//lib/rbi/rewriters/translate_rbs_sigs.rb#12 sig { override.params(node: T.nilable(::RBI::Node)).void } def visit(node); end private - # : (Method | Attr) -> Array[RBSComment] - # # source://rbi//lib/rbi/rewriters/translate_rbs_sigs.rb#34 sig { params(node: T.any(::RBI::Attr, ::RBI::Method)).returns(T::Array[::RBI::RBSComment]) } def extract_rbs_comments(node); end - # : (Attr, RBSComment) -> Sig - # # source://rbi//lib/rbi/rewriters/translate_rbs_sigs.rb#61 sig { params(node: ::RBI::Attr, comment: ::RBI::RBSComment).returns(::RBI::Sig) } def translate_rbs_attr_type(node, comment); end - # : (Method, RBSComment) -> Sig - # # source://rbi//lib/rbi/rewriters/translate_rbs_sigs.rb#53 sig { params(node: ::RBI::Method, comment: ::RBI::RBSComment).returns(::RBI::Sig) } def translate_rbs_method_type(node, comment); end @@ -4176,39 +3122,31 @@ end # source://rbi//lib/rbi/rewriters/translate_rbs_sigs.rb#8 class RBI::Rewriters::TranslateRBSSigs::Error < ::RBI::Error; end -# Scopes +# @abstract # -# @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. -# -# source://rbi//lib/rbi/model.rb#168 +# source://rbi//lib/rbi/model.rb#163 class RBI::Scope < ::RBI::Tree include ::RBI::Indexable abstract! # Duplicate `self` scope without its body - # : -> self # - # source://rbi//lib/rbi/rewriters/merge_trees.rb#337 - # Duplicate `self` scope without its body + # source://rbi//lib/rbi/rewriters/merge_trees.rb#346 sig { returns(T.self_type) } def dup_empty; end # @abstract # - # source://rbi//lib/rbi/model.rb#175 + # source://rbi//lib/rbi/model.rb#166 sig { abstract.returns(::String) } def fully_qualified_name; end - # : -> Array[String] - # - # source://rbi//lib/rbi/index.rb#89 + # source://rbi//lib/rbi/index.rb#84 sig { override.returns(T::Array[::String]) } def index_ids; end - # : -> String - # - # source://rbi//lib/rbi/model.rb#179 + # source://rbi//lib/rbi/model.rb#170 sig { override.returns(::String) } def to_s; end end @@ -4226,62 +3164,38 @@ end # end # ~~~ # -# source://rbi//lib/rbi/rewriters/merge_trees.rb#577 -# A conflict between two scope headers -# Is rendered as a merge conflict between `left` and` right` for scope definitions: -# ~~~rb -# <<<<<<< left -# class Foo -# ======= -# module Foo -# >>>>>>> right -# def m1; end -# end +# source://rbi//lib/rbi/rewriters/merge_trees.rb#586 class RBI::ScopeConflict < ::RBI::Tree - # : (left: Scope, right: Scope, ?left_name: String, ?right_name: String) -> void - # # @return [ScopeConflict] a new instance of ScopeConflict # - # source://rbi//lib/rbi/rewriters/merge_trees.rb#585 + # source://rbi//lib/rbi/rewriters/merge_trees.rb#594 sig { params(left: ::RBI::Scope, right: ::RBI::Scope, left_name: ::String, right_name: ::String).void } def initialize(left:, right:, left_name: T.unsafe(nil), right_name: T.unsafe(nil)); end - # : Scope - # - # source://rbi//lib/rbi/rewriters/merge_trees.rb#579 + # source://rbi//lib/rbi/rewriters/merge_trees.rb#588 sig { returns(::RBI::Scope) } def left; end - # : String - # - # source://rbi//lib/rbi/rewriters/merge_trees.rb#582 + # source://rbi//lib/rbi/rewriters/merge_trees.rb#591 sig { returns(::String) } def left_name; end - # : Scope - # - # source://rbi//lib/rbi/rewriters/merge_trees.rb#579 - # @return [Scope] + # source://rbi//lib/rbi/rewriters/merge_trees.rb#588 def right; end - # : String - # - # source://rbi//lib/rbi/rewriters/merge_trees.rb#582 - # @return [String] + # source://rbi//lib/rbi/rewriters/merge_trees.rb#591 def right_name; end end # Sends # -# source://rbi//lib/rbi/model.rb#773 +# source://rbi//lib/rbi/model.rb#752 class RBI::Send < ::RBI::NodeWithComments include ::RBI::Indexable - # : (String method, ?Array[Arg] args, ?loc: Loc?, ?comments: Array[Comment]) ?{ (Send node) -> void } -> void - # # @return [Send] a new instance of Send # - # source://rbi//lib/rbi/model.rb#781 + # source://rbi//lib/rbi/model.rb#760 sig do params( method: ::String, @@ -4293,60 +3207,44 @@ class RBI::Send < ::RBI::NodeWithComments end def initialize(method, args = T.unsafe(nil), loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end - # : (Arg arg) -> void - # - # source://rbi//lib/rbi/model.rb#789 + # source://rbi//lib/rbi/model.rb#768 sig { params(arg: ::RBI::Arg).void } def <<(arg); end - # : (Object? other) -> bool - # - # source://rbi//lib/rbi/model.rb#794 + # source://rbi//lib/rbi/model.rb#773 sig { params(other: T.nilable(::Object)).returns(T::Boolean) } def ==(other); end - # : Array[Arg] - # - # source://rbi//lib/rbi/model.rb#778 + # source://rbi//lib/rbi/model.rb#757 sig { returns(T::Array[::RBI::Arg]) } def args; end - # : (Node other) -> bool - # # @return [Boolean] # - # source://rbi//lib/rbi/rewriters/merge_trees.rb#503 + # source://rbi//lib/rbi/rewriters/merge_trees.rb#512 sig { override.params(other: ::RBI::Node).returns(T::Boolean) } def compatible_with?(other); end - # : -> Array[String] - # - # source://rbi//lib/rbi/index.rb#189 + # source://rbi//lib/rbi/index.rb#184 sig { override.returns(T::Array[::String]) } def index_ids; end - # : String - # - # source://rbi//lib/rbi/model.rb#775 + # source://rbi//lib/rbi/model.rb#754 sig { returns(::String) } def method; end - # : -> String - # - # source://rbi//lib/rbi/model.rb#799 + # source://rbi//lib/rbi/model.rb#778 sig { returns(::String) } def to_s; end end # Sorbet's sigs # -# source://rbi//lib/rbi/model.rb#848 +# source://rbi//lib/rbi/model.rb#827 class RBI::Sig < ::RBI::NodeWithComments - # : (?params: Array[SigParam], ?return_type: (Type | String), ?is_abstract: bool, ?is_override: bool, ?is_overridable: bool, ?is_final: bool, ?allow_incompatible_override: bool, ?without_runtime: bool, ?type_params: Array[String], ?checked: Symbol?, ?loc: Loc?, ?comments: Array[Comment]) ?{ (Sig node) -> void } -> void - # # @return [Sig] a new instance of Sig # - # source://rbi//lib/rbi/model.rb#865 + # source://rbi//lib/rbi/model.rb#844 sig do params( params: T::Array[::RBI::SigParam], @@ -4366,140 +3264,83 @@ class RBI::Sig < ::RBI::NodeWithComments end def initialize(params: T.unsafe(nil), return_type: T.unsafe(nil), is_abstract: T.unsafe(nil), is_override: T.unsafe(nil), is_overridable: T.unsafe(nil), is_final: T.unsafe(nil), allow_incompatible_override: T.unsafe(nil), without_runtime: T.unsafe(nil), type_params: T.unsafe(nil), checked: T.unsafe(nil), loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end - # : (SigParam param) -> void - # - # source://rbi//lib/rbi/model.rb#895 + # source://rbi//lib/rbi/model.rb#874 sig { params(param: ::RBI::SigParam).void } def <<(param); end - # : (Object other) -> bool - # - # source://rbi//lib/rbi/model.rb#905 + # source://rbi//lib/rbi/model.rb#884 sig { params(other: ::Object).returns(T::Boolean) } def ==(other); end - # : (String name, (Type | String) type) -> void - # - # source://rbi//lib/rbi/model.rb#900 + # source://rbi//lib/rbi/model.rb#879 sig { params(name: ::String, type: T.any(::RBI::Type, ::String)).void } def add_param(name, type); end - # : bool - # - # source://rbi//lib/rbi/model.rb#856 - # @return [Boolean] + # source://rbi//lib/rbi/model.rb#835 def allow_incompatible_override; end - # : bool - # - # source://rbi//lib/rbi/model.rb#856 - # @return [Boolean] + # source://rbi//lib/rbi/model.rb#835 def allow_incompatible_override=(_arg0); end - # : Symbol? - # - # source://rbi//lib/rbi/model.rb#862 + # source://rbi//lib/rbi/model.rb#841 sig { returns(T.nilable(::Symbol)) } def checked; end - # : Symbol? - # - # source://rbi//lib/rbi/model.rb#862 - # @return [Symbol, nil] + # source://rbi//lib/rbi/model.rb#841 def checked=(_arg0); end - # : bool - # - # source://rbi//lib/rbi/model.rb#856 + # source://rbi//lib/rbi/model.rb#835 sig { returns(T::Boolean) } def is_abstract; end - # : bool - # - # source://rbi//lib/rbi/model.rb#856 - # @return [Boolean] + # source://rbi//lib/rbi/model.rb#835 def is_abstract=(_arg0); end - # : bool - # - # source://rbi//lib/rbi/model.rb#856 - # @return [Boolean] + # source://rbi//lib/rbi/model.rb#835 def is_final; end - # : bool - # - # source://rbi//lib/rbi/model.rb#856 - # @return [Boolean] + # source://rbi//lib/rbi/model.rb#835 def is_final=(_arg0); end - # : bool - # - # source://rbi//lib/rbi/model.rb#856 - # @return [Boolean] + # source://rbi//lib/rbi/model.rb#835 def is_overridable; end - # : bool - # - # source://rbi//lib/rbi/model.rb#856 - # @return [Boolean] + # source://rbi//lib/rbi/model.rb#835 def is_overridable=(_arg0); end - # : bool - # - # source://rbi//lib/rbi/model.rb#856 - # @return [Boolean] + # source://rbi//lib/rbi/model.rb#835 def is_override; end - # : bool - # - # source://rbi//lib/rbi/model.rb#856 - # @return [Boolean] + # source://rbi//lib/rbi/model.rb#835 def is_override=(_arg0); end - # : Array[SigParam] - # - # source://rbi//lib/rbi/model.rb#850 + # source://rbi//lib/rbi/model.rb#829 sig { returns(T::Array[::RBI::SigParam]) } def params; end - # : (Type | String) - # - # source://rbi//lib/rbi/model.rb#853 + # source://rbi//lib/rbi/model.rb#832 sig { returns(T.any(::RBI::Type, ::String)) } def return_type; end - # : (Type | String) - # - # source://rbi//lib/rbi/model.rb#853 - # @return [Type, String] + # source://rbi//lib/rbi/model.rb#832 def return_type=(_arg0); end - # : Array[String] - # - # source://rbi//lib/rbi/model.rb#859 + # source://rbi//lib/rbi/model.rb#838 sig { returns(T::Array[::String]) } def type_params; end - # : bool - # - # source://rbi//lib/rbi/model.rb#856 - # @return [Boolean] + # source://rbi//lib/rbi/model.rb#835 def without_runtime; end - # : bool - # - # source://rbi//lib/rbi/model.rb#856 - # @return [Boolean] + # source://rbi//lib/rbi/model.rb#835 def without_runtime=(_arg0); end end -# source://rbi//lib/rbi/model.rb#914 +# source://rbi//lib/rbi/model.rb#893 class RBI::SigParam < ::RBI::NodeWithComments - # : (String name, (Type | String) type, ?loc: Loc?, ?comments: Array[Comment]) ?{ (SigParam node) -> void } -> void - # # @return [SigParam] a new instance of SigParam # - # source://rbi//lib/rbi/model.rb#922 + # source://rbi//lib/rbi/model.rb#901 sig do params( name: ::String, @@ -4511,32 +3352,24 @@ class RBI::SigParam < ::RBI::NodeWithComments end def initialize(name, type, loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end - # : (Object other) -> bool - # - # source://rbi//lib/rbi/model.rb#930 + # source://rbi//lib/rbi/model.rb#909 sig { params(other: ::Object).returns(T::Boolean) } def ==(other); end - # : String - # - # source://rbi//lib/rbi/model.rb#916 + # source://rbi//lib/rbi/model.rb#895 sig { returns(::String) } def name; end - # : (Type | String) - # - # source://rbi//lib/rbi/model.rb#919 + # source://rbi//lib/rbi/model.rb#898 sig { returns(T.any(::RBI::Type, ::String)) } def type; end end -# source://rbi//lib/rbi/model.rb#228 +# source://rbi//lib/rbi/model.rb#219 class RBI::SingletonClass < ::RBI::Scope - # : (?loc: Loc?, ?comments: Array[Comment]) ?{ (SingletonClass node) -> void } -> void - # # @return [SingletonClass] a new instance of SingletonClass # - # source://rbi//lib/rbi/model.rb#230 + # source://rbi//lib/rbi/model.rb#221 sig do params( loc: T.nilable(::RBI::Loc), @@ -4546,20 +3379,16 @@ class RBI::SingletonClass < ::RBI::Scope end def initialize(loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end - # : -> String - # - # source://rbi//lib/rbi/model.rb#237 + # source://rbi//lib/rbi/model.rb#228 sig { override.returns(::String) } def fully_qualified_name; end end -# source://rbi//lib/rbi/model.rb#242 +# source://rbi//lib/rbi/model.rb#233 class RBI::Struct < ::RBI::Scope - # : (String name, ?members: Array[Symbol], ?keyword_init: bool, ?loc: Loc?, ?comments: Array[Comment]) ?{ (Struct struct) -> void } -> void - # # @return [Struct] a new instance of Struct # - # source://rbi//lib/rbi/model.rb#253 + # source://rbi//lib/rbi/model.rb#244 sig do params( name: ::String, @@ -4572,66 +3401,45 @@ class RBI::Struct < ::RBI::Scope end def initialize(name, members: T.unsafe(nil), keyword_init: T.unsafe(nil), loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end - # : (Node other) -> bool - # # @return [Boolean] # - # source://rbi//lib/rbi/rewriters/merge_trees.rb#378 + # source://rbi//lib/rbi/rewriters/merge_trees.rb#387 sig { override.params(other: ::RBI::Node).returns(T::Boolean) } def compatible_with?(other); end - # : -> String - # - # source://rbi//lib/rbi/model.rb#263 + # source://rbi//lib/rbi/model.rb#254 sig { override.returns(::String) } def fully_qualified_name; end - # : bool - # - # source://rbi//lib/rbi/model.rb#250 + # source://rbi//lib/rbi/model.rb#241 sig { returns(T::Boolean) } def keyword_init; end - # : bool - # - # source://rbi//lib/rbi/model.rb#250 - # @return [Boolean] + # source://rbi//lib/rbi/model.rb#241 def keyword_init=(_arg0); end - # : Array[Symbol] - # - # source://rbi//lib/rbi/model.rb#247 + # source://rbi//lib/rbi/model.rb#238 sig { returns(T::Array[::Symbol]) } def members; end - # : Array[Symbol] - # - # source://rbi//lib/rbi/model.rb#247 - # @return [Array] + # source://rbi//lib/rbi/model.rb#238 def members=(_arg0); end - # : String - # - # source://rbi//lib/rbi/model.rb#244 + # source://rbi//lib/rbi/model.rb#235 sig { returns(::String) } def name; end - # : String - # - # source://rbi//lib/rbi/model.rb#244 - # @return [String] + # source://rbi//lib/rbi/model.rb#235 def name=(_arg0); end end # Sorbet's T::Enum # -# source://rbi//lib/rbi/model.rb#1016 +# source://rbi//lib/rbi/model.rb#992 class RBI::TEnum < ::RBI::Class - # : (String name, ?loc: Loc?, ?comments: Array[Comment]) ?{ (TEnum klass) -> void } -> void - # # @return [TEnum] a new instance of TEnum # - # source://rbi//lib/rbi/model.rb#1018 + # source://rbi//lib/rbi/model.rb#994 sig do params( name: ::String, @@ -4643,13 +3451,11 @@ class RBI::TEnum < ::RBI::Class def initialize(name, loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end end -# source://rbi//lib/rbi/model.rb#1024 +# source://rbi//lib/rbi/model.rb#1000 class RBI::TEnumBlock < ::RBI::Scope - # : (?loc: Loc?, ?comments: Array[Comment]) ?{ (TEnumBlock node) -> void } -> void - # # @return [TEnumBlock] a new instance of TEnumBlock # - # source://rbi//lib/rbi/model.rb#1026 + # source://rbi//lib/rbi/model.rb#1002 sig do params( loc: T.nilable(::RBI::Loc), @@ -4659,34 +3465,26 @@ class RBI::TEnumBlock < ::RBI::Scope end def initialize(loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end - # : -> String - # - # source://rbi//lib/rbi/model.rb#1033 + # source://rbi//lib/rbi/model.rb#1009 sig { override.returns(::String) } def fully_qualified_name; end - # : -> Array[String] - # - # source://rbi//lib/rbi/index.rb#219 + # source://rbi//lib/rbi/index.rb#214 sig { override.returns(T::Array[::String]) } def index_ids; end - # : -> String - # - # source://rbi//lib/rbi/model.rb#1039 + # source://rbi//lib/rbi/model.rb#1015 sig { override.returns(::String) } def to_s; end end -# source://rbi//lib/rbi/model.rb#1044 +# source://rbi//lib/rbi/model.rb#1020 class RBI::TEnumValue < ::RBI::NodeWithComments include ::RBI::Indexable - # : (String name, ?loc: Loc?, ?comments: Array[Comment]) ?{ (TEnumValue node) -> void } -> void - # # @return [TEnumValue] a new instance of TEnumValue # - # source://rbi//lib/rbi/model.rb#1049 + # source://rbi//lib/rbi/model.rb#1025 sig do params( name: ::String, @@ -4697,40 +3495,30 @@ class RBI::TEnumValue < ::RBI::NodeWithComments end def initialize(name, loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end - # : -> String - # - # source://rbi//lib/rbi/model.rb#1056 + # source://rbi//lib/rbi/model.rb#1032 sig { returns(::String) } def fully_qualified_name; end - # : -> Array[String] - # - # source://rbi//lib/rbi/index.rb#229 + # source://rbi//lib/rbi/index.rb#224 sig { override.returns(T::Array[::String]) } def index_ids; end - # : String - # - # source://rbi//lib/rbi/model.rb#1046 + # source://rbi//lib/rbi/model.rb#1022 sig { returns(::String) } def name; end - # : -> String - # - # source://rbi//lib/rbi/model.rb#1062 + # source://rbi//lib/rbi/model.rb#1038 sig { override.returns(::String) } def to_s; end end # Sorbet's T::Struct # -# source://rbi//lib/rbi/model.rb#937 +# source://rbi//lib/rbi/model.rb#916 class RBI::TStruct < ::RBI::Class - # : (String name, ?loc: Loc?, ?comments: Array[Comment]) ?{ (TStruct klass) -> void } -> void - # # @return [TStruct] a new instance of TStruct # - # source://rbi//lib/rbi/model.rb#939 + # source://rbi//lib/rbi/model.rb#918 sig do params( name: ::String, @@ -4742,15 +3530,13 @@ class RBI::TStruct < ::RBI::Class def initialize(name, loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end end -# source://rbi//lib/rbi/model.rb#972 +# source://rbi//lib/rbi/model.rb#948 class RBI::TStructConst < ::RBI::TStructField include ::RBI::Indexable - # : (String name, (Type | String) type, ?default: String?, ?loc: Loc?, ?comments: Array[Comment]) ?{ (TStructConst node) -> void } -> void - # # @return [TStructConst] a new instance of TStructConst # - # source://rbi//lib/rbi/model.rb#974 + # source://rbi//lib/rbi/model.rb#950 sig do params( name: ::String, @@ -4763,44 +3549,34 @@ class RBI::TStructConst < ::RBI::TStructField end def initialize(name, type, default: T.unsafe(nil), loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end - # : (Node other) -> bool - # # @return [Boolean] # - # source://rbi//lib/rbi/rewriters/merge_trees.rb#519 + # source://rbi//lib/rbi/rewriters/merge_trees.rb#528 sig { override.params(other: ::RBI::Node).returns(T::Boolean) } def compatible_with?(other); end - # : -> Array[String] - # - # source://rbi//lib/rbi/model.rb#981 + # source://rbi//lib/rbi/model.rb#957 sig { override.returns(T::Array[::String]) } def fully_qualified_names; end - # : -> Array[String] - # - # source://rbi//lib/rbi/index.rb#199 + # source://rbi//lib/rbi/index.rb#194 sig { override.returns(T::Array[::String]) } def index_ids; end - # : -> String - # - # source://rbi//lib/rbi/model.rb#988 + # source://rbi//lib/rbi/model.rb#964 sig { override.returns(::String) } def to_s; end end -# @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. +# @abstract # -# source://rbi//lib/rbi/model.rb#945 +# source://rbi//lib/rbi/model.rb#925 class RBI::TStructField < ::RBI::NodeWithComments abstract! - # : (String name, (Type | String) type, ?default: String?, ?loc: Loc?, ?comments: Array[Comment]) -> void - # # @return [TStructField] a new instance of TStructField # - # source://rbi//lib/rbi/model.rb#961 + # source://rbi//lib/rbi/model.rb#936 sig do params( name: ::String, @@ -4812,66 +3588,47 @@ class RBI::TStructField < ::RBI::NodeWithComments end def initialize(name, type, default: T.unsafe(nil), loc: T.unsafe(nil), comments: T.unsafe(nil)); end - # : (Node other) -> bool - # # @return [Boolean] # - # source://rbi//lib/rbi/rewriters/merge_trees.rb#511 + # source://rbi//lib/rbi/rewriters/merge_trees.rb#520 sig { override.params(other: ::RBI::Node).returns(T::Boolean) } def compatible_with?(other); end - # : String? - # - # source://rbi//lib/rbi/model.rb#958 + # source://rbi//lib/rbi/model.rb#933 sig { returns(T.nilable(::String)) } def default; end - # : String? - # - # source://rbi//lib/rbi/model.rb#958 - # @return [String, nil] + # source://rbi//lib/rbi/model.rb#933 def default=(_arg0); end # @abstract # - # source://rbi//lib/rbi/model.rb#969 + # source://rbi//lib/rbi/model.rb#945 sig { abstract.returns(T::Array[::String]) } def fully_qualified_names; end - # : String - # - # source://rbi//lib/rbi/model.rb#952 + # source://rbi//lib/rbi/model.rb#927 sig { returns(::String) } def name; end - # : String - # - # source://rbi//lib/rbi/model.rb#952 - # @return [String] + # source://rbi//lib/rbi/model.rb#927 def name=(_arg0); end - # : (Type | String) - # - # source://rbi//lib/rbi/model.rb#955 + # source://rbi//lib/rbi/model.rb#930 sig { returns(T.any(::RBI::Type, ::String)) } def type; end - # : (Type | String) - # - # source://rbi//lib/rbi/model.rb#955 - # @return [Type, String] + # source://rbi//lib/rbi/model.rb#930 def type=(_arg0); end end -# source://rbi//lib/rbi/model.rb#993 +# source://rbi//lib/rbi/model.rb#969 class RBI::TStructProp < ::RBI::TStructField include ::RBI::Indexable - # : (String name, (Type | String) type, ?default: String?, ?loc: Loc?, ?comments: Array[Comment]) ?{ (TStructProp node) -> void } -> void - # # @return [TStructProp] a new instance of TStructProp # - # source://rbi//lib/rbi/model.rb#995 + # source://rbi//lib/rbi/model.rb#971 sig do params( name: ::String, @@ -4884,40 +3641,30 @@ class RBI::TStructProp < ::RBI::TStructField end def initialize(name, type, default: T.unsafe(nil), loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end - # : (Node other) -> bool - # # @return [Boolean] # - # source://rbi//lib/rbi/rewriters/merge_trees.rb#527 + # source://rbi//lib/rbi/rewriters/merge_trees.rb#536 sig { override.params(other: ::RBI::Node).returns(T::Boolean) } def compatible_with?(other); end - # : -> Array[String] - # - # source://rbi//lib/rbi/model.rb#1002 + # source://rbi//lib/rbi/model.rb#978 sig { override.returns(T::Array[::String]) } def fully_qualified_names; end - # : -> Array[String] - # - # source://rbi//lib/rbi/index.rb#209 + # source://rbi//lib/rbi/index.rb#204 sig { override.returns(T::Array[::String]) } def index_ids; end - # : -> String - # - # source://rbi//lib/rbi/model.rb#1009 + # source://rbi//lib/rbi/model.rb#985 sig { override.returns(::String) } def to_s; end end -# source://rbi//lib/rbi/model.rb#114 +# source://rbi//lib/rbi/model.rb#108 class RBI::Tree < ::RBI::NodeWithComments - # : (?loc: Loc?, ?comments: Array[Comment]) ?{ (Tree node) -> void } -> void - # # @return [Tree] a new instance of Tree # - # source://rbi//lib/rbi/model.rb#119 + # source://rbi//lib/rbi/model.rb#113 sig do params( loc: T.nilable(::RBI::Loc), @@ -4927,25 +3674,18 @@ class RBI::Tree < ::RBI::NodeWithComments end def initialize(loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end - # : (Node node) -> void - # - # source://rbi//lib/rbi/model.rb#126 + # source://rbi//lib/rbi/model.rb#120 sig { params(node: ::RBI::Node).void } def <<(node); end - # : (?with_todo_comment: bool) -> void - # # source://rbi//lib/rbi/rewriters/add_sig_templates.rb#63 sig { params(with_todo_comment: T::Boolean).void } def add_sig_templates!(with_todo_comment: T.unsafe(nil)); end - # : (String annotation, ?annotate_scopes: bool, ?annotate_properties: bool) -> void - # # source://rbi//lib/rbi/rewriters/annotate.rb#46 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.16.11/lib/tapioca/rbi_ext/model.rb#38 sig do params( name: ::String, @@ -4955,19 +3695,15 @@ class RBI::Tree < ::RBI::NodeWithComments end def create_class(name, superclass_name: T.unsafe(nil), &block); end - # source://tapioca/0.16.11/lib/tapioca/rbi_ext/model.rb#45 sig { params(name: ::String, value: ::String).void } def create_constant(name, value:); end - # source://tapioca/0.16.11/lib/tapioca/rbi_ext/model.rb#55 sig { params(name: ::String).void } def create_extend(name); end - # source://tapioca/0.16.11/lib/tapioca/rbi_ext/model.rb#50 sig { params(name: ::String).void } def create_include(name); end - # source://tapioca/0.16.11/lib/tapioca/rbi_ext/model.rb#90 sig do params( name: ::String, @@ -4981,19 +3717,18 @@ 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), &block); end - # source://tapioca/0.16.11/lib/tapioca/rbi_ext/model.rb#60 sig { params(name: ::String).void } def create_mixes_in_class_methods(name); end - # source://tapioca/0.16.11/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.16.11/lib/tapioca/rbi_ext/model.rb#9 + sig { params(node: ::RBI::Node).returns(::RBI::Node) } + def create_node(node); end + 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.16.11/lib/tapioca/rbi_ext/model.rb#74 sig do params( name: ::String, @@ -5006,53 +3741,37 @@ class RBI::Tree < ::RBI::NodeWithComments end def create_type_variable(name, type:, variance: T.unsafe(nil), fixed: T.unsafe(nil), upper: T.unsafe(nil), lower: T.unsafe(nil)); end - # : (String annotation) -> void - # # source://rbi//lib/rbi/rewriters/deannotate.rb#38 sig { params(annotation: ::String).void } def deannotate!(annotation); end - # : -> bool - # # @return [Boolean] # - # source://rbi//lib/rbi/model.rb#132 + # source://rbi//lib/rbi/model.rb#126 sig { returns(T::Boolean) } def empty?; end - # : (Gem::Version version) -> void - # # source://rbi//lib/rbi/rewriters/filter_versions.rb#113 sig { params(version: ::Gem::Version).void } def filter_versions!(version); end - # : -> void - # # source://rbi//lib/rbi/rewriters/flatten_singleton_methods.rb#58 sig { void } def flatten_singleton_methods!; end - # : -> void - # # source://rbi//lib/rbi/rewriters/flatten_visibilities.rb#57 sig { void } def flatten_visibilities!; end - # : -> void - # # source://rbi//lib/rbi/rewriters/group_nodes.rb#78 sig { void } def group_nodes!; end - # : -> Index - # - # source://rbi//lib/rbi/index.rb#64 + # source://rbi//lib/rbi/index.rb#62 sig { returns(::RBI::Index) } def index; end - # : (Tree other, ?left_name: String, ?right_name: String, ?keep: Rewriters::Merge::Keep) -> MergeTree - # - # source://rbi//lib/rbi/rewriters/merge_trees.rb#314 + # source://rbi//lib/rbi/rewriters/merge_trees.rb#323 sig do params( other: ::RBI::Tree, @@ -5063,92 +3782,65 @@ class RBI::Tree < ::RBI::NodeWithComments end def merge(other, left_name: T.unsafe(nil), right_name: T.unsafe(nil), keep: T.unsafe(nil)); end - # : -> void - # # source://rbi//lib/rbi/rewriters/nest_non_public_members.rb#43 sig { void } def nest_non_public_members!; end - # : -> void - # # source://rbi//lib/rbi/rewriters/nest_singleton_methods.rb#33 sig { void } def nest_singleton_methods!; end - # : -> void - # # source://rbi//lib/rbi/rewriters/nest_top_level_members.rb#60 sig { void } def nest_top_level_members!; end - # : Array[Node] - # - # source://rbi//lib/rbi/model.rb#116 + # source://rbi//lib/rbi/model.rb#110 sig { returns(T::Array[::RBI::Node]) } def nodes; end - # : -> void - # + sig { returns(T::Hash[::String, ::RBI::Node]) } + def nodes_cache; end + # source://rbi//lib/rbi/rewriters/attr_to_methods.rb#50 sig { void } def replace_attributes_with_methods!; end - # : -> void - # # source://rbi//lib/rbi/rewriters/sort_nodes.rb#118 sig { void } def sort_nodes!; end - # : -> void - # # source://rbi//lib/rbi/rewriters/translate_rbs_sigs.rb#82 sig { void } def translate_rbs_sigs!; end - - private - - # source://tapioca/0.16.11/lib/tapioca/rbi_ext/model.rb#123 - sig { params(node: ::RBI::Node).returns(::RBI::Node) } - def create_node(node); end - - # source://tapioca/0.16.11/lib/tapioca/rbi_ext/model.rb#118 - sig { returns(T::Hash[::String, ::RBI::Node]) } - def nodes_cache; end end # The base class for all RBI types. # -# @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. +# @abstract # -# source://rbi//lib/rbi/type.rb#6 +# source://rbi//lib/rbi/type.rb#7 class RBI::Type abstract! - # : -> void - # # @return [Type] a new instance of Type # - # source://rbi//lib/rbi/type.rb#695 + # source://rbi//lib/rbi/type.rb#905 sig { void } def initialize; end # @abstract # - # source://rbi//lib/rbi/type.rb#741 + # source://rbi//lib/rbi/type.rb#976 sig { abstract.params(other: ::BasicObject).returns(T::Boolean) } def ==(other); end - # : (BasicObject other) -> bool - # # @return [Boolean] # - # source://rbi//lib/rbi/type.rb#744 + # source://rbi//lib/rbi/type.rb#979 sig { params(other: ::BasicObject).returns(T::Boolean) } def eql?(other); end - # : -> Integer - # - # source://rbi//lib/rbi/type.rb#750 + # source://rbi//lib/rbi/type.rb#985 sig { override.returns(::Integer) } def hash; end @@ -5161,27 +3853,16 @@ class RBI::Type # type.nilable.to_rbi # => "T.nilable(String)" # type.nilable.nilable.to_rbi # => "T.nilable(String)" # ``` - # : -> Type # - # source://rbi//lib/rbi/type.rb#709 - # Returns a new type that is `nilable` if it is not already. - # If the type is already nilable, it returns itself. - # ```ruby - # type = RBI::Type.simple("String") - # type.to_rbi # => "String" - # type.nilable.to_rbi # => "T.nilable(String)" - # type.nilable.nilable.to_rbi # => "T.nilable(String)" - # ``` + # source://rbi//lib/rbi/type.rb#919 sig { returns(::RBI::Type) } def nilable; end # Returns whether the type is nilable. - # : -> bool # # @return [Boolean] # - # source://rbi//lib/rbi/type.rb#736 - # Returns whether the type is nilable. + # source://rbi//lib/rbi/type.rb#946 sig { returns(T::Boolean) } def nilable?; end @@ -5195,36 +3876,52 @@ class RBI::Type # type.non_nilable.to_rbi # => "String" # type.non_nilable.non_nilable.to_rbi # => "String" # ``` - # : -> Type # - # source://rbi//lib/rbi/type.rb#724 - # Returns the non-nilable version of the type. - # If the type is already non-nilable, it returns itself. - # If the type is nilable, it returns the inner type. - # ```ruby - # type = RBI::Type.nilable(RBI::Type.simple("String")) - # type.to_rbi # => "T.nilable(String)" - # type.non_nilable.to_rbi # => "String" - # type.non_nilable.non_nilable.to_rbi # => "String" - # ``` + # source://rbi//lib/rbi/type.rb#934 sig { returns(::RBI::Type) } def non_nilable; end - # : -> String + # Returns a normalized version of the type. # - # source://rbi//lib/rbi/rbs_printer.rb#1146 + # Normalized types are meant to be easier to process, not to read. + # For example, `T.any(TrueClass, FalseClass)` instead of `T::Boolean` or + # `T.any(String, NilClass)` instead of `T.nilable(String)`. + # + # This is the inverse of `#simplify`. + # + # + # @abstract + # + # source://rbi//lib/rbi/type.rb#960 + sig { abstract.returns(::RBI::Type) } + def normalize; end + + # source://rbi//lib/rbi/rbs_printer.rb#1240 sig { returns(::String) } def rbs_string; end + # Returns a simplified version of the type. + # + # Simplified types are meant to be easier to read, not to process. + # For example, `T::Boolean` instead of `T.any(TrueClass, FalseClass)` or + # `T.nilable(String)` instead of `T.any(String, NilClass)`. + # + # This is the inverse of `#normalize`. + # + # # @abstract # - # source://rbi//lib/rbi/type.rb#755 + # source://rbi//lib/rbi/type.rb#972 + sig { abstract.returns(::RBI::Type) } + def simplify; end + + # @abstract + # + # source://rbi//lib/rbi/type.rb#991 sig { abstract.returns(::String) } def to_rbi; end - # : -> String - # - # source://rbi//lib/rbi/type.rb#759 + # source://rbi//lib/rbi/type.rb#995 sig { override.returns(::String) } def to_s; end @@ -5233,12 +3930,8 @@ class RBI::Type # # Note that this method transforms types such as `T.all(String, String)` into `String`, so # it may return something other than a `All`. - # : (Type type1, Type type2, *Type types) -> Type # - # source://rbi//lib/rbi/type.rb#559 - # Builds a type that represents an intersection of multiple types like `T.all(String, Integer)`. - # Note that this method transforms types such as `T.all(String, String)` into `String`, so - # it may return something other than a `All`. + # source://rbi//lib/rbi/type.rb#847 sig { params(type1: ::RBI::Type, type2: ::RBI::Type, types: ::RBI::Type).returns(::RBI::Type) } def all(type1, type2, *types); end @@ -5246,52 +3939,38 @@ class RBI::Type # # Note that this method transforms types such as `T.any(String, NilClass)` into `T.nilable(String)`, so # it may return something other than a `Any`. - # : (Type type1, Type type2, *Type types) -> Type # - # source://rbi//lib/rbi/type.rb#586 - # Builds a type that represents a union of multiple types like `T.any(String, Integer)`. - # Note that this method transforms types such as `T.any(String, NilClass)` into `T.nilable(String)`, so - # it may return something other than a `Any`. + # source://rbi//lib/rbi/type.rb#856 sig { params(type1: ::RBI::Type, type2: ::RBI::Type, types: ::RBI::Type).returns(::RBI::Type) } def any(type1, type2, *types); end # Builds a type that represents `T.anything`. - # : -> Anything # - # source://rbi//lib/rbi/type.rb#484 - # Builds a type that represents `T.anything`. + # source://rbi//lib/rbi/type.rb#778 sig { returns(::RBI::Type::Anything) } def anything; end # Builds a type that represents `T.attached_class`. - # : -> AttachedClass # - # source://rbi//lib/rbi/type.rb#490 - # Builds a type that represents `T.attached_class`. + # source://rbi//lib/rbi/type.rb#784 sig { returns(::RBI::Type::AttachedClass) } def attached_class; end # Builds a type that represents `T::Boolean`. - # : -> Boolean # - # source://rbi//lib/rbi/type.rb#496 - # Builds a type that represents `T::Boolean`. + # source://rbi//lib/rbi/type.rb#790 sig { returns(::RBI::Type::Boolean) } def boolean; end # Builds a type that represents the singleton class of another type like `T.class_of(Foo)`. - # : (Simple type, ?Type? type_parameter) -> ClassOf # - # source://rbi//lib/rbi/type.rb#534 - # Builds a type that represents the singleton class of another type like `T.class_of(Foo)`. + # source://rbi//lib/rbi/type.rb#828 sig { params(type: ::RBI::Type::Simple, type_parameter: T.nilable(::RBI::Type)).returns(::RBI::Type::ClassOf) } def class_of(type, type_parameter = T.unsafe(nil)); end # Builds a type that represents a generic type like `T::Array[String]` or `T::Hash[Symbol, Integer]`. - # : (String name, *(Type | Array[Type]) params) -> Generic # - # source://rbi//lib/rbi/type.rb#651 - # Builds a type that represents a generic type like `T::Array[String]` or `T::Hash[Symbol, Integer]`. + # source://rbi//lib/rbi/type.rb#864 sig { params(name: ::String, params: T.any(::RBI::Type, T::Array[::RBI::Type])).returns(::RBI::Type::Generic) } def generic(name, *params); end @@ -5299,31 +3978,21 @@ class RBI::Type # # Note that this method transforms types such as `T.nilable(T.untyped)` into `T.untyped`, so # it may return something other than a `RBI::Type::Nilable`. - # : (Type type) -> Type # - # source://rbi//lib/rbi/type.rb#543 - # Builds a type that represents a nilable of another type like `T.nilable(String)`. - # Note that this method transforms types such as `T.nilable(T.untyped)` into `T.untyped`, so - # it may return something other than a `RBI::Type::Nilable`. + # source://rbi//lib/rbi/type.rb#837 sig { params(type: ::RBI::Type).returns(::RBI::Type) } def nilable(type); end # Builds a type that represents `T.noreturn`. - # : -> NoReturn # - # source://rbi//lib/rbi/type.rb#502 - # Builds a type that represents `T.noreturn`. + # source://rbi//lib/rbi/type.rb#796 sig { returns(::RBI::Type::NoReturn) } def noreturn; end - # : (Prism::Node node) -> Type - # # source://rbi//lib/rbi/type_parser.rb#26 sig { params(node: ::Prism::Node).returns(::RBI::Type) } def parse_node(node); end - # : (String string) -> Type - # # @raise [Error] # # source://rbi//lib/rbi/type_parser.rb#10 @@ -5331,181 +4000,134 @@ class RBI::Type def parse_string(string); end # Builds a type that represents a proc type like `T.proc.void`. - # : -> Proc # - # source://rbi//lib/rbi/type.rb#679 - # Builds a type that represents a proc type like `T.proc.void`. + # source://rbi//lib/rbi/type.rb#892 sig { returns(::RBI::Type::Proc) } def proc; end # Builds a type that represents `T.self_type`. - # : -> SelfType # - # source://rbi//lib/rbi/type.rb#508 - # Builds a type that represents `T.self_type`. + # source://rbi//lib/rbi/type.rb#802 sig { returns(::RBI::Type::SelfType) } def self_type; end # Builds a type that represents a shape type like `{name: String, age: Integer}`. - # : (?Hash[(String | Symbol), Type] types) -> Shape # - # source://rbi//lib/rbi/type.rb#671 - # Builds a type that represents a shape type like `{name: String, age: Integer}`. + # source://rbi//lib/rbi/type.rb#884 sig { params(types: T::Hash[T.any(::String, ::Symbol), ::RBI::Type]).returns(::RBI::Type::Shape) } def shape(types = T.unsafe(nil)); end # Builds a simple type like `String` or `::Foo::Bar`. # # It raises a `NameError` if the name is not a valid Ruby class identifier. - # : (String name) -> Simple # # @raise [NameError] # - # source://rbi//lib/rbi/type.rb#473 - # Builds a simple type like `String` or `::Foo::Bar`. - # It raises a `NameError` if the name is not a valid Ruby class identifier. + # source://rbi//lib/rbi/type.rb#767 sig { params(name: ::String).returns(::RBI::Type::Simple) } def simple(name); end # Builds a type that represents the class of another type like `T::Class[Foo]`. - # : (Type type) -> Class # - # source://rbi//lib/rbi/type.rb#528 - # Builds a type that represents the class of another type like `T::Class[Foo]`. + # source://rbi//lib/rbi/type.rb#822 sig { params(type: ::RBI::Type).returns(::RBI::Type::Class) } def t_class(type); end # Builds a type that represents a tuple type like `[String, Integer]`. - # : (*(Type | Array[Type]) types) -> Tuple # - # source://rbi//lib/rbi/type.rb#665 - # Builds a type that represents a tuple type like `[String, Integer]`. + # source://rbi//lib/rbi/type.rb#878 sig { params(types: T.any(::RBI::Type, T::Array[::RBI::Type])).returns(::RBI::Type::Tuple) } def tuple(*types); end # Builds a type that represents a type parameter like `T.type_parameter(:U)`. - # : (Symbol name) -> TypeParameter # - # source://rbi//lib/rbi/type.rb#657 - # Builds a type that represents a type parameter like `T.type_parameter(:U)`. + # source://rbi//lib/rbi/type.rb#870 sig { params(name: ::Symbol).returns(::RBI::Type::TypeParameter) } def type_parameter(name); end # Builds a type that represents `T.untyped`. - # : -> Untyped # - # source://rbi//lib/rbi/type.rb#514 - # Builds a type that represents `T.untyped`. + # source://rbi//lib/rbi/type.rb#808 sig { returns(::RBI::Type::Untyped) } def untyped; end # Builds a type that represents `void`. - # : -> Void # - # source://rbi//lib/rbi/type.rb#520 - # Builds a type that represents `void`. + # source://rbi//lib/rbi/type.rb#814 sig { returns(::RBI::Type::Void) } def void; end private - # : (Prism::CallNode node) -> Array[Prism::Node] - # - # source://rbi//lib/rbi/type_parser.rb#287 + # source://rbi//lib/rbi/type_parser.rb#289 sig { params(node: ::Prism::CallNode).returns(T::Array[::Prism::Node]) } def call_chain(node); end - # : (Prism::CallNode node, Integer count) -> Array[Prism::Node] - # - # source://rbi//lib/rbi/type_parser.rb#274 + # source://rbi//lib/rbi/type_parser.rb#276 sig { params(node: ::Prism::CallNode, count: ::Integer).returns(T::Array[::Prism::Node]) } def check_arguments_at_least!(node, count); end - # : (Prism::CallNode node, Integer count) -> Array[Prism::Node] - # - # source://rbi//lib/rbi/type_parser.rb#259 + # source://rbi//lib/rbi/type_parser.rb#261 sig { params(node: ::Prism::CallNode, count: ::Integer).returns(T::Array[::Prism::Node]) } def check_arguments_exactly!(node, count); end - # : (Prism::CallNode node) -> Type - # # @raise [Error] # # source://rbi//lib/rbi/type_parser.rb#71 sig { params(node: ::Prism::CallNode).returns(::RBI::Type) } def parse_call(node); end - # : ((Prism::ConstantReadNode | Prism::ConstantPathNode) node) -> Type - # # source://rbi//lib/rbi/type_parser.rb#54 sig { params(node: T.any(::Prism::ConstantPathNode, ::Prism::ConstantReadNode)).returns(::RBI::Type) } def parse_constant(node); end - # : (Prism::CallNode node) -> Type - # # @raise [Error] # # source://rbi//lib/rbi/type_parser.rb#211 sig { params(node: ::Prism::CallNode).returns(::RBI::Type) } def parse_proc(node); end - # : ((Prism::HashNode | Prism::KeywordHashNode) node) -> Type - # # source://rbi//lib/rbi/type_parser.rb#190 sig { params(node: T.any(::Prism::HashNode, ::Prism::KeywordHashNode)).returns(::RBI::Type) } def parse_shape(node); end - # : (Prism::ArrayNode node) -> Type - # # source://rbi//lib/rbi/type_parser.rb#185 sig { params(node: ::Prism::ArrayNode).returns(::RBI::Type) } def parse_tuple(node); end - # : (Prism::Node? node) -> bool - # # @return [Boolean] # - # source://rbi//lib/rbi/type_parser.rb#300 + # source://rbi//lib/rbi/type_parser.rb#302 sig { params(node: T.nilable(::Prism::Node)).returns(T::Boolean) } def t?(node); end - # : (Prism::Node? node) -> bool - # # @return [Boolean] # - # source://rbi//lib/rbi/type_parser.rb#312 + # source://rbi//lib/rbi/type_parser.rb#314 sig { params(node: T.nilable(::Prism::Node)).returns(T::Boolean) } def t_boolean?(node); end - # : (Prism::ConstantPathNode node) -> bool - # # @return [Boolean] # - # source://rbi//lib/rbi/type_parser.rb#319 + # source://rbi//lib/rbi/type_parser.rb#321 sig { params(node: ::Prism::ConstantPathNode).returns(T::Boolean) } def t_class?(node); end - # : (Prism::Node? node) -> bool - # # @return [Boolean] # - # source://rbi//lib/rbi/type_parser.rb#324 + # source://rbi//lib/rbi/type_parser.rb#326 sig { params(node: T.nilable(::Prism::Node)).returns(T::Boolean) } def t_class_of?(node); end - # : (Prism::CallNode node) -> bool - # # @return [Boolean] # - # source://rbi//lib/rbi/type_parser.rb#331 + # source://rbi//lib/rbi/type_parser.rb#333 sig { params(node: ::Prism::CallNode).returns(T::Boolean) } def t_proc?(node); end - # : (String name) -> bool - # # @return [Boolean] # - # source://rbi//lib/rbi/type.rb#689 + # source://rbi//lib/rbi/type.rb#899 sig { params(name: ::String).returns(T::Boolean) } def valid_identifier?(name); end end @@ -5513,178 +4135,192 @@ end # A type that is intersection of multiple types like `T.all(String, Integer)`. # -# source://rbi//lib/rbi/type.rb#252 +# source://rbi//lib/rbi/type.rb#384 class RBI::Type::All < ::RBI::Type::Composite - # : -> String - # - # source://rbi//lib/rbi/type.rb#255 + # source://rbi//lib/rbi/type.rb#393 + sig { override.returns(::RBI::Type) } + def normalize; end + + # source://rbi//lib/rbi/type.rb#413 + sig { override.returns(::RBI::Type) } + def simplify; end + + # source://rbi//lib/rbi/type.rb#387 sig { override.returns(::String) } def to_rbi; end end # A type that is union of multiple types like `T.any(String, Integer)`. # -# source://rbi//lib/rbi/type.rb#261 +# source://rbi//lib/rbi/type.rb#426 class RBI::Type::Any < ::RBI::Type::Composite - # : -> bool - # # @return [Boolean] # - # source://rbi//lib/rbi/type.rb#269 + # source://rbi//lib/rbi/type.rb#434 sig { returns(T::Boolean) } def nilable?; end - # : -> String - # - # source://rbi//lib/rbi/type.rb#264 + # source://rbi//lib/rbi/type.rb#440 + sig { override.returns(::RBI::Type) } + def normalize; end + + # source://rbi//lib/rbi/type.rb#460 + sig { override.returns(::RBI::Type) } + def simplify; end + + # source://rbi//lib/rbi/type.rb#429 sig { override.returns(::String) } def to_rbi; end end # `T.anything`. # -# source://rbi//lib/rbi/type.rb#43 +# source://rbi//lib/rbi/type.rb#51 class RBI::Type::Anything < ::RBI::Type - # : (BasicObject other) -> bool - # - # source://rbi//lib/rbi/type.rb#46 + # source://rbi//lib/rbi/type.rb#54 sig { override.params(other: ::BasicObject).returns(T::Boolean) } def ==(other); end - # : -> String - # - # source://rbi//lib/rbi/type.rb#52 + # source://rbi//lib/rbi/type.rb#66 + sig { override.returns(::RBI::Type) } + def normalize; end + + # source://rbi//lib/rbi/type.rb#72 + sig { override.returns(::RBI::Type) } + def simplify; end + + # source://rbi//lib/rbi/type.rb#60 sig { override.returns(::String) } def to_rbi; end end # `T.attached_class`. # -# source://rbi//lib/rbi/type.rb#58 +# source://rbi//lib/rbi/type.rb#78 class RBI::Type::AttachedClass < ::RBI::Type - # : (BasicObject other) -> bool - # - # source://rbi//lib/rbi/type.rb#61 + # source://rbi//lib/rbi/type.rb#81 sig { override.params(other: ::BasicObject).returns(T::Boolean) } def ==(other); end - # : -> String - # - # source://rbi//lib/rbi/type.rb#67 + # source://rbi//lib/rbi/type.rb#93 + sig { override.returns(::RBI::Type) } + def normalize; end + + # source://rbi//lib/rbi/type.rb#99 + sig { override.returns(::RBI::Type) } + def simplify; end + + # source://rbi//lib/rbi/type.rb#87 sig { override.returns(::String) } def to_rbi; end end # `T::Boolean`. # -# source://rbi//lib/rbi/type.rb#73 +# source://rbi//lib/rbi/type.rb#105 class RBI::Type::Boolean < ::RBI::Type - # : (BasicObject other) -> bool - # - # source://rbi//lib/rbi/type.rb#76 + # source://rbi//lib/rbi/type.rb#108 sig { override.params(other: ::BasicObject).returns(T::Boolean) } def ==(other); end - # : -> String - # - # source://rbi//lib/rbi/type.rb#82 + # source://rbi//lib/rbi/type.rb#120 + sig { override.returns(::RBI::Type) } + def normalize; end + + # source://rbi//lib/rbi/type.rb#126 + sig { override.returns(::RBI::Type) } + def simplify; end + + # source://rbi//lib/rbi/type.rb#114 sig { override.returns(::String) } def to_rbi; end end # The class of another type like `T::Class[Foo]`. # -# source://rbi//lib/rbi/type.rb#150 +# source://rbi//lib/rbi/type.rb#242 class RBI::Type::Class < ::RBI::Type - # : (Type type) -> void - # # @return [Class] a new instance of Class # - # source://rbi//lib/rbi/type.rb#155 + # source://rbi//lib/rbi/type.rb#247 sig { params(type: ::RBI::Type).void } def initialize(type); end - # : (BasicObject other) -> bool - # - # source://rbi//lib/rbi/type.rb#162 + # source://rbi//lib/rbi/type.rb#254 sig { override.params(other: ::BasicObject).returns(T::Boolean) } def ==(other); end - # : -> String - # - # source://rbi//lib/rbi/type.rb#168 + # source://rbi//lib/rbi/type.rb#266 + sig { override.returns(::RBI::Type) } + def normalize; end + + # source://rbi//lib/rbi/type.rb#272 + sig { override.returns(::RBI::Type) } + def simplify; end + + # source://rbi//lib/rbi/type.rb#260 sig { override.returns(::String) } def to_rbi; end - # : Type - # - # source://rbi//lib/rbi/type.rb#152 + # source://rbi//lib/rbi/type.rb#244 sig { returns(::RBI::Type) } def type; end end # The singleton class of another type like `T.class_of(Foo)`. # -# source://rbi//lib/rbi/type.rb#174 +# source://rbi//lib/rbi/type.rb#278 class RBI::Type::ClassOf < ::RBI::Type - # : (Simple type, ?Type? type_parameter) -> void - # # @return [ClassOf] a new instance of ClassOf # - # source://rbi//lib/rbi/type.rb#182 + # source://rbi//lib/rbi/type.rb#286 sig { params(type: ::RBI::Type::Simple, type_parameter: T.nilable(::RBI::Type)).void } def initialize(type, type_parameter = T.unsafe(nil)); end - # : (BasicObject other) -> bool - # - # source://rbi//lib/rbi/type.rb#190 + # source://rbi//lib/rbi/type.rb#294 sig { override.params(other: ::BasicObject).returns(T::Boolean) } def ==(other); end - # : -> String - # - # source://rbi//lib/rbi/type.rb#196 + # source://rbi//lib/rbi/type.rb#310 + sig { override.returns(::RBI::Type) } + def normalize; end + + # source://rbi//lib/rbi/type.rb#316 + sig { override.returns(::RBI::Type) } + def simplify; end + + # source://rbi//lib/rbi/type.rb#300 sig { override.returns(::String) } def to_rbi; end - # : Simple - # - # source://rbi//lib/rbi/type.rb#176 + # source://rbi//lib/rbi/type.rb#280 sig { returns(::RBI::Type::Simple) } def type; end - # : Type? - # - # source://rbi//lib/rbi/type.rb#179 + # source://rbi//lib/rbi/type.rb#283 sig { returns(T.nilable(::RBI::Type)) } def type_parameter; end end # A type that is composed of multiple types like `T.all(String, Integer)`. # -# @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. +# @abstract # -# source://rbi//lib/rbi/type.rb#230 +# source://rbi//lib/rbi/type.rb#366 class RBI::Type::Composite < ::RBI::Type abstract! - # : (Array[Type] types) -> void - # # @return [Composite] a new instance of Composite # - # source://rbi//lib/rbi/type.rb#239 + # source://rbi//lib/rbi/type.rb#371 sig { params(types: T::Array[::RBI::Type]).void } def initialize(types); end - # : (BasicObject other) -> bool - # - # source://rbi//lib/rbi/type.rb#246 + # source://rbi//lib/rbi/type.rb#378 sig { override.params(other: ::BasicObject).returns(T::Boolean) } def ==(other); end - # : Array[Type] - # - # source://rbi//lib/rbi/type.rb#236 + # source://rbi//lib/rbi/type.rb#368 sig { returns(T::Array[::RBI::Type]) } def types; end end @@ -5694,200 +4330,194 @@ class RBI::Type::Error < ::RBI::Error; end # A generic type like `T::Array[String]` or `T::Hash[Symbol, Integer]`. # -# source://rbi//lib/rbi/type.rb#277 +# source://rbi//lib/rbi/type.rb#511 class RBI::Type::Generic < ::RBI::Type - # : (String name, *Type params) -> void - # # @return [Generic] a new instance of Generic # - # source://rbi//lib/rbi/type.rb#285 + # source://rbi//lib/rbi/type.rb#519 sig { params(name: ::String, params: ::RBI::Type).void } def initialize(name, *params); end - # : (BasicObject other) -> bool - # - # source://rbi//lib/rbi/type.rb#293 + # source://rbi//lib/rbi/type.rb#527 sig { override.params(other: ::BasicObject).returns(T::Boolean) } def ==(other); end - # : String - # - # source://rbi//lib/rbi/type.rb#279 + # source://rbi//lib/rbi/type.rb#513 sig { returns(::String) } def name; end - # : Array[Type] - # - # source://rbi//lib/rbi/type.rb#282 + # source://rbi//lib/rbi/type.rb#539 + sig { override.returns(::RBI::Type) } + def normalize; end + + # source://rbi//lib/rbi/type.rb#516 sig { returns(T::Array[::RBI::Type]) } def params; end - # : -> String - # - # source://rbi//lib/rbi/type.rb#299 + # source://rbi//lib/rbi/type.rb#545 + sig { override.returns(::RBI::Type) } + def simplify; end + + # source://rbi//lib/rbi/type.rb#533 sig { override.returns(::String) } def to_rbi; end end # A type that can be `nil` like `T.nilable(String)`. # -# source://rbi//lib/rbi/type.rb#206 +# source://rbi//lib/rbi/type.rb#322 class RBI::Type::Nilable < ::RBI::Type - # : (Type type) -> void - # # @return [Nilable] a new instance of Nilable # - # source://rbi//lib/rbi/type.rb#211 + # source://rbi//lib/rbi/type.rb#327 sig { params(type: ::RBI::Type).void } def initialize(type); end - # : (BasicObject other) -> bool - # - # source://rbi//lib/rbi/type.rb#218 + # source://rbi//lib/rbi/type.rb#334 sig { override.params(other: ::BasicObject).returns(T::Boolean) } def ==(other); end - # : -> String - # - # source://rbi//lib/rbi/type.rb#224 + # source://rbi//lib/rbi/type.rb#346 + sig { override.returns(::RBI::Type) } + def normalize; end + + # source://rbi//lib/rbi/type.rb#352 + sig { override.returns(::RBI::Type) } + def simplify; end + + # source://rbi//lib/rbi/type.rb#340 sig { override.returns(::String) } def to_rbi; end - # : Type - # - # source://rbi//lib/rbi/type.rb#208 + # source://rbi//lib/rbi/type.rb#324 sig { returns(::RBI::Type) } def type; end end # `T.noreturn`. # -# source://rbi//lib/rbi/type.rb#88 +# source://rbi//lib/rbi/type.rb#132 class RBI::Type::NoReturn < ::RBI::Type - # : (BasicObject other) -> bool - # - # source://rbi//lib/rbi/type.rb#91 + # source://rbi//lib/rbi/type.rb#135 sig { override.params(other: ::BasicObject).returns(T::Boolean) } def ==(other); end - # : -> String - # - # source://rbi//lib/rbi/type.rb#97 + # source://rbi//lib/rbi/type.rb#147 + sig { override.returns(::RBI::Type) } + def normalize; end + + # source://rbi//lib/rbi/type.rb#153 + sig { override.returns(::RBI::Type) } + def simplify; end + + # source://rbi//lib/rbi/type.rb#141 sig { override.returns(::String) } def to_rbi; end end # A proc type like `T.proc.void`. # -# source://rbi//lib/rbi/type.rb#385 +# source://rbi//lib/rbi/type.rb#667 class RBI::Type::Proc < ::RBI::Type - # : -> void - # # @return [Proc] a new instance of Proc # - # source://rbi//lib/rbi/type.rb#396 + # source://rbi//lib/rbi/type.rb#678 sig { void } def initialize; end - # : (BasicObject other) -> bool - # - # source://rbi//lib/rbi/type.rb#405 + # source://rbi//lib/rbi/type.rb#687 sig { override.params(other: ::BasicObject).returns(T::Boolean) } def ==(other); end - # : (untyped type) -> self - # - # source://rbi//lib/rbi/type.rb#433 + # source://rbi//lib/rbi/type.rb#715 sig { params(type: T.untyped).returns(T.self_type) } def bind(type); end - # : (**Type params) -> self - # - # source://rbi//lib/rbi/type.rb#415 + # source://rbi//lib/rbi/type.rb#747 + sig { override.returns(::RBI::Type) } + def normalize; end + + # source://rbi//lib/rbi/type.rb#697 sig { params(params: ::RBI::Type).returns(T.self_type) } def params(**params); end - # : Type? - # - # source://rbi//lib/rbi/type.rb#393 + # source://rbi//lib/rbi/type.rb#675 sig { returns(T.nilable(::RBI::Type)) } def proc_bind; end - # : Hash[Symbol, Type] - # - # source://rbi//lib/rbi/type.rb#387 + # source://rbi//lib/rbi/type.rb#669 sig { returns(T::Hash[::Symbol, ::RBI::Type]) } def proc_params; end - # : Type - # - # source://rbi//lib/rbi/type.rb#390 + # source://rbi//lib/rbi/type.rb#672 sig { returns(::RBI::Type) } def proc_returns; end - # : (untyped type) -> self - # - # source://rbi//lib/rbi/type.rb#421 + # source://rbi//lib/rbi/type.rb#703 sig { params(type: T.untyped).returns(T.self_type) } def returns(type); end - # : -> String - # - # source://rbi//lib/rbi/type.rb#440 + # source://rbi//lib/rbi/type.rb#753 + sig { override.returns(::RBI::Type) } + def simplify; end + + # source://rbi//lib/rbi/type.rb#722 sig { override.returns(::String) } def to_rbi; end - # : -> self - # - # source://rbi//lib/rbi/type.rb#427 + # source://rbi//lib/rbi/type.rb#709 sig { returns(T.self_type) } def void; end end # `T.self_type`. # -# source://rbi//lib/rbi/type.rb#103 +# source://rbi//lib/rbi/type.rb#159 class RBI::Type::SelfType < ::RBI::Type - # : (BasicObject other) -> bool - # - # source://rbi//lib/rbi/type.rb#106 + # source://rbi//lib/rbi/type.rb#162 sig { override.params(other: ::BasicObject).returns(T::Boolean) } def ==(other); end - # : -> String - # - # source://rbi//lib/rbi/type.rb#112 + # source://rbi//lib/rbi/type.rb#174 + sig { override.returns(::RBI::Type) } + def normalize; end + + # source://rbi//lib/rbi/type.rb#180 + sig { override.returns(::RBI::Type) } + def simplify; end + + # source://rbi//lib/rbi/type.rb#168 sig { override.returns(::String) } def to_rbi; end end # A shape type like `{name: String, age: Integer}`. # -# source://rbi//lib/rbi/type.rb#355 +# source://rbi//lib/rbi/type.rb#625 class RBI::Type::Shape < ::RBI::Type - # : (Hash[(String | Symbol), Type] types) -> void - # # @return [Shape] a new instance of Shape # - # source://rbi//lib/rbi/type.rb#360 + # source://rbi//lib/rbi/type.rb#630 sig { params(types: T::Hash[T.any(::String, ::Symbol), ::RBI::Type]).void } def initialize(types); end - # : (BasicObject other) -> bool - # - # source://rbi//lib/rbi/type.rb#367 + # source://rbi//lib/rbi/type.rb#637 sig { override.params(other: ::BasicObject).returns(T::Boolean) } def ==(other); end - # : -> String - # - # source://rbi//lib/rbi/type.rb#373 + # source://rbi//lib/rbi/type.rb#653 + sig { override.returns(::RBI::Type) } + def normalize; end + + # source://rbi//lib/rbi/type.rb#659 + sig { override.returns(::RBI::Type) } + def simplify; end + + # source://rbi//lib/rbi/type.rb#643 sig { override.returns(::String) } def to_rbi; end - # : Hash[(String | Symbol), Type] - # - # source://rbi//lib/rbi/type.rb#357 + # source://rbi//lib/rbi/type.rb#627 sig { returns(T::Hash[T.any(::String, ::Symbol), ::RBI::Type]) } def types; end end @@ -5896,229 +4526,194 @@ end # # It can also be a qualified name like `::Foo` or `Foo::Bar`. # -# source://rbi//lib/rbi/type.rb#17 -# A type that represents a simple class name like `String` or `Foo`. +# source://rbi//lib/rbi/type.rb#13 class RBI::Type::Simple < ::RBI::Type - # : (String name) -> void - # # @return [Simple] a new instance of Simple # - # source://rbi//lib/rbi/type.rb#22 + # source://rbi//lib/rbi/type.rb#18 sig { params(name: ::String).void } def initialize(name); end - # : (BasicObject other) -> bool - # - # source://rbi//lib/rbi/type.rb#29 + # source://rbi//lib/rbi/type.rb#25 sig { override.params(other: ::BasicObject).returns(T::Boolean) } def ==(other); end - # : String - # - # source://rbi//lib/rbi/type.rb#19 + # source://rbi//lib/rbi/type.rb#15 sig { returns(::String) } def name; end - # : -> String - # - # source://rbi//lib/rbi/type.rb#35 + # source://rbi//lib/rbi/type.rb#37 + sig { override.returns(::RBI::Type) } + def normalize; end + + # source://rbi//lib/rbi/type.rb#43 + sig { override.returns(::RBI::Type) } + def simplify; end + + # source://rbi//lib/rbi/type.rb#31 sig { override.returns(::String) } def to_rbi; end end # A tuple type like `[String, Integer]`. # -# source://rbi//lib/rbi/type.rb#331 +# source://rbi//lib/rbi/type.rb#589 class RBI::Type::Tuple < ::RBI::Type - # : (Array[Type] types) -> void - # # @return [Tuple] a new instance of Tuple # - # source://rbi//lib/rbi/type.rb#336 + # source://rbi//lib/rbi/type.rb#594 sig { params(types: T::Array[::RBI::Type]).void } def initialize(types); end - # : (BasicObject other) -> bool - # - # source://rbi//lib/rbi/type.rb#343 + # source://rbi//lib/rbi/type.rb#601 sig { override.params(other: ::BasicObject).returns(T::Boolean) } def ==(other); end - # : -> String - # - # source://rbi//lib/rbi/type.rb#349 + # source://rbi//lib/rbi/type.rb#613 + sig { override.returns(::RBI::Type) } + def normalize; end + + # source://rbi//lib/rbi/type.rb#619 + sig { override.returns(::RBI::Type) } + def simplify; end + + # source://rbi//lib/rbi/type.rb#607 sig { override.returns(::String) } def to_rbi; end - # : Array[Type] - # - # source://rbi//lib/rbi/type.rb#333 + # source://rbi//lib/rbi/type.rb#591 sig { returns(T::Array[::RBI::Type]) } def types; end end # A type parameter like `T.type_parameter(:U)`. # -# source://rbi//lib/rbi/type.rb#305 +# source://rbi//lib/rbi/type.rb#551 class RBI::Type::TypeParameter < ::RBI::Type - # : (Symbol name) -> void - # # @return [TypeParameter] a new instance of TypeParameter # - # source://rbi//lib/rbi/type.rb#310 + # source://rbi//lib/rbi/type.rb#556 sig { params(name: ::Symbol).void } def initialize(name); end - # : (BasicObject other) -> bool - # - # source://rbi//lib/rbi/type.rb#317 + # source://rbi//lib/rbi/type.rb#563 sig { override.params(other: ::BasicObject).returns(T::Boolean) } def ==(other); end - # : Symbol - # - # source://rbi//lib/rbi/type.rb#307 + # source://rbi//lib/rbi/type.rb#553 sig { returns(::Symbol) } def name; end - # : -> String - # - # source://rbi//lib/rbi/type.rb#323 + # source://rbi//lib/rbi/type.rb#575 + sig { override.returns(::RBI::Type) } + def normalize; end + + # source://rbi//lib/rbi/type.rb#581 + sig { override.returns(::RBI::Type) } + def simplify; end + + # source://rbi//lib/rbi/type.rb#569 sig { override.returns(::String) } def to_rbi; end end # `T.untyped`. # -# source://rbi//lib/rbi/type.rb#118 +# source://rbi//lib/rbi/type.rb#186 class RBI::Type::Untyped < ::RBI::Type - # : (BasicObject other) -> bool - # - # source://rbi//lib/rbi/type.rb#121 + # source://rbi//lib/rbi/type.rb#189 sig { override.params(other: ::BasicObject).returns(T::Boolean) } def ==(other); end - # : -> String - # - # source://rbi//lib/rbi/type.rb#127 + # source://rbi//lib/rbi/type.rb#201 + sig { override.returns(::RBI::Type) } + def normalize; end + + # source://rbi//lib/rbi/type.rb#207 + sig { override.returns(::RBI::Type) } + def simplify; end + + # source://rbi//lib/rbi/type.rb#195 sig { override.returns(::String) } def to_rbi; end end # source://rbi//lib/rbi/type_visitor.rb#6 class RBI::Type::Visitor - # : (Type node) -> void - # # source://rbi//lib/rbi/type_visitor.rb#10 sig { params(node: ::RBI::Type).void } def visit(node); end private - # : (Type::All type) -> void - # # source://rbi//lib/rbi/type_visitor.rb#56 sig { params(type: ::RBI::Type::All).void } def visit_all(type); end - # : (Type::Any type) -> void - # # source://rbi//lib/rbi/type_visitor.rb#59 sig { params(type: ::RBI::Type::Any).void } def visit_any(type); end - # : (Type::Anything type) -> void - # # source://rbi//lib/rbi/type_visitor.rb#62 sig { params(type: ::RBI::Type::Anything).void } def visit_anything(type); end - # : (Type::AttachedClass type) -> void - # # source://rbi//lib/rbi/type_visitor.rb#65 sig { params(type: ::RBI::Type::AttachedClass).void } def visit_attached_class(type); end - # : (Type::Boolean type) -> void - # # source://rbi//lib/rbi/type_visitor.rb#68 sig { params(type: ::RBI::Type::Boolean).void } def visit_boolean(type); end - # : (Type::Class type) -> void - # # source://rbi//lib/rbi/type_visitor.rb#71 sig { params(type: ::RBI::Type::Class).void } def visit_class(type); end - # : (Type::ClassOf type) -> void - # # source://rbi//lib/rbi/type_visitor.rb#74 sig { params(type: ::RBI::Type::ClassOf).void } def visit_class_of(type); end - # : (Type::Generic type) -> void - # # source://rbi//lib/rbi/type_visitor.rb#77 sig { params(type: ::RBI::Type::Generic).void } def visit_generic(type); end - # : (Type::Nilable type) -> void - # # source://rbi//lib/rbi/type_visitor.rb#80 sig { params(type: ::RBI::Type::Nilable).void } def visit_nilable(type); end - # : (Type::NoReturn type) -> void - # # source://rbi//lib/rbi/type_visitor.rb#86 sig { params(type: ::RBI::Type::NoReturn).void } def visit_no_return(type); end - # : (Type::Proc type) -> void - # # source://rbi//lib/rbi/type_visitor.rb#89 sig { params(type: ::RBI::Type::Proc).void } def visit_proc(type); end - # : (Type::SelfType type) -> void - # # source://rbi//lib/rbi/type_visitor.rb#92 sig { params(type: ::RBI::Type::SelfType).void } def visit_self_type(type); end - # : (Type::Shape type) -> void - # # source://rbi//lib/rbi/type_visitor.rb#98 sig { params(type: ::RBI::Type::Shape).void } def visit_shape(type); end - # : (Type::Simple type) -> void - # # source://rbi//lib/rbi/type_visitor.rb#83 sig { params(type: ::RBI::Type::Simple).void } def visit_simple(type); end - # : (Type::Tuple type) -> void - # # source://rbi//lib/rbi/type_visitor.rb#101 sig { params(type: ::RBI::Type::Tuple).void } def visit_tuple(type); end - # : (Type::TypeParameter type) -> void - # # source://rbi//lib/rbi/type_visitor.rb#104 sig { params(type: ::RBI::Type::TypeParameter).void } def visit_type_parameter(type); end - # : (Type::Untyped type) -> void - # # source://rbi//lib/rbi/type_visitor.rb#107 sig { params(type: ::RBI::Type::Untyped).void } def visit_untyped(type); end - # : (Type::Void type) -> void - # # source://rbi//lib/rbi/type_visitor.rb#95 sig { params(type: ::RBI::Type::Void).void } def visit_void(type); end @@ -6129,30 +4724,32 @@ class RBI::Type::Visitor::Error < ::RBI::Error; end # `void`. # -# source://rbi//lib/rbi/type.rb#133 +# source://rbi//lib/rbi/type.rb#213 class RBI::Type::Void < ::RBI::Type - # : (BasicObject other) -> bool - # - # source://rbi//lib/rbi/type.rb#136 + # source://rbi//lib/rbi/type.rb#216 sig { override.params(other: ::BasicObject).returns(T::Boolean) } def ==(other); end - # : -> String - # - # source://rbi//lib/rbi/type.rb#142 + # source://rbi//lib/rbi/type.rb#228 + sig { override.returns(::RBI::Type) } + def normalize; end + + # source://rbi//lib/rbi/type.rb#234 + sig { override.returns(::RBI::Type) } + def simplify; end + + # source://rbi//lib/rbi/type.rb#222 sig { override.returns(::String) } def to_rbi; end end -# source://rbi//lib/rbi/model.rb#1087 +# source://rbi//lib/rbi/model.rb#1063 class RBI::TypeMember < ::RBI::NodeWithComments include ::RBI::Indexable - # : (String name, String value, ?loc: Loc?, ?comments: Array[Comment]) ?{ (TypeMember node) -> void } -> void - # # @return [TypeMember] a new instance of TypeMember # - # source://rbi//lib/rbi/model.rb#1092 + # source://rbi//lib/rbi/model.rb#1068 sig do params( name: ::String, @@ -6164,188 +4761,129 @@ class RBI::TypeMember < ::RBI::NodeWithComments end def initialize(name, value, loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end - # : -> String - # - # source://rbi//lib/rbi/model.rb#1100 + # source://rbi//lib/rbi/model.rb#1076 sig { returns(::String) } def fully_qualified_name; end - # : -> Array[String] - # - # source://rbi//lib/rbi/index.rb#179 + # source://rbi//lib/rbi/index.rb#174 sig { override.returns(T::Array[::String]) } def index_ids; end - # : String - # - # source://rbi//lib/rbi/model.rb#1089 + # source://rbi//lib/rbi/model.rb#1065 sig { returns(::String) } def name; end - # : -> String - # - # source://rbi//lib/rbi/model.rb#1108 + # source://rbi//lib/rbi/model.rb#1084 sig { override.returns(::String) } def to_s; end - # : String - # - # source://rbi//lib/rbi/model.rb#1089 - # @return [String] + # source://rbi//lib/rbi/model.rb#1065 def value; end end -# source://rbi//lib/rbi/rbs_printer.rb#889 +# source://rbi//lib/rbi/rbs_printer.rb#982 class RBI::TypePrinter - # : -> void - # # @return [TypePrinter] a new instance of TypePrinter # - # source://rbi//lib/rbi/rbs_printer.rb#894 - sig { void } - def initialize; end + # source://rbi//lib/rbi/rbs_printer.rb#987 + sig { params(max_line_length: T.nilable(::Integer)).void } + def initialize(max_line_length: T.unsafe(nil)); end - # : String - # - # source://rbi//lib/rbi/rbs_printer.rb#891 + # source://rbi//lib/rbi/rbs_printer.rb#984 sig { returns(::String) } def string; end - # : (Type node) -> void - # - # source://rbi//lib/rbi/rbs_printer.rb#899 + # source://rbi//lib/rbi/rbs_printer.rb#993 sig { params(node: ::RBI::Type).void } def visit(node); end - # : (Type::All type) -> void - # - # source://rbi//lib/rbi/rbs_printer.rb#1014 + # source://rbi//lib/rbi/rbs_printer.rb#1108 sig { params(type: ::RBI::Type::All).void } def visit_all(type); end - # : (Type::Any type) -> void - # - # source://rbi//lib/rbi/rbs_printer.rb#1024 + # source://rbi//lib/rbi/rbs_printer.rb#1118 sig { params(type: ::RBI::Type::Any).void } def visit_any(type); end - # : (Type::Anything type) -> void - # - # source://rbi//lib/rbi/rbs_printer.rb#964 + # source://rbi//lib/rbi/rbs_printer.rb#1058 sig { params(type: ::RBI::Type::Anything).void } def visit_anything(type); end - # : (Type::AttachedClass type) -> void - # - # source://rbi//lib/rbi/rbs_printer.rb#989 + # source://rbi//lib/rbi/rbs_printer.rb#1083 sig { params(type: ::RBI::Type::AttachedClass).void } def visit_attached_class(type); end - # : (Type::Boolean type) -> void - # - # source://rbi//lib/rbi/rbs_printer.rb#948 + # source://rbi//lib/rbi/rbs_printer.rb#1042 sig { params(type: ::RBI::Type::Boolean).void } def visit_boolean(type); end - # : (Type::Class type) -> void - # - # source://rbi//lib/rbi/rbs_printer.rb#1091 + # source://rbi//lib/rbi/rbs_printer.rb#1185 sig { params(type: ::RBI::Type::Class).void } def visit_class(type); end - # : (Type::ClassOf type) -> void - # - # source://rbi//lib/rbi/rbs_printer.rb#1007 + # source://rbi//lib/rbi/rbs_printer.rb#1101 sig { params(type: ::RBI::Type::ClassOf).void } def visit_class_of(type); end - # : (Type::Generic type) -> void - # - # source://rbi//lib/rbi/rbs_printer.rb#953 + # source://rbi//lib/rbi/rbs_printer.rb#1047 sig { params(type: ::RBI::Type::Generic).void } def visit_generic(type); end - # : (Type::Nilable type) -> void - # - # source://rbi//lib/rbi/rbs_printer.rb#994 + # source://rbi//lib/rbi/rbs_printer.rb#1088 sig { params(type: ::RBI::Type::Nilable).void } def visit_nilable(type); end - # : (Type::NoReturn type) -> void - # - # source://rbi//lib/rbi/rbs_printer.rb#974 + # source://rbi//lib/rbi/rbs_printer.rb#1068 sig { params(type: ::RBI::Type::NoReturn).void } def visit_no_return(type); end - # : (Type::Proc type) -> void - # - # source://rbi//lib/rbi/rbs_printer.rb#1064 + # source://rbi//lib/rbi/rbs_printer.rb#1158 sig { params(type: ::RBI::Type::Proc).void } def visit_proc(type); end - # : (Type::SelfType type) -> void - # - # source://rbi//lib/rbi/rbs_printer.rb#984 + # source://rbi//lib/rbi/rbs_printer.rb#1078 sig { params(type: ::RBI::Type::SelfType).void } def visit_self_type(type); end - # : (Type::Shape type) -> void - # - # source://rbi//lib/rbi/rbs_printer.rb#1044 + # source://rbi//lib/rbi/rbs_printer.rb#1138 sig { params(type: ::RBI::Type::Shape).void } def visit_shape(type); end - # : (Type::Simple type) -> void - # - # source://rbi//lib/rbi/rbs_printer.rb#943 + # source://rbi//lib/rbi/rbs_printer.rb#1037 sig { params(type: ::RBI::Type::Simple).void } def visit_simple(type); end - # : (Type::Tuple type) -> void - # - # source://rbi//lib/rbi/rbs_printer.rb#1034 + # source://rbi//lib/rbi/rbs_printer.rb#1128 sig { params(type: ::RBI::Type::Tuple).void } def visit_tuple(type); end - # : (Type::TypeParameter type) -> void - # - # source://rbi//lib/rbi/rbs_printer.rb#1086 + # source://rbi//lib/rbi/rbs_printer.rb#1180 sig { params(type: ::RBI::Type::TypeParameter).void } def visit_type_parameter(type); end - # : (Type::Untyped type) -> void - # - # source://rbi//lib/rbi/rbs_printer.rb#979 + # source://rbi//lib/rbi/rbs_printer.rb#1073 sig { params(type: ::RBI::Type::Untyped).void } def visit_untyped(type); end - # : (Type::Void type) -> void - # - # source://rbi//lib/rbi/rbs_printer.rb#969 + # source://rbi//lib/rbi/rbs_printer.rb#1063 sig { params(type: ::RBI::Type::Void).void } def visit_void(type); end private - # : (String type_name) -> String - # - # source://rbi//lib/rbi/rbs_printer.rb#1100 + # source://rbi//lib/rbi/rbs_printer.rb#1194 sig { params(type_name: ::String).returns(::String) } def translate_t_type(type_name); end end # source://rbi//lib/rbi/rewriters/attr_to_methods.rb#5 class RBI::UnexpectedMultipleSigsError < ::RBI::Error - # : (Node node) -> void - # # @return [UnexpectedMultipleSigsError] a new instance of UnexpectedMultipleSigsError # # source://rbi//lib/rbi/rewriters/attr_to_methods.rb#10 sig { params(node: ::RBI::Node).void } def initialize(node); end - # : Node - # # source://rbi//lib/rbi/rewriters/attr_to_methods.rb#7 sig { returns(::RBI::Node) } def node; end @@ -6353,22 +4891,16 @@ end # source://rbi//lib/rbi/parser.rb#18 class RBI::UnexpectedParserError < ::RBI::Error - # : (Exception parent_exception, Loc last_location) -> void - # # @return [UnexpectedParserError] a new instance of UnexpectedParserError # # source://rbi//lib/rbi/parser.rb#23 sig { params(parent_exception: ::Exception, last_location: ::RBI::Loc).void } def initialize(parent_exception, last_location); end - # : Loc - # # source://rbi//lib/rbi/parser.rb#20 sig { returns(::RBI::Loc) } def last_location; end - # : (?io: (IO | StringIO)) -> void - # # source://rbi//lib/rbi/parser.rb#30 sig { params(io: T.any(::IO, ::StringIO)).void } def print_debug(io: T.unsafe(nil)); end @@ -6377,363 +4909,251 @@ end # source://rbi//lib/rbi/version.rb#5 RBI::VERSION = T.let(T.unsafe(nil), String) -# Visibility +# @abstract # -# @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. -# -# source://rbi//lib/rbi/model.rb#710 +# source://rbi//lib/rbi/model.rb#693 class RBI::Visibility < ::RBI::NodeWithComments abstract! - # : (Symbol visibility, ?loc: Loc?, ?comments: Array[Comment]) -> void - # # @return [Visibility] a new instance of Visibility # - # source://rbi//lib/rbi/model.rb#719 + # source://rbi//lib/rbi/model.rb#698 sig { params(visibility: ::Symbol, loc: T.nilable(::RBI::Loc), comments: T::Array[::RBI::Comment]).void } def initialize(visibility, loc: T.unsafe(nil), comments: T.unsafe(nil)); end - # : (Object? other) -> bool - # - # source://rbi//lib/rbi/model.rb#725 + # source://rbi//lib/rbi/model.rb#704 sig { params(other: T.nilable(::Object)).returns(T::Boolean) } def ==(other); end - # : -> bool - # # @return [Boolean] # - # source://rbi//lib/rbi/model.rb#742 + # source://rbi//lib/rbi/model.rb#721 sig { returns(T::Boolean) } def private?; end - # : -> bool - # # @return [Boolean] # - # source://rbi//lib/rbi/model.rb#737 + # source://rbi//lib/rbi/model.rb#716 sig { returns(T::Boolean) } def protected?; end - # : -> bool - # # @return [Boolean] # - # source://rbi//lib/rbi/model.rb#732 + # source://rbi//lib/rbi/model.rb#711 sig { returns(T::Boolean) } def public?; end - # : Symbol - # - # source://rbi//lib/rbi/model.rb#716 + # source://rbi//lib/rbi/model.rb#695 sig { returns(::Symbol) } def visibility; end end # source://rbi//lib/rbi/rewriters/nest_non_public_members.rb#49 class RBI::VisibilityGroup < ::RBI::Tree - # : (Visibility visibility) -> void - # # @return [VisibilityGroup] a new instance of VisibilityGroup # # source://rbi//lib/rbi/rewriters/nest_non_public_members.rb#54 sig { params(visibility: ::RBI::Visibility).void } def initialize(visibility); end - # : Visibility - # # source://rbi//lib/rbi/rewriters/nest_non_public_members.rb#51 sig { returns(::RBI::Visibility) } def visibility; end end -# @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. +# @abstract # -# source://rbi//lib/rbi/visitor.rb#7 +# source://rbi//lib/rbi/visitor.rb#8 class RBI::Visitor abstract! - # : (Node? node) -> void - # - # source://rbi//lib/rbi/visitor.rb#13 + # source://rbi//lib/rbi/visitor.rb#10 sig { params(node: T.nilable(::RBI::Node)).void } def visit(node); end - # : (Array[Node] nodes) -> void - # - # source://rbi//lib/rbi/visitor.rb#111 + # source://rbi//lib/rbi/visitor.rb#108 sig { params(nodes: T::Array[::RBI::Node]).void } def visit_all(nodes); end - # : (File file) -> void - # - # source://rbi//lib/rbi/visitor.rb#116 + # source://rbi//lib/rbi/visitor.rb#113 sig { params(file: ::RBI::File).void } def visit_file(file); end private - # : (Arg node) -> void - # - # source://rbi//lib/rbi/visitor.rb#201 + # source://rbi//lib/rbi/visitor.rb#198 sig { params(node: ::RBI::Arg).void } def visit_arg(node); end - # : (AttrAccessor node) -> void - # - # source://rbi//lib/rbi/visitor.rb#150 + # source://rbi//lib/rbi/visitor.rb#147 sig { params(node: ::RBI::AttrAccessor).void } def visit_attr_accessor(node); end - # : (AttrReader node) -> void - # - # source://rbi//lib/rbi/visitor.rb#153 + # source://rbi//lib/rbi/visitor.rb#150 sig { params(node: ::RBI::AttrReader).void } def visit_attr_reader(node); end - # : (AttrWriter node) -> void - # - # source://rbi//lib/rbi/visitor.rb#156 + # source://rbi//lib/rbi/visitor.rb#153 sig { params(node: ::RBI::AttrWriter).void } def visit_attr_writer(node); end - # : (BlankLine node) -> void - # - # source://rbi//lib/rbi/visitor.rb#129 + # source://rbi//lib/rbi/visitor.rb#126 sig { params(node: ::RBI::BlankLine).void } def visit_blank_line(node); end - # : (BlockParam node) -> void - # - # source://rbi//lib/rbi/visitor.rb#180 + # source://rbi//lib/rbi/visitor.rb#177 sig { params(node: ::RBI::BlockParam).void } def visit_block_param(node); end - # : (Class node) -> void - # - # source://rbi//lib/rbi/visitor.rb#135 + # source://rbi//lib/rbi/visitor.rb#132 sig { params(node: ::RBI::Class).void } def visit_class(node); end - # : (Comment node) -> void - # - # source://rbi//lib/rbi/visitor.rb#123 + # source://rbi//lib/rbi/visitor.rb#120 sig { params(node: ::RBI::Comment).void } def visit_comment(node); end - # : (ConflictTree node) -> void - # - # source://rbi//lib/rbi/visitor.rb#249 + # source://rbi//lib/rbi/visitor.rb#246 sig { params(node: ::RBI::ConflictTree).void } def visit_conflict_tree(node); end - # : (Const node) -> void - # - # source://rbi//lib/rbi/visitor.rb#147 + # source://rbi//lib/rbi/visitor.rb#144 sig { params(node: ::RBI::Const).void } def visit_const(node); end - # : (Extend node) -> void - # - # source://rbi//lib/rbi/visitor.rb#186 + # source://rbi//lib/rbi/visitor.rb#183 sig { params(node: ::RBI::Extend).void } def visit_extend(node); end - # : (Group node) -> void - # - # source://rbi//lib/rbi/visitor.rb#243 + # source://rbi//lib/rbi/visitor.rb#240 sig { params(node: ::RBI::Group).void } def visit_group(node); end - # : (Helper node) -> void - # - # source://rbi//lib/rbi/visitor.rb#231 + # source://rbi//lib/rbi/visitor.rb#228 sig { params(node: ::RBI::Helper).void } def visit_helper(node); end - # : (Include node) -> void - # - # source://rbi//lib/rbi/visitor.rb#183 + # source://rbi//lib/rbi/visitor.rb#180 sig { params(node: ::RBI::Include).void } def visit_include(node); end - # : (KwArg node) -> void - # - # source://rbi//lib/rbi/visitor.rb#204 + # source://rbi//lib/rbi/visitor.rb#201 sig { params(node: ::RBI::KwArg).void } def visit_kw_arg(node); end - # : (KwOptParam node) -> void - # - # source://rbi//lib/rbi/visitor.rb#174 + # source://rbi//lib/rbi/visitor.rb#171 sig { params(node: ::RBI::KwOptParam).void } def visit_kw_opt_param(node); end - # : (KwParam node) -> void - # - # source://rbi//lib/rbi/visitor.rb#171 + # source://rbi//lib/rbi/visitor.rb#168 sig { params(node: ::RBI::KwParam).void } def visit_kw_param(node); end - # : (KwRestParam node) -> void - # - # source://rbi//lib/rbi/visitor.rb#177 + # source://rbi//lib/rbi/visitor.rb#174 sig { params(node: ::RBI::KwRestParam).void } def visit_kw_rest_param(node); end - # : (Method node) -> void - # - # source://rbi//lib/rbi/visitor.rb#159 + # source://rbi//lib/rbi/visitor.rb#156 sig { params(node: ::RBI::Method).void } def visit_method(node); end - # : (MixesInClassMethods node) -> void - # - # source://rbi//lib/rbi/visitor.rb#237 + # source://rbi//lib/rbi/visitor.rb#234 sig { params(node: ::RBI::MixesInClassMethods).void } def visit_mixes_in_class_methods(node); end - # : (Module node) -> void - # - # source://rbi//lib/rbi/visitor.rb#132 + # source://rbi//lib/rbi/visitor.rb#129 sig { params(node: ::RBI::Module).void } def visit_module(node); end - # : (OptParam node) -> void - # - # source://rbi//lib/rbi/visitor.rb#165 + # source://rbi//lib/rbi/visitor.rb#162 sig { params(node: ::RBI::OptParam).void } def visit_opt_param(node); end - # : (Private node) -> void - # - # source://rbi//lib/rbi/visitor.rb#195 + # source://rbi//lib/rbi/visitor.rb#192 sig { params(node: ::RBI::Private).void } def visit_private(node); end - # : (Protected node) -> void - # - # source://rbi//lib/rbi/visitor.rb#192 + # source://rbi//lib/rbi/visitor.rb#189 sig { params(node: ::RBI::Protected).void } def visit_protected(node); end - # : (Public node) -> void - # - # source://rbi//lib/rbi/visitor.rb#189 + # source://rbi//lib/rbi/visitor.rb#186 sig { params(node: ::RBI::Public).void } def visit_public(node); end - # : (RBSComment node) -> void - # - # source://rbi//lib/rbi/visitor.rb#126 + # source://rbi//lib/rbi/visitor.rb#123 sig { params(node: ::RBI::RBSComment).void } def visit_rbs_comment(node); end - # : (ReqParam node) -> void - # - # source://rbi//lib/rbi/visitor.rb#162 + # source://rbi//lib/rbi/visitor.rb#159 sig { params(node: ::RBI::ReqParam).void } def visit_req_param(node); end - # : (RequiresAncestor node) -> void - # - # source://rbi//lib/rbi/visitor.rb#240 + # source://rbi//lib/rbi/visitor.rb#237 sig { params(node: ::RBI::RequiresAncestor).void } def visit_requires_ancestor(node); end - # : (RestParam node) -> void - # - # source://rbi//lib/rbi/visitor.rb#168 + # source://rbi//lib/rbi/visitor.rb#165 sig { params(node: ::RBI::RestParam).void } def visit_rest_param(node); end - # : (ScopeConflict node) -> void - # - # source://rbi//lib/rbi/visitor.rb#252 + # source://rbi//lib/rbi/visitor.rb#249 sig { params(node: ::RBI::ScopeConflict).void } def visit_scope_conflict(node); end - # : (Send node) -> void - # - # source://rbi//lib/rbi/visitor.rb#198 + # source://rbi//lib/rbi/visitor.rb#195 sig { params(node: ::RBI::Send).void } def visit_send(node); end - # : (Sig node) -> void - # - # source://rbi//lib/rbi/visitor.rb#207 + # source://rbi//lib/rbi/visitor.rb#204 sig { params(node: ::RBI::Sig).void } def visit_sig(node); end - # : (SigParam node) -> void - # - # source://rbi//lib/rbi/visitor.rb#210 + # source://rbi//lib/rbi/visitor.rb#207 sig { params(node: ::RBI::SigParam).void } def visit_sig_param(node); end - # : (SingletonClass node) -> void - # - # source://rbi//lib/rbi/visitor.rb#138 + # source://rbi//lib/rbi/visitor.rb#135 sig { params(node: ::RBI::SingletonClass).void } def visit_singleton_class(node); end - # : (Struct node) -> void - # - # source://rbi//lib/rbi/visitor.rb#141 + # source://rbi//lib/rbi/visitor.rb#138 sig { params(node: ::RBI::Struct).void } def visit_struct(node); end - # : (TEnum node) -> void - # - # source://rbi//lib/rbi/visitor.rb#222 + # source://rbi//lib/rbi/visitor.rb#219 sig { params(node: ::RBI::TEnum).void } def visit_tenum(node); end - # : (TEnumBlock node) -> void - # - # source://rbi//lib/rbi/visitor.rb#225 + # source://rbi//lib/rbi/visitor.rb#222 sig { params(node: ::RBI::TEnumBlock).void } def visit_tenum_block(node); end - # : (TEnumValue node) -> void - # - # source://rbi//lib/rbi/visitor.rb#228 + # source://rbi//lib/rbi/visitor.rb#225 sig { params(node: ::RBI::TEnumValue).void } def visit_tenum_value(node); end - # : (Tree node) -> void - # - # source://rbi//lib/rbi/visitor.rb#144 + # source://rbi//lib/rbi/visitor.rb#141 sig { params(node: ::RBI::Tree).void } def visit_tree(node); end - # : (TStruct node) -> void - # - # source://rbi//lib/rbi/visitor.rb#213 + # source://rbi//lib/rbi/visitor.rb#210 sig { params(node: ::RBI::TStruct).void } def visit_tstruct(node); end - # : (TStructConst node) -> void - # - # source://rbi//lib/rbi/visitor.rb#216 + # source://rbi//lib/rbi/visitor.rb#213 sig { params(node: ::RBI::TStructConst).void } def visit_tstruct_const(node); end - # : (TStructProp node) -> void - # - # source://rbi//lib/rbi/visitor.rb#219 + # source://rbi//lib/rbi/visitor.rb#216 sig { params(node: ::RBI::TStructProp).void } def visit_tstruct_prop(node); end - # : (TypeMember node) -> void - # - # source://rbi//lib/rbi/visitor.rb#234 + # source://rbi//lib/rbi/visitor.rb#231 sig { params(node: ::RBI::TypeMember).void } def visit_type_member(node); end - # : (VisibilityGroup node) -> void - # - # source://rbi//lib/rbi/visitor.rb#246 + # source://rbi//lib/rbi/visitor.rb#243 sig { params(node: ::RBI::VisibilityGroup).void } def visit_visibility_group(node); end end diff --git a/Library/Homebrew/sorbet/rbi/gems/rbs@3.9.4.rbi b/Library/Homebrew/sorbet/rbi/gems/rbs@4.0.0.dev.4.rbi similarity index 80% rename from Library/Homebrew/sorbet/rbi/gems/rbs@3.9.4.rbi rename to Library/Homebrew/sorbet/rbi/gems/rbs@4.0.0.dev.4.rbi index 681f7787dd..dec3eaa23c 100644 --- a/Library/Homebrew/sorbet/rbi/gems/rbs@3.9.4.rbi +++ b/Library/Homebrew/sorbet/rbi/gems/rbs@4.0.0.dev.4.rbi @@ -5,38 +5,29 @@ # Please instead update this file by running `bin/tapioca gem rbs`. -# source://rbs//lib/rbs/namespace.rb#120 -module Kernel - # source://rbs//lib/rbs/namespace.rb#121 - def Namespace(name); end - - # source://rbs//lib/rbs/type_name.rb#105 - def TypeName(string); end -end - # source://rbs//lib/rbs/version.rb#3 module RBS class << self - # source://rbs//lib/rbs.rb#69 + # source://rbs//lib/rbs.rb#81 def logger; end # Returns the value of attribute logger_level. # - # source://rbs//lib/rbs.rb#66 + # source://rbs//lib/rbs.rb#78 def logger_level; end - # source://rbs//lib/rbs.rb#78 + # source://rbs//lib/rbs.rb#90 def logger_level=(level); end # Returns the value of attribute logger_output. # - # source://rbs//lib/rbs.rb#67 + # source://rbs//lib/rbs.rb#79 def logger_output; end - # source://rbs//lib/rbs.rb#73 + # source://rbs//lib/rbs.rb#85 def logger_output=(val); end - # source://rbs//lib/rbs.rb#83 + # source://rbs//lib/rbs.rb#95 def print_warning; end end end @@ -54,7 +45,7 @@ class RBS::AST::Annotation # source://rbs//lib/rbs/ast/annotation.rb#14 def ==(other); end - # source://rbs//lib/rbs/ast/annotation.rb#14 + # source://rbs//lib/rbs/ast/annotation.rb#18 def eql?(other); end # source://rbs//lib/rbs/ast/annotation.rb#20 @@ -84,7 +75,7 @@ class RBS::AST::Comment # source://rbs//lib/rbs/ast/comment.rb#14 def ==(other); end - # source://rbs//lib/rbs/ast/comment.rb#14 + # source://rbs//lib/rbs/ast/comment.rb#18 def eql?(other); end # source://rbs//lib/rbs/ast/comment.rb#20 @@ -127,7 +118,7 @@ class RBS::AST::Declarations::AliasDecl < ::RBS::AST::Declarations::Base # source://rbs//lib/rbs/ast/declarations.rb#424 def comment; end - # source://rbs//lib/rbs/ast/declarations.rb#434 + # source://rbs//lib/rbs/ast/declarations.rb#440 def eql?(other); end # source://rbs//lib/rbs/ast/declarations.rb#442 @@ -175,7 +166,7 @@ class RBS::AST::Declarations::Class < ::RBS::AST::Declarations::Base # source://rbs//lib/rbs/ast/declarations.rb#95 def comment; end - # source://rbs//lib/rbs/ast/declarations.rb#119 + # source://rbs//lib/rbs/ast/declarations.rb#127 def eql?(other); end # source://rbs//lib/rbs/ast/declarations.rb#129 @@ -228,7 +219,7 @@ class RBS::AST::Declarations::Class::Super # source://rbs//lib/rbs/ast/declarations.rb#58 def args; end - # source://rbs//lib/rbs/ast/declarations.rb#67 + # source://rbs//lib/rbs/ast/declarations.rb#71 def eql?(other); end # source://rbs//lib/rbs/ast/declarations.rb#73 @@ -274,7 +265,7 @@ class RBS::AST::Declarations::Constant < ::RBS::AST::Declarations::Base # source://rbs//lib/rbs/ast/declarations.rb#351 def comment; end - # source://rbs//lib/rbs/ast/declarations.rb#362 + # source://rbs//lib/rbs/ast/declarations.rb#368 def eql?(other); end # source://rbs//lib/rbs/ast/declarations.rb#370 @@ -319,7 +310,7 @@ class RBS::AST::Declarations::Global < ::RBS::AST::Declarations::Base # source://rbs//lib/rbs/ast/declarations.rb#389 def comment; end - # source://rbs//lib/rbs/ast/declarations.rb#400 + # source://rbs//lib/rbs/ast/declarations.rb#406 def eql?(other); end # source://rbs//lib/rbs/ast/declarations.rb#408 @@ -366,7 +357,7 @@ class RBS::AST::Declarations::Interface < ::RBS::AST::Declarations::Base # source://rbs//lib/rbs/ast/declarations.rb#254 def comment; end - # source://rbs//lib/rbs/ast/declarations.rb#278 + # source://rbs//lib/rbs/ast/declarations.rb#285 def eql?(other); end # source://rbs//lib/rbs/ast/declarations.rb#287 @@ -428,7 +419,7 @@ class RBS::AST::Declarations::Module < ::RBS::AST::Declarations::Base # source://rbs//lib/rbs/ast/declarations.rb#195 def comment; end - # source://rbs//lib/rbs/ast/declarations.rb#220 + # source://rbs//lib/rbs/ast/declarations.rb#228 def eql?(other); end # source://rbs//lib/rbs/ast/declarations.rb#230 @@ -481,7 +472,7 @@ class RBS::AST::Declarations::Module::Self # source://rbs//lib/rbs/ast/declarations.rb#150 def args; end - # source://rbs//lib/rbs/ast/declarations.rb#159 + # source://rbs//lib/rbs/ast/declarations.rb#163 def eql?(other); end # source://rbs//lib/rbs/ast/declarations.rb#165 @@ -539,7 +530,7 @@ class RBS::AST::Declarations::TypeAlias < ::RBS::AST::Declarations::Base # source://rbs//lib/rbs/ast/declarations.rb#310 def comment; end - # source://rbs//lib/rbs/ast/declarations.rb#321 + # source://rbs//lib/rbs/ast/declarations.rb#328 def eql?(other); end # source://rbs//lib/rbs/ast/declarations.rb#330 @@ -675,7 +666,7 @@ class RBS::AST::Members::Alias < ::RBS::AST::Members::Base # source://rbs//lib/rbs/ast/members.rb#405 def comment; end - # source://rbs//lib/rbs/ast/members.rb#416 + # source://rbs//lib/rbs/ast/members.rb#423 def eql?(other); end # source://rbs//lib/rbs/ast/members.rb#425 @@ -757,7 +748,7 @@ module RBS::AST::Members::Attribute # source://rbs//lib/rbs/ast/members.rb#267 def comment; end - # source://rbs//lib/rbs/ast/members.rb#281 + # source://rbs//lib/rbs/ast/members.rb#290 def eql?(other); end # source://rbs//lib/rbs/ast/members.rb#292 @@ -848,7 +839,7 @@ module RBS::AST::Members::LocationOnly # source://rbs//lib/rbs/ast/members.rb#372 def ==(other); end - # source://rbs//lib/rbs/ast/members.rb#372 + # source://rbs//lib/rbs/ast/members.rb#376 def eql?(other); end # source://rbs//lib/rbs/ast/members.rb#378 @@ -880,7 +871,7 @@ class RBS::AST::Members::MethodDefinition < ::RBS::AST::Members::Base # source://rbs//lib/rbs/ast/members.rb#51 def comment; end - # source://rbs//lib/rbs/ast/members.rb#66 + # source://rbs//lib/rbs/ast/members.rb#75 def eql?(other); end # source://rbs//lib/rbs/ast/members.rb#77 @@ -953,7 +944,7 @@ class RBS::AST::Members::MethodDefinition::Overload # source://rbs//lib/rbs/ast/members.rb#11 def annotations; end - # source://rbs//lib/rbs/ast/members.rb#18 + # source://rbs//lib/rbs/ast/members.rb#26 def eql?(other); end # source://rbs//lib/rbs/ast/members.rb#22 @@ -1053,7 +1044,7 @@ module RBS::AST::Members::Var # source://rbs//lib/rbs/ast/members.rb#125 def comment; end - # source://rbs//lib/rbs/ast/members.rb#134 + # source://rbs//lib/rbs/ast/members.rb#138 def eql?(other); end # source://rbs//lib/rbs/ast/members.rb#140 @@ -1075,6 +1066,475 @@ module RBS::AST::Members::Var def type; end end +# source://rbs//lib/rbs/ast/ruby/comment_block.rb#5 +module RBS::AST::Ruby; end + +# source://rbs//lib/rbs/ast/ruby/annotations.rb#6 +module RBS::AST::Ruby::Annotations; end + +# source://rbs//lib/rbs/ast/ruby/annotations.rb#7 +class RBS::AST::Ruby::Annotations::Base + # @return [Base] a new instance of Base + # + # source://rbs//lib/rbs/ast/ruby/annotations.rb#10 + def initialize(location, prefix_location); end + + # source://rbs//lib/rbs/ast/ruby/annotations.rb#15 + def buffer; end + + # Returns the value of attribute location. + # + # source://rbs//lib/rbs/ast/ruby/annotations.rb#8 + def location; end + + # Returns the value of attribute prefix_location. + # + # source://rbs//lib/rbs/ast/ruby/annotations.rb#8 + def prefix_location; end +end + +# source://rbs//lib/rbs/ast/ruby/annotations.rb#36 +class RBS::AST::Ruby::Annotations::ColonMethodTypeAnnotation < ::RBS::AST::Ruby::Annotations::Base + # @return [ColonMethodTypeAnnotation] a new instance of ColonMethodTypeAnnotation + # + # source://rbs//lib/rbs/ast/ruby/annotations.rb#39 + def initialize(location:, prefix_location:, annotations:, method_type:); end + + # Returns the value of attribute annotations. + # + # source://rbs//lib/rbs/ast/ruby/annotations.rb#37 + def annotations; end + + # source://rbs//lib/rbs/ast/ruby/annotations.rb#45 + def map_type_name; end + + # Returns the value of attribute method_type. + # + # source://rbs//lib/rbs/ast/ruby/annotations.rb#37 + def method_type; end +end + +# source://rbs//lib/rbs/ast/ruby/annotations.rb#55 +class RBS::AST::Ruby::Annotations::MethodTypesAnnotation < ::RBS::AST::Ruby::Annotations::Base + # @return [MethodTypesAnnotation] a new instance of MethodTypesAnnotation + # + # source://rbs//lib/rbs/ast/ruby/annotations.rb#60 + def initialize(location:, prefix_location:, overloads:, vertical_bar_locations:); end + + # source://rbs//lib/rbs/ast/ruby/annotations.rb#66 + def map_type_name(&block); end + + # Returns the value of attribute overloads. + # + # source://rbs//lib/rbs/ast/ruby/annotations.rb#58 + def overloads; end + + # Returns the value of attribute vertical_bar_locations. + # + # source://rbs//lib/rbs/ast/ruby/annotations.rb#58 + def vertical_bar_locations; end +end + +# source://rbs//lib/rbs/ast/ruby/annotations.rb#56 +RBS::AST::Ruby::Annotations::MethodTypesAnnotation::Overload = RBS::AST::Members::MethodDefinition::Overload + +# source://rbs//lib/rbs/ast/ruby/annotations.rb#20 +class RBS::AST::Ruby::Annotations::NodeTypeAssertion < ::RBS::AST::Ruby::Annotations::Base + # @return [NodeTypeAssertion] a new instance of NodeTypeAssertion + # + # source://rbs//lib/rbs/ast/ruby/annotations.rb#23 + def initialize(location:, prefix_location:, type:); end + + # source://rbs//lib/rbs/ast/ruby/annotations.rb#28 + def map_type_name; end + + # Returns the value of attribute type. + # + # source://rbs//lib/rbs/ast/ruby/annotations.rb#21 + def type; end +end + +# source://rbs//lib/rbs/ast/ruby/annotations.rb#88 +class RBS::AST::Ruby::Annotations::ReturnTypeAnnotation < ::RBS::AST::Ruby::Annotations::Base + # @return [ReturnTypeAnnotation] a new instance of ReturnTypeAnnotation + # + # source://rbs//lib/rbs/ast/ruby/annotations.rb#97 + def initialize(location:, prefix_location:, return_location:, colon_location:, return_type:, comment_location:); end + + # Returns the value of attribute colon_location. + # + # source://rbs//lib/rbs/ast/ruby/annotations.rb#91 + def colon_location; end + + # Returns the value of attribute comment_location. + # + # source://rbs//lib/rbs/ast/ruby/annotations.rb#95 + def comment_location; end + + # source://rbs//lib/rbs/ast/ruby/annotations.rb#105 + def map_type_name(&block); end + + # Returns the value of attribute return_location. + # + # source://rbs//lib/rbs/ast/ruby/annotations.rb#89 + def return_location; end + + # Returns the value of attribute return_type. + # + # source://rbs//lib/rbs/ast/ruby/annotations.rb#93 + def return_type; end +end + +# source://rbs//lib/rbs/ast/ruby/annotations.rb#78 +class RBS::AST::Ruby::Annotations::SkipAnnotation < ::RBS::AST::Ruby::Annotations::Base + # @return [SkipAnnotation] a new instance of SkipAnnotation + # + # source://rbs//lib/rbs/ast/ruby/annotations.rb#81 + def initialize(location:, prefix_location:, skip_location:, comment_location:); end + + # Returns the value of attribute comment_location. + # + # source://rbs//lib/rbs/ast/ruby/annotations.rb#79 + def comment_location; end + + # Returns the value of attribute skip_location. + # + # source://rbs//lib/rbs/ast/ruby/annotations.rb#79 + def skip_location; end +end + +# source://rbs//lib/rbs/ast/ruby/comment_block.rb#6 +class RBS::AST::Ruby::CommentBlock + # @return [CommentBlock] a new instance of CommentBlock + # + # source://rbs//lib/rbs/ast/ruby/comment_block.rb#9 + def initialize(source_buffer, comments); end + + # Returns the value of attribute comment_buffer. + # + # source://rbs//lib/rbs/ast/ruby/comment_block.rb#7 + def comment_buffer; end + + # source://rbs//lib/rbs/ast/ruby/comment_block.rb#204 + def comments; end + + # source://rbs//lib/rbs/ast/ruby/comment_block.rb#98 + def each_paragraph(variables, &block); end + + # source://rbs//lib/rbs/ast/ruby/comment_block.rb#50 + def end_line; end + + # @return [Boolean] + # + # source://rbs//lib/rbs/ast/ruby/comment_block.rb#36 + def leading?; end + + # @return [Boolean] + # + # source://rbs//lib/rbs/ast/ruby/comment_block.rb#208 + def leading_annotation?(index); end + + # source://rbs//lib/rbs/ast/ruby/comment_block.rb#174 + def line_location(start_line, end_line); end + + # source://rbs//lib/rbs/ast/ruby/comment_block.rb#54 + def line_starts; end + + # Returns the value of attribute name. + # + # source://rbs//lib/rbs/ast/ruby/comment_block.rb#7 + def name; end + + # Returns the value of attribute offsets. + # + # source://rbs//lib/rbs/ast/ruby/comment_block.rb#7 + def offsets; end + + # source://rbs//lib/rbs/ast/ruby/comment_block.rb#180 + def parse_annotation_lines(start_line, end_line, variables); end + + # source://rbs//lib/rbs/ast/ruby/comment_block.rb#46 + def start_line; end + + # source://rbs//lib/rbs/ast/ruby/comment_block.rb#169 + def text(comment_index); end + + # @return [Boolean] + # + # source://rbs//lib/rbs/ast/ruby/comment_block.rb#41 + def trailing?; end + + # source://rbs//lib/rbs/ast/ruby/comment_block.rb#190 + def trailing_annotation(variables); end + + # source://rbs//lib/rbs/ast/ruby/comment_block.rb#130 + def yield_annotation(start_line, end_line, current_line, variables, &block); end + + # source://rbs//lib/rbs/ast/ruby/comment_block.rb#110 + def yield_paragraph(start_line, current_line, variables, &block); end + + class << self + # source://rbs//lib/rbs/ast/ruby/comment_block.rb#60 + def build(buffer, comments); end + end +end + +# source://rbs//lib/rbs/ast/ruby/comment_block.rb#96 +class RBS::AST::Ruby::CommentBlock::AnnotationSyntaxError < ::Struct + # source://rbs//lib/rbs/ast/ruby/comment_block.rb#96 + def error; end + + # source://rbs//lib/rbs/ast/ruby/comment_block.rb#96 + def error=(_); end + + # source://rbs//lib/rbs/ast/ruby/comment_block.rb#96 + def location; end + + # source://rbs//lib/rbs/ast/ruby/comment_block.rb#96 + def location=(_); end + + class << self + # source://rbs//lib/rbs/ast/ruby/comment_block.rb#96 + def [](*_arg0); end + + # source://rbs//lib/rbs/ast/ruby/comment_block.rb#96 + def inspect; end + + # source://rbs//lib/rbs/ast/ruby/comment_block.rb#96 + def keyword_init?; end + + # source://rbs//lib/rbs/ast/ruby/comment_block.rb#96 + def members; end + + # source://rbs//lib/rbs/ast/ruby/comment_block.rb#96 + def new(*_arg0); end + end +end + +# source://rbs//lib/rbs/ast/ruby/declarations.rb#6 +module RBS::AST::Ruby::Declarations; end + +# source://rbs//lib/rbs/ast/ruby/declarations.rb#7 +class RBS::AST::Ruby::Declarations::Base + include ::RBS::AST::Ruby::Helpers::ConstantHelper + include ::RBS::AST::Ruby::Helpers::LocationHelper + + # @return [Base] a new instance of Base + # + # source://rbs//lib/rbs/ast/ruby/declarations.rb#13 + def initialize(buffer); end + + # Returns the value of attribute buffer. + # + # source://rbs//lib/rbs/ast/ruby/declarations.rb#8 + def buffer; end +end + +# source://rbs//lib/rbs/ast/ruby/declarations.rb#18 +class RBS::AST::Ruby::Declarations::ClassDecl < ::RBS::AST::Ruby::Declarations::Base + # @return [ClassDecl] a new instance of ClassDecl + # + # source://rbs//lib/rbs/ast/ruby/declarations.rb#25 + def initialize(buffer, name, node); end + + # Returns the value of attribute class_name. + # + # source://rbs//lib/rbs/ast/ruby/declarations.rb#19 + def class_name; end + + # source://rbs//lib/rbs/ast/ruby/declarations.rb#32 + def each_decl(&block); end + + # source://rbs//lib/rbs/ast/ruby/declarations.rb#46 + def location; end + + # Returns the value of attribute members. + # + # source://rbs//lib/rbs/ast/ruby/declarations.rb#21 + def members; end + + # Returns the value of attribute node. + # + # source://rbs//lib/rbs/ast/ruby/declarations.rb#23 + def node; end + + # source://rbs//lib/rbs/ast/ruby/declarations.rb#42 + def super_class; end + + # source://rbs//lib/rbs/ast/ruby/declarations.rb#44 + def type_params; end +end + +# source://rbs//lib/rbs/ast/ruby/declarations.rb#51 +class RBS::AST::Ruby::Declarations::ModuleDecl < ::RBS::AST::Ruby::Declarations::Base + # @return [ModuleDecl] a new instance of ModuleDecl + # + # source://rbs//lib/rbs/ast/ruby/declarations.rb#58 + def initialize(buffer, name, node); end + + # source://rbs//lib/rbs/ast/ruby/declarations.rb#65 + def each_decl(&block); end + + # source://rbs//lib/rbs/ast/ruby/declarations.rb#79 + def location; end + + # Returns the value of attribute members. + # + # source://rbs//lib/rbs/ast/ruby/declarations.rb#54 + def members; end + + # Returns the value of attribute module_name. + # + # source://rbs//lib/rbs/ast/ruby/declarations.rb#52 + def module_name; end + + # Returns the value of attribute node. + # + # source://rbs//lib/rbs/ast/ruby/declarations.rb#56 + def node; end + + # source://rbs//lib/rbs/ast/ruby/declarations.rb#77 + def self_types; end + + # source://rbs//lib/rbs/ast/ruby/declarations.rb#75 + def type_params; end +end + +# source://rbs//lib/rbs/ast/ruby/helpers/constant_helper.rb#6 +module RBS::AST::Ruby::Helpers; end + +# source://rbs//lib/rbs/ast/ruby/helpers/constant_helper.rb#7 +module RBS::AST::Ruby::Helpers::ConstantHelper + private + + # source://rbs//lib/rbs/ast/ruby/helpers/constant_helper.rb#10 + def constant_as_type_name(node); end + + class << self + # source://rbs//lib/rbs/ast/ruby/helpers/constant_helper.rb#10 + def constant_as_type_name(node); end + end +end + +# source://rbs//lib/rbs/ast/ruby/helpers/location_helper.rb#7 +module RBS::AST::Ruby::Helpers::LocationHelper + # source://rbs//lib/rbs/ast/ruby/helpers/location_helper.rb#8 + def rbs_location(location); end +end + +# source://rbs//lib/rbs/ast/ruby/members.rb#6 +module RBS::AST::Ruby::Members; end + +# source://rbs//lib/rbs/ast/ruby/members.rb#7 +class RBS::AST::Ruby::Members::Base + include ::RBS::AST::Ruby::Helpers::LocationHelper + + # @return [Base] a new instance of Base + # + # source://rbs//lib/rbs/ast/ruby/members.rb#10 + def initialize(buffer); end + + # Returns the value of attribute buffer. + # + # source://rbs//lib/rbs/ast/ruby/members.rb#8 + def buffer; end +end + +# source://rbs//lib/rbs/ast/ruby/members.rb#180 +class RBS::AST::Ruby::Members::DefMember < ::RBS::AST::Ruby::Members::Base + # @return [DefMember] a new instance of DefMember + # + # source://rbs//lib/rbs/ast/ruby/members.rb#187 + def initialize(buffer, name, node, method_type); end + + # source://rbs//lib/rbs/ast/ruby/members.rb#206 + def annotations; end + + # source://rbs//lib/rbs/ast/ruby/members.rb#194 + def location; end + + # Returns the value of attribute method_type. + # + # source://rbs//lib/rbs/ast/ruby/members.rb#185 + def method_type; end + + # Returns the value of attribute name. + # + # source://rbs//lib/rbs/ast/ruby/members.rb#183 + def name; end + + # Returns the value of attribute node. + # + # source://rbs//lib/rbs/ast/ruby/members.rb#184 + def node; end + + # @return [Boolean] + # + # source://rbs//lib/rbs/ast/ruby/members.rb#202 + def overloading?; end + + # source://rbs//lib/rbs/ast/ruby/members.rb#198 + def overloads; end +end + +# source://rbs//lib/rbs/ast/ruby/members.rb#181 +RBS::AST::Ruby::Members::DefMember::Overload = RBS::AST::Members::MethodDefinition::Overload + +# source://rbs//lib/rbs/ast/ruby/members.rb#17 +class RBS::AST::Ruby::Members::MethodTypeAnnotation + # @return [MethodTypeAnnotation] a new instance of MethodTypeAnnotation + # + # source://rbs//lib/rbs/ast/ruby/members.rb#64 + def initialize(type_annotations:); end + + # @return [Boolean] + # + # source://rbs//lib/rbs/ast/ruby/members.rb#139 + def empty?; end + + # source://rbs//lib/rbs/ast/ruby/members.rb#68 + def map_type_name(&block); end + + # source://rbs//lib/rbs/ast/ruby/members.rb#143 + def overloads; end + + # Returns the value of attribute type_annotations. + # + # source://rbs//lib/rbs/ast/ruby/members.rb#62 + def type_annotations; end + + class << self + # source://rbs//lib/rbs/ast/ruby/members.rb#81 + def build(leading_block, trailing_block, variables); end + end +end + +# source://rbs//lib/rbs/ast/ruby/members.rb#18 +class RBS::AST::Ruby::Members::MethodTypeAnnotation::DocStyle + # @return [DocStyle] a new instance of DocStyle + # + # source://rbs//lib/rbs/ast/ruby/members.rb#21 + def initialize; end + + # source://rbs//lib/rbs/ast/ruby/members.rb#25 + def map_type_name(&block); end + + # source://rbs//lib/rbs/ast/ruby/members.rb#31 + def method_type; end + + # Returns the value of attribute return_type_annotation. + # + # source://rbs//lib/rbs/ast/ruby/members.rb#19 + def return_type_annotation; end + + # Sets the attribute return_type_annotation + # + # @param value the value to set the attribute return_type_annotation to. + # + # source://rbs//lib/rbs/ast/ruby/members.rb#19 + def return_type_annotation=(_arg0); end +end + # source://rbs//lib/rbs/ast/type_param.rb#5 class RBS::AST::TypeParam # @return [TypeParam] a new instance of TypeParam @@ -1090,7 +1550,7 @@ class RBS::AST::TypeParam # source://rbs//lib/rbs/ast/type_param.rb#6 def default_type; end - # source://rbs//lib/rbs/ast/type_param.rb#33 + # source://rbs//lib/rbs/ast/type_param.rb#42 def eql?(other); end # source://rbs//lib/rbs/ast/type_param.rb#44 @@ -1296,28 +1756,52 @@ end # source://rbs//lib/rbs/ancestor_graph.rb#5 class RBS::AncestorGraph::InstanceNode < ::Struct + # source://rbs//lib/rbs/ancestor_graph.rb#5 def type_name; end + + # source://rbs//lib/rbs/ancestor_graph.rb#5 def type_name=(_); end class << self + # source://rbs//lib/rbs/ancestor_graph.rb#5 def [](*_arg0); end + + # source://rbs//lib/rbs/ancestor_graph.rb#5 def inspect; end + + # source://rbs//lib/rbs/ancestor_graph.rb#5 def keyword_init?; end + + # source://rbs//lib/rbs/ancestor_graph.rb#5 def members; end + + # source://rbs//lib/rbs/ancestor_graph.rb#5 def new(*_arg0); end end end # source://rbs//lib/rbs/ancestor_graph.rb#6 class RBS::AncestorGraph::SingletonNode < ::Struct + # source://rbs//lib/rbs/ancestor_graph.rb#6 def type_name; end + + # source://rbs//lib/rbs/ancestor_graph.rb#6 def type_name=(_); end class << self + # source://rbs//lib/rbs/ancestor_graph.rb#6 def [](*_arg0); end + + # source://rbs//lib/rbs/ancestor_graph.rb#6 def inspect; end + + # source://rbs//lib/rbs/ancestor_graph.rb#6 def keyword_init?; end + + # source://rbs//lib/rbs/ancestor_graph.rb#6 def members; end + + # source://rbs//lib/rbs/ancestor_graph.rb#6 def new(*_arg0); end end end @@ -1329,24 +1813,33 @@ class RBS::BaseError < ::StandardError; end class RBS::Buffer # @return [Buffer] a new instance of Buffer # - # source://rbs//lib/rbs/buffer.rb#8 - def initialize(name:, content:); end + # source://rbs//lib/rbs/buffer.rb#9 + def initialize(content:, name: T.unsafe(nil), parent: T.unsafe(nil)); end + + # source://rbs//lib/rbs/buffer.rb#126 + def absolute_position(position); end # Returns the value of attribute content. # # source://rbs//lib/rbs/buffer.rb#6 def content; end - # source://rbs//lib/rbs/buffer.rb#63 + # source://rbs//lib/rbs/buffer.rb#143 + def detach; end + + # source://rbs//lib/rbs/buffer.rb#81 def inspect; end - # source://rbs//lib/rbs/buffer.rb#59 + # source://rbs//lib/rbs/buffer.rb#73 def last_position; end - # source://rbs//lib/rbs/buffer.rb#13 + # source://rbs//lib/rbs/buffer.rb#26 + def line_count; end + + # source://rbs//lib/rbs/buffer.rb#22 def lines; end - # source://rbs//lib/rbs/buffer.rb#49 + # source://rbs//lib/rbs/buffer.rb#63 def loc_to_pos(loc); end # Returns the value of attribute name. @@ -1354,11 +1847,31 @@ class RBS::Buffer # source://rbs//lib/rbs/buffer.rb#5 def name; end - # source://rbs//lib/rbs/buffer.rb#37 + # Returns the value of attribute parent. + # + # source://rbs//lib/rbs/buffer.rb#7 + def parent; end + + # source://rbs//lib/rbs/buffer.rb#111 + def parent_buffer; end + + # source://rbs//lib/rbs/buffer.rb#117 + def parent_position(position); end + + # source://rbs//lib/rbs/buffer.rb#51 def pos_to_loc(pos); end - # source://rbs//lib/rbs/buffer.rb#17 + # source://rbs//lib/rbs/buffer.rb#30 def ranges; end + + # source://rbs//lib/rbs/buffer.rb#85 + def rbs_location(location, loc2 = T.unsafe(nil)); end + + # source://rbs//lib/rbs/buffer.rb#93 + def sub_buffer(lines:); end + + # source://rbs//lib/rbs/buffer.rb#135 + def top_buffer; end end # source://rbs//lib/rbs/builtin_names.rb#4 @@ -1959,7 +2472,10 @@ class RBS::Collection::Sources::Rubygems class << self private + # source://rbs//lib/rbs/collection/sources/rubygems.rb#11 def allocate; end + + # source://rbs//lib/rbs/collection/sources/rubygems.rb#11 def new(*_arg0); end end end @@ -1998,7 +2514,10 @@ class RBS::Collection::Sources::Stdlib class << self private + # source://rbs//lib/rbs/collection/sources/stdlib.rb#11 def allocate; end + + # source://rbs//lib/rbs/collection/sources/stdlib.rb#11 def new(*_arg0); end end end @@ -2021,7 +2540,7 @@ class RBS::Constant # source://rbs//lib/rbs/constant.rb#7 def entry; end - # source://rbs//lib/rbs/constant.rb#15 + # source://rbs//lib/rbs/constant.rb#22 def eql?(other); end # source://rbs//lib/rbs/constant.rb#24 @@ -2038,51 +2557,51 @@ class RBS::Constant def type; end end -# source://rbs//lib/rbs/errors.rb#577 +# source://rbs//lib/rbs/errors.rb#578 class RBS::CyclicClassAliasDefinitionError < ::RBS::BaseError include ::RBS::DetailedMessageable # @return [CyclicClassAliasDefinitionError] a new instance of CyclicClassAliasDefinitionError # - # source://rbs//lib/rbs/errors.rb#582 + # source://rbs//lib/rbs/errors.rb#583 def initialize(entry); end # Returns the value of attribute alias_entry. # - # source://rbs//lib/rbs/errors.rb#580 + # source://rbs//lib/rbs/errors.rb#581 def alias_entry; end - # source://rbs//lib/rbs/errors.rb#588 + # source://rbs//lib/rbs/errors.rb#589 def location; end end -# source://rbs//lib/rbs/errors.rb#538 +# source://rbs//lib/rbs/errors.rb#539 class RBS::CyclicTypeParameterBound < ::RBS::BaseError include ::RBS::DetailedMessageable # @return [CyclicTypeParameterBound] a new instance of CyclicTypeParameterBound # - # source://rbs//lib/rbs/errors.rb#543 + # source://rbs//lib/rbs/errors.rb#544 def initialize(type_name:, method_name:, params:, location:); end # Returns the value of attribute location. # - # source://rbs//lib/rbs/errors.rb#541 + # source://rbs//lib/rbs/errors.rb#542 def location; end # Returns the value of attribute method_name. # - # source://rbs//lib/rbs/errors.rb#541 + # source://rbs//lib/rbs/errors.rb#542 def method_name; end # Returns the value of attribute params. # - # source://rbs//lib/rbs/errors.rb#541 + # source://rbs//lib/rbs/errors.rb#542 def params; end # Returns the value of attribute type_name. # - # source://rbs//lib/rbs/errors.rb#541 + # source://rbs//lib/rbs/errors.rb#542 def type_name; end end @@ -2090,170 +2609,170 @@ end class RBS::Definition # @return [Definition] a new instance of Definition # - # source://rbs//lib/rbs/definition.rb#297 + # source://rbs//lib/rbs/definition.rb#302 def initialize(type_name:, entry:, self_type:, ancestors:); end # Returns the value of attribute ancestors. # - # source://rbs//lib/rbs/definition.rb#291 + # source://rbs//lib/rbs/definition.rb#296 def ancestors; end # @return [Boolean] # - # source://rbs//lib/rbs/definition.rb#320 + # source://rbs//lib/rbs/definition.rb#325 def class?; end # @return [Boolean] # - # source://rbs//lib/rbs/definition.rb#337 + # source://rbs//lib/rbs/definition.rb#342 def class_type?; end # Returns the value of attribute class_variables. # - # source://rbs//lib/rbs/definition.rb#295 + # source://rbs//lib/rbs/definition.rb#300 def class_variables; end - # source://rbs//lib/rbs/definition.rb#384 + # source://rbs//lib/rbs/definition.rb#389 def each_type(&block); end # Returns the value of attribute entry. # - # source://rbs//lib/rbs/definition.rb#290 + # source://rbs//lib/rbs/definition.rb#295 def entry; end # @return [Boolean] # - # source://rbs//lib/rbs/definition.rb#341 + # source://rbs//lib/rbs/definition.rb#346 def instance_type?; end # Returns the value of attribute instance_variables. # - # source://rbs//lib/rbs/definition.rb#294 + # source://rbs//lib/rbs/definition.rb#299 def instance_variables; end # @return [Boolean] # - # source://rbs//lib/rbs/definition.rb#328 + # source://rbs//lib/rbs/definition.rb#333 def interface?; end # @return [Boolean] # - # source://rbs//lib/rbs/definition.rb#345 + # source://rbs//lib/rbs/definition.rb#350 def interface_type?; end - # source://rbs//lib/rbs/definition.rb#374 + # source://rbs//lib/rbs/definition.rb#379 def map_method_type(&block); end # Returns the value of attribute methods. # - # source://rbs//lib/rbs/definition.rb#293 + # source://rbs//lib/rbs/definition.rb#298 def methods; end # @return [Boolean] # - # source://rbs//lib/rbs/definition.rb#324 + # source://rbs//lib/rbs/definition.rb#329 def module?; end # Returns the value of attribute self_type. # - # source://rbs//lib/rbs/definition.rb#292 + # source://rbs//lib/rbs/definition.rb#297 def self_type; end - # source://rbs//lib/rbs/definition.rb#362 + # source://rbs//lib/rbs/definition.rb#367 def sub(s); end # Returns the value of attribute type_name. # - # source://rbs//lib/rbs/definition.rb#289 + # source://rbs//lib/rbs/definition.rb#294 def type_name; end - # source://rbs//lib/rbs/definition.rb#349 + # source://rbs//lib/rbs/definition.rb#354 def type_params; end - # source://rbs//lib/rbs/definition.rb#353 + # source://rbs//lib/rbs/definition.rb#358 def type_params_decl; end end -# source://rbs//lib/rbs/definition.rb#204 +# source://rbs//lib/rbs/definition.rb#209 module RBS::Definition::Ancestor; end -# source://rbs//lib/rbs/definition.rb#205 +# source://rbs//lib/rbs/definition.rb#210 class RBS::Definition::Ancestor::Instance # @return [Instance] a new instance of Instance # - # source://rbs//lib/rbs/definition.rb#208 + # source://rbs//lib/rbs/definition.rb#213 def initialize(name:, args:, source:); end - # source://rbs//lib/rbs/definition.rb#214 + # source://rbs//lib/rbs/definition.rb#219 def ==(other); end # Returns the value of attribute args. # - # source://rbs//lib/rbs/definition.rb#206 + # source://rbs//lib/rbs/definition.rb#211 def args; end - # source://rbs//lib/rbs/definition.rb#214 + # source://rbs//lib/rbs/definition.rb#223 def eql?(other); end - # source://rbs//lib/rbs/definition.rb#220 + # source://rbs//lib/rbs/definition.rb#225 def hash; end # Returns the value of attribute name. # - # source://rbs//lib/rbs/definition.rb#206 + # source://rbs//lib/rbs/definition.rb#211 def name; end # Returns the value of attribute source. # - # source://rbs//lib/rbs/definition.rb#206 + # source://rbs//lib/rbs/definition.rb#211 def source; end end -# source://rbs//lib/rbs/definition.rb#225 +# source://rbs//lib/rbs/definition.rb#230 class RBS::Definition::Ancestor::Singleton # @return [Singleton] a new instance of Singleton # - # source://rbs//lib/rbs/definition.rb#228 + # source://rbs//lib/rbs/definition.rb#233 def initialize(name:); end - # source://rbs//lib/rbs/definition.rb#232 + # source://rbs//lib/rbs/definition.rb#237 def ==(other); end - # source://rbs//lib/rbs/definition.rb#232 + # source://rbs//lib/rbs/definition.rb#241 def eql?(other); end - # source://rbs//lib/rbs/definition.rb#238 + # source://rbs//lib/rbs/definition.rb#243 def hash; end # Returns the value of attribute name. # - # source://rbs//lib/rbs/definition.rb#226 + # source://rbs//lib/rbs/definition.rb#231 def name; end end -# source://rbs//lib/rbs/definition.rb#244 +# source://rbs//lib/rbs/definition.rb#249 class RBS::Definition::InstanceAncestors # @return [InstanceAncestors] a new instance of InstanceAncestors # - # source://rbs//lib/rbs/definition.rb#249 + # source://rbs//lib/rbs/definition.rb#254 def initialize(type_name:, params:, ancestors:); end # Returns the value of attribute ancestors. # - # source://rbs//lib/rbs/definition.rb#247 + # source://rbs//lib/rbs/definition.rb#252 def ancestors; end - # source://rbs//lib/rbs/definition.rb#255 + # source://rbs//lib/rbs/definition.rb#260 def apply(args, env:, location:); end # Returns the value of attribute params. # - # source://rbs//lib/rbs/definition.rb#246 + # source://rbs//lib/rbs/definition.rb#251 def params; end # Returns the value of attribute type_name. # - # source://rbs//lib/rbs/definition.rb#245 + # source://rbs//lib/rbs/definition.rb#250 def type_name; end end @@ -2261,91 +2780,91 @@ end class RBS::Definition::Method # @return [Method] a new instance of Method # - # source://rbs//lib/rbs/definition.rb#102 + # source://rbs//lib/rbs/definition.rb#107 def initialize(super_method:, defs:, accessibility:, alias_of:, annotations: T.unsafe(nil), alias_member: T.unsafe(nil)); end - # source://rbs//lib/rbs/definition.rb#112 + # source://rbs//lib/rbs/definition.rb#117 def ==(other); end # Returns the value of attribute accessibility. # - # source://rbs//lib/rbs/definition.rb#96 + # source://rbs//lib/rbs/definition.rb#101 def accessibility; end # Returns the value of attribute alias_member. # - # source://rbs//lib/rbs/definition.rb#100 + # source://rbs//lib/rbs/definition.rb#105 def alias_member; end # Returns the value of attribute alias_of. # - # source://rbs//lib/rbs/definition.rb#99 + # source://rbs//lib/rbs/definition.rb#104 def alias_of; end # Returns the value of attribute annotations. # - # source://rbs//lib/rbs/definition.rb#98 + # source://rbs//lib/rbs/definition.rb#103 def annotations; end - # source://rbs//lib/rbs/definition.rb#146 + # source://rbs//lib/rbs/definition.rb#151 def comments; end - # source://rbs//lib/rbs/definition.rb#128 + # source://rbs//lib/rbs/definition.rb#133 def defined_in; end # Returns the value of attribute defs. # - # source://rbs//lib/rbs/definition.rb#95 + # source://rbs//lib/rbs/definition.rb#100 def defs; end - # source://rbs//lib/rbs/definition.rb#112 + # source://rbs//lib/rbs/definition.rb#127 def eql?(other); end # Returns the value of attribute extra_annotations. # - # source://rbs//lib/rbs/definition.rb#97 + # source://rbs//lib/rbs/definition.rb#102 def extra_annotations; end - # source://rbs//lib/rbs/definition.rb#124 + # source://rbs//lib/rbs/definition.rb#129 def hash; end - # source://rbs//lib/rbs/definition.rb#135 + # source://rbs//lib/rbs/definition.rb#140 def implemented_in; end - # source://rbs//lib/rbs/definition.rb#185 + # source://rbs//lib/rbs/definition.rb#190 def map_method_type(&block); end - # source://rbs//lib/rbs/definition.rb#171 + # source://rbs//lib/rbs/definition.rb#176 def map_type(&block); end - # source://rbs//lib/rbs/definition.rb#178 + # source://rbs//lib/rbs/definition.rb#183 def map_type_bound(&block); end - # source://rbs//lib/rbs/definition.rb#150 + # source://rbs//lib/rbs/definition.rb#155 def members; end - # source://rbs//lib/rbs/definition.rb#142 + # source://rbs//lib/rbs/definition.rb#147 def method_types; end # @return [Boolean] # - # source://rbs//lib/rbs/definition.rb#158 + # source://rbs//lib/rbs/definition.rb#163 def private?; end # @return [Boolean] # - # source://rbs//lib/rbs/definition.rb#154 + # source://rbs//lib/rbs/definition.rb#159 def public?; end - # source://rbs//lib/rbs/definition.rb#162 + # source://rbs//lib/rbs/definition.rb#167 def sub(s); end # Returns the value of attribute super_method. # - # source://rbs//lib/rbs/definition.rb#94 + # source://rbs//lib/rbs/definition.rb#99 def super_method; end - # source://rbs//lib/rbs/definition.rb#191 + # source://rbs//lib/rbs/definition.rb#196 def update(super_method: T.unsafe(nil), defs: T.unsafe(nil), accessibility: T.unsafe(nil), alias_of: T.unsafe(nil), annotations: T.unsafe(nil), alias_member: T.unsafe(nil)); end end @@ -2372,10 +2891,10 @@ class RBS::Definition::Method::TypeDef # source://rbs//lib/rbs/definition.rb#34 def defined_in; end - # source://rbs//lib/rbs/definition.rb#84 + # source://rbs//lib/rbs/definition.rb#89 def each_annotation(&block); end - # source://rbs//lib/rbs/definition.rb#50 + # source://rbs//lib/rbs/definition.rb#58 def eql?(other); end # source://rbs//lib/rbs/definition.rb#60 @@ -2398,7 +2917,7 @@ class RBS::Definition::Method::TypeDef # @return [Boolean] # - # source://rbs//lib/rbs/definition.rb#75 + # source://rbs//lib/rbs/definition.rb#80 def overload?; end # Returns the value of attribute overload_annotations. @@ -2411,25 +2930,25 @@ class RBS::Definition::Method::TypeDef # source://rbs//lib/rbs/definition.rb#32 def type; end - # source://rbs//lib/rbs/definition.rb#68 + # source://rbs//lib/rbs/definition.rb#73 def update(type: T.unsafe(nil), member: T.unsafe(nil), defined_in: T.unsafe(nil), implemented_in: T.unsafe(nil)); end end -# source://rbs//lib/rbs/definition.rb#279 +# source://rbs//lib/rbs/definition.rb#284 class RBS::Definition::SingletonAncestors # @return [SingletonAncestors] a new instance of SingletonAncestors # - # source://rbs//lib/rbs/definition.rb#283 + # source://rbs//lib/rbs/definition.rb#288 def initialize(type_name:, ancestors:); end # Returns the value of attribute ancestors. # - # source://rbs//lib/rbs/definition.rb#281 + # source://rbs//lib/rbs/definition.rb#286 def ancestors; end # Returns the value of attribute type_name. # - # source://rbs//lib/rbs/definition.rb#280 + # source://rbs//lib/rbs/definition.rb#285 def type_name; end end @@ -2496,7 +3015,7 @@ class RBS::DefinitionBuilder # source://rbs//lib/rbs/definition_builder.rb#33 def define_interface(definition, type_name, subst); end - # source://rbs//lib/rbs/definition_builder.rb#642 + # source://rbs//lib/rbs/definition_builder.rb#646 def define_method(methods, definition, method, subst, self_type_methods, defined_in:, implemented_in: T.unsafe(nil)); end # source://rbs//lib/rbs/definition_builder.rb#25 @@ -2507,19 +3026,19 @@ class RBS::DefinitionBuilder # source://rbs//lib/rbs/definition_builder.rb#5 def env; end - # source://rbs//lib/rbs/definition_builder.rb#826 + # source://rbs//lib/rbs/definition_builder.rb#861 def expand_alias(type_name); end - # source://rbs//lib/rbs/definition_builder.rb#830 + # source://rbs//lib/rbs/definition_builder.rb#865 def expand_alias1(type_name); end - # source://rbs//lib/rbs/definition_builder.rb#837 + # source://rbs//lib/rbs/definition_builder.rb#872 def expand_alias2(type_name, args); end - # source://rbs//lib/rbs/definition_builder.rb#581 + # source://rbs//lib/rbs/definition_builder.rb#585 def import_methods(definition, module_name, module_methods, interfaces_methods, subst, self_type_methods); end - # source://rbs//lib/rbs/definition_builder.rb#543 + # source://rbs//lib/rbs/definition_builder.rb#547 def insert_variable(type_name, variables, name:, type:, source:); end # Returns the value of attribute instance_cache. @@ -2556,10 +3075,10 @@ class RBS::DefinitionBuilder # source://rbs//lib/rbs/definition_builder.rb#66 def tapp_subst(name, args); end - # source://rbs//lib/rbs/definition_builder.rb#822 + # source://rbs//lib/rbs/definition_builder.rb#857 def try_cache(type_name, cache:); end - # source://rbs//lib/rbs/definition_builder.rb#861 + # source://rbs//lib/rbs/definition_builder.rb#896 def update(env:, except:, ancestor_builder:); end # source://rbs//lib/rbs/definition_builder.rb#437 @@ -2567,16 +3086,16 @@ class RBS::DefinitionBuilder # @raise [NoTypeFoundError] # - # source://rbs//lib/rbs/definition_builder.rb#890 + # source://rbs//lib/rbs/definition_builder.rb#925 def validate_type_name(name, location); end - # source://rbs//lib/rbs/definition_builder.rb#461 + # source://rbs//lib/rbs/definition_builder.rb#465 def validate_type_params(definition, ancestors:, methods:); end - # source://rbs//lib/rbs/definition_builder.rb#879 + # source://rbs//lib/rbs/definition_builder.rb#914 def validate_type_presence(type); end - # source://rbs//lib/rbs/definition_builder.rb#553 + # source://rbs//lib/rbs/definition_builder.rb#557 def validate_variable(var); end end @@ -2592,10 +3111,10 @@ class RBS::DefinitionBuilder::AncestorBuilder # source://rbs//lib/rbs/definition_builder/ancestor_builder.rb#151 def env; end - # source://rbs//lib/rbs/definition_builder/ancestor_builder.rb#608 + # source://rbs//lib/rbs/definition_builder/ancestor_builder.rb#611 def fill_ancestor_source(ancestor, name:, source:, &block); end - # source://rbs//lib/rbs/definition_builder/ancestor_builder.rb#436 + # source://rbs//lib/rbs/definition_builder/ancestor_builder.rb#439 def instance_ancestors(type_name, building_ancestors: T.unsafe(nil)); end # Returns the value of attribute instance_ancestors_cache. @@ -2603,7 +3122,7 @@ class RBS::DefinitionBuilder::AncestorBuilder # source://rbs//lib/rbs/definition_builder/ancestor_builder.rb#154 def instance_ancestors_cache; end - # source://rbs//lib/rbs/definition_builder/ancestor_builder.rb#572 + # source://rbs//lib/rbs/definition_builder/ancestor_builder.rb#575 def interface_ancestors(type_name, building_ancestors: T.unsafe(nil)); end # Returns the value of attribute interface_ancestors_cache. @@ -2611,7 +3130,7 @@ class RBS::DefinitionBuilder::AncestorBuilder # source://rbs//lib/rbs/definition_builder/ancestor_builder.rb#160 def interface_ancestors_cache; end - # source://rbs//lib/rbs/definition_builder/ancestor_builder.rb#416 + # source://rbs//lib/rbs/definition_builder/ancestor_builder.rb#421 def mixin_ancestors(entry, type_name, included_modules:, included_interfaces:, extended_modules:, prepended_modules:, extended_interfaces:); end # source://rbs//lib/rbs/definition_builder/ancestor_builder.rb#350 @@ -2641,7 +3160,7 @@ class RBS::DefinitionBuilder::AncestorBuilder # source://rbs//lib/rbs/definition_builder/ancestor_builder.rb#156 def one_singleton_ancestors_cache; end - # source://rbs//lib/rbs/definition_builder/ancestor_builder.rb#517 + # source://rbs//lib/rbs/definition_builder/ancestor_builder.rb#520 def singleton_ancestors(type_name, building_ancestors: T.unsafe(nil)); end # Returns the value of attribute singleton_ancestors_cache. @@ -2750,26 +3269,26 @@ class RBS::DefinitionBuilder::MethodBuilder # source://rbs//lib/rbs/definition_builder/method_builder.rb#91 def initialize(env:); end - # source://rbs//lib/rbs/definition_builder/method_builder.rb#194 + # source://rbs//lib/rbs/definition_builder/method_builder.rb#209 def build_alias(methods, type, member:); end - # source://rbs//lib/rbs/definition_builder/method_builder.rb#199 + # source://rbs//lib/rbs/definition_builder/method_builder.rb#214 def build_attribute(methods, type, member:, accessibility:); end # source://rbs//lib/rbs/definition_builder/method_builder.rb#99 def build_instance(type_name); end - # source://rbs//lib/rbs/definition_builder/method_builder.rb#174 + # source://rbs//lib/rbs/definition_builder/method_builder.rb#189 def build_interface(type_name); end - # source://rbs//lib/rbs/definition_builder/method_builder.rb#215 + # source://rbs//lib/rbs/definition_builder/method_builder.rb#230 def build_method(methods, type, member:, accessibility:); end - # source://rbs//lib/rbs/definition_builder/method_builder.rb#145 + # source://rbs//lib/rbs/definition_builder/method_builder.rb#160 def build_singleton(type_name); end - # source://rbs//lib/rbs/definition_builder/method_builder.rb#226 - def each_member_with_accessibility(members, accessibility: T.unsafe(nil)); end + # source://rbs//lib/rbs/definition_builder/method_builder.rb#241 + def each_rbs_member_with_accessibility(members, accessibility: T.unsafe(nil)); end # Returns the value of attribute env. # @@ -2791,7 +3310,7 @@ class RBS::DefinitionBuilder::MethodBuilder # source://rbs//lib/rbs/definition_builder/method_builder.rb#88 def singleton_methods; end - # source://rbs//lib/rbs/definition_builder/method_builder.rb#239 + # source://rbs//lib/rbs/definition_builder/method_builder.rb#254 def update(env:, except:); end end @@ -2897,21 +3416,21 @@ class RBS::Diff def each_diff_methods(kind, before_methods, after_methods); end end -# source://rbs//lib/rbs/errors.rb#418 +# source://rbs//lib/rbs/errors.rb#419 class RBS::DuplicatedDeclarationError < ::RBS::LoadingError # @return [DuplicatedDeclarationError] a new instance of DuplicatedDeclarationError # - # source://rbs//lib/rbs/errors.rb#422 + # source://rbs//lib/rbs/errors.rb#423 def initialize(name, *decls); end # Returns the value of attribute decls. # - # source://rbs//lib/rbs/errors.rb#420 + # source://rbs//lib/rbs/errors.rb#421 def decls; end # Returns the value of attribute name. # - # source://rbs//lib/rbs/errors.rb#419 + # source://rbs//lib/rbs/errors.rb#420 def name; end end @@ -2990,330 +3509,337 @@ end class RBS::Environment # @return [Environment] a new instance of Environment # - # source://rbs//lib/rbs/environment.rb#145 + # source://rbs//lib/rbs/environment.rb#48 def initialize; end - # source://rbs//lib/rbs/environment.rb#470 - def <<(decl); end - - # source://rbs//lib/rbs/environment.rb#807 + # source://rbs//lib/rbs/environment.rb#841 def absolute_type(resolver, map, type, context:); end - # source://rbs//lib/rbs/environment.rb#802 + # source://rbs//lib/rbs/environment.rb#836 def absolute_type_name(resolver, map, type_name, context:); end - # source://rbs//lib/rbs/environment.rb#476 - def add_signature(buffer:, directives:, decls:); end + # source://rbs//lib/rbs/environment.rb#417 + def add_source(source); end - # source://rbs//lib/rbs/environment.rb#539 + # source://rbs//lib/rbs/environment.rb#522 def append_context(context, decl); end - # source://rbs//lib/rbs/environment.rb#818 + # source://rbs//lib/rbs/environment.rb#852 def buffers; end # @return [Boolean] # - # source://rbs//lib/rbs/environment.rb#218 + # source://rbs//lib/rbs/environment.rb#117 def class_alias?(name); end # Returns the value of attribute class_alias_decls. # - # source://rbs//lib/rbs/environment.rb#12 + # source://rbs//lib/rbs/environment.rb#10 def class_alias_decls; end # @return [Boolean] # - # source://rbs//lib/rbs/environment.rb#202 + # source://rbs//lib/rbs/environment.rb#101 def class_decl?(name); end # Returns the value of attribute class_decls. # - # source://rbs//lib/rbs/environment.rb#7 + # source://rbs//lib/rbs/environment.rb#5 def class_decls; end - # source://rbs//lib/rbs/environment.rb#226 + # source://rbs//lib/rbs/environment.rb#125 def class_entry(type_name); end # @return [Boolean] # - # source://rbs//lib/rbs/environment.rb#198 + # source://rbs//lib/rbs/environment.rb#97 def constant_decl?(name); end # Returns the value of attribute constant_decls. # - # source://rbs//lib/rbs/environment.rb#10 + # source://rbs//lib/rbs/environment.rb#8 def constant_decls; end - # source://rbs//lib/rbs/environment.rb#274 + # source://rbs//lib/rbs/environment.rb#173 def constant_entry(type_name); end # @return [Boolean] # - # source://rbs//lib/rbs/environment.rb#194 + # source://rbs//lib/rbs/environment.rb#93 def constant_name?(name); end - # Returns the value of attribute declarations. - # - # source://rbs//lib/rbs/environment.rb#5 + # source://rbs//lib/rbs/environment.rb#14 def declarations; end + # source://rbs//lib/rbs/environment.rb#432 + def each_rbs_source(&block); end + + # source://rbs//lib/rbs/environment.rb#444 + def each_ruby_source(&block); end + # Returns the value of attribute global_decls. # - # source://rbs//lib/rbs/environment.rb#11 + # source://rbs//lib/rbs/environment.rb#9 def global_decls; end - # source://rbs//lib/rbs/environment.rb#373 - def insert_decl(decl, outer:, namespace:); end + # source://rbs//lib/rbs/environment.rb#272 + def insert_rbs_decl(decl, context:, namespace:); end - # source://rbs//lib/rbs/environment.rb#813 + # source://rbs//lib/rbs/environment.rb#369 + def insert_ruby_decl(decl, context:, namespace:); end + + # source://rbs//lib/rbs/environment.rb#847 def inspect; end # Returns the value of attribute interface_decls. # - # source://rbs//lib/rbs/environment.rb#8 + # source://rbs//lib/rbs/environment.rb#6 def interface_decls; end # @return [Boolean] # - # source://rbs//lib/rbs/environment.rb#176 + # source://rbs//lib/rbs/environment.rb#75 def interface_name?(name); end # @return [Boolean] # - # source://rbs//lib/rbs/environment.rb#210 + # source://rbs//lib/rbs/environment.rb#109 def module_alias?(name); end - # source://rbs//lib/rbs/environment.rb#266 + # source://rbs//lib/rbs/environment.rb#165 def module_class_entry(type_name); end # @return [Boolean] # - # source://rbs//lib/rbs/environment.rb#206 + # source://rbs//lib/rbs/environment.rb#105 def module_decl?(name); end - # source://rbs//lib/rbs/environment.rb#235 + # source://rbs//lib/rbs/environment.rb#134 def module_entry(type_name); end # @return [Boolean] # - # source://rbs//lib/rbs/environment.rb#184 + # source://rbs//lib/rbs/environment.rb#83 def module_name?(name); end - # source://rbs//lib/rbs/environment.rb#332 + # source://rbs//lib/rbs/environment.rb#231 def normalize_module_name(name); end # @return [Boolean] # - # source://rbs//lib/rbs/environment.rb#336 + # source://rbs//lib/rbs/environment.rb#235 def normalize_module_name?(name); end - # source://rbs//lib/rbs/environment.rb#328 + # source://rbs//lib/rbs/environment.rb#227 def normalize_type_name(name); end - # source://rbs//lib/rbs/environment.rb#297 + # source://rbs//lib/rbs/environment.rb#196 def normalize_type_name!(name); end # @return [Boolean] # - # source://rbs//lib/rbs/environment.rb#278 + # source://rbs//lib/rbs/environment.rb#177 def normalize_type_name?(name); end - # source://rbs//lib/rbs/environment.rb#244 + # source://rbs//lib/rbs/environment.rb#143 def normalized_class_entry(type_name); end - # source://rbs//lib/rbs/environment.rb#270 + # source://rbs//lib/rbs/environment.rb#169 def normalized_module_class_entry(type_name); end - # source://rbs//lib/rbs/environment.rb#255 + # source://rbs//lib/rbs/environment.rb#154 def normalized_module_entry(type_name); end - # source://rbs//lib/rbs/environment.rb#323 + # source://rbs//lib/rbs/environment.rb#222 def normalized_type_name!(name); end # @return [Boolean] # - # source://rbs//lib/rbs/environment.rb#310 + # source://rbs//lib/rbs/environment.rb#209 def normalized_type_name?(type_name); end - # source://rbs//lib/rbs/environment.rb#548 - def resolve_declaration(resolver, map, decl, outer:, prefix:); end + # source://rbs//lib/rbs/environment.rb#531 + def resolve_declaration(resolver, map, decl, context:, prefix:); end - # source://rbs//lib/rbs/environment.rb#688 + # source://rbs//lib/rbs/environment.rb#722 def resolve_member(resolver, map, member, context:); end - # source://rbs//lib/rbs/environment.rb#788 + # source://rbs//lib/rbs/environment.rb#822 def resolve_method_type(resolver, map, type, context:); end - # source://rbs//lib/rbs/environment.rb#489 + # source://rbs//lib/rbs/environment.rb#667 + def resolve_ruby_decl(resolver, decl, context:, prefix:); end + + # source://rbs//lib/rbs/environment.rb#708 + def resolve_ruby_member(resolver, member, context:); end + + # source://rbs//lib/rbs/environment.rb#462 def resolve_signature(resolver, table, dirs, decls, only: T.unsafe(nil)); end - # source://rbs//lib/rbs/environment.rb#511 + # source://rbs//lib/rbs/environment.rb#484 def resolve_type_names(only: T.unsafe(nil)); end - # source://rbs//lib/rbs/environment.rb#796 + # source://rbs//lib/rbs/environment.rb#830 def resolve_type_params(resolver, map, params, context:); end - # source://rbs//lib/rbs/environment.rb#533 + # source://rbs//lib/rbs/environment.rb#516 def resolver_context(*nesting); end - # Returns the value of attribute signatures. + # Returns the value of attribute sources. # - # source://rbs//lib/rbs/environment.rb#14 - def signatures; end + # source://rbs//lib/rbs/environment.rb#12 + def sources; end # Returns the value of attribute type_alias_decls. # - # source://rbs//lib/rbs/environment.rb#9 + # source://rbs//lib/rbs/environment.rb#7 def type_alias_decls; end # @return [Boolean] # - # source://rbs//lib/rbs/environment.rb#180 + # source://rbs//lib/rbs/environment.rb#79 def type_alias_name?(name); end # @return [Boolean] # - # source://rbs//lib/rbs/environment.rb#188 + # source://rbs//lib/rbs/environment.rb#87 def type_name?(name); end - # source://rbs//lib/rbs/environment.rb#822 + # source://rbs//lib/rbs/environment.rb#856 def unload(buffers); end - # source://rbs//lib/rbs/environment.rb#483 + # source://rbs//lib/rbs/environment.rb#456 def validate_type_params; end private - # source://rbs//lib/rbs/environment.rb#158 + # source://rbs//lib/rbs/environment.rb#59 def initialize_copy(other); end class << self - # source://rbs//lib/rbs/environment.rb#170 + # source://rbs//lib/rbs/environment.rb#69 def from_loader(loader); end end end -# source://rbs//lib/rbs/environment.rb#130 +# source://rbs//lib/rbs/environment.rb#33 class RBS::Environment::ClassAliasEntry < ::RBS::Environment::SingleEntry; end -# source://rbs//lib/rbs/environment.rb#100 -class RBS::Environment::ClassEntry < ::RBS::Environment::MultiEntry - # source://rbs//lib/rbs/environment.rb#101 - def primary; end -end - -# source://rbs//lib/rbs/environment.rb#139 -class RBS::Environment::ConstantEntry < ::RBS::Environment::SingleEntry; end - -# source://rbs//lib/rbs/environment.rb#16 -module RBS::Environment::ContextUtil - # source://rbs//lib/rbs/environment.rb#17 - def calculate_context(decls); end -end - -# source://rbs//lib/rbs/environment.rb#142 -class RBS::Environment::GlobalEntry < ::RBS::Environment::SingleEntry; end - -# source://rbs//lib/rbs/environment.rb#133 -class RBS::Environment::InterfaceEntry < ::RBS::Environment::SingleEntry; end - -# source://rbs//lib/rbs/environment.rb#127 -class RBS::Environment::ModuleAliasEntry < ::RBS::Environment::SingleEntry; end - -# source://rbs//lib/rbs/environment.rb#85 -class RBS::Environment::ModuleEntry < ::RBS::Environment::MultiEntry - # source://rbs//lib/rbs/environment.rb#92 - def primary; end - - # source://rbs//lib/rbs/environment.rb#86 - def self_types; end -end - -# source://rbs//lib/rbs/environment.rb#29 -class RBS::Environment::MultiEntry - # @return [MultiEntry] a new instance of MultiEntry +# source://rbs//lib/rbs/environment/class_entry.rb#5 +class RBS::Environment::ClassEntry + # @return [ClassEntry] a new instance of ClassEntry # - # source://rbs//lib/rbs/environment.rb#43 - def initialize(name:); end + # source://rbs//lib/rbs/environment/class_entry.rb#10 + def initialize(name); end + + # source://rbs//lib/rbs/environment/class_entry.rb#15 + def <<(context_decl); end + + # Returns the value of attribute context_decls. + # + # source://rbs//lib/rbs/environment/class_entry.rb#8 + def context_decls; end + + # source://rbs//lib/rbs/environment/class_entry.rb#21 + def each_decl(&block); end # @return [Boolean] # - # source://rbs//lib/rbs/environment.rb#70 - def compatible_params?(ps1, ps2); end - - # Returns the value of attribute decls. - # - # source://rbs//lib/rbs/environment.rb#41 - def decls; end - - # source://rbs//lib/rbs/environment.rb#48 - def insert(decl:, outer:); end + # source://rbs//lib/rbs/environment/class_entry.rb#31 + def empty?; end # Returns the value of attribute name. # - # source://rbs//lib/rbs/environment.rb#40 + # source://rbs//lib/rbs/environment/class_entry.rb#6 def name; end - # source://rbs//lib/rbs/environment.rb#80 - def primary; end + # source://rbs//lib/rbs/environment/class_entry.rb#35 + def primary_decl; end - # source://rbs//lib/rbs/environment.rb#76 + # source://rbs//lib/rbs/environment/class_entry.rb#47 def type_params; end - # source://rbs//lib/rbs/environment.rb#53 + # source://rbs//lib/rbs/environment/class_entry.rb#52 def validate_type_params; end end +# source://rbs//lib/rbs/environment.rb#42 +class RBS::Environment::ConstantEntry < ::RBS::Environment::SingleEntry; end + +# source://rbs//lib/rbs/environment.rb#45 +class RBS::Environment::GlobalEntry < ::RBS::Environment::SingleEntry; end + +# source://rbs//lib/rbs/environment.rb#36 +class RBS::Environment::InterfaceEntry < ::RBS::Environment::SingleEntry; end + # source://rbs//lib/rbs/environment.rb#30 -class RBS::Environment::MultiEntry::D < ::Struct - include ::RBS::Environment::ContextUtil +class RBS::Environment::ModuleAliasEntry < ::RBS::Environment::SingleEntry; end - # source://rbs//lib/rbs/environment.rb#35 - def context; end +# source://rbs//lib/rbs/environment/module_entry.rb#5 +class RBS::Environment::ModuleEntry + # @return [ModuleEntry] a new instance of ModuleEntry + # + # source://rbs//lib/rbs/environment/module_entry.rb#10 + def initialize(name); end - def decl; end - def decl=(_); end - def outer; end - def outer=(_); end + # source://rbs//lib/rbs/environment/module_entry.rb#15 + def <<(context_decl); end - class << self - def [](*_arg0); end - def inspect; end - def keyword_init?; end - def members; end - def new(*_arg0); end - end + # Returns the value of attribute context_decls. + # + # source://rbs//lib/rbs/environment/module_entry.rb#8 + def context_decls; end + + # source://rbs//lib/rbs/environment/module_entry.rb#20 + def each_decl(&block); end + + # @return [Boolean] + # + # source://rbs//lib/rbs/environment/module_entry.rb#30 + def empty?; end + + # Returns the value of attribute name. + # + # source://rbs//lib/rbs/environment/module_entry.rb#6 + def name; end + + # source://rbs//lib/rbs/environment/module_entry.rb#34 + def primary_decl; end + + # source://rbs//lib/rbs/environment/module_entry.rb#43 + def self_types; end + + # source://rbs//lib/rbs/environment/module_entry.rb#38 + def type_params; end + + # source://rbs//lib/rbs/environment/module_entry.rb#49 + def validate_type_params; end end -# source://rbs//lib/rbs/environment.rb#109 +# source://rbs//lib/rbs/environment.rb#18 class RBS::Environment::SingleEntry - include ::RBS::Environment::ContextUtil - # @return [SingleEntry] a new instance of SingleEntry # - # source://rbs//lib/rbs/environment.rb#114 - def initialize(name:, decl:, outer:); end + # source://rbs//lib/rbs/environment.rb#23 + def initialize(name:, decl:, context:); end - # source://rbs//lib/rbs/environment.rb#122 + # Returns the value of attribute context. + # + # source://rbs//lib/rbs/environment.rb#20 def context; end # Returns the value of attribute decl. # - # source://rbs//lib/rbs/environment.rb#112 + # source://rbs//lib/rbs/environment.rb#21 def decl; end # Returns the value of attribute name. # - # source://rbs//lib/rbs/environment.rb#110 + # source://rbs//lib/rbs/environment.rb#19 def name; end - - # Returns the value of attribute outer. - # - # source://rbs//lib/rbs/environment.rb#111 - def outer; end end -# source://rbs//lib/rbs/environment.rb#136 +# source://rbs//lib/rbs/environment.rb#39 class RBS::Environment::TypeAliasEntry < ::RBS::Environment::SingleEntry; end # source://rbs//lib/rbs/environment/use_map.rb#5 @@ -3478,42 +4004,78 @@ end # source://rbs//lib/rbs/environment_walker.rb#5 class RBS::EnvironmentWalker::InstanceNode < ::Struct + # source://rbs//lib/rbs/environment_walker.rb#5 def type_name; end + + # source://rbs//lib/rbs/environment_walker.rb#5 def type_name=(_); end class << self + # source://rbs//lib/rbs/environment_walker.rb#5 def [](*_arg0); end + + # source://rbs//lib/rbs/environment_walker.rb#5 def inspect; end + + # source://rbs//lib/rbs/environment_walker.rb#5 def keyword_init?; end + + # source://rbs//lib/rbs/environment_walker.rb#5 def members; end + + # source://rbs//lib/rbs/environment_walker.rb#5 def new(*_arg0); end end end # source://rbs//lib/rbs/environment_walker.rb#6 class RBS::EnvironmentWalker::SingletonNode < ::Struct + # source://rbs//lib/rbs/environment_walker.rb#6 def type_name; end + + # source://rbs//lib/rbs/environment_walker.rb#6 def type_name=(_); end class << self + # source://rbs//lib/rbs/environment_walker.rb#6 def [](*_arg0); end + + # source://rbs//lib/rbs/environment_walker.rb#6 def inspect; end + + # source://rbs//lib/rbs/environment_walker.rb#6 def keyword_init?; end + + # source://rbs//lib/rbs/environment_walker.rb#6 def members; end + + # source://rbs//lib/rbs/environment_walker.rb#6 def new(*_arg0); end end end # source://rbs//lib/rbs/environment_walker.rb#7 class RBS::EnvironmentWalker::TypeNameNode < ::Struct + # source://rbs//lib/rbs/environment_walker.rb#7 def type_name; end + + # source://rbs//lib/rbs/environment_walker.rb#7 def type_name=(_); end class << self + # source://rbs//lib/rbs/environment_walker.rb#7 def [](*_arg0); end + + # source://rbs//lib/rbs/environment_walker.rb#7 def inspect; end + + # source://rbs//lib/rbs/environment_walker.rb#7 def keyword_init?; end + + # source://rbs//lib/rbs/environment_walker.rb#7 def members; end + + # source://rbs//lib/rbs/environment_walker.rb#7 def new(*_arg0); end end end @@ -3537,7 +4099,7 @@ class RBS::GenericParameterMismatchError < ::RBS::LoadingError # @return [GenericParameterMismatchError] a new instance of GenericParameterMismatchError # # source://rbs//lib/rbs/errors.rb#411 - def initialize(name:, decl:); end + def initialize(name:, decl:, location: T.unsafe(nil)); end # Returns the value of attribute decl. # @@ -3550,21 +4112,21 @@ class RBS::GenericParameterMismatchError < ::RBS::LoadingError def name; end end -# source://rbs//lib/rbs/errors.rb#553 +# source://rbs//lib/rbs/errors.rb#554 class RBS::InconsistentClassModuleAliasError < ::RBS::BaseError include ::RBS::DetailedMessageable # @return [InconsistentClassModuleAliasError] a new instance of InconsistentClassModuleAliasError # - # source://rbs//lib/rbs/errors.rb#558 + # source://rbs//lib/rbs/errors.rb#559 def initialize(entry); end # Returns the value of attribute alias_entry. # - # source://rbs//lib/rbs/errors.rb#556 + # source://rbs//lib/rbs/errors.rb#557 def alias_entry; end - # source://rbs//lib/rbs/errors.rb#572 + # source://rbs//lib/rbs/errors.rb#573 def location; end end @@ -3591,6 +4153,217 @@ class RBS::InheritModuleError < ::RBS::DefinitionError end end +# source://rbs//lib/rbs/inline_parser.rb#4 +class RBS::InlineParser + class << self + # source://rbs//lib/rbs/inline_parser.rb#34 + def parse(buffer, prism); end + end +end + +# source://rbs//lib/rbs/inline_parser/comment_association.rb#5 +class RBS::InlineParser::CommentAssociation + # @return [CommentAssociation] a new instance of CommentAssociation + # + # source://rbs//lib/rbs/inline_parser/comment_association.rb#8 + def initialize(blocks); end + + # Returns the value of attribute associated_blocks. + # + # source://rbs//lib/rbs/inline_parser/comment_association.rb#6 + def associated_blocks; end + + # Returns the value of attribute blocks. + # + # source://rbs//lib/rbs/inline_parser/comment_association.rb#6 + def blocks; end + + # source://rbs//lib/rbs/inline_parser/comment_association.rb#84 + def each_enclosed_block(node); end + + # source://rbs//lib/rbs/inline_parser/comment_association.rb#104 + def each_unassociated_block; end + + # Returns the value of attribute end_line_map. + # + # source://rbs//lib/rbs/inline_parser/comment_association.rb#6 + def end_line_map; end + + # source://rbs//lib/rbs/inline_parser/comment_association.rb#47 + def leading_block(node); end + + # source://rbs//lib/rbs/inline_parser/comment_association.rb#55 + def leading_block!(node); end + + # Returns the value of attribute start_line_map. + # + # source://rbs//lib/rbs/inline_parser/comment_association.rb#6 + def start_line_map; end + + # source://rbs//lib/rbs/inline_parser/comment_association.rb#63 + def trailing_block(node); end + + # source://rbs//lib/rbs/inline_parser/comment_association.rb#76 + def trailing_block!(node); end + + class << self + # source://rbs//lib/rbs/inline_parser/comment_association.rb#24 + def build(buffer, result); end + end +end + +# source://rbs//lib/rbs/inline_parser/comment_association.rb#29 +class RBS::InlineParser::CommentAssociation::Reference + # @return [Reference] a new instance of Reference + # + # source://rbs//lib/rbs/inline_parser/comment_association.rb#32 + def initialize(block, association); end + + # source://rbs//lib/rbs/inline_parser/comment_association.rb#37 + def associate!; end + + # @return [Boolean] + # + # source://rbs//lib/rbs/inline_parser/comment_association.rb#42 + def associated?; end + + # Returns the value of attribute block. + # + # source://rbs//lib/rbs/inline_parser/comment_association.rb#30 + def block; end +end + +# source://rbs//lib/rbs/inline_parser.rb#16 +module RBS::InlineParser::Diagnostic; end + +# source://rbs//lib/rbs/inline_parser.rb#31 +class RBS::InlineParser::Diagnostic::AnnotationSyntaxError < ::RBS::InlineParser::Diagnostic::Base; end + +# source://rbs//lib/rbs/inline_parser.rb#17 +class RBS::InlineParser::Diagnostic::Base + # @return [Base] a new instance of Base + # + # source://rbs//lib/rbs/inline_parser.rb#20 + def initialize(location, message); end + + # Returns the value of attribute location. + # + # source://rbs//lib/rbs/inline_parser.rb#18 + def location; end + + # Returns the value of attribute message. + # + # source://rbs//lib/rbs/inline_parser.rb#18 + def message; end +end + +# source://rbs//lib/rbs/inline_parser.rb#27 +class RBS::InlineParser::Diagnostic::NonConstantClassName < ::RBS::InlineParser::Diagnostic::Base; end + +# source://rbs//lib/rbs/inline_parser.rb#28 +class RBS::InlineParser::Diagnostic::NonConstantModuleName < ::RBS::InlineParser::Diagnostic::Base; end + +# source://rbs//lib/rbs/inline_parser.rb#26 +class RBS::InlineParser::Diagnostic::NotImplementedYet < ::RBS::InlineParser::Diagnostic::Base; end + +# source://rbs//lib/rbs/inline_parser.rb#29 +class RBS::InlineParser::Diagnostic::TopLevelMethodDefinition < ::RBS::InlineParser::Diagnostic::Base; end + +# source://rbs//lib/rbs/inline_parser.rb#30 +class RBS::InlineParser::Diagnostic::UnusedInlineAnnotation < ::RBS::InlineParser::Diagnostic::Base; end + +# source://rbs//lib/rbs/inline_parser.rb#42 +class RBS::InlineParser::Parser < ::Prism::Visitor + include ::RBS::AST::Ruby::Helpers::ConstantHelper + include ::RBS::AST::Ruby::Helpers::LocationHelper + + # @return [Parser] a new instance of Parser + # + # source://rbs//lib/rbs/inline_parser.rb#48 + def initialize(result); end + + # source://rbs//lib/rbs/inline_parser.rb#54 + def buffer; end + + # Returns the value of attribute comments. + # + # source://rbs//lib/rbs/inline_parser.rb#43 + def comments; end + + # source://rbs//lib/rbs/inline_parser.rb#58 + def current_module; end + + # source://rbs//lib/rbs/inline_parser.rb#62 + def current_module!; end + + # source://rbs//lib/rbs/inline_parser.rb#66 + def diagnostics; end + + # source://rbs//lib/rbs/inline_parser.rb#171 + def insert_declaration(decl); end + + # Returns the value of attribute module_nesting. + # + # source://rbs//lib/rbs/inline_parser.rb#43 + def module_nesting; end + + # source://rbs//lib/rbs/inline_parser.rb#70 + def push_module_nesting(mod); end + + # source://rbs//lib/rbs/inline_parser.rb#179 + def report_unused_annotation(*annotations); end + + # source://rbs//lib/rbs/inline_parser.rb#194 + def report_unused_block(block); end + + # Returns the value of attribute result. + # + # source://rbs//lib/rbs/inline_parser.rb#43 + def result; end + + # @return [Boolean] + # + # source://rbs//lib/rbs/inline_parser.rb#77 + def skip_node?(node); end + + # source://rbs//lib/rbs/inline_parser.rb#88 + def visit_class_node(node); end + + # source://rbs//lib/rbs/inline_parser.rb#132 + def visit_def_node(node); end + + # source://rbs//lib/rbs/inline_parser.rb#110 + def visit_module_node(node); end +end + +# source://rbs//lib/rbs/inline_parser.rb#5 +class RBS::InlineParser::Result + # @return [Result] a new instance of Result + # + # source://rbs//lib/rbs/inline_parser.rb#8 + def initialize(buffer, prism); end + + # Returns the value of attribute buffer. + # + # source://rbs//lib/rbs/inline_parser.rb#6 + def buffer; end + + # Returns the value of attribute declarations. + # + # source://rbs//lib/rbs/inline_parser.rb#6 + def declarations; end + + # Returns the value of attribute diagnostics. + # + # source://rbs//lib/rbs/inline_parser.rb#6 + def diagnostics; end + + # Returns the value of attribute prism_result. + # + # source://rbs//lib/rbs/inline_parser.rb#6 + def prism_result; end +end + # source://rbs//lib/rbs/errors.rb#341 class RBS::InstanceVariableDuplicationError < ::RBS::VariableDuplicationError # source://rbs//lib/rbs/errors.rb#342 @@ -3671,28 +4444,28 @@ class RBS::InvalidTypeApplicationError < ::RBS::DefinitionError end end -# source://rbs//lib/rbs/errors.rb#431 +# source://rbs//lib/rbs/errors.rb#432 class RBS::InvalidVarianceAnnotationError < ::RBS::DefinitionError include ::RBS::DetailedMessageable # @return [InvalidVarianceAnnotationError] a new instance of InvalidVarianceAnnotationError # - # source://rbs//lib/rbs/errors.rb#438 + # source://rbs//lib/rbs/errors.rb#439 def initialize(type_name:, param:, location:); end # Returns the value of attribute location. # - # source://rbs//lib/rbs/errors.rb#436 + # source://rbs//lib/rbs/errors.rb#437 def location; end # Returns the value of attribute param. # - # source://rbs//lib/rbs/errors.rb#435 + # source://rbs//lib/rbs/errors.rb#436 def param; end # Returns the value of attribute type_name. # - # source://rbs//lib/rbs/errors.rb#434 + # source://rbs//lib/rbs/errors.rb#435 def type_name; end end @@ -3701,42 +4474,64 @@ class RBS::LoadingError < ::RBS::BaseError; end # source://rbs//lib/rbs/location_aux.rb#4 class RBS::Location + # source://rbs//lib/rbs.rb#72 def initialize(_arg0, _arg1, _arg2); end - # source://rbs//lib/rbs/location_aux.rb#71 + # source://rbs//lib/rbs/location_aux.rb#79 def ==(other); end + # source://rbs//lib/rbs.rb#72 def [](_arg0); end + + # source://rbs//lib/rbs.rb#72 def _add_optional_child(_arg0, _arg1, _arg2); end + + # source://rbs//lib/rbs.rb#72 def _add_optional_no_child(_arg0); end + + # source://rbs//lib/rbs.rb#72 def _add_required_child(_arg0, _arg1, _arg2); end + + # source://rbs//lib/rbs.rb#72 + def _end_pos; end + + # source://rbs//lib/rbs.rb#72 def _optional_keys; end + + # source://rbs//lib/rbs.rb#72 def _required_keys; end - # source://rbs//lib/rbs/location_aux.rb#102 - def add_optional_child(name, range); end - - # source://rbs//lib/rbs/location_aux.rb#98 - def add_required_child(name, range); end - - def aref(_arg0); end - def buffer; end + # source://rbs//lib/rbs.rb#72 + def _start_pos; end # source://rbs//lib/rbs/location_aux.rb#110 - def each_optional_key(&block); end + def add_optional_child(name, range); end + + # source://rbs//lib/rbs/location_aux.rb#106 + def add_required_child(name, range); end + + # source://rbs//lib/rbs/location_aux.rb#27 + def aref(_arg0); end + + # source://rbs//lib/rbs.rb#72 + def buffer; end # source://rbs//lib/rbs/location_aux.rb#118 + def each_optional_key(&block); end + + # source://rbs//lib/rbs/location_aux.rb#126 def each_required_key(&block); end - # source://rbs//lib/rbs/location_aux.rb#47 + # source://rbs//lib/rbs/location_aux.rb#55 def end_column; end - # source://rbs//lib/rbs/location_aux.rb#43 + # source://rbs//lib/rbs/location_aux.rb#51 def end_line; end - # source://rbs//lib/rbs/location_aux.rb#55 + # source://rbs//lib/rbs/location_aux.rb#63 def end_loc; end + # source://rbs//lib/rbs/location_aux.rb#35 def end_pos; end # source://rbs//lib/rbs/location_aux.rb#5 @@ -3744,54 +4539,62 @@ class RBS::Location # @return [Boolean] # - # source://rbs//lib/rbs/location_aux.rb#126 + # source://rbs//lib/rbs/location_aux.rb#134 def key?(name); end - # source://rbs//lib/rbs/location_aux.rb#31 + # source://rbs//lib/rbs/location_aux.rb#146 + def local_location; end + + # source://rbs//lib/rbs/location_aux.rb#166 + def local_source; end + + # source://rbs//lib/rbs/location_aux.rb#39 def name; end # @return [Boolean] # - # source://rbs//lib/rbs/location_aux.rb#130 + # source://rbs//lib/rbs/location_aux.rb#138 def optional_key?(name); end - # source://rbs//lib/rbs/location_aux.rb#59 + # source://rbs//lib/rbs/location_aux.rb#67 def range; end # @return [Boolean] # - # source://rbs//lib/rbs/location_aux.rb#134 + # source://rbs//lib/rbs/location_aux.rb#142 def required_key?(name); end - # source://rbs//lib/rbs/location_aux.rb#63 + # source://rbs//lib/rbs/location_aux.rb#71 def source; end - # source://rbs//lib/rbs/location_aux.rb#39 + # source://rbs//lib/rbs/location_aux.rb#47 def start_column; end - # source://rbs//lib/rbs/location_aux.rb#35 + # source://rbs//lib/rbs/location_aux.rb#43 def start_line; end - # source://rbs//lib/rbs/location_aux.rb#51 + # source://rbs//lib/rbs/location_aux.rb#59 def start_loc; end + # source://rbs//lib/rbs/location_aux.rb#31 def start_pos; end - # source://rbs//lib/rbs/location_aux.rb#78 + # source://rbs//lib/rbs/location_aux.rb#86 def to_json(state = T.unsafe(nil)); end - # source://rbs//lib/rbs/location_aux.rb#67 + # source://rbs//lib/rbs/location_aux.rb#75 def to_s; end private + # source://rbs//lib/rbs.rb#72 def initialize_copy(_arg0); end class << self # source://rbs//lib/rbs/location_aux.rb#16 def new(buffer_ = T.unsafe(nil), start_pos_ = T.unsafe(nil), end_pos_ = T.unsafe(nil), buffer: T.unsafe(nil), start_pos: T.unsafe(nil), end_pos: T.unsafe(nil)); end - # source://rbs//lib/rbs/location_aux.rb#94 + # source://rbs//lib/rbs/location_aux.rb#102 def to_string(location, default: T.unsafe(nil)); end end end @@ -3931,35 +4734,35 @@ class RBS::MethodType def with_nonreturn_void?; end end -# source://rbs//lib/rbs/errors.rb#467 +# source://rbs//lib/rbs/errors.rb#468 class RBS::MixinClassError < ::RBS::DefinitionError include ::RBS::DetailedMessageable # @return [MixinClassError] a new instance of MixinClassError # - # source://rbs//lib/rbs/errors.rb#473 + # source://rbs//lib/rbs/errors.rb#474 def initialize(type_name:, member:); end - # source://rbs//lib/rbs/errors.rb#480 + # source://rbs//lib/rbs/errors.rb#481 def location; end # Returns the value of attribute member. # - # source://rbs//lib/rbs/errors.rb#471 + # source://rbs//lib/rbs/errors.rb#472 def member; end # Returns the value of attribute type_name. # - # source://rbs//lib/rbs/errors.rb#470 + # source://rbs//lib/rbs/errors.rb#471 def type_name; end private - # source://rbs//lib/rbs/errors.rb#492 + # source://rbs//lib/rbs/errors.rb#493 def mixin_name; end class << self - # source://rbs//lib/rbs/errors.rb#484 + # source://rbs//lib/rbs/errors.rb#485 def check!(type_name:, env:, member:); end end end @@ -3996,7 +4799,7 @@ class RBS::Namespace # source://rbs//lib/rbs/namespace.rb#55 def empty?; end - # source://rbs//lib/rbs/namespace.rb#59 + # source://rbs//lib/rbs/namespace.rb#63 def eql?(other); end # source://rbs//lib/rbs/namespace.rb#65 @@ -4140,43 +4943,65 @@ class RBS::NoTypeFoundError < ::RBS::DefinitionError end end -# source://rbs//lib/rbs/errors.rb#524 +# source://rbs//lib/rbs/errors.rb#525 class RBS::NonregularTypeAliasError < ::RBS::BaseError include ::RBS::DetailedMessageable # @return [NonregularTypeAliasError] a new instance of NonregularTypeAliasError # - # source://rbs//lib/rbs/errors.rb#530 + # source://rbs//lib/rbs/errors.rb#531 def initialize(diagnostic:, location:); end # Returns the value of attribute diagnostic. # - # source://rbs//lib/rbs/errors.rb#527 + # source://rbs//lib/rbs/errors.rb#528 def diagnostic; end # Returns the value of attribute location. # - # source://rbs//lib/rbs/errors.rb#528 + # source://rbs//lib/rbs/errors.rb#529 def location; end end # source://rbs//lib/rbs/parser/lex_result.rb#4 class RBS::Parser class << self + # source://rbs//lib/rbs.rb#72 def _lex(_arg0, _arg1); end + + # source://rbs//lib/rbs.rb#72 + def _parse_inline_leading_annotation(_arg0, _arg1, _arg2, _arg3); end + + # source://rbs//lib/rbs.rb#72 + def _parse_inline_trailing_annotation(_arg0, _arg1, _arg2, _arg3); end + + # source://rbs//lib/rbs.rb#72 def _parse_method_type(_arg0, _arg1, _arg2, _arg3, _arg4); end + + # source://rbs//lib/rbs.rb#72 def _parse_signature(_arg0, _arg1, _arg2); end + + # source://rbs//lib/rbs.rb#72 def _parse_type(_arg0, _arg1, _arg2, _arg3, _arg4); end - # source://rbs//lib/rbs/parser_aux.rb#71 + # source://rbs//lib/rbs.rb#72 + def _parse_type_params(_arg0, _arg1, _arg2, _arg3); end + + # source://rbs//lib/rbs/parser_aux.rb#76 def buffer(source); end - # source://rbs//lib/rbs/parser_aux.rb#62 + # source://rbs//lib/rbs/parser_aux.rb#67 def lex(source); end - # source://rbs//lib/rbs/parser_aux.rb#38 + # source://rbs//lib/rbs/parser_aux.rb#43 def magic_comment(buf); end + # source://rbs//lib/rbs/parser_aux.rb#119 + def parse_inline_leading_annotation(source, range, variables: T.unsafe(nil)); end + + # source://rbs//lib/rbs/parser_aux.rb#124 + def parse_inline_trailing_annotation(source, range, variables: T.unsafe(nil)); end + # source://rbs//lib/rbs/parser_aux.rb#13 def parse_method_type(source, range: T.unsafe(nil), variables: T.unsafe(nil), require_eof: T.unsafe(nil)); end @@ -4185,10 +5010,13 @@ class RBS::Parser # source://rbs//lib/rbs/parser_aux.rb#8 def parse_type(source, range: T.unsafe(nil), variables: T.unsafe(nil), require_eof: T.unsafe(nil)); end + + # source://rbs//lib/rbs/parser_aux.rb#38 + def parse_type_params(source, module_type_params: T.unsafe(nil)); end end end -# source://rbs//lib/rbs/parser_aux.rb#80 +# source://rbs//lib/rbs/parser_aux.rb#85 RBS::Parser::KEYWORDS = T.let(T.unsafe(nil), Hash) # source://rbs//lib/rbs/parser/lex_result.rb#5 @@ -4374,7 +5202,7 @@ class RBS::Prototype::RB # backward compatible # - # source://rbs//lib/rbs/prototype/rb.rb#719 + # source://rbs//lib/rbs/prototype/rb.rb#762 def node_type(node, default: T.unsafe(nil)); end # source://rbs//lib/rbs/prototype/rb.rb#719 @@ -4661,7 +5489,6 @@ class RBS::Prototype::Runtime::DataGenerator < ::RBS::Prototype::Runtime::ValueO def add_decl_members(decl); end # def self.new: (untyped foo, untyped bar) -> instance - # | (foo: untyped, bar: untyped) -> instance # # source://rbs//lib/rbs/prototype/runtime/value_object_generator.rb#237 def build_s_new; end @@ -4729,7 +5556,6 @@ class RBS::Prototype::Runtime::StructGenerator < ::RBS::Prototype::Runtime::Valu def build_s_keyword_init_p; end # def self.new: (?untyped foo, ?untyped bar) -> instance - # | (?foo: untyped, ?bar: untyped) -> instance # # source://rbs//lib/rbs/prototype/runtime/value_object_generator.rb#117 def build_s_new; end @@ -4807,102 +5633,26 @@ class RBS::Prototype::Runtime::ValueObjectBase def build_s_members; end end -# source://rbs//lib/rdoc_plugin/parser.rb#6 -module RBS::RDocPlugin; end - -# source://rbs//lib/rdoc_plugin/parser.rb#7 -class RBS::RDocPlugin::Parser - # @return [Parser] a new instance of Parser - # - # source://rbs//lib/rdoc_plugin/parser.rb#11 - def initialize(top_level, content); end - - # Returns the value of attribute content. - # - # source://rbs//lib/rdoc_plugin/parser.rb#9 - def content; end - - # Sets the attribute content - # - # @param value the value to set the attribute content to. - # - # source://rbs//lib/rdoc_plugin/parser.rb#9 - def content=(_arg0); end - - # source://rbs//lib/rdoc_plugin/parser.rb#94 - def parse_attr_decl(decl:, context:, outer_name: T.unsafe(nil)); end - - # source://rbs//lib/rdoc_plugin/parser.rb#53 - def parse_class_decl(decl:, context:, outer_name: T.unsafe(nil)); end - - # source://rbs//lib/rdoc_plugin/parser.rb#67 - def parse_constant_decl(decl:, context:, outer_name: T.unsafe(nil)); end - - # source://rbs//lib/rdoc_plugin/parser.rb#125 - def parse_extend_decl(decl:, context:, outer_name: T.unsafe(nil)); end - - # source://rbs//lib/rdoc_plugin/parser.rb#109 - def parse_include_decl(decl:, context:, outer_name: T.unsafe(nil)); end - - # source://rbs//lib/rdoc_plugin/parser.rb#24 - def parse_member(decl:, context:, outer_name: T.unsafe(nil)); end - - # source://rbs//lib/rdoc_plugin/parser.rb#88 - def parse_method_alias_decl(decl:, context:, outer_name: T.unsafe(nil)); end - - # source://rbs//lib/rdoc_plugin/parser.rb#73 - def parse_method_decl(decl:, context:, outer_name: T.unsafe(nil)); end - - # source://rbs//lib/rdoc_plugin/parser.rb#60 - def parse_module_decl(decl:, context:, outer_name: T.unsafe(nil)); end - - # source://rbs//lib/rdoc_plugin/parser.rb#16 - def scan; end - - # Returns the value of attribute top_level. - # - # source://rbs//lib/rdoc_plugin/parser.rb#9 - def top_level; end - - # Sets the attribute top_level - # - # @param value the value to set the attribute top_level to. - # - # source://rbs//lib/rdoc_plugin/parser.rb#9 - def top_level=(_arg0); end - - private - - # source://rbs//lib/rdoc_plugin/parser.rb#149 - def comment_string(with_comment); end - - # source://rbs//lib/rdoc_plugin/parser.rb#143 - def construct_comment(context:, comment:); end - - # source://rbs//lib/rdoc_plugin/parser.rb#154 - def fully_qualified_name(outer_name:, decl:); end -end - -# source://rbs//lib/rbs/errors.rb#447 +# source://rbs//lib/rbs/errors.rb#448 class RBS::RecursiveAliasDefinitionError < ::RBS::DefinitionError include ::RBS::DetailedMessageable # @return [RecursiveAliasDefinitionError] a new instance of RecursiveAliasDefinitionError # - # source://rbs//lib/rbs/errors.rb#453 + # source://rbs//lib/rbs/errors.rb#454 def initialize(type:, defs:); end # Returns the value of attribute defs. # - # source://rbs//lib/rbs/errors.rb#451 + # source://rbs//lib/rbs/errors.rb#452 def defs; end - # source://rbs//lib/rbs/errors.rb#460 + # source://rbs//lib/rbs/errors.rb#461 def location; end # Returns the value of attribute type. # - # source://rbs//lib/rbs/errors.rb#450 + # source://rbs//lib/rbs/errors.rb#451 def type; end end @@ -4929,26 +5679,26 @@ class RBS::RecursiveAncestorError < ::RBS::DefinitionError end end -# source://rbs//lib/rbs/errors.rb#506 +# source://rbs//lib/rbs/errors.rb#507 class RBS::RecursiveTypeAliasError < ::RBS::BaseError include ::RBS::DetailedMessageable # @return [RecursiveTypeAliasError] a new instance of RecursiveTypeAliasError # - # source://rbs//lib/rbs/errors.rb#512 + # source://rbs//lib/rbs/errors.rb#513 def initialize(alias_names:, location:); end # Returns the value of attribute alias_names. # - # source://rbs//lib/rbs/errors.rb#509 + # source://rbs//lib/rbs/errors.rb#510 def alias_names; end # Returns the value of attribute location. # - # source://rbs//lib/rbs/errors.rb#510 + # source://rbs//lib/rbs/errors.rb#511 def location; end - # source://rbs//lib/rbs/errors.rb#519 + # source://rbs//lib/rbs/errors.rb#520 def name; end end @@ -5033,18 +5783,38 @@ end # source://rbs//lib/rbs/repository.rb#69 class RBS::Repository::VersionPath < ::Struct + # source://rbs//lib/rbs/repository.rb#69 def gem; end + + # source://rbs//lib/rbs/repository.rb#69 def gem=(_); end + + # source://rbs//lib/rbs/repository.rb#69 def path; end + + # source://rbs//lib/rbs/repository.rb#69 def path=(_); end + + # source://rbs//lib/rbs/repository.rb#69 def version; end + + # source://rbs//lib/rbs/repository.rb#69 def version=(_); end class << self + # source://rbs//lib/rbs/repository.rb#69 def [](*_arg0); end + + # source://rbs//lib/rbs/repository.rb#69 def inspect; end + + # source://rbs//lib/rbs/repository.rb#69 def keyword_init?; end + + # source://rbs//lib/rbs/repository.rb#69 def members; end + + # source://rbs//lib/rbs/repository.rb#69 def new(*_arg0); end end end @@ -5182,6 +5952,72 @@ class RBS::Resolver::TypeNameResolver def try_cache(query); end end +# source://rbs//lib/rbs/source.rb#4 +module RBS::Source; end + +# source://rbs//lib/rbs/source.rb#5 +class RBS::Source::RBS + # @return [RBS] a new instance of RBS + # + # source://rbs//lib/rbs/source.rb#8 + def initialize(buffer, directives, decls); end + + # Returns the value of attribute buffer. + # + # source://rbs//lib/rbs/source.rb#6 + def buffer; end + + # Returns the value of attribute declarations. + # + # source://rbs//lib/rbs/source.rb#6 + def declarations; end + + # Returns the value of attribute directives. + # + # source://rbs//lib/rbs/source.rb#6 + def directives; end + + # source://rbs//lib/rbs/source.rb#25 + def each_declaration_type_name(names, decl, &block); end + + # source://rbs//lib/rbs/source.rb#14 + def each_type_name(&block); end +end + +# source://rbs//lib/rbs/source.rb#52 +class RBS::Source::Ruby + # @return [Ruby] a new instance of Ruby + # + # source://rbs//lib/rbs/source.rb#58 + def initialize(buffer, prism, declarations, diagnostics); end + + # Returns the value of attribute buffer. + # + # source://rbs//lib/rbs/source.rb#53 + def buffer; end + + # Returns the value of attribute declarations. + # + # source://rbs//lib/rbs/source.rb#55 + def declarations; end + + # Returns the value of attribute diagnostics. + # + # source://rbs//lib/rbs/source.rb#56 + def diagnostics; end + + # source://rbs//lib/rbs/source.rb#76 + def each_declaration_type_name(names, decl, &block); end + + # source://rbs//lib/rbs/source.rb#65 + def each_type_name(&block); end + + # Returns the value of attribute prism_result. + # + # source://rbs//lib/rbs/source.rb#54 + def prism_result; end +end + # source://rbs//lib/rbs/substitution.rb#4 class RBS::Substitution # @return [Substitution] a new instance of Substitution @@ -5192,7 +6028,7 @@ class RBS::Substitution # source://rbs//lib/rbs/substitution.rb#66 def +(other); end - # source://rbs//lib/rbs/substitution.rb#37 + # source://rbs//lib/rbs/substitution.rb#53 def [](ty); end # source://rbs//lib/rbs/substitution.rb#16 @@ -5244,12 +6080,12 @@ class RBS::Subtractor private - # source://rbs//lib/rbs/subtractor.rb#177 + # source://rbs//lib/rbs/subtractor.rb#178 def absolute_typename(name, context:); end # @return [Boolean] # - # source://rbs//lib/rbs/subtractor.rb#160 + # source://rbs//lib/rbs/subtractor.rb#161 def access_modifier?(decl); end # @return [Boolean] @@ -5263,7 +6099,7 @@ class RBS::Subtractor # source://rbs//lib/rbs/subtractor.rb#48 def filter_members(decl, context:); end - # source://rbs//lib/rbs/subtractor.rb#148 + # source://rbs//lib/rbs/subtractor.rb#149 def filter_redundant_access_modifiers(decls); end # @return [Boolean] @@ -5283,13 +6119,13 @@ class RBS::Subtractor # @return [Boolean] # - # source://rbs//lib/rbs/subtractor.rb#137 + # source://rbs//lib/rbs/subtractor.rb#138 def mixin_exist?(owner, mixin, context:); end - # source://rbs//lib/rbs/subtractor.rb#186 + # source://rbs//lib/rbs/subtractor.rb#187 def typename_candidates(name, context:); end - # source://rbs//lib/rbs/subtractor.rb#164 + # source://rbs//lib/rbs/subtractor.rb#165 def update_decl(decl, members:); end end @@ -5469,7 +6305,7 @@ class RBS::TypeName # source://rbs//lib/rbs/type_name.rb#47 def class?; end - # source://rbs//lib/rbs/type_name.rb#25 + # source://rbs//lib/rbs/type_name.rb#29 def eql?(other); end # source://rbs//lib/rbs/type_name.rb#31 @@ -5519,27 +6355,27 @@ class RBS::TypeName end end -# source://rbs//lib/rbs/errors.rb#604 +# source://rbs//lib/rbs/errors.rb#605 class RBS::TypeParamDefaultReferenceError < ::RBS::DefinitionError include ::RBS::DetailedMessageable # @return [TypeParamDefaultReferenceError] a new instance of TypeParamDefaultReferenceError # - # source://rbs//lib/rbs/errors.rb#610 + # source://rbs//lib/rbs/errors.rb#611 def initialize(type_param, location:); end # Returns the value of attribute location. # - # source://rbs//lib/rbs/errors.rb#608 + # source://rbs//lib/rbs/errors.rb#609 def location; end # Returns the value of attribute type_param. # - # source://rbs//lib/rbs/errors.rb#607 + # source://rbs//lib/rbs/errors.rb#608 def type_param; end class << self - # source://rbs//lib/rbs/errors.rb#616 + # source://rbs//lib/rbs/errors.rb#617 def check!(type_params); end end end @@ -5587,7 +6423,7 @@ module RBS::Types::Application # source://rbs//lib/rbs/types.rb#284 def each_type(&block); end - # source://rbs//lib/rbs/types.rb#258 + # source://rbs//lib/rbs/types.rb#262 def eql?(other); end # source://rbs//lib/rbs/types.rb#268 @@ -5649,7 +6485,7 @@ class RBS::Types::Bases::Base # source://rbs//lib/rbs/types.rb#49 def ==(other); end - # source://rbs//lib/rbs/types.rb#49 + # source://rbs//lib/rbs/types.rb#57 def eql?(other); end # @return [Boolean] @@ -5713,13 +6549,18 @@ class RBS::Types::Bases::Void < ::RBS::Types::Bases::Base; end class RBS::Types::Block # @return [Block] a new instance of Block # - # source://rbs//lib/rbs/types.rb#1343 - def initialize(type:, required:, self_type: T.unsafe(nil)); end + # source://rbs//lib/rbs/types.rb#1344 + def initialize(type:, required:, location: T.unsafe(nil), self_type: T.unsafe(nil)); end - # source://rbs//lib/rbs/types.rb#1349 + # source://rbs//lib/rbs/types.rb#1351 def ==(other); end - # source://rbs//lib/rbs/types.rb#1374 + # Returns the value of attribute location. + # + # source://rbs//lib/rbs/types.rb#1342 + def location; end + + # source://rbs//lib/rbs/types.rb#1376 def map_type(&block); end # Returns the value of attribute required. @@ -5732,10 +6573,10 @@ class RBS::Types::Block # source://rbs//lib/rbs/types.rb#1341 def self_type; end - # source://rbs//lib/rbs/types.rb#1364 + # source://rbs//lib/rbs/types.rb#1366 def sub(s); end - # source://rbs//lib/rbs/types.rb#1356 + # source://rbs//lib/rbs/types.rb#1358 def to_json(state = T.unsafe(nil)); end # Returns the value of attribute type. @@ -5785,7 +6626,7 @@ class RBS::Types::ClassSingleton # source://rbs//lib/rbs/types.rb#211 def ==(other); end - # source://rbs//lib/rbs/types.rb#211 + # source://rbs//lib/rbs/types.rb#215 def eql?(other); end # @return [Boolean] @@ -5865,7 +6706,7 @@ class RBS::Types::Function # source://rbs//lib/rbs/types.rb#1153 def empty?; end - # source://rbs//lib/rbs/types.rb#972 + # source://rbs//lib/rbs/types.rb#984 def eql?(other); end # source://rbs//lib/rbs/types.rb#998 @@ -5977,7 +6818,7 @@ class RBS::Types::Function::Param # source://rbs//lib/rbs/types.rb#917 def ==(other); end - # source://rbs//lib/rbs/types.rb#917 + # source://rbs//lib/rbs/types.rb#921 def eql?(other); end # source://rbs//lib/rbs/types.rb#923 @@ -6048,7 +6889,7 @@ class RBS::Types::Intersection # source://rbs//lib/rbs/types.rb#869 def each_type(&block); end - # source://rbs//lib/rbs/types.rb#831 + # source://rbs//lib/rbs/types.rb#835 def eql?(other); end # source://rbs//lib/rbs/types.rb#841 @@ -6098,7 +6939,7 @@ class RBS::Types::Intersection def with_nonreturn_void?; end end -# source://rbs//lib/rbs/types.rb#1518 +# source://rbs//lib/rbs/types.rb#1520 class RBS::Types::Literal include ::RBS::Types::NoFreeVariables include ::RBS::Types::NoSubst @@ -6107,56 +6948,56 @@ class RBS::Types::Literal # @return [Literal] a new instance of Literal # - # source://rbs//lib/rbs/types.rb#1522 + # source://rbs//lib/rbs/types.rb#1524 def initialize(literal:, location:); end - # source://rbs//lib/rbs/types.rb#1527 + # source://rbs//lib/rbs/types.rb#1529 def ==(other); end - # source://rbs//lib/rbs/types.rb#1527 + # source://rbs//lib/rbs/types.rb#1533 def eql?(other); end # @return [Boolean] # - # source://rbs//lib/rbs/types.rb#1554 + # source://rbs//lib/rbs/types.rb#1556 def has_classish_type?; end # @return [Boolean] # - # source://rbs//lib/rbs/types.rb#1550 + # source://rbs//lib/rbs/types.rb#1552 def has_self_type?; end - # source://rbs//lib/rbs/types.rb#1533 + # source://rbs//lib/rbs/types.rb#1535 def hash; end # Returns the value of attribute literal. # - # source://rbs//lib/rbs/types.rb#1519 + # source://rbs//lib/rbs/types.rb#1521 def literal; end # Returns the value of attribute location. # - # source://rbs//lib/rbs/types.rb#1520 + # source://rbs//lib/rbs/types.rb#1522 def location; end - # source://rbs//lib/rbs/types.rb#1542 + # source://rbs//lib/rbs/types.rb#1544 def to_json(state = T.unsafe(nil)); end - # source://rbs//lib/rbs/types.rb#1546 + # source://rbs//lib/rbs/types.rb#1548 def to_s(level = T.unsafe(nil)); end # @return [Boolean] # - # source://rbs//lib/rbs/types.rb#1558 + # source://rbs//lib/rbs/types.rb#1560 def with_nonreturn_void?; end class << self - # source://rbs//lib/rbs/types.rb#1578 + # source://rbs//lib/rbs/types.rb#1580 def unescape_string(string, is_double_quote); end end end -# source://rbs//lib/rbs/types.rb#1562 +# source://rbs//lib/rbs/types.rb#1564 RBS::Types::Literal::TABLE = T.let(T.unsafe(nil), Hash) # source://rbs//lib/rbs/types.rb#5 @@ -6190,7 +7031,7 @@ class RBS::Types::Optional # source://rbs//lib/rbs/types.rb#692 def each_type; end - # source://rbs//lib/rbs/types.rb#654 + # source://rbs//lib/rbs/types.rb#658 def eql?(other); end # source://rbs//lib/rbs/types.rb#664 @@ -6240,76 +7081,76 @@ class RBS::Types::Optional def with_nonreturn_void?; end end -# source://rbs//lib/rbs/types.rb#1395 +# source://rbs//lib/rbs/types.rb#1397 class RBS::Types::Proc # @return [Proc] a new instance of Proc # - # source://rbs//lib/rbs/types.rb#1401 + # source://rbs//lib/rbs/types.rb#1403 def initialize(location:, type:, block:, self_type: T.unsafe(nil)); end - # source://rbs//lib/rbs/types.rb#1408 + # source://rbs//lib/rbs/types.rb#1410 def ==(other); end # Returns the value of attribute block. # - # source://rbs//lib/rbs/types.rb#1397 + # source://rbs//lib/rbs/types.rb#1399 def block; end - # source://rbs//lib/rbs/types.rb#1462 + # source://rbs//lib/rbs/types.rb#1464 def each_type(&block); end - # source://rbs//lib/rbs/types.rb#1408 + # source://rbs//lib/rbs/types.rb#1414 def eql?(other); end - # source://rbs//lib/rbs/types.rb#1418 + # source://rbs//lib/rbs/types.rb#1420 def free_variables(set = T.unsafe(nil)); end # @return [Boolean] # - # source://rbs//lib/rbs/types.rb#1501 + # source://rbs//lib/rbs/types.rb#1503 def has_classish_type?; end # @return [Boolean] # - # source://rbs//lib/rbs/types.rb#1497 + # source://rbs//lib/rbs/types.rb#1499 def has_self_type?; end - # source://rbs//lib/rbs/types.rb#1414 + # source://rbs//lib/rbs/types.rb#1416 def hash; end # Returns the value of attribute location. # - # source://rbs//lib/rbs/types.rb#1399 + # source://rbs//lib/rbs/types.rb#1401 def location; end - # source://rbs//lib/rbs/types.rb#1484 + # source://rbs//lib/rbs/types.rb#1486 def map_type(&block); end - # source://rbs//lib/rbs/types.rb#1475 + # source://rbs//lib/rbs/types.rb#1477 def map_type_name(&block); end # Returns the value of attribute self_type. # - # source://rbs//lib/rbs/types.rb#1398 + # source://rbs//lib/rbs/types.rb#1400 def self_type; end - # source://rbs//lib/rbs/types.rb#1435 + # source://rbs//lib/rbs/types.rb#1437 def sub(s); end - # source://rbs//lib/rbs/types.rb#1425 + # source://rbs//lib/rbs/types.rb#1427 def to_json(state = T.unsafe(nil)); end - # source://rbs//lib/rbs/types.rb#1446 + # source://rbs//lib/rbs/types.rb#1448 def to_s(level = T.unsafe(nil)); end # Returns the value of attribute type. # - # source://rbs//lib/rbs/types.rb#1396 + # source://rbs//lib/rbs/types.rb#1398 def type; end # @return [Boolean] # - # source://rbs//lib/rbs/types.rb#1505 + # source://rbs//lib/rbs/types.rb#1507 def with_nonreturn_void?; end end @@ -6331,7 +7172,7 @@ class RBS::Types::Record # source://rbs//lib/rbs/types.rb#605 def each_type(&block); end - # source://rbs//lib/rbs/types.rb#555 + # source://rbs//lib/rbs/types.rb#559 def eql?(other); end # Returns the value of attribute fields. @@ -6386,15 +7227,15 @@ class RBS::Types::Record def with_nonreturn_void?; end end -# source://rbs//lib/rbs/types.rb#1383 +# source://rbs//lib/rbs/types.rb#1385 module RBS::Types::SelfTypeBindingHelper private - # source://rbs//lib/rbs/types.rb#1386 + # source://rbs//lib/rbs/types.rb#1388 def self_type_binding_to_s(t); end class << self - # source://rbs//lib/rbs/types.rb#1386 + # source://rbs//lib/rbs/types.rb#1388 def self_type_binding_to_s(t); end end end @@ -6412,7 +7253,7 @@ class RBS::Types::Tuple # source://rbs//lib/rbs/types.rb#488 def each_type(&block); end - # source://rbs//lib/rbs/types.rb#451 + # source://rbs//lib/rbs/types.rb#455 def eql?(other); end # source://rbs//lib/rbs/types.rb#461 @@ -6475,7 +7316,7 @@ class RBS::Types::Union # source://rbs//lib/rbs/types.rb#786 def each_type(&block); end - # source://rbs//lib/rbs/types.rb#740 + # source://rbs//lib/rbs/types.rb#744 def eql?(other); end # source://rbs//lib/rbs/types.rb#750 @@ -6546,7 +7387,7 @@ class RBS::Types::UntypedFunction # source://rbs//lib/rbs/types.rb#1302 def empty?; end - # source://rbs//lib/rbs/types.rb#1326 + # source://rbs//lib/rbs/types.rb#1330 def eql?(other); end # source://rbs//lib/rbs/types.rb#1248 @@ -6613,7 +7454,7 @@ class RBS::Types::Variable # source://rbs//lib/rbs/types.rb#144 def ==(other); end - # source://rbs//lib/rbs/types.rb#144 + # source://rbs//lib/rbs/types.rb#148 def eql?(other); end # source://rbs//lib/rbs/types.rb#154 @@ -6876,18 +7717,18 @@ class RBS::Vendorer def vendor_dir; end end -# source://rbs//lib/rbs/errors.rb#593 +# source://rbs//lib/rbs/errors.rb#594 class RBS::WillSyntaxError < ::RBS::DefinitionError include ::RBS::DetailedMessageable # @return [WillSyntaxError] a new instance of WillSyntaxError # - # source://rbs//lib/rbs/errors.rb#598 + # source://rbs//lib/rbs/errors.rb#599 def initialize(message, location:); end # Returns the value of attribute location. # - # source://rbs//lib/rbs/errors.rb#596 + # source://rbs//lib/rbs/errors.rb#597 def location; end end @@ -6970,9 +7811,3 @@ class RBS::Writer # source://rbs//lib/rbs/writer.rb#102 def write_use_directive(dir); end end - -# source://rbs//lib/rdoc/discover.rb#8 -class RDoc::Parser::RBS < ::RDoc::Parser - # source://rbs//lib/rdoc/discover.rb#10 - def scan; end -end diff --git a/Library/Homebrew/sorbet/rbi/gems/require-hooks@0.2.2.rbi b/Library/Homebrew/sorbet/rbi/gems/require-hooks@0.2.2.rbi new file mode 100644 index 0000000000..b57a9a083c --- /dev/null +++ b/Library/Homebrew/sorbet/rbi/gems/require-hooks@0.2.2.rbi @@ -0,0 +1,113 @@ +# typed: true + +# DO NOT EDIT MANUALLY +# This is an autogenerated file for types exported from the `require-hooks` gem. +# Please instead update this file by running `bin/tapioca gem require-hooks`. + + +# source://require-hooks//lib/require-hooks/api.rb#3 +module RequireHooks + class << self + # Define a block to wrap the code loading. + # The return value MUST be a result of calling the passed block. + # For example, you can use such hooks for instrumentation, debugging purposes. + # + # RequireHooks.around_load do |path, &block| + # puts "Loading #{path}" + # block.call.tap { puts "Loaded #{path}" } + # end + # + # source://require-hooks//lib/require-hooks/api.rb#71 + def around_load(patterns: T.unsafe(nil), exclude_patterns: T.unsafe(nil), &block); end + + # source://require-hooks//lib/require-hooks/api.rb#107 + def context_for(path); end + + # This hook should be used to manually compile byte code to be loaded by the VM. + # The arguments are (path, source = nil), where source is only defined if transformations took place. + # Otherwise, you MUST read the source code from the file yourself. + # + # The return value MUST be either nil (continue to the next hook or default behavior) or a platform-specific bytecode object (e.g., RubyVM::InstructionSequence). + # + # RequireHooks.hijack_load do |path, source| + # source ||= File.read(path) + # if defined?(RubyVM::InstructionSequence) + # RubyVM::InstructionSequence.compile(source) + # elsif defined?(JRUBY_VERSION) + # JRuby.compile(source) + # end + # end + # + # source://require-hooks//lib/require-hooks/api.rb#103 + def hijack_load(patterns: T.unsafe(nil), exclude_patterns: T.unsafe(nil), &block); end + + # Returns the value of attribute print_warnings. + # + # source://require-hooks//lib/require-hooks/api.rb#61 + def print_warnings; end + + # Sets the attribute print_warnings + # + # @param value the value to set the attribute print_warnings to. + # + # source://require-hooks//lib/require-hooks/api.rb#61 + def print_warnings=(_arg0); end + + # Define hooks to perform source-to-source transformations. + # The return value MUST be either String (new source code) or nil (indicating that no transformations were performed). + # + # NOTE: The second argument (`source`) MAY be nil, indicating that no transformer tried to transform the source code. + # + # + # RequireHooks.source_transform do |path, source| + # end + # + # source://require-hooks//lib/require-hooks/api.rb#85 + def source_transform(patterns: T.unsafe(nil), exclude_patterns: T.unsafe(nil), &block); end + end +end + +# source://require-hooks//lib/require-hooks/api.rb#8 +class RequireHooks::Context + # @return [Context] a new instance of Context + # + # source://require-hooks//lib/require-hooks/api.rb#9 + def initialize(around_load, source_transform, hijack_load); end + + # @return [Boolean] + # + # source://require-hooks//lib/require-hooks/api.rb#15 + def empty?; end + + # @return [Boolean] + # + # source://require-hooks//lib/require-hooks/api.rb#23 + def hijack?; end + + # source://require-hooks//lib/require-hooks/api.rb#37 + def perform_source_transform(path); end + + # source://require-hooks//lib/require-hooks/api.rb#27 + def run_around_load_callbacks(path); end + + # @return [Boolean] + # + # source://require-hooks//lib/require-hooks/api.rb#19 + def source_transform?; end + + # source://require-hooks//lib/require-hooks/api.rb#49 + def try_hijack_load(path, source); end +end + +# source://require-hooks//lib/require-hooks/mode/load_iseq.rb#4 +module RequireHooks::LoadIseq + # source://require-hooks//lib/require-hooks/mode/load_iseq.rb#5 + def load_iseq(path); end +end + +# source://require-hooks//lib/require-hooks/version.rb#4 +RequireHooks::VERSION = T.let(T.unsafe(nil), String) + +class RubyVM::InstructionSequence + extend ::RequireHooks::LoadIseq +end diff --git a/Library/Homebrew/sorbet/rbi/gems/rspec-core@3.13.3.rbi b/Library/Homebrew/sorbet/rbi/gems/rspec-core@3.13.5.rbi similarity index 93% rename from Library/Homebrew/sorbet/rbi/gems/rspec-core@3.13.3.rbi rename to Library/Homebrew/sorbet/rbi/gems/rspec-core@3.13.5.rbi index 3eee344b76..122793c61d 100644 --- a/Library/Homebrew/sorbet/rbi/gems/rspec-core@3.13.3.rbi +++ b/Library/Homebrew/sorbet/rbi/gems/rspec-core@3.13.5.rbi @@ -5,15 +5,7 @@ # Please instead update this file by running `bin/tapioca gem rspec-core`. -module ERB::Escape - private - - def html_escape(_arg0); end - - class << self - def html_escape(_arg0); end - end -end +module ERB::Escape; end # Namespace for all core RSpec code. # @@ -68,7 +60,7 @@ module RSpec # source://rspec-core//lib/rspec/core.rb#194 def const_missing(name); end - # source://rspec-core//lib/rspec/core/dsl.rb#42 + # source://rspec-core//lib/rspec/core/example_group.rb#279 def context(*args, &example_group_block); end # The example being executed. @@ -129,16 +121,16 @@ module RSpec # source://rspec-core//lib/rspec/core.rb#134 def current_scope=(scope); end - # source://rspec-core//lib/rspec/core/dsl.rb#42 + # source://rspec-core//lib/rspec/core/example_group.rb#279 def describe(*args, &example_group_block); end - # source://rspec-core//lib/rspec/core/dsl.rb#42 + # source://rspec-core//lib/rspec/core/example_group.rb#279 def example_group(*args, &example_group_block); end - # source://rspec-core//lib/rspec/core/dsl.rb#42 + # source://rspec-core//lib/rspec/core/example_group.rb#279 def fcontext(*args, &example_group_block); end - # source://rspec-core//lib/rspec/core/dsl.rb#42 + # source://rspec-core//lib/rspec/core/example_group.rb#279 def fdescribe(*args, &example_group_block); end # Used to ensure examples get reloaded and user configuration gets reset to @@ -151,13 +143,13 @@ module RSpec # source://rspec-core//lib/rspec/core.rb#58 def reset; end - # source://rspec-core//lib/rspec/core/shared_example_group.rb#110 + # source://rspec-core//lib/rspec/core/shared_example_group.rb#113 def shared_context(name, *args, &block); end # source://rspec-core//lib/rspec/core/shared_example_group.rb#110 def shared_examples(name, *args, &block); end - # source://rspec-core//lib/rspec/core/shared_example_group.rb#110 + # source://rspec-core//lib/rspec/core/shared_example_group.rb#114 def shared_examples_for(name, *args, &block); end # Internal container for global non-configuration data. @@ -174,10 +166,10 @@ module RSpec # source://rspec-core//lib/rspec/core.rb#49 def world=(_arg0); end - # source://rspec-core//lib/rspec/core/dsl.rb#42 + # source://rspec-core//lib/rspec/core/example_group.rb#279 def xcontext(*args, &example_group_block); end - # source://rspec-core//lib/rspec/core/dsl.rb#42 + # source://rspec-core//lib/rspec/core/example_group.rb#279 def xdescribe(*args, &example_group_block); end end end @@ -198,10 +190,10 @@ end # # @private # -# source://rspec-core//lib/rspec/core/example_group.rb#775 +# source://rspec-core//lib/rspec/core/example_group.rb#782 class RSpec::Core::AnonymousExampleGroup < ::RSpec::Core::ExampleGroup class << self - # source://rspec-core//lib/rspec/core/example_group.rb#776 + # source://rspec-core//lib/rspec/core/example_group.rb#783 def metadata; end end end @@ -497,7 +489,7 @@ class RSpec::Core::Configuration # in RSpec to define `it_should_behave_like` (for backward # compatibility), but we also add docs for that method. # - # source://rspec-core//lib/rspec/core/configuration.rb#1240 + # source://rspec-core//lib/rspec/core/configuration.rb#1243 def alias_it_should_behave_like_to(new_name, report_label = T.unsafe(nil)); end # Adds `block` to the end of the list of `after` blocks in the same @@ -529,7 +521,7 @@ class RSpec::Core::Configuration # @see #after # @see #append_after # - # source://rspec-core//lib/rspec/core/configuration.rb#1976 + # source://rspec-core//lib/rspec/core/configuration.rb#1990 def append_before(scope = T.unsafe(nil), *meta, &block); end # @private @@ -1211,7 +1203,7 @@ class RSpec::Core::Configuration # Returns the `inclusion_filter`. If none has been set, returns an empty # hash. # - # source://rspec-core//lib/rspec/core/configuration.rb#1313 + # source://rspec-core//lib/rspec/core/configuration.rb#1317 def filter; end # Clears and reassigns the `inclusion_filter`. Set to `nil` if you don't @@ -1222,7 +1214,7 @@ class RSpec::Core::Configuration # This overrides any inclusion filters/tags set on the command line or in # configuration files. # - # source://rspec-core//lib/rspec/core/configuration.rb#1304 + # source://rspec-core//lib/rspec/core/configuration.rb#1309 def filter=(filter); end # Adds {#backtrace_exclusion_patterns} that will filter lines from @@ -1284,7 +1276,7 @@ class RSpec::Core::Configuration # # filter_run_including :foo # same as filter_run_including :foo => true # - # source://rspec-core//lib/rspec/core/configuration.rb#1275 + # source://rspec-core//lib/rspec/core/configuration.rb#1280 def filter_run(*args); end # Adds key/value pairs to the `exclusion_filter`. If `args` @@ -1427,7 +1419,7 @@ class RSpec::Core::Configuration # the configured `output_stream` (`$stdout`, by default) will be used. # @see RSpec::Core::Formatters::Protocol # - # source://rspec-core//lib/rspec/core/configuration.rb#996 + # source://rspec-core//lib/rspec/core/configuration.rb#999 def formatter=(formatter, output = T.unsafe(nil)); end # @private @@ -1720,7 +1712,7 @@ class RSpec::Core::Configuration # Indicates if the `--only-failures` (or `--next-failure`) flag is being used. # - # source://rspec-core//lib/rspec/core/configuration.rb#66 + # source://rspec-core//lib/rspec/core/configuration.rb#200 def only_failures?; end # @private @@ -1868,7 +1860,7 @@ class RSpec::Core::Configuration # @see #before # @see #prepend_before # - # source://rspec-core//lib/rspec/core/configuration.rb#2031 + # source://rspec-core//lib/rspec/core/configuration.rb#2045 def prepend_after(scope = T.unsafe(nil), *meta, &block); end # Adds `block` to the start of the list of `before` blocks in the same @@ -2487,30 +2479,18 @@ RSpec::Core::Configuration::RAISE_ERROR_WARNING_NOTIFIER = T.let(T.unsafe(nil), # # source://rspec-core//lib/rspec/core/configuration.rb#53 module RSpec::Core::Configuration::Readers - # source://rspec-core//lib/rspec/core/configuration.rb#63 - def clear_lets_on_failure; end - # source://rspec-core//lib/rspec/core/configuration.rb#63 def default_color; end # source://rspec-core//lib/rspec/core/configuration.rb#63 def default_path; end - # source://rspec-core//lib/rspec/core/configuration.rb#63 - def default_retry_count; end - - # source://rspec-core//lib/rspec/core/configuration.rb#63 - def default_sleep_interval; end - # source://rspec-core//lib/rspec/core/configuration.rb#63 def deprecation_stream; end # source://rspec-core//lib/rspec/core/configuration.rb#63 def detail_color; end - # source://rspec-core//lib/rspec/core/configuration.rb#63 - def display_try_failure_messages; end - # source://rspec-core//lib/rspec/core/configuration.rb#63 def drb; end @@ -2529,18 +2509,9 @@ module RSpec::Core::Configuration::Readers # source://rspec-core//lib/rspec/core/configuration.rb#63 def example_status_persistence_file_path; end - # source://rspec-core//lib/rspec/core/configuration.rb#63 - def exceptions_to_hard_fail; end - - # source://rspec-core//lib/rspec/core/configuration.rb#63 - def exceptions_to_retry; end - # source://rspec-core//lib/rspec/core/configuration.rb#63 def exclude_pattern; end - # source://rspec-core//lib/rspec/core/configuration.rb#63 - def exponential_backoff; end - # source://rspec-core//lib/rspec/core/configuration.rb#63 def fail_fast; end @@ -2586,12 +2557,6 @@ module RSpec::Core::Configuration::Readers # source://rspec-core//lib/rspec/core/configuration.rb#63 def requires; end - # source://rspec-core//lib/rspec/core/configuration.rb#63 - def retry_callback; end - - # source://rspec-core//lib/rspec/core/configuration.rb#63 - def retry_count_condition; end - # source://rspec-core//lib/rspec/core/configuration.rb#63 def run_all_when_everything_filtered; end @@ -2612,9 +2577,6 @@ module RSpec::Core::Configuration::Readers # source://rspec-core//lib/rspec/core/configuration.rb#63 def tty; end - - # source://rspec-core//lib/rspec/core/configuration.rb#63 - def verbose_retry; end end # @private @@ -2934,15 +2896,6 @@ class RSpec::Core::Example # source://rspec-core//lib/rspec/core/example.rb#186 def initialize(example_group_class, description, user_metadata, example_block = T.unsafe(nil)); end - # source://rspec-retry/0.6.2/lib/rspec_ext/rspec_ext.rb#4 - def attempts; end - - # source://rspec-retry/0.6.2/lib/rspec_ext/rspec_ext.rb#4 - def attempts=(_arg0); end - - # source://rspec-retry/0.6.2/lib/rspec_ext/rspec_ext.rb#6 - def clear_exception; end - # @attr # @private # @@ -3147,7 +3100,7 @@ class RSpec::Core::Example # Provide a human-readable representation of this class # - # source://rspec-core//lib/rspec/core/example.rb#220 + # source://rspec-core//lib/rspec/core/example.rb#223 def to_s; end # @private @@ -3244,22 +3197,22 @@ class RSpec::Core::Example::ExecutionResult # @return [Exception, nil] The failure, if there was one. # - # source://rspec-core//lib/rspec/core/metadata.rb#442 + # source://rspec-core//lib/rspec/core/example.rb#563 def exception; end # @return [Exception, nil] The failure, if there was one. # - # source://rspec-core//lib/rspec/core/metadata.rb#442 + # source://rspec-core//lib/rspec/core/example.rb#563 def exception=(_arg0); end # @return [Time] When the example finished. # - # source://rspec-core//lib/rspec/core/metadata.rb#442 + # source://rspec-core//lib/rspec/core/example.rb#569 def finished_at; end # @return [Time] When the example finished. # - # source://rspec-core//lib/rspec/core/metadata.rb#442 + # source://rspec-core//lib/rspec/core/example.rb#569 def finished_at=(_arg0); end # @return [Exception, nil] The exception triggered while @@ -3267,7 +3220,7 @@ class RSpec::Core::Example::ExecutionResult # it would no longer get a status of `:pending` unless it was # tagged with `:skip`. # - # source://rspec-core//lib/rspec/core/metadata.rb#442 + # source://rspec-core//lib/rspec/core/example.rb#582 def pending_exception; end # @return [Exception, nil] The exception triggered while @@ -3275,19 +3228,19 @@ class RSpec::Core::Example::ExecutionResult # it would no longer get a status of `:pending` unless it was # tagged with `:skip`. # - # source://rspec-core//lib/rspec/core/metadata.rb#442 + # source://rspec-core//lib/rspec/core/example.rb#582 def pending_exception=(_arg0); end # @return [Boolean] For examples tagged with `:pending`, # this indicates whether or not it now passes. # - # source://rspec-core//lib/rspec/core/metadata.rb#442 + # source://rspec-core//lib/rspec/core/example.rb#586 def pending_fixed; end # @return [Boolean] For examples tagged with `:pending`, # this indicates whether or not it now passes. # - # source://rspec-core//lib/rspec/core/metadata.rb#442 + # source://rspec-core//lib/rspec/core/example.rb#586 def pending_fixed=(_arg0); end # @return [Boolean] @@ -3298,13 +3251,13 @@ class RSpec::Core::Example::ExecutionResult # @return [String, nil] The reason the example was pending, # or nil if the example was not pending. # - # source://rspec-core//lib/rspec/core/metadata.rb#442 + # source://rspec-core//lib/rspec/core/example.rb#576 def pending_message; end # @return [String, nil] The reason the example was pending, # or nil if the example was not pending. # - # source://rspec-core//lib/rspec/core/metadata.rb#442 + # source://rspec-core//lib/rspec/core/example.rb#576 def pending_message=(_arg0); end # Records the finished status of the example. @@ -3316,32 +3269,32 @@ class RSpec::Core::Example::ExecutionResult # @return [Float] How long the example took in seconds. # - # source://rspec-core//lib/rspec/core/metadata.rb#442 + # source://rspec-core//lib/rspec/core/example.rb#572 def run_time; end # @return [Float] How long the example took in seconds. # - # source://rspec-core//lib/rspec/core/metadata.rb#442 + # source://rspec-core//lib/rspec/core/example.rb#572 def run_time=(_arg0); end # @return [Time] When the example started. # - # source://rspec-core//lib/rspec/core/metadata.rb#442 + # source://rspec-core//lib/rspec/core/example.rb#566 def started_at; end # @return [Time] When the example started. # - # source://rspec-core//lib/rspec/core/metadata.rb#442 + # source://rspec-core//lib/rspec/core/example.rb#566 def started_at=(_arg0); end # @return [Symbol] `:passed`, `:failed` or `:pending`. # - # source://rspec-core//lib/rspec/core/metadata.rb#442 + # source://rspec-core//lib/rspec/core/example.rb#560 def status; end # @return [Symbol] `:passed`, `:failed` or `:pending`. # - # source://rspec-core//lib/rspec/core/metadata.rb#442 + # source://rspec-core//lib/rspec/core/example.rb#560 def status=(_arg0); end private @@ -3408,9 +3361,6 @@ class RSpec::Core::Example::Procsy # source://rspec-core//lib/rspec/core/example.rb#346 def arity(*a, &b); end - # source://rspec-retry/0.6.2/lib/rspec_ext/rspec_ext.rb#15 - def attempts; end - # source://rspec-core//lib/rspec/core/example.rb#346 def binding(*a, &b); end @@ -3519,12 +3469,9 @@ class RSpec::Core::Example::Procsy # Calls the proc and notes that the example has been executed. # - # source://rspec-core//lib/rspec/core/example.rb#350 + # source://rspec-core//lib/rspec/core/example.rb#354 def run(*args, &block); end - # source://rspec-retry/0.6.2/lib/rspec_ext/rspec_ext.rb#11 - def run_with_retry(opts = T.unsafe(nil)); end - # source://rspec-core//lib/rspec/core/example.rb#339 def skip(*a, &b); end @@ -3583,15 +3530,9 @@ class RSpec::Core::ExampleGroup extend ::RSpec::Core::MemoizedHelpers::ClassMethods extend ::RSpec::Core::SharedExampleGroup - # source://rspec-core//lib/rspec/core/example_group.rb#707 + # source://rspec-core//lib/rspec/core/example_group.rb#714 def initialize(inspect_output = T.unsafe(nil)); end - # source://rspec-retry/0.6.2/lib/rspec_ext/rspec_ext.rb#34 - def clear_lets; end - - # source://rspec-retry/0.6.2/lib/rspec_ext/rspec_ext.rb#26 - def clear_memoized; end - # Returns the class or module passed to the `describe` method (or alias). # Returns nil if the subject is not a class or module. # @@ -3605,31 +3546,67 @@ class RSpec::Core::ExampleGroup # source://rspec-core//lib/rspec/core/example_group.rb#99 def described_class; end - # source://rspec-core//lib/rspec/core/example_group.rb#713 + # source://rspec-core//lib/rspec/core/example_group.rb#720 def inspect; end private - # source://rspec-core//lib/rspec/core/example_group.rb#758 + # source://rspec-core//lib/rspec/core/example_group.rb#765 def method_missing(name, *args, **_arg2); end class << self # Adds an example to the example group # - # source://rspec-core//lib/rspec/core/example_group.rb#367 + # source://rspec-core//lib/rspec/core/example_group.rb#374 def add_example(example); end # @private # - # source://rspec-core//lib/rspec/core/example_group.rb#529 + # source://rspec-core//lib/rspec/core/example_group.rb#536 def before_context_ivars; end # @private # - # source://rspec-core//lib/rspec/core/example_group.rb#466 + # source://rspec-core//lib/rspec/core/example_group.rb#473 def children; end - # source://rspec-core//lib/rspec/core/example_group.rb#247 + # An alias of `example_group`. Generally used when grouping examples + # contextually (e.g. "with xyz", "when xyz" or "if xyz"). + # Generates a subclass of this example group which inherits + # everything except the examples themselves. + # + # @example + # + # RSpec.describe "something" do # << This describe method is defined in + # # << RSpec::Core::DSL, included in the + # # << global namespace (optional) + # before do + # do_something_before + # end + # + # before(:example, :clean_env) do + # env.clear! + # end + # + # let(:thing) { Thing.new } + # + # context "attribute (of something)" do + # # examples in the group get the before hook + # # declared above, and can access `thing` + # end + # + # context "needs additional setup", :clean_env, :implementation => JSON do + # # specifies that hooks with matching metadata + # # should be be run additionally + # end + # end + # @overload context + # @overload context + # @overload context + # @return [RSpec::Core::ExampleGroup] + # @see example_group + # + # source://rspec-core//lib/rspec/core/example_group.rb#43 def context(*args, &example_group_block); end # Returns true if a `before(:context)` or `after(:context)` @@ -3637,18 +3614,18 @@ class RSpec::Core::ExampleGroup # # @return [Boolean] # - # source://rspec-core//lib/rspec/core/example_group.rb#542 + # source://rspec-core//lib/rspec/core/example_group.rb#549 def currently_executing_a_context_hook?; end # @private # - # source://rspec-core//lib/rspec/core/example_group.rb#667 + # source://rspec-core//lib/rspec/core/example_group.rb#674 def declaration_locations; end # @private # @see DSL#describe # - # source://rspec-core//lib/rspec/core/example_group.rb#246 + # source://rspec-core//lib/rspec/core/example_group.rb#248 def define_example_group_method(name, metadata = T.unsafe(nil)); end # @example @@ -3662,7 +3639,7 @@ class RSpec::Core::ExampleGroup # @private # - # source://rspec-core//lib/rspec/core/example_group.rb#317 + # source://rspec-core//lib/rspec/core/example_group.rb#324 def define_nested_shared_group_method(new_name, report_label = T.unsafe(nil)); end # @private @@ -3672,18 +3649,54 @@ class RSpec::Core::ExampleGroup # @private # - # source://rspec-core//lib/rspec/core/example_group.rb#460 + # source://rspec-core//lib/rspec/core/example_group.rb#467 def descendant_filtered_examples; end # @private # - # source://rspec-core//lib/rspec/core/example_group.rb#503 + # source://rspec-core//lib/rspec/core/example_group.rb#510 def descendants; end - # source://rspec-core//lib/rspec/core/example_group.rb#247 + # An alias of `example_group`. Generally used when grouping examples by a + # thing you are describing (e.g. an object, class or method). + # Generates a subclass of this example group which inherits + # everything except the examples themselves. + # + # @example + # + # RSpec.describe "something" do # << This describe method is defined in + # # << RSpec::Core::DSL, included in the + # # << global namespace (optional) + # before do + # do_something_before + # end + # + # before(:example, :clean_env) do + # env.clear! + # end + # + # let(:thing) { Thing.new } + # + # describe "attribute (of something)" do + # # examples in the group get the before hook + # # declared above, and can access `thing` + # end + # + # describe "needs additional setup", :clean_env, :implementation => JSON do + # # specifies that hooks with matching metadata + # # should be be run additionally + # end + # end + # @overload describe + # @overload describe + # @overload describe + # @return [RSpec::Core::ExampleGroup] + # @see example_group + # + # source://rspec-core//lib/rspec/core/example_group.rb#43 def describe(*args, &example_group_block); end - # source://rspec-core//lib/rspec/core/example_group.rb#78 + # source://rspec-core//lib/rspec/core/example_group.rb#43 def described_class; end # @return [String] the current example group description @@ -3693,12 +3706,12 @@ class RSpec::Core::ExampleGroup # @private # - # source://rspec-core//lib/rspec/core/example_group.rb#700 + # source://rspec-core//lib/rspec/core/example_group.rb#707 def each_instance_variable_for_example(group); end # @private # - # source://rspec-core//lib/rspec/core/example_group.rb#518 + # source://rspec-core//lib/rspec/core/example_group.rb#525 def ensure_example_groups_are_configured; end # Defines an example within a group. @@ -3725,21 +3738,124 @@ class RSpec::Core::ExampleGroup # @overload example # @yield [Example] the example object # - # source://rspec-core//lib/rspec/core/example_group.rb#146 + # source://rspec-core//lib/rspec/core/example_group.rb#43 def example(*all_args, &block); end - # source://rspec-core//lib/rspec/core/example_group.rb#247 + # Generates a subclass of this example group which inherits + # everything except the examples themselves. + # + # @example + # + # RSpec.describe "something" do # << This describe method is defined in + # # << RSpec::Core::DSL, included in the + # # << global namespace (optional) + # before do + # do_something_before + # end + # + # before(:example, :clean_env) do + # env.clear! + # end + # + # let(:thing) { Thing.new } + # + # example_group "attribute (of something)" do + # # examples in the group get the before hook + # # declared above, and can access `thing` + # end + # + # example_group "needs additional setup", :clean_env, :implementation => JSON do + # # specifies that hooks with matching metadata + # # should be be run additionally + # end + # end + # @overload example_group + # @overload example_group + # @overload example_group + # @return [RSpec::Core::ExampleGroup] + # + # source://rspec-core//lib/rspec/core/example_group.rb#43 def example_group(*args, &example_group_block); end # @private # - # source://rspec-core//lib/rspec/core/example_group.rb#450 + # source://rspec-core//lib/rspec/core/example_group.rb#457 def examples; end - # source://rspec-core//lib/rspec/core/example_group.rb#247 + # Shortcut to define an example group with `:focus => true`. + # Generates a subclass of this example group which inherits + # everything except the examples themselves. + # + # @example + # + # RSpec.describe "something" do # << This describe method is defined in + # # << RSpec::Core::DSL, included in the + # # << global namespace (optional) + # before do + # do_something_before + # end + # + # before(:example, :clean_env) do + # env.clear! + # end + # + # let(:thing) { Thing.new } + # + # fcontext "attribute (of something)" do + # # examples in the group get the before hook + # # declared above, and can access `thing` + # end + # + # fcontext "needs additional setup", :clean_env, :implementation => JSON do + # # specifies that hooks with matching metadata + # # should be be run additionally + # end + # end + # @overload fcontext + # @overload fcontext + # @overload fcontext + # @return [RSpec::Core::ExampleGroup] + # @see example_group + # + # source://rspec-core//lib/rspec/core/example_group.rb#43 def fcontext(*args, &example_group_block); end - # source://rspec-core//lib/rspec/core/example_group.rb#247 + # Shortcut to define an example group with `:focus => true`. + # Generates a subclass of this example group which inherits + # everything except the examples themselves. + # + # @example + # + # RSpec.describe "something" do # << This describe method is defined in + # # << RSpec::Core::DSL, included in the + # # << global namespace (optional) + # before do + # do_something_before + # end + # + # before(:example, :clean_env) do + # env.clear! + # end + # + # let(:thing) { Thing.new } + # + # fdescribe "attribute (of something)" do + # # examples in the group get the before hook + # # declared above, and can access `thing` + # end + # + # fdescribe "needs additional setup", :clean_env, :implementation => JSON do + # # specifies that hooks with matching metadata + # # should be be run additionally + # end + # end + # @overload fdescribe + # @overload fdescribe + # @overload fdescribe + # @return [RSpec::Core::ExampleGroup] + # @see example_group + # + # source://rspec-core//lib/rspec/core/example_group.rb#43 def fdescribe(*args, &example_group_block); end # Shortcut to define an example with `:focus => true`. @@ -3767,20 +3883,20 @@ class RSpec::Core::ExampleGroup # @see example # @yield [Example] the example object # - # source://rspec-core//lib/rspec/core/example_group.rb#146 + # source://rspec-core//lib/rspec/core/example_group.rb#43 def fexample(*all_args, &block); end - # source://rspec-core//lib/rspec/core/example_group.rb#78 + # source://rspec-core//lib/rspec/core/example_group.rb#43 def file_path; end # @private # - # source://rspec-core//lib/rspec/core/example_group.rb#455 + # source://rspec-core//lib/rspec/core/example_group.rb#462 def filtered_examples; end # @private # - # source://rspec-core//lib/rspec/core/example_group.rb#379 + # source://rspec-core//lib/rspec/core/example_group.rb#386 def find_and_eval_shared(label, name, inclusion_location, *args, &customization_block); end # Shortcut to define an example with `:focus => true`. @@ -3808,7 +3924,7 @@ class RSpec::Core::ExampleGroup # @see example # @yield [Example] the example object # - # source://rspec-core//lib/rspec/core/example_group.rb#146 + # source://rspec-core//lib/rspec/core/example_group.rb#43 def fit(*all_args, &block); end # Shortcut to define an example with `:focus => true`. @@ -3836,12 +3952,12 @@ class RSpec::Core::ExampleGroup # @see example # @yield [Example] the example object # - # source://rspec-core//lib/rspec/core/example_group.rb#146 + # source://rspec-core//lib/rspec/core/example_group.rb#43 def focus(*all_args, &block); end # @private # - # source://rspec-core//lib/rspec/core/example_group.rb#655 + # source://rspec-core//lib/rspec/core/example_group.rb#662 def for_filtered_examples(reporter, &block); end # Shortcut to define an example with `:focus => true`. @@ -3869,13 +3985,13 @@ class RSpec::Core::ExampleGroup # @see example # @yield [Example] the example object # - # source://rspec-core//lib/rspec/core/example_group.rb#146 + # source://rspec-core//lib/rspec/core/example_group.rb#43 def fspecify(*all_args, &block); end # @return [String] the unique id of this example group. Pass # this at the command line to re-run this exact example group. # - # source://rspec-core//lib/rspec/core/example_group.rb#675 + # source://rspec-core//lib/rspec/core/example_group.rb#682 def id; end # Define a singleton method for the singleton class (remove the method if @@ -3893,7 +4009,7 @@ class RSpec::Core::ExampleGroup # # @see SharedExampleGroup # - # source://rspec-core//lib/rspec/core/example_group.rb#343 + # source://rspec-core//lib/rspec/core/example_group.rb#350 def include_context(name, *args, &block); end # Includes shared content mapped to `name` directly in the group in which @@ -3903,7 +4019,7 @@ class RSpec::Core::ExampleGroup # # @see SharedExampleGroup # - # source://rspec-core//lib/rspec/core/example_group.rb#353 + # source://rspec-core//lib/rspec/core/example_group.rb#360 def include_examples(name, *args, &block); end # Defines an example within a group. @@ -3931,16 +4047,26 @@ class RSpec::Core::ExampleGroup # @overload it # @yield [Example] the example object # - # source://rspec-core//lib/rspec/core/example_group.rb#146 + # source://rspec-core//lib/rspec/core/example_group.rb#43 def it(*all_args, &block); end - # source://rspec-core//lib/rspec/core/example_group.rb#318 + # @param name [String, Symbol] The name of the shared group to include. + # @param args [Array] Pass parameters to a shared example group + # @param block [Block] Additional context to pass to the shared group. + # @return [RSpec::Core::ExampleGroup] + # + # source://rspec-core//lib/rspec/core/example_group.rb#43 def it_behaves_like(name, *args, &customization_block); end - # source://rspec-core//lib/rspec/core/example_group.rb#318 + # @param name [String, Symbol] The name of the shared group to include. + # @param args [Array] Pass parameters to a shared example group + # @param block [Block] Additional context to pass to the shared group. + # @return [RSpec::Core::ExampleGroup] + # + # source://rspec-core//lib/rspec/core/example_group.rb#43 def it_should_behave_like(name, *args, &customization_block); end - # source://rspec-core//lib/rspec/core/example_group.rb#78 + # source://rspec-core//lib/rspec/core/example_group.rb#43 def location; end # The [Metadata](Metadata) object associated with this group. @@ -3952,17 +4078,17 @@ class RSpec::Core::ExampleGroup # @private # - # source://rspec-core//lib/rspec/core/example_group.rb#485 + # source://rspec-core//lib/rspec/core/example_group.rb#492 def next_runnable_index_for(file); end # @private # - # source://rspec-core//lib/rspec/core/example_group.rb#625 + # source://rspec-core//lib/rspec/core/example_group.rb#632 def ordering_strategy; end # @private # - # source://rspec-core//lib/rspec/core/example_group.rb#508 + # source://rspec-core//lib/rspec/core/example_group.rb#515 def parent_groups; end # Shortcut to define an example with `:pending => true` @@ -3990,49 +4116,49 @@ class RSpec::Core::ExampleGroup # @see example # @yield [Example] the example object # - # source://rspec-core//lib/rspec/core/example_group.rb#146 + # source://rspec-core//lib/rspec/core/example_group.rb#43 def pending(*all_args, &block); end # Removes an example from the example group # - # source://rspec-core//lib/rspec/core/example_group.rb#373 + # source://rspec-core//lib/rspec/core/example_group.rb#380 def remove_example(example); end # Clear memoized values when adding/removing examples # # @private # - # source://rspec-core//lib/rspec/core/example_group.rb#359 + # source://rspec-core//lib/rspec/core/example_group.rb#366 def reset_memoized; end # Runs all the examples in this group. # - # source://rspec-core//lib/rspec/core/example_group.rb#599 + # source://rspec-core//lib/rspec/core/example_group.rb#606 def run(reporter = T.unsafe(nil)); end # @private # - # source://rspec-core//lib/rspec/core/example_group.rb#585 + # source://rspec-core//lib/rspec/core/example_group.rb#592 def run_after_context_hooks(example_group_instance); end # @private # - # source://rspec-core//lib/rspec/core/example_group.rb#547 + # source://rspec-core//lib/rspec/core/example_group.rb#554 def run_before_context_hooks(example_group_instance); end # @private # - # source://rspec-core//lib/rspec/core/example_group.rb#641 + # source://rspec-core//lib/rspec/core/example_group.rb#648 def run_examples(reporter); end # @private # - # source://rspec-core//lib/rspec/core/example_group.rb#410 + # source://rspec-core//lib/rspec/core/example_group.rb#417 def set_it_up(description, args, registration_collection, &example_group_block); end # @private # - # source://rspec-core//lib/rspec/core/example_group.rb#685 + # source://rspec-core//lib/rspec/core/example_group.rb#692 def set_ivars(instance, ivars); end # Shortcut to define an example with `:skip => true` @@ -4060,7 +4186,7 @@ class RSpec::Core::ExampleGroup # @see example # @yield [Example] the example object # - # source://rspec-core//lib/rspec/core/example_group.rb#146 + # source://rspec-core//lib/rspec/core/example_group.rb#43 def skip(*all_args, &block); end # Defines an example within a group. @@ -4094,24 +4220,24 @@ class RSpec::Core::ExampleGroup # @overload specify # @yield [Example] the example object # - # source://rspec-core//lib/rspec/core/example_group.rb#146 + # source://rspec-core//lib/rspec/core/example_group.rb#43 def specify(*all_args, &block); end # @private # - # source://rspec-core//lib/rspec/core/example_group.rb#534 + # source://rspec-core//lib/rspec/core/example_group.rb#541 def store_before_context_ivars(example_group_instance); end # @private # - # source://rspec-core//lib/rspec/core/example_group.rb#395 + # source://rspec-core//lib/rspec/core/example_group.rb#402 def subclass(parent, description, args, registration_collection, &example_group_block); end # :nocov: # # @private # - # source://rspec-core//lib/rspec/core/example_group.rb#562 + # source://rspec-core//lib/rspec/core/example_group.rb#569 def superclass_before_context_ivars; end # @private @@ -4123,12 +4249,12 @@ class RSpec::Core::ExampleGroup # @private # @return [Boolean] # - # source://rspec-core//lib/rspec/core/example_group.rb#513 + # source://rspec-core//lib/rspec/core/example_group.rb#520 def top_level?; end # @private # - # source://rspec-core//lib/rspec/core/example_group.rb#680 + # source://rspec-core//lib/rspec/core/example_group.rb#687 def top_level_description; end # Traverses the tree of groups, starting with `self`, then the children, recursively. @@ -4139,12 +4265,12 @@ class RSpec::Core::ExampleGroup # # @private # - # source://rspec-core//lib/rspec/core/example_group.rb#476 + # source://rspec-core//lib/rspec/core/example_group.rb#483 def traverse_tree_until(&block); end # @private # - # source://rspec-core//lib/rspec/core/example_group.rb#727 + # source://rspec-core//lib/rspec/core/example_group.rb#734 def update_inherited_metadata(updates); end # Temporarily replace the provided metadata. @@ -4158,10 +4284,80 @@ class RSpec::Core::ExampleGroup # source://rspec-core//lib/rspec/core/example_group.rb#61 def with_replaced_metadata(meta); end - # source://rspec-core//lib/rspec/core/example_group.rb#247 + # Shortcut to temporarily make an example group skipped. + # Generates a subclass of this example group which inherits + # everything except the examples themselves. + # + # @example + # + # RSpec.describe "something" do # << This describe method is defined in + # # << RSpec::Core::DSL, included in the + # # << global namespace (optional) + # before do + # do_something_before + # end + # + # before(:example, :clean_env) do + # env.clear! + # end + # + # let(:thing) { Thing.new } + # + # xcontext "attribute (of something)" do + # # examples in the group get the before hook + # # declared above, and can access `thing` + # end + # + # xcontext "needs additional setup", :clean_env, :implementation => JSON do + # # specifies that hooks with matching metadata + # # should be be run additionally + # end + # end + # @overload xcontext + # @overload xcontext + # @overload xcontext + # @return [RSpec::Core::ExampleGroup] + # @see example_group + # + # source://rspec-core//lib/rspec/core/example_group.rb#43 def xcontext(*args, &example_group_block); end - # source://rspec-core//lib/rspec/core/example_group.rb#247 + # Shortcut to temporarily make an example group skipped. + # Generates a subclass of this example group which inherits + # everything except the examples themselves. + # + # @example + # + # RSpec.describe "something" do # << This describe method is defined in + # # << RSpec::Core::DSL, included in the + # # << global namespace (optional) + # before do + # do_something_before + # end + # + # before(:example, :clean_env) do + # env.clear! + # end + # + # let(:thing) { Thing.new } + # + # xdescribe "attribute (of something)" do + # # examples in the group get the before hook + # # declared above, and can access `thing` + # end + # + # xdescribe "needs additional setup", :clean_env, :implementation => JSON do + # # specifies that hooks with matching metadata + # # should be be run additionally + # end + # end + # @overload xdescribe + # @overload xdescribe + # @overload xdescribe + # @return [RSpec::Core::ExampleGroup] + # @see example_group + # + # source://rspec-core//lib/rspec/core/example_group.rb#43 def xdescribe(*args, &example_group_block); end # Shortcut to define an example with `:skip => 'Temporarily skipped with xexample'`. @@ -4189,7 +4385,7 @@ class RSpec::Core::ExampleGroup # @see example # @yield [Example] the example object # - # source://rspec-core//lib/rspec/core/example_group.rb#146 + # source://rspec-core//lib/rspec/core/example_group.rb#43 def xexample(*all_args, &block); end # Shortcut to define an example with `:skip => 'Temporarily skipped with xit'`. @@ -4217,7 +4413,7 @@ class RSpec::Core::ExampleGroup # @see example # @yield [Example] the example object # - # source://rspec-core//lib/rspec/core/example_group.rb#146 + # source://rspec-core//lib/rspec/core/example_group.rb#43 def xit(*all_args, &block); end # Shortcut to define an example with `:skip => 'Temporarily skipped with xspecify'`. @@ -4245,26 +4441,26 @@ class RSpec::Core::ExampleGroup # @see example # @yield [Example] the example object # - # source://rspec-core//lib/rspec/core/example_group.rb#146 + # source://rspec-core//lib/rspec/core/example_group.rb#43 def xspecify(*all_args, &block); end private - # source://rspec-core//lib/rspec/core/example_group.rb#742 + # source://rspec-core//lib/rspec/core/example_group.rb#749 def method_missing(name, *args); end end end # @private # -# source://rspec-core//lib/rspec/core/example_group.rb#696 +# source://rspec-core//lib/rspec/core/example_group.rb#703 RSpec::Core::ExampleGroup::INSTANCE_VARIABLE_TO_IGNORE = T.let(T.unsafe(nil), Symbol) # Raised when an RSpec API is called in the wrong scope, such as `before` # being called from within an example rather than from within an example # group block. # -# source://rspec-core//lib/rspec/core/example_group.rb#740 +# source://rspec-core//lib/rspec/core/example_group.rb#747 class RSpec::Core::ExampleGroup::WrongScopeError < ::NoMethodError; end # Dumps a list of hashes in a pretty, human readable format @@ -4637,7 +4833,7 @@ class RSpec::Core::FilterableItemRepository::QueryOptimized < ::RSpec::Core::Fil # source://rspec-core//lib/rspec/core/metadata_filter.rb#217 def applicable_metadata_from(metadata); end - # source://rspec-core//lib/rspec/core/metadata_filter.rb#118 + # source://rspec-core//lib/rspec/core/metadata_filter.rb#152 def find_items_for(request_meta); end # source://rspec-core//lib/rspec/core/metadata_filter.rb#211 @@ -4701,7 +4897,7 @@ module RSpec::Core::FlatMap class << self # :nocov: # - # source://rspec-core//lib/rspec/core/flat_map.rb#6 + # source://rspec-core//lib/rspec/core/flat_map.rb#17 def flat_map(array, &block); end end end @@ -5012,7 +5208,7 @@ class RSpec::Core::Formatters::DeprecationFormatter # Returns the value of attribute deprecation_stream. # - # source://rspec-core//lib/rspec/core/formatters/deprecation_formatter.rb#10 + # source://rspec-core//lib/rspec/core/formatters/deprecation_formatter.rb#18 def output; end # source://rspec-core//lib/rspec/core/formatters/deprecation_formatter.rb#20 @@ -5103,19 +5299,32 @@ class RSpec::Core::Formatters::DeprecationFormatter::GeneratedDeprecationMessage # Returns the value of attribute type # # @return [Object] the current value of type + # + # source://rspec-core//lib/rspec/core/formatters/deprecation_formatter.rb#94 def type; end # Sets the attribute type # # @param value [Object] the value to set the attribute type to. # @return [Object] the newly set value + # + # source://rspec-core//lib/rspec/core/formatters/deprecation_formatter.rb#94 def type=(_); end class << self + # source://rspec-core//lib/rspec/core/formatters/deprecation_formatter.rb#94 def [](*_arg0); end + + # source://rspec-core//lib/rspec/core/formatters/deprecation_formatter.rb#94 def inspect; end + + # source://rspec-core//lib/rspec/core/formatters/deprecation_formatter.rb#94 def keyword_init?; end + + # source://rspec-core//lib/rspec/core/formatters/deprecation_formatter.rb#94 def members; end + + # source://rspec-core//lib/rspec/core/formatters/deprecation_formatter.rb#94 def new(*_arg0); end end end @@ -5187,12 +5396,16 @@ class RSpec::Core::Formatters::DeprecationFormatter::SpecifiedDeprecationMessage # Returns the value of attribute type # # @return [Object] the current value of type + # + # source://rspec-core//lib/rspec/core/formatters/deprecation_formatter.rb#66 def type; end # Sets the attribute type # # @param value [Object] the value to set the attribute type to. # @return [Object] the newly set value + # + # source://rspec-core//lib/rspec/core/formatters/deprecation_formatter.rb#66 def type=(_); end private @@ -5204,10 +5417,19 @@ class RSpec::Core::Formatters::DeprecationFormatter::SpecifiedDeprecationMessage def output_formatted(str); end class << self + # source://rspec-core//lib/rspec/core/formatters/deprecation_formatter.rb#66 def [](*_arg0); end + + # source://rspec-core//lib/rspec/core/formatters/deprecation_formatter.rb#66 def inspect; end + + # source://rspec-core//lib/rspec/core/formatters/deprecation_formatter.rb#66 def keyword_init?; end + + # source://rspec-core//lib/rspec/core/formatters/deprecation_formatter.rb#66 def members; end + + # source://rspec-core//lib/rspec/core/formatters/deprecation_formatter.rb#66 def new(*_arg0); end end end @@ -5330,7 +5552,7 @@ class RSpec::Core::Formatters::ExceptionPresenter # :nocov: # - # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#286 + # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#287 def encoded_description(description); end # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#120 @@ -5341,7 +5563,7 @@ class RSpec::Core::Formatters::ExceptionPresenter # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#116 def encoding_of(string); end - # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#298 + # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#299 def exception_backtrace; end # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#150 @@ -5375,7 +5597,7 @@ class RSpec::Core::Formatters::ExceptionPresenter # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#262 def find_failed_line; end - # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#277 + # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#278 def formatted_message_and_backtrace(colorizer); end # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#134 @@ -5397,49 +5619,49 @@ end # # @private # -# source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#307 +# source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#308 class RSpec::Core::Formatters::ExceptionPresenter::Factory # @return [Factory] a new instance of Factory # - # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#314 + # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#315 def initialize(example); end - # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#308 + # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#309 def build; end private - # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#369 + # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#370 def multiple_exception_summarizer(exception, prior_detail_formatter, color); end # @return [Boolean] # - # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#365 + # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#366 def multiple_exceptions_error?(exception); end - # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#324 + # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#325 def options; end - # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#328 + # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#329 def pending_options; end - # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#390 + # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#391 def sub_failure_list_formatter(exception, message_color); end - # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#349 + # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#350 def with_multiple_error_options_as_needed(exception, options); end end # @private # -# source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#423 +# source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#424 class RSpec::Core::Formatters::ExceptionPresenter::Factory::CommonBacktraceTruncater # @return [CommonBacktraceTruncater] a new instance of CommonBacktraceTruncater # - # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#424 + # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#425 def initialize(parent); end - # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#428 + # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#429 def with_truncated_backtrace(child); end end @@ -5448,17 +5670,17 @@ end # # @private # -# source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#416 +# source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#417 module RSpec::Core::Formatters::ExceptionPresenter::Factory::EmptyBacktraceFormatter class << self - # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#417 + # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#418 def format_backtrace(*_arg0); end end end # @private # -# source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#448 +# source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#449 RSpec::Core::Formatters::ExceptionPresenter::PENDING_DETAIL_FORMATTER = T.let(T.unsafe(nil), Proc) # @private @@ -6759,7 +6981,7 @@ module RSpec::Core::Hooks # @see SharedExampleGroup # @see Configuration # - # source://rspec-core//lib/rspec/core/hooks.rb#200 + # source://rspec-core//lib/rspec/core/hooks.rb#204 def append_before(*args, &block); end # Declare a block of code, parts of which will be run before and parts @@ -7039,7 +7261,7 @@ module RSpec::Core::Hooks # @see SharedExampleGroup # @see Configuration # - # source://rspec-core//lib/rspec/core/hooks.rb#277 + # source://rspec-core//lib/rspec/core/hooks.rb#281 def prepend_after(*args, &block); end # Adds `block` to the front of the list of `before` blocks in the same @@ -7095,30 +7317,47 @@ class RSpec::Core::Hooks::Hook < ::Struct # Returns the value of attribute block # # @return [Object] the current value of block + # + # source://rspec-core//lib/rspec/core/hooks.rb#360 def block; end # Sets the attribute block # # @param value [Object] the value to set the attribute block to. # @return [Object] the newly set value + # + # source://rspec-core//lib/rspec/core/hooks.rb#360 def block=(_); end # Returns the value of attribute options # # @return [Object] the current value of options + # + # source://rspec-core//lib/rspec/core/hooks.rb#360 def options; end # Sets the attribute options # # @param value [Object] the value to set the attribute options to. # @return [Object] the newly set value + # + # source://rspec-core//lib/rspec/core/hooks.rb#360 def options=(_); end class << self + # source://rspec-core//lib/rspec/core/hooks.rb#360 def [](*_arg0); end + + # source://rspec-core//lib/rspec/core/hooks.rb#360 def inspect; end + + # source://rspec-core//lib/rspec/core/hooks.rb#360 def keyword_init?; end + + # source://rspec-core//lib/rspec/core/hooks.rb#360 def members; end + + # source://rspec-core//lib/rspec/core/hooks.rb#360 def new(*_arg0); end end end @@ -7303,30 +7542,47 @@ class RSpec::Core::Invocations::PrintHelp < ::Struct # Returns the value of attribute hidden_options # # @return [Object] the current value of hidden_options + # + # source://rspec-core//lib/rspec/core/invocations.rb#78 def hidden_options; end # Sets the attribute hidden_options # # @param value [Object] the value to set the attribute hidden_options to. # @return [Object] the newly set value + # + # source://rspec-core//lib/rspec/core/invocations.rb#78 def hidden_options=(_); end # Returns the value of attribute parser # # @return [Object] the current value of parser + # + # source://rspec-core//lib/rspec/core/invocations.rb#78 def parser; end # Sets the attribute parser # # @param value [Object] the value to set the attribute parser to. # @return [Object] the newly set value + # + # source://rspec-core//lib/rspec/core/invocations.rb#78 def parser=(_); end class << self + # source://rspec-core//lib/rspec/core/invocations.rb#78 def [](*_arg0); end + + # source://rspec-core//lib/rspec/core/invocations.rb#78 def inspect; end + + # source://rspec-core//lib/rspec/core/invocations.rb#78 def keyword_init?; end + + # source://rspec-core//lib/rspec/core/invocations.rb#78 def members; end + + # source://rspec-core//lib/rspec/core/invocations.rb#78 def new(*_arg0); end end end @@ -8087,57 +8343,57 @@ end # individual spec has multiple exceptions, such as one in the `it` block # and one in an `after` block. # -# source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#458 +# source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#459 class RSpec::Core::MultipleExceptionError < ::StandardError include ::RSpec::Core::MultipleExceptionError::InterfaceTag # @param exceptions [Array] The initial list of exceptions. # @return [MultipleExceptionError] a new instance of MultipleExceptionError # - # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#519 + # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#520 def initialize(*exceptions); end # @return [nil] Provided only for interface compatibility with # `RSpec::Expectations::MultipleExpectationsNotMetError`. # - # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#516 + # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#517 def aggregation_block_label; end # @return [Hash] Metadata used by RSpec for formatting purposes. # - # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#512 + # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#513 def aggregation_metadata; end # @return [Array] The list of failures and other exceptions, combined. # - # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#509 + # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#510 def all_exceptions; end # return [String] A description of the failure/error counts. # - # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#544 + # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#545 def exception_count_description; end # @return [Array] The list of failures. # - # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#503 + # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#504 def failures; end # @note RSpec does not actually use this -- instead it formats each exception # individually. # @return [String] Combines all the exception messages into a single string. # - # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#534 + # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#535 def message; end # @return [Array] The list of other errors. # - # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#506 + # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#507 def other_errors; end # @return [String] A summary of the failure, including the block label and a count of failures. # - # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#539 + # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#540 def summary; end end @@ -8148,14 +8404,14 @@ end # # @private # -# source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#464 +# source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#465 module RSpec::Core::MultipleExceptionError::InterfaceTag # Appends the provided exception to the list. # # @param exception [Exception] Exception to append to the list. # @private # - # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#468 + # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#469 def add(exception); end class << self @@ -8165,7 +8421,7 @@ module RSpec::Core::MultipleExceptionError::InterfaceTag # # @private # - # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#494 + # source://rspec-core//lib/rspec/core/formatters/exception_presenter.rb#495 def for(ex); end end end @@ -8210,6 +8466,8 @@ class RSpec::Core::Notifications::DeprecationNotification < ::Struct # was issued # # @return [String] the current value of call_site + # + # source://rspec-core//lib/rspec/core/notifications.rb#493 def call_site; end # An optional call site from which the deprecation @@ -8217,12 +8475,16 @@ class RSpec::Core::Notifications::DeprecationNotification < ::Struct # # @param value [String] the value to set the attribute call_site to. # @return [String] the newly set value + # + # source://rspec-core//lib/rspec/core/notifications.rb#493 def call_site=(_); end # A custom message about the deprecation (alias of # message) # # @return [String] the current value of deprecated + # + # source://rspec-core//lib/rspec/core/notifications.rb#493 def deprecated; end # A custom message about the deprecation (alias of @@ -8230,31 +8492,42 @@ class RSpec::Core::Notifications::DeprecationNotification < ::Struct # # @param value [String] the value to set the attribute deprecated to. # @return [String] the newly set value + # + # source://rspec-core//lib/rspec/core/notifications.rb#493 def deprecated=(_); end # A custom message about the deprecation # # @return [String] the current value of message + # + # source://rspec-core//lib/rspec/core/notifications.rb#493 def message; end # A custom message about the deprecation # # @param value [String] the value to set the attribute message to. # @return [String] the newly set value + # + # source://rspec-core//lib/rspec/core/notifications.rb#493 def message=(_); end # An optional replacement for the deprecation # # @return [String] the current value of replacement + # + # source://rspec-core//lib/rspec/core/notifications.rb#493 def replacement; end # An optional replacement for the deprecation # # @param value [String] the value to set the attribute replacement to. # @return [String] the newly set value + # + # source://rspec-core//lib/rspec/core/notifications.rb#493 def replacement=(_); end class << self + # source://rspec-core//lib/rspec/core/notifications.rb#493 def [](*_arg0); end # Convenience way to initialize the notification @@ -8264,12 +8537,18 @@ class RSpec::Core::Notifications::DeprecationNotification < ::Struct # source://rspec-core//lib/rspec/core/notifications.rb#499 def from_hash(data); end + # source://rspec-core//lib/rspec/core/notifications.rb#493 def inspect; end + + # source://rspec-core//lib/rspec/core/notifications.rb#493 def keyword_init?; end + + # source://rspec-core//lib/rspec/core/notifications.rb#493 def members; end private + # source://rspec-core//lib/rspec/core/notifications.rb#493 def new(*_arg0); end end end @@ -8289,15 +8568,20 @@ class RSpec::Core::Notifications::ExampleNotification < ::Struct # the current example # # @return [RSpec::Core::Example] the current value of example + # + # source://rspec-core//lib/rspec/core/notifications.rb#38 def example; end # the current example # # @param value [RSpec::Core::Example] the value to set the attribute example to. # @return [RSpec::Core::Example] the newly set value + # + # source://rspec-core//lib/rspec/core/notifications.rb#38 def example=(_); end class << self + # source://rspec-core//lib/rspec/core/notifications.rb#38 def [](*_arg0); end # @private @@ -8305,12 +8589,18 @@ class RSpec::Core::Notifications::ExampleNotification < ::Struct # source://rspec-core//lib/rspec/core/notifications.rb#41 def for(example); end + # source://rspec-core//lib/rspec/core/notifications.rb#38 def inspect; end + + # source://rspec-core//lib/rspec/core/notifications.rb#38 def keyword_init?; end + + # source://rspec-core//lib/rspec/core/notifications.rb#38 def members; end private + # source://rspec-core//lib/rspec/core/notifications.rb#38 def new(*_arg0); end end end @@ -8454,6 +8744,7 @@ class RSpec::Core::Notifications::FailedExampleNotification < ::RSpec::Core::Not def message_lines; end class << self + # source://rspec-core//lib/rspec/core/notifications.rb#157 def new(*_arg0); end end end @@ -8474,19 +8765,32 @@ class RSpec::Core::Notifications::GroupNotification < ::Struct # the current group # # @return [RSpec::Core::ExampleGroup] the current value of group + # + # source://rspec-core//lib/rspec/core/notifications.rb#258 def group; end # the current group # # @param value [RSpec::Core::ExampleGroup] the value to set the attribute group to. # @return [RSpec::Core::ExampleGroup] the newly set value + # + # source://rspec-core//lib/rspec/core/notifications.rb#258 def group=(_); end class << self + # source://rspec-core//lib/rspec/core/notifications.rb#258 def [](*_arg0); end + + # source://rspec-core//lib/rspec/core/notifications.rb#258 def inspect; end + + # source://rspec-core//lib/rspec/core/notifications.rb#258 def keyword_init?; end + + # source://rspec-core//lib/rspec/core/notifications.rb#258 def members; end + + # source://rspec-core//lib/rspec/core/notifications.rb#258 def new(*_arg0); end end end @@ -8501,19 +8805,32 @@ class RSpec::Core::Notifications::MessageNotification < ::Struct # the message # # @return [String] the current value of message + # + # source://rspec-core//lib/rspec/core/notifications.rb#264 def message; end # the message # # @param value [String] the value to set the attribute message to. # @return [String] the newly set value + # + # source://rspec-core//lib/rspec/core/notifications.rb#264 def message=(_); end class << self + # source://rspec-core//lib/rspec/core/notifications.rb#264 def [](*_arg0); end + + # source://rspec-core//lib/rspec/core/notifications.rb#264 def inspect; end + + # source://rspec-core//lib/rspec/core/notifications.rb#264 def keyword_init?; end + + # source://rspec-core//lib/rspec/core/notifications.rb#264 def members; end + + # source://rspec-core//lib/rspec/core/notifications.rb#264 def new(*_arg0); end end end @@ -8629,12 +8946,16 @@ class RSpec::Core::Notifications::SeedNotification < ::Struct # the seed used to randomize ordering # # @return [Fixnum] the current value of seed + # + # source://rspec-core//lib/rspec/core/notifications.rb#271 def seed; end # the seed used to randomize ordering # # @param value [Fixnum] the value to set the attribute seed to. # @return [Fixnum] the newly set value + # + # source://rspec-core//lib/rspec/core/notifications.rb#271 def seed=(_); end # @api @@ -8647,6 +8968,8 @@ class RSpec::Core::Notifications::SeedNotification < ::Struct # # @param value [Boolean] the value to set the attribute used to. # @return [Boolean] the newly set value + # + # source://rspec-core//lib/rspec/core/notifications.rb#271 def used=(_); end private @@ -8654,13 +8977,24 @@ class RSpec::Core::Notifications::SeedNotification < ::Struct # whether the seed has been used or not # # @return [Boolean] the current value of used + # + # source://rspec-core//lib/rspec/core/notifications.rb#271 def used; end class << self + # source://rspec-core//lib/rspec/core/notifications.rb#271 def [](*_arg0); end + + # source://rspec-core//lib/rspec/core/notifications.rb#271 def inspect; end + + # source://rspec-core//lib/rspec/core/notifications.rb#271 def keyword_init?; end + + # source://rspec-core//lib/rspec/core/notifications.rb#271 def members; end + + # source://rspec-core//lib/rspec/core/notifications.rb#271 def new(*_arg0); end end end @@ -8680,6 +9014,7 @@ class RSpec::Core::Notifications::SkippedExampleNotification < ::RSpec::Core::No def fully_formatted(pending_number, colorizer = T.unsafe(nil)); end class << self + # source://rspec-core//lib/rspec/core/notifications.rb#231 def new(*_arg0); end end end @@ -8697,18 +9032,24 @@ class RSpec::Core::Notifications::StartNotification < ::Struct # the number counted # # @return [Fixnum] the current value of count + # + # source://rspec-core//lib/rspec/core/notifications.rb#26 def count; end # the number counted # # @param value [Fixnum] the value to set the attribute count to. # @return [Fixnum] the newly set value + # + # source://rspec-core//lib/rspec/core/notifications.rb#26 def count=(_); end # the number of seconds taken to boot RSpec # and load the spec files # # @return [Float] the current value of load_time + # + # source://rspec-core//lib/rspec/core/notifications.rb#26 def load_time; end # the number of seconds taken to boot RSpec @@ -8716,13 +9057,24 @@ class RSpec::Core::Notifications::StartNotification < ::Struct # # @param value [Float] the value to set the attribute load_time to. # @return [Float] the newly set value + # + # source://rspec-core//lib/rspec/core/notifications.rb#26 def load_time=(_); end class << self + # source://rspec-core//lib/rspec/core/notifications.rb#26 def [](*_arg0); end + + # source://rspec-core//lib/rspec/core/notifications.rb#26 def inspect; end + + # source://rspec-core//lib/rspec/core/notifications.rb#26 def keyword_init?; end + + # source://rspec-core//lib/rspec/core/notifications.rb#26 def members; end + + # source://rspec-core//lib/rspec/core/notifications.rb#26 def new(*_arg0); end end end @@ -8770,12 +9122,16 @@ class RSpec::Core::Notifications::SummaryNotification < ::Struct # the time taken (in seconds) to run the suite # # @return [Float] the current value of duration + # + # source://rspec-core//lib/rspec/core/notifications.rb#300 def duration; end # the time taken (in seconds) to run the suite # # @param value [Float] the value to set the attribute duration to. # @return [Float] the newly set value + # + # source://rspec-core//lib/rspec/core/notifications.rb#300 def duration=(_); end # the number of errors that @@ -8783,6 +9139,8 @@ class RSpec::Core::Notifications::SummaryNotification < ::Struct # the spec suite # # @return [Integer] the current value of errors_outside_of_examples_count + # + # source://rspec-core//lib/rspec/core/notifications.rb#300 def errors_outside_of_examples_count; end # the number of errors that @@ -8791,6 +9149,8 @@ class RSpec::Core::Notifications::SummaryNotification < ::Struct # # @param value [Integer] the value to set the attribute errors_outside_of_examples_count to. # @return [Integer] the newly set value + # + # source://rspec-core//lib/rspec/core/notifications.rb#300 def errors_outside_of_examples_count=(_); end # @api @@ -8802,23 +9162,31 @@ class RSpec::Core::Notifications::SummaryNotification < ::Struct # the examples run # # @return [Array] the current value of examples + # + # source://rspec-core//lib/rspec/core/notifications.rb#300 def examples; end # the examples run # # @param value [Array] the value to set the attribute examples to. # @return [Array] the newly set value + # + # source://rspec-core//lib/rspec/core/notifications.rb#300 def examples=(_); end # the failed examples # # @return [Array] the current value of failed_examples + # + # source://rspec-core//lib/rspec/core/notifications.rb#300 def failed_examples; end # the failed examples # # @param value [Array] the value to set the attribute failed_examples to. # @return [Array] the newly set value + # + # source://rspec-core//lib/rspec/core/notifications.rb#300 def failed_examples=(_); end # @api @@ -8849,6 +9217,8 @@ class RSpec::Core::Notifications::SummaryNotification < ::Struct # and load the spec files # # @return [Float] the current value of load_time + # + # source://rspec-core//lib/rspec/core/notifications.rb#300 def load_time; end # the number of seconds taken to boot RSpec @@ -8856,6 +9226,8 @@ class RSpec::Core::Notifications::SummaryNotification < ::Struct # # @param value [Float] the value to set the attribute load_time to. # @return [Float] the newly set value + # + # source://rspec-core//lib/rspec/core/notifications.rb#300 def load_time=(_); end # @api @@ -8867,12 +9239,16 @@ class RSpec::Core::Notifications::SummaryNotification < ::Struct # the pending examples # # @return [Array] the current value of pending_examples + # + # source://rspec-core//lib/rspec/core/notifications.rb#300 def pending_examples; end # the pending examples # # @param value [Array] the value to set the attribute pending_examples to. # @return [Array] the newly set value + # + # source://rspec-core//lib/rspec/core/notifications.rb#300 def pending_examples=(_); end # @api @@ -8890,10 +9266,19 @@ class RSpec::Core::Notifications::SummaryNotification < ::Struct def rerun_argument_for(example); end class << self + # source://rspec-core//lib/rspec/core/notifications.rb#300 def [](*_arg0); end + + # source://rspec-core//lib/rspec/core/notifications.rb#300 def inspect; end + + # source://rspec-core//lib/rspec/core/notifications.rb#300 def keyword_init?; end + + # source://rspec-core//lib/rspec/core/notifications.rb#300 def members; end + + # source://rspec-core//lib/rspec/core/notifications.rb#300 def new(*_arg0); end end end @@ -9847,22 +10232,22 @@ module RSpec::Core::RubyProject def root; end class << self - # source://rspec-core//lib/rspec/core/ruby_project.rb#12 + # source://rspec-core//lib/rspec/core/ruby_project.rb#46 def add_dir_to_load_path(dir); end - # source://rspec-core//lib/rspec/core/ruby_project.rb#8 + # source://rspec-core//lib/rspec/core/ruby_project.rb#45 def add_to_load_path(*dirs); end - # source://rspec-core//lib/rspec/core/ruby_project.rb#28 + # source://rspec-core//lib/rspec/core/ruby_project.rb#50 def ascend_until; end - # source://rspec-core//lib/rspec/core/ruby_project.rb#20 + # source://rspec-core//lib/rspec/core/ruby_project.rb#48 def determine_root; end - # source://rspec-core//lib/rspec/core/ruby_project.rb#24 + # source://rspec-core//lib/rspec/core/ruby_project.rb#49 def find_first_parent_containing(dir); end - # source://rspec-core//lib/rspec/core/ruby_project.rb#16 + # source://rspec-core//lib/rspec/core/ruby_project.rb#47 def root; end end end @@ -10141,44 +10526,65 @@ class RSpec::Core::SharedContext::Recording < ::Struct # Returns the value of attribute args # # @return [Object] the current value of args + # + # source://rspec-core//lib/rspec/core/shared_context.rb#33 def args; end # Sets the attribute args # # @param value [Object] the value to set the attribute args to. # @return [Object] the newly set value + # + # source://rspec-core//lib/rspec/core/shared_context.rb#33 def args=(_); end # Returns the value of attribute block # # @return [Object] the current value of block + # + # source://rspec-core//lib/rspec/core/shared_context.rb#33 def block; end # Sets the attribute block # # @param value [Object] the value to set the attribute block to. # @return [Object] the newly set value + # + # source://rspec-core//lib/rspec/core/shared_context.rb#33 def block=(_); end # Returns the value of attribute method_name # # @return [Object] the current value of method_name + # + # source://rspec-core//lib/rspec/core/shared_context.rb#33 def method_name; end # Sets the attribute method_name # # @param value [Object] the value to set the attribute method_name to. # @return [Object] the newly set value + # + # source://rspec-core//lib/rspec/core/shared_context.rb#33 def method_name=(_); end # source://rspec-core//lib/rspec/core/shared_context.rb#34 def playback_onto(group); end class << self + # source://rspec-core//lib/rspec/core/shared_context.rb#33 def [](*_arg0); end + + # source://rspec-core//lib/rspec/core/shared_context.rb#33 def inspect; end + + # source://rspec-core//lib/rspec/core/shared_context.rb#33 def keyword_init?; end + + # source://rspec-core//lib/rspec/core/shared_context.rb#33 def members; end + + # source://rspec-core//lib/rspec/core/shared_context.rb#33 def new(*_arg0); end end end @@ -10221,7 +10627,7 @@ module RSpec::Core::SharedExampleGroup # @see ExampleGroup.include_examples # @see ExampleGroup.include_context # - # source://rspec-core//lib/rspec/core/shared_example_group.rb#90 + # source://rspec-core//lib/rspec/core/shared_example_group.rb#100 def shared_context(name, *args, &block); end # Stores the block for later use. The block will be evaluated @@ -10271,7 +10677,7 @@ module RSpec::Core::SharedExampleGroup # @see ExampleGroup.include_examples # @see ExampleGroup.include_context # - # source://rspec-core//lib/rspec/core/shared_example_group.rb#90 + # source://rspec-core//lib/rspec/core/shared_example_group.rb#101 def shared_examples_for(name, *args, &block); end end @@ -10355,49 +10761,49 @@ end # Contains information about the inclusion site of a shared example group. # -# source://rspec-core//lib/rspec/core/example_group.rb#782 +# source://rspec-core//lib/rspec/core/example_group.rb#789 class RSpec::Core::SharedExampleGroupInclusionStackFrame # @private # @return [SharedExampleGroupInclusionStackFrame] a new instance of SharedExampleGroupInclusionStackFrame # - # source://rspec-core//lib/rspec/core/example_group.rb#789 + # source://rspec-core//lib/rspec/core/example_group.rb#796 def initialize(shared_group_name, inclusion_location); end # @return [String] Description of this stack frame, in the form used by # RSpec's built-in formatters. # - # source://rspec-core//lib/rspec/core/example_group.rb#805 + # source://rspec-core//lib/rspec/core/example_group.rb#812 def description; end # @return [String] The {#inclusion_location}, formatted for display by a formatter. # - # source://rspec-core//lib/rspec/core/example_group.rb#795 + # source://rspec-core//lib/rspec/core/example_group.rb#802 def formatted_inclusion_location; end # @return [String] the location where the shared example was included # - # source://rspec-core//lib/rspec/core/example_group.rb#786 + # source://rspec-core//lib/rspec/core/example_group.rb#793 def inclusion_location; end # @return [String] the name of the shared example group # - # source://rspec-core//lib/rspec/core/example_group.rb#784 + # source://rspec-core//lib/rspec/core/example_group.rb#791 def shared_group_name; end class << self # @private # - # source://rspec-core//lib/rspec/core/example_group.rb#811 + # source://rspec-core//lib/rspec/core/example_group.rb#818 def current_backtrace; end # @private # - # source://rspec-core//lib/rspec/core/example_group.rb#829 + # source://rspec-core//lib/rspec/core/example_group.rb#836 def shared_example_group_inclusions; end # @private # - # source://rspec-core//lib/rspec/core/example_group.rb#816 + # source://rspec-core//lib/rspec/core/example_group.rb#823 def with_frame(name, location); end end end @@ -10438,7 +10844,7 @@ class RSpec::Core::SharedExampleGroupModule < ::Module # Provides a human-readable representation of this module. # - # source://rspec-core//lib/rspec/core/shared_example_group.rb#20 + # source://rspec-core//lib/rspec/core/shared_example_group.rb#23 def to_s; end end @@ -10515,6 +10921,7 @@ end # source://rspec-core//lib/rspec/core.rb#174 class RSpec::Core::Time class << self + # source://rspec-core//lib/rspec/core.rb#176 def now(in: T.unsafe(nil)); end end end @@ -10857,24 +11264,24 @@ end # # @private # -# source://rspec-core//lib/rspec/core/example_group.rb#839 +# source://rspec-core//lib/rspec/core/example_group.rb#846 module RSpec::ExampleGroups extend ::RSpec::Support::RecursiveConstMethods class << self - # source://rspec-core//lib/rspec/core/example_group.rb#842 + # source://rspec-core//lib/rspec/core/example_group.rb#849 def assign_const(group); end - # source://rspec-core//lib/rspec/core/example_group.rb#862 + # source://rspec-core//lib/rspec/core/example_group.rb#869 def base_name_for(group); end - # source://rspec-core//lib/rspec/core/example_group.rb#850 + # source://rspec-core//lib/rspec/core/example_group.rb#857 def constant_scope_for(group); end - # source://rspec-core//lib/rspec/core/example_group.rb#895 + # source://rspec-core//lib/rspec/core/example_group.rb#902 def disambiguate(name, const_scope); end - # source://rspec-core//lib/rspec/core/example_group.rb#856 + # source://rspec-core//lib/rspec/core/example_group.rb#863 def remove_all_constants; end end end diff --git a/Library/Homebrew/sorbet/rbi/gems/rspec-expectations@3.13.4.rbi b/Library/Homebrew/sorbet/rbi/gems/rspec-expectations@3.13.5.rbi similarity index 97% rename from Library/Homebrew/sorbet/rbi/gems/rspec-expectations@3.13.4.rbi rename to Library/Homebrew/sorbet/rbi/gems/rspec-expectations@3.13.5.rbi index 370f5ae031..977e85a764 100644 --- a/Library/Homebrew/sorbet/rbi/gems/rspec-expectations@3.13.4.rbi +++ b/Library/Homebrew/sorbet/rbi/gems/rspec-expectations@3.13.5.rbi @@ -9,75 +9,7 @@ # in the `RSpec::Expectations` and `RSpec::Matchers` namespaces. # # source://rspec-expectations//lib/rspec/matchers/english_phrasing.rb#1 -module RSpec - class << self - # source://rspec-core/3.13.3/lib/rspec/core.rb#70 - def clear_examples; end - - # source://rspec-core/3.13.3/lib/rspec/core.rb#85 - def configuration; end - - # source://rspec-core/3.13.3/lib/rspec/core.rb#49 - def configuration=(_arg0); end - - # source://rspec-core/3.13.3/lib/rspec/core.rb#97 - def configure; end - - # source://rspec-core/3.13.3/lib/rspec/core.rb#194 - def const_missing(name); end - - # source://rspec-core/3.13.3/lib/rspec/core/dsl.rb#42 - def context(*args, &example_group_block); end - - # source://rspec-core/3.13.3/lib/rspec/core.rb#122 - def current_example; end - - # source://rspec-core/3.13.3/lib/rspec/core.rb#128 - def current_example=(example); end - - # source://rspec-core/3.13.3/lib/rspec/core.rb#154 - def current_scope; end - - # source://rspec-core/3.13.3/lib/rspec/core.rb#134 - def current_scope=(scope); end - - # source://rspec-core/3.13.3/lib/rspec/core/dsl.rb#42 - def describe(*args, &example_group_block); end - - # source://rspec-core/3.13.3/lib/rspec/core/dsl.rb#42 - def example_group(*args, &example_group_block); end - - # source://rspec-core/3.13.3/lib/rspec/core/dsl.rb#42 - def fcontext(*args, &example_group_block); end - - # source://rspec-core/3.13.3/lib/rspec/core/dsl.rb#42 - def fdescribe(*args, &example_group_block); end - - # source://rspec-core/3.13.3/lib/rspec/core.rb#58 - def reset; end - - # source://rspec-core/3.13.3/lib/rspec/core/shared_example_group.rb#110 - def shared_context(name, *args, &block); end - - # source://rspec-core/3.13.3/lib/rspec/core/shared_example_group.rb#110 - def shared_examples(name, *args, &block); end - - # source://rspec-core/3.13.3/lib/rspec/core/shared_example_group.rb#110 - def shared_examples_for(name, *args, &block); end - - # source://rspec-core/3.13.3/lib/rspec/core.rb#160 - def world; end - - # source://rspec-core/3.13.3/lib/rspec/core.rb#49 - def world=(_arg0); end - - # source://rspec-core/3.13.3/lib/rspec/core/dsl.rb#42 - def xcontext(*args, &example_group_block); end - - # source://rspec-core/3.13.3/lib/rspec/core/dsl.rb#42 - def xdescribe(*args, &example_group_block); end - end -end +module RSpec; end # RSpec::Expectations provides a simple, readable API to express # the expected outcomes in a code example. To express an expected @@ -164,7 +96,7 @@ class RSpec::Expectations::BlockExpectationTarget < ::RSpec::Expectations::Expec # source://rspec-expectations//lib/rspec/expectations/expectation_target.rb#137 def to(matcher, message = T.unsafe(nil), &block); end - # source://rspec-expectations//lib/rspec/expectations/expectation_target.rb#142 + # source://rspec-expectations//lib/rspec/expectations/expectation_target.rb#146 def to_not(matcher, message = T.unsafe(nil), &block); end private @@ -249,12 +181,16 @@ class RSpec::Expectations::BlockSnippetExtractor::BlockLocator < ::Struct # Returns the value of attribute beginning_line_number # # @return [Object] the current value of beginning_line_number + # + # source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#200 def beginning_line_number; end # Sets the attribute beginning_line_number # # @param value [Object] the value to set the attribute beginning_line_number to. # @return [Object] the newly set value + # + # source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#200 def beginning_line_number=(_); end # source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#205 @@ -266,23 +202,31 @@ class RSpec::Expectations::BlockSnippetExtractor::BlockLocator < ::Struct # Returns the value of attribute method_name # # @return [Object] the current value of method_name + # + # source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#200 def method_name; end # Sets the attribute method_name # # @param value [Object] the value to set the attribute method_name to. # @return [Object] the newly set value + # + # source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#200 def method_name=(_); end # Returns the value of attribute source # # @return [Object] the current value of source + # + # source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#200 def source; end # Sets the attribute source # # @param value [Object] the value to set the attribute source to. # @return [Object] the newly set value + # + # source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#200 def source=(_); end private @@ -308,10 +252,19 @@ class RSpec::Expectations::BlockSnippetExtractor::BlockLocator < ::Struct def method_ident_node?(node); end class << self + # source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#200 def [](*_arg0); end + + # source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#200 def inspect; end + + # source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#200 def keyword_init?; end + + # source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#200 def members; end + + # source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#200 def new(*_arg0); end end end @@ -331,12 +284,16 @@ class RSpec::Expectations::BlockSnippetExtractor::BlockTokenExtractor < ::Struct # Returns the value of attribute beginning_line_number # # @return [Object] the current value of beginning_line_number + # + # source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#77 def beginning_line_number; end # Sets the attribute beginning_line_number # # @param value [Object] the value to set the attribute beginning_line_number to. # @return [Object] the newly set value + # + # source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#77 def beginning_line_number=(_); end # Returns the value of attribute body_tokens. @@ -347,23 +304,31 @@ class RSpec::Expectations::BlockSnippetExtractor::BlockTokenExtractor < ::Struct # Returns the value of attribute method_name # # @return [Object] the current value of method_name + # + # source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#77 def method_name; end # Sets the attribute method_name # # @param value [Object] the value to set the attribute method_name to. # @return [Object] the newly set value + # + # source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#77 def method_name=(_); end # Returns the value of attribute source # # @return [Object] the current value of source + # + # source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#77 def source; end # Sets the attribute source # # @param value [Object] the value to set the attribute source to. # @return [Object] the newly set value + # + # source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#77 def source=(_); end # Returns the value of attribute state. @@ -434,10 +399,19 @@ class RSpec::Expectations::BlockSnippetExtractor::BlockTokenExtractor < ::Struct def pipe_token?(token); end class << self + # source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#77 def [](*_arg0); end + + # source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#77 def inspect; end + + # source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#77 def keyword_init?; end + + # source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#77 def members; end + + # source://rspec-expectations//lib/rspec/expectations/block_snippet_extractor.rb#77 def new(*_arg0); end end end @@ -773,7 +747,7 @@ module RSpec::Expectations::ExpectationTarget::InstanceMethods # @return [Boolean] false if the negative expectation succeeds (else raises) # @see RSpec::Matchers # - # source://rspec-expectations//lib/rspec/expectations/expectation_target.rb#76 + # source://rspec-expectations//lib/rspec/expectations/expectation_target.rb#80 def to_not(matcher = T.unsafe(nil), message = T.unsafe(nil), &block); end private @@ -1558,7 +1532,7 @@ module RSpec::Matchers # @param receiver [Object] # @param message [Symbol] the message to send the receiver # - # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 + # source://rspec-expectations//lib/rspec/matchers.rb#251 def a_block_changing(*args, **_arg1, &block); end # With no arg, passes if the block outputs `to_stdout` or `to_stderr`. @@ -1591,7 +1565,7 @@ module RSpec::Matchers # @note `to_stdout_from_any_process` and `to_stderr_from_any_process` use Tempfiles, and # are thus significantly (~30x) slower than `to_stdout` and `to_stderr`. # - # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 + # source://rspec-expectations//lib/rspec/matchers.rb#251 def a_block_outputting(*args, **_arg1, &block); end # With no args, matches if any error is raised. @@ -1611,7 +1585,7 @@ module RSpec::Matchers # # expect { do_something_risky }.not_to raise_error # - # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 + # source://rspec-expectations//lib/rspec/matchers.rb#251 def a_block_raising(*args, **_arg1, &block); end # Given no argument, matches if a proc throws any Symbol. @@ -1630,7 +1604,7 @@ module RSpec::Matchers # expect { do_something_risky }.not_to throw_symbol(:that_was_risky) # expect { do_something_risky }.not_to throw_symbol(:that_was_risky, 'culprit') # - # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 + # source://rspec-expectations//lib/rspec/matchers.rb#251 def a_block_throwing(*args, **_arg1, &block); end # Passes if the method called in the expect block yields, regardless @@ -1642,7 +1616,7 @@ module RSpec::Matchers # @note Your expect block must accept a parameter and pass it on to # the method-under-test as a block. # - # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 + # source://rspec-expectations//lib/rspec/matchers.rb#251 def a_block_yielding_control(*args, **_arg1, &block); end # Designed for use with methods that repeatedly yield (such as @@ -1660,7 +1634,7 @@ module RSpec::Matchers # @note Your expect block must accept a parameter and pass it on to # the method-under-test as a block. # - # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 + # source://rspec-expectations//lib/rspec/matchers.rb#251 def a_block_yielding_successive_args(*args, **_arg1, &block); end # Given no arguments, matches if the method called in the expect @@ -1687,7 +1661,7 @@ module RSpec::Matchers # @note This matcher is not designed for use with methods that yield # multiple times. # - # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 + # source://rspec-expectations//lib/rspec/matchers.rb#251 def a_block_yielding_with_args(*args, **_arg1, &block); end # Passes if the method called in the expect block yields with @@ -1702,7 +1676,7 @@ module RSpec::Matchers # @note This matcher is not designed for use with methods that yield # multiple times. # - # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 + # source://rspec-expectations//lib/rspec/matchers.rb#251 def a_block_yielding_with_no_args(*args, **_arg1, &block); end # Passes if actual contains all of the expected regardless of order. @@ -1716,7 +1690,7 @@ module RSpec::Matchers # but `=~` is not supported with `expect`. # @see #match_array # - # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 + # source://rspec-expectations//lib/rspec/matchers.rb#251 def a_collection_containing_exactly(*args, **_arg1, &block); end # Matches if the actual value ends with the expected value(s). In the case @@ -1729,7 +1703,7 @@ module RSpec::Matchers # expect([0, 1, 2, 3, 4]).to end_with 4 # expect([0, 2, 3, 4, 4]).to end_with 3, 4 # - # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 + # source://rspec-expectations//lib/rspec/matchers.rb#251 def a_collection_ending_with(*args, **_arg1, &block); end # Passes if actual includes expected. This works for @@ -1750,7 +1724,7 @@ module RSpec::Matchers # expect(:a => 1, :b => 2).to include(:c) # fails # expect(:a => 1, :b => 2).not_to include(:a => 2) # - # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 + # source://rspec-expectations//lib/rspec/matchers.rb#251 def a_collection_including(*args, **_arg1, &block); end # Matches if the actual value starts with the expected value(s). In the @@ -1763,17 +1737,17 @@ module RSpec::Matchers # expect([0, 1, 2, 3, 4]).to start_with 0 # expect([0, 2, 3, 4, 4]).to start_with 0, 1 # - # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 + # source://rspec-expectations//lib/rspec/matchers.rb#251 def a_collection_starting_with(*args, **_arg1, &block); end # Passes if actual is falsey (false or nil) # - # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 + # source://rspec-expectations//lib/rspec/matchers.rb#251 def a_falsey_value(*args, **_arg1, &block); end # Passes if actual is falsey (false or nil) # - # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 + # source://rspec-expectations//lib/rspec/matchers.rb#251 def a_falsy_value(*args, **_arg1, &block); end # Passes if actual includes expected. This works for @@ -1794,7 +1768,7 @@ module RSpec::Matchers # expect(:a => 1, :b => 2).to include(:c) # fails # expect(:a => 1, :b => 2).not_to include(:a => 2) # - # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 + # source://rspec-expectations//lib/rspec/matchers.rb#251 def a_hash_including(*args, **_arg1, &block); end # Passes if actual.kind_of?(expected) @@ -1804,12 +1778,12 @@ module RSpec::Matchers # expect(5).to be_a_kind_of(Numeric) # expect(5).not_to be_a_kind_of(Float) # - # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 + # source://rspec-expectations//lib/rspec/matchers.rb#251 def a_kind_of(*args, **_arg1, &block); end # Passes if actual is nil # - # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 + # source://rspec-expectations//lib/rspec/matchers.rb#251 def a_nil_value(*args, **_arg1, &block); end # Passes if actual covers expected. This works for @@ -1825,7 +1799,7 @@ module RSpec::Matchers # expect(1..10).not_to cover(11) # expect(1..10).not_to cover(5) # fails # - # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 + # source://rspec-expectations//lib/rspec/matchers.rb#251 def a_range_covering(*args, **_arg1, &block); end # Matches if the actual value ends with the expected value(s). In the case @@ -1838,7 +1812,7 @@ module RSpec::Matchers # expect([0, 1, 2, 3, 4]).to end_with 4 # expect([0, 2, 3, 4, 4]).to end_with 3, 4 # - # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 + # source://rspec-expectations//lib/rspec/matchers.rb#251 def a_string_ending_with(*args, **_arg1, &block); end # Passes if actual includes expected. This works for @@ -1859,7 +1833,7 @@ module RSpec::Matchers # expect(:a => 1, :b => 2).to include(:c) # fails # expect(:a => 1, :b => 2).not_to include(:a => 2) # - # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 + # source://rspec-expectations//lib/rspec/matchers.rb#251 def a_string_including(*args, **_arg1, &block); end # Given a `Regexp` or `String`, passes if `actual.match(pattern)` @@ -1892,7 +1866,7 @@ module RSpec::Matchers # matchers (due to how the custom matcher DSL was evaluated in 2.x, # `match` could not be used there), but is no longer needed in 3.x. # - # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 + # source://rspec-expectations//lib/rspec/matchers.rb#251 def a_string_matching(*args, **_arg1, &block); end # Matches if the actual value starts with the expected value(s). In the @@ -1905,12 +1879,12 @@ module RSpec::Matchers # expect([0, 1, 2, 3, 4]).to start_with 0 # expect([0, 2, 3, 4, 4]).to start_with 0, 1 # - # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 + # source://rspec-expectations//lib/rspec/matchers.rb#251 def a_string_starting_with(*args, **_arg1, &block); end # Passes if actual is truthy (anything but false or nil) # - # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 + # source://rspec-expectations//lib/rspec/matchers.rb#251 def a_truthy_value(*args, **_arg1, &block); end # Given true, false, or nil, will pass if actual value is true, false or @@ -1934,7 +1908,7 @@ module RSpec::Matchers # expect(actual).not_to be_nil # expect(actual).not_to be_[arbitrary_predicate](*args) # - # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 + # source://rspec-expectations//lib/rspec/matchers.rb#251 def a_value(*args, **_arg1, &block); end # Passes if actual.between?(min, max). Works with any Comparable object, @@ -1949,7 +1923,7 @@ module RSpec::Matchers # expect(11).not_to be_between(1, 10) # expect(10).not_to be_between(1, 10).exclusive # - # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 + # source://rspec-expectations//lib/rspec/matchers.rb#251 def a_value_between(*args, **_arg1, &block); end # Passes if actual == expected +/- delta @@ -1958,7 +1932,7 @@ module RSpec::Matchers # expect(result).to be_within(0.5).of(3.0) # expect(result).not_to be_within(0.5).of(3.0) # - # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 + # source://rspec-expectations//lib/rspec/matchers.rb#251 def a_value_within(*args, **_arg1, &block); end # Allows multiple expectations in the provided block to fail, and then @@ -2021,7 +1995,7 @@ module RSpec::Matchers # expect(results).to match_array([1, 2]) # @see #contain_exactly # - # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 + # source://rspec-expectations//lib/rspec/matchers.rb#251 def an_array_matching(*args, **_arg1, &block); end # Passes if actual.instance_of?(expected) @@ -2031,7 +2005,7 @@ module RSpec::Matchers # expect(5).not_to be_an_instance_of(Numeric) # expect(5).not_to be_an_instance_of(Float) # - # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 + # source://rspec-expectations//lib/rspec/matchers.rb#251 def an_instance_of(*args, **_arg1, &block); end # Passes if actual == expected. @@ -2043,7 +2017,7 @@ module RSpec::Matchers # expect(5).to eq(5) # expect(5).not_to eq(3) # - # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 + # source://rspec-expectations//lib/rspec/matchers.rb#251 def an_object_eq_to(*args, **_arg1, &block); end # Passes if `actual.eql?(expected)` @@ -2055,7 +2029,7 @@ module RSpec::Matchers # expect(5).to eql(5) # expect(5).not_to eql(3) # - # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 + # source://rspec-expectations//lib/rspec/matchers.rb#251 def an_object_eql_to(*args, **_arg1, &block); end # Passes if actual.equal?(expected) (object identity). @@ -2067,7 +2041,7 @@ module RSpec::Matchers # expect(5).to equal(5) # Integers are equal # expect("5").not_to equal("5") # Strings that look the same are not the same object # - # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 + # source://rspec-expectations//lib/rspec/matchers.rb#251 def an_object_equal_to(*args, **_arg1, &block); end # Passes if `actual.exist?` or `actual.exists?` @@ -2075,7 +2049,7 @@ module RSpec::Matchers # @example # expect(File).to exist("path/to/file") # - # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 + # source://rspec-expectations//lib/rspec/matchers.rb#251 def an_object_existing(*args, **_arg1, &block); end # Passes if actual's attribute values match the expected attributes hash. @@ -2091,7 +2065,7 @@ module RSpec::Matchers # expect(person).to have_attributes(:color => "red") # @note It will fail if actual doesn't respond to any of the expected attributes. # - # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 + # source://rspec-expectations//lib/rspec/matchers.rb#251 def an_object_having_attributes(*args, **_arg1, &block); end # Given a `Regexp` or `String`, passes if `actual.match(pattern)` @@ -2124,7 +2098,7 @@ module RSpec::Matchers # matchers (due to how the custom matcher DSL was evaluated in 2.x, # `match` could not be used there), but is no longer needed in 3.x. # - # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 + # source://rspec-expectations//lib/rspec/matchers.rb#251 def an_object_matching(*args, **_arg1, &block); end # Matches if the target object responds to all of the names @@ -2133,7 +2107,7 @@ module RSpec::Matchers # @example # expect("string").to respond_to(:length) # - # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 + # source://rspec-expectations//lib/rspec/matchers.rb#251 def an_object_responding_to(*args, **_arg1, &block); end # Passes if the submitted block returns true. Yields target to the @@ -2151,7 +2125,7 @@ module RSpec::Matchers # expect(5).to satisfy("be greater than 3") { |n| n > 3 } # @param description [String] optional description to be used for this matcher. # - # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 + # source://rspec-expectations//lib/rspec/matchers.rb#251 def an_object_satisfying(*args, **_arg1, &block); end # Given true, false, or nil, will pass if actual value is true, false or @@ -2195,7 +2169,7 @@ module RSpec::Matchers # passes if target.kind_of?(klass) # - # source://rspec-expectations//lib/rspec/matchers.rb#355 + # source://rspec-expectations//lib/rspec/matchers.rb#358 def be_an(klass); end # Passes if actual.instance_of?(expected) @@ -2230,7 +2204,7 @@ module RSpec::Matchers # Passes if actual is falsey (false or nil) # - # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 + # source://rspec-expectations//lib/rspec/matchers.rb#251 def be_falsy(*args, **_arg1, &block); end # Passes if actual.instance_of?(expected) @@ -2240,7 +2214,7 @@ module RSpec::Matchers # expect(5).not_to be_an_instance_of(Numeric) # expect(5).not_to be_an_instance_of(Float) # - # source://rspec-expectations//lib/rspec/matchers.rb#366 + # source://rspec-expectations//lib/rspec/matchers.rb#369 def be_instance_of(expected); end # Passes if actual.kind_of?(expected) @@ -2250,7 +2224,7 @@ module RSpec::Matchers # expect(5).to be_a_kind_of(Numeric) # expect(5).not_to be_a_kind_of(Float) # - # source://rspec-expectations//lib/rspec/matchers.rb#378 + # source://rspec-expectations//lib/rspec/matchers.rb#381 def be_kind_of(expected); end # Passes if actual is nil @@ -2437,7 +2411,7 @@ module RSpec::Matchers # @param receiver [Object] # @param message [Symbol] the message to send the receiver # - # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 + # source://rspec-expectations//lib/rspec/matchers.rb#251 def changing(*args, **_arg1, &block); end # Passes if actual contains all of the expected regardless of order. @@ -2465,7 +2439,7 @@ module RSpec::Matchers # but `=~` is not supported with `expect`. # @see #match_array # - # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 + # source://rspec-expectations//lib/rspec/matchers.rb#251 def containing_exactly(*args, **_arg1, &block); end # Passes if actual covers expected. This works for @@ -2497,7 +2471,7 @@ module RSpec::Matchers # expect(1..10).not_to cover(11) # expect(1..10).not_to cover(5) # fails # - # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 + # source://rspec-expectations//lib/rspec/matchers.rb#251 def covering(*args, **_arg1, &block); end # Matches if the actual value ends with the expected value(s). In the case @@ -2523,7 +2497,7 @@ module RSpec::Matchers # expect([0, 1, 2, 3, 4]).to end_with 4 # expect([0, 2, 3, 4, 4]).to end_with 3, 4 # - # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 + # source://rspec-expectations//lib/rspec/matchers.rb#251 def ending_with(*args, **_arg1, &block); end # Passes if actual == expected. @@ -2547,7 +2521,7 @@ module RSpec::Matchers # expect(5).to eq(5) # expect(5).not_to eq(3) # - # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 + # source://rspec-expectations//lib/rspec/matchers.rb#251 def eq_to(*args, **_arg1, &block); end # Passes if `actual.eql?(expected)` @@ -2571,7 +2545,7 @@ module RSpec::Matchers # expect(5).to eql(5) # expect(5).not_to eql(3) # - # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 + # source://rspec-expectations//lib/rspec/matchers.rb#251 def eql_to(*args, **_arg1, &block); end # Passes if actual.equal?(expected) (object identity). @@ -2595,7 +2569,7 @@ module RSpec::Matchers # expect(5).to equal(5) # Integers are equal # expect("5").not_to equal("5") # Strings that look the same are not the same object # - # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 + # source://rspec-expectations//lib/rspec/matchers.rb#251 def equal_to(*args, **_arg1, &block); end # Passes if `actual.exist?` or `actual.exists?` @@ -2611,7 +2585,7 @@ module RSpec::Matchers # @example # expect(File).to exist("path/to/file") # - # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 + # source://rspec-expectations//lib/rspec/matchers.rb#251 def existing(*args, **_arg1, &block); end # Supports `expect(actual).to matcher` syntax by wrapping `actual` in an @@ -2624,7 +2598,7 @@ module RSpec::Matchers # @see Expectations::ExpectationTarget#to # @see Expectations::ExpectationTarget#not_to # - # source://rspec-expectations//lib/rspec/expectations/syntax.rb#72 + # source://rspec-expectations//lib/rspec/expectations/configuration.rb#48 def expect(value = T.unsafe(nil), &block); end # Passes if actual's attribute values match the expected attributes hash. @@ -2656,7 +2630,7 @@ module RSpec::Matchers # expect(person).to have_attributes(:color => "red") # @note It will fail if actual doesn't respond to any of the expected attributes. # - # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 + # source://rspec-expectations//lib/rspec/matchers.rb#251 def having_attributes(*args, **_arg1, &block); end # Passes if actual includes expected. This works for @@ -2698,7 +2672,7 @@ module RSpec::Matchers # expect(:a => 1, :b => 2).to include(:c) # fails # expect(:a => 1, :b => 2).not_to include(:a => 2) # - # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 + # source://rspec-expectations//lib/rspec/matchers.rb#251 def including(*args, **_arg1, &block); end # Given a `Regexp` or `String`, passes if `actual.match(pattern)` @@ -2777,7 +2751,7 @@ module RSpec::Matchers # matchers (due to how the custom matcher DSL was evaluated in 2.x, # `match` could not be used there), but is no longer needed in 3.x. # - # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 + # source://rspec-expectations//lib/rspec/matchers.rb#251 def match_regex(*args, **_arg1, &block); end # Given a `Regexp` or `String`, passes if `actual.match(pattern)` @@ -2810,7 +2784,7 @@ module RSpec::Matchers # matchers (due to how the custom matcher DSL was evaluated in 2.x, # `match` could not be used there), but is no longer needed in 3.x. # - # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 + # source://rspec-expectations//lib/rspec/matchers.rb#251 def matching(*args, **_arg1, &block); end # With no arg, passes if the block outputs `to_stdout` or `to_stderr`. @@ -2883,7 +2857,7 @@ module RSpec::Matchers # # expect { do_something_risky }.not_to raise_error # - # source://rspec-expectations//lib/rspec/matchers.rb#773 + # source://rspec-expectations//lib/rspec/matchers.rb#776 def raise_exception(error = T.unsafe(nil), message = T.unsafe(nil), &block); end # With no args, matches if any error is raised. @@ -2903,7 +2877,7 @@ module RSpec::Matchers # # expect { do_something_risky }.not_to raise_error # - # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 + # source://rspec-expectations//lib/rspec/matchers.rb#251 def raising(*args, **_arg1, &block); end # Matches if the target object responds to all of the names @@ -2921,7 +2895,7 @@ module RSpec::Matchers # @example # expect("string").to respond_to(:length) # - # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 + # source://rspec-expectations//lib/rspec/matchers.rb#251 def responding_to(*args, **_arg1, &block); end # Passes if the submitted block returns true. Yields target to the @@ -2957,7 +2931,7 @@ module RSpec::Matchers # expect(5).to satisfy("be greater than 3") { |n| n > 3 } # @param description [String] optional description to be used for this matcher. # - # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 + # source://rspec-expectations//lib/rspec/matchers.rb#251 def satisfying(*args, **_arg1, &block); end # Matches if the actual value starts with the expected value(s). In the @@ -2983,7 +2957,7 @@ module RSpec::Matchers # expect([0, 1, 2, 3, 4]).to start_with 0 # expect([0, 2, 3, 4, 4]).to start_with 0, 1 # - # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 + # source://rspec-expectations//lib/rspec/matchers.rb#251 def starting_with(*args, **_arg1, &block); end # Given no argument, matches if a proc throws any Symbol. @@ -3021,7 +2995,7 @@ module RSpec::Matchers # expect { do_something_risky }.not_to throw_symbol(:that_was_risky) # expect { do_something_risky }.not_to throw_symbol(:that_was_risky, 'culprit') # - # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 + # source://rspec-expectations//lib/rspec/matchers.rb#251 def throwing(*args, **_arg1, &block); end # Passes if actual == expected +/- delta @@ -3030,7 +3004,7 @@ module RSpec::Matchers # expect(result).to be_within(0.5).of(3.0) # expect(result).not_to be_within(0.5).of(3.0) # - # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 + # source://rspec-expectations//lib/rspec/matchers.rb#251 def within(*args, **_arg1, &block); end # Passes if the method called in the expect block yields, regardless @@ -3114,7 +3088,7 @@ module RSpec::Matchers # @note Your expect block must accept a parameter and pass it on to # the method-under-test as a block. # - # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 + # source://rspec-expectations//lib/rspec/matchers.rb#251 def yielding_control(*args, **_arg1, &block); end # Designed for use with methods that repeatedly yield (such as @@ -3132,7 +3106,7 @@ module RSpec::Matchers # @note Your expect block must accept a parameter and pass it on to # the method-under-test as a block. # - # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 + # source://rspec-expectations//lib/rspec/matchers.rb#251 def yielding_successive_args(*args, **_arg1, &block); end # Given no arguments, matches if the method called in the expect @@ -3159,7 +3133,7 @@ module RSpec::Matchers # @note This matcher is not designed for use with methods that yield # multiple times. # - # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 + # source://rspec-expectations//lib/rspec/matchers.rb#251 def yielding_with_args(*args, **_arg1, &block); end # Passes if the method called in the expect block yields with @@ -3174,7 +3148,7 @@ module RSpec::Matchers # @note This matcher is not designed for use with methods that yield # multiple times. # - # source://rspec-expectations//lib/rspec/matchers/dsl.rb#38 + # source://rspec-expectations//lib/rspec/matchers.rb#251 def yielding_with_no_args(*args, **_arg1, &block); end private @@ -3693,7 +3667,7 @@ module RSpec::Matchers::BuiltIn::BaseMatcher::HashFormatting # # @api private # - # source://rspec-expectations//lib/rspec/matchers/built_in/base_matcher.rb#138 + # source://rspec-expectations//lib/rspec/matchers/built_in/base_matcher.rb#141 def improve_hash_formatting(inspect_string); end end end @@ -3731,7 +3705,7 @@ module RSpec::Matchers::BuiltIn::BaseMatcher::StringEncodingFormatting # @param _value [String] # @return [nil] nil as the curent Ruby version does not support String encoding # - # source://rspec-expectations//lib/rspec/matchers/built_in/base_matcher.rb#172 + # source://rspec-expectations//lib/rspec/matchers/built_in/base_matcher.rb#186 def format_encoding(value); end # :nocov: @@ -3739,7 +3713,7 @@ module RSpec::Matchers::BuiltIn::BaseMatcher::StringEncodingFormatting # @api private # @return [Boolean] False always as the curent Ruby version does not support String encoding # - # source://rspec-expectations//lib/rspec/matchers/built_in/base_matcher.rb#153 + # source://rspec-expectations//lib/rspec/matchers/built_in/base_matcher.rb#165 def string_encoding_differs?; end end end @@ -5074,45 +5048,61 @@ class RSpec::Matchers::BuiltIn::ContainExactly::PairingsMaximizer::Solution < :: # Returns the value of attribute indeterminate_actual_indexes # # @return [Object] the current value of indeterminate_actual_indexes + # + # source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#190 def indeterminate_actual_indexes; end # Sets the attribute indeterminate_actual_indexes # # @param value [Object] the value to set the attribute indeterminate_actual_indexes to. # @return [Object] the newly set value + # + # source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#190 def indeterminate_actual_indexes=(_); end # Returns the value of attribute indeterminate_expected_indexes # # @return [Object] the current value of indeterminate_expected_indexes + # + # source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#190 def indeterminate_expected_indexes; end # Sets the attribute indeterminate_expected_indexes # # @param value [Object] the value to set the attribute indeterminate_expected_indexes to. # @return [Object] the newly set value + # + # source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#190 def indeterminate_expected_indexes=(_); end # Returns the value of attribute unmatched_actual_indexes # # @return [Object] the current value of unmatched_actual_indexes + # + # source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#190 def unmatched_actual_indexes; end # Sets the attribute unmatched_actual_indexes # # @param value [Object] the value to set the attribute unmatched_actual_indexes to. # @return [Object] the newly set value + # + # source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#190 def unmatched_actual_indexes=(_); end # Returns the value of attribute unmatched_expected_indexes # # @return [Object] the current value of unmatched_expected_indexes + # + # source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#190 def unmatched_expected_indexes; end # Sets the attribute unmatched_expected_indexes # # @param value [Object] the value to set the attribute unmatched_expected_indexes to. # @return [Object] the newly set value + # + # source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#190 def unmatched_expected_indexes=(_); end # @api private @@ -5127,10 +5117,19 @@ class RSpec::Matchers::BuiltIn::ContainExactly::PairingsMaximizer::Solution < :: def worse_than?(other); end class << self + # source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#190 def [](*_arg0); end + + # source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#190 def inspect; end + + # source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#190 def keyword_init?; end + + # source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#190 def members; end + + # source://rspec-expectations//lib/rspec/matchers/built_in/contain_exactly.rb#190 def new(*_arg0); end end end @@ -6510,7 +6509,7 @@ class RSpec::Matchers::BuiltIn::RespondTo < ::RSpec::Matchers::BuiltIn::BaseMatc # @example # expect(obj).to respond_to(:message).with_any_keywords # - # source://rspec-expectations//lib/rspec/matchers/built_in/respond_to.rb#48 + # source://rspec-expectations//lib/rspec/matchers/built_in/respond_to.rb#52 def and_any_keywords; end # Specifies keyword arguments, if any. @@ -6521,7 +6520,7 @@ class RSpec::Matchers::BuiltIn::RespondTo < ::RSpec::Matchers::BuiltIn::BaseMatc # @example with an expected number of arguments # expect(obj).to respond_to(:message).with(3).arguments.and_keywords(:color, :shape) # - # source://rspec-expectations//lib/rspec/matchers/built_in/respond_to.rb#36 + # source://rspec-expectations//lib/rspec/matchers/built_in/respond_to.rb#40 def and_keywords(*keywords); end # Specifies that the number of arguments has no upper limit, i.e. the @@ -6531,7 +6530,7 @@ class RSpec::Matchers::BuiltIn::RespondTo < ::RSpec::Matchers::BuiltIn::BaseMatc # @example # expect(obj).to respond_to(:message).with_unlimited_arguments # - # source://rspec-expectations//lib/rspec/matchers/built_in/respond_to.rb#60 + # source://rspec-expectations//lib/rspec/matchers/built_in/respond_to.rb#64 def and_unlimited_arguments; end # No-op. Intended to be used as syntactic sugar when using `with`. @@ -6549,7 +6548,7 @@ class RSpec::Matchers::BuiltIn::RespondTo < ::RSpec::Matchers::BuiltIn::BaseMatc # @example # expect(obj).to respond_to(:message).with(3).arguments # - # source://rspec-expectations//lib/rspec/matchers/built_in/respond_to.rb#71 + # source://rspec-expectations//lib/rspec/matchers/built_in/respond_to.rb#74 def arguments; end # @api private @@ -7372,7 +7371,7 @@ module RSpec::Matchers::Composable # @note The negative form (`expect(...).not_to matcher.and other`) # is not supported at this time. # - # source://rspec-expectations//lib/rspec/matchers/composable.rb#22 + # source://rspec-expectations//lib/rspec/matchers/composable.rb#25 def &(matcher); end # Delegates to `#matches?`. Allows matchers to be used in composable @@ -7425,7 +7424,7 @@ module RSpec::Matchers::Composable # @note The negative form (`expect(...).not_to matcher.or other`) # is not supported at this time. # - # source://rspec-expectations//lib/rspec/matchers/composable.rb#38 + # source://rspec-expectations//lib/rspec/matchers/composable.rb#41 def |(matcher); end private @@ -7522,7 +7521,7 @@ module RSpec::Matchers::Composable # @api private # @return [Boolean] # - # source://rspec-expectations//lib/rspec/matchers/composable.rb#142 + # source://rspec-expectations//lib/rspec/matchers/composable.rb#154 def should_enumerate?(item); end # Transforms the given data structure (typically a hash or array) @@ -7538,13 +7537,13 @@ module RSpec::Matchers::Composable # # @api public # - # source://rspec-expectations//lib/rspec/matchers/composable.rb#98 + # source://rspec-expectations//lib/rspec/matchers/composable.rb#154 def surface_descriptions_in(item); end # @api private # @return [Boolean] # - # source://rspec-expectations//lib/rspec/matchers/composable.rb#147 + # source://rspec-expectations//lib/rspec/matchers/composable.rb#154 def unreadable_io?(object); end end end @@ -7565,12 +7564,16 @@ class RSpec::Matchers::Composable::DescribableItem < ::Struct # Returns the value of attribute item # # @return [Object] the current value of item + # + # source://rspec-expectations//lib/rspec/matchers/composable.rb#158 def item; end # Sets the attribute item # # @param value [Object] the value to set the attribute item to. # @return [Object] the newly set value + # + # source://rspec-expectations//lib/rspec/matchers/composable.rb#158 def item=(_); end # A pretty printed version of the item description. @@ -7581,10 +7584,19 @@ class RSpec::Matchers::Composable::DescribableItem < ::Struct def pretty_print(pp); end class << self + # source://rspec-expectations//lib/rspec/matchers/composable.rb#158 def [](*_arg0); end + + # source://rspec-expectations//lib/rspec/matchers/composable.rb#158 def inspect; end + + # source://rspec-expectations//lib/rspec/matchers/composable.rb#158 def keyword_init?; end + + # source://rspec-expectations//lib/rspec/matchers/composable.rb#158 def members; end + + # source://rspec-expectations//lib/rspec/matchers/composable.rb#158 def new(*_arg0); end end end @@ -7659,7 +7671,7 @@ module RSpec::Matchers::DSL # When args are passed to your matcher, they will be yielded here, # usually representing the expected value(s). # - # source://rspec-expectations//lib/rspec/matchers/dsl.rb#73 + # source://rspec-expectations//lib/rspec/matchers/dsl.rb#79 def matcher(name, &declarations); end private diff --git a/Library/Homebrew/sorbet/rbi/gems/rspec-support@3.13.3.rbi b/Library/Homebrew/sorbet/rbi/gems/rspec-support@3.13.4.rbi similarity index 94% rename from Library/Homebrew/sorbet/rbi/gems/rspec-support@3.13.3.rbi rename to Library/Homebrew/sorbet/rbi/gems/rspec-support@3.13.4.rbi index 8fb5674cef..98420c388a 100644 --- a/Library/Homebrew/sorbet/rbi/gems/rspec-support@3.13.3.rbi +++ b/Library/Homebrew/sorbet/rbi/gems/rspec-support@3.13.4.rbi @@ -8,74 +8,6 @@ # source://rspec-support//lib/rspec/support.rb#3 module RSpec extend ::RSpec::Support::Warnings - - class << self - # source://rspec-core/3.13.3/lib/rspec/core.rb#70 - def clear_examples; end - - # source://rspec-core/3.13.3/lib/rspec/core.rb#85 - def configuration; end - - # source://rspec-core/3.13.3/lib/rspec/core.rb#49 - def configuration=(_arg0); end - - # source://rspec-core/3.13.3/lib/rspec/core.rb#97 - def configure; end - - # source://rspec-core/3.13.3/lib/rspec/core.rb#194 - def const_missing(name); end - - # source://rspec-core/3.13.3/lib/rspec/core/dsl.rb#42 - def context(*args, &example_group_block); end - - # source://rspec-core/3.13.3/lib/rspec/core.rb#122 - def current_example; end - - # source://rspec-core/3.13.3/lib/rspec/core.rb#128 - def current_example=(example); end - - # source://rspec-core/3.13.3/lib/rspec/core.rb#154 - def current_scope; end - - # source://rspec-core/3.13.3/lib/rspec/core.rb#134 - def current_scope=(scope); end - - # source://rspec-core/3.13.3/lib/rspec/core/dsl.rb#42 - def describe(*args, &example_group_block); end - - # source://rspec-core/3.13.3/lib/rspec/core/dsl.rb#42 - def example_group(*args, &example_group_block); end - - # source://rspec-core/3.13.3/lib/rspec/core/dsl.rb#42 - def fcontext(*args, &example_group_block); end - - # source://rspec-core/3.13.3/lib/rspec/core/dsl.rb#42 - def fdescribe(*args, &example_group_block); end - - # source://rspec-core/3.13.3/lib/rspec/core.rb#58 - def reset; end - - # source://rspec-core/3.13.3/lib/rspec/core/shared_example_group.rb#110 - def shared_context(name, *args, &block); end - - # source://rspec-core/3.13.3/lib/rspec/core/shared_example_group.rb#110 - def shared_examples(name, *args, &block); end - - # source://rspec-core/3.13.3/lib/rspec/core/shared_example_group.rb#110 - def shared_examples_for(name, *args, &block); end - - # source://rspec-core/3.13.3/lib/rspec/core.rb#160 - def world; end - - # source://rspec-core/3.13.3/lib/rspec/core.rb#49 - def world=(_arg0); end - - # source://rspec-core/3.13.3/lib/rspec/core/dsl.rb#42 - def xcontext(*args, &example_group_block); end - - # source://rspec-core/3.13.3/lib/rspec/core/dsl.rb#42 - def xdescribe(*args, &example_group_block); end - end end # Consistent implementation for "cleaning" the caller method to strip out @@ -185,18 +117,6 @@ module RSpec::Support # source://rspec-support//lib/rspec/support/matcher_definition.rb#16 def register_matcher_definition(&block); end - # source://rspec-support//lib/rspec/support.rb#25 - def require_rspec_core(f); end - - # source://rspec-support//lib/rspec/support.rb#25 - def require_rspec_expectations(f); end - - # source://rspec-support//lib/rspec/support.rb#25 - def require_rspec_matchers(f); end - - # source://rspec-support//lib/rspec/support.rb#25 - def require_rspec_mocks(f); end - # source://rspec-support//lib/rspec/support.rb#25 def require_rspec_support(f); end @@ -467,7 +387,7 @@ class RSpec::Support::EncodedString # source://rspec-support//lib/rspec/support/encoded_string.rb#46 def to_s; end - # source://rspec-support//lib/rspec/support/encoded_string.rb#46 + # source://rspec-support//lib/rspec/support/encoded_string.rb#49 def to_str; end private @@ -1055,12 +975,16 @@ class RSpec::Support::ObjectFormatter::BaseInspector < ::Struct # Returns the value of attribute formatter # # @return [Object] the current value of formatter + # + # source://rspec-support//lib/rspec/support/object_formatter.rb#129 def formatter; end # Sets the attribute formatter # # @param value [Object] the value to set the attribute formatter to. # @return [Object] the newly set value + # + # source://rspec-support//lib/rspec/support/object_formatter.rb#129 def formatter=(_); end # @api private @@ -1072,12 +996,16 @@ class RSpec::Support::ObjectFormatter::BaseInspector < ::Struct # Returns the value of attribute object # # @return [Object] the current value of object + # + # source://rspec-support//lib/rspec/support/object_formatter.rb#129 def object; end # Sets the attribute object # # @param value [Object] the value to set the attribute object to. # @return [Object] the newly set value + # + # source://rspec-support//lib/rspec/support/object_formatter.rb#129 def object=(_); end # @api private @@ -1086,6 +1014,7 @@ class RSpec::Support::ObjectFormatter::BaseInspector < ::Struct def pretty_print(pp); end class << self + # source://rspec-support//lib/rspec/support/object_formatter.rb#129 def [](*_arg0); end # @api private @@ -1095,9 +1024,16 @@ class RSpec::Support::ObjectFormatter::BaseInspector < ::Struct # source://rspec-support//lib/rspec/support/object_formatter.rb#130 def can_inspect?(_object); end + # source://rspec-support//lib/rspec/support/object_formatter.rb#129 def inspect; end + + # source://rspec-support//lib/rspec/support/object_formatter.rb#129 def keyword_init?; end + + # source://rspec-support//lib/rspec/support/object_formatter.rb#129 def members; end + + # source://rspec-support//lib/rspec/support/object_formatter.rb#129 def new(*_arg0); end end end @@ -1209,19 +1145,32 @@ class RSpec::Support::ObjectFormatter::InspectableItem < ::Struct # Returns the value of attribute text # # @return [Object] the current value of text + # + # source://rspec-support//lib/rspec/support/object_formatter.rb#119 def text; end # Sets the attribute text # # @param value [Object] the value to set the attribute text to. # @return [Object] the newly set value + # + # source://rspec-support//lib/rspec/support/object_formatter.rb#119 def text=(_); end class << self + # source://rspec-support//lib/rspec/support/object_formatter.rb#119 def [](*_arg0); end + + # source://rspec-support//lib/rspec/support/object_formatter.rb#119 def inspect; end + + # source://rspec-support//lib/rspec/support/object_formatter.rb#119 def keyword_init?; end + + # source://rspec-support//lib/rspec/support/object_formatter.rb#119 def members; end + + # source://rspec-support//lib/rspec/support/object_formatter.rb#119 def new(*_arg0); end end end diff --git a/Library/Homebrew/sorbet/rbi/gems/rubocop-ast@1.44.1.rbi b/Library/Homebrew/sorbet/rbi/gems/rubocop-ast@1.45.1.rbi similarity index 83% rename from Library/Homebrew/sorbet/rbi/gems/rubocop-ast@1.44.1.rbi rename to Library/Homebrew/sorbet/rbi/gems/rubocop-ast@1.45.1.rbi index 6185c2f84e..9557a9dc6c 100644 --- a/Library/Homebrew/sorbet/rbi/gems/rubocop-ast@1.44.1.rbi +++ b/Library/Homebrew/sorbet/rbi/gems/rubocop-ast@1.45.1.rbi @@ -192,7 +192,7 @@ class RuboCop::AST::ArrayNode < ::RuboCop::AST::Node # # @return [Array] an array of value nodes # - # source://ast/2.4.3/lib/ast/node.rb#56 + # source://rubocop-ast//lib/rubocop/ast/node/array_node.rb#18 def values; end end @@ -216,7 +216,7 @@ class RuboCop::AST::AsgnNode < ::RuboCop::AST::Node # # @return [Symbol] the name of the variable being assigned # - # source://rubocop-ast//lib/rubocop/ast/node/asgn_node.rb#12 + # source://rubocop-ast//lib/rubocop/ast/node/asgn_node.rb#15 def lhs; end # The name of the variable being assigned as a symbol. @@ -230,7 +230,7 @@ class RuboCop::AST::AsgnNode < ::RuboCop::AST::Node # # @return [Node] the expression being assigned. # - # source://rubocop-ast//lib/rubocop/ast/node/asgn_node.rb#20 + # source://rubocop-ast//lib/rubocop/ast/node/asgn_node.rb#23 def rhs; end end @@ -628,17 +628,17 @@ class RuboCop::AST::CasgnNode < ::RuboCop::AST::Node # source://rubocop-ast//lib/rubocop/ast/node/casgn_node.rb#17 def expression; end - # source://rubocop-ast//lib/rubocop/ast/node/mixin/constant_node.rb#14 + # source://rubocop-ast//lib/rubocop/ast/node/casgn_node.rb#12 def lhs; end - # source://rubocop-ast//lib/rubocop/ast/node/mixin/constant_node.rb#14 + # source://rubocop-ast//lib/rubocop/ast/node/casgn_node.rb#11 def name; end # The expression being assigned to the variable. # # @return [Node] the expression being assigned. # - # source://rubocop-ast//lib/rubocop/ast/node/casgn_node.rb#17 + # source://rubocop-ast//lib/rubocop/ast/node/casgn_node.rb#20 def rhs; end end @@ -676,412 +676,412 @@ end module RuboCop::AST::CollectionNode extend ::RuboCop::SimpleForwardable - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def &(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def *(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def +(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def -(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def <<(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def [](*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def []=(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def all?(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def any?(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def append(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def assoc(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def at(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def bsearch(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def bsearch_index(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def chain(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def chunk(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def chunk_while(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def clear(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def collect(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def collect!(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def collect_concat(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def combination(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def compact(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def compact!(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def concat(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def count(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def cycle(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def deconstruct(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def delete(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def delete_at(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def delete_if(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def detect(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def difference(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def dig(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def drop(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def drop_while(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def each(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def each_cons(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def each_entry(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def each_index(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def each_slice(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def each_with_index(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def each_with_object(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def empty?(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def entries(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def fetch(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def fetch_values(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def fill(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def filter(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def filter!(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def filter_map(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def find(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def find_all(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def find_index(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def first(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def flat_map(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def flatten(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def flatten!(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def grep(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def grep_v(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def group_by(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def include?(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def index(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def inject(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def insert(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def intersect?(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def intersection(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def join(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def keep_if(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def last(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def lazy(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def length(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def map(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def map!(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def max(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def max_by(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def member?(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def min(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def min_by(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def minmax(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def minmax_by(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def none?(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def one?(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def pack(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def partition(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def permutation(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def place(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def pop(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def prepend(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def product(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def push(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def rassoc(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def reduce(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def reject(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def reject!(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def repeated_combination(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def repeated_permutation(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def replace(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def reverse(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def reverse!(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def reverse_each(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def rindex(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def rotate(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def rotate!(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def sample(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def select(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def select!(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def shelljoin(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def shift(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def shuffle(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def shuffle!(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def size(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def slice(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def slice!(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def slice_after(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def slice_before(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def slice_when(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def sort(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def sort!(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def sort_by(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def sort_by!(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def sum(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def take(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def take_while(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def tally(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def to_ary(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def to_h(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def to_set(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def transpose(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def union(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def uniq(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def uniq!(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def unshift(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def values_at(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def zip(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/collection_node.rb#13 def |(*_arg0, **_arg1, &_arg2); end end @@ -1150,7 +1150,7 @@ module RuboCop::AST::ConstantNode # Note: some classes might have uppercase in which case this method # returns false # - # source://rubocop-ast//lib/rubocop/ast/node/mixin/constant_node.rb#21 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/constant_node.rb#24 def class_name?; end # Yield nodes for the namespace @@ -1271,7 +1271,7 @@ class RuboCop::AST::DefinedNode < ::RuboCop::AST::Node include ::RuboCop::AST::MethodIdentifierPredicates include ::RuboCop::AST::MethodDispatchNode - # source://ast/2.4.3/lib/ast/node.rb#56 + # source://rubocop-ast//lib/rubocop/ast/node/defined_node.rb#16 def arguments; end # source://rubocop-ast//lib/rubocop/ast/node/defined_node.rb#12 @@ -2199,7 +2199,7 @@ class RuboCop::AST::MasgnNode < ::RuboCop::AST::Node # # @return [Node] the right hand side of a multiple assignment. # - # source://rubocop-ast//lib/rubocop/ast/node/masgn_node.rb#39 + # source://rubocop-ast//lib/rubocop/ast/node/masgn_node.rb#42 def rhs; end # In contrast to `expression`, `values` always returns a Ruby array @@ -2253,7 +2253,7 @@ module RuboCop::AST::MethodDispatchNode # # @return [Boolean] whether the dispatched method is a setter # - # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#107 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/method_dispatch_node.rb#110 def assignment?; end # Checks whether the dispatched method is a bare access modifier that @@ -2741,19 +2741,19 @@ class RuboCop::AST::Node < ::Parser::AST::Node # @return [Node] a new instance of Node # @see https://www.rubydoc.info/gems/ast/AST/Node:initialize # - # source://rubocop-ast//lib/rubocop/ast/node.rb#145 + # source://rubocop-ast//lib/rubocop/ast/node.rb#148 def initialize(type, children = T.unsafe(nil), properties = T.unsafe(nil)); end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def __ENCODING___type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def __FILE___type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def __LINE___type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def alias_type?; end # Returns an array of ancestor nodes. @@ -2761,183 +2761,188 @@ class RuboCop::AST::Node < ::Parser::AST::Node # # @return [Array] an array of ancestor nodes # - # source://rubocop-ast//lib/rubocop/ast/node.rb#310 + # source://rubocop-ast//lib/rubocop/ast/node.rb#313 def ancestors; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def and_asgn_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def and_type?; end # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node.rb#539 + # source://rubocop-ast//lib/rubocop/ast/node.rb#542 def any_block_type?; end # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node.rb#519 + # source://rubocop-ast//lib/rubocop/ast/node.rb#522 def any_def_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # @return [Boolean] + # + # source://rubocop-ast//lib/rubocop/ast/node.rb#546 + def any_match_pattern_type?; end + + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def arg_expr_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def arg_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def args_type?; end # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node.rb#515 + # source://rubocop-ast//lib/rubocop/ast/node.rb#518 def argument?; end # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node.rb#523 + # source://rubocop-ast//lib/rubocop/ast/node.rb#526 def argument_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def array_pattern_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def array_pattern_with_tail_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def array_type?; end # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node.rb#467 + # source://rubocop-ast//lib/rubocop/ast/node.rb#470 def assignment?; end # Some cops treat the shovel operator as a kind of assignment. # - # source://rubocop-ast//lib/rubocop/ast/node.rb#417 + # source://rubocop-ast//lib/rubocop/ast/node.rb#420 def assignment_or_similar?(param0 = T.unsafe(nil)); end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def back_ref_type?; end # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node.rb#471 + # source://rubocop-ast//lib/rubocop/ast/node.rb#474 def basic_conditional?; end # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node.rb#425 + # source://rubocop-ast//lib/rubocop/ast/node.rb#428 def basic_literal?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def begin_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def block_pass_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def block_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def blockarg_expr_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def blockarg_type?; end # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node.rb#527 + # source://rubocop-ast//lib/rubocop/ast/node.rb#530 def boolean_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def break_type?; end # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node.rb#507 + # source://rubocop-ast//lib/rubocop/ast/node.rb#510 def call_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def case_match_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def case_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def casgn_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def cbase_type?; end # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node.rb#511 + # source://rubocop-ast//lib/rubocop/ast/node.rb#514 def chained?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#587 + # source://rubocop-ast//lib/rubocop/ast/node.rb#594 def class_constructor?(param0 = T.unsafe(nil)); end - # source://rubocop-ast//lib/rubocop/ast/node.rb#605 + # source://rubocop-ast//lib/rubocop/ast/node.rb#612 def class_definition?(param0 = T.unsafe(nil)); end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def class_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#207 + # source://rubocop-ast//lib/rubocop/ast/node.rb#210 def complete!; end # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node.rb#212 + # source://rubocop-ast//lib/rubocop/ast/node.rb#215 def complete?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def complex_type?; end # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node.rb#475 + # source://rubocop-ast//lib/rubocop/ast/node.rb#478 def conditional?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#356 + # source://rubocop-ast//lib/rubocop/ast/node.rb#359 def const_name; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def const_pattern_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def const_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def csend_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def cvar_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def cvasgn_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def def_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#376 + # source://rubocop-ast//lib/rubocop/ast/node.rb#379 def defined_module; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#381 + # source://rubocop-ast//lib/rubocop/ast/node.rb#384 def defined_module_name; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def defined_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def defs_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def dstr_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def dsym_type?; end # Calls the given block for each ancestor node from parent to root. @@ -2950,169 +2955,169 @@ class RuboCop::AST::Node < ::Parser::AST::Node # @return [Enumerator] if no block is given # @yieldparam node [Node] each ancestor node # - # source://rubocop-ast//lib/rubocop/ast/node.rb#298 + # source://rubocop-ast//lib/rubocop/ast/node.rb#301 def each_ancestor(*types, &block); end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def eflipflop_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def empty_else_type?; end # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node.rb#411 + # source://rubocop-ast//lib/rubocop/ast/node.rb#414 def empty_source?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def ensure_type?; end # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node.rb#459 + # source://rubocop-ast//lib/rubocop/ast/node.rb#462 def equals_asgn?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def erange_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def false_type?; end # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node.rb#433 + # source://rubocop-ast//lib/rubocop/ast/node.rb#436 def falsey_literal?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def find_pattern_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#324 + # source://rubocop-ast//lib/rubocop/ast/node.rb#327 def first_line; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def float_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def for_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def forward_arg_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def forward_args_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def forwarded_args_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def forwarded_kwrestarg_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def forwarded_restarg_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#584 + # source://rubocop-ast//lib/rubocop/ast/node.rb#591 def global_const?(param0 = T.unsafe(nil), param1); end # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node.rb#543 + # source://rubocop-ast//lib/rubocop/ast/node.rb#550 def guard_clause?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def gvar_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def gvasgn_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def hash_pattern_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def hash_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def ident_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def if_guard_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def if_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def iflipflop_type?; end # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node.rb#441 + # source://rubocop-ast//lib/rubocop/ast/node.rb#444 def immutable_literal?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def in_match_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def in_pattern_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def index_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def indexasgn_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def int_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def irange_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def itarg_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def itblock_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def ivar_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def ivasgn_type?; end # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node.rb#488 + # source://rubocop-ast//lib/rubocop/ast/node.rb#491 def keyword?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def kwarg_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def kwargs_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def kwbegin_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def kwnilarg_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def kwoptarg_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def kwrestarg_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def kwsplat_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#578 + # source://rubocop-ast//lib/rubocop/ast/node.rb#585 def lambda?(param0 = T.unsafe(nil)); end - # source://rubocop-ast//lib/rubocop/ast/node.rb#581 + # source://rubocop-ast//lib/rubocop/ast/node.rb#588 def lambda_or_proc?(param0 = T.unsafe(nil)); end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def lambda_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#328 + # source://rubocop-ast//lib/rubocop/ast/node.rb#331 def last_line; end # Use is discouraged, this is a potentially slow method and can lead @@ -3120,7 +3125,7 @@ class RuboCop::AST::Node < ::Parser::AST::Node # # @return [Node, nil] the left (aka previous) sibling # - # source://rubocop-ast//lib/rubocop/ast/node.rb#250 + # source://rubocop-ast//lib/rubocop/ast/node.rb#253 def left_sibling; end # Use is discouraged, this is a potentially slow method and can lead @@ -3128,22 +3133,22 @@ class RuboCop::AST::Node < ::Parser::AST::Node # # @return [Array] the left (aka previous) siblings # - # source://rubocop-ast//lib/rubocop/ast/node.rb#260 + # source://rubocop-ast//lib/rubocop/ast/node.rb#263 def left_siblings; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#332 + # source://rubocop-ast//lib/rubocop/ast/node.rb#335 def line_count; end # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node.rb#421 + # source://rubocop-ast//lib/rubocop/ast/node.rb#424 def literal?; end # Shortcut to safely check if a location is present # # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node.rb#551 + # source://rubocop-ast//lib/rubocop/ast/node.rb#558 def loc?(which_loc); end # Shortcut to safely test a particular location, even if @@ -3151,86 +3156,86 @@ class RuboCop::AST::Node < ::Parser::AST::Node # # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node.rb#559 + # source://rubocop-ast//lib/rubocop/ast/node.rb#566 def loc_is?(which_loc, str); end # NOTE: `loop { }` is a normal method call and thus not a loop keyword. # # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node.rb#484 + # source://rubocop-ast//lib/rubocop/ast/node.rb#487 def loop_keyword?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def lvar_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def lvasgn_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def masgn_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def match_alt_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def match_as_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def match_current_line_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#566 + # source://rubocop-ast//lib/rubocop/ast/node.rb#573 def match_guard_clause?(param0 = T.unsafe(nil)); end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def match_nil_pattern_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def match_pattern_p_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def match_pattern_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def match_rest_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def match_var_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def match_with_lvasgn_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def match_with_trailing_comma_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def mlhs_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#612 + # source://rubocop-ast//lib/rubocop/ast/node.rb#619 def module_definition?(param0 = T.unsafe(nil)); end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def module_type?; end # Predicates # # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node.rb#403 + # source://rubocop-ast//lib/rubocop/ast/node.rb#406 def multiline?; end # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node.rb#437 + # source://rubocop-ast//lib/rubocop/ast/node.rb#440 def mutable_literal?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#743 + # source://rubocop-ast//lib/rubocop/ast/node.rb#750 def new_class_or_module_block?(param0 = T.unsafe(nil)); end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def next_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def nil_type?; end # Common destructuring method. This can be used to normalize @@ -3240,98 +3245,98 @@ class RuboCop::AST::Node < ::Parser::AST::Node # # @return [Array] the different parts of the ndde # - # source://ast/2.4.3/lib/ast/node.rb#56 + # source://rubocop-ast//lib/rubocop/ast/node.rb#284 def node_parts; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#338 + # source://rubocop-ast//lib/rubocop/ast/node.rb#341 def nonempty_line_count; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def not_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def nth_ref_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def numargs_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def numblock_type?; end # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node.rb#531 + # source://rubocop-ast//lib/rubocop/ast/node.rb#534 def numeric_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def objc_kwarg_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def objc_restarg_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def objc_varargs_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def op_asgn_type?; end # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node.rb#499 + # source://rubocop-ast//lib/rubocop/ast/node.rb#502 def operator_keyword?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def optarg_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def or_asgn_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def or_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def pair_type?; end # Returns the parent node, or `nil` if the receiver is a root node. # # @return [Node, nil] the parent node or `nil` # - # source://rubocop-ast//lib/rubocop/ast/node.rb#189 + # source://rubocop-ast//lib/rubocop/ast/node.rb#192 def parent; end # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node.rb#198 + # source://rubocop-ast//lib/rubocop/ast/node.rb#201 def parent?; end # Searching the AST # - # source://rubocop-ast//lib/rubocop/ast/node.rb#387 + # source://rubocop-ast//lib/rubocop/ast/node.rb#390 def parent_module_name; end # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node.rb#503 + # source://rubocop-ast//lib/rubocop/ast/node.rb#506 def parenthesized_call?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def pin_type?; end # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node.rb#479 + # source://rubocop-ast//lib/rubocop/ast/node.rb#482 def post_condition_loop?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def postexe_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def preexe_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#571 + # source://rubocop-ast//lib/rubocop/ast/node.rb#578 def proc?(param0 = T.unsafe(nil)); end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def procarg0_type?; end # Some expressions are evaluated for their value, some for their side @@ -3344,60 +3349,60 @@ class RuboCop::AST::Node < ::Parser::AST::Node # # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node.rb#655 + # source://rubocop-ast//lib/rubocop/ast/node.rb#662 def pure?; end # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node.rb#535 + # source://rubocop-ast//lib/rubocop/ast/node.rb#538 def range_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def rational_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#349 + # source://rubocop-ast//lib/rubocop/ast/node.rb#352 def receiver(param0 = T.unsafe(nil)); end # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node.rb#129 + # source://rubocop-ast//lib/rubocop/ast/node.rb#131 def recursive_basic_literal?; end # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node.rb#129 + # source://rubocop-ast//lib/rubocop/ast/node.rb#131 def recursive_literal?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def redo_type?; end # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node.rb#455 + # source://rubocop-ast//lib/rubocop/ast/node.rb#458 def reference?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def regexp_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def regopt_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def resbody_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def rescue_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def restarg_expr_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def restarg_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def retry_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def return_type?; end # Use is discouraged, this is a potentially slow method and can lead @@ -3405,7 +3410,7 @@ class RuboCop::AST::Node < ::Parser::AST::Node # # @return [Node, nil] the right (aka next) sibling # - # source://rubocop-ast//lib/rubocop/ast/node.rb#241 + # source://rubocop-ast//lib/rubocop/ast/node.rb#244 def right_sibling; end # Use is discouraged, this is a potentially slow method and can lead @@ -3413,18 +3418,18 @@ class RuboCop::AST::Node < ::Parser::AST::Node # # @return [Array] the right (aka next) siblings # - # source://rubocop-ast//lib/rubocop/ast/node.rb#269 + # source://rubocop-ast//lib/rubocop/ast/node.rb#272 def right_siblings; end # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node.rb#203 + # source://rubocop-ast//lib/rubocop/ast/node.rb#206 def root?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def sclass_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def self_type?; end # Most nodes are of 'send' type, so this method is defined @@ -3432,15 +3437,15 @@ class RuboCop::AST::Node < ::Parser::AST::Node # # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node.rb#182 + # source://rubocop-ast//lib/rubocop/ast/node.rb#185 def send_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def shadowarg_type?; end # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node.rb#463 + # source://rubocop-ast//lib/rubocop/ast/node.rb#466 def shorthand_asgn?; end # Returns the index of the receiver node in its siblings. (Sibling index @@ -3449,58 +3454,58 @@ class RuboCop::AST::Node < ::Parser::AST::Node # # @return [Integer, nil] the index of the receiver node in its siblings # - # source://rubocop-ast//lib/rubocop/ast/node.rb#234 + # source://rubocop-ast//lib/rubocop/ast/node.rb#237 def sibling_index; end # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node.rb#407 + # source://rubocop-ast//lib/rubocop/ast/node.rb#410 def single_line?; end # NOTE: Some rare nodes may have no source, like `s(:args)` in `foo {}` # # @return [String, nil] # - # source://rubocop-ast//lib/rubocop/ast/node.rb#316 + # source://rubocop-ast//lib/rubocop/ast/node.rb#319 def source; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#342 + # source://rubocop-ast//lib/rubocop/ast/node.rb#345 def source_length; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#320 + # source://rubocop-ast//lib/rubocop/ast/node.rb#323 def source_range; end # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node.rb#495 + # source://rubocop-ast//lib/rubocop/ast/node.rb#498 def special_keyword?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def splat_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#354 + # source://rubocop-ast//lib/rubocop/ast/node.rb#357 def str_content(param0 = T.unsafe(nil)); end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def str_type?; end # @deprecated Use `:class_constructor?` # - # source://rubocop-ast//lib/rubocop/ast/node.rb#600 + # source://rubocop-ast//lib/rubocop/ast/node.rb#607 def struct_constructor?(param0 = T.unsafe(nil)); end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def super_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def sym_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def true_type?; end # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node.rb#429 + # source://rubocop-ast//lib/rubocop/ast/node.rb#432 def truthy_literal?; end # Determine if the node is one of several node types in a single query @@ -3509,19 +3514,19 @@ class RuboCop::AST::Node < ::Parser::AST::Node # # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node.rb#164 + # source://rubocop-ast//lib/rubocop/ast/node.rb#167 def type?(*types); end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def undef_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def unless_guard_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def until_post_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def until_type?; end # Override `AST::Node#updated` so that `AST::Processor` does not try to @@ -3530,7 +3535,7 @@ class RuboCop::AST::Node < ::Parser::AST::Node # identical subtrees. Rather, the entire AST must be copied any time any # part of it is changed. # - # source://rubocop-ast//lib/rubocop/ast/node.rb#223 + # source://rubocop-ast//lib/rubocop/ast/node.rb#226 def updated(type = T.unsafe(nil), children = T.unsafe(nil), properties = T.unsafe(nil)); end # Some expressions are evaluated for their value, some for their side @@ -3543,78 +3548,78 @@ class RuboCop::AST::Node < ::Parser::AST::Node # # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node.rb#625 + # source://rubocop-ast//lib/rubocop/ast/node.rb#632 def value_used?; end # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node.rb#451 + # source://rubocop-ast//lib/rubocop/ast/node.rb#454 def variable?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def when_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def while_post_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def while_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def xstr_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def yield_type?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#174 + # source://rubocop-ast//lib/rubocop/ast/node.rb#176 def zsuper_type?; end protected - # source://rubocop-ast//lib/rubocop/ast/node.rb#193 + # source://rubocop-ast//lib/rubocop/ast/node.rb#196 def parent=(node); end private # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node.rb#682 + # source://rubocop-ast//lib/rubocop/ast/node.rb#689 def begin_value_used?; end # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node.rb#693 + # source://rubocop-ast//lib/rubocop/ast/node.rb#700 def case_if_value_used?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#367 + # source://rubocop-ast//lib/rubocop/ast/node.rb#370 def defined_module0(param0 = T.unsafe(nil)); end # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node.rb#687 + # source://rubocop-ast//lib/rubocop/ast/node.rb#694 def for_value_used?; end - # source://rubocop-ast//lib/rubocop/ast/node.rb#729 + # source://rubocop-ast//lib/rubocop/ast/node.rb#736 def parent_module_name_for_block(ancestor); end - # source://rubocop-ast//lib/rubocop/ast/node.rb#717 + # source://rubocop-ast//lib/rubocop/ast/node.rb#724 def parent_module_name_for_sclass(sclass_node); end - # source://rubocop-ast//lib/rubocop/ast/node.rb#704 + # source://rubocop-ast//lib/rubocop/ast/node.rb#711 def parent_module_name_part(node); end - # source://rubocop-ast//lib/rubocop/ast/node.rb#673 + # source://rubocop-ast//lib/rubocop/ast/node.rb#680 def visit_ancestors(types); end # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node.rb#699 + # source://rubocop-ast//lib/rubocop/ast/node.rb#706 def while_until_value_used?; end class << self private - # source://rubocop-ast//lib/rubocop/ast/node.rb#124 + # source://rubocop-ast//lib/rubocop/ast/node.rb#127 def def_recursive_literal_predicate(kind); end end end @@ -3778,13 +3783,13 @@ class RuboCop::AST::NodePattern # source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#73 def ast; end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#75 def captures(*_arg0, **_arg1, &_arg2); end # source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#111 def encode_with(coder); end - # source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#90 + # source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#93 def eql?(other); end # source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#119 @@ -3807,7 +3812,7 @@ class RuboCop::AST::NodePattern # source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#73 def match_code; end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#75 def named_parameters(*_arg0, **_arg1, &_arg2); end # Returns the value of attribute pattern. @@ -3815,7 +3820,7 @@ class RuboCop::AST::NodePattern # source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#73 def pattern; end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#75 def positional_parameters(*_arg0, **_arg1, &_arg2); end # source://rubocop-ast//lib/rubocop/ast/node_pattern.rb#95 @@ -3899,7 +3904,7 @@ class RuboCop::AST::NodePattern::Comment # Returns the value of attribute location. # - # source://rubocop-ast//lib/rubocop/ast/node_pattern/comment.rb#8 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/comment.rb#9 def loc; end # Returns the value of attribute location. @@ -3928,7 +3933,7 @@ class RuboCop::AST::NodePattern::Compiler # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler.rb#15 def initialize; end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler.rb#24 def bind(*_arg0, **_arg1, &_arg2); end # Returns the value of attribute binding. @@ -4011,7 +4016,7 @@ class RuboCop::AST::NodePattern::Compiler::AtomSubcompiler < ::RuboCop::AST::Nod # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/atom_subcompiler.rb#32 def visit_named_parameter; end - # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/atom_subcompiler.rb#21 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/atom_subcompiler.rb#24 def visit_number; end # Assumes other types are node patterns. @@ -4022,13 +4027,13 @@ class RuboCop::AST::NodePattern::Compiler::AtomSubcompiler < ::RuboCop::AST::Nod # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/atom_subcompiler.rb#36 def visit_positional_parameter; end - # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/atom_subcompiler.rb#21 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/atom_subcompiler.rb#26 def visit_regexp; end # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/atom_subcompiler.rb#40 def visit_set; end - # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/atom_subcompiler.rb#21 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/atom_subcompiler.rb#25 def visit_string; end # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/atom_subcompiler.rb#21 @@ -4072,74 +4077,74 @@ end class RuboCop::AST::NodePattern::Compiler::Debug < ::RuboCop::AST::NodePattern::Compiler # @return [Debug] a new instance of Debug # - # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#116 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#118 def initialize; end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#131 def comments(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#121 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#123 def named_parameters; end # Returns the value of attribute node_ids. # - # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#33 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#35 def node_ids; end - # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#125 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#127 def parser; end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#131 def tokens(*_arg0, **_arg1, &_arg2); end end # @api private # -# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#36 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#38 class RuboCop::AST::NodePattern::Compiler::Debug::Colorizer # @api private # @return [Colorizer] a new instance of Colorizer # - # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#96 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#98 def initialize(pattern, compiler: T.unsafe(nil)); end # @api private # - # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#94 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#96 def compiler; end # @api private # - # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#94 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#96 def node_pattern; end # @api private # - # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#94 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#96 def pattern; end # @api private # @return [Node] the Ruby AST # - # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#103 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#105 def test(ruby, trace: T.unsafe(nil)); end private # @api private # - # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#111 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#113 def ruby_ast(ruby); end end # @api private # -# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#37 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#39 RuboCop::AST::NodePattern::Compiler::Debug::Colorizer::COLOR_SCHEME = T.let(T.unsafe(nil), Hash) # @api private # -# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#92 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#94 RuboCop::AST::NodePattern::Compiler::Debug::Colorizer::Compiler = RuboCop::AST::NodePattern::Compiler::Debug # Result of a NodePattern run against a particular AST @@ -4147,129 +4152,154 @@ RuboCop::AST::NodePattern::Compiler::Debug::Colorizer::Compiler = RuboCop::AST:: # # @api private # -# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#46 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#48 class RuboCop::AST::NodePattern::Compiler::Debug::Colorizer::Result < ::Struct # @api private # @return [Hash] a map for {character_position => color} # - # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#56 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#58 def color_map(color_scheme = T.unsafe(nil)); end # @api private # @return [String] a Rainbow colorized version of ruby # - # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#48 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#50 def colorize(color_scheme = T.unsafe(nil)); end # Returns the value of attribute colorizer # # @return [Object] the current value of colorizer + # + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#48 def colorizer; end # Sets the attribute colorizer # # @param value [Object] the value to set the attribute colorizer to. # @return [Object] the newly set value + # + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#48 def colorizer=(_); end # @api private # @return [Hash] a map for {node => matched?}, depth-first # - # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#66 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#68 def match_map; end # @api private # @return [Boolean] a value of `Trace#matched?` or `:not_visitable` # - # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#74 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#76 def matched?(node); end # Returns the value of attribute returned # # @return [Object] the current value of returned + # + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#48 def returned; end # Sets the attribute returned # # @param value [Object] the value to set the attribute returned to. # @return [Object] the newly set value + # + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#48 def returned=(_); end # Returns the value of attribute ruby_ast # # @return [Object] the current value of ruby_ast + # + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#48 def ruby_ast; end # Sets the attribute ruby_ast # # @param value [Object] the value to set the attribute ruby_ast to. # @return [Object] the newly set value + # + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#48 def ruby_ast=(_); end # Returns the value of attribute trace # # @return [Object] the current value of trace + # + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#48 def trace; end # Sets the attribute trace # # @param value [Object] the value to set the attribute trace to. # @return [Object] the newly set value + # + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#48 def trace=(_); end private # @api private # - # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#87 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#89 def ast; end # @api private # - # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#81 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#83 def color_map_for(node, color); end class << self + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#48 def [](*_arg0); end + + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#48 def inspect; end + + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#48 def keyword_init?; end + + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#48 def members; end + + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#48 def new(*_arg0); end end end # @api private # -# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#132 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#134 module RuboCop::AST::NodePattern::Compiler::Debug::InstrumentationSubcompiler # @api private # - # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#133 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#135 def do_compile; end private # @api private # - # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#143 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#145 def node_id; end # @api private # - # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#139 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#141 def tracer(kind); end end # @api private # -# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#149 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#151 class RuboCop::AST::NodePattern::Compiler::Debug::NodePatternSubcompiler < ::RuboCop::AST::NodePattern::Compiler::NodePatternSubcompiler include ::RuboCop::AST::NodePattern::Compiler::Debug::InstrumentationSubcompiler end # @api private # -# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#154 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#156 class RuboCop::AST::NodePattern::Compiler::Debug::SequenceSubcompiler < ::RuboCop::AST::NodePattern::Compiler::SequenceSubcompiler include ::RuboCop::AST::NodePattern::Compiler::Debug::InstrumentationSubcompiler end @@ -4284,17 +4314,17 @@ class RuboCop::AST::NodePattern::Compiler::Debug::Trace # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#14 def initialize; end - # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#18 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#19 def enter(node_id); end # return nil (not visited), false (not matched) or true (matched) # # @return [Boolean] # - # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#28 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#30 def matched?(node_id); end - # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#23 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/debug.rb#25 def success(node_id); end end @@ -4400,7 +4430,7 @@ end # Doc on how this fits in the compiling process: # /docs/modules/ROOT/pages/node_pattern.adoc # -# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb#16 +# source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb#17 class RuboCop::AST::NodePattern::Compiler::SequenceSubcompiler < ::RuboCop::AST::NodePattern::Compiler::Subcompiler # Calls `compile_sequence`; the actual `compile` method # will be used for the different terms of the sequence. @@ -4438,7 +4468,7 @@ class RuboCop::AST::NodePattern::Compiler::SequenceSubcompiler < ::RuboCop::AST: private - # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/subcompiler.rb#20 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/compiler/sequence_subcompiler.rb#59 def compile(node); end # Compilation helpers @@ -4692,7 +4722,7 @@ class RuboCop::AST::NodePattern::LexerRex # The StringScanner for this lexer. # - # source://rubocop-ast//lib/rubocop/ast/node_pattern/lexer.rex.rb#48 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/lexer.rex.rb#55 def match; end # The match groups for the current scan. @@ -4954,7 +4984,7 @@ RuboCop::AST::NodePattern::Node::AnyOrder::ARITIES = T.let(T.unsafe(nil), Hash) # # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#96 class RuboCop::AST::NodePattern::Node::Capture < ::RuboCop::AST::NodePattern::Node - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#98 def arity(*_arg0, **_arg1, &_arg2); end # @return [Boolean] @@ -4968,7 +4998,7 @@ class RuboCop::AST::NodePattern::Node::Capture < ::RuboCop::AST::NodePattern::No # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#104 def nb_captures; end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/node.rb#98 def rest?(*_arg0, **_arg1, &_arg2); end end @@ -5209,28 +5239,28 @@ class RuboCop::AST::NodePattern::Parser < ::Racc::Parser # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.racc.rb#465 def _reduce_none(val, _values); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.rb#46 def emit_atom(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.rb#46 def emit_call(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.rb#46 def emit_capture(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.rb#46 def emit_list(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.rb#46 def emit_unary_op(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.rb#46 def emit_union(*_arg0, **_arg1, &_arg2); end # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.rb#40 def inspect; end - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop-ast//lib/rubocop/ast/node_pattern/parser.rb#48 def next_token(*_arg0, **_arg1, &_arg2); end # (Similar API to `parser` gem) @@ -5543,6 +5573,9 @@ RuboCop::AST::NodePattern::Sets::SET_INTEGER_BIGDECIMAL_COMPLEX_RATIONAL = T.let # source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_IO_FILE = T.let(T.unsafe(nil), Set) +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +RuboCop::AST::NodePattern::Sets::SET_IS_A_KIND_OF = T.let(T.unsafe(nil), Set) + # source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_IS_EXPECTED_SHOULD_SHOULD_NOT = T.let(T.unsafe(nil), Set) @@ -5645,6 +5678,9 @@ RuboCop::AST::NodePattern::Sets::SET_REJECT_REJECT = T.let(T.unsafe(nil), Set) # source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_REQUIRE_REQUIRE_RELATIVE = T.let(T.unsafe(nil), Set) +# source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 +RuboCop::AST::NodePattern::Sets::SET_SELECT_FILTER = T.let(T.unsafe(nil), Set) + # source://rubocop-ast//lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_SELECT_FILTER_FIND_ALL = T.let(T.unsafe(nil), Set) @@ -5830,7 +5866,7 @@ class RuboCop::AST::OpAsgnNode < ::RuboCop::AST::Node # @return [AsgnNode] the assignment node # - # source://rubocop-ast//lib/rubocop/ast/node/op_asgn_node.rb#10 + # source://rubocop-ast//lib/rubocop/ast/node/op_asgn_node.rb#13 def lhs; end # The name of the variable being assigned as a symbol. @@ -5851,7 +5887,7 @@ class RuboCop::AST::OpAsgnNode < ::RuboCop::AST::Node # # @return [Node] the expression being assigned. # - # source://rubocop-ast//lib/rubocop/ast/node/op_asgn_node.rb#32 + # source://rubocop-ast//lib/rubocop/ast/node/op_asgn_node.rb#35 def rhs; end end @@ -6015,7 +6051,7 @@ module RuboCop::AST::ParameterizedNode # # @return [Boolean] whether the node is a splat argument # - # source://rubocop-ast//lib/rubocop/ast/node/mixin/parameterized_node.rb#48 + # source://rubocop-ast//lib/rubocop/ast/node/mixin/parameterized_node.rb#52 def rest_argument?; end # Checks whether any argument of the node is a splat @@ -6207,7 +6243,7 @@ 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#157 + # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#161 def commented?(source_range); end # Returns the value of attribute comments. @@ -6288,7 +6324,7 @@ class RuboCop::AST::ProcessedSource # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#77 def lines; end - # source://rubocop-md/2.0.1/lib/rubocop/markdown/rubocop_ext.rb#85 + # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#224 def parse(src, *args); end # Returns the value of attribute parser_engine. @@ -6346,35 +6382,35 @@ class RuboCop::AST::ProcessedSource private - # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#327 + # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#329 def builder_class(parser_engine); end # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#218 def comment_index; end - # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#337 + # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#339 def create_parser(ruby_version, parser_engine, prism_result); end # The Parser gem does not support Ruby 3.5 or later. # It is also not fully compatible with Ruby 3.4 but for # now respects using parser for backwards compatibility. # - # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#383 + # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#385 def default_parser_engine(ruby_version); end - # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#391 + # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#393 def first_token_index(range_or_node); end - # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#396 + # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#398 def last_token_index(range_or_node); end - # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#366 + # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#368 def normalize_parser_engine(parser_engine, ruby_version); end - # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#259 + # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#260 def parser_class(ruby_version, parser_engine); end - # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#401 + # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#403 def source_range(range_or_node); end # source://rubocop-ast//lib/rubocop/ast/processed_source.rb#243 @@ -6732,7 +6768,7 @@ class RuboCop::AST::SuperNode < ::RuboCop::AST::Node include ::RuboCop::AST::MethodIdentifierPredicates include ::RuboCop::AST::MethodDispatchNode - # source://ast/2.4.3/lib/ast/node.rb#56 + # source://rubocop-ast//lib/rubocop/ast/node/super_node.rb#20 def arguments; end # Custom destructuring method. This can be used to normalize @@ -6919,397 +6955,397 @@ RuboCop::AST::Token::LEFT_PAREN_TYPES = T.let(T.unsafe(nil), Array) module RuboCop::AST::Traversal extend ::RuboCop::AST::Traversal::CallbackCompiler - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#183 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#43 def on_(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#132 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on___ENCODING__(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#132 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on___FILE__(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#132 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on___LINE__(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#145 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_alias(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#145 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_and(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#145 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_and_asgn(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_arg(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#137 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_arg_expr(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#145 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_args(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#145 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_array(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#145 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_array_pattern(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#145 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_array_pattern_with_tail(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_back_ref(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#145 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_begin(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#160 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#43 def on_block(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#138 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#43 def on_block_pass(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_blockarg(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#145 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_break(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#148 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#43 def on_case(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#148 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_case_match(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#155 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#43 def on_casgn(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#132 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_cbase(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#156 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#43 def on_class(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_complex(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#154 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#43 def on_const(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#145 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_const_pattern(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#165 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_csend(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_cvar(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#140 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_cvasgn(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#157 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#43 def on_def(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#137 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_defined?(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#163 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#43 def on_defs(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#145 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#43 def on_dstr(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#145 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_dsym(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#148 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_eflipflop(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#132 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_empty_else(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#148 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_ensure(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#148 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_erange(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#132 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_false(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#145 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_find_pattern(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_float(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#148 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_for(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#132 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_forward_arg(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#132 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_forward_args(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#132 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_forwarded_args(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#132 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_forwarded_kwrestarg(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#132 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_forwarded_restarg(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_gvar(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#140 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_gvasgn(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#145 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_hash(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#145 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_hash_pattern(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#159 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#43 def on_if(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#137 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_if_guard(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#148 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_iflipflop(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#145 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_in_match(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#148 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_in_pattern(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#145 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_index(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#145 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_indexasgn(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#43 def on_int(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#148 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_irange(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#162 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#43 def on_itblock(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_ivar(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#140 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_ivasgn(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_kwarg(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#145 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_kwargs(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#145 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_kwbegin(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#132 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_kwnilarg(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#141 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_kwoptarg(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#133 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_kwrestarg(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#134 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_kwsplat(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#132 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_lambda(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_lvar(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#140 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#43 def on_lvasgn(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#145 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_masgn(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#145 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_match_alt(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#145 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_match_as(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#137 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_match_current_line(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#132 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_match_nil_pattern(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#148 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_match_pattern(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#148 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_match_pattern_p(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#134 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_match_rest(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_match_var(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#145 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_match_with_lvasgn(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#137 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_match_with_trailing_comma(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#145 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_mlhs(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#142 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_module(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#145 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_mrasgn(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#145 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_next(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#132 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_nil(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#137 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#43 def on_not(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_nth_ref(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#161 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#43 def on_numblock(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#158 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#43 def on_op_asgn(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#141 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#43 def on_optarg(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#145 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_or(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#145 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_or_asgn(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#145 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_pair(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#137 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_pin(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#138 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_postexe(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#138 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_preexe(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#145 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_procarg0(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#145 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_rasgn(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_rational(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#132 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_redo(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#145 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_regexp(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#144 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#43 def on_regopt(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#148 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_resbody(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#148 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_rescue(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#133 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#43 def on_restarg(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#132 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_retry(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#145 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_return(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#142 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_sclass(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#132 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_self(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#165 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#43 def on_send(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_shadowarg(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#134 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#43 def on_splat(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_str(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#145 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_super(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#136 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_sym(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#132 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#43 def on_true(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#145 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_undef(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#137 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_unless_guard(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#142 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_until(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#145 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_until_post(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#148 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_when(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#142 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#43 def on_while(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#145 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_while_post(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#145 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_xstr(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#145 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_yield(node); end - # source://rubocop-ast//lib/rubocop/ast/traversal.rb#132 + # source://rubocop-ast//lib/rubocop/ast/traversal.rb#50 def on_zsuper(node); end # source://rubocop-ast//lib/rubocop/ast/traversal.rb#17 @@ -7495,7 +7531,7 @@ class RuboCop::AST::YieldNode < ::RuboCop::AST::Node include ::RuboCop::AST::MethodIdentifierPredicates include ::RuboCop::AST::MethodDispatchNode - # source://ast/2.4.3/lib/ast/node.rb#56 + # source://rubocop-ast//lib/rubocop/ast/node/yield_node.rb#20 def arguments; end # Custom destructuring method. This can be used to normalize @@ -7507,343 +7543,9 @@ class RuboCop::AST::YieldNode < ::RuboCop::AST::Node def node_parts; end end -class RuboCop::CommentConfig - # source://rubocop/1.75.6/lib/rubocop/comment_config.rb#34 - def initialize(processed_source); end - - # source://rubocop/1.75.6/lib/rubocop/comment_config.rb#63 - def comment_only_line?(line_number); end - - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 - def config(*_arg0, **_arg1, &_arg2); end - - # source://rubocop/1.75.6/lib/rubocop/comment_config.rb#51 - def cop_disabled_line_ranges; end - - # source://rubocop/1.75.6/lib/rubocop/comment_config.rb#39 - def cop_enabled_at_line?(cop, line_number); end - - # source://rubocop/1.75.6/lib/rubocop/comment_config.rb#47 - def cop_opted_in?(cop); end - - # source://rubocop/1.75.6/lib/rubocop/comment_config.rb#55 - def extra_enabled_comments; end - - # source://rubocop/1.75.6/lib/rubocop/comment_config.rb#30 - def processed_source; end - - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 - def registry(*_arg0, **_arg1, &_arg2); end - - private - - # source://rubocop/1.75.6/lib/rubocop/comment_config.rb#96 - def analyze; end - - # source://rubocop/1.75.6/lib/rubocop/comment_config.rb#124 - def analyze_cop(analysis, directive); end - - # source://rubocop/1.75.6/lib/rubocop/comment_config.rb#144 - def analyze_disabled(analysis, directive); end - - # source://rubocop/1.75.6/lib/rubocop/comment_config.rb#155 - def analyze_rest(analysis, directive); end - - # source://rubocop/1.75.6/lib/rubocop/comment_config.rb#135 - def analyze_single_line(analysis, directive); end - - # source://rubocop/1.75.6/lib/rubocop/comment_config.rb#164 - def cop_line_ranges(analysis); end - - # source://rubocop/1.75.6/lib/rubocop/comment_config.rb#170 - def each_directive; end - - # source://rubocop/1.75.6/lib/rubocop/comment_config.rb#69 - def extra_enabled_comments_with_names(extras:, names:); end - - # source://rubocop/1.75.6/lib/rubocop/comment_config.rb#190 - def handle_enable_all(directive, names, extras); end - - # source://rubocop/1.75.6/lib/rubocop/comment_config.rb#204 - def handle_switch(directive, names, extras); end - - # source://rubocop/1.75.6/lib/rubocop/comment_config.rb#115 - def inject_disabled_cops_directives(analyses); end - - # source://rubocop/1.75.6/lib/rubocop/comment_config.rb#183 - def non_comment_token_line_numbers; end - - # source://rubocop/1.75.6/lib/rubocop/comment_config.rb#83 - def opt_in_cops; end - - # source://rubocop/1.75.6/lib/rubocop/comment_config.rb#179 - def qualified_cop_name(cop_name); end -end - -class RuboCop::Config - # source://rubocop/1.75.6/lib/rubocop/config.rb#31 - def initialize(hash = T.unsafe(nil), loaded_path = T.unsafe(nil)); end - - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 - def [](*_arg0, **_arg1, &_arg2); end - - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 - def []=(*_arg0, **_arg1, &_arg2); end - - # source://rubocop/1.75.6/lib/rubocop/config.rb#212 - def active_support_extensions_enabled?; end - - # source://rubocop/1.75.6/lib/rubocop/config.rb#127 - def add_excludes_from_higher_level(highest_config); end - - # source://rubocop/1.75.6/lib/rubocop/config.rb#239 - def allowed_camel_case_file?(file); end - - # source://rubocop/1.75.6/lib/rubocop/config.rb#283 - def base_dir_for_path_parameters; end - - # source://rubocop/1.75.6/lib/rubocop/config.rb#313 - def bundler_lock_file_path; end - - # source://rubocop/1.75.6/lib/rubocop/config.rb#85 - def check; end - - # source://rubocop/1.75.6/lib/rubocop/config.rb#180 - def clusivity_config_for_badge?(badge); end - - # source://rubocop/1.75.6/lib/rubocop/config.rb#200 - def cop_enabled?(name); end - - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 - def delete(*_arg0, **_arg1, &_arg2); end - - # source://rubocop/1.75.6/lib/rubocop/config.rb#139 - def deprecation_check; end - - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 - def dig(*_arg0, **_arg1, &_arg2); end - - # source://rubocop/1.75.6/lib/rubocop/config.rb#204 - def disabled_new_cops?; end - - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 - def each(*_arg0, **_arg1, &_arg2); end - - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 - def each_key(*_arg0, **_arg1, &_arg2); end - - # source://rubocop/1.75.6/lib/rubocop/config.rb#208 - def enabled_new_cops?; end - - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 - def fetch(*_arg0, **_arg1, &_arg2); end - - # source://rubocop/1.75.6/lib/rubocop/config.rb#261 - def file_to_exclude?(file); end - - # source://rubocop/1.75.6/lib/rubocop/config.rb#220 - def file_to_include?(file); end - - # source://rubocop/1.75.6/lib/rubocop/config.rb#196 - def for_all_cops; end - - # source://rubocop/1.75.6/lib/rubocop/config.rb#166 - def for_badge(badge); end - - # source://rubocop/1.75.6/lib/rubocop/config.rb#153 - def for_cop(cop); end - - # source://rubocop/1.75.6/lib/rubocop/config.rb#191 - def for_department(department_name); end - - # source://rubocop/1.75.6/lib/rubocop/config.rb#160 - def for_enabled_cop(cop); end - - # source://rubocop/1.75.6/lib/rubocop/config.rb#338 - def gem_versions_in_target; end - - # source://rubocop/1.75.6/lib/rubocop/config.rb#342 - def inspect; end - - # source://rubocop/1.75.6/lib/rubocop/config.rb#110 - def internal?; end - - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 - def key?(*_arg0, **_arg1, &_arg2); end - - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 - def keys(*_arg0, **_arg1, &_arg2); end - - # source://rubocop/1.75.6/lib/rubocop/config.rb#81 - def loaded_features; end - - # source://rubocop/1.75.6/lib/rubocop/config.rb#21 - def loaded_path; end - - # source://rubocop/1.75.6/lib/rubocop/config.rb#77 - def loaded_plugins; end - - # source://rubocop/1.75.6/lib/rubocop/config.rb#115 - def make_excludes_absolute; end - - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 - def map(*_arg0, **_arg1, &_arg2); end - - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 - def merge(*_arg0, **_arg1, &_arg2); end - - # source://rubocop/1.75.6/lib/rubocop/config.rb#293 - def parser_engine; end - - # source://rubocop/1.75.6/lib/rubocop/config.rb#274 - def path_relative_to_config(path); end - - # source://rubocop/1.75.6/lib/rubocop/config.rb#270 - def patterns_to_exclude; end - - # source://rubocop/1.75.6/lib/rubocop/config.rb#266 - def patterns_to_include; end - - # source://rubocop/1.75.6/lib/rubocop/config.rb#324 - def pending_cops; end - - # source://rubocop/1.75.6/lib/rubocop/config.rb#253 - def possibly_include_hidden?; end - - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 - def replace(*_arg0, **_arg1, &_arg2); end - - # source://rubocop/1.75.6/lib/rubocop/config.rb#105 - def signature; end - - # source://rubocop/1.75.6/lib/rubocop/config.rb#308 - def smart_loaded_path; end - - # source://rubocop/1.75.6/lib/rubocop/config.rb#216 - def string_literals_frozen_by_default?; end - - # source://rubocop/1.75.6/lib/rubocop/config.rb#297 - def target_rails_version; end - - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 - def target_ruby_version(*_arg0, **_arg1, &_arg2); end - - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 - def to_h(*_arg0, **_arg1, &_arg2); end - - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 - def to_hash(*_arg0, **_arg1, &_arg2); end - - # source://rubocop/1.75.6/lib/rubocop/config.rb#101 - def to_s; end - - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 - def transform_values(*_arg0, **_arg1, &_arg2); end - - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 - def validate(*_arg0, **_arg1, &_arg2); end - - # source://rubocop/1.75.6/lib/rubocop/config.rb#92 - def validate_after_resolution; end - - private - - # source://rubocop/1.75.6/lib/rubocop/config.rb#392 - def department_of(qualified_cop_name); end - - # source://rubocop/1.75.6/lib/rubocop/config.rb#380 - def enable_cop?(qualified_cop_name, cop_options); end - - # source://rubocop/1.75.6/lib/rubocop/config.rb#367 - def gem_version_to_major_minor_float(gem_version); end - - # source://rubocop/1.75.6/lib/rubocop/config.rb#373 - def read_gem_versions_from_target_lockfile; end - - # source://rubocop/1.75.6/lib/rubocop/config.rb#354 - def read_rails_version_from_bundler_lock_file; end - - # source://rubocop/1.75.6/lib/rubocop/config.rb#349 - def target_rails_version_from_bundler_lock_file; end - - class << self - # source://rubocop/1.75.6/lib/rubocop/config.rb#23 - def create(hash, path, check: T.unsafe(nil)); end - end -end - -class RuboCop::ConfigValidator - # source://rubocop/1.75.6/lib/rubocop/config_validator.rb#28 - def initialize(config); end - - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 - def for_all_cops(*_arg0, **_arg1, &_arg2); end - - # source://rubocop-ast//lib/rubocop/ast/utilities/simple_forwardable.rb#19 - def smart_loaded_path(*_arg0, **_arg1, &_arg2); end - - # source://rubocop/1.75.6/lib/rubocop/config_validator.rb#65 - def target_ruby_version; end - - # source://rubocop/1.75.6/lib/rubocop/config_validator.rb#34 - def validate; end - - # source://rubocop/1.75.6/lib/rubocop/config_validator.rb#61 - def validate_after_resolution; end - - private - - # source://rubocop/1.75.6/lib/rubocop/config_validator.rb#100 - def alert_about_unrecognized_cops(invalid_cop_names); end - - # source://rubocop/1.75.6/lib/rubocop/config_validator.rb#263 - def check_cop_config_value(hash, parent = T.unsafe(nil)); end - - # source://rubocop/1.75.6/lib/rubocop/config_validator.rb#73 - def check_obsoletions; end - - # source://rubocop/1.75.6/lib/rubocop/config_validator.rb#80 - def check_target_ruby; end - - # source://rubocop/1.75.6/lib/rubocop/config_validator.rb#205 - def each_invalid_parameter(cop_name); end - - # source://rubocop/1.75.6/lib/rubocop/config_validator.rb#116 - def list_unknown_cops(invalid_cop_names); end - - # source://rubocop/1.75.6/lib/rubocop/config_validator.rb#284 - def param_error_message(parent, key, value, supposed_values); end - - # source://rubocop/1.75.6/lib/rubocop/config_validator.rb#252 - def reject_conflicting_safe_settings; end - - # source://rubocop/1.75.6/lib/rubocop/config_validator.rb#243 - def reject_mutually_exclusive_defaults; end - - # source://rubocop/1.75.6/lib/rubocop/config_validator.rb#139 - def suggestion(name); end - - # source://rubocop/1.75.6/lib/rubocop/config_validator.rb#71 - def target_ruby; end - - # source://rubocop/1.75.6/lib/rubocop/config_validator.rb#217 - def validate_enforced_styles(valid_cop_names); end - - # source://rubocop/1.75.6/lib/rubocop/config_validator.rb#166 - def validate_new_cops_parameter; end - - # source://rubocop/1.75.6/lib/rubocop/config_validator.rb#191 - def validate_parameter_names(valid_cop_names); end - - # source://rubocop/1.75.6/lib/rubocop/config_validator.rb#177 - def validate_parameter_shape(valid_cop_names); end - - # source://rubocop/1.75.6/lib/rubocop/config_validator.rb#237 - def validate_support_and_has_list(name, formats, valid); end - - # source://rubocop/1.75.6/lib/rubocop/config_validator.rb#155 - def validate_syntax_cop; end -end +class RuboCop::CommentConfig; end +class RuboCop::Config; end +class RuboCop::ConfigValidator; end # Similar to `Forwardable#def_delegators`, but simpler & faster # diff --git a/Library/Homebrew/sorbet/rbi/gems/rubocop@1.75.6.rbi b/Library/Homebrew/sorbet/rbi/gems/rubocop@1.77.0.rbi similarity index 97% rename from Library/Homebrew/sorbet/rbi/gems/rubocop@1.75.6.rbi rename to Library/Homebrew/sorbet/rbi/gems/rubocop@1.77.0.rbi index 7f4ed14faa..60b8bb82b5 100644 --- a/Library/Homebrew/sorbet/rbi/gems/rubocop@1.75.6.rbi +++ b/Library/Homebrew/sorbet/rbi/gems/rubocop@1.77.0.rbi @@ -381,19 +381,32 @@ class RuboCop::CLI::Command::ShowCops::ExactMatcher < ::Struct # Returns the value of attribute pattern # # @return [Object] the current value of pattern + # + # source://rubocop//lib/rubocop/cli/command/show_cops.rb#12 def pattern; end # Sets the attribute pattern # # @param value [Object] the value to set the attribute pattern to. # @return [Object] the newly set value + # + # source://rubocop//lib/rubocop/cli/command/show_cops.rb#12 def pattern=(_); end class << self + # source://rubocop//lib/rubocop/cli/command/show_cops.rb#12 def [](*_arg0); end + + # source://rubocop//lib/rubocop/cli/command/show_cops.rb#12 def inspect; end + + # source://rubocop//lib/rubocop/cli/command/show_cops.rb#12 def keyword_init?; end + + # source://rubocop//lib/rubocop/cli/command/show_cops.rb#12 def members; end + + # source://rubocop//lib/rubocop/cli/command/show_cops.rb#12 def new(*_arg0); end end end @@ -408,19 +421,32 @@ class RuboCop::CLI::Command::ShowCops::WildcardMatcher < ::Struct # Returns the value of attribute pattern # # @return [Object] the current value of pattern + # + # source://rubocop//lib/rubocop/cli/command/show_cops.rb#18 def pattern; end # Sets the attribute pattern # # @param value [Object] the value to set the attribute pattern to. # @return [Object] the newly set value + # + # source://rubocop//lib/rubocop/cli/command/show_cops.rb#18 def pattern=(_); end class << self + # source://rubocop//lib/rubocop/cli/command/show_cops.rb#18 def [](*_arg0); end + + # source://rubocop//lib/rubocop/cli/command/show_cops.rb#18 def inspect; end + + # source://rubocop//lib/rubocop/cli/command/show_cops.rb#18 def keyword_init?; end + + # source://rubocop//lib/rubocop/cli/command/show_cops.rb#18 def members; end + + # source://rubocop//lib/rubocop/cli/command/show_cops.rb#18 def new(*_arg0); end end end @@ -603,10 +629,10 @@ class RuboCop::Config # source://rubocop//lib/rubocop/config.rb#31 def initialize(hash = T.unsafe(nil), loaded_path = T.unsafe(nil)); end - # source://rubocop-ast/1.44.1/lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop//lib/rubocop/config.rb#97 def [](*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast/1.44.1/lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop//lib/rubocop/config.rb#97 def []=(*_arg0, **_arg1, &_arg2); end # @return [Boolean] @@ -650,13 +676,13 @@ class RuboCop::Config # source://rubocop//lib/rubocop/config.rb#200 def cop_enabled?(name); end - # source://rubocop-ast/1.44.1/lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop//lib/rubocop/config.rb#97 def delete(*_arg0, **_arg1, &_arg2); end # source://rubocop//lib/rubocop/config.rb#139 def deprecation_check; end - # source://rubocop-ast/1.44.1/lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop//lib/rubocop/config.rb#97 def dig(*_arg0, **_arg1, &_arg2); end # @return [Boolean] @@ -664,10 +690,10 @@ class RuboCop::Config # source://rubocop//lib/rubocop/config.rb#204 def disabled_new_cops?; end - # source://rubocop-ast/1.44.1/lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop//lib/rubocop/config.rb#97 def each(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast/1.44.1/lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop//lib/rubocop/config.rb#97 def each_key(*_arg0, **_arg1, &_arg2); end # @return [Boolean] @@ -675,7 +701,7 @@ class RuboCop::Config # source://rubocop//lib/rubocop/config.rb#208 def enabled_new_cops?; end - # source://rubocop-ast/1.44.1/lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop//lib/rubocop/config.rb#97 def fetch(*_arg0, **_arg1, &_arg2); end # @return [Boolean] @@ -737,10 +763,10 @@ class RuboCop::Config # source://rubocop//lib/rubocop/config.rb#110 def internal?; end - # source://rubocop-ast/1.44.1/lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop//lib/rubocop/config.rb#97 def key?(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast/1.44.1/lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop//lib/rubocop/config.rb#97 def keys(*_arg0, **_arg1, &_arg2); end # source://rubocop//lib/rubocop/config.rb#81 @@ -757,10 +783,10 @@ class RuboCop::Config # source://rubocop//lib/rubocop/config.rb#115 def make_excludes_absolute; end - # source://rubocop-ast/1.44.1/lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop//lib/rubocop/config.rb#97 def map(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast/1.44.1/lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop//lib/rubocop/config.rb#97 def merge(*_arg0, **_arg1, &_arg2); end # source://rubocop//lib/rubocop/config.rb#293 @@ -786,7 +812,7 @@ class RuboCop::Config # source://rubocop//lib/rubocop/config.rb#253 def possibly_include_hidden?; end - # source://rubocop-ast/1.44.1/lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop//lib/rubocop/config.rb#97 def replace(*_arg0, **_arg1, &_arg2); end # source://rubocop//lib/rubocop/config.rb#105 @@ -803,22 +829,22 @@ class RuboCop::Config # source://rubocop//lib/rubocop/config.rb#297 def target_rails_version; end - # source://rubocop-ast/1.44.1/lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop//lib/rubocop/config.rb#99 def target_ruby_version(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast/1.44.1/lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop//lib/rubocop/config.rb#97 def to_h(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast/1.44.1/lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop//lib/rubocop/config.rb#97 def to_hash(*_arg0, **_arg1, &_arg2); end # source://rubocop//lib/rubocop/config.rb#101 def to_s; end - # source://rubocop-ast/1.44.1/lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop//lib/rubocop/config.rb#97 def transform_values(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast/1.44.1/lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop//lib/rubocop/config.rb#99 def validate(*_arg0, **_arg1, &_arg2); end # source://rubocop//lib/rubocop/config.rb#92 @@ -863,30 +889,47 @@ class RuboCop::Config::CopConfig < ::Struct # Returns the value of attribute metadata # # @return [Object] the current value of metadata + # + # source://rubocop//lib/rubocop/config.rb#17 def metadata; end # Sets the attribute metadata # # @param value [Object] the value to set the attribute metadata to. # @return [Object] the newly set value + # + # source://rubocop//lib/rubocop/config.rb#17 def metadata=(_); end # Returns the value of attribute name # # @return [Object] the current value of name + # + # source://rubocop//lib/rubocop/config.rb#17 def name; end # Sets the attribute name # # @param value [Object] the value to set the attribute name to. # @return [Object] the newly set value + # + # source://rubocop//lib/rubocop/config.rb#17 def name=(_); end class << self + # source://rubocop//lib/rubocop/config.rb#17 def [](*_arg0); end + + # source://rubocop//lib/rubocop/config.rb#17 def inspect; end + + # source://rubocop//lib/rubocop/config.rb#17 def keyword_init?; end + + # source://rubocop//lib/rubocop/config.rb#17 def members; end + + # source://rubocop//lib/rubocop/config.rb#17 def new(*_arg0); end end end @@ -1014,7 +1057,7 @@ class RuboCop::ConfigLoader # Returns the value of attribute debug. # - # source://rubocop//lib/rubocop/config_loader.rb#33 + # source://rubocop//lib/rubocop/config_loader.rb#38 def debug?; end # source://rubocop//lib/rubocop/config_loader.rb#162 @@ -1065,7 +1108,7 @@ class RuboCop::ConfigLoader # Returns the value of attribute ignore_parent_exclusion. # - # source://rubocop//lib/rubocop/config_loader.rb#33 + # source://rubocop//lib/rubocop/config_loader.rb#39 def ignore_parent_exclusion?; end # Returns the value of attribute ignore_unrecognized_cops. @@ -1851,7 +1894,7 @@ class RuboCop::ConfigStore # Returns the value of attribute validated. # - # source://rubocop//lib/rubocop/config_store.rb#7 + # source://rubocop//lib/rubocop/config_store.rb#8 def validated?; end end @@ -1863,10 +1906,10 @@ class RuboCop::ConfigValidator # source://rubocop//lib/rubocop/config_validator.rb#28 def initialize(config); end - # source://rubocop-ast/1.44.1/lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop//lib/rubocop/config_validator.rb#26 def for_all_cops(*_arg0, **_arg1, &_arg2); end - # source://rubocop-ast/1.44.1/lib/rubocop/ast/utilities/simple_forwardable.rb#19 + # source://rubocop//lib/rubocop/config_validator.rb#26 def smart_loaded_path(*_arg0, **_arg1, &_arg2); end # source://rubocop//lib/rubocop/config_validator.rb#65 @@ -2082,19 +2125,32 @@ module RuboCop::Cop::AutocorrectLogic # source://rubocop//lib/rubocop/cop/autocorrect_logic.rb#51 def disable_offense(offense_range); end - # source://rubocop//lib/rubocop/cop/autocorrect_logic.rb#135 - def disable_offense_at_end_of_line(range, eol_comment); end - # source://rubocop//lib/rubocop/cop/autocorrect_logic.rb#139 + def disable_offense_at_end_of_line(range); end + + # source://rubocop//lib/rubocop/cop/autocorrect_logic.rb#147 def disable_offense_before_and_after(range_by_lines); end # source://rubocop//lib/rubocop/cop/autocorrect_logic.rb#77 def disable_offense_with_eol_or_surround_comment(range); end - # source://rubocop//lib/rubocop/cop/autocorrect_logic.rb#96 + # source://rubocop//lib/rubocop/cop/autocorrect_logic.rb#143 + def eol_comment; end + + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/autocorrect_logic.rb#85 + def eol_comment_would_be_inside_literal?(offense_range, literal_range); end + + # source://rubocop//lib/rubocop/cop/autocorrect_logic.rb#100 def heredoc_range(node); end - # source://rubocop//lib/rubocop/cop/autocorrect_logic.rb#131 + # @return [Boolean] + # + # source://rubocop//lib/rubocop/cop/autocorrect_logic.rb#92 + def line_with_eol_comment_too_long?(range); end + + # source://rubocop//lib/rubocop/cop/autocorrect_logic.rb#135 def max_line_length; end # source://rubocop//lib/rubocop/cop/autocorrect_logic.rb#63 @@ -2102,36 +2158,31 @@ module RuboCop::Cop::AutocorrectLogic # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/autocorrect_logic.rb#108 + # source://rubocop//lib/rubocop/cop/autocorrect_logic.rb#112 def multiline_string?(node); 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#121 + # source://rubocop//lib/rubocop/cop/autocorrect_logic.rb#125 def range_by_lines(range); end - # source://rubocop//lib/rubocop/cop/autocorrect_logic.rb#112 + # source://rubocop//lib/rubocop/cop/autocorrect_logic.rb#116 def range_of_first_line(range); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/autocorrect_logic.rb#88 - def range_overlaps_offense?(offense_range, range); end - - # @return [Boolean] - # - # source://rubocop//lib/rubocop/cop/autocorrect_logic.rb#104 + # source://rubocop//lib/rubocop/cop/autocorrect_logic.rb#108 def string_continuation?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/autocorrect_logic.rb#92 + # source://rubocop//lib/rubocop/cop/autocorrect_logic.rb#96 def surrounding_heredoc?(node); end # @return [Boolean] # - # source://rubocop//lib/rubocop/cop/autocorrect_logic.rb#100 + # source://rubocop//lib/rubocop/cop/autocorrect_logic.rb#104 def surrounding_percent_array?(node); end end @@ -2246,7 +2297,7 @@ class RuboCop::Cop::Base # source://rubocop//lib/rubocop/cop/base.rb#183 def message(_range = T.unsafe(nil)); end - # source://rubocop//lib/rubocop/cop/base.rb#238 + # source://rubocop//lib/rubocop/cop/base.rb#242 def name; end # @deprecated Make potential errors with previous API more obvious @@ -2520,52 +2571,77 @@ class RuboCop::Cop::Base::InvestigationReport < ::Struct # Returns the value of attribute cop # # @return [Object] the current value of cop + # + # source://rubocop//lib/rubocop/cop/base.rb#48 def cop; end # Sets the attribute cop # # @param value [Object] the value to set the attribute cop to. # @return [Object] the newly set value + # + # source://rubocop//lib/rubocop/cop/base.rb#48 def cop=(_); end # Returns the value of attribute corrector # # @return [Object] the current value of corrector + # + # source://rubocop//lib/rubocop/cop/base.rb#48 def corrector; end # Sets the attribute corrector # # @param value [Object] the value to set the attribute corrector to. # @return [Object] the newly set value + # + # source://rubocop//lib/rubocop/cop/base.rb#48 def corrector=(_); end # Returns the value of attribute offenses # # @return [Object] the current value of offenses + # + # source://rubocop//lib/rubocop/cop/base.rb#48 def offenses; end # Sets the attribute offenses # # @param value [Object] the value to set the attribute offenses to. # @return [Object] the newly set value + # + # source://rubocop//lib/rubocop/cop/base.rb#48 def offenses=(_); end # Returns the value of attribute processed_source # # @return [Object] the current value of processed_source + # + # source://rubocop//lib/rubocop/cop/base.rb#48 def processed_source; end # Sets the attribute processed_source # # @param value [Object] the value to set the attribute processed_source to. # @return [Object] the newly set value + # + # source://rubocop//lib/rubocop/cop/base.rb#48 def processed_source=(_); end class << self + # source://rubocop//lib/rubocop/cop/base.rb#48 def [](*_arg0); end + + # source://rubocop//lib/rubocop/cop/base.rb#48 def inspect; end + + # source://rubocop//lib/rubocop/cop/base.rb#48 def keyword_init?; end + + # source://rubocop//lib/rubocop/cop/base.rb#48 def members; end + + # source://rubocop//lib/rubocop/cop/base.rb#48 def new(*_arg0); end end end @@ -2735,7 +2811,7 @@ class RuboCop::Cop::Corrector < ::Parser::Source::TreeRewriter # Legacy # - # source://parser/3.3.8.0/lib/parser/source/tree_rewriter.rb#252 + # source://rubocop//lib/rubocop/cop/corrector.rb#45 def rewrite; end # Swaps sources at the given ranges. @@ -2785,6 +2861,8 @@ RuboCop::Cop::Gemspec::AddRuntimeDependency::MSG = T.let(T.unsafe(nil), String) RuboCop::Cop::Gemspec::AddRuntimeDependency::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) +RuboCop::Cop::Gemspec::AttributeAssignment::MSG = T.let(T.unsafe(nil), String) + RuboCop::Cop::Gemspec::DependencyVersion::ADD_DEPENDENCY_METHODS = T.let(T.unsafe(nil), Array) RuboCop::Cop::Gemspec::DependencyVersion::FORBIDDEN_MSG = T.let(T.unsafe(nil), String) @@ -3343,6 +3421,8 @@ RuboCop::Cop::Lint::FloatComparison::FLOAT_INSTANCE_METHODS = T.let(T.unsafe(nil RuboCop::Cop::Lint::FloatComparison::FLOAT_RETURNING_METHODS = T.let(T.unsafe(nil), Array) +RuboCop::Cop::Lint::FloatComparison::MSG_CASE = T.let(T.unsafe(nil), String) + RuboCop::Cop::Lint::FloatComparison::MSG_EQUALITY = T.let(T.unsafe(nil), String) RuboCop::Cop::Lint::FloatComparison::MSG_INEQUALITY = T.let(T.unsafe(nil), String) @@ -3739,6 +3819,10 @@ RuboCop::Cop::Lint::UselessAssignment::MSG = T.let(T.unsafe(nil), String) RuboCop::Cop::Lint::UselessConstantScoping::MSG = T.let(T.unsafe(nil), String) +RuboCop::Cop::Lint::UselessDefaultValueArgument::MSG = T.let(T.unsafe(nil), String) + +RuboCop::Cop::Lint::UselessDefaultValueArgument::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + RuboCop::Cop::Lint::UselessDefined::MSG = T.let(T.unsafe(nil), String) RuboCop::Cop::Lint::UselessDefined::TYPES = T.let(T.unsafe(nil), Hash) @@ -3751,6 +3835,10 @@ RuboCop::Cop::Lint::UselessNumericOperation::MSG = T.let(T.unsafe(nil), String) RuboCop::Cop::Lint::UselessNumericOperation::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) +RuboCop::Cop::Lint::UselessOr::MSG = T.let(T.unsafe(nil), String) + +RuboCop::Cop::Lint::UselessOr::TRUTHY_RETURN_VALUE_METHODS = T.let(T.unsafe(nil), Set) + RuboCop::Cop::Lint::UselessRescue::MSG = T.let(T.unsafe(nil), String) RuboCop::Cop::Lint::UselessRuby2Keywords::MSG = T.let(T.unsafe(nil), String) @@ -3910,6 +3998,10 @@ RuboCop::Cop::Naming::MethodName::MSG = T.let(T.unsafe(nil), String) RuboCop::Cop::Naming::MethodName::MSG_FORBIDDEN = T.let(T.unsafe(nil), String) +RuboCop::Cop::Naming::PredicateMethod::MSG_NON_PREDICATE = T.let(T.unsafe(nil), String) + +RuboCop::Cop::Naming::PredicateMethod::MSG_PREDICATE = T.let(T.unsafe(nil), String) + RuboCop::Cop::Naming::RescuedExceptionsVariableName::MSG = T.let(T.unsafe(nil), String) RuboCop::Cop::Naming::VariableName::MSG = T.let(T.unsafe(nil), String) @@ -4003,7 +4095,7 @@ class RuboCop::Cop::Offense # @api public # @return [Boolean] returns `true` if two offenses contain same attributes # - # source://rubocop//lib/rubocop/cop/offense.rb#210 + # source://rubocop//lib/rubocop/cop/offense.rb#216 def eql?(other); end # @api private @@ -4091,23 +4183,31 @@ class RuboCop::Cop::Offense::PseudoSourceRange < ::Struct # Returns the value of attribute begin_pos # # @return [Object] the current value of begin_pos + # + # source://rubocop//lib/rubocop/cop/offense.rb#63 def begin_pos; end # Sets the attribute begin_pos # # @param value [Object] the value to set the attribute begin_pos to. # @return [Object] the newly set value + # + # source://rubocop//lib/rubocop/cop/offense.rb#63 def begin_pos=(_); end # Returns the value of attribute column # # @return [Object] the current value of column + # + # source://rubocop//lib/rubocop/cop/offense.rb#63 def column; end # Sets the attribute column # # @param value [Object] the value to set the attribute column to. # @return [Object] the newly set value + # + # source://rubocop//lib/rubocop/cop/offense.rb#63 def column=(_); end # source://rubocop//lib/rubocop/cop/offense.rb#69 @@ -4116,41 +4216,55 @@ class RuboCop::Cop::Offense::PseudoSourceRange < ::Struct # Returns the value of attribute end_pos # # @return [Object] the current value of end_pos + # + # source://rubocop//lib/rubocop/cop/offense.rb#63 def end_pos; end # Sets the attribute end_pos # # @param value [Object] the value to set the attribute end_pos to. # @return [Object] the newly set value + # + # source://rubocop//lib/rubocop/cop/offense.rb#63 def end_pos=(_); end # Returns the value of attribute line # # @return [Object] the current value of line + # + # source://rubocop//lib/rubocop/cop/offense.rb#65 def first_line; end # Returns the value of attribute column # # @return [Object] the current value of column + # + # source://rubocop//lib/rubocop/cop/offense.rb#67 def last_column; end # Returns the value of attribute line # # @return [Object] the current value of line + # + # source://rubocop//lib/rubocop/cop/offense.rb#66 def last_line; end - # source://rubocop//lib/rubocop/cop/offense.rb#73 + # source://rubocop//lib/rubocop/cop/offense.rb#76 def length; end # Returns the value of attribute line # # @return [Object] the current value of line + # + # source://rubocop//lib/rubocop/cop/offense.rb#63 def line; end # Sets the attribute line # # @param value [Object] the value to set the attribute line to. # @return [Object] the newly set value + # + # source://rubocop//lib/rubocop/cop/offense.rb#63 def line=(_); end # source://rubocop//lib/rubocop/cop/offense.rb#73 @@ -4159,19 +4273,32 @@ class RuboCop::Cop::Offense::PseudoSourceRange < ::Struct # Returns the value of attribute source_line # # @return [Object] the current value of source_line + # + # source://rubocop//lib/rubocop/cop/offense.rb#63 def source_line; end # Sets the attribute source_line # # @param value [Object] the value to set the attribute source_line to. # @return [Object] the newly set value + # + # source://rubocop//lib/rubocop/cop/offense.rb#63 def source_line=(_); end class << self + # source://rubocop//lib/rubocop/cop/offense.rb#63 def [](*_arg0); end + + # source://rubocop//lib/rubocop/cop/offense.rb#63 def inspect; end + + # source://rubocop//lib/rubocop/cop/offense.rb#63 def keyword_init?; end + + # source://rubocop//lib/rubocop/cop/offense.rb#63 def members; end + + # source://rubocop//lib/rubocop/cop/offense.rb#63 def new(*_arg0); end end end @@ -4622,6 +4749,12 @@ RuboCop::Cop::Style::CollectionCompact::TO_ENUM_METHODS = T.let(T.unsafe(nil), A RuboCop::Cop::Style::CollectionMethods::MSG = T.let(T.unsafe(nil), String) +RuboCop::Cop::Style::CollectionQuerying::MSG = T.let(T.unsafe(nil), String) + +RuboCop::Cop::Style::CollectionQuerying::REPLACEMENTS = T.let(T.unsafe(nil), Hash) + +RuboCop::Cop::Style::CollectionQuerying::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + RuboCop::Cop::Style::ColonMethodCall::MSG = T.let(T.unsafe(nil), String) RuboCop::Cop::Style::ColonMethodDefinition::MSG = T.let(T.unsafe(nil), String) @@ -4780,6 +4913,10 @@ RuboCop::Cop::Style::EmptyMethod::MSG_COMPACT = T.let(T.unsafe(nil), String) RuboCop::Cop::Style::EmptyMethod::MSG_EXPANDED = T.let(T.unsafe(nil), String) +RuboCop::Cop::Style::EmptyStringInsideInterpolation::MSG_TERNARY = T.let(T.unsafe(nil), String) + +RuboCop::Cop::Style::EmptyStringInsideInterpolation::MSG_TRAILING_CONDITIONAL = T.let(T.unsafe(nil), String) + RuboCop::Cop::Style::Encoding::ENCODING_PATTERN = T.let(T.unsafe(nil), Regexp) RuboCop::Cop::Style::Encoding::MSG = T.let(T.unsafe(nil), String) @@ -4832,7 +4969,9 @@ RuboCop::Cop::Style::ExplicitBlockArgument::MSG = T.let(T.unsafe(nil), String) RuboCop::Cop::Style::ExponentialNotation::MESSAGES = T.let(T.unsafe(nil), Hash) -RuboCop::Cop::Style::FetchEnvVar::MSG = T.let(T.unsafe(nil), String) +RuboCop::Cop::Style::FetchEnvVar::MSG_WITHOUT_NIL = T.let(T.unsafe(nil), String) + +RuboCop::Cop::Style::FetchEnvVar::MSG_WITH_NIL = T.let(T.unsafe(nil), String) RuboCop::Cop::Style::FetchEnvVar::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) @@ -4982,9 +5121,11 @@ RuboCop::Cop::Style::IpAddresses::MSG = T.let(T.unsafe(nil), String) RuboCop::Cop::Style::ItAssignment::MSG = T.let(T.unsafe(nil), String) -RuboCop::Cop::Style::ItBlockParameter::MSG_AVOID_IT_BLOCK_PARAMETER = T.let(T.unsafe(nil), String) +RuboCop::Cop::Style::ItBlockParameter::MSG_AVOID_IT_PARAMETER = T.let(T.unsafe(nil), String) -RuboCop::Cop::Style::ItBlockParameter::MSG_USE_IT_BLOCK_PARAMETER = T.let(T.unsafe(nil), String) +RuboCop::Cop::Style::ItBlockParameter::MSG_AVOID_IT_PARAMETER_MULTILINE = T.let(T.unsafe(nil), String) + +RuboCop::Cop::Style::ItBlockParameter::MSG_USE_IT_PARAMETER = T.let(T.unsafe(nil), String) RuboCop::Cop::Style::KeywordArgumentsMerging::MSG = T.let(T.unsafe(nil), String) @@ -5056,9 +5197,9 @@ RuboCop::Cop::Style::MethodDefParentheses::MSG_PRESENT = T.let(T.unsafe(nil), St RuboCop::Cop::Style::MinMax::MSG = T.let(T.unsafe(nil), String) -RuboCop::Cop::Style::MinMaxComparison::COMPARISON_OPERATORS = T.let(T.unsafe(nil), Array) +RuboCop::Cop::Style::MinMaxComparison::COMPARISON_OPERATORS = T.let(T.unsafe(nil), Set) -RuboCop::Cop::Style::MinMaxComparison::GRATER_OPERATORS = T.let(T.unsafe(nil), Array) +RuboCop::Cop::Style::MinMaxComparison::GREATER_OPERATORS = T.let(T.unsafe(nil), Array) RuboCop::Cop::Style::MinMaxComparison::LESS_OPERATORS = T.let(T.unsafe(nil), Array) @@ -5254,6 +5395,10 @@ RuboCop::Cop::Style::RedundantArrayConstructor::MSG = T.let(T.unsafe(nil), Strin RuboCop::Cop::Style::RedundantArrayConstructor::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) +RuboCop::Cop::Style::RedundantArrayFlatten::MSG = T.let(T.unsafe(nil), String) + +RuboCop::Cop::Style::RedundantArrayFlatten::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + RuboCop::Cop::Style::RedundantAssignment::MSG = T.let(T.unsafe(nil), String) RuboCop::Cop::Style::RedundantBegin::MSG = T.let(T.unsafe(nil), String) @@ -6407,9 +6552,9 @@ RuboCop::Formatter::PacmanFormatter::FALLBACK_TERMINAL_WIDTH = T.let(T.unsafe(ni RuboCop::Formatter::PacmanFormatter::GHOST = T.let(T.unsafe(nil), String) -RuboCop::Formatter::PacmanFormatter::PACDOT = T.let(T.unsafe(nil), Rainbow::Presenter) +RuboCop::Formatter::PacmanFormatter::PACDOT = T.let(T.unsafe(nil), Rainbow::NullPresenter) -RuboCop::Formatter::PacmanFormatter::PACMAN = T.let(T.unsafe(nil), Rainbow::Presenter) +RuboCop::Formatter::PacmanFormatter::PACMAN = T.let(T.unsafe(nil), Rainbow::NullPresenter) RuboCop::Formatter::ProgressFormatter::DOT = T.let(T.unsafe(nil), String) @@ -6924,13 +7069,13 @@ class RuboCop::Runner # source://rubocop//lib/rubocop/runner.rb#56 def errors; end - # source://rubocop-md/2.0.1/lib/rubocop/markdown/rubocop_ext.rb#50 + # source://rubocop//lib/rubocop/runner.rb#248 def file_finished(file, offenses); end - # source://rubocop-md/2.0.1/lib/rubocop/markdown/rubocop_ext.rb#44 + # source://rubocop//lib/rubocop/runner.rb#177 def file_offense_cache(file); end - # source://rubocop-md/2.0.1/lib/rubocop/markdown/rubocop_ext.rb#36 + # source://rubocop//lib/rubocop/runner.rb#485 def get_processed_source(*args); end # source://rubocop//lib/rubocop/runner.rb#67 @@ -7143,7 +7288,7 @@ class RuboCop::TargetFinder # @api private # @return [Boolean] # - # source://rubocop-md/2.0.1/lib/rubocop/markdown/rubocop_ext.rb#78 + # source://rubocop//lib/rubocop/target_finder.rb#154 def ruby_file?(file); end # Finds all Ruby source files under the current or other supplied directory. A Ruby source file diff --git a/Library/Homebrew/sorbet/rbi/gems/ruby-lsp@0.23.21.rbi b/Library/Homebrew/sorbet/rbi/gems/ruby-lsp@0.24.2.rbi similarity index 100% rename from Library/Homebrew/sorbet/rbi/gems/ruby-lsp@0.23.21.rbi rename to Library/Homebrew/sorbet/rbi/gems/ruby-lsp@0.24.2.rbi diff --git a/Library/Homebrew/sorbet/rbi/gems/spoom@1.6.3.rbi b/Library/Homebrew/sorbet/rbi/gems/spoom@1.7.4.rbi similarity index 68% rename from Library/Homebrew/sorbet/rbi/gems/spoom@1.6.3.rbi rename to Library/Homebrew/sorbet/rbi/gems/spoom@1.7.4.rbi index 47d8116a53..9ee2633c3c 100644 --- a/Library/Homebrew/sorbet/rbi/gems/spoom@1.6.3.rbi +++ b/Library/Homebrew/sorbet/rbi/gems/spoom@1.7.4.rbi @@ -14,17 +14,9 @@ # source://spoom//lib/spoom.rb#7 module Spoom class << self - # : (String ruby, file: String) -> Prism::Node - # # source://spoom//lib/spoom/parse.rb#11 - sig { params(ruby: ::String, file: ::String).returns(::Prism::Node) } - def parse_ruby(ruby, file:); end - - # : (String ruby, file: String) -> [Prism::Node, Array[Prism::Comment]] - # - # source://spoom//lib/spoom/parse.rb#27 - sig { params(ruby: ::String, file: ::String).returns([::Prism::Node, T::Array[::Prism::Comment]]) } - def parse_ruby_with_comments(ruby, file:); end + sig { params(ruby: ::String, file: ::String, comments: T::Boolean).returns(::Prism::Node) } + def parse_ruby(ruby, file:, comments: T.unsafe(nil)); end end end @@ -36,132 +28,108 @@ class Spoom::Cli::Deadcode < ::Thor include ::Spoom::Colorize include ::Spoom::Cli::Helper - # : (*String paths) -> void - # # source://spoom//lib/spoom/cli/deadcode.rb#51 sig { params(paths: ::String).void } def deadcode(*paths); end + # source://spoom//lib/spoom/cli.rb#71 def help(command = T.unsafe(nil), subcommand = T.unsafe(nil)); end # source://spoom//lib/spoom/cli/deadcode.rb#153 def remove(location_string); end end -# source://spoom//lib/spoom/cli/helper.rb#10 +# source://spoom//lib/spoom/cli/helper.rb#11 module Spoom::Cli::Helper include ::Spoom::Colorize requires_ancestor { Thor } - # : (String string) -> String - # - # source://spoom//lib/spoom/cli/helper.rb#149 + # source://spoom//lib/spoom/cli/helper.rb#146 sig { params(string: ::String).returns(::String) } def blue(string); end # Collect files from `paths`, defaulting to `exec_path` - # : (Array[String] paths, ?include_rbi_files: bool) -> Array[String] # - # source://spoom//lib/spoom/cli/helper.rb#85 + # source://spoom//lib/spoom/cli/helper.rb#82 sig { params(paths: T::Array[::String], include_rbi_files: T::Boolean).returns(T::Array[::String]) } def collect_files(paths, include_rbi_files: T.unsafe(nil)); end # Is the `--color` option true? - # : -> bool # # @return [Boolean] # - # source://spoom//lib/spoom/cli/helper.rb#113 + # source://spoom//lib/spoom/cli/helper.rb#110 sig { returns(T::Boolean) } def color?; end # Colorize a string if `color?` - # : (String string, *Color color) -> String # - # source://spoom//lib/spoom/cli/helper.rb#142 + # source://spoom//lib/spoom/cli/helper.rb#139 sig { params(string: ::String, color: ::Spoom::Color).returns(::String) } def colorize(string, *color); end # Returns the context at `--path` (by default the current working directory) - # : -> Context # - # source://spoom//lib/spoom/cli/helper.rb#58 + # source://spoom//lib/spoom/cli/helper.rb#55 sig { returns(::Spoom::Context) } def context; end # Raise if `spoom` is not ran inside a context with a `sorbet/config` file - # : -> Context # - # source://spoom//lib/spoom/cli/helper.rb#64 + # source://spoom//lib/spoom/cli/helper.rb#61 sig { returns(::Spoom::Context) } def context_requiring_sorbet!; end - # : (String string) -> String - # - # source://spoom//lib/spoom/cli/helper.rb#154 + # source://spoom//lib/spoom/cli/helper.rb#151 sig { params(string: ::String).returns(::String) } def cyan(string); end # Return the path specified through `--path` - # : -> String # - # source://spoom//lib/spoom/cli/helper.rb#79 + # source://spoom//lib/spoom/cli/helper.rb#76 sig { returns(::String) } def exec_path; end - # : (String string) -> String - # - # source://spoom//lib/spoom/cli/helper.rb#159 + # source://spoom//lib/spoom/cli/helper.rb#156 sig { params(string: ::String).returns(::String) } def gray(string); end - # : (String string) -> String - # - # source://spoom//lib/spoom/cli/helper.rb#164 + # source://spoom//lib/spoom/cli/helper.rb#161 sig { params(string: ::String).returns(::String) } def green(string); end - # : (String string) -> String - # - # source://spoom//lib/spoom/cli/helper.rb#118 + # source://spoom//lib/spoom/cli/helper.rb#115 sig { params(string: ::String).returns(::String) } def highlight(string); end - # : (String string) -> String - # - # source://spoom//lib/spoom/cli/helper.rb#169 + # source://spoom//lib/spoom/cli/helper.rb#166 sig { params(string: ::String).returns(::String) } def red(string); end # Print `message` on `$stdout` - # : (String message) -> void # - # source://spoom//lib/spoom/cli/helper.rb#19 + # source://spoom//lib/spoom/cli/helper.rb#16 sig { params(message: ::String).void } def say(message); end # Print `message` on `$stderr` # # The message is prefixed by a status (default: `Error`). - # : (String message, ?status: String?, ?nl: bool) -> void # - # source://spoom//lib/spoom/cli/helper.rb#32 + # source://spoom//lib/spoom/cli/helper.rb#29 sig { params(message: ::String, status: T.nilable(::String), nl: T::Boolean).void } def say_error(message, status: T.unsafe(nil), nl: T.unsafe(nil)); end # Print `message` on `$stderr` # # The message is prefixed by a status (default: `Warning`). - # : (String message, ?status: String?, ?nl: bool) -> void # - # source://spoom//lib/spoom/cli/helper.rb#46 + # source://spoom//lib/spoom/cli/helper.rb#43 sig { params(message: ::String, status: T.nilable(::String), nl: T::Boolean).void } def say_warning(message, status: T.unsafe(nil), nl: T.unsafe(nil)); end - # : (String string) -> String - # - # source://spoom//lib/spoom/cli/helper.rb#174 + # source://spoom//lib/spoom/cli/helper.rb#171 sig { params(string: ::String).returns(::String) } def yellow(string); end end @@ -174,8 +142,6 @@ class Spoom::Cli::Main < ::Thor # source://spoom//lib/spoom/cli.rb#100 def __print_version; end - # : (?String directory) -> void - # # source://spoom//lib/spoom/cli.rb#57 sig { params(directory: ::String).void } def bump(directory = T.unsafe(nil)); end @@ -183,13 +149,13 @@ class Spoom::Cli::Main < ::Thor # source://spoom//lib/spoom/cli.rb#64 def coverage(*args); end - # source://thor/1.3.2/lib/thor.rb#334 + # source://spoom//lib/spoom/cli.rb#71 def deadcode(*args); end # source://spoom//lib/spoom/cli.rb#74 def lsp(*args); end - # source://thor/1.3.2/lib/thor.rb#334 + # source://spoom//lib/spoom/cli.rb#21 def srb(*args); end # source://spoom//lib/spoom/cli.rb#93 @@ -220,6 +186,7 @@ class Spoom::Cli::Srb::Assertions < ::Thor include ::Spoom::Colorize include ::Spoom::Cli::Helper + # source://spoom//lib/spoom/cli/srb.rb#17 def help(command = T.unsafe(nil), subcommand = T.unsafe(nil)); end # source://spoom//lib/spoom/cli/srb/assertions.rb#29 @@ -234,12 +201,11 @@ class Spoom::Cli::Srb::Bump < ::Thor include ::Spoom::Colorize include ::Spoom::Cli::Helper - # : (?String directory) -> void - # # source://spoom//lib/spoom/cli/srb/bump.rb#49 sig { params(directory: ::String).void } def bump(directory = T.unsafe(nil)); end + # source://spoom//lib/spoom/cli/srb.rb#20 def help(command = T.unsafe(nil), subcommand = T.unsafe(nil)); end # source://spoom//lib/spoom/cli/srb/bump.rb#170 @@ -257,6 +223,7 @@ class Spoom::Cli::Srb::Coverage < ::Thor # source://spoom//lib/spoom/cli/srb/coverage.rb#199 def bundle_install(path, sha); end + # source://spoom//lib/spoom/cli/srb.rb#23 def help(command = T.unsafe(nil), subcommand = T.unsafe(nil)); end # source://spoom//lib/spoom/cli/srb/coverage.rb#211 @@ -296,6 +263,7 @@ class Spoom::Cli::Srb::LSP < ::Thor # source://spoom//lib/spoom/cli/srb/lsp.rb#55 def find(query); end + # source://spoom//lib/spoom/cli/srb.rb#26 def help(command = T.unsafe(nil), subcommand = T.unsafe(nil)); end # TODO: options, filter, limit, kind etc.. filter rbi @@ -341,49 +309,66 @@ class Spoom::Cli::Srb::LSP < ::Thor def types(file, line, col); end end -# source://spoom//lib/spoom/cli/srb.rb#14 +# source://spoom//lib/spoom/cli/srb.rb#15 class Spoom::Cli::Srb::Main < ::Thor - # source://thor/1.3.2/lib/thor.rb#334 + # source://spoom//lib/spoom/cli/srb.rb#17 def assertions(*args); end - # source://thor/1.3.2/lib/thor.rb#334 + # source://spoom//lib/spoom/cli/srb.rb#20 def bump(*args); end - # source://thor/1.3.2/lib/thor.rb#334 + # source://spoom//lib/spoom/cli/srb.rb#23 def coverage(*args); end + # source://spoom//lib/spoom/cli.rb#21 def help(command = T.unsafe(nil), subcommand = T.unsafe(nil)); end - # source://thor/1.3.2/lib/thor.rb#334 + # source://spoom//lib/spoom/cli/srb.rb#26 def lsp(*args); end - # source://thor/1.3.2/lib/thor.rb#334 + # source://spoom//lib/spoom/cli/srb.rb#29 + def metrics(*args); end + + # source://spoom//lib/spoom/cli/srb.rb#32 def sigs(*args); end - # source://thor/1.3.2/lib/thor.rb#334 + # source://spoom//lib/spoom/cli/srb.rb#35 def tc(*args); end end -# source://spoom//lib/spoom/cli/srb/sigs.rb#9 +# source://spoom//lib/spoom/cli/srb/metrics.rb#7 +class Spoom::Cli::Srb::Metrics < ::Thor + include ::Spoom::Colorize + include ::Spoom::Cli::Helper + + # source://spoom//lib/spoom/cli/srb.rb#29 + def help(command = T.unsafe(nil), subcommand = T.unsafe(nil)); end + + # source://spoom//lib/spoom/cli/srb/metrics.rb#14 + def show(*paths); end +end + +# source://spoom//lib/spoom/cli/srb/sigs.rb#7 class Spoom::Cli::Srb::Sigs < ::Thor include ::Spoom::Colorize include ::Spoom::Cli::Helper - # source://spoom//lib/spoom/cli/srb/sigs.rb#198 + # source://spoom//lib/spoom/cli/srb/sigs.rb#216 def exec(context, command); end - # source://spoom//lib/spoom/cli/srb/sigs.rb#69 + # source://spoom//lib/spoom/cli/srb/sigs.rb#87 def export(output_path = T.unsafe(nil)); end + # source://spoom//lib/spoom/cli/srb.rb#32 def help(command = T.unsafe(nil), subcommand = T.unsafe(nil)); end - # source://spoom//lib/spoom/cli/srb/sigs.rb#50 + # source://spoom//lib/spoom/cli/srb/sigs.rb#68 def strip(*paths); end - # source://spoom//lib/spoom/cli/srb/sigs.rb#175 + # source://spoom//lib/spoom/cli/srb/sigs.rb#193 def transform_files(files, &block); end - # source://spoom//lib/spoom/cli/srb/sigs.rb#21 + # source://spoom//lib/spoom/cli/srb/sigs.rb#20 def translate(*paths); end end @@ -398,6 +383,7 @@ class Spoom::Cli::Srb::Tc < ::Thor # source://spoom//lib/spoom/cli/srb/tc.rb#138 def format_error(error, format); end + # source://spoom//lib/spoom/cli/srb.rb#35 def help(command = T.unsafe(nil), subcommand = T.unsafe(nil)); end # source://spoom//lib/spoom/cli/srb/tc.rb#28 @@ -439,8 +425,6 @@ class Spoom::Color < ::T::Enum YELLOW = new end - # : -> String - # # source://spoom//lib/spoom/colors.rb#30 sig { returns(::String) } def ansi_code; end @@ -448,8 +432,6 @@ end # source://spoom//lib/spoom/colors.rb#35 module Spoom::Colorize - # : (String string, *Color color) -> String - # # source://spoom//lib/spoom/colors.rb#37 sig { params(string: ::String, color: ::Spoom::Color).returns(::String) } def set_color(string, *color); end @@ -472,7 +454,6 @@ class Spoom::Context # # The directory will not be created if it doesn't exist. # Call `#make!` to create it. - # : (String absolute_path) -> void # # @return [Context] a new instance of Context # @@ -481,7 +462,6 @@ class Spoom::Context def initialize(absolute_path); end # The absolute path to the directory this context is about - # : String # # source://spoom//lib/spoom/context.rb#40 sig { returns(::String) } @@ -492,7 +472,6 @@ class Spoom::Context # # `name` is used as prefix to the temporary directory name. # The directory will be created if it doesn't exist. - # : (?String? name) -> instance # # source://spoom//lib/spoom/context.rb#33 sig { params(name: T.nilable(::String)).returns(T.attached_class) } @@ -502,98 +481,85 @@ end # Bundle features for a context # -# source://spoom//lib/spoom/context/bundle.rb#7 +# source://spoom//lib/spoom/context/bundle.rb#8 module Spoom::Context::Bundle requires_ancestor { Spoom::Context } # Run a command with `bundle` in this context directory - # : (String command, ?version: String?, ?capture_err: bool) -> ExecResult # - # source://spoom//lib/spoom/context/bundle.rb#32 + # source://spoom//lib/spoom/context/bundle.rb#29 sig { params(command: ::String, version: T.nilable(::String), capture_err: T::Boolean).returns(::Spoom::ExecResult) } def bundle(command, version: T.unsafe(nil), capture_err: T.unsafe(nil)); end # Run a command `bundle exec` in this context directory - # : (String command, ?version: String?, ?capture_err: bool) -> ExecResult # - # source://spoom//lib/spoom/context/bundle.rb#45 + # source://spoom//lib/spoom/context/bundle.rb#42 sig { params(command: ::String, version: T.nilable(::String), capture_err: T::Boolean).returns(::Spoom::ExecResult) } def bundle_exec(command, version: T.unsafe(nil), capture_err: T.unsafe(nil)); end # Run `bundle install` in this context directory - # : (?version: String?, ?capture_err: bool) -> ExecResult # - # source://spoom//lib/spoom/context/bundle.rb#39 + # source://spoom//lib/spoom/context/bundle.rb#36 sig { params(version: T.nilable(::String), capture_err: T::Boolean).returns(::Spoom::ExecResult) } def bundle_install!(version: T.unsafe(nil), capture_err: T.unsafe(nil)); end # Get `gem` version from the `Gemfile.lock` content # # Returns `nil` if `gem` cannot be found in the Gemfile. - # : (String gem) -> Gem::Version? # - # source://spoom//lib/spoom/context/bundle.rb#61 + # source://spoom//lib/spoom/context/bundle.rb#58 sig { params(gem: ::String).returns(T.nilable(::Gem::Version)) } def gem_version_from_gemfile_lock(gem); end - # : -> Hash[String, Bundler::LazySpecification] - # - # source://spoom//lib/spoom/context/bundle.rb#50 + # source://spoom//lib/spoom/context/bundle.rb#47 sig { returns(T::Hash[::String, ::Bundler::LazySpecification]) } def gemfile_lock_specs; end # Read the contents of the Gemfile in this context directory - # : -> String? # - # source://spoom//lib/spoom/context/bundle.rb#14 + # source://spoom//lib/spoom/context/bundle.rb#11 sig { returns(T.nilable(::String)) } def read_gemfile; end # Read the contents of the Gemfile.lock in this context directory - # : -> String? # - # source://spoom//lib/spoom/context/bundle.rb#20 + # source://spoom//lib/spoom/context/bundle.rb#17 sig { returns(T.nilable(::String)) } def read_gemfile_lock; end # Set the `contents` of the Gemfile in this context directory - # : (String contents, ?append: bool) -> void # - # source://spoom//lib/spoom/context/bundle.rb#26 + # source://spoom//lib/spoom/context/bundle.rb#23 sig { params(contents: ::String, append: T::Boolean).void } def write_gemfile!(contents, append: T.unsafe(nil)); end end # Execution features for a context # -# source://spoom//lib/spoom/context/exec.rb#25 +# source://spoom//lib/spoom/context/exec.rb#26 module Spoom::Context::Exec requires_ancestor { Spoom::Context } # Run a command in this context directory - # : (String command, ?capture_err: bool) -> ExecResult # - # source://spoom//lib/spoom/context/exec.rb#32 + # source://spoom//lib/spoom/context/exec.rb#29 sig { params(command: ::String, capture_err: T::Boolean).returns(::Spoom::ExecResult) } def exec(command, capture_err: T.unsafe(nil)); end end # File System features for a context # -# source://spoom//lib/spoom/context/file_system.rb#7 +# source://spoom//lib/spoom/context/file_system.rb#8 module Spoom::Context::FileSystem requires_ancestor { Spoom::Context } # Returns the absolute path to `relative_path` in the context's directory - # : (String relative_path) -> String # - # source://spoom//lib/spoom/context/file_system.rb#14 + # source://spoom//lib/spoom/context/file_system.rb#11 sig { params(relative_path: ::String).returns(::String) } def absolute_path_to(relative_path); end - # : (?allow_extensions: Array[String], ?allow_mime_types: Array[String], ?exclude_patterns: Array[String]) -> Array[String] - # - # source://spoom//lib/spoom/context/file_system.rb#46 + # source://spoom//lib/spoom/context/file_system.rb#43 sig do params( allow_extensions: T::Array[::String], @@ -606,129 +572,113 @@ module Spoom::Context::FileSystem # Delete this context and its content # # Warning: it will `rm -rf` the context directory on the file system. - # : -> void # - # source://spoom//lib/spoom/context/file_system.rb#98 + # source://spoom//lib/spoom/context/file_system.rb#95 sig { void } def destroy!; end # Does the context directory at `absolute_path` exist and is a directory? - # : -> bool # # @return [Boolean] # - # source://spoom//lib/spoom/context/file_system.rb#20 + # source://spoom//lib/spoom/context/file_system.rb#17 sig { returns(T::Boolean) } def exist?; end # Does `relative_path` point to an existing file in this context directory? - # : (String relative_path) -> bool # # @return [Boolean] # - # source://spoom//lib/spoom/context/file_system.rb#58 + # source://spoom//lib/spoom/context/file_system.rb#55 sig { params(relative_path: ::String).returns(T::Boolean) } def file?(relative_path); end # List all files in this context matching `pattern` - # : (?String pattern) -> Array[String] # - # source://spoom//lib/spoom/context/file_system.rb#33 + # source://spoom//lib/spoom/context/file_system.rb#30 sig { params(pattern: ::String).returns(T::Array[::String]) } def glob(pattern = T.unsafe(nil)); end # List all files at the top level of this context directory - # : -> Array[String] # - # source://spoom//lib/spoom/context/file_system.rb#41 + # source://spoom//lib/spoom/context/file_system.rb#38 sig { returns(T::Array[::String]) } def list; end # Create the context directory at `absolute_path` - # : -> void # - # source://spoom//lib/spoom/context/file_system.rb#26 + # source://spoom//lib/spoom/context/file_system.rb#23 sig { void } def mkdir!; end # Move the file or directory from `from_relative_path` to `to_relative_path` - # : (String from_relative_path, String to_relative_path) -> void # - # source://spoom//lib/spoom/context/file_system.rb#88 + # source://spoom//lib/spoom/context/file_system.rb#85 sig { params(from_relative_path: ::String, to_relative_path: ::String).void } def move!(from_relative_path, to_relative_path); end # Return the contents of the file at `relative_path` in this context directory # # Will raise if the file doesn't exist. - # : (String relative_path) -> String # - # source://spoom//lib/spoom/context/file_system.rb#66 + # source://spoom//lib/spoom/context/file_system.rb#63 sig { params(relative_path: ::String).returns(::String) } def read(relative_path); end # Remove the path at `relative_path` (recursive + force) in this context directory - # : (String relative_path) -> void # - # source://spoom//lib/spoom/context/file_system.rb#82 + # source://spoom//lib/spoom/context/file_system.rb#79 sig { params(relative_path: ::String).void } def remove!(relative_path); end # Write `contents` in the file at `relative_path` in this context directory # # Append to the file if `append` is true. - # : (String relative_path, ?String contents, ?append: bool) -> void # - # source://spoom//lib/spoom/context/file_system.rb#74 + # source://spoom//lib/spoom/context/file_system.rb#71 sig { params(relative_path: ::String, contents: ::String, append: T::Boolean).void } def write!(relative_path, contents = T.unsafe(nil), append: T.unsafe(nil)); end end # Git features for a context # -# source://spoom//lib/spoom/context/git.rb#31 +# source://spoom//lib/spoom/context/git.rb#32 module Spoom::Context::Git requires_ancestor { Spoom::Context } # Run a command prefixed by `git` in this context directory - # : (String command) -> ExecResult # - # source://spoom//lib/spoom/context/git.rb#38 + # source://spoom//lib/spoom/context/git.rb#35 sig { params(command: ::String).returns(::Spoom::ExecResult) } def git(command); end # Run `git checkout` in this context directory - # : (?ref: String) -> ExecResult # - # source://spoom//lib/spoom/context/git.rb#57 + # source://spoom//lib/spoom/context/git.rb#54 sig { params(ref: ::String).returns(::Spoom::ExecResult) } def git_checkout!(ref: T.unsafe(nil)); end # Run `git checkout -b ` in this context directory - # : (String branch_name, ?ref: String?) -> ExecResult # - # source://spoom//lib/spoom/context/git.rb#63 + # source://spoom//lib/spoom/context/git.rb#60 sig { params(branch_name: ::String, ref: T.nilable(::String)).returns(::Spoom::ExecResult) } def git_checkout_new_branch!(branch_name, ref: T.unsafe(nil)); end # Run `git add . && git commit` in this context directory - # : (?message: String, ?time: Time, ?allow_empty: bool) -> ExecResult # - # source://spoom//lib/spoom/context/git.rb#73 + # source://spoom//lib/spoom/context/git.rb#70 sig { params(message: ::String, time: ::Time, allow_empty: T::Boolean).returns(::Spoom::ExecResult) } def git_commit!(message: T.unsafe(nil), time: T.unsafe(nil), allow_empty: T.unsafe(nil)); end # Get the current git branch in this context directory - # : -> String? # - # source://spoom//lib/spoom/context/git.rb#84 + # source://spoom//lib/spoom/context/git.rb#81 sig { returns(T.nilable(::String)) } def git_current_branch; end # Run `git diff` in this context directory - # : (*String arg) -> ExecResult # - # source://spoom//lib/spoom/context/git.rb#93 + # source://spoom//lib/spoom/context/git.rb#90 sig { params(arg: ::String).returns(::Spoom::ExecResult) } def git_diff(*arg); end @@ -736,115 +686,97 @@ module Spoom::Context::Git # # Warning: passing a branch will run `git init -b ` which is only available in git 2.28+. # In older versions, use `git_init!` followed by `git("checkout -b ")`. - # : (?branch: String?) -> ExecResult # - # source://spoom//lib/spoom/context/git.rb#47 + # source://spoom//lib/spoom/context/git.rb#44 sig { params(branch: T.nilable(::String)).returns(::Spoom::ExecResult) } def git_init!(branch: T.unsafe(nil)); end # Get the last commit in the currently checked out branch - # : (?short_sha: bool) -> Spoom::Git::Commit? # - # source://spoom//lib/spoom/context/git.rb#99 + # source://spoom//lib/spoom/context/git.rb#96 sig { params(short_sha: T::Boolean).returns(T.nilable(::Spoom::Git::Commit)) } def git_last_commit(short_sha: T.unsafe(nil)); end - # : (*String arg) -> ExecResult - # - # source://spoom//lib/spoom/context/git.rb#110 + # source://spoom//lib/spoom/context/git.rb#107 sig { params(arg: ::String).returns(::Spoom::ExecResult) } def git_log(*arg); end # Run `git push ` in this context directory - # : (String remote, String ref, ?force: bool) -> ExecResult # - # source://spoom//lib/spoom/context/git.rb#116 + # source://spoom//lib/spoom/context/git.rb#113 sig { params(remote: ::String, ref: ::String, force: T::Boolean).returns(::Spoom::ExecResult) } def git_push!(remote, ref, force: T.unsafe(nil)); end - # : (*String arg) -> ExecResult - # - # source://spoom//lib/spoom/context/git.rb#121 + # source://spoom//lib/spoom/context/git.rb#118 sig { params(arg: ::String).returns(::Spoom::ExecResult) } def git_show(*arg); end # Is there uncommitted changes in this context directory? - # : (?path: String) -> bool # # @return [Boolean] # - # source://spoom//lib/spoom/context/git.rb#127 + # source://spoom//lib/spoom/context/git.rb#124 sig { params(path: ::String).returns(T::Boolean) } def git_workdir_clean?(path: T.unsafe(nil)); end end # Sorbet features for a context # -# source://spoom//lib/spoom/context/sorbet.rb#7 +# source://spoom//lib/spoom/context/sorbet.rb#8 module Spoom::Context::Sorbet requires_ancestor { Spoom::Context } # Does this context has a `sorbet/config` file? - # : -> bool # # @return [Boolean] # - # source://spoom//lib/spoom/context/sorbet.rb#106 + # source://spoom//lib/spoom/context/sorbet.rb#103 sig { returns(T::Boolean) } def has_sorbet_config?; end # Read the strictness sigil from the file at `relative_path` (returns `nil` if no sigil) - # : (String relative_path) -> String? # - # source://spoom//lib/spoom/context/sorbet.rb#129 + # source://spoom//lib/spoom/context/sorbet.rb#126 sig { params(relative_path: ::String).returns(T.nilable(::String)) } def read_file_strictness(relative_path); end # Read the contents of `sorbet/config` in this context directory - # : -> String # - # source://spoom//lib/spoom/context/sorbet.rb#117 + # source://spoom//lib/spoom/context/sorbet.rb#114 sig { returns(::String) } def read_sorbet_config; end - # : -> Spoom::Sorbet::Config - # - # source://spoom//lib/spoom/context/sorbet.rb#111 + # source://spoom//lib/spoom/context/sorbet.rb#108 sig { returns(::Spoom::Sorbet::Config) } def sorbet_config; end # Get the commit introducing the `sorbet/config` file - # : -> Spoom::Git::Commit? # - # source://spoom//lib/spoom/context/sorbet.rb#135 + # source://spoom//lib/spoom/context/sorbet.rb#132 sig { returns(T.nilable(::Spoom::Git::Commit)) } def sorbet_intro_commit; end # Get the commit removing the `sorbet/config` file - # : -> Spoom::Git::Commit? # - # source://spoom//lib/spoom/context/sorbet.rb#147 + # source://spoom//lib/spoom/context/sorbet.rb#144 sig { returns(T.nilable(::Spoom::Git::Commit)) } def sorbet_removal_commit; end # Run `bundle exec srb` in this context directory - # : (*String arg, ?sorbet_bin: String?, ?capture_err: bool) -> ExecResult # - # source://spoom//lib/spoom/context/sorbet.rb#14 + # source://spoom//lib/spoom/context/sorbet.rb#11 sig { params(arg: ::String, sorbet_bin: T.nilable(::String), capture_err: T::Boolean).returns(::Spoom::ExecResult) } def srb(*arg, sorbet_bin: T.unsafe(nil), capture_err: T.unsafe(nil)); end # List all files typechecked by Sorbet from its `config` - # : (?with_config: Spoom::Sorbet::Config?, ?include_rbis: bool) -> Array[String] # - # source://spoom//lib/spoom/context/sorbet.rb#58 + # source://spoom//lib/spoom/context/sorbet.rb#55 sig { params(with_config: T.nilable(::Spoom::Sorbet::Config), include_rbis: T::Boolean).returns(T::Array[::String]) } def srb_files(with_config: T.unsafe(nil), include_rbis: T.unsafe(nil)); end # List all files typechecked by Sorbet from its `config` that matches `strictness` - # : (String strictness, ?with_config: Spoom::Sorbet::Config?, ?include_rbis: bool) -> Array[String] # - # source://spoom//lib/spoom/context/sorbet.rb#91 + # source://spoom//lib/spoom/context/sorbet.rb#88 sig do params( strictness: ::String, @@ -854,9 +786,7 @@ module Spoom::Context::Sorbet end def srb_files_with_strictness(strictness, with_config: T.unsafe(nil), include_rbis: T.unsafe(nil)); end - # : (*String arg, ?sorbet_bin: String?, ?capture_err: bool) -> Hash[String, Integer]? - # - # source://spoom//lib/spoom/context/sorbet.rb#38 + # source://spoom//lib/spoom/context/sorbet.rb#35 sig do params( arg: ::String, @@ -866,37 +796,51 @@ module Spoom::Context::Sorbet end def srb_metrics(*arg, sorbet_bin: T.unsafe(nil), capture_err: T.unsafe(nil)); end - # : (*String arg, ?sorbet_bin: String?, ?capture_err: bool) -> ExecResult - # - # source://spoom//lib/spoom/context/sorbet.rb#32 + # source://spoom//lib/spoom/context/sorbet.rb#29 sig { params(arg: ::String, sorbet_bin: T.nilable(::String), capture_err: T::Boolean).returns(::Spoom::ExecResult) } def srb_tc(*arg, sorbet_bin: T.unsafe(nil), capture_err: T.unsafe(nil)); end - # : (*String arg, ?sorbet_bin: String?, ?capture_err: bool) -> String? - # - # source://spoom//lib/spoom/context/sorbet.rb#97 + # source://spoom//lib/spoom/context/sorbet.rb#94 sig { params(arg: ::String, sorbet_bin: T.nilable(::String), capture_err: T::Boolean).returns(T.nilable(::String)) } def srb_version(*arg, sorbet_bin: T.unsafe(nil), capture_err: T.unsafe(nil)); end # Set the `contents` of `sorbet/config` in this context directory - # : (String contents, ?append: bool) -> void # - # source://spoom//lib/spoom/context/sorbet.rb#123 + # source://spoom//lib/spoom/context/sorbet.rb#120 sig { params(contents: ::String, append: T::Boolean).void } def write_sorbet_config!(contents, append: T.unsafe(nil)); end end +# source://spoom//lib/spoom/counters.rb#6 +class Spoom::Counters < ::Hash + extend T::Generic + + K = type_member { { fixed: String } } + V = type_member { { fixed: Integer } } + Elem = type_member { { fixed: [String, Integer] } } + + # @return [Counters] a new instance of Counters + # + # source://spoom//lib/spoom/counters.rb#8 + sig { void } + def initialize; end + + # source://spoom//lib/spoom/counters.rb#18 + sig { params(key: ::String).returns(::Integer) } + def [](key); end + + # source://spoom//lib/spoom/counters.rb#13 + sig { params(key: ::String).void } + def increment(key); end +end + # source://spoom//lib/spoom/coverage/snapshot.rb#5 module Spoom::Coverage class << self - # : (Context context) -> FileTree - # # source://spoom//lib/spoom/coverage.rb#101 sig { params(context: ::Spoom::Context).returns(::Spoom::FileTree) } def file_tree(context); end - # : (Context context, Array[Snapshot] snapshots, palette: D3::ColorPalette) -> Report - # # source://spoom//lib/spoom/coverage.rb#81 sig do params( @@ -907,8 +851,6 @@ module Spoom::Coverage end def report(context, snapshots, palette:); end - # : (Context context, ?rbi: bool, ?sorbet_bin: String?) -> Snapshot - # # source://spoom//lib/spoom/coverage.rb#14 sig do params( @@ -921,70 +863,56 @@ module Spoom::Coverage end end -# source://spoom//lib/spoom/coverage/report.rb#87 +# source://spoom//lib/spoom/coverage/report.rb#81 module Spoom::Coverage::Cards; end -# source://spoom//lib/spoom/coverage/report.rb#88 +# source://spoom//lib/spoom/coverage/report.rb#82 class Spoom::Coverage::Cards::Card < ::Spoom::Coverage::Template - # : (?template: String, ?title: String?, ?body: String?) -> void - # # @return [Card] a new instance of Card # - # source://spoom//lib/spoom/coverage/report.rb#97 + # source://spoom//lib/spoom/coverage/report.rb#89 sig { params(template: ::String, title: T.nilable(::String), body: T.nilable(::String)).void } def initialize(template: T.unsafe(nil), title: T.unsafe(nil), body: T.unsafe(nil)); end - # : String? - # - # source://spoom//lib/spoom/coverage/report.rb#94 + # source://spoom//lib/spoom/coverage/report.rb#86 def body; end - # : String? - # - # source://spoom//lib/spoom/coverage/report.rb#94 + # source://spoom//lib/spoom/coverage/report.rb#86 sig { returns(T.nilable(::String)) } def title; end end -# : String -# -# source://spoom//lib/spoom/coverage/report.rb#91 +# source://spoom//lib/spoom/coverage/report.rb#83 Spoom::Coverage::Cards::Card::TEMPLATE = T.let(T.unsafe(nil), String) -# @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. +# @abstract # -# source://spoom//lib/spoom/coverage/report.rb#104 +# source://spoom//lib/spoom/coverage/report.rb#97 class Spoom::Coverage::Cards::Erb < ::Spoom::Coverage::Cards::Card abstract! - # : -> void - # # @return [Erb] a new instance of Erb # - # source://spoom//lib/spoom/coverage/report.rb#110 + # source://spoom//lib/spoom/coverage/report.rb#99 sig { void } def initialize; end # @abstract # - # source://spoom//lib/spoom/coverage/report.rb#119 + # source://spoom//lib/spoom/coverage/report.rb#109 sig { abstract.returns(::String) } def erb; end - # : -> String - # - # source://spoom//lib/spoom/coverage/report.rb#114 + # source://spoom//lib/spoom/coverage/report.rb#103 sig { override.returns(::String) } def html; end end -# source://spoom//lib/spoom/coverage/report.rb#150 +# source://spoom//lib/spoom/coverage/report.rb#140 class Spoom::Coverage::Cards::Map < ::Spoom::Coverage::Cards::Card - # : (file_tree: FileTree, nodes_strictnesses: Hash[FileTree::Node, String?], nodes_strictness_scores: Hash[FileTree::Node, Float], ?title: String) -> void - # # @return [Map] a new instance of Map # - # source://spoom//lib/spoom/coverage/report.rb#152 + # source://spoom//lib/spoom/coverage/report.rb#142 sig do params( file_tree: ::Spoom::FileTree, @@ -996,136 +924,106 @@ class Spoom::Coverage::Cards::Map < ::Spoom::Coverage::Cards::Card def initialize(file_tree:, nodes_strictnesses:, nodes_strictness_scores:, title: T.unsafe(nil)); end end -# source://spoom//lib/spoom/coverage/report.rb#122 +# source://spoom//lib/spoom/coverage/report.rb#112 class Spoom::Coverage::Cards::Snapshot < ::Spoom::Coverage::Cards::Card - # : (snapshot: Coverage::Snapshot, ?title: String) -> void - # # @return [Snapshot] a new instance of Snapshot # - # source://spoom//lib/spoom/coverage/report.rb#129 + # source://spoom//lib/spoom/coverage/report.rb#119 sig { params(snapshot: ::Spoom::Coverage::Snapshot, title: ::String).void } def initialize(snapshot:, title: T.unsafe(nil)); end - # : -> D3::Pie::Calls - # - # source://spoom//lib/spoom/coverage/report.rb#140 + # source://spoom//lib/spoom/coverage/report.rb#130 sig { returns(::Spoom::Coverage::D3::Pie::Calls) } def pie_calls; end - # : -> D3::Pie::Sigils - # - # source://spoom//lib/spoom/coverage/report.rb#135 + # source://spoom//lib/spoom/coverage/report.rb#125 sig { returns(::Spoom::Coverage::D3::Pie::Sigils) } def pie_sigils; end - # : -> D3::Pie::Sigs - # - # source://spoom//lib/spoom/coverage/report.rb#145 + # source://spoom//lib/spoom/coverage/report.rb#135 sig { returns(::Spoom::Coverage::D3::Pie::Sigs) } def pie_sigs; end - # : Coverage::Snapshot - # - # source://spoom//lib/spoom/coverage/report.rb#126 + # source://spoom//lib/spoom/coverage/report.rb#116 sig { returns(::Spoom::Coverage::Snapshot) } def snapshot; end end -# : String -# -# source://spoom//lib/spoom/coverage/report.rb#123 +# source://spoom//lib/spoom/coverage/report.rb#113 Spoom::Coverage::Cards::Snapshot::TEMPLATE = T.let(T.unsafe(nil), String) -# source://spoom//lib/spoom/coverage/report.rb#214 +# source://spoom//lib/spoom/coverage/report.rb#204 class Spoom::Coverage::Cards::SorbetIntro < ::Spoom::Coverage::Cards::Erb - # : (?sorbet_intro_commit: String?, ?sorbet_intro_date: Time?) -> void - # # @return [SorbetIntro] a new instance of SorbetIntro # - # source://spoom//lib/spoom/coverage/report.rb#216 + # source://spoom//lib/spoom/coverage/report.rb#206 sig { params(sorbet_intro_commit: T.nilable(::String), sorbet_intro_date: T.nilable(::Time)).void } def initialize(sorbet_intro_commit: T.unsafe(nil), sorbet_intro_date: T.unsafe(nil)); end - # : -> String - # - # source://spoom//lib/spoom/coverage/report.rb#223 + # source://spoom//lib/spoom/coverage/report.rb#213 sig { override.returns(::String) } def erb; end end -# source://spoom//lib/spoom/coverage/report.rb#165 +# source://spoom//lib/spoom/coverage/report.rb#155 class Spoom::Coverage::Cards::Timeline < ::Spoom::Coverage::Cards::Card - # : (title: String, timeline: D3::Timeline) -> void - # # @return [Timeline] a new instance of Timeline # - # source://spoom//lib/spoom/coverage/report.rb#167 + # source://spoom//lib/spoom/coverage/report.rb#157 sig { params(title: ::String, timeline: ::Spoom::Coverage::D3::Timeline).void } def initialize(title:, timeline:); end end -# source://spoom//lib/spoom/coverage/report.rb#178 +# source://spoom//lib/spoom/coverage/report.rb#168 class Spoom::Coverage::Cards::Timeline::Calls < ::Spoom::Coverage::Cards::Timeline - # : (snapshots: Array[Coverage::Snapshot], ?title: String) -> void - # # @return [Calls] a new instance of Calls # - # source://spoom//lib/spoom/coverage/report.rb#180 + # source://spoom//lib/spoom/coverage/report.rb#170 sig { params(snapshots: T::Array[::Spoom::Coverage::Snapshot], title: ::String).void } def initialize(snapshots:, title: T.unsafe(nil)); end end -# source://spoom//lib/spoom/coverage/report.rb#192 +# source://spoom//lib/spoom/coverage/report.rb#182 class Spoom::Coverage::Cards::Timeline::RBIs < ::Spoom::Coverage::Cards::Timeline - # : (snapshots: Array[Coverage::Snapshot], ?title: String) -> void - # # @return [RBIs] a new instance of RBIs # - # source://spoom//lib/spoom/coverage/report.rb#194 + # source://spoom//lib/spoom/coverage/report.rb#184 sig { params(snapshots: T::Array[::Spoom::Coverage::Snapshot], title: ::String).void } def initialize(snapshots:, title: T.unsafe(nil)); end end -# source://spoom//lib/spoom/coverage/report.rb#206 +# source://spoom//lib/spoom/coverage/report.rb#196 class Spoom::Coverage::Cards::Timeline::Runtimes < ::Spoom::Coverage::Cards::Timeline - # : (snapshots: Array[Coverage::Snapshot], ?title: String) -> void - # # @return [Runtimes] a new instance of Runtimes # - # source://spoom//lib/spoom/coverage/report.rb#208 + # source://spoom//lib/spoom/coverage/report.rb#198 sig { params(snapshots: T::Array[::Spoom::Coverage::Snapshot], title: ::String).void } def initialize(snapshots:, title: T.unsafe(nil)); end end -# source://spoom//lib/spoom/coverage/report.rb#171 +# source://spoom//lib/spoom/coverage/report.rb#161 class Spoom::Coverage::Cards::Timeline::Sigils < ::Spoom::Coverage::Cards::Timeline - # : (snapshots: Array[Coverage::Snapshot], ?title: String) -> void - # # @return [Sigils] a new instance of Sigils # - # source://spoom//lib/spoom/coverage/report.rb#173 + # source://spoom//lib/spoom/coverage/report.rb#163 sig { params(snapshots: T::Array[::Spoom::Coverage::Snapshot], title: ::String).void } def initialize(snapshots:, title: T.unsafe(nil)); end end -# source://spoom//lib/spoom/coverage/report.rb#185 +# source://spoom//lib/spoom/coverage/report.rb#175 class Spoom::Coverage::Cards::Timeline::Sigs < ::Spoom::Coverage::Cards::Timeline - # : (snapshots: Array[Coverage::Snapshot], ?title: String) -> void - # # @return [Sigs] a new instance of Sigs # - # source://spoom//lib/spoom/coverage/report.rb#187 + # source://spoom//lib/spoom/coverage/report.rb#177 sig { params(snapshots: T::Array[::Spoom::Coverage::Snapshot], title: ::String).void } def initialize(snapshots:, title: T.unsafe(nil)); end end -# source://spoom//lib/spoom/coverage/report.rb#199 +# source://spoom//lib/spoom/coverage/report.rb#189 class Spoom::Coverage::Cards::Timeline::Versions < ::Spoom::Coverage::Cards::Timeline - # : (snapshots: Array[Coverage::Snapshot], ?title: String) -> void - # # @return [Versions] a new instance of Versions # - # source://spoom//lib/spoom/coverage/report.rb#201 + # source://spoom//lib/spoom/coverage/report.rb#191 sig { params(snapshots: T::Array[::Spoom::Coverage::Snapshot], title: ::String).void } def initialize(snapshots:, title: T.unsafe(nil)); end end @@ -1133,68 +1031,52 @@ end # source://spoom//lib/spoom/coverage/d3/base.rb#6 module Spoom::Coverage::D3 class << self - # : (ColorPalette palette) -> String - # # source://spoom//lib/spoom/coverage/d3.rb#59 sig { params(palette: ::Spoom::Coverage::D3::ColorPalette).returns(::String) } def header_script(palette); end - # : -> String - # # source://spoom//lib/spoom/coverage/d3.rb#19 sig { returns(::String) } def header_style; end end end -# @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. +# @abstract # -# source://spoom//lib/spoom/coverage/d3/base.rb#7 +# source://spoom//lib/spoom/coverage/d3/base.rb#8 class Spoom::Coverage::D3::Base abstract! - # : (String id, untyped data) -> void - # # @return [Base] a new instance of Base # - # source://spoom//lib/spoom/coverage/d3/base.rb#17 + # source://spoom//lib/spoom/coverage/d3/base.rb#13 sig { params(id: ::String, data: T.untyped).void } def initialize(id, data); end - # : -> String - # - # source://spoom//lib/spoom/coverage/d3/base.rb#35 + # source://spoom//lib/spoom/coverage/d3/base.rb#31 sig { returns(::String) } def html; end - # : String - # - # source://spoom//lib/spoom/coverage/d3/base.rb#14 + # source://spoom//lib/spoom/coverage/d3/base.rb#10 sig { returns(::String) } def id; end # @abstract # - # source://spoom//lib/spoom/coverage/d3/base.rb#48 + # source://spoom//lib/spoom/coverage/d3/base.rb#45 sig { abstract.returns(::String) } def script; end - # : -> String - # - # source://spoom//lib/spoom/coverage/d3/base.rb#43 + # source://spoom//lib/spoom/coverage/d3/base.rb#39 sig { returns(::String) } def tooltip; end class << self - # : -> String - # - # source://spoom//lib/spoom/coverage/d3/base.rb#29 + # source://spoom//lib/spoom/coverage/d3/base.rb#25 sig { returns(::String) } def header_script; end - # : -> String - # - # source://spoom//lib/spoom/coverage/d3/base.rb#24 + # source://spoom//lib/spoom/coverage/d3/base.rb#20 sig { returns(::String) } def header_style; end end @@ -1217,21 +1099,15 @@ Spoom::Coverage::D3::COLOR_TRUE = T.let(T.unsafe(nil), String) # source://spoom//lib/spoom/coverage/d3/circle_map.rb#9 class Spoom::Coverage::D3::CircleMap < ::Spoom::Coverage::D3::Base - # : -> String - # # source://spoom//lib/spoom/coverage/d3/circle_map.rb#58 sig { override.returns(::String) } def script; end class << self - # : -> String - # # source://spoom//lib/spoom/coverage/d3/circle_map.rb#38 sig { returns(::String) } def header_script; end - # : -> String - # # source://spoom//lib/spoom/coverage/d3/circle_map.rb#12 sig { returns(::String) } def header_style; end @@ -1240,8 +1116,6 @@ end # source://spoom//lib/spoom/coverage/d3/circle_map.rb#147 class Spoom::Coverage::D3::CircleMap::Sigils < ::Spoom::Coverage::D3::CircleMap - # : (String id, FileTree file_tree, Hash[FileTree::Node, String?] nodes_strictnesses, Hash[FileTree::Node, Float] nodes_scores) -> void - # # @return [Sigils] a new instance of Sigils # # source://spoom//lib/spoom/coverage/d3/circle_map.rb#149 @@ -1255,8 +1129,6 @@ class Spoom::Coverage::D3::CircleMap::Sigils < ::Spoom::Coverage::D3::CircleMap end def initialize(id, file_tree, nodes_strictnesses, nodes_scores); end - # : (FileTree::Node node) -> Hash[Symbol, untyped] - # # source://spoom//lib/spoom/coverage/d3/circle_map.rb#156 sig { params(node: ::Spoom::FileTree::Node).returns(T::Hash[::Symbol, T.untyped]) } def tree_node_to_json(node); end @@ -1269,414 +1141,307 @@ class Spoom::Coverage::D3::ColorPalette < ::T::Struct prop :true, ::String prop :strict, ::String prop :strong, ::String - - class << self - # source://sorbet-runtime/0.5.12079/lib/types/struct.rb#13 - def inherited(s); end - end end -# @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. +# @abstract # -# source://spoom//lib/spoom/coverage/d3/pie.rb#9 +# source://spoom//lib/spoom/coverage/d3/pie.rb#10 class Spoom::Coverage::D3::Pie < ::Spoom::Coverage::D3::Base abstract! - # : (String id, String title, untyped data) -> void - # # @return [Pie] a new instance of Pie # - # source://spoom//lib/spoom/coverage/d3/pie.rb#15 + # source://spoom//lib/spoom/coverage/d3/pie.rb#12 sig { params(id: ::String, title: ::String, data: T.untyped).void } def initialize(id, title, data); end - # : -> String - # - # source://spoom//lib/spoom/coverage/d3/pie.rb#54 + # source://spoom//lib/spoom/coverage/d3/pie.rb#51 sig { override.returns(::String) } def script; end class << self - # : -> String - # - # source://spoom//lib/spoom/coverage/d3/pie.rb#40 + # source://spoom//lib/spoom/coverage/d3/pie.rb#37 sig { returns(::String) } def header_script; end - # : -> String - # - # source://spoom//lib/spoom/coverage/d3/pie.rb#22 + # source://spoom//lib/spoom/coverage/d3/pie.rb#19 sig { returns(::String) } def header_style; end end end -# source://spoom//lib/spoom/coverage/d3/pie.rb#138 +# source://spoom//lib/spoom/coverage/d3/pie.rb#135 class Spoom::Coverage::D3::Pie::Calls < ::Spoom::Coverage::D3::Pie - # : (String id, String title, Snapshot snapshot) -> void - # # @return [Calls] a new instance of Calls # - # source://spoom//lib/spoom/coverage/d3/pie.rb#140 + # source://spoom//lib/spoom/coverage/d3/pie.rb#137 sig { params(id: ::String, title: ::String, snapshot: ::Spoom::Coverage::Snapshot).void } def initialize(id, title, snapshot); end - # : -> String - # - # source://spoom//lib/spoom/coverage/d3/pie.rb#146 + # source://spoom//lib/spoom/coverage/d3/pie.rb#143 sig { override.returns(::String) } def tooltip; end end -# source://spoom//lib/spoom/coverage/d3/pie.rb#121 +# source://spoom//lib/spoom/coverage/d3/pie.rb#118 class Spoom::Coverage::D3::Pie::Sigils < ::Spoom::Coverage::D3::Pie - # : (String id, String title, Snapshot snapshot) -> void - # # @return [Sigils] a new instance of Sigils # - # source://spoom//lib/spoom/coverage/d3/pie.rb#123 + # source://spoom//lib/spoom/coverage/d3/pie.rb#120 sig { params(id: ::String, title: ::String, snapshot: ::Spoom::Coverage::Snapshot).void } def initialize(id, title, snapshot); end - # : -> String - # - # source://spoom//lib/spoom/coverage/d3/pie.rb#129 + # source://spoom//lib/spoom/coverage/d3/pie.rb#126 sig { override.returns(::String) } def tooltip; end end -# source://spoom//lib/spoom/coverage/d3/pie.rb#155 +# source://spoom//lib/spoom/coverage/d3/pie.rb#152 class Spoom::Coverage::D3::Pie::Sigs < ::Spoom::Coverage::D3::Pie - # : (String id, String title, Snapshot snapshot) -> void - # # @return [Sigs] a new instance of Sigs # - # source://spoom//lib/spoom/coverage/d3/pie.rb#157 + # source://spoom//lib/spoom/coverage/d3/pie.rb#154 sig { params(id: ::String, title: ::String, snapshot: ::Spoom::Coverage::Snapshot).void } def initialize(id, title, snapshot); end - # : -> String - # - # source://spoom//lib/spoom/coverage/d3/pie.rb#167 + # source://spoom//lib/spoom/coverage/d3/pie.rb#164 sig { override.returns(::String) } def tooltip; end end -# @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. +# @abstract # -# source://spoom//lib/spoom/coverage/d3/timeline.rb#9 +# source://spoom//lib/spoom/coverage/d3/timeline.rb#10 class Spoom::Coverage::D3::Timeline < ::Spoom::Coverage::D3::Base abstract! - # : (String id, untyped data, Array[String] keys) -> void - # # @return [Timeline] a new instance of Timeline # - # source://spoom//lib/spoom/coverage/d3/timeline.rb#15 + # source://spoom//lib/spoom/coverage/d3/timeline.rb#12 sig { params(id: ::String, data: T.untyped, keys: T::Array[::String]).void } def initialize(id, data, keys); end - # : (y: String, ?color: String, ?curve: String) -> String - # - # source://spoom//lib/spoom/coverage/d3/timeline.rb#185 + # source://spoom//lib/spoom/coverage/d3/timeline.rb#183 sig { params(y: ::String, color: ::String, curve: ::String).returns(::String) } def area(y:, color: T.unsafe(nil), curve: T.unsafe(nil)); end - # : (y: String, ?color: String, ?curve: String) -> String - # - # source://spoom//lib/spoom/coverage/d3/timeline.rb#201 + # source://spoom//lib/spoom/coverage/d3/timeline.rb#199 sig { params(y: ::String, color: ::String, curve: ::String).returns(::String) } def line(y:, color: T.unsafe(nil), curve: T.unsafe(nil)); end # @abstract # - # source://spoom//lib/spoom/coverage/d3/timeline.rb#124 + # source://spoom//lib/spoom/coverage/d3/timeline.rb#122 sig { abstract.returns(::String) } def plot; end - # : (y: String) -> String - # - # source://spoom//lib/spoom/coverage/d3/timeline.rb#215 + # source://spoom//lib/spoom/coverage/d3/timeline.rb#213 sig { params(y: ::String).returns(::String) } def points(y:); end - # : -> String - # - # source://spoom//lib/spoom/coverage/d3/timeline.rb#99 + # source://spoom//lib/spoom/coverage/d3/timeline.rb#96 sig { override.returns(::String) } def script; end - # : -> String - # - # source://spoom//lib/spoom/coverage/d3/timeline.rb#127 + # source://spoom//lib/spoom/coverage/d3/timeline.rb#125 sig { returns(::String) } def x_scale; end - # : -> String - # - # source://spoom//lib/spoom/coverage/d3/timeline.rb#143 + # source://spoom//lib/spoom/coverage/d3/timeline.rb#141 sig { returns(::String) } def x_ticks; end - # : (min: String, max: String, ticks: String) -> String - # - # source://spoom//lib/spoom/coverage/d3/timeline.rb#156 + # source://spoom//lib/spoom/coverage/d3/timeline.rb#154 sig { params(min: ::String, max: ::String, ticks: ::String).returns(::String) } def y_scale(min:, max:, ticks:); end - # : (ticks: String, format: String, padding: Integer) -> String - # - # source://spoom//lib/spoom/coverage/d3/timeline.rb#172 + # source://spoom//lib/spoom/coverage/d3/timeline.rb#170 sig { params(ticks: ::String, format: ::String, padding: ::Integer).returns(::String) } def y_ticks(ticks:, format:, padding:); end class << self - # : -> String - # - # source://spoom//lib/spoom/coverage/d3/timeline.rb#76 + # source://spoom//lib/spoom/coverage/d3/timeline.rb#73 sig { returns(::String) } def header_script; end - # : -> String - # - # source://spoom//lib/spoom/coverage/d3/timeline.rb#22 + # source://spoom//lib/spoom/coverage/d3/timeline.rb#19 sig { returns(::String) } def header_style; end end end -# source://spoom//lib/spoom/coverage/d3/timeline.rb#447 +# source://spoom//lib/spoom/coverage/d3/timeline.rb#442 class Spoom::Coverage::D3::Timeline::Calls < ::Spoom::Coverage::D3::Timeline::Stacked - # : (String id, Array[Snapshot] snapshots) -> void - # # @return [Calls] a new instance of Calls # - # source://spoom//lib/spoom/coverage/d3/timeline.rb#449 + # source://spoom//lib/spoom/coverage/d3/timeline.rb#444 sig { params(id: ::String, snapshots: T::Array[::Spoom::Coverage::Snapshot]).void } def initialize(id, snapshots); end - # : -> String - # - # source://spoom//lib/spoom/coverage/d3/timeline.rb#464 + # source://spoom//lib/spoom/coverage/d3/timeline.rb#459 sig { override.returns(::String) } def tooltip; end end -# source://spoom//lib/spoom/coverage/d3/timeline.rb#502 +# source://spoom//lib/spoom/coverage/d3/timeline.rb#497 class Spoom::Coverage::D3::Timeline::RBIs < ::Spoom::Coverage::D3::Timeline::Stacked - # : (String id, Array[Snapshot] snapshots) -> void - # # @return [RBIs] a new instance of RBIs # - # source://spoom//lib/spoom/coverage/d3/timeline.rb#504 + # source://spoom//lib/spoom/coverage/d3/timeline.rb#499 sig { params(id: ::String, snapshots: T::Array[::Spoom::Coverage::Snapshot]).void } def initialize(id, snapshots); end - # : (y: String, ?color: String, ?curve: String) -> String - # - # source://spoom//lib/spoom/coverage/d3/timeline.rb#575 + # source://spoom//lib/spoom/coverage/d3/timeline.rb#570 sig { override.params(y: ::String, color: ::String, curve: ::String).returns(::String) } def line(y:, color: T.unsafe(nil), curve: T.unsafe(nil)); end - # : -> String - # - # source://spoom//lib/spoom/coverage/d3/timeline.rb#616 + # source://spoom//lib/spoom/coverage/d3/timeline.rb#611 sig { override.returns(::String) } def plot; end - # : -> String - # - # source://spoom//lib/spoom/coverage/d3/timeline.rb#534 + # source://spoom//lib/spoom/coverage/d3/timeline.rb#529 sig { override.returns(::String) } def script; end - # : -> String - # - # source://spoom//lib/spoom/coverage/d3/timeline.rb#519 + # source://spoom//lib/spoom/coverage/d3/timeline.rb#514 sig { override.returns(::String) } def tooltip; end end -# source://spoom//lib/spoom/coverage/d3/timeline.rb#280 +# source://spoom//lib/spoom/coverage/d3/timeline.rb#278 class Spoom::Coverage::D3::Timeline::Runtimes < ::Spoom::Coverage::D3::Timeline - # : (String id, Array[Snapshot] snapshots) -> void - # # @return [Runtimes] a new instance of Runtimes # - # source://spoom//lib/spoom/coverage/d3/timeline.rb#282 + # source://spoom//lib/spoom/coverage/d3/timeline.rb#280 sig { params(id: ::String, snapshots: T::Array[::Spoom::Coverage::Snapshot]).void } def initialize(id, snapshots); end - # : -> String - # - # source://spoom//lib/spoom/coverage/d3/timeline.rb#309 + # source://spoom//lib/spoom/coverage/d3/timeline.rb#307 sig { override.returns(::String) } def plot; end - # : -> String - # - # source://spoom//lib/spoom/coverage/d3/timeline.rb#295 + # source://spoom//lib/spoom/coverage/d3/timeline.rb#293 sig { override.returns(::String) } def tooltip; end end -# source://spoom//lib/spoom/coverage/d3/timeline.rb#421 +# source://spoom//lib/spoom/coverage/d3/timeline.rb#416 class Spoom::Coverage::D3::Timeline::Sigils < ::Spoom::Coverage::D3::Timeline::Stacked - # : (String id, Array[Snapshot] snapshots) -> void - # # @return [Sigils] a new instance of Sigils # - # source://spoom//lib/spoom/coverage/d3/timeline.rb#423 + # source://spoom//lib/spoom/coverage/d3/timeline.rb#418 sig { params(id: ::String, snapshots: T::Array[::Spoom::Coverage::Snapshot]).void } def initialize(id, snapshots); end - # : -> String - # - # source://spoom//lib/spoom/coverage/d3/timeline.rb#438 + # source://spoom//lib/spoom/coverage/d3/timeline.rb#433 sig { override.returns(::String) } def tooltip; end end -# source://spoom//lib/spoom/coverage/d3/timeline.rb#473 +# source://spoom//lib/spoom/coverage/d3/timeline.rb#468 class Spoom::Coverage::D3::Timeline::Sigs < ::Spoom::Coverage::D3::Timeline::Stacked - # : (String id, Array[Snapshot] snapshots) -> void - # # @return [Sigs] a new instance of Sigs # - # source://spoom//lib/spoom/coverage/d3/timeline.rb#475 + # source://spoom//lib/spoom/coverage/d3/timeline.rb#470 sig { params(id: ::String, snapshots: T::Array[::Spoom::Coverage::Snapshot]).void } def initialize(id, snapshots); end - # : -> String - # - # source://spoom//lib/spoom/coverage/d3/timeline.rb#493 + # source://spoom//lib/spoom/coverage/d3/timeline.rb#488 sig { override.returns(::String) } def tooltip; end end -# @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. +# @abstract # -# source://spoom//lib/spoom/coverage/d3/timeline.rb#327 +# source://spoom//lib/spoom/coverage/d3/timeline.rb#326 class Spoom::Coverage::D3::Timeline::Stacked < ::Spoom::Coverage::D3::Timeline abstract! - # : (y: String, ?color: String, ?curve: String) -> String - # - # source://spoom//lib/spoom/coverage/d3/timeline.rb#388 + # source://spoom//lib/spoom/coverage/d3/timeline.rb#383 sig { override.params(y: ::String, color: ::String, curve: ::String).returns(::String) } def line(y:, color: T.unsafe(nil), curve: T.unsafe(nil)); end - # : -> String - # - # source://spoom//lib/spoom/coverage/d3/timeline.rb#376 + # source://spoom//lib/spoom/coverage/d3/timeline.rb#371 sig { override.returns(::String) } def plot; end - # : -> String - # - # source://spoom//lib/spoom/coverage/d3/timeline.rb#334 + # source://spoom//lib/spoom/coverage/d3/timeline.rb#329 sig { override.returns(::String) } def script; end end -# source://spoom//lib/spoom/coverage/d3/timeline.rb#230 +# source://spoom//lib/spoom/coverage/d3/timeline.rb#228 class Spoom::Coverage::D3::Timeline::Versions < ::Spoom::Coverage::D3::Timeline - # : (String id, Array[Snapshot] snapshots) -> void - # # @return [Versions] a new instance of Versions # - # source://spoom//lib/spoom/coverage/d3/timeline.rb#232 + # source://spoom//lib/spoom/coverage/d3/timeline.rb#230 sig { params(id: ::String, snapshots: T::Array[::Spoom::Coverage::Snapshot]).void } def initialize(id, snapshots); end - # : -> String - # - # source://spoom//lib/spoom/coverage/d3/timeline.rb#261 + # source://spoom//lib/spoom/coverage/d3/timeline.rb#259 sig { override.returns(::String) } def plot; end - # : -> String - # - # source://spoom//lib/spoom/coverage/d3/timeline.rb#246 + # source://spoom//lib/spoom/coverage/d3/timeline.rb#244 sig { override.returns(::String) } def tooltip; end end -# @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. +# @abstract # -# source://spoom//lib/spoom/coverage/report.rb#37 +# source://spoom//lib/spoom/coverage/report.rb#35 class Spoom::Coverage::Page < ::Spoom::Coverage::Template abstract! - # : (title: String, palette: D3::ColorPalette, ?template: String) -> void - # # @return [Page] a new instance of Page # - # source://spoom//lib/spoom/coverage/report.rb#52 + # source://spoom//lib/spoom/coverage/report.rb#45 sig { params(title: ::String, palette: ::Spoom::Coverage::D3::ColorPalette, template: ::String).void } def initialize(title:, palette:, template: T.unsafe(nil)); end - # : -> String - # - # source://spoom//lib/spoom/coverage/report.rb#74 + # source://spoom//lib/spoom/coverage/report.rb#67 sig { returns(::String) } def body_html; end # @abstract # - # source://spoom//lib/spoom/coverage/report.rb#79 + # source://spoom//lib/spoom/coverage/report.rb#73 sig { abstract.returns(T::Array[::Spoom::Coverage::Cards::Card]) } def cards; end - # : -> String - # - # source://spoom//lib/spoom/coverage/report.rb#82 + # source://spoom//lib/spoom/coverage/report.rb#76 sig { returns(::String) } def footer_html; end - # : -> String - # - # source://spoom//lib/spoom/coverage/report.rb#69 + # source://spoom//lib/spoom/coverage/report.rb#62 sig { returns(::String) } def header_html; end - # : -> String - # - # source://spoom//lib/spoom/coverage/report.rb#64 + # source://spoom//lib/spoom/coverage/report.rb#57 sig { returns(::String) } def header_script; end - # : -> String - # - # source://spoom//lib/spoom/coverage/report.rb#59 + # source://spoom//lib/spoom/coverage/report.rb#52 sig { returns(::String) } def header_style; end - # : D3::ColorPalette - # - # source://spoom//lib/spoom/coverage/report.rb#49 + # source://spoom//lib/spoom/coverage/report.rb#42 sig { returns(::Spoom::Coverage::D3::ColorPalette) } def palette; end - # : String - # - # source://spoom//lib/spoom/coverage/report.rb#46 + # source://spoom//lib/spoom/coverage/report.rb#39 sig { returns(::String) } def title; end end -# : String -# -# source://spoom//lib/spoom/coverage/report.rb#43 +# source://spoom//lib/spoom/coverage/report.rb#36 Spoom::Coverage::Page::TEMPLATE = T.let(T.unsafe(nil), String) -# source://spoom//lib/spoom/coverage/report.rb#234 +# source://spoom//lib/spoom/coverage/report.rb#224 class Spoom::Coverage::Report < ::Spoom::Coverage::Page - # : (project_name: String, palette: D3::ColorPalette, snapshots: Array[Snapshot], file_tree: FileTree, nodes_strictnesses: Hash[FileTree::Node, String?], nodes_strictness_scores: Hash[FileTree::Node, Float], ?sorbet_intro_commit: String?, ?sorbet_intro_date: Time?) -> void - # # @return [Report] a new instance of Report # - # source://spoom//lib/spoom/coverage/report.rb#236 + # source://spoom//lib/spoom/coverage/report.rb#226 sig do params( project_name: ::String, @@ -1691,15 +1456,11 @@ class Spoom::Coverage::Report < ::Spoom::Coverage::Page end def initialize(project_name:, palette:, snapshots:, file_tree:, nodes_strictnesses:, nodes_strictness_scores:, sorbet_intro_commit: T.unsafe(nil), sorbet_intro_date: T.unsafe(nil)); end - # : -> Array[Cards::Card] - # - # source://spoom//lib/spoom/coverage/report.rb#270 + # source://spoom//lib/spoom/coverage/report.rb#260 sig { override.returns(T::Array[::Spoom::Coverage::Cards::Card]) } def cards; end - # : -> String - # - # source://spoom//lib/spoom/coverage/report.rb#258 + # source://spoom//lib/spoom/coverage/report.rb#248 sig { override.returns(::String) } def header_html; end end @@ -1726,33 +1487,22 @@ class Spoom::Coverage::Snapshot < ::T::Struct prop :methods_without_sig_excluding_rbis, ::Integer, default: T.unsafe(nil) prop :sigils_excluding_rbis, T::Hash[::String, ::Integer], default: T.unsafe(nil) - # : (?out: (IO | StringIO), ?colors: bool, ?indent_level: Integer) -> void - # # source://spoom//lib/spoom/coverage/snapshot.rb#31 sig { params(out: T.any(::IO, ::StringIO), colors: T::Boolean, indent_level: ::Integer).void } def print(out: T.unsafe(nil), colors: T.unsafe(nil), indent_level: T.unsafe(nil)); end - # : (*untyped arg) -> String - # # source://spoom//lib/spoom/coverage/snapshot.rb#37 sig { params(arg: T.untyped).returns(::String) } def to_json(*arg); end class << self - # : (String json) -> Snapshot - # # source://spoom//lib/spoom/coverage/snapshot.rb#43 sig { params(json: ::String).returns(::Spoom::Coverage::Snapshot) } def from_json(json); end - # : (Hash[String, untyped] obj) -> Snapshot - # # source://spoom//lib/spoom/coverage/snapshot.rb#48 sig { params(obj: T::Hash[::String, T.untyped]).returns(::Spoom::Coverage::Snapshot) } def from_obj(obj); end - - # source://sorbet-runtime/0.5.12079/lib/types/struct.rb#13 - def inherited(s); end end end @@ -1763,57 +1513,44 @@ Spoom::Coverage::Snapshot::STRICTNESSES = T.let(T.unsafe(nil), Array) # source://spoom//lib/spoom/coverage/snapshot.rb#91 class Spoom::Coverage::SnapshotPrinter < ::Spoom::Printer - # : (Snapshot snapshot) -> void - # # source://spoom//lib/spoom/coverage/snapshot.rb#93 sig { params(snapshot: ::Spoom::Coverage::Snapshot).void } def print_snapshot(snapshot); end private - # : (Integer? value, Integer? total) -> String - # # source://spoom//lib/spoom/coverage/snapshot.rb#152 sig { params(value: T.nilable(::Integer), total: T.nilable(::Integer)).returns(::String) } def percent(value, total); end - # : (Hash[String, Integer] hash, Integer total) -> void - # # source://spoom//lib/spoom/coverage/snapshot.rb#141 sig { params(hash: T::Hash[::String, ::Integer], total: ::Integer).void } def print_map(hash, total); end end -# @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. +# @abstract # -# source://spoom//lib/spoom/coverage/report.rb#10 +# source://spoom//lib/spoom/coverage/report.rb#11 class Spoom::Coverage::Template abstract! # Create a new template from an Erb file path - # : (template: String) -> void # # @return [Template] a new instance of Template # - # source://spoom//lib/spoom/coverage/report.rb#17 + # source://spoom//lib/spoom/coverage/report.rb#14 sig { params(template: ::String).void } def initialize(template:); end - # : -> String - # - # source://spoom//lib/spoom/coverage/report.rb#22 + # source://spoom//lib/spoom/coverage/report.rb#19 sig { returns(::String) } def erb; end - # : -> Binding - # - # source://spoom//lib/spoom/coverage/report.rb#32 + # source://spoom//lib/spoom/coverage/report.rb#29 sig { returns(::Binding) } def get_binding; end - # : -> String - # - # source://spoom//lib/spoom/coverage/report.rb#27 + # source://spoom//lib/spoom/coverage/report.rb#24 sig { returns(::String) } def html; end end @@ -1821,14 +1558,10 @@ end # source://spoom//lib/spoom/deadcode/erb.rb#27 module Spoom::Deadcode class << self - # : (Context context) -> Array[singleton(Plugins::Base)] - # # source://spoom//lib/spoom/deadcode/plugins.rb#67 sig { params(context: ::Spoom::Context).returns(T::Array[T.class_of(Spoom::Deadcode::Plugins::Base)]) } def load_custom_plugins(context); end - # : (Context context) -> Set[singleton(Plugins::Base)] - # # source://spoom//lib/spoom/deadcode/plugins.rb#53 sig { params(context: ::Spoom::Context).returns(T::Set[T.class_of(Spoom::Deadcode::Plugins::Base)]) } def plugins_from_gemfile_lock(context); end @@ -1851,100 +1584,71 @@ class Spoom::Deadcode::Definition < ::T::Struct const :location, ::Spoom::Location const :status, ::Spoom::Deadcode::Definition::Status, default: T.unsafe(nil) - # : -> void - # # source://spoom//lib/spoom/deadcode/definition.rb#76 sig { void } def alive!; end - # : -> bool - # # @return [Boolean] # # source://spoom//lib/spoom/deadcode/definition.rb#71 sig { returns(T::Boolean) } def alive?; end - # : -> bool - # # @return [Boolean] # # source://spoom//lib/spoom/deadcode/definition.rb#39 sig { returns(T::Boolean) } def attr_reader?; end - # : -> bool - # # @return [Boolean] # # source://spoom//lib/spoom/deadcode/definition.rb#44 sig { returns(T::Boolean) } def attr_writer?; end - # : -> bool - # # @return [Boolean] # # source://spoom//lib/spoom/deadcode/definition.rb#49 sig { returns(T::Boolean) } def class?; end - # : -> bool - # # @return [Boolean] # # source://spoom//lib/spoom/deadcode/definition.rb#54 sig { returns(T::Boolean) } def constant?; end - # : -> bool - # # @return [Boolean] # # source://spoom//lib/spoom/deadcode/definition.rb#81 sig { returns(T::Boolean) } def dead?; end - # : -> void - # # source://spoom//lib/spoom/deadcode/definition.rb#91 sig { void } def ignored!; end - # : -> bool - # # @return [Boolean] # # source://spoom//lib/spoom/deadcode/definition.rb#86 sig { returns(T::Boolean) } def ignored?; end - # : -> bool - # # @return [Boolean] # # source://spoom//lib/spoom/deadcode/definition.rb#59 sig { returns(T::Boolean) } def method?; end - # : -> bool - # # @return [Boolean] # # source://spoom//lib/spoom/deadcode/definition.rb#64 sig { returns(T::Boolean) } def module?; end - # : (*untyped args) -> String - # # source://spoom//lib/spoom/deadcode/definition.rb#98 sig { params(args: T.untyped).returns(::String) } def to_json(*args); end - - class << self - # source://sorbet-runtime/0.5.12079/lib/types/struct.rb#13 - def inherited(s); end - end end # source://spoom//lib/spoom/deadcode/definition.rb#8 @@ -1972,8 +1676,6 @@ end # # source://spoom//lib/spoom/deadcode/erb.rb#29 class Spoom::Deadcode::ERB < ::Erubi::Engine - # : (untyped input, ?untyped properties) -> void - # # @return [ERB] a new instance of ERB # # source://spoom//lib/spoom/deadcode/erb.rb#31 @@ -1982,32 +1684,22 @@ class Spoom::Deadcode::ERB < ::Erubi::Engine private - # : (untyped code) -> void - # # source://spoom//lib/spoom/deadcode/erb.rb#84 sig { override.params(code: T.untyped).void } def add_code(code); end - # : (untyped indicator, untyped code) -> void - # # source://spoom//lib/spoom/deadcode/erb.rb#66 sig { override.params(indicator: T.untyped, code: T.untyped).void } def add_expression(indicator, code); end - # : (untyped _) -> void - # # source://spoom//lib/spoom/deadcode/erb.rb#91 sig { override.params(_: T.untyped).void } def add_postamble(_); end - # : (untyped text) -> void - # # source://spoom//lib/spoom/deadcode/erb.rb#47 sig { override.params(text: T.untyped).void } def add_text(text); end - # : (untyped src) -> void - # # source://spoom//lib/spoom/deadcode/erb.rb#97 sig { params(src: T.untyped).void } def flush_newline_if_pending(src); end @@ -2018,46 +1710,32 @@ Spoom::Deadcode::ERB::BLOCK_EXPR = T.let(T.unsafe(nil), Regexp) # source://spoom//lib/spoom/deadcode/index.rb#6 class Spoom::Deadcode::Index - # : (Model model) -> void - # # @return [Index] a new instance of Index # # source://spoom//lib/spoom/deadcode/index.rb#25 sig { params(model: ::Spoom::Model).void } def initialize(model); end - # : -> Array[Definition] - # # source://spoom//lib/spoom/deadcode/index.rb#215 sig { returns(T::Array[::Spoom::Deadcode::Definition]) } def all_definitions; end - # : -> Array[Model::Reference] - # # source://spoom//lib/spoom/deadcode/index.rb#220 sig { returns(T::Array[::Spoom::Model::Reference]) } def all_references; end - # : (Array[Plugins::Base] plugins) -> void - # # source://spoom//lib/spoom/deadcode/index.rb#95 sig { params(plugins: T::Array[::Spoom::Deadcode::Plugins::Base]).void } def apply_plugins!(plugins); end - # : (Definition definition) -> void - # # source://spoom//lib/spoom/deadcode/index.rb#75 sig { params(definition: ::Spoom::Deadcode::Definition).void } def define(definition); end - # : Hash[String, Array[Definition]] - # # source://spoom//lib/spoom/deadcode/index.rb#19 sig { returns(T::Hash[::String, T::Array[::Spoom::Deadcode::Definition]]) } def definitions; end - # : (String name) -> Array[Definition] - # # source://spoom//lib/spoom/deadcode/index.rb#210 sig { params(name: ::String).returns(T::Array[::Spoom::Deadcode::Definition]) } def definitions_for_name(name); end @@ -2065,56 +1743,39 @@ class Spoom::Deadcode::Index # Mark all definitions having a reference of the same name as `alive` # # To be called once all the files have been indexed and all the definitions and references discovered. - # : -> void # # source://spoom//lib/spoom/deadcode/index.rb#118 sig { void } def finalize!; end - # : (Model::SymbolDef symbol_def) -> void - # # source://spoom//lib/spoom/deadcode/index.rb#90 sig { params(symbol_def: ::Spoom::Model::SymbolDef).void } def ignore(symbol_def); end - # : (String erb, file: String, ?plugins: Array[Plugins::Base]) -> void - # # source://spoom//lib/spoom/deadcode/index.rb#46 sig { params(erb: ::String, file: ::String, plugins: T::Array[::Spoom::Deadcode::Plugins::Base]).void } def index_erb(erb, file:, plugins: T.unsafe(nil)); end - # : (String file, ?plugins: Array[Plugins::Base]) -> void - # # source://spoom//lib/spoom/deadcode/index.rb#35 sig { params(file: ::String, plugins: T::Array[::Spoom::Deadcode::Plugins::Base]).void } def index_file(file, plugins: T.unsafe(nil)); end - # : (String rb, file: String, ?plugins: Array[Plugins::Base]) -> void - # # source://spoom//lib/spoom/deadcode/index.rb#51 sig { params(rb: ::String, file: ::String, plugins: T::Array[::Spoom::Deadcode::Plugins::Base]).void } def index_ruby(rb, file:, plugins: T.unsafe(nil)); end - # : Model - # # source://spoom//lib/spoom/deadcode/index.rb#16 sig { returns(::Spoom::Model) } def model; end - # : (String name, Location location) -> void - # # source://spoom//lib/spoom/deadcode/index.rb#80 sig { params(name: ::String, location: ::Spoom::Location).void } def reference_constant(name, location); end - # : (String name, Location location) -> void - # # source://spoom//lib/spoom/deadcode/index.rb#85 sig { params(name: ::String, location: ::Spoom::Location).void } def reference_method(name, location); end - # : Hash[String, Array[Model::Reference]] - # # source://spoom//lib/spoom/deadcode/index.rb#22 sig { returns(T::Hash[::String, T::Array[::Spoom::Model::Reference]]) } def references; end @@ -2122,8 +1783,6 @@ end # source://spoom//lib/spoom/deadcode/index.rb#7 class Spoom::Deadcode::Index::Error < ::Spoom::Error - # : (String message, parent: Exception) -> void - # # @return [Error] a new instance of Error # # source://spoom//lib/spoom/deadcode/index.rb#9 @@ -2133,8 +1792,6 @@ end # source://spoom//lib/spoom/deadcode/indexer.rb#6 class Spoom::Deadcode::Indexer < ::Spoom::Visitor - # : (String path, Index index, ?plugins: Array[Plugins::Base]) -> void - # # @return [Indexer] a new instance of Indexer # # source://spoom//lib/spoom/deadcode/indexer.rb#14 @@ -2147,27 +1804,19 @@ class Spoom::Deadcode::Indexer < ::Spoom::Visitor end def initialize(path, index, plugins: T.unsafe(nil)); end - # : Index - # # source://spoom//lib/spoom/deadcode/indexer.rb#11 sig { returns(::Spoom::Deadcode::Index) } def index; end - # : String - # # source://spoom//lib/spoom/deadcode/indexer.rb#8 sig { returns(::String) } def path; end - # : (Prism::CallNode node) -> void - # # source://spoom//lib/spoom/deadcode/indexer.rb#26 sig { override.params(node: ::Prism::CallNode).void } def visit_call_node(node); end end -# : Set[singleton(Plugins::Base)] -# # source://spoom//lib/spoom/deadcode/plugins.rb#33 Spoom::Deadcode::PLUGINS_FOR_GEM = T.let(T.unsafe(nil), Hash) @@ -2176,8 +1825,6 @@ module Spoom::Deadcode::Plugins; end # source://spoom//lib/spoom/deadcode/plugins/action_mailer.rb#7 class Spoom::Deadcode::Plugins::ActionMailer < ::Spoom::Deadcode::Plugins::Base - # : (Send send) -> void - # # source://spoom//lib/spoom/deadcode/plugins/action_mailer.rb#10 sig { override.params(send: ::Spoom::Deadcode::Send).void } def on_send(send); end @@ -2185,8 +1832,6 @@ end # source://spoom//lib/spoom/deadcode/plugins/action_mailer_preview.rb#7 class Spoom::Deadcode::Plugins::ActionMailerPreview < ::Spoom::Deadcode::Plugins::Base - # : (Model::Method definition) -> void - # # source://spoom//lib/spoom/deadcode/plugins/action_mailer_preview.rb#12 sig { override.params(definition: ::Spoom::Model::Method).void } def on_define_method(definition); end @@ -2194,14 +1839,10 @@ end # source://spoom//lib/spoom/deadcode/plugins/actionpack.rb#7 class Spoom::Deadcode::Plugins::ActionPack < ::Spoom::Deadcode::Plugins::Base - # : (Model::Method definition) -> void - # # source://spoom//lib/spoom/deadcode/plugins/actionpack.rb#27 sig { override.params(definition: ::Spoom::Model::Method).void } def on_define_method(definition); end - # : (Send send) -> void - # # source://spoom//lib/spoom/deadcode/plugins/actionpack.rb#36 sig { override.params(send: ::Spoom::Deadcode::Send).void } def on_send(send); end @@ -2211,12 +1852,17 @@ end Spoom::Deadcode::Plugins::ActionPack::CALLBACKS = T.let(T.unsafe(nil), Array) # source://spoom//lib/spoom/deadcode/plugins/active_job.rb#7 -class Spoom::Deadcode::Plugins::ActiveJob < ::Spoom::Deadcode::Plugins::Base; end +class Spoom::Deadcode::Plugins::ActiveJob < ::Spoom::Deadcode::Plugins::Base + # source://spoom//lib/spoom/deadcode/plugins/active_job.rb#22 + sig { override.params(send: ::Spoom::Deadcode::Send).void } + def on_send(send); end +end + +# source://spoom//lib/spoom/deadcode/plugins/active_job.rb#11 +Spoom::Deadcode::Plugins::ActiveJob::CALLBACKS = T.let(T.unsafe(nil), Array) # source://spoom//lib/spoom/deadcode/plugins/active_model.rb#7 class Spoom::Deadcode::Plugins::ActiveModel < ::Spoom::Deadcode::Plugins::Base - # : (Send send) -> void - # # source://spoom//lib/spoom/deadcode/plugins/active_model.rb#13 sig { override.params(send: ::Spoom::Deadcode::Send).void } def on_send(send); end @@ -2224,92 +1870,76 @@ end # source://spoom//lib/spoom/deadcode/plugins/active_record.rb#7 class Spoom::Deadcode::Plugins::ActiveRecord < ::Spoom::Deadcode::Plugins::Base - # : (Send send) -> void - # - # source://spoom//lib/spoom/deadcode/plugins/active_record.rb#64 + # source://spoom//lib/spoom/deadcode/plugins/active_record.rb#69 sig { override.params(send: ::Spoom::Deadcode::Send).void } def on_send(send); end end -# : Array[String] -# -# source://spoom//lib/spoom/deadcode/plugins/active_record.rb#56 +# source://spoom//lib/spoom/deadcode/plugins/active_record.rb#61 Spoom::Deadcode::Plugins::ActiveRecord::ARRAY_METHODS = T.let(T.unsafe(nil), Array) # source://spoom//lib/spoom/deadcode/plugins/active_record.rb#18 Spoom::Deadcode::Plugins::ActiveRecord::CALLBACKS = T.let(T.unsafe(nil), Array) -# : Array[String] -# # source://spoom//lib/spoom/deadcode/plugins/active_record.rb#44 +Spoom::Deadcode::Plugins::ActiveRecord::CALLBACK_CONDITIONS = T.let(T.unsafe(nil), Array) + +# source://spoom//lib/spoom/deadcode/plugins/active_record.rb#49 Spoom::Deadcode::Plugins::ActiveRecord::CRUD_METHODS = T.let(T.unsafe(nil), Array) # source://spoom//lib/spoom/deadcode/plugins/active_support.rb#7 class Spoom::Deadcode::Plugins::ActiveSupport < ::Spoom::Deadcode::Plugins::Base - # : (Send send) -> void - # # source://spoom//lib/spoom/deadcode/plugins/active_support.rb#23 sig { override.params(send: ::Spoom::Deadcode::Send).void } def on_send(send); end end -# : Array[String] -# # source://spoom//lib/spoom/deadcode/plugins/active_support.rb#19 Spoom::Deadcode::Plugins::ActiveSupport::SETUP_AND_TEARDOWN_METHODS = T.let(T.unsafe(nil), Array) -# @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. +# @abstract # -# source://spoom//lib/spoom/deadcode/plugins/base.rb#9 +# source://spoom//lib/spoom/deadcode/plugins/base.rb#10 class Spoom::Deadcode::Plugins::Base abstract! - # : (Index index) -> void - # # @return [Base] a new instance of Base # - # source://spoom//lib/spoom/deadcode/plugins/base.rb#129 + # source://spoom//lib/spoom/deadcode/plugins/base.rb#126 sig { params(index: ::Spoom::Deadcode::Index).void } def initialize(index); end - # : Index - # - # source://spoom//lib/spoom/deadcode/plugins/base.rb#126 + # source://spoom//lib/spoom/deadcode/plugins/base.rb#123 sig { returns(::Spoom::Deadcode::Index) } def index; end # Do not override this method, use `on_define_accessor` instead. - # : (Model::Attr definition) -> void # - # source://spoom//lib/spoom/deadcode/plugins/base.rb#155 + # source://spoom//lib/spoom/deadcode/plugins/base.rb#152 sig { params(definition: ::Spoom::Model::Attr).void } def internal_on_define_accessor(definition); end # Do not override this method, use `on_define_class` instead. - # : (Model::Class definition) -> void # - # source://spoom//lib/spoom/deadcode/plugins/base.rb#179 + # source://spoom//lib/spoom/deadcode/plugins/base.rb#176 sig { params(definition: ::Spoom::Model::Class).void } def internal_on_define_class(definition); end # Do not override this method, use `on_define_constant` instead. - # : (Model::Constant definition) -> void # - # source://spoom//lib/spoom/deadcode/plugins/base.rb#209 + # source://spoom//lib/spoom/deadcode/plugins/base.rb#206 sig { params(definition: ::Spoom::Model::Constant).void } def internal_on_define_constant(definition); end # Do not override this method, use `on_define_method` instead. - # : (Model::Method definition) -> void # - # source://spoom//lib/spoom/deadcode/plugins/base.rb#235 + # source://spoom//lib/spoom/deadcode/plugins/base.rb#232 sig { params(definition: ::Spoom::Model::Method).void } def internal_on_define_method(definition); end # Do not override this method, use `on_define_module` instead. - # : (Model::Module definition) -> void # - # source://spoom//lib/spoom/deadcode/plugins/base.rb#261 + # source://spoom//lib/spoom/deadcode/plugins/base.rb#258 sig { params(definition: ::Spoom::Model::Module).void } def internal_on_define_module(definition); end @@ -2326,9 +1956,8 @@ class Spoom::Deadcode::Plugins::Base # end # end # ~~~ - # : (Model::Attr definition) -> void # - # source://spoom//lib/spoom/deadcode/plugins/base.rb#149 + # source://spoom//lib/spoom/deadcode/plugins/base.rb#146 sig { params(definition: ::Spoom::Model::Attr).void } def on_define_accessor(definition); end @@ -2345,9 +1974,8 @@ class Spoom::Deadcode::Plugins::Base # end # end # ~~~ - # : (Model::Class definition) -> void # - # source://spoom//lib/spoom/deadcode/plugins/base.rb#173 + # source://spoom//lib/spoom/deadcode/plugins/base.rb#170 sig { params(definition: ::Spoom::Model::Class).void } def on_define_class(definition); end @@ -2364,9 +1992,8 @@ class Spoom::Deadcode::Plugins::Base # end # end # ~~~ - # : (Model::Constant definition) -> void # - # source://spoom//lib/spoom/deadcode/plugins/base.rb#203 + # source://spoom//lib/spoom/deadcode/plugins/base.rb#200 sig { params(definition: ::Spoom::Model::Constant).void } def on_define_constant(definition); end @@ -2383,9 +2010,8 @@ class Spoom::Deadcode::Plugins::Base # end # end # ~~~ - # : (Model::Method definition) -> void # - # source://spoom//lib/spoom/deadcode/plugins/base.rb#229 + # source://spoom//lib/spoom/deadcode/plugins/base.rb#226 sig { params(definition: ::Spoom::Model::Method).void } def on_define_method(definition); end @@ -2402,9 +2028,8 @@ class Spoom::Deadcode::Plugins::Base # end # end # ~~~ - # : (Model::Module definition) -> void # - # source://spoom//lib/spoom/deadcode/plugins/base.rb#255 + # source://spoom//lib/spoom/deadcode/plugins/base.rb#252 sig { params(definition: ::Spoom::Model::Module).void } def on_define_module(definition); end @@ -2421,85 +2046,64 @@ class Spoom::Deadcode::Plugins::Base # end # end # ~~~ - # : (Send send) -> void # - # source://spoom//lib/spoom/deadcode/plugins/base.rb#281 + # source://spoom//lib/spoom/deadcode/plugins/base.rb#278 sig { params(send: ::Spoom::Deadcode::Send).void } def on_send(send); end private - # : (String name) -> String - # - # source://spoom//lib/spoom/deadcode/plugins/base.rb#349 + # source://spoom//lib/spoom/deadcode/plugins/base.rb#346 sig { params(name: ::String).returns(::String) } def camelize(name); end - # : (String? name) -> bool - # # @return [Boolean] # - # source://spoom//lib/spoom/deadcode/plugins/base.rb#298 + # source://spoom//lib/spoom/deadcode/plugins/base.rb#295 sig { params(name: T.nilable(::String)).returns(T::Boolean) } def ignored_class_name?(name); end - # : (String name) -> bool - # # @return [Boolean] # - # source://spoom//lib/spoom/deadcode/plugins/base.rb#317 + # source://spoom//lib/spoom/deadcode/plugins/base.rb#314 sig { params(name: ::String).returns(T::Boolean) } def ignored_constant_name?(name); end - # : (String name) -> bool - # # @return [Boolean] # - # source://spoom//lib/spoom/deadcode/plugins/base.rb#322 + # source://spoom//lib/spoom/deadcode/plugins/base.rb#319 sig { params(name: ::String).returns(T::Boolean) } def ignored_method_name?(name); end - # : (String name) -> bool - # # @return [Boolean] # - # source://spoom//lib/spoom/deadcode/plugins/base.rb#327 + # source://spoom//lib/spoom/deadcode/plugins/base.rb#324 sig { params(name: ::String).returns(T::Boolean) } def ignored_module_name?(name); end - # : (String name, Symbol names_variable, Symbol patterns_variable) -> bool - # # @return [Boolean] # - # source://spoom//lib/spoom/deadcode/plugins/base.rb#332 + # source://spoom//lib/spoom/deadcode/plugins/base.rb#329 sig { params(name: ::String, names_variable: ::Symbol, patterns_variable: ::Symbol).returns(T::Boolean) } def ignored_name?(name, names_variable, patterns_variable); end - # : (Model::Class definition) -> bool - # # @return [Boolean] # - # source://spoom//lib/spoom/deadcode/plugins/base.rb#305 + # source://spoom//lib/spoom/deadcode/plugins/base.rb#302 sig { params(definition: ::Spoom::Model::Class).returns(T::Boolean) } def ignored_subclass?(definition); end - # : (Symbol const) -> Set[String] - # - # source://spoom//lib/spoom/deadcode/plugins/base.rb#337 + # source://spoom//lib/spoom/deadcode/plugins/base.rb#334 sig { params(const: ::Symbol).returns(T::Set[::String]) } def names(const); end - # : (Symbol const) -> Array[Regexp] - # - # source://spoom//lib/spoom/deadcode/plugins/base.rb#342 + # source://spoom//lib/spoom/deadcode/plugins/base.rb#339 sig { params(const: ::Symbol).returns(T::Array[::Regexp]) } def patterns(const); end - # : (Model::Namespace definition, String superclass_name) -> bool - # # @return [Boolean] # - # source://spoom//lib/spoom/deadcode/plugins/base.rb#290 + # source://spoom//lib/spoom/deadcode/plugins/base.rb#287 sig { params(definition: ::Spoom::Model::Namespace, superclass_name: ::String).returns(T::Boolean) } def subclass_of?(definition, superclass_name); end @@ -2517,9 +2121,8 @@ class Spoom::Deadcode::Plugins::Base # ) # end # ~~~ - # : (*(String | Regexp) names) -> void # - # source://spoom//lib/spoom/deadcode/plugins/base.rb#49 + # source://spoom//lib/spoom/deadcode/plugins/base.rb#46 sig { params(names: T.any(::Regexp, ::String)).void } def ignore_classes_inheriting_from(*names); end @@ -2536,9 +2139,8 @@ class Spoom::Deadcode::Plugins::Base # ) # end # ~~~ - # : (*(String | Regexp) names) -> void # - # source://spoom//lib/spoom/deadcode/plugins/base.rb#31 + # source://spoom//lib/spoom/deadcode/plugins/base.rb#28 sig { params(names: T.any(::Regexp, ::String)).void } def ignore_classes_named(*names); end @@ -2555,9 +2157,8 @@ class Spoom::Deadcode::Plugins::Base # ) # end # ~~~ - # : (*(String | Regexp) names) -> void # - # source://spoom//lib/spoom/deadcode/plugins/base.rb#67 + # source://spoom//lib/spoom/deadcode/plugins/base.rb#64 sig { params(names: T.any(::Regexp, ::String)).void } def ignore_constants_named(*names); end @@ -2574,9 +2175,8 @@ class Spoom::Deadcode::Plugins::Base # ) # end # ~~~ - # : (*(String | Regexp) names) -> void # - # source://spoom//lib/spoom/deadcode/plugins/base.rb#85 + # source://spoom//lib/spoom/deadcode/plugins/base.rb#82 sig { params(names: T.any(::Regexp, ::String)).void } def ignore_methods_named(*names); end @@ -2593,17 +2193,14 @@ class Spoom::Deadcode::Plugins::Base # ) # end # ~~~ - # : (*(String | Regexp) names) -> void # - # source://spoom//lib/spoom/deadcode/plugins/base.rb#103 + # source://spoom//lib/spoom/deadcode/plugins/base.rb#100 sig { params(names: T.any(::Regexp, ::String)).void } def ignore_modules_named(*names); end private - # : (Array[(String | Regexp)] names, Symbol names_variable, Symbol patterns_variable) -> void - # - # source://spoom//lib/spoom/deadcode/plugins/base.rb#110 + # source://spoom//lib/spoom/deadcode/plugins/base.rb#107 sig do params( names: T::Array[T.any(::Regexp, ::String)], @@ -2617,8 +2214,6 @@ end # source://spoom//lib/spoom/deadcode/plugins/graphql.rb#7 class Spoom::Deadcode::Plugins::GraphQL < ::Spoom::Deadcode::Plugins::Base - # : (Send send) -> void - # # source://spoom//lib/spoom/deadcode/plugins/graphql.rb#27 sig { override.params(send: ::Spoom::Deadcode::Send).void } def on_send(send); end @@ -2626,14 +2221,10 @@ end # source://spoom//lib/spoom/deadcode/plugins/minitest.rb#7 class Spoom::Deadcode::Plugins::Minitest < ::Spoom::Deadcode::Plugins::Base - # : (Model::Method definition) -> void - # # source://spoom//lib/spoom/deadcode/plugins/minitest.rb#21 sig { override.params(definition: ::Spoom::Model::Method).void } def on_define_method(definition); end - # : (Send send) -> void - # # source://spoom//lib/spoom/deadcode/plugins/minitest.rb#28 sig { override.params(send: ::Spoom::Deadcode::Send).void } def on_send(send); end @@ -2641,22 +2232,16 @@ end # source://spoom//lib/spoom/deadcode/plugins/namespaces.rb#7 class Spoom::Deadcode::Plugins::Namespaces < ::Spoom::Deadcode::Plugins::Base - # : (Model::Class definition) -> void - # # source://spoom//lib/spoom/deadcode/plugins/namespaces.rb#10 sig { override.params(definition: ::Spoom::Model::Class).void } def on_define_class(definition); end - # : (Model::Module definition) -> void - # # source://spoom//lib/spoom/deadcode/plugins/namespaces.rb#16 sig { override.params(definition: ::Spoom::Model::Module).void } def on_define_module(definition); end private - # : (Model::Namespace symbol_def) -> bool - # # @return [Boolean] # # source://spoom//lib/spoom/deadcode/plugins/namespaces.rb#23 @@ -2669,22 +2254,16 @@ class Spoom::Deadcode::Plugins::RSpec < ::Spoom::Deadcode::Plugins::Base; end # source://spoom//lib/spoom/deadcode/plugins/rails.rb#7 class Spoom::Deadcode::Plugins::Rails < ::Spoom::Deadcode::Plugins::Base - # : (Model::Class definition) -> void - # # source://spoom//lib/spoom/deadcode/plugins/rails.rb#12 sig { override.params(definition: ::Spoom::Model::Class).void } def on_define_class(definition); end - # : (Model::Module definition) -> void - # # source://spoom//lib/spoom/deadcode/plugins/rails.rb#18 sig { override.params(definition: ::Spoom::Model::Module).void } def on_define_module(definition); end private - # : (Model::Namespace symbol_def) -> bool - # # @return [Boolean] # # source://spoom//lib/spoom/deadcode/plugins/rails.rb#25 @@ -2697,36 +2276,26 @@ class Spoom::Deadcode::Plugins::Rake < ::Spoom::Deadcode::Plugins::Base; end # source://spoom//lib/spoom/deadcode/plugins/rubocop.rb#7 class Spoom::Deadcode::Plugins::Rubocop < ::Spoom::Deadcode::Plugins::Base - # : (Model::Constant definition) -> void - # # source://spoom//lib/spoom/deadcode/plugins/rubocop.rb#17 sig { override.params(definition: ::Spoom::Model::Constant).void } def on_define_constant(definition); end - # : (Model::Method definition) -> void - # # source://spoom//lib/spoom/deadcode/plugins/rubocop.rb#26 sig { override.params(definition: ::Spoom::Model::Method).void } def on_define_method(definition); end end -# : Set[String] -# # source://spoom//lib/spoom/deadcode/plugins/rubocop.rb#8 Spoom::Deadcode::Plugins::Rubocop::RUBOCOP_CONSTANTS = T.let(T.unsafe(nil), Set) # source://spoom//lib/spoom/deadcode/plugins/ruby.rb#7 class Spoom::Deadcode::Plugins::Ruby < ::Spoom::Deadcode::Plugins::Base - # : (Send send) -> void - # # source://spoom//lib/spoom/deadcode/plugins/ruby.rb#23 sig { override.params(send: ::Spoom::Deadcode::Send).void } def on_send(send); end private - # : (Send send, Prism::Node node) -> void - # # source://spoom//lib/spoom/deadcode/plugins/ruby.rb#45 sig { params(send: ::Spoom::Deadcode::Send, node: ::Prism::Node).void } def reference_symbol_as_constant(send, node); end @@ -2734,30 +2303,22 @@ end # source://spoom//lib/spoom/deadcode/plugins/sorbet.rb#7 class Spoom::Deadcode::Plugins::Sorbet < ::Spoom::Deadcode::Plugins::Base - # : (Model::Constant definition) -> void - # # source://spoom//lib/spoom/deadcode/plugins/sorbet.rb#10 sig { override.params(definition: ::Spoom::Model::Constant).void } def on_define_constant(definition); end - # : (Model::Method definition) -> void - # # source://spoom//lib/spoom/deadcode/plugins/sorbet.rb#16 sig { override.params(definition: ::Spoom::Model::Method).void } def on_define_method(definition); end private - # : (Model::Constant definition) -> bool - # # @return [Boolean] # # source://spoom//lib/spoom/deadcode/plugins/sorbet.rb#34 sig { params(definition: ::Spoom::Model::Constant).returns(T::Boolean) } def sorbet_enum_constant?(definition); end - # : (Model::Constant definition) -> bool - # # @return [Boolean] # # source://spoom//lib/spoom/deadcode/plugins/sorbet.rb#29 @@ -2767,8 +2328,6 @@ end # source://spoom//lib/spoom/deadcode/plugins/thor.rb#7 class Spoom::Deadcode::Plugins::Thor < ::Spoom::Deadcode::Plugins::Base - # : (Model::Method definition) -> void - # # source://spoom//lib/spoom/deadcode/plugins/thor.rb#12 sig { override.params(definition: ::Spoom::Model::Method).void } def on_define_method(definition); end @@ -2776,16 +2335,12 @@ end # source://spoom//lib/spoom/deadcode/remover.rb#6 class Spoom::Deadcode::Remover - # : (Context context) -> void - # # @return [Remover] a new instance of Remover # # source://spoom//lib/spoom/deadcode/remover.rb#10 sig { params(context: ::Spoom::Context).void } def initialize(context); end - # : (Definition::Kind? kind, Location location) -> String - # # source://spoom//lib/spoom/deadcode/remover.rb#15 sig { params(kind: T.nilable(::Spoom::Deadcode::Definition::Kind), location: ::Spoom::Location).returns(::String) } def remove_location(kind, location); end @@ -2796,8 +2351,6 @@ class Spoom::Deadcode::Remover::Error < ::Spoom::Error; end # source://spoom//lib/spoom/deadcode/remover.rb#366 class Spoom::Deadcode::Remover::NodeContext - # : (String source, Hash[Integer, Prism::Comment] comments, Prism::Node node, Array[Prism::Node] nesting) -> void - # # @return [NodeContext] a new instance of NodeContext # # source://spoom//lib/spoom/deadcode/remover.rb#377 @@ -2811,113 +2364,79 @@ class Spoom::Deadcode::Remover::NodeContext end def initialize(source, comments, node, nesting); end - # : (Prism::Node node) -> Array[Prism::Comment] - # # source://spoom//lib/spoom/deadcode/remover.rb#491 sig { params(node: ::Prism::Node).returns(T::Array[::Prism::Comment]) } def attached_comments(node); end - # : -> Prism::CallNode? - # # source://spoom//lib/spoom/deadcode/remover.rb#519 sig { returns(T.nilable(::Prism::CallNode)) } def attached_sig; end - # : -> Array[Prism::Node] - # # source://spoom//lib/spoom/deadcode/remover.rb#506 sig { returns(T::Array[::Prism::Node]) } def attached_sigs; end - # : Hash[Integer, Prism::Comment] - # # source://spoom//lib/spoom/deadcode/remover.rb#368 sig { returns(T::Hash[::Integer, ::Prism::Comment]) } def comments; end - # : (Integer start_line, Integer end_line) -> Array[Prism::Comment] - # # source://spoom//lib/spoom/deadcode/remover.rb#479 sig { params(start_line: ::Integer, end_line: ::Integer).returns(T::Array[::Prism::Comment]) } def comments_between_lines(start_line, end_line); end - # : Array[Prism::Node] - # # source://spoom//lib/spoom/deadcode/remover.rb#374 sig { returns(T::Array[::Prism::Node]) } def nesting; end - # : Array[Prism::Node] - # # source://spoom//lib/spoom/deadcode/remover.rb#374 def nesting=(_arg0); end - # : -> Prism::Node? - # # source://spoom//lib/spoom/deadcode/remover.rb#429 sig { returns(T.nilable(::Prism::Node)) } def next_node; end - # : -> Array[Prism::Node] - # # @raise [Error] # # source://spoom//lib/spoom/deadcode/remover.rb#418 sig { returns(T::Array[::Prism::Node]) } def next_nodes; end - # : Prism::Node - # # source://spoom//lib/spoom/deadcode/remover.rb#371 sig { returns(::Prism::Node) } def node; end - # : -> NodeContext - # # @raise [Error] # # source://spoom//lib/spoom/deadcode/remover.rb#393 sig { returns(::Spoom::Deadcode::Remover::NodeContext) } def parent_context; end - # : -> Prism::Node - # # @raise [Error] # # source://spoom//lib/spoom/deadcode/remover.rb#385 sig { returns(::Prism::Node) } def parent_node; end - # : -> Prism::Node? - # # source://spoom//lib/spoom/deadcode/remover.rb#413 sig { returns(T.nilable(::Prism::Node)) } def previous_node; end - # : -> Array[Prism::Node] - # # @raise [Error] # # source://spoom//lib/spoom/deadcode/remover.rb#402 sig { returns(T::Array[::Prism::Node]) } def previous_nodes; end - # : -> NodeContext? - # # source://spoom//lib/spoom/deadcode/remover.rb#434 sig { returns(T.nilable(::Spoom::Deadcode::Remover::NodeContext)) } def sclass_context; end - # : (Prism::Node? node) -> bool - # # @return [Boolean] # # source://spoom//lib/spoom/deadcode/remover.rb#467 sig { params(node: T.nilable(::Prism::Node)).returns(T::Boolean) } def sorbet_extend_sig?(node); end - # : (Prism::Node? node) -> bool - # # @return [Boolean] # # source://spoom//lib/spoom/deadcode/remover.rb#462 @@ -2927,35 +2446,25 @@ end # source://spoom//lib/spoom/deadcode/remover.rb#534 class Spoom::Deadcode::Remover::NodeFinder < ::Spoom::Visitor - # : (Location location, Definition::Kind? kind) -> void - # # @return [NodeFinder] a new instance of NodeFinder # # source://spoom//lib/spoom/deadcode/remover.rb#599 sig { params(location: ::Spoom::Location, kind: T.nilable(::Spoom::Deadcode::Definition::Kind)).void } def initialize(location, kind); end - # : Prism::Node? - # # source://spoom//lib/spoom/deadcode/remover.rb#593 sig { returns(T.nilable(::Prism::Node)) } def node; end - # : Array[Prism::Node] - # # source://spoom//lib/spoom/deadcode/remover.rb#596 sig { returns(T::Array[::Prism::Node]) } def nodes_nesting; end - # : (Prism::Node? node) -> void - # # source://spoom//lib/spoom/deadcode/remover.rb#609 sig { override.params(node: T.nilable(::Prism::Node)).void } def visit(node); end class << self - # : (String source, Location location, Definition::Kind? kind) -> NodeContext - # # source://spoom//lib/spoom/deadcode/remover.rb#537 sig do params( @@ -2966,8 +2475,6 @@ class Spoom::Deadcode::Remover::NodeFinder < ::Spoom::Visitor end def find(source, location, kind); end - # : (Prism::Node node, Definition::Kind kind) -> bool - # # @return [Boolean] # # source://spoom//lib/spoom/deadcode/remover.rb#568 @@ -2978,8 +2485,6 @@ end # source://spoom//lib/spoom/deadcode/remover.rb#27 class Spoom::Deadcode::Remover::NodeRemover - # : (String source, Definition::Kind? kind, Location location) -> void - # # @return [NodeRemover] a new instance of NodeRemover # # source://spoom//lib/spoom/deadcode/remover.rb#32 @@ -2992,52 +2497,36 @@ class Spoom::Deadcode::Remover::NodeRemover end def initialize(source, kind, location); end - # : -> void - # # source://spoom//lib/spoom/deadcode/remover.rb#42 sig { void } def apply_edit; end - # : String - # # source://spoom//lib/spoom/deadcode/remover.rb#29 sig { returns(::String) } def new_source; end private - # : (NodeContext context) -> void - # # source://spoom//lib/spoom/deadcode/remover.rb#151 sig { params(context: ::Spoom::Deadcode::Remover::NodeContext).void } def delete_attr_accessor(context); end - # : (Integer start_char, Integer end_char) -> void - # # source://spoom//lib/spoom/deadcode/remover.rb#325 sig { params(start_char: ::Integer, end_char: ::Integer).void } def delete_chars(start_char, end_char); end - # : (NodeContext context) -> void - # # source://spoom//lib/spoom/deadcode/remover.rb#69 sig { params(context: ::Spoom::Deadcode::Remover::NodeContext).void } def delete_constant_assignment(context); end - # : (Integer start_line, Integer end_line) -> void - # # source://spoom//lib/spoom/deadcode/remover.rb#318 sig { params(start_line: ::Integer, end_line: ::Integer).void } def delete_lines(start_line, end_line); end - # : (NodeContext context) -> void - # # source://spoom//lib/spoom/deadcode/remover.rb#255 sig { params(context: ::Spoom::Deadcode::Remover::NodeContext).void } def delete_node_and_comments_and_sigs(context); end - # : (Prism::Node node, NodeContext send_context, was_removed: bool) -> void - # # source://spoom//lib/spoom/deadcode/remover.rb#212 sig do params( @@ -3048,14 +2537,10 @@ class Spoom::Deadcode::Remover::NodeRemover end def insert_accessor(node, send_context, was_removed:); end - # : (Integer start_char, Integer end_char, String replacement) -> void - # # source://spoom//lib/spoom/deadcode/remover.rb#330 sig { params(start_char: ::Integer, end_char: ::Integer, replacement: ::String).void } def replace_chars(start_char, end_char, replacement); end - # : (Prism::CallNode node, name: String, kind: Definition::Kind?) -> String - # # source://spoom//lib/spoom/deadcode/remover.rb#335 sig do params( @@ -3078,8 +2563,6 @@ class Spoom::Deadcode::Send < ::T::Struct const :block, T.nilable(::Prism::Node), default: T.unsafe(nil) const :location, ::Spoom::Location - # : [T] (Class[T] arg_type) { (T arg) -> void } -> void - # # source://spoom//lib/spoom/deadcode/send.rb#16 sig do type_parameters(:T) @@ -3090,16 +2573,9 @@ class Spoom::Deadcode::Send < ::T::Struct end def each_arg(arg_type, &block); end - # : { (Prism::Node key, Prism::Node? value) -> void } -> void - # # source://spoom//lib/spoom/deadcode/send.rb#23 sig { params(block: T.proc.params(key: ::Prism::Node, value: T.nilable(::Prism::Node)).void).void } def each_arg_assoc(&block); end - - class << self - # source://sorbet-runtime/0.5.12079/lib/types/struct.rb#13 - def inherited(s); end - end end # source://spoom//lib/spoom.rb#10 @@ -3112,16 +2588,9 @@ class Spoom::ExecResult < ::T::Struct const :status, T::Boolean const :exit_code, ::Integer - # : -> String - # # source://spoom//lib/spoom/context/exec.rb#12 sig { returns(::String) } def to_s; end - - class << self - # source://sorbet-runtime/0.5.12079/lib/types/struct.rb#13 - def inherited(s); end - end end # source://spoom//lib/spoom/file_collector.rb#5 @@ -3134,7 +2603,6 @@ class Spoom::FileCollector # If `allow_mime_types` is empty, all files are collected. # If `allow_mime_types` is an array of mimetypes, files without an extension are collected if their mimetype is in # the list. - # : (?allow_extensions: Array[String], ?allow_mime_types: Array[String], ?exclude_patterns: Array[String]) -> void # # @return [FileCollector] a new instance of FileCollector # @@ -3148,62 +2616,44 @@ class Spoom::FileCollector end def initialize(allow_extensions: T.unsafe(nil), allow_mime_types: T.unsafe(nil), exclude_patterns: T.unsafe(nil)); end - # : Array[String] - # # source://spoom//lib/spoom/file_collector.rb#7 sig { returns(T::Array[::String]) } def files; end - # : (String path) -> void - # # source://spoom//lib/spoom/file_collector.rb#31 sig { params(path: ::String).void } def visit_path(path); end - # : (Array[String] paths) -> void - # # source://spoom//lib/spoom/file_collector.rb#26 sig { params(paths: T::Array[::String]).void } def visit_paths(paths); end private - # : (String path) -> String - # # source://spoom//lib/spoom/file_collector.rb#48 sig { params(path: ::String).returns(::String) } def clean_path(path); end - # : (String path) -> bool - # # @return [Boolean] # # source://spoom//lib/spoom/file_collector.rb#65 sig { params(path: ::String).returns(T::Boolean) } def excluded_file?(path); end - # : (String path) -> bool - # # @return [Boolean] # # source://spoom//lib/spoom/file_collector.rb#80 sig { params(path: ::String).returns(T::Boolean) } def excluded_path?(path); end - # : (String path) -> String? - # # source://spoom//lib/spoom/file_collector.rb#89 sig { params(path: ::String).returns(T.nilable(::String)) } def mime_type_for(path); end - # : (String path) -> void - # # source://spoom//lib/spoom/file_collector.rb#60 sig { params(path: ::String).void } def visit_directory(path); end - # : (String path) -> void - # # source://spoom//lib/spoom/file_collector.rb#53 sig { params(path: ::String).void } def visit_file(path); end @@ -3213,8 +2663,6 @@ end # # source://spoom//lib/spoom/file_tree.rb#6 class Spoom::FileTree - # : (?T::Enumerable[String] paths) -> void - # # @return [FileTree] a new instance of FileTree # # source://spoom//lib/spoom/file_tree.rb#8 @@ -3224,55 +2672,46 @@ class Spoom::FileTree # Add a `path` to the tree # # This will create all nodes until the root of `path`. - # : (String path) -> Node # # source://spoom//lib/spoom/file_tree.rb#23 sig { params(path: ::String).returns(::Spoom::FileTree::Node) } def add_path(path); end # Add all `paths` to the tree - # : (T::Enumerable[String] paths) -> void # # source://spoom//lib/spoom/file_tree.rb#15 sig { params(paths: T::Enumerable[::String]).void } def add_paths(paths); end # All the nodes in this tree - # : -> Array[Node] # # source://spoom//lib/spoom/file_tree.rb#43 sig { returns(T::Array[::Spoom::FileTree::Node]) } def nodes; end # Return a map of typing scores for each node in the tree - # : (Context context) -> Hash[Node, Float] # # source://spoom//lib/spoom/file_tree.rb#57 sig { params(context: ::Spoom::Context).returns(T::Hash[::Spoom::FileTree::Node, ::Float]) } def nodes_strictness_scores(context); end # All the paths in this tree - # : -> Array[String] # # source://spoom//lib/spoom/file_tree.rb#51 sig { returns(T::Array[::String]) } def paths; end # Return a map of typing scores for each path in the tree - # : (Context context) -> Hash[String, Float] # # source://spoom//lib/spoom/file_tree.rb#65 sig { params(context: ::Spoom::Context).returns(T::Hash[::String, ::Float]) } def paths_strictness_scores(context); end - # : (?out: (IO | StringIO), ?colors: bool) -> void - # # source://spoom//lib/spoom/file_tree.rb#70 sig { params(out: T.any(::IO, ::StringIO), colors: T::Boolean).void } def print(out: T.unsafe(nil), colors: T.unsafe(nil)); end # All root nodes - # : -> Array[Node] # # source://spoom//lib/spoom/file_tree.rb#37 sig { returns(T::Array[::Spoom::FileTree::Node]) } @@ -3281,89 +2720,67 @@ end # A visitor that collects all the nodes in a tree # -# source://spoom//lib/spoom/file_tree.rb#119 +# source://spoom//lib/spoom/file_tree.rb#116 class Spoom::FileTree::CollectNodes < ::Spoom::FileTree::Visitor - # : -> void - # # @return [CollectNodes] a new instance of CollectNodes # - # source://spoom//lib/spoom/file_tree.rb#124 + # source://spoom//lib/spoom/file_tree.rb#121 sig { void } def initialize; end - # : Array[FileTree::Node] - # - # source://spoom//lib/spoom/file_tree.rb#121 + # source://spoom//lib/spoom/file_tree.rb#118 sig { returns(T::Array[::Spoom::FileTree::Node]) } def nodes; end - # : (FileTree::Node node) -> void - # - # source://spoom//lib/spoom/file_tree.rb#131 + # source://spoom//lib/spoom/file_tree.rb#128 sig { override.params(node: ::Spoom::FileTree::Node).void } def visit_node(node); end end # A visitor that collects the typing score of each node in a tree # -# source://spoom//lib/spoom/file_tree.rb#160 +# source://spoom//lib/spoom/file_tree.rb#157 class Spoom::FileTree::CollectScores < ::Spoom::FileTree::CollectStrictnesses - # : (Context context) -> void - # # @return [CollectScores] a new instance of CollectScores # - # source://spoom//lib/spoom/file_tree.rb#165 + # source://spoom//lib/spoom/file_tree.rb#162 sig { params(context: ::Spoom::Context).void } def initialize(context); end - # : Hash[Node, Float] - # - # source://spoom//lib/spoom/file_tree.rb#162 + # source://spoom//lib/spoom/file_tree.rb#159 sig { returns(T::Hash[::Spoom::FileTree::Node, ::Float]) } def scores; end - # : (FileTree::Node node) -> void - # - # source://spoom//lib/spoom/file_tree.rb#173 + # source://spoom//lib/spoom/file_tree.rb#170 sig { override.params(node: ::Spoom::FileTree::Node).void } def visit_node(node); end private - # : (Node node) -> Float - # - # source://spoom//lib/spoom/file_tree.rb#182 + # source://spoom//lib/spoom/file_tree.rb#179 sig { params(node: ::Spoom::FileTree::Node).returns(::Float) } def node_score(node); end - # : (String? strictness) -> Float - # - # source://spoom//lib/spoom/file_tree.rb#191 + # source://spoom//lib/spoom/file_tree.rb#188 sig { params(strictness: T.nilable(::String)).returns(::Float) } def strictness_score(strictness); end end # A visitor that collects the strictness of each node in a tree # -# source://spoom//lib/spoom/file_tree.rb#138 +# source://spoom//lib/spoom/file_tree.rb#135 class Spoom::FileTree::CollectStrictnesses < ::Spoom::FileTree::Visitor - # : (Context context) -> void - # # @return [CollectStrictnesses] a new instance of CollectStrictnesses # - # source://spoom//lib/spoom/file_tree.rb#143 + # source://spoom//lib/spoom/file_tree.rb#140 sig { params(context: ::Spoom::Context).void } def initialize(context); end - # : Hash[Node, String?] - # - # source://spoom//lib/spoom/file_tree.rb#140 + # source://spoom//lib/spoom/file_tree.rb#137 sig { returns(T::Hash[::Spoom::FileTree::Node, T.nilable(::String)]) } def strictnesses; end - # : (FileTree::Node node) -> void - # - # source://spoom//lib/spoom/file_tree.rb#151 + # source://spoom//lib/spoom/file_tree.rb#148 sig { override.params(node: ::Spoom::FileTree::Node).void } def visit_node(node); end end @@ -3377,29 +2794,21 @@ class Spoom::FileTree::Node < ::T::Struct const :children, T::Hash[::String, ::Spoom::FileTree::Node], default: T.unsafe(nil) # Full path to this node from root - # : -> String # # source://spoom//lib/spoom/file_tree.rb#88 sig { returns(::String) } def path; end - - class << self - # source://sorbet-runtime/0.5.12079/lib/types/struct.rb#13 - def inherited(s); end - end end # An internal class used to print a FileTree # # See `FileTree#print` # -# source://spoom//lib/spoom/file_tree.rb#204 +# source://spoom//lib/spoom/file_tree.rb#201 class Spoom::FileTree::Printer < ::Spoom::FileTree::Visitor - # : (Hash[FileTree::Node, String?] strictnesses, ?out: (IO | StringIO), ?colors: bool) -> void - # # @return [Printer] a new instance of Printer # - # source://spoom//lib/spoom/file_tree.rb#206 + # source://spoom//lib/spoom/file_tree.rb#203 sig do params( strictnesses: T::Hash[::Spoom::FileTree::Node, T.nilable(::String)], @@ -3409,44 +2818,34 @@ class Spoom::FileTree::Printer < ::Spoom::FileTree::Visitor end def initialize(strictnesses, out: T.unsafe(nil), colors: T.unsafe(nil)); end - # : (FileTree::Node node) -> void - # - # source://spoom//lib/spoom/file_tree.rb#215 + # source://spoom//lib/spoom/file_tree.rb#212 sig { override.params(node: ::Spoom::FileTree::Node).void } def visit_node(node); end private - # : (String? strictness) -> Color - # - # source://spoom//lib/spoom/file_tree.rb#240 + # source://spoom//lib/spoom/file_tree.rb#237 sig { params(strictness: T.nilable(::String)).returns(::Spoom::Color) } def strictness_color(strictness); end end # An abstract visitor for FileTree # -# @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. +# @abstract # -# source://spoom//lib/spoom/file_tree.rb#97 +# source://spoom//lib/spoom/file_tree.rb#98 class Spoom::FileTree::Visitor abstract! - # : (FileTree::Node node) -> void - # - # source://spoom//lib/spoom/file_tree.rb#108 + # source://spoom//lib/spoom/file_tree.rb#105 sig { params(node: ::Spoom::FileTree::Node).void } def visit_node(node); end - # : (Array[FileTree::Node] nodes) -> void - # - # source://spoom//lib/spoom/file_tree.rb#113 + # source://spoom//lib/spoom/file_tree.rb#110 sig { params(nodes: T::Array[::Spoom::FileTree::Node]).void } def visit_nodes(nodes); end - # : (FileTree tree) -> void - # - # source://spoom//lib/spoom/file_tree.rb#103 + # source://spoom//lib/spoom/file_tree.rb#100 sig { params(tree: ::Spoom::FileTree).void } def visit_tree(tree); end end @@ -3459,18 +2858,12 @@ class Spoom::Git::Commit < ::T::Struct const :sha, ::String const :time, ::Time - # : -> Integer - # # source://spoom//lib/spoom/context/git.rb#23 sig { returns(::Integer) } def timestamp; end class << self - # source://sorbet-runtime/0.5.12079/lib/types/struct.rb#13 - def inherited(s); end - # Parse a line formatted as `%h %at` into a `Commit` - # : (String string) -> Commit? # # source://spoom//lib/spoom/context/git.rb#10 sig { params(string: ::String).returns(T.nilable(::Spoom::Git::Commit)) } @@ -3483,68 +2876,48 @@ module Spoom::LSP; end # source://spoom//lib/spoom/sorbet/lsp.rb#13 class Spoom::LSP::Client - # : (String sorbet_bin, *String sorbet_args, ?path: String) -> void - # # @return [Client] a new instance of Client # # source://spoom//lib/spoom/sorbet/lsp.rb#15 sig { params(sorbet_bin: ::String, sorbet_args: ::String, path: ::String).void } def initialize(sorbet_bin, *sorbet_args, path: T.unsafe(nil)); end - # : -> void - # # source://spoom//lib/spoom/sorbet/lsp.rb#227 sig { void } def close; end - # : (String uri, Integer line, Integer column) -> Array[Location] - # # source://spoom//lib/spoom/sorbet/lsp.rb#129 sig { params(uri: ::String, line: ::Integer, column: ::Integer).returns(T::Array[::Spoom::LSP::Location]) } def definitions(uri, line, column); end - # : (String uri) -> Array[DocumentSymbol] - # # source://spoom//lib/spoom/sorbet/lsp.rb#210 sig { params(uri: ::String).returns(T::Array[::Spoom::LSP::DocumentSymbol]) } def document_symbols(uri); end - # : (String uri, Integer line, Integer column) -> Hover? - # # source://spoom//lib/spoom/sorbet/lsp.rb#87 sig { params(uri: ::String, line: ::Integer, column: ::Integer).returns(T.nilable(::Spoom::LSP::Hover)) } def hover(uri, line, column); end - # : -> Integer - # # source://spoom//lib/spoom/sorbet/lsp.rb#25 sig { returns(::Integer) } def next_id; end - # : (String workspace_path) -> void - # # @raise [Error::AlreadyOpen] # # source://spoom//lib/spoom/sorbet/lsp.rb#70 sig { params(workspace_path: ::String).void } def open(workspace_path); end - # : -> Hash[untyped, untyped]? - # # source://spoom//lib/spoom/sorbet/lsp.rb#52 sig { returns(T.nilable(T::Hash[T.untyped, T.untyped])) } def read; end - # : -> String? - # # @raise [Error::BadHeaders] # # source://spoom//lib/spoom/sorbet/lsp.rb#41 sig { returns(T.nilable(::String)) } def read_raw; end - # : (String uri, Integer line, Integer column, ?bool include_decl) -> Array[Location] - # # source://spoom//lib/spoom/sorbet/lsp.rb#171 sig do params( @@ -3556,38 +2929,28 @@ class Spoom::LSP::Client end def references(uri, line, column, include_decl = T.unsafe(nil)); end - # : (Message message) -> Hash[untyped, untyped]? - # # source://spoom//lib/spoom/sorbet/lsp.rb#35 sig { params(message: ::Spoom::LSP::Message).returns(T.nilable(T::Hash[T.untyped, T.untyped])) } def send(message); end - # : (String json_string) -> void - # # source://spoom//lib/spoom/sorbet/lsp.rb#30 sig { params(json_string: ::String).void } def send_raw(json_string); end - # : (String uri, Integer line, Integer column) -> Array[SignatureHelp] - # # source://spoom//lib/spoom/sorbet/lsp.rb#108 sig { params(uri: ::String, line: ::Integer, column: ::Integer).returns(T::Array[::Spoom::LSP::SignatureHelp]) } def signatures(uri, line, column); end - # : (String query) -> Array[DocumentSymbol] - # # source://spoom//lib/spoom/sorbet/lsp.rb#195 sig { params(query: ::String).returns(T::Array[::Spoom::LSP::DocumentSymbol]) } def symbols(query); end - # : (String uri, Integer line, Integer column) -> Array[Location] - # # source://spoom//lib/spoom/sorbet/lsp.rb#150 sig { params(uri: ::String, line: ::Integer, column: ::Integer).returns(T::Array[::Spoom::LSP::Location]) } def type_definitions(uri, line, column); end end -# source://spoom//lib/spoom/sorbet/lsp/structures.rb#168 +# source://spoom//lib/spoom/sorbet/lsp/structures.rb#165 class Spoom::LSP::Diagnostic < ::T::Struct include ::Spoom::LSP::PrintableSymbol @@ -3596,31 +2959,22 @@ class Spoom::LSP::Diagnostic < ::T::Struct const :message, ::String const :information, ::Object - # : (SymbolPrinter printer) -> void - # - # source://spoom//lib/spoom/sorbet/lsp/structures.rb#190 + # source://spoom//lib/spoom/sorbet/lsp/structures.rb#187 sig { override.params(printer: ::Spoom::LSP::SymbolPrinter).void } def accept_printer(printer); end - # : -> String - # - # source://spoom//lib/spoom/sorbet/lsp/structures.rb#195 + # source://spoom//lib/spoom/sorbet/lsp/structures.rb#192 sig { returns(::String) } def to_s; end class << self - # : (Hash[untyped, untyped] json) -> Diagnostic - # - # source://spoom//lib/spoom/sorbet/lsp/structures.rb#178 + # source://spoom//lib/spoom/sorbet/lsp/structures.rb#175 sig { params(json: T::Hash[T.untyped, T.untyped]).returns(::Spoom::LSP::Diagnostic) } def from_json(json); end - - # source://sorbet-runtime/0.5.12079/lib/types/struct.rb#13 - def inherited(s); end end end -# source://spoom//lib/spoom/sorbet/lsp/structures.rb#200 +# source://spoom//lib/spoom/sorbet/lsp/structures.rb#197 class Spoom::LSP::DocumentSymbol < ::T::Struct include ::Spoom::LSP::PrintableSymbol @@ -3631,37 +2985,26 @@ class Spoom::LSP::DocumentSymbol < ::T::Struct const :range, T.nilable(::Spoom::LSP::Range) const :children, T::Array[::Spoom::LSP::DocumentSymbol] - # : (SymbolPrinter printer) -> void - # - # source://spoom//lib/spoom/sorbet/lsp/structures.rb#226 + # source://spoom//lib/spoom/sorbet/lsp/structures.rb#223 sig { override.params(printer: ::Spoom::LSP::SymbolPrinter).void } def accept_printer(printer); end - # : -> String - # - # source://spoom//lib/spoom/sorbet/lsp/structures.rb#258 + # source://spoom//lib/spoom/sorbet/lsp/structures.rb#255 sig { returns(::String) } def kind_string; end - # : -> String - # - # source://spoom//lib/spoom/sorbet/lsp/structures.rb#253 + # source://spoom//lib/spoom/sorbet/lsp/structures.rb#250 sig { returns(::String) } def to_s; end class << self - # : (Hash[untyped, untyped] json) -> DocumentSymbol - # - # source://spoom//lib/spoom/sorbet/lsp/structures.rb#212 + # source://spoom//lib/spoom/sorbet/lsp/structures.rb#209 sig { params(json: T::Hash[T.untyped, T.untyped]).returns(::Spoom::LSP::DocumentSymbol) } def from_json(json); end - - # source://sorbet-runtime/0.5.12079/lib/types/struct.rb#13 - def inherited(s); end end end -# source://spoom//lib/spoom/sorbet/lsp/structures.rb#262 +# source://spoom//lib/spoom/sorbet/lsp/structures.rb#259 Spoom::LSP::DocumentSymbol::SYMBOL_KINDS = T.let(T.unsafe(nil), Hash) # source://spoom//lib/spoom/sorbet/lsp/errors.rb#6 @@ -3675,94 +3018,68 @@ class Spoom::LSP::Error::BadHeaders < ::Spoom::LSP::Error; end # source://spoom//lib/spoom/sorbet/lsp/errors.rb#10 class Spoom::LSP::Error::Diagnostics < ::Spoom::LSP::Error - # : (String uri, Array[Diagnostic] diagnostics) -> void - # # @return [Diagnostics] a new instance of Diagnostics # # source://spoom//lib/spoom/sorbet/lsp/errors.rb#28 sig { params(uri: ::String, diagnostics: T::Array[::Spoom::LSP::Diagnostic]).void } def initialize(uri, diagnostics); end - # : Array[Diagnostic] - # # source://spoom//lib/spoom/sorbet/lsp/errors.rb#15 sig { returns(T::Array[::Spoom::LSP::Diagnostic]) } def diagnostics; end - # : String - # # source://spoom//lib/spoom/sorbet/lsp/errors.rb#12 sig { returns(::String) } def uri; end class << self - # : (Hash[untyped, untyped] json) -> Diagnostics - # # source://spoom//lib/spoom/sorbet/lsp/errors.rb#19 sig { params(json: T::Hash[T.untyped, T.untyped]).returns(::Spoom::LSP::Error::Diagnostics) } def from_json(json); end end end -# source://spoom//lib/spoom/sorbet/lsp/structures.rb#19 +# source://spoom//lib/spoom/sorbet/lsp/structures.rb#16 class Spoom::LSP::Hover < ::T::Struct include ::Spoom::LSP::PrintableSymbol const :contents, ::String const :range, T.nilable(T::Range[T.untyped]) - # : (SymbolPrinter printer) -> void - # - # source://spoom//lib/spoom/sorbet/lsp/structures.rb#37 + # source://spoom//lib/spoom/sorbet/lsp/structures.rb#34 sig { override.params(printer: ::Spoom::LSP::SymbolPrinter).void } def accept_printer(printer); end - # : -> String - # - # source://spoom//lib/spoom/sorbet/lsp/structures.rb#43 + # source://spoom//lib/spoom/sorbet/lsp/structures.rb#40 sig { returns(::String) } def to_s; end class << self - # : (Hash[untyped, untyped] json) -> Hover - # - # source://spoom//lib/spoom/sorbet/lsp/structures.rb#27 + # source://spoom//lib/spoom/sorbet/lsp/structures.rb#24 sig { params(json: T::Hash[T.untyped, T.untyped]).returns(::Spoom::LSP::Hover) } def from_json(json); end - - # source://sorbet-runtime/0.5.12079/lib/types/struct.rb#13 - def inherited(s); end end end -# source://spoom//lib/spoom/sorbet/lsp/structures.rb#106 +# source://spoom//lib/spoom/sorbet/lsp/structures.rb#103 class Spoom::LSP::Location < ::T::Struct include ::Spoom::LSP::PrintableSymbol const :uri, ::String const :range, ::Spoom::LSP::Range - # : (SymbolPrinter printer) -> void - # - # source://spoom//lib/spoom/sorbet/lsp/structures.rb#124 + # source://spoom//lib/spoom/sorbet/lsp/structures.rb#121 sig { override.params(printer: ::Spoom::LSP::SymbolPrinter).void } def accept_printer(printer); end - # : -> String - # - # source://spoom//lib/spoom/sorbet/lsp/structures.rb#130 + # source://spoom//lib/spoom/sorbet/lsp/structures.rb#127 sig { returns(::String) } def to_s; end class << self - # : (Hash[untyped, untyped] json) -> Location - # - # source://spoom//lib/spoom/sorbet/lsp/structures.rb#114 + # source://spoom//lib/spoom/sorbet/lsp/structures.rb#111 sig { params(json: T::Hash[T.untyped, T.untyped]).returns(::Spoom::LSP::Location) } def from_json(json); end - - # source://sorbet-runtime/0.5.12079/lib/types/struct.rb#13 - def inherited(s); end end end @@ -3772,22 +3089,16 @@ end # # source://spoom//lib/spoom/sorbet/lsp/base.rb#12 class Spoom::LSP::Message - # : -> void - # # @return [Message] a new instance of Message # # source://spoom//lib/spoom/sorbet/lsp/base.rb#14 sig { void } def initialize; end - # : -> Hash[untyped, untyped] - # # source://spoom//lib/spoom/sorbet/lsp/base.rb#19 sig { returns(T::Hash[T.untyped, T.untyped]) } def as_json; end - # : (*untyped args) -> String - # # source://spoom//lib/spoom/sorbet/lsp/base.rb#27 sig { params(args: T.untyped).returns(::String) } def to_json(*args); end @@ -3799,99 +3110,73 @@ end # # source://spoom//lib/spoom/sorbet/lsp/base.rb#54 class Spoom::LSP::Notification < ::Spoom::LSP::Message - # : (String method, Hash[untyped, untyped] params) -> void - # # @return [Notification] a new instance of Notification # # source://spoom//lib/spoom/sorbet/lsp/base.rb#62 sig { params(method: ::String, params: T::Hash[T.untyped, T.untyped]).void } def initialize(method, params); end - # : String - # # source://spoom//lib/spoom/sorbet/lsp/base.rb#56 sig { returns(::String) } def method; end - # : Hash[untyped, untyped] - # # source://spoom//lib/spoom/sorbet/lsp/base.rb#59 sig { returns(T::Hash[T.untyped, T.untyped]) } def params; end end -# source://spoom//lib/spoom/sorbet/lsp/structures.rb#48 +# source://spoom//lib/spoom/sorbet/lsp/structures.rb#45 class Spoom::LSP::Position < ::T::Struct include ::Spoom::LSP::PrintableSymbol const :line, ::Integer const :char, ::Integer - # : (SymbolPrinter printer) -> void - # - # source://spoom//lib/spoom/sorbet/lsp/structures.rb#66 + # source://spoom//lib/spoom/sorbet/lsp/structures.rb#63 sig { override.params(printer: ::Spoom::LSP::SymbolPrinter).void } def accept_printer(printer); end - # : -> String - # - # source://spoom//lib/spoom/sorbet/lsp/structures.rb#71 + # source://spoom//lib/spoom/sorbet/lsp/structures.rb#68 sig { returns(::String) } def to_s; end class << self - # : (Hash[untyped, untyped] json) -> Position - # - # source://spoom//lib/spoom/sorbet/lsp/structures.rb#56 + # source://spoom//lib/spoom/sorbet/lsp/structures.rb#53 sig { params(json: T::Hash[T.untyped, T.untyped]).returns(::Spoom::LSP::Position) } def from_json(json); end - - # source://sorbet-runtime/0.5.12079/lib/types/struct.rb#13 - def inherited(s); end end end -# @abstract Subclasses must implement the `abstract` methods below. -# -# source://spoom//lib/spoom/sorbet/lsp/structures.rb#9 +# source://spoom//lib/spoom/sorbet/lsp/structures.rb#10 module Spoom::LSP::PrintableSymbol interface! # @abstract # - # source://spoom//lib/spoom/sorbet/lsp/structures.rb#16 + # source://spoom//lib/spoom/sorbet/lsp/structures.rb#13 sig { abstract.params(printer: ::Spoom::LSP::SymbolPrinter).void } def accept_printer(printer); end end -# source://spoom//lib/spoom/sorbet/lsp/structures.rb#76 +# source://spoom//lib/spoom/sorbet/lsp/structures.rb#73 class Spoom::LSP::Range < ::T::Struct include ::Spoom::LSP::PrintableSymbol const :start, ::Spoom::LSP::Position const :end, ::Spoom::LSP::Position - # : (SymbolPrinter printer) -> void - # - # source://spoom//lib/spoom/sorbet/lsp/structures.rb#94 + # source://spoom//lib/spoom/sorbet/lsp/structures.rb#91 sig { override.params(printer: ::Spoom::LSP::SymbolPrinter).void } def accept_printer(printer); end - # : -> String - # - # source://spoom//lib/spoom/sorbet/lsp/structures.rb#101 + # source://spoom//lib/spoom/sorbet/lsp/structures.rb#98 sig { returns(::String) } def to_s; end class << self - # : (Hash[untyped, untyped] json) -> Range - # - # source://spoom//lib/spoom/sorbet/lsp/structures.rb#84 + # source://spoom//lib/spoom/sorbet/lsp/structures.rb#81 sig { params(json: T::Hash[T.untyped, T.untyped]).returns(::Spoom::LSP::Range) } def from_json(json); end - - # source://sorbet-runtime/0.5.12079/lib/types/struct.rb#13 - def inherited(s); end end end @@ -3901,22 +3186,16 @@ end # # source://spoom//lib/spoom/sorbet/lsp/base.rb#35 class Spoom::LSP::Request < ::Spoom::LSP::Message - # : (Integer id, String method, Hash[untyped, untyped] params) -> void - # # @return [Request] a new instance of Request # # source://spoom//lib/spoom/sorbet/lsp/base.rb#43 sig { params(id: ::Integer, method: ::String, params: T::Hash[T.untyped, T.untyped]).void } def initialize(id, method, params); end - # : Integer - # # source://spoom//lib/spoom/sorbet/lsp/base.rb#37 sig { returns(::Integer) } def id; end - # : Hash[untyped, untyped] - # # source://spoom//lib/spoom/sorbet/lsp/base.rb#40 sig { returns(T::Hash[T.untyped, T.untyped]) } def params; end @@ -3924,36 +3203,28 @@ end # source://spoom//lib/spoom/sorbet/lsp/errors.rb#36 class Spoom::LSP::ResponseError < ::Spoom::LSP::Error - # : (Integer code, String message, Hash[untyped, untyped] data) -> void - # # @return [ResponseError] a new instance of ResponseError # # source://spoom//lib/spoom/sorbet/lsp/errors.rb#55 sig { params(code: ::Integer, message: ::String, data: T::Hash[T.untyped, T.untyped]).void } def initialize(code, message, data); end - # : Integer - # # source://spoom//lib/spoom/sorbet/lsp/errors.rb#38 sig { returns(::Integer) } def code; end - # : Hash[untyped, untyped] - # # source://spoom//lib/spoom/sorbet/lsp/errors.rb#41 sig { returns(T::Hash[T.untyped, T.untyped]) } def data; end class << self - # : (Hash[untyped, untyped] json) -> ResponseError - # # source://spoom//lib/spoom/sorbet/lsp/errors.rb#45 sig { params(json: T::Hash[T.untyped, T.untyped]).returns(::Spoom::LSP::ResponseError) } def from_json(json); end end end -# source://spoom//lib/spoom/sorbet/lsp/structures.rb#135 +# source://spoom//lib/spoom/sorbet/lsp/structures.rb#132 class Spoom::LSP::SignatureHelp < ::T::Struct include ::Spoom::LSP::PrintableSymbol @@ -3961,37 +3232,26 @@ class Spoom::LSP::SignatureHelp < ::T::Struct const :doc, ::Object const :params, T::Array[T.untyped] - # : (SymbolPrinter printer) -> void - # - # source://spoom//lib/spoom/sorbet/lsp/structures.rb#155 + # source://spoom//lib/spoom/sorbet/lsp/structures.rb#152 sig { override.params(printer: ::Spoom::LSP::SymbolPrinter).void } def accept_printer(printer); end - # : -> String - # - # source://spoom//lib/spoom/sorbet/lsp/structures.rb#163 + # source://spoom//lib/spoom/sorbet/lsp/structures.rb#160 sig { returns(::String) } def to_s; end class << self - # : (Hash[untyped, untyped] json) -> SignatureHelp - # - # source://spoom//lib/spoom/sorbet/lsp/structures.rb#144 + # source://spoom//lib/spoom/sorbet/lsp/structures.rb#141 sig { params(json: T::Hash[T.untyped, T.untyped]).returns(::Spoom::LSP::SignatureHelp) } def from_json(json); end - - # source://sorbet-runtime/0.5.12079/lib/types/struct.rb#13 - def inherited(s); end end end -# source://spoom//lib/spoom/sorbet/lsp/structures.rb#292 +# source://spoom//lib/spoom/sorbet/lsp/structures.rb#289 class Spoom::LSP::SymbolPrinter < ::Spoom::Printer - # : (?out: (IO | StringIO), ?colors: bool, ?indent_level: Integer, ?prefix: String?) -> void - # # @return [SymbolPrinter] a new instance of SymbolPrinter # - # source://spoom//lib/spoom/sorbet/lsp/structures.rb#300 + # source://spoom//lib/spoom/sorbet/lsp/structures.rb#297 sig do params( out: T.any(::IO, ::StringIO), @@ -4002,44 +3262,30 @@ class Spoom::LSP::SymbolPrinter < ::Spoom::Printer end def initialize(out: T.unsafe(nil), colors: T.unsafe(nil), indent_level: T.unsafe(nil), prefix: T.unsafe(nil)); end - # : (String uri) -> String - # - # source://spoom//lib/spoom/sorbet/lsp/structures.rb#322 + # source://spoom//lib/spoom/sorbet/lsp/structures.rb#319 sig { params(uri: ::String).returns(::String) } def clean_uri(uri); end - # : String? - # - # source://spoom//lib/spoom/sorbet/lsp/structures.rb#297 + # source://spoom//lib/spoom/sorbet/lsp/structures.rb#294 sig { returns(T.nilable(::String)) } def prefix; end - # : String? - # - # source://spoom//lib/spoom/sorbet/lsp/structures.rb#297 + # source://spoom//lib/spoom/sorbet/lsp/structures.rb#294 def prefix=(_arg0); end - # : (Array[PrintableSymbol] objects) -> void - # - # source://spoom//lib/spoom/sorbet/lsp/structures.rb#330 + # source://spoom//lib/spoom/sorbet/lsp/structures.rb#327 sig { params(objects: T::Array[::Spoom::LSP::PrintableSymbol]).void } def print_list(objects); end - # : (PrintableSymbol? object) -> void - # - # source://spoom//lib/spoom/sorbet/lsp/structures.rb#310 + # source://spoom//lib/spoom/sorbet/lsp/structures.rb#307 sig { params(object: T.nilable(::Spoom::LSP::PrintableSymbol)).void } def print_object(object); end - # : (Array[PrintableSymbol] objects) -> void - # - # source://spoom//lib/spoom/sorbet/lsp/structures.rb#317 + # source://spoom//lib/spoom/sorbet/lsp/structures.rb#314 sig { params(objects: T::Array[::Spoom::LSP::PrintableSymbol]).void } def print_objects(objects); end - # : Set[Integer] - # - # source://spoom//lib/spoom/sorbet/lsp/structures.rb#294 + # source://spoom//lib/spoom/sorbet/lsp/structures.rb#291 sig { returns(T::Set[::Integer]) } def seen; end end @@ -4048,8 +3294,6 @@ end class Spoom::Location include ::Comparable - # : (String file, ?start_line: Integer?, ?start_column: Integer?, ?end_line: Integer?, ?end_column: Integer?) -> void - # # @raise [LocationError] # @return [Location] a new instance of Location # @@ -4065,62 +3309,42 @@ class Spoom::Location end def initialize(file, start_line: T.unsafe(nil), start_column: T.unsafe(nil), end_line: T.unsafe(nil), end_column: T.unsafe(nil)); end - # : (BasicObject other) -> Integer? - # # source://spoom//lib/spoom/location.rb#95 sig { override.params(other: ::BasicObject).returns(T.nilable(::Integer)) } def <=>(other); end - # : Integer? - # # source://spoom//lib/spoom/location.rb#58 def end_column; end - # : Integer? - # # source://spoom//lib/spoom/location.rb#58 def end_line; end - # : String - # # source://spoom//lib/spoom/location.rb#55 sig { returns(::String) } def file; end - # : (Location other) -> bool - # # @return [Boolean] # # source://spoom//lib/spoom/location.rb#81 sig { params(other: ::Spoom::Location).returns(T::Boolean) } def include?(other); end - # : Integer? - # # source://spoom//lib/spoom/location.rb#58 def start_column; end - # : Integer? - # # source://spoom//lib/spoom/location.rb#58 sig { returns(T.nilable(::Integer)) } def start_line; end - # : -> String - # # source://spoom//lib/spoom/location.rb#118 sig { returns(::String) } def to_s; end class << self - # : (String file, Prism::Location location) -> Location - # # source://spoom//lib/spoom/location.rb#43 sig { params(file: ::String, location: ::Prism::Location).returns(::Spoom::Location) } def from_prism(file, location); end - # : (String location_string) -> Location - # # @raise [LocationError] # # source://spoom//lib/spoom/location.rb#12 @@ -4134,190 +3358,145 @@ class Spoom::Location::LocationError < ::Spoom::Error; end # source://spoom//lib/spoom/model/model.rb#5 class Spoom::Model - # : -> void - # # @return [Model] a new instance of Model # - # source://spoom//lib/spoom/model/model.rb#235 + # source://spoom//lib/spoom/model/model.rb#227 sig { void } def initialize; end # Get a symbol by it's full name # # Raises an error if the symbol is not found - # : (String full_name) -> Symbol # # @raise [Error] # - # source://spoom//lib/spoom/model/model.rb#244 + # source://spoom//lib/spoom/model/model.rb#236 sig { params(full_name: ::String).returns(::Spoom::Model::Symbol) } def [](full_name); end - # : -> void - # - # source://spoom//lib/spoom/model/model.rb#293 + # source://spoom//lib/spoom/model/model.rb#285 sig { void } def finalize!; end # Register a new symbol by it's full name # # If the symbol already exists, it will be returned. - # : (String full_name) -> Symbol # - # source://spoom//lib/spoom/model/model.rb#255 + # source://spoom//lib/spoom/model/model.rb#247 sig { params(full_name: ::String).returns(::Spoom::Model::Symbol) } def register_symbol(full_name); end - # : (String full_name, context: Symbol) -> Symbol - # - # source://spoom//lib/spoom/model/model.rb#260 + # source://spoom//lib/spoom/model/model.rb#252 sig { params(full_name: ::String, context: ::Spoom::Model::Symbol).returns(::Spoom::Model::Symbol) } def resolve_symbol(full_name, context:); end - # : (Symbol symbol) -> Array[Symbol] - # - # source://spoom//lib/spoom/model/model.rb#287 + # source://spoom//lib/spoom/model/model.rb#279 sig { params(symbol: ::Spoom::Model::Symbol).returns(T::Array[::Spoom::Model::Symbol]) } def subtypes(symbol); end - # : (Symbol symbol) -> Array[Symbol] - # - # source://spoom//lib/spoom/model/model.rb#281 + # source://spoom//lib/spoom/model/model.rb#273 sig { params(symbol: ::Spoom::Model::Symbol).returns(T::Array[::Spoom::Model::Symbol]) } def supertypes(symbol); end # All the symbols registered in this model - # : Hash[String, Symbol] # - # source://spoom//lib/spoom/model/model.rb#229 + # source://spoom//lib/spoom/model/model.rb#221 sig { returns(T::Hash[::String, ::Spoom::Model::Symbol]) } def symbols; end - # : Poset[Symbol] - # - # source://spoom//lib/spoom/model/model.rb#232 + # source://spoom//lib/spoom/model/model.rb#224 sig { returns(Spoom::Poset[::Spoom::Model::Symbol]) } def symbols_hierarchy; end private - # : -> void - # - # source://spoom//lib/spoom/model/model.rb#300 + # source://spoom//lib/spoom/model/model.rb#292 sig { void } def compute_symbols_hierarchy!; end end -# @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. +# @abstract # -# source://spoom//lib/spoom/model/model.rb#179 +# source://spoom//lib/spoom/model/model.rb#175 class Spoom::Model::Attr < ::Spoom::Model::Property abstract! end -# source://spoom//lib/spoom/model/model.rb#185 +# source://spoom//lib/spoom/model/model.rb#180 class Spoom::Model::AttrAccessor < ::Spoom::Model::Attr; end -# source://spoom//lib/spoom/model/model.rb#183 +# source://spoom//lib/spoom/model/model.rb#178 class Spoom::Model::AttrReader < ::Spoom::Model::Attr; end -# source://spoom//lib/spoom/model/model.rb#184 +# source://spoom//lib/spoom/model/model.rb#179 class Spoom::Model::AttrWriter < ::Spoom::Model::Attr; end # Populate a Model by visiting the nodes from a Ruby file # # source://spoom//lib/spoom/model/builder.rb#7 class Spoom::Model::Builder < ::Spoom::Model::NamespaceVisitor - # : (Model model, String file, ?comments: Array[Prism::Comment]) -> void - # # @return [Builder] a new instance of Builder # # source://spoom//lib/spoom/model/builder.rb#9 - sig { params(model: ::Spoom::Model, file: ::String, comments: T::Array[::Prism::Comment]).void } - def initialize(model, file, comments:); end + sig { params(model: ::Spoom::Model, file: ::String).void } + def initialize(model, file); end - # : (Prism::CallNode node) -> void - # - # source://spoom//lib/spoom/model/builder.rb#162 + # source://spoom//lib/spoom/model/builder.rb#159 sig { override.params(node: ::Prism::CallNode).void } def visit_call_node(node); end - # : (Prism::ClassNode node) -> void - # - # source://spoom//lib/spoom/model/builder.rb#26 + # source://spoom//lib/spoom/model/builder.rb#23 sig { override.params(node: ::Prism::ClassNode).void } def visit_class_node(node); end - # : (Prism::ConstantPathWriteNode node) -> void - # - # source://spoom//lib/spoom/model/builder.rb#79 + # source://spoom//lib/spoom/model/builder.rb#76 sig { override.params(node: ::Prism::ConstantPathWriteNode).void } def visit_constant_path_write_node(node); end - # : (Prism::ConstantWriteNode node) -> void - # - # source://spoom//lib/spoom/model/builder.rb#102 + # source://spoom//lib/spoom/model/builder.rb#99 sig { override.params(node: ::Prism::ConstantWriteNode).void } def visit_constant_write_node(node); end - # : (Prism::DefNode node) -> void - # - # source://spoom//lib/spoom/model/builder.rb#141 + # source://spoom//lib/spoom/model/builder.rb#138 sig { override.params(node: ::Prism::DefNode).void } def visit_def_node(node); end - # : (Prism::ModuleNode node) -> void - # - # source://spoom//lib/spoom/model/builder.rb#61 + # source://spoom//lib/spoom/model/builder.rb#58 sig { override.params(node: ::Prism::ModuleNode).void } def visit_module_node(node); end - # : (Prism::MultiWriteNode node) -> void - # - # source://spoom//lib/spoom/model/builder.rb#118 + # source://spoom//lib/spoom/model/builder.rb#115 sig { override.params(node: ::Prism::MultiWriteNode).void } def visit_multi_write_node(node); end - # : (Prism::SingletonClassNode node) -> void - # - # source://spoom//lib/spoom/model/builder.rb#43 + # source://spoom//lib/spoom/model/builder.rb#40 sig { override.params(node: ::Prism::SingletonClassNode).void } def visit_singleton_class_node(node); end private - # : -> Array[Sig] - # - # source://spoom//lib/spoom/model/builder.rb#253 + # source://spoom//lib/spoom/model/builder.rb#250 sig { returns(T::Array[::Spoom::Model::Sig]) } def collect_sigs; end - # : -> Visibility - # - # source://spoom//lib/spoom/model/builder.rb#248 + # source://spoom//lib/spoom/model/builder.rb#245 sig { returns(::Spoom::Model::Visibility) } def current_visibility; end - # : (Prism::Node node) -> Array[Comment] - # - # source://spoom//lib/spoom/model/builder.rb#265 + # source://spoom//lib/spoom/model/builder.rb#262 sig { params(node: ::Prism::Node).returns(T::Array[::Spoom::Model::Comment]) } def node_comments(node); end - # : (Prism::Node node) -> Location - # - # source://spoom//lib/spoom/model/builder.rb#260 + # source://spoom//lib/spoom/model/builder.rb#257 sig { params(node: ::Prism::Node).returns(::Spoom::Location) } def node_location(node); end end -# source://spoom//lib/spoom/model/model.rb#132 +# source://spoom//lib/spoom/model/model.rb#128 class Spoom::Model::Class < ::Spoom::Model::Namespace - # : (Symbol symbol, owner: Namespace?, location: Location, ?superclass_name: String?, ?comments: Array[Comment]) -> void - # # @return [Class] a new instance of Class # - # source://spoom//lib/spoom/model/model.rb#137 + # source://spoom//lib/spoom/model/model.rb#133 sig do params( symbol: ::Spoom::Model::Symbol, @@ -4329,48 +3508,36 @@ class Spoom::Model::Class < ::Spoom::Model::Namespace end def initialize(symbol, owner:, location:, superclass_name: T.unsafe(nil), comments: T.unsafe(nil)); end - # : String? - # - # source://spoom//lib/spoom/model/model.rb#134 + # source://spoom//lib/spoom/model/model.rb#130 sig { returns(T.nilable(::String)) } def superclass_name; end - # : String? - # - # source://spoom//lib/spoom/model/model.rb#134 + # source://spoom//lib/spoom/model/model.rb#130 def superclass_name=(_arg0); end end # source://spoom//lib/spoom/model/model.rb#8 class Spoom::Model::Comment - # : (String string, Location location) -> void - # # @return [Comment] a new instance of Comment # # source://spoom//lib/spoom/model/model.rb#16 sig { params(string: ::String, location: ::Spoom::Location).void } def initialize(string, location); end - # : Location - # # source://spoom//lib/spoom/model/model.rb#13 sig { returns(::Spoom::Location) } def location; end - # : String - # # source://spoom//lib/spoom/model/model.rb#10 sig { returns(::String) } def string; end end -# source://spoom//lib/spoom/model/model.rb#146 +# source://spoom//lib/spoom/model/model.rb#142 class Spoom::Model::Constant < ::Spoom::Model::SymbolDef - # : (Symbol symbol, owner: Namespace?, location: Location, value: String, ?comments: Array[Comment]) -> void - # # @return [Constant] a new instance of Constant # - # source://spoom//lib/spoom/model/model.rb#151 + # source://spoom//lib/spoom/model/model.rb#147 sig do params( symbol: ::Spoom::Model::Symbol, @@ -4382,9 +3549,7 @@ class Spoom::Model::Constant < ::Spoom::Model::SymbolDef end def initialize(symbol, owner:, location:, value:, comments: T.unsafe(nil)); end - # : String - # - # source://spoom//lib/spoom/model/model.rb#148 + # source://spoom//lib/spoom/model/model.rb#144 sig { returns(::String) } def value; end end @@ -4392,54 +3557,48 @@ end # source://spoom//lib/spoom/model/model.rb#6 class Spoom::Model::Error < ::Spoom::Error; end -# source://spoom//lib/spoom/model/model.rb#212 +# source://spoom//lib/spoom/model/model.rb#204 class Spoom::Model::Extend < ::Spoom::Model::Mixin; end -# source://spoom//lib/spoom/model/model.rb#210 +# source://spoom//lib/spoom/model/model.rb#202 class Spoom::Model::Include < ::Spoom::Model::Mixin; end -# source://spoom//lib/spoom/model/model.rb#177 +# source://spoom//lib/spoom/model/model.rb#172 class Spoom::Model::Method < ::Spoom::Model::Property; end # A mixin (include, prepend, extend) to a namespace # -# @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. +# @abstract # -# source://spoom//lib/spoom/model/model.rb#196 +# source://spoom//lib/spoom/model/model.rb#192 class Spoom::Model::Mixin abstract! - # : (String name) -> void - # # @return [Mixin] a new instance of Mixin # - # source://spoom//lib/spoom/model/model.rb#205 + # source://spoom//lib/spoom/model/model.rb#197 sig { params(name: ::String).void } def initialize(name); end - # : String - # - # source://spoom//lib/spoom/model/model.rb#202 + # source://spoom//lib/spoom/model/model.rb#194 sig { returns(::String) } def name; end end -# source://spoom//lib/spoom/model/model.rb#144 +# source://spoom//lib/spoom/model/model.rb#140 class Spoom::Model::Module < ::Spoom::Model::Namespace; end # A class or module # -# @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. +# @abstract # -# source://spoom//lib/spoom/model/model.rb#112 +# source://spoom//lib/spoom/model/model.rb#110 class Spoom::Model::Namespace < ::Spoom::Model::SymbolDef abstract! - # : (Symbol symbol, owner: Namespace?, location: Location, ?comments: Array[Comment]) -> void - # # @return [Namespace] a new instance of Namespace # - # source://spoom//lib/spoom/model/model.rb#122 + # source://spoom//lib/spoom/model/model.rb#118 sig do params( symbol: ::Spoom::Model::Symbol, @@ -4450,56 +3609,46 @@ class Spoom::Model::Namespace < ::Spoom::Model::SymbolDef end def initialize(symbol, owner:, location:, comments: T.unsafe(nil)); end - # : Array[SymbolDef] - # - # source://spoom//lib/spoom/model/model.rb#116 + # source://spoom//lib/spoom/model/model.rb#112 sig { returns(T::Array[::Spoom::Model::SymbolDef]) } def children; end - # : Array[Mixin] - # - # source://spoom//lib/spoom/model/model.rb#119 + # source://spoom//lib/spoom/model/model.rb#115 sig { returns(T::Array[::Spoom::Model::Mixin]) } def mixins; end end -# @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. +# @abstract # -# source://spoom//lib/spoom/model/namespace_visitor.rb#6 +# source://spoom//lib/spoom/model/namespace_visitor.rb#7 class Spoom::Model::NamespaceVisitor < ::Spoom::Visitor abstract! - # : -> void - # # @return [NamespaceVisitor] a new instance of NamespaceVisitor # - # source://spoom//lib/spoom/model/namespace_visitor.rb#12 + # source://spoom//lib/spoom/model/namespace_visitor.rb#9 sig { void } def initialize; end - # : (Prism::Node? node) -> void - # - # source://spoom//lib/spoom/model/namespace_visitor.rb#20 + # source://spoom//lib/spoom/model/namespace_visitor.rb#17 sig { override.params(node: T.nilable(::Prism::Node)).void } def visit(node); end end -# source://spoom//lib/spoom/model/model.rb#211 +# source://spoom//lib/spoom/model/model.rb#203 class Spoom::Model::Prepend < ::Spoom::Model::Mixin; end # A method or an attribute accessor # -# @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. +# @abstract # -# source://spoom//lib/spoom/model/model.rb#159 +# source://spoom//lib/spoom/model/model.rb#156 class Spoom::Model::Property < ::Spoom::Model::SymbolDef abstract! - # : (Symbol symbol, owner: Namespace?, location: Location, visibility: Visibility, ?sigs: Array[Sig], ?comments: Array[Comment]) -> void - # # @return [Property] a new instance of Property # - # source://spoom//lib/spoom/model/model.rb#169 + # source://spoom//lib/spoom/model/model.rb#164 sig do params( symbol: ::Spoom::Model::Symbol, @@ -4512,15 +3661,11 @@ class Spoom::Model::Property < ::Spoom::Model::SymbolDef end def initialize(symbol, owner:, location:, visibility:, sigs: T.unsafe(nil), comments: T.unsafe(nil)); end - # : Array[Sig] - # - # source://spoom//lib/spoom/model/model.rb#166 + # source://spoom//lib/spoom/model/model.rb#161 sig { returns(T::Array[::Spoom::Model::Sig]) } def sigs; end - # : Visibility - # - # source://spoom//lib/spoom/model/model.rb#163 + # source://spoom//lib/spoom/model/model.rb#158 sig { returns(::Spoom::Model::Visibility) } def visibility; end end @@ -4536,16 +3681,12 @@ class Spoom::Model::Reference < ::T::Struct const :name, ::String const :location, ::Spoom::Location - # : -> bool - # # @return [Boolean] # # source://spoom//lib/spoom/model/reference.rb#35 sig { returns(T::Boolean) } def constant?; end - # : -> bool - # # @return [Boolean] # # source://spoom//lib/spoom/model/reference.rb#40 @@ -4553,17 +3694,10 @@ class Spoom::Model::Reference < ::T::Struct def method?; end class << self - # : (String name, Spoom::Location location) -> Reference - # # source://spoom//lib/spoom/model/reference.rb#20 sig { params(name: ::String, location: ::Spoom::Location).returns(::Spoom::Model::Reference) } def constant(name, location); end - # source://sorbet-runtime/0.5.12079/lib/types/struct.rb#13 - def inherited(s); end - - # : (String name, Spoom::Location location) -> Reference - # # source://spoom//lib/spoom/model/reference.rb#25 sig { params(name: ::String, location: ::Spoom::Location).returns(::Spoom::Model::Reference) } def method(name, location); end @@ -4582,168 +3716,114 @@ end # # source://spoom//lib/spoom/model/references_visitor.rb#7 class Spoom::Model::ReferencesVisitor < ::Spoom::Visitor - # : (String file) -> void - # # @return [ReferencesVisitor] a new instance of ReferencesVisitor # # source://spoom//lib/spoom/model/references_visitor.rb#12 sig { params(file: ::String).void } def initialize(file); end - # : Array[Reference] - # # source://spoom//lib/spoom/model/references_visitor.rb#9 sig { returns(T::Array[::Spoom::Model::Reference]) } def references; end - # : (Prism::AliasMethodNode node) -> void - # # source://spoom//lib/spoom/model/references_visitor.rb#21 sig { override.params(node: ::Prism::AliasMethodNode).void } def visit_alias_method_node(node); end - # : (Prism::AndNode node) -> void - # # source://spoom//lib/spoom/model/references_visitor.rb#27 sig { override.params(node: ::Prism::AndNode).void } def visit_and_node(node); end - # : (Prism::BlockArgumentNode node) -> void - # # source://spoom//lib/spoom/model/references_visitor.rb#34 sig { override.params(node: ::Prism::BlockArgumentNode).void } def visit_block_argument_node(node); end - # : (Prism::CallAndWriteNode node) -> void - # # source://spoom//lib/spoom/model/references_visitor.rb#46 sig { override.params(node: ::Prism::CallAndWriteNode).void } def visit_call_and_write_node(node); end - # : (Prism::CallNode node) -> void - # # source://spoom//lib/spoom/model/references_visitor.rb#73 sig { override.params(node: ::Prism::CallNode).void } def visit_call_node(node); end - # : (Prism::CallOperatorWriteNode node) -> void - # # source://spoom//lib/spoom/model/references_visitor.rb#55 sig { override.params(node: ::Prism::CallOperatorWriteNode).void } def visit_call_operator_write_node(node); end - # : (Prism::CallOrWriteNode node) -> void - # # source://spoom//lib/spoom/model/references_visitor.rb#64 sig { override.params(node: ::Prism::CallOrWriteNode).void } def visit_call_or_write_node(node); end - # : (Prism::ClassNode node) -> void - # # source://spoom//lib/spoom/model/references_visitor.rb#91 sig { override.params(node: ::Prism::ClassNode).void } def visit_class_node(node); end - # : (Prism::ConstantAndWriteNode node) -> void - # # source://spoom//lib/spoom/model/references_visitor.rb#98 sig { override.params(node: ::Prism::ConstantAndWriteNode).void } def visit_constant_and_write_node(node); end - # : (Prism::ConstantOperatorWriteNode node) -> void - # # source://spoom//lib/spoom/model/references_visitor.rb#105 sig { override.params(node: ::Prism::ConstantOperatorWriteNode).void } def visit_constant_operator_write_node(node); end - # : (Prism::ConstantOrWriteNode node) -> void - # # source://spoom//lib/spoom/model/references_visitor.rb#112 sig { override.params(node: ::Prism::ConstantOrWriteNode).void } def visit_constant_or_write_node(node); end - # : (Prism::ConstantPathNode node) -> void - # # source://spoom//lib/spoom/model/references_visitor.rb#119 sig { override.params(node: ::Prism::ConstantPathNode).void } def visit_constant_path_node(node); end - # : (Prism::ConstantPathWriteNode node) -> void - # # source://spoom//lib/spoom/model/references_visitor.rb#126 sig { override.params(node: ::Prism::ConstantPathWriteNode).void } def visit_constant_path_write_node(node); end - # : (Prism::ConstantReadNode node) -> void - # # source://spoom//lib/spoom/model/references_visitor.rb#133 sig { override.params(node: ::Prism::ConstantReadNode).void } def visit_constant_read_node(node); end - # : (Prism::ConstantWriteNode node) -> void - # # source://spoom//lib/spoom/model/references_visitor.rb#139 sig { override.params(node: ::Prism::ConstantWriteNode).void } def visit_constant_write_node(node); end - # : (Prism::LocalVariableAndWriteNode node) -> void - # # source://spoom//lib/spoom/model/references_visitor.rb#145 sig { override.params(node: ::Prism::LocalVariableAndWriteNode).void } def visit_local_variable_and_write_node(node); end - # : (Prism::LocalVariableOperatorWriteNode node) -> void - # # source://spoom//lib/spoom/model/references_visitor.rb#154 sig { override.params(node: ::Prism::LocalVariableOperatorWriteNode).void } def visit_local_variable_operator_write_node(node); end - # : (Prism::LocalVariableOrWriteNode node) -> void - # # source://spoom//lib/spoom/model/references_visitor.rb#163 sig { override.params(node: ::Prism::LocalVariableOrWriteNode).void } def visit_local_variable_or_write_node(node); end - # : (Prism::LocalVariableWriteNode node) -> void - # # source://spoom//lib/spoom/model/references_visitor.rb#172 sig { override.params(node: ::Prism::LocalVariableWriteNode).void } def visit_local_variable_write_node(node); end - # : (Prism::ModuleNode node) -> void - # # source://spoom//lib/spoom/model/references_visitor.rb#179 sig { override.params(node: ::Prism::ModuleNode).void } def visit_module_node(node); end - # : (Prism::MultiWriteNode node) -> void - # # source://spoom//lib/spoom/model/references_visitor.rb#185 sig { override.params(node: ::Prism::MultiWriteNode).void } def visit_multi_write_node(node); end - # : (Prism::OrNode node) -> void - # # source://spoom//lib/spoom/model/references_visitor.rb#197 sig { override.params(node: ::Prism::OrNode).void } def visit_or_node(node); end private - # : (Prism::Node node) -> Location - # # source://spoom//lib/spoom/model/references_visitor.rb#215 sig { params(node: ::Prism::Node).returns(::Spoom::Location) } def node_location(node); end - # : (String name, Prism::Node node) -> void - # # source://spoom//lib/spoom/model/references_visitor.rb#205 sig { params(name: ::String, node: ::Prism::Node).void } def reference_constant(name, node); end - # : (String name, Prism::Node node) -> void - # # source://spoom//lib/spoom/model/references_visitor.rb#210 sig { params(name: ::String, node: ::Prism::Node).void } def reference_method(name, node); end @@ -4751,24 +3831,20 @@ end # A Sorbet signature (sig block) # -# source://spoom//lib/spoom/model/model.rb#215 +# source://spoom//lib/spoom/model/model.rb#207 class Spoom::Model::Sig - # : (String string) -> void - # # @return [Sig] a new instance of Sig # - # source://spoom//lib/spoom/model/model.rb#220 + # source://spoom//lib/spoom/model/model.rb#212 sig { params(string: ::String).void } def initialize(string); end - # : String - # - # source://spoom//lib/spoom/model/model.rb#217 + # source://spoom//lib/spoom/model/model.rb#209 sig { returns(::String) } def string; end end -# source://spoom//lib/spoom/model/model.rb#130 +# source://spoom//lib/spoom/model/model.rb#126 class Spoom::Model::SingletonClass < ::Spoom::Model::Namespace; end # A Symbol is a uniquely named entity in the Ruby codebase @@ -4779,8 +3855,6 @@ class Spoom::Model::SingletonClass < ::Spoom::Model::Namespace; end # # source://spoom//lib/spoom/model/model.rb#27 class Spoom::Model::Symbol - # : (String full_name) -> void - # # @return [Symbol] a new instance of Symbol # # source://spoom//lib/spoom/model/model.rb#37 @@ -4788,28 +3862,23 @@ class Spoom::Model::Symbol def initialize(full_name); end # The definitions of this symbol (where it exists in the code) - # : Array[SymbolDef] # # source://spoom//lib/spoom/model/model.rb#34 sig { returns(T::Array[::Spoom::Model::SymbolDef]) } def definitions; end # The full, unique name of this symbol - # : String # # source://spoom//lib/spoom/model/model.rb#30 sig { returns(::String) } def full_name; end # The short name of this symbol - # : -> String # # source://spoom//lib/spoom/model/model.rb#44 sig { returns(::String) } def name; end - # : -> String - # # source://spoom//lib/spoom/model/model.rb#49 sig { returns(::String) } def to_s; end @@ -4820,17 +3889,15 @@ end # It can be a class, module, constant, method, etc. # A SymbolDef has a location pointing to the actual code that defines the symbol. # -# @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. +# @abstract # -# source://spoom//lib/spoom/model/model.rb#66 +# source://spoom//lib/spoom/model/model.rb#67 class Spoom::Model::SymbolDef abstract! - # : (Symbol symbol, owner: Namespace?, location: Location, ?comments: Array[Comment]) -> void - # # @return [SymbolDef] a new instance of SymbolDef # - # source://spoom//lib/spoom/model/model.rb#88 + # source://spoom//lib/spoom/model/model.rb#85 sig do params( symbol: ::Spoom::Model::Symbol, @@ -4842,58 +3909,50 @@ class Spoom::Model::SymbolDef def initialize(symbol, owner:, location:, comments:); end # The comments associated with this definition - # : Array[Comment] # - # source://spoom//lib/spoom/model/model.rb#85 + # source://spoom//lib/spoom/model/model.rb#82 sig { returns(T::Array[::Spoom::Model::Comment]) } def comments; end # The full name of the symbol this definition belongs to - # : -> String # - # source://spoom//lib/spoom/model/model.rb#100 + # source://spoom//lib/spoom/model/model.rb#97 sig { returns(::String) } def full_name; end # The actual code location of this definition - # : Location # - # source://spoom//lib/spoom/model/model.rb#81 + # source://spoom//lib/spoom/model/model.rb#78 sig { returns(::Spoom::Location) } def location; end # The short name of the symbol this definition belongs to - # : -> String # - # source://spoom//lib/spoom/model/model.rb#106 + # source://spoom//lib/spoom/model/model.rb#103 sig { returns(::String) } def name; end # The enclosing namespace this definition belongs to - # : Namespace? # - # source://spoom//lib/spoom/model/model.rb#77 + # source://spoom//lib/spoom/model/model.rb#74 sig { returns(T.nilable(::Spoom::Model::Namespace)) } def owner; end # The symbol this definition belongs to - # : Symbol # - # source://spoom//lib/spoom/model/model.rb#73 + # source://spoom//lib/spoom/model/model.rb#70 sig { returns(::Spoom::Model::Symbol) } def symbol; end end # source://spoom//lib/spoom/model/model.rb#54 class Spoom::Model::UnresolvedSymbol < ::Spoom::Model::Symbol - # : -> String - # # source://spoom//lib/spoom/model/model.rb#57 sig { override.returns(::String) } def to_s; end end -# source://spoom//lib/spoom/model/model.rb#187 +# source://spoom//lib/spoom/model/model.rb#182 class Spoom::Model::Visibility < ::T::Enum enums do Private = new @@ -4910,28 +3969,25 @@ class Spoom::ParseError < ::Spoom::Error; end # The partial order relation is a binary relation that is reflexive, antisymmetric, and transitive. # It can be used to represent a hierarchy of classes or modules, the dependencies between gems, etc. # -# source://spoom//lib/spoom/poset.rb#9 +# source://spoom//lib/spoom/poset.rb#10 class Spoom::Poset extend T::Generic E = type_member { { upper: Object } } - # : -> void - # # @return [Poset] a new instance of Poset # - # source://spoom//lib/spoom/poset.rb#17 + # source://spoom//lib/spoom/poset.rb#14 sig { void } def initialize; end # Get the POSet element for a given value # # Raises if the element is not found - # : (E value) -> Element[E] # # @raise [Error] # - # source://spoom//lib/spoom/poset.rb#25 + # source://spoom//lib/spoom/poset.rb#22 sig { params(value: E).returns(Spoom::Poset::Element[E]) } def [](value); end @@ -4940,154 +3996,132 @@ class Spoom::Poset # Transitive edges (transitive closure) are automatically computed. # Adds the elements if they don't exist. # If the direct edge already exists, nothing is done. - # : (E from, E to) -> void # - # source://spoom//lib/spoom/poset.rb#53 + # source://spoom//lib/spoom/poset.rb#50 sig { params(from: E, to: E).void } def add_direct_edge(from, to); end # Add an element to the POSet - # : (E value) -> Element[E] # - # source://spoom//lib/spoom/poset.rb#34 + # source://spoom//lib/spoom/poset.rb#31 sig { params(value: E).returns(Spoom::Poset::Element[E]) } def add_element(value); end # Is there a direct edge from `from` to `to`? - # : (E from, E to) -> bool # # @return [Boolean] # - # source://spoom//lib/spoom/poset.rb#100 + # source://spoom//lib/spoom/poset.rb#97 sig { params(from: E, to: E).returns(T::Boolean) } def direct_edge?(from, to); end # Is there an edge (direct or indirect) from `from` to `to`? - # : (E from, E to) -> bool # # @return [Boolean] # - # source://spoom//lib/spoom/poset.rb#91 + # source://spoom//lib/spoom/poset.rb#88 sig { params(from: E, to: E).returns(T::Boolean) } def edge?(from, to); end # Is the given value a element in the POSet? - # : (E value) -> bool # # @return [Boolean] # - # source://spoom//lib/spoom/poset.rb#43 + # source://spoom//lib/spoom/poset.rb#40 sig { params(value: E).returns(T::Boolean) } def element?(value); end # Show the POSet as a DOT graph using xdot (used for debugging) - # : (?direct: bool, ?transitive: bool) -> void # - # source://spoom//lib/spoom/poset.rb#106 + # source://spoom//lib/spoom/poset.rb#103 sig { params(direct: T::Boolean, transitive: T::Boolean).void } def show_dot(direct: T.unsafe(nil), transitive: T.unsafe(nil)); end # Return the POSet as a DOT graph - # : (?direct: bool, ?transitive: bool) -> String # - # source://spoom//lib/spoom/poset.rb#115 + # source://spoom//lib/spoom/poset.rb#112 sig { params(direct: T::Boolean, transitive: T::Boolean).returns(::String) } def to_dot(direct: T.unsafe(nil), transitive: T.unsafe(nil)); end end # An element in a POSet # -# source://spoom//lib/spoom/poset.rb#135 +# source://spoom//lib/spoom/poset.rb#133 class Spoom::Poset::Element - extend T::Generic include ::Comparable + extend T::Generic E = type_member { { upper: Object } } - # : (E value) -> void - # # @return [Element] a new instance of Element # - # source://spoom//lib/spoom/poset.rb#150 + # source://spoom//lib/spoom/poset.rb#145 sig { params(value: E).void } def initialize(value); end - # : (untyped other) -> Integer? - # - # source://spoom//lib/spoom/poset.rb#159 + # source://spoom//lib/spoom/poset.rb#154 sig { params(other: T.untyped).returns(T.nilable(::Integer)) } def <=>(other); end # Direct and indirect ancestors of this element - # : -> Array[E] # - # source://spoom//lib/spoom/poset.rb#178 + # source://spoom//lib/spoom/poset.rb#173 sig { returns(T::Array[E]) } def ancestors; end # Direct children of this element - # : -> Array[E] # - # source://spoom//lib/spoom/poset.rb#184 + # source://spoom//lib/spoom/poset.rb#179 sig { returns(T::Array[E]) } def children; end # Direct and indirect descendants of this element - # : -> Array[E] # - # source://spoom//lib/spoom/poset.rb#190 + # source://spoom//lib/spoom/poset.rb#185 sig { returns(T::Array[E]) } def descendants; end # Edges (direct and indirect) from this element to other elements in the same POSet - # : Set[Element[E]] # - # source://spoom//lib/spoom/poset.rb#147 + # source://spoom//lib/spoom/poset.rb#142 def dfroms; end # Edges (direct and indirect) from this element to other elements in the same POSet - # : Set[Element[E]] # - # source://spoom//lib/spoom/poset.rb#147 + # source://spoom//lib/spoom/poset.rb#142 sig { returns(T::Set[Spoom::Poset::Element[E]]) } def dtos; end # Edges (direct and indirect) from this element to other elements in the same POSet - # : Set[Element[E]] # - # source://spoom//lib/spoom/poset.rb#147 + # source://spoom//lib/spoom/poset.rb#142 def froms; end # Direct parents of this element - # : -> Array[E] # - # source://spoom//lib/spoom/poset.rb#172 + # source://spoom//lib/spoom/poset.rb#167 sig { returns(T::Array[E]) } def parents; end # Edges (direct and indirect) from this element to other elements in the same POSet - # : Set[Element[E]] # - # source://spoom//lib/spoom/poset.rb#147 + # source://spoom//lib/spoom/poset.rb#142 def tos; end # The value held by this element - # : E # - # source://spoom//lib/spoom/poset.rb#143 + # source://spoom//lib/spoom/poset.rb#138 sig { returns(E) } def value; end end -# source://spoom//lib/spoom/poset.rb#12 +# source://spoom//lib/spoom/poset.rb#11 class Spoom::Poset::Error < ::Spoom::Error; end # source://spoom//lib/spoom/printer.rb#7 class Spoom::Printer include ::Spoom::Colorize - # : (?out: (IO | StringIO), ?colors: bool, ?indent_level: Integer) -> void - # # @return [Printer] a new instance of Printer # # source://spoom//lib/spoom/printer.rb#14 @@ -5095,39 +4129,31 @@ class Spoom::Printer def initialize(out: T.unsafe(nil), colors: T.unsafe(nil), indent_level: T.unsafe(nil)); end # Colorize `string` with color if `@colors` - # : (String string, *Spoom::Color color) -> String # # source://spoom//lib/spoom/printer.rb#75 sig { params(string: ::String, color: ::Spoom::Color).returns(::String) } def colorize(string, *color); end # Decrease indent level - # : -> void # # source://spoom//lib/spoom/printer.rb#28 sig { void } def dedent; end # Increase indent level - # : -> void # # source://spoom//lib/spoom/printer.rb#22 sig { void } def indent; end - # : (IO | StringIO) - # # source://spoom//lib/spoom/printer.rb#11 sig { returns(T.any(::IO, ::StringIO)) } def out; end - # : (IO | StringIO) - # # source://spoom//lib/spoom/printer.rb#11 def out=(_arg0); end # Print `string` into `out` - # : (String? string) -> void # # source://spoom//lib/spoom/printer.rb#34 sig { params(string: T.nilable(::String)).void } @@ -5136,327 +4162,100 @@ class Spoom::Printer # Print `string` colored with `color` into `out` # # Does not use colors unless `@colors`. - # : (String? string, *Color color) -> void # # source://spoom//lib/spoom/printer.rb#44 sig { params(string: T.nilable(::String), color: ::Spoom::Color).void } def print_colored(string, *color); end # Print `string` with indent and newline - # : (String? string) -> void # # source://spoom//lib/spoom/printer.rb#59 sig { params(string: T.nilable(::String)).void } def printl(string); end # Print a new line into `out` - # : -> void # # source://spoom//lib/spoom/printer.rb#53 sig { void } def printn; end # Print an indent space into `out` - # : -> void # # source://spoom//lib/spoom/printer.rb#69 sig { void } def printt; end end -# : String -# +# source://spoom//lib/spoom/rbs.rb#5 +module Spoom::RBS; end + +# source://spoom//lib/spoom/rbs.rb#65 +class Spoom::RBS::Annotation < ::Spoom::RBS::Comment; end + +# source://spoom//lib/spoom/rbs.rb#51 +class Spoom::RBS::Comment + # @return [Comment] a new instance of Comment + # + # source://spoom//lib/spoom/rbs.rb#59 + sig { params(string: ::String, location: ::Prism::Location).void } + def initialize(string, location); end + + # source://spoom//lib/spoom/rbs.rb#56 + sig { returns(::Prism::Location) } + def location; end + + # source://spoom//lib/spoom/rbs.rb#53 + sig { returns(::String) } + def string; end +end + +# source://spoom//lib/spoom/rbs.rb#6 +class Spoom::RBS::Comments + # @return [Comments] a new instance of Comments + # + # source://spoom//lib/spoom/rbs.rb#14 + sig { void } + def initialize; end + + # source://spoom//lib/spoom/rbs.rb#8 + sig { returns(T::Array[::Spoom::RBS::Annotation]) } + def annotations; end + + # source://spoom//lib/spoom/rbs.rb#25 + sig { returns(T::Array[::Spoom::RBS::Annotation]) } + def class_annotations; end + + # @return [Boolean] + # + # source://spoom//lib/spoom/rbs.rb#20 + sig { returns(T::Boolean) } + def empty?; end + + # source://spoom//lib/spoom/rbs.rb#39 + sig { returns(T::Array[::Spoom::RBS::Annotation]) } + def method_annotations; end + + # source://spoom//lib/spoom/rbs.rb#11 + sig { returns(T::Array[::Spoom::RBS::Signature]) } + def signatures; end +end + +# source://spoom//lib/spoom/rbs.rb#68 +module Spoom::RBS::ExtractRBSComments + # source://spoom//lib/spoom/rbs.rb#70 + sig { params(node: ::Prism::Node).returns(::Spoom::RBS::Comments) } + def node_rbs_comments(node); end +end + +# source://spoom//lib/spoom/rbs.rb#66 +class Spoom::RBS::Signature < ::Spoom::RBS::Comment; end + # source://spoom//lib/spoom.rb#8 Spoom::SPOOM_PATH = T.let(T.unsafe(nil), String) -# source://spoom//lib/spoom/sorbet/assertions.rb#7 +# source://spoom//lib/spoom/sorbet/config.rb#5 module Spoom::Sorbet; end -# source://spoom//lib/spoom/sorbet/assertions.rb#8 -class Spoom::Sorbet::Assertions - class << self - # : (String, file: String) -> String - # - # source://spoom//lib/spoom/sorbet/assertions.rb#11 - sig { params(ruby_contents: ::String, file: ::String).returns(::String) } - def rbi_to_rbs(ruby_contents, file:); end - - private - - # : (String, file: String) -> Array[AssignNode] - # - # source://spoom//lib/spoom/sorbet/assertions.rb#46 - sig { params(ruby_contents: ::String, file: ::String).returns(T::Array[::Spoom::Sorbet::Assertions::AssignNode]) } - def collect_assigns(ruby_contents, file:); end - - # : (AssignNode) -> String - # - # source://spoom//lib/spoom/sorbet/assertions.rb#54 - sig { params(assign: ::Spoom::Sorbet::Assertions::AssignNode).returns(::String) } - def dedent_value(assign); end - end -end - -# source://spoom//lib/spoom/sorbet/assertions.rb#122 -class Spoom::Sorbet::Assertions::AssignNode - # : (AssignType, Prism::Location, Prism::Node, Prism::Node) -> void - # - # @return [AssignNode] a new instance of AssignNode - # - # source://spoom//lib/spoom/sorbet/assertions.rb#133 - sig do - params( - node: T.any(::Prism::ClassVariableAndWriteNode, ::Prism::ClassVariableOperatorWriteNode, ::Prism::ClassVariableOrWriteNode, ::Prism::ClassVariableWriteNode, ::Prism::ConstantAndWriteNode, ::Prism::ConstantOperatorWriteNode, ::Prism::ConstantOrWriteNode, ::Prism::ConstantPathAndWriteNode, ::Prism::ConstantPathOperatorWriteNode, ::Prism::ConstantPathOrWriteNode, ::Prism::ConstantPathWriteNode, ::Prism::ConstantWriteNode, ::Prism::GlobalVariableAndWriteNode, ::Prism::GlobalVariableOperatorWriteNode, ::Prism::GlobalVariableOrWriteNode, ::Prism::GlobalVariableWriteNode, ::Prism::InstanceVariableAndWriteNode, ::Prism::InstanceVariableOperatorWriteNode, ::Prism::InstanceVariableOrWriteNode, ::Prism::InstanceVariableWriteNode, ::Prism::LocalVariableAndWriteNode, ::Prism::LocalVariableOperatorWriteNode, ::Prism::LocalVariableOrWriteNode, ::Prism::LocalVariableWriteNode), - operator_loc: ::Prism::Location, - value: ::Prism::Node, - type: ::Prism::Node - ).void - end - def initialize(node, operator_loc, value, type); end - - # : AssignType - # - # source://spoom//lib/spoom/sorbet/assertions.rb#124 - sig do - returns(T.any(::Prism::ClassVariableAndWriteNode, ::Prism::ClassVariableOperatorWriteNode, ::Prism::ClassVariableOrWriteNode, ::Prism::ClassVariableWriteNode, ::Prism::ConstantAndWriteNode, ::Prism::ConstantOperatorWriteNode, ::Prism::ConstantOrWriteNode, ::Prism::ConstantPathAndWriteNode, ::Prism::ConstantPathOperatorWriteNode, ::Prism::ConstantPathOrWriteNode, ::Prism::ConstantPathWriteNode, ::Prism::ConstantWriteNode, ::Prism::GlobalVariableAndWriteNode, ::Prism::GlobalVariableOperatorWriteNode, ::Prism::GlobalVariableOrWriteNode, ::Prism::GlobalVariableWriteNode, ::Prism::InstanceVariableAndWriteNode, ::Prism::InstanceVariableOperatorWriteNode, ::Prism::InstanceVariableOrWriteNode, ::Prism::InstanceVariableWriteNode, ::Prism::LocalVariableAndWriteNode, ::Prism::LocalVariableOperatorWriteNode, ::Prism::LocalVariableOrWriteNode, ::Prism::LocalVariableWriteNode)) - end - def node; end - - # : Prism::Location - # - # source://spoom//lib/spoom/sorbet/assertions.rb#127 - sig { returns(::Prism::Location) } - def operator_loc; end - - # : -> String - # - # source://spoom//lib/spoom/sorbet/assertions.rb#141 - sig { returns(::String) } - def rbs_type; end - - # : Prism::Node - # - # source://spoom//lib/spoom/sorbet/assertions.rb#130 - def type; end - - # : Prism::Node - # - # source://spoom//lib/spoom/sorbet/assertions.rb#130 - sig { returns(::Prism::Node) } - def value; end -end - -# source://spoom//lib/spoom/sorbet/assertions.rb#93 -Spoom::Sorbet::Assertions::AssignType = T.type_alias { T.any(::Prism::ClassVariableAndWriteNode, ::Prism::ClassVariableOperatorWriteNode, ::Prism::ClassVariableOrWriteNode, ::Prism::ClassVariableWriteNode, ::Prism::ConstantAndWriteNode, ::Prism::ConstantOperatorWriteNode, ::Prism::ConstantOrWriteNode, ::Prism::ConstantPathAndWriteNode, ::Prism::ConstantPathOperatorWriteNode, ::Prism::ConstantPathOrWriteNode, ::Prism::ConstantPathWriteNode, ::Prism::ConstantWriteNode, ::Prism::GlobalVariableAndWriteNode, ::Prism::GlobalVariableOperatorWriteNode, ::Prism::GlobalVariableOrWriteNode, ::Prism::GlobalVariableWriteNode, ::Prism::InstanceVariableAndWriteNode, ::Prism::InstanceVariableOperatorWriteNode, ::Prism::InstanceVariableOrWriteNode, ::Prism::InstanceVariableWriteNode, ::Prism::LocalVariableAndWriteNode, ::Prism::LocalVariableOperatorWriteNode, ::Prism::LocalVariableOrWriteNode, ::Prism::LocalVariableWriteNode) } - -# source://spoom//lib/spoom/sorbet/assertions.rb#146 -class Spoom::Sorbet::Assertions::Locator < ::Spoom::Visitor - # : -> void - # - # @return [Locator] a new instance of Locator - # - # source://spoom//lib/spoom/sorbet/assertions.rb#153 - sig { void } - def initialize; end - - # : Array[AssignNode] - # - # source://spoom//lib/spoom/sorbet/assertions.rb#150 - sig { returns(T::Array[::Spoom::Sorbet::Assertions::AssignNode]) } - def assigns; end - - # : (Prism::Node) -> bool - # - # @return [Boolean] - # - # source://spoom//lib/spoom/sorbet/assertions.rb#245 - sig { params(node: ::Prism::Node).returns(T::Boolean) } - def contains_heredoc?(node); end - - # Is this node a `T` or `::T` constant? - # : (Prism::Node?) -> bool - # - # @return [Boolean] - # - # source://spoom//lib/spoom/sorbet/assertions.rb#223 - sig { params(node: T.nilable(::Prism::Node)).returns(T::Boolean) } - def t?(node); end - - # Is this node a `T.let` or `T.cast`? - # : (Prism::CallNode) -> bool - # - # @return [Boolean] - # - # source://spoom//lib/spoom/sorbet/assertions.rb#236 - sig { params(node: ::Prism::CallNode).returns(T::Boolean) } - def t_annotation?(node); end - - # : (AssignType) -> void - # - # source://spoom//lib/spoom/sorbet/assertions.rb#159 - sig do - params( - node: T.any(::Prism::ClassVariableAndWriteNode, ::Prism::ClassVariableOperatorWriteNode, ::Prism::ClassVariableOrWriteNode, ::Prism::ClassVariableWriteNode, ::Prism::ConstantAndWriteNode, ::Prism::ConstantOperatorWriteNode, ::Prism::ConstantOrWriteNode, ::Prism::ConstantPathAndWriteNode, ::Prism::ConstantPathOperatorWriteNode, ::Prism::ConstantPathOrWriteNode, ::Prism::ConstantPathWriteNode, ::Prism::ConstantWriteNode, ::Prism::GlobalVariableAndWriteNode, ::Prism::GlobalVariableOperatorWriteNode, ::Prism::GlobalVariableOrWriteNode, ::Prism::GlobalVariableWriteNode, ::Prism::InstanceVariableAndWriteNode, ::Prism::InstanceVariableOperatorWriteNode, ::Prism::InstanceVariableOrWriteNode, ::Prism::InstanceVariableWriteNode, ::Prism::LocalVariableAndWriteNode, ::Prism::LocalVariableOperatorWriteNode, ::Prism::LocalVariableOrWriteNode, ::Prism::LocalVariableWriteNode) - ).void - end - def visit_assign(node); end - - # : (AssignType) -> void - # - # source://spoom//lib/spoom/sorbet/assertions.rb#159 - def visit_class_variable_and_write_node(node); end - - # : (AssignType) -> void - # - # source://spoom//lib/spoom/sorbet/assertions.rb#159 - def visit_class_variable_operator_write_node(node); end - - # : (AssignType) -> void - # - # source://spoom//lib/spoom/sorbet/assertions.rb#159 - def visit_class_variable_or_write_node(node); end - - # : (AssignType) -> void - # - # source://spoom//lib/spoom/sorbet/assertions.rb#159 - def visit_class_variable_write_node(node); end - - # : (AssignType) -> void - # - # source://spoom//lib/spoom/sorbet/assertions.rb#159 - def visit_constant_and_write_node(node); end - - # : (AssignType) -> void - # - # source://spoom//lib/spoom/sorbet/assertions.rb#159 - def visit_constant_operator_write_node(node); end - - # : (AssignType) -> void - # - # source://spoom//lib/spoom/sorbet/assertions.rb#159 - def visit_constant_or_write_node(node); end - - # : (AssignType) -> void - # - # source://spoom//lib/spoom/sorbet/assertions.rb#159 - def visit_constant_path_and_write_node(node); end - - # : (AssignType) -> void - # - # source://spoom//lib/spoom/sorbet/assertions.rb#159 - def visit_constant_path_operator_write_node(node); end - - # : (AssignType) -> void - # - # source://spoom//lib/spoom/sorbet/assertions.rb#159 - def visit_constant_path_or_write_node(node); end - - # : (AssignType) -> void - # - # source://spoom//lib/spoom/sorbet/assertions.rb#159 - def visit_constant_path_write_node(node); end - - # : (AssignType) -> void - # - # source://spoom//lib/spoom/sorbet/assertions.rb#159 - def visit_constant_write_node(node); end - - # : (AssignType) -> void - # - # source://spoom//lib/spoom/sorbet/assertions.rb#159 - def visit_global_variable_and_write_node(node); end - - # : (AssignType) -> void - # - # source://spoom//lib/spoom/sorbet/assertions.rb#159 - def visit_global_variable_operator_write_node(node); end - - # : (AssignType) -> void - # - # source://spoom//lib/spoom/sorbet/assertions.rb#159 - def visit_global_variable_or_write_node(node); end - - # : (AssignType) -> void - # - # source://spoom//lib/spoom/sorbet/assertions.rb#159 - def visit_global_variable_write_node(node); end - - # : (AssignType) -> void - # - # source://spoom//lib/spoom/sorbet/assertions.rb#159 - def visit_instance_variable_and_write_node(node); end - - # : (AssignType) -> void - # - # source://spoom//lib/spoom/sorbet/assertions.rb#159 - def visit_instance_variable_operator_write_node(node); end - - # : (AssignType) -> void - # - # source://spoom//lib/spoom/sorbet/assertions.rb#159 - def visit_instance_variable_or_write_node(node); end - - # : (AssignType) -> void - # - # source://spoom//lib/spoom/sorbet/assertions.rb#159 - def visit_instance_variable_write_node(node); end - - # : (AssignType) -> void - # - # source://spoom//lib/spoom/sorbet/assertions.rb#159 - def visit_local_variable_and_write_node(node); end - - # : (AssignType) -> void - # - # source://spoom//lib/spoom/sorbet/assertions.rb#159 - def visit_local_variable_operator_write_node(node); end - - # : (AssignType) -> void - # - # source://spoom//lib/spoom/sorbet/assertions.rb#159 - def visit_local_variable_or_write_node(node); end - - # : (AssignType) -> void - # - # source://spoom//lib/spoom/sorbet/assertions.rb#159 - def visit_local_variable_write_node(node); end - - # : (AssignType) -> void - # - # source://spoom//lib/spoom/sorbet/assertions.rb#159 - def visit_multi_write_node(node); end -end - -# : Array[Symbol] -# -# source://spoom//lib/spoom/sorbet/assertions.rb#147 -Spoom::Sorbet::Assertions::Locator::ANNOTATION_METHODS = T.let(T.unsafe(nil), Array) - -# source://spoom//lib/spoom/sorbet/assertions.rb#251 -class Spoom::Sorbet::Assertions::Locator::HeredocVisitor < ::Spoom::Visitor - # : -> void - # - # @return [HeredocVisitor] a new instance of HeredocVisitor - # - # source://spoom//lib/spoom/sorbet/assertions.rb#256 - sig { void } - def initialize; end - - # : bool - # - # source://spoom//lib/spoom/sorbet/assertions.rb#253 - sig { returns(T::Boolean) } - def contains_heredoc; end - - # : (Prism::Node?) -> void - # - # source://spoom//lib/spoom/sorbet/assertions.rb#264 - sig { override.params(node: T.nilable(::Prism::Node)).void } - def visit(node); end -end - -# : String -# # source://spoom//lib/spoom/sorbet.rb#33 Spoom::Sorbet::BIN_PATH = T.let(T.unsafe(nil), String) @@ -5486,48 +4285,32 @@ Spoom::Sorbet::CONFIG_PATH = T.let(T.unsafe(nil), String) # # source://spoom//lib/spoom/sorbet/config.rb#26 class Spoom::Sorbet::Config - # : -> void - # # @return [Config] a new instance of Config # # source://spoom//lib/spoom/sorbet/config.rb#36 sig { void } def initialize; end - # : Array[String] - # # source://spoom//lib/spoom/sorbet/config.rb#30 def allowed_extensions; end - # : Array[String] - # # source://spoom//lib/spoom/sorbet/config.rb#30 def allowed_extensions=(_arg0); end - # : -> Config - # # source://spoom//lib/spoom/sorbet/config.rb#44 sig { returns(::Spoom::Sorbet::Config) } def copy; end - # : Array[String] - # # source://spoom//lib/spoom/sorbet/config.rb#30 def ignore; end - # : Array[String] - # # source://spoom//lib/spoom/sorbet/config.rb#30 def ignore=(_arg0); end - # : bool - # # source://spoom//lib/spoom/sorbet/config.rb#33 sig { returns(T::Boolean) } def no_stdlib; end - # : bool - # # source://spoom//lib/spoom/sorbet/config.rb#33 def no_stdlib=(_arg0); end @@ -5543,63 +4326,46 @@ class Spoom::Sorbet::Config # # puts config.options_string # "/foo /bar --ignore /baz --allowed-extension .rb" # ~~~ - # : -> String # # source://spoom//lib/spoom/sorbet/config.rb#66 sig { returns(::String) } def options_string; end - # : Array[String] - # # source://spoom//lib/spoom/sorbet/config.rb#30 sig { returns(T::Array[::String]) } def paths; end - # : Array[String] - # # source://spoom//lib/spoom/sorbet/config.rb#30 def paths=(_arg0); end class << self - # : (String sorbet_config_path) -> Spoom::Sorbet::Config - # # source://spoom//lib/spoom/sorbet/config.rb#77 sig { params(sorbet_config_path: ::String).returns(::Spoom::Sorbet::Config) } def parse_file(sorbet_config_path); end - # : (String sorbet_config) -> Spoom::Sorbet::Config - # # source://spoom//lib/spoom/sorbet/config.rb#82 sig { params(sorbet_config: ::String).returns(::Spoom::Sorbet::Config) } def parse_string(sorbet_config); end private - # : (String line) -> String - # # source://spoom//lib/spoom/sorbet/config.rb#143 sig { params(line: ::String).returns(::String) } def parse_option(line); end end end -# : Array[String] -# # source://spoom//lib/spoom/sorbet/config.rb#27 Spoom::Sorbet::Config::DEFAULT_ALLOWED_EXTENSIONS = T.let(T.unsafe(nil), Array) # source://spoom//lib/spoom/sorbet.rb#15 class Spoom::Sorbet::Error < ::Spoom::Error - # : (String message, ExecResult result) -> void - # # @return [Error] a new instance of Error # # source://spoom//lib/spoom/sorbet.rb#23 sig { params(message: ::String, result: ::Spoom::ExecResult).void } def initialize(message, result); end - # : ExecResult - # # source://spoom//lib/spoom/sorbet.rb#20 sig { returns(::Spoom::ExecResult) } def result; end @@ -5614,14 +4380,10 @@ class Spoom::Sorbet::Error::Segfault < ::Spoom::Sorbet::Error; end # source://spoom//lib/spoom/sorbet/errors.rb#8 module Spoom::Sorbet::Errors class << self - # : (Array[Error] errors) -> Array[Error] - # # source://spoom//lib/spoom/sorbet/errors.rb#13 sig { params(errors: T::Array[::Spoom::Sorbet::Errors::Error]).returns(T::Array[::Spoom::Sorbet::Errors::Error]) } def sort_errors_by_code(errors); end - # : (Array[Error]) -> REXML::Document - # # source://spoom//lib/spoom/sorbet/errors.rb#18 sig { params(errors: T::Array[::Spoom::Sorbet::Errors::Error]).returns(::REXML::Document) } def to_junit_xml(errors); end @@ -5635,8 +4397,6 @@ Spoom::Sorbet::Errors::DEFAULT_ERROR_URL_BASE = T.let(T.unsafe(nil), String) class Spoom::Sorbet::Errors::Error include ::Comparable - # : (String? file, Integer? line, String? message, Integer? code, ?Array[String] more) -> void - # # @return [Error] a new instance of Error # # source://spoom//lib/spoom/sorbet/errors.rb#166 @@ -5652,55 +4412,39 @@ class Spoom::Sorbet::Errors::Error def initialize(file, line, message, code, more = T.unsafe(nil)); end # By default errors are sorted by location - # : (untyped other) -> Integer # # source://spoom//lib/spoom/sorbet/errors.rb#177 sig { params(other: T.untyped).returns(::Integer) } def <=>(other); end - # : Integer? - # # source://spoom//lib/spoom/sorbet/errors.rb#156 def code; end - # : String? - # # source://spoom//lib/spoom/sorbet/errors.rb#153 sig { returns(T.nilable(::String)) } def file; end # Other files associated with the error - # : Set[String] # # source://spoom//lib/spoom/sorbet/errors.rb#163 sig { returns(T::Set[::String]) } def files_from_error_sections; end - # : Integer? - # # source://spoom//lib/spoom/sorbet/errors.rb#156 sig { returns(T.nilable(::Integer)) } def line; end - # : String? - # # source://spoom//lib/spoom/sorbet/errors.rb#153 def message; end - # : Array[String] - # # source://spoom//lib/spoom/sorbet/errors.rb#159 sig { returns(T::Array[::String]) } def more; end - # : -> REXML::Element - # # source://spoom//lib/spoom/sorbet/errors.rb#189 sig { returns(::REXML::Element) } def to_junit_xml_element; end - # : -> String - # # source://spoom//lib/spoom/sorbet/errors.rb#184 sig { returns(::String) } def to_s; end @@ -5710,52 +4454,38 @@ end # # source://spoom//lib/spoom/sorbet/errors.rb#47 class Spoom::Sorbet::Errors::Parser - # : (?error_url_base: String) -> void - # # @return [Parser] a new instance of Parser # # source://spoom//lib/spoom/sorbet/errors.rb#67 sig { params(error_url_base: ::String).void } def initialize(error_url_base: T.unsafe(nil)); end - # : (String output) -> Array[Error] - # # source://spoom//lib/spoom/sorbet/errors.rb#74 sig { params(output: ::String).returns(T::Array[::Spoom::Sorbet::Errors::Error]) } def parse(output); end private - # : (String line) -> void - # # @raise [ParseError] # # source://spoom//lib/spoom/sorbet/errors.rb#138 sig { params(line: ::String).void } def append_error(line); end - # : -> void - # # @raise [ParseError] # # source://spoom//lib/spoom/sorbet/errors.rb#130 sig { void } def close_error; end - # : (String error_url_base) -> Regexp - # # source://spoom//lib/spoom/sorbet/errors.rb#97 sig { params(error_url_base: ::String).returns(::Regexp) } def error_line_match_regexp(error_url_base); end - # : (String line) -> Error? - # # source://spoom//lib/spoom/sorbet/errors.rb#114 sig { params(line: ::String).returns(T.nilable(::Spoom::Sorbet::Errors::Error)) } def match_error_line(line); end - # : (Error error) -> void - # # @raise [ParseError] # # source://spoom//lib/spoom/sorbet/errors.rb#123 @@ -5763,8 +4493,6 @@ class Spoom::Sorbet::Errors::Parser def open_error(error); end class << self - # : (String output, ?error_url_base: String) -> Array[Error] - # # source://spoom//lib/spoom/sorbet/errors.rb#60 sig { params(output: ::String, error_url_base: ::String).returns(T::Array[::Spoom::Sorbet::Errors::Error]) } def parse_string(output, error_url_base: T.unsafe(nil)); end @@ -5777,44 +4505,119 @@ Spoom::Sorbet::Errors::Parser::HEADER = T.let(T.unsafe(nil), Array) # source://spoom//lib/spoom/sorbet/errors.rb#48 class Spoom::Sorbet::Errors::Parser::ParseError < ::Spoom::Error; end -# : String -# # source://spoom//lib/spoom/sorbet.rb#31 Spoom::Sorbet::GEM_PATH = T.let(T.unsafe(nil), String) -# : String -# # source://spoom//lib/spoom/sorbet.rb#32 Spoom::Sorbet::GEM_VERSION = T.let(T.unsafe(nil), String) # source://spoom//lib/spoom/sorbet.rb#35 Spoom::Sorbet::KILLED_CODE = T.let(T.unsafe(nil), Integer) -# source://spoom//lib/spoom/sorbet/metrics.rb#8 -module Spoom::Sorbet::MetricsParser +# source://spoom//lib/spoom/sorbet/metrics/code_metrics_visitor.rb#6 +module Spoom::Sorbet::Metrics class << self - # : (String path, ?String prefix) -> Hash[String, Integer] - # - # source://spoom//lib/spoom/sorbet/metrics.rb#13 + # source://spoom//lib/spoom/sorbet/metrics/code_metrics_visitor.rb#9 + sig { params(files: T::Array[::String]).returns(Spoom::Counters) } + def collect_code_metrics(files); end + end +end + +# Collects metrics about how Sorbet is used in the codebase. +# +# This approach is different from the metrics file we get directly from Sorbet. +# +# This visitor actually visits the codebase and collects metrics about the amount of signatures, `T.` calls, +# and other metrics. It also knows about RBS comments. +# +# On the other hand, the metrics file is a snapshot of the metrics at type checking time and knows about +# is calls are typed, how many assertions are done, etc. +# +# source://spoom//lib/spoom/sorbet/metrics/code_metrics_visitor.rb#34 +class Spoom::Sorbet::Metrics::CodeMetricsVisitor < ::Spoom::Visitor + include ::Spoom::RBS::ExtractRBSComments + + # @return [CodeMetricsVisitor] a new instance of CodeMetricsVisitor + # + # source://spoom//lib/spoom/sorbet/metrics/code_metrics_visitor.rb#38 + sig { params(counters: Spoom::Counters).void } + def initialize(counters); end + + # source://spoom//lib/spoom/sorbet/metrics/code_metrics_visitor.rb#49 + sig { override.params(node: T.nilable(::Prism::Node)).void } + def visit(node); end + + # source://spoom//lib/spoom/sorbet/metrics/code_metrics_visitor.rb#124 + sig { override.params(node: ::Prism::CallNode).void } + def visit_call_node(node); end + + # source://spoom//lib/spoom/sorbet/metrics/code_metrics_visitor.rb#75 + sig { override.params(node: ::Prism::ClassNode).void } + def visit_class_node(node); end + + # source://spoom//lib/spoom/sorbet/metrics/code_metrics_visitor.rb#99 + sig { override.params(node: ::Prism::DefNode).void } + def visit_def_node(node); end + + # source://spoom//lib/spoom/sorbet/metrics/code_metrics_visitor.rb#83 + sig { override.params(node: ::Prism::ModuleNode).void } + def visit_module_node(node); end + + # source://spoom//lib/spoom/sorbet/metrics/code_metrics_visitor.rb#91 + sig { override.params(node: ::Prism::SingletonClassNode).void } + def visit_singleton_class_node(node); end + + private + + # source://spoom//lib/spoom/sorbet/metrics/code_metrics_visitor.rb#213 + sig { returns(T::Array[::Prism::CallNode]) } + def collect_last_srb_sigs; end + + # source://spoom//lib/spoom/sorbet/metrics/code_metrics_visitor.rb#220 + sig { params(node: T.any(::Prism::ClassNode, ::Prism::ModuleNode, ::Prism::SingletonClassNode)).returns(::String) } + def node_key(node); end + + # source://spoom//lib/spoom/sorbet/metrics/code_metrics_visitor.rb#167 + sig { params(node: ::Prism::CallNode).void } + def visit_attr_accessor(node); end + + # source://spoom//lib/spoom/sorbet/metrics/code_metrics_visitor.rb#151 + sig do + params( + node: T.any(::Prism::ClassNode, ::Prism::ModuleNode, ::Prism::SingletonClassNode), + block: T.proc.void + ).void + end + def visit_scope(node, &block); end + + # source://spoom//lib/spoom/sorbet/metrics/code_metrics_visitor.rb#187 + sig { params(node: ::Prism::CallNode).void } + def visit_sig(node); end + + # source://spoom//lib/spoom/sorbet/metrics/code_metrics_visitor.rb#197 + sig { params(node: ::Prism::CallNode).void } + def visit_type_member(node); end +end + +# source://spoom//lib/spoom/sorbet/metrics/metrics_file_parser.rb#9 +module Spoom::Sorbet::Metrics::MetricsFileParser + class << self + # source://spoom//lib/spoom/sorbet/metrics/metrics_file_parser.rb#14 sig { params(path: ::String, prefix: ::String).returns(T::Hash[::String, ::Integer]) } def parse_file(path, prefix = T.unsafe(nil)); end - # : (Hash[String, untyped] obj, ?String prefix) -> Hash[String, Integer] - # - # source://spoom//lib/spoom/sorbet/metrics.rb#23 - sig { params(obj: T::Hash[::String, T.untyped], prefix: ::String).returns(T::Hash[::String, ::Integer]) } + # source://spoom//lib/spoom/sorbet/metrics/metrics_file_parser.rb#24 + sig { params(obj: T::Hash[::String, T.untyped], prefix: ::String).returns(Spoom::Counters) } def parse_hash(obj, prefix = T.unsafe(nil)); end - # : (String string, ?String prefix) -> Hash[String, Integer] - # - # source://spoom//lib/spoom/sorbet/metrics.rb#18 + # source://spoom//lib/spoom/sorbet/metrics/metrics_file_parser.rb#19 sig { params(string: ::String, prefix: ::String).returns(T::Hash[::String, ::Integer]) } def parse_string(string, prefix = T.unsafe(nil)); end end end -# source://spoom//lib/spoom/sorbet/metrics.rb#9 -Spoom::Sorbet::MetricsParser::DEFAULT_PREFIX = T.let(T.unsafe(nil), String) +# source://spoom//lib/spoom/sorbet/metrics/metrics_file_parser.rb#10 +Spoom::Sorbet::Metrics::MetricsFileParser::DEFAULT_PREFIX = T.let(T.unsafe(nil), String) # source://spoom//lib/spoom/sorbet.rb#36 Spoom::Sorbet::SEGFAULT_CODE = T.let(T.unsafe(nil), Integer) @@ -5823,14 +4626,12 @@ Spoom::Sorbet::SEGFAULT_CODE = T.let(T.unsafe(nil), Integer) module Spoom::Sorbet::Sigils class << self # changes the sigil in the file at the passed path to the specified new strictness - # : ((String | Pathname) path, String new_strictness) -> bool # # source://spoom//lib/spoom/sorbet/sigils.rb#65 sig { params(path: T.any(::Pathname, ::String), new_strictness: ::String).returns(T::Boolean) } def change_sigil_in_file(path, new_strictness); end # changes the sigil to have a new strictness in a list of files - # : (Array[String] path_list, String new_strictness) -> Array[String] # # source://spoom//lib/spoom/sorbet/sigils.rb#76 sig { params(path_list: T::Array[::String], new_strictness: ::String).returns(T::Array[::String]) } @@ -5838,35 +4639,30 @@ module Spoom::Sorbet::Sigils # returns a string containing the strictness of a sigil in a file at the passed path # * returns nil if no sigil - # : ((String | Pathname) path) -> String? # # source://spoom//lib/spoom/sorbet/sigils.rb#56 sig { params(path: T.any(::Pathname, ::String)).returns(T.nilable(::String)) } def file_strictness(path); end # returns the full sigil comment string for the passed strictness - # : (String strictness) -> String # # source://spoom//lib/spoom/sorbet/sigils.rb#31 sig { params(strictness: ::String).returns(::String) } def sigil_string(strictness); end # returns the strictness of a sigil in the passed file content string (nil if no sigil) - # : (String content) -> String? # # source://spoom//lib/spoom/sorbet/sigils.rb#43 sig { params(content: ::String).returns(T.nilable(::String)) } def strictness_in_content(content); end # returns a string which is the passed content but with the sigil updated to a new strictness - # : (String content, String new_strictness) -> String # # source://spoom//lib/spoom/sorbet/sigils.rb#49 sig { params(content: ::String, new_strictness: ::String).returns(::String) } def update_sigil(content, new_strictness); end # returns true if the passed string is a valid strictness (else false) - # : (String strictness) -> bool # # @return [Boolean] # @@ -5876,8 +4672,6 @@ module Spoom::Sorbet::Sigils end end -# : Array[String] -# # source://spoom//lib/spoom/sorbet/sigils.rb#26 Spoom::Sorbet::Sigils::SIGIL_REGEXP = T.let(T.unsafe(nil), Regexp) @@ -5902,160 +4696,471 @@ Spoom::Sorbet::Sigils::STRICTNESS_TRUE = T.let(T.unsafe(nil), String) # source://spoom//lib/spoom/sorbet/sigils.rb#17 Spoom::Sorbet::Sigils::VALID_STRICTNESS = T.let(T.unsafe(nil), Array) -# source://spoom//lib/spoom/sorbet/sigs.rb#8 -class Spoom::Sorbet::Sigs +# source://spoom//lib/spoom/sorbet/translate/translator.rb#6 +module Spoom::Sorbet::Translate class << self - # : (String ruby_contents, positional_names: bool) -> String + # Converts all the RBS comments in the given Ruby code to `sig` nodes. + # It also handles type members and class annotations. # - # source://spoom//lib/spoom/sorbet/sigs.rb#24 - sig { params(ruby_contents: ::String, positional_names: T::Boolean).returns(::String) } - def rbi_to_rbs(ruby_contents, positional_names: T.unsafe(nil)); end + # source://spoom//lib/spoom/sorbet/translate.rb#36 + sig { params(ruby_contents: ::String, file: ::String, max_line_length: T.nilable(::Integer)).returns(::String) } + def rbs_comments_to_sorbet_sigs(ruby_contents, file:, max_line_length: T.unsafe(nil)); end - # : (String ruby_contents) -> String + # Converts all `T.let` and `T.cast` nodes to RBS comments in the given Ruby code. + # It also handles type members and class annotations. # - # source://spoom//lib/spoom/sorbet/sigs.rb#46 - sig { params(ruby_contents: ::String).returns(::String) } - def rbs_to_rbi(ruby_contents); end + # source://spoom//lib/spoom/sorbet/translate.rb#43 + sig { params(ruby_contents: ::String, file: ::String).returns(::String) } + def sorbet_assertions_to_rbs_comments(ruby_contents, file:); end - # : (String ruby_contents) -> String + # Converts all `sig` nodes to RBS comments in the given Ruby code. + # It also handles type members and class annotations. # - # source://spoom//lib/spoom/sorbet/sigs.rb#12 - sig { params(ruby_contents: ::String).returns(::String) } - def strip(ruby_contents); end - - private - - # : (String ruby_contents) -> Array[[RBI::RBSComment, (RBI::Method | RBI::Attr)]] - # - # source://spoom//lib/spoom/sorbet/sigs.rb#80 - sig { params(ruby_contents: ::String).returns(T::Array[[::RBI::RBSComment, T.any(::RBI::Attr, ::RBI::Method)]]) } - def collect_rbs_comments(ruby_contents); end - - # : (String ruby_contents) -> Array[[RBI::Sig, (RBI::Method | RBI::Attr)]] - # - # source://spoom//lib/spoom/sorbet/sigs.rb#72 - sig { params(ruby_contents: ::String).returns(T::Array[[::RBI::Sig, T.any(::RBI::Attr, ::RBI::Method)]]) } - def collect_sorbet_sigs(ruby_contents); end - end -end - -# source://spoom//lib/spoom/sorbet/sigs.rb#9 -class Spoom::Sorbet::Sigs::Error < ::Spoom::Error; end - -# source://spoom//lib/spoom/sorbet/sigs.rb#123 -class Spoom::Sorbet::Sigs::RBIToRBSTranslator - class << self - # : (RBI::Sig sig, (RBI::Method | RBI::Attr) node, positional_names: bool) -> String - # - # source://spoom//lib/spoom/sorbet/sigs.rb#126 + # source://spoom//lib/spoom/sorbet/translate.rb#29 sig do params( - sig: ::RBI::Sig, - node: T.any(::RBI::Attr, ::RBI::Method), - positional_names: T::Boolean + ruby_contents: ::String, + file: ::String, + positional_names: T::Boolean, + max_line_length: T.nilable(::Integer) ).returns(::String) end - def translate(sig, node, positional_names: T.unsafe(nil)); end + def sorbet_sigs_to_rbs_comments(ruby_contents, file:, positional_names: T.unsafe(nil), max_line_length: T.unsafe(nil)); end - private - - # : (RBI::Sig sig, RBI::Attr node, positional_names: bool) -> String + # Deletes all `sig` nodes from the given Ruby code. + # It doesn't handle type members and class annotations. # - # source://spoom//lib/spoom/sorbet/sigs.rb#178 - sig { params(sig: ::RBI::Sig, node: ::RBI::Attr, positional_names: T::Boolean).returns(::String) } - def translate_attr_sig(sig, node, positional_names: T.unsafe(nil)); end - - # : (RBI::Sig sig, RBI::Method node, positional_names: bool) -> String - # - # source://spoom//lib/spoom/sorbet/sigs.rb#138 - sig { params(sig: ::RBI::Sig, node: ::RBI::Method, positional_names: T::Boolean).returns(::String) } - def translate_method_sig(sig, node, positional_names: T.unsafe(nil)); end + # source://spoom//lib/spoom/sorbet/translate.rb#22 + sig { params(ruby_contents: ::String, file: ::String).returns(::String) } + def strip_sorbet_sigs(ruby_contents, file:); end end end -# source://spoom//lib/spoom/sorbet/sigs.rb#187 -class Spoom::Sorbet::Sigs::RBSToRBITranslator - class << self - # : (RBI::RBSComment comment, (RBI::Method | RBI::Attr) node) -> String? - # - # source://spoom//lib/spoom/sorbet/sigs.rb#192 - sig { params(comment: ::RBI::RBSComment, node: T.any(::RBI::Attr, ::RBI::Method)).returns(T.nilable(::String)) } - def translate(comment, node); end +# source://spoom//lib/spoom/sorbet/translate.rb#16 +class Spoom::Sorbet::Translate::Error < ::Spoom::Error; end - private +# source://spoom//lib/spoom/sorbet/translate/rbs_comments_to_sorbet_sigs.rb#7 +class Spoom::Sorbet::Translate::RBSCommentsToSorbetSigs < ::Spoom::Sorbet::Translate::Translator + include ::Spoom::RBS::ExtractRBSComments - # : (RBI::RBSComment comment, RBI::Attr node) -> String - # - # source://spoom//lib/spoom/sorbet/sigs.rb#235 - sig { params(comment: ::RBI::RBSComment, node: ::RBI::Attr).returns(::String) } - def translate_attr_sig(comment, node); end + # @return [RBSCommentsToSorbetSigs] a new instance of RBSCommentsToSorbetSigs + # + # source://spoom//lib/spoom/sorbet/translate/rbs_comments_to_sorbet_sigs.rb#11 + sig { params(ruby_contents: ::String, file: ::String, max_line_length: T.nilable(::Integer)).void } + def initialize(ruby_contents, file:, max_line_length: T.unsafe(nil)); end - # : (RBI::RBSComment rbs_comment, RBI::Method node) -> String - # - # source://spoom//lib/spoom/sorbet/sigs.rb#206 - sig { params(rbs_comment: ::RBI::RBSComment, node: ::RBI::Method).returns(::String) } - def translate_method_sig(rbs_comment, node); end + # source://spoom//lib/spoom/sorbet/translate/rbs_comments_to_sorbet_sigs.rb#73 + sig { override.params(node: ::Prism::CallNode).void } + def visit_call_node(node); end + + # source://spoom//lib/spoom/sorbet/translate/rbs_comments_to_sorbet_sigs.rb#19 + sig { override.params(node: ::Prism::ClassNode).void } + def visit_class_node(node); end + + # source://spoom//lib/spoom/sorbet/translate/rbs_comments_to_sorbet_sigs.rb#43 + sig { override.params(node: ::Prism::DefNode).void } + def visit_def_node(node); end + + # source://spoom//lib/spoom/sorbet/translate/rbs_comments_to_sorbet_sigs.rb#27 + sig { override.params(node: ::Prism::ModuleNode).void } + def visit_module_node(node); end + + # source://spoom//lib/spoom/sorbet/translate/rbs_comments_to_sorbet_sigs.rb#35 + sig { override.params(node: ::Prism::SingletonClassNode).void } + def visit_singleton_class_node(node); end + + private + + # @return [Boolean] + # + # source://spoom//lib/spoom/sorbet/translate/rbs_comments_to_sorbet_sigs.rb#242 + sig do + params( + node: T.any(::Prism::ClassNode, ::Prism::ModuleNode, ::Prism::SingletonClassNode), + constant_regex: ::Regexp + ).returns(T::Boolean) end + def already_extends?(node, constant_regex); end + + # source://spoom//lib/spoom/sorbet/translate/rbs_comments_to_sorbet_sigs.rb#123 + sig { params(node: T.any(::Prism::ClassNode, ::Prism::ModuleNode, ::Prism::SingletonClassNode)).void } + def apply_class_annotations(node); end + + # source://spoom//lib/spoom/sorbet/translate/rbs_comments_to_sorbet_sigs.rb#221 + sig { params(annotations: T::Array[::Spoom::RBS::Annotation], sig: ::RBI::Sig).void } + def apply_member_annotations(annotations, sig); end + + # source://spoom//lib/spoom/sorbet/translate/rbs_comments_to_sorbet_sigs.rb#85 + sig { params(node: ::Prism::CallNode).void } + def visit_attr(node); end end -# From https://github.com/Shopify/ruby-lsp/blob/9154bfc6ef/lib/ruby_lsp/document.rb#L127 +# Translates Sorbet assertions to RBS comments. # -# source://spoom//lib/spoom/sorbet/sigs.rb#255 -class Spoom::Sorbet::Sigs::Scanner - # : (String source) -> void - # - # @return [Scanner] a new instance of Scanner - # - # source://spoom//lib/spoom/sorbet/sigs.rb#259 - sig { params(source: ::String).void } - def initialize(source); end +# source://spoom//lib/spoom/sorbet/translate/sorbet_assertions_to_rbs_comments.rb#8 +class Spoom::Sorbet::Translate::SorbetAssertionsToRBSComments < ::Spoom::Sorbet::Translate::Translator + # source://spoom//lib/spoom/sorbet/translate/sorbet_assertions_to_rbs_comments.rb#22 + sig { override.params(node: ::Prism::IfNode).void } + def visit_if_node(node); end - # Finds the character index inside the source string for a given line and column - # : (Integer line, Integer character) -> Integer + # source://spoom//lib/spoom/sorbet/translate/sorbet_assertions_to_rbs_comments.rb#13 + sig { override.params(node: ::Prism::StatementsNode).void } + def visit_statements_node(node); end + + private + + # @return [Boolean] # - # source://spoom//lib/spoom/sorbet/sigs.rb#267 - sig { params(line: ::Integer, character: ::Integer).returns(::Integer) } - def find_char_position(line, character); end + # source://spoom//lib/spoom/sorbet/translate/sorbet_assertions_to_rbs_comments.rb#135 + sig { params(node: ::Prism::Node).returns(T::Boolean) } + def at_end_of_line?(node); end + + # source://spoom//lib/spoom/sorbet/translate/sorbet_assertions_to_rbs_comments.rb#81 + sig { params(call: ::Prism::CallNode).returns(::String) } + def build_rbs_annotation(call); end + + # source://spoom//lib/spoom/sorbet/translate/sorbet_assertions_to_rbs_comments.rb#142 + sig { params(assign: ::Prism::Node, value: ::Prism::Node).returns(::String) } + def dedent_value(assign, value); end + + # source://spoom//lib/spoom/sorbet/translate/sorbet_assertions_to_rbs_comments.rb#44 + sig { params(node: ::Prism::Node).returns(T::Boolean) } + def maybe_translate_assertion(node); end + + # Is this node a `T` or `::T` constant? + # + # @return [Boolean] + # + # source://spoom//lib/spoom/sorbet/translate/sorbet_assertions_to_rbs_comments.rb#106 + sig { params(node: T.nilable(::Prism::Node)).returns(T::Boolean) } + def t?(node); end + + # Is this node a `T.let` or `T.cast`? + # + # @return [Boolean] + # + # source://spoom//lib/spoom/sorbet/translate/sorbet_assertions_to_rbs_comments.rb#119 + sig { params(node: ::Prism::CallNode).returns(T::Boolean) } + def t_annotation?(node); end end -# : Integer -# -# source://spoom//lib/spoom/sorbet/sigs.rb#256 -Spoom::Sorbet::Sigs::Scanner::LINE_BREAK = T.let(T.unsafe(nil), Integer) +# source://spoom//lib/spoom/sorbet/translate/sorbet_assertions_to_rbs_comments.rb#9 +Spoom::Sorbet::Translate::SorbetAssertionsToRBSComments::LINE_BREAK = T.let(T.unsafe(nil), Integer) -# source://spoom//lib/spoom/sorbet/sigs.rb#88 -class Spoom::Sorbet::Sigs::SigsLocator < ::RBI::Visitor - # : -> void +# Converts all `sig` nodes to RBS comments in the given Ruby code. +# It also handles type members and class annotations. +# +# source://spoom//lib/spoom/sorbet/translate/sorbet_sigs_to_rbs_comments.rb#9 +class Spoom::Sorbet::Translate::SorbetSigsToRBSComments < ::Spoom::Sorbet::Translate::Translator + # @return [SorbetSigsToRBSComments] a new instance of SorbetSigsToRBSComments # - # @return [SigsLocator] a new instance of SigsLocator + # source://spoom//lib/spoom/sorbet/translate/sorbet_sigs_to_rbs_comments.rb#11 + sig do + params( + ruby_contents: ::String, + file: ::String, + positional_names: T::Boolean, + max_line_length: T.nilable(::Integer) + ).void + end + def initialize(ruby_contents, file:, positional_names:, max_line_length: T.unsafe(nil)); end + + # source://spoom//lib/spoom/sorbet/translate/sorbet_sigs_to_rbs_comments.rb#66 + sig { override.params(node: ::Prism::CallNode).void } + def visit_call_node(node); end + + # source://spoom//lib/spoom/sorbet/translate/sorbet_sigs_to_rbs_comments.rb#26 + sig { override.params(node: ::Prism::ClassNode).void } + def visit_class_node(node); end + + # source://spoom//lib/spoom/sorbet/translate/sorbet_sigs_to_rbs_comments.rb#85 + sig { override.params(node: ::Prism::ConstantWriteNode).void } + def visit_constant_write_node(node); end + + # source://spoom//lib/spoom/sorbet/translate/sorbet_sigs_to_rbs_comments.rb#44 + sig { override.params(node: ::Prism::DefNode).void } + def visit_def_node(node); end + + # source://spoom//lib/spoom/sorbet/translate/sorbet_sigs_to_rbs_comments.rb#32 + sig { override.params(node: ::Prism::ModuleNode).void } + def visit_module_node(node); end + + # source://spoom//lib/spoom/sorbet/translate/sorbet_sigs_to_rbs_comments.rb#38 + sig { override.params(node: ::Prism::SingletonClassNode).void } + def visit_singleton_class_node(node); end + + private + + # source://spoom//lib/spoom/sorbet/translate/sorbet_sigs_to_rbs_comments.rb#193 + sig do + params( + parent: T.any(::Prism::ClassNode, ::Prism::ModuleNode, ::Prism::SingletonClassNode), + node: ::Prism::CallNode + ).void + end + def apply_class_annotation(parent, node); end + + # source://spoom//lib/spoom/sorbet/translate/sorbet_sigs_to_rbs_comments.rb#234 + sig { params(sigs: T::Array[[::Prism::CallNode, ::RBI::Sig]]).void } + def apply_member_annotations(sigs); end + + # @raise [Error] # - # source://spoom//lib/spoom/sorbet/sigs.rb#96 + # source://spoom//lib/spoom/sorbet/translate/sorbet_sigs_to_rbs_comments.rb#266 + sig { params(node: ::Prism::ConstantWriteNode).returns(::String) } + def build_type_member_string(node); end + + # Collects the last signatures visited and clears the current list + # + # source://spoom//lib/spoom/sorbet/translate/sorbet_sigs_to_rbs_comments.rb#337 + sig { returns(T::Array[[::Prism::CallNode, ::RBI::Sig]]) } + def collect_last_sigs; end + + # source://spoom//lib/spoom/sorbet/translate/sorbet_sigs_to_rbs_comments.rb#324 + sig { void } + def delete_extend_t_generics; end + + # source://spoom//lib/spoom/sorbet/translate/sorbet_sigs_to_rbs_comments.rb#312 + sig { void } + def delete_extend_t_helpers; end + + # source://spoom//lib/spoom/sorbet/translate/sorbet_sigs_to_rbs_comments.rb#344 + sig { params(indent: ::Integer, block: T.proc.params(arg0: ::RBI::RBSPrinter).void).returns(::String) } + def rbs_print(indent, &block); end + + # source://spoom//lib/spoom/sorbet/translate/sorbet_sigs_to_rbs_comments.rb#151 + sig { params(node: ::Prism::CallNode).void } + def visit_attr(node); end + + # @raise [Error] + # + # source://spoom//lib/spoom/sorbet/translate/sorbet_sigs_to_rbs_comments.rb#175 + sig { params(node: ::Prism::CallNode).void } + def visit_extend(node); end + + # source://spoom//lib/spoom/sorbet/translate/sorbet_sigs_to_rbs_comments.rb#102 + sig do + params( + node: T.any(::Prism::ClassNode, ::Prism::ModuleNode, ::Prism::SingletonClassNode), + block: T.proc.void + ).void + end + def visit_scope(node, &block); end + + # source://spoom//lib/spoom/sorbet/translate/sorbet_sigs_to_rbs_comments.rb#139 + sig { params(node: ::Prism::CallNode).void } + def visit_sig(node); end +end + +# Deletes all `sig` nodes from the given Ruby code. +# It doesn't handle type members and class annotations. +# +# source://spoom//lib/spoom/sorbet/translate/strip_sorbet_sigs.rb#9 +class Spoom::Sorbet::Translate::StripSorbetSigs < ::Spoom::Sorbet::Translate::Translator + # source://spoom//lib/spoom/sorbet/translate/strip_sorbet_sigs.rb#12 + sig { override.params(node: ::Prism::CallNode).void } + def visit_call_node(node); end +end + +# @abstract +# +# source://spoom//lib/spoom/sorbet/translate/translator.rb#8 +class Spoom::Sorbet::Translate::Translator < ::Spoom::Visitor + abstract! + + # @return [Translator] a new instance of Translator + # + # source://spoom//lib/spoom/sorbet/translate/translator.rb#10 + sig { params(ruby_contents: ::String, file: ::String).void } + def initialize(ruby_contents, file:); end + + # source://spoom//lib/spoom/sorbet/translate/translator.rb#29 + sig { returns(::String) } + def rewrite; end + + private + + # source://spoom//lib/spoom/sorbet/translate/translator.rb#54 + sig { params(offset: ::Integer).returns(::Integer) } + def adjust_to_line_end(offset); end + + # source://spoom//lib/spoom/sorbet/translate/translator.rb#48 + sig { params(offset: ::Integer).returns(::Integer) } + def adjust_to_line_start(offset); end + + # Consume the next blank line if any + # + # source://spoom//lib/spoom/sorbet/translate/translator.rb#61 + sig { params(offset: ::Integer).returns(::Integer) } + def adjust_to_new_line(offset); end + + # @return [Boolean] + # + # source://spoom//lib/spoom/sorbet/translate/translator.rb#38 + sig { params(node: ::Prism::CallNode).returns(T::Boolean) } + def sorbet_sig?(node); end +end + +# This module provides a simple API to rewrite source code. +# +# Using a `Rewriter`, you can build a list of changes to apply to a source file +# and apply them all at once. Edits are applied from bottom to top, so that the +# line numbers are not remapped after each edit. +# +# The source code is represented as an array of bytes, so that it can be +# manipulated in place. The client is responsible for `string <-> bytes` +# conversions and encoding handling. +# +# ```ruby +# bytes = "def foo; end".bytes +# +# rewriter = Spoom::Source::Rewriter.new +# rewriter << Spoom::Source::Replace.new(4, 6, "baz") +# rewriter << Spoom::Source::Insert.new(0, "def bar; end\n") +# rewriter.rewrite!(bytes) +# +# puts bytes.pack("C*") # => "def bar; end\ndef baz; end" +# ``` +# +# source://spoom//lib/spoom/source/rewriter.rb#25 +module Spoom::Source; end + +# source://spoom//lib/spoom/source/rewriter.rb#113 +class Spoom::Source::Delete < ::Spoom::Source::Edit + # @return [Delete] a new instance of Delete + # + # source://spoom//lib/spoom/source/rewriter.rb#118 + sig { params(from: ::Integer, to: ::Integer).void } + def initialize(from, to); end + + # @raise [PositionError] + # + # source://spoom//lib/spoom/source/rewriter.rb#127 + sig { override.params(bytes: T::Array[T.untyped]).void } + def apply(bytes); end + + # source://spoom//lib/spoom/source/rewriter.rb#115 + sig { returns(::Integer) } + def from; end + + # source://spoom//lib/spoom/source/rewriter.rb#135 + sig { override.returns([::Integer, ::Integer]) } + def range; end + + # source://spoom//lib/spoom/source/rewriter.rb#115 + def to; end + + # source://spoom//lib/spoom/source/rewriter.rb#141 + sig { override.returns(::String) } + def to_s; end +end + +# @abstract +# +# source://spoom//lib/spoom/source/rewriter.rb#29 +class Spoom::Source::Edit + abstract! + + # @abstract + # + # source://spoom//lib/spoom/source/rewriter.rb#32 + sig { abstract.params(bytes: T::Array[::Integer]).void } + def apply(bytes); end + + # @abstract + # + # source://spoom//lib/spoom/source/rewriter.rb#36 + sig { abstract.returns([::Integer, ::Integer]) } + def range; end +end + +# source://spoom//lib/spoom/source/rewriter.rb#39 +class Spoom::Source::Insert < ::Spoom::Source::Edit + # @return [Insert] a new instance of Insert + # + # source://spoom//lib/spoom/source/rewriter.rb#47 + sig { params(position: ::Integer, text: ::String).void } + def initialize(position, text); end + + # @raise [PositionError] + # + # source://spoom//lib/spoom/source/rewriter.rb#56 + sig { override.params(bytes: T::Array[::Integer]).void } + def apply(bytes); end + + # source://spoom//lib/spoom/source/rewriter.rb#41 + sig { returns(::Integer) } + def position; end + + # source://spoom//lib/spoom/source/rewriter.rb#65 + sig { override.returns([::Integer, ::Integer]) } + def range; end + + # source://spoom//lib/spoom/source/rewriter.rb#44 + sig { returns(::String) } + def text; end + + # source://spoom//lib/spoom/source/rewriter.rb#71 + sig { override.returns(::String) } + def to_s; end +end + +# source://spoom//lib/spoom/source/rewriter.rb#26 +class Spoom::Source::PositionError < ::Spoom::Error; end + +# source://spoom//lib/spoom/source/rewriter.rb#76 +class Spoom::Source::Replace < ::Spoom::Source::Edit + # @return [Replace] a new instance of Replace + # + # source://spoom//lib/spoom/source/rewriter.rb#84 + sig { params(from: ::Integer, to: ::Integer, text: ::String).void } + def initialize(from, to, text); end + + # @raise [PositionError] + # + # source://spoom//lib/spoom/source/rewriter.rb#94 + sig { override.params(bytes: T::Array[::Integer]).void } + def apply(bytes); end + + # source://spoom//lib/spoom/source/rewriter.rb#78 + sig { returns(::Integer) } + def from; end + + # source://spoom//lib/spoom/source/rewriter.rb#102 + sig { override.returns([::Integer, ::Integer]) } + def range; end + + # source://spoom//lib/spoom/source/rewriter.rb#81 + sig { returns(::String) } + def text; end + + # source://spoom//lib/spoom/source/rewriter.rb#78 + def to; end + + # source://spoom//lib/spoom/source/rewriter.rb#108 + sig { override.returns(::String) } + def to_s; end +end + +# source://spoom//lib/spoom/source/rewriter.rb#146 +class Spoom::Source::Rewriter + # @return [Rewriter] a new instance of Rewriter + # + # source://spoom//lib/spoom/source/rewriter.rb#148 sig { void } def initialize; end - # : Array[[RBI::RBSComment, (RBI::Method | RBI::Attr)]] - # - # source://spoom//lib/spoom/sorbet/sigs.rb#93 - sig { returns(T::Array[[::RBI::RBSComment, T.any(::RBI::Attr, ::RBI::Method)]]) } - def rbs_comments; end + # source://spoom//lib/spoom/source/rewriter.rb#153 + sig { params(other: ::Spoom::Source::Edit).void } + def <<(other); end - # : Array[[RBI::Sig, (RBI::Method | RBI::Attr)]] - # - # source://spoom//lib/spoom/sorbet/sigs.rb#90 - sig { returns(T::Array[[::RBI::Sig, T.any(::RBI::Attr, ::RBI::Method)]]) } - def sigs; end - - # : (RBI::Node? node) -> void - # - # source://spoom//lib/spoom/sorbet/sigs.rb#104 - sig { override.params(node: T.nilable(::RBI::Node)).void } - def visit(node); end + # source://spoom//lib/spoom/source/rewriter.rb#158 + sig { params(bytes: T::Array[::Integer]).void } + def rewrite!(bytes); end end # source://spoom//lib/spoom/timeline.rb#5 class Spoom::Timeline - # : (Context context, Time from, Time to) -> void - # # @return [Timeline] a new instance of Timeline # # source://spoom//lib/spoom/timeline.rb#7 @@ -6063,21 +5168,18 @@ class Spoom::Timeline def initialize(context, from, to); end # Return one commit for each date in `dates` - # : (Array[Time] dates) -> Array[Git::Commit] # # source://spoom//lib/spoom/timeline.rb#34 sig { params(dates: T::Array[::Time]).returns(T::Array[::Spoom::Git::Commit]) } def commits_for_dates(dates); end # Return all months between `from` and `to` - # : -> Array[Time] # # source://spoom//lib/spoom/timeline.rb#21 sig { returns(T::Array[::Time]) } def months; end # Return one commit for each month between `from` and `to` - # : -> Array[Git::Commit] # # source://spoom//lib/spoom/timeline.rb#15 sig { returns(T::Array[::Spoom::Git::Commit]) } @@ -6089,896 +5191,598 @@ Spoom::VERSION = T.let(T.unsafe(nil), String) # source://spoom//lib/spoom/visitor.rb#7 class Spoom::Visitor < ::Prism::Visitor - # : (Prism::AliasGlobalVariableNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#16 sig { override.params(node: ::Prism::AliasGlobalVariableNode).void } def visit_alias_global_variable_node(node); end - # : (Prism::AliasMethodNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#22 sig { override.params(node: ::Prism::AliasMethodNode).void } def visit_alias_method_node(node); end - # : (Prism::AlternationPatternNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#28 sig { override.params(node: ::Prism::AlternationPatternNode).void } def visit_alternation_pattern_node(node); end - # : (Prism::AndNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#34 sig { override.params(node: ::Prism::AndNode).void } def visit_and_node(node); end - # : (Prism::ArgumentsNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#40 sig { override.params(node: ::Prism::ArgumentsNode).void } def visit_arguments_node(node); end - # : (Prism::ArrayNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#46 sig { override.params(node: ::Prism::ArrayNode).void } def visit_array_node(node); end - # : (Prism::ArrayPatternNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#52 sig { override.params(node: ::Prism::ArrayPatternNode).void } def visit_array_pattern_node(node); end - # : (Prism::AssocNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#58 sig { override.params(node: ::Prism::AssocNode).void } def visit_assoc_node(node); end - # : (Prism::AssocSplatNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#64 sig { override.params(node: ::Prism::AssocSplatNode).void } def visit_assoc_splat_node(node); end - # : (Prism::BackReferenceReadNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#70 sig { override.params(node: ::Prism::BackReferenceReadNode).void } def visit_back_reference_read_node(node); end - # : (Prism::BeginNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#76 sig { override.params(node: ::Prism::BeginNode).void } def visit_begin_node(node); end - # : (Prism::BlockArgumentNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#82 sig { override.params(node: ::Prism::BlockArgumentNode).void } def visit_block_argument_node(node); end - # : (Prism::BlockLocalVariableNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#88 sig { override.params(node: ::Prism::BlockLocalVariableNode).void } def visit_block_local_variable_node(node); end - # : (Prism::BlockNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#94 sig { override.params(node: ::Prism::BlockNode).void } def visit_block_node(node); end - # : (Prism::BlockParameterNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#100 sig { override.params(node: ::Prism::BlockParameterNode).void } def visit_block_parameter_node(node); end - # : (Prism::BlockParametersNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#106 sig { override.params(node: ::Prism::BlockParametersNode).void } def visit_block_parameters_node(node); end - # : (Prism::BreakNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#112 sig { override.params(node: ::Prism::BreakNode).void } def visit_break_node(node); end - # : (Prism::CallAndWriteNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#118 sig { override.params(node: ::Prism::CallAndWriteNode).void } def visit_call_and_write_node(node); end - # : (Prism::CallNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#124 sig { override.params(node: ::Prism::CallNode).void } def visit_call_node(node); end - # : (Prism::CallOperatorWriteNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#130 sig { override.params(node: ::Prism::CallOperatorWriteNode).void } def visit_call_operator_write_node(node); end - # : (Prism::CallOrWriteNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#136 sig { override.params(node: ::Prism::CallOrWriteNode).void } def visit_call_or_write_node(node); end - # : (Prism::CallTargetNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#142 sig { override.params(node: ::Prism::CallTargetNode).void } def visit_call_target_node(node); end - # : (Prism::CapturePatternNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#148 sig { override.params(node: ::Prism::CapturePatternNode).void } def visit_capture_pattern_node(node); end - # : (Prism::CaseMatchNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#154 sig { override.params(node: ::Prism::CaseMatchNode).void } def visit_case_match_node(node); end - # : (Prism::CaseNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#160 sig { override.params(node: ::Prism::CaseNode).void } def visit_case_node(node); end - # : (Prism::Node node) -> void - # # source://spoom//lib/spoom/visitor.rb#10 sig { override.params(node: ::Prism::Node).void } def visit_child_nodes(node); end - # : (Prism::ClassNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#166 sig { override.params(node: ::Prism::ClassNode).void } def visit_class_node(node); end - # : (Prism::ClassVariableAndWriteNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#172 sig { override.params(node: ::Prism::ClassVariableAndWriteNode).void } def visit_class_variable_and_write_node(node); end - # : (Prism::ClassVariableOperatorWriteNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#178 sig { override.params(node: ::Prism::ClassVariableOperatorWriteNode).void } def visit_class_variable_operator_write_node(node); end - # : (Prism::ClassVariableOrWriteNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#184 sig { override.params(node: ::Prism::ClassVariableOrWriteNode).void } def visit_class_variable_or_write_node(node); end - # : (Prism::ClassVariableReadNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#190 sig { override.params(node: ::Prism::ClassVariableReadNode).void } def visit_class_variable_read_node(node); end - # : (Prism::ClassVariableTargetNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#196 sig { override.params(node: ::Prism::ClassVariableTargetNode).void } def visit_class_variable_target_node(node); end - # : (Prism::ClassVariableWriteNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#202 sig { override.params(node: ::Prism::ClassVariableWriteNode).void } def visit_class_variable_write_node(node); end - # : (Prism::ConstantAndWriteNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#208 sig { override.params(node: ::Prism::ConstantAndWriteNode).void } def visit_constant_and_write_node(node); end - # : (Prism::ConstantOperatorWriteNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#214 sig { override.params(node: ::Prism::ConstantOperatorWriteNode).void } def visit_constant_operator_write_node(node); end - # : (Prism::ConstantOrWriteNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#220 sig { override.params(node: ::Prism::ConstantOrWriteNode).void } def visit_constant_or_write_node(node); end - # : (Prism::ConstantPathAndWriteNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#226 sig { override.params(node: ::Prism::ConstantPathAndWriteNode).void } def visit_constant_path_and_write_node(node); end - # : (Prism::ConstantPathNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#232 sig { override.params(node: ::Prism::ConstantPathNode).void } def visit_constant_path_node(node); end - # : (Prism::ConstantPathOperatorWriteNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#238 sig { override.params(node: ::Prism::ConstantPathOperatorWriteNode).void } def visit_constant_path_operator_write_node(node); end - # : (Prism::ConstantPathOrWriteNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#244 sig { override.params(node: ::Prism::ConstantPathOrWriteNode).void } def visit_constant_path_or_write_node(node); end - # : (Prism::ConstantPathTargetNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#250 sig { override.params(node: ::Prism::ConstantPathTargetNode).void } def visit_constant_path_target_node(node); end - # : (Prism::ConstantPathWriteNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#256 sig { override.params(node: ::Prism::ConstantPathWriteNode).void } def visit_constant_path_write_node(node); end - # : (Prism::ConstantReadNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#262 sig { override.params(node: ::Prism::ConstantReadNode).void } def visit_constant_read_node(node); end - # : (Prism::ConstantTargetNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#268 sig { override.params(node: ::Prism::ConstantTargetNode).void } def visit_constant_target_node(node); end - # : (Prism::ConstantWriteNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#274 sig { override.params(node: ::Prism::ConstantWriteNode).void } def visit_constant_write_node(node); end - # : (Prism::DefNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#280 sig { override.params(node: ::Prism::DefNode).void } def visit_def_node(node); end - # : (Prism::DefinedNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#286 sig { override.params(node: ::Prism::DefinedNode).void } def visit_defined_node(node); end - # : (Prism::ElseNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#292 sig { override.params(node: ::Prism::ElseNode).void } def visit_else_node(node); end - # : (Prism::EmbeddedStatementsNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#298 sig { override.params(node: ::Prism::EmbeddedStatementsNode).void } def visit_embedded_statements_node(node); end - # : (Prism::EmbeddedVariableNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#304 sig { override.params(node: ::Prism::EmbeddedVariableNode).void } def visit_embedded_variable_node(node); end - # : (Prism::EnsureNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#310 sig { override.params(node: ::Prism::EnsureNode).void } def visit_ensure_node(node); end - # : (Prism::FalseNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#316 sig { override.params(node: ::Prism::FalseNode).void } def visit_false_node(node); end - # : (Prism::FindPatternNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#322 sig { override.params(node: ::Prism::FindPatternNode).void } def visit_find_pattern_node(node); end - # : (Prism::FlipFlopNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#328 sig { override.params(node: ::Prism::FlipFlopNode).void } def visit_flip_flop_node(node); end - # : (Prism::FloatNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#334 sig { override.params(node: ::Prism::FloatNode).void } def visit_float_node(node); end - # : (Prism::ForNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#340 sig { override.params(node: ::Prism::ForNode).void } def visit_for_node(node); end - # : (Prism::ForwardingArgumentsNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#346 sig { override.params(node: ::Prism::ForwardingArgumentsNode).void } def visit_forwarding_arguments_node(node); end - # : (Prism::ForwardingParameterNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#352 sig { override.params(node: ::Prism::ForwardingParameterNode).void } def visit_forwarding_parameter_node(node); end - # : (Prism::ForwardingSuperNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#358 sig { override.params(node: ::Prism::ForwardingSuperNode).void } def visit_forwarding_super_node(node); end - # : (Prism::GlobalVariableAndWriteNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#364 sig { override.params(node: ::Prism::GlobalVariableAndWriteNode).void } def visit_global_variable_and_write_node(node); end - # : (Prism::GlobalVariableOperatorWriteNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#370 sig { override.params(node: ::Prism::GlobalVariableOperatorWriteNode).void } def visit_global_variable_operator_write_node(node); end - # : (Prism::GlobalVariableOrWriteNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#376 sig { override.params(node: ::Prism::GlobalVariableOrWriteNode).void } def visit_global_variable_or_write_node(node); end - # : (Prism::GlobalVariableReadNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#382 sig { override.params(node: ::Prism::GlobalVariableReadNode).void } def visit_global_variable_read_node(node); end - # : (Prism::GlobalVariableTargetNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#388 sig { override.params(node: ::Prism::GlobalVariableTargetNode).void } def visit_global_variable_target_node(node); end - # : (Prism::GlobalVariableWriteNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#394 sig { override.params(node: ::Prism::GlobalVariableWriteNode).void } def visit_global_variable_write_node(node); end - # : (Prism::HashNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#400 sig { override.params(node: ::Prism::HashNode).void } def visit_hash_node(node); end - # : (Prism::HashPatternNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#406 sig { override.params(node: ::Prism::HashPatternNode).void } def visit_hash_pattern_node(node); end - # : (Prism::IfNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#412 sig { override.params(node: ::Prism::IfNode).void } def visit_if_node(node); end - # : (Prism::ImaginaryNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#418 sig { override.params(node: ::Prism::ImaginaryNode).void } def visit_imaginary_node(node); end - # : (Prism::ImplicitNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#424 sig { override.params(node: ::Prism::ImplicitNode).void } def visit_implicit_node(node); end - # : (Prism::ImplicitRestNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#430 sig { override.params(node: ::Prism::ImplicitRestNode).void } def visit_implicit_rest_node(node); end - # : (Prism::InNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#436 sig { override.params(node: ::Prism::InNode).void } def visit_in_node(node); end - # : (Prism::IndexAndWriteNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#442 sig { override.params(node: ::Prism::IndexAndWriteNode).void } def visit_index_and_write_node(node); end - # : (Prism::IndexOperatorWriteNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#448 sig { override.params(node: ::Prism::IndexOperatorWriteNode).void } def visit_index_operator_write_node(node); end - # : (Prism::IndexOrWriteNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#454 sig { override.params(node: ::Prism::IndexOrWriteNode).void } def visit_index_or_write_node(node); end - # : (Prism::IndexTargetNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#460 sig { override.params(node: ::Prism::IndexTargetNode).void } def visit_index_target_node(node); end - # : (Prism::InstanceVariableAndWriteNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#466 sig { override.params(node: ::Prism::InstanceVariableAndWriteNode).void } def visit_instance_variable_and_write_node(node); end - # : (Prism::InstanceVariableOperatorWriteNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#472 sig { override.params(node: ::Prism::InstanceVariableOperatorWriteNode).void } def visit_instance_variable_operator_write_node(node); end - # : (Prism::InstanceVariableOrWriteNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#478 sig { override.params(node: ::Prism::InstanceVariableOrWriteNode).void } def visit_instance_variable_or_write_node(node); end - # : (Prism::InstanceVariableReadNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#484 sig { override.params(node: ::Prism::InstanceVariableReadNode).void } def visit_instance_variable_read_node(node); end - # : (Prism::InstanceVariableTargetNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#490 sig { override.params(node: ::Prism::InstanceVariableTargetNode).void } def visit_instance_variable_target_node(node); end - # : (Prism::InstanceVariableWriteNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#496 sig { override.params(node: ::Prism::InstanceVariableWriteNode).void } def visit_instance_variable_write_node(node); end - # : (Prism::IntegerNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#502 sig { override.params(node: ::Prism::IntegerNode).void } def visit_integer_node(node); end - # : (Prism::InterpolatedMatchLastLineNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#508 sig { override.params(node: ::Prism::InterpolatedMatchLastLineNode).void } def visit_interpolated_match_last_line_node(node); end - # : (Prism::InterpolatedRegularExpressionNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#514 sig { override.params(node: ::Prism::InterpolatedRegularExpressionNode).void } def visit_interpolated_regular_expression_node(node); end - # : (Prism::InterpolatedStringNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#520 sig { override.params(node: ::Prism::InterpolatedStringNode).void } def visit_interpolated_string_node(node); end - # : (Prism::InterpolatedSymbolNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#526 sig { override.params(node: ::Prism::InterpolatedSymbolNode).void } def visit_interpolated_symbol_node(node); end - # : (Prism::InterpolatedXStringNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#532 sig { override.params(node: ::Prism::InterpolatedXStringNode).void } def visit_interpolated_x_string_node(node); end - # : (Prism::KeywordHashNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#538 sig { override.params(node: ::Prism::KeywordHashNode).void } def visit_keyword_hash_node(node); end - # : (Prism::KeywordRestParameterNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#544 sig { override.params(node: ::Prism::KeywordRestParameterNode).void } def visit_keyword_rest_parameter_node(node); end - # : (Prism::LambdaNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#550 sig { override.params(node: ::Prism::LambdaNode).void } def visit_lambda_node(node); end - # : (Prism::LocalVariableAndWriteNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#556 sig { override.params(node: ::Prism::LocalVariableAndWriteNode).void } def visit_local_variable_and_write_node(node); end - # : (Prism::LocalVariableOperatorWriteNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#562 sig { override.params(node: ::Prism::LocalVariableOperatorWriteNode).void } def visit_local_variable_operator_write_node(node); end - # : (Prism::LocalVariableOrWriteNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#568 sig { override.params(node: ::Prism::LocalVariableOrWriteNode).void } def visit_local_variable_or_write_node(node); end - # : (Prism::LocalVariableReadNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#574 sig { override.params(node: ::Prism::LocalVariableReadNode).void } def visit_local_variable_read_node(node); end - # : (Prism::LocalVariableTargetNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#580 sig { override.params(node: ::Prism::LocalVariableTargetNode).void } def visit_local_variable_target_node(node); end - # : (Prism::LocalVariableWriteNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#586 sig { override.params(node: ::Prism::LocalVariableWriteNode).void } def visit_local_variable_write_node(node); end - # : (Prism::MatchLastLineNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#592 sig { override.params(node: ::Prism::MatchLastLineNode).void } def visit_match_last_line_node(node); end - # : (Prism::MatchPredicateNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#598 sig { override.params(node: ::Prism::MatchPredicateNode).void } def visit_match_predicate_node(node); end - # : (Prism::MatchRequiredNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#604 sig { override.params(node: ::Prism::MatchRequiredNode).void } def visit_match_required_node(node); end - # : (Prism::MatchWriteNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#610 sig { override.params(node: ::Prism::MatchWriteNode).void } def visit_match_write_node(node); end - # : (Prism::MissingNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#616 sig { override.params(node: ::Prism::MissingNode).void } def visit_missing_node(node); end - # : (Prism::ModuleNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#622 sig { override.params(node: ::Prism::ModuleNode).void } def visit_module_node(node); end - # : (Prism::MultiTargetNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#628 sig { override.params(node: ::Prism::MultiTargetNode).void } def visit_multi_target_node(node); end - # : (Prism::MultiWriteNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#634 sig { override.params(node: ::Prism::MultiWriteNode).void } def visit_multi_write_node(node); end - # : (Prism::NextNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#640 sig { override.params(node: ::Prism::NextNode).void } def visit_next_node(node); end - # : (Prism::NilNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#646 sig { override.params(node: ::Prism::NilNode).void } def visit_nil_node(node); end - # : (Prism::NoKeywordsParameterNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#652 sig { override.params(node: ::Prism::NoKeywordsParameterNode).void } def visit_no_keywords_parameter_node(node); end - # : (Prism::NumberedParametersNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#658 sig { override.params(node: ::Prism::NumberedParametersNode).void } def visit_numbered_parameters_node(node); end - # : (Prism::NumberedReferenceReadNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#664 sig { override.params(node: ::Prism::NumberedReferenceReadNode).void } def visit_numbered_reference_read_node(node); end - # : (Prism::OptionalKeywordParameterNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#670 sig { override.params(node: ::Prism::OptionalKeywordParameterNode).void } def visit_optional_keyword_parameter_node(node); end - # : (Prism::OptionalParameterNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#676 sig { override.params(node: ::Prism::OptionalParameterNode).void } def visit_optional_parameter_node(node); end - # : (Prism::OrNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#682 sig { override.params(node: ::Prism::OrNode).void } def visit_or_node(node); end - # : (Prism::ParametersNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#688 sig { override.params(node: ::Prism::ParametersNode).void } def visit_parameters_node(node); end - # : (Prism::ParenthesesNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#694 sig { override.params(node: ::Prism::ParenthesesNode).void } def visit_parentheses_node(node); end - # : (Prism::PinnedExpressionNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#700 sig { override.params(node: ::Prism::PinnedExpressionNode).void } def visit_pinned_expression_node(node); end - # : (Prism::PinnedVariableNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#706 sig { override.params(node: ::Prism::PinnedVariableNode).void } def visit_pinned_variable_node(node); end - # : (Prism::PostExecutionNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#712 sig { override.params(node: ::Prism::PostExecutionNode).void } def visit_post_execution_node(node); end - # : (Prism::PreExecutionNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#718 sig { override.params(node: ::Prism::PreExecutionNode).void } def visit_pre_execution_node(node); end - # : (Prism::ProgramNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#724 sig { override.params(node: ::Prism::ProgramNode).void } def visit_program_node(node); end - # : (Prism::RangeNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#730 sig { override.params(node: ::Prism::RangeNode).void } def visit_range_node(node); end - # : (Prism::RationalNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#736 sig { override.params(node: ::Prism::RationalNode).void } def visit_rational_node(node); end - # : (Prism::RedoNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#742 sig { override.params(node: ::Prism::RedoNode).void } def visit_redo_node(node); end - # : (Prism::RegularExpressionNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#748 sig { override.params(node: ::Prism::RegularExpressionNode).void } def visit_regular_expression_node(node); end - # : (Prism::RequiredKeywordParameterNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#754 sig { override.params(node: ::Prism::RequiredKeywordParameterNode).void } def visit_required_keyword_parameter_node(node); end - # : (Prism::RequiredParameterNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#760 sig { override.params(node: ::Prism::RequiredParameterNode).void } def visit_required_parameter_node(node); end - # : (Prism::RescueModifierNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#766 sig { override.params(node: ::Prism::RescueModifierNode).void } def visit_rescue_modifier_node(node); end - # : (Prism::RescueNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#772 sig { override.params(node: ::Prism::RescueNode).void } def visit_rescue_node(node); end - # : (Prism::RestParameterNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#778 sig { override.params(node: ::Prism::RestParameterNode).void } def visit_rest_parameter_node(node); end - # : (Prism::RetryNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#784 sig { override.params(node: ::Prism::RetryNode).void } def visit_retry_node(node); end - # : (Prism::ReturnNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#790 sig { override.params(node: ::Prism::ReturnNode).void } def visit_return_node(node); end - # : (Prism::SelfNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#796 sig { override.params(node: ::Prism::SelfNode).void } def visit_self_node(node); end - # : (Prism::SingletonClassNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#802 sig { override.params(node: ::Prism::SingletonClassNode).void } def visit_singleton_class_node(node); end - # : (Prism::SourceEncodingNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#808 sig { override.params(node: ::Prism::SourceEncodingNode).void } def visit_source_encoding_node(node); end - # : (Prism::SourceFileNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#814 sig { override.params(node: ::Prism::SourceFileNode).void } def visit_source_file_node(node); end - # : (Prism::SourceLineNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#820 sig { override.params(node: ::Prism::SourceLineNode).void } def visit_source_line_node(node); end - # : (Prism::SplatNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#826 sig { override.params(node: ::Prism::SplatNode).void } def visit_splat_node(node); end - # : (Prism::StatementsNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#832 sig { override.params(node: ::Prism::StatementsNode).void } def visit_statements_node(node); end - # : (Prism::StringNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#838 sig { override.params(node: ::Prism::StringNode).void } def visit_string_node(node); end - # : (Prism::SuperNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#844 sig { override.params(node: ::Prism::SuperNode).void } def visit_super_node(node); end - # : (Prism::SymbolNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#850 sig { override.params(node: ::Prism::SymbolNode).void } def visit_symbol_node(node); end - # : (Prism::TrueNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#856 sig { override.params(node: ::Prism::TrueNode).void } def visit_true_node(node); end - # : (Prism::UndefNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#862 sig { override.params(node: ::Prism::UndefNode).void } def visit_undef_node(node); end - # : (Prism::UnlessNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#868 sig { override.params(node: ::Prism::UnlessNode).void } def visit_unless_node(node); end - # : (Prism::UntilNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#874 sig { override.params(node: ::Prism::UntilNode).void } def visit_until_node(node); end - # : (Prism::WhenNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#880 sig { override.params(node: ::Prism::WhenNode).void } def visit_when_node(node); end - # : (Prism::WhileNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#886 sig { override.params(node: ::Prism::WhileNode).void } def visit_while_node(node); end - # : (Prism::XStringNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#892 sig { override.params(node: ::Prism::XStringNode).void } def visit_x_string_node(node); end - # : (Prism::YieldNode node) -> void - # # source://spoom//lib/spoom/visitor.rb#898 sig { override.params(node: ::Prism::YieldNode).void } def visit_yield_node(node); end diff --git a/Library/Homebrew/sorbet/rbi/gems/tapioca@0.16.11.rbi b/Library/Homebrew/sorbet/rbi/gems/tapioca@0.17.5.rbi similarity index 75% rename from Library/Homebrew/sorbet/rbi/gems/tapioca@0.16.11.rbi rename to Library/Homebrew/sorbet/rbi/gems/tapioca@0.17.5.rbi index 8c91462e79..4207d248fa 100644 --- a/Library/Homebrew/sorbet/rbi/gems/tapioca@0.16.11.rbi +++ b/Library/Homebrew/sorbet/rbi/gems/tapioca@0.17.5.rbi @@ -35,18 +35,21 @@ end # That's because RubyGems does alias-method-chain for Kernel#require and such, # so, if Bootsnap were to do prepend, it might end up breaking RubyGems. # -# source://tapioca//lib/tapioca/runtime/trackers/autoload.rb#68 +# source://tapioca//lib/tapioca/runtime/trackers/autoload.rb#66 class Module - # source://tapioca//lib/tapioca/runtime/trackers/mixin.rb#101 + # source://tapioca//lib/tapioca/runtime/trackers/mixin.rb#98 def append_features(constant); end - # source://tapioca//lib/tapioca/runtime/trackers/autoload.rb#71 + # source://tapioca//lib/tapioca/runtime/trackers/autoload.rb#69 def autoload(const_name, path); end - # source://tapioca//lib/tapioca/runtime/trackers/mixin.rb#111 + # source://tapioca//lib/tapioca/runtime/trackers/mixin.rb#108 def extend_object(obj); end - # source://tapioca//lib/tapioca/runtime/trackers/mixin.rb#91 + # source://tapioca//lib/tapioca/runtime/trackers/method_definition.rb#60 + def method_added(method_name); end + + # source://tapioca//lib/tapioca/runtime/trackers/mixin.rb#88 def prepend_features(constant); end end @@ -55,19 +58,7 @@ module RBI; end # source://tapioca//lib/tapioca/rbi_ext/model.rb#5 class RBI::Tree < ::RBI::NodeWithComments - # source://rbi/0.3.2/lib/rbi/model.rb#119 - def initialize(loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end - - # source://rbi/0.3.2/lib/rbi/model.rb#126 - def <<(node); end - - # source://rbi/0.3.2/lib/rbi/rewriters/add_sig_templates.rb#63 - def add_sig_templates!(with_todo_comment: T.unsafe(nil)); end - - # source://rbi/0.3.2/lib/rbi/rewriters/annotate.rb#46 - def annotate!(annotation, annotate_scopes: T.unsafe(nil), annotate_properties: T.unsafe(nil)); end - - # source://tapioca//lib/tapioca/rbi_ext/model.rb#38 + # source://tapioca//lib/tapioca/rbi_ext/model.rb#32 sig do params( name: ::String, @@ -77,19 +68,19 @@ class RBI::Tree < ::RBI::NodeWithComments end def create_class(name, superclass_name: T.unsafe(nil), &block); end - # source://tapioca//lib/tapioca/rbi_ext/model.rb#45 + # source://tapioca//lib/tapioca/rbi_ext/model.rb#39 sig { params(name: ::String, value: ::String).void } def create_constant(name, value:); end - # source://tapioca//lib/tapioca/rbi_ext/model.rb#55 + # source://tapioca//lib/tapioca/rbi_ext/model.rb#49 sig { params(name: ::String).void } def create_extend(name); end - # source://tapioca//lib/tapioca/rbi_ext/model.rb#50 + # source://tapioca//lib/tapioca/rbi_ext/model.rb#44 sig { params(name: ::String).void } def create_include(name); end - # source://tapioca//lib/tapioca/rbi_ext/model.rb#90 + # source://tapioca//lib/tapioca/rbi_ext/model.rb#65 sig do params( name: ::String, @@ -103,7 +94,7 @@ 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), &block); end - # source://tapioca//lib/tapioca/rbi_ext/model.rb#60 + # source://tapioca//lib/tapioca/rbi_ext/model.rb#54 sig { params(name: ::String).void } def create_mixes_in_class_methods(name); end @@ -115,7 +106,7 @@ 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#74 + # source://tapioca//lib/tapioca/rbi_ext/model.rb#59 sig do params( name: ::String, @@ -128,71 +119,21 @@ class RBI::Tree < ::RBI::NodeWithComments end def create_type_variable(name, type:, variance: T.unsafe(nil), fixed: T.unsafe(nil), upper: T.unsafe(nil), lower: T.unsafe(nil)); end - # source://rbi/0.3.2/lib/rbi/rewriters/deannotate.rb#38 - def deannotate!(annotation); end - - # source://rbi/0.3.2/lib/rbi/model.rb#132 - def empty?; end - - # source://rbi/0.3.2/lib/rbi/rewriters/filter_versions.rb#113 - def filter_versions!(version); end - - # source://rbi/0.3.2/lib/rbi/rewriters/flatten_singleton_methods.rb#58 - def flatten_singleton_methods!; end - - # source://rbi/0.3.2/lib/rbi/rewriters/flatten_visibilities.rb#57 - def flatten_visibilities!; end - - # source://rbi/0.3.2/lib/rbi/rewriters/group_nodes.rb#78 - def group_nodes!; end - - # source://rbi/0.3.2/lib/rbi/index.rb#64 - def index; end - - # source://rbi/0.3.2/lib/rbi/rewriters/merge_trees.rb#314 - def merge(other, left_name: T.unsafe(nil), right_name: T.unsafe(nil), keep: T.unsafe(nil)); end - - # source://rbi/0.3.2/lib/rbi/rewriters/nest_non_public_members.rb#43 - def nest_non_public_members!; end - - # source://rbi/0.3.2/lib/rbi/rewriters/nest_singleton_methods.rb#33 - def nest_singleton_methods!; end - - # source://rbi/0.3.2/lib/rbi/rewriters/nest_top_level_members.rb#60 - def nest_top_level_members!; end - - # source://rbi/0.3.2/lib/rbi/model.rb#116 - def nodes; end - - # source://rbi/0.3.2/lib/rbi/rewriters/attr_to_methods.rb#50 - def replace_attributes_with_methods!; end - - # source://rbi/0.3.2/lib/rbi/rewriters/sort_nodes.rb#118 - def sort_nodes!; end - - # source://rbi/0.3.2/lib/rbi/rewriters/translate_rbs_sigs.rb#82 - def translate_rbs_sigs!; end - private - # source://tapioca//lib/tapioca/rbi_ext/model.rb#123 + # source://tapioca//lib/tapioca/rbi_ext/model.rb#98 sig { params(node: ::RBI::Node).returns(::RBI::Node) } def create_node(node); end - # source://tapioca//lib/tapioca/rbi_ext/model.rb#118 + # source://tapioca//lib/tapioca/rbi_ext/model.rb#93 sig { returns(T::Hash[::String, ::RBI::Node]) } def nodes_cache; end end -# source://tapioca//lib/tapioca/rbi_ext/model.rb#133 +# source://tapioca//lib/tapioca/rbi_ext/model.rb#108 class RBI::TypedParam < ::T::Struct const :param, ::RBI::Param const :type, ::String - - class << self - # source://sorbet-runtime/0.5.12026/lib/types/struct.rb#13 - def inherited(s); end - end end # source://tapioca//lib/tapioca/sorbet_ext/generic_name_patch.rb#5 @@ -387,18 +328,12 @@ end # source://tapioca//lib/tapioca/runtime/trackers/autoload.rb#4 module Tapioca class << self - # source://tapioca//lib/tapioca.rb#20 - sig do - type_parameters(:Result) - .params( - blk: T.proc.returns(T.type_parameter(:Result)) - ).returns(T.type_parameter(:Result)) - end + # source://tapioca//lib/tapioca.rb#16 def silence_warnings(&blk); end end end -# source://tapioca//lib/tapioca.rb#39 +# source://tapioca//lib/tapioca.rb#35 Tapioca::BINARY_FILE = T.let(T.unsafe(nil), String) # source://tapioca//lib/tapioca/bundler_ext/auto_require_hook.rb#5 @@ -412,7 +347,7 @@ module Tapioca::BundlerExt; end module Tapioca::BundlerExt::AutoRequireHook requires_ancestor { Bundler::Dependency } - # source://tapioca//lib/tapioca/bundler_ext/auto_require_hook.rb#46 + # source://tapioca//lib/tapioca/bundler_ext/auto_require_hook.rb#41 sig { returns(T.untyped) } def autorequire; end @@ -426,7 +361,7 @@ module Tapioca::BundlerExt::AutoRequireHook sig { params(name: T.untyped).returns(T::Boolean) } def excluded?(name); end - # source://tapioca//lib/tapioca/bundler_ext/auto_require_hook.rb#36 + # source://tapioca//lib/tapioca/bundler_ext/auto_require_hook.rb#31 sig do type_parameters(:Result) .params( @@ -438,13 +373,13 @@ module Tapioca::BundlerExt::AutoRequireHook end end -# source://tapioca//lib/tapioca.rb#62 +# source://tapioca//lib/tapioca.rb#55 Tapioca::CENTRAL_REPO_ANNOTATIONS_DIR = T.let(T.unsafe(nil), String) -# source://tapioca//lib/tapioca.rb#61 +# source://tapioca//lib/tapioca.rb#54 Tapioca::CENTRAL_REPO_INDEX_PATH = T.let(T.unsafe(nil), String) -# source://tapioca//lib/tapioca.rb#60 +# source://tapioca//lib/tapioca.rb#53 Tapioca::CENTRAL_REPO_ROOT_URI = T.let(T.unsafe(nil), String) # source://tapioca//lib/tapioca/cli.rb#5 @@ -524,7 +459,7 @@ end # source://tapioca//lib/tapioca/commands.rb#5 module Tapioca::Commands; end -# @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. +# @abstract # # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#6 class Tapioca::Commands::AbstractDsl < ::Tapioca::Commands::CommandWithoutTracker @@ -533,7 +468,7 @@ class Tapioca::Commands::AbstractDsl < ::Tapioca::Commands::CommandWithoutTracke abstract! - # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#34 + # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#15 sig do params( requested_constants: T::Array[::String], @@ -560,15 +495,15 @@ class Tapioca::Commands::AbstractDsl < ::Tapioca::Commands::CommandWithoutTracke private - # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#107 + # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#88 sig { returns(T::Array[::String]) } def all_requested_constants; end - # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#313 + # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#284 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#237 + # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#208 sig do params( constant_name: ::String, @@ -579,80 +514,80 @@ class Tapioca::Commands::AbstractDsl < ::Tapioca::Commands::CommandWithoutTracke end def compile_dsl_rbi(constant_name, rbi, outpath: T.unsafe(nil), quiet: T.unsafe(nil)); end - # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#172 + # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#150 sig { params(constant_names: T::Array[::String], ignore_missing: T::Boolean).returns(T::Array[::Module]) } def constantize(constant_names, ignore_missing: T.unsafe(nil)); end - # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#197 + # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#175 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#373 + # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#344 sig { returns(T::Array[::String]) } def constants_from_requested_paths; end - # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#133 + # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#111 sig { returns(::Tapioca::Dsl::Pipeline) } def create_pipeline; end - # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#276 + # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#247 sig { params(constant_name: ::String).returns(::Pathname) } def dsl_rbi_filename(constant_name); end - # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#158 + # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#136 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#368 + # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#339 sig { params(constant: ::String).returns(::String) } def generate_command_for(constant); end - # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#79 + # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#60 sig { params(outpath: ::Pathname, quiet: T::Boolean).returns(T::Set[::Pathname]) } def generate_dsl_rbi_files(outpath, quiet:); end - # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#120 + # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#98 sig { void } def load_application; end - # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#255 + # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#226 sig { params(dir: ::Pathname).void } def perform_dsl_verification(dir); end - # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#115 + # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#93 sig { returns(::Tapioca::Dsl::Pipeline) } def pipeline; end - # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#264 + # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#235 sig { params(files: T::Set[::Pathname]).void } def purge_stale_dsl_rbi_files(files); end - # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#363 + # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#334 sig { params(constant: ::String).returns(::String) } def rbi_filename_for(constant); end - # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#344 + # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#315 sig { params(path: ::Pathname).returns(T::Array[::Pathname]) } def rbi_files_in(path); end - # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#322 + # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#293 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#217 + # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#195 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#351 + # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#322 sig { params(class_name: ::String).returns(::String) } def underscore(class_name); end - # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#281 + # source://tapioca//lib/tapioca/commands/abstract_dsl.rb#252 sig { params(tmp_dir: ::Pathname).returns(T::Hash[::String, ::Symbol]) } def verify_dsl_rbi(tmp_dir:); end end -# @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. +# @abstract # # source://tapioca//lib/tapioca/commands/abstract_gem.rb#6 class Tapioca::Commands::AbstractGem < ::Tapioca::Commands::Command @@ -661,7 +596,7 @@ class Tapioca::Commands::AbstractGem < ::Tapioca::Commands::Command abstract! - # source://tapioca//lib/tapioca/commands/abstract_gem.rb#33 + # source://tapioca//lib/tapioca/commands/abstract_gem.rb#15 sig do params( gem_names: T::Array[::String], @@ -687,70 +622,70 @@ class Tapioca::Commands::AbstractGem < ::Tapioca::Commands::Command private - # source://tapioca//lib/tapioca/commands/abstract_gem.rb#200 + # source://tapioca//lib/tapioca/commands/abstract_gem.rb#182 sig { returns(T::Array[::String]) } def added_rbis; end - # source://tapioca//lib/tapioca/commands/abstract_gem.rb#261 + # source://tapioca//lib/tapioca/commands/abstract_gem.rb#243 sig { params(cause: ::Symbol, files: T::Array[::String]).returns(::String) } def build_error_for_files(cause, files); end - # source://tapioca//lib/tapioca/commands/abstract_gem.rb#80 + # source://tapioca//lib/tapioca/commands/abstract_gem.rb#62 sig { params(gem: ::Tapioca::Gemfile::GemSpec).void } def compile_gem_rbi(gem); end - # source://tapioca//lib/tapioca/commands/abstract_gem.rb#195 + # source://tapioca//lib/tapioca/commands/abstract_gem.rb#177 sig { params(gem_name: ::String).returns(::Pathname) } def existing_rbi(gem_name); end - # source://tapioca//lib/tapioca/commands/abstract_gem.rb#243 + # source://tapioca//lib/tapioca/commands/abstract_gem.rb#225 sig { returns(T::Hash[::String, ::String]) } def existing_rbis; end - # source://tapioca//lib/tapioca/commands/abstract_gem.rb#207 + # source://tapioca//lib/tapioca/commands/abstract_gem.rb#189 sig { params(gem_name: ::String).returns(::Pathname) } def expected_rbi(gem_name); end - # source://tapioca//lib/tapioca/commands/abstract_gem.rb#249 + # source://tapioca//lib/tapioca/commands/abstract_gem.rb#231 sig { returns(T::Hash[::String, ::String]) } def expected_rbis; end - # source://tapioca//lib/tapioca/commands/abstract_gem.rb#212 + # source://tapioca//lib/tapioca/commands/abstract_gem.rb#194 sig { params(gem_name: ::String).returns(T::Boolean) } def gem_rbi_exists?(gem_name); end - # source://tapioca//lib/tapioca/commands/abstract_gem.rb#256 + # source://tapioca//lib/tapioca/commands/abstract_gem.rb#238 sig { params(gem_name: ::String, version: ::String).returns(::Pathname) } def gem_rbi_filename(gem_name, version); end - # source://tapioca//lib/tapioca/commands/abstract_gem.rb#266 + # source://tapioca//lib/tapioca/commands/abstract_gem.rb#248 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#237 + # source://tapioca//lib/tapioca/commands/abstract_gem.rb#219 sig { params(old_filename: ::Pathname, new_filename: ::Pathname).void } def move(old_filename, new_filename); end - # source://tapioca//lib/tapioca/commands/abstract_gem.rb#147 + # source://tapioca//lib/tapioca/commands/abstract_gem.rb#129 sig { void } def perform_additions; end - # source://tapioca//lib/tapioca/commands/abstract_gem.rb#120 + # source://tapioca//lib/tapioca/commands/abstract_gem.rb#102 sig { void } def perform_removals; end - # source://tapioca//lib/tapioca/commands/abstract_gem.rb#190 + # source://tapioca//lib/tapioca/commands/abstract_gem.rb#172 sig { returns(T::Array[::String]) } def removed_rbis; end - # source://tapioca//lib/tapioca/commands/abstract_gem.rb#217 + # source://tapioca//lib/tapioca/commands/abstract_gem.rb#199 sig { params(diff: T::Hash[::String, ::Symbol], command: ::Symbol).void } def report_diff_and_exit_if_out_of_date(diff, command); end end # source://tapioca//lib/tapioca/commands/annotations.rb#6 class Tapioca::Commands::Annotations < ::Tapioca::Commands::CommandWithoutTracker - # source://tapioca//lib/tapioca/commands/annotations.rb#18 + # source://tapioca//lib/tapioca/commands/annotations.rb#10 sig do params( central_repo_root_uris: T::Array[::String], @@ -764,71 +699,71 @@ class Tapioca::Commands::Annotations < ::Tapioca::Commands::CommandWithoutTracke private - # source://tapioca//lib/tapioca/commands/annotations.rb#197 + # source://tapioca//lib/tapioca/commands/annotations.rb#191 sig { params(name: ::String, content: ::String).returns(::String) } def add_header(name, content); end - # source://tapioca//lib/tapioca/commands/annotations.rb#217 + # source://tapioca//lib/tapioca/commands/annotations.rb#211 sig { params(name: ::String, content: ::String).returns(::String) } def apply_typed_override(name, content); end - # source://tapioca//lib/tapioca/commands/annotations.rb#39 + # source://tapioca//lib/tapioca/commands/annotations.rb#32 sig { override.void } def execute; end - # source://tapioca//lib/tapioca/commands/annotations.rb#136 - sig { params(repo_uris: T::Array[::String], gem_info: ::Tapioca::GemInfo).void } + # source://tapioca//lib/tapioca/commands/annotations.rb#129 + sig { params(repo_uris: T::Array[::String], gem_info: ::Tapioca::GemInfo).returns(T::Boolean) } def fetch_annotation(repo_uris, gem_info); end - # source://tapioca//lib/tapioca/commands/annotations.rb#113 + # source://tapioca//lib/tapioca/commands/annotations.rb#106 sig { params(project_gems: T::Array[::Tapioca::GemInfo]).returns(T::Array[::String]) } def fetch_annotations(project_gems); end - # source://tapioca//lib/tapioca/commands/annotations.rb#156 + # source://tapioca//lib/tapioca/commands/annotations.rb#150 sig { params(repo_uri: ::String, path: ::String).returns(T.nilable(::String)) } def fetch_file(repo_uri, path); end - # source://tapioca//lib/tapioca/commands/annotations.rb#173 + # source://tapioca//lib/tapioca/commands/annotations.rb#167 sig { params(repo_uri: ::String, path: ::String).returns(T.nilable(::String)) } def fetch_http_file(repo_uri, path); end - # source://tapioca//lib/tapioca/commands/annotations.rb#102 - sig { params(repo_uri: ::String, repo_number: T.nilable(::Integer)).returns(T.nilable(Tapioca::RepoIndex)) } + # source://tapioca//lib/tapioca/commands/annotations.rb#95 + sig { params(repo_uri: ::String, repo_number: T.nilable(::Integer)).returns(T.nilable(::Tapioca::RepoIndex)) } def fetch_index(repo_uri, repo_number:); end - # source://tapioca//lib/tapioca/commands/annotations.rb#81 - sig { returns(T::Hash[::String, Tapioca::RepoIndex]) } + # source://tapioca//lib/tapioca/commands/annotations.rb#74 + sig { returns(T::Hash[::String, ::Tapioca::RepoIndex]) } def fetch_indexes; end - # source://tapioca//lib/tapioca/commands/annotations.rb#165 + # source://tapioca//lib/tapioca/commands/annotations.rb#159 sig { params(repo_uri: ::String, path: ::String).returns(T.nilable(::String)) } def fetch_local_file(repo_uri, path); end - # source://tapioca//lib/tapioca/commands/annotations.rb#229 + # source://tapioca//lib/tapioca/commands/annotations.rb#223 sig { params(gem_version: ::Gem::Version, content: ::String).returns(::String) } def filter_versions(gem_version, content); end - # source://tapioca//lib/tapioca/commands/annotations.rb#50 + # source://tapioca//lib/tapioca/commands/annotations.rb#43 sig { returns(T::Array[::Tapioca::GemInfo]) } def list_gemfile_gems; end - # source://tapioca//lib/tapioca/commands/annotations.rb#237 + # source://tapioca//lib/tapioca/commands/annotations.rb#231 sig { params(gem_name: ::String, contents: T::Array[::String]).returns(T.nilable(::String)) } def merge_files(gem_name, contents); end - # source://tapioca//lib/tapioca/commands/annotations.rb#60 + # source://tapioca//lib/tapioca/commands/annotations.rb#53 sig { params(project_gems: T::Array[::Tapioca::GemInfo]).void } def remove_expired_annotations(project_gems); end - # source://tapioca//lib/tapioca/commands/annotations.rb#264 + # source://tapioca//lib/tapioca/commands/annotations.rb#258 sig { returns(T::Hash[::String, T.nilable(::String)]) } def repo_tokens; end - # source://tapioca//lib/tapioca/commands/annotations.rb#292 + # source://tapioca//lib/tapioca/commands/annotations.rb#286 sig { params(path: ::String, repo_uri: ::String, message: ::String).void } def say_http_error(path, repo_uri, message:); end - # source://tapioca//lib/tapioca/commands/annotations.rb#276 + # source://tapioca//lib/tapioca/commands/annotations.rb#270 sig { params(repo_uri: ::String).returns(T.nilable(::String)) } def token_for(repo_uri); end end @@ -838,7 +773,7 @@ class Tapioca::Commands::CheckShims < ::Tapioca::Commands::CommandWithoutTracker include ::Tapioca::SorbetHelper include ::Tapioca::RBIFilesHelper - # source://tapioca//lib/tapioca/commands/check_shims.rb#22 + # source://tapioca//lib/tapioca/commands/check_shims.rb#12 sig do params( gem_rbi_dir: ::String, @@ -854,12 +789,12 @@ class Tapioca::Commands::CheckShims < ::Tapioca::Commands::CommandWithoutTracker private - # source://tapioca//lib/tapioca/commands/check_shims.rb#44 + # source://tapioca//lib/tapioca/commands/check_shims.rb#35 sig { override.void } def execute; end end -# @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. +# @abstract # # source://tapioca//lib/tapioca/commands/command.rb#6 class Tapioca::Commands::Command @@ -876,17 +811,17 @@ class Tapioca::Commands::Command sig { void } def initialize; end - # source://thor/1.3.2/lib/thor/base.rb#155 + # source://tapioca//lib/tapioca/commands/command.rb#44 sig { returns(::Thor::Actions) } def file_writer; end - # source://tapioca//lib/tapioca/commands/command.rb#25 + # source://tapioca//lib/tapioca/commands/command.rb#26 sig(:final) { void } def run; end private - # source://tapioca//lib/tapioca/commands/command.rb#53 + # source://tapioca//lib/tapioca/commands/command.rb#47 sig do params( path: T.any(::Pathname, ::String), @@ -898,28 +833,29 @@ class Tapioca::Commands::Command end def create_file(path, content, force: T.unsafe(nil), skip: T.unsafe(nil), verbose: T.unsafe(nil)); end - # source://tapioca//lib/tapioca/commands/command.rb#37 + # source://tapioca//lib/tapioca/commands/command.rb#39 sig { params(command: ::Symbol, args: ::String).returns(::String) } def default_command(command, *args); end # @abstract + # @raise [NotImplementedError] # - # source://tapioca//lib/tapioca/commands/command.rb#34 + # source://tapioca//lib/tapioca/commands/command.rb#36 sig { abstract.void } def execute; end - # source://tapioca//lib/tapioca/commands/command.rb#63 + # source://tapioca//lib/tapioca/commands/command.rb#52 sig { params(path: T.any(::Pathname, ::String), verbose: T::Boolean).void } def remove_file(path, verbose: T.unsafe(nil)); end end -# source://tapioca//lib/tapioca/commands/command.rb#10 +# source://tapioca//lib/tapioca/commands/command.rb#12 class Tapioca::Commands::Command::FileWriter < ::Thor include ::Thor::Actions extend ::Thor::Actions::ClassMethods end -# @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. +# @abstract # # source://tapioca//lib/tapioca/commands/command_without_tracker.rb#6 class Tapioca::Commands::CommandWithoutTracker < ::Tapioca::Commands::Command @@ -932,37 +868,37 @@ end # source://tapioca//lib/tapioca/commands/configure.rb#6 class Tapioca::Commands::Configure < ::Tapioca::Commands::CommandWithoutTracker - # source://tapioca//lib/tapioca/commands/configure.rb#14 + # source://tapioca//lib/tapioca/commands/configure.rb#8 sig { params(sorbet_config: ::String, tapioca_config: ::String, default_postrequire: ::String).void } def initialize(sorbet_config:, tapioca_config:, default_postrequire:); end private - # source://tapioca//lib/tapioca/commands/configure.rb#79 + # source://tapioca//lib/tapioca/commands/configure.rb#74 sig { void } def create_binstub; end - # source://tapioca//lib/tapioca/commands/configure.rb#69 + # source://tapioca//lib/tapioca/commands/configure.rb#64 sig { void } def create_post_require; end - # source://tapioca//lib/tapioca/commands/configure.rb#40 + # source://tapioca//lib/tapioca/commands/configure.rb#35 sig { void } def create_sorbet_config; end - # source://tapioca//lib/tapioca/commands/configure.rb#50 + # source://tapioca//lib/tapioca/commands/configure.rb#45 sig { void } def create_tapioca_config; end - # source://tapioca//lib/tapioca/commands/configure.rb#32 + # source://tapioca//lib/tapioca/commands/configure.rb#27 sig { override.void } def execute; end - # source://tapioca//lib/tapioca/commands/configure.rb#92 + # source://tapioca//lib/tapioca/commands/configure.rb#87 sig { returns(::Bundler::Installer) } def installer; end - # source://tapioca//lib/tapioca/commands/configure.rb#97 + # source://tapioca//lib/tapioca/commands/configure.rb#92 sig { returns(T.any(::Bundler::StubSpecification, ::Gem::Specification)) } def spec; end end @@ -971,7 +907,7 @@ end class Tapioca::Commands::DslCompilerList < ::Tapioca::Commands::AbstractDsl private - # source://tapioca//lib/tapioca/commands/dsl_compiler_list.rb#10 + # source://tapioca//lib/tapioca/commands/dsl_compiler_list.rb#11 sig { override.void } def execute; end end @@ -980,7 +916,7 @@ end class Tapioca::Commands::DslGenerate < ::Tapioca::Commands::AbstractDsl private - # source://tapioca//lib/tapioca/commands/dsl_generate.rb#10 + # source://tapioca//lib/tapioca/commands/dsl_generate.rb#11 sig { override.void } def execute; end end @@ -989,7 +925,7 @@ end class Tapioca::Commands::DslVerify < ::Tapioca::Commands::AbstractDsl private - # source://tapioca//lib/tapioca/commands/dsl_verify.rb#10 + # source://tapioca//lib/tapioca/commands/dsl_verify.rb#11 sig { override.void } def execute; end end @@ -998,11 +934,11 @@ end class Tapioca::Commands::GemGenerate < ::Tapioca::Commands::AbstractGem private - # source://tapioca//lib/tapioca/commands/gem_generate.rb#10 + # source://tapioca//lib/tapioca/commands/gem_generate.rb#11 sig { override.void } def execute; end - # source://tapioca//lib/tapioca/commands/gem_generate.rb#74 + # source://tapioca//lib/tapioca/commands/gem_generate.rb#70 sig do params( gem: ::Tapioca::Gemfile::GemSpec, @@ -1011,7 +947,7 @@ class Tapioca::Commands::GemGenerate < ::Tapioca::Commands::AbstractGem end def gem_dependencies(gem, dependencies = T.unsafe(nil)); end - # source://tapioca//lib/tapioca/commands/gem_generate.rb#51 + # source://tapioca//lib/tapioca/commands/gem_generate.rb#52 sig { params(gem_names: T::Array[::String]).returns(T::Array[::Tapioca::Gemfile::GemSpec]) } def gems_to_generate(gem_names); end end @@ -1020,7 +956,7 @@ end class Tapioca::Commands::GemSync < ::Tapioca::Commands::AbstractGem private - # source://tapioca//lib/tapioca/commands/gem_sync.rb#10 + # source://tapioca//lib/tapioca/commands/gem_sync.rb#11 sig { override.void } def execute; end end @@ -1029,24 +965,24 @@ end class Tapioca::Commands::GemVerify < ::Tapioca::Commands::AbstractGem private - # source://tapioca//lib/tapioca/commands/gem_verify.rb#10 + # source://tapioca//lib/tapioca/commands/gem_verify.rb#11 sig { override.void } def execute; end - # source://tapioca//lib/tapioca/commands/gem_verify.rb#17 + # source://tapioca//lib/tapioca/commands/gem_verify.rb#18 sig { void } def perform_sync_verification; end end # source://tapioca//lib/tapioca/commands/require.rb#6 class Tapioca::Commands::Require < ::Tapioca::Commands::CommandWithoutTracker - # source://tapioca//lib/tapioca/commands/require.rb#13 + # source://tapioca//lib/tapioca/commands/require.rb#8 sig { params(requires_path: ::String, sorbet_config_path: ::String).void } def initialize(requires_path:, sorbet_config_path:); end private - # source://tapioca//lib/tapioca/commands/require.rb#23 + # source://tapioca//lib/tapioca/commands/require.rb#19 sig { override.void } def execute; end end @@ -1055,25 +991,25 @@ end class Tapioca::Commands::Todo < ::Tapioca::Commands::CommandWithoutTracker include ::Tapioca::SorbetHelper - # source://tapioca//lib/tapioca/commands/todo.rb#26 + # source://tapioca//lib/tapioca/commands/todo.rb#21 sig { params(todo_file: ::String, file_header: T::Boolean).void } def initialize(todo_file:, file_header:); end - # source://tapioca//lib/tapioca/commands/todo.rb#34 + # source://tapioca//lib/tapioca/commands/todo.rb#29 sig { void } def run_with_deprecation; end private - # source://tapioca//lib/tapioca/commands/todo.rb#44 + # source://tapioca//lib/tapioca/commands/todo.rb#40 sig { override.void } def execute; end - # source://tapioca//lib/tapioca/commands/todo.rb#68 + # source://tapioca//lib/tapioca/commands/todo.rb#64 sig { params(constants: T::Array[::String], command: ::String).returns(::RBI::File) } def rbi(constants, command:); end - # source://tapioca//lib/tapioca/commands/todo.rb#88 + # source://tapioca//lib/tapioca/commands/todo.rb#84 sig { returns(T::Array[::String]) } def unresolved_constants; end end @@ -1103,11 +1039,11 @@ module Tapioca::ConfigHelper private - # source://tapioca//lib/tapioca/helpers/config_helper.rb#153 + # source://tapioca//lib/tapioca/helpers/config_helper.rb#147 sig { params(msg: ::String).returns(::Tapioca::ConfigHelper::ConfigError) } def build_error(msg); end - # source://tapioca//lib/tapioca/helpers/config_helper.rb#178 + # source://tapioca//lib/tapioca/helpers/config_helper.rb#172 sig { params(config_file: ::String, errors: T::Array[::Tapioca::ConfigHelper::ConfigError]).returns(::String) } def build_error_message(config_file, errors); end @@ -1123,7 +1059,7 @@ module Tapioca::ConfigHelper sig { params(options: T::Hash[::Symbol, ::Thor::Option]).void } def filter_defaults(options); end - # source://tapioca//lib/tapioca/helpers/config_helper.rb#196 + # source://tapioca//lib/tapioca/helpers/config_helper.rb#187 sig do params( options: T.nilable(::Thor::CoreExt::HashWithIndifferentAccess) @@ -1135,7 +1071,7 @@ module Tapioca::ConfigHelper sig { params(config_file: ::String, config: T::Hash[T.untyped, T.untyped]).void } def validate_config!(config_file, config); end - # source://tapioca//lib/tapioca/helpers/config_helper.rb#102 + # source://tapioca//lib/tapioca/helpers/config_helper.rb#96 sig do params( command_options: T::Hash[::Symbol, ::Thor::Option], @@ -1146,64 +1082,54 @@ module Tapioca::ConfigHelper def validate_config_options(command_options, config_key, config_options); end end -# source://tapioca//lib/tapioca/helpers/config_helper.rb#148 +# source://tapioca//lib/tapioca/helpers/config_helper.rb#142 class Tapioca::ConfigHelper::ConfigError < ::T::Struct const :message_parts, T::Array[::Tapioca::ConfigHelper::ConfigErrorMessagePart] - - class << self - # source://sorbet-runtime/0.5.12026/lib/types/struct.rb#13 - def inherited(s); end - end end -# source://tapioca//lib/tapioca/helpers/config_helper.rb#143 +# source://tapioca//lib/tapioca/helpers/config_helper.rb#137 class Tapioca::ConfigHelper::ConfigErrorMessagePart < ::T::Struct const :message, ::String const :colors, T::Array[::Symbol] - - class << self - # source://sorbet-runtime/0.5.12026/lib/types/struct.rb#13 - def inherited(s); end - end end -# source://tapioca//lib/tapioca.rb#46 +# source://tapioca//lib/tapioca.rb#42 Tapioca::DEFAULT_ANNOTATIONS_DIR = T.let(T.unsafe(nil), String) -# source://tapioca//lib/tapioca.rb#42 +# source://tapioca//lib/tapioca.rb#38 Tapioca::DEFAULT_DSL_DIR = T.let(T.unsafe(nil), String) -# source://tapioca//lib/tapioca.rb#58 +# source://tapioca//lib/tapioca.rb#51 Tapioca::DEFAULT_ENVIRONMENT = T.let(T.unsafe(nil), String) -# source://tapioca//lib/tapioca.rb#43 +# source://tapioca//lib/tapioca.rb#39 Tapioca::DEFAULT_GEM_DIR = T.let(T.unsafe(nil), String) -# source://tapioca//lib/tapioca.rb#48 +# source://tapioca//lib/tapioca.rb#44 Tapioca::DEFAULT_OVERRIDES = T.let(T.unsafe(nil), Hash) -# source://tapioca//lib/tapioca.rb#40 +# source://tapioca//lib/tapioca.rb#36 Tapioca::DEFAULT_POSTREQUIRE_FILE = T.let(T.unsafe(nil), String) -# source://tapioca//lib/tapioca.rb#41 +# source://tapioca//lib/tapioca.rb#37 Tapioca::DEFAULT_RBI_DIR = T.let(T.unsafe(nil), String) -# source://tapioca//lib/tapioca/rbi_formatter.rb#31 +# source://tapioca//lib/tapioca/rbi_formatter.rb#25 Tapioca::DEFAULT_RBI_FORMATTER = T.let(T.unsafe(nil), Tapioca::RBIFormatter) -# source://tapioca//lib/tapioca.rb#57 +# source://tapioca//lib/tapioca.rb#50 Tapioca::DEFAULT_RBI_MAX_LINE_LENGTH = T.let(T.unsafe(nil), Integer) -# source://tapioca//lib/tapioca.rb#44 +# source://tapioca//lib/tapioca.rb#40 Tapioca::DEFAULT_SHIM_DIR = T.let(T.unsafe(nil), String) -# source://tapioca//lib/tapioca.rb#45 +# source://tapioca//lib/tapioca.rb#41 Tapioca::DEFAULT_TODO_FILE = T.let(T.unsafe(nil), String) # source://tapioca//lib/tapioca/dsl/compilers.rb#5 module Tapioca::Dsl; end -# @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. +# @abstract # # source://tapioca//lib/tapioca/dsl/compiler.rb#6 class Tapioca::Dsl::Compiler @@ -1219,7 +1145,7 @@ class Tapioca::Dsl::Compiler ConstantType = type_member { { upper: Module } } - # source://tapioca//lib/tapioca/dsl/compiler.rb#110 + # source://tapioca//lib/tapioca/dsl/compiler.rb#93 sig do params( pipeline: ::Tapioca::Dsl::Pipeline, @@ -1232,64 +1158,66 @@ class Tapioca::Dsl::Compiler # NOTE: This should eventually accept an `Error` object or `Exception` rather than simply a `String`. # - # source://tapioca//lib/tapioca/dsl/compiler.rb#128 + # source://tapioca//lib/tapioca/dsl/compiler.rb#112 sig { params(error: ::String).void } def add_error(error); end - # source://tapioca//lib/tapioca/dsl/compiler.rb#119 + # source://tapioca//lib/tapioca/dsl/compiler.rb#102 sig { params(compiler_name: ::String).returns(T::Boolean) } def compiler_enabled?(compiler_name); end - # source://tapioca//lib/tapioca/dsl/compiler.rb#20 + # source://tapioca//lib/tapioca/dsl/compiler.rb#22 sig { returns(ConstantType) } def constant; end # @abstract + # @raise [NotImplementedError] # - # source://tapioca//lib/tapioca/dsl/compiler.rb#124 + # source://tapioca//lib/tapioca/dsl/compiler.rb#108 sig { abstract.void } def decorate; end - # source://tapioca//lib/tapioca/dsl/compiler.rb#26 + # source://tapioca//lib/tapioca/dsl/compiler.rb#28 sig { returns(T::Hash[::String, T.untyped]) } def options; end - # source://tapioca//lib/tapioca/dsl/compiler.rb#23 + # source://tapioca//lib/tapioca/dsl/compiler.rb#25 sig { returns(::RBI::Tree) } def root; end private - # source://tapioca//lib/tapioca/dsl/compiler.rb#177 + # source://tapioca//lib/tapioca/dsl/compiler.rb#156 sig { params(method_def: T.any(::Method, ::UnboundMethod)).returns(T::Array[::RBI::TypedParam]) } def compile_method_parameters_to_rbi(method_def); end - # source://tapioca//lib/tapioca/dsl/compiler.rb#213 + # source://tapioca//lib/tapioca/dsl/compiler.rb#192 sig { params(method_def: T.any(::Method, ::UnboundMethod)).returns(::String) } def compile_method_return_type_to_rbi(method_def); end - # source://tapioca//lib/tapioca/dsl/compiler.rb#167 + # source://tapioca//lib/tapioca/dsl/compiler.rb#146 sig { params(scope: ::RBI::Scope, method_def: T.any(::Method, ::UnboundMethod), class_method: T::Boolean).void } def create_method_from_def(scope, method_def, class_method: T.unsafe(nil)); end # Get the types of each parameter from a method signature # - # source://tapioca//lib/tapioca/dsl/compiler.rb#141 + # source://tapioca//lib/tapioca/dsl/compiler.rb#120 sig { params(method_def: T.any(::Method, ::UnboundMethod), signature: T.untyped).returns(T::Array[::String]) } def parameters_types_from_signature(method_def, signature); end class << self # @abstract + # @raise [NotImplementedError] # - # source://tapioca//lib/tapioca/dsl/compiler.rb#39 + # source://tapioca//lib/tapioca/dsl/compiler.rb#42 sig { abstract.returns(T::Enumerable[::Module]) } def gather_constants; end - # source://tapioca//lib/tapioca/dsl/compiler.rb#34 + # source://tapioca//lib/tapioca/dsl/compiler.rb#36 sig { params(constant: ::Module).returns(T::Boolean) } def handles?(constant); end - # source://tapioca//lib/tapioca/dsl/compiler.rb#42 + # source://tapioca//lib/tapioca/dsl/compiler.rb#45 sig { returns(T::Set[::Module]) } def processable_constants; end @@ -1303,15 +1231,15 @@ class Tapioca::Dsl::Compiler private - # source://tapioca//lib/tapioca/dsl/compiler.rb#82 + # source://tapioca//lib/tapioca/dsl/compiler.rb#78 sig { returns(T::Enumerable[T::Class[T.anything]]) } def all_classes; end - # source://tapioca//lib/tapioca/dsl/compiler.rb#90 + # source://tapioca//lib/tapioca/dsl/compiler.rb#83 sig { returns(T::Enumerable[::Module]) } def all_modules; end - # source://tapioca//lib/tapioca/dsl/compiler.rb#68 + # source://tapioca//lib/tapioca/dsl/compiler.rb#64 sig do type_parameters(:U) .params( @@ -1337,7 +1265,7 @@ Tapioca::Dsl::Compilers::NAMESPACES = T.let(T.unsafe(nil), Array) # source://tapioca//lib/tapioca/dsl/pipeline.rb#6 class Tapioca::Dsl::Pipeline - # source://tapioca//lib/tapioca/dsl/pipeline.rb#40 + # source://tapioca//lib/tapioca/dsl/pipeline.rb#28 sig do params( requested_constants: T::Array[::Module], @@ -1357,15 +1285,15 @@ class Tapioca::Dsl::Pipeline sig { returns(T::Enumerable[T.class_of(Tapioca::Dsl::Compiler)]) } def active_compilers; end - # source://tapioca//lib/tapioca/dsl/pipeline.rb#110 + # source://tapioca//lib/tapioca/dsl/pipeline.rb#92 sig { params(error: ::String).void } def add_error(error); end - # source://tapioca//lib/tapioca/dsl/pipeline.rb#115 + # source://tapioca//lib/tapioca/dsl/pipeline.rb#97 sig { params(compiler_name: ::String).returns(T::Boolean) } def compiler_enabled?(compiler_name); end - # source://tapioca//lib/tapioca/dsl/pipeline.rb#124 + # source://tapioca//lib/tapioca/dsl/pipeline.rb#106 sig { returns(T::Array[T.class_of(Tapioca::Dsl::Compiler)]) } def compilers; end @@ -1385,7 +1313,7 @@ class Tapioca::Dsl::Pipeline sig { returns(T::Array[::Pathname]) } def requested_paths; end - # source://tapioca//lib/tapioca/dsl/pipeline.rb#70 + # source://tapioca//lib/tapioca/dsl/pipeline.rb#52 sig do type_parameters(:T) .params( @@ -1400,15 +1328,15 @@ class Tapioca::Dsl::Pipeline private - # source://tapioca//lib/tapioca/dsl/pipeline.rb#231 + # source://tapioca//lib/tapioca/dsl/pipeline.rb#199 sig { void } def abort_if_pending_migrations!; end - # source://tapioca//lib/tapioca/dsl/pipeline.rb#177 + # source://tapioca//lib/tapioca/dsl/pipeline.rb#145 sig { params(constants: T::Set[::Module]).returns(T::Set[::Module]) } def filter_anonymous_and_reloaded_constants(constants); end - # source://tapioca//lib/tapioca/dsl/pipeline.rb#141 + # source://tapioca//lib/tapioca/dsl/pipeline.rb#115 sig do params( requested_compilers: T::Array[T.class_of(Tapioca::Dsl::Compiler)], @@ -1417,7 +1345,7 @@ class Tapioca::Dsl::Pipeline end def gather_active_compilers(requested_compilers, excluded_compilers); end - # source://tapioca//lib/tapioca/dsl/pipeline.rb#155 + # source://tapioca//lib/tapioca/dsl/pipeline.rb#123 sig do params( requested_constants: T::Array[::Module], @@ -1427,11 +1355,11 @@ class Tapioca::Dsl::Pipeline end def gather_constants(requested_constants, requested_paths, skipped_constants); end - # source://tapioca//lib/tapioca/dsl/pipeline.rb#206 + # source://tapioca//lib/tapioca/dsl/pipeline.rb#174 sig { params(constant: ::Module).returns(T.nilable(::RBI::File)) } def rbi_for_constant(constant); end - # source://tapioca//lib/tapioca/dsl/pipeline.rb#225 + # source://tapioca//lib/tapioca/dsl/pipeline.rb#193 sig { params(error: ::String).void } def report_error(error); end end @@ -1453,7 +1381,7 @@ class Tapioca::Executor sig { params(queue: T::Array[T.untyped], number_of_workers: T.nilable(::Integer)).void } def initialize(queue, number_of_workers: T.unsafe(nil)); end - # source://tapioca//lib/tapioca/executor.rb#28 + # source://tapioca//lib/tapioca/executor.rb#22 sig do type_parameters(:T) .params( @@ -1464,7 +1392,7 @@ class Tapioca::Executor private - # source://tapioca//lib/tapioca/executor.rb#37 + # source://tapioca//lib/tapioca/executor.rb#31 sig { returns(::Integer) } def max_processors; end end @@ -1475,57 +1403,57 @@ Tapioca::Executor::MINIMUM_ITEMS_PER_WORKER = T.let(T.unsafe(nil), Integer) # source://tapioca//lib/tapioca/gem/events.rb#5 module Tapioca::Gem; end -# source://tapioca//lib/tapioca/gem/events.rb#77 +# source://tapioca//lib/tapioca/gem/events.rb#82 class Tapioca::Gem::ConstNodeAdded < ::Tapioca::Gem::NodeAdded - # source://tapioca//lib/tapioca/gem/events.rb#84 + # source://tapioca//lib/tapioca/gem/events.rb#89 sig { params(symbol: ::String, constant: ::Module, node: ::RBI::Const).void } def initialize(symbol, constant, node); end - # source://tapioca//lib/tapioca/gem/events.rb#81 + # source://tapioca//lib/tapioca/gem/events.rb#86 sig { returns(::RBI::Const) } def node; end end -# source://tapioca//lib/tapioca/gem/events.rb#26 +# source://tapioca//lib/tapioca/gem/events.rb#27 class Tapioca::Gem::ConstantFound < ::Tapioca::Gem::Event - # source://tapioca//lib/tapioca/gem/events.rb#36 - sig { params(symbol: ::String, constant: ::BasicObject).void } + # @return [ConstantFound] a new instance of ConstantFound + # + # source://tapioca//lib/tapioca/gem/events.rb#39 def initialize(symbol, constant); end - # source://tapioca//lib/tapioca/gem/events.rb#33 - sig { returns(::BasicObject) } + # source://tapioca//lib/tapioca/gem/events.rb#35 def constant; end - # source://tapioca//lib/tapioca/gem/events.rb#30 + # source://tapioca//lib/tapioca/gem/events.rb#31 sig { returns(::String) } def symbol; end end -# @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. +# @abstract # # source://tapioca//lib/tapioca/gem/events.rb#6 class Tapioca::Gem::Event abstract! end -# source://tapioca//lib/tapioca/gem/events.rb#43 +# source://tapioca//lib/tapioca/gem/events.rb#46 class Tapioca::Gem::ForeignConstantFound < ::Tapioca::Gem::ConstantFound - # source://tapioca//lib/tapioca/gem/events.rb#52 + # source://tapioca//lib/tapioca/gem/events.rb#56 sig { params(symbol: ::String, constant: ::Module).void } def initialize(symbol, constant); end - # source://tapioca//lib/tapioca/gem/events.rb#47 + # source://tapioca//lib/tapioca/gem/events.rb#51 sig { override.returns(::Module) } def constant; end end -# source://tapioca//lib/tapioca/gem/events.rb#103 +# source://tapioca//lib/tapioca/gem/events.rb#108 class Tapioca::Gem::ForeignScopeNodeAdded < ::Tapioca::Gem::ScopeNodeAdded; end # source://tapioca//lib/tapioca/gem/listeners/base.rb#6 module Tapioca::Gem::Listeners; end -# @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. +# @abstract # # source://tapioca//lib/tapioca/gem/listeners/base.rb#7 class Tapioca::Gem::Listeners::Base @@ -1565,11 +1493,11 @@ class Tapioca::Gem::Listeners::DynamicMixins < ::Tapioca::Gem::Listeners::Base private - # source://tapioca//lib/tapioca/gem/listeners/dynamic_mixins.rb#31 + # source://tapioca//lib/tapioca/gem/listeners/dynamic_mixins.rb#33 sig { override.params(event: ::Tapioca::Gem::NodeAdded).returns(T::Boolean) } def ignore?(event); end - # source://tapioca//lib/tapioca/gem/listeners/dynamic_mixins.rb#15 + # source://tapioca//lib/tapioca/gem/listeners/dynamic_mixins.rb#16 sig { override.params(event: ::Tapioca::Gem::ScopeNodeAdded).void } def on_scope(event); end end @@ -1581,15 +1509,15 @@ class Tapioca::Gem::Listeners::ForeignConstants < ::Tapioca::Gem::Listeners::Bas private - # source://tapioca//lib/tapioca/gem/listeners/foreign_constants.rb#60 + # source://tapioca//lib/tapioca/gem/listeners/foreign_constants.rb#58 sig { override.params(event: ::Tapioca::Gem::NodeAdded).returns(T::Boolean) } def ignore?(event); end - # source://tapioca//lib/tapioca/gem/listeners/foreign_constants.rb#55 + # source://tapioca//lib/tapioca/gem/listeners/foreign_constants.rb#52 sig { params(location: ::String).returns(T::Boolean) } def mixed_in_by_gem?(location); end - # source://tapioca//lib/tapioca/gem/listeners/foreign_constants.rb#15 + # source://tapioca//lib/tapioca/gem/listeners/foreign_constants.rb#16 sig { override.params(event: ::Tapioca::Gem::ScopeNodeAdded).void } def on_scope(event); end end @@ -1603,7 +1531,7 @@ class Tapioca::Gem::Listeners::Methods < ::Tapioca::Gem::Listeners::Base private - # source://tapioca//lib/tapioca/gem/listeners/methods.rb#35 + # source://tapioca//lib/tapioca/gem/listeners/methods.rb#28 sig do params( tree: ::RBI::Tree, @@ -1615,7 +1543,7 @@ class Tapioca::Gem::Listeners::Methods < ::Tapioca::Gem::Listeners::Base end def compile_directly_owned_methods(tree, module_name, mod, for_visibility = T.unsafe(nil), attached_class: T.unsafe(nil)); end - # source://tapioca//lib/tapioca/gem/listeners/methods.rb#71 + # source://tapioca//lib/tapioca/gem/listeners/methods.rb#56 sig do params( tree: ::RBI::Tree, @@ -1627,7 +1555,7 @@ class Tapioca::Gem::Listeners::Methods < ::Tapioca::Gem::Listeners::Base end def compile_method(tree, symbol_name, constant, method, visibility = T.unsafe(nil)); end - # source://tapioca//lib/tapioca/gem/listeners/methods.rb#211 + # source://tapioca//lib/tapioca/gem/listeners/methods.rb#212 sig { override.params(event: ::Tapioca::Gem::NodeAdded).returns(T::Boolean) } def ignore?(event); end @@ -1635,11 +1563,7 @@ class Tapioca::Gem::Listeners::Methods < ::Tapioca::Gem::Listeners::Base sig { params(constant: ::Module).returns(T.nilable(::UnboundMethod)) } def initialize_method_for(constant); end - # source://tapioca//lib/tapioca/gem/listeners/methods.rb#216 - sig { params(method: ::UnboundMethod).returns(T.untyped) } - def lookup_signature_of(method); end - - # source://tapioca//lib/tapioca/gem/listeners/methods.rb#172 + # source://tapioca//lib/tapioca/gem/listeners/methods.rb#177 sig { params(mod: ::Module).returns(T::Hash[::Symbol, T::Array[::Symbol]]) } def method_names_by_visibility(mod); end @@ -1657,15 +1581,15 @@ class Tapioca::Gem::Listeners::Methods < ::Tapioca::Gem::Listeners::Base # It walks up the ancestor tree via the `super_method` method; if any of the super # methods are owned by the constant, it means that the constant declares the method. # - # source://tapioca//lib/tapioca/gem/listeners/methods.rb#158 + # source://tapioca//lib/tapioca/gem/listeners/methods.rb#163 sig { params(method: ::UnboundMethod, constant: ::Module).returns(T::Boolean) } def method_owned_by_constant?(method, constant); end - # source://tapioca//lib/tapioca/gem/listeners/methods.rb#16 + # source://tapioca//lib/tapioca/gem/listeners/methods.rb#17 sig { override.params(event: ::Tapioca::Gem::ScopeNodeAdded).void } def on_scope(event); end - # source://tapioca//lib/tapioca/gem/listeners/methods.rb#181 + # source://tapioca//lib/tapioca/gem/listeners/methods.rb#186 sig { params(constant: ::Module, method_name: ::String).returns(T::Boolean) } def struct_method?(constant, method_name); end end @@ -1677,7 +1601,7 @@ class Tapioca::Gem::Listeners::Mixins < ::Tapioca::Gem::Listeners::Base private - # source://tapioca//lib/tapioca/gem/listeners/mixins.rb#42 + # source://tapioca//lib/tapioca/gem/listeners/mixins.rb#36 sig do params( tree: ::RBI::Tree, @@ -1688,15 +1612,15 @@ class Tapioca::Gem::Listeners::Mixins < ::Tapioca::Gem::Listeners::Base end def add_mixins(tree, constant, mods, mixin_type); end - # source://tapioca//lib/tapioca/gem/listeners/mixins.rb#84 + # source://tapioca//lib/tapioca/gem/listeners/mixins.rb#72 sig { params(mixin_name: ::String).returns(T::Boolean) } def filtered_mixin?(mixin_name); end - # source://tapioca//lib/tapioca/gem/listeners/mixins.rb#91 + # source://tapioca//lib/tapioca/gem/listeners/mixins.rb#79 sig { params(constant: ::Module).returns(T::Array[::Module]) } def interesting_ancestors_of(constant); end - # source://tapioca//lib/tapioca/gem/listeners/mixins.rb#75 + # source://tapioca//lib/tapioca/gem/listeners/mixins.rb#63 sig do params( constant: ::Module, @@ -1706,7 +1630,7 @@ class Tapioca::Gem::Listeners::Mixins < ::Tapioca::Gem::Listeners::Base end def mixed_in_by_gem?(constant, mixin, mixin_type); end - # source://tapioca//lib/tapioca/gem/listeners/mixins.rb#15 + # source://tapioca//lib/tapioca/gem/listeners/mixins.rb#16 sig { override.params(event: ::Tapioca::Gem::ScopeNodeAdded).void } def on_scope(event); end end @@ -1718,11 +1642,11 @@ class Tapioca::Gem::Listeners::RemoveEmptyPayloadScopes < ::Tapioca::Gem::Listen private - # source://tapioca//lib/tapioca/gem/listeners/remove_empty_payload_scopes.rb#20 + # source://tapioca//lib/tapioca/gem/listeners/remove_empty_payload_scopes.rb#22 sig { override.params(event: ::Tapioca::Gem::NodeAdded).returns(T::Boolean) } def ignore?(event); end - # source://tapioca//lib/tapioca/gem/listeners/remove_empty_payload_scopes.rb#15 + # source://tapioca//lib/tapioca/gem/listeners/remove_empty_payload_scopes.rb#16 sig { override.params(event: ::Tapioca::Gem::ScopeNodeAdded).void } def on_scope(event); end end @@ -1731,11 +1655,11 @@ end class Tapioca::Gem::Listeners::SorbetEnums < ::Tapioca::Gem::Listeners::Base private - # source://tapioca//lib/tapioca/gem/listeners/sorbet_enums.rb#28 + # source://tapioca//lib/tapioca/gem/listeners/sorbet_enums.rb#30 sig { override.params(event: ::Tapioca::Gem::NodeAdded).returns(T::Boolean) } def ignore?(event); end - # source://tapioca//lib/tapioca/gem/listeners/sorbet_enums.rb#13 + # source://tapioca//lib/tapioca/gem/listeners/sorbet_enums.rb#14 sig { override.params(event: ::Tapioca::Gem::ScopeNodeAdded).void } def on_scope(event); end end @@ -1747,11 +1671,11 @@ class Tapioca::Gem::Listeners::SorbetHelpers < ::Tapioca::Gem::Listeners::Base private - # source://tapioca//lib/tapioca/gem/listeners/sorbet_helpers.rb#27 + # source://tapioca//lib/tapioca/gem/listeners/sorbet_helpers.rb#29 sig { override.params(event: ::Tapioca::Gem::NodeAdded).returns(T::Boolean) } def ignore?(event); end - # source://tapioca//lib/tapioca/gem/listeners/sorbet_helpers.rb#15 + # source://tapioca//lib/tapioca/gem/listeners/sorbet_helpers.rb#16 sig { override.params(event: ::Tapioca::Gem::ScopeNodeAdded).void } def on_scope(event); end end @@ -1763,11 +1687,11 @@ class Tapioca::Gem::Listeners::SorbetProps < ::Tapioca::Gem::Listeners::Base private - # source://tapioca//lib/tapioca/gem/listeners/sorbet_props.rb#33 + # source://tapioca//lib/tapioca/gem/listeners/sorbet_props.rb#35 sig { override.params(event: ::Tapioca::Gem::NodeAdded).returns(T::Boolean) } def ignore?(event); end - # source://tapioca//lib/tapioca/gem/listeners/sorbet_props.rb#14 + # source://tapioca//lib/tapioca/gem/listeners/sorbet_props.rb#15 sig { override.params(event: ::Tapioca::Gem::ScopeNodeAdded).void } def on_scope(event); end end @@ -1776,11 +1700,11 @@ end class Tapioca::Gem::Listeners::SorbetRequiredAncestors < ::Tapioca::Gem::Listeners::Base private - # source://tapioca//lib/tapioca/gem/listeners/sorbet_required_ancestors.rb#23 + # source://tapioca//lib/tapioca/gem/listeners/sorbet_required_ancestors.rb#25 sig { override.params(event: ::Tapioca::Gem::NodeAdded).returns(T::Boolean) } def ignore?(event); end - # source://tapioca//lib/tapioca/gem/listeners/sorbet_required_ancestors.rb#13 + # source://tapioca//lib/tapioca/gem/listeners/sorbet_required_ancestors.rb#14 sig { override.params(event: ::Tapioca::Gem::ScopeNodeAdded).void } def on_scope(event); end end @@ -1794,19 +1718,19 @@ class Tapioca::Gem::Listeners::SorbetSignatures < ::Tapioca::Gem::Listeners::Bas private - # source://tapioca//lib/tapioca/gem/listeners/sorbet_signatures.rb#26 + # source://tapioca//lib/tapioca/gem/listeners/sorbet_signatures.rb#27 sig { params(signature: T.untyped, parameters: T::Array[[::Symbol, ::String]]).returns(::RBI::Sig) } def compile_signature(signature, parameters); end - # source://tapioca//lib/tapioca/gem/listeners/sorbet_signatures.rb#79 + # source://tapioca//lib/tapioca/gem/listeners/sorbet_signatures.rb#81 sig { override.params(event: ::Tapioca::Gem::NodeAdded).returns(T::Boolean) } def ignore?(event); end - # source://tapioca//lib/tapioca/gem/listeners/sorbet_signatures.rb#18 + # source://tapioca//lib/tapioca/gem/listeners/sorbet_signatures.rb#19 sig { override.params(event: ::Tapioca::Gem::MethodNodeAdded).void } def on_method(event); end - # source://tapioca//lib/tapioca/gem/listeners/sorbet_signatures.rb#68 + # source://tapioca//lib/tapioca/gem/listeners/sorbet_signatures.rb#69 sig { params(signature: T.untyped).returns(T::Boolean) } def signature_final?(signature); end end @@ -1821,19 +1745,19 @@ class Tapioca::Gem::Listeners::SorbetTypeVariables < ::Tapioca::Gem::Listeners:: private - # source://tapioca//lib/tapioca/gem/listeners/sorbet_type_variables.rb#27 + # source://tapioca//lib/tapioca/gem/listeners/sorbet_type_variables.rb#28 sig { params(tree: ::RBI::Tree, constant: ::Module).void } def compile_type_variable_declarations(tree, constant); end - # source://tapioca//lib/tapioca/gem/listeners/sorbet_type_variables.rb#63 + # source://tapioca//lib/tapioca/gem/listeners/sorbet_type_variables.rb#65 sig { override.params(event: ::Tapioca::Gem::NodeAdded).returns(T::Boolean) } def ignore?(event); end - # source://tapioca//lib/tapioca/gem/listeners/sorbet_type_variables.rb#50 + # source://tapioca//lib/tapioca/gem/listeners/sorbet_type_variables.rb#51 sig { params(type_variable: ::Tapioca::TypeVariableModule).returns(T.nilable(::RBI::Node)) } def node_from_type_variable(type_variable); end - # source://tapioca//lib/tapioca/gem/listeners/sorbet_type_variables.rb#15 + # source://tapioca//lib/tapioca/gem/listeners/sorbet_type_variables.rb#16 sig { override.params(event: ::Tapioca::Gem::ScopeNodeAdded).void } def on_scope(event); end end @@ -1842,19 +1766,19 @@ end class Tapioca::Gem::Listeners::SourceLocation < ::Tapioca::Gem::Listeners::Base private - # source://tapioca//lib/tapioca/gem/listeners/source_location.rb#41 + # source://tapioca//lib/tapioca/gem/listeners/source_location.rb#48 sig { params(node: ::RBI::NodeWithComments, file: T.nilable(::String), line: T.nilable(::Integer)).void } def add_source_location_comment(node, file, line); end - # source://tapioca//lib/tapioca/gem/listeners/source_location.rb#13 + # source://tapioca//lib/tapioca/gem/listeners/source_location.rb#14 sig { override.params(event: ::Tapioca::Gem::ConstNodeAdded).void } def on_const(event); end - # source://tapioca//lib/tapioca/gem/listeners/source_location.rb#35 + # source://tapioca//lib/tapioca/gem/listeners/source_location.rb#38 sig { override.params(event: ::Tapioca::Gem::MethodNodeAdded).void } def on_method(event); end - # source://tapioca//lib/tapioca/gem/listeners/source_location.rb#19 + # source://tapioca//lib/tapioca/gem/listeners/source_location.rb#21 sig { override.params(event: ::Tapioca::Gem::ScopeNodeAdded).void } def on_scope(event); end end @@ -1866,53 +1790,57 @@ class Tapioca::Gem::Listeners::Subconstants < ::Tapioca::Gem::Listeners::Base private - # source://tapioca//lib/tapioca/gem/listeners/subconstants.rb#35 + # source://tapioca//lib/tapioca/gem/listeners/subconstants.rb#37 sig { override.params(event: ::Tapioca::Gem::NodeAdded).returns(T::Boolean) } def ignore?(event); end - # source://tapioca//lib/tapioca/gem/listeners/subconstants.rb#15 + # source://tapioca//lib/tapioca/gem/listeners/subconstants.rb#16 sig { override.params(event: ::Tapioca::Gem::ScopeNodeAdded).void } def on_scope(event); end end # source://tapioca//lib/tapioca/gem/listeners/yard_doc.rb#7 class Tapioca::Gem::Listeners::YardDoc < ::Tapioca::Gem::Listeners::Base - # source://tapioca//lib/tapioca/gem/listeners/yard_doc.rb#27 + # source://tapioca//lib/tapioca/gem/listeners/yard_doc.rb#25 sig { params(pipeline: ::Tapioca::Gem::Pipeline).void } def initialize(pipeline); end private - # source://tapioca//lib/tapioca/gem/listeners/yard_doc.rb#55 + # source://tapioca//lib/tapioca/gem/listeners/yard_doc.rb#61 sig { params(name: ::String, sigs: T::Array[::RBI::Sig]).returns(T::Array[::RBI::Comment]) } def documentation_comments(name, sigs: T.unsafe(nil)); end - # source://tapioca//lib/tapioca/gem/listeners/yard_doc.rb#99 + # source://tapioca//lib/tapioca/gem/listeners/yard_doc.rb#106 sig { override.params(event: ::Tapioca::Gem::NodeAdded).returns(T::Boolean) } def ignore?(event); end - # source://tapioca//lib/tapioca/gem/listeners/yard_doc.rb#36 + # source://tapioca//lib/tapioca/gem/listeners/yard_doc.rb#40 sig { override.params(event: ::Tapioca::Gem::ConstNodeAdded).void } def on_const(event); end - # source://tapioca//lib/tapioca/gem/listeners/yard_doc.rb#46 + # source://tapioca//lib/tapioca/gem/listeners/yard_doc.rb#52 sig { override.params(event: ::Tapioca::Gem::MethodNodeAdded).void } def on_method(event); end - # source://tapioca//lib/tapioca/gem/listeners/yard_doc.rb#41 + # source://tapioca//lib/tapioca/gem/listeners/yard_doc.rb#46 sig { override.params(event: ::Tapioca::Gem::ScopeNodeAdded).void } def on_scope(event); end + + # source://tapioca//lib/tapioca/gem/listeners/yard_doc.rb#34 + sig { params(line: ::String).returns(T::Boolean) } + def rbs_comment?(line); end end # source://tapioca//lib/tapioca/gem/listeners/yard_doc.rb#10 Tapioca::Gem::Listeners::YardDoc::IGNORED_COMMENTS = T.let(T.unsafe(nil), Array) -# source://tapioca//lib/tapioca/gem/listeners/yard_doc.rb#24 +# source://tapioca//lib/tapioca/gem/listeners/yard_doc.rb#22 Tapioca::Gem::Listeners::YardDoc::IGNORED_SIG_TAGS = T.let(T.unsafe(nil), Array) -# source://tapioca//lib/tapioca/gem/events.rb#105 +# source://tapioca//lib/tapioca/gem/events.rb#110 class Tapioca::Gem::MethodNodeAdded < ::Tapioca::Gem::NodeAdded - # source://tapioca//lib/tapioca/gem/events.rb#130 + # source://tapioca//lib/tapioca/gem/events.rb#126 sig do params( symbol: ::String, @@ -1925,38 +1853,38 @@ class Tapioca::Gem::MethodNodeAdded < ::Tapioca::Gem::NodeAdded end def initialize(symbol, constant, method, node, signature, parameters); end - # source://tapioca//lib/tapioca/gem/events.rb#109 + # source://tapioca//lib/tapioca/gem/events.rb#114 sig { returns(::UnboundMethod) } def method; end - # source://tapioca//lib/tapioca/gem/events.rb#112 + # source://tapioca//lib/tapioca/gem/events.rb#117 sig { returns(::RBI::Method) } def node; end - # source://tapioca//lib/tapioca/gem/events.rb#118 + # source://tapioca//lib/tapioca/gem/events.rb#123 sig { returns(T::Array[[::Symbol, ::String]]) } def parameters; end - # source://tapioca//lib/tapioca/gem/events.rb#115 + # source://tapioca//lib/tapioca/gem/events.rb#120 sig { returns(T.untyped) } def signature; end end -# @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. +# @abstract # -# source://tapioca//lib/tapioca/gem/events.rb#57 +# source://tapioca//lib/tapioca/gem/events.rb#61 class Tapioca::Gem::NodeAdded < ::Tapioca::Gem::Event abstract! - # source://tapioca//lib/tapioca/gem/events.rb#70 + # source://tapioca//lib/tapioca/gem/events.rb#75 sig { params(symbol: ::String, constant: ::Module).void } def initialize(symbol, constant); end - # source://tapioca//lib/tapioca/gem/events.rb#67 + # source://tapioca//lib/tapioca/gem/events.rb#72 sig { returns(::Module) } def constant; end - # source://tapioca//lib/tapioca/gem/events.rb#64 + # source://tapioca//lib/tapioca/gem/events.rb#69 sig { returns(::String) } def symbol; end end @@ -1968,7 +1896,7 @@ class Tapioca::Gem::Pipeline include ::Tapioca::SorbetHelper include ::Tapioca::RBIHelper - # source://tapioca//lib/tapioca/gem/pipeline.rb#27 + # source://tapioca//lib/tapioca/gem/pipeline.rb#20 sig do params( gem: ::Tapioca::Gemfile::GemSpec, @@ -1979,11 +1907,11 @@ class Tapioca::Gem::Pipeline end def initialize(gem, error_handler:, include_doc: T.unsafe(nil), include_loc: T.unsafe(nil)); end - # source://tapioca//lib/tapioca/gem/pipeline.rb#64 + # source://tapioca//lib/tapioca/gem/pipeline.rb#57 sig { returns(::RBI::Tree) } def compile; end - # source://tapioca//lib/tapioca/gem/pipeline.rb#135 + # source://tapioca//lib/tapioca/gem/pipeline.rb#111 sig { params(name: T.any(::String, ::Symbol)).returns(T::Boolean) } def constant_in_gem?(name); end @@ -1995,33 +1923,35 @@ class Tapioca::Gem::Pipeline sig { returns(::Tapioca::Gemfile::GemSpec) } def gem; end - # source://tapioca//lib/tapioca/gem/pipeline.rb#153 - sig { params(method: ::UnboundMethod).returns(T::Boolean) } - def method_in_gem?(method); end + # source://tapioca//lib/tapioca/gem/pipeline.rb#149 + sig do + params( + method_name: ::Symbol, + owner: ::Module + ).returns(::Tapioca::Gem::Pipeline::MethodDefinitionLookupResult) + end + def method_definition_in_gem(method_name, owner); end - # Helpers - # - # source://tapioca//lib/tapioca/gem/pipeline.rb#163 + # source://tapioca//lib/tapioca/gem/pipeline.rb#175 sig { params(constant: ::Module).returns(T.nilable(::String)) } def name_of(constant); end - # source://tapioca//lib/tapioca/gem/pipeline.rb#87 + # source://tapioca//lib/tapioca/gem/pipeline.rb#81 sig { params(symbol: ::String, constant: ::Module, node: ::RBI::Const).void } def push_const(symbol, constant, node); end - # source://tapioca//lib/tapioca/gem/pipeline.rb#77 - sig { params(symbol: ::String, constant: ::BasicObject).void } + # source://tapioca//lib/tapioca/gem/pipeline.rb#71 def push_constant(symbol, constant); end - # source://tapioca//lib/tapioca/gem/pipeline.rb#82 + # source://tapioca//lib/tapioca/gem/pipeline.rb#76 sig { params(symbol: ::String, constant: ::Module).void } def push_foreign_constant(symbol, constant); end - # source://tapioca//lib/tapioca/gem/pipeline.rb#101 + # source://tapioca//lib/tapioca/gem/pipeline.rb#91 sig { params(symbol: ::String, constant: ::Module, node: ::RBI::Scope).void } def push_foreign_scope(symbol, constant, node); end - # source://tapioca//lib/tapioca/gem/pipeline.rb#115 + # source://tapioca//lib/tapioca/gem/pipeline.rb#96 sig do params( symbol: ::String, @@ -2034,169 +1964,185 @@ class Tapioca::Gem::Pipeline end def push_method(symbol, constant, method, node, signature, parameters); end - # source://tapioca//lib/tapioca/gem/pipeline.rb#94 + # source://tapioca//lib/tapioca/gem/pipeline.rb#86 sig { params(symbol: ::String, constant: ::Module, node: ::RBI::Scope).void } def push_scope(symbol, constant, node); end - # Events handling - # - # source://tapioca//lib/tapioca/gem/pipeline.rb#72 + # source://tapioca//lib/tapioca/gem/pipeline.rb#65 sig { params(symbol: ::String).void } def push_symbol(symbol); end - # Constants and properties filtering - # - # source://tapioca//lib/tapioca/gem/pipeline.rb#122 + # source://tapioca//lib/tapioca/gem/pipeline.rb#103 sig { params(symbol_name: ::String).returns(T::Boolean) } def symbol_in_payload?(symbol_name); end private - # source://tapioca//lib/tapioca/gem/pipeline.rb#456 + # source://tapioca//lib/tapioca/gem/pipeline.rb#472 sig { params(name: ::String).void } def add_to_alias_namespace(name); end - # source://tapioca//lib/tapioca/gem/pipeline.rb#461 + # source://tapioca//lib/tapioca/gem/pipeline.rb#477 sig { params(name: ::String).returns(T::Boolean) } def alias_namespaced?(name); end - # source://tapioca//lib/tapioca/gem/pipeline.rb#260 + # source://tapioca//lib/tapioca/gem/pipeline.rb#273 sig { params(name: ::String, constant: ::Module).void } def compile_alias(name, constant); end - # source://tapioca//lib/tapioca/gem/pipeline.rb#246 - sig { params(symbol: ::String, constant: ::BasicObject).void } + # source://tapioca//lib/tapioca/gem/pipeline.rb#259 def compile_constant(symbol, constant); end - # Compiling - # - # source://tapioca//lib/tapioca/gem/pipeline.rb#235 + # source://tapioca//lib/tapioca/gem/pipeline.rb#247 sig { params(symbol: ::String, constant: ::Module).void } def compile_foreign_constant(symbol, constant); end - # source://tapioca//lib/tapioca/gem/pipeline.rb#314 + # source://tapioca//lib/tapioca/gem/pipeline.rb#328 sig { params(name: ::String, constant: ::Module).void } def compile_module(name, constant); end - # source://tapioca//lib/tapioca/gem/pipeline.rb#281 - sig { params(name: ::String, value: ::BasicObject).void } + # source://tapioca//lib/tapioca/gem/pipeline.rb#295 def compile_object(name, value); end - # source://tapioca//lib/tapioca/gem/pipeline.rb#325 + # source://tapioca//lib/tapioca/gem/pipeline.rb#339 sig { params(name: ::String, constant: ::Module).returns(::RBI::Scope) } def compile_scope(name, constant); end - # source://tapioca//lib/tapioca/gem/pipeline.rb#339 + # source://tapioca//lib/tapioca/gem/pipeline.rb#353 sig { params(constant: T::Class[T.anything]).returns(T.nilable(::String)) } def compile_superclass(constant); end - # source://tapioca//lib/tapioca/gem/pipeline.rb#437 + # source://tapioca//lib/tapioca/gem/pipeline.rb#453 sig { params(constant: ::Module, strict: T::Boolean).returns(T::Boolean) } def defined_in_gem?(constant, strict: T.unsafe(nil)); end - # source://tapioca//lib/tapioca/gem/pipeline.rb#193 + # source://tapioca//lib/tapioca/gem/pipeline.rb#205 sig { params(event: ::Tapioca::Gem::Event).void } def dispatch(event); end - # Helpers - # - # source://tapioca//lib/tapioca/gem/pipeline.rb#480 + # source://tapioca//lib/tapioca/gem/pipeline.rb#496 sig { params(constant: T.all(::Module, ::T::Generic)).returns(::String) } def generic_name_of(constant); end - # source://tapioca//lib/tapioca/gem/pipeline.rb#449 + # source://tapioca//lib/tapioca/gem/pipeline.rb#465 sig { params(constant: ::Module).returns(T::Set[::String]) } def get_file_candidates(constant); end - # source://tapioca//lib/tapioca/gem/pipeline.rb#178 + # source://tapioca//lib/tapioca/gem/pipeline.rb#190 sig { params(gem: ::Tapioca::Gemfile::GemSpec).returns(T::Set[::String]) } def load_bootstrap_symbols(gem); end - # source://tapioca//lib/tapioca/gem/pipeline.rb#496 + # source://tapioca//lib/tapioca/gem/pipeline.rb#512 sig { params(constant: ::Module, class_name: T.nilable(::String)).returns(T.nilable(::String)) } def name_of_proxy_target(constant, class_name); end - # Events handling - # - # source://tapioca//lib/tapioca/gem/pipeline.rb#188 + # source://tapioca//lib/tapioca/gem/pipeline.rb#200 sig { returns(::Tapioca::Gem::Event) } def next_event; end - # source://tapioca//lib/tapioca/gem/pipeline.rb#216 + # source://tapioca//lib/tapioca/gem/pipeline.rb#228 sig { params(event: ::Tapioca::Gem::ConstantFound).void } def on_constant(event); end - # source://tapioca//lib/tapioca/gem/pipeline.rb#228 + # source://tapioca//lib/tapioca/gem/pipeline.rb#240 sig { params(event: ::Tapioca::Gem::NodeAdded).void } def on_node(event); end - # source://tapioca//lib/tapioca/gem/pipeline.rb#207 + # source://tapioca//lib/tapioca/gem/pipeline.rb#219 sig { params(event: ::Tapioca::Gem::SymbolFound).void } def on_symbol(event); end - # source://tapioca//lib/tapioca/gem/pipeline.rb#468 + # source://tapioca//lib/tapioca/gem/pipeline.rb#484 sig { params(name: ::String).void } def seen!(name); end - # source://tapioca//lib/tapioca/gem/pipeline.rb#473 + # source://tapioca//lib/tapioca/gem/pipeline.rb#489 sig { params(name: ::String).returns(T::Boolean) } def seen?(name); end - # source://tapioca//lib/tapioca/gem/pipeline.rb#407 + # source://tapioca//lib/tapioca/gem/pipeline.rb#422 sig { params(name: ::String, constant: ::Module).returns(T::Boolean) } def skip_alias?(name, constant); end - # source://tapioca//lib/tapioca/gem/pipeline.rb#395 - sig { params(name: ::String, constant: T.anything).returns(T::Boolean) } + # @return [Boolean] + # + # source://tapioca//lib/tapioca/gem/pipeline.rb#410 def skip_constant?(name, constant); end - # source://tapioca//lib/tapioca/gem/pipeline.rb#424 + # source://tapioca//lib/tapioca/gem/pipeline.rb#440 sig { params(name: ::String, constant: ::Module).returns(T::Boolean) } def skip_foreign_constant?(name, constant); end - # source://tapioca//lib/tapioca/gem/pipeline.rb#429 + # source://tapioca//lib/tapioca/gem/pipeline.rb#445 sig { params(name: ::String, constant: ::Module).returns(T::Boolean) } def skip_module?(name, constant); end - # source://tapioca//lib/tapioca/gem/pipeline.rb#416 - sig { params(name: ::String, constant: ::BasicObject).returns(T::Boolean) } + # @return [Boolean] + # + # source://tapioca//lib/tapioca/gem/pipeline.rb#432 def skip_object?(name, constant); end - # Constants and properties filtering - # - # source://tapioca//lib/tapioca/gem/pipeline.rb#390 + # source://tapioca//lib/tapioca/gem/pipeline.rb#404 sig { params(name: ::String).returns(T::Boolean) } def skip_symbol?(name); end end -# this looks something like: -# "(eval at /path/to/file.rb:123)" -# and we are just interested in the "/path/to/file.rb" part -# -# source://tapioca//lib/tapioca/gem/pipeline.rb#132 -Tapioca::Gem::Pipeline::EVAL_SOURCE_FILE_PATTERN = T.let(T.unsafe(nil), Regexp) - # source://tapioca//lib/tapioca/gem/pipeline.rb#11 Tapioca::Gem::Pipeline::IGNORED_SYMBOLS = T.let(T.unsafe(nil), Array) -# source://tapioca//lib/tapioca/gem/events.rb#90 +# @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. +# +# source://tapioca//lib/tapioca/gem/pipeline.rb#120 +class Tapioca::Gem::Pipeline::MethodDefinitionLookupResult + abstract! +end + +# The method defined in gem and has a source location +# +# source://tapioca//lib/tapioca/gem/pipeline.rb#135 +class Tapioca::Gem::Pipeline::MethodInGemWithLocation < ::Tapioca::Gem::Pipeline::MethodDefinitionLookupResult + # source://tapioca//lib/tapioca/gem/pipeline.rb#142 + sig { params(location: ::Tapioca::Runtime::SourceLocation).void } + def initialize(location); end + + # source://tapioca//lib/tapioca/gem/pipeline.rb#139 + sig { returns(::Tapioca::Runtime::SourceLocation) } + def location; end +end + +# The method probably defined in the gem but doesn't have a source location +# +# source://tapioca//lib/tapioca/gem/pipeline.rb#132 +class Tapioca::Gem::Pipeline::MethodInGemWithoutLocation < ::Tapioca::Gem::Pipeline::MethodDefinitionLookupResult; end + +# The method is not defined in the gem +# +# source://tapioca//lib/tapioca/gem/pipeline.rb#129 +class Tapioca::Gem::Pipeline::MethodNotInGem < ::Tapioca::Gem::Pipeline::MethodDefinitionLookupResult; end + +# The method doesn't seem to exist +# +# source://tapioca//lib/tapioca/gem/pipeline.rb#126 +class Tapioca::Gem::Pipeline::MethodUnknown < ::Tapioca::Gem::Pipeline::MethodDefinitionLookupResult; end + +# source://tapioca//lib/tapioca/gem/events.rb#95 class Tapioca::Gem::ScopeNodeAdded < ::Tapioca::Gem::NodeAdded - # source://tapioca//lib/tapioca/gem/events.rb#97 + # source://tapioca//lib/tapioca/gem/events.rb#102 sig { params(symbol: ::String, constant: ::Module, node: ::RBI::Scope).void } def initialize(symbol, constant, node); end - # source://tapioca//lib/tapioca/gem/events.rb#94 + # source://tapioca//lib/tapioca/gem/events.rb#99 sig { returns(::RBI::Scope) } def node; end end -# source://tapioca//lib/tapioca/gem/events.rb#13 +# source://tapioca//lib/tapioca/gem/events.rb#14 class Tapioca::Gem::SymbolFound < ::Tapioca::Gem::Event - # source://tapioca//lib/tapioca/gem/events.rb#20 + # source://tapioca//lib/tapioca/gem/events.rb#21 sig { params(symbol: ::String).void } def initialize(symbol); end - # source://tapioca//lib/tapioca/gem/events.rb#17 + # source://tapioca//lib/tapioca/gem/events.rb#18 sig { returns(::String) } def symbol; end end @@ -2235,9 +2181,6 @@ class Tapioca::GemInfo < ::T::Struct # source://tapioca//lib/tapioca/gem_info.rb#13 sig { params(spec: ::Bundler::LazySpecification).returns(::Tapioca::GemInfo) } def from_spec(spec); end - - # source://sorbet-runtime/0.5.12026/lib/types/struct.rb#13 - def inherited(s); end end end @@ -2285,8 +2228,6 @@ class Tapioca::Gemfile sig { returns([T::Array[::Tapioca::Gemfile::GemSpec], T::Array[::String]]) } def load_dependencies; end - # @return [File] - # # source://tapioca//lib/tapioca/gemfile.rb#54 def lockfile; end @@ -2303,94 +2244,92 @@ end class Tapioca::Gemfile::GemSpec include ::Tapioca::GemHelper - # source://tapioca//lib/tapioca/gemfile.rb#145 + # source://tapioca//lib/tapioca/gemfile.rb#139 sig { params(spec: T.any(::Bundler::StubSpecification, ::Gem::Specification)).void } def initialize(spec); end - # source://tapioca//lib/tapioca/gemfile.rb#155 + # source://tapioca//lib/tapioca/gemfile.rb#149 sig { params(other: ::BasicObject).returns(T::Boolean) } def ==(other); end - # source://tapioca//lib/tapioca/gemfile.rb#180 + # source://tapioca//lib/tapioca/gemfile.rb#174 sig { params(path: ::String).returns(T::Boolean) } def contains_path?(path); end - # source://tapioca//lib/tapioca/gemfile.rb#170 + # source://tapioca//lib/tapioca/gemfile.rb#164 sig { returns(T::Array[::Gem::Dependency]) } def dependencies; end - # source://tapioca//lib/tapioca/gemfile.rb#210 + # source://tapioca//lib/tapioca/gemfile.rb#204 sig { returns(T::Boolean) } def export_rbi_files?; end - # source://tapioca//lib/tapioca/gemfile.rb#205 + # source://tapioca//lib/tapioca/gemfile.rb#199 sig { returns(T::Array[::String]) } def exported_rbi_files; end - # source://tapioca//lib/tapioca/gemfile.rb#215 + # source://tapioca//lib/tapioca/gemfile.rb#209 sig { returns(::RBI::MergeTree) } def exported_rbi_tree; end - # source://tapioca//lib/tapioca/gemfile.rb#142 + # source://tapioca//lib/tapioca/gemfile.rb#136 sig { returns(T::Array[::Pathname]) } def files; end - # source://tapioca//lib/tapioca/gemfile.rb#139 + # source://tapioca//lib/tapioca/gemfile.rb#133 sig { returns(::String) } def full_gem_path; end - # source://tapioca//lib/tapioca/gemfile.rb#160 + # source://tapioca//lib/tapioca/gemfile.rb#154 sig { params(gemfile_dir: ::String).returns(T::Boolean) } def ignore?(gemfile_dir); end - # source://tapioca//lib/tapioca/gemfile.rb#165 + # source://tapioca//lib/tapioca/gemfile.rb#159 sig { returns(::String) } def name; end - # source://tapioca//lib/tapioca/gemfile.rb#189 + # source://tapioca//lib/tapioca/gemfile.rb#183 sig { void } def parse_yard_docs; end - # source://tapioca//lib/tapioca/gemfile.rb#175 + # source://tapioca//lib/tapioca/gemfile.rb#169 sig { returns(::String) } def rbi_file_name; end - # source://tapioca//lib/tapioca/gemfile.rb#227 + # source://tapioca//lib/tapioca/gemfile.rb#221 sig { params(file: ::Pathname).returns(::Pathname) } def relative_path_for(file); end - # @return [String] - # - # source://tapioca//lib/tapioca/gemfile.rb#139 + # source://tapioca//lib/tapioca/gemfile.rb#133 def version; end private - # source://tapioca//lib/tapioca/gemfile.rb#238 + # source://tapioca//lib/tapioca/gemfile.rb#232 sig { returns(T::Array[::Pathname]) } def collect_files; end - # source://tapioca//lib/tapioca/gemfile.rb#253 + # source://tapioca//lib/tapioca/gemfile.rb#247 sig { returns(T.nilable(T::Boolean)) } def default_gem?; end - # source://tapioca//lib/tapioca/gemfile.rb#312 + # source://tapioca//lib/tapioca/gemfile.rb#303 sig { returns(T::Boolean) } def gem_ignored?; end - # source://tapioca//lib/tapioca/gemfile.rb#291 + # 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#258 + # source://tapioca//lib/tapioca/gemfile.rb#252 sig { returns(::Regexp) } def require_paths_prefix_matcher; end - # source://tapioca//lib/tapioca/gemfile.rb#270 + # 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#284 + # source://tapioca//lib/tapioca/gemfile.rb#275 sig { returns(::String) } def version_string; end @@ -2401,13 +2340,13 @@ class Tapioca::Gemfile::GemSpec end end -# source://tapioca//lib/tapioca/gemfile.rb#125 +# source://tapioca//lib/tapioca/gemfile.rb#122 Tapioca::Gemfile::GemSpec::IGNORED_GEMS = T.let(T.unsafe(nil), Array) # source://tapioca//lib/tapioca/gemfile.rb#10 Tapioca::Gemfile::Spec = T.type_alias { T.any(::Bundler::StubSpecification, ::Gem::Specification) } -# source://tapioca//lib/tapioca.rb#33 +# source://tapioca//lib/tapioca.rb#29 Tapioca::LIB_ROOT_DIR = T.let(T.unsafe(nil), String) # source://tapioca//lib/tapioca/loaders/loader.rb#5 @@ -2415,7 +2354,7 @@ module Tapioca::Loaders; end # source://tapioca//lib/tapioca/loaders/dsl.rb#6 class Tapioca::Loaders::Dsl < ::Tapioca::Loaders::Loader - # source://tapioca//lib/tapioca/loaders/dsl.rb#74 + # source://tapioca//lib/tapioca/loaders/dsl.rb#66 sig do params( tapioca_path: ::String, @@ -2426,40 +2365,40 @@ class Tapioca::Loaders::Dsl < ::Tapioca::Loaders::Loader end def initialize(tapioca_path:, eager_load: T.unsafe(nil), app_root: T.unsafe(nil), halt_upon_load_error: T.unsafe(nil)); end - # source://tapioca//lib/tapioca/loaders/dsl.rb#36 + # source://tapioca//lib/tapioca/loaders/dsl.rb#30 sig { override.void } def load; end - # source://tapioca//lib/tapioca/loaders/dsl.rb#43 + # source://tapioca//lib/tapioca/loaders/dsl.rb#37 sig { void } def load_dsl_extensions_and_compilers; end - # source://tapioca//lib/tapioca/loaders/dsl.rb#49 + # source://tapioca//lib/tapioca/loaders/dsl.rb#43 sig { void } def reload_custom_compilers; end protected - # source://tapioca//lib/tapioca/loaders/dsl.rb#120 + # source://tapioca//lib/tapioca/loaders/dsl.rb#112 sig { void } def load_application; end - # source://tapioca//lib/tapioca/loaders/dsl.rb#100 + # source://tapioca//lib/tapioca/loaders/dsl.rb#92 sig { void } def load_dsl_compilers; end - # source://tapioca//lib/tapioca/loaders/dsl.rb#85 + # source://tapioca//lib/tapioca/loaders/dsl.rb#77 sig { void } def load_dsl_extensions; end private - # source://tapioca//lib/tapioca/loaders/dsl.rb#136 + # source://tapioca//lib/tapioca/loaders/dsl.rb#128 sig { void } def load_custom_dsl_compilers; end class << self - # source://tapioca//lib/tapioca/loaders/dsl.rb#20 + # source://tapioca//lib/tapioca/loaders/dsl.rb#13 sig do params( tapioca_path: ::String, @@ -2474,7 +2413,7 @@ end # source://tapioca//lib/tapioca/loaders/gem.rb#6 class Tapioca::Loaders::Gem < ::Tapioca::Loaders::Loader - # source://tapioca//lib/tapioca/loaders/gem.rb#49 + # source://tapioca//lib/tapioca/loaders/gem.rb#34 sig do params( bundle: ::Tapioca::Gemfile, @@ -2486,22 +2425,22 @@ class Tapioca::Loaders::Gem < ::Tapioca::Loaders::Loader end def initialize(bundle:, prerequire:, postrequire:, default_command:, halt_upon_load_error:); end - # source://tapioca//lib/tapioca/loaders/gem.rb#34 + # source://tapioca//lib/tapioca/loaders/gem.rb#27 sig { override.void } def load; end protected - # source://tapioca//lib/tapioca/loaders/gem.rb#80 + # source://tapioca//lib/tapioca/loaders/gem.rb#65 sig { params(file: ::String, error: ::LoadError).void } def explain_failed_require(file, error); end - # source://tapioca//lib/tapioca/loaders/gem.rb#60 + # source://tapioca//lib/tapioca/loaders/gem.rb#45 sig { void } def require_gem_file; end class << self - # source://tapioca//lib/tapioca/loaders/gem.rb#21 + # source://tapioca//lib/tapioca/loaders/gem.rb#13 sig do params( bundle: ::Tapioca::Gemfile, @@ -2515,7 +2454,7 @@ class Tapioca::Loaders::Gem < ::Tapioca::Loaders::Loader end end -# @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. +# @abstract # # source://tapioca//lib/tapioca/loaders/loader.rb#6 class Tapioca::Loaders::Loader @@ -2530,8 +2469,9 @@ class Tapioca::Loaders::Loader abstract! # @abstract + # @raise [NotImplementedError] # - # source://tapioca//lib/tapioca/loaders/loader.rb#17 + # source://tapioca//lib/tapioca/loaders/loader.rb#18 sig { abstract.void } def load; end @@ -2542,22 +2482,17 @@ class Tapioca::Loaders::Loader # engine paths. The following commit is the change: # https://github.com/rails/rails/commit/ebfca905db14020589c22e6937382e6f8f687664 # - # @param engine [T.class_of(Rails::Engine)] - # @return [Array] - # - # source://tapioca//lib/tapioca/loaders/loader.rb#234 + # source://tapioca//lib/tapioca/loaders/loader.rb#219 def eager_load_paths(engine); end - # source://tapioca//lib/tapioca/loaders/loader.rb#199 + # source://tapioca//lib/tapioca/loaders/loader.rb#183 sig { void } def eager_load_rails_app; end - # @return [Array] - # - # source://tapioca//lib/tapioca/loaders/loader.rb#178 + # source://tapioca//lib/tapioca/loaders/loader.rb#162 def engines; end - # source://tapioca//lib/tapioca/loaders/loader.rb#29 + # source://tapioca//lib/tapioca/loaders/loader.rb#23 sig do params( gemfile: ::Tapioca::Gemfile, @@ -2568,15 +2503,15 @@ class Tapioca::Loaders::Loader end def load_bundle(gemfile, initialize_file, require_file, halt_upon_load_error); end - # source://tapioca//lib/tapioca/loaders/loader.rb#136 + # source://tapioca//lib/tapioca/loaders/loader.rb#119 sig { void } def load_engines_in_classic_mode; end - # source://tapioca//lib/tapioca/loaders/loader.rb#114 + # source://tapioca//lib/tapioca/loaders/loader.rb#101 sig { void } def load_engines_in_zeitwerk_mode; end - # source://tapioca//lib/tapioca/loaders/loader.rb#49 + # source://tapioca//lib/tapioca/loaders/loader.rb#36 sig do params( environment_load: T::Boolean, @@ -2587,26 +2522,26 @@ class Tapioca::Loaders::Loader end def load_rails_application(environment_load: T.unsafe(nil), eager_load: T.unsafe(nil), app_root: T.unsafe(nil), halt_upon_load_error: T.unsafe(nil)); end - # source://tapioca//lib/tapioca/loaders/loader.rb#89 + # source://tapioca//lib/tapioca/loaders/loader.rb#76 sig { void } def load_rails_engines; end - # source://tapioca//lib/tapioca/loaders/loader.rb#220 + # source://tapioca//lib/tapioca/loaders/loader.rb#204 sig { params(file: T.nilable(::String)).void } def require_helper(file); end - # source://tapioca//lib/tapioca/loaders/loader.rb#103 + # source://tapioca//lib/tapioca/loaders/loader.rb#90 def run_initializers; end - # source://tapioca//lib/tapioca/loaders/loader.rb#192 + # source://tapioca//lib/tapioca/loaders/loader.rb#176 sig { params(path: ::String).void } def safe_require(path); end - # source://tapioca//lib/tapioca/loaders/loader.rb#161 + # source://tapioca//lib/tapioca/loaders/loader.rb#144 sig { params(blk: T.proc.void).void } def with_rails_application(&blk); end - # source://tapioca//lib/tapioca/loaders/loader.rb#154 + # source://tapioca//lib/tapioca/loaders/loader.rb#137 sig { returns(T::Boolean) } def zeitwerk_mode?; end end @@ -2616,7 +2551,7 @@ module Tapioca::RBIFilesHelper requires_ancestor { Tapioca::SorbetHelper } requires_ancestor { Thor::Shell } - # source://tapioca//lib/tapioca/helpers/rbi_files_helper.rb#48 + # source://tapioca//lib/tapioca/helpers/rbi_files_helper.rb#43 sig do params( index: ::RBI::Index, @@ -2626,19 +2561,19 @@ module Tapioca::RBIFilesHelper end def duplicated_nodes_from_index(index, shim_rbi_dir:, todo_rbi_file:); end - # source://tapioca//lib/tapioca/helpers/rbi_files_helper.rb#13 + # source://tapioca//lib/tapioca/helpers/rbi_files_helper.rb#14 sig { params(index: ::RBI::Index, kind: ::String, file: ::String).void } def index_rbi(index, kind, file); end - # source://tapioca//lib/tapioca/helpers/rbi_files_helper.rb#25 + # source://tapioca//lib/tapioca/helpers/rbi_files_helper.rb#26 sig { params(index: ::RBI::Index, kind: ::String, dir: ::String, number_of_workers: T.nilable(::Integer)).void } def index_rbis(index, kind, dir, number_of_workers:); end - # source://tapioca//lib/tapioca/helpers/rbi_files_helper.rb#65 + # source://tapioca//lib/tapioca/helpers/rbi_files_helper.rb#60 sig { params(loc: ::RBI::Loc, path_prefix: T.nilable(::String)).returns(::String) } def location_to_payload_url(loc, path_prefix:); end - # source://tapioca//lib/tapioca/helpers/rbi_files_helper.rb#86 + # source://tapioca//lib/tapioca/helpers/rbi_files_helper.rb#72 sig do params( command: ::String, @@ -2653,27 +2588,11 @@ module Tapioca::RBIFilesHelper private - # source://tapioca//lib/tapioca/helpers/rbi_files_helper.rb#223 - sig { params(nodes: T::Array[::RBI::Node]).returns(T::Array[::RBI::Scope]) } - def extract_empty_scopes(nodes); end - - # source://tapioca//lib/tapioca/helpers/rbi_files_helper.rb#228 + # source://tapioca//lib/tapioca/helpers/rbi_files_helper.rb#250 sig { params(nodes: T::Array[::RBI::Node]).returns(T::Array[T.any(::RBI::Attr, ::RBI::Method)]) } def extract_methods_and_attrs(nodes); end - # source://tapioca//lib/tapioca/helpers/rbi_files_helper.rb#238 - sig { params(nodes: T::Array[::RBI::Node]).returns(T::Array[T.any(::RBI::Mixin, ::RBI::RequiresAncestor)]) } - def extract_mixins(nodes); end - - # source://tapioca//lib/tapioca/helpers/rbi_files_helper.rb#248 - sig do - params( - nodes: T::Array[T.any(::RBI::Attr, ::RBI::Method)] - ).returns(T::Array[T.any(::RBI::Attr, ::RBI::Method)]) - end - def extract_nodes_with_sigs(nodes); end - - # source://tapioca//lib/tapioca/helpers/rbi_files_helper.rb#216 + # source://tapioca//lib/tapioca/helpers/rbi_files_helper.rb#243 sig do params( nodes: T::Array[::RBI::Node], @@ -2683,30 +2602,44 @@ module Tapioca::RBIFilesHelper end def extract_shims_and_todos(nodes, shim_rbi_dir:, todo_rbi_file:); end - # source://tapioca//lib/tapioca/helpers/rbi_files_helper.rb#280 + # source://tapioca//lib/tapioca/helpers/rbi_files_helper.rb#287 sig { params(path: ::String).returns(::String) } def gem_name_from_rbi_path(path); end - # source://tapioca//lib/tapioca/helpers/rbi_files_helper.rb#155 + # source://tapioca//lib/tapioca/helpers/rbi_files_helper.rb#211 + sig { params(nodes: T::Array[::RBI::Node], shims_or_todos: T::Array[::RBI::Node]).returns(T::Boolean) } + def has_duplicated_methods_and_attrs?(nodes, shims_or_todos); end + + # source://tapioca//lib/tapioca/helpers/rbi_files_helper.rb#203 + sig { params(shims_or_todos: T::Array[::RBI::Node]).returns(T::Boolean) } + def has_duplicated_mixins?(shims_or_todos); end + + # source://tapioca//lib/tapioca/helpers/rbi_files_helper.rb#175 + sig { params(all_nodes: T::Array[::RBI::Node], shims_or_todos: T::Array[::RBI::Node]).returns(T::Boolean) } + def has_duplicated_scopes?(all_nodes, shims_or_todos); end + + # source://tapioca//lib/tapioca/helpers/rbi_files_helper.rb#141 sig { params(index: ::RBI::Index, files: T::Array[::String], number_of_workers: T.nilable(::Integer)).void } def parse_and_index_files(index, files, number_of_workers:); end - # source://tapioca//lib/tapioca/helpers/rbi_files_helper.rb#171 + # Do the list of `nodes` sharing the same name have duplicates? + # + # source://tapioca//lib/tapioca/helpers/rbi_files_helper.rb#158 sig { params(nodes: T::Array[::RBI::Node], shim_rbi_dir: ::String, todo_rbi_file: ::String).returns(T::Boolean) } def shims_or_todos_have_duplicates?(nodes, shim_rbi_dir:, todo_rbi_file:); end - # source://tapioca//lib/tapioca/helpers/rbi_files_helper.rb#253 + # source://tapioca//lib/tapioca/helpers/rbi_files_helper.rb#260 sig { params(errors: T::Array[::Spoom::Sorbet::Errors::Error], gem_dir: ::String).void } def update_gem_rbis_strictnesses(errors, gem_dir); end end # source://tapioca//lib/tapioca/rbi_formatter.rb#5 class Tapioca::RBIFormatter < ::RBI::Formatter - # source://tapioca//lib/tapioca/rbi_formatter.rb#24 + # source://tapioca//lib/tapioca/rbi_formatter.rb#18 sig { params(file: ::RBI::File).void } def write_empty_body_comment!(file); end - # source://tapioca//lib/tapioca/rbi_formatter.rb#15 + # source://tapioca//lib/tapioca/rbi_formatter.rb#9 sig { params(file: ::RBI::File, command: ::String, reason: T.nilable(::String)).void } def write_header!(file, command, reason: T.unsafe(nil)); end end @@ -2717,60 +2650,60 @@ module Tapioca::RBIHelper extend ::Tapioca::SorbetHelper extend ::Tapioca::RBIHelper - # source://tapioca//lib/tapioca/helpers/rbi_helper.rb#91 + # source://tapioca//lib/tapioca/helpers/rbi_helper.rb#83 sig { params(type: ::String).returns(::String) } def as_nilable_type(type); end - # source://tapioca//lib/tapioca/helpers/rbi_helper.rb#100 + # source://tapioca//lib/tapioca/helpers/rbi_helper.rb#92 sig { params(type: ::String).returns(::String) } def as_non_nilable_type(type); end - # source://tapioca//lib/tapioca/helpers/rbi_helper.rb#72 + # source://tapioca//lib/tapioca/helpers/rbi_helper.rb#64 sig { params(name: ::String, type: ::String).returns(::RBI::TypedParam) } def create_block_param(name, type:); end - # source://tapioca//lib/tapioca/helpers/rbi_helper.rb#62 + # source://tapioca//lib/tapioca/helpers/rbi_helper.rb#54 sig { params(name: ::String, type: ::String, default: ::String).returns(::RBI::TypedParam) } def create_kw_opt_param(name, type:, default:); end - # source://tapioca//lib/tapioca/helpers/rbi_helper.rb#57 + # source://tapioca//lib/tapioca/helpers/rbi_helper.rb#49 sig { params(name: ::String, type: ::String).returns(::RBI::TypedParam) } def create_kw_param(name, type:); end - # source://tapioca//lib/tapioca/helpers/rbi_helper.rb#67 + # source://tapioca//lib/tapioca/helpers/rbi_helper.rb#59 sig { params(name: ::String, type: ::String).returns(::RBI::TypedParam) } def create_kw_rest_param(name, type:); end - # source://tapioca//lib/tapioca/helpers/rbi_helper.rb#47 + # source://tapioca//lib/tapioca/helpers/rbi_helper.rb#39 sig { params(name: ::String, type: ::String, default: ::String).returns(::RBI::TypedParam) } def create_opt_param(name, type:, default:); end - # source://tapioca//lib/tapioca/helpers/rbi_helper.rb#42 + # source://tapioca//lib/tapioca/helpers/rbi_helper.rb#34 sig { params(name: ::String, type: ::String).returns(::RBI::TypedParam) } def create_param(name, type:); end - # source://tapioca//lib/tapioca/helpers/rbi_helper.rb#52 + # source://tapioca//lib/tapioca/helpers/rbi_helper.rb#44 sig { params(name: ::String, type: ::String).returns(::RBI::TypedParam) } def create_rest_param(name, type:); end - # source://tapioca//lib/tapioca/helpers/rbi_helper.rb#77 + # source://tapioca//lib/tapioca/helpers/rbi_helper.rb#69 sig { params(param: ::RBI::Param, type: ::String).returns(::RBI::TypedParam) } def create_typed_param(param, type); end - # source://tapioca//lib/tapioca/helpers/rbi_helper.rb#82 + # source://tapioca//lib/tapioca/helpers/rbi_helper.rb#74 sig { params(sig_string: ::String).returns(::String) } def sanitize_signature_types(sig_string); end - # source://tapioca//lib/tapioca/helpers/rbi_helper.rb#109 + # source://tapioca//lib/tapioca/helpers/rbi_helper.rb#101 sig { params(name: ::String).returns(T::Boolean) } def valid_method_name?(name); end - # source://tapioca//lib/tapioca/helpers/rbi_helper.rb#114 + # source://tapioca//lib/tapioca/helpers/rbi_helper.rb#106 sig { params(name: ::String).returns(T::Boolean) } def valid_parameter_name?(name); end class << self - # source://tapioca//lib/tapioca/helpers/rbi_helper.rb#23 + # source://tapioca//lib/tapioca/helpers/rbi_helper.rb#15 sig do params( type: ::String, @@ -2786,29 +2719,29 @@ end # source://tapioca//lib/tapioca/repo_index.rb#5 class Tapioca::RepoIndex - # source://tapioca//lib/tapioca/repo_index.rb#26 + # source://tapioca//lib/tapioca/repo_index.rb#24 sig { void } def initialize; end - # source://tapioca//lib/tapioca/repo_index.rb#31 + # source://tapioca//lib/tapioca/repo_index.rb#29 sig { params(gem_name: ::String).void } def <<(gem_name); end - # source://tapioca//lib/tapioca/repo_index.rb#36 + # source://tapioca//lib/tapioca/repo_index.rb#34 sig { returns(T::Enumerable[::String]) } def gems; end - # source://tapioca//lib/tapioca/repo_index.rb#41 + # source://tapioca//lib/tapioca/repo_index.rb#39 sig { params(gem_name: ::String).returns(T::Boolean) } def has_gem?(gem_name); end class << self - # source://tapioca//lib/tapioca/repo_index.rb#18 - sig { params(hash: T::Hash[::String, T::Hash[T.untyped, T.untyped]]).returns(Tapioca::RepoIndex) } + # source://tapioca//lib/tapioca/repo_index.rb#16 + sig { params(hash: T::Hash[::String, T::Hash[T.untyped, T.untyped]]).returns(::Tapioca::RepoIndex) } def from_hash(hash); end - # source://tapioca//lib/tapioca/repo_index.rb#13 - sig { params(json: ::String).returns(Tapioca::RepoIndex) } + # source://tapioca//lib/tapioca/repo_index.rb#11 + sig { params(json: ::String).returns(::Tapioca::RepoIndex) } def from_json(json); end end end @@ -2822,7 +2755,6 @@ module Tapioca::Runtime; end # class by iterating through ObjectSpace. module Tapioca::Runtime::AttachedClassOf # source://tapioca//lib/tapioca/runtime/attached_class_of_32.rb#14 - sig { params(singleton_class: ::Class).returns(T.nilable(::Module)) } def attached_class_of(singleton_class); end end @@ -2831,65 +2763,54 @@ class Tapioca::Runtime::DynamicMixinCompiler include ::Tapioca::Runtime::AttachedClassOf include ::Tapioca::Runtime::Reflection + # @return [DynamicMixinCompiler] a new instance of DynamicMixinCompiler + # # source://tapioca//lib/tapioca/runtime/dynamic_mixin_compiler.rb#20 - sig { params(constant: ::Module).void } def initialize(constant); end - # @return [Array] - # # source://tapioca//lib/tapioca/runtime/dynamic_mixin_compiler.rb#14 def class_attribute_predicates; end # source://tapioca//lib/tapioca/runtime/dynamic_mixin_compiler.rb#14 - sig { returns(T::Array[::Symbol]) } def class_attribute_readers; end - # @return [Array] - # # source://tapioca//lib/tapioca/runtime/dynamic_mixin_compiler.rb#14 def class_attribute_writers; end # source://tapioca//lib/tapioca/runtime/dynamic_mixin_compiler.rb#137 - sig { params(tree: ::RBI::Tree).void } def compile_class_attributes(tree); end # source://tapioca//lib/tapioca/runtime/dynamic_mixin_compiler.rb#180 - sig { params(tree: ::RBI::Tree).returns([T::Array[::Module], T::Array[::Module]]) } def compile_mixes_in_class_methods(tree); end # source://tapioca//lib/tapioca/runtime/dynamic_mixin_compiler.rb#11 - sig { returns(T::Array[::Module]) } def dynamic_extends; end - # @return [Array] - # # source://tapioca//lib/tapioca/runtime/dynamic_mixin_compiler.rb#11 def dynamic_includes; end + # @return [Boolean] + # # source://tapioca//lib/tapioca/runtime/dynamic_mixin_compiler.rb#132 - sig { returns(T::Boolean) } def empty_attributes?; end + # @return [Boolean] + # # source://tapioca//lib/tapioca/runtime/dynamic_mixin_compiler.rb#222 - sig { params(qualified_mixin_name: ::String).returns(T::Boolean) } def filtered_mixin?(qualified_mixin_name); end - # @return [Array] - # # source://tapioca//lib/tapioca/runtime/dynamic_mixin_compiler.rb#17 def instance_attribute_predicates; end # source://tapioca//lib/tapioca/runtime/dynamic_mixin_compiler.rb#17 - sig { returns(T::Array[::Symbol]) } def instance_attribute_readers; end - # @return [Array] - # # source://tapioca//lib/tapioca/runtime/dynamic_mixin_compiler.rb#17 def instance_attribute_writers; end + # @return [Boolean] + # # source://tapioca//lib/tapioca/runtime/dynamic_mixin_compiler.rb#215 - sig { params(mod: ::Module, dynamic_extends: T::Array[::Module]).returns(T::Boolean) } def module_included_by_another_dynamic_extend?(mod, dynamic_extends); end end @@ -2914,12 +2835,12 @@ end # source://tapioca//lib/tapioca/runtime/generic_type_registry.rb#23 module Tapioca::Runtime::GenericTypeRegistry class << self - # source://tapioca//lib/tapioca/runtime/generic_type_registry.rb#80 - sig { params(instance: ::Object).returns(T::Boolean) } + # @return [Boolean] + # + # source://tapioca//lib/tapioca/runtime/generic_type_registry.rb#75 def generic_type_instance?(instance); end - # source://tapioca//lib/tapioca/runtime/generic_type_registry.rb#85 - sig { params(constant: ::Module).returns(T.nilable(T::Array[::Tapioca::TypeVariableModule])) } + # source://tapioca//lib/tapioca/runtime/generic_type_registry.rb#80 def lookup_type_variables(constant); end # This method is responsible for building the name of the instantiated concrete type @@ -2934,8 +2855,7 @@ module Tapioca::Runtime::GenericTypeRegistry # # This method returns the created or cached clone of the constant. # - # source://tapioca//lib/tapioca/runtime/generic_type_registry.rb#65 - sig { params(constant: T.untyped, types: T.untyped).returns(::Module) } + # source://tapioca//lib/tapioca/runtime/generic_type_registry.rb#60 def register_type(constant, types); end # This method is called from intercepted calls to `type_member` and `type_template`. @@ -2948,34 +2868,32 @@ module Tapioca::Runtime::GenericTypeRegistry # Finally, the original `type_variable` is returned from this method, so that the caller # can return it from the original methods as well. # - # source://tapioca//lib/tapioca/runtime/generic_type_registry.rb#104 - sig { params(constant: T.untyped, type_variable: ::Tapioca::TypeVariableModule).void } + # source://tapioca//lib/tapioca/runtime/generic_type_registry.rb#94 def register_type_variable(constant, type_variable); end private - # source://tapioca//lib/tapioca/runtime/generic_type_registry.rb#113 - sig { params(constant: ::Module, name: ::String).returns(::Module) } + # source://tapioca//lib/tapioca/runtime/generic_type_registry.rb#103 def create_generic_type(constant, name); end - # source://tapioca//lib/tapioca/runtime/generic_type_registry.rb#155 - sig { params(constant: T::Class[T.anything]).returns(T::Class[T.anything]) } + # source://tapioca//lib/tapioca/runtime/generic_type_registry.rb#145 def create_safe_subclass(constant); end - # source://tapioca//lib/tapioca/runtime/generic_type_registry.rb#182 - sig { params(constant: ::Module).returns(T::Array[::Tapioca::TypeVariableModule]) } + # source://tapioca//lib/tapioca/runtime/generic_type_registry.rb#172 def lookup_or_initialize_type_variables(constant); end end end -# source://tapioca//lib/tapioca/runtime/generic_type_registry.rb#34 +# source://tapioca//lib/tapioca/runtime/generic_type_registry.rb#28 class Tapioca::Runtime::GenericTypeRegistry::GenericType < ::T::Types::Simple - # source://tapioca//lib/tapioca/runtime/generic_type_registry.rb#38 - sig { params(raw_type: ::Module, underlying_type: ::Module).void } + # @return [GenericType] a new instance of GenericType + # + # source://tapioca//lib/tapioca/runtime/generic_type_registry.rb#32 def initialize(raw_type, underlying_type); end - # source://tapioca//lib/tapioca/runtime/generic_type_registry.rb#45 - sig { override.params(obj: T.untyped).returns(T::Boolean) } + # @return [Boolean] + # + # source://tapioca//lib/tapioca/runtime/generic_type_registry.rb#40 def valid?(obj); end end @@ -2984,34 +2902,32 @@ module Tapioca::Runtime::Reflection extend ::Tapioca::Runtime::AttachedClassOf extend ::Tapioca::Runtime::Reflection - # source://tapioca//lib/tapioca/runtime/reflection.rb#207 - sig { params(constant: ::Module).returns(T.untyped) } + # source://tapioca//lib/tapioca/runtime/reflection.rb#228 def abstract_type_of(constant); end - # source://tapioca//lib/tapioca/runtime/reflection.rb#77 - sig { params(constant: ::Module).returns(T::Array[::Module]) } + # source://tapioca//lib/tapioca/runtime/reflection.rb#75 def ancestors_of(constant); end - # source://tapioca//lib/tapioca/runtime/reflection.rb#92 - sig { params(object: ::BasicObject, other: ::BasicObject).returns(T::Boolean) } - def are_equal?(object, other); end - - # source://tapioca//lib/tapioca/runtime/reflection.rb#56 - sig { params(object: ::BasicObject).returns(T::Class[T.anything]) } - def class_of(object); end - - # @param constant [BasicObject] # @return [Boolean] # - # source://tapioca//lib/tapioca/runtime/reflection.rb#38 + # source://tapioca//lib/tapioca/runtime/reflection.rb#90 + def are_equal?(object, other); end + + # source://tapioca//lib/tapioca/runtime/reflection.rb#54 + def class_of(object); end + + # source://tapioca//lib/tapioca/runtime/reflection.rb#179 + def const_source_location(constant_name); end + + # @return [Boolean] + # + # source://tapioca//lib/tapioca/runtime/reflection.rb#41 def constant_defined?(constant); end - # source://tapioca//lib/tapioca/runtime/reflection.rb#49 - sig { params(symbol: ::String, inherit: T::Boolean, namespace: ::Module).returns(::BasicObject) } + # source://tapioca//lib/tapioca/runtime/reflection.rb#47 def constantize(symbol, inherit: T.unsafe(nil), namespace: T.unsafe(nil)); end - # source://tapioca//lib/tapioca/runtime/reflection.rb#61 - sig { params(constant: ::Module).returns(T::Array[::Symbol]) } + # source://tapioca//lib/tapioca/runtime/reflection.rb#59 def constants_of(constant); end # Returns an array with all classes that are < than the supplied class. @@ -3028,57 +2944,42 @@ module Tapioca::Runtime::Reflection # class D < C; end # descendants_of(C) # => [B, A, D] # - # source://tapioca//lib/tapioca/runtime/reflection.rb#172 - sig do - type_parameters(:U) - .params( - klass: T.all(T.type_parameter(:U), T::Class[T.anything]) - ).returns(T::Array[T.type_parameter(:U)]) - end + # source://tapioca//lib/tapioca/runtime/reflection.rb#170 def descendants_of(klass); end - # source://tapioca//lib/tapioca/runtime/reflection.rb#200 - sig { params(constant: ::Module).returns(T::Set[::String]) } + # source://tapioca//lib/tapioca/runtime/reflection.rb#221 def file_candidates_for(constant); end - # source://tapioca//lib/tapioca/runtime/reflection.rb#213 - sig { params(constant: ::Module).returns(T::Boolean) } + # @return [Boolean] + # + # source://tapioca//lib/tapioca/runtime/reflection.rb#234 def final_module?(constant); end - # source://tapioca//lib/tapioca/runtime/reflection.rb#112 - sig { params(constant: ::Module).returns(T::Array[::Module]) } + # source://tapioca//lib/tapioca/runtime/reflection.rb#110 def inherited_ancestors_of(constant); end - # source://tapioca//lib/tapioca/runtime/reflection.rb#150 - sig { params(constant: ::Module, method: ::Symbol).returns(::Method) } + # source://tapioca//lib/tapioca/runtime/reflection.rb#152 def method_of(constant, method); end - # source://tapioca//lib/tapioca/runtime/reflection.rb#66 - sig { params(constant: ::Module).returns(T.nilable(::String)) } + # source://tapioca//lib/tapioca/runtime/reflection.rb#64 def name_of(constant); end - # source://tapioca//lib/tapioca/runtime/reflection.rb#145 - sig { params(type: ::T::Types::Base).returns(::String) } + # source://tapioca//lib/tapioca/runtime/reflection.rb#147 def name_of_type(type); end - # source://tapioca//lib/tapioca/runtime/reflection.rb#87 - sig { params(object: ::BasicObject).returns(::Integer) } + # source://tapioca//lib/tapioca/runtime/reflection.rb#85 def object_id_of(object); end - # source://tapioca//lib/tapioca/runtime/reflection.rb#107 - sig { params(constant: ::Module).returns(T::Array[::Symbol]) } + # source://tapioca//lib/tapioca/runtime/reflection.rb#105 def private_instance_methods_of(constant); end - # source://tapioca//lib/tapioca/runtime/reflection.rb#102 - sig { params(constant: ::Module).returns(T::Array[::Symbol]) } + # source://tapioca//lib/tapioca/runtime/reflection.rb#100 def protected_instance_methods_of(constant); end - # source://tapioca//lib/tapioca/runtime/reflection.rb#97 - sig { params(constant: ::Module).returns(T::Array[::Symbol]) } + # source://tapioca//lib/tapioca/runtime/reflection.rb#95 def public_instance_methods_of(constant); end - # source://tapioca//lib/tapioca/runtime/reflection.rb#121 - sig { params(constant: ::Module).returns(T.nilable(::String)) } + # source://tapioca//lib/tapioca/runtime/reflection.rb#119 def qualified_name_of(constant); end # Examines the call stack to identify the closest location where a "require" is performed @@ -3086,110 +2987,128 @@ module Tapioca::Runtime::Reflection # case of an ActiveSupport.on_load hook. If none is found, it returns the location # labeled "
", which is the original call site. # - # source://tapioca//lib/tapioca/runtime/reflection.rb#185 - sig { params(locations: T.nilable(T::Array[::Thread::Backtrace::Location])).returns(::String) } + # source://tapioca//lib/tapioca/runtime/reflection.rb#192 def resolve_loc(locations); end - # source://tapioca//lib/tapioca/runtime/reflection.rb#218 - sig { params(constant: ::Module).returns(T::Boolean) } + # @return [Boolean] + # + # source://tapioca//lib/tapioca/runtime/reflection.rb#239 def sealed_module?(constant); end - # source://tapioca//lib/tapioca/runtime/reflection.rb#138 - sig { params(method: T.any(::Method, ::UnboundMethod)).returns(T.untyped) } + # source://tapioca//lib/tapioca/runtime/reflection.rb#140 def signature_of(method); end # source://tapioca//lib/tapioca/runtime/reflection.rb#133 - sig { params(method: T.any(::Method, ::UnboundMethod)).returns(T.untyped) } def signature_of!(method); end - # source://tapioca//lib/tapioca/runtime/reflection.rb#72 - sig { params(constant: ::Module).returns(T::Class[T.anything]) } + # source://tapioca//lib/tapioca/runtime/reflection.rb#70 def singleton_class_of(constant); end - # source://tapioca//lib/tapioca/runtime/reflection.rb#82 - sig { params(constant: T::Class[T.anything]).returns(T.nilable(T::Class[T.anything])) } + # source://tapioca//lib/tapioca/runtime/reflection.rb#80 def superclass_of(constant); end private - # source://tapioca//lib/tapioca/runtime/reflection.rb#255 - sig { params(parent: ::Module, name: ::String).returns(T.nilable(::Module)) } + # source://tapioca//lib/tapioca/runtime/reflection.rb#276 def child_module_for_parent_with_name(parent, name); end - # source://tapioca//lib/tapioca/runtime/reflection.rb#271 - sig { params(name: ::String).returns(T::Boolean) } + # @return [Boolean] + # + # source://tapioca//lib/tapioca/runtime/reflection.rb#292 def has_aliased_namespace?(name); end - # source://tapioca//lib/tapioca/runtime/reflection.rb#266 - sig { params(method: ::UnboundMethod).returns(T::Boolean) } + # @return [Boolean] + # + # source://tapioca//lib/tapioca/runtime/reflection.rb#287 def method_defined_by_forwardable_module?(method); end - # source://tapioca//lib/tapioca/runtime/reflection.rb#241 - sig { params(constant: ::Module).returns(T::Array[::UnboundMethod]) } + # source://tapioca//lib/tapioca/runtime/reflection.rb#262 def methods_for(constant); end - # source://tapioca//lib/tapioca/runtime/reflection.rb#225 - sig { params(constant: ::Module).returns(T::Array[::UnboundMethod]) } + # source://tapioca//lib/tapioca/runtime/reflection.rb#246 def relevant_methods_for(constant); end end -# source://tapioca//lib/tapioca/runtime/reflection.rb#25 +# source://tapioca//lib/tapioca/runtime/reflection.rb#27 Tapioca::Runtime::Reflection::ANCESTORS_METHOD = T.let(T.unsafe(nil), UnboundMethod) -# source://tapioca//lib/tapioca/runtime/reflection.rb#21 +# source://tapioca//lib/tapioca/runtime/reflection.rb#23 Tapioca::Runtime::Reflection::CLASS_METHOD = T.let(T.unsafe(nil), UnboundMethod) -# source://tapioca//lib/tapioca/runtime/reflection.rb#22 +# source://tapioca//lib/tapioca/runtime/reflection.rb#24 Tapioca::Runtime::Reflection::CONSTANTS_METHOD = T.let(T.unsafe(nil), UnboundMethod) -# source://tapioca//lib/tapioca/runtime/reflection.rb#28 +# source://tapioca//lib/tapioca/runtime/reflection.rb#30 Tapioca::Runtime::Reflection::EQUAL_METHOD = T.let(T.unsafe(nil), UnboundMethod) -# source://tapioca//lib/tapioca/runtime/reflection.rb#32 +# source://tapioca//lib/tapioca/runtime/reflection.rb#34 Tapioca::Runtime::Reflection::METHOD_METHOD = T.let(T.unsafe(nil), UnboundMethod) -# source://tapioca//lib/tapioca/runtime/reflection.rb#23 +# source://tapioca//lib/tapioca/runtime/reflection.rb#25 Tapioca::Runtime::Reflection::NAME_METHOD = T.let(T.unsafe(nil), UnboundMethod) -# source://tapioca//lib/tapioca/runtime/reflection.rb#27 +# source://tapioca//lib/tapioca/runtime/reflection.rb#29 Tapioca::Runtime::Reflection::OBJECT_ID_METHOD = T.let(T.unsafe(nil), UnboundMethod) -# source://tapioca//lib/tapioca/runtime/reflection.rb#31 +# source://tapioca//lib/tapioca/runtime/reflection.rb#33 Tapioca::Runtime::Reflection::PRIVATE_INSTANCE_METHODS_METHOD = T.let(T.unsafe(nil), UnboundMethod) -# source://tapioca//lib/tapioca/runtime/reflection.rb#30 +# source://tapioca//lib/tapioca/runtime/reflection.rb#32 Tapioca::Runtime::Reflection::PROTECTED_INSTANCE_METHODS_METHOD = T.let(T.unsafe(nil), UnboundMethod) -# source://tapioca//lib/tapioca/runtime/reflection.rb#29 +# source://tapioca//lib/tapioca/runtime/reflection.rb#31 Tapioca::Runtime::Reflection::PUBLIC_INSTANCE_METHODS_METHOD = T.let(T.unsafe(nil), UnboundMethod) -# source://tapioca//lib/tapioca/runtime/reflection.rb#35 +# source://tapioca//lib/tapioca/runtime/reflection.rb#37 Tapioca::Runtime::Reflection::REQUIRED_FROM_LABELS = T.let(T.unsafe(nil), Array) -# source://tapioca//lib/tapioca/runtime/reflection.rb#24 +# source://tapioca//lib/tapioca/runtime/reflection.rb#26 Tapioca::Runtime::Reflection::SINGLETON_CLASS_METHOD = T.let(T.unsafe(nil), UnboundMethod) -# source://tapioca//lib/tapioca/runtime/reflection.rb#26 +# source://tapioca//lib/tapioca/runtime/reflection.rb#28 Tapioca::Runtime::Reflection::SUPERCLASS_METHOD = T.let(T.unsafe(nil), UnboundMethod) +class Tapioca::Runtime::Reflection::SignatureBlockError < ::Tapioca::Error; end + +class Tapioca::Runtime::SourceLocation + # @return [SourceLocation] a new instance of SourceLocation + # + # source://tapioca//lib/tapioca/runtime/source_location.rb#18 + def initialize(file:, line:); end + + # source://tapioca//lib/tapioca/runtime/source_location.rb#13 + def file; end + + # source://tapioca//lib/tapioca/runtime/source_location.rb#16 + def line; end + + class << self + # source://tapioca//lib/tapioca/runtime/source_location.rb#38 + def from_loc(loc); end + + private + + def new(*_arg0); end + end +end + +# this looks something like: +# "(eval at /path/to/file.rb:123)" +# and we are interested in the "/path/to/file.rb" and "123" parts +# +# source://tapioca//lib/tapioca/runtime/source_location.rb#10 +Tapioca::Runtime::SourceLocation::EVAL_SOURCE_FILE_PATTERN = T.let(T.unsafe(nil), Regexp) + # source://tapioca//lib/tapioca/runtime/trackers/autoload.rb#6 module Tapioca::Runtime::Trackers class << self - # source://tapioca//lib/tapioca/runtime/trackers.rb#34 - sig { void } + # source://tapioca//lib/tapioca/runtime/trackers.rb#30 def disable_all!; end - # source://tapioca//lib/tapioca/runtime/trackers.rb#39 - sig { params(tracker: ::Tapioca::Runtime::Trackers::Tracker).void } + # source://tapioca//lib/tapioca/runtime/trackers.rb#35 def register_tracker(tracker); end - # source://tapioca//lib/tapioca/runtime/trackers.rb#21 - sig do - type_parameters(:Return) - .params( - blk: T.proc.returns(T.type_parameter(:Return)) - ).returns(T.type_parameter(:Return)) - end + # source://tapioca//lib/tapioca/runtime/trackers.rb#17 def with_trackers_enabled(&blk); end end end @@ -3200,20 +3119,12 @@ module Tapioca::Runtime::Trackers::Autoload class << self # source://tapioca//lib/tapioca/runtime/trackers/autoload.rb#19 - sig { void } def eager_load_all!; end # source://tapioca//lib/tapioca/runtime/trackers/autoload.rb#31 - sig { params(constant_name: ::String).void } def register(constant_name); end - # source://tapioca//lib/tapioca/runtime/trackers/autoload.rb#42 - sig do - type_parameters(:Result) - .params( - block: T.proc.returns(T.type_parameter(:Result)) - ).returns(T.type_parameter(:Result)) - end + # source://tapioca//lib/tapioca/runtime/trackers/autoload.rb#38 def with_disabled_exits(&block); end end end @@ -3232,7 +3143,7 @@ module Tapioca::Runtime::Trackers::ConstantDefinition class << self # source://tapioca//lib/tapioca/runtime/trackers/constant_definition.rb#61 - def build_constant_location(tp, locations); end + def build_source_location(tp, locations); end # source://tapioca//lib/tapioca/runtime/trackers/constant_definition.rb#55 def disable!; end @@ -3241,71 +3152,57 @@ module Tapioca::Runtime::Trackers::ConstantDefinition # about situations where the class was opened prior to +require+ing, # or where metaprogramming was used via +eval+, etc. # - # source://tapioca//lib/tapioca/runtime/trackers/constant_definition.rb#71 + # source://tapioca//lib/tapioca/runtime/trackers/constant_definition.rb#74 def files_for(klass); end - # source://tapioca//lib/tapioca/runtime/trackers/constant_definition.rb#75 + # source://tapioca//lib/tapioca/runtime/trackers/constant_definition.rb#79 def locations_for(klass); end end end +# source://tapioca//lib/tapioca/runtime/trackers/method_definition.rb#7 +module Tapioca::Runtime::Trackers::MethodDefinition + extend ::Tapioca::Runtime::Trackers::Tracker + + class << self + # source://tapioca//lib/tapioca/runtime/trackers/method_definition.rb#29 + def method_definitions_for(method_name, owner); end + + # source://tapioca//lib/tapioca/runtime/trackers/method_definition.rb#15 + def register(method_name, owner, locations); end + + private + + # source://tapioca//lib/tapioca/runtime/trackers/method_definition.rb#43 + def registrations_for(method_name, owner); end + end +end + module Tapioca::Runtime::Trackers::Mixin extend ::Tapioca::Runtime::Trackers::Tracker class << self - # source://tapioca//lib/tapioca/runtime/trackers/mixin.rb#56 - sig do - params( - mixin: ::Module - ).returns(T::Hash[::Tapioca::Runtime::Trackers::Mixin::Type, T::Hash[::Module, ::String]]) - end + # source://tapioca//lib/tapioca/runtime/trackers/mixin.rb#53 def constants_with_mixin(mixin); end - # source://tapioca//lib/tapioca/runtime/trackers/mixin.rb#61 - sig do - params( - mixin: ::Module, - mixin_type: ::Tapioca::Runtime::Trackers::Mixin::Type, - constant: ::Module - ).returns(T.nilable(::String)) - end + # source://tapioca//lib/tapioca/runtime/trackers/mixin.rb#58 def mixin_location(mixin, mixin_type, constant); end - # source://tapioca//lib/tapioca/runtime/trackers/mixin.rb#35 - sig { params(constant: ::Module, mixin: ::Module, mixin_type: ::Tapioca::Runtime::Trackers::Mixin::Type).void } + # source://tapioca//lib/tapioca/runtime/trackers/mixin.rb#31 def register(constant, mixin, mixin_type); end - # source://tapioca//lib/tapioca/runtime/trackers/mixin.rb#43 + # source://tapioca//lib/tapioca/runtime/trackers/mixin.rb#40 def resolve_to_attached_class(constant, mixin, mixin_type); end - # source://tapioca//lib/tapioca/runtime/trackers/mixin.rb#30 - sig do - type_parameters(:Result) - .params( - block: T.proc.returns(T.type_parameter(:Result)) - ).returns(T.type_parameter(:Result)) - end + # source://tapioca//lib/tapioca/runtime/trackers/mixin.rb#26 def with_disabled_registration(&block); end private - # source://tapioca//lib/tapioca/runtime/trackers/mixin.rb#76 - sig do - params( - mixin: ::Module - ).returns(T::Hash[::Tapioca::Runtime::Trackers::Mixin::Type, T::Hash[::Module, ::String]]) - end + # source://tapioca//lib/tapioca/runtime/trackers/mixin.rb#73 def find_or_initialize_mixin_lookup(mixin); end - # source://tapioca//lib/tapioca/runtime/trackers/mixin.rb#68 - sig do - params( - constant: ::Module, - mixin: ::Module, - mixin_type: ::Tapioca::Runtime::Trackers::Mixin::Type, - location: ::String - ).void - end + # source://tapioca//lib/tapioca/runtime/trackers/mixin.rb#65 def register_with_location(constant, mixin, mixin_type, location); end end end @@ -3324,109 +3221,102 @@ module Tapioca::Runtime::Trackers::RequiredAncestor class << self # source://tapioca//lib/tapioca/runtime/trackers/required_ancestor.rb#15 - sig { params(requiring: ::T::Helpers, block: T.proc.void).void } def register(requiring, block); end # source://tapioca//lib/tapioca/runtime/trackers/required_ancestor.rb#23 - sig { params(mod: ::Module).returns(T::Array[T.proc.void]) } def required_ancestors_blocks_by(mod); end # source://tapioca//lib/tapioca/runtime/trackers/required_ancestor.rb#28 - sig { params(mod: ::Module).returns(T::Array[T.untyped]) } def required_ancestors_by(mod); end end end -# @abstract Subclasses must implement the `abstract` methods below. +# @abstract module Tapioca::Runtime::Trackers::Tracker - abstract! - - # source://tapioca//lib/tapioca/runtime/trackers/tracker.rb#26 - sig { void } + # source://tapioca//lib/tapioca/runtime/trackers/tracker.rb#23 def disable!; end # @return [Boolean] # - # source://tapioca//lib/tapioca/runtime/trackers/tracker.rb#30 + # source://tapioca//lib/tapioca/runtime/trackers/tracker.rb#27 def enabled?; end - # source://tapioca//lib/tapioca/runtime/trackers/tracker.rb#34 + # source://tapioca//lib/tapioca/runtime/trackers/tracker.rb#31 def with_disabled_tracker(&block); end class << self - # source://tapioca//lib/tapioca/runtime/trackers/tracker.rb#17 - sig { params(base: T.all(::Module, ::Tapioca::Runtime::Trackers::Tracker)).void } + # source://tapioca//lib/tapioca/runtime/trackers/tracker.rb#14 def extended(base); end end end -# source://tapioca//lib/tapioca.rb#35 +# source://tapioca//lib/tapioca.rb#31 Tapioca::SORBET_CONFIG_FILE = T.let(T.unsafe(nil), String) -# source://tapioca//lib/tapioca.rb#34 +# source://tapioca//lib/tapioca.rb#30 Tapioca::SORBET_DIR = T.let(T.unsafe(nil), String) # source://tapioca//lib/tapioca/helpers/sorbet_helper.rb#5 module Tapioca::SorbetHelper - # source://tapioca//lib/tapioca/helpers/sorbet_helper.rb#32 + # source://tapioca//lib/tapioca/helpers/sorbet_helper.rb#23 sig { params(sorbet_args: ::String).returns(::Spoom::ExecResult) } def sorbet(*sorbet_args); end - # source://tapioca//lib/tapioca/helpers/sorbet_helper.rb#37 + # source://tapioca//lib/tapioca/helpers/sorbet_helper.rb#28 sig { returns(::String) } def sorbet_path; end - # source://tapioca//lib/tapioca/helpers/sorbet_helper.rb#44 + # source://tapioca//lib/tapioca/helpers/sorbet_helper.rb#35 sig { params(feature: ::Symbol, version: T.nilable(::Gem::Version)).returns(T::Boolean) } def sorbet_supports?(feature, version: T.unsafe(nil)); end end -# source://tapioca//lib/tapioca/helpers/sorbet_helper.rb#24 +# source://tapioca//lib/tapioca/helpers/sorbet_helper.rb#18 Tapioca::SorbetHelper::FEATURE_REQUIREMENTS = T.let(T.unsafe(nil), Hash) -# source://tapioca//lib/tapioca/helpers/sorbet_helper.rb#13 +# source://tapioca//lib/tapioca/helpers/sorbet_helper.rb#10 Tapioca::SorbetHelper::SORBET_BIN = T.let(T.unsafe(nil), Pathname) -# source://tapioca//lib/tapioca/helpers/sorbet_helper.rb#18 +# source://tapioca//lib/tapioca/helpers/sorbet_helper.rb#12 Tapioca::SorbetHelper::SORBET_EXE_PATH_ENV_VAR = T.let(T.unsafe(nil), String) # source://tapioca//lib/tapioca/helpers/sorbet_helper.rb#8 Tapioca::SorbetHelper::SORBET_GEM_SPEC = T.let(T.unsafe(nil), Gem::Specification) -# source://tapioca//lib/tapioca/helpers/sorbet_helper.rb#20 +# source://tapioca//lib/tapioca/helpers/sorbet_helper.rb#14 Tapioca::SorbetHelper::SORBET_PAYLOAD_URL = T.let(T.unsafe(nil), String) -# source://tapioca//lib/tapioca/helpers/sorbet_helper.rb#22 +# source://tapioca//lib/tapioca/helpers/sorbet_helper.rb#16 Tapioca::SorbetHelper::SPOOM_CONTEXT = T.let(T.unsafe(nil), Spoom::Context) # source://tapioca//lib/tapioca/helpers/source_uri.rb#7 class Tapioca::SourceURI < ::URI::File - # source://tapioca//lib/tapioca/helpers/source_uri.rb#72 + # source://tapioca//lib/tapioca/helpers/source_uri.rb#62 sig { params(v: T.nilable(::String)).returns(T::Boolean) } def check_host(v); end - # source://tapioca//lib/tapioca/helpers/source_uri.rb#55 + # source://tapioca//lib/tapioca/helpers/source_uri.rb#45 sig { returns(T.nilable(::String)) } def gem_name; end - # source://tapioca//lib/tapioca/helpers/source_uri.rb#29 + # source://tapioca//lib/tapioca/helpers/source_uri.rb#26 sig { returns(T.nilable(::String)) } def gem_version; end - # source://tapioca//lib/tapioca/helpers/source_uri.rb#60 + # source://tapioca//lib/tapioca/helpers/source_uri.rb#50 sig { returns(T.nilable(::String)) } def line_number; end - # source://tapioca//lib/tapioca/helpers/source_uri.rb#65 + # source://tapioca//lib/tapioca/helpers/source_uri.rb#55 sig { params(v: T.nilable(::String)).void } def set_path(v); end - # source://tapioca//lib/tapioca/helpers/source_uri.rb#84 + # source://tapioca//lib/tapioca/helpers/source_uri.rb#74 sig { returns(::String) } def to_s; end class << self - # source://tapioca//lib/tapioca/helpers/source_uri.rb#42 + # source://tapioca//lib/tapioca/helpers/source_uri.rb#32 sig do params( gem_name: ::String, @@ -3448,7 +3338,7 @@ Tapioca::SourceURI::COMPONENT = T.let(T.unsafe(nil), Array) # handling to select a parser that doesn't emit deprecations. While it was backported to Ruby 3.1, users may # have the uri gem in their own bundle and thus not use a compatible version. # -# source://tapioca//lib/tapioca/helpers/source_uri.rb#26 +# source://tapioca//lib/tapioca/helpers/source_uri.rb#23 Tapioca::SourceURI::PARSER = T.let(T.unsafe(nil), URI::RFC2396_Parser) # source://tapioca//lib/tapioca/static/symbol_table_parser.rb#5 @@ -3508,12 +3398,10 @@ module Tapioca::Static::SymbolLoader private - # @return [Array] - # - # source://tapioca//lib/tapioca/static/symbol_loader.rb#71 + # source://tapioca//lib/tapioca/static/symbol_loader.rb#72 def engines; end - # source://tapioca//lib/tapioca/static/symbol_loader.rb#84 + # source://tapioca//lib/tapioca/static/symbol_loader.rb#82 sig { params(input: ::String, table_type: ::String).returns(::String) } def symbol_table_json_from(input, table_type: T.unsafe(nil)); end end @@ -3547,10 +3435,10 @@ end # source://tapioca//lib/tapioca/static/symbol_table_parser.rb#9 Tapioca::Static::SymbolTableParser::SKIP_PARSE_KINDS = T.let(T.unsafe(nil), Array) -# source://tapioca//lib/tapioca.rb#37 +# source://tapioca//lib/tapioca.rb#33 Tapioca::TAPIOCA_CONFIG_FILE = T.let(T.unsafe(nil), String) -# source://tapioca//lib/tapioca.rb#36 +# source://tapioca//lib/tapioca.rb#32 Tapioca::TAPIOCA_DIR = T.let(T.unsafe(nil), String) # source://tapioca//lib/tapioca/sorbet_ext/generic_name_patch.rb#108 @@ -3574,41 +3462,31 @@ end # # source://tapioca//lib/tapioca/sorbet_ext/generic_name_patch.rb#122 class Tapioca::TypeVariableModule < ::Module - # source://tapioca//lib/tapioca/sorbet_ext/generic_name_patch.rb#146 - sig do - params( - context: ::Module, - type: ::Tapioca::TypeVariableModule::Type, - variance: ::Symbol, - bounds_proc: T.nilable(T.proc.returns(T::Hash[::Symbol, T.untyped])) - ).void - end + # @return [TypeVariableModule] a new instance of TypeVariableModule + # + # source://tapioca//lib/tapioca/sorbet_ext/generic_name_patch.rb#139 def initialize(context, type, variance, bounds_proc); end - # source://tapioca//lib/tapioca/sorbet_ext/generic_name_patch.rb#181 - sig { returns(::Tapioca::TypeVariable) } + # source://tapioca//lib/tapioca/sorbet_ext/generic_name_patch.rb#175 def coerce_to_type_variable; end - # source://tapioca//lib/tapioca/sorbet_ext/generic_name_patch.rb#161 - sig { returns(T::Boolean) } + # @return [Boolean] + # + # source://tapioca//lib/tapioca/sorbet_ext/generic_name_patch.rb#155 def fixed?; end - # source://tapioca//lib/tapioca/sorbet_ext/generic_name_patch.rb#155 - sig { returns(T.nilable(::String)) } + # source://tapioca//lib/tapioca/sorbet_ext/generic_name_patch.rb#149 def name; end - # source://tapioca//lib/tapioca/sorbet_ext/generic_name_patch.rb#166 - sig { returns(::String) } + # source://tapioca//lib/tapioca/sorbet_ext/generic_name_patch.rb#160 def serialize; end # source://tapioca//lib/tapioca/sorbet_ext/generic_name_patch.rb#136 - sig { returns(::Tapioca::TypeVariableModule::Type) } def type; end private - # source://tapioca//lib/tapioca/sorbet_ext/generic_name_patch.rb#188 - sig { returns(T::Hash[::Symbol, T.untyped]) } + # source://tapioca//lib/tapioca/sorbet_ext/generic_name_patch.rb#182 def bounds; end end diff --git a/Library/Homebrew/sorbet/rbi/gems/vernier@1.7.1.rbi b/Library/Homebrew/sorbet/rbi/gems/vernier@1.8.0.rbi similarity index 86% rename from Library/Homebrew/sorbet/rbi/gems/vernier@1.7.1.rbi rename to Library/Homebrew/sorbet/rbi/gems/vernier@1.8.0.rbi index a8517adef3..8680e5fbbd 100644 --- a/Library/Homebrew/sorbet/rbi/gems/vernier@1.7.1.rbi +++ b/Library/Homebrew/sorbet/rbi/gems/vernier@1.8.0.rbi @@ -8,24 +8,25 @@ # source://vernier//lib/vernier/version.rb#3 module Vernier class << self + # source://vernier//lib/vernier/marker.rb#3 def memory_rss; end - # source://vernier//lib/vernier.rb#20 + # source://vernier//lib/vernier.rb#21 def profile(mode: T.unsafe(nil), **collector_options); end - # source://vernier//lib/vernier.rb#20 + # source://vernier//lib/vernier.rb#37 def run(mode: T.unsafe(nil), **collector_options); end - # source://vernier//lib/vernier.rb#41 + # source://vernier//lib/vernier.rb#42 def start_profile(mode: T.unsafe(nil), **collector_options); end - # source://vernier//lib/vernier.rb#53 + # source://vernier//lib/vernier.rb#54 def stop_profile; end - # source://vernier//lib/vernier.rb#20 + # source://vernier//lib/vernier.rb#36 def trace(mode: T.unsafe(nil), **collector_options); end - # source://vernier//lib/vernier.rb#62 + # source://vernier//lib/vernier.rb#63 def trace_retained(**profile_options, &block); end end end @@ -37,7 +38,7 @@ class Vernier::Collector # source://vernier//lib/vernier/collector.rb#8 def initialize(mode, options = T.unsafe(nil)); end - # source://vernier//lib/vernier/collector.rb#53 + # source://vernier//lib/vernier/collector.rb#54 def add_marker(name:, start:, finish:, thread: T.unsafe(nil), phase: T.unsafe(nil), data: T.unsafe(nil)); end # Get the current time. @@ -46,38 +47,45 @@ class Vernier::Collector # integer nanoseconds. It's the same time used by Vernier internals and # can be used to generate timestamps for custom markers. # - # source://vernier//lib/vernier/collector.rb#49 + # source://vernier//lib/vernier/collector.rb#50 def current_time; end # Record an interval with a category and name. Yields to a block and # records the amount of time spent in the block as an interval marker. # - # source://vernier//lib/vernier/collector.rb#65 + # source://vernier//lib/vernier/collector.rb#66 def record_interval(category, name = T.unsafe(nil)); end + # source://vernier//lib/vernier/marker.rb#3 def sample; end + + # source://vernier//lib/vernier/marker.rb#3 def stack_table; end + + # source://vernier//lib/vernier/marker.rb#3 def start; end - # source://vernier//lib/vernier/collector.rb#78 + # source://vernier//lib/vernier/collector.rb#79 def stop; end private - # source://vernier//lib/vernier/collector.rb#32 + # source://vernier//lib/vernier/collector.rb#33 def add_hook(hook); end + # source://vernier//lib/vernier/marker.rb#3 def finish; end class << self + # source://vernier//lib/vernier/marker.rb#3 def _new(_arg0, _arg1); end - # source://vernier//lib/vernier.rb#67 + # source://vernier//lib/vernier.rb#68 def new(mode, options = T.unsafe(nil)); end end end -# source://vernier//lib/vernier.rb#16 +# source://vernier//lib/vernier.rb#17 class Vernier::Error < ::StandardError; end # source://vernier//lib/vernier/hooks.rb#4 @@ -160,9 +168,16 @@ Vernier::Marker::Type::THREAD_STALLED = T.let(T.unsafe(nil), Integer) Vernier::Marker::Type::THREAD_SUSPENDED = T.let(T.unsafe(nil), Integer) class Vernier::MemoryTracker + # source://vernier//lib/vernier/marker.rb#3 def record; end + + # source://vernier//lib/vernier/marker.rb#3 def results; end + + # source://vernier//lib/vernier/marker.rb#3 def start; end + + # source://vernier//lib/vernier/marker.rb#3 def stop; end end @@ -180,6 +195,48 @@ end # source://vernier//lib/vernier/output/filename_filter.rb#4 module Vernier::Output; end +# source://vernier//lib/vernier/output/cpuprofile.rb#5 +class Vernier::Output::Cpuprofile + # @return [Cpuprofile] a new instance of Cpuprofile + # + # source://vernier//lib/vernier/output/cpuprofile.rb#6 + def initialize(profile); end + + # source://vernier//lib/vernier/output/cpuprofile.rb#10 + def output; end + + private + + # source://vernier//lib/vernier/output/cpuprofile.rb#53 + def build_nodes; end + + # source://vernier//lib/vernier/output/cpuprofile.rb#128 + def calculate_time_deltas(timestamps); end + + # source://vernier//lib/vernier/output/cpuprofile.rb#85 + def create_node_for_stack(stack_idx, nodes, stack_table); end + + # source://vernier//lib/vernier/output/cpuprofile.rb#22 + def data; end + + # source://vernier//lib/vernier/output/cpuprofile.rb#43 + def empty_profile; end + + # source://vernier//lib/vernier/output/cpuprofile.rb#18 + def ns_to_us(timestamp); end + + # Returns the value of attribute profile. + # + # source://vernier//lib/vernier/output/cpuprofile.rb#16 + def profile; end + + # source://vernier//lib/vernier/output/cpuprofile.rb#70 + def root_node; end + + # source://vernier//lib/vernier/output/cpuprofile.rb#124 + def stack_to_node_id(stack_idx); end +end + # source://vernier//lib/vernier/output/file_listing.rb#8 class Vernier::Output::FileListing # @return [FileListing] a new instance of FileListing @@ -573,13 +630,13 @@ end class Vernier::Result # Returns the value of attribute stack_table. # - # source://vernier//lib/vernier/result.rb#3 + # source://vernier//lib/vernier/result.rb#4 def _stack_table; end - # source://vernier//lib/vernier/result.rb#49 + # source://vernier//lib/vernier/result.rb#61 def each_sample; end - # source://vernier//lib/vernier/result.rb#41 + # source://vernier//lib/vernier/result.rb#53 def elapsed_seconds; end # Returns the value of attribute end_time. @@ -611,7 +668,7 @@ class Vernier::Result # source://vernier//lib/vernier/result.rb#8 def hooks=(_arg0); end - # source://vernier//lib/vernier/result.rb#45 + # source://vernier//lib/vernier/result.rb#57 def inspect; end # source://vernier//lib/vernier/result.rb#15 @@ -659,7 +716,7 @@ class Vernier::Result # source://vernier//lib/vernier/result.rb#21 def samples; end - # source://vernier//lib/vernier/result.rb#58 + # source://vernier//lib/vernier/result.rb#70 def stack(idx); end # Returns the value of attribute stack_table. @@ -691,10 +748,16 @@ class Vernier::Result # source://vernier//lib/vernier/result.rb#11 def threads=(_arg0); end + # source://vernier//lib/vernier/result.rb#37 + def to_cpuprofile; end + # source://vernier//lib/vernier/result.rb#32 + def to_firefox(gzip: T.unsafe(nil)); end + + # source://vernier//lib/vernier/result.rb#35 def to_gecko(gzip: T.unsafe(nil)); end - # source://vernier//lib/vernier/result.rb#62 + # source://vernier//lib/vernier/result.rb#74 def total_bytes; end # TODO: remove these @@ -702,28 +765,52 @@ class Vernier::Result # source://vernier//lib/vernier/result.rb#20 def weights; end - # source://vernier//lib/vernier/result.rb#36 - def write(out:); end + # source://vernier//lib/vernier/result.rb#41 + def write(out:, format: T.unsafe(nil)); end end # source://vernier//lib/vernier/stack_table.rb#4 class Vernier::StackTable include ::Vernier::StackTableHelpers + # source://vernier//lib/vernier/marker.rb#3 def convert(_arg0, _arg1); end + + # source://vernier//lib/vernier/marker.rb#3 def current_stack(*_arg0); end + + # source://vernier//lib/vernier/marker.rb#3 def frame_count; end + + # source://vernier//lib/vernier/marker.rb#3 def frame_func_idx(_arg0); end + + # source://vernier//lib/vernier/marker.rb#3 def frame_line_no(_arg0); end + + # source://vernier//lib/vernier/marker.rb#3 def func_count; end + + # source://vernier//lib/vernier/marker.rb#3 def func_filename(_arg0); end + + # source://vernier//lib/vernier/marker.rb#3 def func_first_lineno(_arg0); end + + # source://vernier//lib/vernier/marker.rb#3 def func_name(_arg0); end + + # source://vernier//lib/vernier/marker.rb#3 def stack_count; end + + # source://vernier//lib/vernier/marker.rb#3 def stack_frame_idx(_arg0); end + + # source://vernier//lib/vernier/marker.rb#3 def stack_parent_idx(_arg0); end class << self + # source://vernier//lib/vernier/marker.rb#3 def new; end end end @@ -781,7 +868,7 @@ class Vernier::StackTableHelpers::Frame < ::Vernier::StackTableHelpers::BaseType # source://vernier//lib/vernier/stack_table_helpers.rb#83 def line; end - # source://vernier//lib/vernier/stack_table_helpers.rb#74 + # source://vernier//lib/vernier/stack_table_helpers.rb#76 def name; end # source://vernier//lib/vernier/stack_table_helpers.rb#87 @@ -796,7 +883,7 @@ class Vernier::StackTableHelpers::Func < ::Vernier::StackTableHelpers::BaseType # source://vernier//lib/vernier/stack_table_helpers.rb#59 def label; end - # source://vernier//lib/vernier/stack_table_helpers.rb#59 + # source://vernier//lib/vernier/stack_table_helpers.rb#62 def name; end # source://vernier//lib/vernier/stack_table_helpers.rb#68 @@ -813,7 +900,7 @@ class Vernier::StackTableHelpers::Stack < ::Vernier::StackTableHelpers::BaseType # source://vernier//lib/vernier/stack_table_helpers.rb#93 def each; end - # source://vernier//lib/vernier/stack_table_helpers.rb#93 + # source://vernier//lib/vernier/stack_table_helpers.rb#103 def each_frame; end # source://vernier//lib/vernier/stack_table_helpers.rb#123