Class: Solargraph::Parser::NodeProcessor::Base
- Inherits:
-
Object
- Object
- Solargraph::Parser::NodeProcessor::Base
- Defined in:
- lib/solargraph/parser/node_processor/base.rb
Direct Known Subclasses
Legacy::NodeProcessors::AliasNode, Legacy::NodeProcessors::ArgsNode, Legacy::NodeProcessors::BeginNode, Legacy::NodeProcessors::BlockNode, Legacy::NodeProcessors::CasgnNode, Legacy::NodeProcessors::CvasgnNode, Legacy::NodeProcessors::DefNode, Legacy::NodeProcessors::GvasgnNode, Legacy::NodeProcessors::IvasgnNode, Legacy::NodeProcessors::LvasgnNode, Legacy::NodeProcessors::NamespaceNode, Legacy::NodeProcessors::OrasgnNode, Legacy::NodeProcessors::ResbodyNode, Legacy::NodeProcessors::SclassNode, Legacy::NodeProcessors::SendNode, Legacy::NodeProcessors::SymNode, Rubyvm::NodeProcessors::AliasNode, Rubyvm::NodeProcessors::ArgsNode, Rubyvm::NodeProcessors::BeginNode, Rubyvm::NodeProcessors::BlockNode, Rubyvm::NodeProcessors::CasgnNode, Rubyvm::NodeProcessors::CvasgnNode, Rubyvm::NodeProcessors::DefNode, Rubyvm::NodeProcessors::GvasgnNode, Rubyvm::NodeProcessors::IvasgnNode, Rubyvm::NodeProcessors::KwArgNode, Rubyvm::NodeProcessors::LitNode, Rubyvm::NodeProcessors::LvasgnNode, Rubyvm::NodeProcessors::NamespaceNode, Rubyvm::NodeProcessors::OptArgNode, Rubyvm::NodeProcessors::OrasgnNode, Rubyvm::NodeProcessors::ResbodyNode, Rubyvm::NodeProcessors::SclassNode, Rubyvm::NodeProcessors::ScopeNode, Rubyvm::NodeProcessors::SendNode, Rubyvm::NodeProcessors::SymNode
Instance Attribute Summary collapse
- #locals ⇒ Array<Pin::Base> readonly
- #node ⇒ Parser::AST::Node readonly
- #pins ⇒ Array<Pin::Base> readonly
- #region ⇒ Region readonly
Instance Method Summary collapse
-
#initialize(node, region, pins, locals) ⇒ Base
constructor
A new instance of Base.
-
#process ⇒ void
Subclasses should override this method to generate new pins.
Constructor Details
#initialize(node, region, pins, locals) ⇒ Base
Returns a new instance of Base.
22 23 24 25 26 27 28 |
# File 'lib/solargraph/parser/node_processor/base.rb', line 22 def initialize node, region, pins, locals @node = node @region = region @pins = pins @locals = locals @processed_children = false end |
Instance Attribute Details
#locals ⇒ Array<Pin::Base> (readonly)
17 18 19 |
# File 'lib/solargraph/parser/node_processor/base.rb', line 17 def locals @locals end |
#node ⇒ Parser::AST::Node (readonly)
8 9 10 |
# File 'lib/solargraph/parser/node_processor/base.rb', line 8 def node @node end |
#pins ⇒ Array<Pin::Base> (readonly)
14 15 16 |
# File 'lib/solargraph/parser/node_processor/base.rb', line 14 def pins @pins end |
#region ⇒ Region (readonly)
11 12 13 |
# File 'lib/solargraph/parser/node_processor/base.rb', line 11 def region @region end |
Instance Method Details
#process ⇒ void
This method returns an undefined value.
Subclasses should override this method to generate new pins.
33 34 35 |
# File 'lib/solargraph/parser/node_processor/base.rb', line 33 def process process_children end |