internal override bool IsEquivalent(Op other)
        {
            FunctionOp functionOp = other as FunctionOp;

            if (functionOp != null)
            {
                return(functionOp.Function.EdmEquals((MetadataItem)this.Function));
            }
            return(false);
        }
Esempio n. 2
0
 public override void Visit(FunctionOp op, Node n)
 {
     VisitScalarOpDefault(op, n);
     Assert(
         op.Function.Parameters.Count == n.Children.Count, "FunctionOp: Argument count ({0}) does not match parameter count ({1})",
         n.Children.Count, op.Function.Parameters.Count);
     for (var idx = 0; idx < n.Children.Count; idx++)
     {
         AssertEqualTypes(n.Children[idx].Op.Type, op.Function.Parameters[idx].TypeUsage);
     }
 }
Esempio n. 3
0
 // <summary>
 // Copies a FunctionOp
 // </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(FunctionOp op, Node n)
 {
     return(CopyDefault(m_destCmd.CreateFunctionOp(op.Function), n));
 }
 public virtual void Visit(FunctionOp op, Node n)
 {
     this.VisitScalarOpDefault((ScalarOp)op, n);
 }
Esempio n. 5
0
 /// <summary>
 ///     Visitor pattern method for FunctionOp
 /// </summary>
 /// <param name="op"> The FunctionOp being visited </param>
 /// <param name="n"> The Node that references the Op </param>
 public virtual void Visit(FunctionOp op, Node n)
 {
     VisitScalarOpDefault(op, n);
 }
Esempio n. 6
0
 // <summary>
 // FunctionOp
 // </summary>
 public virtual TResultType Visit(FunctionOp op, Node n)
 {
     return(VisitScalarOpDefault(op, n));
 }