Esempio 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
                    )
                ));
 }
Esempio n. 2
0
 protected bool Equals(SetIdentifierNode other)
 {
     return(base.Equals(other) && Equals(Value, other.Value));
 }
Esempio n. 3
0
 protected bool Equals(SetIdentifierNode other)
 {
     return base.Equals(other) && Equals(Value, other.Value);
 }
Esempio 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
         )
     );
 }