public override Node Visit(IsOfOp op, Node n)
 {
     if (op.IsOfOnly)
     {
         return(this.CopyDefault((Op)this.m_destCmd.CreateIsOfOnlyOp(op.IsOfType), n));
     }
     return(this.CopyDefault((Op)this.m_destCmd.CreateIsOfOp(op.IsOfType), n));
 }
Example #2
0
 // <summary>
 // Clone an IsOfOp
 // </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(IsOfOp op, Node n)
 {
     if (op.IsOfOnly)
     {
         return(CopyDefault(m_destCmd.CreateIsOfOnlyOp(op.IsOfType), n));
     }
     else
     {
         return(CopyDefault(m_destCmd.CreateIsOfOp(op.IsOfType), n));
     }
 }
Example #3
0
 public override void Visit(IsOfOp op, Node n)
 {
     using (new AutoXml(this, (op.IsOfOnly ? "IsOfOnly" : "IsOf")))
     {
         var separator = string.Empty;
         foreach (var chi in n.Children)
         {
             WriteString(separator);
             VisitNode(chi);
             separator = ",";
         }
     }
 }
 public override void Visit(IsOfOp op, Node n)
 {
     using (new Dump.AutoXml(this, op.IsOfOnly ? "IsOfOnly" : "IsOf"))
     {
         string str = string.Empty;
         foreach (Node child in n.Children)
         {
             this.WriteString(str);
             this.VisitNode(child);
             str = ",";
         }
     }
 }
 public virtual void Visit(IsOfOp op, Node n)
 {
     this.VisitScalarOpDefault((ScalarOp)op, n);
 }
Example #6
0
 /// <summary>
 ///     Visitor pattern method for IsOp
 /// </summary>
 /// <param name="op"> The IsOp being visited </param>
 /// <param name="n"> The Node that references the Op </param>
 public virtual void Visit(IsOfOp op, Node n)
 {
     VisitScalarOpDefault(op, n);
 }
Example #7
0
 // <summary>
 // IsOfOp
 // </summary>
 public virtual TResultType Visit(IsOfOp op, Node n)
 {
     return(VisitScalarOpDefault(op, n));
 }