Exemplo n.º 1
0
 /// <summary>
 /// Expands short assignment to an identifier:
 /// x += 1
 /// </summary>
 private NodeBase ExpandIdentifier(SetIdentifierNode node)
 {
     return(Expr.Set(
                node.Identifier,
                _assignmentOperator(
                    Expr.Get(node.Identifier),
                    node.Value
                    )
                ));
 }
Exemplo n.º 2
0
 protected bool Equals(SetIdentifierNode other)
 {
     return(base.Equals(other) && Equals(Value, other.Value));
 }
Exemplo n.º 3
0
 protected bool Equals(SetIdentifierNode other)
 {
     return base.Equals(other) && Equals(Value, other.Value);
 }
Exemplo n.º 4
0
 /// <summary>
 /// Expands short assignment to an identifier:
 /// x += 1
 /// </summary>
 private NodeBase expandIdentifier(SetIdentifierNode node)
 {
     return Expr.Set(
         node.Identifier,
         _AssignmentOperator(
             Expr.Get(node.Identifier),
             node.Value
         )
     );
 }