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