pub enum NodeKind {
Show 117 variants
SourceFile,
ImportDeclaration,
ImportEqualsDeclaration,
ImportSpecifier,
ExportDeclaration,
ExportSpecifier,
VariableDeclaration,
VariableDeclarator,
FunctionDeclaration,
ClassDeclaration,
InterfaceDeclaration,
TypeAliasDeclaration,
EnumDeclaration,
EnumMember,
NamespaceDeclaration,
BlockStatement,
EmptyStatement,
ExpressionStatement,
IfStatement,
SwitchStatement,
SwitchCase,
ForStatement,
ForInStatement,
ForOfStatement,
WhileStatement,
DoWhileStatement,
TryStatement,
CatchClause,
WithStatement,
LabeledStatement,
BreakStatement,
ContinueStatement,
ReturnStatement,
ThrowStatement,
DebuggerStatement,
DeclareStatement,
MissingStatement,
Identifier,
PrivateIdentifier,
StringLiteral,
NumericLiteral,
BigIntLiteral,
BooleanLiteral,
NullLiteral,
RegexLiteral,
TemplateElement,
IdentifierExpression,
ThisExpression,
SuperExpression,
LiteralExpression,
ArrayExpression,
ObjectExpression,
FunctionExpression,
ClassExpression,
ArrowFunction,
CallExpression,
MemberExpression,
NewExpression,
AwaitExpression,
YieldExpression,
UnaryExpression,
UpdateExpression,
BinaryExpression,
LogicalExpression,
ConditionalExpression,
AssignmentExpression,
SequenceExpression,
ParenthesizedExpression,
AsExpression,
SatisfiesExpression,
TypeAssertionExpression,
NonNullExpression,
TaggedTemplateExpression,
TemplateExpression,
ImportExpression,
MetaProperty,
MissingExpression,
BindingIdentifier,
ObjectBindingPattern,
ArrayBindingPattern,
RestBindingPattern,
AssignmentBindingPattern,
MissingBindingPattern,
MemberAssignmentTarget,
IdentifierAssignmentTarget,
ArrayAssignmentTarget,
ObjectAssignmentTarget,
MissingAssignmentTarget,
Parameter,
TypeAnnotation,
KeywordType,
LiteralType,
TypeReference,
UnionType,
IntersectionType,
ArrayType,
TupleType,
ObjectType,
FunctionType,
ConstructorType,
TypeQuery,
TypeOperator,
IndexedAccessType,
ConditionalType,
MappedType,
InferType,
ImportType,
TemplateLiteralType,
ParenthesizedType,
ThisType,
TypePredicate,
MissingType,
TypeParameter,
TypeMember,
ClassMember,
ObjectMember,
Decorator,
}Expand description
A grammar node kind. A value of this type can never name a token.
Variants§
SourceFile
ImportDeclaration
ImportEqualsDeclaration
ImportSpecifier
ExportDeclaration
ExportSpecifier
VariableDeclaration
VariableDeclarator
FunctionDeclaration
ClassDeclaration
InterfaceDeclaration
TypeAliasDeclaration
EnumDeclaration
EnumMember
NamespaceDeclaration
BlockStatement
EmptyStatement
ExpressionStatement
IfStatement
SwitchStatement
SwitchCase
ForStatement
ForInStatement
ForOfStatement
WhileStatement
DoWhileStatement
TryStatement
CatchClause
WithStatement
LabeledStatement
BreakStatement
ContinueStatement
ReturnStatement
ThrowStatement
DebuggerStatement
DeclareStatement
MissingStatement
Identifier
PrivateIdentifier
StringLiteral
NumericLiteral
BigIntLiteral
BooleanLiteral
NullLiteral
RegexLiteral
TemplateElement
IdentifierExpression
ThisExpression
SuperExpression
LiteralExpression
ArrayExpression
ObjectExpression
FunctionExpression
ClassExpression
ArrowFunction
CallExpression
MemberExpression
NewExpression
AwaitExpression
YieldExpression
UnaryExpression
UpdateExpression
BinaryExpression
LogicalExpression
ConditionalExpression
AssignmentExpression
SequenceExpression
ParenthesizedExpression
AsExpression
SatisfiesExpression
TypeAssertionExpression
NonNullExpression
TaggedTemplateExpression
TemplateExpression
ImportExpression
MetaProperty
MissingExpression
BindingIdentifier
ObjectBindingPattern
ArrayBindingPattern
RestBindingPattern
AssignmentBindingPattern
MissingBindingPattern
MemberAssignmentTarget
IdentifierAssignmentTarget
ArrayAssignmentTarget
ObjectAssignmentTarget
MissingAssignmentTarget
Parameter
TypeAnnotation
KeywordType
LiteralType
TypeReference
UnionType
IntersectionType
ArrayType
TupleType
ObjectType
FunctionType
ConstructorType
TypeQuery
TypeOperator
IndexedAccessType
ConditionalType
MappedType
InferType
ImportType
TemplateLiteralType
ParenthesizedType
ThisType
TypePredicate
MissingType
TypeParameter
TypeMember
ClassMember
ObjectMember
Decorator
Trait Implementations§
impl Copy for NodeKind
impl Eq for NodeKind
Source§impl From<NodeKind> for SyntaxKind
impl From<NodeKind> for SyntaxKind
Source§impl Ord for NodeKind
impl Ord for NodeKind
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 PartialOrd for NodeKind
impl PartialOrd for NodeKind
impl StructuralPartialEq for NodeKind
Auto Trait Implementations§
impl Freeze for NodeKind
impl RefUnwindSafe for NodeKind
impl Send for NodeKind
impl Sync for NodeKind
impl Unpin for NodeKind
impl UnsafeUnpin for NodeKind
impl UnwindSafe for NodeKind
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