pub enum AnyNode<'tree> {
Show 184 variants
Declaration(Declaration<'tree>),
Expression(Expression<'tree>),
Pattern(Pattern<'tree>),
PrimaryExpression(PrimaryExpression<'tree>),
PrimaryType(PrimaryType<'tree>),
Statement(Statement<'tree>),
Type(Type<'tree>),
AbstractClassDeclaration(AbstractClassDeclaration<'tree>),
AbstractMethodSignature(AbstractMethodSignature<'tree>),
AccessibilityModifier(AccessibilityModifier<'tree>),
AddingTypeAnnotation(AddingTypeAnnotation<'tree>),
AmbientDeclaration(AmbientDeclaration<'tree>),
Arguments(Arguments<'tree>),
Array(Array<'tree>),
ArrayPattern(ArrayPattern<'tree>),
ArrayType(ArrayType<'tree>),
ArrowFunction(ArrowFunction<'tree>),
AsExpression(AsExpression<'tree>),
Asserts(Asserts<'tree>),
AssertsAnnotation(AssertsAnnotation<'tree>),
AssignmentExpression(AssignmentExpression<'tree>),
AssignmentPattern(AssignmentPattern<'tree>),
AugmentedAssignmentExpression(AugmentedAssignmentExpression<'tree>),
AwaitExpression(AwaitExpression<'tree>),
BinaryExpression(BinaryExpression<'tree>),
BreakStatement(BreakStatement<'tree>),
CallExpression(CallExpression<'tree>),
CallSignature(CallSignature<'tree>),
CatchClause(CatchClause<'tree>),
Class(Class<'tree>),
ClassBody(ClassBody<'tree>),
ClassDeclaration(ClassDeclaration<'tree>),
ClassHeritage(ClassHeritage<'tree>),
ClassStaticBlock(ClassStaticBlock<'tree>),
ComputedPropertyName(ComputedPropertyName<'tree>),
ConditionalType(ConditionalType<'tree>),
Constraint(Constraint<'tree>),
ConstructSignature(ConstructSignature<'tree>),
ConstructorType(ConstructorType<'tree>),
ContinueStatement(ContinueStatement<'tree>),
DebuggerStatement(DebuggerStatement<'tree>),
Decorator(Decorator<'tree>),
DefaultType(DefaultType<'tree>),
DoStatement(DoStatement<'tree>),
ElseClause(ElseClause<'tree>),
EmptyStatement(EmptyStatement<'tree>),
EnumAssignment(EnumAssignment<'tree>),
EnumBody(EnumBody<'tree>),
EnumDeclaration(EnumDeclaration<'tree>),
ExistentialType(ExistentialType<'tree>),
ExportClause(ExportClause<'tree>),
ExportSpecifier(ExportSpecifier<'tree>),
ExportStatement(ExportStatement<'tree>),
ExpressionStatement(ExpressionStatement<'tree>),
ExtendsClause(ExtendsClause<'tree>),
ExtendsTypeClause(ExtendsTypeClause<'tree>),
FinallyClause(FinallyClause<'tree>),
FlowMaybeType(FlowMaybeType<'tree>),
ForInStatement(ForInStatement<'tree>),
ForStatement(ForStatement<'tree>),
FormalParameters(FormalParameters<'tree>),
FunctionDeclaration(FunctionDeclaration<'tree>),
FunctionExpression(FunctionExpression<'tree>),
FunctionSignature(FunctionSignature<'tree>),
FunctionType(FunctionType<'tree>),
GeneratorFunction(GeneratorFunction<'tree>),
GeneratorFunctionDeclaration(GeneratorFunctionDeclaration<'tree>),
GenericType(GenericType<'tree>),
Identifier(Identifier<'tree>),
IfStatement(IfStatement<'tree>),
ImplementsClause(ImplementsClause<'tree>),
Import(Import<'tree>),
ImportAlias(ImportAlias<'tree>),
ImportAttribute(ImportAttribute<'tree>),
ImportClause(ImportClause<'tree>),
ImportRequireClause(ImportRequireClause<'tree>),
ImportSpecifier(ImportSpecifier<'tree>),
ImportStatement(ImportStatement<'tree>),
IndexSignature(IndexSignature<'tree>),
IndexTypeQuery(IndexTypeQuery<'tree>),
InferType(InferType<'tree>),
InstantiationExpression(InstantiationExpression<'tree>),
InterfaceBody(InterfaceBody<'tree>),
InterfaceDeclaration(InterfaceDeclaration<'tree>),
InternalModule(InternalModule<'tree>),
IntersectionType(IntersectionType<'tree>),
LabeledStatement(LabeledStatement<'tree>),
LexicalDeclaration(LexicalDeclaration<'tree>),
LiteralType(LiteralType<'tree>),
LookupType(LookupType<'tree>),
MappedTypeClause(MappedTypeClause<'tree>),
MemberExpression(MemberExpression<'tree>),
MetaProperty(MetaProperty<'tree>),
MethodDefinition(MethodDefinition<'tree>),
MethodSignature(MethodSignature<'tree>),
Module(Module<'tree>),
NamedImports(NamedImports<'tree>),
NamespaceExport(NamespaceExport<'tree>),
NamespaceImport(NamespaceImport<'tree>),
NestedIdentifier(NestedIdentifier<'tree>),
NestedTypeIdentifier(NestedTypeIdentifier<'tree>),
NewExpression(NewExpression<'tree>),
NonNullExpression(NonNullExpression<'tree>),
Object(Object<'tree>),
ObjectAssignmentPattern(ObjectAssignmentPattern<'tree>),
ObjectPattern(ObjectPattern<'tree>),
ObjectType(ObjectType<'tree>),
OmittingTypeAnnotation(OmittingTypeAnnotation<'tree>),
OptingTypeAnnotation(OptingTypeAnnotation<'tree>),
OptionalChain(OptionalChain<'tree>),
OptionalParameter(OptionalParameter<'tree>),
OptionalType(OptionalType<'tree>),
OverrideModifier(OverrideModifier<'tree>),
Pair(Pair<'tree>),
PairPattern(PairPattern<'tree>),
ParenthesizedExpression(ParenthesizedExpression<'tree>),
ParenthesizedType(ParenthesizedType<'tree>),
PredefinedType(PredefinedType<'tree>),
Program(Program<'tree>),
PropertySignature(PropertySignature<'tree>),
PublicFieldDefinition(PublicFieldDefinition<'tree>),
ReadonlyType(ReadonlyType<'tree>),
Regex(Regex<'tree>),
RequiredParameter(RequiredParameter<'tree>),
RestPattern(RestPattern<'tree>),
RestType(RestType<'tree>),
ReturnStatement(ReturnStatement<'tree>),
SatisfiesExpression(SatisfiesExpression<'tree>),
SequenceExpression(SequenceExpression<'tree>),
SpreadElement(SpreadElement<'tree>),
StatementBlock(StatementBlock<'tree>),
String(String<'tree>),
SubscriptExpression(SubscriptExpression<'tree>),
SwitchBody(SwitchBody<'tree>),
SwitchCase(SwitchCase<'tree>),
SwitchDefault(SwitchDefault<'tree>),
SwitchStatement(SwitchStatement<'tree>),
TemplateLiteralType(TemplateLiteralType<'tree>),
TemplateString(TemplateString<'tree>),
TemplateSubstitution(TemplateSubstitution<'tree>),
TemplateType(TemplateType<'tree>),
TernaryExpression(TernaryExpression<'tree>),
ThrowStatement(ThrowStatement<'tree>),
TryStatement(TryStatement<'tree>),
TupleType(TupleType<'tree>),
TypeAliasDeclaration(TypeAliasDeclaration<'tree>),
TypeAnnotation(TypeAnnotation<'tree>),
TypeArguments(TypeArguments<'tree>),
TypeAssertion(TypeAssertion<'tree>),
TypeParameter(TypeParameter<'tree>),
TypeParameters(TypeParameters<'tree>),
TypePredicate(TypePredicate<'tree>),
TypePredicateAnnotation(TypePredicateAnnotation<'tree>),
TypeQuery(TypeQuery<'tree>),
UnaryExpression(UnaryExpression<'tree>),
UnionType(UnionType<'tree>),
UpdateExpression(UpdateExpression<'tree>),
VariableDeclaration(VariableDeclaration<'tree>),
VariableDeclarator(VariableDeclarator<'tree>),
WhileStatement(WhileStatement<'tree>),
WithStatement(WithStatement<'tree>),
YieldExpression(YieldExpression<'tree>),
Comment(Comment<'tree>),
EscapeSequence(EscapeSequence<'tree>),
False(False<'tree>),
HashBangLine(HashBangLine<'tree>),
HtmlComment(HtmlComment<'tree>),
Null(Null<'tree>),
Number(Number<'tree>),
PrivatePropertyIdentifier(PrivatePropertyIdentifier<'tree>),
PropertyIdentifier(PropertyIdentifier<'tree>),
RegexFlags(RegexFlags<'tree>),
RegexPattern(RegexPattern<'tree>),
ShorthandPropertyIdentifier(ShorthandPropertyIdentifier<'tree>),
ShorthandPropertyIdentifierPattern(ShorthandPropertyIdentifierPattern<'tree>),
StatementIdentifier(StatementIdentifier<'tree>),
StringFragment(StringFragment<'tree>),
Super(Super<'tree>),
This(This<'tree>),
ThisType(ThisType<'tree>),
True(True<'tree>),
TypeIdentifier(TypeIdentifier<'tree>),
Undefined(Undefined<'tree>),
Unknown(Node<'tree>),
}Variants§
Declaration(Declaration<'tree>)
Expression(Expression<'tree>)
Pattern(Pattern<'tree>)
PrimaryExpression(PrimaryExpression<'tree>)
PrimaryType(PrimaryType<'tree>)
Statement(Statement<'tree>)
Type(Type<'tree>)
AbstractClassDeclaration(AbstractClassDeclaration<'tree>)
AbstractMethodSignature(AbstractMethodSignature<'tree>)
AccessibilityModifier(AccessibilityModifier<'tree>)
AddingTypeAnnotation(AddingTypeAnnotation<'tree>)
AmbientDeclaration(AmbientDeclaration<'tree>)
Arguments(Arguments<'tree>)
Array(Array<'tree>)
ArrayPattern(ArrayPattern<'tree>)
ArrayType(ArrayType<'tree>)
ArrowFunction(ArrowFunction<'tree>)
AsExpression(AsExpression<'tree>)
Asserts(Asserts<'tree>)
AssertsAnnotation(AssertsAnnotation<'tree>)
AssignmentExpression(AssignmentExpression<'tree>)
AssignmentPattern(AssignmentPattern<'tree>)
AugmentedAssignmentExpression(AugmentedAssignmentExpression<'tree>)
AwaitExpression(AwaitExpression<'tree>)
BinaryExpression(BinaryExpression<'tree>)
BreakStatement(BreakStatement<'tree>)
CallExpression(CallExpression<'tree>)
CallSignature(CallSignature<'tree>)
CatchClause(CatchClause<'tree>)
Class(Class<'tree>)
ClassBody(ClassBody<'tree>)
ClassDeclaration(ClassDeclaration<'tree>)
ClassHeritage(ClassHeritage<'tree>)
ClassStaticBlock(ClassStaticBlock<'tree>)
ComputedPropertyName(ComputedPropertyName<'tree>)
ConditionalType(ConditionalType<'tree>)
Constraint(Constraint<'tree>)
ConstructSignature(ConstructSignature<'tree>)
ConstructorType(ConstructorType<'tree>)
ContinueStatement(ContinueStatement<'tree>)
DebuggerStatement(DebuggerStatement<'tree>)
Decorator(Decorator<'tree>)
DefaultType(DefaultType<'tree>)
DoStatement(DoStatement<'tree>)
ElseClause(ElseClause<'tree>)
EmptyStatement(EmptyStatement<'tree>)
EnumAssignment(EnumAssignment<'tree>)
EnumBody(EnumBody<'tree>)
EnumDeclaration(EnumDeclaration<'tree>)
ExistentialType(ExistentialType<'tree>)
ExportClause(ExportClause<'tree>)
ExportSpecifier(ExportSpecifier<'tree>)
ExportStatement(ExportStatement<'tree>)
ExpressionStatement(ExpressionStatement<'tree>)
ExtendsClause(ExtendsClause<'tree>)
ExtendsTypeClause(ExtendsTypeClause<'tree>)
FinallyClause(FinallyClause<'tree>)
FlowMaybeType(FlowMaybeType<'tree>)
ForInStatement(ForInStatement<'tree>)
ForStatement(ForStatement<'tree>)
FormalParameters(FormalParameters<'tree>)
FunctionDeclaration(FunctionDeclaration<'tree>)
FunctionExpression(FunctionExpression<'tree>)
FunctionSignature(FunctionSignature<'tree>)
FunctionType(FunctionType<'tree>)
GeneratorFunction(GeneratorFunction<'tree>)
GeneratorFunctionDeclaration(GeneratorFunctionDeclaration<'tree>)
GenericType(GenericType<'tree>)
Identifier(Identifier<'tree>)
IfStatement(IfStatement<'tree>)
ImplementsClause(ImplementsClause<'tree>)
Import(Import<'tree>)
ImportAlias(ImportAlias<'tree>)
ImportAttribute(ImportAttribute<'tree>)
ImportClause(ImportClause<'tree>)
ImportRequireClause(ImportRequireClause<'tree>)
ImportSpecifier(ImportSpecifier<'tree>)
ImportStatement(ImportStatement<'tree>)
IndexSignature(IndexSignature<'tree>)
IndexTypeQuery(IndexTypeQuery<'tree>)
InferType(InferType<'tree>)
InstantiationExpression(InstantiationExpression<'tree>)
InterfaceBody(InterfaceBody<'tree>)
InterfaceDeclaration(InterfaceDeclaration<'tree>)
InternalModule(InternalModule<'tree>)
IntersectionType(IntersectionType<'tree>)
LabeledStatement(LabeledStatement<'tree>)
LexicalDeclaration(LexicalDeclaration<'tree>)
LiteralType(LiteralType<'tree>)
LookupType(LookupType<'tree>)
MappedTypeClause(MappedTypeClause<'tree>)
MemberExpression(MemberExpression<'tree>)
MetaProperty(MetaProperty<'tree>)
MethodDefinition(MethodDefinition<'tree>)
MethodSignature(MethodSignature<'tree>)
Module(Module<'tree>)
NamedImports(NamedImports<'tree>)
NamespaceExport(NamespaceExport<'tree>)
NamespaceImport(NamespaceImport<'tree>)
NestedIdentifier(NestedIdentifier<'tree>)
NestedTypeIdentifier(NestedTypeIdentifier<'tree>)
NewExpression(NewExpression<'tree>)
NonNullExpression(NonNullExpression<'tree>)
Object(Object<'tree>)
ObjectAssignmentPattern(ObjectAssignmentPattern<'tree>)
ObjectPattern(ObjectPattern<'tree>)
ObjectType(ObjectType<'tree>)
OmittingTypeAnnotation(OmittingTypeAnnotation<'tree>)
OptingTypeAnnotation(OptingTypeAnnotation<'tree>)
OptionalChain(OptionalChain<'tree>)
OptionalParameter(OptionalParameter<'tree>)
OptionalType(OptionalType<'tree>)
OverrideModifier(OverrideModifier<'tree>)
Pair(Pair<'tree>)
PairPattern(PairPattern<'tree>)
ParenthesizedExpression(ParenthesizedExpression<'tree>)
ParenthesizedType(ParenthesizedType<'tree>)
PredefinedType(PredefinedType<'tree>)
Program(Program<'tree>)
PropertySignature(PropertySignature<'tree>)
PublicFieldDefinition(PublicFieldDefinition<'tree>)
ReadonlyType(ReadonlyType<'tree>)
Regex(Regex<'tree>)
RequiredParameter(RequiredParameter<'tree>)
RestPattern(RestPattern<'tree>)
RestType(RestType<'tree>)
ReturnStatement(ReturnStatement<'tree>)
SatisfiesExpression(SatisfiesExpression<'tree>)
SequenceExpression(SequenceExpression<'tree>)
SpreadElement(SpreadElement<'tree>)
StatementBlock(StatementBlock<'tree>)
String(String<'tree>)
SubscriptExpression(SubscriptExpression<'tree>)
SwitchBody(SwitchBody<'tree>)
SwitchCase(SwitchCase<'tree>)
SwitchDefault(SwitchDefault<'tree>)
SwitchStatement(SwitchStatement<'tree>)
TemplateLiteralType(TemplateLiteralType<'tree>)
TemplateString(TemplateString<'tree>)
TemplateSubstitution(TemplateSubstitution<'tree>)
TemplateType(TemplateType<'tree>)
TernaryExpression(TernaryExpression<'tree>)
ThrowStatement(ThrowStatement<'tree>)
TryStatement(TryStatement<'tree>)
TupleType(TupleType<'tree>)
TypeAliasDeclaration(TypeAliasDeclaration<'tree>)
TypeAnnotation(TypeAnnotation<'tree>)
TypeArguments(TypeArguments<'tree>)
TypeAssertion(TypeAssertion<'tree>)
TypeParameter(TypeParameter<'tree>)
TypeParameters(TypeParameters<'tree>)
TypePredicate(TypePredicate<'tree>)
TypePredicateAnnotation(TypePredicateAnnotation<'tree>)
TypeQuery(TypeQuery<'tree>)
UnaryExpression(UnaryExpression<'tree>)
UnionType(UnionType<'tree>)
UpdateExpression(UpdateExpression<'tree>)
VariableDeclaration(VariableDeclaration<'tree>)
VariableDeclarator(VariableDeclarator<'tree>)
WhileStatement(WhileStatement<'tree>)
WithStatement(WithStatement<'tree>)
YieldExpression(YieldExpression<'tree>)
Comment(Comment<'tree>)
EscapeSequence(EscapeSequence<'tree>)
False(False<'tree>)
HashBangLine(HashBangLine<'tree>)
HtmlComment(HtmlComment<'tree>)
Null(Null<'tree>)
Number(Number<'tree>)
PrivatePropertyIdentifier(PrivatePropertyIdentifier<'tree>)
PropertyIdentifier(PropertyIdentifier<'tree>)
RegexFlags(RegexFlags<'tree>)
RegexPattern(RegexPattern<'tree>)
ShorthandPropertyIdentifier(ShorthandPropertyIdentifier<'tree>)
ShorthandPropertyIdentifierPattern(ShorthandPropertyIdentifierPattern<'tree>)
StatementIdentifier(StatementIdentifier<'tree>)
StringFragment(StringFragment<'tree>)
Super(Super<'tree>)
This(This<'tree>)
ThisType(ThisType<'tree>)
True(True<'tree>)
TypeIdentifier(TypeIdentifier<'tree>)
Undefined(Undefined<'tree>)
Unknown(Node<'tree>)
Implementations§
Trait Implementations§
impl<'tree> Eq for AnyNode<'tree>
impl<'tree> StructuralPartialEq for AnyNode<'tree>
Auto Trait Implementations§
impl<'tree> Freeze for AnyNode<'tree>
impl<'tree> RefUnwindSafe for AnyNode<'tree>
impl<'tree> Send for AnyNode<'tree>
impl<'tree> Sync for AnyNode<'tree>
impl<'tree> Unpin for AnyNode<'tree>
impl<'tree> UnsafeUnpin for AnyNode<'tree>
impl<'tree> UnwindSafe for AnyNode<'tree>
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