SyntaxKind Enum

The kinds of node, token, and trivia a TOML tree is made of.

public enum SyntaxKind

Fields

NameValueDescription
None0
List1A sequence of children held in one slot. Shared by every language, and so fixed at 1.
OpenBracketToken8200[, which opens a table header or an array.
CloseBracketToken8201], which closes a table header or an array.
EqualsToken8202
CommaToken8203
OpenBracketOpenBracketToken8204[[, which opens an array-of-tables header.
CloseBracketCloseBracketToken8205]], which closes an array-of-tables header.
OpenBraceToken8206
CloseBraceToken8207
DotToken8208., which separates the parts of a dotted key.
BareKeyToken8300A key made of A-Za-z0-9_- only.
BasicStringToken8301A string between double quotes, such as "value".
MultiLineBasicStringToken8302A string between three double quotes, which may span lines.
LiteralStringToken8303A string between single quotes, which has no escape sequences.
MultiLineLiteralStringToken8304A string between three single quotes, which may span lines and has no escape sequences.
IntegerToken8305
FloatToken8306
TrueKeyword8307
FalseKeyword8308
OffsetDateTimeToken8309A date and time with an offset from UTC, such as 1979-05-27T07:32:00Z.
LocalDateTimeToken8310A date and time without an offset, such as 1979-05-27T07:32:00.
LocalDateToken8311A date without a time, such as 1979-05-27.
LocalTimeToken8312A time without a date, such as 07:32:00.
BadToken8500Text the parser could make no sense of.
EndOfFileToken8501
WhitespaceTrivia8600
EndOfLineTrivia8601
CommentTrivia8602
TomlDocument9200
TomlTable9201A table header such as [server].
TomlProperty9202A key/value pair such as port = 8080.
TomlSkippedText9203A line the parser could make no sense of.
TomlArray9204
TomlArrayOfTables9205An array-of-tables header such as [[products]].
TomlKey9206A key, dotted or not, such as server.port.
TomlInlineTable9207
TomlString9208
TomlInteger9209
TomlFloat9210
TomlBoolean9211
TomlOffsetDateTime9212
TomlLocalDateTime9213
TomlLocalDate9214
TomlLocalTime9215
TomlSkippedValue9216A value the parser could make no sense of, or one that is missing.