コード例 #1
0
ファイル: BasicValidator.cs プロジェクト: dotnet/ef6tools
        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");
        }
コード例 #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));
 }
コード例 #3
0
 public virtual void Visit(DerefOp op, Node n)
 {
     this.VisitScalarOpDefault((ScalarOp)op, n);
 }
コード例 #4
0
 public virtual void Visit(DerefOp op, Node n)
 {
     VisitScalarOpDefault(op, n);
 }
コード例 #5
0
 public virtual TResultType Visit(DerefOp op, Node n)
 {
     return(VisitScalarOpDefault(op, n));
 }