Class: BELParser::Parsers::AST::Function
- Defined in:
- lib/bel_parser/parsers/ast/node.rb
Overview
AST node representing the function of a BEL term.
Special node properties - return_type: #return_type
Instance Attribute Summary collapse
-
#return_type ⇒ Object
readonly
Get the return type property.
Attributes inherited from Node
#character_range, #complete, #line_number
Attributes inherited from AST::Node
Instance Method Summary collapse
-
#identifier ⇒ Object
Get the function’s identifier.
-
#initialize(children = [], properties = {}) ⇒ Function
constructor
New Function AST node.
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
Instance Attribute Details
#return_type ⇒ Object (readonly)
Get the return type property.
297 298 299 |
# File 'lib/bel_parser/parsers/ast/node.rb', line 297 def return_type @return_type end |
Instance Method Details
#identifier ⇒ Object
Get the function’s identifier.
292 293 294 |
# File 'lib/bel_parser/parsers/ast/node.rb', line 292 def identifier children[0] end |