Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sorbet: update hidden definitions #7820

Merged
merged 2 commits into from Jun 24, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
@@ -1,5 +1,5 @@
# This file is autogenerated. Do not edit it by hand. Regenerate it with:
# tapioca sync
# tapioca sync --exclude json

# typed: false

Expand Down
@@ -1,5 +1,5 @@
# This file is autogenerated. Do not edit it by hand. Regenerate it with:
# tapioca sync
# tapioca sync --exclude json

# typed: true

Expand Down
@@ -1,5 +1,5 @@
# This file is autogenerated. Do not edit it by hand. Regenerate it with:
# tapioca sync
# tapioca sync --exclude json

# typed: true

Expand Down
@@ -1,5 +1,5 @@
# This file is autogenerated. Do not edit it by hand. Regenerate it with:
# tapioca sync
# tapioca sync --exclude json

# typed: true

Expand Down Expand Up @@ -53,7 +53,9 @@ class Parser::AST::Processor < ::AST::Processor
def on_empty_else(node); end
def on_ensure(node); end
def on_erange(node); end
def on_find_pattern(node); end
def on_for(node); end
def on_forward_arg(node); end
def on_gvar(node); end
def on_gvasgn(node); end
def on_hash(node); end
Expand Down Expand Up @@ -217,9 +219,11 @@ class Parser::Builders::Default
def emit_file_line_as_literals; end
def emit_file_line_as_literals=(_); end
def false(false_t); end
def find_pattern(lbrack_t, elements, rbrack_t); end
def float(float_t); end
def for(for_t, iterator, in_t, iteratee, do_t, body, end_t); end
def forward_args(begin_t, dots_t, end_t); end
def forward_arg(dots_t); end
def forward_only_args(begin_t, dots_t, end_t); end
def forwarded_args(dots_t); end
def gvar(token); end
def hash_pattern(lbrace_t, kwargs, rbrace_t); end
Expand Down Expand Up @@ -366,6 +370,8 @@ class Parser::Builders::Default
def self.emit_arg_inside_procarg0=(_); end
def self.emit_encoding; end
def self.emit_encoding=(_); end
def self.emit_forward_arg; end
def self.emit_forward_arg=(_); end
def self.emit_index; end
def self.emit_index=(_); end
def self.emit_lambda; end
Expand Down Expand Up @@ -1024,8 +1030,11 @@ class Parser::Source::TreeRewriter

def initialize(source_buffer, crossing_deletions: _, different_replacements: _, swallowed_insertions: _); end

def as_nested_actions; end
def as_replacements; end
def diagnostics; end
def empty?; end
def import!(foreign_rewriter, offset: _); end
def in_transaction?; end
def insert_after(range, content); end
def insert_after_multi(range, text); end
Expand Down Expand Up @@ -1059,10 +1068,13 @@ class Parser::Source::TreeRewriter::Action
def initialize(range, enforcer, insert_before: _, replacement: _, insert_after: _, children: _); end

def combine(action); end
def contract; end
def empty?; end
def insert_after; end
def insert_before; end
def insertion?; end
def moved(source_buffer, offset); end
def nested_actions; end
def ordered_replacements; end
def range; end
def replacement; end
Expand Down
@@ -1,5 +1,5 @@
# This file is autogenerated. Do not edit it by hand. Regenerate it with:
# tapioca sync
# tapioca sync --exclude json

# typed: true

Expand Down Expand Up @@ -3415,6 +3415,19 @@ end

RuboCop::Cop::Lint::CircularArgumentReference::MSG = T.let(T.unsafe(nil), String)

class RuboCop::Cop::Lint::ConstantResolution < ::RuboCop::Cop::Cop
def on_const(node); end
def unqualified_const?(node = _); end

private

def allowed_names; end
def const_name?(name); end
def ignored_names; end
end

RuboCop::Cop::Lint::ConstantResolution::MSG = T.let(T.unsafe(nil), String)

class RuboCop::Cop::Lint::Debugger < ::RuboCop::Cop::Cop
def binding_irb_call?(node = _); end
def debugger_call?(node = _); end
Expand Down Expand Up @@ -4004,6 +4017,7 @@ end
RuboCop::Cop::Lint::PercentSymbolArray::MSG = T.let(T.unsafe(nil), String)

class RuboCop::Cop::Lint::RaiseException < ::RuboCop::Cop::Cop
def autocorrect(node); end
def exception?(node = _); end
def exception_new_with_message?(node = _); end
def on_send(node); end
Expand Down Expand Up @@ -4170,6 +4184,7 @@ RuboCop::Cop::Lint::RedundantWithObject::MSG_EACH_WITH_OBJECT = T.let(T.unsafe(n
RuboCop::Cop::Lint::RedundantWithObject::MSG_WITH_OBJECT = T.let(T.unsafe(nil), String)

class RuboCop::Cop::Lint::RegexpAsCondition < ::RuboCop::Cop::Cop
def autocorrect(node); end
def on_match_current_line(node); end
end

Expand Down Expand Up @@ -4762,11 +4777,14 @@ class RuboCop::Cop::Metrics::CyclomaticComplexity < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::ConfigurableMax)
include(::RuboCop::Cop::IgnoredMethods)
include(::RuboCop::Cop::MethodComplexity)
include(::RuboCop::Cop::Metrics::Utils::IteratingBlock)


private

def complexity_score_for(_node); end
def block_method(node); end
def complexity_score_for(node); end
def count_block?(block); end
end

RuboCop::Cop::Metrics::CyclomaticComplexity::COUNTED_NODES = T.let(T.unsafe(nil), Array)
Expand Down Expand Up @@ -4857,6 +4875,14 @@ RuboCop::Cop::Metrics::Utils::AbcSizeCalculator::BRANCH_NODES = T.let(T.unsafe(n

RuboCop::Cop::Metrics::Utils::AbcSizeCalculator::CONDITION_NODES = T.let(T.unsafe(nil), Array)

module RuboCop::Cop::Metrics::Utils::IteratingBlock
def block_method_name(node); end
def iterating_block?(node); end
def iterating_method?(name); end
end

RuboCop::Cop::Metrics::Utils::IteratingBlock::KNOWN_ITERATING_METHODS = T.let(T.unsafe(nil), Set)

module RuboCop::Cop::Migration
end

Expand Down Expand Up @@ -5478,6 +5504,9 @@ module RuboCop::Cop::RegexpLiteralHelp
private

def freespace_mode_regexp?(node); end
def pattern_source(node); end
def replace_match_with_spaces(source, pattern); end
def source_with_comments_and_interpolations_blanked(child, freespace_mode); end
end

class RuboCop::Cop::Registry
Expand Down Expand Up @@ -7376,6 +7405,7 @@ end
RuboCop::Cop::Style::MultilineMethodSignature::MSG = T.let(T.unsafe(nil), String)

class RuboCop::Cop::Style::MultilineTernaryOperator < ::RuboCop::Cop::Cop
def autocorrect(node); end
def on_if(node); end
end

Expand Down Expand Up @@ -7509,7 +7539,13 @@ end
RuboCop::Cop::Style::NestedParenthesizedCalls::MSG = T.let(T.unsafe(nil), String)

class RuboCop::Cop::Style::NestedTernaryOperator < ::RuboCop::Cop::Cop
def autocorrect(node); end
def on_if(node); end

private

def if_node(node); end
def remove_parentheses(source); end
end

RuboCop::Cop::Style::NestedTernaryOperator::MSG = T.let(T.unsafe(nil), String)
Expand Down Expand Up @@ -8056,6 +8092,26 @@ RuboCop::Cop::Style::RedundantException::MSG_1 = T.let(T.unsafe(nil), String)

RuboCop::Cop::Style::RedundantException::MSG_2 = T.let(T.unsafe(nil), String)

class RuboCop::Cop::Style::RedundantFetchBlock < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::FrozenStringLiteral)
include(::RuboCop::Cop::RangeHelp)

def autocorrect(node); end
def on_block(node); end
def redundant_fetch_block_candidate?(node = _); end

private

def basic_literal?(node); end
def build_bad_method(send, body); end
def build_good_method(send, body); end
def check_for_constant?; end
def check_for_string?; end
def fetch_range(send, node); end
end

RuboCop::Cop::Style::RedundantFetchBlock::MSG = T.let(T.unsafe(nil), String)

class RuboCop::Cop::Style::RedundantFreeze < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::FrozenStringLiteral)

Expand Down Expand Up @@ -8201,10 +8257,9 @@ class RuboCop::Cop::Style::RedundantRegexpEscape < ::RuboCop::Cop::Cop
private

def allowed_escape?(node, char, within_character_class); end
def delimiter?(node, char); end
def each_escape(node); end
def escape_range_at_index(node, index); end
def pattern_source(node); end
def slash_literal?(node); end
end

RuboCop::Cop::Style::RedundantRegexpEscape::ALLOWED_ALWAYS_ESCAPES = T.let(T.unsafe(nil), Array)
Expand Down Expand Up @@ -8266,7 +8321,6 @@ class RuboCop::Cop::Style::RedundantSelf < ::RuboCop::Cop::Cop
def add_scope(node, local_variables = _); end
def allow_self(node); end
def allowed_send_node?(node); end
def keyword?(method_name); end
def on_argument(node); end
def regular_method_call?(node); end

Expand All @@ -8275,6 +8329,8 @@ end

RuboCop::Cop::Style::RedundantSelf::KERNEL_METHODS = T.let(T.unsafe(nil), Array)

RuboCop::Cop::Style::RedundantSelf::KEYWORDS = T.let(T.unsafe(nil), Array)

RuboCop::Cop::Style::RedundantSelf::MSG = T.let(T.unsafe(nil), String)

class RuboCop::Cop::Style::RedundantSort < ::RuboCop::Cop::Cop
Expand Down Expand Up @@ -8699,8 +8755,15 @@ end
RuboCop::Cop::Style::Strip::MSG = T.let(T.unsafe(nil), String)

class RuboCop::Cop::Style::StructInheritance < ::RuboCop::Cop::Cop
include(::RuboCop::Cop::RangeHelp)

def autocorrect(node); end
def on_class(node); end
def struct_constructor?(node = _); end

private

def correct_parent(parent, corrector); end
end

RuboCop::Cop::Style::StructInheritance::MSG = T.let(T.unsafe(nil), String)
Expand Down Expand Up @@ -9066,6 +9129,7 @@ class RuboCop::Cop::Style::YodaCondition < ::RuboCop::Cop::Cop
def corrected_code(node); end
def enforce_yoda?; end
def equality_only?; end
def interpolation?(node); end
def message(node); end
def non_equality_operator?(node); end
def noncommutative_operator?(node); end
Expand Down
38 changes: 0 additions & 38 deletions Library/Homebrew/sorbet/rbi/hidden-definitions/hidden.rbi
Expand Up @@ -13558,26 +13558,6 @@ end

ParseError = Racc::ParseError

class Parser::AST::Processor
def on_find_pattern(node); end

def on_forward_arg(node); end
end

class Parser::Builders::Default
def find_pattern(lbrack_t, elements, rbrack_t); end

def forward_arg(dots_t); end

def forward_only_args(begin_t, dots_t, end_t); end
end

class Parser::Builders::Default
def self.emit_forward_arg(); end

def self.emit_forward_arg=(emit_forward_arg); end
end

Parser::CurrentRuby = Parser::Ruby26

class Parser::Ruby24
Expand Down Expand Up @@ -15344,22 +15324,6 @@ end
class Parser::Ruby26
end

class Parser::Source::TreeRewriter
def as_nested_actions(); end

def as_replacements(); end

def import!(foreign_rewriter, offset: T.unsafe(nil)); end
end

class Parser::Source::TreeRewriter::Action
def contract(); end

def moved(source_buffer, offset); end

def nested_actions(); end
end

class Pathname
include ::MachOShim
def fnmatch?(*_); end
Expand Down Expand Up @@ -24484,8 +24448,6 @@ module Tins::SexySingleton
def dup(); end
end

Tins::SexySingleton::SingletonClassMethods = Singleton::SingletonClassMethods

module Tins::SexySingleton
def self.__init__(klass); end

Expand Down