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

26 lines
878 B
C#

namespace AspClassic.Parser;
/// <summary>
/// A parse tree for a parenthesized expression.
/// </summary>
public sealed class ParentheticalExpression : UnaryExpression
{
private readonly Location _RightParenthesisLocation;
/// <summary>
/// The location of the ')'.
/// </summary>
public Location RightParenthesisLocation => _RightParenthesisLocation;
/// <summary>
/// Constructs a new parenthesized expression parse tree.
/// </summary>
/// <param name="operand">The operand of the expression.</param>
/// <param name="rightParenthesisLocation">The location of the ')'.</param>
/// <param name="span">The location of the parse tree.</param>
public ParentheticalExpression(Expression operand, Location rightParenthesisLocation, Span span)
: base(TreeType.ParentheticalExpression, operand, span)
{
_RightParenthesisLocation = rightParenthesisLocation;
}
}