pub enum JavaScriptSyntaxKind {
Show 172 variants
    Root,
    Program,
    Statement,
    Expression,
    Declaration,
    FunctionDeclaration,
    VariableDeclaration,
    ClassDeclaration,
    ImportDeclaration,
    ExportDeclaration,
    IfStatement,
    WhileStatement,
    ForStatement,
    BlockStatement,
    ExpressionStatement,
    ReturnStatement,
    BreakStatement,
    ContinueStatement,
    ThrowStatement,
    TryStatement,
    CatchClause,
    FinallyClause,
    SwitchStatement,
    CaseClause,
    DefaultClause,
    BinaryExpression,
    UnaryExpression,
    AssignmentExpression,
    CallExpression,
    MemberExpression,
    ConditionalExpression,
    ArrayExpression,
    ObjectExpression,
    FunctionExpression,
    ArrowFunctionExpression,
    NewExpression,
    UpdateExpression,
    LogicalExpression,
    SequenceExpression,
    ThisExpression,
    Identifier,
    Literal,
    TemplateLiteral,
    TaggedTemplateExpression,
    ObjectPattern,
    ArrayPattern,
    RestElement,
    AssignmentPattern,
    Property,
    ErrorNode,
    Abstract,
    As,
    Async,
    Await,
    Break,
    Case,
    Catch,
    Class,
    Const,
    Continue,
    Debugger,
    Default,
    Delete,
    Do,
    Else,
    Enum,
    Export,
    Extends,
    False,
    Finally,
    For,
    Function,
    If,
    Implements,
    Import,
    In,
    Instanceof,
    Interface,
    Let,
    New,
    Null,
    Package,
    Private,
    Protected,
    Public,
    Return,
    Static,
    Super,
    Switch,
    This,
    Throw,
    True,
    Try,
    Typeof,
    Undefined,
    Var,
    Void,
    While,
    With,
    Yield,
    Plus,
    Minus,
    Star,
    Slash,
    Percent,
    StarStar,
    PlusPlus,
    MinusMinus,
    LeftShift,
    RightShift,
    UnsignedRightShift,
    Less,
    Greater,
    LessEqual,
    GreaterEqual,
    EqualEqual,
    NotEqual,
    EqualEqualEqual,
    NotEqualEqual,
    Ampersand,
    Pipe,
    Caret,
    Exclamation,
    Tilde,
    AmpersandAmpersand,
    PipePipe,
    Question,
    QuestionQuestion,
    QuestionDot,
    Equal,
    PlusEqual,
    MinusEqual,
    StarEqual,
    SlashEqual,
    PercentEqual,
    StarStarEqual,
    LeftShiftEqual,
    RightShiftEqual,
    UnsignedRightShiftEqual,
    AmpersandEqual,
    PipeEqual,
    CaretEqual,
    AmpersandAmpersandEqual,
    PipePipeEqual,
    QuestionQuestionEqual,
    LeftParen,
    RightParen,
    LeftBrace,
    RightBrace,
    LeftBracket,
    RightBracket,
    Semicolon,
    Comma,
    Dot,
    DotDotDot,
    Colon,
    Arrow,
    StringLiteral,
    NumericLiteral,
    BigIntLiteral,
    RegexLiteral,
    TemplateString,
    TemplateHead,
    TemplateMiddle,
    TemplateTail,
    IdentifierName,
    LineComment,
    BlockComment,
    Whitespace,
    Newline,
    Eof,
    Error,
}Expand description
JavaScript 语法种类(包含节点与词法)
Variants§
Root
Program
Statement
Expression
Declaration
FunctionDeclaration
VariableDeclaration
ClassDeclaration
ImportDeclaration
ExportDeclaration
IfStatement
WhileStatement
ForStatement
BlockStatement
ExpressionStatement
ReturnStatement
BreakStatement
ContinueStatement
ThrowStatement
TryStatement
CatchClause
FinallyClause
SwitchStatement
CaseClause
DefaultClause
BinaryExpression
UnaryExpression
AssignmentExpression
CallExpression
MemberExpression
ConditionalExpression
ArrayExpression
ObjectExpression
FunctionExpression
ArrowFunctionExpression
NewExpression
UpdateExpression
LogicalExpression
SequenceExpression
ThisExpression
Identifier
Literal
TemplateLiteral
TaggedTemplateExpression
ObjectPattern
ArrayPattern
RestElement
AssignmentPattern
Property
ErrorNode
Abstract
As
Async
Await
Break
Case
Catch
Class
Const
Continue
Debugger
Default
Delete
Do
Else
Enum
Export
Extends
False
Finally
For
Function
If
Implements
Import
In
Instanceof
Interface
Let
New
Null
Package
Private
Protected
Public
Return
Static
Super
Switch
This
Throw
True
Try
Typeof
Undefined
Var
Void
While
With
Yield
Plus
Minus
Star
Slash
Percent
StarStar
PlusPlus
MinusMinus
LeftShift
RightShift
UnsignedRightShift
Less
Greater
LessEqual
GreaterEqual
EqualEqual
NotEqual
EqualEqualEqual
NotEqualEqual
Ampersand
Pipe
Caret
Exclamation
Tilde
AmpersandAmpersand
PipePipe
Question
QuestionQuestion
QuestionDot
Equal
PlusEqual
MinusEqual
StarEqual
SlashEqual
PercentEqual
StarStarEqual
LeftShiftEqual
RightShiftEqual
UnsignedRightShiftEqual
AmpersandEqual
PipeEqual
CaretEqual
AmpersandAmpersandEqual
PipePipeEqual
QuestionQuestionEqual
LeftParen
RightParen
LeftBrace
RightBrace
LeftBracket
RightBracket
Semicolon
Comma
Dot
DotDotDot
Colon
Arrow
StringLiteral
NumericLiteral
BigIntLiteral
RegexLiteral
TemplateString
TemplateHead
TemplateMiddle
TemplateTail
IdentifierName
LineComment
BlockComment
Whitespace
Newline
Eof
Error
Trait Implementations§
Source§impl Clone for JavaScriptSyntaxKind
 
impl Clone for JavaScriptSyntaxKind
Source§fn clone(&self) -> JavaScriptSyntaxKind
 
fn clone(&self) -> JavaScriptSyntaxKind
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 JavaScriptSyntaxKind
 
impl Debug for JavaScriptSyntaxKind
Source§impl<'de> Deserialize<'de> for JavaScriptSyntaxKind
 
impl<'de> Deserialize<'de> for JavaScriptSyntaxKind
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
    __D: Deserializer<'de>,
 
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
    __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for JavaScriptSyntaxKind
 
impl Hash for JavaScriptSyntaxKind
Source§impl PartialEq for JavaScriptSyntaxKind
 
impl PartialEq for JavaScriptSyntaxKind
Source§impl Serialize for JavaScriptSyntaxKind
 
impl Serialize for JavaScriptSyntaxKind
Source§impl SyntaxKind for JavaScriptSyntaxKind
 
impl SyntaxKind for JavaScriptSyntaxKind
Source§fn is_trivia(&self) -> bool
 
fn is_trivia(&self) -> bool
Returns true if this kind represents trivia (whitespace, comments, etc.). Read more
Source§fn is_comment(&self) -> bool
 
fn is_comment(&self) -> bool
Returns true if this kind represents a comment. Read more
Source§fn is_whitespace(&self) -> bool
 
fn is_whitespace(&self) -> bool
Returns true if this kind represents whitespace.
Source§fn is_token_type(&self) -> bool
 
fn is_token_type(&self) -> bool
Returns true if this kind represents a token type. Read more
Source§fn is_element_type(&self) -> bool
 
fn is_element_type(&self) -> bool
Returns true if this kind represents an element type. Read more
impl Copy for JavaScriptSyntaxKind
impl Eq for JavaScriptSyntaxKind
impl StructuralPartialEq for JavaScriptSyntaxKind
Auto Trait Implementations§
impl Freeze for JavaScriptSyntaxKind
impl RefUnwindSafe for JavaScriptSyntaxKind
impl Send for JavaScriptSyntaxKind
impl Sync for JavaScriptSyntaxKind
impl Unpin for JavaScriptSyntaxKind
impl UnwindSafe for JavaScriptSyntaxKind
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