Class: BELParser::Parsers::AST::SimpleStatement
- Defined in:
- lib/bel_parser/parsers/ast/node.rb
Overview
AST node representing a simple statement.
Instance Attribute Summary
Attributes inherited from Node
#character_range, #complete, #line_number
Attributes inherited from AST::Node
Instance Method Summary collapse
-
#initialize(children = [], properties = {}) ⇒ SimpleStatement
constructor
New SimpleStatement AST node.
-
#statement ⇒ Object
Get the statement.
Methods inherited from Node
#add_syntax_error, #append, #child, #children?, #complete?, #concat, #first_child, #fourth_child, #freeze, #incomplete?, #num_children, #range_end, #range_start, #second_child, #syntax_errors, #third_child, #traverse, #updated
Methods inherited from AST::Node
#==, #append, #concat, #dup, #eql?, #inspect, #to_a, #to_ast, #to_bel, #to_s, #to_sexp, #updated
Methods included from BELParser::Parsers
Constructor Details
#initialize(children = [], properties = {}) ⇒ SimpleStatement
New SimpleStatement AST node.
770 771 772 |
# File 'lib/bel_parser/parsers/ast/node.rb', line 770 def initialize(children = [], properties = {}) super(SimpleStatement.ast_type, children, properties) end |
Instance Method Details
#statement ⇒ Object
Get the statement.
775 776 777 |
# File 'lib/bel_parser/parsers/ast/node.rb', line 775 def statement children[0] end |