未验证 提交 3b9174e4 编辑于 作者: BrewTestBot's avatar BrewTestBot
浏览文件

Update RBI files for rbi.

上级 100b0736
# typed: true
# DO NOT EDIT MANUALLY
# This is an autogenerated file for types exported from the `rbi` gem.
# Please instead update this file by running `bin/tapioca gem rbi`.
# typed: true
module RBI; end
class RBI::ASTVisitor
......@@ -108,6 +108,14 @@ class RBI::AttrWriter < ::RBI::Attr
def to_s; end
end
class RBI::BlankLine < ::RBI::Comment
sig { params(loc: T.nilable(RBI::Loc)).void }
def initialize(loc: T.unsafe(nil)); end
sig { override.params(v: RBI::Printer).void }
def accept_printer(v); end
end
class RBI::BlockParam < ::RBI::Param
sig { params(name: String, loc: T.nilable(RBI::Loc), comments: T::Array[RBI::Comment], block: T.nilable(T.proc.params(node: RBI::BlockParam).void)).void }
def initialize(name, loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end
......@@ -223,14 +231,6 @@ class RBI::ConstBuilder < ::RBI::ASTVisitor
end
end
class RBI::EmptyComment < ::RBI::Comment
sig { params(loc: T.nilable(RBI::Loc)).void }
def initialize(loc: T.unsafe(nil)); end
sig { override.params(v: RBI::Printer).void }
def accept_printer(v); end
end
class RBI::Error < ::StandardError; end
class RBI::Extend < ::RBI::Mixin
......@@ -264,17 +264,36 @@ class RBI::File
def comments=(_arg0); end
sig { returns(T::Boolean) }
def empty?; end
sig { params(out: T.any(IO, StringIO), indent: Integer, print_locs: T::Boolean).void }
def print(out: T.unsafe(nil), indent: T.unsafe(nil), print_locs: T.unsafe(nil)); end
sig { returns(RBI::Tree) }
def root; end
def root=(_arg0); end
sig { void }
def set_empty_body_content; end
sig { params(command: String, reason: T.nilable(String), display_heading: T::Boolean).void }
def set_file_header(command, reason: T.unsafe(nil), display_heading: T.unsafe(nil)); end
sig { returns(T.nilable(String)) }
def strictness; end
def strictness=(_arg0); end
sig { params(indent: Integer, print_locs: T::Boolean).returns(String) }
def string(indent: T.unsafe(nil), print_locs: T.unsafe(nil)); end
sig { void }
def transform_rbi!; end
sig { returns(String) }
def transformed_string; end
end
class RBI::Group < ::RBI::Tree
......@@ -447,6 +466,14 @@ class RBI::Loc
end
end
class RBI::MergeTree < ::RBI::Tree
sig { params(loc: T.nilable(RBI::Loc), comments: T::Array[RBI::Comment], conflicts: T::Array[RBI::Rewriters::Merge::Conflict], block: T.nilable(T.proc.params(node: RBI::Tree).void)).void }
def initialize(loc: T.unsafe(nil), comments: T.unsafe(nil), conflicts: T.unsafe(nil), &block); end
sig { returns(T::Array[RBI::Rewriters::Merge::Conflict]) }
def conflicts; end
end
class RBI::Method < ::RBI::NodeWithComments
include ::RBI::Indexable
......@@ -600,6 +627,9 @@ class RBI::Node
sig { params(out: T.any(IO, StringIO), indent: Integer, print_locs: T::Boolean).void }
def print(out: T.unsafe(nil), indent: T.unsafe(nil), print_locs: T.unsafe(nil)); end
sig { params(v: RBI::Printer).void }
def print_blank_line_before(v); end
sig { params(node: RBI::Node).void }
def replace(node); end
......@@ -613,6 +643,9 @@ class RBI::NodeWithComments < ::RBI::Node
sig { params(loc: T.nilable(RBI::Loc), comments: T::Array[RBI::Comment]).void }
def initialize(loc: T.unsafe(nil), comments: T.unsafe(nil)); end
sig { returns(T::Array[String]) }
def annotations; end
sig { returns(T::Array[RBI::Comment]) }
def comments; end
......@@ -800,6 +833,35 @@ class RBI::Rewriters::AddSigTemplates < ::RBI::Visitor
def add_todo_comment(node); end
end
class RBI::Rewriters::Annotate < ::RBI::Visitor
sig { params(annotation: String, annotate_scopes: T::Boolean, annotate_properties: T::Boolean).void }
def initialize(annotation, annotate_scopes: T.unsafe(nil), annotate_properties: T.unsafe(nil)); end
sig { override.params(node: T.nilable(RBI::Node)).void }
def visit(node); end
private
sig { params(node: RBI::NodeWithComments).void }
def annotate_node(node); end
sig { params(node: RBI::Node).returns(T::Boolean) }
def root?(node); end
end
class RBI::Rewriters::Deannotate < ::RBI::Visitor
sig { params(annotation: String).void }
def initialize(annotation); end
sig { override.params(node: T.nilable(RBI::Node)).void }
def visit(node); end
private
sig { params(node: RBI::NodeWithComments).void }
def deannotate_node(node); end
end
class RBI::Rewriters::GroupNodes < ::RBI::Visitor
sig { override.params(node: T.nilable(RBI::Node)).void }
def visit(node); end
......@@ -809,14 +871,14 @@ class RBI::Rewriters::Merge
sig { params(left_name: String, right_name: String, keep: RBI::Rewriters::Merge::Keep).void }
def initialize(left_name: T.unsafe(nil), right_name: T.unsafe(nil), keep: T.unsafe(nil)); end
sig { params(tree: RBI::Tree).returns(T::Array[RBI::Rewriters::Merge::Conflict]) }
sig { params(tree: RBI::Tree).void }
def merge(tree); end
sig { returns(RBI::Tree) }
sig { returns(RBI::MergeTree) }
def tree; end
class << self
sig { params(left: RBI::Tree, right: RBI::Tree, left_name: String, right_name: String, keep: RBI::Rewriters::Merge::Keep).returns(RBI::Tree) }
sig { params(left: RBI::Tree, right: RBI::Tree, left_name: String, right_name: String, keep: RBI::Rewriters::Merge::Keep).returns(RBI::MergeTree) }
def merge_trees(left, right, left_name: T.unsafe(nil), right_name: T.unsafe(nil), keep: T.unsafe(nil)); end
end
end
......@@ -1200,6 +1262,9 @@ class RBI::Tree < ::RBI::NodeWithComments
sig { params(with_todo_comment: T::Boolean).void }
def add_sig_templates!(with_todo_comment: T.unsafe(nil)); end
sig { params(annotation: String, annotate_scopes: T::Boolean, annotate_properties: T::Boolean).void }
def annotate!(annotation, annotate_scopes: T.unsafe(nil), annotate_properties: T.unsafe(nil)); end
sig { params(name: String, superclass_name: T.nilable(String), block: T.nilable(T.proc.params(scope: RBI::Scope).void)).void }
def create_class(name, superclass_name: T.unsafe(nil), &block); end
......@@ -1227,6 +1292,9 @@ class RBI::Tree < ::RBI::NodeWithComments
sig { params(name: String, value: String).void }
def create_type_member(name, value: T.unsafe(nil)); end
sig { params(annotation: String).void }
def deannotate!(annotation); end
sig { returns(T::Boolean) }
def empty?; end
......@@ -1236,8 +1304,8 @@ class RBI::Tree < ::RBI::NodeWithComments
sig { returns(RBI::Index) }
def index; end
sig { params(other: RBI::Tree).returns(RBI::Tree) }
def merge(other); end
sig { params(other: RBI::Tree, left_name: String, right_name: String, keep: RBI::Rewriters::Merge::Keep).returns(RBI::MergeTree) }
def merge(other, left_name: T.unsafe(nil), right_name: T.unsafe(nil), keep: T.unsafe(nil)); end
sig { void }
def nest_non_public_methods!; end
......
支持 Markdown
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册