using System;
using System.Collections.Generic;
namespace AspClassic.Parser;
///
/// A read-only collection of attributes.
///
public sealed class AttributeBlockCollection : TreeCollection
{
///
/// Constructs a new collection of attribute blocks.
///
/// The attribute blockss in the collection.
/// The location of the parse tree.
public AttributeBlockCollection(IList attributeBlocks, Span span)
: base(TreeType.AttributeBlockCollection, attributeBlocks, span)
{
if (attributeBlocks == null || attributeBlocks.Count == 0)
{
throw new ArgumentException("AttributeBlocksCollection cannot be empty.");
}
}
}