StyleCop.CSharp by StyleCop contributors, Andy Reeves, Chris Dahlberg

<PackageReference Include="StyleCop.CSharp" Version="6.2.0" />

.NET API 245,760 bytes

 CsToken

public class CsToken : ICodePart
Describes a single token within a C# document.
public CodePartType CodePartType { get; }

Gets the type of this code part.

public CsTokenClass CsTokenClass { get; }

Gets the token class.

public CsTokenType CsTokenType { get; }

Gets the token type.

public bool Generated { get; }

Gets a value indicating whether the token is within a block of generated code.

public virtual int LineNumber { get; }

Gets the line number that the token appears on in the document.

public virtual CodeLocation Location { get; }

Gets the location of the token in the code document.

public ICodePart Parent { get; }

Gets the parent of the token.

public virtual string Text { get; protected set; }

Gets or sets the token string.

protected virtual void CreateTextString()

Creates the text string for the token.