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