namespace ICSharpCode.Decompiler.CSharp.Syntax
{
///
/// A specific role only used for C# tokens
///
public sealed class TokenRole : Role
{
///
/// Gets the token as string. Note that the token Name and Token value may differ.
///
public string Token { get; }
///
/// Gets the char length of the token.
///
public int Length { get; }
public TokenRole(string token) : base(token, CSharpTokenNode.Null)
{
this.Token = token;
this.Length = token.Length;
}
}
}