Class: Solargraph::SourceMap::NodeProcessor::CvasgnNode
- Defined in:
- lib/solargraph/source_map/node_processor/cvasgn_node.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
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
#process ⇒ Object
5 6 7 8 9 10 |
# File 'lib/solargraph/source_map/node_processor/cvasgn_node.rb', line 5 def process here = get_node_start_position(node) context = named_path_pin(here) pins.push Solargraph::Pin::ClassVariable.new(get_node_location(node), region.namespace, node.children[0].to_s, comments_for(node), node.children[1], infer_literal_node_type(node.children[1]), context.context) process_children end |