Unverified Commit 16f96ff3 authored by Bo Anderson's avatar Bo Anderson Committed by GitHub
Browse files

Merge pull request #12478 from Homebrew/dependabot/bundler/Library/Homebrew/rbi-0.0.8

build(deps): bump rbi from 0.0.7 to 0.0.8 in /Library/Homebrew
parents 88fd76d8 c4b49c52
......@@ -85,7 +85,7 @@ GEM
racc (1.6.0)
rack (2.2.3)
rainbow (3.0.0)
rbi (0.0.7)
rbi (0.0.8)
ast
parser
sorbet-runtime (>= 0.5.9204)
......
......@@ -26,6 +26,23 @@ class RBI::ASTVisitor
def parse_name(node); end
end
class RBI::Arg < ::RBI::Node
sig { params(value: String, loc: T.nilable(RBI::Loc)).void }
def initialize(value, loc: T.unsafe(nil)); end
sig { params(other: T.nilable(Object)).returns(T::Boolean) }
def ==(other); end
sig { override.params(v: RBI::Printer).void }
def accept_printer(v); end
sig { returns(String) }
def to_s; end
sig { returns(String) }
def value; end
end
class RBI::Attr < ::RBI::NodeWithComments
include ::RBI::Indexable
......@@ -313,10 +330,12 @@ class RBI::Group::Kind < ::T::Enum
Helpers = new
TypeMembers = new
MixesInClassMethods = new
Sends = new
TStructFields = new
TEnums = new
Inits = new
Methods = new
SingletonClasses = new
Consts = new
end
end
......@@ -366,8 +385,8 @@ class RBI::Index < ::RBI::Visitor
sig { params(id: String).returns(T::Array[RBI::Node]) }
def [](id); end
sig { params(node: T.all(RBI::Indexable, RBI::Node)).void }
def index(node); end
sig { params(nodes: RBI::Node).void }
def index(*nodes); end
sig { returns(T::Array[String]) }
def keys; end
......@@ -375,6 +394,11 @@ class RBI::Index < ::RBI::Visitor
sig { override.params(node: T.nilable(RBI::Node)).void }
def visit(node); end
private
sig { params(node: T.all(RBI::Indexable, RBI::Node)).void }
def index_node(node); end
class << self
sig { params(node: RBI::Node).returns(RBI::Index) }
def index(*node); end
......@@ -388,6 +412,23 @@ module RBI::Indexable
def index_ids; end
end
class RBI::KwArg < ::RBI::Arg
sig { params(keyword: String, value: String, loc: T.nilable(RBI::Loc)).void }
def initialize(keyword, value, loc: T.unsafe(nil)); end
sig { params(other: T.nilable(Object)).returns(T::Boolean) }
def ==(other); end
sig { override.params(v: RBI::Printer).void }
def accept_printer(v); end
sig { returns(String) }
def keyword; end
sig { returns(String) }
def to_s; end
end
class RBI::KwOptParam < ::RBI::Param
sig { params(name: String, value: String, loc: T.nilable(RBI::Loc), comments: T::Array[RBI::Comment], block: T.nilable(T.proc.params(node: RBI::KwOptParam).void)).void }
def initialize(name, value, loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end
......@@ -724,8 +765,14 @@ class RBI::Parser
sig { params(path: String).returns(RBI::Tree) }
def parse_file(path); end
sig { params(paths: T::Array[String]).returns(T::Array[RBI::Tree]) }
def parse_files(paths); end
sig { params(string: String).returns(RBI::Tree) }
def parse_string(string); end
sig { params(strings: T::Array[String]).returns(T::Array[RBI::Tree]) }
def parse_strings(strings); end
end
end
......@@ -956,6 +1003,45 @@ class RBI::Rewriters::NestSingletonMethods < ::RBI::Visitor
def visit(node); end
end
class RBI::Rewriters::RemoveKnownDefinitions < ::RBI::Visitor
sig { params(index: RBI::Index).void }
def initialize(index); end
sig { returns(T::Array[RBI::Rewriters::RemoveKnownDefinitions::Operation]) }
def operations; end
sig { override.params(node: T.nilable(RBI::Node)).void }
def visit(node); end
sig { params(nodes: T::Array[RBI::Node]).void }
def visit_all(nodes); end
private
sig { params(node: RBI::Node, previous: RBI::Node).void }
def delete_node(node, previous); end
sig { params(node: RBI::Indexable).returns(T.nilable(RBI::Node)) }
def previous_definition_for(node); end
class << self
sig { params(tree: RBI::Tree, index: RBI::Index).returns([RBI::Tree, T::Array[RBI::Rewriters::RemoveKnownDefinitions::Operation]]) }
def remove(tree, index); end
end
end
class RBI::Rewriters::RemoveKnownDefinitions::Operation < ::T::Struct
const :deleted_node, RBI::Node
const :duplicate_of, RBI::Node
sig { returns(String) }
def to_s; end
class << self
def inherited(s); end
end
end
class RBI::Rewriters::SortNodes < ::RBI::Visitor
sig { override.params(node: T.nilable(RBI::Node)).void }
def visit(node); end
......@@ -1017,6 +1103,37 @@ class RBI::ScopeConflict < ::RBI::Tree
def right; end
end
class RBI::Send < ::RBI::NodeWithComments
include ::RBI::Indexable
sig { params(method: String, args: T::Array[RBI::Arg], loc: T.nilable(RBI::Loc), comments: T::Array[RBI::Comment], block: T.nilable(T.proc.params(node: RBI::Send).void)).void }
def initialize(method, args = T.unsafe(nil), loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end
sig { params(arg: RBI::Arg).void }
def <<(arg); end
sig { params(other: T.nilable(Object)).returns(T::Boolean) }
def ==(other); end
sig { override.params(v: RBI::Printer).void }
def accept_printer(v); end
sig { returns(T::Array[RBI::Arg]) }
def args; end
sig { override.params(other: RBI::Node).returns(T::Boolean) }
def compatible_with?(other); end
sig { override.returns(T::Array[String]) }
def index_ids; end
sig { returns(String) }
def method; end
sig { returns(String) }
def to_s; end
end
class RBI::Sig < ::RBI::Node
sig { params(params: T::Array[RBI::SigParam], return_type: T.nilable(String), is_abstract: T::Boolean, is_override: T::Boolean, is_overridable: T::Boolean, type_params: T::Array[String], checked: T.nilable(Symbol), loc: T.nilable(RBI::Loc), block: T.nilable(T.proc.params(node: RBI::Sig).void)).void }
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), type_params: T.unsafe(nil), checked: T.unsafe(nil), loc: T.unsafe(nil), &block); end
......@@ -1337,14 +1454,11 @@ end
RBI::Tree::SPECIAL_METHOD_NAMES = T.let(T.unsafe(nil), Array)
class RBI::TreeBuilder < ::RBI::ASTVisitor
sig { params(file: String, comments: T::Hash[Parser::Source::Map, T::Array[Parser::Source::Comment]]).void }
def initialize(file:, comments: T.unsafe(nil)); end
sig { params(comments: T::Array[Parser::Source::Comment]).void }
def assoc_dangling_comments(comments); end
sig { params(file: String, comments: T::Array[Parser::Source::Comment], nodes_comments_assoc: T::Hash[Parser::Source::Map, T::Array[Parser::Source::Comment]]).void }
def initialize(file:, comments: T.unsafe(nil), nodes_comments_assoc: T.unsafe(nil)); end
sig { void }
def separate_header_comments; end
def post_process; end
sig { returns(RBI::Tree) }
def tree; end
......@@ -1354,6 +1468,9 @@ class RBI::TreeBuilder < ::RBI::ASTVisitor
private
sig { void }
def assoc_dangling_comments; end
sig { returns(RBI::Tree) }
def current_scope; end
......@@ -1387,6 +1504,9 @@ class RBI::TreeBuilder < ::RBI::ASTVisitor
sig { params(node: AST::Node).returns(T.nilable(RBI::Node)) }
def parse_send(node); end
sig { params(node: AST::Node).returns(T::Array[RBI::Arg]) }
def parse_send_args(node); end
sig { params(node: AST::Node).returns(RBI::Sig) }
def parse_sig(node); end
......@@ -1396,6 +1516,12 @@ class RBI::TreeBuilder < ::RBI::ASTVisitor
sig { params(node: AST::Node).returns([String, String, T.nilable(String)]) }
def parse_tstruct_prop(node); end
sig { void }
def separate_header_comments; end
sig { void }
def set_root_tree_loc; end
sig { params(node: AST::Node).returns(T::Boolean) }
def struct_definition?(node); end
end
......
......@@ -4282,6 +4282,12 @@ class RBI::Rewriters::Merge
extend ::T::Private::Methods::SingletonMethodHooks
end
class RBI::Rewriters::RemoveKnownDefinitions::Operation
extend ::T::Sig
extend ::T::Private::Methods::MethodHooks
extend ::T::Private::Methods::SingletonMethodHooks
end
class RBI::Visitor
extend ::T::Helpers
extend ::T::Sig
......
......@@ -65,7 +65,7 @@ $:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/plist-3.6.0/lib"
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/pry-0.14.1/lib"
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/rack-2.2.3/lib"
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/unparser-0.6.2/lib"
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/rbi-0.0.7/lib"
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/rbi-0.0.8/lib"
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/extensions/x86_64-darwin-14/2.6.0-static/rdiscount-2.2.0.2"
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/rdiscount-2.2.0.2/lib"
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/rexml-3.2.5/lib"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment