Пример #1
0
        public override Node Clone()
        {
            var ret = new ExpressionList();

            for (int i = 0; i < NumChildren(); i++)
            {
                ret.AddChild(GetChild(i)?.Clone());
            }
            return(ret);
        }
Пример #2
0
        public override Expression CloneExpr()
        {
            ExpressionList el = null;

            if (Arguments != null)
            {
                el = new ExpressionList();
                for (int i = 0; i < Arguments.NumChildren(); i++)
                {
                    el.AddChild(Arguments.GetChild <Expression>(i).CloneExpr());
                }
            }

            return(new InvocationExpression(
                       Subject.Clone(),
                       el,
                       VariableLength));
        }