26 lines
878 B
C#
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;
|
|
}
|
|
}
|