using System;
using System.Collections.Generic;
namespace AspClassic.Parser;
///
/// A collection of case clauses.
///
public sealed class CaseClauseCollection : CommaDelimitedTreeCollection
{
///
/// Constructs a new collection of case clauses.
///
/// The case clauses in the collection.
/// The locations of the commas in the list.
/// The location of the parse tree.
public CaseClauseCollection(IList caseClauses, IList commaLocations, Span span)
: base(TreeType.CaseClauseCollection, caseClauses, commaLocations, span)
{
if (caseClauses == null || caseClauses.Count == 0)
{
throw new ArgumentException("CaseClauseCollection cannot be empty.");
}
}
}