Class: Solargraph::SourceMap::NodeProcessor::OrasgnNode

Inherits:
Base
  • Object
show all
Defined in:
lib/solargraph/source_map/node_processor/orasgn_node.rb

Instance Attribute Summary

Attributes inherited from Base

#node, #pins, #region

Instance Method Summary collapse

Methods inherited from Base

#initialize

Methods included from Solargraph::Source::NodeMethods

const_from, drill_signature, get_node_end_position, get_node_start_position, infer_literal_node_type, pack_name, resolve_node_signature, returns_from, unpack_name

Constructor Details

This class inherits a constructor from Solargraph::SourceMap::NodeProcessor::Base

Instance Method Details

#processObject



5
6
7
8
# File 'lib/solargraph/source_map/node_processor/orasgn_node.rb', line 5

def process
  new_node = node.updated(node.children[0].type, node.children[0].children + [node.children[1]])
  NodeProcessor.process(new_node, region, pins)
end