Class SyntaxToken
One token of source text, located by line and character.
public sealed class SyntaxToken
- Inheritance
-
SyntaxToken
- Inherited Members
Remarks
Zero-based, with the characters counted in UTF-16 code units, which is how LSP 3.17 counts them (§Position): a token is what a client can lay a style on as it is. A token never spans lines.
Properties
Character
The zero-based character of the token in its line, in UTF-16 code units.
public int Character { get; set; }
Property Value
Kind
What the token is.
public SyntaxTokenKind Kind { get; set; }
Property Value
Length
The length of the token, in UTF-16 code units.
public int Length { get; set; }
Property Value
Line
The zero-based line of the token.
public int Line { get; set; }