Table of Contents

Enum SyntaxTokenKind

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

What a token of source text is, as far as its spelling and its place in a line say: the classification a listing is highlighted by.

public enum SyntaxTokenKind

Fields

Comment = 1

A comment: from the ' or the Rem that starts it to the end of the logical line.

Identifier = 5

A name: of a variable, a procedure, a type, a member. Which of them is not known from the spelling.

Keyword = 0

A reserved word or a keyword of the language, as it is used as one (Dim, If, Print).

Number = 3

A numeric literal, a date literal, or the line number that labels a line (MS-VBAL §3.3.2).

Operator = 4

An operator or a delimiter (+, =, ().

String = 2

A string literal, with its quotes.

TypeName = 6

The name of a type, where its place says it is one: after As, As New or Implements.

Remarks

A syntax token kind is lexical. It never says what a name means: that a word is an identifier is known from the text alone, while that it is the name of a constant is a fact of the module it is in, which a consumer adds (SemanticTokenLegend).