Class: Rucoa::Handlers::TextDocumentDocumentHighlightHandler::NodeToHighlightsMappers::GlobalVariableMapper
- Inherits:
-
Base
- Object
- Base
- Rucoa::Handlers::TextDocumentDocumentHighlightHandler::NodeToHighlightsMappers::GlobalVariableMapper
- 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
281 282 283 284 285 286 287 288 289 290 |
# File 'lib/rucoa/handlers/text_document_document_highlight_handler.rb', line 281 def call nodes.map do |node| case node when Nodes::GvarNode Highlights::ReadHighlight when Nodes::GvasgnNode Highlights::WriteHighlight end.new(parser_range: node.location.name) end end |