using System;
using System.Collections.Generic;
namespace AspClassic.Parser;
///
/// A parse tree for an Continue statement.
///
public sealed class ContinueStatement : Statement
{
private readonly BlockType _ContinueType;
private readonly Location _ContinueArgumentLocation;
///
/// The type of tree this statement continues.
///
public BlockType ContinueType => _ContinueType;
///
/// The location of the Continue statement type.
///
public Location ContinueArgumentLocation => _ContinueArgumentLocation;
///
/// Constructs a parse tree for an Continue statement.
///
/// The type of tree this statement continues.
/// The location of the Continue statement type.
/// The location of the parse tree.
/// The comments for the parse tree.
public ContinueStatement(BlockType continueType, Location continueArgumentLocation, Span span, IList comments)
: base(TreeType.ContinueStatement, span, comments)
{
if ((uint)continueType > 3u)
{
throw new ArgumentOutOfRangeException("continueType");
}
_ContinueType = continueType;
_ContinueArgumentLocation = continueArgumentLocation;
}
}