Enum swc_plugin::ast::AstKind
[−]pub enum AstKind {
Show 279 variants
Accessibility,
ArrayLit,
ArrayPat,
ArrowExpr,
AssignExpr,
AssignOp,
AssignPat,
AssignPatProp,
AssignProp,
AwaitExpr,
BigInt,
BigIntValue,
BinExpr,
BinaryOp,
BindingIdent,
BlockStmt,
BlockStmtOrExpr,
Bool,
BreakStmt,
CallExpr,
Callee,
CatchClause,
Class,
ClassDecl,
ClassExpr,
ClassMember,
ClassMethod,
ClassProp,
ComputedPropName,
CondExpr,
Constructor,
ContinueStmt,
DebuggerStmt,
Decl,
Decorator,
DefaultDecl,
DoWhileStmt,
EmptyStmt,
ExportAll,
ExportDecl,
ExportDefaultDecl,
ExportDefaultExpr,
ExportDefaultSpecifier,
ExportNamedSpecifier,
ExportNamespaceSpecifier,
ExportSpecifier,
Expr,
ExprOrSpread,
ExprStmt,
FnDecl,
FnExpr,
ForInStmt,
ForOfStmt,
ForStmt,
Function,
GetterProp,
Ident,
IfStmt,
Import,
ImportDecl,
ImportDefaultSpecifier,
ImportNamedSpecifier,
ImportSpecifier,
ImportStarAsSpecifier,
Invalid,
JSXAttr,
JSXAttrName,
JSXAttrOrSpread,
JSXAttrValue,
JSXClosingElement,
JSXClosingFragment,
JSXElement,
JSXElementChild,
JSXElementName,
JSXEmptyExpr,
JSXExpr,
JSXExprContainer,
JSXFragment,
JSXMemberExpr,
JSXNamespacedName,
JSXObject,
JSXOpeningElement,
JSXOpeningFragment,
JSXSpreadChild,
JSXText,
JsWord,
KeyValuePatProp,
KeyValueProp,
LabeledStmt,
Lit,
MemberExpr,
MemberProp,
MetaPropExpr,
MetaPropKind,
MethodKind,
MethodProp,
Module,
ModuleDecl,
ModuleExportName,
ModuleItem,
NamedExport,
NewExpr,
Null,
Number,
ObjectLit,
ObjectPat,
ObjectPatProp,
OptAccessibility,
OptBlockStmt,
OptCall,
OptCatchClause,
OptChainBase,
OptChainExpr,
OptExpr,
OptExprOrSpread,
OptIdent,
OptJSXAttrValue,
OptJSXClosingElement,
OptJsWord,
OptModuleExportName,
OptObjectLit,
OptPat,
OptSpan,
OptStmt,
OptStr,
OptTruePlusMinus,
OptTsEntityName,
OptTsNamespaceBody,
OptTsType,
OptTsTypeAnn,
OptTsTypeParamDecl,
OptTsTypeParamInstantiation,
OptVarDeclOrExpr,
OptVecExprOrSpread,
Param,
ParamOrTsParamProp,
ParenExpr,
Pat,
PatOrExpr,
PrivateMethod,
PrivateName,
PrivateProp,
Program,
Prop,
PropName,
PropOrSpread,
Regex,
RestPat,
ReturnStmt,
Script,
SeqExpr,
SetterProp,
Span,
SpreadElement,
StaticBlock,
Stmt,
Str,
Super,
SuperProp,
SuperPropExpr,
SwitchCase,
SwitchStmt,
TaggedTpl,
ThisExpr,
ThrowStmt,
Tpl,
TplElement,
TruePlusMinus,
TryStmt,
TsArrayType,
TsAsExpr,
TsCallSignatureDecl,
TsConditionalType,
TsConstAssertion,
TsConstructSignatureDecl,
TsConstructorType,
TsEntityName,
TsEnumDecl,
TsEnumMember,
TsEnumMemberId,
TsExportAssignment,
TsExprWithTypeArgs,
TsExternalModuleRef,
TsFnOrConstructorType,
TsFnParam,
TsFnType,
TsGetterSignature,
TsImportEqualsDecl,
TsImportType,
TsIndexSignature,
TsIndexedAccessType,
TsInferType,
TsInstantiation,
TsInterfaceBody,
TsInterfaceDecl,
TsIntersectionType,
TsKeywordType,
TsKeywordTypeKind,
TsLit,
TsLitType,
TsMappedType,
TsMethodSignature,
TsModuleBlock,
TsModuleDecl,
TsModuleName,
TsModuleRef,
TsNamespaceBody,
TsNamespaceDecl,
TsNamespaceExportDecl,
TsNonNullExpr,
TsOptionalType,
TsParamProp,
TsParamPropParam,
TsParenthesizedType,
TsPropertySignature,
TsQualifiedName,
TsRestType,
TsSetterSignature,
TsThisType,
TsThisTypeOrIdent,
TsTplLitType,
TsTupleElement,
TsTupleType,
TsType,
TsTypeAliasDecl,
TsTypeAnn,
TsTypeAssertion,
TsTypeElement,
TsTypeLit,
TsTypeOperator,
TsTypeOperatorOp,
TsTypeParam,
TsTypeParamDecl,
TsTypeParamInstantiation,
TsTypePredicate,
TsTypeQuery,
TsTypeQueryExpr,
TsTypeRef,
TsUnionOrIntersectionType,
TsUnionType,
UnaryExpr,
UnaryOp,
UpdateExpr,
UpdateOp,
VarDecl,
VarDeclKind,
VarDeclOrExpr,
VarDeclOrPat,
VarDeclarator,
VecClassMember,
VecDecorator,
VecExportSpecifier,
VecExpr,
VecExprOrSpread,
VecImportSpecifier,
VecJSXAttrOrSpread,
VecJSXElementChild,
VecModuleItem,
VecObjectPatProp,
VecOptExprOrSpread,
VecOptPat,
VecParam,
VecParamOrTsParamProp,
VecPat,
VecPropOrSpread,
VecStmt,
VecSwitchCase,
VecTplElement,
VecTsEnumMember,
VecTsExprWithTypeArgs,
VecTsFnParam,
VecTsTupleElement,
VecTsType,
VecTsTypeElement,
VecTsTypeParam,
VecVarDeclarator,
WhileStmt,
WithStmt,
YieldExpr,
}
Variants
Accessibility
ArrayLit
ArrayPat
ArrowExpr
AssignExpr
AssignOp
AssignPat
AssignPatProp
AssignProp
AwaitExpr
BigInt
BigIntValue
BinExpr
BinaryOp
BindingIdent
BlockStmt
BlockStmtOrExpr
Bool
BreakStmt
CallExpr
Callee
CatchClause
Class
ClassDecl
ClassExpr
ClassMember
ClassMethod
ClassProp
ComputedPropName
CondExpr
Constructor
ContinueStmt
DebuggerStmt
Decl
Decorator
DefaultDecl
DoWhileStmt
EmptyStmt
ExportAll
ExportDecl
ExportDefaultDecl
ExportDefaultExpr
ExportDefaultSpecifier
ExportNamedSpecifier
ExportNamespaceSpecifier
ExportSpecifier
Expr
ExprOrSpread
ExprStmt
FnDecl
FnExpr
ForInStmt
ForOfStmt
ForStmt
Function
GetterProp
Ident
IfStmt
Import
ImportDecl
ImportDefaultSpecifier
ImportNamedSpecifier
ImportSpecifier
ImportStarAsSpecifier
Invalid
JSXAttr
JSXAttrName
JSXAttrOrSpread
JSXAttrValue
JSXClosingElement
JSXClosingFragment
JSXElement
JSXElementChild
JSXElementName
JSXEmptyExpr
JSXExpr
JSXExprContainer
JSXFragment
JSXMemberExpr
JSXNamespacedName
JSXObject
JSXOpeningElement
JSXOpeningFragment
JSXSpreadChild
JSXText
JsWord
KeyValuePatProp
KeyValueProp
LabeledStmt
Lit
MemberExpr
MemberProp
MetaPropExpr
MetaPropKind
MethodKind
MethodProp
Module
ModuleDecl
ModuleExportName
ModuleItem
NamedExport
NewExpr
Null
Number
ObjectLit
ObjectPat
ObjectPatProp
OptAccessibility
OptBlockStmt
OptCall
OptCatchClause
OptChainBase
OptChainExpr
OptExpr
OptExprOrSpread
OptIdent
OptJSXAttrValue
OptJSXClosingElement
OptJsWord
OptModuleExportName
OptObjectLit
OptPat
OptSpan
OptStmt
OptStr
OptTruePlusMinus
OptTsEntityName
OptTsNamespaceBody
OptTsType
OptTsTypeAnn
OptTsTypeParamDecl
OptTsTypeParamInstantiation
OptVarDeclOrExpr
OptVecExprOrSpread
Param
ParamOrTsParamProp
ParenExpr
Pat
PatOrExpr
PrivateMethod
PrivateName
PrivateProp
Program
Prop
PropName
PropOrSpread
Regex
RestPat
ReturnStmt
Script
SeqExpr
SetterProp
Span
SpreadElement
StaticBlock
Stmt
Str
Super
SuperProp
SuperPropExpr
SwitchCase
SwitchStmt
TaggedTpl
ThisExpr
ThrowStmt
Tpl
TplElement
TruePlusMinus
TryStmt
TsArrayType
TsAsExpr
TsCallSignatureDecl
TsConditionalType
TsConstAssertion
TsConstructSignatureDecl
TsConstructorType
TsEntityName
TsEnumDecl
TsEnumMember
TsEnumMemberId
TsExportAssignment
TsExprWithTypeArgs
TsExternalModuleRef
TsFnOrConstructorType
TsFnParam
TsFnType
TsGetterSignature
TsImportEqualsDecl
TsImportType
TsIndexSignature
TsIndexedAccessType
TsInferType
TsInstantiation
TsInterfaceBody
TsInterfaceDecl
TsIntersectionType
TsKeywordType
TsKeywordTypeKind
TsLit
TsLitType
TsMappedType
TsMethodSignature
TsModuleBlock
TsModuleDecl
TsModuleName
TsModuleRef
TsNamespaceBody
TsNamespaceDecl
TsNamespaceExportDecl
TsNonNullExpr
TsOptionalType
TsParamProp
TsParamPropParam
TsParenthesizedType
TsPropertySignature
TsQualifiedName
TsRestType
TsSetterSignature
TsThisType
TsThisTypeOrIdent
TsTplLitType
TsTupleElement
TsTupleType
TsType
TsTypeAliasDecl
TsTypeAnn
TsTypeAssertion
TsTypeElement
TsTypeLit
TsTypeOperator
TsTypeOperatorOp
TsTypeParam
TsTypeParamDecl
TsTypeParamInstantiation
TsTypePredicate
TsTypeQuery
TsTypeQueryExpr
TsTypeRef
TsUnionOrIntersectionType
TsUnionType
UnaryExpr
UnaryOp
UpdateExpr
UpdateOp
VarDecl
VarDeclKind
VarDeclOrExpr
VarDeclOrPat
VarDeclarator
VecClassMember
VecDecorator
VecExportSpecifier
VecExpr
VecExprOrSpread
VecImportSpecifier
VecJSXAttrOrSpread
VecJSXElementChild
VecModuleItem
VecObjectPatProp
VecOptExprOrSpread
VecOptPat
VecParam
VecParamOrTsParamProp
VecPat
VecPropOrSpread
VecStmt
VecSwitchCase
VecTplElement
VecTsEnumMember
VecTsExprWithTypeArgs
VecTsFnParam
VecTsTupleElement
VecTsType
VecTsTypeElement
VecTsTypeParam
VecVarDeclarator
WhileStmt
WithStmt
YieldExpr
Trait Implementations
impl Ord for AstKind
impl Ord for AstKind
impl PartialOrd<AstKind> for AstKind
impl PartialOrd<AstKind> for AstKind
fn partial_cmp(&self, other: &AstKind) -> Option<Ordering>
fn partial_cmp(&self, other: &AstKind) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl Copy for AstKind
impl Eq for AstKind
impl StructuralEq for AstKind
impl StructuralPartialEq for AstKind
Auto Trait Implementations
impl RefUnwindSafe for AstKind
impl Send for AstKind
impl Sync for AstKind
impl Unpin for AstKind
impl UnwindSafe for AstKind
Blanket Implementations
impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
fn pointer_metadata(
&<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
fn pointer_metadata(
&<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<F, W, T, D> Deserialize<With<T, W>, D> for F where
W: DeserializeWith<F, T, D>,
D: Fallible + ?Sized,
F: ?Sized,
impl<F, W, T, D> Deserialize<With<T, W>, D> for F where
W: DeserializeWith<F, T, D>,
D: Fallible + ?Sized,
F: ?Sized,
fn deserialize(
&self,
deserializer: &mut D
) -> Result<With<T, W>, <D as Fallible>::Error>
fn deserialize(
&self,
deserializer: &mut D
) -> Result<With<T, W>, <D as Fallible>::Error>
Deserializes using the given deserializer
sourceimpl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more