Exemple #1
0
 public override object Visit(Node_Expr_FunctionCall node)
 {
     foreach (var paramNode in node.Param_Nodes)
     {
         Visit(paramNode);
     }
     return(null);
 }
        public override object Visit(Node_Expr_FunctionCall node)
        {
            _writer.Write(node.Name);
            _writer.Write("(");
            foreach (var paramNode in node.Param_Nodes.SkipLast(1))
            {
                Visit(paramNode);
                _writer.Write(", ");
            }
            if (node.Param_Nodes.Count > 0)
            {
                Visit(node.Param_Nodes.Last());
            }
            _writer.Write(")");

            return(null);
        }