Beispiel #1
0
        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");
        }
Beispiel #2
0
 // <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);
 }
Beispiel #4
0
 public virtual void Visit(DerefOp op, Node n)
 {
     VisitScalarOpDefault(op, n);
 }
Beispiel #5
0
 public virtual TResultType Visit(DerefOp op, Node n)
 {
     return(VisitScalarOpDefault(op, n));
 }