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