Show / Hide Table of Contents

Enum SyntaxKind

Identifies a kind for a SyntaxToken, the basis for which Parser will construct the syntax tree.

Namespace: DotLang.CodeAnalysis.Syntax
Assembly: DotLang.dll
Syntax
public enum SyntaxKind : byte

Fields

Name Description
CloseBraceToken

The } literal character.

CloseBracketToken

The ] literal character.

ColonToken

The : literal character.

CommaToken

The , literal character.

DigraphKeyword

Syntax for the digraph keyword.

DirectedEdgeToken

Syntax for the -> directed edge token.

EdgeKeyword

Syntax for the edge keyword.

EndOfFileToken

Indicates the last token in the source text indicating the end. No more tokens will follow. Like all non-trivia tokens, this token may have leading trivia (that is, trivia at the end of the file, such as a final new line).

EqualsToken

The = literal character.

GraphKeyword

Syntax for the graph keyword.

IdentifierToken

Syntax for an identifier, which is any string of alphabetic characters, underscores ('_') or digits ([0-9]), not beginning with a digit. An identifier is just a string; the lack of quote characters is just for simplicity: there is no semantic difference between abc_2 and "abc_2". To use a keyword as an identifier, it must be quoted.

MultiLineCommentTriviaToken

Trivia syntax that may appear in LeadingTrivia representing C++-style (/* */) multi-line comments.

NodeKeyword

Syntax for the node keyword.

None

No syntax has been identified. Implies an invalid SyntaxToken.

NumeralLiteralToken

Syntax for a numeral literal [-]?(.[0-9]+ | [0-9]+(.[0-9]*)?).

OpenBraceToken

The { literal character.

OpenBracketToken

The [ literal character.

PreprocessorDirective

Syntax representing a C preprocessor directive line (#line 34).

SemicolonToken

The ; literal character.

SingleLineCommentTriviaToken

Trivia syntax that may appear in LeadingTrivia representing C-style (//) single-line comments.

StrictKeyword

Syntax for the strict keyword.

StringLiteralToken

Syntax for a double-quoted string literal "...", possibly containing escaped quotes (\"). In quoted strings in DOT, the only escaped character is double-quote ("). That is, in quoted strings, the dyad \" is converted to " and all other characters are left unchanged. In particular, \\ remains \\. Layout engines may apply additional escape sequences.

SubgraphKeyword

Syntax for the subgraph keyword.

UndirectedEdgeToken

Syntax for the -- undirected edge token.

WhiteSpaceTriviaToken

Trivia syntax that may appear in LeadingTrivia representing a a run of white space characters, including new lines and carriage returns.

XmlLiteralToken

Syntax for an HTML/XML string literal <...>. Angle brackets must occur in matched pairs, and newlines and other formatting whitespace characters are allowed.

Extension Methods

SyntaxFacts.IsValid()
SyntaxFacts.IsIdentifier()
SyntaxFacts.IsEdge()
SyntaxFacts.IsTrivia()
SyntaxFacts.GetText()
  • Improve this Doc
  • View Source
Back to top Generated by DocFX