Skip to main content

SourceTokenType

  • Namespace: PPDS.Dataverse.Sql.Intellisense
  • Assembly: PPDS.Dataverse
  • Kind: Enum
  • Implements: IComparable, IConvertible, IFormattable, ISpanFormattable

Summary

Language-agnostic source token classification for syntax highlighting.

Members

Fields

Comment

SourceTokenType Comment

Comment (-- line or /* block */).

Error

SourceTokenType Error

Error/unrecognized token.

Function

SourceTokenType Function

Built-in function (COUNT, SUM, ROW_NUMBER, etc.).

Identifier

SourceTokenType Identifier

Identifier (column name, table name, alias).

Keyword

SourceTokenType Keyword

Language keyword (SELECT, FROM, WHERE, etc.).

NumericLiteral

SourceTokenType NumericLiteral

Numeric literal (42, 3.14).

Operator

SourceTokenType Operator

Operator (=, <>, +, -, etc.).

Punctuation

SourceTokenType Punctuation

Punctuation (, . * ( ) ;).

StringLiteral

SourceTokenType StringLiteral

String literal ('hello').

Variable

SourceTokenType Variable

Variable reference (@name).