#[non_exhaustive]#[repr(u16)]pub enum SyntaxKind {
Show 93 variants
TOKEN_ADD = 0,
TOKEN_AND_AND = 1,
TOKEN_ASSIGN = 2,
TOKEN_ASSERT = 3,
TOKEN_AT = 4,
TOKEN_COLON = 5,
TOKEN_COMMA = 6,
TOKEN_COMMENT = 7,
TOKEN_CONCAT = 8,
TOKEN_CUR_POS = 9,
TOKEN_DIV = 10,
TOKEN_DOT = 11,
TOKEN_ELLIPSIS = 12,
TOKEN_ELSE = 13,
TOKEN_EQUAL = 14,
TOKEN_ERROR = 15,
TOKEN_FLOAT = 16,
TOKEN_IDENT = 17,
TOKEN_IF = 18,
TOKEN_IMPLICATION = 19,
TOKEN_IN = 20,
TOKEN_INHERIT = 21,
TOKEN_INTEGER = 22,
TOKEN_INTERPOL_END = 23,
TOKEN_INTERPOL_START = 24,
TOKEN_INVERT = 25,
TOKEN_L_BRACE = 26,
TOKEN_L_BRACK = 27,
TOKEN_L_PAREN = 28,
TOKEN_LESS = 29,
TOKEN_LESS_OR_EQ = 30,
TOKEN_LET = 31,
TOKEN_MORE = 32,
TOKEN_MORE_OR_EQ = 33,
TOKEN_MUL = 34,
TOKEN_NOT_EQUAL = 35,
TOKEN_OR = 36,
TOKEN_OR_OR = 37,
TOKEN_PATH_ABS = 38,
TOKEN_PATH_HOME = 39,
TOKEN_PATH_REL = 40,
TOKEN_PATH_SEARCH = 41,
TOKEN_PIPE_LEFT = 42,
TOKEN_PIPE_RIGHT = 43,
TOKEN_QUESTION = 44,
TOKEN_R_BRACE = 45,
TOKEN_R_BRACK = 46,
TOKEN_R_PAREN = 47,
TOKEN_REC = 48,
TOKEN_SEMICOLON = 49,
TOKEN_STRING_CONTENT = 50,
TOKEN_STRING_END = 51,
TOKEN_STRING_START = 52,
TOKEN_SUB = 53,
TOKEN_THEN = 54,
TOKEN_UPDATE = 55,
TOKEN_URI = 56,
TOKEN_WHITESPACE = 57,
TOKEN_WITH = 58,
NODE_APPLY = 59,
NODE_ASSERT = 60,
NODE_ATTR_SET = 61,
NODE_ATTRPATH = 62,
NODE_ATTRPATH_VALUE = 63,
NODE_BIN_OP = 64,
NODE_CUR_POS = 65,
NODE_DYNAMIC = 66,
NODE_ERROR = 67,
NODE_HAS_ATTR = 68,
NODE_IDENT = 69,
NODE_IDENT_PARAM = 70,
NODE_IF_ELSE = 71,
NODE_INHERIT = 72,
NODE_INHERIT_FROM = 73,
NODE_INTERPOL = 74,
NODE_LAMBDA = 75,
NODE_LEGACY_LET = 76,
NODE_LET_IN = 77,
NODE_LIST = 78,
NODE_LITERAL = 79,
NODE_PAREN = 80,
NODE_PAT_BIND = 81,
NODE_PAT_ENTRY = 82,
NODE_PATTERN = 83,
NODE_PATH_ABS = 84,
NODE_PATH_HOME = 85,
NODE_PATH_REL = 86,
NODE_PATH_SEARCH = 87,
NODE_ROOT = 88,
NODE_SELECT = 89,
NODE_STRING = 90,
NODE_UNARY_OP = 91,
NODE_WITH = 92,
}Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
TOKEN_ADD = 0
TOKEN_AND_AND = 1
TOKEN_ASSIGN = 2
TOKEN_ASSERT = 3
TOKEN_AT = 4
TOKEN_COLON = 5
TOKEN_COMMA = 6
TOKEN_COMMENT = 7
TOKEN_CONCAT = 8
TOKEN_CUR_POS = 9
TOKEN_DIV = 10
TOKEN_DOT = 11
TOKEN_ELLIPSIS = 12
TOKEN_ELSE = 13
TOKEN_EQUAL = 14
TOKEN_ERROR = 15
TOKEN_FLOAT = 16
TOKEN_IDENT = 17
TOKEN_IF = 18
TOKEN_IMPLICATION = 19
TOKEN_IN = 20
TOKEN_INHERIT = 21
TOKEN_INTEGER = 22
TOKEN_INTERPOL_END = 23
TOKEN_INTERPOL_START = 24
TOKEN_INVERT = 25
TOKEN_L_BRACE = 26
TOKEN_L_BRACK = 27
TOKEN_L_PAREN = 28
TOKEN_LESS = 29
TOKEN_LESS_OR_EQ = 30
TOKEN_LET = 31
TOKEN_MORE = 32
TOKEN_MORE_OR_EQ = 33
TOKEN_MUL = 34
TOKEN_NOT_EQUAL = 35
TOKEN_OR = 36
TOKEN_OR_OR = 37
TOKEN_PATH_ABS = 38
TOKEN_PATH_HOME = 39
TOKEN_PATH_REL = 40
TOKEN_PATH_SEARCH = 41
TOKEN_PIPE_LEFT = 42
TOKEN_PIPE_RIGHT = 43
TOKEN_QUESTION = 44
TOKEN_R_BRACE = 45
TOKEN_R_BRACK = 46
TOKEN_R_PAREN = 47
TOKEN_REC = 48
TOKEN_SEMICOLON = 49
TOKEN_STRING_CONTENT = 50
TOKEN_STRING_END = 51
TOKEN_STRING_START = 52
TOKEN_SUB = 53
TOKEN_THEN = 54
TOKEN_UPDATE = 55
TOKEN_URI = 56
TOKEN_WHITESPACE = 57
TOKEN_WITH = 58
NODE_APPLY = 59
NODE_ASSERT = 60
NODE_ATTR_SET = 61
NODE_ATTRPATH = 62
NODE_ATTRPATH_VALUE = 63
NODE_BIN_OP = 64
NODE_CUR_POS = 65
NODE_DYNAMIC = 66
NODE_ERROR = 67
NODE_HAS_ATTR = 68
NODE_IDENT = 69
NODE_IDENT_PARAM = 70
NODE_IF_ELSE = 71
NODE_INHERIT = 72
NODE_INHERIT_FROM = 73
NODE_INTERPOL = 74
NODE_LAMBDA = 75
NODE_LEGACY_LET = 76
NODE_LET_IN = 77
NODE_LIST = 78
NODE_LITERAL = 79
NODE_PAREN = 80
NODE_PAT_BIND = 81
NODE_PAT_ENTRY = 82
NODE_PATTERN = 83
NODE_PATH_ABS = 84
NODE_PATH_HOME = 85
NODE_PATH_REL = 86
NODE_PATH_SEARCH = 87
NODE_ROOT = 88
NODE_SELECT = 89
NODE_STRING = 90
NODE_UNARY_OP = 91
NODE_WITH = 92
Implementations§
Source§impl SyntaxKind
impl SyntaxKind
Trait Implementations§
Source§impl BitOr<()> for SyntaxKind
impl BitOr<()> for SyntaxKind
Source§impl BitOr<SyntaxKind> for ()
impl BitOr<SyntaxKind> for ()
Source§impl BitOr for SyntaxKind
impl BitOr for SyntaxKind
Source§impl Clone for SyntaxKind
impl Clone for SyntaxKind
Source§fn clone(&self) -> SyntaxKind
fn clone(&self) -> SyntaxKind
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SyntaxKind
impl Debug for SyntaxKind
Source§impl FromStr for SyntaxKind
impl FromStr for SyntaxKind
Source§impl Hash for SyntaxKind
impl Hash for SyntaxKind
Source§impl Ord for SyntaxKind
impl Ord for SyntaxKind
Source§fn cmp(&self, other: &SyntaxKind) -> Ordering
fn cmp(&self, other: &SyntaxKind) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for SyntaxKind
impl PartialEq for SyntaxKind
Source§impl PartialOrd for SyntaxKind
impl PartialOrd for SyntaxKind
impl Copy for SyntaxKind
impl Eq for SyntaxKind
impl StructuralPartialEq for SyntaxKind
Auto Trait Implementations§
impl Freeze for SyntaxKind
impl RefUnwindSafe for SyntaxKind
impl Send for SyntaxKind
impl Sync for SyntaxKind
impl Unpin for SyntaxKind
impl UnsafeUnpin for SyntaxKind
impl UnwindSafe for SyntaxKind
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more