Class: Solargraph::Parser::Legacy::NodeProcessors::CvasgnNode
- Inherits:
-
NodeProcessor::Base
- Object
- NodeProcessor::Base
- Solargraph::Parser::Legacy::NodeProcessors::CvasgnNode
- Defined in:
- lib/solargraph/parser/legacy/node_processors/cvasgn_node.rb
Instance Attribute Summary
Attributes inherited from NodeProcessor::Base
#locals, #node, #pins, #region
Instance Method Summary collapse
Methods inherited from NodeProcessor::Base
Constructor Details
This class inherits a constructor from Solargraph::Parser::NodeProcessor::Base
Instance Method Details
#process ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/solargraph/parser/legacy/node_processors/cvasgn_node.rb', line 8 def process loc = get_node_location(node) pins.push Solargraph::Pin::ClassVariable.new( location: loc, closure: region.closure, name: node.children[0].to_s, comments: comments_for(node), assignment: node.children[1] ) process_children end |