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

21 lines
971 B
C#

namespace AspClassic.Parser;
/// <summary>
/// A parse tree for a CType expression.
/// </summary>
public sealed class TryCastExpression : CastTypeExpression
{
/// <summary>
/// Constructs a new parse tree for a TryCast expression.
/// </summary>
/// <param name="leftParenthesisLocation">The location of the '('.</param>
/// <param name="operand">The expression to be converted.</param>
/// <param name="commaLocation">The location of the ','.</param>
/// <param name="target">The target type of the conversion.</param>
/// <param name="rightParenthesisLocation">The location of the ')'.</param>
/// <param name="span">The location of the parse tree.</param>
public TryCastExpression(Location leftParenthesisLocation, Expression operand, Location commaLocation, TypeName target, Location rightParenthesisLocation, Span span)
: base(TreeType.TryCastExpression, leftParenthesisLocation, operand, commaLocation, target, rightParenthesisLocation, span)
{
}
}