SyntaxKind Enum
Identifies the kind of regular-expression syntax node, token, or trivia.
public enum SyntaxKindFields
| Name | Value | Description |
|---|---|---|
None | 0 | |
List | 1 | A sequence of children held in one slot. Shared by every language, and so fixed at 1. |
Pattern | 2 | |
Alternation | 3 | |
Sequence | 4 | |
Quantified | 5 | |
SimpleQuantifier | 6 | |
RangeQuantifier | 7 | |
SkippedText | 8 | |
Literal | 9 | |
CharacterEscape | 10 | |
CharacterClassEscape | 11 | |
UnicodeCategory | 12 | |
AnyCharacter | 13 | |
Anchor | 14 | |
QuotedLiteral | 15 | |
Backreference | 16 | |
NamedBackreference | 17 | |
InlineOptions | 18 | |
Recursion | 19 | |
BacktrackingVerb | 20 | |
CharacterClass | 21 | |
CharacterRange | 22 | |
PosixCharacterClass | 23 | |
CollatingElement | 24 | |
ClassSubtraction | 25 | |
ClassSetOperation | 26 | |
ClassStringLiteral | 27 | |
CapturingGroup | 28 | |
NamedGroup | 29 | |
BalancingGroup | 30 | |
NonCapturingGroup | 31 | |
AtomicGroup | 32 | |
OptionsGroup | 33 | |
BranchResetGroup | 34 | |
Lookaround | 35 | |
Conditional | 36 | |
ConditionalReference | 37 | |
Callout | 38 | |
LiteralToken | 39 | A single ordinary character that matches itself. |
EscapeToken | 40 | A complete character escape such as \n, \x41, A, \cA, or \052. |
ClassEscapeToken | 41 | A shorthand class escape: \d, \D, \w, \W, \s, or \S. |
AnchorToken | 42 | An anchor: ^, $, \b, \B, \A, \Z, \z, \G, or \K. |
DotToken | 43 | |
BarToken | 44 | |
AsteriskToken | 45 | |
PlusToken | 46 | |
QuestionToken | 47 | |
OpenBraceToken | 48 | |
CloseBraceToken | 49 | |
CommaToken | 50 | |
NumberToken | 51 | The digits of a {n,m} bound. |
OpenParenToken | 52 | |
CloseParenToken | 53 | |
OpenBracketToken | 54 | |
CloseBracketToken | 55 | |
CaretToken | 56 | The ^ that negates a character class. |
HyphenToken | 57 | The - of a character range or of a .NET class subtraction. |
GroupKindToken | 58 | The marker that follows ( and selects the group kind, such as ?:, ?>, or ?<=. |
OptionsToken | 59 | An inline option run such as imnsx-imnsx. |
ColonToken | 60 | The : that ends the header of an options group. |
NameToken | 61 | A capture-group or backreference name. |
OpenNameToken | 62 | The < or ' that introduces a name. |
CloseNameToken | 63 | The > or ' that ends a name. |
BackreferenceToken | 64 | A numbered backreference such as \1. |
NamedBackreferenceStartToken | 65 | The \k that introduces a named backreference. |
CategoryStartToken | 66 | The \p or \P that introduces a Unicode category or block. |
CategoryNameToken | 67 | |
QuoteStartToken | 68 | The \Q that starts a quoted literal run. |
QuoteTextToken | 69 | |
QuoteEndToken | 70 | The \E that ends a quoted literal run. |
PosixClassStartToken | 71 | The [:, [., or [= that opens a POSIX bracket expression. |
PosixClassNameToken | 72 | |
PosixClassEndToken | 73 | The :], .], or =] that closes a POSIX bracket expression. |
RecursionToken | 74 | The body of a PCRE recursion construct such as R or 1 in (?R) and (?1). |
VerbToken | 75 | A PCRE backtracking verb such as *SKIP. |
CalloutToken | 76 | The body of a PCRE callout, such as the 1 of (?C1). |
ClassSetOperatorToken | 77 | A JavaScript v-mode class set operator: && or --. |
SlashToken | 78 | The / delimiter of a JavaScript regular-expression literal. |
FlagsToken | 79 | The flag letters that follow a JavaScript regular-expression literal. |
BadToken | 80 | Text the parser could not recognize. Kept so the pattern still round-trips. |
EndOfPatternToken | 81 | |
WhitespaceTrivia | 82 | Whitespace that is insignificant because extended mode is in effect. |
PatternCommentTrivia | 83 | An extended-mode # comment, up to but not including the terminating line feed. |
InlineCommentTrivia | 84 | A (?#…) comment. Recognized in every mode, not only in extended mode. |