Files
0A-KFCommonUtilityLib/Scripts/Utilities/ExpressionParser/Sprache/ITextSpanOfT.cs
2025-06-04 16:13:32 +09:30

29 lines
717 B
C#

namespace Sprache
{
/// <summary>
/// Represents a text span of the matched result.
/// </summary>
/// <typeparam name="T">Type of the matched result.</typeparam>
public interface ITextSpan<T>
{
/// <summary>
/// Gets the resulting value.
/// </summary>
T Value { get; }
/// <summary>
/// Gets the starting <see cref="Position"/>.
/// </summary>
Position Start { get; }
/// <summary>
/// Gets the ending <see cref="Position"/>.
/// </summary>
Position End { get; }
/// <summary>
/// Gets the length of the text span.
/// </summary>
int Length { get; }
}
}