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

Remove dead method: RBI::Parser::TreeBuilder::visit_singleton_class_node #412

Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 0 additions & 18 deletions lib/rbi/parser.rb
Original file line number Diff line number Diff line change
Expand Up @@ -309,24 +309,6 @@ def visit_program_node(node)
@last_node = nil
end

# @override
#: (Prism::SingletonClassNode node) -> void
def visit_singleton_class_node(node)
@last_node = node
scope = SingletonClass.new(
loc: node_loc(node),
comments: node_comments(node),
)

current_scope << scope
@scopes_stack << scope
visit(node.body)
scope.nodes.concat(current_sigs)
collect_dangling_comments(node)
@scopes_stack.pop
@last_node = nil
end

#: (Prism::CallNode node) -> void
def visit_call_node(node)
@last_node = node
Expand Down
Loading