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