lib/ruby_lsp/requests/support/common.rb in ruby-lsp-0.19.1 vs lib/ruby_lsp/requests/support/common.rb in ruby-lsp-0.20.0

- old
+ new

@@ -157,10 +157,10 @@ sig { params(node: T.any(Prism::ModuleNode, Prism::ClassNode)).returns(T.nilable(String)) } def namespace_constant_name(node) path = node.constant_path case path - when Prism::ConstantPathNode, Prism::ConstantReadNode, Prism::ConstantPathTargetNode + when Prism::ConstantPathNode, Prism::ConstantReadNode constant_name(path) end end # Iterates over each part of a constant path, so that we can easily push response items for each section of the