Table of Contents

Class SyntaxToken

Namespace
RDCore.SDK.Model.Source
Assembly
RDCore.SDK.dll

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

int

Kind

What the token is.

public SyntaxTokenKind Kind { get; set; }

Property Value

SyntaxTokenKind

Length

The length of the token, in UTF-16 code units.

public int Length { get; set; }

Property Value

int

Line

The zero-based line of the token.

public int Line { get; set; }

Property Value

int