lib/ruby_lsp/event_emitter.rb in ruby-lsp-0.9.4 vs lib/ruby_lsp/event_emitter.rb in ruby-lsp-0.10.0
- old
+ new
@@ -46,9 +46,11 @@
@listeners[:on_tstring_content]&.each { |l| T.unsafe(l).on_tstring_content(node) }
when SyntaxTree::ConstPathRef
@listeners[:on_const_path_ref]&.each { |l| T.unsafe(l).on_const_path_ref(node) }
when SyntaxTree::Const
@listeners[:on_const]&.each { |l| T.unsafe(l).on_const(node) }
+ when SyntaxTree::TopConstRef
+ @listeners[:on_top_const_ref]&.each { |l| T.unsafe(l).on_top_const_ref(node) }
end
end
# Visit dispatchers are below. Notice that for nodes that create a new scope (e.g.: classes, modules, method defs)
# we need both an `on_*` and `after_*` event. This is because some requests must know when we exit the scope