public override void Visit(DerefOp op, Node n) { VisitScalarOpDefault(op, n); Assert(TypeSemantics.IsEntityType(op.Type), "Expected an entity type. Found " + op.Type); Assert(TypeSemantics.IsReferenceType(n.Child0.Op.Type), "Expected a ref type. Found " + n.Child0.Op.Type); var r = n.Child0.Op.Type.EdmType as RefType; Assert(r.ElementType.EdmEquals(op.Type.EdmType), "Inconsistent types"); }
// <summary> // Copies a DerefOp // </summary> // <param name="op"> the derefOp to copy </param> // <param name="n"> the subtree </param> // <returns> a copy of the subtree </returns> public override Node Visit(DerefOp op, Node n) { return(CopyDefault(m_destCmd.CreateDerefOp(op.Type), n)); }
public virtual void Visit(DerefOp op, Node n) { this.VisitScalarOpDefault((ScalarOp)op, n); }
public virtual void Visit(DerefOp op, Node n) { VisitScalarOpDefault(op, n); }
public virtual TResultType Visit(DerefOp op, Node n) { return(VisitScalarOpDefault(op, n)); }