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.
25 26 27 28 29 30 31 |
# File 'lib/solargraph/parser/node_processor/base.rb', line 25 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)
20 21 22 |
# File 'lib/solargraph/parser/node_processor/base.rb', line 20 def locals @locals end |
#node ⇒ Parser::AST::Node (readonly)
11 12 13 |
# File 'lib/solargraph/parser/node_processor/base.rb', line 11 def node @node end |
#pins ⇒ Array<Pin::Base> (readonly)
17 18 19 |
# File 'lib/solargraph/parser/node_processor/base.rb', line 17 def pins @pins end |
#region ⇒ Region (readonly)
14 15 16 |
# File 'lib/solargraph/parser/node_processor/base.rb', line 14 def region @region end |
Instance Method Details
#process ⇒ void
This method returns an undefined value.
Subclasses should override this method to generate new pins.
36 37 38 |
# File 'lib/solargraph/parser/node_processor/base.rb', line 36 def process process_children end |