Class SemanticToken
Represents a semantic token.
Inherited Members
Namespace: DevToys.Api
Assembly: DevToys.Api.dll
Syntax
public class SemanticToken
Constructors
SemanticToken(int, int, int, SemanticTokenType, SemanticTokenModifier)
Initializes a new instance of the SemanticToken class.
Declaration
public SemanticToken(int deltaLine, int deltaColumn, int length, SemanticTokenType tokenType, SemanticTokenModifier tokenModifier = SemanticTokenModifier.Declaration)
Parameters
| Type | Name | Description |
|---|---|---|
| int | deltaLine | The token line number, relative to the previous token. |
| int | deltaColumn | The token start character in the line, relative to the previous token |
| int | length | The length of the token. |
| SemanticTokenType | tokenType | The token type. |
| SemanticTokenModifier | tokenModifier | The token modifier. |
Properties
DeltaColumn
Gets or sets the token start character in the line, relative to the previous token (relative to 0 or the previous token's start if they are on the same line).
Declaration
public int DeltaColumn { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
DeltaLine
Gets or sets the token line number, relative to the previous token.
Declaration
public int DeltaLine { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
Length
Gets or sets the length of the token. A token cannot be multiline.
Declaration
public int Length { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
TokenModifier
Gets or sets the token modifier.
Declaration
public SemanticTokenModifier TokenModifier { get; set; }
Property Value
| Type | Description |
|---|---|
| SemanticTokenModifier |
TokenType
Gets or sets the token type.
Declaration
public SemanticTokenType TokenType { get; set; }
Property Value
| Type | Description |
|---|---|
| SemanticTokenType |