Exemple #1
0
 /// <summary>
 /// Visits the specified node.
 /// </summary>
 /// <param name="node">The node.</param>
 public void Visit(DivideFunctionNode node)
 {
     using (new DestinationNodeContext(node))
     {
         AppendToResult("(SafeTypeConverter.Convert<double?>(");
         node.Parameter1.AcceptVisitor(this);
         AppendToResult(") / SafeTypeConverter.Convert<double?>(");
         node.Parameter2.AcceptVisitor(this);
         AppendToResult("))");
     }
 }
Exemple #2
0
 public void Visit(DivideFunctionNode node)
 {
     AppendToResult("functions.DivideUntyped(");
     node.Parameter1.AcceptVisitor(this);
     AppendToResult(", ");
     node.Parameter2.AcceptVisitor(this);
     AppendToResult(")");
 }