Class: SbuilderSexp::RecordExcept

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

Instance Method Summary collapse

Methods inherited from AbstactExpression

#expression_postfix, #expression_prefix, #has_rhs, #node_value, #traverse

Methods inherited from Treetop::Runtime::SyntaxNode

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

Instance Method Details

#expression_valObject



507
508
509
# File 'lib/parser/parser_nodes.rb', line 507

def expression_val
  "exprsssion"
end

#expressionsObject



498
499
500
# File 'lib/parser/parser_nodes.rb', line 498

def expressions
  nil
end

#lhs_nodeObject



501
502
503
# File 'lib/parser/parser_nodes.rb', line 501

def lhs_node
  nil
end

#record_baseObject



510
511
512
# File 'lib/parser/parser_nodes.rb', line 510

def record_base
  recursive_select( SbuilderSexp::RecordExcepBase ).first.recursive_select( SbuilderSexp::Expression ).first
end

#record_field_definitionsObject



513
514
515
516
# File 'lib/parser/parser_nodes.rb', line 513

def record_field_definitions
  # rigth recursion results to empty RecordExceptField -node
  recursive_select( SbuilderSexp::RecordExceptField ).select{ |f| f.elements && f.elements.any? }
end

#rhs_nodeObject



504
505
506
# File 'lib/parser/parser_nodes.rb', line 504

def rhs_node
  nil
end