Upload from upload_mods.ps1
This commit is contained in:
18
Scripts/Utilities/ExpressionParser/Sprache/IPositionAware.cs
Normal file
18
Scripts/Utilities/ExpressionParser/Sprache/IPositionAware.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
|
||||
namespace Sprache
|
||||
{
|
||||
/// <summary>
|
||||
/// An interface for objects that have a source <see cref="Position"/>.
|
||||
/// </summary>
|
||||
/// <typeparam name="T">Type of the matched result.</typeparam>
|
||||
public interface IPositionAware<out T>
|
||||
{
|
||||
/// <summary>
|
||||
/// Set the start <see cref="Position"/> and the matched length.
|
||||
/// </summary>
|
||||
/// <param name="startPos">The start position</param>
|
||||
/// <param name="length">The matched length.</param>
|
||||
/// <returns>The matched result.</returns>
|
||||
T SetPos(Position startPos, int length);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user