#[repr(u32)]pub enum SyntaxKind {
Show 323 variants
Whitespace = 0,
LineComment = 1,
BlockComment = 2,
Ident = 3,
Hash = 4,
String = 5,
BadString = 6,
Url = 7,
BadUrl = 8,
Number = 9,
Percentage = 10,
Dimension = 11,
UnicodeRange = 12,
AtKeyword = 13,
Delim = 14,
Important = 15,
Dot = 16,
Comma = 17,
Colon = 18,
Semicolon = 19,
LeftBrace = 20,
RightBrace = 21,
LeftParen = 22,
RightParen = 23,
LeftBracket = 24,
RightBracket = 25,
Plus = 26,
Minus = 27,
Star = 28,
Slash = 29,
Percent = 30,
Equals = 31,
Tilde = 32,
Pipe = 33,
Caret = 34,
Dollar = 35,
Ampersand = 36,
GreaterThan = 37,
LessThan = 38,
PlusEquals = 39,
MinusEquals = 40,
StarEquals = 41,
SlashEquals = 42,
PipeEquals = 43,
TildeEquals = 44,
CaretEquals = 45,
DollarEquals = 46,
DoubleColon = 47,
DoublePipe = 48,
DoubleAmpersand = 49,
Arrow = 50,
IncludesMatch = 51,
DashMatch = 52,
PrefixMatch = 53,
SuffixMatch = 54,
SubstringMatch = 55,
ColumnCombinator = 56,
NestingSelector = 57,
CustomPropertyName = 58,
ClassName = 59,
IdName = 60,
KeywordAnd = 61,
KeywordOr = 62,
KeywordNot = 63,
KeywordOnly = 64,
KeywordFrom = 65,
KeywordTo = 66,
KeywordThrough = 67,
KeywordImportant = 68,
KeywordGlobal = 69,
KeywordLocal = 70,
KeywordExport = 71,
KeywordImport = 72,
KeywordComposes = 73,
KeywordAs = 74,
KeywordWith = 75,
KeywordLayer = 76,
KeywordSupports = 77,
KeywordContainer = 78,
KeywordScope = 79,
KeywordMedia = 80,
KeywordKeyframes = 81,
KeywordCharset = 82,
KeywordNamespace = 83,
KeywordPage = 84,
KeywordFontFace = 85,
KeywordProperty = 86,
KeywordStartingStyle = 87,
KeywordWhen = 88,
KeywordElse = 89,
KeywordUse = 90,
KeywordForward = 91,
KeywordMixin = 92,
KeywordInclude = 93,
KeywordFunction = 94,
KeywordReturn = 95,
KeywordIf = 96,
KeywordEach = 97,
KeywordFor = 98,
KeywordWhile = 99,
KeywordIn = 100,
Cdo = 101,
Cdc = 102,
ScssVariable = 1_024,
ScssInterpolationStart = 1_025,
ScssInterpolationEnd = 1_026,
ScssSilentComment = 1_027,
ScssPlaceholder = 1_028,
ScssModuleNamespace = 1_029,
SassIndentedNewline = 1_030,
SassIndent = 1_031,
SassDedent = 1_032,
SassOptionalSemicolon = 1_033,
LessVariable = 1_040,
LessEscapedString = 1_041,
LessDetachedRuleset = 1_042,
LessMixinGuardWhen = 1_043,
LessExtendKeyword = 1_044,
LessNamespaceSeparator = 1_045,
LessInterpolationStart = 1_046,
LessInterpolationEnd = 1_047,
LessPropertyVariableToken = 1_048,
Stylesheet = 4_096,
Rule = 4_097,
QualifiedRule = 4_098,
Declaration = 4_099,
DeclarationList = 4_100,
RuleList = 4_101,
SelectorList = 4_102,
Selector = 4_103,
ComplexSelector = 4_104,
CompoundSelector = 4_105,
ClassSelector = 4_106,
IdSelector = 4_107,
TypeSelector = 4_108,
UniversalSelector = 4_109,
AttributeSelector = 4_110,
AttributeMatcher = 4_111,
PseudoClassSelector = 4_112,
PseudoElementSelector = 4_113,
PseudoSelectorArgument = 4_114,
NestingSelectorNode = 4_115,
Combinator = 4_116,
SelectorValue = 4_117,
PropertyName = 4_118,
CustomPropertyDeclaration = 4_119,
Value = 4_120,
ValueList = 4_121,
FunctionCall = 4_122,
FunctionArguments = 4_123,
BinaryExpression = 4_124,
UnaryExpression = 4_125,
ParenthesizedExpression = 4_126,
Interpolation = 4_127,
DimensionValue = 4_128,
ColorValue = 4_129,
UrlValue = 4_130,
VarFunction = 4_131,
CalcFunction = 4_132,
AtRule = 4_133,
MediaRule = 4_134,
SupportsRule = 4_135,
ContainerRule = 4_136,
LayerRule = 4_137,
ScopeRule = 4_138,
KeyframesRule = 4_139,
KeyframeBlock = 4_140,
FontFaceRule = 4_141,
PageRule = 4_142,
NamespaceRule = 4_143,
ImportRule = 4_144,
CharsetRule = 4_145,
PropertyRule = 4_146,
StartingStyleRule = 4_147,
MediaQueryList = 4_148,
MediaQuery = 4_149,
MediaFeature = 4_150,
SupportsCondition = 4_151,
ContainerCondition = 4_152,
LayerName = 4_153,
ScopeRange = 4_154,
CssModuleLocalBlock = 4_155,
CssModuleGlobalBlock = 4_156,
CssModuleExportBlock = 4_157,
CssModuleImportBlock = 4_158,
CssModuleComposesDeclaration = 4_159,
CssModuleComposesTarget = 4_160,
CssModuleFromClause = 4_161,
TokenDefinition = 4_162,
TokenReference = 4_163,
Comment = 4_164,
ErrorNode = 4_165,
EnvFunction = 4_166,
AttrFunction = 4_167,
MathFunction = 4_168,
PageMarginRule = 4_169,
WhenRule = 4_170,
ElseRule = 4_171,
CounterStyleRule = 4_172,
FontPaletteValuesRule = 4_173,
ColorProfileRule = 4_174,
PositionTryRule = 4_175,
FontFeatureValuesRule = 4_176,
FontFeatureValuesStylisticRule = 4_177,
FontFeatureValuesStylesetRule = 4_178,
FontFeatureValuesCharacterVariantRule = 4_179,
FontFeatureValuesSwashRule = 4_180,
FontFeatureValuesOrnamentsRule = 4_181,
FontFeatureValuesAnnotationRule = 4_182,
FontFeatureValuesHistoricalFormsRule = 4_183,
ViewTransitionRule = 4_184,
GradientFunction = 4_185,
TransformFunction = 4_186,
FilterFunction = 4_187,
ImageFunction = 4_188,
ShapeFunction = 4_189,
AtRulePrelude = 4_190,
NestRule = 4_191,
CustomMediaRule = 4_192,
IdentifierValue = 4_193,
StringValue = 4_194,
UnicodeRangeValue = 4_195,
NumberValue = 4_196,
PercentageValue = 4_197,
BracketedValue = 4_198,
ImportantAnnotation = 4_199,
ComponentValue = 4_200,
SimpleBlock = 4_201,
ComponentValueList = 4_202,
CommaSeparatedComponentValueList = 4_203,
CustomPropertyValue = 4_204,
AttributeName = 4_205,
AttributeValue = 4_206,
AttributeModifier = 4_207,
NthSelectorArgument = 4_208,
NthSelectorFormula = 4_209,
NthSelectorOfSelectorList = 4_210,
RelativeSelectorList = 4_211,
RelativeSelector = 4_212,
LanguageSelectorArgument = 4_213,
LanguageTag = 4_214,
DirectionalitySelectorArgument = 4_215,
NamespacePrefix = 4_216,
ScssStylesheet = 5_120,
ScssUseRule = 5_121,
ScssForwardRule = 5_122,
ScssMixinDeclaration = 5_123,
ScssIncludeRule = 5_124,
ScssFunctionDeclaration = 5_125,
ScssReturnRule = 5_126,
ScssVariableDeclaration = 5_127,
ScssVariableReference = 5_128,
ScssPlaceholderSelector = 5_129,
ScssExtendRule = 5_130,
ScssControlIf = 5_131,
ScssControlElse = 5_132,
ScssControlEach = 5_133,
ScssControlFor = 5_134,
ScssControlWhile = 5_135,
ScssNestedProperty = 5_136,
ScssModuleConfig = 5_137,
SassIndentedBlock = 5_138,
SassIndentedRule = 5_139,
ScssAtRootRule = 5_140,
ScssErrorRule = 5_141,
ScssWarnRule = 5_142,
ScssDebugRule = 5_143,
ScssContentRule = 5_144,
ScssVariableFlag = 5_145,
LessStylesheet = 5_152,
LessVariableDeclaration = 5_153,
LessVariableReference = 5_154,
LessMixinDeclaration = 5_155,
LessMixinCall = 5_156,
LessMixinGuard = 5_157,
LessDetachedRulesetNode = 5_158,
LessExtendRule = 5_159,
LessNamespaceAccess = 5_160,
LessPropertyVariable = 5_161,
BogusToken = 8_192,
BogusTrivia = 8_193,
BogusRule = 8_194,
BogusSelector = 8_195,
BogusSelectorList = 8_196,
BogusCompoundSelector = 8_197,
BogusCombinator = 8_198,
BogusDeclaration = 8_199,
BogusDeclarationList = 8_200,
BogusPropertyName = 8_201,
BogusValue = 8_202,
BogusValueList = 8_203,
BogusFunctionCall = 8_204,
BogusFunctionArguments = 8_205,
BogusAtRule = 8_206,
BogusMediaQuery = 8_207,
BogusSupportsCondition = 8_208,
BogusContainerCondition = 8_209,
BogusLayerName = 8_210,
BogusScopeRange = 8_211,
BogusKeyframeBlock = 8_212,
BogusCssModuleBlock = 8_213,
BogusComposesDeclaration = 8_214,
BogusComposesTarget = 8_215,
BogusFromClause = 8_216,
BogusInterpolation = 8_217,
BogusScssVariable = 8_218,
BogusScssMixin = 8_219,
BogusScssFunction = 8_220,
BogusScssControl = 8_221,
BogusSassIndentation = 8_222,
BogusLessVariable = 8_223,
BogusLessMixin = 8_224,
BogusLessGuard = 8_225,
BogusLessDetachedRuleset = 8_226,
BogusRecovery = 8_227,
BogusScssModuleConfig = 8_228,
BogusAtRulePrelude = 8_229,
BogusBracketedValue = 8_230,
BogusSimpleBlock = 8_231,
Root = 8_448,
Eof = 8_449,
Unknown = 8_702,
Tombstone = 8_703,
}Variants§
Whitespace = 0
LineComment = 1
BlockComment = 2
Ident = 3
Hash = 4
String = 5
BadString = 6
Url = 7
BadUrl = 8
Number = 9
Percentage = 10
Dimension = 11
UnicodeRange = 12
AtKeyword = 13
Delim = 14
Important = 15
Dot = 16
Comma = 17
Colon = 18
Semicolon = 19
LeftBrace = 20
RightBrace = 21
LeftParen = 22
RightParen = 23
LeftBracket = 24
RightBracket = 25
Plus = 26
Minus = 27
Star = 28
Slash = 29
Percent = 30
Equals = 31
Tilde = 32
Pipe = 33
Caret = 34
Dollar = 35
Ampersand = 36
GreaterThan = 37
LessThan = 38
PlusEquals = 39
MinusEquals = 40
StarEquals = 41
SlashEquals = 42
PipeEquals = 43
TildeEquals = 44
CaretEquals = 45
DollarEquals = 46
DoubleColon = 47
DoublePipe = 48
DoubleAmpersand = 49
Arrow = 50
IncludesMatch = 51
DashMatch = 52
PrefixMatch = 53
SuffixMatch = 54
SubstringMatch = 55
ColumnCombinator = 56
NestingSelector = 57
CustomPropertyName = 58
ClassName = 59
IdName = 60
KeywordAnd = 61
KeywordOr = 62
KeywordNot = 63
KeywordOnly = 64
KeywordFrom = 65
KeywordTo = 66
KeywordThrough = 67
KeywordImportant = 68
KeywordGlobal = 69
KeywordLocal = 70
KeywordExport = 71
KeywordImport = 72
KeywordComposes = 73
KeywordAs = 74
KeywordWith = 75
KeywordLayer = 76
KeywordSupports = 77
KeywordContainer = 78
KeywordScope = 79
KeywordMedia = 80
KeywordKeyframes = 81
KeywordCharset = 82
KeywordNamespace = 83
KeywordPage = 84
KeywordFontFace = 85
KeywordProperty = 86
KeywordStartingStyle = 87
KeywordWhen = 88
KeywordElse = 89
KeywordUse = 90
KeywordForward = 91
KeywordMixin = 92
KeywordInclude = 93
KeywordFunction = 94
KeywordReturn = 95
KeywordIf = 96
KeywordEach = 97
KeywordFor = 98
KeywordWhile = 99
KeywordIn = 100
Cdo = 101
Cdc = 102
ScssVariable = 1_024
ScssInterpolationStart = 1_025
ScssInterpolationEnd = 1_026
ScssSilentComment = 1_027
ScssPlaceholder = 1_028
ScssModuleNamespace = 1_029
SassIndentedNewline = 1_030
SassIndent = 1_031
SassDedent = 1_032
SassOptionalSemicolon = 1_033
LessVariable = 1_040
LessEscapedString = 1_041
LessDetachedRuleset = 1_042
LessMixinGuardWhen = 1_043
LessExtendKeyword = 1_044
LessNamespaceSeparator = 1_045
LessInterpolationStart = 1_046
LessInterpolationEnd = 1_047
LessPropertyVariableToken = 1_048
Stylesheet = 4_096
Rule = 4_097
QualifiedRule = 4_098
Declaration = 4_099
DeclarationList = 4_100
RuleList = 4_101
SelectorList = 4_102
Selector = 4_103
ComplexSelector = 4_104
CompoundSelector = 4_105
ClassSelector = 4_106
IdSelector = 4_107
TypeSelector = 4_108
UniversalSelector = 4_109
AttributeSelector = 4_110
AttributeMatcher = 4_111
PseudoClassSelector = 4_112
PseudoElementSelector = 4_113
PseudoSelectorArgument = 4_114
NestingSelectorNode = 4_115
Combinator = 4_116
SelectorValue = 4_117
PropertyName = 4_118
CustomPropertyDeclaration = 4_119
Value = 4_120
ValueList = 4_121
FunctionCall = 4_122
FunctionArguments = 4_123
BinaryExpression = 4_124
UnaryExpression = 4_125
ParenthesizedExpression = 4_126
Interpolation = 4_127
DimensionValue = 4_128
ColorValue = 4_129
UrlValue = 4_130
VarFunction = 4_131
CalcFunction = 4_132
AtRule = 4_133
MediaRule = 4_134
SupportsRule = 4_135
ContainerRule = 4_136
LayerRule = 4_137
ScopeRule = 4_138
KeyframesRule = 4_139
KeyframeBlock = 4_140
FontFaceRule = 4_141
PageRule = 4_142
NamespaceRule = 4_143
ImportRule = 4_144
CharsetRule = 4_145
PropertyRule = 4_146
StartingStyleRule = 4_147
MediaQueryList = 4_148
MediaQuery = 4_149
MediaFeature = 4_150
SupportsCondition = 4_151
ContainerCondition = 4_152
LayerName = 4_153
ScopeRange = 4_154
CssModuleLocalBlock = 4_155
CssModuleGlobalBlock = 4_156
CssModuleExportBlock = 4_157
CssModuleImportBlock = 4_158
CssModuleComposesDeclaration = 4_159
CssModuleComposesTarget = 4_160
CssModuleFromClause = 4_161
TokenDefinition = 4_162
TokenReference = 4_163
Comment = 4_164
ErrorNode = 4_165
EnvFunction = 4_166
AttrFunction = 4_167
MathFunction = 4_168
PageMarginRule = 4_169
WhenRule = 4_170
ElseRule = 4_171
CounterStyleRule = 4_172
FontPaletteValuesRule = 4_173
ColorProfileRule = 4_174
PositionTryRule = 4_175
FontFeatureValuesRule = 4_176
FontFeatureValuesStylisticRule = 4_177
FontFeatureValuesStylesetRule = 4_178
FontFeatureValuesCharacterVariantRule = 4_179
FontFeatureValuesSwashRule = 4_180
FontFeatureValuesOrnamentsRule = 4_181
FontFeatureValuesAnnotationRule = 4_182
FontFeatureValuesHistoricalFormsRule = 4_183
ViewTransitionRule = 4_184
GradientFunction = 4_185
TransformFunction = 4_186
FilterFunction = 4_187
ImageFunction = 4_188
ShapeFunction = 4_189
AtRulePrelude = 4_190
NestRule = 4_191
CustomMediaRule = 4_192
IdentifierValue = 4_193
StringValue = 4_194
UnicodeRangeValue = 4_195
NumberValue = 4_196
PercentageValue = 4_197
BracketedValue = 4_198
ImportantAnnotation = 4_199
ComponentValue = 4_200
SimpleBlock = 4_201
ComponentValueList = 4_202
CommaSeparatedComponentValueList = 4_203
CustomPropertyValue = 4_204
AttributeName = 4_205
AttributeValue = 4_206
AttributeModifier = 4_207
NthSelectorArgument = 4_208
NthSelectorFormula = 4_209
NthSelectorOfSelectorList = 4_210
RelativeSelectorList = 4_211
RelativeSelector = 4_212
LanguageSelectorArgument = 4_213
LanguageTag = 4_214
DirectionalitySelectorArgument = 4_215
NamespacePrefix = 4_216
ScssStylesheet = 5_120
ScssUseRule = 5_121
ScssForwardRule = 5_122
ScssMixinDeclaration = 5_123
ScssIncludeRule = 5_124
ScssFunctionDeclaration = 5_125
ScssReturnRule = 5_126
ScssVariableDeclaration = 5_127
ScssVariableReference = 5_128
ScssPlaceholderSelector = 5_129
ScssExtendRule = 5_130
ScssControlIf = 5_131
ScssControlElse = 5_132
ScssControlEach = 5_133
ScssControlFor = 5_134
ScssControlWhile = 5_135
ScssNestedProperty = 5_136
ScssModuleConfig = 5_137
SassIndentedBlock = 5_138
SassIndentedRule = 5_139
ScssAtRootRule = 5_140
ScssErrorRule = 5_141
ScssWarnRule = 5_142
ScssDebugRule = 5_143
ScssContentRule = 5_144
ScssVariableFlag = 5_145
LessStylesheet = 5_152
LessVariableDeclaration = 5_153
LessVariableReference = 5_154
LessMixinDeclaration = 5_155
LessMixinCall = 5_156
LessMixinGuard = 5_157
LessDetachedRulesetNode = 5_158
LessExtendRule = 5_159
LessNamespaceAccess = 5_160
LessPropertyVariable = 5_161
BogusToken = 8_192
BogusTrivia = 8_193
BogusRule = 8_194
BogusSelector = 8_195
BogusSelectorList = 8_196
BogusCompoundSelector = 8_197
BogusCombinator = 8_198
BogusDeclaration = 8_199
BogusDeclarationList = 8_200
BogusPropertyName = 8_201
BogusValue = 8_202
BogusValueList = 8_203
BogusFunctionCall = 8_204
BogusFunctionArguments = 8_205
BogusAtRule = 8_206
BogusMediaQuery = 8_207
BogusSupportsCondition = 8_208
BogusContainerCondition = 8_209
BogusLayerName = 8_210
BogusScopeRange = 8_211
BogusKeyframeBlock = 8_212
BogusCssModuleBlock = 8_213
BogusComposesDeclaration = 8_214
BogusComposesTarget = 8_215
BogusFromClause = 8_216
BogusInterpolation = 8_217
BogusScssVariable = 8_218
BogusScssMixin = 8_219
BogusScssFunction = 8_220
BogusScssControl = 8_221
BogusSassIndentation = 8_222
BogusLessVariable = 8_223
BogusLessMixin = 8_224
BogusLessGuard = 8_225
BogusLessDetachedRuleset = 8_226
BogusRecovery = 8_227
BogusScssModuleConfig = 8_228
BogusAtRulePrelude = 8_229
BogusBracketedValue = 8_230
BogusSimpleBlock = 8_231
Root = 8_448
Eof = 8_449
Unknown = 8_702
Tombstone = 8_703
Implementations§
Source§impl SyntaxKind
impl SyntaxKind
pub const ALL: &'static [Self]
pub const fn as_u32(self) -> u32
pub fn from_raw_kind(raw: u32) -> Option<Self>
pub const fn is_token(self) -> bool
pub const fn is_node(self) -> bool
pub const fn is_bogus(self) -> bool
pub const fn is_marker(self) -> bool
pub const fn is_dialect_specific(self) -> bool
pub const fn is_dialect(self) -> bool
pub const fn is_trivia(self) -> bool
Trait Implementations§
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 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SyntaxKind
Source§impl Debug for SyntaxKind
impl Debug for SyntaxKind
impl Eq 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 (const: unstable) · 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§fn eq(&self, other: &SyntaxKind) -> bool
fn eq(&self, other: &SyntaxKind) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for SyntaxKind
impl PartialOrd for SyntaxKind
impl StructuralPartialEq for SyntaxKind
Source§impl Syntax for SyntaxKind
impl Syntax for SyntaxKind
Source§fn from_raw(raw: RawSyntaxKind) -> Self
fn from_raw(raw: RawSyntaxKind) -> Self
Construct a semantic item kind from the compact representation.
Source§fn into_raw(self) -> RawSyntaxKind
fn into_raw(self) -> RawSyntaxKind
Convert a semantic item kind into a more compact representation.
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.