Class: Rucoa::Handlers::TextDocumentDocumentHighlightHandler::NodeToHighlightsMappers::BeginMapper

Inherits:
Base
  • Object
show all
Defined in:
lib/rucoa/handlers/text_document_document_highlight_handler.rb

Direct Known Subclasses

DefMapper

Instance Method Summary collapse

Methods inherited from Base

call, #initialize

Constructor Details

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

Instance Method Details

#callArray

Returns:

  • (Array)


135
136
137
138
139
140
141
142
143
144
145
# File 'lib/rucoa/handlers/text_document_document_highlight_handler.rb', line 135

def call
  [
    range_begin,
    *ranges_resbody,
    range_else,
    range_ensure,
    range_end
  ].compact.map do |parser_range|
    Highlights::TextHighlight.new(parser_range: parser_range)
  end
end