/// <summary> /// Create a sequential block of nodes /// </summary> public static BlockNode Block(params SyntaxTreeNode[] nodes) { var block = new BlockNode(); block.AddRange(nodes); return(block); }
/// <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); }