aspclassic-core/AspClassic.Parser/ArgumentCollection.cs
Jelle Luteijn 484dbfc9d9 progress
2022-05-15 11:19:49 +02:00

29 lines
1 KiB
C#

using System.Collections.Generic;
namespace AspClassic.Parser;
/// <summary>
/// A read-only collection of arguments.
/// </summary>
public sealed class ArgumentCollection : CommaDelimitedTreeCollection<Argument>
{
private readonly Location _RightParenthesisLocation;
/// <summary>
/// The location of the ')'.
/// </summary>
public Location RightParenthesisLocation => _RightParenthesisLocation;
/// <summary>
/// Constructs a new argument collection.
/// </summary>
/// <param name="arguments">The arguments in the collection.</param>
/// <param name="commaLocations">The location of the commas in the collection.</param>
/// <param name="rightParenthesisLocation">The location of the ')'.</param>
/// <param name="span">The location of the parse tree.</param>
public ArgumentCollection(IList<Argument> arguments, IList<Location> commaLocations, Location rightParenthesisLocation, Span span)
: base(TreeType.ArgumentCollection, arguments, commaLocations, span)
{
_RightParenthesisLocation = rightParenthesisLocation;
}
}