Ejemplo n.º 1
0
        private Loop CreateLoop(List <Node> parameters)
        {
            parameters.CheckLength(2);
            var node = new Loop
            {
                Condition = (Expression)parameters[0],
                Body      = (Body)parameters[1]
            };

            node.AddChildren(node.Body, node.Condition);

            return(node);
        }