Merge pull request #8722 from Homebrew/tapioca-update
sorbet: update RBI files using Tapioca.
This commit is contained in:
commit
fe40bd53d2
@ -1,6 +1,6 @@
|
||||
# DO NOT EDIT MANUALLY
|
||||
# This is an autogenerated file for types exported from the `rubocop-ast` gem.
|
||||
# Please instead update this file by running `tapioca generate --exclude json`.
|
||||
# Please instead update this file by running `tapioca sync`.
|
||||
|
||||
# typed: true
|
||||
|
||||
@ -215,6 +215,7 @@ module RuboCop::AST::CollectionNode
|
||||
def rotate(*args, &block); end
|
||||
def rotate!(*args, &block); end
|
||||
def sample(*args, &block); end
|
||||
def save_plist(*args, &block); end
|
||||
def select(*args, &block); end
|
||||
def select!(*args, &block); end
|
||||
def shelljoin(*args, &block); end
|
||||
@ -236,6 +237,7 @@ module RuboCop::AST::CollectionNode
|
||||
def take_while(*args, &block); end
|
||||
def to_ary(*args, &block); end
|
||||
def to_h(*args, &block); end
|
||||
def to_plist(*args, &block); end
|
||||
def to_set(*args, &block); end
|
||||
def transpose(*args, &block); end
|
||||
def union(*args, &block); end
|
||||
@ -256,6 +258,16 @@ module RuboCop::AST::ConditionalNode
|
||||
def single_line_condition?; end
|
||||
end
|
||||
|
||||
class RuboCop::AST::ConstNode < ::RuboCop::AST::Node
|
||||
def absolute?; end
|
||||
def class_name?; end
|
||||
def each_path(&block); end
|
||||
def module_name?; end
|
||||
def namespace; end
|
||||
def relative?; end
|
||||
def short_name; end
|
||||
end
|
||||
|
||||
class RuboCop::AST::DefNode < ::RuboCop::AST::Node
|
||||
include(::RuboCop::AST::ParameterizedNode)
|
||||
include(::RuboCop::AST::MethodIdentifierPredicates)
|
||||
@ -626,6 +638,8 @@ class RuboCop::AST::Node < ::Parser::AST::Node
|
||||
def lambda_or_proc?(node = T.unsafe(nil)); end
|
||||
def lambda_type?; end
|
||||
def last_line; end
|
||||
def left_sibling; end
|
||||
def left_siblings; end
|
||||
def line_count; end
|
||||
def literal?; end
|
||||
def loop_keyword?; end
|
||||
@ -692,6 +706,8 @@ class RuboCop::AST::Node < ::Parser::AST::Node
|
||||
def restarg_type?; end
|
||||
def retry_type?; end
|
||||
def return_type?; end
|
||||
def right_sibling; end
|
||||
def right_siblings; end
|
||||
def root_type?; end
|
||||
def sclass_type?; end
|
||||
def self_type?; end
|
||||
@ -911,7 +927,9 @@ class RuboCop::AST::ProcessedSource
|
||||
def file_path; end
|
||||
def find_comment(&block); end
|
||||
def find_token(&block); end
|
||||
def first_token_of(range_or_node); end
|
||||
def following_line(token); end
|
||||
def last_token_of(range_or_node); end
|
||||
def line_indentation(line_number); end
|
||||
def line_with_comment?(line); end
|
||||
def lines; end
|
||||
@ -922,14 +940,19 @@ class RuboCop::AST::ProcessedSource
|
||||
def ruby_version; end
|
||||
def start_with?(string); end
|
||||
def tokens; end
|
||||
def tokens_within(range_or_node); end
|
||||
def valid_syntax?; end
|
||||
|
||||
private
|
||||
|
||||
def comment_index; end
|
||||
def create_parser(ruby_version); end
|
||||
def first_token_index(range_or_node); end
|
||||
def last_token_index(range_or_node); end
|
||||
def parse(source, ruby_version); end
|
||||
def parser_class(ruby_version); end
|
||||
def sorted_tokens; end
|
||||
def source_range(range_or_node); end
|
||||
def tokenize(parser); end
|
||||
|
||||
class << self
|
||||
@ -945,6 +968,8 @@ class RuboCop::AST::RangeNode < ::RuboCop::AST::Node
|
||||
end
|
||||
|
||||
class RuboCop::AST::RegexpNode < ::RuboCop::AST::Node
|
||||
include(::RuboCop::Ext::RegexpNode)
|
||||
|
||||
def content; end
|
||||
def delimiter?(char); end
|
||||
def delimiters; end
|
||||
@ -968,7 +993,17 @@ RuboCop::AST::RegexpNode::OPTIONS = T.let(T.unsafe(nil), Hash)
|
||||
|
||||
class RuboCop::AST::ResbodyNode < ::RuboCop::AST::Node
|
||||
def body; end
|
||||
def branch_index; end
|
||||
def exception_variable; end
|
||||
def exceptions; end
|
||||
end
|
||||
|
||||
class RuboCop::AST::RescueNode < ::RuboCop::AST::Node
|
||||
def body; end
|
||||
def branches; end
|
||||
def else?; end
|
||||
def else_branch; end
|
||||
def resbody_branches; end
|
||||
end
|
||||
|
||||
class RuboCop::AST::ReturnNode < ::RuboCop::AST::Node
|
||||
@ -1129,6 +1164,7 @@ module RuboCop::AST::Traversal
|
||||
def on_match_with_trailing_comma(node); end
|
||||
def on_mlhs(node); end
|
||||
def on_module(node); end
|
||||
def on_mrasgn(node); end
|
||||
def on_next(node); end
|
||||
def on_nil(node); end
|
||||
def on_not(node); end
|
||||
@ -1143,6 +1179,7 @@ module RuboCop::AST::Traversal
|
||||
def on_postexe(node); end
|
||||
def on_preexe(node); end
|
||||
def on_procarg0(node); end
|
||||
def on_rasgn(node); end
|
||||
def on_rational(node); end
|
||||
def on_redo(node); end
|
||||
def on_regexp(node); end
|
@ -20081,14 +20081,10 @@ end
|
||||
module RuboCop::AST::CollectionNode
|
||||
def extract_options!(*args, &block); end
|
||||
|
||||
def save_plist(*args, &block); end
|
||||
|
||||
def to_default_s(*args, &block); end
|
||||
|
||||
def to_formatted_s(*args, &block); end
|
||||
|
||||
def to_plist(*args, &block); end
|
||||
|
||||
def to_sentence(*args, &block); end
|
||||
|
||||
def to_xml(*args, &block); end
|
||||
@ -20108,10 +20104,6 @@ class RuboCop::AST::Node
|
||||
def val_node(node=T.unsafe(nil)); end
|
||||
end
|
||||
|
||||
class RuboCop::AST::RegexpNode
|
||||
include ::RuboCop::Ext::RegexpNode
|
||||
end
|
||||
|
||||
class RuboCop::Cask::AST::CaskBlock
|
||||
def cask_body(*args, &block); end
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user