Update RBI files for rubocop-performance.
This commit is contained in:
parent
b39df83bf1
commit
03e761079c
@ -84,6 +84,10 @@ class Regexp::Expression::Backreference::Base < ::Regexp::Expression::Base
|
|||||||
def match_length; end
|
def match_length; end
|
||||||
def referenced_expression; end
|
def referenced_expression; end
|
||||||
def referenced_expression=(_arg0); end
|
def referenced_expression=(_arg0); end
|
||||||
|
|
||||||
|
private
|
||||||
|
|
||||||
|
def initialize_copy(orig); end
|
||||||
end
|
end
|
||||||
|
|
||||||
class Regexp::Expression::Backreference::Name < ::Regexp::Expression::Backreference::Base
|
class Regexp::Expression::Backreference::Name < ::Regexp::Expression::Backreference::Base
|
||||||
@ -198,7 +202,7 @@ class Regexp::Expression::Base
|
|||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
def initialize_clone(orig); end
|
def initialize_copy(orig); end
|
||||||
end
|
end
|
||||||
|
|
||||||
class Regexp::Expression::CharacterSet < ::Regexp::Expression::Subexpression
|
class Regexp::Expression::CharacterSet < ::Regexp::Expression::Subexpression
|
||||||
@ -292,6 +296,10 @@ class Regexp::Expression::Conditional::Condition < ::Regexp::Expression::Base
|
|||||||
def reference; end
|
def reference; end
|
||||||
def referenced_expression; end
|
def referenced_expression; end
|
||||||
def referenced_expression=(_arg0); end
|
def referenced_expression=(_arg0); end
|
||||||
|
|
||||||
|
private
|
||||||
|
|
||||||
|
def initialize_copy(orig); end
|
||||||
end
|
end
|
||||||
|
|
||||||
class Regexp::Expression::Conditional::Expression < ::Regexp::Expression::Subexpression
|
class Regexp::Expression::Conditional::Expression < ::Regexp::Expression::Subexpression
|
||||||
@ -306,9 +314,13 @@ class Regexp::Expression::Conditional::Expression < ::Regexp::Expression::Subexp
|
|||||||
def referenced_expression; end
|
def referenced_expression; end
|
||||||
def referenced_expression=(_arg0); end
|
def referenced_expression=(_arg0); end
|
||||||
def to_s(format = T.unsafe(nil)); end
|
def to_s(format = T.unsafe(nil)); end
|
||||||
|
|
||||||
|
private
|
||||||
|
|
||||||
|
def initialize_copy(orig); end
|
||||||
end
|
end
|
||||||
|
|
||||||
class Regexp::Expression::Conditional::TooManyBranches < ::StandardError
|
class Regexp::Expression::Conditional::TooManyBranches < ::Regexp::Parser::Error
|
||||||
def initialize; end
|
def initialize; end
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -431,12 +443,16 @@ class Regexp::Expression::Group::Named < ::Regexp::Expression::Group::Capture
|
|||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
def initialize_clone(orig); end
|
def initialize_copy(orig); end
|
||||||
end
|
end
|
||||||
|
|
||||||
class Regexp::Expression::Group::Options < ::Regexp::Expression::Group::Base
|
class Regexp::Expression::Group::Options < ::Regexp::Expression::Group::Base
|
||||||
def option_changes; end
|
def option_changes; end
|
||||||
def option_changes=(_arg0); end
|
def option_changes=(_arg0); end
|
||||||
|
|
||||||
|
private
|
||||||
|
|
||||||
|
def initialize_copy(orig); end
|
||||||
end
|
end
|
||||||
|
|
||||||
class Regexp::Expression::Group::Passive < ::Regexp::Expression::Group::Base
|
class Regexp::Expression::Group::Passive < ::Regexp::Expression::Group::Base
|
||||||
@ -486,7 +502,7 @@ class Regexp::Expression::Quantifier
|
|||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
def initialize_clone(orig); end
|
def initialize_copy(orig); end
|
||||||
end
|
end
|
||||||
|
|
||||||
Regexp::Expression::Quantifier::MODES = T.let(T.unsafe(nil), Array)
|
Regexp::Expression::Quantifier::MODES = T.let(T.unsafe(nil), Array)
|
||||||
@ -553,7 +569,7 @@ class Regexp::Expression::Subexpression < ::Regexp::Expression::Base
|
|||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
def initialize_clone(orig); end
|
def initialize_copy(orig); end
|
||||||
end
|
end
|
||||||
|
|
||||||
module Regexp::Expression::UnicodeProperty
|
module Regexp::Expression::UnicodeProperty
|
||||||
@ -867,7 +883,6 @@ end
|
|||||||
|
|
||||||
class Regexp::Parser
|
class Regexp::Parser
|
||||||
include(::Regexp::Expression)
|
include(::Regexp::Expression)
|
||||||
include(::Regexp::Syntax)
|
|
||||||
include(::Regexp::Expression::UnicodeProperty)
|
include(::Regexp::Expression::UnicodeProperty)
|
||||||
|
|
||||||
def parse(input, syntax = T.unsafe(nil), options: T.unsafe(nil), &block); end
|
def parse(input, syntax = T.unsafe(nil), options: T.unsafe(nil), &block); end
|
||||||
@ -898,6 +913,7 @@ class Regexp::Parser
|
|||||||
def intersection(token); end
|
def intersection(token); end
|
||||||
def interval(target_node, token); end
|
def interval(target_node, token); end
|
||||||
def keep(token); end
|
def keep(token); end
|
||||||
|
def literal(token); end
|
||||||
def meta(token); end
|
def meta(token); end
|
||||||
def negate_set; end
|
def negate_set; end
|
||||||
def nest(exp); end
|
def nest(exp); end
|
||||||
@ -933,11 +949,16 @@ end
|
|||||||
|
|
||||||
Regexp::Parser::ENC_FLAGS = T.let(T.unsafe(nil), Array)
|
Regexp::Parser::ENC_FLAGS = T.let(T.unsafe(nil), Array)
|
||||||
|
|
||||||
|
class Regexp::Parser::Error < ::StandardError
|
||||||
|
end
|
||||||
|
|
||||||
Regexp::Parser::MOD_FLAGS = T.let(T.unsafe(nil), Array)
|
Regexp::Parser::MOD_FLAGS = T.let(T.unsafe(nil), Array)
|
||||||
|
|
||||||
class Regexp::Parser::ParserError < ::StandardError
|
class Regexp::Parser::ParserError < ::Regexp::Parser::Error
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Regexp::Parser::UPTokens = Regexp::Syntax::Token::UnicodeProperty
|
||||||
|
|
||||||
class Regexp::Parser::UnknownTokenError < ::Regexp::Parser::ParserError
|
class Regexp::Parser::UnknownTokenError < ::Regexp::Parser::ParserError
|
||||||
def initialize(type, token); end
|
def initialize(type, token); end
|
||||||
end
|
end
|
||||||
@ -1005,20 +1026,18 @@ class Regexp::Scanner::InvalidSequenceError < ::Regexp::Scanner::ValidationError
|
|||||||
def initialize(what = T.unsafe(nil), where = T.unsafe(nil)); end
|
def initialize(what = T.unsafe(nil), where = T.unsafe(nil)); end
|
||||||
end
|
end
|
||||||
|
|
||||||
Regexp::Scanner::PROP_MAPS_DIR = T.let(T.unsafe(nil), String)
|
|
||||||
|
|
||||||
class Regexp::Scanner::PrematureEndError < ::Regexp::Scanner::ScannerError
|
class Regexp::Scanner::PrematureEndError < ::Regexp::Scanner::ScannerError
|
||||||
def initialize(where = T.unsafe(nil)); end
|
def initialize(where = T.unsafe(nil)); end
|
||||||
end
|
end
|
||||||
|
|
||||||
class Regexp::Scanner::ScannerError < ::StandardError
|
class Regexp::Scanner::ScannerError < ::Regexp::Parser::Error
|
||||||
end
|
end
|
||||||
|
|
||||||
class Regexp::Scanner::UnknownUnicodePropertyError < ::Regexp::Scanner::ValidationError
|
class Regexp::Scanner::UnknownUnicodePropertyError < ::Regexp::Scanner::ValidationError
|
||||||
def initialize(name); end
|
def initialize(name); end
|
||||||
end
|
end
|
||||||
|
|
||||||
class Regexp::Scanner::ValidationError < ::StandardError
|
class Regexp::Scanner::ValidationError < ::Regexp::Parser::Error
|
||||||
def initialize(reason); end
|
def initialize(reason); end
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -1088,7 +1107,7 @@ class Regexp::Syntax::NotImplementedError < ::Regexp::Syntax::SyntaxError
|
|||||||
def initialize(syntax, type, token); end
|
def initialize(syntax, type, token); end
|
||||||
end
|
end
|
||||||
|
|
||||||
class Regexp::Syntax::SyntaxError < ::StandardError
|
class Regexp::Syntax::SyntaxError < ::Regexp::Parser::Error
|
||||||
end
|
end
|
||||||
|
|
||||||
module Regexp::Syntax::Token
|
module Regexp::Syntax::Token
|
||||||
@ -238,7 +238,7 @@ class RuboCop::Cop::Performance::ConstantRegexp < ::RuboCop::Cop::Base
|
|||||||
private
|
private
|
||||||
|
|
||||||
def include_interpolated_const?(node); end
|
def include_interpolated_const?(node); end
|
||||||
def within_const_assignment?(node); end
|
def within_allowed_assignment?(node); end
|
||||||
end
|
end
|
||||||
|
|
||||||
RuboCop::Cop::Performance::ConstantRegexp::MSG = T.let(T.unsafe(nil), String)
|
RuboCop::Cop::Performance::ConstantRegexp::MSG = T.let(T.unsafe(nil), String)
|
||||||
@ -482,6 +482,25 @@ RuboCop::Cop::Performance::RedundantBlockCall::SPACE = T.let(T.unsafe(nil), Stri
|
|||||||
|
|
||||||
RuboCop::Cop::Performance::RedundantBlockCall::YIELD = T.let(T.unsafe(nil), String)
|
RuboCop::Cop::Performance::RedundantBlockCall::YIELD = T.let(T.unsafe(nil), String)
|
||||||
|
|
||||||
|
class RuboCop::Cop::Performance::RedundantEqualityComparisonBlock < ::RuboCop::Cop::Base
|
||||||
|
extend(::RuboCop::Cop::AutoCorrector)
|
||||||
|
extend(::RuboCop::Cop::TargetRubyVersion)
|
||||||
|
|
||||||
|
def on_block(node); end
|
||||||
|
|
||||||
|
private
|
||||||
|
|
||||||
|
def new_argument(block_argument, block_body); end
|
||||||
|
def offense_range(node); end
|
||||||
|
def use_equality_comparison_block?(block_body); end
|
||||||
|
end
|
||||||
|
|
||||||
|
RuboCop::Cop::Performance::RedundantEqualityComparisonBlock::COMPARISON_METHODS = T.let(T.unsafe(nil), Array)
|
||||||
|
|
||||||
|
RuboCop::Cop::Performance::RedundantEqualityComparisonBlock::MSG = T.let(T.unsafe(nil), String)
|
||||||
|
|
||||||
|
RuboCop::Cop::Performance::RedundantEqualityComparisonBlock::TARGET_METHODS = T.let(T.unsafe(nil), Array)
|
||||||
|
|
||||||
class RuboCop::Cop::Performance::RedundantMatch < ::RuboCop::Cop::Base
|
class RuboCop::Cop::Performance::RedundantMatch < ::RuboCop::Cop::Base
|
||||||
extend(::RuboCop::Cop::AutoCorrector)
|
extend(::RuboCop::Cop::AutoCorrector)
|
||||||
|
|
||||||
@ -561,6 +580,27 @@ end
|
|||||||
|
|
||||||
RuboCop::Cop::Performance::RedundantSortBlock::MSG = T.let(T.unsafe(nil), String)
|
RuboCop::Cop::Performance::RedundantSortBlock::MSG = T.let(T.unsafe(nil), String)
|
||||||
|
|
||||||
|
class RuboCop::Cop::Performance::RedundantSplitRegexpArgument < ::RuboCop::Cop::Base
|
||||||
|
extend(::RuboCop::Cop::AutoCorrector)
|
||||||
|
|
||||||
|
def on_send(node); end
|
||||||
|
def split_call_with_regexp?(param0 = T.unsafe(nil)); end
|
||||||
|
|
||||||
|
private
|
||||||
|
|
||||||
|
def autocorrect(corrector, node); end
|
||||||
|
def determinist_regexp?(first_argument); end
|
||||||
|
def replacement(node); end
|
||||||
|
end
|
||||||
|
|
||||||
|
RuboCop::Cop::Performance::RedundantSplitRegexpArgument::DETERMINISTIC_REGEX = T.let(T.unsafe(nil), Regexp)
|
||||||
|
|
||||||
|
RuboCop::Cop::Performance::RedundantSplitRegexpArgument::MSG = T.let(T.unsafe(nil), String)
|
||||||
|
|
||||||
|
RuboCop::Cop::Performance::RedundantSplitRegexpArgument::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
|
||||||
|
|
||||||
|
RuboCop::Cop::Performance::RedundantSplitRegexpArgument::STR_SPECIAL_CHARS = T.let(T.unsafe(nil), Array)
|
||||||
|
|
||||||
class RuboCop::Cop::Performance::RedundantStringChars < ::RuboCop::Cop::Base
|
class RuboCop::Cop::Performance::RedundantStringChars < ::RuboCop::Cop::Base
|
||||||
include(::RuboCop::Cop::RangeHelp)
|
include(::RuboCop::Cop::RangeHelp)
|
||||||
extend(::RuboCop::Cop::AutoCorrector)
|
extend(::RuboCop::Cop::AutoCorrector)
|
||||||
Loading…
x
Reference in New Issue
Block a user