Пример #1
0
 public override object Visit(Node_Expr_FunctionCall node)
 {
     foreach (var paramNode in node.Param_Nodes)
     {
         Visit(paramNode);
     }
     return(null);
 }
Пример #2
0
        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);
        }