using System; namespace ICSharpCode.NRefactory.CSharp { /// /// 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; private set; } /// /// Gets the char length of the token. /// public int Length { get; private set; } public TokenRole (string token) : base (token, CSharpTokenNode.Null) { this.Token = token; this.Length = token.Length; } } }