Files
2025-06-04 16:13:32 +09:30

27 lines
676 B
C#

using System.Collections.Generic;
namespace Sprache
{
/// <summary>
/// Represents a commented result with its leading and trailing comments.
/// </summary>
/// <typeparam name="T">Type of the matched result.</typeparam>
public interface ICommented<T>
{
/// <summary>
/// Gets the leading comments.
/// </summary>
IEnumerable<string> LeadingComments { get; }
/// <summary>
/// Gets the resulting value.
/// </summary>
T Value { get; }
/// <summary>
/// Gets the trailing comments.
/// </summary>
IEnumerable<string> TrailingComments { get; }
}
}