Class: Rucoa::Handlers::TextDocumentDocumentHighlightHandler::NodeToHighlightsMappers::CaseMapper
- Inherits:
-
Base
- Object
- Base
- Rucoa::Handlers::TextDocumentDocumentHighlightHandler::NodeToHighlightsMappers::CaseMapper
- Defined in:
- lib/rucoa/handlers/text_document_document_highlight_handler.rb
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from Rucoa::Handlers::TextDocumentDocumentHighlightHandler::NodeToHighlightsMappers::Base
Instance Method Details
#call ⇒ Array
199 200 201 202 203 204 205 206 207 208 |
# File 'lib/rucoa/handlers/text_document_document_highlight_handler.rb', line 199 def call [ @node.location.keyword, *ranges_when, @node.location.else, @node.location.end ].compact.map do |parser_range| Highlights::TextHighlight.new(parser_range: parser_range) end end |