progress
This commit is contained in:
parent
16e76d6b31
commit
484dbfc9d9
529 changed files with 113694 additions and 0 deletions
41
AspClassic.Parser/SourceRegion.cs
Normal file
41
AspClassic.Parser/SourceRegion.cs
Normal file
|
@ -0,0 +1,41 @@
|
|||
namespace AspClassic.Parser;
|
||||
|
||||
/// <summary>
|
||||
/// A region marked in the source code.
|
||||
/// </summary>
|
||||
public sealed class SourceRegion
|
||||
{
|
||||
private readonly Location _Start;
|
||||
|
||||
private readonly Location _Finish;
|
||||
|
||||
private readonly string _Description;
|
||||
|
||||
/// <summary>
|
||||
/// The start location of the region.
|
||||
/// </summary>
|
||||
public Location Start => _Start;
|
||||
|
||||
/// <summary>
|
||||
/// The end location of the region.
|
||||
/// </summary>
|
||||
public Location Finish => _Finish;
|
||||
|
||||
/// <summary>
|
||||
/// The description of the region.
|
||||
/// </summary>
|
||||
public string Description => _Description;
|
||||
|
||||
/// <summary>
|
||||
/// Constructs a new source region.
|
||||
/// </summary>
|
||||
/// <param name="start">The start location of the region.</param>
|
||||
/// <param name="finish">The end location of the region.</param>
|
||||
/// <param name="description">The description of the region.</param>
|
||||
public SourceRegion(Location start, Location finish, string description)
|
||||
{
|
||||
_Start = start;
|
||||
_Finish = finish;
|
||||
_Description = description;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue