Class: SbuilderSexp::FieldByValue

Inherits:
FieldBy show all
Includes:
TlaParserS::LValue
Defined in:
lib/parser/parser_nodes.rb

Instance Method Summary collapse

Methods included from TlaParserS::LValue

#default_lvalue, #lvalue, #recurse_lvalue

Methods inherited from FieldBy

#lhs_node, #rhs_node

Methods inherited from AbstactExpression

#expression_postfix, #expression_prefix, #expressions, #has_rhs, #lhs_node, #node_value, #rhs_node, #traverse

Methods inherited from Treetop::Runtime::SyntaxNode

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

Instance Method Details

#expression_valObject



766
767
768
# File 'lib/parser/parser_nodes.rb', line 766

def expression_val
  return true if field_value_expression
end

#field_value_expressionObject



770
771
772
773
# File 'lib/parser/parser_nodes.rb', line 770

def field_value_expression
  # recursive_select( SbuilderSexp::AbstactExpression ).first      
  elements[0]
end

#lvalue_downObject



784
785
786
787
788
789
# File 'lib/parser/parser_nodes.rb', line 784

def lvalue_down
  down = recursive_select( SbuilderSexp::UnitExpression ).first
  # down = recursive_select( SbuilderSexp::RecordField ).first
  # return nil unless down
  # down.recursive_select( SbuilderSexp::RecordField ).first
end