lib/ruby_indexer/lib/ruby_indexer/visitor.rb in ruby-lsp-0.10.0 vs lib/ruby_indexer/lib/ruby_indexer/visitor.rb in ruby-lsp-0.10.1
- old
+ new
@@ -55,10 +55,10 @@
node: T.any(YARP::ConstantWriteNode, YARP::ConstantOrWriteNode),
).void
end
def add_constant(node)
comments = collect_comments(node)
- @index << Index::Entry::Constant.new(fully_qualify_name(node.name), @file_path, node.location, comments)
+ @index << Index::Entry::Constant.new(fully_qualify_name(node.name.to_s), @file_path, node.location, comments)
end
sig do
params(
node: T.any(YARP::ConstantPathWriteNode, YARP::ConstantPathOrWriteNode),