pub enum SyntaxKind {
Show 66 variants
Annotation,
Argument,
ArgumentList,
ArrayInitializer,
Assignment,
Attribute,
AwaitExpression,
BinaryOperation,
Break,
CatchClause,
CatchDeclaration,
Class,
ClassBody,
Comment,
Continue,
Declaration,
DeclarationBlock,
Default,
DoStatement,
ElementAccess,
ElseClause,
ExecutionBlock,
Export,
ExpressionStatement,
File,
FinallyClause,
ForEachStatement,
ForStatement,
If,
Import,
JsxElement,
LambdaFunctionType,
Literal,
MemberAccess,
Metadata,
MethodDeclaration,
MethodInvocation,
MissingNode,
Modifiers,
ModuleImport,
NamedArgument,
Namespace,
NewExpression,
Object,
ObjectCreation,
Pair,
Parameter,
ParameterList,
ParenthesizedExpression,
ReservedWord,
RestPattern,
Return,
Selector,
SpreadElement,
SwitchBody,
SwitchSection,
SwitchStatement,
SymbolLookup,
TernaryOperation,
This,
ThrowStatement,
TryStatement,
UnaryExpression,
UsingStatement,
VariableDeclaration,
WhileStatement,
}Expand description
Auto-generated discriminant enum variants
Variants§
Annotation
Argument
ArgumentList
ArrayInitializer
Assignment
Attribute
AwaitExpression
BinaryOperation
Break
CatchClause
CatchDeclaration
Class
ClassBody
Comment
Continue
Declaration
DeclarationBlock
Default
DoStatement
ElementAccess
ElseClause
ExecutionBlock
Export
ExpressionStatement
File
FinallyClause
ForEachStatement
ForStatement
If
Import
JsxElement
LambdaFunctionType
Literal
MemberAccess
Metadata
MethodDeclaration
MethodInvocation
MissingNode
Modifiers
ModuleImport
NamedArgument
Namespace
NewExpression
Object
ObjectCreation
Pair
Parameter
ParameterList
ParenthesizedExpression
ReservedWord
RestPattern
Return
Selector
SpreadElement
SwitchBody
SwitchSection
SwitchStatement
SymbolLookup
TernaryOperation
This
ThrowStatement
TryStatement
UnaryExpression
UsingStatement
VariableDeclaration
WhileStatement
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<'_derivative_strum> From<&'_derivative_strum SyntaxKind> for &'static str
impl<'_derivative_strum> From<&'_derivative_strum SyntaxKind> for &'static str
Source§fn from(x: &'_derivative_strum SyntaxKind) -> &'static str
fn from(x: &'_derivative_strum SyntaxKind) -> &'static str
Converts to this type from the input type.
Source§impl<'_enum> From<&'_enum SyntaxNode> for SyntaxKind
impl<'_enum> From<&'_enum SyntaxNode> for SyntaxKind
Source§fn from(val: &'_enum SyntaxNode) -> SyntaxKind
fn from(val: &'_enum SyntaxNode) -> SyntaxKind
Converts to this type from the input type.
Source§impl From<SyntaxKind> for &'static str
impl From<SyntaxKind> for &'static str
Source§fn from(x: SyntaxKind) -> &'static str
fn from(x: SyntaxKind) -> &'static str
Converts to this type from the input type.
Source§impl From<SyntaxNode> for SyntaxKind
impl From<SyntaxNode> for SyntaxKind
Source§fn from(val: SyntaxNode) -> SyntaxKind
fn from(val: SyntaxNode) -> SyntaxKind
Converts to this type from the input type.
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§impl PartialOrd for SyntaxKind
impl PartialOrd 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