示例#1
0
 public override void Visit(SoftCastOp op, Node n)
 {
     VisitScalarOpDefault(op, n);
     // Aconrad 9/21/06 - temporarily removing check here
     //  because the assert wrongly fails in some cases where the types are promotable,
     //  but the facets are not.  Put this back when that issue is solved.
     // Assert(TypeSemantics.IsEquivalentOrPromotableTo(n.Child0.Op.Type, op.Type), "Illegal SoftCastOp: Cannot promote input type {0} to target type {1}", n.Child0.Op.Type.Identity, op.Type.Identity);
 }
示例#2
0
 // <summary>
 // Copies a SoftCastOp
 // </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(SoftCastOp op, Node n)
 {
     return(CopyDefault(m_destCmd.CreateSoftCastOp(op.Type), n));
 }
 public virtual void Visit(SoftCastOp op, Node n)
 {
     this.VisitScalarOpDefault((ScalarOp)op, n);
 }
示例#4
0
 /// <summary>
 ///     Visitor pattern method for SoftCastOp
 /// </summary>
 /// <param name="op"> The SoftCastOp being visited </param>
 /// <param name="n"> The Node that references the Op </param>
 public virtual void Visit(SoftCastOp op, Node n)
 {
     VisitScalarOpDefault(op, n);
 }
示例#5
0
 // <summary>
 // SoftCastOp
 // </summary>
 public virtual TResultType Visit(SoftCastOp op, Node n)
 {
     return(VisitScalarOpDefault(op, n));
 }