29 lines
1 KiB
C#
29 lines
1 KiB
C#
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;
|
|
}
|
|
}
|