Class: Rucoa::Handlers::TextDocumentSelectionRangeHandler

Inherits:
Base
  • Object
show all
Includes:
Rucoa::HandlerConcerns::TextDocumentUriParameters
Defined in:
lib/rucoa/handlers/text_document_selection_range_handler.rb

Defined Under Namespace

Classes: SelectionRangeProvider

Instance Method Summary collapse

Methods inherited from Base

call, #initialize

Constructor Details

This class inherits a constructor from Rucoa::Handlers::Base

Instance Method Details

#callObject



8
9
10
11
12
13
14
15
16
17
18
19
# File 'lib/rucoa/handlers/text_document_selection_range_handler.rb', line 8

def call
  return unless responsible?

  respond(
    positions.filter_map do |position|
      SelectionRangeProvider.call(
        position: position,
        source: source
      )
    end
  )
end