progress
This commit is contained in:
parent
16e76d6b31
commit
484dbfc9d9
529 changed files with 113694 additions and 0 deletions
24
AspClassic.Parser/AttributeBlockCollection.cs
Normal file
24
AspClassic.Parser/AttributeBlockCollection.cs
Normal file
|
@ -0,0 +1,24 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace AspClassic.Parser;
|
||||
|
||||
/// <summary>
|
||||
/// A read-only collection of attributes.
|
||||
/// </summary>
|
||||
public sealed class AttributeBlockCollection : TreeCollection<AttributeCollection>
|
||||
{
|
||||
/// <summary>
|
||||
/// Constructs a new collection of attribute blocks.
|
||||
/// </summary>
|
||||
/// <param name="attributeBlocks">The attribute blockss in the collection.</param>
|
||||
/// <param name="span">The location of the parse tree.</param>
|
||||
public AttributeBlockCollection(IList<AttributeCollection> attributeBlocks, Span span)
|
||||
: base(TreeType.AttributeBlockCollection, attributeBlocks, span)
|
||||
{
|
||||
if (attributeBlocks == null || attributeBlocks.Count == 0)
|
||||
{
|
||||
throw new ArgumentException("AttributeBlocksCollection cannot be empty.");
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue