Class: RubyLsp::Listener

Inherits:
Object
  • Object
show all
Extended by:
T::Generic, T::Helpers, T::Sig
Includes:
Requests::Support::Common
Defined in:
lib/ruby_lsp/listener.rb

Overview

Listener is an abstract class to be used by requests for listening to events emitted when visiting an AST using the EventEmitter.

Constant Summary collapse

ResponseType =
type_member

Instance Method Summary collapse

Methods included from Requests::Support::Common

#create_code_lens, #markdown_from_index_entries, #range_from_location, #range_from_node, #visible?

Constructor Details

#initialize(emitter, message_queue) ⇒ Listener

Returns a new instance of Listener.



18
19
20
21
# File 'lib/ruby_lsp/listener.rb', line 18

def initialize(emitter, message_queue)
  @emitter = emitter
  @message_queue = message_queue
end

Instance Method Details

#_responseObject



31
# File 'lib/ruby_lsp/listener.rb', line 31

def _response; end

#responseObject



24
25
26
# File 'lib/ruby_lsp/listener.rb', line 24

def response
  _response
end