Class: BELParser::Parsers::AST::Object
- Defined in:
- lib/bel_parser/parsers/ast/node.rb
Overview
AST node representing the object of a statement.
Instance Attribute Summary
Attributes inherited from Node
#character_range, #complete, #line_number
Attributes inherited from AST::Node
Instance Method Summary collapse
- #child ⇒ Object
-
#initialize(children = [], properties = {}) ⇒ Object
constructor
New Object AST node.
-
#statement? ⇒ Boolean
Does the object have a Statement child?.
-
#term? ⇒ Boolean
Does the object have a Term child?.
Methods inherited from Node
#add_syntax_error, #append, #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_sexp, #updated
Constructor Details
Instance Method Details
#child ⇒ Object
805 806 807 |
# File 'lib/bel_parser/parsers/ast/node.rb', line 805 def child children[0] end |