Update RBI files for parser.
This commit is contained in:
parent
659351ed59
commit
640663eba7
@ -4,17 +4,58 @@
|
|||||||
|
|
||||||
# typed: true
|
# typed: true
|
||||||
|
|
||||||
|
class AST::Node
|
||||||
|
def initialize(type, children = T.unsafe(nil), properties = T.unsafe(nil)); end
|
||||||
|
|
||||||
|
def +(array); end
|
||||||
|
def <<(element); end
|
||||||
|
def ==(other); end
|
||||||
|
def append(element); end
|
||||||
|
def children; end
|
||||||
|
def clone; end
|
||||||
|
def concat(array); end
|
||||||
|
def deconstruct; end
|
||||||
|
def dup; end
|
||||||
|
def eql?(other); end
|
||||||
|
def hash; end
|
||||||
|
def inspect(indent = T.unsafe(nil)); end
|
||||||
|
def to_a; end
|
||||||
|
def to_ast; end
|
||||||
|
def to_s(indent = T.unsafe(nil)); end
|
||||||
|
def to_sexp(indent = T.unsafe(nil)); end
|
||||||
|
def to_sexp_array; end
|
||||||
|
def type; end
|
||||||
|
def updated(type = T.unsafe(nil), children = T.unsafe(nil), properties = T.unsafe(nil)); end
|
||||||
|
|
||||||
|
protected
|
||||||
|
|
||||||
|
def assign_properties(properties); end
|
||||||
|
def fancy_type; end
|
||||||
|
|
||||||
|
private
|
||||||
|
|
||||||
|
def original_dup; end
|
||||||
|
end
|
||||||
|
|
||||||
|
class AST::Processor
|
||||||
|
include ::AST::Processor::Mixin
|
||||||
|
end
|
||||||
|
|
||||||
|
module AST::Processor::Mixin
|
||||||
|
def handler_missing(node); end
|
||||||
|
def process(node); end
|
||||||
|
def process_all(nodes); end
|
||||||
|
end
|
||||||
|
|
||||||
module Parser
|
module Parser
|
||||||
class << self
|
class << self
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
def warn_syntax_deviation(feature, version); end
|
def warn_syntax_deviation(feature, version); end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
module Parser::AST
|
module Parser::AST; end
|
||||||
end
|
|
||||||
|
|
||||||
class Parser::AST::Node < ::AST::Node
|
class Parser::AST::Node < ::AST::Node
|
||||||
def assign_properties(properties); end
|
def assign_properties(properties); end
|
||||||
@ -176,8 +217,7 @@ class Parser::Base < ::Racc::Parser
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
module Parser::Builders
|
module Parser::Builders; end
|
||||||
end
|
|
||||||
|
|
||||||
class Parser::Builders::Default
|
class Parser::Builders::Default
|
||||||
def initialize; end
|
def initialize; end
|
||||||
@ -403,8 +443,7 @@ class Parser::Builders::Default
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class Parser::ClobberingError < ::RuntimeError
|
class Parser::ClobberingError < ::RuntimeError; end
|
||||||
end
|
|
||||||
|
|
||||||
class Parser::Context
|
class Parser::Context
|
||||||
def initialize; end
|
def initialize; end
|
||||||
@ -624,13 +663,9 @@ class Parser::Lexer::Dedenter
|
|||||||
end
|
end
|
||||||
|
|
||||||
Parser::Lexer::Dedenter::TAB_WIDTH = T.let(T.unsafe(nil), Integer)
|
Parser::Lexer::Dedenter::TAB_WIDTH = T.let(T.unsafe(nil), Integer)
|
||||||
|
|
||||||
Parser::Lexer::ESCAPES = T.let(T.unsafe(nil), Hash)
|
Parser::Lexer::ESCAPES = T.let(T.unsafe(nil), Hash)
|
||||||
|
|
||||||
Parser::Lexer::KEYWORDS = T.let(T.unsafe(nil), Hash)
|
Parser::Lexer::KEYWORDS = T.let(T.unsafe(nil), Hash)
|
||||||
|
|
||||||
Parser::Lexer::KEYWORDS_BEGIN = T.let(T.unsafe(nil), Hash)
|
Parser::Lexer::KEYWORDS_BEGIN = T.let(T.unsafe(nil), Hash)
|
||||||
|
|
||||||
Parser::Lexer::LEX_STATES = T.let(T.unsafe(nil), Hash)
|
Parser::Lexer::LEX_STATES = T.let(T.unsafe(nil), Hash)
|
||||||
|
|
||||||
class Parser::Lexer::Literal
|
class Parser::Lexer::Literal
|
||||||
@ -670,13 +705,9 @@ class Parser::Lexer::Literal
|
|||||||
end
|
end
|
||||||
|
|
||||||
Parser::Lexer::Literal::DELIMITERS = T.let(T.unsafe(nil), Hash)
|
Parser::Lexer::Literal::DELIMITERS = T.let(T.unsafe(nil), Hash)
|
||||||
|
|
||||||
Parser::Lexer::Literal::TYPES = T.let(T.unsafe(nil), Hash)
|
Parser::Lexer::Literal::TYPES = T.let(T.unsafe(nil), Hash)
|
||||||
|
|
||||||
Parser::Lexer::PUNCTUATION = T.let(T.unsafe(nil), Hash)
|
Parser::Lexer::PUNCTUATION = T.let(T.unsafe(nil), Hash)
|
||||||
|
|
||||||
Parser::Lexer::PUNCTUATION_BEGIN = T.let(T.unsafe(nil), Hash)
|
Parser::Lexer::PUNCTUATION_BEGIN = T.let(T.unsafe(nil), Hash)
|
||||||
|
|
||||||
Parser::Lexer::REGEXP_META_CHARACTERS = T.let(T.unsafe(nil), Regexp)
|
Parser::Lexer::REGEXP_META_CHARACTERS = T.let(T.unsafe(nil), Regexp)
|
||||||
|
|
||||||
class Parser::Lexer::StackState
|
class Parser::Lexer::StackState
|
||||||
@ -720,13 +751,11 @@ module Parser::Messages
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
module Parser::Meta
|
module Parser::Meta; end
|
||||||
end
|
|
||||||
|
|
||||||
Parser::Meta::NODE_TYPES = T.let(T.unsafe(nil), Set)
|
Parser::Meta::NODE_TYPES = T.let(T.unsafe(nil), Set)
|
||||||
|
|
||||||
class Parser::Rewriter < ::Parser::AST::Processor
|
class Parser::Rewriter < ::Parser::AST::Processor
|
||||||
extend(::Parser::Deprecation)
|
extend ::Parser::Deprecation
|
||||||
|
|
||||||
def initialize(*_arg0); end
|
def initialize(*_arg0); end
|
||||||
|
|
||||||
@ -1181,11 +1210,8 @@ class Parser::Ruby26 < ::Parser::Base
|
|||||||
end
|
end
|
||||||
|
|
||||||
Parser::Ruby26::Racc_arg = T.let(T.unsafe(nil), Array)
|
Parser::Ruby26::Racc_arg = T.let(T.unsafe(nil), Array)
|
||||||
|
|
||||||
Parser::Ruby26::Racc_token_to_s_table = T.let(T.unsafe(nil), Array)
|
Parser::Ruby26::Racc_token_to_s_table = T.let(T.unsafe(nil), Array)
|
||||||
|
module Parser::Source; end
|
||||||
module Parser::Source
|
|
||||||
end
|
|
||||||
|
|
||||||
class Parser::Source::Buffer
|
class Parser::Source::Buffer
|
||||||
def initialize(name, first_line = T.unsafe(nil), source: T.unsafe(nil)); end
|
def initialize(name, first_line = T.unsafe(nil), source: T.unsafe(nil)); end
|
||||||
@ -1266,7 +1292,6 @@ class Parser::Source::Comment::Associator
|
|||||||
end
|
end
|
||||||
|
|
||||||
Parser::Source::Comment::Associator::MAGIC_COMMENT_RE = T.let(T.unsafe(nil), Regexp)
|
Parser::Source::Comment::Associator::MAGIC_COMMENT_RE = T.let(T.unsafe(nil), Regexp)
|
||||||
|
|
||||||
Parser::Source::Comment::Associator::POSTFIX_TYPES = T.let(T.unsafe(nil), Set)
|
Parser::Source::Comment::Associator::POSTFIX_TYPES = T.let(T.unsafe(nil), Set)
|
||||||
|
|
||||||
class Parser::Source::Map
|
class Parser::Source::Map
|
||||||
@ -1436,8 +1461,8 @@ class Parser::Source::Map::Variable < ::Parser::Source::Map
|
|||||||
end
|
end
|
||||||
|
|
||||||
class Parser::Source::Range
|
class Parser::Source::Range
|
||||||
include(::Comparable)
|
include ::Comparable
|
||||||
include(::RuboCop::AST::Ext::Range)
|
include ::RuboCop::AST::Ext::Range
|
||||||
|
|
||||||
def initialize(source_buffer, begin_pos, end_pos); end
|
def initialize(source_buffer, begin_pos, end_pos); end
|
||||||
|
|
||||||
@ -1478,7 +1503,7 @@ class Parser::Source::Range
|
|||||||
end
|
end
|
||||||
|
|
||||||
class Parser::Source::Rewriter
|
class Parser::Source::Rewriter
|
||||||
extend(::Parser::Deprecation)
|
extend ::Parser::Deprecation
|
||||||
|
|
||||||
def initialize(source_buffer); end
|
def initialize(source_buffer); end
|
||||||
|
|
||||||
@ -1522,7 +1547,7 @@ class Parser::Source::Rewriter
|
|||||||
end
|
end
|
||||||
|
|
||||||
class Parser::Source::Rewriter::Action
|
class Parser::Source::Rewriter::Action
|
||||||
include(::Comparable)
|
include ::Comparable
|
||||||
|
|
||||||
def initialize(range, replacement = T.unsafe(nil), allow_multiple_insertions = T.unsafe(nil), order = T.unsafe(nil)); end
|
def initialize(range, replacement = T.unsafe(nil), allow_multiple_insertions = T.unsafe(nil), order = T.unsafe(nil)); end
|
||||||
|
|
||||||
@ -1538,7 +1563,7 @@ end
|
|||||||
Parser::Source::Rewriter::DEPRECATION_WARNING = T.let(T.unsafe(nil), String)
|
Parser::Source::Rewriter::DEPRECATION_WARNING = T.let(T.unsafe(nil), String)
|
||||||
|
|
||||||
class Parser::Source::TreeRewriter
|
class Parser::Source::TreeRewriter
|
||||||
extend(::Parser::Deprecation)
|
extend ::Parser::Deprecation
|
||||||
|
|
||||||
def initialize(source_buffer, crossing_deletions: T.unsafe(nil), different_replacements: T.unsafe(nil), swallowed_insertions: T.unsafe(nil)); end
|
def initialize(source_buffer, crossing_deletions: T.unsafe(nil), different_replacements: T.unsafe(nil), swallowed_insertions: T.unsafe(nil)); end
|
||||||
|
|
||||||
@ -1610,7 +1635,6 @@ class Parser::Source::TreeRewriter::Action
|
|||||||
end
|
end
|
||||||
|
|
||||||
Parser::Source::TreeRewriter::DEPRECATION_WARNING = T.let(T.unsafe(nil), String)
|
Parser::Source::TreeRewriter::DEPRECATION_WARNING = T.let(T.unsafe(nil), String)
|
||||||
|
|
||||||
Parser::Source::TreeRewriter::POLICY_TO_LEVEL = T.let(T.unsafe(nil), Hash)
|
Parser::Source::TreeRewriter::POLICY_TO_LEVEL = T.let(T.unsafe(nil), Hash)
|
||||||
|
|
||||||
class Parser::StaticEnvironment
|
class Parser::StaticEnvironment
|
||||||
Loading…
x
Reference in New Issue
Block a user