Exemple #1
0
 /// <summary>
 ///     Initializes a new instance of the <see cref="AssignNode" /> class.
 /// </summary>
 /// <param name="instructionOffset">The instruction offset.</param>
 /// <param name="destination">The destination.</param>
 /// <param name="op">Operator</param>
 /// <param name="expr">The expression.</param>
 public AssignOperatorNode(int instructionOffset, BaseNode destination, string op, BaseNode expr)
     : base(2, instructionOffset, 10)
 {
     this.op          = op;
     value            = new NodePair(this, expr);
     this.destination = new NodePair(this, destination);
 }
Exemple #2
0
 /// <summary>
 ///     Initializes a new instance of the <see cref="AssignNode" /> class.
 /// </summary>
 /// <param name="instructionOffset">The instruction offset.</param>
 /// <param name="destination">The destination.</param>
 /// <param name="value">The value.</param>
 public AssignNode(int instructionOffset, BaseNode destination, BaseNode value)
     : base(2, instructionOffset, 10)
 {
     this.value       = new NodePair(this, value);
     this.destination = new NodePair(this, destination);
 }
Exemple #3
0
 /// <summary>
 ///     Sets the destination.
 /// </summary>
 /// <param name="node">The node.</param>
 public void SetDestination(BaseNode node) => destination.SetSlave(node);
Exemple #4
0
 public void SetValue(BaseNode node) => value.SetSlave(node);