Enum dprint_swc_ecma_ast_view::Node [−][src]
pub enum Node<'a> {}Show variants
ArrayLit(&'a ArrayLit<'a>), ArrayPat(&'a ArrayPat<'a>), ArrowExpr(&'a ArrowExpr<'a>), AssignExpr(&'a AssignExpr<'a>), AssignPat(&'a AssignPat<'a>), AssignPatProp(&'a AssignPatProp<'a>), AssignProp(&'a AssignProp<'a>), AwaitExpr(&'a AwaitExpr<'a>), BigInt(&'a BigInt<'a>), BinExpr(&'a BinExpr<'a>), BindingIdent(&'a BindingIdent<'a>), BlockStmt(&'a BlockStmt<'a>), Bool(&'a Bool<'a>), BreakStmt(&'a BreakStmt<'a>), CallExpr(&'a CallExpr<'a>), CatchClause(&'a CatchClause<'a>), Class(&'a Class<'a>), ClassDecl(&'a ClassDecl<'a>), ClassExpr(&'a ClassExpr<'a>), ClassMethod(&'a ClassMethod<'a>), ClassProp(&'a ClassProp<'a>), ComputedPropName(&'a ComputedPropName<'a>), CondExpr(&'a CondExpr<'a>), Constructor(&'a Constructor<'a>), ContinueStmt(&'a ContinueStmt<'a>), DebuggerStmt(&'a DebuggerStmt<'a>), Decorator(&'a Decorator<'a>), DoWhileStmt(&'a DoWhileStmt<'a>), EmptyStmt(&'a EmptyStmt<'a>), ExportAll(&'a ExportAll<'a>), ExportDecl(&'a ExportDecl<'a>), ExportDefaultDecl(&'a ExportDefaultDecl<'a>), ExportDefaultExpr(&'a ExportDefaultExpr<'a>), ExportDefaultSpecifier(&'a ExportDefaultSpecifier<'a>), ExportNamedSpecifier(&'a ExportNamedSpecifier<'a>), ExportNamespaceSpecifier(&'a ExportNamespaceSpecifier<'a>), ExprOrSpread(&'a ExprOrSpread<'a>), ExprStmt(&'a ExprStmt<'a>), FnDecl(&'a FnDecl<'a>), FnExpr(&'a FnExpr<'a>), ForInStmt(&'a ForInStmt<'a>), ForOfStmt(&'a ForOfStmt<'a>), ForStmt(&'a ForStmt<'a>), Function(&'a Function<'a>), GetterProp(&'a GetterProp<'a>), Ident(&'a Ident<'a>), IfStmt(&'a IfStmt<'a>), ImportDecl(&'a ImportDecl<'a>), ImportDefaultSpecifier(&'a ImportDefaultSpecifier<'a>), ImportNamedSpecifier(&'a ImportNamedSpecifier<'a>), ImportStarAsSpecifier(&'a ImportStarAsSpecifier<'a>), Invalid(&'a Invalid<'a>), JSXAttr(&'a JSXAttr<'a>), JSXClosingElement(&'a JSXClosingElement<'a>), JSXClosingFragment(&'a JSXClosingFragment<'a>), JSXElement(&'a JSXElement<'a>), JSXEmptyExpr(&'a JSXEmptyExpr<'a>), JSXExprContainer(&'a JSXExprContainer<'a>), JSXFragment(&'a JSXFragment<'a>), JSXMemberExpr(&'a JSXMemberExpr<'a>), JSXNamespacedName(&'a JSXNamespacedName<'a>), JSXOpeningElement(&'a JSXOpeningElement<'a>), JSXOpeningFragment(&'a JSXOpeningFragment<'a>), JSXSpreadChild(&'a JSXSpreadChild<'a>), JSXText(&'a JSXText<'a>), KeyValuePatProp(&'a KeyValuePatProp<'a>), KeyValueProp(&'a KeyValueProp<'a>), LabeledStmt(&'a LabeledStmt<'a>), MemberExpr(&'a MemberExpr<'a>), MetaPropExpr(&'a MetaPropExpr<'a>), MethodProp(&'a MethodProp<'a>), Module(&'a Module<'a>), NamedExport(&'a NamedExport<'a>), NewExpr(&'a NewExpr<'a>), Null(&'a Null<'a>), Number(&'a Number<'a>), ObjectLit(&'a ObjectLit<'a>), ObjectPat(&'a ObjectPat<'a>), OptChainExpr(&'a OptChainExpr<'a>), Param(&'a Param<'a>), ParenExpr(&'a ParenExpr<'a>), PrivateMethod(&'a PrivateMethod<'a>), PrivateName(&'a PrivateName<'a>), PrivateProp(&'a PrivateProp<'a>), Regex(&'a Regex<'a>), RestPat(&'a RestPat<'a>), ReturnStmt(&'a ReturnStmt<'a>), Script(&'a Script<'a>), SeqExpr(&'a SeqExpr<'a>), SetterProp(&'a SetterProp<'a>), SpreadElement(&'a SpreadElement<'a>), Str(&'a Str<'a>), Super(&'a Super<'a>), SwitchCase(&'a SwitchCase<'a>), SwitchStmt(&'a SwitchStmt<'a>), TaggedTpl(&'a TaggedTpl<'a>), ThisExpr(&'a ThisExpr<'a>), ThrowStmt(&'a ThrowStmt<'a>), Tpl(&'a Tpl<'a>), TplElement(&'a TplElement<'a>), TryStmt(&'a TryStmt<'a>), TsArrayType(&'a TsArrayType<'a>), TsAsExpr(&'a TsAsExpr<'a>), TsCallSignatureDecl(&'a TsCallSignatureDecl<'a>), TsConditionalType(&'a TsConditionalType<'a>), TsConstAssertion(&'a TsConstAssertion<'a>), TsConstructSignatureDecl(&'a TsConstructSignatureDecl<'a>), TsConstructorType(&'a TsConstructorType<'a>), TsEnumDecl(&'a TsEnumDecl<'a>), TsEnumMember(&'a TsEnumMember<'a>), TsExportAssignment(&'a TsExportAssignment<'a>), TsExprWithTypeArgs(&'a TsExprWithTypeArgs<'a>), TsExternalModuleRef(&'a TsExternalModuleRef<'a>), TsFnType(&'a TsFnType<'a>), TsGetterSignature(&'a TsGetterSignature<'a>), TsImportEqualsDecl(&'a TsImportEqualsDecl<'a>), TsImportType(&'a TsImportType<'a>), TsIndexSignature(&'a TsIndexSignature<'a>), TsIndexedAccessType(&'a TsIndexedAccessType<'a>), TsInferType(&'a TsInferType<'a>), TsInterfaceBody(&'a TsInterfaceBody<'a>), TsInterfaceDecl(&'a TsInterfaceDecl<'a>), TsIntersectionType(&'a TsIntersectionType<'a>), TsKeywordType(&'a TsKeywordType<'a>), TsLitType(&'a TsLitType<'a>), TsMappedType(&'a TsMappedType<'a>), TsMethodSignature(&'a TsMethodSignature<'a>), TsModuleBlock(&'a TsModuleBlock<'a>), TsModuleDecl(&'a TsModuleDecl<'a>), TsNamespaceDecl(&'a TsNamespaceDecl<'a>), TsNamespaceExportDecl(&'a TsNamespaceExportDecl<'a>), TsNonNullExpr(&'a TsNonNullExpr<'a>), TsOptionalType(&'a TsOptionalType<'a>), TsParamProp(&'a TsParamProp<'a>), TsParenthesizedType(&'a TsParenthesizedType<'a>), TsPropertySignature(&'a TsPropertySignature<'a>), TsQualifiedName(&'a TsQualifiedName<'a>), TsRestType(&'a TsRestType<'a>), TsSetterSignature(&'a TsSetterSignature<'a>), TsThisType(&'a TsThisType<'a>), TsTplLitType(&'a TsTplLitType<'a>), TsTupleElement(&'a TsTupleElement<'a>), TsTupleType(&'a TsTupleType<'a>), TsTypeAliasDecl(&'a TsTypeAliasDecl<'a>), TsTypeAnn(&'a TsTypeAnn<'a>), TsTypeAssertion(&'a TsTypeAssertion<'a>), TsTypeLit(&'a TsTypeLit<'a>), TsTypeOperator(&'a TsTypeOperator<'a>), TsTypeParam(&'a TsTypeParam<'a>), TsTypeParamDecl(&'a TsTypeParamDecl<'a>), TsTypeParamInstantiation(&'a TsTypeParamInstantiation<'a>), TsTypePredicate(&'a TsTypePredicate<'a>), TsTypeQuery(&'a TsTypeQuery<'a>), TsTypeRef(&'a TsTypeRef<'a>), TsUnionType(&'a TsUnionType<'a>), UnaryExpr(&'a UnaryExpr<'a>), UpdateExpr(&'a UpdateExpr<'a>), VarDecl(&'a VarDecl<'a>), VarDeclarator(&'a VarDeclarator<'a>), WhileStmt(&'a WhileStmt<'a>), WithStmt(&'a WithStmt<'a>), YieldExpr(&'a YieldExpr<'a>),
Variants
ArrayLit(&'a ArrayLit<'a>)
ArrayPat(&'a ArrayPat<'a>)
ArrowExpr(&'a ArrowExpr<'a>)
AssignExpr(&'a AssignExpr<'a>)
AssignPat(&'a AssignPat<'a>)
AssignPatProp(&'a AssignPatProp<'a>)
AssignProp(&'a AssignProp<'a>)
AwaitExpr(&'a AwaitExpr<'a>)
BigInt(&'a BigInt<'a>)
BinExpr(&'a BinExpr<'a>)
BindingIdent(&'a BindingIdent<'a>)
BlockStmt(&'a BlockStmt<'a>)
Bool(&'a Bool<'a>)
BreakStmt(&'a BreakStmt<'a>)
CallExpr(&'a CallExpr<'a>)
CatchClause(&'a CatchClause<'a>)
Class(&'a Class<'a>)
ClassDecl(&'a ClassDecl<'a>)
ClassExpr(&'a ClassExpr<'a>)
ClassMethod(&'a ClassMethod<'a>)
ClassProp(&'a ClassProp<'a>)
ComputedPropName(&'a ComputedPropName<'a>)
CondExpr(&'a CondExpr<'a>)
Constructor(&'a Constructor<'a>)
ContinueStmt(&'a ContinueStmt<'a>)
DebuggerStmt(&'a DebuggerStmt<'a>)
Decorator(&'a Decorator<'a>)
DoWhileStmt(&'a DoWhileStmt<'a>)
EmptyStmt(&'a EmptyStmt<'a>)
ExportAll(&'a ExportAll<'a>)
ExportDecl(&'a ExportDecl<'a>)
ExportDefaultDecl(&'a ExportDefaultDecl<'a>)
ExportDefaultExpr(&'a ExportDefaultExpr<'a>)
ExportDefaultSpecifier(&'a ExportDefaultSpecifier<'a>)
ExportNamedSpecifier(&'a ExportNamedSpecifier<'a>)
ExportNamespaceSpecifier(&'a ExportNamespaceSpecifier<'a>)
ExprOrSpread(&'a ExprOrSpread<'a>)
ExprStmt(&'a ExprStmt<'a>)
FnDecl(&'a FnDecl<'a>)
FnExpr(&'a FnExpr<'a>)
ForInStmt(&'a ForInStmt<'a>)
ForOfStmt(&'a ForOfStmt<'a>)
ForStmt(&'a ForStmt<'a>)
Function(&'a Function<'a>)
GetterProp(&'a GetterProp<'a>)
Ident(&'a Ident<'a>)
IfStmt(&'a IfStmt<'a>)
ImportDecl(&'a ImportDecl<'a>)
ImportDefaultSpecifier(&'a ImportDefaultSpecifier<'a>)
ImportNamedSpecifier(&'a ImportNamedSpecifier<'a>)
ImportStarAsSpecifier(&'a ImportStarAsSpecifier<'a>)
Invalid(&'a Invalid<'a>)
JSXAttr(&'a JSXAttr<'a>)
JSXClosingElement(&'a JSXClosingElement<'a>)
JSXClosingFragment(&'a JSXClosingFragment<'a>)
JSXElement(&'a JSXElement<'a>)
JSXEmptyExpr(&'a JSXEmptyExpr<'a>)
JSXExprContainer(&'a JSXExprContainer<'a>)
JSXFragment(&'a JSXFragment<'a>)
JSXMemberExpr(&'a JSXMemberExpr<'a>)
JSXNamespacedName(&'a JSXNamespacedName<'a>)
JSXOpeningElement(&'a JSXOpeningElement<'a>)
JSXOpeningFragment(&'a JSXOpeningFragment<'a>)
JSXSpreadChild(&'a JSXSpreadChild<'a>)
JSXText(&'a JSXText<'a>)
KeyValuePatProp(&'a KeyValuePatProp<'a>)
KeyValueProp(&'a KeyValueProp<'a>)
LabeledStmt(&'a LabeledStmt<'a>)
MemberExpr(&'a MemberExpr<'a>)
MetaPropExpr(&'a MetaPropExpr<'a>)
MethodProp(&'a MethodProp<'a>)
Module(&'a Module<'a>)
NamedExport(&'a NamedExport<'a>)
NewExpr(&'a NewExpr<'a>)
Null(&'a Null<'a>)
Number(&'a Number<'a>)
ObjectLit(&'a ObjectLit<'a>)
ObjectPat(&'a ObjectPat<'a>)
OptChainExpr(&'a OptChainExpr<'a>)
Param(&'a Param<'a>)
ParenExpr(&'a ParenExpr<'a>)
PrivateMethod(&'a PrivateMethod<'a>)
PrivateName(&'a PrivateName<'a>)
PrivateProp(&'a PrivateProp<'a>)
Regex(&'a Regex<'a>)
RestPat(&'a RestPat<'a>)
ReturnStmt(&'a ReturnStmt<'a>)
Script(&'a Script<'a>)
SeqExpr(&'a SeqExpr<'a>)
SetterProp(&'a SetterProp<'a>)
SpreadElement(&'a SpreadElement<'a>)
Str(&'a Str<'a>)
Super(&'a Super<'a>)
SwitchCase(&'a SwitchCase<'a>)
SwitchStmt(&'a SwitchStmt<'a>)
TaggedTpl(&'a TaggedTpl<'a>)
ThisExpr(&'a ThisExpr<'a>)
ThrowStmt(&'a ThrowStmt<'a>)
Tpl(&'a Tpl<'a>)
TplElement(&'a TplElement<'a>)
TryStmt(&'a TryStmt<'a>)
TsArrayType(&'a TsArrayType<'a>)
TsAsExpr(&'a TsAsExpr<'a>)
TsCallSignatureDecl(&'a TsCallSignatureDecl<'a>)
TsConditionalType(&'a TsConditionalType<'a>)
TsConstAssertion(&'a TsConstAssertion<'a>)
TsConstructSignatureDecl(&'a TsConstructSignatureDecl<'a>)
TsConstructorType(&'a TsConstructorType<'a>)
TsEnumDecl(&'a TsEnumDecl<'a>)
TsEnumMember(&'a TsEnumMember<'a>)
TsExportAssignment(&'a TsExportAssignment<'a>)
TsExprWithTypeArgs(&'a TsExprWithTypeArgs<'a>)
TsExternalModuleRef(&'a TsExternalModuleRef<'a>)
TsFnType(&'a TsFnType<'a>)
TsGetterSignature(&'a TsGetterSignature<'a>)
TsImportEqualsDecl(&'a TsImportEqualsDecl<'a>)
TsImportType(&'a TsImportType<'a>)
TsIndexSignature(&'a TsIndexSignature<'a>)
TsIndexedAccessType(&'a TsIndexedAccessType<'a>)
TsInferType(&'a TsInferType<'a>)
TsInterfaceBody(&'a TsInterfaceBody<'a>)
TsInterfaceDecl(&'a TsInterfaceDecl<'a>)
TsIntersectionType(&'a TsIntersectionType<'a>)
TsKeywordType(&'a TsKeywordType<'a>)
TsLitType(&'a TsLitType<'a>)
TsMappedType(&'a TsMappedType<'a>)
TsMethodSignature(&'a TsMethodSignature<'a>)
TsModuleBlock(&'a TsModuleBlock<'a>)
TsModuleDecl(&'a TsModuleDecl<'a>)
TsNamespaceDecl(&'a TsNamespaceDecl<'a>)
TsNamespaceExportDecl(&'a TsNamespaceExportDecl<'a>)
TsNonNullExpr(&'a TsNonNullExpr<'a>)
TsOptionalType(&'a TsOptionalType<'a>)
TsParamProp(&'a TsParamProp<'a>)
TsParenthesizedType(&'a TsParenthesizedType<'a>)
TsPropertySignature(&'a TsPropertySignature<'a>)
TsQualifiedName(&'a TsQualifiedName<'a>)
TsRestType(&'a TsRestType<'a>)
TsSetterSignature(&'a TsSetterSignature<'a>)
TsThisType(&'a TsThisType<'a>)
TsTplLitType(&'a TsTplLitType<'a>)
TsTupleElement(&'a TsTupleElement<'a>)
TsTupleType(&'a TsTupleType<'a>)
TsTypeAliasDecl(&'a TsTypeAliasDecl<'a>)
TsTypeAnn(&'a TsTypeAnn<'a>)
TsTypeAssertion(&'a TsTypeAssertion<'a>)
TsTypeLit(&'a TsTypeLit<'a>)
TsTypeOperator(&'a TsTypeOperator<'a>)
TsTypeParam(&'a TsTypeParam<'a>)
TsTypeParamDecl(&'a TsTypeParamDecl<'a>)
TsTypeParamInstantiation(&'a TsTypeParamInstantiation<'a>)
TsTypePredicate(&'a TsTypePredicate<'a>)
TsTypeQuery(&'a TsTypeQuery<'a>)
TsTypeRef(&'a TsTypeRef<'a>)
TsUnionType(&'a TsUnionType<'a>)
UnaryExpr(&'a UnaryExpr<'a>)
UpdateExpr(&'a UpdateExpr<'a>)
VarDecl(&'a VarDecl<'a>)
VarDeclarator(&'a VarDeclarator<'a>)
WhileStmt(&'a WhileStmt<'a>)
WithStmt(&'a WithStmt<'a>)
YieldExpr(&'a YieldExpr<'a>)
Implementations
Trait Implementations
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
fn ancestors(&self) -> AncestorIterator<'a>ⓘNotable traits for AncestorIterator<'a>
impl<'a> Iterator for AncestorIterator<'a> type Item = Node<'a>;
Gets the previous siblings in the order they appear in the file.
Gets the next siblings in the order they appear in the file.
fn leading_comments(&self) -> CommentsIterator<'a>ⓘNotable traits for CommentsIterator<'a>
impl<'a> Iterator for CommentsIterator<'a> type Item = &'a Comment;
fn trailing_comments(&self) -> CommentsIterator<'a>ⓘNotable traits for CommentsIterator<'a>
impl<'a> Iterator for CommentsIterator<'a> type Item = &'a Comment;
Gets the root node if the view was created from a Module; otherwise panics.
Gets the root node if the view was created from a Script; otherwise panics.
Gets the previous tokens in the order they appear in the file.
Gets the next tokens in the order they appear in the file.
Auto Trait Implementations
impl<'a> !RefUnwindSafe for Node<'a>
impl<'a> !UnwindSafe for Node<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more