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