Beispiel #1
0
        private VariableDeclaration CreateVariableDeclaration(List <Node> parameters)
        {
            parameters.CheckLength(4);
            var node = new VariableDeclaration
            {
                Visibility = (Visibility)parameters[0],
                Type       = (Type)parameters[1],
                Name       = (TokenNode)parameters[2],
                Expression = (Expression)parameters[3]
            };

            node.AddChildren(node.Visibility, node.Type, node.Name, node.Expression);

            return(node);
        }