Beispiel #1
0
        // <summary>
        // Copies a ConstantOp
        // </summary>
        // <param name="op"> The Op to Copy </param>
        // <param name="n"> The Node that references the Op </param>
        // <returns> A copy of the original Node that references a copy of the original Op </returns>
        public override Node Visit(ConstantOp op, Node n)
        {
            var newOp = m_destCmd.CreateConstantOp(op.Type, op.Value);

            return(m_destCmd.CreateNode(newOp));
        }
 public override Node Visit(ConstantOp op, Node n)
 {
     return(this.m_destCmd.CreateNode((Op)this.m_destCmd.CreateConstantOp(op.Type, op.Value)));
 }
 public virtual void Visit(ConstantOp op, Node n)
 {
     this.VisitConstantOp((ConstantBaseOp)op, n);
 }
Beispiel #4
0
 /// <summary>
 ///     Visitor pattern method for ConstantOp
 /// </summary>
 /// <param name="op"> The ConstantOp being visited </param>
 /// <param name="n"> The Node that references the Op </param>
 public virtual void Visit(ConstantOp op, Node n)
 {
     VisitConstantOp(op, n);
 }
Beispiel #5
0
 // <summary>
 // ConstantOp
 // </summary>
 public virtual TResultType Visit(ConstantOp op, Node n)
 {
     return(VisitConstantOp(op, n));
 }
 public virtual TResultType Visit(ConstantOp op, Node n)
 {
     return(this.VisitConstantOp((ConstantBaseOp)op, n));
 }