Veil.Parser.Nodes.BlockNode.AddRange C# (CSharp) Method

AddRange() public method

Adds a set of nodes to the block
public AddRange ( IEnumerable nodes ) : void
nodes IEnumerable
return void
        public void AddRange(IEnumerable<SyntaxTreeNode> nodes)
        {
            this.nodes.AddRange(nodes);
        }

Usage Example

Example #1
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;
        }
All Usage Examples Of Veil.Parser.Nodes.BlockNode::AddRange