Class: Solargraph::Parser::Rubyvm::NodeProcessors::BlockNode
- Inherits:
-
NodeProcessor::Base
- Object
- NodeProcessor::Base
- Solargraph::Parser::Rubyvm::NodeProcessors::BlockNode
- Defined in:
- lib/solargraph/parser/rubyvm/node_processors/block_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 |
# File 'lib/solargraph/parser/rubyvm/node_processors/block_node.rb', line 8 def process pins.push Solargraph::Pin::Block.new( location: get_node_location(node), closure: region.closure, receiver: node.children[0], comments: comments_for(node), scope: region.scope || region.closure.context.scope ) process_children region.update(closure: pins.last) end |