This commit is contained in:
Jelle Luteijn 2022-05-15 11:19:49 +02:00
parent 16e76d6b31
commit 484dbfc9d9
529 changed files with 113694 additions and 0 deletions

View file

@ -0,0 +1,29 @@
using System.Collections.Generic;
namespace AspClassic.Parser;
/// <summary>
/// A collection of parameters.
/// </summary>
public sealed class ParameterCollection : CommaDelimitedTreeCollection<Parameter>
{
private readonly Location _RightParenthesisLocation;
/// <summary>
/// The location of the ')'.
/// </summary>
public Location RightParenthesisLocation => _RightParenthesisLocation;
/// <summary>
/// Constructs a new collection of parameters.
/// </summary>
/// <param name="parameters">The parameters in the collection</param>
/// <param name="commaLocations">The locations of the commas.</param>
/// <param name="rightParenthesisLocation">The location of the right parenthesis.</param>
/// <param name="span">The location of the parse tree.</param>
public ParameterCollection(IList<Parameter> parameters, IList<Location> commaLocations, Location rightParenthesisLocation, Span span)
: base(TreeType.ParameterCollection, parameters, commaLocations, span)
{
_RightParenthesisLocation = rightParenthesisLocation;
}
}