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

21 lines
988 B
C#

namespace AspClassic.Parser;
/// <summary>
/// A parse tree for a DirectCast expression.
/// </summary>
public sealed class DirectCastExpression : CastTypeExpression
{
/// <summary>
/// Constructs a new parse tree for a DirectCast 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 DirectCastExpression(Location leftParenthesisLocation, Expression operand, Location commaLocation, TypeName target, Location rightParenthesisLocation, Span span)
: base(TreeType.DirectCastExpression, leftParenthesisLocation, operand, commaLocation, target, rightParenthesisLocation, span)
{
}
}