Skip to main content

SourceToken

  • Namespace: PPDS.Dataverse.Sql.Intellisense
  • Assembly: PPDS.Dataverse
  • Kind: Struct
  • Implements: IEquatable<SourceToken>

Summary​

A token with position and classification for syntax highlighting. Language-agnostic — the PPDS.Dataverse.Sql.Intellisense.SourceTokenType determines rendering color.

Members​

Constructors​

SourceToken(int Start, int Length, SourceTokenType Type)​

SourceToken(int Start, int Length, SourceTokenType Type)

A token with position and classification for syntax highlighting. Language-agnostic — the PPDS.Dataverse.Sql.Intellisense.SourceTokenType determines rendering color.

  • Param Start: Character offset where the token begins in the source text.

  • Param Length: Number of characters in the token.

  • Param Type: The classification of the token for highlighting purposes.

Properties​

Length​

int Length { get; set; }

Number of characters in the token.

Start​

int Start { get; set; }

Character offset where the token begins in the source text.

Type​

SourceTokenType Type { get; set; }

The classification of the token for highlighting purposes.