20 lines
406 B
C#
20 lines
406 B
C#
namespace Parser.Internal
|
|
{
|
|
public class TextSpan
|
|
{
|
|
public TextSpan(int start, int length)
|
|
{
|
|
Start = start;
|
|
Length = length;
|
|
}
|
|
|
|
public int Start { get; }
|
|
public int Length { get; }
|
|
public int End => Start + Length;
|
|
|
|
public override string ToString()
|
|
{
|
|
return $"{Start}--{End}";
|
|
}
|
|
}
|
|
} |