Class: RubyLsp::Listener
- Inherits:
-
Object
- Object
- RubyLsp::Listener
- 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.
Direct Known Subclasses
Requests::Completion, Requests::DocumentHighlight, Requests::DocumentLink, Requests::FoldingRanges, Requests::InlayHints, Requests::SemanticHighlighting
Constant Summary collapse
- ResponseType =
type_member
Instance Method Summary collapse
- #_response ⇒ Object
-
#initialize(emitter, message_queue) ⇒ Listener
constructor
A new instance of Listener.
- #response ⇒ Object
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, ) @emitter = emitter @message_queue = end |
Instance Method Details
#_response ⇒ Object
31 |
# File 'lib/ruby_lsp/listener.rb', line 31 def _response; end |
#response ⇒ Object
24 25 26 |
# File 'lib/ruby_lsp/listener.rb', line 24 def response _response end |