Class: SbuilderSexp::OperatorDef

Inherits:
Callable show all
Defined in:
lib/parser/parser_nodes.rb

Instance Method Summary collapse

Methods inherited from Callable

#body, #declaration_definitions, #node_value, #parameter_definitions, #parameters, #parameters_node, #symbol_definitions

Methods inherited from Define

#name

Methods inherited from Treetop::Runtime::SyntaxNode

#node_type, #node_value, #recursive_inject, #recursive_inject_parent, #recursive_select, #value

Instance Method Details

#body_nodeObject

For operator no body:



1207
1208
1209
1210
# File 'lib/parser/parser_nodes.rb', line 1207

def body_node
  tree_nodes = recursive_select(SbuilderSexp::Expression)
  return tree_nodes.first if tree_nodes
end