lib/ruby_lsp/requests/base_request.rb in ruby-lsp-0.10.1 vs lib/ruby_lsp/requests/base_request.rb in ruby-lsp-0.11.0

- old
+ new

@@ -2,11 +2,11 @@ # frozen_string_literal: true module RubyLsp module Requests # :nodoc: - class BaseRequest < SyntaxTree::Visitor + class BaseRequest < YARP::Visitor extend T::Sig extend T::Helpers include Support::Common abstract! @@ -18,13 +18,13 @@ end sig { abstract.returns(Object) } def run; end - # Syntax Tree implements `visit_all` using `map` instead of `each` for users who want to use the pattern + # YARP implements `visit_all` using `map` instead of `each` for users who want to use the pattern # `result = visitor.visit(tree)`. However, we don't use that pattern and should avoid producing a new array for # every single node visited - sig { params(nodes: T::Array[T.nilable(SyntaxTree::Node)]).void } + sig { params(nodes: T::Array[T.nilable(YARP::Node)]).void } def visit_all(nodes) nodes.each { |node| visit(node) } end end end