Esempio n. 1
0
        /// <summary>
        /// Create a sequential block of nodes
        /// </summary>
        public static BlockNode Block(params SyntaxTreeNode[] nodes)
        {
            var block = new BlockNode();

            block.AddRange(nodes);
            return(block);
        }
Esempio n. 2
0
        /// <summary>
        /// Create a sequential block of nodes
        /// </summary>
        public static BlockNode Block(SourceLocation location, params SyntaxTreeNode[] nodes)
        {
            var block = new BlockNode
            {
                Location = location
            };

            block.AddRange(nodes);
            return(block);
        }