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); }
// <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); }
/// <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); }
// <summary> // SoftCastOp // </summary> public virtual TResultType Visit(SoftCastOp op, Node n) { return(VisitScalarOpDefault(op, n)); }