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