Enum swc_ecma_visit::AstNodeRef
source · [−]pub enum AstNodeRef<'ast> {
Show 279 variants
Accessibility(&'ast Accessibility),
ArrayLit(&'ast ArrayLit),
ArrayPat(&'ast ArrayPat),
ArrowExpr(&'ast ArrowExpr),
AssignExpr(&'ast AssignExpr),
AssignOp(&'ast AssignOp),
AssignPat(&'ast AssignPat),
AssignPatProp(&'ast AssignPatProp),
AssignProp(&'ast AssignProp),
AwaitExpr(&'ast AwaitExpr),
BigInt(&'ast BigInt),
BigIntValue(&'ast BigIntValue),
BinExpr(&'ast BinExpr),
BinaryOp(&'ast BinaryOp),
BindingIdent(&'ast BindingIdent),
BlockStmt(&'ast BlockStmt),
BlockStmtOrExpr(&'ast BlockStmtOrExpr),
Bool(&'ast Bool),
BreakStmt(&'ast BreakStmt),
CallExpr(&'ast CallExpr),
Callee(&'ast Callee),
CatchClause(&'ast CatchClause),
Class(&'ast Class),
ClassDecl(&'ast ClassDecl),
ClassExpr(&'ast ClassExpr),
ClassMember(&'ast ClassMember),
ClassMethod(&'ast ClassMethod),
ClassProp(&'ast ClassProp),
ComputedPropName(&'ast ComputedPropName),
CondExpr(&'ast CondExpr),
Constructor(&'ast Constructor),
ContinueStmt(&'ast ContinueStmt),
DebuggerStmt(&'ast DebuggerStmt),
Decl(&'ast Decl),
Decorator(&'ast Decorator),
DefaultDecl(&'ast DefaultDecl),
DoWhileStmt(&'ast DoWhileStmt),
EmptyStmt(&'ast EmptyStmt),
ExportAll(&'ast ExportAll),
ExportDecl(&'ast ExportDecl),
ExportDefaultDecl(&'ast ExportDefaultDecl),
ExportDefaultExpr(&'ast ExportDefaultExpr),
ExportDefaultSpecifier(&'ast ExportDefaultSpecifier),
ExportNamedSpecifier(&'ast ExportNamedSpecifier),
ExportNamespaceSpecifier(&'ast ExportNamespaceSpecifier),
ExportSpecifier(&'ast ExportSpecifier),
Expr(&'ast Expr),
ExprOrSpread(&'ast ExprOrSpread),
ExprStmt(&'ast ExprStmt),
FnDecl(&'ast FnDecl),
FnExpr(&'ast FnExpr),
ForInStmt(&'ast ForInStmt),
ForOfStmt(&'ast ForOfStmt),
ForStmt(&'ast ForStmt),
Function(&'ast Function),
GetterProp(&'ast GetterProp),
Ident(&'ast Ident),
IfStmt(&'ast IfStmt),
Import(&'ast Import),
ImportDecl(&'ast ImportDecl),
ImportDefaultSpecifier(&'ast ImportDefaultSpecifier),
ImportNamedSpecifier(&'ast ImportNamedSpecifier),
ImportSpecifier(&'ast ImportSpecifier),
ImportStarAsSpecifier(&'ast ImportStarAsSpecifier),
Invalid(&'ast Invalid),
JSXAttr(&'ast JSXAttr),
JSXAttrName(&'ast JSXAttrName),
JSXAttrOrSpread(&'ast JSXAttrOrSpread),
JSXAttrValue(&'ast JSXAttrValue),
JSXClosingElement(&'ast JSXClosingElement),
JSXClosingFragment(&'ast JSXClosingFragment),
JSXElement(&'ast JSXElement),
JSXElementChild(&'ast JSXElementChild),
JSXElementName(&'ast JSXElementName),
JSXEmptyExpr(&'ast JSXEmptyExpr),
JSXExpr(&'ast JSXExpr),
JSXExprContainer(&'ast JSXExprContainer),
JSXFragment(&'ast JSXFragment),
JSXMemberExpr(&'ast JSXMemberExpr),
JSXNamespacedName(&'ast JSXNamespacedName),
JSXObject(&'ast JSXObject),
JSXOpeningElement(&'ast JSXOpeningElement),
JSXOpeningFragment(&'ast JSXOpeningFragment),
JSXSpreadChild(&'ast JSXSpreadChild),
JSXText(&'ast JSXText),
JsWord(&'ast JsWord),
KeyValuePatProp(&'ast KeyValuePatProp),
KeyValueProp(&'ast KeyValueProp),
LabeledStmt(&'ast LabeledStmt),
Lit(&'ast Lit),
MemberExpr(&'ast MemberExpr),
MemberProp(&'ast MemberProp),
MetaPropExpr(&'ast MetaPropExpr),
MetaPropKind(&'ast MetaPropKind),
MethodKind(&'ast MethodKind),
MethodProp(&'ast MethodProp),
Module(&'ast Module),
ModuleDecl(&'ast ModuleDecl),
ModuleExportName(&'ast ModuleExportName),
ModuleItem(&'ast ModuleItem),
NamedExport(&'ast NamedExport),
NewExpr(&'ast NewExpr),
Null(&'ast Null),
Number(&'ast Number),
ObjectLit(&'ast ObjectLit),
ObjectPat(&'ast ObjectPat),
ObjectPatProp(&'ast ObjectPatProp),
OptAccessibility(Option<&'ast Accessibility>),
OptBlockStmt(Option<&'ast BlockStmt>),
OptCall(&'ast OptCall),
OptCatchClause(Option<&'ast CatchClause>),
OptChainBase(&'ast OptChainBase),
OptChainExpr(&'ast OptChainExpr),
OptExpr(Option<&'ast Box<Expr>>),
OptExprOrSpread(Option<&'ast ExprOrSpread>),
OptIdent(Option<&'ast Ident>),
OptJSXAttrValue(Option<&'ast JSXAttrValue>),
OptJSXClosingElement(Option<&'ast JSXClosingElement>),
OptJsWord(Option<&'ast JsWord>),
OptModuleExportName(Option<&'ast ModuleExportName>),
OptObjectLit(Option<&'ast ObjectLit>),
OptPat(Option<&'ast Pat>),
OptSpan(Option<&'ast Span>),
OptStmt(Option<&'ast Box<Stmt>>),
OptStr(Option<&'ast Str>),
OptTruePlusMinus(Option<&'ast TruePlusMinus>),
OptTsEntityName(Option<&'ast TsEntityName>),
OptTsNamespaceBody(Option<&'ast TsNamespaceBody>),
OptTsType(Option<&'ast Box<TsType>>),
OptTsTypeAnn(Option<&'ast TsTypeAnn>),
OptTsTypeParamDecl(Option<&'ast TsTypeParamDecl>),
OptTsTypeParamInstantiation(Option<&'ast TsTypeParamInstantiation>),
OptVarDeclOrExpr(Option<&'ast VarDeclOrExpr>),
OptVecExprOrSpread(Option<&'ast [ExprOrSpread]>),
Param(&'ast Param),
ParamOrTsParamProp(&'ast ParamOrTsParamProp),
ParenExpr(&'ast ParenExpr),
Pat(&'ast Pat),
PatOrExpr(&'ast PatOrExpr),
PrivateMethod(&'ast PrivateMethod),
PrivateName(&'ast PrivateName),
PrivateProp(&'ast PrivateProp),
Program(&'ast Program),
Prop(&'ast Prop),
PropName(&'ast PropName),
PropOrSpread(&'ast PropOrSpread),
Regex(&'ast Regex),
RestPat(&'ast RestPat),
ReturnStmt(&'ast ReturnStmt),
Script(&'ast Script),
SeqExpr(&'ast SeqExpr),
SetterProp(&'ast SetterProp),
Span(&'ast Span),
SpreadElement(&'ast SpreadElement),
StaticBlock(&'ast StaticBlock),
Stmt(&'ast Stmt),
Str(&'ast Str),
Super(&'ast Super),
SuperProp(&'ast SuperProp),
SuperPropExpr(&'ast SuperPropExpr),
SwitchCase(&'ast SwitchCase),
SwitchStmt(&'ast SwitchStmt),
TaggedTpl(&'ast TaggedTpl),
ThisExpr(&'ast ThisExpr),
ThrowStmt(&'ast ThrowStmt),
Tpl(&'ast Tpl),
TplElement(&'ast TplElement),
TruePlusMinus(&'ast TruePlusMinus),
TryStmt(&'ast TryStmt),
TsArrayType(&'ast TsArrayType),
TsAsExpr(&'ast TsAsExpr),
TsCallSignatureDecl(&'ast TsCallSignatureDecl),
TsConditionalType(&'ast TsConditionalType),
TsConstAssertion(&'ast TsConstAssertion),
TsConstructSignatureDecl(&'ast TsConstructSignatureDecl),
TsConstructorType(&'ast TsConstructorType),
TsEntityName(&'ast TsEntityName),
TsEnumDecl(&'ast TsEnumDecl),
TsEnumMember(&'ast TsEnumMember),
TsEnumMemberId(&'ast TsEnumMemberId),
TsExportAssignment(&'ast TsExportAssignment),
TsExprWithTypeArgs(&'ast TsExprWithTypeArgs),
TsExternalModuleRef(&'ast TsExternalModuleRef),
TsFnOrConstructorType(&'ast TsFnOrConstructorType),
TsFnParam(&'ast TsFnParam),
TsFnType(&'ast TsFnType),
TsGetterSignature(&'ast TsGetterSignature),
TsImportEqualsDecl(&'ast TsImportEqualsDecl),
TsImportType(&'ast TsImportType),
TsIndexSignature(&'ast TsIndexSignature),
TsIndexedAccessType(&'ast TsIndexedAccessType),
TsInferType(&'ast TsInferType),
TsInstantiation(&'ast TsInstantiation),
TsInterfaceBody(&'ast TsInterfaceBody),
TsInterfaceDecl(&'ast TsInterfaceDecl),
TsIntersectionType(&'ast TsIntersectionType),
TsKeywordType(&'ast TsKeywordType),
TsKeywordTypeKind(&'ast TsKeywordTypeKind),
TsLit(&'ast TsLit),
TsLitType(&'ast TsLitType),
TsMappedType(&'ast TsMappedType),
TsMethodSignature(&'ast TsMethodSignature),
TsModuleBlock(&'ast TsModuleBlock),
TsModuleDecl(&'ast TsModuleDecl),
TsModuleName(&'ast TsModuleName),
TsModuleRef(&'ast TsModuleRef),
TsNamespaceBody(&'ast TsNamespaceBody),
TsNamespaceDecl(&'ast TsNamespaceDecl),
TsNamespaceExportDecl(&'ast TsNamespaceExportDecl),
TsNonNullExpr(&'ast TsNonNullExpr),
TsOptionalType(&'ast TsOptionalType),
TsParamProp(&'ast TsParamProp),
TsParamPropParam(&'ast TsParamPropParam),
TsParenthesizedType(&'ast TsParenthesizedType),
TsPropertySignature(&'ast TsPropertySignature),
TsQualifiedName(&'ast TsQualifiedName),
TsRestType(&'ast TsRestType),
TsSetterSignature(&'ast TsSetterSignature),
TsThisType(&'ast TsThisType),
TsThisTypeOrIdent(&'ast TsThisTypeOrIdent),
TsTplLitType(&'ast TsTplLitType),
TsTupleElement(&'ast TsTupleElement),
TsTupleType(&'ast TsTupleType),
TsType(&'ast TsType),
TsTypeAliasDecl(&'ast TsTypeAliasDecl),
TsTypeAnn(&'ast TsTypeAnn),
TsTypeAssertion(&'ast TsTypeAssertion),
TsTypeElement(&'ast TsTypeElement),
TsTypeLit(&'ast TsTypeLit),
TsTypeOperator(&'ast TsTypeOperator),
TsTypeOperatorOp(&'ast TsTypeOperatorOp),
TsTypeParam(&'ast TsTypeParam),
TsTypeParamDecl(&'ast TsTypeParamDecl),
TsTypeParamInstantiation(&'ast TsTypeParamInstantiation),
TsTypePredicate(&'ast TsTypePredicate),
TsTypeQuery(&'ast TsTypeQuery),
TsTypeQueryExpr(&'ast TsTypeQueryExpr),
TsTypeRef(&'ast TsTypeRef),
TsUnionOrIntersectionType(&'ast TsUnionOrIntersectionType),
TsUnionType(&'ast TsUnionType),
UnaryExpr(&'ast UnaryExpr),
UnaryOp(&'ast UnaryOp),
UpdateExpr(&'ast UpdateExpr),
UpdateOp(&'ast UpdateOp),
VarDecl(&'ast VarDecl),
VarDeclKind(&'ast VarDeclKind),
VarDeclOrExpr(&'ast VarDeclOrExpr),
VarDeclOrPat(&'ast VarDeclOrPat),
VarDeclarator(&'ast VarDeclarator),
VecClassMember(&'ast [ClassMember], usize),
VecDecorator(&'ast [Decorator], usize),
VecExportSpecifier(&'ast [ExportSpecifier], usize),
VecExpr(&'ast [Box<Expr>], usize),
VecExprOrSpread(&'ast [ExprOrSpread], usize),
VecImportSpecifier(&'ast [ImportSpecifier], usize),
VecJSXAttrOrSpread(&'ast [JSXAttrOrSpread], usize),
VecJSXElementChild(&'ast [JSXElementChild], usize),
VecModuleItem(&'ast [ModuleItem], usize),
VecObjectPatProp(&'ast [ObjectPatProp], usize),
VecOptExprOrSpread(&'ast [Option<ExprOrSpread>], usize),
VecOptPat(&'ast [Option<Pat>], usize),
VecParam(&'ast [Param], usize),
VecParamOrTsParamProp(&'ast [ParamOrTsParamProp], usize),
VecPat(&'ast [Pat], usize),
VecPropOrSpread(&'ast [PropOrSpread], usize),
VecStmt(&'ast [Stmt], usize),
VecSwitchCase(&'ast [SwitchCase], usize),
VecTplElement(&'ast [TplElement], usize),
VecTsEnumMember(&'ast [TsEnumMember], usize),
VecTsExprWithTypeArgs(&'ast [TsExprWithTypeArgs], usize),
VecTsFnParam(&'ast [TsFnParam], usize),
VecTsTupleElement(&'ast [TsTupleElement], usize),
VecTsType(&'ast [Box<TsType>], usize),
VecTsTypeElement(&'ast [TsTypeElement], usize),
VecTsTypeParam(&'ast [TsTypeParam], usize),
VecVarDeclarator(&'ast [VarDeclarator], usize),
WhileStmt(&'ast WhileStmt),
WithStmt(&'ast WithStmt),
YieldExpr(&'ast YieldExpr),
}
Variants
Accessibility(&'ast Accessibility)
ArrayLit(&'ast ArrayLit)
ArrayPat(&'ast ArrayPat)
ArrowExpr(&'ast ArrowExpr)
AssignExpr(&'ast AssignExpr)
AssignOp(&'ast AssignOp)
AssignPat(&'ast AssignPat)
AssignPatProp(&'ast AssignPatProp)
AssignProp(&'ast AssignProp)
AwaitExpr(&'ast AwaitExpr)
BigInt(&'ast BigInt)
BigIntValue(&'ast BigIntValue)
BinExpr(&'ast BinExpr)
BinaryOp(&'ast BinaryOp)
BindingIdent(&'ast BindingIdent)
BlockStmt(&'ast BlockStmt)
BlockStmtOrExpr(&'ast BlockStmtOrExpr)
Bool(&'ast Bool)
BreakStmt(&'ast BreakStmt)
CallExpr(&'ast CallExpr)
Callee(&'ast Callee)
CatchClause(&'ast CatchClause)
Class(&'ast Class)
ClassDecl(&'ast ClassDecl)
ClassExpr(&'ast ClassExpr)
ClassMember(&'ast ClassMember)
ClassMethod(&'ast ClassMethod)
ClassProp(&'ast ClassProp)
ComputedPropName(&'ast ComputedPropName)
CondExpr(&'ast CondExpr)
Constructor(&'ast Constructor)
ContinueStmt(&'ast ContinueStmt)
DebuggerStmt(&'ast DebuggerStmt)
Decl(&'ast Decl)
Decorator(&'ast Decorator)
DefaultDecl(&'ast DefaultDecl)
DoWhileStmt(&'ast DoWhileStmt)
EmptyStmt(&'ast EmptyStmt)
ExportAll(&'ast ExportAll)
ExportDecl(&'ast ExportDecl)
ExportDefaultDecl(&'ast ExportDefaultDecl)
ExportDefaultExpr(&'ast ExportDefaultExpr)
ExportDefaultSpecifier(&'ast ExportDefaultSpecifier)
ExportNamedSpecifier(&'ast ExportNamedSpecifier)
ExportNamespaceSpecifier(&'ast ExportNamespaceSpecifier)
ExportSpecifier(&'ast ExportSpecifier)
Expr(&'ast Expr)
ExprOrSpread(&'ast ExprOrSpread)
ExprStmt(&'ast ExprStmt)
FnDecl(&'ast FnDecl)
FnExpr(&'ast FnExpr)
ForInStmt(&'ast ForInStmt)
ForOfStmt(&'ast ForOfStmt)
ForStmt(&'ast ForStmt)
Function(&'ast Function)
GetterProp(&'ast GetterProp)
Ident(&'ast Ident)
IfStmt(&'ast IfStmt)
Import(&'ast Import)
ImportDecl(&'ast ImportDecl)
ImportDefaultSpecifier(&'ast ImportDefaultSpecifier)
ImportNamedSpecifier(&'ast ImportNamedSpecifier)
ImportSpecifier(&'ast ImportSpecifier)
ImportStarAsSpecifier(&'ast ImportStarAsSpecifier)
Invalid(&'ast Invalid)
JSXAttr(&'ast JSXAttr)
JSXAttrName(&'ast JSXAttrName)
JSXAttrOrSpread(&'ast JSXAttrOrSpread)
JSXAttrValue(&'ast JSXAttrValue)
JSXClosingElement(&'ast JSXClosingElement)
JSXClosingFragment(&'ast JSXClosingFragment)
JSXElement(&'ast JSXElement)
JSXElementChild(&'ast JSXElementChild)
JSXElementName(&'ast JSXElementName)
JSXEmptyExpr(&'ast JSXEmptyExpr)
JSXExpr(&'ast JSXExpr)
JSXExprContainer(&'ast JSXExprContainer)
JSXFragment(&'ast JSXFragment)
JSXMemberExpr(&'ast JSXMemberExpr)
JSXNamespacedName(&'ast JSXNamespacedName)
JSXObject(&'ast JSXObject)
JSXOpeningElement(&'ast JSXOpeningElement)
JSXOpeningFragment(&'ast JSXOpeningFragment)
JSXSpreadChild(&'ast JSXSpreadChild)
JSXText(&'ast JSXText)
JsWord(&'ast JsWord)
KeyValuePatProp(&'ast KeyValuePatProp)
KeyValueProp(&'ast KeyValueProp)
LabeledStmt(&'ast LabeledStmt)
Lit(&'ast Lit)
MemberExpr(&'ast MemberExpr)
MemberProp(&'ast MemberProp)
MetaPropExpr(&'ast MetaPropExpr)
MetaPropKind(&'ast MetaPropKind)
MethodKind(&'ast MethodKind)
MethodProp(&'ast MethodProp)
Module(&'ast Module)
ModuleDecl(&'ast ModuleDecl)
ModuleExportName(&'ast ModuleExportName)
ModuleItem(&'ast ModuleItem)
NamedExport(&'ast NamedExport)
NewExpr(&'ast NewExpr)
Null(&'ast Null)
Number(&'ast Number)
ObjectLit(&'ast ObjectLit)
ObjectPat(&'ast ObjectPat)
ObjectPatProp(&'ast ObjectPatProp)
OptAccessibility(Option<&'ast Accessibility>)
OptBlockStmt(Option<&'ast BlockStmt>)
OptCall(&'ast OptCall)
OptCatchClause(Option<&'ast CatchClause>)
OptChainBase(&'ast OptChainBase)
OptChainExpr(&'ast OptChainExpr)
OptExpr(Option<&'ast Box<Expr>>)
OptExprOrSpread(Option<&'ast ExprOrSpread>)
OptIdent(Option<&'ast Ident>)
OptJSXAttrValue(Option<&'ast JSXAttrValue>)
OptJSXClosingElement(Option<&'ast JSXClosingElement>)
OptJsWord(Option<&'ast JsWord>)
OptModuleExportName(Option<&'ast ModuleExportName>)
OptObjectLit(Option<&'ast ObjectLit>)
OptPat(Option<&'ast Pat>)
OptSpan(Option<&'ast Span>)
OptStmt(Option<&'ast Box<Stmt>>)
OptStr(Option<&'ast Str>)
OptTruePlusMinus(Option<&'ast TruePlusMinus>)
OptTsEntityName(Option<&'ast TsEntityName>)
OptTsNamespaceBody(Option<&'ast TsNamespaceBody>)
OptTsType(Option<&'ast Box<TsType>>)
OptTsTypeAnn(Option<&'ast TsTypeAnn>)
OptTsTypeParamDecl(Option<&'ast TsTypeParamDecl>)
OptTsTypeParamInstantiation(Option<&'ast TsTypeParamInstantiation>)
OptVarDeclOrExpr(Option<&'ast VarDeclOrExpr>)
OptVecExprOrSpread(Option<&'ast [ExprOrSpread]>)
Param(&'ast Param)
ParamOrTsParamProp(&'ast ParamOrTsParamProp)
ParenExpr(&'ast ParenExpr)
Pat(&'ast Pat)
PatOrExpr(&'ast PatOrExpr)
PrivateMethod(&'ast PrivateMethod)
PrivateName(&'ast PrivateName)
PrivateProp(&'ast PrivateProp)
Program(&'ast Program)
Prop(&'ast Prop)
PropName(&'ast PropName)
PropOrSpread(&'ast PropOrSpread)
Regex(&'ast Regex)
RestPat(&'ast RestPat)
ReturnStmt(&'ast ReturnStmt)
Script(&'ast Script)
SeqExpr(&'ast SeqExpr)
SetterProp(&'ast SetterProp)
Span(&'ast Span)
SpreadElement(&'ast SpreadElement)
StaticBlock(&'ast StaticBlock)
Stmt(&'ast Stmt)
Str(&'ast Str)
Super(&'ast Super)
SuperProp(&'ast SuperProp)
SuperPropExpr(&'ast SuperPropExpr)
SwitchCase(&'ast SwitchCase)
SwitchStmt(&'ast SwitchStmt)
TaggedTpl(&'ast TaggedTpl)
ThisExpr(&'ast ThisExpr)
ThrowStmt(&'ast ThrowStmt)
Tpl(&'ast Tpl)
TplElement(&'ast TplElement)
TruePlusMinus(&'ast TruePlusMinus)
TryStmt(&'ast TryStmt)
TsArrayType(&'ast TsArrayType)
TsAsExpr(&'ast TsAsExpr)
TsCallSignatureDecl(&'ast TsCallSignatureDecl)
TsConditionalType(&'ast TsConditionalType)
TsConstAssertion(&'ast TsConstAssertion)
TsConstructSignatureDecl(&'ast TsConstructSignatureDecl)
TsConstructorType(&'ast TsConstructorType)
TsEntityName(&'ast TsEntityName)
TsEnumDecl(&'ast TsEnumDecl)
TsEnumMember(&'ast TsEnumMember)
TsEnumMemberId(&'ast TsEnumMemberId)
TsExportAssignment(&'ast TsExportAssignment)
TsExprWithTypeArgs(&'ast TsExprWithTypeArgs)
TsExternalModuleRef(&'ast TsExternalModuleRef)
TsFnOrConstructorType(&'ast TsFnOrConstructorType)
TsFnParam(&'ast TsFnParam)
TsFnType(&'ast TsFnType)
TsGetterSignature(&'ast TsGetterSignature)
TsImportEqualsDecl(&'ast TsImportEqualsDecl)
TsImportType(&'ast TsImportType)
TsIndexSignature(&'ast TsIndexSignature)
TsIndexedAccessType(&'ast TsIndexedAccessType)
TsInferType(&'ast TsInferType)
TsInstantiation(&'ast TsInstantiation)
TsInterfaceBody(&'ast TsInterfaceBody)
TsInterfaceDecl(&'ast TsInterfaceDecl)
TsIntersectionType(&'ast TsIntersectionType)
TsKeywordType(&'ast TsKeywordType)
TsKeywordTypeKind(&'ast TsKeywordTypeKind)
TsLit(&'ast TsLit)
TsLitType(&'ast TsLitType)
TsMappedType(&'ast TsMappedType)
TsMethodSignature(&'ast TsMethodSignature)
TsModuleBlock(&'ast TsModuleBlock)
TsModuleDecl(&'ast TsModuleDecl)
TsModuleName(&'ast TsModuleName)
TsModuleRef(&'ast TsModuleRef)
TsNamespaceBody(&'ast TsNamespaceBody)
TsNamespaceDecl(&'ast TsNamespaceDecl)
TsNamespaceExportDecl(&'ast TsNamespaceExportDecl)
TsNonNullExpr(&'ast TsNonNullExpr)
TsOptionalType(&'ast TsOptionalType)
TsParamProp(&'ast TsParamProp)
TsParamPropParam(&'ast TsParamPropParam)
TsParenthesizedType(&'ast TsParenthesizedType)
TsPropertySignature(&'ast TsPropertySignature)
TsQualifiedName(&'ast TsQualifiedName)
TsRestType(&'ast TsRestType)
TsSetterSignature(&'ast TsSetterSignature)
TsThisType(&'ast TsThisType)
TsThisTypeOrIdent(&'ast TsThisTypeOrIdent)
TsTplLitType(&'ast TsTplLitType)
TsTupleElement(&'ast TsTupleElement)
TsTupleType(&'ast TsTupleType)
TsType(&'ast TsType)
TsTypeAliasDecl(&'ast TsTypeAliasDecl)
TsTypeAnn(&'ast TsTypeAnn)
TsTypeAssertion(&'ast TsTypeAssertion)
TsTypeElement(&'ast TsTypeElement)
TsTypeLit(&'ast TsTypeLit)
TsTypeOperator(&'ast TsTypeOperator)
TsTypeOperatorOp(&'ast TsTypeOperatorOp)
TsTypeParam(&'ast TsTypeParam)
TsTypeParamDecl(&'ast TsTypeParamDecl)
TsTypeParamInstantiation(&'ast TsTypeParamInstantiation)
TsTypePredicate(&'ast TsTypePredicate)
TsTypeQuery(&'ast TsTypeQuery)
TsTypeQueryExpr(&'ast TsTypeQueryExpr)
TsTypeRef(&'ast TsTypeRef)
TsUnionOrIntersectionType(&'ast TsUnionOrIntersectionType)
TsUnionType(&'ast TsUnionType)
UnaryExpr(&'ast UnaryExpr)
UnaryOp(&'ast UnaryOp)
UpdateExpr(&'ast UpdateExpr)
UpdateOp(&'ast UpdateOp)
VarDecl(&'ast VarDecl)
VarDeclKind(&'ast VarDeclKind)
VarDeclOrExpr(&'ast VarDeclOrExpr)
VarDeclOrPat(&'ast VarDeclOrPat)
VarDeclarator(&'ast VarDeclarator)
VecClassMember(&'ast [ClassMember], usize)
VecDecorator(&'ast [Decorator], usize)
VecExportSpecifier(&'ast [ExportSpecifier], usize)
VecExpr(&'ast [Box<Expr>], usize)
VecExprOrSpread(&'ast [ExprOrSpread], usize)
VecImportSpecifier(&'ast [ImportSpecifier], usize)
VecJSXAttrOrSpread(&'ast [JSXAttrOrSpread], usize)
VecJSXElementChild(&'ast [JSXElementChild], usize)
VecModuleItem(&'ast [ModuleItem], usize)
VecObjectPatProp(&'ast [ObjectPatProp], usize)
VecOptExprOrSpread(&'ast [Option<ExprOrSpread>], usize)
VecOptPat(&'ast [Option<Pat>], usize)
VecParam(&'ast [Param], usize)
VecParamOrTsParamProp(&'ast [ParamOrTsParamProp], usize)
VecPat(&'ast [Pat], usize)
VecPropOrSpread(&'ast [PropOrSpread], usize)
VecStmt(&'ast [Stmt], usize)
VecSwitchCase(&'ast [SwitchCase], usize)
VecTplElement(&'ast [TplElement], usize)
VecTsEnumMember(&'ast [TsEnumMember], usize)
VecTsExprWithTypeArgs(&'ast [TsExprWithTypeArgs], usize)
VecTsFnParam(&'ast [TsFnParam], usize)
VecTsTupleElement(&'ast [TsTupleElement], usize)
VecTsType(&'ast [Box<TsType>], usize)
VecTsTypeElement(&'ast [TsTypeElement], usize)
VecTsTypeParam(&'ast [TsTypeParam], usize)
VecVarDeclarator(&'ast [VarDeclarator], usize)
WhileStmt(&'ast WhileStmt)
WithStmt(&'ast WithStmt)
YieldExpr(&'ast YieldExpr)
Trait Implementations
sourceimpl<'ast> Clone for AstNodeRef<'ast>
impl<'ast> Clone for AstNodeRef<'ast>
sourcefn clone(&self) -> AstNodeRef<'ast>
fn clone(&self) -> AstNodeRef<'ast>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<'ast> Debug for AstNodeRef<'ast>
impl<'ast> Debug for AstNodeRef<'ast>
sourceimpl<'ast> PartialEq<AstNodeRef<'ast>> for AstNodeRef<'ast>
impl<'ast> PartialEq<AstNodeRef<'ast>> for AstNodeRef<'ast>
sourcefn eq(&self, other: &AstNodeRef<'ast>) -> bool
fn eq(&self, other: &AstNodeRef<'ast>) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &AstNodeRef<'ast>) -> bool
fn ne(&self, other: &AstNodeRef<'ast>) -> bool
This method tests for !=
.
impl<'ast> Copy for AstNodeRef<'ast>
impl<'ast> StructuralPartialEq for AstNodeRef<'ast>
Auto Trait Implementations
impl<'ast> RefUnwindSafe for AstNodeRef<'ast>
impl<'ast> Send for AstNodeRef<'ast>
impl<'ast> Sync for AstNodeRef<'ast>
impl<'ast> Unpin for AstNodeRef<'ast>
impl<'ast> UnwindSafe for AstNodeRef<'ast>
Blanket Implementations
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
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