From b76d78328e8fccc4fdb1e33dc882b096dae60d2b Mon Sep 17 00:00:00 2001 From: BrewTestBot <1589480+BrewTestBot@users.noreply.github.com> Date: Wed, 12 Mar 2025 20:46:38 +0000 Subject: [PATCH] Update RBI files for sorbet. Autogenerated by the [vendor-gems](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/vendor-gems.yml) workflow. --- .../rbi/gems/{rbi@0.2.4.rbi => rbi@0.3.0.rbi} | 3791 ++++++--- .../Homebrew/sorbet/rbi/gems/rbs@3.8.1.rbi | 6880 +++++++++++++++++ 2 files changed, 9806 insertions(+), 865 deletions(-) rename Library/Homebrew/sorbet/rbi/gems/{rbi@0.2.4.rbi => rbi@0.3.0.rbi} (55%) create mode 100644 Library/Homebrew/sorbet/rbi/gems/rbs@3.8.1.rbi diff --git a/Library/Homebrew/sorbet/rbi/gems/rbi@0.2.4.rbi b/Library/Homebrew/sorbet/rbi/gems/rbi@0.3.0.rbi similarity index 55% rename from Library/Homebrew/sorbet/rbi/gems/rbi@0.2.4.rbi rename to Library/Homebrew/sorbet/rbi/gems/rbi@0.3.0.rbi index 17aa5f7dc1..9ca377df30 100644 --- a/Library/Homebrew/sorbet/rbi/gems/rbi@0.2.4.rbi +++ b/Library/Homebrew/sorbet/rbi/gems/rbi@0.3.0.rbi @@ -5,24 +5,41 @@ # Please instead update this file by running `bin/tapioca gem rbi`. -# source://rbi//lib/rbi.rb#7 +# typed: true + +# DO NOT EDIT MANUALLY +# This is an autogenerated file for types exported from the `rbi` gem. +# Please instead update this file by running `bin/tapioca gem rbi`. + +# source://rbi//lib/rbi.rb#8 +# source://rbi//lib/rbi.rb#13 module RBI; end -# source://rbi//lib/rbi/model.rb#1045 +# source://rbi//lib/rbi/model.rb#802 class RBI::Arg < ::RBI::Node - # source://rbi//lib/rbi/model.rb#1057 + # : (String value, ?loc: Loc?) -> void + # + # @return [Arg] a new instance of Arg + # + # source://rbi//lib/rbi/model.rb#807 sig { params(value: ::String, loc: T.nilable(::RBI::Loc)).void } def initialize(value, loc: T.unsafe(nil)); end - # source://rbi//lib/rbi/model.rb#1063 + # : (Object? other) -> bool + # + # source://rbi//lib/rbi/model.rb#813 sig { params(other: T.nilable(::Object)).returns(T::Boolean) } def ==(other); end - # source://rbi//lib/rbi/model.rb#1068 + # : -> String + # + # source://rbi//lib/rbi/model.rb#818 sig { returns(::String) } def to_s; end - # source://rbi//lib/rbi/model.rb#1049 + # : String + # + # source://rbi//lib/rbi/model.rb#804 sig { returns(::String) } def value; end end @@ -31,13 +48,17 @@ end # # @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. # -# source://rbi//lib/rbi/model.rb#351 +# source://rbi//lib/rbi/model.rb#298 class RBI::Attr < ::RBI::NodeWithComments include ::RBI::Indexable abstract! - # source://rbi//lib/rbi/model.rb#376 + # : (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#314 sig do params( name: ::Symbol, @@ -50,50 +71,67 @@ 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 - # source://rbi//lib/rbi/rewriters/merge_trees.rb#420 + # : (Node other) -> bool + # + # @return [Boolean] + # + # source://rbi//lib/rbi/rewriters/merge_trees.rb#394 sig { override.params(other: ::RBI::Node).returns(T::Boolean) } def compatible_with?(other); end # @abstract # - # source://rbi//lib/rbi/rewriters/attr_to_methods.rb#61 + # source://rbi//lib/rbi/rewriters/attr_to_methods.rb#58 sig { abstract.returns(T::Array[::RBI::Method]) } def convert_to_methods; end # @abstract # - # source://rbi//lib/rbi/model.rb#384 + # source://rbi//lib/rbi/model.rb#322 sig { abstract.returns(T::Array[::String]) } def fully_qualified_names; end - # source://rbi//lib/rbi/index.rb#113 + # : -> Array[String] + # + # source://rbi//lib/rbi/index.rb#109 sig { override.returns(T::Array[::String]) } def index_ids; end - # source://rbi//lib/rbi/rewriters/merge_trees.rb#428 + # : (Node other) -> void + # + # source://rbi//lib/rbi/rewriters/merge_trees.rb#403 sig { override.params(other: ::RBI::Node).void } def merge_with(other); end - # source://rbi//lib/rbi/model.rb#358 + # : Array[Symbol] + # + # source://rbi//lib/rbi/model.rb#305 sig { returns(T::Array[::Symbol]) } def names; end - # source://rbi//lib/rbi/model.rb#364 + # : Array[Sig] + # + # source://rbi//lib/rbi/model.rb#311 sig { returns(T::Array[::RBI::Sig]) } def sigs; end - # source://rbi//lib/rbi/model.rb#361 + # : Visibility + # + # source://rbi//lib/rbi/model.rb#308 sig { returns(::RBI::Visibility) } def visibility; end - # @return [Visibility] + # : Visibility # - # source://rbi//lib/rbi/model.rb#361 + # source://rbi//lib/rbi/model.rb#308 + # @return [Visibility] def visibility=(_arg0); end private - # source://rbi//lib/rbi/rewriters/attr_to_methods.rb#89 + # : (String name, Sig? sig, Visibility visibility, Loc? loc, Array[Comment] comments) -> Method + # + # source://rbi//lib/rbi/rewriters/attr_to_methods.rb#79 sig do params( name: ::String, @@ -105,7 +143,9 @@ class RBI::Attr < ::RBI::NodeWithComments end def create_getter_method(name, sig, visibility, loc, comments); end - # source://rbi//lib/rbi/rewriters/attr_to_methods.rb#110 + # : (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 sig do params( name: ::String, @@ -118,16 +158,22 @@ 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#66 + # source://rbi//lib/rbi/rewriters/attr_to_methods.rb#64 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#387 +# source://rbi//lib/rbi/model.rb#325 class RBI::AttrAccessor < ::RBI::Attr - # source://rbi//lib/rbi/model.rb#401 + # : (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#327 sig do params( name: ::Symbol, @@ -141,26 +187,40 @@ 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 - # source://rbi//lib/rbi/rewriters/merge_trees.rb#460 + # : (Node other) -> bool + # + # @return [Boolean] + # + # source://rbi//lib/rbi/rewriters/merge_trees.rb#432 sig { override.params(other: ::RBI::Node).returns(T::Boolean) } def compatible_with?(other); end - # source://rbi//lib/rbi/rewriters/attr_to_methods.rb#140 + # : -> Array[Method] + # + # source://rbi//lib/rbi/rewriters/attr_to_methods.rb#122 sig { override.returns(T::Array[::RBI::Method]) } def convert_to_methods; end - # source://rbi//lib/rbi/model.rb#407 + # : -> Array[String] + # + # source://rbi//lib/rbi/model.rb#334 sig { override.returns(T::Array[::String]) } def fully_qualified_names; end - # source://rbi//lib/rbi/model.rb#413 + # : -> String + # + # source://rbi//lib/rbi/model.rb#341 sig { override.returns(::String) } def to_s; end end -# source://rbi//lib/rbi/model.rb#419 +# source://rbi//lib/rbi/model.rb#347 class RBI::AttrReader < ::RBI::Attr - # source://rbi//lib/rbi/model.rb#433 + # : (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#349 sig do params( name: ::Symbol, @@ -174,26 +234,40 @@ 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 - # source://rbi//lib/rbi/rewriters/merge_trees.rb#442 + # : (Node other) -> bool + # + # @return [Boolean] + # + # source://rbi//lib/rbi/rewriters/merge_trees.rb#416 sig { override.params(other: ::RBI::Node).returns(T::Boolean) } def compatible_with?(other); end - # source://rbi//lib/rbi/rewriters/attr_to_methods.rb#154 + # : -> Array[Method] + # + # source://rbi//lib/rbi/rewriters/attr_to_methods.rb#137 sig { override.returns(T::Array[::RBI::Method]) } def convert_to_methods; end - # source://rbi//lib/rbi/model.rb#439 + # : -> Array[String] + # + # source://rbi//lib/rbi/model.rb#356 sig { override.returns(T::Array[::String]) } def fully_qualified_names; end - # source://rbi//lib/rbi/model.rb#445 + # : -> String + # + # source://rbi//lib/rbi/model.rb#363 sig { override.returns(::String) } def to_s; end end -# source://rbi//lib/rbi/model.rb#451 +# source://rbi//lib/rbi/model.rb#369 class RBI::AttrWriter < ::RBI::Attr - # source://rbi//lib/rbi/model.rb#465 + # : (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#371 sig do params( name: ::Symbol, @@ -207,35 +281,53 @@ 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 - # source://rbi//lib/rbi/rewriters/merge_trees.rb#451 + # : (Node other) -> bool + # + # @return [Boolean] + # + # source://rbi//lib/rbi/rewriters/merge_trees.rb#424 sig { override.params(other: ::RBI::Node).returns(T::Boolean) } def compatible_with?(other); end - # source://rbi//lib/rbi/rewriters/attr_to_methods.rb#163 + # : -> Array[Method] + # + # source://rbi//lib/rbi/rewriters/attr_to_methods.rb#147 sig { override.returns(T::Array[::RBI::Method]) } def convert_to_methods; end - # source://rbi//lib/rbi/model.rb#471 + # : -> Array[String] + # + # source://rbi//lib/rbi/model.rb#378 sig { override.returns(T::Array[::String]) } def fully_qualified_names; end - # source://rbi//lib/rbi/model.rb#477 + # : -> String + # + # source://rbi//lib/rbi/model.rb#385 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#76 +# source://rbi//lib/rbi/model.rb#73 class RBI::BlankLine < ::RBI::Comment - # source://rbi//lib/rbi/model.rb#80 + # : (?loc: Loc?) -> void + # + # @return [BlankLine] a new instance of BlankLine + # + # source://rbi//lib/rbi/model.rb#75 sig { params(loc: T.nilable(::RBI::Loc)).void } def initialize(loc: T.unsafe(nil)); end end -# source://rbi//lib/rbi/model.rb#816 +# source://rbi//lib/rbi/model.rb#642 class RBI::BlockParam < ::RBI::Param - # source://rbi//lib/rbi/model.rb#827 + # : (String name, ?loc: Loc?, ?comments: Array[Comment]) ?{ (BlockParam node) -> void } -> void + # + # @return [BlockParam] a new instance of BlockParam + # + # source://rbi//lib/rbi/model.rb#644 sig do params( name: ::String, @@ -246,18 +338,26 @@ class RBI::BlockParam < ::RBI::Param end def initialize(name, loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end - # source://rbi//lib/rbi/model.rb#838 + # : (Object? other) -> bool + # + # source://rbi//lib/rbi/model.rb#656 sig { params(other: T.nilable(::Object)).returns(T::Boolean) } def ==(other); end - # source://rbi//lib/rbi/model.rb#833 + # : -> String + # + # source://rbi//lib/rbi/model.rb#651 sig { override.returns(::String) } def to_s; end end -# source://rbi//lib/rbi/model.rb#220 +# source://rbi//lib/rbi/model.rb#202 class RBI::Class < ::RBI::Scope - # source://rbi//lib/rbi/model.rb#238 + # : (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#210 sig do params( name: ::String, @@ -269,50 +369,71 @@ class RBI::Class < ::RBI::Scope end def initialize(name, superclass_name: T.unsafe(nil), loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end - # source://rbi//lib/rbi/rewriters/merge_trees.rb#384 + # : (Node other) -> bool + # + # @return [Boolean] + # + # source://rbi//lib/rbi/rewriters/merge_trees.rb#362 sig { override.params(other: ::RBI::Node).returns(T::Boolean) } def compatible_with?(other); end - # source://rbi//lib/rbi/model.rb#246 + # : -> String + # + # source://rbi//lib/rbi/model.rb#219 sig { override.returns(::String) } def fully_qualified_name; end - # source://rbi//lib/rbi/model.rb#224 + # : String + # + # source://rbi//lib/rbi/model.rb#204 sig { returns(::String) } def name; end - # @return [String] + # : String # - # source://rbi//lib/rbi/model.rb#224 + # source://rbi//lib/rbi/model.rb#204 + # @return [String] def name=(_arg0); end - # source://rbi//lib/rbi/model.rb#227 + # : String? + # + # source://rbi//lib/rbi/model.rb#207 sig { returns(T.nilable(::String)) } def superclass_name; end - # @return [String, nil] + # : String? # - # source://rbi//lib/rbi/model.rb#227 + # source://rbi//lib/rbi/model.rb#207 + # @return [String, nil] def superclass_name=(_arg0); end end -# source://rbi//lib/rbi/model.rb#55 +# source://rbi//lib/rbi/model.rb#54 class RBI::Comment < ::RBI::Node - # source://rbi//lib/rbi/model.rb#62 + # : (String text, ?loc: Loc?) -> void + # + # @return [Comment] a new instance of Comment + # + # source://rbi//lib/rbi/model.rb#59 sig { params(text: ::String, loc: T.nilable(::RBI::Loc)).void } def initialize(text, loc: T.unsafe(nil)); end - # source://rbi//lib/rbi/model.rb#68 + # : (Object other) -> bool + # + # source://rbi//lib/rbi/model.rb#65 sig { params(other: ::Object).returns(T::Boolean) } def ==(other); end - # source://rbi//lib/rbi/model.rb#59 + # : String + # + # source://rbi//lib/rbi/model.rb#56 sig { returns(::String) } def text; end - # @return [String] + # : String # - # source://rbi//lib/rbi/model.rb#59 + # source://rbi//lib/rbi/model.rb#56 + # @return [String] def text=(_arg0); end end @@ -331,38 +452,64 @@ end # end # ~~~ # -# source://rbi//lib/rbi/rewriters/merge_trees.rb#583 +# 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 class RBI::ConflictTree < ::RBI::Tree - # source://rbi//lib/rbi/rewriters/merge_trees.rb#593 + # : (?left_name: String, ?right_name: String) -> void + # + # @return [ConflictTree] a new instance of ConflictTree + # + # source://rbi//lib/rbi/rewriters/merge_trees.rb#554 sig { params(left_name: ::String, right_name: ::String).void } def initialize(left_name: T.unsafe(nil), right_name: T.unsafe(nil)); end - # source://rbi//lib/rbi/rewriters/merge_trees.rb#587 + # : Tree + # + # source://rbi//lib/rbi/rewriters/merge_trees.rb#548 sig { returns(::RBI::Tree) } def left; end - # source://rbi//lib/rbi/rewriters/merge_trees.rb#590 + # : String + # + # source://rbi//lib/rbi/rewriters/merge_trees.rb#551 sig { returns(::String) } def left_name; end - # @return [Tree] + # : Tree # - # source://rbi//lib/rbi/rewriters/merge_trees.rb#587 + # source://rbi//lib/rbi/rewriters/merge_trees.rb#548 + # @return [Tree] def right; end - # @return [String] + # : String # - # source://rbi//lib/rbi/rewriters/merge_trees.rb#590 + # source://rbi//lib/rbi/rewriters/merge_trees.rb#551 + # @return [String] def right_name; end end # Consts # -# source://rbi//lib/rbi/model.rb#314 +# source://rbi//lib/rbi/model.rb#270 class RBI::Const < ::RBI::NodeWithComments include ::RBI::Indexable - # source://rbi//lib/rbi/model.rb#329 + # : (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#275 sig do params( name: ::String, @@ -374,43 +521,61 @@ class RBI::Const < ::RBI::NodeWithComments end def initialize(name, value, loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end - # source://rbi//lib/rbi/rewriters/merge_trees.rb#411 + # : (Node other) -> bool + # + # @return [Boolean] + # + # source://rbi//lib/rbi/rewriters/merge_trees.rb#386 sig { override.params(other: ::RBI::Node).returns(T::Boolean) } def compatible_with?(other); end - # source://rbi//lib/rbi/model.rb#337 + # : -> String + # + # source://rbi//lib/rbi/model.rb#283 sig { returns(::String) } def fully_qualified_name; end - # source://rbi//lib/rbi/index.rb#103 + # : -> Array[String] + # + # source://rbi//lib/rbi/index.rb#99 sig { override.returns(T::Array[::String]) } def index_ids; end - # source://rbi//lib/rbi/model.rb#318 + # : String + # + # source://rbi//lib/rbi/model.rb#272 sig { returns(::String) } def name; end - # source://rbi//lib/rbi/model.rb#344 + # : -> String + # + # source://rbi//lib/rbi/model.rb#291 sig { override.returns(::String) } def to_s; end - # @return [String] + # : String # - # source://rbi//lib/rbi/model.rb#318 + # source://rbi//lib/rbi/model.rb#272 + # @return [String] def value; end end -# source://rbi//lib/rbi/rewriters/merge_trees.rb#351 +# source://rbi//lib/rbi/rewriters/merge_trees.rb#332 class RBI::DuplicateNodeError < ::RBI::Error; end -# source://rbi//lib/rbi.rb#8 +# source://rbi//lib/rbi.rb#9 +# source://rbi//lib/rbi.rb#14 class RBI::Error < ::StandardError; end -# source://rbi//lib/rbi/model.rb#891 +# source://rbi//lib/rbi/model.rb#692 class RBI::Extend < ::RBI::Mixin include ::RBI::Indexable - # source://rbi//lib/rbi/model.rb#903 + # : (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#694 sig do params( name: ::String, @@ -422,22 +587,34 @@ class RBI::Extend < ::RBI::Mixin end def initialize(name, *names, loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end - # source://rbi//lib/rbi/rewriters/merge_trees.rb#510 + # : (Node other) -> bool + # + # @return [Boolean] + # + # source://rbi//lib/rbi/rewriters/merge_trees.rb#479 sig { override.params(other: ::RBI::Node).returns(T::Boolean) } def compatible_with?(other); end - # source://rbi//lib/rbi/index.rb#143 + # : -> Array[String] + # + # source://rbi//lib/rbi/index.rb#139 sig { override.returns(T::Array[::String]) } def index_ids; end - # source://rbi//lib/rbi/model.rb#909 + # : -> String + # + # source://rbi//lib/rbi/model.rb#701 sig { override.returns(::String) } def to_s; end end -# source://rbi//lib/rbi/model.rb#139 +# source://rbi//lib/rbi/model.rb#135 class RBI::File - # source://rbi//lib/rbi/model.rb#158 + # : (?strictness: String?, ?comments: Array[Comment]) ?{ (File file) -> void } -> void + # + # @return [File] a new instance of File + # + # source://rbi//lib/rbi/model.rb#146 sig do params( strictness: T.nilable(::String), @@ -447,24 +624,35 @@ class RBI::File end def initialize(strictness: T.unsafe(nil), comments: T.unsafe(nil), &block); end - # source://rbi//lib/rbi/model.rb#166 + # : (Node node) -> void + # + # source://rbi//lib/rbi/model.rb#154 sig { params(node: ::RBI::Node).void } def <<(node); end - # source://rbi//lib/rbi/model.rb#149 + # : Array[Comment] + # + # source://rbi//lib/rbi/model.rb#143 sig { returns(T::Array[::RBI::Comment]) } def comments; end - # @return [Array] + # : Array[Comment] # - # source://rbi//lib/rbi/model.rb#149 + # source://rbi//lib/rbi/model.rb#143 + # @return [Array] def comments=(_arg0); end - # source://rbi//lib/rbi/model.rb#171 + # : -> bool + # + # @return [Boolean] + # + # source://rbi//lib/rbi/model.rb#159 sig { returns(T::Boolean) } def empty?; end - # source://rbi//lib/rbi/printer.rb#751 + # : (?out: (IO | StringIO), ?indent: Integer, ?print_locs: bool, ?max_line_length: Integer?) -> void + # + # source://rbi//lib/rbi/printer.rb#794 sig do params( out: T.any(::IO, ::StringIO), @@ -475,40 +663,56 @@ 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 - # source://rbi//lib/rbi/rbs_printer.rb#1040 + # : (?out: (IO | StringIO), ?indent: Integer, ?print_locs: bool) -> void + # + # source://rbi//lib/rbi/rbs_printer.rb#1106 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 - # source://rbi//lib/rbi/rbs_printer.rb#1046 + # : (?indent: Integer, ?print_locs: bool) -> String + # + # source://rbi//lib/rbi/rbs_printer.rb#1112 sig { params(indent: ::Integer, print_locs: T::Boolean).returns(::String) } def rbs_string(indent: T.unsafe(nil), print_locs: T.unsafe(nil)); end - # source://rbi//lib/rbi/model.rb#143 + # : Tree + # + # source://rbi//lib/rbi/model.rb#137 sig { returns(::RBI::Tree) } def root; end - # @return [Tree] + # : Tree # - # source://rbi//lib/rbi/model.rb#143 + # source://rbi//lib/rbi/model.rb#137 + # @return [Tree] def root=(_arg0); end - # source://rbi//lib/rbi/model.rb#146 + # : String? + # + # source://rbi//lib/rbi/model.rb#140 sig { returns(T.nilable(::String)) } def strictness; end - # @return [String, nil] + # : String? # - # source://rbi//lib/rbi/model.rb#146 + # source://rbi//lib/rbi/model.rb#140 + # @return [String, nil] def strictness=(_arg0); end - # source://rbi//lib/rbi/printer.rb#757 + # : (?indent: Integer, ?print_locs: bool, ?max_line_length: Integer?) -> String + # + # source://rbi//lib/rbi/printer.rb#800 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 # source://rbi//lib/rbi/formatter.rb#5 class RBI::Formatter - # source://rbi//lib/rbi/formatter.rb#21 + # : (?add_sig_templates: bool, ?group_nodes: bool, ?max_line_length: Integer?, ?nest_singleton_methods: bool, ?nest_non_public_members: bool, ?sort_nodes: bool) -> void + # + # @return [Formatter] a new instance of Formatter + # + # source://rbi//lib/rbi/formatter.rb#10 sig do params( add_sig_templates: T::Boolean, @@ -521,40 +725,55 @@ 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)); end - # source://rbi//lib/rbi/formatter.rb#44 + # : (RBI::File file) -> void + # + # source://rbi//lib/rbi/formatter.rb#33 sig { params(file: ::RBI::File).void } def format_file(file); end - # source://rbi//lib/rbi/formatter.rb#49 + # : (RBI::Tree tree) -> void + # + # source://rbi//lib/rbi/formatter.rb#38 sig { params(tree: ::RBI::Tree).void } def format_tree(tree); end - # source://rbi//lib/rbi/formatter.rb#9 + # : Integer? + # + # source://rbi//lib/rbi/formatter.rb#7 sig { returns(T.nilable(::Integer)) } def max_line_length; end - # @return [Integer, nil] + # : Integer? # - # source://rbi//lib/rbi/formatter.rb#9 + # source://rbi//lib/rbi/formatter.rb#7 + # @return [Integer, nil] def max_line_length=(_arg0); end - # source://rbi//lib/rbi/formatter.rb#38 + # : (RBI::File file) -> String + # + # source://rbi//lib/rbi/formatter.rb#27 sig { params(file: ::RBI::File).returns(::String) } def print_file(file); end end -# source://rbi//lib/rbi/rewriters/group_nodes.rb#87 +# source://rbi//lib/rbi/rewriters/group_nodes.rb#84 class RBI::Group < ::RBI::Tree - # source://rbi//lib/rbi/rewriters/group_nodes.rb#94 + # : (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 - # source://rbi//lib/rbi/rewriters/group_nodes.rb#91 + # : 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#99 +# source://rbi//lib/rbi/rewriters/group_nodes.rb#94 class RBI::Group::Kind < ::T::Enum enums do Attrs = new @@ -578,11 +797,15 @@ class RBI::GroupNodesError < ::RBI::Error; end # Sorbet's misc. # -# source://rbi//lib/rbi/model.rb#1377 +# source://rbi//lib/rbi/model.rb#1042 class RBI::Helper < ::RBI::NodeWithComments include ::RBI::Indexable - # source://rbi//lib/rbi/model.rb#1391 + # : (String name, ?loc: Loc?, ?comments: Array[Comment]) ?{ (Helper node) -> void } -> void + # + # @return [Helper] a new instance of Helper + # + # source://rbi//lib/rbi/model.rb#1047 sig do params( name: ::String, @@ -593,28 +816,42 @@ class RBI::Helper < ::RBI::NodeWithComments end def initialize(name, loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end - # source://rbi//lib/rbi/rewriters/merge_trees.rb#528 + # : (Node other) -> bool + # + # @return [Boolean] + # + # source://rbi//lib/rbi/rewriters/merge_trees.rb#495 sig { override.params(other: ::RBI::Node).returns(T::Boolean) } def compatible_with?(other); end - # source://rbi//lib/rbi/index.rb#173 + # : -> Array[String] + # + # source://rbi//lib/rbi/index.rb#169 sig { override.returns(T::Array[::String]) } def index_ids; end - # source://rbi//lib/rbi/model.rb#1381 + # : String + # + # source://rbi//lib/rbi/model.rb#1044 sig { returns(::String) } def name; end - # source://rbi//lib/rbi/model.rb#1398 + # : -> String + # + # source://rbi//lib/rbi/model.rb#1055 sig { override.returns(::String) } def to_s; end end -# source://rbi//lib/rbi/model.rb#868 +# source://rbi//lib/rbi/model.rb#678 class RBI::Include < ::RBI::Mixin include ::RBI::Indexable - # source://rbi//lib/rbi/model.rb#880 + # : (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#680 sig do params( name: ::String, @@ -626,49 +863,73 @@ class RBI::Include < ::RBI::Mixin end def initialize(name, *names, loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end - # source://rbi//lib/rbi/rewriters/merge_trees.rb#501 + # : (Node other) -> bool + # + # @return [Boolean] + # + # source://rbi//lib/rbi/rewriters/merge_trees.rb#471 sig { override.params(other: ::RBI::Node).returns(T::Boolean) } def compatible_with?(other); end - # source://rbi//lib/rbi/index.rb#133 + # : -> Array[String] + # + # source://rbi//lib/rbi/index.rb#129 sig { override.returns(T::Array[::String]) } def index_ids; end - # source://rbi//lib/rbi/model.rb#886 + # : -> String + # + # source://rbi//lib/rbi/model.rb#687 sig { override.returns(::String) } def to_s; end end # source://rbi//lib/rbi/index.rb#5 class RBI::Index < ::RBI::Visitor - # source://rbi//lib/rbi/index.rb#21 + # : -> void + # + # @return [Index] a new instance of Index + # + # source://rbi//lib/rbi/index.rb#18 sig { void } def initialize; end - # source://rbi//lib/rbi/index.rb#32 + # : (String id) -> Array[Node] + # + # source://rbi//lib/rbi/index.rb#29 sig { params(id: ::String).returns(T::Array[::RBI::Node]) } def [](id); end - # source://rbi//lib/rbi/index.rb#37 + # : (*Node nodes) -> void + # + # source://rbi//lib/rbi/index.rb#34 sig { params(nodes: ::RBI::Node).void } def index(*nodes); end - # source://rbi//lib/rbi/index.rb#27 + # : -> Array[String] + # + # source://rbi//lib/rbi/index.rb#24 sig { returns(T::Array[::String]) } def keys; end - # source://rbi//lib/rbi/index.rb#42 + # : (Node? node) -> void + # + # source://rbi//lib/rbi/index.rb#40 sig { override.params(node: T.nilable(::RBI::Node)).void } def visit(node); end private - # source://rbi//lib/rbi/index.rb#59 + # : ((Indexable & Node) node) -> void + # + # source://rbi//lib/rbi/index.rb#57 sig { params(node: T.all(::RBI::Indexable, ::RBI::Node)).void } def index_node(node); end class << self - # source://rbi//lib/rbi/index.rb#13 + # : (*Node node) -> Index + # + # source://rbi//lib/rbi/index.rb#10 sig { params(node: ::RBI::Node).returns(::RBI::Index) } def index(*node); end end @@ -678,7 +939,7 @@ end # # @abstract Subclasses must implement the `abstract` methods below. # -# source://rbi//lib/rbi/index.rb#74 +# source://rbi//lib/rbi/index.rb#70 module RBI::Indexable interface! @@ -689,33 +950,49 @@ module RBI::Indexable # # @abstract # - # source://rbi//lib/rbi/index.rb#85 + # 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 sig { abstract.returns(T::Array[::String]) } def index_ids; end end -# source://rbi//lib/rbi/model.rb#1073 +# source://rbi//lib/rbi/model.rb#823 class RBI::KwArg < ::RBI::Arg - # source://rbi//lib/rbi/model.rb#1086 + # : (String keyword, String value, ?loc: Loc?) -> void + # + # @return [KwArg] a new instance of KwArg + # + # source://rbi//lib/rbi/model.rb#828 sig { params(keyword: ::String, value: ::String, loc: T.nilable(::RBI::Loc)).void } def initialize(keyword, value, loc: T.unsafe(nil)); end - # source://rbi//lib/rbi/model.rb#1092 + # : (Object? other) -> bool + # + # source://rbi//lib/rbi/model.rb#834 sig { params(other: T.nilable(::Object)).returns(T::Boolean) } def ==(other); end - # source://rbi//lib/rbi/model.rb#1077 + # : String + # + # source://rbi//lib/rbi/model.rb#825 sig { returns(::String) } def keyword; end - # source://rbi//lib/rbi/model.rb#1097 + # : -> String + # + # source://rbi//lib/rbi/model.rb#839 sig { returns(::String) } def to_s; end end -# source://rbi//lib/rbi/model.rb#757 +# source://rbi//lib/rbi/model.rb#600 class RBI::KwOptParam < ::RBI::Param - # source://rbi//lib/rbi/model.rb#772 + # : (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#605 sig do params( name: ::String, @@ -727,22 +1004,32 @@ class RBI::KwOptParam < ::RBI::Param end def initialize(name, value, loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end - # source://rbi//lib/rbi/model.rb#784 + # : (Object? other) -> bool + # + # source://rbi//lib/rbi/model.rb#618 sig { params(other: T.nilable(::Object)).returns(T::Boolean) } def ==(other); end - # source://rbi//lib/rbi/model.rb#779 + # : -> String + # + # source://rbi//lib/rbi/model.rb#613 sig { override.returns(::String) } def to_s; end - # source://rbi//lib/rbi/model.rb#761 + # : String + # + # source://rbi//lib/rbi/model.rb#602 sig { returns(::String) } def value; end end -# source://rbi//lib/rbi/model.rb#730 +# source://rbi//lib/rbi/model.rb#581 class RBI::KwParam < ::RBI::Param - # source://rbi//lib/rbi/model.rb#741 + # : (String name, ?loc: Loc?, ?comments: Array[Comment]) ?{ (KwParam node) -> void } -> void + # + # @return [KwParam] a new instance of KwParam + # + # source://rbi//lib/rbi/model.rb#583 sig do params( name: ::String, @@ -753,18 +1040,26 @@ class RBI::KwParam < ::RBI::Param end def initialize(name, loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end - # source://rbi//lib/rbi/model.rb#752 + # : (Object? other) -> bool + # + # source://rbi//lib/rbi/model.rb#595 sig { params(other: T.nilable(::Object)).returns(T::Boolean) } def ==(other); end - # source://rbi//lib/rbi/model.rb#747 + # : -> String + # + # source://rbi//lib/rbi/model.rb#590 sig { override.returns(::String) } def to_s; end end -# source://rbi//lib/rbi/model.rb#789 +# source://rbi//lib/rbi/model.rb#623 class RBI::KwRestParam < ::RBI::Param - # source://rbi//lib/rbi/model.rb#800 + # : (String name, ?loc: Loc?, ?comments: Array[Comment]) ?{ (KwRestParam node) -> void } -> void + # + # @return [KwRestParam] a new instance of KwRestParam + # + # source://rbi//lib/rbi/model.rb#625 sig do params( name: ::String, @@ -775,18 +1070,26 @@ class RBI::KwRestParam < ::RBI::Param end def initialize(name, loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end - # source://rbi//lib/rbi/model.rb#811 + # : (Object? other) -> bool + # + # source://rbi//lib/rbi/model.rb#637 sig { params(other: T.nilable(::Object)).returns(T::Boolean) } def ==(other); end - # source://rbi//lib/rbi/model.rb#806 + # : -> String + # + # source://rbi//lib/rbi/model.rb#632 sig { override.returns(::String) } def to_s; end end # source://rbi//lib/rbi/loc.rb#5 class RBI::Loc - # source://rbi//lib/rbi/loc.rb#38 + # : (?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 sig do params( file: T.nilable(::String), @@ -798,39 +1101,52 @@ 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 - # @return [Integer, nil] + # : Integer? # - # source://rbi//lib/rbi/loc.rb#27 + # source://rbi//lib/rbi/loc.rb#23 + # @return [Integer, nil] def begin_column; end - # source://rbi//lib/rbi/loc.rb#27 + # : Integer? + # + # source://rbi//lib/rbi/loc.rb#23 sig { returns(T.nilable(::Integer)) } def begin_line; end - # @return [Integer, nil] + # : Integer? # - # source://rbi//lib/rbi/loc.rb#27 + # source://rbi//lib/rbi/loc.rb#23 + # @return [Integer, nil] def end_column; end - # @return [Integer, nil] + # : Integer? # - # source://rbi//lib/rbi/loc.rb#27 + # source://rbi//lib/rbi/loc.rb#23 + # @return [Integer, nil] def end_line; end - # source://rbi//lib/rbi/loc.rb#24 + # : String? + # + # source://rbi//lib/rbi/loc.rb#20 sig { returns(T.nilable(::String)) } def file; end - # source://rbi//lib/rbi/loc.rb#56 + # : -> String? + # + # source://rbi//lib/rbi/loc.rb#44 sig { returns(T.nilable(::String)) } def source; end - # source://rbi//lib/rbi/loc.rb#47 + # : -> String + # + # source://rbi//lib/rbi/loc.rb#35 sig { returns(::String) } def to_s; end class << self - # source://rbi//lib/rbi/loc.rb#12 + # : (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 end @@ -838,9 +1154,13 @@ end # A tree that _might_ contain conflicts # -# source://rbi//lib/rbi/rewriters/merge_trees.rb#330 +# source://rbi//lib/rbi/rewriters/merge_trees.rb#320 class RBI::MergeTree < ::RBI::Tree - # source://rbi//lib/rbi/rewriters/merge_trees.rb#344 + # : (?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 sig do params( loc: T.nilable(::RBI::Loc), @@ -851,18 +1171,24 @@ class RBI::MergeTree < ::RBI::Tree end def initialize(loc: T.unsafe(nil), comments: T.unsafe(nil), conflicts: T.unsafe(nil), &block); end - # source://rbi//lib/rbi/rewriters/merge_trees.rb#334 + # : Array[Rewriters::Merge::Conflict] + # + # source://rbi//lib/rbi/rewriters/merge_trees.rb#322 sig { returns(T::Array[::RBI::Rewriters::Merge::Conflict]) } def conflicts; end end # Methods and args # -# source://rbi//lib/rbi/model.rb#485 +# source://rbi//lib/rbi/model.rb#393 class RBI::Method < ::RBI::NodeWithComments include ::RBI::Indexable - # source://rbi//lib/rbi/model.rb#515 + # : (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#410 sig do params( name: ::String, @@ -877,39 +1203,57 @@ 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 - # source://rbi//lib/rbi/model.rb#535 + # : (Param param) -> void + # + # source://rbi//lib/rbi/model.rb#430 sig { params(param: ::RBI::Param).void } def <<(param); end - # source://rbi//lib/rbi/model.rb#570 + # : (String name) -> void + # + # source://rbi//lib/rbi/model.rb#465 sig { params(name: ::String).void } def add_block_param(name); end - # source://rbi//lib/rbi/model.rb#560 + # : (String name, String default_value) -> void + # + # source://rbi//lib/rbi/model.rb#455 sig { params(name: ::String, default_value: ::String).void } def add_kw_opt_param(name, default_value); end - # source://rbi//lib/rbi/model.rb#555 + # : (String name) -> void + # + # source://rbi//lib/rbi/model.rb#450 sig { params(name: ::String).void } def add_kw_param(name); end - # source://rbi//lib/rbi/model.rb#565 + # : (String name) -> void + # + # source://rbi//lib/rbi/model.rb#460 sig { params(name: ::String).void } def add_kw_rest_param(name); end - # source://rbi//lib/rbi/model.rb#545 + # : (String name, String default_value) -> void + # + # source://rbi//lib/rbi/model.rb#440 sig { params(name: ::String, default_value: ::String).void } def add_opt_param(name, default_value); end - # source://rbi//lib/rbi/model.rb#540 + # : (String name) -> void + # + # source://rbi//lib/rbi/model.rb#435 sig { params(name: ::String).void } def add_param(name); end - # source://rbi//lib/rbi/model.rb#550 + # : (String name) -> void + # + # source://rbi//lib/rbi/model.rb#445 sig { params(name: ::String).void } def add_rest_param(name); end - # source://rbi//lib/rbi/model.rb#587 + # : (?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#470 sig do params( params: T::Array[::RBI::SigParam], @@ -925,72 +1269,102 @@ 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 - # source://rbi//lib/rbi/rewriters/merge_trees.rb#469 + # : (Node other) -> bool + # + # @return [Boolean] + # + # source://rbi//lib/rbi/rewriters/merge_trees.rb#440 sig { override.params(other: ::RBI::Node).returns(T::Boolean) } def compatible_with?(other); end - # source://rbi//lib/rbi/model.rb#613 + # : -> String + # + # source://rbi//lib/rbi/model.rb#496 sig { returns(::String) } def fully_qualified_name; end - # source://rbi//lib/rbi/index.rb#123 + # : -> Array[String] + # + # source://rbi//lib/rbi/index.rb#119 sig { override.returns(T::Array[::String]) } def index_ids; end - # source://rbi//lib/rbi/model.rb#495 + # : bool + # + # source://rbi//lib/rbi/model.rb#401 sig { returns(T::Boolean) } def is_singleton; end - # @return [Boolean] + # : bool # - # source://rbi//lib/rbi/model.rb#495 + # source://rbi//lib/rbi/model.rb#401 + # @return [Boolean] def is_singleton=(_arg0); end - # source://rbi//lib/rbi/rewriters/merge_trees.rb#478 + # : (Node other) -> void + # + # source://rbi//lib/rbi/rewriters/merge_trees.rb#450 sig { override.params(other: ::RBI::Node).void } def merge_with(other); end - # source://rbi//lib/rbi/model.rb#489 + # : String + # + # source://rbi//lib/rbi/model.rb#395 sig { returns(::String) } def name; end - # @return [String] + # : String # - # source://rbi//lib/rbi/model.rb#489 + # source://rbi//lib/rbi/model.rb#395 + # @return [String] def name=(_arg0); end - # source://rbi//lib/rbi/model.rb#492 + # : Array[Param] + # + # source://rbi//lib/rbi/model.rb#398 sig { returns(T::Array[::RBI::Param]) } def params; end - # source://rbi//lib/rbi/model.rb#501 + # : Array[Sig] + # + # source://rbi//lib/rbi/model.rb#407 sig { returns(T::Array[::RBI::Sig]) } def sigs; end - # @return [Array] + # : Array[Sig] # - # source://rbi//lib/rbi/model.rb#501 + # source://rbi//lib/rbi/model.rb#407 + # @return [Array] def sigs=(_arg0); end - # source://rbi//lib/rbi/model.rb#622 + # : -> String + # + # source://rbi//lib/rbi/model.rb#506 sig { override.returns(::String) } def to_s; end - # source://rbi//lib/rbi/model.rb#498 + # : Visibility + # + # source://rbi//lib/rbi/model.rb#404 sig { returns(::RBI::Visibility) } def visibility; end - # @return [Visibility] + # : Visibility # - # source://rbi//lib/rbi/model.rb#498 + # source://rbi//lib/rbi/model.rb#404 + # @return [Visibility] def visibility=(_arg0); end end -# source://rbi//lib/rbi/model.rb#1438 +# source://rbi//lib/rbi/model.rb#1086 class RBI::MixesInClassMethods < ::RBI::Mixin include ::RBI::Indexable - # source://rbi//lib/rbi/model.rb#1450 + # : (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#1088 sig do params( name: ::String, @@ -1002,15 +1376,23 @@ class RBI::MixesInClassMethods < ::RBI::Mixin end def initialize(name, *names, loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end - # source://rbi//lib/rbi/rewriters/merge_trees.rb#519 + # : (Node other) -> bool + # + # @return [Boolean] + # + # source://rbi//lib/rbi/rewriters/merge_trees.rb#487 sig { override.params(other: ::RBI::Node).returns(T::Boolean) } def compatible_with?(other); end - # source://rbi//lib/rbi/index.rb#153 + # : -> Array[String] + # + # source://rbi//lib/rbi/index.rb#149 sig { override.returns(T::Array[::String]) } def index_ids; end - # source://rbi//lib/rbi/model.rb#1456 + # : -> String + # + # source://rbi//lib/rbi/model.rb#1095 sig { override.returns(::String) } def to_s; end end @@ -1019,11 +1401,15 @@ end # # @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. # -# source://rbi//lib/rbi/model.rb#845 +# source://rbi//lib/rbi/model.rb#663 class RBI::Mixin < ::RBI::NodeWithComments abstract! - # source://rbi//lib/rbi/model.rb#862 + # : (String name, Array[String] names, ?loc: Loc?, ?comments: Array[Comment]) -> void + # + # @return [Mixin] a new instance of Mixin + # + # source://rbi//lib/rbi/model.rb#672 sig do params( name: ::String, @@ -1034,18 +1420,28 @@ class RBI::Mixin < ::RBI::NodeWithComments end def initialize(name, names, loc: T.unsafe(nil), comments: T.unsafe(nil)); end - # source://rbi//lib/rbi/rewriters/merge_trees.rb#492 + # : (Node other) -> bool + # + # @return [Boolean] + # + # source://rbi//lib/rbi/rewriters/merge_trees.rb#463 sig { override.params(other: ::RBI::Node).returns(T::Boolean) } def compatible_with?(other); end - # source://rbi//lib/rbi/model.rb#852 + # : Array[String] + # + # source://rbi//lib/rbi/model.rb#669 sig { returns(T::Array[::String]) } def names; end end -# source://rbi//lib/rbi/model.rb#192 +# source://rbi//lib/rbi/model.rb#182 class RBI::Module < ::RBI::Scope - # source://rbi//lib/rbi/model.rb#206 + # : (String name, ?loc: Loc?, ?comments: Array[Comment]) ?{ (Module node) -> void } -> void + # + # @return [Module] a new instance of Module + # + # source://rbi//lib/rbi/model.rb#187 sig do params( name: ::String, @@ -1056,21 +1452,30 @@ class RBI::Module < ::RBI::Scope end def initialize(name, loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end - # source://rbi//lib/rbi/rewriters/merge_trees.rb#393 + # : (Node other) -> bool + # + # @return [Boolean] + # + # source://rbi//lib/rbi/rewriters/merge_trees.rb#370 sig { override.params(other: ::RBI::Node).returns(T::Boolean) } def compatible_with?(other); end - # source://rbi//lib/rbi/model.rb#213 + # : -> String + # + # source://rbi//lib/rbi/model.rb#195 sig { override.returns(::String) } def fully_qualified_name; end - # source://rbi//lib/rbi/model.rb#196 + # : String + # + # source://rbi//lib/rbi/model.rb#184 sig { returns(::String) } def name; end - # @return [String] + # : String # - # source://rbi//lib/rbi/model.rb#196 + # source://rbi//lib/rbi/model.rb#184 + # @return [String] def name=(_arg0); end end @@ -1080,53 +1485,77 @@ end class RBI::Node abstract! - # source://rbi//lib/rbi/model.rb#20 + # : (?loc: Loc?) -> void + # + # @return [Node] a new instance of Node + # + # source://rbi//lib/rbi/model.rb#19 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 # - # source://rbi//lib/rbi/rewriters/merge_trees.rb#287 + # @return [Boolean] + # + # source://rbi//lib/rbi/rewriters/merge_trees.rb#280 + # Can `self` and `_other` be merged into a single definition? sig { params(_other: ::RBI::Node).returns(T::Boolean) } def compatible_with?(_other); end - # source://rbi//lib/rbi/model.rb#26 + # : -> void + # + # source://rbi//lib/rbi/model.rb#25 sig { void } def detach; end - # source://rbi//lib/rbi/model.rb#17 + # : Loc? + # + # source://rbi//lib/rbi/model.rb#16 sig { returns(T.nilable(::RBI::Loc)) } def loc; end - # @return [Loc, nil] + # : Loc? # - # source://rbi//lib/rbi/model.rb#17 + # source://rbi//lib/rbi/model.rb#16 + # @return [Loc, nil] def loc=(_arg0); end # Merge `self` and `other` into a single definition + # : (Node other) -> void # - # source://rbi//lib/rbi/rewriters/merge_trees.rb#293 + # source://rbi//lib/rbi/rewriters/merge_trees.rb#286 + # Merge `self` and `other` into a single definition sig { params(other: ::RBI::Node).void } def merge_with(other); end - # source://rbi//lib/rbi/rewriters/merge_trees.rb#296 + # : -> ConflictTree? + # + # source://rbi//lib/rbi/rewriters/merge_trees.rb#289 sig { returns(T.nilable(::RBI::ConflictTree)) } def parent_conflict_tree; end - # source://rbi//lib/rbi/model.rb#48 + # : -> Scope? + # + # source://rbi//lib/rbi/model.rb#47 sig { returns(T.nilable(::RBI::Scope)) } def parent_scope; end - # source://rbi//lib/rbi/model.rb#14 + # : Tree? + # + # source://rbi//lib/rbi/model.rb#13 sig { returns(T.nilable(::RBI::Tree)) } def parent_tree; end - # @return [Tree, nil] + # : Tree? # - # source://rbi//lib/rbi/model.rb#14 + # source://rbi//lib/rbi/model.rb#13 + # @return [Tree, nil] def parent_tree=(_arg0); end - # source://rbi//lib/rbi/printer.rb#775 + # : (?out: (IO | StringIO), ?indent: Integer, ?print_locs: bool, ?max_line_length: Integer?) -> void + # + # source://rbi//lib/rbi/printer.rb#809 sig do params( out: T.any(::IO, ::StringIO), @@ -1137,64 +1566,100 @@ 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 - # source://rbi//lib/rbi/rbs_printer.rb#1057 - 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 + # : (?out: (IO | StringIO), ?indent: Integer, ?print_locs: bool, ?positional_names: bool) -> void + # + # source://rbi//lib/rbi/rbs_printer.rb#1121 + sig do + params( + out: T.any(::IO, ::StringIO), + indent: ::Integer, + print_locs: T::Boolean, + positional_names: T::Boolean + ).void + end + def rbs_print(out: T.unsafe(nil), indent: T.unsafe(nil), print_locs: T.unsafe(nil), positional_names: T.unsafe(nil)); end - # source://rbi//lib/rbi/rbs_printer.rb#1063 - sig { params(indent: ::Integer, print_locs: T::Boolean).returns(::String) } - def rbs_string(indent: T.unsafe(nil), print_locs: T.unsafe(nil)); end + # : (?indent: Integer, ?print_locs: bool, ?positional_names: bool) -> String + # + # source://rbi//lib/rbi/rbs_printer.rb#1127 + 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#35 + # source://rbi//lib/rbi/model.rb#34 sig { params(node: ::RBI::Node).void } def replace(node); end - # source://rbi//lib/rbi/rewriters/filter_versions.rb#94 + # : (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 - # source://rbi//lib/rbi/printer.rb#781 + # : (?indent: Integer, ?print_locs: bool, ?max_line_length: Integer?) -> String + # + # source://rbi//lib/rbi/printer.rb#815 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. # -# source://rbi//lib/rbi/model.rb#85 +# source://rbi//lib/rbi/model.rb#90 class RBI::NodeWithComments < ::RBI::Node abstract! - # source://rbi//lib/rbi/model.rb#95 + # : (?loc: Loc?, ?comments: Array[Comment]) -> void + # + # @return [NodeWithComments] a new instance of NodeWithComments + # + # source://rbi//lib/rbi/model.rb#99 sig { params(loc: T.nilable(::RBI::Loc), comments: T::Array[::RBI::Comment]).void } def initialize(loc: T.unsafe(nil), comments: T.unsafe(nil)); end - # source://rbi//lib/rbi/model.rb#101 + # : -> Array[String] + # + # source://rbi//lib/rbi/model.rb#105 sig { returns(T::Array[::String]) } def annotations; end - # source://rbi//lib/rbi/model.rb#92 + # : Array[Comment] + # + # source://rbi//lib/rbi/model.rb#96 sig { returns(T::Array[::RBI::Comment]) } def comments; end - # @return [Array] + # : Array[Comment] # - # source://rbi//lib/rbi/model.rb#92 + # source://rbi//lib/rbi/model.rb#96 + # @return [Array] def comments=(_arg0); end - # source://rbi//lib/rbi/rewriters/merge_trees.rb#311 + # : (Node other) -> void + # + # source://rbi//lib/rbi/rewriters/merge_trees.rb#303 sig { override.params(other: ::RBI::Node).void } def merge_with(other); end - # source://rbi//lib/rbi/rewriters/filter_versions.rb#104 + # : -> 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#676 +# source://rbi//lib/rbi/model.rb#545 class RBI::OptParam < ::RBI::Param - # source://rbi//lib/rbi/model.rb#691 + # : (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#550 sig do params( name: ::String, @@ -1206,196 +1671,286 @@ class RBI::OptParam < ::RBI::Param end def initialize(name, value, loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end - # source://rbi//lib/rbi/model.rb#698 + # : (Object? other) -> bool + # + # source://rbi//lib/rbi/model.rb#557 sig { params(other: T.nilable(::Object)).returns(T::Boolean) } def ==(other); end - # source://rbi//lib/rbi/model.rb#680 + # : String + # + # source://rbi//lib/rbi/model.rb#547 sig { returns(::String) } def value; end end # @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. # -# source://rbi//lib/rbi/model.rb#627 +# source://rbi//lib/rbi/model.rb#511 class RBI::Param < ::RBI::NodeWithComments abstract! - # source://rbi//lib/rbi/model.rb#643 + # : (String name, ?loc: Loc?, ?comments: Array[Comment]) -> void + # + # @return [Param] a new instance of Param + # + # source://rbi//lib/rbi/model.rb#520 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 - # source://rbi//lib/rbi/model.rb#634 + # : String + # + # source://rbi//lib/rbi/model.rb#517 sig { returns(::String) } def name; end - # source://rbi//lib/rbi/model.rb#649 + # : -> String + # + # source://rbi//lib/rbi/model.rb#527 sig { override.returns(::String) } def to_s; end end # source://rbi//lib/rbi/parser.rb#7 class RBI::ParseError < ::RBI::Error - # source://rbi//lib/rbi/parser.rb#14 + # : (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 - # source://rbi//lib/rbi/parser.rb#11 + # : Loc + # + # source://rbi//lib/rbi/parser.rb#9 sig { returns(::RBI::Loc) } def location; end end -# source://rbi//lib/rbi/parser.rb#53 +# source://rbi//lib/rbi/parser.rb#49 class RBI::Parser - # source://rbi//lib/rbi/parser.rb#88 + # : (String path) -> Tree + # + # source://rbi//lib/rbi/parser.rb#80 sig { params(path: ::String).returns(::RBI::Tree) } def parse_file(path); end - # source://rbi//lib/rbi/parser.rb#83 + # : (String string) -> Tree + # + # source://rbi//lib/rbi/parser.rb#75 sig { params(string: ::String).returns(::RBI::Tree) } def parse_string(string); end private - # source://rbi//lib/rbi/parser.rb#95 + # : (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 - # source://rbi//lib/rbi/parser.rb#65 + # : (String path) -> Tree + # + # source://rbi//lib/rbi/parser.rb#57 sig { params(path: ::String).returns(::RBI::Tree) } def parse_file(path); end - # source://rbi//lib/rbi/parser.rb#70 + # : (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 - # source://rbi//lib/rbi/parser.rb#60 + # : (String string) -> Tree + # + # source://rbi//lib/rbi/parser.rb#52 sig { params(string: ::String).returns(::RBI::Tree) } def parse_string(string); end - # source://rbi//lib/rbi/parser.rb#76 + # : (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#821 +# source://rbi//lib/rbi/parser.rb#822 class RBI::Parser::SigBuilder < ::RBI::Parser::Visitor - # source://rbi//lib/rbi/parser.rb#828 + # : (String content, file: String) -> void + # + # @return [SigBuilder] a new instance of SigBuilder + # + # source://rbi//lib/rbi/parser.rb#827 sig { params(content: ::String, file: ::String).void } def initialize(content, file:); end - # source://rbi//lib/rbi/parser.rb#825 + # : Sig + # + # source://rbi//lib/rbi/parser.rb#824 sig { returns(::RBI::Sig) } def current; end - # source://rbi//lib/rbi/parser.rb#896 + # : (Prism::AssocNode node) -> void + # + # source://rbi//lib/rbi/parser.rb#897 sig { override.params(node: ::Prism::AssocNode).void } def visit_assoc_node(node); end + # : (Prism::CallNode node) -> void + # # source://rbi//lib/rbi/parser.rb#835 sig { override.params(node: ::Prism::CallNode).void } def visit_call_node(node); end end -# source://rbi//lib/rbi/parser.rb#153 +# source://rbi//lib/rbi/parser.rb#143 class RBI::Parser::TreeBuilder < ::RBI::Parser::Visitor - # source://rbi//lib/rbi/parser.rb#163 + # : (String source, comments: Array[Prism::Comment], file: String) -> void + # + # @return [TreeBuilder] a new instance of TreeBuilder + # + # source://rbi//lib/rbi/parser.rb#151 sig { params(source: ::String, comments: T::Array[::Prism::Comment], file: ::String).void } def initialize(source, comments:, file:); end - # source://rbi//lib/rbi/parser.rb#160 + # : Prism::Node? + # + # source://rbi//lib/rbi/parser.rb#148 sig { returns(T.nilable(::Prism::Node)) } def last_node; end - # source://rbi//lib/rbi/parser.rb#157 + # : Tree + # + # source://rbi//lib/rbi/parser.rb#145 sig { returns(::RBI::Tree) } def tree; end - # source://rbi//lib/rbi/parser.rb#324 + # : (Prism::CallNode node) -> void + # + # source://rbi//lib/rbi/parser.rb#319 sig { params(node: ::Prism::CallNode).void } def visit_call_node(node); end - # source://rbi//lib/rbi/parser.rb#175 + # : (Prism::ClassNode node) -> void + # + # source://rbi//lib/rbi/parser.rb#164 sig { override.params(node: ::Prism::ClassNode).void } def visit_class_node(node); end - # source://rbi//lib/rbi/parser.rb#224 + # : ((Prism::ConstantWriteNode | Prism::ConstantPathWriteNode) node) -> void + # + # source://rbi//lib/rbi/parser.rb#215 sig { params(node: T.any(::Prism::ConstantPathWriteNode, ::Prism::ConstantWriteNode)).void } def visit_constant_assign(node); end - # source://rbi//lib/rbi/parser.rb#217 + # : (Prism::ConstantPathWriteNode node) -> void + # + # source://rbi//lib/rbi/parser.rb#208 sig { override.params(node: ::Prism::ConstantPathWriteNode).void } def visit_constant_path_write_node(node); end - # source://rbi//lib/rbi/parser.rb#210 + # : (Prism::ConstantWriteNode node) -> void + # + # source://rbi//lib/rbi/parser.rb#200 sig { override.params(node: ::Prism::ConstantWriteNode).void } def visit_constant_write_node(node); end - # source://rbi//lib/rbi/parser.rb#257 + # : (Prism::DefNode node) -> void + # + # source://rbi//lib/rbi/parser.rb#249 sig { override.params(node: ::Prism::DefNode).void } def visit_def_node(node); end - # source://rbi//lib/rbi/parser.rb#278 + # : (Prism::ModuleNode node) -> void + # + # source://rbi//lib/rbi/parser.rb#271 sig { override.params(node: ::Prism::ModuleNode).void } def visit_module_node(node); end - # source://rbi//lib/rbi/parser.rb#296 + # : (Prism::ProgramNode node) -> void + # + # source://rbi//lib/rbi/parser.rb#290 sig { override.params(node: ::Prism::ProgramNode).void } def visit_program_node(node); end - # source://rbi//lib/rbi/parser.rb#307 + # : (Prism::SingletonClassNode node) -> void + # + # source://rbi//lib/rbi/parser.rb#302 sig { override.params(node: ::Prism::SingletonClassNode).void } def visit_singleton_class_node(node); end private # Collect all the remaining comments within a node + # : (Prism::Node node) -> void # - # source://rbi//lib/rbi/parser.rb#498 + # source://rbi//lib/rbi/parser.rb#493 + # 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#516 + # source://rbi//lib/rbi/parser.rb#511 + # Collect all the remaining comments after visiting the tree sig { void } def collect_orphan_comments; end - # source://rbi//lib/rbi/parser.rb#539 + # : -> Tree + # + # source://rbi//lib/rbi/parser.rb#534 sig { returns(::RBI::Tree) } def current_scope; end - # source://rbi//lib/rbi/parser.rb#544 + # : -> Array[Sig] + # + # source://rbi//lib/rbi/parser.rb#539 sig { returns(T::Array[::RBI::Sig]) } def current_sigs; end - # source://rbi//lib/rbi/parser.rb#551 + # : (Array[Sig] sigs) -> Array[Comment] + # + # source://rbi//lib/rbi/parser.rb#546 sig { params(sigs: T::Array[::RBI::Sig]).returns(T::Array[::RBI::Comment]) } def detach_comments_from_sigs(sigs); end - # source://rbi//lib/rbi/parser.rb#563 + # : (Prism::Node node) -> Array[Comment] + # + # source://rbi//lib/rbi/parser.rb#558 sig { params(node: ::Prism::Node).returns(T::Array[::RBI::Comment]) } def node_comments(node); end - # source://rbi//lib/rbi/parser.rb#581 + # : (Prism::Comment node) -> Comment + # + # source://rbi//lib/rbi/parser.rb#576 sig { params(node: ::Prism::Comment).returns(::RBI::Comment) } def parse_comment(node); end - # source://rbi//lib/rbi/parser.rb#610 + # : (Prism::Node? node) -> Array[Param] + # + # source://rbi//lib/rbi/parser.rb#611 sig { params(node: T.nilable(::Prism::Node)).returns(T::Array[::RBI::Param]) } def parse_params(node); end - # source://rbi//lib/rbi/parser.rb#586 + # : (Prism::Node? node) -> Array[Arg] + # + # source://rbi//lib/rbi/parser.rb#587 sig { params(node: T.nilable(::Prism::Node)).returns(T::Array[::RBI::Arg]) } def parse_send_args(node); end - # source://rbi//lib/rbi/parser.rb#684 + # : (Prism::CallNode node) -> Sig + # + # source://rbi//lib/rbi/parser.rb#685 sig { params(node: ::Prism::CallNode).returns(::RBI::Sig) } def parse_sig(node); end - # source://rbi//lib/rbi/parser.rb#693 + # : ((Prism::ConstantWriteNode | Prism::ConstantPathWriteNode) node) -> Struct? + # + # source://rbi//lib/rbi/parser.rb#694 sig do params( node: T.any(::Prism::ConstantPathWriteNode, ::Prism::ConstantWriteNode) @@ -1403,51 +1958,77 @@ class RBI::Parser::TreeBuilder < ::RBI::Parser::Visitor end def parse_struct(node); end - # source://rbi//lib/rbi/parser.rb#741 + # : (Prism::CallNode send) -> void + # + # source://rbi//lib/rbi/parser.rb#742 sig { params(send: ::Prism::CallNode).void } def parse_tstruct_field(send); end - # source://rbi//lib/rbi/parser.rb#778 + # : (String name, Prism::Node node) -> Visibility + # + # source://rbi//lib/rbi/parser.rb#779 sig { params(name: ::String, node: ::Prism::Node).returns(::RBI::Visibility) } def parse_visibility(name, node); end - # source://rbi//lib/rbi/parser.rb#792 + # : -> void + # + # source://rbi//lib/rbi/parser.rb#793 sig { void } def separate_header_comments; end - # source://rbi//lib/rbi/parser.rb#802 + # : -> void + # + # source://rbi//lib/rbi/parser.rb#803 sig { void } def set_root_tree_loc; end - # source://rbi//lib/rbi/parser.rb#816 + # : (Prism::Node? node) -> bool + # + # @return [Boolean] + # + # source://rbi//lib/rbi/parser.rb#817 sig { params(node: T.nilable(::Prism::Node)).returns(T::Boolean) } def type_variable_definition?(node); end end -# source://rbi//lib/rbi/parser.rb#122 +# source://rbi//lib/rbi/parser.rb#114 class RBI::Parser::Visitor < ::Prism::Visitor - # source://rbi//lib/rbi/parser.rb#126 + # : (String source, file: String) -> void + # + # @return [Visitor] a new instance of Visitor + # + # source://rbi//lib/rbi/parser.rb#116 sig { params(source: ::String, file: ::String).void } def initialize(source, file:); end private - # source://rbi//lib/rbi/parser.rb#136 + # : (Prism::Node node) -> Loc + # + # source://rbi//lib/rbi/parser.rb#126 sig { params(node: ::Prism::Node).returns(::RBI::Loc) } def node_loc(node); end - # source://rbi//lib/rbi/parser.rb#141 + # : (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 - # source://rbi//lib/rbi/parser.rb#148 + # : (Prism::Node node) -> String + # + # source://rbi//lib/rbi/parser.rb#138 sig { params(node: ::Prism::Node).returns(::String) } def node_string!(node); end end # source://rbi//lib/rbi/printer.rb#7 class RBI::Printer < ::RBI::Visitor - # source://rbi//lib/rbi/printer.rb#30 + # : (?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 sig do params( out: T.any(::IO, ::StringIO), @@ -1458,306 +2039,454 @@ 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 - # source://rbi//lib/rbi/printer.rb#17 + # : Integer + # + # source://rbi//lib/rbi/printer.rb#15 sig { returns(::Integer) } def current_indent; end - # source://rbi//lib/rbi/printer.rb#48 + # : -> void + # + # source://rbi//lib/rbi/printer.rb#39 sig { void } def dedent; end - # @return [Boolean] + # : bool # - # source://rbi//lib/rbi/printer.rb#11 + # source://rbi//lib/rbi/printer.rb#9 + # @return [Boolean] def in_visibility_group; end - # @return [Boolean] + # : bool # - # source://rbi//lib/rbi/printer.rb#11 + # source://rbi//lib/rbi/printer.rb#9 + # @return [Boolean] def in_visibility_group=(_arg0); end - # Printing + # : -> void # - # source://rbi//lib/rbi/printer.rb#43 + # source://rbi//lib/rbi/printer.rb#34 + # Printing sig { void } def indent; end - # source://rbi//lib/rbi/printer.rb#20 + # : Integer? + # + # source://rbi//lib/rbi/printer.rb#18 sig { returns(T.nilable(::Integer)) } def max_line_length; end - # source://rbi//lib/rbi/printer.rb#14 + # : 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#54 + # 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 - # source://rbi//lib/rbi/printer.rb#11 + # : bool + # + # source://rbi//lib/rbi/printer.rb#9 sig { returns(T::Boolean) } def print_locs; end - # @return [Boolean] + # : bool # - # source://rbi//lib/rbi/printer.rb#11 + # 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#74 + # 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#60 + # 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#67 + # 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 - # source://rbi//lib/rbi/printer.rb#80 + # : (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 - # source://rbi//lib/rbi/printer.rb#91 + # : (File file) -> void + # + # source://rbi//lib/rbi/printer.rb#84 sig { override.params(file: ::RBI::File).void } def visit_file(file); end private - # source://rbi//lib/rbi/printer.rb#618 + # : (Node node) -> bool + # + # @return [Boolean] + # + # source://rbi//lib/rbi/printer.rb#670 sig { params(node: ::RBI::Node).returns(T::Boolean) } def oneline?(node); end - # source://rbi//lib/rbi/printer.rb#576 + # : (Node node) -> void + # + # source://rbi//lib/rbi/printer.rb#628 sig { params(node: ::RBI::Node).void } def print_blank_line_before(node); end - # source://rbi//lib/rbi/printer.rb#586 + # : (Node node) -> void + # + # source://rbi//lib/rbi/printer.rb#638 sig { params(node: ::RBI::Node).void } def print_loc(node); end - # source://rbi//lib/rbi/printer.rb#592 + # : (Param node, last: bool) -> void + # + # source://rbi//lib/rbi/printer.rb#644 sig { params(node: ::RBI::Param, last: T::Boolean).void } def print_param_comment_leading_space(node, last:); end - # source://rbi//lib/rbi/printer.rb#665 + # : (Sig node) -> void + # + # source://rbi//lib/rbi/printer.rb#717 sig { params(node: ::RBI::Sig).void } def print_sig_as_block(node); end - # source://rbi//lib/rbi/printer.rb#640 + # : (Sig node) -> void + # + # source://rbi//lib/rbi/printer.rb#692 sig { params(node: ::RBI::Sig).void } def print_sig_as_line(node); end - # source://rbi//lib/rbi/printer.rb#610 + # : (SigParam node, last: bool) -> void + # + # source://rbi//lib/rbi/printer.rb#662 sig { params(node: ::RBI::SigParam, last: T::Boolean).void } def print_sig_param_comment_leading_space(node, last:); end - # source://rbi//lib/rbi/printer.rb#721 + # : (Sig node) -> Array[String] + # + # source://rbi//lib/rbi/printer.rb#773 sig { params(node: ::RBI::Sig).returns(T::Array[::String]) } def sig_modifiers(node); end - # source://rbi//lib/rbi/printer.rb#417 + # : (Arg node) -> void + # + # source://rbi//lib/rbi/printer.rb#453 sig { override.params(node: ::RBI::Arg).void } def visit_arg(node); end - # source://rbi//lib/rbi/printer.rb#237 + # : (Attr node) -> void + # + # source://rbi//lib/rbi/printer.rb#258 sig { params(node: ::RBI::Attr).void } def visit_attr(node); end - # source://rbi//lib/rbi/printer.rb#222 + # : (AttrAccessor node) -> void + # + # source://rbi//lib/rbi/printer.rb#241 sig { override.params(node: ::RBI::AttrAccessor).void } def visit_attr_accessor(node); end - # source://rbi//lib/rbi/printer.rb#227 + # : (AttrReader node) -> void + # + # source://rbi//lib/rbi/printer.rb#247 sig { override.params(node: ::RBI::AttrReader).void } def visit_attr_reader(node); end - # source://rbi//lib/rbi/printer.rb#232 + # : (AttrWriter node) -> void + # + # source://rbi//lib/rbi/printer.rb#253 sig { override.params(node: ::RBI::AttrWriter).void } def visit_attr_writer(node); end - # source://rbi//lib/rbi/printer.rb#126 + # : (BlankLine node) -> void + # + # source://rbi//lib/rbi/printer.rb#138 sig { override.params(node: ::RBI::BlankLine).void } def visit_blank_line(node); end - # source://rbi//lib/rbi/printer.rb#344 + # : (BlockParam node) -> void + # + # source://rbi//lib/rbi/printer.rb#373 sig { override.params(node: ::RBI::BlockParam).void } def visit_block_param(node); end - # source://rbi//lib/rbi/printer.rb#143 + # : (Class node) -> void + # + # source://rbi//lib/rbi/printer.rb#158 sig { override.params(node: ::RBI::Class).void } def visit_class(node); end - # source://rbi//lib/rbi/printer.rb#110 + # : (Comment node) -> void + # + # source://rbi//lib/rbi/printer.rb#121 sig { override.params(node: ::RBI::Comment).void } def visit_comment(node); end - # source://rbi//lib/rbi/printer.rb#553 + # : (ConflictTree node) -> void + # + # source://rbi//lib/rbi/printer.rb#604 sig { override.params(node: ::RBI::ConflictTree).void } def visit_conflict_tree(node); end - # source://rbi//lib/rbi/printer.rb#213 + # : (Const node) -> void + # + # source://rbi//lib/rbi/printer.rb#231 sig { override.params(node: ::RBI::Const).void } def visit_const(node); end - # source://rbi//lib/rbi/printer.rb#354 + # : (Extend node) -> void + # + # source://rbi//lib/rbi/printer.rb#385 sig { override.params(node: ::RBI::Extend).void } def visit_extend(node); end - # source://rbi//lib/rbi/printer.rb#525 + # : (Group node) -> void + # + # source://rbi//lib/rbi/printer.rb#573 sig { override.params(node: ::RBI::Group).void } def visit_group(node); end - # source://rbi//lib/rbi/printer.rb#511 + # : (Helper node) -> void + # + # source://rbi//lib/rbi/printer.rb#557 sig { override.params(node: ::RBI::Helper).void } def visit_helper(node); end - # source://rbi//lib/rbi/printer.rb#349 + # : (Include node) -> void + # + # source://rbi//lib/rbi/printer.rb#379 sig { override.params(node: ::RBI::Include).void } def visit_include(node); end - # source://rbi//lib/rbi/printer.rb#422 + # : (KwArg node) -> void + # + # source://rbi//lib/rbi/printer.rb#459 sig { override.params(node: ::RBI::KwArg).void } def visit_kw_arg(node); end - # source://rbi//lib/rbi/printer.rb#334 + # : (KwOptParam node) -> void + # + # source://rbi//lib/rbi/printer.rb#361 sig { override.params(node: ::RBI::KwOptParam).void } def visit_kw_opt_param(node); end - # source://rbi//lib/rbi/printer.rb#329 + # : (KwParam node) -> void + # + # source://rbi//lib/rbi/printer.rb#355 sig { override.params(node: ::RBI::KwParam).void } def visit_kw_param(node); end - # source://rbi//lib/rbi/printer.rb#339 + # : (KwRestParam node) -> void + # + # source://rbi//lib/rbi/printer.rb#367 sig { override.params(node: ::RBI::KwRestParam).void } def visit_kw_rest_param(node); end - # source://rbi//lib/rbi/printer.rb#265 + # : (Method node) -> void + # + # source://rbi//lib/rbi/printer.rb#287 sig { override.params(node: ::RBI::Method).void } def visit_method(node); end - # source://rbi//lib/rbi/printer.rb#520 + # : (MixesInClassMethods node) -> void + # + # source://rbi//lib/rbi/printer.rb#567 sig { override.params(node: ::RBI::MixesInClassMethods).void } def visit_mixes_in_class_methods(node); end - # source://rbi//lib/rbi/printer.rb#359 + # : (Mixin node) -> void + # + # source://rbi//lib/rbi/printer.rb#390 sig { params(node: ::RBI::Mixin).void } def visit_mixin(node); end - # source://rbi//lib/rbi/printer.rb#138 + # : (Module node) -> void + # + # source://rbi//lib/rbi/printer.rb#152 sig { override.params(node: ::RBI::Module).void } def visit_module(node); end - # source://rbi//lib/rbi/printer.rb#319 + # : (OptParam node) -> void + # + # source://rbi//lib/rbi/printer.rb#343 sig { override.params(node: ::RBI::OptParam).void } def visit_opt_param(node); end - # source://rbi//lib/rbi/printer.rb#386 + # : (Private node) -> void + # + # source://rbi//lib/rbi/printer.rb#420 sig { override.params(node: ::RBI::Private).void } def visit_private(node); end - # source://rbi//lib/rbi/printer.rb#381 + # : (Protected node) -> void + # + # source://rbi//lib/rbi/printer.rb#414 sig { override.params(node: ::RBI::Protected).void } def visit_protected(node); end - # source://rbi//lib/rbi/printer.rb#376 + # : (Public node) -> void + # + # source://rbi//lib/rbi/printer.rb#408 sig { override.params(node: ::RBI::Public).void } def visit_public(node); end - # source://rbi//lib/rbi/printer.rb#314 + # : (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 - # source://rbi//lib/rbi/printer.rb#544 + # : (RequiresAncestor node) -> void + # + # source://rbi//lib/rbi/printer.rb#594 sig { override.params(node: ::RBI::RequiresAncestor).void } def visit_requires_ancestor(node); end - # source://rbi//lib/rbi/printer.rb#324 + # : (RestParam node) -> void + # + # source://rbi//lib/rbi/printer.rb#349 sig { override.params(node: ::RBI::RestParam).void } def visit_rest_param(node); end - # source://rbi//lib/rbi/printer.rb#158 + # : (Scope node) -> void + # + # source://rbi//lib/rbi/printer.rb#175 sig { params(node: ::RBI::Scope).void } def visit_scope(node); end - # source://rbi//lib/rbi/printer.rb#203 + # : (Scope node) -> void + # + # source://rbi//lib/rbi/printer.rb#220 sig { params(node: ::RBI::Scope).void } def visit_scope_body(node); end - # source://rbi//lib/rbi/printer.rb#562 + # : (ScopeConflict node) -> void + # + # source://rbi//lib/rbi/printer.rb#614 sig { override.params(node: ::RBI::ScopeConflict).void } def visit_scope_conflict(node); end - # source://rbi//lib/rbi/printer.rb#168 + # : (Scope node) -> void + # + # source://rbi//lib/rbi/printer.rb#185 sig { params(node: ::RBI::Scope).void } def visit_scope_header(node); end - # source://rbi//lib/rbi/printer.rb#400 + # : (Send node) -> void + # + # source://rbi//lib/rbi/printer.rb#435 sig { override.params(node: ::RBI::Send).void } def visit_send(node); end - # source://rbi//lib/rbi/printer.rb#427 + # : (Sig node) -> void + # + # source://rbi//lib/rbi/printer.rb#465 sig { override.params(node: ::RBI::Sig).void } def visit_sig(node); end - # source://rbi//lib/rbi/printer.rb#447 + # : (SigParam node) -> void + # + # source://rbi//lib/rbi/printer.rb#486 sig { override.params(node: ::RBI::SigParam).void } def visit_sig_param(node); end - # source://rbi//lib/rbi/printer.rb#153 + # : (SingletonClass node) -> void + # + # source://rbi//lib/rbi/printer.rb#170 sig { override.params(node: ::RBI::SingletonClass).void } def visit_singleton_class(node); end - # source://rbi//lib/rbi/printer.rb#148 + # : (Struct node) -> void + # + # source://rbi//lib/rbi/printer.rb#164 sig { override.params(node: ::RBI::Struct).void } def visit_struct(node); end - # source://rbi//lib/rbi/printer.rb#467 + # : (TStructField node) -> void + # + # source://rbi//lib/rbi/printer.rb#509 sig { params(node: ::RBI::TStructField).void } def visit_t_struct_field(node); end - # source://rbi//lib/rbi/printer.rb#485 + # : (TEnum node) -> void + # + # source://rbi//lib/rbi/printer.rb#528 sig { override.params(node: ::RBI::TEnum).void } def visit_tenum(node); end - # source://rbi//lib/rbi/printer.rb#490 + # : (TEnumBlock node) -> void + # + # source://rbi//lib/rbi/printer.rb#534 sig { override.params(node: ::RBI::TEnumBlock).void } def visit_tenum_block(node); end - # source://rbi//lib/rbi/printer.rb#131 + # : (Tree node) -> void + # + # source://rbi//lib/rbi/printer.rb#144 sig { override.params(node: ::RBI::Tree).void } def visit_tree(node); end - # source://rbi//lib/rbi/printer.rb#452 + # : (TStruct node) -> void + # + # source://rbi//lib/rbi/printer.rb#492 sig { override.params(node: ::RBI::TStruct).void } def visit_tstruct(node); end - # source://rbi//lib/rbi/printer.rb#457 + # : (TStructConst node) -> void + # + # source://rbi//lib/rbi/printer.rb#498 sig { override.params(node: ::RBI::TStructConst).void } def visit_tstruct_const(node); end - # source://rbi//lib/rbi/printer.rb#462 + # : (TStructProp node) -> void + # + # source://rbi//lib/rbi/printer.rb#504 sig { override.params(node: ::RBI::TStructProp).void } def visit_tstruct_prop(node); end - # source://rbi//lib/rbi/printer.rb#502 + # : (TypeMember node) -> void + # + # source://rbi//lib/rbi/printer.rb#547 sig { override.params(node: ::RBI::TypeMember).void } def visit_type_member(node); end - # source://rbi//lib/rbi/printer.rb#391 + # : (Visibility node) -> void + # + # source://rbi//lib/rbi/printer.rb#425 sig { params(node: ::RBI::Visibility).void } def visit_visibility(node); end - # source://rbi//lib/rbi/printer.rb#531 + # : (VisibilityGroup node) -> void + # + # source://rbi//lib/rbi/printer.rb#580 sig { override.params(node: ::RBI::VisibilityGroup).void } def visit_visibility_group(node); end end @@ -1765,9 +2494,13 @@ end # source://rbi//lib/rbi/printer.rb#5 class RBI::PrinterError < ::RBI::Error; end -# source://rbi//lib/rbi/model.rb#986 +# source://rbi//lib/rbi/model.rb#761 class RBI::Private < ::RBI::Visibility - # source://rbi//lib/rbi/model.rb#996 + # : (?loc: Loc?, ?comments: Array[Comment]) ?{ (Private node) -> void } -> void + # + # @return [Private] a new instance of Private + # + # source://rbi//lib/rbi/model.rb#763 sig do params( loc: T.nilable(::RBI::Loc), @@ -1778,9 +2511,13 @@ class RBI::Private < ::RBI::Visibility def initialize(loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end end -# source://rbi//lib/rbi/model.rb#970 +# source://rbi//lib/rbi/model.rb#753 class RBI::Protected < ::RBI::Visibility - # source://rbi//lib/rbi/model.rb#980 + # : (?loc: Loc?, ?comments: Array[Comment]) ?{ (Protected node) -> void } -> void + # + # @return [Protected] a new instance of Protected + # + # source://rbi//lib/rbi/model.rb#755 sig do params( loc: T.nilable(::RBI::Loc), @@ -1791,9 +2528,13 @@ class RBI::Protected < ::RBI::Visibility def initialize(loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end end -# source://rbi//lib/rbi/model.rb#954 +# source://rbi//lib/rbi/model.rb#745 class RBI::Public < ::RBI::Visibility - # source://rbi//lib/rbi/model.rb#964 + # : (?loc: Loc?, ?comments: Array[Comment]) ?{ (Public node) -> void } -> void + # + # @return [Public] a new instance of Public + # + # source://rbi//lib/rbi/model.rb#747 sig do params( loc: T.nilable(::RBI::Loc), @@ -1804,316 +2545,593 @@ class RBI::Public < ::RBI::Visibility def initialize(loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end end +# source://rbi//lib/rbi/rbs/method_type_translator.rb#5 +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 + end +end + +# source://rbi//lib/rbi/rbs/method_type_translator.rb#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 + 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) + ).returns(::RBI::Type) + end + def translate(type); end + + private + + # : (::RBS::Types::ClassInstance) -> Type + # + # source://rbi//lib/rbi/rbs/type_translator.rb#99 + 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 + 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 + sig { params(type_name: ::String).returns(::String) } + def translate_t_generic_type(type_name); end + end +end + +# A comment representing a RBS type prefixed with `#:` +# +# source://rbi//lib/rbi/model.rb#81 +class RBI::RBSComment < ::RBI::Comment + # : (Object other) -> bool + # + # source://rbi//lib/rbi/model.rb#83 + sig { params(other: ::Object).returns(T::Boolean) } + def ==(other); end +end + # source://rbi//lib/rbi/rbs_printer.rb#5 class RBI::RBSPrinter < ::RBI::Visitor - # source://rbi//lib/rbi/rbs_printer.rb#18 - sig { params(out: T.any(::IO, ::StringIO), indent: ::Integer, print_locs: T::Boolean).void } - def initialize(out: T.unsafe(nil), indent: T.unsafe(nil), print_locs: T.unsafe(nil)); end + # : (?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 + sig do + params( + out: T.any(::IO, ::StringIO), + indent: ::Integer, + print_locs: T::Boolean, + positional_names: T::Boolean + ).void + end + def initialize(out: T.unsafe(nil), indent: T.unsafe(nil), print_locs: T.unsafe(nil), positional_names: T.unsafe(nil)); end + # : Integer + # # source://rbi//lib/rbi/rbs_printer.rb#15 sig { returns(::Integer) } def current_indent; end - # source://rbi//lib/rbi/rbs_printer.rb#35 + # : -> void + # + # source://rbi//lib/rbi/rbs_printer.rb#39 sig { void } def dedent; end - # @return [Boolean] + # : bool # # source://rbi//lib/rbi/rbs_printer.rb#9 + # @return [Boolean] def in_visibility_group; end - # @return [Boolean] + # : bool # # source://rbi//lib/rbi/rbs_printer.rb#9 + # @return [Boolean] def in_visibility_group=(_arg0); end - # Printing + # : -> void # - # source://rbi//lib/rbi/rbs_printer.rb#30 + # source://rbi//lib/rbi/rbs_printer.rb#34 + # Printing sig { void } def indent; end + # : bool + # + # 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#41 + # source://rbi//lib/rbi/rbs_printer.rb#45 + # Print a string without indentation nor `\n` at the end. sig { params(string: ::String).void } def print(string); end - # source://rbi//lib/rbi/rbs_printer.rb#275 + # : (RBI::Attr node, Sig sig) -> void + # + # source://rbi//lib/rbi/rbs_printer.rb#292 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 - # @return [Boolean] + # : bool # # source://rbi//lib/rbi/rbs_printer.rb#9 + # @return [Boolean] def print_locs=(_arg0); end - # source://rbi//lib/rbi/rbs_printer.rb#363 + # : (RBI::Method node, Sig sig) -> void + # + # source://rbi//lib/rbi/rbs_printer.rb#381 sig { params(node: ::RBI::Method, sig: ::RBI::Sig).void } def print_method_sig(node, sig); end # Print a string with indentation and `\n` at the end. + # : (String string) -> void # - # source://rbi//lib/rbi/rbs_printer.rb#61 + # source://rbi//lib/rbi/rbs_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/rbs_printer.rb#47 + # source://rbi//lib/rbi/rbs_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/rbs_printer.rb#54 + # source://rbi//lib/rbi/rbs_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 - # source://rbi//lib/rbi/rbs_printer.rb#67 + # : (Array[Node] nodes) -> void + # + # source://rbi//lib/rbi/rbs_printer.rb#72 sig { override.params(nodes: T::Array[::RBI::Node]).void } def visit_all(nodes); end - # source://rbi//lib/rbi/rbs_printer.rb#534 + # : (Arg node) -> void + # + # source://rbi//lib/rbi/rbs_printer.rb#578 sig { override.params(node: ::RBI::Arg).void } def visit_arg(node); end - # source://rbi//lib/rbi/rbs_printer.rb#243 + # : (Attr node) -> void + # + # source://rbi//lib/rbi/rbs_printer.rb#260 sig { params(node: ::RBI::Attr).void } def visit_attr(node); end - # source://rbi//lib/rbi/rbs_printer.rb#228 + # : (AttrAccessor node) -> void + # + # source://rbi//lib/rbi/rbs_printer.rb#243 sig { override.params(node: ::RBI::AttrAccessor).void } def visit_attr_accessor(node); end - # source://rbi//lib/rbi/rbs_printer.rb#233 + # : (AttrReader node) -> void + # + # source://rbi//lib/rbi/rbs_printer.rb#249 sig { override.params(node: ::RBI::AttrReader).void } def visit_attr_reader(node); end - # source://rbi//lib/rbi/rbs_printer.rb#238 + # : (AttrWriter node) -> void + # + # source://rbi//lib/rbi/rbs_printer.rb#255 sig { override.params(node: ::RBI::AttrWriter).void } def visit_attr_writer(node); end - # source://rbi//lib/rbi/rbs_printer.rb#106 + # : (BlankLine node) -> void + # + # source://rbi//lib/rbi/rbs_printer.rb#114 sig { override.params(node: ::RBI::BlankLine).void } def visit_blank_line(node); end - # source://rbi//lib/rbi/rbs_printer.rb#473 + # : (BlockParam node) -> void + # + # source://rbi//lib/rbi/rbs_printer.rb#510 sig { override.params(node: ::RBI::BlockParam).void } def visit_block_param(node); end - # source://rbi//lib/rbi/rbs_printer.rb#123 + # : (Class node) -> void + # + # source://rbi//lib/rbi/rbs_printer.rb#134 sig { override.params(node: ::RBI::Class).void } def visit_class(node); end - # source://rbi//lib/rbi/rbs_printer.rb#90 + # : (Comment node) -> void + # + # source://rbi//lib/rbi/rbs_printer.rb#97 sig { override.params(node: ::RBI::Comment).void } def visit_comment(node); end - # source://rbi//lib/rbi/rbs_printer.rb#654 + # : (ConflictTree node) -> void + # + # source://rbi//lib/rbi/rbs_printer.rb#711 sig { override.params(node: ::RBI::ConflictTree).void } def visit_conflict_tree(node); end - # source://rbi//lib/rbi/rbs_printer.rb#213 + # : (Const node) -> void + # + # source://rbi//lib/rbi/rbs_printer.rb#227 sig { override.params(node: ::RBI::Const).void } def visit_const(node); end - # source://rbi//lib/rbi/rbs_printer.rb#483 + # : (Extend node) -> void + # + # source://rbi//lib/rbi/rbs_printer.rb#522 sig { override.params(node: ::RBI::Extend).void } def visit_extend(node); end - # source://rbi//lib/rbi/rbs_printer.rb#78 + # : (File file) -> void + # + # source://rbi//lib/rbi/rbs_printer.rb#84 sig { override.params(file: ::RBI::File).void } def visit_file(file); end - # source://rbi//lib/rbi/rbs_printer.rb#630 + # : (Group node) -> void + # + # source://rbi//lib/rbi/rbs_printer.rb#684 sig { override.params(node: ::RBI::Group).void } def visit_group(node); end - # source://rbi//lib/rbi/rbs_printer.rb#620 + # : (Helper node) -> void + # + # source://rbi//lib/rbi/rbs_printer.rb#672 sig { override.params(node: ::RBI::Helper).void } def visit_helper(node); end - # source://rbi//lib/rbi/rbs_printer.rb#478 + # : (Include node) -> void + # + # source://rbi//lib/rbi/rbs_printer.rb#516 sig { override.params(node: ::RBI::Include).void } def visit_include(node); end - # source://rbi//lib/rbi/rbs_printer.rb#539 + # : (KwArg node) -> void + # + # source://rbi//lib/rbi/rbs_printer.rb#584 sig { override.params(node: ::RBI::KwArg).void } def visit_kw_arg(node); end - # source://rbi//lib/rbi/rbs_printer.rb#463 + # : (KwOptParam node) -> void + # + # source://rbi//lib/rbi/rbs_printer.rb#498 sig { override.params(node: ::RBI::KwOptParam).void } def visit_kw_opt_param(node); end - # source://rbi//lib/rbi/rbs_printer.rb#458 + # : (KwParam node) -> void + # + # source://rbi//lib/rbi/rbs_printer.rb#492 sig { override.params(node: ::RBI::KwParam).void } def visit_kw_param(node); end - # source://rbi//lib/rbi/rbs_printer.rb#468 + # : (KwRestParam node) -> void + # + # source://rbi//lib/rbi/rbs_printer.rb#504 sig { override.params(node: ::RBI::KwRestParam).void } def visit_kw_rest_param(node); end - # source://rbi//lib/rbi/rbs_printer.rb#297 + # : (Method node) -> void + # + # source://rbi//lib/rbi/rbs_printer.rb#315 sig { override.params(node: ::RBI::Method).void } def visit_method(node); end - # source://rbi//lib/rbi/rbs_printer.rb#625 + # : (MixesInClassMethods node) -> void + # + # source://rbi//lib/rbi/rbs_printer.rb#678 sig { override.params(node: ::RBI::MixesInClassMethods).void } def visit_mixes_in_class_methods(node); end - # source://rbi//lib/rbi/rbs_printer.rb#488 + # : (Mixin node) -> void + # + # source://rbi//lib/rbi/rbs_printer.rb#527 sig { params(node: ::RBI::Mixin).void } def visit_mixin(node); end - # source://rbi//lib/rbi/rbs_printer.rb#118 + # : (Module node) -> void + # + # source://rbi//lib/rbi/rbs_printer.rb#128 sig { override.params(node: ::RBI::Module).void } def visit_module(node); end - # source://rbi//lib/rbi/rbs_printer.rb#448 + # : (OptParam node) -> void + # + # source://rbi//lib/rbi/rbs_printer.rb#472 sig { override.params(node: ::RBI::OptParam).void } def visit_opt_param(node); end - # source://rbi//lib/rbi/rbs_printer.rb#515 + # : (Private node) -> void + # + # source://rbi//lib/rbi/rbs_printer.rb#557 sig { override.params(node: ::RBI::Private).void } def visit_private(node); end - # source://rbi//lib/rbi/rbs_printer.rb#510 + # : (Protected node) -> void + # + # source://rbi//lib/rbi/rbs_printer.rb#551 sig { override.params(node: ::RBI::Protected).void } def visit_protected(node); end - # source://rbi//lib/rbi/rbs_printer.rb#505 + # : (Public node) -> void + # + # source://rbi//lib/rbi/rbs_printer.rb#545 sig { override.params(node: ::RBI::Public).void } def visit_public(node); end - # source://rbi//lib/rbi/rbs_printer.rb#443 + # : (ReqParam node) -> void + # + # source://rbi//lib/rbi/rbs_printer.rb#462 sig { override.params(node: ::RBI::ReqParam).void } def visit_req_param(node); end - # source://rbi//lib/rbi/rbs_printer.rb#649 + # : (RequiresAncestor node) -> void + # + # source://rbi//lib/rbi/rbs_printer.rb#705 sig { override.params(node: ::RBI::RequiresAncestor).void } def visit_requires_ancestor(node); end - # source://rbi//lib/rbi/rbs_printer.rb#453 + # : (RestParam node) -> void + # + # source://rbi//lib/rbi/rbs_printer.rb#482 sig { override.params(node: ::RBI::RestParam).void } def visit_rest_param(node); end - # source://rbi//lib/rbi/rbs_printer.rb#138 + # : (Scope node) -> void + # + # source://rbi//lib/rbi/rbs_printer.rb#151 sig { params(node: ::RBI::Scope).void } def visit_scope(node); end - # source://rbi//lib/rbi/rbs_printer.rb#201 + # : (Scope node) -> void + # + # source://rbi//lib/rbi/rbs_printer.rb#214 sig { params(node: ::RBI::Scope).void } def visit_scope_body(node); end - # source://rbi//lib/rbi/rbs_printer.rb#663 + # : (ScopeConflict node) -> void + # + # source://rbi//lib/rbi/rbs_printer.rb#721 sig { override.params(node: ::RBI::ScopeConflict).void } def visit_scope_conflict(node); end - # source://rbi//lib/rbi/rbs_printer.rb#148 + # : (Scope node) -> void + # + # source://rbi//lib/rbi/rbs_printer.rb#161 sig { params(node: ::RBI::Scope).void } def visit_scope_header(node); end - # source://rbi//lib/rbi/rbs_printer.rb#529 + # : (Send node) -> void + # + # source://rbi//lib/rbi/rbs_printer.rb#572 sig { override.params(node: ::RBI::Send).void } def visit_send(node); end - # source://rbi//lib/rbi/rbs_printer.rb#425 + # : (Sig node) -> void + # + # source://rbi//lib/rbi/rbs_printer.rb#443 sig { params(node: ::RBI::Sig).void } def visit_sig(node); end - # source://rbi//lib/rbi/rbs_printer.rb#438 + # : (SigParam node) -> void + # + # source://rbi//lib/rbi/rbs_printer.rb#456 sig { params(node: ::RBI::SigParam).void } def visit_sig_param(node); end - # source://rbi//lib/rbi/rbs_printer.rb#133 + # : (SingletonClass node) -> void + # + # source://rbi//lib/rbi/rbs_printer.rb#146 sig { override.params(node: ::RBI::SingletonClass).void } def visit_singleton_class(node); end - # source://rbi//lib/rbi/rbs_printer.rb#128 + # : (Struct node) -> void + # + # source://rbi//lib/rbi/rbs_printer.rb#140 sig { override.params(node: ::RBI::Struct).void } def visit_struct(node); end - # source://rbi//lib/rbi/rbs_printer.rb#592 + # : (TEnum node) -> void + # + # source://rbi//lib/rbi/rbs_printer.rb#641 sig { override.params(node: ::RBI::TEnum).void } def visit_tenum(node); end - # source://rbi//lib/rbi/rbs_printer.rb#597 + # : (TEnumBlock node) -> void + # + # source://rbi//lib/rbi/rbs_printer.rb#647 sig { override.params(node: ::RBI::TEnumBlock).void } def visit_tenum_block(node); end - # source://rbi//lib/rbi/rbs_printer.rb#111 + # : (Tree node) -> void + # + # source://rbi//lib/rbi/rbs_printer.rb#120 sig { override.params(node: ::RBI::Tree).void } def visit_tree(node); end - # source://rbi//lib/rbi/rbs_printer.rb#544 + # : (TStruct node) -> void + # + # source://rbi//lib/rbi/rbs_printer.rb#590 sig { override.params(node: ::RBI::TStruct).void } def visit_tstruct(node); end - # source://rbi//lib/rbi/rbs_printer.rb#578 + # : (TStructConst node) -> void + # + # source://rbi//lib/rbi/rbs_printer.rb#625 sig { override.params(node: ::RBI::TStructConst).void } def visit_tstruct_const(node); end - # source://rbi//lib/rbi/rbs_printer.rb#585 + # : (TStructProp node) -> void + # + # source://rbi//lib/rbi/rbs_printer.rb#633 sig { override.params(node: ::RBI::TStructProp).void } def visit_tstruct_prop(node); end - # source://rbi//lib/rbi/rbs_printer.rb#615 + # : (TypeMember node) -> void + # + # source://rbi//lib/rbi/rbs_printer.rb#666 sig { override.params(node: ::RBI::TypeMember).void } def visit_type_member(node); end - # source://rbi//lib/rbi/rbs_printer.rb#520 + # : (Visibility node) -> void + # + # source://rbi//lib/rbi/rbs_printer.rb#562 sig { params(node: ::RBI::Visibility).void } def visit_visibility(node); end - # source://rbi//lib/rbi/rbs_printer.rb#636 + # : (VisibilityGroup node) -> void + # + # source://rbi//lib/rbi/rbs_printer.rb#691 sig { override.params(node: ::RBI::VisibilityGroup).void } def visit_visibility_group(node); end private - # source://rbi//lib/rbi/rbs_printer.rb#754 + # : (Node node) -> bool + # + # @return [Boolean] + # + # source://rbi//lib/rbi/rbs_printer.rb#824 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#788 + # source://rbi//lib/rbi/rbs_printer.rb#858 + # Parse a string containing a `T.let(x, X)` and extract the type + # Returns `nil` is the string is not a `T.let`. sig { params(code: T.nilable(::String)).returns(T.nilable(::String)) } def parse_t_let(code); end - # source://rbi//lib/rbi/rbs_printer.rb#776 + # : ((Type | String) type) -> Type + # + # source://rbi//lib/rbi/rbs_printer.rb#846 sig { params(type: T.any(::RBI::Type, ::String)).returns(::RBI::Type) } def parse_type(type); end - # source://rbi//lib/rbi/rbs_printer.rb#679 + # : (Node node) -> void + # + # source://rbi//lib/rbi/rbs_printer.rb#737 sig { params(node: ::RBI::Node).void } def print_blank_line_before(node); end - # source://rbi//lib/rbi/rbs_printer.rb#698 + # : (Node node) -> void + # + # source://rbi//lib/rbi/rbs_printer.rb#756 sig { params(node: ::RBI::Node).void } def print_loc(node); end - # source://rbi//lib/rbi/rbs_printer.rb#728 + # : (Param node, last: bool) -> void + # + # source://rbi//lib/rbi/rbs_printer.rb#798 sig { params(node: ::RBI::Param, last: T::Boolean).void } def print_param_comment_leading_space(node, last:); end - # source://rbi//lib/rbi/rbs_printer.rb#704 + # : (Method node, SigParam param) -> void + # + # source://rbi//lib/rbi/rbs_printer.rb#762 sig { params(node: ::RBI::Method, param: ::RBI::SigParam).void } def print_sig_param(node, param); end - # source://rbi//lib/rbi/rbs_printer.rb#746 + # : (SigParam node, last: bool) -> void + # + # source://rbi//lib/rbi/rbs_printer.rb#816 sig { params(node: ::RBI::SigParam, last: T::Boolean).void } def print_sig_param_comment_leading_space(node, last:); end end @@ -2124,9 +3142,13 @@ 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#654 +# source://rbi//lib/rbi/model.rb#532 class RBI::ReqParam < ::RBI::Param - # source://rbi//lib/rbi/model.rb#665 + # : (String name, ?loc: Loc?, ?comments: Array[Comment]) ?{ (ReqParam node) -> void } -> void + # + # @return [ReqParam] a new instance of ReqParam + # + # source://rbi//lib/rbi/model.rb#534 sig do params( name: ::String, @@ -2137,35 +3159,51 @@ class RBI::ReqParam < ::RBI::Param end def initialize(name, loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end - # source://rbi//lib/rbi/model.rb#671 + # : (Object? other) -> bool + # + # source://rbi//lib/rbi/model.rb#540 sig { params(other: T.nilable(::Object)).returns(T::Boolean) } def ==(other); end end -# source://rbi//lib/rbi/model.rb#1461 +# source://rbi//lib/rbi/model.rb#1100 class RBI::RequiresAncestor < ::RBI::NodeWithComments include ::RBI::Indexable - # source://rbi//lib/rbi/model.rb#1474 + # : (String name, ?loc: Loc?, ?comments: Array[Comment]) -> void + # + # @return [RequiresAncestor] a new instance of RequiresAncestor + # + # source://rbi//lib/rbi/model.rb#1105 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 - # source://rbi//lib/rbi/index.rb#163 + # : -> Array[String] + # + # source://rbi//lib/rbi/index.rb#159 sig { override.returns(T::Array[::String]) } def index_ids; end - # source://rbi//lib/rbi/model.rb#1465 + # : String + # + # source://rbi//lib/rbi/model.rb#1102 sig { returns(::String) } def name; end - # source://rbi//lib/rbi/model.rb#1480 + # : -> String + # + # source://rbi//lib/rbi/model.rb#1112 sig { override.returns(::String) } def to_s; end end -# source://rbi//lib/rbi/model.rb#703 +# source://rbi//lib/rbi/model.rb#562 class RBI::RestParam < ::RBI::Param - # source://rbi//lib/rbi/model.rb#714 + # : (String name, ?loc: Loc?, ?comments: Array[Comment]) ?{ (RestParam node) -> void } -> void + # + # @return [RestParam] a new instance of RestParam + # + # source://rbi//lib/rbi/model.rb#564 sig do params( name: ::String, @@ -2176,11 +3214,15 @@ class RBI::RestParam < ::RBI::Param end def initialize(name, loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end - # source://rbi//lib/rbi/model.rb#725 + # : (Object? other) -> bool + # + # source://rbi//lib/rbi/model.rb#576 sig { params(other: T.nilable(::Object)).returns(T::Boolean) } def ==(other); end - # source://rbi//lib/rbi/model.rb#720 + # : -> String + # + # source://rbi//lib/rbi/model.rb#571 sig { override.returns(::String) } def to_s; end end @@ -2190,78 +3232,114 @@ module RBI::Rewriters; end # source://rbi//lib/rbi/rewriters/add_sig_templates.rb#6 class RBI::Rewriters::AddSigTemplates < ::RBI::Visitor - # source://rbi//lib/rbi/rewriters/add_sig_templates.rb#10 + # : (?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 - # source://rbi//lib/rbi/rewriters/add_sig_templates.rb#16 + # : (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 - # source://rbi//lib/rbi/rewriters/add_sig_templates.rb#30 + # : (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 - # source://rbi//lib/rbi/rewriters/add_sig_templates.rb#45 + # : (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 - # source://rbi//lib/rbi/rewriters/add_sig_templates.rb#56 + # : (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 end # source://rbi//lib/rbi/rewriters/annotate.rb#6 class RBI::Rewriters::Annotate < ::RBI::Visitor - # source://rbi//lib/rbi/rewriters/annotate.rb#10 + # : (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 - # source://rbi//lib/rbi/rewriters/annotate.rb#18 + # : (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 - # source://rbi//lib/rbi/rewriters/annotate.rb#31 + # : (NodeWithComments node) -> void + # + # source://rbi//lib/rbi/rewriters/annotate.rb#30 sig { params(node: ::RBI::NodeWithComments).void } def annotate_node(node); end - # source://rbi//lib/rbi/rewriters/annotate.rb#38 + # : (Node node) -> bool + # + # @return [Boolean] + # + # source://rbi//lib/rbi/rewriters/annotate.rb#37 sig { params(node: ::RBI::Node).returns(T::Boolean) } def root?(node); end end # source://rbi//lib/rbi/rewriters/attr_to_methods.rb#22 class RBI::Rewriters::AttrToMethods < ::RBI::Visitor - # source://rbi//lib/rbi/rewriters/attr_to_methods.rb#26 + # : (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#39 + # source://rbi//lib/rbi/rewriters/attr_to_methods.rb#38 sig { params(node: ::RBI::Node, with: T::Array[::RBI::Node]).void } def replace(node, with:); end end # source://rbi//lib/rbi/rewriters/deannotate.rb#6 class RBI::Rewriters::Deannotate < ::RBI::Visitor - # source://rbi//lib/rbi/rewriters/deannotate.rb#10 + # : (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 - # source://rbi//lib/rbi/rewriters/deannotate.rb#16 + # : (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 - # source://rbi//lib/rbi/rewriters/deannotate.rb#27 + # : (NodeWithComments node) -> void + # + # source://rbi//lib/rbi/rewriters/deannotate.rb#26 sig { params(node: ::RBI::NodeWithComments).void } def deannotate_node(node); end end @@ -2319,23 +3397,66 @@ 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 - # source://rbi//lib/rbi/rewriters/filter_versions.rb#73 + # : (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 - # source://rbi//lib/rbi/rewriters/filter_versions.rb#79 + # : (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 - # source://rbi//lib/rbi/rewriters/filter_versions.rb#66 + # : (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 end end -# source://rbi//lib/rbi/rewriters/filter_versions.rb#60 +# source://rbi//lib/rbi/rewriters/filter_versions.rb#58 RBI::Rewriters::FilterVersions::VERSION_PREFIX = T.let(T.unsafe(nil), String) # Rewrite non-singleton methods inside singleton classes to singleton methods @@ -2364,8 +3485,24 @@ 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 - # source://rbi//lib/rbi/rewriters/flatten_singleton_methods.rb#34 + # : (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 end @@ -2393,25 +3530,47 @@ 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 - # source://rbi//lib/rbi/rewriters/flatten_visibilities.rb#31 + # : -> void + # + # @return [FlattenVisibilities] a new instance of FlattenVisibilities + # + # source://rbi//lib/rbi/rewriters/flatten_visibilities.rb#29 sig { void } def initialize; end - # source://rbi//lib/rbi/rewriters/flatten_visibilities.rb#38 + # : (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 end # source://rbi//lib/rbi/rewriters/group_nodes.rb#8 class RBI::Rewriters::GroupNodes < ::RBI::Visitor - # source://rbi//lib/rbi/rewriters/group_nodes.rb#12 + # : (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 - # source://rbi//lib/rbi/rewriters/group_nodes.rb#36 + # : (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 end @@ -2451,21 +3610,46 @@ 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 - # source://rbi//lib/rbi/rewriters/merge_trees.rb#70 + # : (?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 - # source://rbi//lib/rbi/rewriters/merge_trees.rb#79 + # : (Tree tree) -> void + # + # source://rbi//lib/rbi/rewriters/merge_trees.rb#75 sig { params(tree: ::RBI::Tree).void } def merge(tree); end - # source://rbi//lib/rbi/rewriters/merge_trees.rb#67 + # : MergeTree + # + # source://rbi//lib/rbi/rewriters/merge_trees.rb#63 sig { returns(::RBI::MergeTree) } def tree; end class << self - # source://rbi//lib/rbi/rewriters/merge_trees.rb#54 + # : (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( left: ::RBI::Tree, @@ -2481,19 +3665,22 @@ end # Used for logging / error displaying purpose # -# source://rbi//lib/rbi/rewriters/merge_trees.rb#86 +# 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 - # source://rbi//lib/rbi/rewriters/merge_trees.rb#95 + # : -> String + # + # source://rbi//lib/rbi/rewriters/merge_trees.rb#89 sig { returns(::String) } def to_s; end class << self - # source://sorbet-runtime/0.5.11770/lib/types/struct.rb#13 + # source://sorbet-runtime/0.5.11915/lib/types/struct.rb#13 + # source://sorbet-runtime/0.5.11911/lib/types/struct.rb#13 def inherited(s); end end end @@ -2529,24 +3716,43 @@ end # end # ~~~ # -# source://rbi//lib/rbi/rewriters/merge_trees.rb#245 +# 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: class RBI::Rewriters::Merge::ConflictTreeMerger < ::RBI::Visitor - # source://rbi//lib/rbi/rewriters/merge_trees.rb#247 + # : (Node? node) -> void + # + # source://rbi//lib/rbi/rewriters/merge_trees.rb#241 sig { override.params(node: T.nilable(::RBI::Node)).void } def visit(node); end - # source://rbi//lib/rbi/rewriters/merge_trees.rb#252 + # : (Array[Node] nodes) -> void + # + # source://rbi//lib/rbi/rewriters/merge_trees.rb#247 sig { override.params(nodes: T::Array[::RBI::Node]).void } def visit_all(nodes); end private - # source://rbi//lib/rbi/rewriters/merge_trees.rb#273 + # : (Tree left, Tree right) -> void + # + # source://rbi//lib/rbi/rewriters/merge_trees.rb#268 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#42 +# source://rbi//lib/rbi/rewriters/merge_trees.rb#40 class RBI::Rewriters::Merge::Keep < ::T::Enum enums do LEFT = new @@ -2555,9 +3761,13 @@ class RBI::Rewriters::Merge::Keep < ::T::Enum end end -# source://rbi//lib/rbi/rewriters/merge_trees.rb#100 +# source://rbi//lib/rbi/rewriters/merge_trees.rb#94 class RBI::Rewriters::Merge::TreeMerger < ::RBI::Visitor - # source://rbi//lib/rbi/rewriters/merge_trees.rb#107 + # : (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 sig do params( output: ::RBI::Tree, @@ -2568,47 +3778,65 @@ 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 - # source://rbi//lib/rbi/rewriters/merge_trees.rb#104 + # : Array[Conflict] + # + # source://rbi//lib/rbi/rewriters/merge_trees.rb#96 sig { returns(T::Array[::RBI::Rewriters::Merge::Conflict]) } def conflicts; end - # source://rbi//lib/rbi/rewriters/merge_trees.rb#119 + # : (Node? node) -> void + # + # source://rbi//lib/rbi/rewriters/merge_trees.rb#112 sig { override.params(node: T.nilable(::RBI::Node)).void } def visit(node); end private - # source://rbi//lib/rbi/rewriters/merge_trees.rb#168 + # : -> Tree + # + # source://rbi//lib/rbi/rewriters/merge_trees.rb#161 sig { returns(::RBI::Tree) } def current_scope; end - # source://rbi//lib/rbi/rewriters/merge_trees.rb#185 + # : (Scope left, Scope right) -> void + # + # source://rbi//lib/rbi/rewriters/merge_trees.rb#178 sig { params(left: ::RBI::Scope, right: ::RBI::Scope).void } def make_conflict_scope(left, right); end - # source://rbi//lib/rbi/rewriters/merge_trees.rb#192 + # : (Node left, Node right) -> void + # + # source://rbi//lib/rbi/rewriters/merge_trees.rb#185 sig { params(left: ::RBI::Node, right: ::RBI::Node).void } def make_conflict_tree(left, right); end - # source://rbi//lib/rbi/rewriters/merge_trees.rb#173 + # : (Node node) -> Node? + # + # source://rbi//lib/rbi/rewriters/merge_trees.rb#166 sig { params(node: ::RBI::Node).returns(T.nilable(::RBI::Node)) } def previous_definition(node); end - # source://rbi//lib/rbi/rewriters/merge_trees.rb#204 + # : (Scope left, Scope right) -> Scope + # + # source://rbi//lib/rbi/rewriters/merge_trees.rb#197 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 - # source://rbi//lib/rbi/rewriters/nest_non_public_members.rb#10 + # : (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 end # source://rbi//lib/rbi/rewriters/nest_singleton_methods.rb#6 class RBI::Rewriters::NestSingletonMethods < ::RBI::Visitor - # source://rbi//lib/rbi/rewriters/nest_singleton_methods.rb#10 + # : (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 end @@ -2631,12 +3859,28 @@ 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 - # source://rbi//lib/rbi/rewriters/nest_top_level_members.rb#26 + # : -> void + # + # @return [NestTopLevelMembers] a new instance of NestTopLevelMembers + # + # source://rbi//lib/rbi/rewriters/nest_top_level_members.rb#24 sig { void } def initialize; end - # source://rbi//lib/rbi/rewriters/nest_top_level_members.rb#33 + # : (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 end @@ -2685,39 +3929,80 @@ 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 - # source://rbi//lib/rbi/rewriters/remove_known_definitions.rb#55 + # : (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 - # source://rbi//lib/rbi/rewriters/remove_known_definitions.rb#52 + # : Array[Operation] + # + # source://rbi//lib/rbi/rewriters/remove_known_definitions.rb#50 sig { returns(T::Array[::RBI::Rewriters::RemoveKnownDefinitions::Operation]) } def operations; end - # source://rbi//lib/rbi/rewriters/remove_known_definitions.rb#83 + # : (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 - # source://rbi//lib/rbi/rewriters/remove_known_definitions.rb#78 + # : (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 - # source://rbi//lib/rbi/rewriters/remove_known_definitions.rb#111 + # : (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 - # source://rbi//lib/rbi/rewriters/remove_known_definitions.rb#129 + # : (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 - # source://rbi//lib/rbi/rewriters/remove_known_definitions.rb#102 + # : (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 - # source://rbi//lib/rbi/rewriters/remove_known_definitions.rb#70 + # : (Tree tree, Index index) -> [Tree, Array[Operation]] + # + # source://rbi//lib/rbi/rewriters/remove_known_definitions.rb#61 sig do params( tree: ::RBI::Tree, @@ -2728,73 +4013,126 @@ class RBI::Rewriters::RemoveKnownDefinitions < ::RBI::Visitor end end -# source://rbi//lib/rbi/rewriters/remove_known_definitions.rb#134 +# 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 - # source://rbi//lib/rbi/rewriters/remove_known_definitions.rb#141 + # : -> String + # + # source://rbi//lib/rbi/rewriters/remove_known_definitions.rb#131 sig { returns(::String) } def to_s; end class << self - # source://sorbet-runtime/0.5.11770/lib/types/struct.rb#13 + # source://sorbet-runtime/0.5.11915/lib/types/struct.rb#13 + # source://sorbet-runtime/0.5.11911/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 - # source://rbi//lib/rbi/rewriters/sort_nodes.rb#10 + # : (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 - # source://rbi//lib/rbi/rewriters/sort_nodes.rb#73 + # : (Group::Kind kind) -> Integer + # + # source://rbi//lib/rbi/rewriters/sort_nodes.rb#72 sig { params(kind: ::RBI::Group::Kind).returns(::Integer) } def group_rank(kind); end - # source://rbi//lib/rbi/rewriters/sort_nodes.rb#94 + # : (Node node) -> String? + # + # source://rbi//lib/rbi/rewriters/sort_nodes.rb#93 sig { params(node: ::RBI::Node).returns(T.nilable(::String)) } def node_name(node); end - # source://rbi//lib/rbi/rewriters/sort_nodes.rb#45 + # : (Node node) -> Integer + # + # source://rbi//lib/rbi/rewriters/sort_nodes.rb#44 sig { params(node: ::RBI::Node).returns(::Integer) } def node_rank(node); end - # source://rbi//lib/rbi/rewriters/sort_nodes.rb#106 + # : (Node node) -> void + # + # source://rbi//lib/rbi/rewriters/sort_nodes.rb#105 sig { params(node: ::RBI::Node).void } def sort_node_names!(node); end end +# Translate all RBS signature comments to Sorbet RBI signatures +# +# 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 +end + +# source://rbi//lib/rbi/rewriters/translate_rbs_sigs.rb#8 +class RBI::Rewriters::TranslateRBSSigs::Error < ::RBI::Error; end + # Scopes # # @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. # -# source://rbi//lib/rbi/model.rb#178 +# source://rbi//lib/rbi/model.rb#166 class RBI::Scope < ::RBI::Tree include ::RBI::Indexable abstract! # Duplicate `self` scope without its body + # : -> self # - # source://rbi//lib/rbi/rewriters/merge_trees.rb#358 + # source://rbi//lib/rbi/rewriters/merge_trees.rb#337 + # Duplicate `self` scope without its body sig { returns(T.self_type) } def dup_empty; end # @abstract # - # source://rbi//lib/rbi/model.rb#184 + # source://rbi//lib/rbi/model.rb#173 sig { abstract.returns(::String) } def fully_qualified_name; end - # source://rbi//lib/rbi/index.rb#93 + # : -> Array[String] + # + # source://rbi//lib/rbi/index.rb#89 sig { override.returns(T::Array[::String]) } def index_ids; end - # source://rbi//lib/rbi/model.rb#187 + # : -> String + # + # source://rbi//lib/rbi/model.rb#177 sig { override.returns(::String) } def to_s; end end @@ -2812,38 +4150,62 @@ end # end # ~~~ # -# source://rbi//lib/rbi/rewriters/merge_trees.rb#616 +# 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 class RBI::ScopeConflict < ::RBI::Tree - # source://rbi//lib/rbi/rewriters/merge_trees.rb#633 + # : (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 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 - # source://rbi//lib/rbi/rewriters/merge_trees.rb#620 + # : Scope + # + # source://rbi//lib/rbi/rewriters/merge_trees.rb#579 sig { returns(::RBI::Scope) } def left; end - # source://rbi//lib/rbi/rewriters/merge_trees.rb#623 + # : String + # + # source://rbi//lib/rbi/rewriters/merge_trees.rb#582 sig { returns(::String) } def left_name; end - # @return [Scope] + # : Scope # - # source://rbi//lib/rbi/rewriters/merge_trees.rb#620 + # source://rbi//lib/rbi/rewriters/merge_trees.rb#579 + # @return [Scope] def right; end - # @return [String] + # : String # - # source://rbi//lib/rbi/rewriters/merge_trees.rb#623 + # source://rbi//lib/rbi/rewriters/merge_trees.rb#582 + # @return [String] def right_name; end end # Sends # -# source://rbi//lib/rbi/model.rb#1004 +# source://rbi//lib/rbi/model.rb#771 class RBI::Send < ::RBI::NodeWithComments include ::RBI::Indexable - # source://rbi//lib/rbi/model.rb#1022 + # : (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#779 sig do params( method: ::String, @@ -2855,40 +4217,60 @@ class RBI::Send < ::RBI::NodeWithComments end def initialize(method, args = T.unsafe(nil), loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end - # source://rbi//lib/rbi/model.rb#1030 + # : (Arg arg) -> void + # + # source://rbi//lib/rbi/model.rb#787 sig { params(arg: ::RBI::Arg).void } def <<(arg); end - # source://rbi//lib/rbi/model.rb#1035 + # : (Object? other) -> bool + # + # source://rbi//lib/rbi/model.rb#792 sig { params(other: T.nilable(::Object)).returns(T::Boolean) } def ==(other); end - # source://rbi//lib/rbi/model.rb#1011 + # : Array[Arg] + # + # source://rbi//lib/rbi/model.rb#776 sig { returns(T::Array[::RBI::Arg]) } def args; end - # source://rbi//lib/rbi/rewriters/merge_trees.rb#537 + # : (Node other) -> bool + # + # @return [Boolean] + # + # source://rbi//lib/rbi/rewriters/merge_trees.rb#503 sig { override.params(other: ::RBI::Node).returns(T::Boolean) } def compatible_with?(other); end - # source://rbi//lib/rbi/index.rb#193 + # : -> Array[String] + # + # source://rbi//lib/rbi/index.rb#189 sig { override.returns(T::Array[::String]) } def index_ids; end - # source://rbi//lib/rbi/model.rb#1008 + # : String + # + # source://rbi//lib/rbi/model.rb#773 sig { returns(::String) } def method; end - # source://rbi//lib/rbi/model.rb#1040 + # : -> String + # + # source://rbi//lib/rbi/model.rb#797 sig { returns(::String) } def to_s; end end # Sorbet's sigs # -# source://rbi//lib/rbi/model.rb#1104 +# source://rbi//lib/rbi/model.rb#846 class RBI::Sig < ::RBI::NodeWithComments - # source://rbi//lib/rbi/model.rb#1138 + # : (?params: Array[SigParam], ?return_type: (Type | String), ?is_abstract: bool, ?is_override: bool, ?is_overridable: bool, ?is_final: bool, ?allow_incompatible_override: 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#863 sig do params( params: T::Array[::RBI::SigParam], @@ -2907,97 +4289,128 @@ 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), type_params: T.unsafe(nil), checked: T.unsafe(nil), loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end - # source://rbi//lib/rbi/model.rb#1166 + # : (SigParam param) -> void + # + # source://rbi//lib/rbi/model.rb#891 sig { params(param: ::RBI::SigParam).void } def <<(param); end - # source://rbi//lib/rbi/model.rb#1176 + # : (Object other) -> bool + # + # source://rbi//lib/rbi/model.rb#901 sig { params(other: ::Object).returns(T::Boolean) } def ==(other); end - # source://rbi//lib/rbi/model.rb#1171 + # : (String name, (Type | String) type) -> void + # + # source://rbi//lib/rbi/model.rb#896 sig { params(name: ::String, type: T.any(::RBI::Type, ::String)).void } def add_param(name, type); end - # @return [Boolean] + # : bool # - # source://rbi//lib/rbi/model.rb#1114 + # source://rbi//lib/rbi/model.rb#854 + # @return [Boolean] def allow_incompatible_override; end - # @return [Boolean] + # : bool # - # source://rbi//lib/rbi/model.rb#1114 + # source://rbi//lib/rbi/model.rb#854 + # @return [Boolean] def allow_incompatible_override=(_arg0); end - # source://rbi//lib/rbi/model.rb#1120 + # : Symbol? + # + # source://rbi//lib/rbi/model.rb#860 sig { returns(T.nilable(::Symbol)) } def checked; end - # @return [Symbol, nil] + # : Symbol? # - # source://rbi//lib/rbi/model.rb#1120 + # source://rbi//lib/rbi/model.rb#860 + # @return [Symbol, nil] def checked=(_arg0); end - # source://rbi//lib/rbi/model.rb#1114 + # : bool + # + # source://rbi//lib/rbi/model.rb#854 sig { returns(T::Boolean) } def is_abstract; end - # @return [Boolean] + # : bool # - # source://rbi//lib/rbi/model.rb#1114 + # source://rbi//lib/rbi/model.rb#854 + # @return [Boolean] def is_abstract=(_arg0); end - # @return [Boolean] + # : bool # - # source://rbi//lib/rbi/model.rb#1114 + # source://rbi//lib/rbi/model.rb#854 + # @return [Boolean] def is_final; end - # @return [Boolean] + # : bool # - # source://rbi//lib/rbi/model.rb#1114 + # source://rbi//lib/rbi/model.rb#854 + # @return [Boolean] def is_final=(_arg0); end - # @return [Boolean] + # : bool # - # source://rbi//lib/rbi/model.rb#1114 + # source://rbi//lib/rbi/model.rb#854 + # @return [Boolean] def is_overridable; end - # @return [Boolean] + # : bool # - # source://rbi//lib/rbi/model.rb#1114 + # source://rbi//lib/rbi/model.rb#854 + # @return [Boolean] def is_overridable=(_arg0); end - # @return [Boolean] + # : bool # - # source://rbi//lib/rbi/model.rb#1114 + # source://rbi//lib/rbi/model.rb#854 + # @return [Boolean] def is_override; end - # @return [Boolean] + # : bool # - # source://rbi//lib/rbi/model.rb#1114 + # source://rbi//lib/rbi/model.rb#854 + # @return [Boolean] def is_override=(_arg0); end - # source://rbi//lib/rbi/model.rb#1108 + # : Array[SigParam] + # + # source://rbi//lib/rbi/model.rb#848 sig { returns(T::Array[::RBI::SigParam]) } def params; end - # source://rbi//lib/rbi/model.rb#1111 + # : (Type | String) + # + # source://rbi//lib/rbi/model.rb#851 sig { returns(T.any(::RBI::Type, ::String)) } def return_type; end - # @return [Type, String] + # : (Type | String) # - # source://rbi//lib/rbi/model.rb#1111 + # source://rbi//lib/rbi/model.rb#851 + # @return [Type, String] def return_type=(_arg0); end - # source://rbi//lib/rbi/model.rb#1117 + # : Array[String] + # + # source://rbi//lib/rbi/model.rb#857 sig { returns(T::Array[::String]) } def type_params; end end -# source://rbi//lib/rbi/model.rb#1185 +# source://rbi//lib/rbi/model.rb#910 class RBI::SigParam < ::RBI::NodeWithComments - # source://rbi//lib/rbi/model.rb#1203 + # : (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#918 sig do params( name: ::String, @@ -3009,22 +4422,32 @@ class RBI::SigParam < ::RBI::NodeWithComments end def initialize(name, type, loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end - # source://rbi//lib/rbi/model.rb#1211 + # : (Object other) -> bool + # + # source://rbi//lib/rbi/model.rb#926 sig { params(other: ::Object).returns(T::Boolean) } def ==(other); end - # source://rbi//lib/rbi/model.rb#1189 + # : String + # + # source://rbi//lib/rbi/model.rb#912 sig { returns(::String) } def name; end - # source://rbi//lib/rbi/model.rb#1192 + # : (Type | String) + # + # source://rbi//lib/rbi/model.rb#915 sig { returns(T.any(::RBI::Type, ::String)) } def type; end end -# source://rbi//lib/rbi/model.rb#253 +# source://rbi//lib/rbi/model.rb#226 class RBI::SingletonClass < ::RBI::Scope - # source://rbi//lib/rbi/model.rb#263 + # : (?loc: Loc?, ?comments: Array[Comment]) ?{ (SingletonClass node) -> void } -> void + # + # @return [SingletonClass] a new instance of SingletonClass + # + # source://rbi//lib/rbi/model.rb#228 sig do params( loc: T.nilable(::RBI::Loc), @@ -3034,14 +4457,20 @@ class RBI::SingletonClass < ::RBI::Scope end def initialize(loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end - # source://rbi//lib/rbi/model.rb#269 + # : -> String + # + # source://rbi//lib/rbi/model.rb#235 sig { override.returns(::String) } def fully_qualified_name; end end -# source://rbi//lib/rbi/model.rb#274 +# source://rbi//lib/rbi/model.rb#240 class RBI::Struct < ::RBI::Scope - # source://rbi//lib/rbi/model.rb#296 + # : (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#251 sig do params( name: ::String, @@ -3054,47 +4483,66 @@ 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 - # source://rbi//lib/rbi/rewriters/merge_trees.rb#402 + # : (Node other) -> bool + # + # @return [Boolean] + # + # source://rbi//lib/rbi/rewriters/merge_trees.rb#378 sig { override.params(other: ::RBI::Node).returns(T::Boolean) } def compatible_with?(other); end - # source://rbi//lib/rbi/model.rb#305 + # : -> String + # + # source://rbi//lib/rbi/model.rb#261 sig { override.returns(::String) } def fully_qualified_name; end - # source://rbi//lib/rbi/model.rb#284 + # : bool + # + # source://rbi//lib/rbi/model.rb#248 sig { returns(T::Boolean) } def keyword_init; end - # @return [Boolean] + # : bool # - # source://rbi//lib/rbi/model.rb#284 + # source://rbi//lib/rbi/model.rb#248 + # @return [Boolean] def keyword_init=(_arg0); end - # source://rbi//lib/rbi/model.rb#281 + # : Array[Symbol] + # + # source://rbi//lib/rbi/model.rb#245 sig { returns(T::Array[::Symbol]) } def members; end - # @return [Array] + # : Array[Symbol] # - # source://rbi//lib/rbi/model.rb#281 + # source://rbi//lib/rbi/model.rb#245 + # @return [Array] def members=(_arg0); end - # source://rbi//lib/rbi/model.rb#278 + # : String + # + # source://rbi//lib/rbi/model.rb#242 sig { returns(::String) } def name; end - # @return [String] + # : String # - # source://rbi//lib/rbi/model.rb#278 + # source://rbi//lib/rbi/model.rb#242 + # @return [String] def name=(_arg0); end end # Sorbet's T::Enum # -# source://rbi//lib/rbi/model.rb#1332 +# source://rbi//lib/rbi/model.rb#1012 class RBI::TEnum < ::RBI::Class - # source://rbi//lib/rbi/model.rb#1343 + # : (String name, ?loc: Loc?, ?comments: Array[Comment]) ?{ (TEnum klass) -> void } -> void + # + # @return [TEnum] a new instance of TEnum + # + # source://rbi//lib/rbi/model.rb#1014 sig do params( name: ::String, @@ -3106,9 +4554,13 @@ 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#1349 +# source://rbi//lib/rbi/model.rb#1020 class RBI::TEnumBlock < ::RBI::Scope - # source://rbi//lib/rbi/model.rb#1359 + # : (?loc: Loc?, ?comments: Array[Comment]) ?{ (TEnumBlock node) -> void } -> void + # + # @return [TEnumBlock] a new instance of TEnumBlock + # + # source://rbi//lib/rbi/model.rb#1022 sig do params( loc: T.nilable(::RBI::Loc), @@ -3118,24 +4570,34 @@ class RBI::TEnumBlock < ::RBI::Scope end def initialize(loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end - # source://rbi//lib/rbi/model.rb#1365 + # : -> String + # + # source://rbi//lib/rbi/model.rb#1029 sig { override.returns(::String) } def fully_qualified_name; end - # source://rbi//lib/rbi/index.rb#223 + # : -> Array[String] + # + # source://rbi//lib/rbi/index.rb#219 sig { override.returns(T::Array[::String]) } def index_ids; end - # source://rbi//lib/rbi/model.rb#1370 + # : -> String + # + # source://rbi//lib/rbi/model.rb#1035 sig { override.returns(::String) } def to_s; end end # Sorbet's T::Struct # -# source://rbi//lib/rbi/model.rb#1218 +# source://rbi//lib/rbi/model.rb#933 class RBI::TStruct < ::RBI::Class - # source://rbi//lib/rbi/model.rb#1229 + # : (String name, ?loc: Loc?, ?comments: Array[Comment]) ?{ (TStruct klass) -> void } -> void + # + # @return [TStruct] a new instance of TStruct + # + # source://rbi//lib/rbi/model.rb#935 sig do params( name: ::String, @@ -3147,11 +4609,15 @@ 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#1270 +# source://rbi//lib/rbi/model.rb#968 class RBI::TStructConst < ::RBI::TStructField include ::RBI::Indexable - # source://rbi//lib/rbi/model.rb#1283 + # : (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#970 sig do params( name: ::String, @@ -3164,30 +4630,44 @@ class RBI::TStructConst < ::RBI::TStructField end def initialize(name, type, default: T.unsafe(nil), loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end - # source://rbi//lib/rbi/rewriters/merge_trees.rb#555 + # : (Node other) -> bool + # + # @return [Boolean] + # + # source://rbi//lib/rbi/rewriters/merge_trees.rb#519 sig { override.params(other: ::RBI::Node).returns(T::Boolean) } def compatible_with?(other); end - # source://rbi//lib/rbi/model.rb#1289 + # : -> Array[String] + # + # source://rbi//lib/rbi/model.rb#977 sig { override.returns(T::Array[::String]) } def fully_qualified_names; end - # source://rbi//lib/rbi/index.rb#203 + # : -> Array[String] + # + # source://rbi//lib/rbi/index.rb#199 sig { override.returns(T::Array[::String]) } def index_ids; end - # source://rbi//lib/rbi/model.rb#1295 + # : -> String + # + # source://rbi//lib/rbi/model.rb#984 sig { override.returns(::String) } def to_s; end end # @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. # -# source://rbi//lib/rbi/model.rb#1235 +# source://rbi//lib/rbi/model.rb#941 class RBI::TStructField < ::RBI::NodeWithComments abstract! - # source://rbi//lib/rbi/model.rb#1259 + # : (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#957 sig do params( name: ::String, @@ -3199,49 +4679,66 @@ class RBI::TStructField < ::RBI::NodeWithComments end def initialize(name, type, default: T.unsafe(nil), loc: T.unsafe(nil), comments: T.unsafe(nil)); end - # source://rbi//lib/rbi/rewriters/merge_trees.rb#546 + # : (Node other) -> bool + # + # @return [Boolean] + # + # source://rbi//lib/rbi/rewriters/merge_trees.rb#511 sig { override.params(other: ::RBI::Node).returns(T::Boolean) } def compatible_with?(other); end - # source://rbi//lib/rbi/model.rb#1248 + # : String? + # + # source://rbi//lib/rbi/model.rb#954 sig { returns(T.nilable(::String)) } def default; end - # @return [String, nil] + # : String? # - # source://rbi//lib/rbi/model.rb#1248 + # source://rbi//lib/rbi/model.rb#954 + # @return [String, nil] def default=(_arg0); end # @abstract # - # source://rbi//lib/rbi/model.rb#1267 + # source://rbi//lib/rbi/model.rb#965 sig { abstract.returns(T::Array[::String]) } def fully_qualified_names; end - # source://rbi//lib/rbi/model.rb#1242 + # : String + # + # source://rbi//lib/rbi/model.rb#948 sig { returns(::String) } def name; end - # @return [String] + # : String # - # source://rbi//lib/rbi/model.rb#1242 + # source://rbi//lib/rbi/model.rb#948 + # @return [String] def name=(_arg0); end - # source://rbi//lib/rbi/model.rb#1245 + # : (Type | String) + # + # source://rbi//lib/rbi/model.rb#951 sig { returns(T.any(::RBI::Type, ::String)) } def type; end - # @return [Type, String] + # : (Type | String) # - # source://rbi//lib/rbi/model.rb#1245 + # source://rbi//lib/rbi/model.rb#951 + # @return [Type, String] def type=(_arg0); end end -# source://rbi//lib/rbi/model.rb#1300 +# source://rbi//lib/rbi/model.rb#989 class RBI::TStructProp < ::RBI::TStructField include ::RBI::Indexable - # source://rbi//lib/rbi/model.rb#1313 + # : (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#991 sig do params( name: ::String, @@ -3254,26 +4751,40 @@ class RBI::TStructProp < ::RBI::TStructField end def initialize(name, type, default: T.unsafe(nil), loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end - # source://rbi//lib/rbi/rewriters/merge_trees.rb#564 + # : (Node other) -> bool + # + # @return [Boolean] + # + # source://rbi//lib/rbi/rewriters/merge_trees.rb#527 sig { override.params(other: ::RBI::Node).returns(T::Boolean) } def compatible_with?(other); end - # source://rbi//lib/rbi/model.rb#1319 + # : -> Array[String] + # + # source://rbi//lib/rbi/model.rb#998 sig { override.returns(T::Array[::String]) } def fully_qualified_names; end - # source://rbi//lib/rbi/index.rb#213 + # : -> Array[String] + # + # source://rbi//lib/rbi/index.rb#209 sig { override.returns(T::Array[::String]) } def index_ids; end - # source://rbi//lib/rbi/model.rb#1325 + # : -> String + # + # source://rbi//lib/rbi/model.rb#1005 sig { override.returns(::String) } def to_s; end end -# source://rbi//lib/rbi/model.rb#108 +# source://rbi//lib/rbi/model.rb#112 class RBI::Tree < ::RBI::NodeWithComments - # source://rbi//lib/rbi/model.rb#121 + # : (?loc: Loc?, ?comments: Array[Comment]) ?{ (Tree node) -> void } -> void + # + # @return [Tree] a new instance of Tree + # + # source://rbi//lib/rbi/model.rb#117 sig do params( loc: T.nilable(::RBI::Loc), @@ -3283,19 +4794,25 @@ class RBI::Tree < ::RBI::NodeWithComments end def initialize(loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end - # source://rbi//lib/rbi/model.rb#128 + # : (Node node) -> void + # + # source://rbi//lib/rbi/model.rb#124 sig { params(node: ::RBI::Node).void } def <<(node); end - # source://rbi//lib/rbi/rewriters/add_sig_templates.rb#66 + # : (?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 - # source://rbi//lib/rbi/rewriters/annotate.rb#49 + # : (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.8/lib/tapioca/rbi_ext/model.rb#38 + # source://tapioca/0.16.11/lib/tapioca/rbi_ext/model.rb#38 sig do params( name: ::String, @@ -3305,19 +4822,19 @@ class RBI::Tree < ::RBI::NodeWithComments end def create_class(name, superclass_name: T.unsafe(nil), &block); end - # source://tapioca/0.16.8/lib/tapioca/rbi_ext/model.rb#45 + # 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.8/lib/tapioca/rbi_ext/model.rb#55 + # 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.8/lib/tapioca/rbi_ext/model.rb#50 + # 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.8/lib/tapioca/rbi_ext/model.rb#90 + # source://tapioca/0.16.11/lib/tapioca/rbi_ext/model.rb#90 sig do params( name: ::String, @@ -3331,19 +4848,19 @@ class RBI::Tree < ::RBI::NodeWithComments end def create_method(name, parameters: T.unsafe(nil), return_type: T.unsafe(nil), class_method: T.unsafe(nil), visibility: T.unsafe(nil), comments: T.unsafe(nil), &block); end - # source://tapioca/0.16.8/lib/tapioca/rbi_ext/model.rb#60 + # 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.8/lib/tapioca/rbi_ext/model.rb#25 + # 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.8/lib/tapioca/rbi_ext/model.rb#9 + # source://tapioca/0.16.11/lib/tapioca/rbi_ext/model.rb#9 sig { params(constant: ::Module, block: T.nilable(T.proc.params(scope: ::RBI::Scope).void)).returns(::RBI::Scope) } def create_path(constant, &block); end - # source://tapioca/0.16.8/lib/tapioca/rbi_ext/model.rb#74 + # source://tapioca/0.16.11/lib/tapioca/rbi_ext/model.rb#74 sig do params( name: ::String, @@ -3356,35 +4873,53 @@ 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//lib/rbi/rewriters/deannotate.rb#41 + # : (String annotation) -> void + # + # source://rbi//lib/rbi/rewriters/deannotate.rb#38 sig { params(annotation: ::String).void } def deannotate!(annotation); end - # source://rbi//lib/rbi/model.rb#134 + # : -> bool + # + # @return [Boolean] + # + # source://rbi//lib/rbi/model.rb#130 sig { returns(T::Boolean) } def empty?; end - # source://rbi//lib/rbi/rewriters/filter_versions.rb#118 + # : (Gem::Version version) -> void + # + # source://rbi//lib/rbi/rewriters/filter_versions.rb#113 sig { params(version: ::Gem::Version).void } def filter_versions!(version); end - # source://rbi//lib/rbi/rewriters/flatten_singleton_methods.rb#60 + # : -> void + # + # source://rbi//lib/rbi/rewriters/flatten_singleton_methods.rb#57 sig { void } def flatten_singleton_methods!; end - # source://rbi//lib/rbi/rewriters/flatten_visibilities.rb#60 + # : -> void + # + # source://rbi//lib/rbi/rewriters/flatten_visibilities.rb#57 sig { void } def flatten_visibilities!; end - # source://rbi//lib/rbi/rewriters/group_nodes.rb#81 + # : -> void + # + # source://rbi//lib/rbi/rewriters/group_nodes.rb#78 sig { void } def group_nodes!; end - # source://rbi//lib/rbi/index.rb#68 + # : -> Index + # + # source://rbi//lib/rbi/index.rb#64 sig { returns(::RBI::Index) } def index; end - # source://rbi//lib/rbi/rewriters/merge_trees.rb#324 + # : (Tree other, ?left_name: String, ?right_name: String, ?keep: Rewriters::Merge::Keep) -> MergeTree + # + # source://rbi//lib/rbi/rewriters/merge_trees.rb#314 sig do params( other: ::RBI::Tree, @@ -3395,37 +4930,55 @@ class RBI::Tree < ::RBI::NodeWithComments end def merge(other, left_name: T.unsafe(nil), right_name: T.unsafe(nil), keep: T.unsafe(nil)); end - # source://rbi//lib/rbi/rewriters/nest_non_public_members.rb#46 + # : -> void + # + # source://rbi//lib/rbi/rewriters/nest_non_public_members.rb#43 sig { void } def nest_non_public_members!; end - # source://rbi//lib/rbi/rewriters/nest_singleton_methods.rb#36 + # : -> void + # + # source://rbi//lib/rbi/rewriters/nest_singleton_methods.rb#33 sig { void } def nest_singleton_methods!; end - # source://rbi//lib/rbi/rewriters/nest_top_level_members.rb#63 + # : -> void + # + # source://rbi//lib/rbi/rewriters/nest_top_level_members.rb#60 sig { void } def nest_top_level_members!; end - # source://rbi//lib/rbi/model.rb#112 + # : Array[Node] + # + # source://rbi//lib/rbi/model.rb#114 sig { returns(T::Array[::RBI::Node]) } def nodes; end - # source://rbi//lib/rbi/rewriters/attr_to_methods.rb#53 + # : -> void + # + # source://rbi//lib/rbi/rewriters/attr_to_methods.rb#50 sig { void } def replace_attributes_with_methods!; end - # source://rbi//lib/rbi/rewriters/sort_nodes.rb#119 + # : -> void + # + # source://rbi//lib/rbi/rewriters/sort_nodes.rb#116 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.8/lib/tapioca/rbi_ext/model.rb#123 + # 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.8/lib/tapioca/rbi_ext/model.rb#118 + # source://tapioca/0.16.11/lib/tapioca/rbi_ext/model.rb#118 sig { returns(T::Hash[::String, ::RBI::Node]) } def nodes_cache; end end @@ -3438,21 +4991,31 @@ end class RBI::Type abstract! - # source://rbi//lib/rbi/type.rb#699 + # : -> void + # + # @return [Type] a new instance of Type + # + # source://rbi//lib/rbi/type.rb#695 sig { void } def initialize; end # @abstract # - # source://rbi//lib/rbi/type.rb#745 + # source://rbi//lib/rbi/type.rb#741 sig { abstract.params(other: ::BasicObject).returns(T::Boolean) } def ==(other); end - # source://rbi//lib/rbi/type.rb#748 + # : (BasicObject other) -> bool + # + # @return [Boolean] + # + # source://rbi//lib/rbi/type.rb#744 sig { params(other: ::BasicObject).returns(T::Boolean) } def eql?(other); end - # source://rbi//lib/rbi/type.rb#753 + # : -> Integer + # + # source://rbi//lib/rbi/type.rb#750 sig { override.returns(::Integer) } def hash; end @@ -3465,14 +5028,27 @@ 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#713 + # 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)" + # ``` sig { returns(::RBI::Type) } def nilable; end # Returns whether the type is nilable. + # : -> bool # - # source://rbi//lib/rbi/type.rb#740 + # @return [Boolean] + # + # source://rbi//lib/rbi/type.rb#736 + # Returns whether the type is nilable. sig { returns(T::Boolean) } def nilable?; end @@ -3486,22 +5062,36 @@ class RBI::Type # type.non_nilable.to_rbi # => "String" # type.non_nilable.non_nilable.to_rbi # => "String" # ``` + # : -> Type # - # source://rbi//lib/rbi/type.rb#728 + # 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" + # ``` sig { returns(::RBI::Type) } def non_nilable; end - # source://rbi//lib/rbi/rbs_printer.rb#1074 + # : -> String + # + # source://rbi//lib/rbi/rbs_printer.rb#1136 sig { returns(::String) } def rbs_string; end # @abstract # - # source://rbi//lib/rbi/type.rb#758 + # source://rbi//lib/rbi/type.rb#755 sig { abstract.returns(::String) } def to_rbi; end - # source://rbi//lib/rbi/type.rb#761 + # : -> String + # + # source://rbi//lib/rbi/type.rb#759 sig { override.returns(::String) } def to_s; end @@ -3510,8 +5100,12 @@ 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#563 + # 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`. sig { params(type1: ::RBI::Type, type2: ::RBI::Type, types: ::RBI::Type).returns(::RBI::Type) } def all(type1, type2, *types); end @@ -3519,38 +5113,52 @@ 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#590 + # 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`. 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#488 + # source://rbi//lib/rbi/type.rb#484 + # Builds a type that represents `T.anything`. sig { returns(::RBI::Type::Anything) } def anything; end # Builds a type that represents `T.attached_class`. + # : -> AttachedClass # - # source://rbi//lib/rbi/type.rb#494 + # source://rbi//lib/rbi/type.rb#490 + # Builds a type that represents `T.attached_class`. sig { returns(::RBI::Type::AttachedClass) } def attached_class; end # Builds a type that represents `T::Boolean`. + # : -> Boolean # - # source://rbi//lib/rbi/type.rb#500 + # source://rbi//lib/rbi/type.rb#496 + # Builds a type that represents `T::Boolean`. 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#538 + # source://rbi//lib/rbi/type.rb#534 + # Builds a type that represents the singleton class of another type like `T.class_of(Foo)`. 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#655 + # source://rbi//lib/rbi/type.rb#651 + # Builds a type that represents a generic type like `T::Array[String]` or `T::Hash[Symbol, Integer]`. sig { params(name: ::String, params: T.any(::RBI::Type, T::Array[::RBI::Type])).returns(::RBI::Type::Generic) } def generic(name, *params); end @@ -3558,21 +5166,31 @@ 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#547 + # 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`. 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#506 + # source://rbi//lib/rbi/type.rb#502 + # Builds a type that represents `T.noreturn`. 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 @@ -3580,122 +5198,181 @@ 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#683 + # source://rbi//lib/rbi/type.rb#679 + # Builds a type that represents a proc type like `T.proc.void`. sig { returns(::RBI::Type::Proc) } def proc; end # Builds a type that represents `T.self_type`. + # : -> SelfType # - # source://rbi//lib/rbi/type.rb#512 + # source://rbi//lib/rbi/type.rb#508 + # Builds a type that represents `T.self_type`. 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#675 + # source://rbi//lib/rbi/type.rb#671 + # Builds a type that represents a shape type like `{name: String, age: Integer}`. 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#477 + # 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. 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#532 + # source://rbi//lib/rbi/type.rb#528 + # Builds a type that represents the class of another type like `T::Class[Foo]`. 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#669 + # source://rbi//lib/rbi/type.rb#665 + # Builds a type that represents a tuple type like `[String, Integer]`. 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#661 + # source://rbi//lib/rbi/type.rb#657 + # Builds a type that represents a type parameter like `T.type_parameter(:U)`. 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#518 + # source://rbi//lib/rbi/type.rb#514 + # Builds a type that represents `T.untyped`. sig { returns(::RBI::Type::Untyped) } def untyped; end # Builds a type that represents `void`. + # : -> Void # - # source://rbi//lib/rbi/type.rb#524 + # source://rbi//lib/rbi/type.rb#520 + # Builds a type that represents `void`. sig { returns(::RBI::Type::Void) } def void; end private + # : (Prism::CallNode node) -> Array[Prism::Node] + # # source://rbi//lib/rbi/type_parser.rb#263 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#250 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#235 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#69 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#52 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#195 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#176 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#171 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#276 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#288 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#295 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#300 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#307 sig { params(node: ::Prism::CallNode).returns(T::Boolean) } def t_proc?(node); end - # source://rbi//lib/rbi/type.rb#693 + # : (String name) -> bool + # + # @return [Boolean] + # + # source://rbi//lib/rbi/type.rb#689 sig { params(name: ::String).returns(T::Boolean) } def valid_identifier?(name); end end @@ -3705,20 +5382,28 @@ end # # source://rbi//lib/rbi/type.rb#252 class RBI::Type::All < ::RBI::Type::Composite - # source://rbi//lib/rbi/type.rb#256 + # : -> String + # + # source://rbi//lib/rbi/type.rb#255 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#262 +# source://rbi//lib/rbi/type.rb#261 class RBI::Type::Any < ::RBI::Type::Composite - # source://rbi//lib/rbi/type.rb#271 + # : -> bool + # + # @return [Boolean] + # + # source://rbi//lib/rbi/type.rb#269 sig { returns(T::Boolean) } def nilable?; end - # source://rbi//lib/rbi/type.rb#266 + # : -> String + # + # source://rbi//lib/rbi/type.rb#264 sig { override.returns(::String) } def to_rbi; end end @@ -3727,10 +5412,14 @@ end # # source://rbi//lib/rbi/type.rb#43 class RBI::Type::Anything < ::RBI::Type - # source://rbi//lib/rbi/type.rb#47 + # : (BasicObject other) -> bool + # + # source://rbi//lib/rbi/type.rb#46 sig { override.params(other: ::BasicObject).returns(T::Boolean) } def ==(other); end + # : -> String + # # source://rbi//lib/rbi/type.rb#52 sig { override.returns(::String) } def to_rbi; end @@ -3740,10 +5429,14 @@ end # # source://rbi//lib/rbi/type.rb#58 class RBI::Type::AttachedClass < ::RBI::Type - # source://rbi//lib/rbi/type.rb#62 + # : (BasicObject other) -> bool + # + # source://rbi//lib/rbi/type.rb#61 sig { override.params(other: ::BasicObject).returns(T::Boolean) } def ==(other); end + # : -> String + # # source://rbi//lib/rbi/type.rb#67 sig { override.returns(::String) } def to_rbi; end @@ -3753,10 +5446,14 @@ end # # source://rbi//lib/rbi/type.rb#73 class RBI::Type::Boolean < ::RBI::Type - # source://rbi//lib/rbi/type.rb#77 + # : (BasicObject other) -> bool + # + # source://rbi//lib/rbi/type.rb#76 sig { override.params(other: ::BasicObject).returns(T::Boolean) } def ==(other); end + # : -> String + # # source://rbi//lib/rbi/type.rb#82 sig { override.returns(::String) } def to_rbi; end @@ -3766,19 +5463,29 @@ end # # source://rbi//lib/rbi/type.rb#150 class RBI::Type::Class < ::RBI::Type - # source://rbi//lib/rbi/type.rb#157 + # : (Type type) -> void + # + # @return [Class] a new instance of Class + # + # source://rbi//lib/rbi/type.rb#155 sig { params(type: ::RBI::Type).void } def initialize(type); end - # source://rbi//lib/rbi/type.rb#163 + # : (BasicObject other) -> bool + # + # 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#168 sig { override.returns(::String) } def to_rbi; end - # source://rbi//lib/rbi/type.rb#154 + # : Type + # + # source://rbi//lib/rbi/type.rb#152 sig { returns(::RBI::Type) } def type; end end @@ -3787,23 +5494,35 @@ end # # source://rbi//lib/rbi/type.rb#174 class RBI::Type::ClassOf < ::RBI::Type - # source://rbi//lib/rbi/type.rb#184 + # : (Simple type, ?Type? type_parameter) -> void + # + # @return [ClassOf] a new instance of ClassOf + # + # source://rbi//lib/rbi/type.rb#182 sig { params(type: ::RBI::Type::Simple, type_parameter: T.nilable(::RBI::Type)).void } def initialize(type, type_parameter = T.unsafe(nil)); end - # source://rbi//lib/rbi/type.rb#191 + # : (BasicObject other) -> bool + # + # source://rbi//lib/rbi/type.rb#190 sig { override.params(other: ::BasicObject).returns(T::Boolean) } def ==(other); end + # : -> String + # # source://rbi//lib/rbi/type.rb#196 sig { override.returns(::String) } def to_rbi; end - # source://rbi//lib/rbi/type.rb#178 + # : Simple + # + # source://rbi//lib/rbi/type.rb#176 sig { returns(::RBI::Type::Simple) } def type; end - # source://rbi//lib/rbi/type.rb#181 + # : Type? + # + # source://rbi//lib/rbi/type.rb#179 sig { returns(T.nilable(::RBI::Type)) } def type_parameter; end end @@ -3816,15 +5535,23 @@ end class RBI::Type::Composite < ::RBI::Type abstract! - # source://rbi//lib/rbi/type.rb#240 + # : (Array[Type] types) -> void + # + # @return [Composite] a new instance of Composite + # + # source://rbi//lib/rbi/type.rb#239 sig { params(types: T::Array[::RBI::Type]).void } def initialize(types); end + # : (BasicObject other) -> bool + # # source://rbi//lib/rbi/type.rb#246 sig { override.params(other: ::BasicObject).returns(T::Boolean) } def ==(other); end - # source://rbi//lib/rbi/type.rb#237 + # : Array[Type] + # + # source://rbi//lib/rbi/type.rb#236 sig { returns(T::Array[::RBI::Type]) } def types; end end @@ -3834,25 +5561,37 @@ 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#279 +# source://rbi//lib/rbi/type.rb#277 class RBI::Type::Generic < ::RBI::Type - # source://rbi//lib/rbi/type.rb#289 + # : (String name, *Type params) -> void + # + # @return [Generic] a new instance of Generic + # + # source://rbi//lib/rbi/type.rb#285 sig { params(name: ::String, params: ::RBI::Type).void } def initialize(name, *params); end - # source://rbi//lib/rbi/type.rb#296 + # : (BasicObject other) -> bool + # + # source://rbi//lib/rbi/type.rb#293 sig { override.params(other: ::BasicObject).returns(T::Boolean) } def ==(other); end - # source://rbi//lib/rbi/type.rb#283 + # : String + # + # source://rbi//lib/rbi/type.rb#279 sig { returns(::String) } def name; end - # source://rbi//lib/rbi/type.rb#286 + # : Array[Type] + # + # source://rbi//lib/rbi/type.rb#282 sig { returns(T::Array[::RBI::Type]) } def params; end - # source://rbi//lib/rbi/type.rb#301 + # : -> String + # + # source://rbi//lib/rbi/type.rb#299 sig { override.returns(::String) } def to_rbi; end end @@ -3861,19 +5600,29 @@ end # # source://rbi//lib/rbi/type.rb#206 class RBI::Type::Nilable < ::RBI::Type - # source://rbi//lib/rbi/type.rb#213 + # : (Type type) -> void + # + # @return [Nilable] a new instance of Nilable + # + # source://rbi//lib/rbi/type.rb#211 sig { params(type: ::RBI::Type).void } def initialize(type); end - # source://rbi//lib/rbi/type.rb#219 + # : (BasicObject other) -> bool + # + # source://rbi//lib/rbi/type.rb#218 sig { override.params(other: ::BasicObject).returns(T::Boolean) } def ==(other); end + # : -> String + # # source://rbi//lib/rbi/type.rb#224 sig { override.returns(::String) } def to_rbi; end - # source://rbi//lib/rbi/type.rb#210 + # : Type + # + # source://rbi//lib/rbi/type.rb#208 sig { returns(::RBI::Type) } def type; end end @@ -3882,10 +5631,14 @@ end # # source://rbi//lib/rbi/type.rb#88 class RBI::Type::NoReturn < ::RBI::Type - # source://rbi//lib/rbi/type.rb#92 + # : (BasicObject other) -> bool + # + # source://rbi//lib/rbi/type.rb#91 sig { override.params(other: ::BasicObject).returns(T::Boolean) } def ==(other); end + # : -> String + # # source://rbi//lib/rbi/type.rb#97 sig { override.returns(::String) } def to_rbi; end @@ -3893,45 +5646,67 @@ end # A proc type like `T.proc.void`. # -# source://rbi//lib/rbi/type.rb#387 +# source://rbi//lib/rbi/type.rb#385 class RBI::Type::Proc < ::RBI::Type - # source://rbi//lib/rbi/type.rb#400 + # : -> void + # + # @return [Proc] a new instance of Proc + # + # source://rbi//lib/rbi/type.rb#396 sig { void } def initialize; end - # source://rbi//lib/rbi/type.rb#408 + # : (BasicObject other) -> bool + # + # source://rbi//lib/rbi/type.rb#405 sig { override.params(other: ::BasicObject).returns(T::Boolean) } def ==(other); end - # source://rbi//lib/rbi/type.rb#436 + # : (untyped type) -> self + # + # source://rbi//lib/rbi/type.rb#433 sig { params(type: T.untyped).returns(T.self_type) } def bind(type); end - # source://rbi//lib/rbi/type.rb#418 + # : (**Type params) -> self + # + # source://rbi//lib/rbi/type.rb#415 sig { params(params: ::RBI::Type).returns(T.self_type) } def params(**params); end - # source://rbi//lib/rbi/type.rb#397 + # : Type? + # + # source://rbi//lib/rbi/type.rb#393 sig { returns(T.nilable(::RBI::Type)) } def proc_bind; end - # source://rbi//lib/rbi/type.rb#391 + # : Hash[Symbol, Type] + # + # source://rbi//lib/rbi/type.rb#387 sig { returns(T::Hash[::Symbol, ::RBI::Type]) } def proc_params; end - # source://rbi//lib/rbi/type.rb#394 + # : Type + # + # source://rbi//lib/rbi/type.rb#390 sig { returns(::RBI::Type) } def proc_returns; end - # source://rbi//lib/rbi/type.rb#424 + # : (untyped type) -> self + # + # source://rbi//lib/rbi/type.rb#421 sig { params(type: T.untyped).returns(T.self_type) } def returns(type); end - # source://rbi//lib/rbi/type.rb#442 + # : -> String + # + # source://rbi//lib/rbi/type.rb#440 sig { override.returns(::String) } def to_rbi; end - # source://rbi//lib/rbi/type.rb#430 + # : -> self + # + # source://rbi//lib/rbi/type.rb#427 sig { returns(T.self_type) } def void; end end @@ -3940,10 +5715,14 @@ end # # source://rbi//lib/rbi/type.rb#103 class RBI::Type::SelfType < ::RBI::Type - # source://rbi//lib/rbi/type.rb#107 + # : (BasicObject other) -> bool + # + # source://rbi//lib/rbi/type.rb#106 sig { override.params(other: ::BasicObject).returns(T::Boolean) } def ==(other); end + # : -> String + # # source://rbi//lib/rbi/type.rb#112 sig { override.returns(::String) } def to_rbi; end @@ -3951,21 +5730,31 @@ end # A shape type like `{name: String, age: Integer}`. # -# source://rbi//lib/rbi/type.rb#357 +# source://rbi//lib/rbi/type.rb#355 class RBI::Type::Shape < ::RBI::Type - # source://rbi//lib/rbi/type.rb#364 + # : (Hash[(String | Symbol), Type] types) -> void + # + # @return [Shape] a new instance of Shape + # + # source://rbi//lib/rbi/type.rb#360 sig { params(types: T::Hash[T.any(::String, ::Symbol), ::RBI::Type]).void } def initialize(types); end - # source://rbi//lib/rbi/type.rb#370 + # : (BasicObject other) -> bool + # + # source://rbi//lib/rbi/type.rb#367 sig { override.params(other: ::BasicObject).returns(T::Boolean) } def ==(other); end - # source://rbi//lib/rbi/type.rb#375 + # : -> String + # + # source://rbi//lib/rbi/type.rb#373 sig { override.returns(::String) } def to_rbi; end - # source://rbi//lib/rbi/type.rb#361 + # : Hash[(String | Symbol), Type] + # + # source://rbi//lib/rbi/type.rb#357 sig { returns(T::Hash[T.any(::String, ::Symbol), ::RBI::Type]) } def types; end end @@ -3975,19 +5764,30 @@ 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`. class RBI::Type::Simple < ::RBI::Type - # source://rbi//lib/rbi/type.rb#24 + # : (String name) -> void + # + # @return [Simple] a new instance of Simple + # + # source://rbi//lib/rbi/type.rb#22 sig { params(name: ::String).void } def initialize(name); end - # source://rbi//lib/rbi/type.rb#30 + # : (BasicObject other) -> bool + # + # source://rbi//lib/rbi/type.rb#29 sig { override.params(other: ::BasicObject).returns(T::Boolean) } def ==(other); end - # source://rbi//lib/rbi/type.rb#21 + # : String + # + # source://rbi//lib/rbi/type.rb#19 sig { returns(::String) } def name; end + # : -> String + # # source://rbi//lib/rbi/type.rb#35 sig { override.returns(::String) } def to_rbi; end @@ -3995,42 +5795,62 @@ end # A tuple type like `[String, Integer]`. # -# source://rbi//lib/rbi/type.rb#333 +# source://rbi//lib/rbi/type.rb#331 class RBI::Type::Tuple < ::RBI::Type - # source://rbi//lib/rbi/type.rb#340 + # : (Array[Type] types) -> void + # + # @return [Tuple] a new instance of Tuple + # + # source://rbi//lib/rbi/type.rb#336 sig { params(types: T::Array[::RBI::Type]).void } def initialize(types); end - # source://rbi//lib/rbi/type.rb#346 + # : (BasicObject other) -> bool + # + # source://rbi//lib/rbi/type.rb#343 sig { override.params(other: ::BasicObject).returns(T::Boolean) } def ==(other); end - # source://rbi//lib/rbi/type.rb#351 + # : -> String + # + # source://rbi//lib/rbi/type.rb#349 sig { override.returns(::String) } def to_rbi; end - # source://rbi//lib/rbi/type.rb#337 + # : Array[Type] + # + # source://rbi//lib/rbi/type.rb#333 sig { returns(T::Array[::RBI::Type]) } def types; end end # A type parameter like `T.type_parameter(:U)`. # -# source://rbi//lib/rbi/type.rb#307 +# source://rbi//lib/rbi/type.rb#305 class RBI::Type::TypeParameter < ::RBI::Type - # source://rbi//lib/rbi/type.rb#314 + # : (Symbol name) -> void + # + # @return [TypeParameter] a new instance of TypeParameter + # + # source://rbi//lib/rbi/type.rb#310 sig { params(name: ::Symbol).void } def initialize(name); end - # source://rbi//lib/rbi/type.rb#320 + # : (BasicObject other) -> bool + # + # source://rbi//lib/rbi/type.rb#317 sig { override.params(other: ::BasicObject).returns(T::Boolean) } def ==(other); end - # source://rbi//lib/rbi/type.rb#311 + # : Symbol + # + # source://rbi//lib/rbi/type.rb#307 sig { returns(::Symbol) } def name; end - # source://rbi//lib/rbi/type.rb#325 + # : -> String + # + # source://rbi//lib/rbi/type.rb#323 sig { override.returns(::String) } def to_rbi; end end @@ -4039,10 +5859,14 @@ end # # source://rbi//lib/rbi/type.rb#118 class RBI::Type::Untyped < ::RBI::Type - # source://rbi//lib/rbi/type.rb#122 + # : (BasicObject other) -> bool + # + # source://rbi//lib/rbi/type.rb#121 sig { override.params(other: ::BasicObject).returns(T::Boolean) } def ==(other); end + # : -> String + # # source://rbi//lib/rbi/type.rb#127 sig { override.returns(::String) } def to_rbi; end @@ -4050,106 +5874,152 @@ end # source://rbi//lib/rbi/type_visitor.rb#6 class RBI::Type::Visitor - # source://rbi//lib/rbi/type_visitor.rb#12 + # : (Type node) -> void + # + # source://rbi//lib/rbi/type_visitor.rb#10 sig { params(node: ::RBI::Type).void } def visit(node); end private - # source://rbi//lib/rbi/type_visitor.rb#58 + # : (Type::All type) -> void + # + # source://rbi//lib/rbi/type_visitor.rb#56 sig { params(type: ::RBI::Type::All).void } def visit_all(type); end - # source://rbi//lib/rbi/type_visitor.rb#61 + # : (Type::Any type) -> void + # + # source://rbi//lib/rbi/type_visitor.rb#59 sig { params(type: ::RBI::Type::Any).void } def visit_any(type); end - # source://rbi//lib/rbi/type_visitor.rb#64 + # : (Type::Anything type) -> void + # + # source://rbi//lib/rbi/type_visitor.rb#62 sig { params(type: ::RBI::Type::Anything).void } def visit_anything(type); end - # source://rbi//lib/rbi/type_visitor.rb#67 + # : (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 - # source://rbi//lib/rbi/type_visitor.rb#70 + # : (Type::Boolean type) -> void + # + # source://rbi//lib/rbi/type_visitor.rb#68 sig { params(type: ::RBI::Type::Boolean).void } def visit_boolean(type); end - # source://rbi//lib/rbi/type_visitor.rb#73 + # : (Type::Class type) -> void + # + # source://rbi//lib/rbi/type_visitor.rb#71 sig { params(type: ::RBI::Type::Class).void } def visit_class(type); end - # source://rbi//lib/rbi/type_visitor.rb#76 + # : (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 - # source://rbi//lib/rbi/type_visitor.rb#79 + # : (Type::Generic type) -> void + # + # source://rbi//lib/rbi/type_visitor.rb#77 sig { params(type: ::RBI::Type::Generic).void } def visit_generic(type); end - # source://rbi//lib/rbi/type_visitor.rb#82 + # : (Type::Nilable type) -> void + # + # source://rbi//lib/rbi/type_visitor.rb#80 sig { params(type: ::RBI::Type::Nilable).void } def visit_nilable(type); end - # source://rbi//lib/rbi/type_visitor.rb#88 + # : (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 - # source://rbi//lib/rbi/type_visitor.rb#91 + # : (Type::Proc type) -> void + # + # source://rbi//lib/rbi/type_visitor.rb#89 sig { params(type: ::RBI::Type::Proc).void } def visit_proc(type); end - # source://rbi//lib/rbi/type_visitor.rb#94 + # : (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 - # source://rbi//lib/rbi/type_visitor.rb#100 + # : (Type::Shape type) -> void + # + # source://rbi//lib/rbi/type_visitor.rb#98 sig { params(type: ::RBI::Type::Shape).void } def visit_shape(type); end - # source://rbi//lib/rbi/type_visitor.rb#85 + # : (Type::Simple type) -> void + # + # source://rbi//lib/rbi/type_visitor.rb#83 sig { params(type: ::RBI::Type::Simple).void } def visit_simple(type); end - # source://rbi//lib/rbi/type_visitor.rb#103 + # : (Type::Tuple type) -> void + # + # source://rbi//lib/rbi/type_visitor.rb#101 sig { params(type: ::RBI::Type::Tuple).void } def visit_tuple(type); end - # source://rbi//lib/rbi/type_visitor.rb#106 + # : (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 - # source://rbi//lib/rbi/type_visitor.rb#109 + # : (Type::Untyped type) -> void + # + # source://rbi//lib/rbi/type_visitor.rb#107 sig { params(type: ::RBI::Type::Untyped).void } def visit_untyped(type); end - # source://rbi//lib/rbi/type_visitor.rb#97 + # : (Type::Void type) -> void + # + # source://rbi//lib/rbi/type_visitor.rb#95 sig { params(type: ::RBI::Type::Void).void } def visit_void(type); end end -# source://rbi//lib/rbi/type_visitor.rb#9 +# source://rbi//lib/rbi/type_visitor.rb#7 class RBI::Type::Visitor::Error < ::RBI::Error; end # `void`. # # source://rbi//lib/rbi/type.rb#133 class RBI::Type::Void < ::RBI::Type - # source://rbi//lib/rbi/type.rb#137 + # : (BasicObject other) -> bool + # + # source://rbi//lib/rbi/type.rb#136 sig { override.params(other: ::BasicObject).returns(T::Boolean) } def ==(other); end + # : -> String + # # source://rbi//lib/rbi/type.rb#142 sig { override.returns(::String) } def to_rbi; end end -# source://rbi//lib/rbi/model.rb#1403 +# source://rbi//lib/rbi/model.rb#1060 class RBI::TypeMember < ::RBI::NodeWithComments include ::RBI::Indexable - # source://rbi//lib/rbi/model.rb#1418 + # : (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#1065 sig do params( name: ::String, @@ -4161,143 +6031,212 @@ class RBI::TypeMember < ::RBI::NodeWithComments end def initialize(name, value, loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end - # source://rbi//lib/rbi/model.rb#1426 + # : -> String + # + # source://rbi//lib/rbi/model.rb#1073 sig { returns(::String) } def fully_qualified_name; end - # source://rbi//lib/rbi/index.rb#183 + # : -> Array[String] + # + # source://rbi//lib/rbi/index.rb#179 sig { override.returns(T::Array[::String]) } def index_ids; end - # source://rbi//lib/rbi/model.rb#1407 + # : String + # + # source://rbi//lib/rbi/model.rb#1062 sig { returns(::String) } def name; end - # source://rbi//lib/rbi/model.rb#1433 + # : -> String + # + # source://rbi//lib/rbi/model.rb#1081 sig { override.returns(::String) } def to_s; end - # @return [String] + # : String # - # source://rbi//lib/rbi/model.rb#1407 + # source://rbi//lib/rbi/model.rb#1062 + # @return [String] def value; end end -# source://rbi//lib/rbi/rbs_printer.rb#809 +# source://rbi//lib/rbi/rbs_printer.rb#879 class RBI::TypePrinter - # source://rbi//lib/rbi/rbs_printer.rb#816 + # : -> void + # + # @return [TypePrinter] a new instance of TypePrinter + # + # source://rbi//lib/rbi/rbs_printer.rb#884 sig { void } def initialize; end - # source://rbi//lib/rbi/rbs_printer.rb#813 + # : String + # + # source://rbi//lib/rbi/rbs_printer.rb#881 sig { returns(::String) } def string; end - # source://rbi//lib/rbi/rbs_printer.rb#821 + # : (Type node) -> void + # + # source://rbi//lib/rbi/rbs_printer.rb#889 sig { params(node: ::RBI::Type).void } def visit(node); end - # source://rbi//lib/rbi/rbs_printer.rb#936 + # : (Type::All type) -> void + # + # source://rbi//lib/rbi/rbs_printer.rb#1004 sig { params(type: ::RBI::Type::All).void } def visit_all(type); end - # source://rbi//lib/rbi/rbs_printer.rb#946 + # : (Type::Any type) -> void + # + # source://rbi//lib/rbi/rbs_printer.rb#1014 sig { params(type: ::RBI::Type::Any).void } def visit_any(type); end - # source://rbi//lib/rbi/rbs_printer.rb#886 + # : (Type::Anything type) -> void + # + # source://rbi//lib/rbi/rbs_printer.rb#954 sig { params(type: ::RBI::Type::Anything).void } def visit_anything(type); end - # source://rbi//lib/rbi/rbs_printer.rb#911 + # : (Type::AttachedClass type) -> void + # + # source://rbi//lib/rbi/rbs_printer.rb#979 sig { params(type: ::RBI::Type::AttachedClass).void } def visit_attached_class(type); end - # source://rbi//lib/rbi/rbs_printer.rb#870 + # : (Type::Boolean type) -> void + # + # source://rbi//lib/rbi/rbs_printer.rb#938 sig { params(type: ::RBI::Type::Boolean).void } def visit_boolean(type); end - # source://rbi//lib/rbi/rbs_printer.rb#1013 + # : (Type::Class type) -> void + # + # source://rbi//lib/rbi/rbs_printer.rb#1081 sig { params(type: ::RBI::Type::Class).void } def visit_class(type); end - # source://rbi//lib/rbi/rbs_printer.rb#929 + # : (Type::ClassOf type) -> void + # + # source://rbi//lib/rbi/rbs_printer.rb#997 sig { params(type: ::RBI::Type::ClassOf).void } def visit_class_of(type); end - # source://rbi//lib/rbi/rbs_printer.rb#875 + # : (Type::Generic type) -> void + # + # source://rbi//lib/rbi/rbs_printer.rb#943 sig { params(type: ::RBI::Type::Generic).void } def visit_generic(type); end - # source://rbi//lib/rbi/rbs_printer.rb#916 + # : (Type::Nilable type) -> void + # + # source://rbi//lib/rbi/rbs_printer.rb#984 sig { params(type: ::RBI::Type::Nilable).void } def visit_nilable(type); end - # source://rbi//lib/rbi/rbs_printer.rb#896 + # : (Type::NoReturn type) -> void + # + # source://rbi//lib/rbi/rbs_printer.rb#964 sig { params(type: ::RBI::Type::NoReturn).void } def visit_no_return(type); end - # source://rbi//lib/rbi/rbs_printer.rb#986 + # : (Type::Proc type) -> void + # + # source://rbi//lib/rbi/rbs_printer.rb#1054 sig { params(type: ::RBI::Type::Proc).void } def visit_proc(type); end - # source://rbi//lib/rbi/rbs_printer.rb#906 + # : (Type::SelfType type) -> void + # + # source://rbi//lib/rbi/rbs_printer.rb#974 sig { params(type: ::RBI::Type::SelfType).void } def visit_self_type(type); end - # source://rbi//lib/rbi/rbs_printer.rb#966 + # : (Type::Shape type) -> void + # + # source://rbi//lib/rbi/rbs_printer.rb#1034 sig { params(type: ::RBI::Type::Shape).void } def visit_shape(type); end - # source://rbi//lib/rbi/rbs_printer.rb#865 + # : (Type::Simple type) -> void + # + # source://rbi//lib/rbi/rbs_printer.rb#933 sig { params(type: ::RBI::Type::Simple).void } def visit_simple(type); end - # source://rbi//lib/rbi/rbs_printer.rb#956 + # : (Type::Tuple type) -> void + # + # source://rbi//lib/rbi/rbs_printer.rb#1024 sig { params(type: ::RBI::Type::Tuple).void } def visit_tuple(type); end - # source://rbi//lib/rbi/rbs_printer.rb#1008 + # : (Type::TypeParameter type) -> void + # + # source://rbi//lib/rbi/rbs_printer.rb#1076 sig { params(type: ::RBI::Type::TypeParameter).void } def visit_type_parameter(type); end - # source://rbi//lib/rbi/rbs_printer.rb#901 + # : (Type::Untyped type) -> void + # + # source://rbi//lib/rbi/rbs_printer.rb#969 sig { params(type: ::RBI::Type::Untyped).void } def visit_untyped(type); end - # source://rbi//lib/rbi/rbs_printer.rb#891 + # : (Type::Void type) -> void + # + # source://rbi//lib/rbi/rbs_printer.rb#959 sig { params(type: ::RBI::Type::Void).void } def visit_void(type); end private - # source://rbi//lib/rbi/rbs_printer.rb#1022 + # : (String type_name) -> String + # + # source://rbi//lib/rbi/rbs_printer.rb#1090 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 end -# source://rbi//lib/rbi/parser.rb#20 +# source://rbi//lib/rbi/parser.rb#18 class RBI::UnexpectedParserError < ::RBI::Error - # source://rbi//lib/rbi/parser.rb#27 + # : (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 - # source://rbi//lib/rbi/parser.rb#24 + # : Loc + # + # source://rbi//lib/rbi/parser.rb#20 sig { returns(::RBI::Loc) } def last_location; end - # source://rbi//lib/rbi/parser.rb#34 + # : (?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 end @@ -4309,42 +6248,68 @@ RBI::VERSION = T.let(T.unsafe(nil), String) # # @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. # -# source://rbi//lib/rbi/model.rb#916 +# source://rbi//lib/rbi/model.rb#708 class RBI::Visibility < ::RBI::NodeWithComments abstract! - # source://rbi//lib/rbi/model.rb#926 + # : (Symbol visibility, ?loc: Loc?, ?comments: Array[Comment]) -> void + # + # @return [Visibility] a new instance of Visibility + # + # source://rbi//lib/rbi/model.rb#717 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 - # source://rbi//lib/rbi/model.rb#932 + # : (Object? other) -> bool + # + # source://rbi//lib/rbi/model.rb#723 sig { params(other: T.nilable(::Object)).returns(T::Boolean) } def ==(other); end - # source://rbi//lib/rbi/model.rb#949 + # : -> bool + # + # @return [Boolean] + # + # source://rbi//lib/rbi/model.rb#740 sig { returns(T::Boolean) } def private?; end - # source://rbi//lib/rbi/model.rb#944 + # : -> bool + # + # @return [Boolean] + # + # source://rbi//lib/rbi/model.rb#735 sig { returns(T::Boolean) } def protected?; end - # source://rbi//lib/rbi/model.rb#939 + # : -> bool + # + # @return [Boolean] + # + # source://rbi//lib/rbi/model.rb#730 sig { returns(T::Boolean) } def public?; end - # source://rbi//lib/rbi/model.rb#923 + # : Symbol + # + # source://rbi//lib/rbi/model.rb#714 sig { returns(::Symbol) } def visibility; end end -# source://rbi//lib/rbi/rewriters/nest_non_public_members.rb#52 +# source://rbi//lib/rbi/rewriters/nest_non_public_members.rb#49 class RBI::VisibilityGroup < ::RBI::Tree - # source://rbi//lib/rbi/rewriters/nest_non_public_members.rb#59 + # : (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 - # source://rbi//lib/rbi/rewriters/nest_non_public_members.rb#56 + # : Visibility + # + # source://rbi//lib/rbi/rewriters/nest_non_public_members.rb#51 sig { returns(::RBI::Visibility) } def visibility; end end @@ -4355,185 +6320,281 @@ end class RBI::Visitor abstract! - # source://rbi//lib/rbi/visitor.rb#14 + # : (Node? node) -> void + # + # source://rbi//lib/rbi/visitor.rb#13 sig { params(node: T.nilable(::RBI::Node)).void } def visit(node); end - # source://rbi//lib/rbi/visitor.rb#108 + # : (Array[Node] nodes) -> void + # + # source://rbi//lib/rbi/visitor.rb#109 sig { params(nodes: T::Array[::RBI::Node]).void } def visit_all(nodes); end - # source://rbi//lib/rbi/visitor.rb#113 + # : (File file) -> void + # + # source://rbi//lib/rbi/visitor.rb#114 sig { params(file: ::RBI::File).void } def visit_file(file); end private - # source://rbi//lib/rbi/visitor.rb#195 + # : (Arg node) -> void + # + # source://rbi//lib/rbi/visitor.rb#199 sig { params(node: ::RBI::Arg).void } def visit_arg(node); end - # source://rbi//lib/rbi/visitor.rb#144 + # : (AttrAccessor node) -> void + # + # source://rbi//lib/rbi/visitor.rb#148 sig { params(node: ::RBI::AttrAccessor).void } def visit_attr_accessor(node); end - # source://rbi//lib/rbi/visitor.rb#147 + # : (AttrReader node) -> void + # + # source://rbi//lib/rbi/visitor.rb#151 sig { params(node: ::RBI::AttrReader).void } def visit_attr_reader(node); end - # source://rbi//lib/rbi/visitor.rb#150 + # : (AttrWriter node) -> void + # + # source://rbi//lib/rbi/visitor.rb#154 sig { params(node: ::RBI::AttrWriter).void } def visit_attr_writer(node); end - # source://rbi//lib/rbi/visitor.rb#123 + # : (BlankLine node) -> void + # + # source://rbi//lib/rbi/visitor.rb#127 sig { params(node: ::RBI::BlankLine).void } def visit_blank_line(node); end - # source://rbi//lib/rbi/visitor.rb#174 + # : (BlockParam node) -> void + # + # source://rbi//lib/rbi/visitor.rb#178 sig { params(node: ::RBI::BlockParam).void } def visit_block_param(node); end - # source://rbi//lib/rbi/visitor.rb#129 + # : (Class node) -> void + # + # source://rbi//lib/rbi/visitor.rb#133 sig { params(node: ::RBI::Class).void } def visit_class(node); end - # source://rbi//lib/rbi/visitor.rb#120 + # : (Comment node) -> void + # + # source://rbi//lib/rbi/visitor.rb#121 sig { params(node: ::RBI::Comment).void } def visit_comment(node); end - # source://rbi//lib/rbi/visitor.rb#240 + # : (ConflictTree node) -> void + # + # source://rbi//lib/rbi/visitor.rb#244 sig { params(node: ::RBI::ConflictTree).void } def visit_conflict_tree(node); end - # source://rbi//lib/rbi/visitor.rb#141 + # : (Const node) -> void + # + # source://rbi//lib/rbi/visitor.rb#145 sig { params(node: ::RBI::Const).void } def visit_const(node); end - # source://rbi//lib/rbi/visitor.rb#180 + # : (Extend node) -> void + # + # source://rbi//lib/rbi/visitor.rb#184 sig { params(node: ::RBI::Extend).void } def visit_extend(node); end - # source://rbi//lib/rbi/visitor.rb#234 + # : (Group node) -> void + # + # source://rbi//lib/rbi/visitor.rb#238 sig { params(node: ::RBI::Group).void } def visit_group(node); end - # source://rbi//lib/rbi/visitor.rb#222 + # : (Helper node) -> void + # + # source://rbi//lib/rbi/visitor.rb#226 sig { params(node: ::RBI::Helper).void } def visit_helper(node); end - # source://rbi//lib/rbi/visitor.rb#177 + # : (Include node) -> void + # + # source://rbi//lib/rbi/visitor.rb#181 sig { params(node: ::RBI::Include).void } def visit_include(node); end - # source://rbi//lib/rbi/visitor.rb#198 + # : (KwArg node) -> void + # + # source://rbi//lib/rbi/visitor.rb#202 sig { params(node: ::RBI::KwArg).void } def visit_kw_arg(node); end - # source://rbi//lib/rbi/visitor.rb#168 + # : (KwOptParam node) -> void + # + # source://rbi//lib/rbi/visitor.rb#172 sig { params(node: ::RBI::KwOptParam).void } def visit_kw_opt_param(node); end - # source://rbi//lib/rbi/visitor.rb#165 + # : (KwParam node) -> void + # + # source://rbi//lib/rbi/visitor.rb#169 sig { params(node: ::RBI::KwParam).void } def visit_kw_param(node); end - # source://rbi//lib/rbi/visitor.rb#171 + # : (KwRestParam node) -> void + # + # source://rbi//lib/rbi/visitor.rb#175 sig { params(node: ::RBI::KwRestParam).void } def visit_kw_rest_param(node); end - # source://rbi//lib/rbi/visitor.rb#153 + # : (Method node) -> void + # + # source://rbi//lib/rbi/visitor.rb#157 sig { params(node: ::RBI::Method).void } def visit_method(node); end - # source://rbi//lib/rbi/visitor.rb#228 + # : (MixesInClassMethods node) -> void + # + # source://rbi//lib/rbi/visitor.rb#232 sig { params(node: ::RBI::MixesInClassMethods).void } def visit_mixes_in_class_methods(node); end - # source://rbi//lib/rbi/visitor.rb#126 + # : (Module node) -> void + # + # source://rbi//lib/rbi/visitor.rb#130 sig { params(node: ::RBI::Module).void } def visit_module(node); end - # source://rbi//lib/rbi/visitor.rb#159 + # : (OptParam node) -> void + # + # source://rbi//lib/rbi/visitor.rb#163 sig { params(node: ::RBI::OptParam).void } def visit_opt_param(node); end - # source://rbi//lib/rbi/visitor.rb#189 + # : (Private node) -> void + # + # source://rbi//lib/rbi/visitor.rb#193 sig { params(node: ::RBI::Private).void } def visit_private(node); end - # source://rbi//lib/rbi/visitor.rb#186 + # : (Protected node) -> void + # + # source://rbi//lib/rbi/visitor.rb#190 sig { params(node: ::RBI::Protected).void } def visit_protected(node); end - # source://rbi//lib/rbi/visitor.rb#183 + # : (Public node) -> void + # + # source://rbi//lib/rbi/visitor.rb#187 sig { params(node: ::RBI::Public).void } def visit_public(node); end - # source://rbi//lib/rbi/visitor.rb#156 + # : (RBSComment node) -> void + # + # source://rbi//lib/rbi/visitor.rb#124 + sig { params(node: ::RBI::RBSComment).void } + def visit_rbs_comment(node); end + + # : (ReqParam node) -> void + # + # source://rbi//lib/rbi/visitor.rb#160 sig { params(node: ::RBI::ReqParam).void } def visit_req_param(node); end - # source://rbi//lib/rbi/visitor.rb#231 + # : (RequiresAncestor node) -> void + # + # source://rbi//lib/rbi/visitor.rb#235 sig { params(node: ::RBI::RequiresAncestor).void } def visit_requires_ancestor(node); end - # source://rbi//lib/rbi/visitor.rb#162 + # : (RestParam node) -> void + # + # source://rbi//lib/rbi/visitor.rb#166 sig { params(node: ::RBI::RestParam).void } def visit_rest_param(node); end - # source://rbi//lib/rbi/visitor.rb#243 + # : (ScopeConflict node) -> void + # + # source://rbi//lib/rbi/visitor.rb#247 sig { params(node: ::RBI::ScopeConflict).void } def visit_scope_conflict(node); end - # source://rbi//lib/rbi/visitor.rb#192 + # : (Send node) -> void + # + # source://rbi//lib/rbi/visitor.rb#196 sig { params(node: ::RBI::Send).void } def visit_send(node); end - # source://rbi//lib/rbi/visitor.rb#201 + # : (Sig node) -> void + # + # source://rbi//lib/rbi/visitor.rb#205 sig { params(node: ::RBI::Sig).void } def visit_sig(node); end - # source://rbi//lib/rbi/visitor.rb#204 + # : (SigParam node) -> void + # + # source://rbi//lib/rbi/visitor.rb#208 sig { params(node: ::RBI::SigParam).void } def visit_sig_param(node); end - # source://rbi//lib/rbi/visitor.rb#132 + # : (SingletonClass node) -> void + # + # source://rbi//lib/rbi/visitor.rb#136 sig { params(node: ::RBI::SingletonClass).void } def visit_singleton_class(node); end - # source://rbi//lib/rbi/visitor.rb#135 + # : (Struct node) -> void + # + # source://rbi//lib/rbi/visitor.rb#139 sig { params(node: ::RBI::Struct).void } def visit_struct(node); end - # source://rbi//lib/rbi/visitor.rb#216 + # : (TEnum node) -> void + # + # source://rbi//lib/rbi/visitor.rb#220 sig { params(node: ::RBI::TEnum).void } def visit_tenum(node); end - # source://rbi//lib/rbi/visitor.rb#219 + # : (TEnumBlock node) -> void + # + # source://rbi//lib/rbi/visitor.rb#223 sig { params(node: ::RBI::TEnumBlock).void } def visit_tenum_block(node); end - # source://rbi//lib/rbi/visitor.rb#138 + # : (Tree node) -> void + # + # source://rbi//lib/rbi/visitor.rb#142 sig { params(node: ::RBI::Tree).void } def visit_tree(node); end - # source://rbi//lib/rbi/visitor.rb#207 + # : (TStruct node) -> void + # + # source://rbi//lib/rbi/visitor.rb#211 sig { params(node: ::RBI::TStruct).void } def visit_tstruct(node); end - # source://rbi//lib/rbi/visitor.rb#210 + # : (TStructConst node) -> void + # + # source://rbi//lib/rbi/visitor.rb#214 sig { params(node: ::RBI::TStructConst).void } def visit_tstruct_const(node); end - # source://rbi//lib/rbi/visitor.rb#213 + # : (TStructProp node) -> void + # + # source://rbi//lib/rbi/visitor.rb#217 sig { params(node: ::RBI::TStructProp).void } def visit_tstruct_prop(node); end - # source://rbi//lib/rbi/visitor.rb#225 + # : (TypeMember node) -> void + # + # source://rbi//lib/rbi/visitor.rb#229 sig { params(node: ::RBI::TypeMember).void } def visit_type_member(node); end - # source://rbi//lib/rbi/visitor.rb#237 + # : (VisibilityGroup node) -> void + # + # source://rbi//lib/rbi/visitor.rb#241 sig { params(node: ::RBI::VisibilityGroup).void } def visit_visibility_group(node); end end diff --git a/Library/Homebrew/sorbet/rbi/gems/rbs@3.8.1.rbi b/Library/Homebrew/sorbet/rbi/gems/rbs@3.8.1.rbi new file mode 100644 index 0000000000..1930d2d5c7 --- /dev/null +++ b/Library/Homebrew/sorbet/rbi/gems/rbs@3.8.1.rbi @@ -0,0 +1,6880 @@ +# typed: true + +# DO NOT EDIT MANUALLY +# This is an autogenerated file for types exported from the `rbs` gem. +# 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#68 + def logger; end + + # Returns the value of attribute logger_level. + # + # source://rbs//lib/rbs.rb#65 + def logger_level; end + + # source://rbs//lib/rbs.rb#77 + def logger_level=(level); end + + # Returns the value of attribute logger_output. + # + # source://rbs//lib/rbs.rb#66 + def logger_output; end + + # source://rbs//lib/rbs.rb#72 + def logger_output=(val); end + + # source://rbs//lib/rbs.rb#82 + def print_warning; end + end +end + +# source://rbs//lib/rbs/ast/type_param.rb#4 +module RBS::AST; end + +# source://rbs//lib/rbs/ast/annotation.rb#5 +class RBS::AST::Annotation + # @return [Annotation] a new instance of Annotation + # + # source://rbs//lib/rbs/ast/annotation.rb#9 + def initialize(string:, location:); end + + # source://rbs//lib/rbs/ast/annotation.rb#14 + def ==(other); end + + # source://rbs//lib/rbs/ast/annotation.rb#14 + def eql?(other); end + + # source://rbs//lib/rbs/ast/annotation.rb#20 + def hash; end + + # Returns the value of attribute location. + # + # source://rbs//lib/rbs/ast/annotation.rb#7 + def location; end + + # Returns the value of attribute string. + # + # source://rbs//lib/rbs/ast/annotation.rb#6 + def string; end + + # source://rbs//lib/rbs/ast/annotation.rb#24 + def to_json(state = T.unsafe(nil)); end +end + +# source://rbs//lib/rbs/ast/comment.rb#5 +class RBS::AST::Comment + # @return [Comment] a new instance of Comment + # + # source://rbs//lib/rbs/ast/comment.rb#9 + def initialize(string:, location:); end + + # source://rbs//lib/rbs/ast/comment.rb#14 + def ==(other); end + + # source://rbs//lib/rbs/ast/comment.rb#14 + def eql?(other); end + + # source://rbs//lib/rbs/ast/comment.rb#20 + def hash; end + + # Returns the value of attribute location. + # + # source://rbs//lib/rbs/ast/comment.rb#7 + def location; end + + # Returns the value of attribute string. + # + # source://rbs//lib/rbs/ast/comment.rb#6 + def string; end + + # source://rbs//lib/rbs/ast/comment.rb#24 + def to_json(state = T.unsafe(nil)); end +end + +# source://rbs//lib/rbs/ast/declarations.rb#5 +module RBS::AST::Declarations; end + +# source://rbs//lib/rbs/ast/declarations.rb#419 +class RBS::AST::Declarations::AliasDecl < ::RBS::AST::Declarations::Base + # @return [AliasDecl] a new instance of AliasDecl + # + # source://rbs//lib/rbs/ast/declarations.rb#422 + def initialize(new_name:, old_name:, location:, comment:); end + + # source://rbs//lib/rbs/ast/declarations.rb#429 + def ==(other); end + + # Returns the value of attribute comment. + # + # source://rbs//lib/rbs/ast/declarations.rb#420 + def comment; end + + # source://rbs//lib/rbs/ast/declarations.rb#429 + def eql?(other); end + + # source://rbs//lib/rbs/ast/declarations.rb#437 + def hash; end + + # Returns the value of attribute location. + # + # source://rbs//lib/rbs/ast/declarations.rb#420 + def location; end + + # Returns the value of attribute new_name. + # + # source://rbs//lib/rbs/ast/declarations.rb#420 + def new_name; end + + # Returns the value of attribute old_name. + # + # source://rbs//lib/rbs/ast/declarations.rb#420 + def old_name; end +end + +# source://rbs//lib/rbs/ast/declarations.rb#6 +class RBS::AST::Declarations::Base; end + +# source://rbs//lib/rbs/ast/declarations.rb#55 +class RBS::AST::Declarations::Class < ::RBS::AST::Declarations::Base + include ::RBS::AST::Declarations::NestedDeclarationHelper + include ::RBS::AST::Declarations::MixinHelper + + # @return [Class] a new instance of Class + # + # source://rbs//lib/rbs/ast/declarations.rb#97 + def initialize(name:, type_params:, super_class:, members:, annotations:, location:, comment:); end + + # source://rbs//lib/rbs/ast/declarations.rb#119 + def ==(other); end + + # Returns the value of attribute annotations. + # + # source://rbs//lib/rbs/ast/declarations.rb#93 + def annotations; end + + # Returns the value of attribute comment. + # + # source://rbs//lib/rbs/ast/declarations.rb#95 + def comment; end + + # source://rbs//lib/rbs/ast/declarations.rb#119 + def eql?(other); end + + # source://rbs//lib/rbs/ast/declarations.rb#129 + def hash; end + + # Returns the value of attribute location. + # + # source://rbs//lib/rbs/ast/declarations.rb#94 + def location; end + + # Returns the value of attribute members. + # + # source://rbs//lib/rbs/ast/declarations.rb#91 + def members; end + + # Returns the value of attribute name. + # + # source://rbs//lib/rbs/ast/declarations.rb#89 + def name; end + + # Returns the value of attribute super_class. + # + # source://rbs//lib/rbs/ast/declarations.rb#92 + def super_class; end + + # source://rbs//lib/rbs/ast/declarations.rb#133 + def to_json(state = T.unsafe(nil)); end + + # Returns the value of attribute type_params. + # + # source://rbs//lib/rbs/ast/declarations.rb#90 + def type_params; end + + # source://rbs//lib/rbs/ast/declarations.rb#107 + def update(name: T.unsafe(nil), type_params: T.unsafe(nil), super_class: T.unsafe(nil), members: T.unsafe(nil), annotations: T.unsafe(nil), location: T.unsafe(nil), comment: T.unsafe(nil)); end +end + +# source://rbs//lib/rbs/ast/declarations.rb#56 +class RBS::AST::Declarations::Class::Super + # @return [Super] a new instance of Super + # + # source://rbs//lib/rbs/ast/declarations.rb#61 + def initialize(name:, args:, location:); end + + # source://rbs//lib/rbs/ast/declarations.rb#67 + def ==(other); end + + # Returns the value of attribute args. + # + # source://rbs//lib/rbs/ast/declarations.rb#58 + def args; end + + # source://rbs//lib/rbs/ast/declarations.rb#67 + def eql?(other); end + + # source://rbs//lib/rbs/ast/declarations.rb#73 + def hash; end + + # Returns the value of attribute location. + # + # source://rbs//lib/rbs/ast/declarations.rb#59 + def location; end + + # Returns the value of attribute name. + # + # source://rbs//lib/rbs/ast/declarations.rb#57 + def name; end + + # source://rbs//lib/rbs/ast/declarations.rb#77 + def to_json(state = T.unsafe(nil)); end +end + +# source://rbs//lib/rbs/ast/declarations.rb#442 +class RBS::AST::Declarations::ClassAlias < ::RBS::AST::Declarations::AliasDecl + # source://rbs//lib/rbs/ast/declarations.rb#443 + def to_json(state = T.unsafe(nil)); end +end + +# source://rbs//lib/rbs/ast/declarations.rb#347 +class RBS::AST::Declarations::Constant < ::RBS::AST::Declarations::Base + # @return [Constant] a new instance of Constant + # + # source://rbs//lib/rbs/ast/declarations.rb#353 + def initialize(name:, type:, location:, comment:); end + + # source://rbs//lib/rbs/ast/declarations.rb#360 + def ==(other); end + + # Returns the value of attribute comment. + # + # source://rbs//lib/rbs/ast/declarations.rb#351 + def comment; end + + # source://rbs//lib/rbs/ast/declarations.rb#360 + def eql?(other); end + + # source://rbs//lib/rbs/ast/declarations.rb#368 + def hash; end + + # Returns the value of attribute location. + # + # source://rbs//lib/rbs/ast/declarations.rb#350 + def location; end + + # Returns the value of attribute name. + # + # source://rbs//lib/rbs/ast/declarations.rb#348 + def name; end + + # source://rbs//lib/rbs/ast/declarations.rb#372 + def to_json(state = T.unsafe(nil)); end + + # Returns the value of attribute type. + # + # source://rbs//lib/rbs/ast/declarations.rb#349 + def type; end +end + +# source://rbs//lib/rbs/ast/declarations.rb#383 +class RBS::AST::Declarations::Global < ::RBS::AST::Declarations::Base + # @return [Global] a new instance of Global + # + # source://rbs//lib/rbs/ast/declarations.rb#389 + def initialize(name:, type:, location:, comment:); end + + # source://rbs//lib/rbs/ast/declarations.rb#396 + def ==(other); end + + # Returns the value of attribute comment. + # + # source://rbs//lib/rbs/ast/declarations.rb#387 + def comment; end + + # source://rbs//lib/rbs/ast/declarations.rb#396 + def eql?(other); end + + # source://rbs//lib/rbs/ast/declarations.rb#404 + def hash; end + + # Returns the value of attribute location. + # + # source://rbs//lib/rbs/ast/declarations.rb#386 + def location; end + + # Returns the value of attribute name. + # + # source://rbs//lib/rbs/ast/declarations.rb#384 + def name; end + + # source://rbs//lib/rbs/ast/declarations.rb#408 + def to_json(state = T.unsafe(nil)); end + + # Returns the value of attribute type. + # + # source://rbs//lib/rbs/ast/declarations.rb#385 + def type; end +end + +# source://rbs//lib/rbs/ast/declarations.rb#248 +class RBS::AST::Declarations::Interface < ::RBS::AST::Declarations::Base + include ::RBS::AST::Declarations::MixinHelper + + # @return [Interface] a new instance of Interface + # + # source://rbs//lib/rbs/ast/declarations.rb#258 + def initialize(name:, type_params:, members:, annotations:, location:, comment:); end + + # source://rbs//lib/rbs/ast/declarations.rb#278 + def ==(other); end + + # Returns the value of attribute annotations. + # + # source://rbs//lib/rbs/ast/declarations.rb#252 + def annotations; end + + # Returns the value of attribute comment. + # + # source://rbs//lib/rbs/ast/declarations.rb#254 + def comment; end + + # source://rbs//lib/rbs/ast/declarations.rb#278 + def eql?(other); end + + # source://rbs//lib/rbs/ast/declarations.rb#287 + def hash; end + + # Returns the value of attribute location. + # + # source://rbs//lib/rbs/ast/declarations.rb#253 + def location; end + + # Returns the value of attribute members. + # + # source://rbs//lib/rbs/ast/declarations.rb#251 + def members; end + + # Returns the value of attribute name. + # + # source://rbs//lib/rbs/ast/declarations.rb#249 + def name; end + + # source://rbs//lib/rbs/ast/declarations.rb#291 + def to_json(state = T.unsafe(nil)); end + + # Returns the value of attribute type_params. + # + # source://rbs//lib/rbs/ast/declarations.rb#250 + def type_params; end + + # source://rbs//lib/rbs/ast/declarations.rb#267 + def update(name: T.unsafe(nil), type_params: T.unsafe(nil), members: T.unsafe(nil), annotations: T.unsafe(nil), location: T.unsafe(nil), comment: T.unsafe(nil)); end +end + +# source://rbs//lib/rbs/ast/declarations.rb#35 +module RBS::AST::Declarations::MixinHelper + # source://rbs//lib/rbs/ast/declarations.rb#36 + def each_mixin(&block); end +end + +# source://rbs//lib/rbs/ast/declarations.rb#147 +class RBS::AST::Declarations::Module < ::RBS::AST::Declarations::Base + include ::RBS::AST::Declarations::NestedDeclarationHelper + include ::RBS::AST::Declarations::MixinHelper + + # @return [Module] a new instance of Module + # + # source://rbs//lib/rbs/ast/declarations.rb#197 + def initialize(name:, type_params:, members:, self_types:, annotations:, location:, comment:); end + + # source://rbs//lib/rbs/ast/declarations.rb#220 + def ==(other); end + + # Returns the value of attribute annotations. + # + # source://rbs//lib/rbs/ast/declarations.rb#193 + def annotations; end + + # Returns the value of attribute comment. + # + # source://rbs//lib/rbs/ast/declarations.rb#195 + def comment; end + + # source://rbs//lib/rbs/ast/declarations.rb#220 + def eql?(other); end + + # source://rbs//lib/rbs/ast/declarations.rb#230 + def hash; end + + # Returns the value of attribute location. + # + # source://rbs//lib/rbs/ast/declarations.rb#192 + def location; end + + # Returns the value of attribute members. + # + # source://rbs//lib/rbs/ast/declarations.rb#191 + def members; end + + # Returns the value of attribute name. + # + # source://rbs//lib/rbs/ast/declarations.rb#189 + def name; end + + # Returns the value of attribute self_types. + # + # source://rbs//lib/rbs/ast/declarations.rb#194 + def self_types; end + + # source://rbs//lib/rbs/ast/declarations.rb#234 + def to_json(state = T.unsafe(nil)); end + + # Returns the value of attribute type_params. + # + # source://rbs//lib/rbs/ast/declarations.rb#190 + def type_params; end + + # source://rbs//lib/rbs/ast/declarations.rb#207 + def update(name: T.unsafe(nil), type_params: T.unsafe(nil), members: T.unsafe(nil), self_types: T.unsafe(nil), annotations: T.unsafe(nil), location: T.unsafe(nil), comment: T.unsafe(nil)); end +end + +# source://rbs//lib/rbs/ast/declarations.rb#148 +class RBS::AST::Declarations::Module::Self + # @return [Self] a new instance of Self + # + # source://rbs//lib/rbs/ast/declarations.rb#153 + def initialize(name:, args:, location:); end + + # source://rbs//lib/rbs/ast/declarations.rb#159 + def ==(other); end + + # Returns the value of attribute args. + # + # source://rbs//lib/rbs/ast/declarations.rb#150 + def args; end + + # source://rbs//lib/rbs/ast/declarations.rb#159 + def eql?(other); end + + # source://rbs//lib/rbs/ast/declarations.rb#165 + def hash; end + + # Returns the value of attribute location. + # + # source://rbs//lib/rbs/ast/declarations.rb#151 + def location; end + + # Returns the value of attribute name. + # + # source://rbs//lib/rbs/ast/declarations.rb#149 + def name; end + + # source://rbs//lib/rbs/ast/declarations.rb#169 + def to_json(state = T.unsafe(nil)); end + + # source://rbs//lib/rbs/ast/declarations.rb#177 + def to_s; end +end + +# source://rbs//lib/rbs/ast/declarations.rb#454 +class RBS::AST::Declarations::ModuleAlias < ::RBS::AST::Declarations::AliasDecl + # source://rbs//lib/rbs/ast/declarations.rb#455 + def to_json(state = T.unsafe(nil)); end +end + +# source://rbs//lib/rbs/ast/declarations.rb#9 +module RBS::AST::Declarations::NestedDeclarationHelper + # source://rbs//lib/rbs/ast/declarations.rb#22 + def each_decl; end + + # source://rbs//lib/rbs/ast/declarations.rb#10 + def each_member; end +end + +# source://rbs//lib/rbs/ast/declarations.rb#304 +class RBS::AST::Declarations::TypeAlias < ::RBS::AST::Declarations::Base + # @return [TypeAlias] a new instance of TypeAlias + # + # source://rbs//lib/rbs/ast/declarations.rb#312 + def initialize(name:, type_params:, type:, annotations:, location:, comment:); end + + # source://rbs//lib/rbs/ast/declarations.rb#321 + def ==(other); end + + # Returns the value of attribute annotations. + # + # source://rbs//lib/rbs/ast/declarations.rb#308 + def annotations; end + + # Returns the value of attribute comment. + # + # source://rbs//lib/rbs/ast/declarations.rb#310 + def comment; end + + # source://rbs//lib/rbs/ast/declarations.rb#321 + def eql?(other); end + + # source://rbs//lib/rbs/ast/declarations.rb#330 + def hash; end + + # Returns the value of attribute location. + # + # source://rbs//lib/rbs/ast/declarations.rb#309 + def location; end + + # Returns the value of attribute name. + # + # source://rbs//lib/rbs/ast/declarations.rb#305 + def name; end + + # source://rbs//lib/rbs/ast/declarations.rb#334 + def to_json(state = T.unsafe(nil)); end + + # Returns the value of attribute type. + # + # source://rbs//lib/rbs/ast/declarations.rb#307 + def type; end + + # Returns the value of attribute type_params. + # + # source://rbs//lib/rbs/ast/declarations.rb#306 + def type_params; end +end + +# source://rbs//lib/rbs/ast/directives.rb#5 +module RBS::AST::Directives; end + +# source://rbs//lib/rbs/ast/directives.rb#6 +class RBS::AST::Directives::Base; end + +# source://rbs//lib/rbs/ast/directives.rb#9 +class RBS::AST::Directives::Use < ::RBS::AST::Directives::Base + # @return [Use] a new instance of Use + # + # source://rbs//lib/rbs/ast/directives.rb#31 + def initialize(clauses:, location:); end + + # Returns the value of attribute clauses. + # + # source://rbs//lib/rbs/ast/directives.rb#29 + def clauses; end + + # Returns the value of attribute location. + # + # source://rbs//lib/rbs/ast/directives.rb#29 + def location; end +end + +# source://rbs//lib/rbs/ast/directives.rb#10 +class RBS::AST::Directives::Use::SingleClause + # @return [SingleClause] a new instance of SingleClause + # + # source://rbs//lib/rbs/ast/directives.rb#13 + def initialize(type_name:, new_name:, location:); end + + # Returns the value of attribute location. + # + # source://rbs//lib/rbs/ast/directives.rb#11 + def location; end + + # Returns the value of attribute new_name. + # + # source://rbs//lib/rbs/ast/directives.rb#11 + def new_name; end + + # Returns the value of attribute type_name. + # + # source://rbs//lib/rbs/ast/directives.rb#11 + def type_name; end +end + +# source://rbs//lib/rbs/ast/directives.rb#20 +class RBS::AST::Directives::Use::WildcardClause + # @return [WildcardClause] a new instance of WildcardClause + # + # source://rbs//lib/rbs/ast/directives.rb#23 + def initialize(namespace:, location:); end + + # Returns the value of attribute location. + # + # source://rbs//lib/rbs/ast/directives.rb#21 + def location; end + + # Returns the value of attribute namespace. + # + # source://rbs//lib/rbs/ast/directives.rb#21 + def namespace; end +end + +# source://rbs//lib/rbs/ast/members.rb#5 +module RBS::AST::Members; end + +# source://rbs//lib/rbs/ast/members.rb#397 +class RBS::AST::Members::Alias < ::RBS::AST::Members::Base + # @return [Alias] a new instance of Alias + # + # source://rbs//lib/rbs/ast/members.rb#405 + def initialize(new_name:, old_name:, kind:, annotations:, location:, comment:); end + + # source://rbs//lib/rbs/ast/members.rb#414 + def ==(other); end + + # Returns the value of attribute annotations. + # + # source://rbs//lib/rbs/ast/members.rb#401 + def annotations; end + + # Returns the value of attribute comment. + # + # source://rbs//lib/rbs/ast/members.rb#403 + def comment; end + + # source://rbs//lib/rbs/ast/members.rb#414 + def eql?(other); end + + # source://rbs//lib/rbs/ast/members.rb#423 + def hash; end + + # @return [Boolean] + # + # source://rbs//lib/rbs/ast/members.rb#439 + def instance?; end + + # Returns the value of attribute kind. + # + # source://rbs//lib/rbs/ast/members.rb#400 + def kind; end + + # Returns the value of attribute location. + # + # source://rbs//lib/rbs/ast/members.rb#402 + def location; end + + # Returns the value of attribute new_name. + # + # source://rbs//lib/rbs/ast/members.rb#398 + def new_name; end + + # Returns the value of attribute old_name. + # + # source://rbs//lib/rbs/ast/members.rb#399 + def old_name; end + + # @return [Boolean] + # + # source://rbs//lib/rbs/ast/members.rb#443 + def singleton?; end + + # source://rbs//lib/rbs/ast/members.rb#427 + def to_json(state = T.unsafe(nil)); end +end + +# source://rbs//lib/rbs/ast/members.rb#327 +class RBS::AST::Members::AttrAccessor < ::RBS::AST::Members::Base + include ::RBS::AST::Members::Attribute + + # source://rbs//lib/rbs/ast/members.rb#330 + def to_json(state = T.unsafe(nil)); end +end + +# source://rbs//lib/rbs/ast/members.rb#309 +class RBS::AST::Members::AttrReader < ::RBS::AST::Members::Base + include ::RBS::AST::Members::Attribute + + # source://rbs//lib/rbs/ast/members.rb#312 + def to_json(state = T.unsafe(nil)); end +end + +# source://rbs//lib/rbs/ast/members.rb#345 +class RBS::AST::Members::AttrWriter < ::RBS::AST::Members::Base + include ::RBS::AST::Members::Attribute + + # source://rbs//lib/rbs/ast/members.rb#348 + def to_json(state = T.unsafe(nil)); end +end + +# source://rbs//lib/rbs/ast/members.rb#258 +module RBS::AST::Members::Attribute + # source://rbs//lib/rbs/ast/members.rb#268 + def initialize(name:, type:, ivar_name:, kind:, annotations:, location:, comment:, visibility: T.unsafe(nil)); end + + # source://rbs//lib/rbs/ast/members.rb#279 + def ==(other); end + + # Returns the value of attribute annotations. + # + # source://rbs//lib/rbs/ast/members.rb#263 + def annotations; end + + # Returns the value of attribute comment. + # + # source://rbs//lib/rbs/ast/members.rb#265 + def comment; end + + # source://rbs//lib/rbs/ast/members.rb#279 + def eql?(other); end + + # source://rbs//lib/rbs/ast/members.rb#290 + def hash; end + + # Returns the value of attribute ivar_name. + # + # source://rbs//lib/rbs/ast/members.rb#262 + def ivar_name; end + + # Returns the value of attribute kind. + # + # source://rbs//lib/rbs/ast/members.rb#261 + def kind; end + + # Returns the value of attribute location. + # + # source://rbs//lib/rbs/ast/members.rb#264 + def location; end + + # Returns the value of attribute name. + # + # source://rbs//lib/rbs/ast/members.rb#259 + def name; end + + # Returns the value of attribute type. + # + # source://rbs//lib/rbs/ast/members.rb#260 + def type; end + + # source://rbs//lib/rbs/ast/members.rb#294 + def update(name: T.unsafe(nil), type: T.unsafe(nil), ivar_name: T.unsafe(nil), kind: T.unsafe(nil), annotations: T.unsafe(nil), location: T.unsafe(nil), comment: T.unsafe(nil), visibility: T.unsafe(nil)); end + + # Returns the value of attribute visibility. + # + # source://rbs//lib/rbs/ast/members.rb#266 + def visibility; end +end + +# source://rbs//lib/rbs/ast/members.rb#6 +class RBS::AST::Members::Base; end + +# source://rbs//lib/rbs/ast/members.rb#157 +class RBS::AST::Members::ClassInstanceVariable < ::RBS::AST::Members::Base + include ::RBS::AST::Members::Var + + # source://rbs//lib/rbs/ast/members.rb#160 + def to_json(state = T.unsafe(nil)); end +end + +# source://rbs//lib/rbs/ast/members.rb#171 +class RBS::AST::Members::ClassVariable < ::RBS::AST::Members::Base + include ::RBS::AST::Members::Var + + # source://rbs//lib/rbs/ast/members.rb#174 + def to_json(state = T.unsafe(nil)); end +end + +# source://rbs//lib/rbs/ast/members.rb#228 +class RBS::AST::Members::Extend < ::RBS::AST::Members::Base + include ::RBS::AST::Members::Mixin + + # source://rbs//lib/rbs/ast/members.rb#231 + def to_json(state = T.unsafe(nil)); end +end + +# source://rbs//lib/rbs/ast/members.rb#213 +class RBS::AST::Members::Include < ::RBS::AST::Members::Base + include ::RBS::AST::Members::Mixin + + # source://rbs//lib/rbs/ast/members.rb#216 + def to_json(state = T.unsafe(nil)); end +end + +# source://rbs//lib/rbs/ast/members.rb#143 +class RBS::AST::Members::InstanceVariable < ::RBS::AST::Members::Base + include ::RBS::AST::Members::Var + + # source://rbs//lib/rbs/ast/members.rb#146 + def to_json(state = T.unsafe(nil)); end +end + +# source://rbs//lib/rbs/ast/members.rb#363 +module RBS::AST::Members::LocationOnly + # source://rbs//lib/rbs/ast/members.rb#366 + def initialize(location:); end + + # source://rbs//lib/rbs/ast/members.rb#370 + def ==(other); end + + # source://rbs//lib/rbs/ast/members.rb#370 + def eql?(other); end + + # source://rbs//lib/rbs/ast/members.rb#376 + def hash; end + + # Returns the value of attribute location. + # + # source://rbs//lib/rbs/ast/members.rb#364 + def location; end +end + +# source://rbs//lib/rbs/ast/members.rb#9 +class RBS::AST::Members::MethodDefinition < ::RBS::AST::Members::Base + # @return [MethodDefinition] a new instance of MethodDefinition + # + # source://rbs//lib/rbs/ast/members.rb#53 + def initialize(name:, kind:, overloads:, annotations:, location:, comment:, overloading:, visibility:); end + + # source://rbs//lib/rbs/ast/members.rb#64 + def ==(other); end + + # Returns the value of attribute annotations. + # + # source://rbs//lib/rbs/ast/members.rb#47 + def annotations; end + + # Returns the value of attribute comment. + # + # source://rbs//lib/rbs/ast/members.rb#49 + def comment; end + + # source://rbs//lib/rbs/ast/members.rb#64 + def eql?(other); end + + # source://rbs//lib/rbs/ast/members.rb#75 + def hash; end + + # @return [Boolean] + # + # source://rbs//lib/rbs/ast/members.rb#79 + def instance?; end + + # Returns the value of attribute kind. + # + # source://rbs//lib/rbs/ast/members.rb#45 + def kind; end + + # Returns the value of attribute location. + # + # source://rbs//lib/rbs/ast/members.rb#48 + def location; end + + # Returns the value of attribute name. + # + # source://rbs//lib/rbs/ast/members.rb#44 + def name; end + + # Returns the value of attribute overloading. + # + # source://rbs//lib/rbs/ast/members.rb#50 + def overloading; end + + # @return [Boolean] + # + # source://rbs//lib/rbs/ast/members.rb#87 + def overloading?; end + + # Returns the value of attribute overloads. + # + # source://rbs//lib/rbs/ast/members.rb#46 + def overloads; end + + # @return [Boolean] + # + # source://rbs//lib/rbs/ast/members.rb#83 + def singleton?; end + + # source://rbs//lib/rbs/ast/members.rb#104 + def to_json(state = T.unsafe(nil)); end + + # source://rbs//lib/rbs/ast/members.rb#91 + def update(name: T.unsafe(nil), kind: T.unsafe(nil), overloads: T.unsafe(nil), annotations: T.unsafe(nil), location: T.unsafe(nil), comment: T.unsafe(nil), overloading: T.unsafe(nil), visibility: T.unsafe(nil)); end + + # Returns the value of attribute visibility. + # + # source://rbs//lib/rbs/ast/members.rb#51 + def visibility; end +end + +# source://rbs//lib/rbs/ast/members.rb#10 +class RBS::AST::Members::MethodDefinition::Overload + # @return [Overload] a new instance of Overload + # + # source://rbs//lib/rbs/ast/members.rb#13 + def initialize(method_type:, annotations:); end + + # source://rbs//lib/rbs/ast/members.rb#18 + def ==(other); end + + # Returns the value of attribute annotations. + # + # source://rbs//lib/rbs/ast/members.rb#11 + def annotations; end + + # source://rbs//lib/rbs/ast/members.rb#18 + def eql?(other); end + + # source://rbs//lib/rbs/ast/members.rb#22 + def hash; end + + # Returns the value of attribute method_type. + # + # source://rbs//lib/rbs/ast/members.rb#11 + def method_type; end + + # source://rbs//lib/rbs/ast/members.rb#32 + def sub(subst); end + + # source://rbs//lib/rbs/ast/members.rb#36 + def to_json(state = T.unsafe(nil)); end + + # source://rbs//lib/rbs/ast/members.rb#28 + def update(annotations: T.unsafe(nil), method_type: T.unsafe(nil)); end +end + +# source://rbs//lib/rbs/ast/members.rb#185 +module RBS::AST::Members::Mixin + # source://rbs//lib/rbs/ast/members.rb#192 + def initialize(name:, args:, annotations:, location:, comment:); end + + # source://rbs//lib/rbs/ast/members.rb#200 + def ==(other); end + + # Returns the value of attribute annotations. + # + # source://rbs//lib/rbs/ast/members.rb#188 + def annotations; end + + # Returns the value of attribute args. + # + # source://rbs//lib/rbs/ast/members.rb#187 + def args; end + + # Returns the value of attribute comment. + # + # source://rbs//lib/rbs/ast/members.rb#190 + def comment; end + + # @return [Boolean] + # + # source://rbs//lib/rbs/ast/members.rb#204 + def eql?(other); end + + # source://rbs//lib/rbs/ast/members.rb#208 + def hash; end + + # Returns the value of attribute location. + # + # source://rbs//lib/rbs/ast/members.rb#189 + def location; end + + # Returns the value of attribute name. + # + # source://rbs//lib/rbs/ast/members.rb#186 + def name; end +end + +# source://rbs//lib/rbs/ast/members.rb#243 +class RBS::AST::Members::Prepend < ::RBS::AST::Members::Base + include ::RBS::AST::Members::Mixin + + # source://rbs//lib/rbs/ast/members.rb#246 + def to_json(state = T.unsafe(nil)); end +end + +# source://rbs//lib/rbs/ast/members.rb#389 +class RBS::AST::Members::Private < ::RBS::AST::Members::Base + include ::RBS::AST::Members::LocationOnly + + # source://rbs//lib/rbs/ast/members.rb#392 + def to_json(state = T.unsafe(nil)); end +end + +# source://rbs//lib/rbs/ast/members.rb#381 +class RBS::AST::Members::Public < ::RBS::AST::Members::Base + include ::RBS::AST::Members::LocationOnly + + # source://rbs//lib/rbs/ast/members.rb#384 + def to_json(state = T.unsafe(nil)); end +end + +# source://rbs//lib/rbs/ast/members.rb#119 +module RBS::AST::Members::Var + # source://rbs//lib/rbs/ast/members.rb#125 + def initialize(name:, type:, location:, comment:); end + + # source://rbs//lib/rbs/ast/members.rb#132 + def ==(other); end + + # Returns the value of attribute comment. + # + # source://rbs//lib/rbs/ast/members.rb#123 + def comment; end + + # source://rbs//lib/rbs/ast/members.rb#132 + def eql?(other); end + + # source://rbs//lib/rbs/ast/members.rb#138 + def hash; end + + # Returns the value of attribute location. + # + # source://rbs//lib/rbs/ast/members.rb#122 + def location; end + + # Returns the value of attribute name. + # + # source://rbs//lib/rbs/ast/members.rb#120 + def name; end + + # Returns the value of attribute type. + # + # source://rbs//lib/rbs/ast/members.rb#121 + def type; end +end + +# source://rbs//lib/rbs/ast/type_param.rb#5 +class RBS::AST::TypeParam + # @return [TypeParam] a new instance of TypeParam + # + # source://rbs//lib/rbs/ast/type_param.rb#8 + def initialize(name:, variance:, upper_bound:, location:, default_type: T.unsafe(nil)); end + + # source://rbs//lib/rbs/ast/type_param.rb#33 + def ==(other); end + + # Returns the value of attribute default_type. + # + # source://rbs//lib/rbs/ast/type_param.rb#6 + def default_type; end + + # source://rbs//lib/rbs/ast/type_param.rb#33 + def eql?(other); end + + # source://rbs//lib/rbs/ast/type_param.rb#44 + def hash; end + + # Returns the value of attribute location. + # + # source://rbs//lib/rbs/ast/type_param.rb#6 + def location; end + + # source://rbs//lib/rbs/ast/type_param.rb#69 + def map_type(&block); end + + # Returns the value of attribute name. + # + # source://rbs//lib/rbs/ast/type_param.rb#6 + def name; end + + # source://rbs//lib/rbs/ast/type_param.rb#59 + def rename(name); end + + # source://rbs//lib/rbs/ast/type_param.rb#48 + def to_json(state = T.unsafe(nil)); end + + # source://rbs//lib/rbs/ast/type_param.rb#127 + def to_s; end + + # source://rbs//lib/rbs/ast/type_param.rb#24 + def unchecked!(value = T.unsafe(nil)); end + + # @return [Boolean] + # + # source://rbs//lib/rbs/ast/type_param.rb#29 + def unchecked?; end + + # source://rbs//lib/rbs/ast/type_param.rb#17 + def upper_bound; end + + # Returns the value of attribute upper_bound_type. + # + # source://rbs//lib/rbs/ast/type_param.rb#6 + def upper_bound_type; end + + # Returns the value of attribute variance. + # + # source://rbs//lib/rbs/ast/type_param.rb#6 + def variance; end + + class << self + # source://rbs//lib/rbs/ast/type_param.rb#156 + def application(params, args); end + + # source://rbs//lib/rbs/ast/type_param.rb#188 + def normalize_args(params, args); end + + # source://rbs//lib/rbs/ast/type_param.rb#109 + def rename(params, new_names:); end + + # source://rbs//lib/rbs/ast/type_param.rb#87 + def resolve_variables(params); end + + # source://rbs//lib/rbs/ast/type_param.rb#97 + def subst_var(vars, type); end + + # source://rbs//lib/rbs/ast/type_param.rb#209 + def validate(type_params); end + end +end + +# The Visitor class implements the Visitor pattern for traversing the RBS Abstract Syntax Tree (AST). +# +# It provides methods to visit each type of node in the AST, allowing for custom processing of each node type. +# +# This class is designed to be subclassed, with specific visit methods overridden to implement custom behavior for +# different node types. +# +# Example usage: +# +# ~~~rb +# class MyVisitor < RBS::AST::Visitor +# def visit_declaration_class(node) +# puts "Visiting class: #{node.name}" +# +# super # call `super` to run the default visiting behavior +# end +# end +# +# visitor = MyVisitor.new +# visitor.visit(ast_node) +# ~~~ +# +# source://rbs//lib/rbs/ast/visitor.rb#26 +class RBS::AST::Visitor + # source://rbs//lib/rbs/ast/visitor.rb#27 + def visit(node); end + + # source://rbs//lib/rbs/ast/visitor.rb#70 + def visit_all(nodes); end + + # source://rbs//lib/rbs/ast/visitor.rb#79 + def visit_declaration_class(node); end + + # source://rbs//lib/rbs/ast/visitor.rb#87 + def visit_declaration_constant(node); end + + # source://rbs//lib/rbs/ast/visitor.rb#76 + def visit_declaration_global(node); end + + # source://rbs//lib/rbs/ast/visitor.rb#93 + def visit_declaration_interface(node); end + + # source://rbs//lib/rbs/ast/visitor.rb#83 + def visit_declaration_module(node); end + + # source://rbs//lib/rbs/ast/visitor.rb#90 + def visit_declaration_type_alias(node); end + + # source://rbs//lib/rbs/ast/visitor.rb#97 + def visit_member_alias(node); end + + # source://rbs//lib/rbs/ast/visitor.rb#124 + def visit_member_attr_accessor(node); end + + # source://rbs//lib/rbs/ast/visitor.rb#118 + def visit_member_attr_reader(node); end + + # source://rbs//lib/rbs/ast/visitor.rb#121 + def visit_member_attr_writer(node); end + + # source://rbs//lib/rbs/ast/visitor.rb#100 + def visit_member_class_instance_variable(node); end + + # source://rbs//lib/rbs/ast/visitor.rb#103 + def visit_member_class_variable(node); end + + # source://rbs//lib/rbs/ast/visitor.rb#133 + def visit_member_extend(node); end + + # source://rbs//lib/rbs/ast/visitor.rb#127 + def visit_member_include(node); end + + # source://rbs//lib/rbs/ast/visitor.rb#106 + def visit_member_instance_variable(node); end + + # source://rbs//lib/rbs/ast/visitor.rb#115 + def visit_member_method_definition(node); end + + # source://rbs//lib/rbs/ast/visitor.rb#130 + def visit_member_prepend(node); end + + # source://rbs//lib/rbs/ast/visitor.rb#109 + def visit_member_private(node); end + + # source://rbs//lib/rbs/ast/visitor.rb#112 + def visit_member_public(node); end +end + +# source://rbs//lib/rbs/ancestor_graph.rb#4 +class RBS::AncestorGraph + # @return [AncestorGraph] a new instance of AncestorGraph + # + # source://rbs//lib/rbs/ancestor_graph.rb#13 + def initialize(env:, ancestor_builder: T.unsafe(nil)); end + + # Returns the value of attribute ancestor_builder. + # + # source://rbs//lib/rbs/ancestor_graph.rb#9 + def ancestor_builder; end + + # source://rbs//lib/rbs/ancestor_graph.rb#19 + def build; end + + # source://rbs//lib/rbs/ancestor_graph.rb#32 + def build_ancestors(node, ancestors); end + + # Returns the value of attribute children. + # + # source://rbs//lib/rbs/ancestor_graph.rb#11 + def children; end + + # source://rbs//lib/rbs/ancestor_graph.rb#64 + def each_ancestor(node, yielded: T.unsafe(nil), &block); end + + # source://rbs//lib/rbs/ancestor_graph.rb#56 + def each_child(node, &block); end + + # source://rbs//lib/rbs/ancestor_graph.rb#78 + def each_descendant(node, yielded: T.unsafe(nil), &block); end + + # source://rbs//lib/rbs/ancestor_graph.rb#48 + def each_parent(node, &block); end + + # Returns the value of attribute env. + # + # source://rbs//lib/rbs/ancestor_graph.rb#8 + def env; end + + # Returns the value of attribute parents. + # + # source://rbs//lib/rbs/ancestor_graph.rb#10 + def parents; end + + # source://rbs//lib/rbs/ancestor_graph.rb#43 + def register(parent:, child:); end +end + +# source://rbs//lib/rbs/ancestor_graph.rb#5 +class RBS::AncestorGraph::InstanceNode < ::Struct + def type_name; end + def type_name=(_); end + + class << self + def [](*_arg0); end + def inspect; end + def keyword_init?; end + def members; end + def new(*_arg0); end + end +end + +# source://rbs//lib/rbs/ancestor_graph.rb#6 +class RBS::AncestorGraph::SingletonNode < ::Struct + def type_name; end + def type_name=(_); end + + class << self + def [](*_arg0); end + def inspect; end + def keyword_init?; end + def members; end + def new(*_arg0); end + end +end + +# source://rbs//lib/rbs/errors.rb#19 +class RBS::BaseError < ::StandardError; end + +# source://rbs//lib/rbs/buffer.rb#4 +class RBS::Buffer + # @return [Buffer] a new instance of Buffer + # + # source://rbs//lib/rbs/buffer.rb#8 + def initialize(name:, content:); end + + # Returns the value of attribute content. + # + # source://rbs//lib/rbs/buffer.rb#6 + def content; end + + # source://rbs//lib/rbs/buffer.rb#63 + def inspect; end + + # source://rbs//lib/rbs/buffer.rb#59 + def last_position; end + + # source://rbs//lib/rbs/buffer.rb#13 + def lines; end + + # source://rbs//lib/rbs/buffer.rb#49 + def loc_to_pos(loc); end + + # Returns the value of attribute name. + # + # source://rbs//lib/rbs/buffer.rb#5 + def name; end + + # source://rbs//lib/rbs/buffer.rb#37 + def pos_to_loc(pos); end + + # source://rbs//lib/rbs/buffer.rb#17 + def ranges; end +end + +# source://rbs//lib/rbs/builtin_names.rb#4 +module RBS::BuiltinNames; end + +# source://rbs//lib/rbs/builtin_names.rb#45 +RBS::BuiltinNames::Array = T.let(T.unsafe(nil), RBS::BuiltinNames::Name) + +# source://rbs//lib/rbs/builtin_names.rb#37 +RBS::BuiltinNames::BasicObject = T.let(T.unsafe(nil), RBS::BuiltinNames::Name) + +# source://rbs//lib/rbs/builtin_names.rb#43 +RBS::BuiltinNames::Class = T.let(T.unsafe(nil), RBS::BuiltinNames::Name) + +# source://rbs//lib/rbs/builtin_names.rb#41 +RBS::BuiltinNames::Comparable = T.let(T.unsafe(nil), RBS::BuiltinNames::Name) + +# source://rbs//lib/rbs/builtin_names.rb#42 +RBS::BuiltinNames::Enumerable = T.let(T.unsafe(nil), RBS::BuiltinNames::Name) + +# source://rbs//lib/rbs/builtin_names.rb#48 +RBS::BuiltinNames::Enumerator = T.let(T.unsafe(nil), RBS::BuiltinNames::Name) + +# source://rbs//lib/rbs/builtin_names.rb#55 +RBS::BuiltinNames::FalseClass = T.let(T.unsafe(nil), RBS::BuiltinNames::Name) + +# source://rbs//lib/rbs/builtin_names.rb#52 +RBS::BuiltinNames::Float = T.let(T.unsafe(nil), RBS::BuiltinNames::Name) + +# source://rbs//lib/rbs/builtin_names.rb#46 +RBS::BuiltinNames::Hash = T.let(T.unsafe(nil), RBS::BuiltinNames::Name) + +# source://rbs//lib/rbs/builtin_names.rb#51 +RBS::BuiltinNames::Integer = T.let(T.unsafe(nil), RBS::BuiltinNames::Name) + +# source://rbs//lib/rbs/builtin_names.rb#39 +RBS::BuiltinNames::Kernel = T.let(T.unsafe(nil), RBS::BuiltinNames::Name) + +# source://rbs//lib/rbs/builtin_names.rb#44 +RBS::BuiltinNames::Module = T.let(T.unsafe(nil), RBS::BuiltinNames::Name) + +# source://rbs//lib/rbs/builtin_names.rb#5 +class RBS::BuiltinNames::Name + # @return [Name] a new instance of Name + # + # source://rbs//lib/rbs/builtin_names.rb#8 + def initialize(name:); end + + # source://rbs//lib/rbs/builtin_names.rb#16 + def instance_type(*args); end + + # @return [Boolean] + # + # source://rbs//lib/rbs/builtin_names.rb#20 + def instance_type?(type); end + + # Returns the value of attribute name. + # + # source://rbs//lib/rbs/builtin_names.rb#6 + def name; end + + # source://rbs//lib/rbs/builtin_names.rb#24 + def singleton_type; end + + # @return [Boolean] + # + # source://rbs//lib/rbs/builtin_names.rb#28 + def singleton_type?(type); end + + # source://rbs//lib/rbs/builtin_names.rb#12 + def to_s; end + + class << self + # source://rbs//lib/rbs/builtin_names.rb#32 + def define(name, namespace: T.unsafe(nil)); end + end +end + +# source://rbs//lib/rbs/builtin_names.rb#56 +RBS::BuiltinNames::Numeric = T.let(T.unsafe(nil), RBS::BuiltinNames::Name) + +# source://rbs//lib/rbs/builtin_names.rb#38 +RBS::BuiltinNames::Object = T.let(T.unsafe(nil), RBS::BuiltinNames::Name) + +# source://rbs//lib/rbs/builtin_names.rb#47 +RBS::BuiltinNames::Range = T.let(T.unsafe(nil), RBS::BuiltinNames::Name) + +# source://rbs//lib/rbs/builtin_names.rb#53 +RBS::BuiltinNames::Regexp = T.let(T.unsafe(nil), RBS::BuiltinNames::Name) + +# source://rbs//lib/rbs/builtin_names.rb#49 +RBS::BuiltinNames::Set = T.let(T.unsafe(nil), RBS::BuiltinNames::Name) + +# source://rbs//lib/rbs/builtin_names.rb#40 +RBS::BuiltinNames::String = T.let(T.unsafe(nil), RBS::BuiltinNames::Name) + +# source://rbs//lib/rbs/builtin_names.rb#50 +RBS::BuiltinNames::Symbol = T.let(T.unsafe(nil), RBS::BuiltinNames::Name) + +# source://rbs//lib/rbs/builtin_names.rb#54 +RBS::BuiltinNames::TrueClass = T.let(T.unsafe(nil), RBS::BuiltinNames::Name) + +# source://rbs//lib/rbs/cli/colored_io.rb#4 +class RBS::CLI; end + +# source://rbs//lib/rbs/cli/colored_io.rb#5 +class RBS::CLI::ColoredIO + # @return [ColoredIO] a new instance of ColoredIO + # + # source://rbs//lib/rbs/cli/colored_io.rb#8 + def initialize(stdout:); end + + # source://rbs//lib/rbs/cli/colored_io.rb#28 + def puts(*_arg0, **_arg1, &_arg2); end + + # source://rbs//lib/rbs/cli/colored_io.rb#20 + def puts_green(string); end + + # source://rbs//lib/rbs/cli/colored_io.rb#12 + def puts_red(string); end + + # Returns the value of attribute stdout. + # + # source://rbs//lib/rbs/cli/colored_io.rb#6 + def stdout; end + + private + + # @return [Boolean] + # + # source://rbs//lib/rbs/cli/colored_io.rb#43 + def are_colors_disabled?; end + + # @return [Boolean] + # + # source://rbs//lib/rbs/cli/colored_io.rb#39 + def are_colors_supported?; end + + # https://github.com/rubygems/rubygems/blob/ed65279100234a17d65d71fe26de5083984ac5b8/bundler/lib/bundler/vendor/thor/lib/thor/shell/color.rb#L99-L109 + # + # @return [Boolean] + # + # source://rbs//lib/rbs/cli/colored_io.rb#35 + def can_display_colors?; end +end + +# source://rbs//lib/rbs/collection/sources/base.rb#4 +module RBS::Collection; end + +# source://rbs//lib/rbs/collection/cleaner.rb#5 +class RBS::Collection::Cleaner + # @return [Cleaner] a new instance of Cleaner + # + # source://rbs//lib/rbs/collection/cleaner.rb#8 + def initialize(lockfile_path:); end + + # source://rbs//lib/rbs/collection/cleaner.rb#12 + def clean; end + + # Returns the value of attribute lock. + # + # source://rbs//lib/rbs/collection/cleaner.rb#6 + def lock; end + + # @return [Boolean] + # + # source://rbs//lib/rbs/collection/cleaner.rb#30 + def needed?(gem_name, version); end +end + +# This class represent the configuration file. +# +# source://rbs//lib/rbs/collection/config.rb#7 +class RBS::Collection::Config + # @return [Config] a new instance of Config + # + # source://rbs//lib/rbs/collection/config.rb#49 + def initialize(data, config_path:); end + + # Returns the value of attribute config_path. + # + # source://rbs//lib/rbs/collection/config.rb#19 + def config_path; end + + # Returns the value of attribute data. + # + # source://rbs//lib/rbs/collection/config.rb#19 + def data; end + + # source://rbs//lib/rbs/collection/config.rb#54 + def gem(gem_name); end + + # source://rbs//lib/rbs/collection/config.rb#74 + def gems; end + + # source://rbs//lib/rbs/collection/config.rb#58 + def repo_path; end + + # source://rbs//lib/rbs/collection/config.rb#62 + def repo_path_data; end + + # source://rbs//lib/rbs/collection/config.rb#66 + def sources; end + + class << self + # source://rbs//lib/rbs/collection/config.rb#21 + def find_config_path; end + + # source://rbs//lib/rbs/collection/config.rb#41 + def from_path(path); end + + # Generate a rbs lockfile from Gemfile.lock to `config_path`. + # If `with_lockfile` is true, it respects existing rbs lockfile. + # + # source://rbs//lib/rbs/collection/config.rb#34 + def generate_lockfile(config_path:, definition:, with_lockfile: T.unsafe(nil)); end + + # source://rbs//lib/rbs/collection/config.rb#45 + def to_lockfile_path(config_path); end + end +end + +# source://rbs//lib/rbs/collection/config.rb#8 +class RBS::Collection::Config::CollectionNotAvailable < ::StandardError + # @return [CollectionNotAvailable] a new instance of CollectionNotAvailable + # + # source://rbs//lib/rbs/collection/config.rb#9 + def initialize; end +end + +# source://rbs//lib/rbs/collection/config/lockfile.rb#6 +class RBS::Collection::Config::Lockfile + # @return [Lockfile] a new instance of Lockfile + # + # source://rbs//lib/rbs/collection/config/lockfile.rb#9 + def initialize(lockfile_path:, path:, gemfile_lock_path:); end + + # @raise [CollectionNotAvailable] + # + # source://rbs//lib/rbs/collection/config/lockfile.rb#73 + def check_rbs_availability!; end + + # source://rbs//lib/rbs/collection/config/lockfile.rb#18 + def fullpath; end + + # source://rbs//lib/rbs/collection/config/lockfile.rb#22 + def gemfile_lock_fullpath; end + + # Returns the value of attribute gemfile_lock_path. + # + # source://rbs//lib/rbs/collection/config/lockfile.rb#7 + def gemfile_lock_path; end + + # Returns the value of attribute gems. + # + # source://rbs//lib/rbs/collection/config/lockfile.rb#7 + def gems; end + + # source://rbs//lib/rbs/collection/config/lockfile.rb#65 + def library_data(lib); end + + # Returns the value of attribute lockfile_dir. + # + # source://rbs//lib/rbs/collection/config/lockfile.rb#7 + def lockfile_dir; end + + # Returns the value of attribute lockfile_path. + # + # source://rbs//lib/rbs/collection/config/lockfile.rb#7 + def lockfile_path; end + + # Returns the value of attribute path. + # + # source://rbs//lib/rbs/collection/config/lockfile.rb#7 + def path; end + + # Returns the value of attribute sources. + # + # source://rbs//lib/rbs/collection/config/lockfile.rb#7 + def sources; end + + # source://rbs//lib/rbs/collection/config/lockfile.rb#28 + def to_lockfile; end + + class << self + # source://rbs//lib/rbs/collection/config/lockfile.rb#42 + def from_lockfile(lockfile_path:, data:); end + end +end + +# source://rbs//lib/rbs/collection/config/lockfile_generator.rb#6 +class RBS::Collection::Config::LockfileGenerator + # @return [LockfileGenerator] a new instance of LockfileGenerator + # + # source://rbs//lib/rbs/collection/config/lockfile_generator.rb#33 + def initialize(config:, definition:, with_lockfile:); end + + # Returns the value of attribute config. + # + # source://rbs//lib/rbs/collection/config/lockfile_generator.rb#25 + def config; end + + # Returns the value of attribute definition. + # + # source://rbs//lib/rbs/collection/config/lockfile_generator.rb#25 + def definition; end + + # Returns the value of attribute existing_lockfile. + # + # source://rbs//lib/rbs/collection/config/lockfile_generator.rb#25 + def existing_lockfile; end + + # Returns the value of attribute gem_entries. + # + # source://rbs//lib/rbs/collection/config/lockfile_generator.rb#25 + def gem_entries; end + + # Returns the value of attribute gem_hash. + # + # source://rbs//lib/rbs/collection/config/lockfile_generator.rb#25 + def gem_hash; end + + # source://rbs//lib/rbs/collection/config/lockfile_generator.rb#61 + def generate; end + + # Returns the value of attribute lockfile. + # + # source://rbs//lib/rbs/collection/config/lockfile_generator.rb#25 + def lockfile; end + + private + + # source://rbs//lib/rbs/collection/config/lockfile_generator.rb#94 + def assign_gem(name:, version:, skip: T.unsafe(nil)); end + + # source://rbs//lib/rbs/collection/config/lockfile_generator.rb#160 + def assign_stdlib(name:, from_gem: T.unsafe(nil)); end + + # source://rbs//lib/rbs/collection/config/lockfile_generator.rb#213 + def find_best_version(version:, versions:); end + + # source://rbs//lib/rbs/collection/config/lockfile_generator.rb#207 + def find_source(name:); end + + # source://rbs//lib/rbs/collection/config/lockfile_generator.rb#86 + def validate_gemfile_lock_path!(lock:, gemfile_lock_path:); end + + class << self + # source://rbs//lib/rbs/collection/config/lockfile_generator.rb#27 + def generate(config:, definition:, with_lockfile: T.unsafe(nil)); end + end +end + +# source://rbs//lib/rbs/collection/config/lockfile_generator.rb#7 +RBS::Collection::Config::LockfileGenerator::ALUMNI_STDLIBS = T.let(T.unsafe(nil), Hash) + +# source://rbs//lib/rbs/collection/config/lockfile_generator.rb#9 +class RBS::Collection::Config::LockfileGenerator::GemfileLockMismatchError < ::StandardError + # @return [GemfileLockMismatchError] a new instance of GemfileLockMismatchError + # + # source://rbs//lib/rbs/collection/config/lockfile_generator.rb#10 + def initialize(expected:, actual:); end + + # source://rbs//lib/rbs/collection/config/lockfile_generator.rb#15 + def message; end +end + +# source://rbs//lib/rbs/collection/config.rb#17 +RBS::Collection::Config::PATH = T.let(T.unsafe(nil), Pathname) + +# source://rbs//lib/rbs/collection/installer.rb#5 +class RBS::Collection::Installer + # @return [Installer] a new instance of Installer + # + # source://rbs//lib/rbs/collection/installer.rb#9 + def initialize(lockfile_path:, stdout: T.unsafe(nil)); end + + # source://rbs//lib/rbs/collection/installer.rb#14 + def install_from_lockfile; end + + # Returns the value of attribute lockfile. + # + # source://rbs//lib/rbs/collection/installer.rb#6 + def lockfile; end + + # Returns the value of attribute stdout. + # + # source://rbs//lib/rbs/collection/installer.rb#7 + def stdout; end +end + +# source://rbs//lib/rbs/collection/sources/base.rb#5 +module RBS::Collection::Sources + class << self + # source://rbs//lib/rbs/collection/sources.rb#12 + def from_config_entry(source_entry, base_directory:); end + end +end + +# source://rbs//lib/rbs/collection/sources/base.rb#6 +module RBS::Collection::Sources::Base + # source://rbs//lib/rbs/collection/sources/base.rb#7 + def dependencies_of(name, version); end +end + +# source://rbs//lib/rbs/collection/sources/git.rb#10 +class RBS::Collection::Sources::Git + include ::RBS::Collection::Sources::Base + + # @return [Git] a new instance of Git + # + # source://rbs//lib/rbs/collection/sources/git.rb#18 + def initialize(name:, revision:, remote:, repo_dir:); end + + # @return [Boolean] + # + # source://rbs//lib/rbs/collection/sources/git.rb#26 + def has?(name, version); end + + # source://rbs//lib/rbs/collection/sources/git.rb#43 + def install(dest:, name:, version:, stdout:); end + + # source://rbs//lib/rbs/collection/sources/git.rb#223 + def load_metadata(dir:); end + + # source://rbs//lib/rbs/collection/sources/git.rb#73 + def manifest_of(name, version); end + + # source://rbs//lib/rbs/collection/sources/git.rb#207 + def metadata_content(name:, version:); end + + # Returns the value of attribute name. + # + # source://rbs//lib/rbs/collection/sources/git.rb#16 + def name; end + + # Returns the value of attribute remote. + # + # source://rbs//lib/rbs/collection/sources/git.rb#16 + def remote; end + + # Returns the value of attribute repo_dir. + # + # source://rbs//lib/rbs/collection/sources/git.rb#16 + def repo_dir; end + + # source://rbs//lib/rbs/collection/sources/git.rb#172 + def resolved_revision; end + + # Returns the value of attribute revision. + # + # source://rbs//lib/rbs/collection/sources/git.rb#16 + def revision; end + + # source://rbs//lib/rbs/collection/sources/git.rb#113 + def to_lockfile; end + + # source://rbs//lib/rbs/collection/sources/git.rb#36 + def versions(name); end + + # source://rbs//lib/rbs/collection/sources/git.rb#215 + def write_metadata(dir:, name:, version:); end + + private + + # source://rbs//lib/rbs/collection/sources/git.rb#87 + def _install(dest:, name:, version:); end + + # @return [Boolean] + # + # source://rbs//lib/rbs/collection/sources/git.rb#183 + def commit_hash?; end + + # source://rbs//lib/rbs/collection/sources/git.rb#99 + def cp_r(src, dest); end + + # source://rbs//lib/rbs/collection/sources/git.rb#123 + def format_config_entry(name, version); end + + # source://rbs//lib/rbs/collection/sources/git.rb#168 + def gem_repo_dir; end + + # source://rbs//lib/rbs/collection/sources/git.rb#229 + def gems_versions; end + + # source://rbs//lib/rbs/collection/sources/git.rb#187 + def git(*cmd, **opt); end + + # @return [Boolean] + # + # source://rbs//lib/rbs/collection/sources/git.rb#191 + def git?(*cmd, **opt); end + + # source://rbs//lib/rbs/collection/sources/git.rb#158 + def git_dir; end + + # @return [Boolean] + # + # source://rbs//lib/rbs/collection/sources/git.rb#152 + def need_to_fetch?(revision); end + + # source://rbs//lib/rbs/collection/sources/git.rb#130 + def setup!; end + + # source://rbs//lib/rbs/collection/sources/git.rb#197 + def sh!(*cmd, **opt); end +end + +# source://rbs//lib/rbs/collection/sources/git.rb#14 +class RBS::Collection::Sources::Git::CommandError < ::StandardError; end + +# source://rbs//lib/rbs/collection/sources/git.rb#12 +RBS::Collection::Sources::Git::METADATA_FILENAME = T.let(T.unsafe(nil), String) + +# source://rbs//lib/rbs/collection/sources/local.rb#6 +class RBS::Collection::Sources::Local + include ::RBS::Collection::Sources::Base + + # @return [Local] a new instance of Local + # + # source://rbs//lib/rbs/collection/sources/local.rb#11 + def initialize(path:, base_directory:); end + + # Returns the value of attribute full_path. + # + # source://rbs//lib/rbs/collection/sources/local.rb#9 + def full_path; end + + # @return [Boolean] + # + # source://rbs//lib/rbs/collection/sources/local.rb#17 + def has?(name, version); end + + # Create a symlink instead of copying file to refer files in @path. + # By avoiding copying RBS files, the users do not need re-run `rbs collection install` + # when the RBS files are updated. + # + # source://rbs//lib/rbs/collection/sources/local.rb#32 + def install(dest:, name:, version:, stdout:); end + + # source://rbs//lib/rbs/collection/sources/local.rb#64 + def manifest_of(name, version); end + + # Returns the value of attribute path. + # + # source://rbs//lib/rbs/collection/sources/local.rb#9 + def path; end + + # source://rbs//lib/rbs/collection/sources/local.rb#72 + def to_lockfile; end + + # source://rbs//lib/rbs/collection/sources/local.rb#25 + def versions(name); end + + private + + # source://rbs//lib/rbs/collection/sources/local.rb#59 + def _install(src, dst); end +end + +# Signatures that are inclduded in gem package as sig/ directory. +# +# source://rbs//lib/rbs/collection/sources/rubygems.rb#9 +class RBS::Collection::Sources::Rubygems + include ::RBS::Collection::Sources::Base + include ::Singleton + extend ::Singleton::SingletonClassMethods + + # @return [Boolean] + # + # source://rbs//lib/rbs/collection/sources/rubygems.rb#13 + def has?(name, version); end + + # source://rbs//lib/rbs/collection/sources/rubygems.rb#23 + def install(dest:, name:, version:, stdout:); end + + # source://rbs//lib/rbs/collection/sources/rubygems.rb#29 + def manifest_of(name, version); end + + # source://rbs//lib/rbs/collection/sources/rubygems.rb#36 + def to_lockfile; end + + # source://rbs//lib/rbs/collection/sources/rubygems.rb#17 + def versions(name); end + + private + + # source://rbs//lib/rbs/collection/sources/rubygems.rb#42 + def gem_sig_path(name, version); end + + class << self + private + + def allocate; end + def new(*_arg0); end + end +end + +# signatures that are bundled in rbs gem under the stdlib/ directory +# +# source://rbs//lib/rbs/collection/sources/stdlib.rb#9 +class RBS::Collection::Sources::Stdlib + include ::RBS::Collection::Sources::Base + include ::Singleton + extend ::Singleton::SingletonClassMethods + + # @return [Boolean] + # + # source://rbs//lib/rbs/collection/sources/stdlib.rb#15 + def has?(name, version); end + + # source://rbs//lib/rbs/collection/sources/stdlib.rb#23 + def install(dest:, name:, version:, stdout:); end + + # source://rbs//lib/rbs/collection/sources/stdlib.rb#29 + def manifest_of(name, version); end + + # source://rbs//lib/rbs/collection/sources/stdlib.rb#38 + def to_lockfile; end + + # source://rbs//lib/rbs/collection/sources/stdlib.rb#19 + def versions(name); end + + private + + # source://rbs//lib/rbs/collection/sources/stdlib.rb#44 + def lookup(name, version); end + + class << self + private + + def allocate; end + def new(*_arg0); end + end +end + +# source://rbs//lib/rbs/collection/sources/stdlib.rb#13 +RBS::Collection::Sources::Stdlib::REPO = T.let(T.unsafe(nil), RBS::Repository) + +# source://rbs//lib/rbs/constant.rb#4 +class RBS::Constant + # @return [Constant] a new instance of Constant + # + # source://rbs//lib/rbs/constant.rb#9 + def initialize(name:, type:, entry:); end + + # source://rbs//lib/rbs/constant.rb#15 + def ==(other); end + + # Returns the value of attribute entry. + # + # source://rbs//lib/rbs/constant.rb#7 + def entry; end + + # source://rbs//lib/rbs/constant.rb#15 + def eql?(other); end + + # source://rbs//lib/rbs/constant.rb#24 + def hash; end + + # Returns the value of attribute name. + # + # source://rbs//lib/rbs/constant.rb#5 + def name; end + + # Returns the value of attribute type. + # + # source://rbs//lib/rbs/constant.rb#6 + def type; end +end + +# source://rbs//lib/rbs/errors.rb#553 +class RBS::CyclicClassAliasDefinitionError < ::RBS::BaseError + include ::RBS::DetailedMessageable + + # @return [CyclicClassAliasDefinitionError] a new instance of CyclicClassAliasDefinitionError + # + # source://rbs//lib/rbs/errors.rb#558 + def initialize(entry); end + + # Returns the value of attribute alias_entry. + # + # source://rbs//lib/rbs/errors.rb#556 + def alias_entry; end + + # source://rbs//lib/rbs/errors.rb#564 + def location; end +end + +# source://rbs//lib/rbs/errors.rb#514 +class RBS::CyclicTypeParameterBound < ::RBS::BaseError + include ::RBS::DetailedMessageable + + # @return [CyclicTypeParameterBound] a new instance of CyclicTypeParameterBound + # + # source://rbs//lib/rbs/errors.rb#519 + def initialize(type_name:, method_name:, params:, location:); end + + # Returns the value of attribute location. + # + # source://rbs//lib/rbs/errors.rb#517 + def location; end + + # Returns the value of attribute method_name. + # + # source://rbs//lib/rbs/errors.rb#517 + def method_name; end + + # Returns the value of attribute params. + # + # source://rbs//lib/rbs/errors.rb#517 + def params; end + + # Returns the value of attribute type_name. + # + # source://rbs//lib/rbs/errors.rb#517 + def type_name; end +end + +# source://rbs//lib/rbs/definition.rb#4 +class RBS::Definition + # @return [Definition] a new instance of Definition + # + # source://rbs//lib/rbs/definition.rb#284 + def initialize(type_name:, entry:, self_type:, ancestors:); end + + # Returns the value of attribute ancestors. + # + # source://rbs//lib/rbs/definition.rb#278 + def ancestors; end + + # @return [Boolean] + # + # source://rbs//lib/rbs/definition.rb#307 + def class?; end + + # @return [Boolean] + # + # source://rbs//lib/rbs/definition.rb#324 + def class_type?; end + + # Returns the value of attribute class_variables. + # + # source://rbs//lib/rbs/definition.rb#282 + def class_variables; end + + # source://rbs//lib/rbs/definition.rb#369 + def each_type(&block); end + + # Returns the value of attribute entry. + # + # source://rbs//lib/rbs/definition.rb#277 + def entry; end + + # @return [Boolean] + # + # source://rbs//lib/rbs/definition.rb#328 + def instance_type?; end + + # Returns the value of attribute instance_variables. + # + # source://rbs//lib/rbs/definition.rb#281 + def instance_variables; end + + # @return [Boolean] + # + # source://rbs//lib/rbs/definition.rb#315 + def interface?; end + + # @return [Boolean] + # + # source://rbs//lib/rbs/definition.rb#332 + def interface_type?; end + + # source://rbs//lib/rbs/definition.rb#359 + def map_method_type(&block); end + + # Returns the value of attribute methods. + # + # source://rbs//lib/rbs/definition.rb#280 + def methods; end + + # @return [Boolean] + # + # source://rbs//lib/rbs/definition.rb#311 + def module?; end + + # Returns the value of attribute self_type. + # + # source://rbs//lib/rbs/definition.rb#279 + def self_type; end + + # source://rbs//lib/rbs/definition.rb#349 + def sub(s); end + + # Returns the value of attribute type_name. + # + # source://rbs//lib/rbs/definition.rb#276 + def type_name; end + + # source://rbs//lib/rbs/definition.rb#336 + def type_params; end + + # source://rbs//lib/rbs/definition.rb#340 + def type_params_decl; end +end + +# source://rbs//lib/rbs/definition.rb#191 +module RBS::Definition::Ancestor; end + +# source://rbs//lib/rbs/definition.rb#192 +class RBS::Definition::Ancestor::Instance + # @return [Instance] a new instance of Instance + # + # source://rbs//lib/rbs/definition.rb#195 + def initialize(name:, args:, source:); end + + # source://rbs//lib/rbs/definition.rb#201 + def ==(other); end + + # Returns the value of attribute args. + # + # source://rbs//lib/rbs/definition.rb#193 + def args; end + + # source://rbs//lib/rbs/definition.rb#201 + def eql?(other); end + + # source://rbs//lib/rbs/definition.rb#207 + def hash; end + + # Returns the value of attribute name. + # + # source://rbs//lib/rbs/definition.rb#193 + def name; end + + # Returns the value of attribute source. + # + # source://rbs//lib/rbs/definition.rb#193 + def source; end +end + +# source://rbs//lib/rbs/definition.rb#212 +class RBS::Definition::Ancestor::Singleton + # @return [Singleton] a new instance of Singleton + # + # source://rbs//lib/rbs/definition.rb#215 + def initialize(name:); end + + # source://rbs//lib/rbs/definition.rb#219 + def ==(other); end + + # source://rbs//lib/rbs/definition.rb#219 + def eql?(other); end + + # source://rbs//lib/rbs/definition.rb#225 + def hash; end + + # Returns the value of attribute name. + # + # source://rbs//lib/rbs/definition.rb#213 + def name; end +end + +# source://rbs//lib/rbs/definition.rb#231 +class RBS::Definition::InstanceAncestors + # @return [InstanceAncestors] a new instance of InstanceAncestors + # + # source://rbs//lib/rbs/definition.rb#236 + def initialize(type_name:, params:, ancestors:); end + + # Returns the value of attribute ancestors. + # + # source://rbs//lib/rbs/definition.rb#234 + def ancestors; end + + # source://rbs//lib/rbs/definition.rb#242 + def apply(args, env:, location:); end + + # Returns the value of attribute params. + # + # source://rbs//lib/rbs/definition.rb#233 + def params; end + + # Returns the value of attribute type_name. + # + # source://rbs//lib/rbs/definition.rb#232 + def type_name; end +end + +# source://rbs//lib/rbs/definition.rb#25 +class RBS::Definition::Method + # @return [Method] a new instance of Method + # + # source://rbs//lib/rbs/definition.rb#83 + def initialize(super_method:, defs:, accessibility:, alias_of:, annotations: T.unsafe(nil)); end + + # source://rbs//lib/rbs/definition.rb#91 + def ==(other); end + + # Returns the value of attribute accessibility. + # + # source://rbs//lib/rbs/definition.rb#79 + def accessibility; end + + # Returns the value of attribute alias_of. + # + # source://rbs//lib/rbs/definition.rb#81 + def alias_of; end + + # source://rbs//lib/rbs/definition.rb#128 + def annotations; end + + # source://rbs//lib/rbs/definition.rb#124 + def comments; end + + # source://rbs//lib/rbs/definition.rb#106 + def defined_in; end + + # Returns the value of attribute defs. + # + # source://rbs//lib/rbs/definition.rb#78 + def defs; end + + # source://rbs//lib/rbs/definition.rb#91 + def eql?(other); end + + # Returns the value of attribute extra_annotations. + # + # source://rbs//lib/rbs/definition.rb#80 + def extra_annotations; end + + # source://rbs//lib/rbs/definition.rb#102 + def hash; end + + # source://rbs//lib/rbs/definition.rb#113 + def implemented_in; end + + # source://rbs//lib/rbs/definition.rb#171 + def map_method_type(&block); end + + # source://rbs//lib/rbs/definition.rb#153 + def map_type(&block); end + + # source://rbs//lib/rbs/definition.rb#162 + def map_type_bound(&block); end + + # source://rbs//lib/rbs/definition.rb#132 + def members; end + + # source://rbs//lib/rbs/definition.rb#120 + def method_types; end + + # @return [Boolean] + # + # source://rbs//lib/rbs/definition.rb#140 + def private?; end + + # @return [Boolean] + # + # source://rbs//lib/rbs/definition.rb#136 + def public?; end + + # source://rbs//lib/rbs/definition.rb#144 + def sub(s); end + + # Returns the value of attribute super_method. + # + # source://rbs//lib/rbs/definition.rb#77 + def super_method; end + + # source://rbs//lib/rbs/definition.rb#180 + def update(super_method: T.unsafe(nil), defs: T.unsafe(nil), accessibility: T.unsafe(nil), alias_of: T.unsafe(nil), annotations: T.unsafe(nil)); end +end + +# source://rbs//lib/rbs/definition.rb#26 +class RBS::Definition::Method::TypeDef + # @return [TypeDef] a new instance of TypeDef + # + # source://rbs//lib/rbs/definition.rb#35 + def initialize(type:, member:, defined_in:, implemented_in:, overload_annotations: T.unsafe(nil)); end + + # source://rbs//lib/rbs/definition.rb#45 + def ==(other); end + + # Returns the value of attribute annotations. + # + # source://rbs//lib/rbs/definition.rb#33 + def annotations; end + + # source://rbs//lib/rbs/definition.rb#59 + def comment; end + + # Returns the value of attribute defined_in. + # + # source://rbs//lib/rbs/definition.rb#29 + def defined_in; end + + # source://rbs//lib/rbs/definition.rb#45 + def eql?(other); end + + # source://rbs//lib/rbs/definition.rb#55 + def hash; end + + # Returns the value of attribute implemented_in. + # + # source://rbs//lib/rbs/definition.rb#30 + def implemented_in; end + + # Returns the value of attribute member. + # + # source://rbs//lib/rbs/definition.rb#28 + def member; end + + # Returns the value of attribute member_annotations. + # + # source://rbs//lib/rbs/definition.rb#31 + def member_annotations; end + + # @return [Boolean] + # + # source://rbs//lib/rbs/definition.rb#67 + def overload?; end + + # Returns the value of attribute overload_annotations. + # + # source://rbs//lib/rbs/definition.rb#32 + def overload_annotations; end + + # Returns the value of attribute type. + # + # source://rbs//lib/rbs/definition.rb#27 + def type; end + + # source://rbs//lib/rbs/definition.rb#63 + 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#266 +class RBS::Definition::SingletonAncestors + # @return [SingletonAncestors] a new instance of SingletonAncestors + # + # source://rbs//lib/rbs/definition.rb#270 + def initialize(type_name:, ancestors:); end + + # Returns the value of attribute ancestors. + # + # source://rbs//lib/rbs/definition.rb#268 + def ancestors; end + + # Returns the value of attribute type_name. + # + # source://rbs//lib/rbs/definition.rb#267 + def type_name; end +end + +# source://rbs//lib/rbs/definition.rb#5 +class RBS::Definition::Variable + # @return [Variable] a new instance of Variable + # + # source://rbs//lib/rbs/definition.rb#10 + def initialize(parent_variable:, type:, declared_in:); end + + # Returns the value of attribute declared_in. + # + # source://rbs//lib/rbs/definition.rb#8 + def declared_in; end + + # Returns the value of attribute parent_variable. + # + # source://rbs//lib/rbs/definition.rb#6 + def parent_variable; end + + # source://rbs//lib/rbs/definition.rb#16 + def sub(s); end + + # Returns the value of attribute type. + # + # source://rbs//lib/rbs/definition.rb#7 + def type; end +end + +# source://rbs//lib/rbs/definition_builder.rb#4 +class RBS::DefinitionBuilder + # @return [DefinitionBuilder] a new instance of DefinitionBuilder + # + # source://rbs//lib/rbs/definition_builder.rb#14 + def initialize(env:, ancestor_builder: T.unsafe(nil), method_builder: T.unsafe(nil)); end + + # Returns the value of attribute ancestor_builder. + # + # source://rbs//lib/rbs/definition_builder.rb#6 + def ancestor_builder; end + + # source://rbs//lib/rbs/definition_builder.rb#168 + def build_instance(type_name); end + + # source://rbs//lib/rbs/definition_builder.rb#43 + def build_interface(type_name); end + + # source://rbs//lib/rbs/definition_builder.rb#301 + def build_singleton(type_name); end + + # Builds a definition for singleton without .new method. + # + # source://rbs//lib/rbs/definition_builder.rb#230 + def build_singleton0(type_name); end + + # source://rbs//lib/rbs/definition_builder.rb#85 + def define_instance(definition, type_name, subst); end + + # source://rbs//lib/rbs/definition_builder.rb#33 + def define_interface(definition, type_name, subst); end + + # source://rbs//lib/rbs/definition_builder.rb#607 + 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 + def ensure_namespace!(namespace, location:); end + + # Returns the value of attribute env. + # + # source://rbs//lib/rbs/definition_builder.rb#5 + def env; end + + # source://rbs//lib/rbs/definition_builder.rb#770 + def expand_alias(type_name); end + + # source://rbs//lib/rbs/definition_builder.rb#774 + def expand_alias1(type_name); end + + # source://rbs//lib/rbs/definition_builder.rb#781 + def expand_alias2(type_name, args); end + + # source://rbs//lib/rbs/definition_builder.rb#546 + def import_methods(definition, module_name, module_methods, interfaces_methods, subst, self_type_methods); end + + # source://rbs//lib/rbs/definition_builder.rb#538 + def insert_variable(type_name, variables, name:, type:); end + + # Returns the value of attribute instance_cache. + # + # source://rbs//lib/rbs/definition_builder.rb#9 + def instance_cache; end + + # Returns the value of attribute interface_cache. + # + # source://rbs//lib/rbs/definition_builder.rb#12 + def interface_cache; end + + # source://rbs//lib/rbs/definition_builder.rb#412 + def interface_methods(interface_ancestors); end + + # Returns the value of attribute method_builder. + # + # source://rbs//lib/rbs/definition_builder.rb#7 + def method_builder; end + + # Returns the value of attribute singleton0_cache. + # + # source://rbs//lib/rbs/definition_builder.rb#11 + def singleton0_cache; end + + # Returns the value of attribute singleton_cache. + # + # source://rbs//lib/rbs/definition_builder.rb#10 + def singleton_cache; end + + # source://rbs//lib/rbs/definition_builder.rb#442 + def source_location(source, decl); end + + # source://rbs//lib/rbs/definition_builder.rb#66 + def tapp_subst(name, args); end + + # source://rbs//lib/rbs/definition_builder.rb#766 + def try_cache(type_name, cache:); end + + # source://rbs//lib/rbs/definition_builder.rb#805 + def update(env:, except:, ancestor_builder:); end + + # source://rbs//lib/rbs/definition_builder.rb#432 + def validate_params_with(type_params, result:); end + + # @raise [NoTypeFoundError] + # + # source://rbs//lib/rbs/definition_builder.rb#834 + def validate_type_name(name, location); end + + # source://rbs//lib/rbs/definition_builder.rb#456 + def validate_type_params(definition, ancestors:, methods:); end + + # source://rbs//lib/rbs/definition_builder.rb#823 + def validate_type_presence(type); end +end + +# source://rbs//lib/rbs/definition_builder/ancestor_builder.rb#5 +class RBS::DefinitionBuilder::AncestorBuilder + # @return [AncestorBuilder] a new instance of AncestorBuilder + # + # source://rbs//lib/rbs/definition_builder/ancestor_builder.rb#162 + def initialize(env:); end + + # Returns the value of attribute env. + # + # source://rbs//lib/rbs/definition_builder/ancestor_builder.rb#151 + def env; end + + # source://rbs//lib/rbs/definition_builder/ancestor_builder.rb#606 + def fill_ancestor_source(ancestor, name:, source:, &block); end + + # source://rbs//lib/rbs/definition_builder/ancestor_builder.rb#434 + def instance_ancestors(type_name, building_ancestors: T.unsafe(nil)); end + + # Returns the value of attribute instance_ancestors_cache. + # + # source://rbs//lib/rbs/definition_builder/ancestor_builder.rb#154 + def instance_ancestors_cache; end + + # source://rbs//lib/rbs/definition_builder/ancestor_builder.rb#570 + def interface_ancestors(type_name, building_ancestors: T.unsafe(nil)); end + + # Returns the value of attribute interface_ancestors_cache. + # + # source://rbs//lib/rbs/definition_builder/ancestor_builder.rb#160 + def interface_ancestors_cache; end + + # source://rbs//lib/rbs/definition_builder/ancestor_builder.rb#414 + 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#348 + def mixin_ancestors0(decl, type_name, align_params:, included_modules:, included_interfaces:, extended_modules:, prepended_modules:, extended_interfaces:); end + + # source://rbs//lib/rbs/definition_builder/ancestor_builder.rb#192 + def one_instance_ancestors(type_name); end + + # Returns the value of attribute one_instance_ancestors_cache. + # + # source://rbs//lib/rbs/definition_builder/ancestor_builder.rb#153 + def one_instance_ancestors_cache; end + + # source://rbs//lib/rbs/definition_builder/ancestor_builder.rb#329 + def one_interface_ancestors(type_name); end + + # Returns the value of attribute one_interface_ancestors_cache. + # + # source://rbs//lib/rbs/definition_builder/ancestor_builder.rb#159 + def one_interface_ancestors_cache; end + + # source://rbs//lib/rbs/definition_builder/ancestor_builder.rb#275 + def one_singleton_ancestors(type_name); end + + # Returns the value of attribute one_singleton_ancestors_cache. + # + # 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#515 + def singleton_ancestors(type_name, building_ancestors: T.unsafe(nil)); end + + # Returns the value of attribute singleton_ancestors_cache. + # + # source://rbs//lib/rbs/definition_builder/ancestor_builder.rb#157 + def singleton_ancestors_cache; end + + # @raise [SuperclassMismatchError] + # + # source://rbs//lib/rbs/definition_builder/ancestor_builder.rb#175 + def validate_super_class!(type_name, entry); end +end + +# source://rbs//lib/rbs/definition_builder/ancestor_builder.rb#6 +class RBS::DefinitionBuilder::AncestorBuilder::OneAncestors + # @return [OneAncestors] a new instance of OneAncestors + # + # source://rbs//lib/rbs/definition_builder/ancestor_builder.rb#17 + def initialize(type_name:, params:, super_class:, self_types:, included_modules:, included_interfaces:, prepended_modules:, extended_modules:, extended_interfaces:); end + + # source://rbs//lib/rbs/definition_builder/ancestor_builder.rb#29 + def each_ancestor(&block); end + + # source://rbs//lib/rbs/definition_builder/ancestor_builder.rb#86 + def each_extended_interface(&block); end + + # source://rbs//lib/rbs/definition_builder/ancestor_builder.rb#78 + def each_extended_module(&block); end + + # source://rbs//lib/rbs/definition_builder/ancestor_builder.rb#62 + def each_included_interface(&block); end + + # source://rbs//lib/rbs/definition_builder/ancestor_builder.rb#54 + def each_included_module(&block); end + + # source://rbs//lib/rbs/definition_builder/ancestor_builder.rb#70 + def each_prepended_module(&block); end + + # source://rbs//lib/rbs/definition_builder/ancestor_builder.rb#46 + def each_self_type(&block); end + + # Returns the value of attribute extended_interfaces. + # + # source://rbs//lib/rbs/definition_builder/ancestor_builder.rb#15 + def extended_interfaces; end + + # Returns the value of attribute extended_modules. + # + # source://rbs//lib/rbs/definition_builder/ancestor_builder.rb#14 + def extended_modules; end + + # Returns the value of attribute included_interfaces. + # + # source://rbs//lib/rbs/definition_builder/ancestor_builder.rb#12 + def included_interfaces; end + + # Returns the value of attribute included_modules. + # + # source://rbs//lib/rbs/definition_builder/ancestor_builder.rb#11 + def included_modules; end + + # Returns the value of attribute params. + # + # source://rbs//lib/rbs/definition_builder/ancestor_builder.rb#8 + def params; end + + # Returns the value of attribute prepended_modules. + # + # source://rbs//lib/rbs/definition_builder/ancestor_builder.rb#13 + def prepended_modules; end + + # Returns the value of attribute self_types. + # + # source://rbs//lib/rbs/definition_builder/ancestor_builder.rb#10 + def self_types; end + + # Returns the value of attribute super_class. + # + # source://rbs//lib/rbs/definition_builder/ancestor_builder.rb#9 + def super_class; end + + # Returns the value of attribute type_name. + # + # source://rbs//lib/rbs/definition_builder/ancestor_builder.rb#7 + def type_name; end + + class << self + # source://rbs//lib/rbs/definition_builder/ancestor_builder.rb#94 + def class_instance(type_name:, params:, super_class:); end + + # source://rbs//lib/rbs/definition_builder/ancestor_builder.rb#136 + def interface(type_name:, params:); end + + # source://rbs//lib/rbs/definition_builder/ancestor_builder.rb#122 + def module_instance(type_name:, params:); end + + # source://rbs//lib/rbs/definition_builder/ancestor_builder.rb#108 + def singleton(type_name:, super_class:); end + end +end + +# source://rbs//lib/rbs/definition_builder/method_builder.rb#5 +class RBS::DefinitionBuilder::MethodBuilder + # @return [MethodBuilder] a new instance of 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 + def build_alias(methods, type, member:); end + + # source://rbs//lib/rbs/definition_builder/method_builder.rb#199 + 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 + def build_interface(type_name); end + + # source://rbs//lib/rbs/definition_builder/method_builder.rb#215 + def build_method(methods, type, member:, accessibility:); end + + # source://rbs//lib/rbs/definition_builder/method_builder.rb#145 + 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 + + # Returns the value of attribute env. + # + # source://rbs//lib/rbs/definition_builder/method_builder.rb#86 + def env; end + + # Returns the value of attribute instance_methods. + # + # source://rbs//lib/rbs/definition_builder/method_builder.rb#87 + def instance_methods; end + + # Returns the value of attribute interface_methods. + # + # source://rbs//lib/rbs/definition_builder/method_builder.rb#89 + def interface_methods; end + + # Returns the value of attribute singleton_methods. + # + # source://rbs//lib/rbs/definition_builder/method_builder.rb#88 + def singleton_methods; end + + # source://rbs//lib/rbs/definition_builder/method_builder.rb#239 + def update(env:, except:); end +end + +# source://rbs//lib/rbs/definition_builder/method_builder.rb#6 +class RBS::DefinitionBuilder::MethodBuilder::Methods + # @return [Methods] a new instance of Methods + # + # source://rbs//lib/rbs/definition_builder/method_builder.rb#30 + def initialize(type:); end + + # source://rbs//lib/rbs/definition_builder/method_builder.rb#49 + def each; end + + # Returns the value of attribute methods. + # + # source://rbs//lib/rbs/definition_builder/method_builder.rb#28 + def methods; end + + # Returns the value of attribute type. + # + # source://rbs//lib/rbs/definition_builder/method_builder.rb#27 + def type; end + + # source://rbs//lib/rbs/definition_builder/method_builder.rb#35 + def validate!; end +end + +# source://rbs//lib/rbs/definition_builder/method_builder.rb#7 +class RBS::DefinitionBuilder::MethodBuilder::Methods::Definition < ::Struct + # source://rbs//lib/rbs/definition_builder/method_builder.rb#14 + def accessibility; end + + # source://rbs//lib/rbs/definition_builder/method_builder.rb#10 + def original; end + + class << self + # source://rbs//lib/rbs/definition_builder/method_builder.rb#22 + def empty(name:, type:); end + end +end + +# source://rbs//lib/rbs/definition_builder/method_builder.rb#63 +class RBS::DefinitionBuilder::MethodBuilder::Methods::Sorter + include ::TSort + + # @return [Sorter] a new instance of Sorter + # + # source://rbs//lib/rbs/definition_builder/method_builder.rb#68 + def initialize(methods); end + + # Returns the value of attribute methods. + # + # source://rbs//lib/rbs/definition_builder/method_builder.rb#66 + def methods; end + + # source://rbs//lib/rbs/definition_builder/method_builder.rb#76 + def tsort_each_child(defn); end + + # source://rbs//lib/rbs/definition_builder/method_builder.rb#72 + def tsort_each_node(&block); end +end + +# source://rbs//lib/rbs/errors.rb#21 +class RBS::DefinitionError < ::RBS::BaseError; end + +# source://rbs//lib/rbs/errors.rb#23 +module RBS::DetailedMessageable + # source://rbs//lib/rbs/errors.rb#24 + def detailed_message(highlight: T.unsafe(nil), **_arg1); end +end + +# source://rbs//lib/rbs/diff.rb#4 +class RBS::Diff + # @return [Diff] a new instance of Diff + # + # source://rbs//lib/rbs/diff.rb#5 + def initialize(type_name:, library_options:, after_path: T.unsafe(nil), before_path: T.unsafe(nil), detail: T.unsafe(nil)); end + + # source://rbs//lib/rbs/diff.rb#13 + def each_diff(&block); end + + private + + # source://rbs//lib/rbs/diff.rb#96 + def build_builder(env); end + + # source://rbs//lib/rbs/diff.rb#77 + def build_env(path); end + + # source://rbs//lib/rbs/diff.rb#49 + def build_methods(path); end + + # source://rbs//lib/rbs/diff.rb#116 + def constant_to_s(constant); end + + # source://rbs//lib/rbs/diff.rb#100 + def definition_method_to_s(key, kind, definition_method); end + + # source://rbs//lib/rbs/diff.rb#38 + def each_diff_constants(before_constant_children, after_constant_children); end + + # source://rbs//lib/rbs/diff.rb#27 + def each_diff_methods(kind, before_methods, after_methods); end +end + +# source://rbs//lib/rbs/errors.rb#394 +class RBS::DuplicatedDeclarationError < ::RBS::LoadingError + # @return [DuplicatedDeclarationError] a new instance of DuplicatedDeclarationError + # + # source://rbs//lib/rbs/errors.rb#398 + def initialize(name, *decls); end + + # Returns the value of attribute decls. + # + # source://rbs//lib/rbs/errors.rb#396 + def decls; end + + # Returns the value of attribute name. + # + # source://rbs//lib/rbs/errors.rb#395 + def name; end +end + +# source://rbs//lib/rbs/errors.rb#292 +class RBS::DuplicatedInterfaceMethodDefinitionError < ::RBS::DefinitionError + include ::RBS::DetailedMessageable + + # @return [DuplicatedInterfaceMethodDefinitionError] a new instance of DuplicatedInterfaceMethodDefinitionError + # + # source://rbs//lib/rbs/errors.rb#299 + def initialize(type:, method_name:, member:); end + + # source://rbs//lib/rbs/errors.rb#307 + def location; end + + # Returns the value of attribute member. + # + # source://rbs//lib/rbs/errors.rb#297 + def member; end + + # Returns the value of attribute method_name. + # + # source://rbs//lib/rbs/errors.rb#296 + def method_name; end + + # source://rbs//lib/rbs/errors.rb#311 + def qualified_method_name; end + + # Returns the value of attribute type. + # + # source://rbs//lib/rbs/errors.rb#295 + def type; end + + # source://rbs//lib/rbs/errors.rb#320 + def type_name; end +end + +# source://rbs//lib/rbs/errors.rb#251 +class RBS::DuplicatedMethodDefinitionError < ::RBS::DefinitionError + include ::RBS::DetailedMessageable + + # @return [DuplicatedMethodDefinitionError] a new instance of DuplicatedMethodDefinitionError + # + # source://rbs//lib/rbs/errors.rb#258 + def initialize(type:, method_name:, members:); end + + # source://rbs//lib/rbs/errors.rb#283 + def location; end + + # Returns the value of attribute members. + # + # source://rbs//lib/rbs/errors.rb#256 + def members; end + + # Returns the value of attribute method_name. + # + # source://rbs//lib/rbs/errors.rb#255 + def method_name; end + + # source://rbs//lib/rbs/errors.rb#287 + def other_locations; end + + # source://rbs//lib/rbs/errors.rb#270 + def qualified_method_name; end + + # Returns the value of attribute type. + # + # source://rbs//lib/rbs/errors.rb#254 + def type; end + + # source://rbs//lib/rbs/errors.rb#279 + def type_name; end +end + +# source://rbs//lib/rbs/environment.rb#4 +class RBS::Environment + # @return [Environment] a new instance of Environment + # + # source://rbs//lib/rbs/environment.rb#145 + def initialize; end + + # source://rbs//lib/rbs/environment.rb#470 + def <<(decl); end + + # source://rbs//lib/rbs/environment.rb#792 + def absolute_type(resolver, map, type, context:); end + + # source://rbs//lib/rbs/environment.rb#787 + 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#528 + def append_context(context, decl); end + + # source://rbs//lib/rbs/environment.rb#803 + def buffers; end + + # @return [Boolean] + # + # source://rbs//lib/rbs/environment.rb#218 + def class_alias?(name); end + + # Returns the value of attribute class_alias_decls. + # + # source://rbs//lib/rbs/environment.rb#12 + def class_alias_decls; end + + # @return [Boolean] + # + # source://rbs//lib/rbs/environment.rb#202 + def class_decl?(name); end + + # Returns the value of attribute class_decls. + # + # source://rbs//lib/rbs/environment.rb#7 + def class_decls; end + + # source://rbs//lib/rbs/environment.rb#226 + def class_entry(type_name); end + + # @return [Boolean] + # + # source://rbs//lib/rbs/environment.rb#198 + def constant_decl?(name); end + + # Returns the value of attribute constant_decls. + # + # source://rbs//lib/rbs/environment.rb#10 + def constant_decls; end + + # source://rbs//lib/rbs/environment.rb#274 + def constant_entry(type_name); end + + # @return [Boolean] + # + # source://rbs//lib/rbs/environment.rb#194 + def constant_name?(name); end + + # Returns the value of attribute declarations. + # + # source://rbs//lib/rbs/environment.rb#5 + def declarations; end + + # Returns the value of attribute global_decls. + # + # source://rbs//lib/rbs/environment.rb#11 + def global_decls; end + + # source://rbs//lib/rbs/environment.rb#373 + def insert_decl(decl, outer:, namespace:); end + + # source://rbs//lib/rbs/environment.rb#798 + def inspect; end + + # Returns the value of attribute interface_decls. + # + # source://rbs//lib/rbs/environment.rb#8 + def interface_decls; end + + # @return [Boolean] + # + # source://rbs//lib/rbs/environment.rb#176 + def interface_name?(name); end + + # @return [Boolean] + # + # source://rbs//lib/rbs/environment.rb#210 + def module_alias?(name); end + + # source://rbs//lib/rbs/environment.rb#266 + def module_class_entry(type_name); end + + # @return [Boolean] + # + # source://rbs//lib/rbs/environment.rb#206 + def module_decl?(name); end + + # source://rbs//lib/rbs/environment.rb#235 + def module_entry(type_name); end + + # @return [Boolean] + # + # source://rbs//lib/rbs/environment.rb#184 + def module_name?(name); end + + # source://rbs//lib/rbs/environment.rb#332 + def normalize_module_name(name); end + + # @return [Boolean] + # + # source://rbs//lib/rbs/environment.rb#336 + def normalize_module_name?(name); end + + # source://rbs//lib/rbs/environment.rb#328 + def normalize_type_name(name); end + + # source://rbs//lib/rbs/environment.rb#297 + def normalize_type_name!(name); end + + # @return [Boolean] + # + # source://rbs//lib/rbs/environment.rb#278 + def normalize_type_name?(name); end + + # source://rbs//lib/rbs/environment.rb#244 + def normalized_class_entry(type_name); end + + # source://rbs//lib/rbs/environment.rb#270 + def normalized_module_class_entry(type_name); end + + # source://rbs//lib/rbs/environment.rb#255 + def normalized_module_entry(type_name); end + + # source://rbs//lib/rbs/environment.rb#323 + def normalized_type_name!(name); end + + # @return [Boolean] + # + # source://rbs//lib/rbs/environment.rb#310 + def normalized_type_name?(type_name); end + + # source://rbs//lib/rbs/environment.rb#537 + def resolve_declaration(resolver, map, decl, outer:, prefix:); end + + # source://rbs//lib/rbs/environment.rb#673 + def resolve_member(resolver, map, member, context:); end + + # source://rbs//lib/rbs/environment.rb#773 + def resolve_method_type(resolver, map, type, context:); end + + # source://rbs//lib/rbs/environment.rb#489 + def resolve_type_names(only: T.unsafe(nil)); end + + # source://rbs//lib/rbs/environment.rb#781 + def resolve_type_params(resolver, map, params, context:); end + + # source://rbs//lib/rbs/environment.rb#522 + def resolver_context(*nesting); end + + # Returns the value of attribute signatures. + # + # source://rbs//lib/rbs/environment.rb#14 + def signatures; end + + # Returns the value of attribute type_alias_decls. + # + # source://rbs//lib/rbs/environment.rb#9 + def type_alias_decls; end + + # @return [Boolean] + # + # source://rbs//lib/rbs/environment.rb#180 + def type_alias_name?(name); end + + # @return [Boolean] + # + # source://rbs//lib/rbs/environment.rb#188 + def type_name?(name); end + + # source://rbs//lib/rbs/environment.rb#807 + def unload(buffers); end + + # source://rbs//lib/rbs/environment.rb#483 + def validate_type_params; end + + private + + # source://rbs//lib/rbs/environment.rb#158 + def initialize_copy(other); end + + class << self + # source://rbs//lib/rbs/environment.rb#170 + def from_loader(loader); end + end +end + +# source://rbs//lib/rbs/environment.rb#130 +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.rb#43 + def initialize(name:); 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 + + # Returns the value of attribute name. + # + # source://rbs//lib/rbs/environment.rb#40 + def name; end + + # source://rbs//lib/rbs/environment.rb#80 + def primary; end + + # source://rbs//lib/rbs/environment.rb#76 + def type_params; end + + # source://rbs//lib/rbs/environment.rb#53 + def validate_type_params; end +end + +# source://rbs//lib/rbs/environment.rb#30 +class RBS::Environment::MultiEntry::D < ::Struct + include ::RBS::Environment::ContextUtil + + # source://rbs//lib/rbs/environment.rb#35 + def context; end + + def decl; end + def decl=(_); end + def outer; end + def outer=(_); end + + class << self + def [](*_arg0); end + def inspect; end + def keyword_init?; end + def members; end + def new(*_arg0); end + end +end + +# source://rbs//lib/rbs/environment.rb#109 +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#122 + def context; end + + # Returns the value of attribute decl. + # + # source://rbs//lib/rbs/environment.rb#112 + def decl; end + + # Returns the value of attribute name. + # + # source://rbs//lib/rbs/environment.rb#110 + 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 +class RBS::Environment::TypeAliasEntry < ::RBS::Environment::SingleEntry; end + +# source://rbs//lib/rbs/environment/use_map.rb#5 +class RBS::Environment::UseMap + # @return [UseMap] a new instance of UseMap + # + # source://rbs//lib/rbs/environment/use_map.rb#30 + def initialize(table:); end + + # source://rbs//lib/rbs/environment/use_map.rb#36 + def build_map(clause); end + + # source://rbs//lib/rbs/environment/use_map.rb#72 + def resolve(type_name); end + + # @return [Boolean] + # + # source://rbs//lib/rbs/environment/use_map.rb#53 + def resolve?(type_name); end + + # Returns the value of attribute use_dirs. + # + # source://rbs//lib/rbs/environment/use_map.rb#28 + def use_dirs; end +end + +# source://rbs//lib/rbs/environment/use_map.rb#6 +class RBS::Environment::UseMap::Table + # @return [Table] a new instance of Table + # + # source://rbs//lib/rbs/environment/use_map.rb#9 + def initialize; end + + # Returns the value of attribute children. + # + # source://rbs//lib/rbs/environment/use_map.rb#7 + def children; end + + # source://rbs//lib/rbs/environment/use_map.rb#14 + def compute_children; end + + # Returns the value of attribute known_types. + # + # source://rbs//lib/rbs/environment/use_map.rb#7 + def known_types; end +end + +# source://rbs//lib/rbs/environment_loader.rb#4 +class RBS::EnvironmentLoader + include ::RBS::FileFinder + + # @return [EnvironmentLoader] a new instance of EnvironmentLoader + # + # source://rbs//lib/rbs/environment_loader.rb#40 + def initialize(core_root: T.unsafe(nil), repository: T.unsafe(nil)); end + + # source://rbs//lib/rbs/environment_loader.rb#48 + def add(path: T.unsafe(nil), library: T.unsafe(nil), version: T.unsafe(nil), resolve_dependencies: T.unsafe(nil)); end + + # source://rbs//lib/rbs/environment_loader.rb#80 + def add_collection(lockfile); end + + # Returns the value of attribute core_root. + # + # source://rbs//lib/rbs/environment_loader.rb#20 + def core_root; end + + # Returns the value of attribute dirs. + # + # source://rbs//lib/rbs/environment_loader.rb#24 + def dirs; end + + # source://rbs//lib/rbs/environment_loader.rb#131 + def each_dir; end + + # source://rbs//lib/rbs/environment_loader.rb#154 + def each_signature; end + + # @return [Boolean] + # + # source://rbs//lib/rbs/environment_loader.rb#104 + def has_library?(library:, version:); end + + # Returns the value of attribute libs. + # + # source://rbs//lib/rbs/environment_loader.rb#23 + def libs; end + + # source://rbs//lib/rbs/environment_loader.rb#112 + def load(env:); end + + # Returns the value of attribute repository. + # + # source://rbs//lib/rbs/environment_loader.rb#21 + def repository; end + + # source://rbs//lib/rbs/environment_loader.rb#65 + def resolve_dependencies(library:, version:); end + + class << self + # source://rbs//lib/rbs/environment_loader.rb#28 + def gem_sig_path(name, version); end + end +end + +# source://rbs//lib/rbs/environment_loader.rb#26 +RBS::EnvironmentLoader::DEFAULT_CORE_ROOT = T.let(T.unsafe(nil), Pathname) + +# source://rbs//lib/rbs/environment_loader.rb#17 +class RBS::EnvironmentLoader::Library < ::Struct; end + +# source://rbs//lib/rbs/environment_loader.rb#5 +class RBS::EnvironmentLoader::UnknownLibraryError < ::StandardError + # @return [UnknownLibraryError] a new instance of UnknownLibraryError + # + # source://rbs//lib/rbs/environment_loader.rb#8 + def initialize(lib:); end + + # Returns the value of attribute library. + # + # source://rbs//lib/rbs/environment_loader.rb#6 + def library; end +end + +# source://rbs//lib/rbs/environment_walker.rb#4 +class RBS::EnvironmentWalker + include ::TSort + + # @return [EnvironmentWalker] a new instance of EnvironmentWalker + # + # source://rbs//lib/rbs/environment_walker.rb#11 + def initialize(env:); end + + # source://rbs//lib/rbs/environment_walker.rb#16 + def builder; end + + # source://rbs//lib/rbs/environment_walker.rb#99 + def each_type_name(type, &block); end + + # source://rbs//lib/rbs/environment_walker.rb#105 + def each_type_node(type, &block); end + + # Returns the value of attribute env. + # + # source://rbs//lib/rbs/environment_walker.rb#9 + def env; end + + # source://rbs//lib/rbs/environment_walker.rb#20 + def only_ancestors!(only = T.unsafe(nil)); end + + # @return [Boolean] + # + # source://rbs//lib/rbs/environment_walker.rb#25 + def only_ancestors?; end + + # source://rbs//lib/rbs/environment_walker.rb#44 + def tsort_each_child(node, &block); end + + # source://rbs//lib/rbs/environment_walker.rb#31 + def tsort_each_node(&block); end +end + +# source://rbs//lib/rbs/environment_walker.rb#5 +class RBS::EnvironmentWalker::InstanceNode < ::Struct + def type_name; end + def type_name=(_); end + + class << self + def [](*_arg0); end + def inspect; end + def keyword_init?; end + def members; end + def new(*_arg0); end + end +end + +# source://rbs//lib/rbs/environment_walker.rb#6 +class RBS::EnvironmentWalker::SingletonNode < ::Struct + def type_name; end + def type_name=(_); end + + class << self + def [](*_arg0); end + def inspect; end + def keyword_init?; end + def members; end + def new(*_arg0); end + end +end + +# source://rbs//lib/rbs/environment_walker.rb#7 +class RBS::EnvironmentWalker::TypeNameNode < ::Struct + def type_name; end + def type_name=(_); end + + class << self + def [](*_arg0); end + def inspect; end + def keyword_init?; end + def members; end + def new(*_arg0); end + end +end + +# source://rbs//lib/rbs/factory.rb#4 +class RBS::Factory + # source://rbs//lib/rbs/factory.rb#5 + def type_name(string); end +end + +# source://rbs//lib/rbs/file_finder.rb#4 +module RBS::FileFinder + class << self + # source://rbs//lib/rbs/file_finder.rb#7 + def each_file(path, skip_hidden:, immediate: T.unsafe(nil), &block); end + end +end + +# source://rbs//lib/rbs/errors.rb#383 +class RBS::GenericParameterMismatchError < ::RBS::LoadingError + # @return [GenericParameterMismatchError] a new instance of GenericParameterMismatchError + # + # source://rbs//lib/rbs/errors.rb#387 + def initialize(name:, decl:); end + + # Returns the value of attribute decl. + # + # source://rbs//lib/rbs/errors.rb#385 + def decl; end + + # Returns the value of attribute name. + # + # source://rbs//lib/rbs/errors.rb#384 + def name; end +end + +# source://rbs//lib/rbs/errors.rb#529 +class RBS::InconsistentClassModuleAliasError < ::RBS::BaseError + include ::RBS::DetailedMessageable + + # @return [InconsistentClassModuleAliasError] a new instance of InconsistentClassModuleAliasError + # + # source://rbs//lib/rbs/errors.rb#534 + def initialize(entry); end + + # Returns the value of attribute alias_entry. + # + # source://rbs//lib/rbs/errors.rb#532 + def alias_entry; end + + # source://rbs//lib/rbs/errors.rb#548 + def location; end +end + +# source://rbs//lib/rbs/errors.rb#187 +class RBS::InheritModuleError < ::RBS::DefinitionError + include ::RBS::DetailedMessageable + + # @return [InheritModuleError] a new instance of InheritModuleError + # + # source://rbs//lib/rbs/errors.rb#192 + def initialize(super_decl); end + + # source://rbs//lib/rbs/errors.rb#198 + def location; end + + # Returns the value of attribute super_decl. + # + # source://rbs//lib/rbs/errors.rb#190 + def super_decl; end + + class << self + # source://rbs//lib/rbs/errors.rb#202 + def check!(super_decl, env:); end + end +end + +# source://rbs//lib/rbs/errors.rb#354 +class RBS::InvalidOverloadMethodError < ::RBS::DefinitionError + include ::RBS::DetailedMessageable + + # @return [InvalidOverloadMethodError] a new instance of InvalidOverloadMethodError + # + # source://rbs//lib/rbs/errors.rb#362 + def initialize(type_name:, method_name:, kind:, members:); end + + # Returns the value of attribute kind. + # + # source://rbs//lib/rbs/errors.rb#359 + def kind; end + + # source://rbs//lib/rbs/errors.rb#378 + def location; end + + # Returns the value of attribute members. + # + # source://rbs//lib/rbs/errors.rb#360 + def members; end + + # Returns the value of attribute method_name. + # + # source://rbs//lib/rbs/errors.rb#358 + def method_name; end + + # Returns the value of attribute type_name. + # + # source://rbs//lib/rbs/errors.rb#357 + def type_name; end +end + +# source://rbs//lib/rbs/errors.rb#67 +class RBS::InvalidTypeApplicationError < ::RBS::DefinitionError + # @return [InvalidTypeApplicationError] a new instance of InvalidTypeApplicationError + # + # source://rbs//lib/rbs/errors.rb#74 + def initialize(type_name:, args:, params:, location:); end + + # Returns the value of attribute args. + # + # source://rbs//lib/rbs/errors.rb#69 + def args; end + + # Returns the value of attribute location. + # + # source://rbs//lib/rbs/errors.rb#72 + def location; end + + # Returns the value of attribute params. + # + # source://rbs//lib/rbs/errors.rb#70 + def params; end + + # Returns the value of attribute type_name. + # + # source://rbs//lib/rbs/errors.rb#68 + def type_name; end + + # Returns the value of attribute type_params. + # + # source://rbs//lib/rbs/errors.rb#71 + def type_params; end + + class << self + # source://rbs//lib/rbs/errors.rb#83 + def check!(type_name:, args:, params:, location:); end + + # source://rbs//lib/rbs/errors.rb#92 + def check2!(env:, type_name:, args:, location:); end + end +end + +# source://rbs//lib/rbs/errors.rb#407 +class RBS::InvalidVarianceAnnotationError < ::RBS::DefinitionError + include ::RBS::DetailedMessageable + + # @return [InvalidVarianceAnnotationError] a new instance of InvalidVarianceAnnotationError + # + # source://rbs//lib/rbs/errors.rb#414 + def initialize(type_name:, param:, location:); end + + # Returns the value of attribute location. + # + # source://rbs//lib/rbs/errors.rb#412 + def location; end + + # Returns the value of attribute param. + # + # source://rbs//lib/rbs/errors.rb#411 + def param; end + + # Returns the value of attribute type_name. + # + # source://rbs//lib/rbs/errors.rb#410 + def type_name; end +end + +# source://rbs//lib/rbs/errors.rb#20 +class RBS::LoadingError < ::RBS::BaseError; end + +# source://rbs//lib/rbs/location_aux.rb#4 +class RBS::Location + def initialize(_arg0, _arg1, _arg2); end + + # source://rbs//lib/rbs/location_aux.rb#71 + def ==(other); end + + def [](_arg0); end + def _add_optional_child(_arg0, _arg1, _arg2); end + def _add_optional_no_child(_arg0); end + def _add_required_child(_arg0, _arg1, _arg2); end + def _optional_keys; end + 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/location_aux.rb#110 + def each_optional_key(&block); end + + # source://rbs//lib/rbs/location_aux.rb#118 + def each_required_key(&block); end + + # source://rbs//lib/rbs/location_aux.rb#47 + def end_column; end + + # source://rbs//lib/rbs/location_aux.rb#43 + def end_line; end + + # source://rbs//lib/rbs/location_aux.rb#55 + def end_loc; end + + def end_pos; end + + # source://rbs//lib/rbs/location_aux.rb#5 + def inspect; end + + # @return [Boolean] + # + # source://rbs//lib/rbs/location_aux.rb#126 + def key?(name); end + + # source://rbs//lib/rbs/location_aux.rb#31 + def name; end + + # @return [Boolean] + # + # source://rbs//lib/rbs/location_aux.rb#130 + def optional_key?(name); end + + # source://rbs//lib/rbs/location_aux.rb#59 + def range; end + + # @return [Boolean] + # + # source://rbs//lib/rbs/location_aux.rb#134 + def required_key?(name); end + + # source://rbs//lib/rbs/location_aux.rb#63 + def source; end + + # source://rbs//lib/rbs/location_aux.rb#39 + def start_column; end + + # source://rbs//lib/rbs/location_aux.rb#35 + def start_line; end + + # source://rbs//lib/rbs/location_aux.rb#51 + def start_loc; end + + def start_pos; end + + # source://rbs//lib/rbs/location_aux.rb#78 + def to_json(state = T.unsafe(nil)); end + + # source://rbs//lib/rbs/location_aux.rb#67 + def to_s; end + + private + + 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 + def to_string(location, default: T.unsafe(nil)); end + end +end + +# source://rbs//lib/rbs/location_aux.rb#29 +RBS::Location::WithChildren = RBS::Location + +# source://rbs//lib/rbs/locator.rb#4 +class RBS::Locator + # @return [Locator] a new instance of Locator + # + # source://rbs//lib/rbs/locator.rb#7 + def initialize(buffer:, dirs:, decls:); end + + # Returns the value of attribute buffer. + # + # source://rbs//lib/rbs/locator.rb#5 + def buffer; end + + # Returns the value of attribute decls. + # + # source://rbs//lib/rbs/locator.rb#5 + def decls; end + + # Returns the value of attribute dirs. + # + # source://rbs//lib/rbs/locator.rb#5 + def dirs; end + + # source://rbs//lib/rbs/locator.rb#13 + def find(line:, column:); end + + # source://rbs//lib/rbs/locator.rb#29 + def find2(line:, column:); end + + # source://rbs//lib/rbs/locator.rb#58 + def find_in_decl(pos, decl:, array:); end + + # source://rbs//lib/rbs/locator.rb#42 + def find_in_directive(pos, dir, array); end + + # source://rbs//lib/rbs/locator.rb#206 + def find_in_loc(pos, location:, array:); end + + # source://rbs//lib/rbs/locator.rb#129 + def find_in_member(pos, member:, array:); end + + # source://rbs//lib/rbs/locator.rb#152 + def find_in_method_type(pos, method_type:, array:); end + + # source://rbs//lib/rbs/locator.rb#190 + def find_in_type(pos, type:, array:); end + + # source://rbs//lib/rbs/locator.rb#170 + def find_in_type_param(pos, type_param:, array:); end + + # source://rbs//lib/rbs/locator.rb#233 + def test_loc(pos, location:); end +end + +# source://rbs//lib/rbs/errors.rb#4 +module RBS::MethodNameHelper + # source://rbs//lib/rbs/errors.rb#5 + def method_name_string; end +end + +# source://rbs//lib/rbs/method_type.rb#4 +class RBS::MethodType + # @return [MethodType] a new instance of MethodType + # + # source://rbs//lib/rbs/method_type.rb#10 + def initialize(type_params:, type:, block:, location:); end + + # source://rbs//lib/rbs/method_type.rb#17 + def ==(other); end + + # Returns the value of attribute block. + # + # source://rbs//lib/rbs/method_type.rb#7 + def block; end + + # source://rbs//lib/rbs/method_type.rb#84 + def each_type(&block); end + + # source://rbs//lib/rbs/method_type.rb#57 + def free_variables(set = T.unsafe(nil)); end + + # @return [Boolean] + # + # source://rbs//lib/rbs/method_type.rb#125 + def has_classish_type?; end + + # @return [Boolean] + # + # source://rbs//lib/rbs/method_type.rb#121 + def has_self_type?; end + + # Returns the value of attribute location. + # + # source://rbs//lib/rbs/method_type.rb#8 + def location; end + + # source://rbs//lib/rbs/method_type.rb#63 + def map_type(&block); end + + # source://rbs//lib/rbs/method_type.rb#72 + def map_type_bound(&block); end + + # source://rbs//lib/rbs/method_type.rb#33 + def sub(s); end + + # source://rbs//lib/rbs/method_type.rb#24 + def to_json(state = T.unsafe(nil)); end + + # source://rbs//lib/rbs/method_type.rb#98 + def to_s; end + + # Returns the value of attribute type. + # + # source://rbs//lib/rbs/method_type.rb#6 + def type; end + + # source://rbs//lib/rbs/method_type.rb#117 + def type_param_names; end + + # Returns the value of attribute type_params. + # + # source://rbs//lib/rbs/method_type.rb#5 + def type_params; end + + # source://rbs//lib/rbs/method_type.rb#48 + def update(type_params: T.unsafe(nil), type: T.unsafe(nil), block: T.unsafe(nil), location: T.unsafe(nil)); end + + # @return [Boolean] + # + # source://rbs//lib/rbs/method_type.rb#129 + def with_nonreturn_void?; end +end + +# source://rbs//lib/rbs/errors.rb#443 +class RBS::MixinClassError < ::RBS::DefinitionError + include ::RBS::DetailedMessageable + + # @return [MixinClassError] a new instance of MixinClassError + # + # source://rbs//lib/rbs/errors.rb#449 + def initialize(type_name:, member:); end + + # source://rbs//lib/rbs/errors.rb#456 + def location; end + + # Returns the value of attribute member. + # + # source://rbs//lib/rbs/errors.rb#447 + def member; end + + # Returns the value of attribute type_name. + # + # source://rbs//lib/rbs/errors.rb#446 + def type_name; end + + private + + # source://rbs//lib/rbs/errors.rb#468 + def mixin_name; end + + class << self + # source://rbs//lib/rbs/errors.rb#460 + def check!(type_name:, env:, member:); end + end +end + +# source://rbs//lib/rbs/namespace.rb#4 +class RBS::Namespace + # @return [Namespace] a new instance of Namespace + # + # source://rbs//lib/rbs/namespace.rb#7 + def initialize(path:, absolute:); end + + # source://rbs//lib/rbs/namespace.rb#20 + def +(other); end + + # source://rbs//lib/rbs/namespace.rb#59 + def ==(other); end + + # source://rbs//lib/rbs/namespace.rb#47 + def absolute!; end + + # @return [Boolean] + # + # source://rbs//lib/rbs/namespace.rb#39 + def absolute?; end + + # source://rbs//lib/rbs/namespace.rb#28 + def append(component); end + + # source://rbs//lib/rbs/namespace.rb#101 + def ascend; end + + # @return [Boolean] + # + # source://rbs//lib/rbs/namespace.rb#55 + def empty?; end + + # source://rbs//lib/rbs/namespace.rb#59 + def eql?(other); end + + # source://rbs//lib/rbs/namespace.rb#65 + def hash; end + + # source://rbs//lib/rbs/namespace.rb#32 + def parent; end + + # Returns the value of attribute path. + # + # source://rbs//lib/rbs/namespace.rb#5 + def path; end + + # source://rbs//lib/rbs/namespace.rb#51 + def relative!; end + + # @return [Boolean] + # + # source://rbs//lib/rbs/namespace.rb#43 + def relative?; end + + # source://rbs//lib/rbs/namespace.rb#69 + def split; end + + # source://rbs//lib/rbs/namespace.rb#75 + def to_s; end + + # source://rbs//lib/rbs/namespace.rb#84 + def to_type_name; end + + class << self + # source://rbs//lib/rbs/namespace.rb#12 + def empty; end + + # source://rbs//lib/rbs/namespace.rb#93 + def parse(string); end + + # source://rbs//lib/rbs/namespace.rb#16 + def root; end + end +end + +# source://rbs//lib/rbs/errors.rb#229 +class RBS::NoMixinFoundError < ::RBS::DefinitionError + include ::RBS::DetailedMessageable + + # @return [NoMixinFoundError] a new instance of NoMixinFoundError + # + # source://rbs//lib/rbs/errors.rb#235 + def initialize(type_name:, member:); end + + # source://rbs//lib/rbs/errors.rb#242 + def location; end + + # Returns the value of attribute member. + # + # source://rbs//lib/rbs/errors.rb#233 + def member; end + + # Returns the value of attribute type_name. + # + # source://rbs//lib/rbs/errors.rb#232 + def type_name; end + + class << self + # source://rbs//lib/rbs/errors.rb#246 + def check!(type_name, env:, member:); end + end +end + +# source://rbs//lib/rbs/errors.rb#210 +class RBS::NoSelfTypeFoundError < ::RBS::DefinitionError + include ::RBS::DetailedMessageable + + # @return [NoSelfTypeFoundError] a new instance of NoSelfTypeFoundError + # + # source://rbs//lib/rbs/errors.rb#216 + def initialize(type_name:, location:); end + + # Returns the value of attribute location. + # + # source://rbs//lib/rbs/errors.rb#214 + def location; end + + # Returns the value of attribute type_name. + # + # source://rbs//lib/rbs/errors.rb#213 + def type_name; end + + class << self + # source://rbs//lib/rbs/errors.rb#223 + def check!(self_type, env:); end + end +end + +# source://rbs//lib/rbs/errors.rb#167 +class RBS::NoSuperclassFoundError < ::RBS::DefinitionError + # @return [NoSuperclassFoundError] a new instance of NoSuperclassFoundError + # + # source://rbs//lib/rbs/errors.rb#171 + def initialize(type_name:, location:); end + + # Returns the value of attribute location. + # + # source://rbs//lib/rbs/errors.rb#169 + def location; end + + # Returns the value of attribute type_name. + # + # source://rbs//lib/rbs/errors.rb#168 + def type_name; end + + class << self + # source://rbs//lib/rbs/errors.rb#178 + def check!(type_name, env:, location:); end + end +end + +# source://rbs//lib/rbs/errors.rb#148 +class RBS::NoTypeFoundError < ::RBS::DefinitionError + include ::RBS::DetailedMessageable + + # @return [NoTypeFoundError] a new instance of NoTypeFoundError + # + # source://rbs//lib/rbs/errors.rb#154 + def initialize(type_name:, location:); end + + # Returns the value of attribute location. + # + # source://rbs//lib/rbs/errors.rb#152 + def location; end + + # Returns the value of attribute type_name. + # + # source://rbs//lib/rbs/errors.rb#151 + def type_name; end + + class << self + # source://rbs//lib/rbs/errors.rb#161 + def check!(type_name, env:, location:); end + end +end + +# source://rbs//lib/rbs/errors.rb#500 +class RBS::NonregularTypeAliasError < ::RBS::BaseError + include ::RBS::DetailedMessageable + + # @return [NonregularTypeAliasError] a new instance of NonregularTypeAliasError + # + # source://rbs//lib/rbs/errors.rb#506 + def initialize(diagnostic:, location:); end + + # Returns the value of attribute diagnostic. + # + # source://rbs//lib/rbs/errors.rb#503 + def diagnostic; end + + # Returns the value of attribute location. + # + # source://rbs//lib/rbs/errors.rb#504 + def location; end +end + +# source://rbs//lib/rbs/parser/lex_result.rb#4 +class RBS::Parser + class << self + def _lex(_arg0, _arg1); end + def _parse_method_type(_arg0, _arg1, _arg2, _arg3, _arg4); end + def _parse_signature(_arg0, _arg1); end + def _parse_type(_arg0, _arg1, _arg2, _arg3, _arg4); end + + # source://rbs//lib/rbs/parser_aux.rb#34 + def buffer(source); end + + # source://rbs//lib/rbs/parser_aux.rb#25 + def lex(source); 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 + + # source://rbs//lib/rbs/parser_aux.rb#18 + def parse_signature(source); end + + # 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 + end +end + +# source://rbs//lib/rbs/parser_aux.rb#43 +RBS::Parser::KEYWORDS = T.let(T.unsafe(nil), Hash) + +# source://rbs//lib/rbs/parser/lex_result.rb#5 +class RBS::Parser::LexResult + # @return [LexResult] a new instance of LexResult + # + # source://rbs//lib/rbs/parser/lex_result.rb#9 + def initialize(buffer:, value:); end + + # Returns the value of attribute buffer. + # + # source://rbs//lib/rbs/parser/lex_result.rb#6 + def buffer; end + + # Returns the value of attribute value. + # + # source://rbs//lib/rbs/parser/lex_result.rb#7 + def value; end +end + +# source://rbs//lib/rbs/parser/token.rb#5 +class RBS::Parser::Token + # @return [Token] a new instance of Token + # + # source://rbs//lib/rbs/parser/token.rb#9 + def initialize(type:, location:); end + + # @return [Boolean] + # + # source://rbs//lib/rbs/parser/token.rb#18 + def comment?; end + + # Returns the value of attribute location. + # + # source://rbs//lib/rbs/parser/token.rb#7 + def location; end + + # Returns the value of attribute type. + # + # source://rbs//lib/rbs/parser/token.rb#6 + def type; end + + # source://rbs//lib/rbs/parser/token.rb#14 + def value; end +end + +# source://rbs//lib/rbs/errors.rb#51 +class RBS::ParsingError < ::RBS::BaseError + include ::RBS::DetailedMessageable + + # @return [ParsingError] a new instance of ParsingError + # + # source://rbs//lib/rbs/errors.rb#58 + def initialize(location, error_message, token_type); end + + # Returns the value of attribute error_message. + # + # source://rbs//lib/rbs/errors.rb#55 + def error_message; end + + # Returns the value of attribute location. + # + # source://rbs//lib/rbs/errors.rb#54 + def location; end + + # Returns the value of attribute token_type. + # + # source://rbs//lib/rbs/errors.rb#56 + def token_type; end +end + +# source://rbs//lib/rbs/prototype/helpers.rb#4 +module RBS::Prototype; end + +# source://rbs//lib/rbs/prototype/helpers.rb#5 +module RBS::Prototype::Helpers + private + + # @return [Boolean] + # + # source://rbs//lib/rbs/prototype/helpers.rb#96 + def any_node?(node, nodes: T.unsafe(nil), &block); end + + # NOTE: args_node may be a nil by a bug + # https://bugs.ruby-lang.org/issues/17495 + # + # source://rbs//lib/rbs/prototype/helpers.rb#120 + def args_from_node(args_node); end + + # source://rbs//lib/rbs/prototype/helpers.rb#8 + def block_from_body(node); end + + # source://rbs//lib/rbs/prototype/helpers.rb#84 + def each_child(node, &block); end + + # source://rbs//lib/rbs/prototype/helpers.rb#88 + def each_node(nodes); end + + # @return [Boolean] + # + # source://rbs//lib/rbs/prototype/helpers.rb#108 + def keyword_hash?(node); end + + # @return [Boolean] + # + # source://rbs//lib/rbs/prototype/helpers.rb#124 + def symbol_literal_node?(node); end + + # source://rbs//lib/rbs/prototype/helpers.rb#135 + def untyped; end +end + +# source://rbs//lib/rbs/prototype/node_usage.rb#5 +class RBS::Prototype::NodeUsage + include ::RBS::Prototype::Helpers + + # @return [NodeUsage] a new instance of NodeUsage + # + # source://rbs//lib/rbs/prototype/node_usage.rb#10 + def initialize(node); end + + # source://rbs//lib/rbs/prototype/node_usage.rb#25 + def calculate(node, conditional:); end + + # Returns the value of attribute conditional_nodes. + # + # source://rbs//lib/rbs/prototype/node_usage.rb#8 + def conditional_nodes; end + + # source://rbs//lib/rbs/prototype/node_usage.rb#17 + def each_conditional_node(&block); end +end + +# source://rbs//lib/rbs/prototype/rb.rb#5 +class RBS::Prototype::RB + include ::RBS::Prototype::Helpers + + # @return [RB] a new instance of RB + # + # source://rbs//lib/rbs/prototype/rb.rb#45 + def initialize; end + + # source://rbs//lib/rbs/prototype/rb.rb#560 + def block_type(node); end + + # source://rbs//lib/rbs/prototype/rb.rb#540 + def body_type(node); end + + # source://rbs//lib/rbs/prototype/rb.rb#455 + def const_to_name(node, context:); end + + # source://rbs//lib/rbs/prototype/rb.rb#432 + def const_to_name!(node, context: T.unsafe(nil)); end + + # source://rbs//lib/rbs/prototype/rb.rb#771 + def current_accessibility(decls, index = T.unsafe(nil)); end + + # source://rbs//lib/rbs/prototype/rb.rb#49 + def decls; end + + # source://rbs//lib/rbs/prototype/rb.rb#811 + def find_def_index_by_name(decls, name); end + + # source://rbs//lib/rbs/prototype/rb.rb#535 + def function_return_type_from_body(node); end + + # source://rbs//lib/rbs/prototype/rb.rb#477 + def function_type_from_body(node, def_name); end + + # source://rbs//lib/rbs/prototype/rb.rb#553 + def if_unless_type(node); end + + # @return [Boolean] + # + # source://rbs//lib/rbs/prototype/rb.rb#807 + def is_accessibility?(decl); end + + # source://rbs//lib/rbs/prototype/rb.rb#466 + def literal_to_symbol(node); end + + # source://rbs//lib/rbs/prototype/rb.rb#574 + def literal_to_type(node); end + + # backward compatible + # + # source://rbs//lib/rbs/prototype/rb.rb#718 + def node_type(node, default: T.unsafe(nil)); end + + # source://rbs//lib/rbs/prototype/rb.rb#718 + def param_type(node, default: T.unsafe(nil)); end + + # source://rbs//lib/rbs/prototype/rb.rb#75 + def parse(string); end + + # source://rbs//lib/rbs/prototype/rb.rb#763 + def private; end + + # source://rbs//lib/rbs/prototype/rb.rb#107 + def process(node, decls:, comments:, context:); end + + # source://rbs//lib/rbs/prototype/rb.rb#426 + def process_children(node, decls:, comments:, context:); end + + # source://rbs//lib/rbs/prototype/rb.rb#767 + def public; end + + # source://rbs//lib/rbs/prototype/rb.rb#698 + def range_element_type(types); end + + # source://rbs//lib/rbs/prototype/rb.rb#781 + def remove_unnecessary_accessibility_methods!(decls); end + + # source://rbs//lib/rbs/prototype/rb.rb#829 + def sort_members!(decls); end + + # Returns the value of attribute source_decls. + # + # source://rbs//lib/rbs/prototype/rb.rb#42 + def source_decls; end + + # Returns the value of attribute toplevel_members. + # + # source://rbs//lib/rbs/prototype/rb.rb#43 + def toplevel_members; end + + # source://rbs//lib/rbs/prototype/rb.rb#687 + def types_to_union_type(types); end +end + +# source://rbs//lib/rbs/prototype/rb.rb#8 +class RBS::Prototype::RB::Context < ::Struct + # source://rbs//lib/rbs/prototype/rb.rb#25 + def attribute_kind; end + + # source://rbs//lib/rbs/prototype/rb.rb#33 + def enter_namespace(namespace); end + + # source://rbs//lib/rbs/prototype/rb.rb#15 + def method_kind; end + + # source://rbs//lib/rbs/prototype/rb.rb#37 + def update(module_function: T.unsafe(nil), singleton: T.unsafe(nil), in_def: T.unsafe(nil)); end + + class << self + # source://rbs//lib/rbs/prototype/rb.rb#11 + def initial(namespace: T.unsafe(nil)); end + end +end + +# source://rbs//lib/rbs/prototype/rbi.rb#5 +class RBS::Prototype::RBI + include ::RBS::Prototype::Helpers + + # @return [RBI] a new instance of RBI + # + # source://rbs//lib/rbs/prototype/rbi.rb#12 + def initialize; end + + # @return [Boolean] + # + # source://rbs//lib/rbs/prototype/rbi.rb#561 + def call_node?(node, name:, receiver: T.unsafe(nil), args: T.unsafe(nil)); end + + # source://rbs//lib/rbs/prototype/rbi.rb#565 + def const_to_name(node); end + + # source://rbs//lib/rbs/prototype/rbi.rb#90 + def current_module; end + + # source://rbs//lib/rbs/prototype/rbi.rb#94 + def current_module!; end + + # source://rbs//lib/rbs/prototype/rbi.rb#46 + def current_namespace; end + + # Returns the value of attribute decls. + # + # source://rbs//lib/rbs/prototype/rbi.rb#8 + def decls; end + + # source://rbs//lib/rbs/prototype/rbi.rb#601 + def each_arg(array, &block); end + + # source://rbs//lib/rbs/prototype/rbi.rb#615 + def each_child(node); end + + # source://rbs//lib/rbs/prototype/rbi.rb#112 + def join_comments(nodes, comments); end + + # Returns the value of attribute last_sig. + # + # source://rbs//lib/rbs/prototype/rbi.rb#10 + def last_sig; end + + # source://rbs//lib/rbs/prototype/rbi.rb#279 + def method_type(args_node, type_node, variables:, overloads:); end + + # Returns the value of attribute modules. + # + # source://rbs//lib/rbs/prototype/rbi.rb#9 + def modules; end + + # source://rbs//lib/rbs/prototype/rbi.rb#42 + def nested_name(name); end + + # source://rbs//lib/rbs/prototype/rbi.rb#623 + def node_to_hash(node); end + + # source://rbs//lib/rbs/prototype/rbi.rb#18 + def parse(string); end + + # source://rbs//lib/rbs/prototype/rbi.rb#351 + def parse_params(args_node, args, method_type, variables:, overloads:); end + + # source://rbs//lib/rbs/prototype/rbi.rb#106 + def pop_sig; end + + # @return [Boolean] + # + # source://rbs//lib/rbs/prototype/rbi.rb#553 + def proc_type?(type_node); end + + # source://rbs//lib/rbs/prototype/rbi.rb#117 + def process(node, comments:, outer: T.unsafe(nil)); end + + # source://rbs//lib/rbs/prototype/rbi.rb#52 + def push_class(name, super_class, comment:); end + + # source://rbs//lib/rbs/prototype/rbi.rb#71 + def push_module(name, comment:); end + + # source://rbs//lib/rbs/prototype/rbi.rb#98 + def push_sig(node); end + + # source://rbs//lib/rbs/prototype/rbi.rb#476 + def type_of(type_node, variables:); end + + # source://rbs//lib/rbs/prototype/rbi.rb#489 + def type_of0(type_node, variables:); end +end + +# source://rbs//lib/rbs/prototype/runtime/helpers.rb#5 +class RBS::Prototype::Runtime + include ::RBS::Prototype::Helpers + include ::RBS::Prototype::Runtime::Helpers + + # @return [Runtime] a new instance of Runtime + # + # source://rbs//lib/rbs/prototype/runtime.rb#71 + def initialize(patterns:, env:, merge:, todo: T.unsafe(nil), owners_included: T.unsafe(nil)); end + + # source://rbs//lib/rbs/prototype/runtime.rb#651 + def block_from_ast_of(method); end + + # source://rbs//lib/rbs/prototype/runtime.rb#101 + def builder; end + + # source://rbs//lib/rbs/prototype/runtime.rb#109 + def decls; end + + # Generate/find outer module declarations + # This is broken down into another method to comply with `DRY` + # This generates/finds declarations in nested form & returns the last array of declarations + # + # source://rbs//lib/rbs/prototype/runtime.rb#580 + def ensure_outer_module_declarations(mod); end + + # Returns the value of attribute env. + # + # source://rbs//lib/rbs/prototype/runtime.rb#65 + def env; end + + # source://rbs//lib/rbs/prototype/runtime.rb#485 + def generate_class(mod); end + + # source://rbs//lib/rbs/prototype/runtime.rb#423 + def generate_constants(mod, decls); end + + # source://rbs//lib/rbs/prototype/runtime.rb#299 + def generate_methods(mod, module_name, members); end + + # source://rbs//lib/rbs/prototype/runtime.rb#562 + def generate_mixin(mod, decl, type_name, type_name_absolute); end + + # source://rbs//lib/rbs/prototype/runtime.rb#524 + def generate_module(mod); end + + # source://rbs//lib/rbs/prototype/runtime.rb#470 + def generate_super_class(mod); end + + # Returns the value of attribute merge. + # + # source://rbs//lib/rbs/prototype/runtime.rb#66 + def merge; end + + # source://rbs//lib/rbs/prototype/runtime.rb#240 + def merge_rbs(module_name, members, instance: T.unsafe(nil), singleton: T.unsafe(nil)); end + + # source://rbs//lib/rbs/prototype/runtime.rb#171 + def method_type(method); end + + # Returns the value of attribute outline. + # + # source://rbs//lib/rbs/prototype/runtime.rb#69 + def outline; end + + # Sets the attribute outline + # + # @param value the value to set the attribute outline to. + # + # source://rbs//lib/rbs/prototype/runtime.rb#69 + def outline=(_arg0); end + + # Returns the value of attribute owners_included. + # + # source://rbs//lib/rbs/prototype/runtime.rb#68 + def owners_included; end + + # source://rbs//lib/rbs/prototype/runtime.rb#105 + def parse(file); end + + # Returns the value of attribute patterns. + # + # source://rbs//lib/rbs/prototype/runtime.rb#64 + def patterns; end + + # @return [Boolean] + # + # source://rbs//lib/rbs/prototype/runtime.rb#84 + def target?(const); end + + # @return [Boolean] + # + # source://rbs//lib/rbs/prototype/runtime.rb#286 + def target_method?(mod, instance: T.unsafe(nil), singleton: T.unsafe(nil)); end + + # Returns the value of attribute todo. + # + # source://rbs//lib/rbs/prototype/runtime.rb#67 + def todo; end + + # source://rbs//lib/rbs/prototype/runtime.rb#97 + def todo_object; end + + # source://rbs//lib/rbs/prototype/runtime.rb#634 + def type_args(type_name); end + + # source://rbs//lib/rbs/prototype/runtime.rb#642 + def type_params(mod); end + + private + + # @return [Boolean] + # + # source://rbs//lib/rbs/prototype/runtime.rb#413 + def can_alias?(mod, method); end + + # source://rbs//lib/rbs/prototype/runtime.rb#129 + def each_mixined_module(type_name, mod); end + + # source://rbs//lib/rbs/prototype/runtime.rb#138 + def each_mixined_module_one(type_name, mod); end +end + +# source://rbs//lib/rbs/prototype/runtime/value_object_generator.rb#213 +class RBS::Prototype::Runtime::DataGenerator < ::RBS::Prototype::Runtime::ValueObjectBase + private + + # source://rbs//lib/rbs/prototype/runtime/value_object_generator.rb#229 + 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 + + # source://rbs//lib/rbs/prototype/runtime/value_object_generator.rb#225 + def build_super_class; end + + class << self + # @return [Boolean] + # + # source://rbs//lib/rbs/prototype/runtime/value_object_generator.rb#214 + def generatable?(target); end + end +end + +# source://rbs//lib/rbs/prototype/runtime/helpers.rb#6 +module RBS::Prototype::Runtime::Helpers + private + + # source://rbs//lib/rbs/prototype/runtime/helpers.rb#19 + def const_name(const); end + + # source://rbs//lib/rbs/prototype/runtime/helpers.rb#15 + def const_name!(const); end + + # Returns the exact name & not compactly declared name + # + # source://rbs//lib/rbs/prototype/runtime/helpers.rb#10 + def only_name(mod); end + + # source://rbs//lib/rbs/prototype/runtime/helpers.rb#37 + def to_type_name(name, full_name: T.unsafe(nil)); end + + # source://rbs//lib/rbs/prototype/runtime/helpers.rb#53 + def untyped; end +end + +# source://rbs//lib/rbs/prototype/runtime/reflection.rb#6 +module RBS::Prototype::Runtime::Reflection + class << self + # source://rbs//lib/rbs/prototype/runtime/reflection.rb#12 + def constants_of(mod, inherit = T.unsafe(nil)); end + + # source://rbs//lib/rbs/prototype/runtime/reflection.rb#7 + def object_class(value); end + end +end + +# source://rbs//lib/rbs/prototype/runtime/value_object_generator.rb#91 +class RBS::Prototype::Runtime::StructGenerator < ::RBS::Prototype::Runtime::ValueObjectBase + private + + # source://rbs//lib/rbs/prototype/runtime/value_object_generator.rb#108 + def add_decl_members(decl); end + + # source://rbs//lib/rbs/prototype/runtime/value_object_generator.rb#165 + def build_overload_for_keyword_arguments; end + + # source://rbs//lib/rbs/prototype/runtime/value_object_generator.rb#151 + def build_overload_for_positional_arguments; end + + # def self.keyword_init?: () -> bool? + # + # source://rbs//lib/rbs/prototype/runtime/value_object_generator.rb#180 + 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 + + # source://rbs//lib/rbs/prototype/runtime/value_object_generator.rb#104 + def build_super_class; end + + class << self + # @return [Boolean] + # + # source://rbs//lib/rbs/prototype/runtime/value_object_generator.rb#92 + def generatable?(target); end + end +end + +# source://rbs//lib/rbs/prototype/runtime/value_object_generator.rb#102 +RBS::Prototype::Runtime::StructGenerator::CAN_CALL_KEYWORD_INIT_P = T.let(T.unsafe(nil), TrueClass) + +# source://rbs//lib/rbs/prototype/runtime.rb#10 +class RBS::Prototype::Runtime::Todo + # @return [Todo] a new instance of Todo + # + # source://rbs//lib/rbs/prototype/runtime.rb#11 + def initialize(builder:); end + + # @return [Boolean] + # + # source://rbs//lib/rbs/prototype/runtime.rb#42 + def skip_constant?(module_name:, name:); end + + # @return [Boolean] + # + # source://rbs//lib/rbs/prototype/runtime.rb#33 + def skip_instance_method?(module_name:, method:, accessibility:); end + + # @return [Boolean] + # + # source://rbs//lib/rbs/prototype/runtime.rb#15 + def skip_mixin?(type_name:, module_name:, mixin_class:); end + + # @return [Boolean] + # + # source://rbs//lib/rbs/prototype/runtime.rb#24 + def skip_singleton_method?(module_name:, method:, accessibility:); end + + private + + # source://rbs//lib/rbs/prototype/runtime.rb#49 + def mixin_decls(type_name); end +end + +# source://rbs//lib/rbs/prototype/runtime/value_object_generator.rb#8 +class RBS::Prototype::Runtime::ValueObjectBase + include ::RBS::Prototype::Runtime::Helpers + + # @return [ValueObjectBase] a new instance of ValueObjectBase + # + # source://rbs//lib/rbs/prototype/runtime/value_object_generator.rb#11 + def initialize(target_class); end + + # source://rbs//lib/rbs/prototype/runtime/value_object_generator.rb#15 + def build_decl; end + + private + + # attr_accessor foo: untyped + # + # source://rbs//lib/rbs/prototype/runtime/value_object_generator.rb#74 + def build_member_accessors(ast_members_class); end + + # def self.members: () -> [ :foo, :bar ] + # def members: () -> [ :foo, :bar ] + # + # source://rbs//lib/rbs/prototype/runtime/value_object_generator.rb#35 + 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#423 +class RBS::RecursiveAliasDefinitionError < ::RBS::DefinitionError + include ::RBS::DetailedMessageable + + # @return [RecursiveAliasDefinitionError] a new instance of RecursiveAliasDefinitionError + # + # source://rbs//lib/rbs/errors.rb#429 + def initialize(type:, defs:); end + + # Returns the value of attribute defs. + # + # source://rbs//lib/rbs/errors.rb#427 + def defs; end + + # source://rbs//lib/rbs/errors.rb#436 + def location; end + + # Returns the value of attribute type. + # + # source://rbs//lib/rbs/errors.rb#426 + def type; end +end + +# source://rbs//lib/rbs/errors.rb#110 +class RBS::RecursiveAncestorError < ::RBS::DefinitionError + # @return [RecursiveAncestorError] a new instance of RecursiveAncestorError + # + # source://rbs//lib/rbs/errors.rb#114 + def initialize(ancestors:, location:); end + + # Returns the value of attribute ancestors. + # + # source://rbs//lib/rbs/errors.rb#111 + def ancestors; end + + # Returns the value of attribute location. + # + # source://rbs//lib/rbs/errors.rb#112 + def location; end + + class << self + # source://rbs//lib/rbs/errors.rb#134 + def check!(self_ancestor, ancestors:, location:); end + end +end + +# source://rbs//lib/rbs/errors.rb#482 +class RBS::RecursiveTypeAliasError < ::RBS::BaseError + include ::RBS::DetailedMessageable + + # @return [RecursiveTypeAliasError] a new instance of RecursiveTypeAliasError + # + # source://rbs//lib/rbs/errors.rb#488 + def initialize(alias_names:, location:); end + + # Returns the value of attribute alias_names. + # + # source://rbs//lib/rbs/errors.rb#485 + def alias_names; end + + # Returns the value of attribute location. + # + # source://rbs//lib/rbs/errors.rb#486 + def location; end + + # source://rbs//lib/rbs/errors.rb#495 + def name; end +end + +# source://rbs//lib/rbs/repository.rb#4 +class RBS::Repository + # @return [Repository] a new instance of Repository + # + # source://rbs//lib/rbs/repository.rb#74 + def initialize(no_stdlib: T.unsafe(nil)); end + + # source://rbs//lib/rbs/repository.rb#98 + def add(dir); end + + # Returns the value of attribute dirs. + # + # source://rbs//lib/rbs/repository.rb#71 + def dirs; end + + # Returns the value of attribute gems. + # + # source://rbs//lib/rbs/repository.rb#72 + def gems; end + + # source://rbs//lib/rbs/repository.rb#108 + def lookup(gem, version); end + + # source://rbs//lib/rbs/repository.rb#113 + def lookup_path(gem, version); end + + class << self + # source://rbs//lib/rbs/repository.rb#83 + def default; end + + # source://rbs//lib/rbs/repository.rb#87 + def find_best_version(version, candidates); end + end +end + +# source://rbs//lib/rbs/repository.rb#5 +RBS::Repository::DEFAULT_STDLIB_ROOT = T.let(T.unsafe(nil), Pathname) + +# source://rbs//lib/rbs/repository.rb#7 +class RBS::Repository::GemRBS + # @return [GemRBS] a new instance of GemRBS + # + # source://rbs//lib/rbs/repository.rb#11 + def initialize(name:); end + + # @return [Boolean] + # + # source://rbs//lib/rbs/repository.rb#64 + def empty?; end + + # source://rbs//lib/rbs/repository.rb#59 + def find_best_version(version); end + + # source://rbs//lib/rbs/repository.rb#54 + def latest_version; end + + # source://rbs//lib/rbs/repository.rb#22 + def load!; end + + # Returns the value of attribute name. + # + # source://rbs//lib/rbs/repository.rb#8 + def name; end + + # source://rbs//lib/rbs/repository.rb#49 + def oldest_version; end + + # Returns the value of attribute paths. + # + # source://rbs//lib/rbs/repository.rb#9 + def paths; end + + # source://rbs//lib/rbs/repository.rb#45 + def version_names; end + + # source://rbs//lib/rbs/repository.rb#17 + def versions; end +end + +# source://rbs//lib/rbs/repository.rb#69 +class RBS::Repository::VersionPath < ::Struct + def gem; end + def gem=(_); end + def path; end + def path=(_); end + def version; end + def version=(_); end + + class << self + def [](*_arg0); end + def inspect; end + def keyword_init?; end + def members; end + def new(*_arg0); end + end +end + +# source://rbs//lib/rbs/resolver/constant_resolver.rb#4 +module RBS::Resolver; end + +# source://rbs//lib/rbs/resolver/constant_resolver.rb#5 +class RBS::Resolver::ConstantResolver + # @return [ConstantResolver] a new instance of ConstantResolver + # + # source://rbs//lib/rbs/resolver/constant_resolver.rb#88 + def initialize(builder:); end + + # Returns the value of attribute builder. + # + # source://rbs//lib/rbs/resolver/constant_resolver.rb#85 + def builder; end + + # Returns the value of attribute child_constants_cache. + # + # source://rbs//lib/rbs/resolver/constant_resolver.rb#86 + def child_constants_cache; end + + # source://rbs//lib/rbs/resolver/constant_resolver.rb#112 + def children(module_name); end + + # source://rbs//lib/rbs/resolver/constant_resolver.rb#100 + def constants(context); end + + # source://rbs//lib/rbs/resolver/constant_resolver.rb#178 + def constants_from_ancestors(module_name, constants:); end + + # source://rbs//lib/rbs/resolver/constant_resolver.rb#163 + def constants_from_context(context, constants:); end + + # source://rbs//lib/rbs/resolver/constant_resolver.rb#201 + def constants_itself(context, constants:); end + + # Returns the value of attribute context_constants_cache. + # + # source://rbs//lib/rbs/resolver/constant_resolver.rb#86 + def context_constants_cache; end + + # source://rbs//lib/rbs/resolver/constant_resolver.rb#138 + def load_child_constants(name); end + + # source://rbs//lib/rbs/resolver/constant_resolver.rb#122 + def load_context_constants(context); end + + # source://rbs//lib/rbs/resolver/constant_resolver.rb#95 + def resolve(name, context:); end + + # source://rbs//lib/rbs/resolver/constant_resolver.rb#108 + def resolve_child(module_name, name); end + + # Returns the value of attribute table. + # + # source://rbs//lib/rbs/resolver/constant_resolver.rb#85 + def table; end +end + +# source://rbs//lib/rbs/resolver/constant_resolver.rb#6 +class RBS::Resolver::ConstantResolver::Table + # @return [Table] a new instance of Table + # + # source://rbs//lib/rbs/resolver/constant_resolver.rb#10 + def initialize(environment); end + + # source://rbs//lib/rbs/resolver/constant_resolver.rb#63 + def children(name); end + + # Returns the value of attribute children_table. + # + # source://rbs//lib/rbs/resolver/constant_resolver.rb#7 + def children_table; end + + # source://rbs//lib/rbs/resolver/constant_resolver.rb#67 + def constant(name); end + + # source://rbs//lib/rbs/resolver/constant_resolver.rb#80 + def constant_of_constant(name, entry); end + + # source://rbs//lib/rbs/resolver/constant_resolver.rb#71 + def constant_of_module(name, entry); end + + # Returns the value of attribute constants_table. + # + # source://rbs//lib/rbs/resolver/constant_resolver.rb#8 + def constants_table; end + + # Returns the value of attribute toplevel. + # + # source://rbs//lib/rbs/resolver/constant_resolver.rb#7 + def toplevel; end +end + +# source://rbs//lib/rbs/resolver/type_name_resolver.rb#5 +class RBS::Resolver::TypeNameResolver + # @return [TypeNameResolver] a new instance of TypeNameResolver + # + # source://rbs//lib/rbs/resolver/type_name_resolver.rb#10 + def initialize(env); end + + # Returns the value of attribute all_names. + # + # source://rbs//lib/rbs/resolver/type_name_resolver.rb#6 + def all_names; end + + # Returns the value of attribute cache. + # + # source://rbs//lib/rbs/resolver/type_name_resolver.rb#7 + def cache; end + + # Returns the value of attribute env. + # + # source://rbs//lib/rbs/resolver/type_name_resolver.rb#8 + def env; end + + # @return [Boolean] + # + # source://rbs//lib/rbs/resolver/type_name_resolver.rb#84 + def has_name?(full_name); end + + # source://rbs//lib/rbs/resolver/type_name_resolver.rb#51 + def partition(type_name); end + + # source://rbs//lib/rbs/resolver/type_name_resolver.rb#28 + def resolve(type_name, context:); end + + # source://rbs//lib/rbs/resolver/type_name_resolver.rb#69 + def resolve_in(head, context); end + + # source://rbs//lib/rbs/resolver/type_name_resolver.rb#21 + def try_cache(query); end +end + +# source://rbs//lib/rbs/substitution.rb#4 +class RBS::Substitution + # @return [Substitution] a new instance of Substitution + # + # source://rbs//lib/rbs/substitution.rb#12 + def initialize; end + + # source://rbs//lib/rbs/substitution.rb#66 + def +(other); end + + # source://rbs//lib/rbs/substitution.rb#37 + def [](ty); end + + # source://rbs//lib/rbs/substitution.rb#16 + def add(from:, to:); end + + # source://rbs//lib/rbs/substitution.rb#37 + def apply(ty); end + + # @return [Boolean] + # + # source://rbs//lib/rbs/substitution.rb#8 + def empty?; end + + # Returns the value of attribute instance_type. + # + # source://rbs//lib/rbs/substitution.rb#6 + def instance_type; end + + # Sets the attribute instance_type + # + # @param value the value to set the attribute instance_type to. + # + # source://rbs//lib/rbs/substitution.rb#6 + def instance_type=(_arg0); end + + # Returns the value of attribute mapping. + # + # source://rbs//lib/rbs/substitution.rb#5 + def mapping; end + + # source://rbs//lib/rbs/substitution.rb#55 + def without(*vars); end + + class << self + # source://rbs//lib/rbs/substitution.rb#20 + def build(variables, types, instance_type: T.unsafe(nil), &block); end + end +end + +# source://rbs//lib/rbs/subtractor.rb#4 +class RBS::Subtractor + # @return [Subtractor] a new instance of Subtractor + # + # source://rbs//lib/rbs/subtractor.rb#5 + def initialize(minuend, subtrahend); end + + # source://rbs//lib/rbs/subtractor.rb#10 + def call(minuend = T.unsafe(nil), context: T.unsafe(nil)); end + + private + + # source://rbs//lib/rbs/subtractor.rb#177 + def absolute_typename(name, context:); end + + # @return [Boolean] + # + # source://rbs//lib/rbs/subtractor.rb#160 + def access_modifier?(decl); end + + # @return [Boolean] + # + # source://rbs//lib/rbs/subtractor.rb#118 + def cvar_exist?(owner, name); end + + # source://rbs//lib/rbs/subtractor.rb#127 + def each_member(owner, &block); end + + # source://rbs//lib/rbs/subtractor.rb#48 + def filter_members(decl, context:); end + + # source://rbs//lib/rbs/subtractor.rb#148 + def filter_redundunt_access_modifiers(decls); end + + # @return [Boolean] + # + # source://rbs//lib/rbs/subtractor.rb#106 + def ivar_exist?(owner, name, kind); end + + # @return [Boolean] + # + # source://rbs//lib/rbs/subtractor.rb#60 + def member_exist?(owner, member, context:); end + + # @return [Boolean] + # + # source://rbs//lib/rbs/subtractor.rb#89 + def method_exist?(owner, method_name, kind); end + + # @return [Boolean] + # + # source://rbs//lib/rbs/subtractor.rb#137 + def mixin_exist?(owner, mixin, context:); end + + # source://rbs//lib/rbs/subtractor.rb#186 + def typename_candidates(name, context:); end + + # source://rbs//lib/rbs/subtractor.rb#164 + def update_decl(decl, members:); end +end + +# source://rbs//lib/rbs/errors.rb#343 +class RBS::SuperclassMismatchError < ::RBS::DefinitionError + # @return [SuperclassMismatchError] a new instance of SuperclassMismatchError + # + # source://rbs//lib/rbs/errors.rb#347 + def initialize(name:, entry:); end + + # Returns the value of attribute entry. + # + # source://rbs//lib/rbs/errors.rb#345 + def entry; end + + # Returns the value of attribute name. + # + # source://rbs//lib/rbs/errors.rb#344 + def name; end +end + +# source://rbs//lib/rbs/type_alias_dependency.rb#4 +class RBS::TypeAliasDependency + # @return [TypeAliasDependency] a new instance of TypeAliasDependency + # + # source://rbs//lib/rbs/type_alias_dependency.rb#14 + def initialize(env:); end + + # source://rbs//lib/rbs/type_alias_dependency.rb#27 + def build_dependencies; end + + # Check if an alias type definition is circular & prohibited + # + # @return [Boolean] + # + # source://rbs//lib/rbs/type_alias_dependency.rb#19 + def circular_definition?(alias_name); end + + # A hash which stores the transitive closure + # of the directed graph + # + # source://rbs//lib/rbs/type_alias_dependency.rb#12 + def dependencies; end + + # source://rbs//lib/rbs/type_alias_dependency.rb#57 + def dependencies_of(name); end + + # Direct dependencies corresponds to a directed graph + # with vertices as types and directions based on assignment of types + # + # source://rbs//lib/rbs/type_alias_dependency.rb#9 + def direct_dependencies; end + + # source://rbs//lib/rbs/type_alias_dependency.rb#52 + def direct_dependencies_of(name); end + + # Returns the value of attribute env. + # + # source://rbs//lib/rbs/type_alias_dependency.rb#5 + def env; end + + # source://rbs//lib/rbs/type_alias_dependency.rb#43 + def transitive_closure; end + + private + + # Recursive function to construct transitive closure + # + # source://rbs//lib/rbs/type_alias_dependency.rb#81 + def dependency(start, vertex, nested = T.unsafe(nil)); end + + # Constructs directed graph recursively + # + # source://rbs//lib/rbs/type_alias_dependency.rb#65 + def direct_dependency(type, result = T.unsafe(nil)); end +end + +# source://rbs//lib/rbs/type_alias_regularity.rb#4 +class RBS::TypeAliasRegularity + # @return [TypeAliasRegularity] a new instance of TypeAliasRegularity + # + # source://rbs//lib/rbs/type_alias_regularity.rb#16 + def initialize(env:); end + + # source://rbs//lib/rbs/type_alias_regularity.rb#61 + def build_alias_type(name); end + + # Returns the value of attribute builder. + # + # source://rbs//lib/rbs/type_alias_regularity.rb#14 + def builder; end + + # @return [Boolean] + # + # source://rbs//lib/rbs/type_alias_regularity.rb#69 + def compatible_args?(args1, args2); end + + # Returns the value of attribute diagnostics. + # + # source://rbs//lib/rbs/type_alias_regularity.rb#14 + def diagnostics; end + + # source://rbs//lib/rbs/type_alias_regularity.rb#110 + def each_alias_type(type, &block); end + + # source://rbs//lib/rbs/type_alias_regularity.rb#83 + def each_mutual_alias_defs(&block); end + + # Returns the value of attribute env. + # + # source://rbs//lib/rbs/type_alias_regularity.rb#14 + def env; end + + # @return [Boolean] + # + # source://rbs//lib/rbs/type_alias_regularity.rb#79 + def nonregular?(type_name); end + + # source://rbs//lib/rbs/type_alias_regularity.rb#22 + def validate; end + + # source://rbs//lib/rbs/type_alias_regularity.rb#39 + def validate_alias_type(alias_type, names, types); end + + class << self + # source://rbs//lib/rbs/type_alias_regularity.rb#120 + def validate(env:); end + end +end + +# source://rbs//lib/rbs/type_alias_regularity.rb#5 +class RBS::TypeAliasRegularity::Diagnostic + # @return [Diagnostic] a new instance of Diagnostic + # + # source://rbs//lib/rbs/type_alias_regularity.rb#8 + def initialize(type_name:, nonregular_type:); end + + # Returns the value of attribute nonregular_type. + # + # source://rbs//lib/rbs/type_alias_regularity.rb#6 + def nonregular_type; end + + # Returns the value of attribute type_name. + # + # source://rbs//lib/rbs/type_alias_regularity.rb#6 + def type_name; end +end + +# source://rbs//lib/rbs/type_name.rb#4 +class RBS::TypeName + # @return [TypeName] a new instance of TypeName + # + # source://rbs//lib/rbs/type_name.rb#9 + def initialize(namespace:, name:); end + + # source://rbs//lib/rbs/type_name.rb#79 + def +(other); end + + # source://rbs//lib/rbs/type_name.rb#25 + def ==(other); end + + # source://rbs//lib/rbs/type_name.rb#55 + def absolute!; end + + # @return [Boolean] + # + # source://rbs//lib/rbs/type_name.rb#59 + def absolute?; end + + # @return [Boolean] + # + # source://rbs//lib/rbs/type_name.rb#51 + def alias?; end + + # @return [Boolean] + # + # source://rbs//lib/rbs/type_name.rb#47 + def class?; end + + # source://rbs//lib/rbs/type_name.rb#25 + def eql?(other); end + + # source://rbs//lib/rbs/type_name.rb#31 + def hash; end + + # @return [Boolean] + # + # source://rbs//lib/rbs/type_name.rb#67 + def interface?; end + + # Returns the value of attribute kind. + # + # source://rbs//lib/rbs/type_name.rb#7 + def kind; end + + # Returns the value of attribute name. + # + # source://rbs//lib/rbs/type_name.rb#6 + def name; end + + # Returns the value of attribute namespace. + # + # source://rbs//lib/rbs/type_name.rb#5 + def namespace; end + + # source://rbs//lib/rbs/type_name.rb#63 + def relative!; end + + # source://rbs//lib/rbs/type_name.rb#75 + def split; end + + # source://rbs//lib/rbs/type_name.rb#39 + def to_json(state = T.unsafe(nil)); end + + # source://rbs//lib/rbs/type_name.rb#43 + def to_namespace; end + + # source://rbs//lib/rbs/type_name.rb#35 + def to_s; end + + # source://rbs//lib/rbs/type_name.rb#71 + def with_prefix(namespace); end + + class << self + # source://rbs//lib/rbs/type_name.rb#90 + def parse(string); end + end +end + +# source://rbs//lib/rbs/errors.rb#580 +class RBS::TypeParamDefaultReferenceError < ::RBS::DefinitionError + include ::RBS::DetailedMessageable + + # @return [TypeParamDefaultReferenceError] a new instance of TypeParamDefaultReferenceError + # + # source://rbs//lib/rbs/errors.rb#586 + def initialize(type_param, location:); end + + # Returns the value of attribute location. + # + # source://rbs//lib/rbs/errors.rb#584 + def location; end + + # Returns the value of attribute type_param. + # + # source://rbs//lib/rbs/errors.rb#583 + def type_param; end + + class << self + # source://rbs//lib/rbs/errors.rb#592 + def check!(type_params); end + end +end + +# source://rbs//lib/rbs/types.rb#4 +module RBS::Types; end + +# source://rbs//lib/rbs/types.rb#394 +class RBS::Types::Alias + include ::RBS::Types::Application + + # @return [Alias] a new instance of Alias + # + # source://rbs//lib/rbs/types.rb#399 + def initialize(name:, args:, location:); end + + # Returns the value of attribute location. + # + # source://rbs//lib/rbs/types.rb#395 + def location; end + + # source://rbs//lib/rbs/types.rb#421 + def map_type(&block); end + + # source://rbs//lib/rbs/types.rb#413 + def map_type_name(&block); end + + # source://rbs//lib/rbs/types.rb#409 + def sub(s); end + + # source://rbs//lib/rbs/types.rb#405 + def to_json(state = T.unsafe(nil)); end +end + +# source://rbs//lib/rbs/types.rb#252 +module RBS::Types::Application + # source://rbs//lib/rbs/types.rb#256 + def ==(other); end + + # Returns the value of attribute args. + # + # source://rbs//lib/rbs/types.rb#254 + def args; end + + # source://rbs//lib/rbs/types.rb#282 + def each_type(&block); end + + # source://rbs//lib/rbs/types.rb#256 + def eql?(other); end + + # source://rbs//lib/rbs/types.rb#266 + def free_variables(set = T.unsafe(nil)); end + + # @return [Boolean] + # + # source://rbs//lib/rbs/types.rb#294 + def has_classish_type?; end + + # @return [Boolean] + # + # source://rbs//lib/rbs/types.rb#290 + def has_self_type?; end + + # source://rbs//lib/rbs/types.rb#262 + def hash; end + + # Returns the value of attribute name. + # + # source://rbs//lib/rbs/types.rb#253 + def name; end + + # source://rbs//lib/rbs/types.rb#274 + def to_s(level = T.unsafe(nil)); end + + # @return [Boolean] + # + # source://rbs//lib/rbs/types.rb#298 + def with_nonreturn_void?; end +end + +# source://rbs//lib/rbs/types.rb#41 +module RBS::Types::Bases; end + +# source://rbs//lib/rbs/types.rb#109 +class RBS::Types::Bases::Any < ::RBS::Types::Bases::Base + # source://rbs//lib/rbs/types.rb#110 + def to_s(level = T.unsafe(nil)); end + + # source://rbs//lib/rbs/types.rb#114 + def todo!; end +end + +# source://rbs//lib/rbs/types.rb#42 +class RBS::Types::Bases::Base + include ::RBS::Types::NoFreeVariables + include ::RBS::Types::NoSubst + include ::RBS::Types::EmptyEachType + include ::RBS::Types::NoTypeName + + # @return [Base] a new instance of Base + # + # source://rbs//lib/rbs/types.rb#45 + def initialize(location:); end + + # source://rbs//lib/rbs/types.rb#49 + def ==(other); end + + # source://rbs//lib/rbs/types.rb#49 + def eql?(other); end + + # @return [Boolean] + # + # source://rbs//lib/rbs/types.rb#98 + def has_classish_type?; end + + # @return [Boolean] + # + # source://rbs//lib/rbs/types.rb#94 + def has_self_type?; end + + # source://rbs//lib/rbs/types.rb#53 + def hash; end + + # Returns the value of attribute location. + # + # source://rbs//lib/rbs/types.rb#43 + def location; end + + # source://rbs//lib/rbs/types.rb#64 + def to_json(state = T.unsafe(nil)); end + + # source://rbs//lib/rbs/types.rb#69 + def to_s(level = T.unsafe(nil)); end + + # @return [Boolean] + # + # source://rbs//lib/rbs/types.rb#102 + def with_nonreturn_void?; end +end + +# source://rbs//lib/rbs/types.rb#107 +class RBS::Types::Bases::Bool < ::RBS::Types::Bases::Base; end + +# source://rbs//lib/rbs/types.rb#121 +class RBS::Types::Bases::Bottom < ::RBS::Types::Bases::Base; end + +# source://rbs//lib/rbs/types.rb#128 +class RBS::Types::Bases::Class < ::RBS::Types::Bases::Base; end + +# source://rbs//lib/rbs/types.rb#123 +class RBS::Types::Bases::Instance < ::RBS::Types::Bases::Base + # source://rbs//lib/rbs/types.rb#124 + def sub(s); end +end + +# source://rbs//lib/rbs/types.rb#119 +class RBS::Types::Bases::Nil < ::RBS::Types::Bases::Base; end + +# source://rbs//lib/rbs/types.rb#122 +class RBS::Types::Bases::Self < ::RBS::Types::Bases::Base; end + +# source://rbs//lib/rbs/types.rb#120 +class RBS::Types::Bases::Top < ::RBS::Types::Bases::Base; end + +# source://rbs//lib/rbs/types.rb#108 +class RBS::Types::Bases::Void < ::RBS::Types::Bases::Base; end + +# source://rbs//lib/rbs/types.rb#1307 +class RBS::Types::Block + # @return [Block] a new instance of Block + # + # source://rbs//lib/rbs/types.rb#1312 + def initialize(type:, required:, self_type: T.unsafe(nil)); end + + # source://rbs//lib/rbs/types.rb#1318 + def ==(other); end + + # source://rbs//lib/rbs/types.rb#1341 + def map_type(&block); end + + # Returns the value of attribute required. + # + # source://rbs//lib/rbs/types.rb#1309 + def required; end + + # Returns the value of attribute self_type. + # + # source://rbs//lib/rbs/types.rb#1310 + def self_type; end + + # source://rbs//lib/rbs/types.rb#1333 + def sub(s); end + + # source://rbs//lib/rbs/types.rb#1325 + def to_json(state = T.unsafe(nil)); end + + # Returns the value of attribute type. + # + # source://rbs//lib/rbs/types.rb#1308 + def type; end +end + +# source://rbs//lib/rbs/types.rb#352 +class RBS::Types::ClassInstance + include ::RBS::Types::Application + + # @return [ClassInstance] a new instance of ClassInstance + # + # source://rbs//lib/rbs/types.rb#357 + def initialize(name:, args:, location:); end + + # Returns the value of attribute location. + # + # source://rbs//lib/rbs/types.rb#353 + def location; end + + # source://rbs//lib/rbs/types.rb#381 + def map_type(&block); end + + # source://rbs//lib/rbs/types.rb#373 + def map_type_name(&block); end + + # source://rbs//lib/rbs/types.rb#367 + def sub(s); end + + # source://rbs//lib/rbs/types.rb#363 + def to_json(state = T.unsafe(nil)); end +end + +# source://rbs//lib/rbs/types.rb#200 +class RBS::Types::ClassSingleton + include ::RBS::Types::NoFreeVariables + include ::RBS::Types::NoSubst + include ::RBS::Types::EmptyEachType + + # @return [ClassSingleton] a new instance of ClassSingleton + # + # source://rbs//lib/rbs/types.rb#204 + def initialize(name:, location:); end + + # source://rbs//lib/rbs/types.rb#209 + def ==(other); end + + # source://rbs//lib/rbs/types.rb#209 + def eql?(other); end + + # @return [Boolean] + # + # source://rbs//lib/rbs/types.rb#243 + def has_classish_type?; end + + # @return [Boolean] + # + # source://rbs//lib/rbs/types.rb#239 + def has_self_type?; end + + # source://rbs//lib/rbs/types.rb#215 + def hash; end + + # Returns the value of attribute location. + # + # source://rbs//lib/rbs/types.rb#202 + def location; end + + # source://rbs//lib/rbs/types.rb#232 + def map_type_name; end + + # Returns the value of attribute name. + # + # source://rbs//lib/rbs/types.rb#201 + def name; end + + # source://rbs//lib/rbs/types.rb#222 + def to_json(state = T.unsafe(nil)); end + + # source://rbs//lib/rbs/types.rb#226 + def to_s(level = T.unsafe(nil)); end + + # @return [Boolean] + # + # source://rbs//lib/rbs/types.rb#247 + def with_nonreturn_void?; end +end + +# source://rbs//lib/rbs/types.rb#23 +module RBS::Types::EmptyEachType + # source://rbs//lib/rbs/types.rb#24 + def each_type; end + + # source://rbs//lib/rbs/types.rb#32 + def map_type(&block); end +end + +# source://rbs//lib/rbs/types.rb#878 +class RBS::Types::Function + # @return [Function] a new instance of Function + # + # source://rbs//lib/rbs/types.rb#934 + def initialize(required_positionals:, optional_positionals:, rest_positionals:, trailing_positionals:, required_keywords:, optional_keywords:, rest_keywords:, return_type:); end + + # source://rbs//lib/rbs/types.rb#945 + def ==(other); end + + # source://rbs//lib/rbs/types.rb#1016 + def amap(array, &block); end + + # source://rbs//lib/rbs/types.rb#1153 + def drop_head; end + + # source://rbs//lib/rbs/types.rb#1170 + def drop_tail; end + + # source://rbs//lib/rbs/types.rb#1053 + def each_param(&block); end + + # source://rbs//lib/rbs/types.rb#1038 + def each_type; end + + # @return [Boolean] + # + # source://rbs//lib/rbs/types.rb#1124 + def empty?; end + + # source://rbs//lib/rbs/types.rb#945 + def eql?(other); end + + # source://rbs//lib/rbs/types.rb#971 + def free_variables(set = T.unsafe(nil)); end + + # @return [Boolean] + # + # source://rbs//lib/rbs/types.rb#1195 + def has_classish_type?; end + + # @return [Boolean] + # + # source://rbs//lib/rbs/types.rb#1183 + def has_keyword?; end + + # @return [Boolean] + # + # source://rbs//lib/rbs/types.rb#1191 + def has_self_type?; end + + # source://rbs//lib/rbs/types.rb#959 + def hash; end + + # source://rbs//lib/rbs/types.rb#1024 + def hmapv(hash, &block); end + + # source://rbs//lib/rbs/types.rb#999 + def map_type(&block); end + + # source://rbs//lib/rbs/types.rb#1032 + def map_type_name(&block); end + + # Returns the value of attribute optional_keywords. + # + # source://rbs//lib/rbs/types.rb#930 + def optional_keywords; end + + # Returns the value of attribute optional_positionals. + # + # source://rbs//lib/rbs/types.rb#926 + def optional_positionals; end + + # source://rbs//lib/rbs/types.rb#1134 + def param_to_s; end + + # Returns the value of attribute required_keywords. + # + # source://rbs//lib/rbs/types.rb#929 + def required_keywords; end + + # Returns the value of attribute required_positionals. + # + # source://rbs//lib/rbs/types.rb#925 + def required_positionals; end + + # Returns the value of attribute rest_keywords. + # + # source://rbs//lib/rbs/types.rb#931 + def rest_keywords; end + + # Returns the value of attribute rest_positionals. + # + # source://rbs//lib/rbs/types.rb#927 + def rest_positionals; end + + # source://rbs//lib/rbs/types.rb#1149 + def return_to_s; end + + # Returns the value of attribute return_type. + # + # source://rbs//lib/rbs/types.rb#932 + def return_type; end + + # source://rbs//lib/rbs/types.rb#1080 + def sub(s); end + + # source://rbs//lib/rbs/types.rb#1067 + def to_json(state = T.unsafe(nil)); end + + # Returns the value of attribute trailing_positionals. + # + # source://rbs//lib/rbs/types.rb#928 + def trailing_positionals; end + + # source://rbs//lib/rbs/types.rb#1110 + def update(required_positionals: T.unsafe(nil), optional_positionals: T.unsafe(nil), rest_positionals: T.unsafe(nil), trailing_positionals: T.unsafe(nil), required_keywords: T.unsafe(nil), optional_keywords: T.unsafe(nil), rest_keywords: T.unsafe(nil), return_type: T.unsafe(nil)); end + + # @return [Boolean] + # + # source://rbs//lib/rbs/types.rb#1199 + def with_nonreturn_void?; end + + # source://rbs//lib/rbs/types.rb#1097 + def with_return_type(type); end + + class << self + # source://rbs//lib/rbs/types.rb#1084 + def empty(return_type); end + end +end + +# source://rbs//lib/rbs/types.rb#879 +class RBS::Types::Function::Param + # @return [Param] a new instance of Param + # + # source://rbs//lib/rbs/types.rb#884 + def initialize(type:, name:, location: T.unsafe(nil)); end + + # source://rbs//lib/rbs/types.rb#890 + def ==(other); end + + # source://rbs//lib/rbs/types.rb#890 + def eql?(other); end + + # source://rbs//lib/rbs/types.rb#896 + def hash; end + + # Returns the value of attribute location. + # + # source://rbs//lib/rbs/types.rb#882 + def location; end + + # source://rbs//lib/rbs/types.rb#900 + def map_type(&block); end + + # Returns the value of attribute name. + # + # source://rbs//lib/rbs/types.rb#881 + def name; end + + # source://rbs//lib/rbs/types.rb#908 + def to_json(state = T.unsafe(nil)); end + + # source://rbs//lib/rbs/types.rb#912 + def to_s; end + + # Returns the value of attribute type. + # + # source://rbs//lib/rbs/types.rb#880 + def type; end +end + +# source://rbs//lib/rbs/types.rb#310 +class RBS::Types::Interface + include ::RBS::Types::Application + + # @return [Interface] a new instance of Interface + # + # source://rbs//lib/rbs/types.rb#315 + def initialize(name:, args:, location:); end + + # Returns the value of attribute location. + # + # source://rbs//lib/rbs/types.rb#311 + def location; end + + # source://rbs//lib/rbs/types.rb#339 + def map_type(&block); end + + # source://rbs//lib/rbs/types.rb#331 + def map_type_name(&block); end + + # source://rbs//lib/rbs/types.rb#325 + def sub(s); end + + # source://rbs//lib/rbs/types.rb#321 + def to_json(state = T.unsafe(nil)); end +end + +# source://rbs//lib/rbs/types.rb#797 +class RBS::Types::Intersection + # @return [Intersection] a new instance of Intersection + # + # source://rbs//lib/rbs/types.rb#801 + def initialize(types:, location:); end + + # source://rbs//lib/rbs/types.rb#806 + def ==(other); end + + # source://rbs//lib/rbs/types.rb#842 + def each_type(&block); end + + # source://rbs//lib/rbs/types.rb#806 + def eql?(other); end + + # source://rbs//lib/rbs/types.rb#816 + def free_variables(set = T.unsafe(nil)); end + + # @return [Boolean] + # + # source://rbs//lib/rbs/types.rb#869 + def has_classish_type?; end + + # @return [Boolean] + # + # source://rbs//lib/rbs/types.rb#865 + def has_self_type?; end + + # source://rbs//lib/rbs/types.rb#812 + def hash; end + + # Returns the value of attribute location. + # + # source://rbs//lib/rbs/types.rb#799 + def location; end + + # source://rbs//lib/rbs/types.rb#850 + def map_type(&block); end + + # source://rbs//lib/rbs/types.rb#858 + def map_type_name(&block); end + + # source://rbs//lib/rbs/types.rb#828 + def sub(s); end + + # source://rbs//lib/rbs/types.rb#824 + def to_json(state = T.unsafe(nil)); end + + # source://rbs//lib/rbs/types.rb#833 + def to_s(level = T.unsafe(nil)); end + + # Returns the value of attribute types. + # + # source://rbs//lib/rbs/types.rb#798 + def types; end + + # @return [Boolean] + # + # source://rbs//lib/rbs/types.rb#873 + def with_nonreturn_void?; end +end + +# source://rbs//lib/rbs/types.rb#1483 +class RBS::Types::Literal + include ::RBS::Types::NoFreeVariables + include ::RBS::Types::NoSubst + include ::RBS::Types::EmptyEachType + include ::RBS::Types::NoTypeName + + # @return [Literal] a new instance of Literal + # + # source://rbs//lib/rbs/types.rb#1487 + def initialize(literal:, location:); end + + # source://rbs//lib/rbs/types.rb#1492 + def ==(other); end + + # source://rbs//lib/rbs/types.rb#1492 + def eql?(other); end + + # @return [Boolean] + # + # source://rbs//lib/rbs/types.rb#1519 + def has_classish_type?; end + + # @return [Boolean] + # + # source://rbs//lib/rbs/types.rb#1515 + def has_self_type?; end + + # source://rbs//lib/rbs/types.rb#1498 + def hash; end + + # Returns the value of attribute literal. + # + # source://rbs//lib/rbs/types.rb#1484 + def literal; end + + # Returns the value of attribute location. + # + # source://rbs//lib/rbs/types.rb#1485 + def location; end + + # source://rbs//lib/rbs/types.rb#1507 + def to_json(state = T.unsafe(nil)); end + + # source://rbs//lib/rbs/types.rb#1511 + def to_s(level = T.unsafe(nil)); end + + # @return [Boolean] + # + # source://rbs//lib/rbs/types.rb#1523 + def with_nonreturn_void?; end + + class << self + # source://rbs//lib/rbs/types.rb#1543 + def unescape_string(string, is_double_quote); end + end +end + +# source://rbs//lib/rbs/types.rb#1527 +RBS::Types::Literal::TABLE = T.let(T.unsafe(nil), Hash) + +# source://rbs//lib/rbs/types.rb#5 +module RBS::Types::NoFreeVariables + # source://rbs//lib/rbs/types.rb#6 + def free_variables(set = T.unsafe(nil)); end +end + +# source://rbs//lib/rbs/types.rb#11 +module RBS::Types::NoSubst + # source://rbs//lib/rbs/types.rb#12 + def sub(s); end +end + +# source://rbs//lib/rbs/types.rb#17 +module RBS::Types::NoTypeName + # source://rbs//lib/rbs/types.rb#18 + def map_type_name; end +end + +# source://rbs//lib/rbs/types.rb#633 +class RBS::Types::Optional + # @return [Optional] a new instance of Optional + # + # source://rbs//lib/rbs/types.rb#637 + def initialize(type:, location:); end + + # source://rbs//lib/rbs/types.rb#642 + def ==(other); end + + # source://rbs//lib/rbs/types.rb#678 + def each_type; end + + # source://rbs//lib/rbs/types.rb#642 + def eql?(other); end + + # source://rbs//lib/rbs/types.rb#652 + def free_variables(set = T.unsafe(nil)); end + + # @return [Boolean] + # + # source://rbs//lib/rbs/types.rb#708 + def has_classish_type?; end + + # @return [Boolean] + # + # source://rbs//lib/rbs/types.rb#704 + def has_self_type?; end + + # source://rbs//lib/rbs/types.rb#648 + def hash; end + + # Returns the value of attribute location. + # + # source://rbs//lib/rbs/types.rb#635 + def location; end + + # source://rbs//lib/rbs/types.rb#693 + def map_type(&block); end + + # source://rbs//lib/rbs/types.rb#686 + def map_type_name(&block); end + + # source://rbs//lib/rbs/types.rb#660 + def sub(s); end + + # source://rbs//lib/rbs/types.rb#656 + def to_json(state = T.unsafe(nil)); end + + # source://rbs//lib/rbs/types.rb#664 + def to_s(level = T.unsafe(nil)); end + + # Returns the value of attribute type. + # + # source://rbs//lib/rbs/types.rb#634 + def type; end + + # @return [Boolean] + # + # source://rbs//lib/rbs/types.rb#712 + def with_nonreturn_void?; end +end + +# source://rbs//lib/rbs/types.rb#1362 +class RBS::Types::Proc + # @return [Proc] a new instance of Proc + # + # source://rbs//lib/rbs/types.rb#1368 + def initialize(location:, type:, block:, self_type: T.unsafe(nil)); end + + # source://rbs//lib/rbs/types.rb#1375 + def ==(other); end + + # Returns the value of attribute block. + # + # source://rbs//lib/rbs/types.rb#1364 + def block; end + + # source://rbs//lib/rbs/types.rb#1427 + def each_type(&block); end + + # source://rbs//lib/rbs/types.rb#1375 + def eql?(other); end + + # source://rbs//lib/rbs/types.rb#1385 + def free_variables(set = T.unsafe(nil)); end + + # @return [Boolean] + # + # source://rbs//lib/rbs/types.rb#1466 + def has_classish_type?; end + + # @return [Boolean] + # + # source://rbs//lib/rbs/types.rb#1462 + def has_self_type?; end + + # source://rbs//lib/rbs/types.rb#1381 + def hash; end + + # Returns the value of attribute location. + # + # source://rbs//lib/rbs/types.rb#1366 + def location; end + + # source://rbs//lib/rbs/types.rb#1449 + def map_type(&block); end + + # source://rbs//lib/rbs/types.rb#1440 + def map_type_name(&block); end + + # Returns the value of attribute self_type. + # + # source://rbs//lib/rbs/types.rb#1365 + def self_type; end + + # source://rbs//lib/rbs/types.rb#1402 + def sub(s); end + + # source://rbs//lib/rbs/types.rb#1392 + def to_json(state = T.unsafe(nil)); end + + # source://rbs//lib/rbs/types.rb#1411 + def to_s(level = T.unsafe(nil)); end + + # Returns the value of attribute type. + # + # source://rbs//lib/rbs/types.rb#1363 + def type; end + + # @return [Boolean] + # + # source://rbs//lib/rbs/types.rb#1470 + def with_nonreturn_void?; end +end + +# source://rbs//lib/rbs/types.rb#517 +class RBS::Types::Record + # @return [Record] a new instance of Record + # + # source://rbs//lib/rbs/types.rb#521 + def initialize(location:, all_fields: T.unsafe(nil), fields: T.unsafe(nil)); end + + # source://rbs//lib/rbs/types.rb#545 + def ==(other); end + + # Returns the value of attribute all_fields. + # + # source://rbs//lib/rbs/types.rb#518 + def all_fields; end + + # source://rbs//lib/rbs/types.rb#593 + def each_type(&block); end + + # source://rbs//lib/rbs/types.rb#545 + def eql?(other); end + + # Returns the value of attribute fields. + # + # source://rbs//lib/rbs/types.rb#518 + def fields; end + + # source://rbs//lib/rbs/types.rb#555 + def free_variables(set = T.unsafe(nil)); end + + # @return [Boolean] + # + # source://rbs//lib/rbs/types.rb#624 + def has_classish_type?; end + + # @return [Boolean] + # + # source://rbs//lib/rbs/types.rb#620 + def has_self_type?; end + + # source://rbs//lib/rbs/types.rb#551 + def hash; end + + # Returns the value of attribute location. + # + # source://rbs//lib/rbs/types.rb#519 + def location; end + + # source://rbs//lib/rbs/types.rb#609 + def map_type(&block); end + + # source://rbs//lib/rbs/types.rb#602 + def map_type_name(&block); end + + # Returns the value of attribute optional_fields. + # + # source://rbs//lib/rbs/types.rb#518 + def optional_fields; end + + # source://rbs//lib/rbs/types.rb#570 + def sub(s); end + + # source://rbs//lib/rbs/types.rb#566 + def to_json(state = T.unsafe(nil)); end + + # source://rbs//lib/rbs/types.rb#577 + def to_s(level = T.unsafe(nil)); end + + # @return [Boolean] + # + # source://rbs//lib/rbs/types.rb#628 + def with_nonreturn_void?; end +end + +# source://rbs//lib/rbs/types.rb#1350 +module RBS::Types::SelfTypeBindingHelper + private + + # source://rbs//lib/rbs/types.rb#1353 + def self_type_binding_to_s(t); end + + class << self + # source://rbs//lib/rbs/types.rb#1353 + def self_type_binding_to_s(t); end + end +end + +# source://rbs//lib/rbs/types.rb#434 +class RBS::Types::Tuple + # @return [Tuple] a new instance of Tuple + # + # source://rbs//lib/rbs/types.rb#438 + def initialize(types:, location:); end + + # source://rbs//lib/rbs/types.rb#443 + def ==(other); end + + # source://rbs//lib/rbs/types.rb#478 + def each_type(&block); end + + # source://rbs//lib/rbs/types.rb#443 + def eql?(other); end + + # source://rbs//lib/rbs/types.rb#453 + def free_variables(set = T.unsafe(nil)); end + + # @return [Boolean] + # + # source://rbs//lib/rbs/types.rb#508 + def has_classish_type?; end + + # @return [Boolean] + # + # source://rbs//lib/rbs/types.rb#504 + def has_self_type?; end + + # source://rbs//lib/rbs/types.rb#449 + def hash; end + + # Returns the value of attribute location. + # + # source://rbs//lib/rbs/types.rb#436 + def location; end + + # source://rbs//lib/rbs/types.rb#493 + def map_type(&block); end + + # source://rbs//lib/rbs/types.rb#486 + def map_type_name(&block); end + + # source://rbs//lib/rbs/types.rb#465 + def sub(s); end + + # source://rbs//lib/rbs/types.rb#461 + def to_json(state = T.unsafe(nil)); end + + # source://rbs//lib/rbs/types.rb#470 + def to_s(level = T.unsafe(nil)); end + + # Returns the value of attribute types. + # + # source://rbs//lib/rbs/types.rb#435 + def types; end + + # @return [Boolean] + # + # source://rbs//lib/rbs/types.rb#512 + def with_nonreturn_void?; end +end + +# source://rbs//lib/rbs/types.rb#717 +class RBS::Types::Union + # @return [Union] a new instance of Union + # + # source://rbs//lib/rbs/types.rb#721 + def initialize(types:, location:); end + + # source://rbs//lib/rbs/types.rb#726 + def ==(other); end + + # source://rbs//lib/rbs/types.rb#761 + def each_type(&block); end + + # source://rbs//lib/rbs/types.rb#726 + def eql?(other); end + + # source://rbs//lib/rbs/types.rb#736 + def free_variables(set = T.unsafe(nil)); end + + # @return [Boolean] + # + # source://rbs//lib/rbs/types.rb#788 + def has_classish_type?; end + + # @return [Boolean] + # + # source://rbs//lib/rbs/types.rb#784 + def has_self_type?; end + + # source://rbs//lib/rbs/types.rb#732 + def hash; end + + # Returns the value of attribute location. + # + # source://rbs//lib/rbs/types.rb#719 + def location; end + + # source://rbs//lib/rbs/types.rb#769 + def map_type(&block); end + + # source://rbs//lib/rbs/types.rb#777 + def map_type_name(&block); end + + # source://rbs//lib/rbs/types.rb#748 + def sub(s); end + + # source://rbs//lib/rbs/types.rb#744 + def to_json(state = T.unsafe(nil)); end + + # source://rbs//lib/rbs/types.rb#753 + def to_s(level = T.unsafe(nil)); end + + # Returns the value of attribute types. + # + # source://rbs//lib/rbs/types.rb#718 + def types; end + + # @return [Boolean] + # + # source://rbs//lib/rbs/types.rb#792 + def with_nonreturn_void?; end +end + +# source://rbs//lib/rbs/types.rb#1212 +class RBS::Types::UntypedFunction + # @return [UntypedFunction] a new instance of UntypedFunction + # + # source://rbs//lib/rbs/types.rb#1215 + def initialize(return_type:); end + + # source://rbs//lib/rbs/types.rb#1295 + def ==(other); end + + # source://rbs//lib/rbs/types.rb#1245 + def each_param(&block); end + + # source://rbs//lib/rbs/types.rb#1237 + def each_type(&block); end + + # @return [Boolean] + # + # source://rbs//lib/rbs/types.rb#1271 + def empty?; end + + # source://rbs//lib/rbs/types.rb#1295 + def eql?(other); end + + # source://rbs//lib/rbs/types.rb#1219 + def free_variables(acc = T.unsafe(nil)); end + + # @return [Boolean] + # + # source://rbs//lib/rbs/types.rb#1279 + def has_classish_type?; end + + # @return [Boolean] + # + # source://rbs//lib/rbs/types.rb#1275 + def has_self_type?; end + + # source://rbs//lib/rbs/types.rb#1301 + def hash; end + + # source://rbs//lib/rbs/types.rb#1223 + def map_type(&block); end + + # source://rbs//lib/rbs/types.rb#1231 + def map_type_name(&block); end + + # source://rbs//lib/rbs/types.rb#1287 + def param_to_s; end + + # source://rbs//lib/rbs/types.rb#1291 + def return_to_s; end + + # Returns the value of attribute return_type. + # + # source://rbs//lib/rbs/types.rb#1213 + def return_type; end + + # source://rbs//lib/rbs/types.rb#1259 + def sub(subst); end + + # source://rbs//lib/rbs/types.rb#1253 + def to_json(state = T.unsafe(nil)); end + + # source://rbs//lib/rbs/types.rb#1267 + def update(return_type: T.unsafe(nil)); end + + # @return [Boolean] + # + # source://rbs//lib/rbs/types.rb#1283 + def with_nonreturn_void?; end + + # source://rbs//lib/rbs/types.rb#1263 + def with_return_type(ty); end +end + +# source://rbs//lib/rbs/types.rb#131 +class RBS::Types::Variable + include ::RBS::Types::NoTypeName + include ::RBS::Types::EmptyEachType + + # @return [Variable] a new instance of Variable + # + # source://rbs//lib/rbs/types.rb#137 + def initialize(name:, location:); end + + # source://rbs//lib/rbs/types.rb#142 + def ==(other); end + + # source://rbs//lib/rbs/types.rb#142 + def eql?(other); end + + # source://rbs//lib/rbs/types.rb#152 + def free_variables(set = T.unsafe(nil)); end + + # @return [Boolean] + # + # source://rbs//lib/rbs/types.rb#191 + def has_classish_type?; end + + # @return [Boolean] + # + # source://rbs//lib/rbs/types.rb#187 + def has_self_type?; end + + # source://rbs//lib/rbs/types.rb#148 + def hash; end + + # Returns the value of attribute location. + # + # source://rbs//lib/rbs/types.rb#133 + def location; end + + # Returns the value of attribute name. + # + # source://rbs//lib/rbs/types.rb#132 + def name; end + + # source://rbs//lib/rbs/types.rb#162 + def sub(s); end + + # source://rbs//lib/rbs/types.rb#158 + def to_json(state = T.unsafe(nil)); end + + # source://rbs//lib/rbs/types.rb#181 + def to_s(level = T.unsafe(nil)); end + + # @return [Boolean] + # + # source://rbs//lib/rbs/types.rb#195 + def with_nonreturn_void?; end + + class << self + # source://rbs//lib/rbs/types.rb#166 + def build(v); end + + # source://rbs//lib/rbs/types.rb#176 + def fresh(v = T.unsafe(nil)); end + end +end + +# source://rbs//lib/rbs/errors.rb#325 +class RBS::UnknownMethodAliasError < ::RBS::DefinitionError + include ::RBS::DetailedMessageable + + # @return [UnknownMethodAliasError] a new instance of UnknownMethodAliasError + # + # source://rbs//lib/rbs/errors.rb#333 + def initialize(type_name:, original_name:, aliased_name:, location:); end + + # Returns the value of attribute aliased_name. + # + # source://rbs//lib/rbs/errors.rb#330 + def aliased_name; end + + # Returns the value of attribute location. + # + # source://rbs//lib/rbs/errors.rb#331 + def location; end + + # Returns the value of attribute original_name. + # + # source://rbs//lib/rbs/errors.rb#329 + def original_name; end + + # Returns the value of attribute type_name. + # + # source://rbs//lib/rbs/errors.rb#328 + def type_name; end +end + +# source://rbs//lib/rbs/version.rb#4 +RBS::VERSION = T.let(T.unsafe(nil), String) + +# source://rbs//lib/rbs/validator.rb#4 +class RBS::Validator + # @return [Validator] a new instance of Validator + # + # source://rbs//lib/rbs/validator.rb#9 + def initialize(env:, resolver: T.unsafe(nil)); end + + # source://rbs//lib/rbs/validator.rb#15 + def absolute_type(type, context:, &block); end + + # Returns the value of attribute definition_builder. + # + # source://rbs//lib/rbs/validator.rb#7 + def definition_builder; end + + # Returns the value of attribute env. + # + # source://rbs//lib/rbs/validator.rb#5 + def env; end + + # Returns the value of attribute resolver. + # + # source://rbs//lib/rbs/validator.rb#6 + def resolver; end + + # source://rbs//lib/rbs/validator.rb#174 + def type_alias_dependency; end + + # source://rbs//lib/rbs/validator.rb#178 + def type_alias_regularity; end + + # source://rbs//lib/rbs/validator.rb#154 + def validate_class_alias(entry:); end + + # source://rbs//lib/rbs/validator.rb#104 + def validate_method_definition(method_def, type_name:); end + + # Validates presence of the relative type, and application arity match. + # + # source://rbs//lib/rbs/validator.rb#24 + def validate_type(type, context:); end + + # source://rbs//lib/rbs/validator.rb#63 + def validate_type_alias(entry:); end + + # source://rbs//lib/rbs/validator.rb#120 + def validate_type_params(params, type_name:, location:, method_name: T.unsafe(nil)); end +end + +# source://rbs//lib/rbs/variance_calculator.rb#4 +class RBS::VarianceCalculator + # @return [VarianceCalculator] a new instance of VarianceCalculator + # + # source://rbs//lib/rbs/variance_calculator.rb#78 + def initialize(builder:); end + + # Returns the value of attribute builder. + # + # source://rbs//lib/rbs/variance_calculator.rb#76 + def builder; end + + # source://rbs//lib/rbs/variance_calculator.rb#82 + def env; end + + # source://rbs//lib/rbs/variance_calculator.rb#169 + def function(type, result:, context:); end + + # source://rbs//lib/rbs/variance_calculator.rb#98 + def in_inherit(name:, args:, variables:); end + + # source://rbs//lib/rbs/variance_calculator.rb#86 + def in_method_type(method_type:, variables:); end + + # source://rbs//lib/rbs/variance_calculator.rb#110 + def in_type_alias(name:); end + + # source://rbs//lib/rbs/variance_calculator.rb#176 + def negate(variance); end + + # source://rbs//lib/rbs/variance_calculator.rb#121 + def type(type, result:, context:); end +end + +# source://rbs//lib/rbs/variance_calculator.rb#5 +class RBS::VarianceCalculator::Result + # @return [Result] a new instance of Result + # + # source://rbs//lib/rbs/variance_calculator.rb#8 + def initialize(variables:); end + + # @return [Boolean] + # + # source://rbs//lib/rbs/variance_calculator.rb#45 + def compatible?(var, with_annotation:); end + + # source://rbs//lib/rbs/variance_calculator.rb#24 + def contravariant(x); end + + # source://rbs//lib/rbs/variance_calculator.rb#15 + def covariant(x); end + + # source://rbs//lib/rbs/variance_calculator.rb#37 + def each(&block); end + + # @return [Boolean] + # + # source://rbs//lib/rbs/variance_calculator.rb#41 + def include?(name); end + + # @return [Boolean] + # + # source://rbs//lib/rbs/variance_calculator.rb#60 + def incompatible?(params); end + + # source://rbs//lib/rbs/variance_calculator.rb#33 + def invariant(x); end + + # Returns the value of attribute result. + # + # source://rbs//lib/rbs/variance_calculator.rb#6 + def result; end +end + +# source://rbs//lib/rbs/vendorer.rb#4 +class RBS::Vendorer + # @return [Vendorer] a new instance of Vendorer + # + # source://rbs//lib/rbs/vendorer.rb#8 + def initialize(vendor_dir:, loader:); end + + # source://rbs//lib/rbs/vendorer.rb#21 + def clean!; end + + # source://rbs//lib/rbs/vendorer.rb#28 + def copy!; end + + # source://rbs//lib/rbs/vendorer.rb#13 + def ensure_dir; end + + # Returns the value of attribute loader. + # + # source://rbs//lib/rbs/vendorer.rb#6 + def loader; end + + # Returns the value of attribute vendor_dir. + # + # source://rbs//lib/rbs/vendorer.rb#5 + def vendor_dir; end +end + +# source://rbs//lib/rbs/errors.rb#569 +class RBS::WillSyntaxError < ::RBS::DefinitionError + include ::RBS::DetailedMessageable + + # @return [WillSyntaxError] a new instance of WillSyntaxError + # + # source://rbs//lib/rbs/errors.rb#574 + def initialize(message, location:); end + + # Returns the value of attribute location. + # + # source://rbs//lib/rbs/errors.rb#572 + def location; end +end + +# source://rbs//lib/rbs/writer.rb#4 +class RBS::Writer + # @return [Writer] a new instance of Writer + # + # source://rbs//lib/rbs/writer.rb#8 + def initialize(out:); end + + # source://rbs//lib/rbs/writer.rb#361 + def attribute(kind, attr); end + + # source://rbs//lib/rbs/writer.rb#42 + def format_annotation(annotation); end + + # source://rbs//lib/rbs/writer.rb#23 + def indent(size = T.unsafe(nil)); end + + # Returns the value of attribute indentation. + # + # source://rbs//lib/rbs/writer.rb#6 + def indentation; end + + # source://rbs//lib/rbs/writer.rb#288 + def method_name(name); end + + # source://rbs//lib/rbs/writer.rb#214 + def name_and_args(name, args); end + + # source://rbs//lib/rbs/writer.rb#202 + def name_and_params(name, params); end + + # Returns the value of attribute out. + # + # source://rbs//lib/rbs/writer.rb#5 + def out; end + + # source://rbs//lib/rbs/writer.rb#30 + def prefix; end + + # source://rbs//lib/rbs/writer.rb#18 + def preserve!(preserve: T.unsafe(nil)); end + + # @return [Boolean] + # + # source://rbs//lib/rbs/writer.rb#14 + def preserve?; end + + # source://rbs//lib/rbs/writer.rb#391 + def preserve_empty_line(prev, decl); end + + # source://rbs//lib/rbs/writer.rb#224 + def put_lines(lines, leading_spaces:); end + + # source://rbs//lib/rbs/writer.rb#34 + def puts(string = T.unsafe(nil)); end + + # source://rbs//lib/rbs/writer.rb#79 + def write(contents); end + + # source://rbs//lib/rbs/writer.rb#60 + def write_annotation(annotations); end + + # source://rbs//lib/rbs/writer.rb#66 + def write_comment(comment); end + + # source://rbs//lib/rbs/writer.rb#114 + def write_decl(decl); end + + # source://rbs//lib/rbs/writer.rb#309 + def write_def(member); end + + # source://rbs//lib/rbs/writer.rb#97 + def write_directive(dir); end + + # source://rbs//lib/rbs/writer.rb#301 + def write_loc_source(located); end + + # source://rbs//lib/rbs/writer.rb#234 + def write_member(member); 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