pub enum AnyNode<'tree> {
Show 162 variants
Expression(Expression<'tree>),
Literal(Literal<'tree>),
PrimaryExpression(PrimaryExpression<'tree>),
Statement(Statement<'tree>),
Type(Type<'tree>),
AbstractModifier(AbstractModifier<'tree>),
AnonymousClass(AnonymousClass<'tree>),
AnonymousFunction(AnonymousFunction<'tree>),
AnonymousFunctionUseClause(AnonymousFunctionUseClause<'tree>),
Argument(Argument<'tree>),
Arguments(Arguments<'tree>),
ArrayCreationExpression(ArrayCreationExpression<'tree>),
ArrayElementInitializer(ArrayElementInitializer<'tree>),
ArrowFunction(ArrowFunction<'tree>),
AssignmentExpression(AssignmentExpression<'tree>),
Attribute(Attribute<'tree>),
AttributeGroup(AttributeGroup<'tree>),
AttributeList(AttributeList<'tree>),
AugmentedAssignmentExpression(AugmentedAssignmentExpression<'tree>),
BaseClause(BaseClause<'tree>),
BinaryExpression(BinaryExpression<'tree>),
Boolean(Boolean<'tree>),
BreakStatement(BreakStatement<'tree>),
ByRef(ByRef<'tree>),
CaseStatement(CaseStatement<'tree>),
CastExpression(CastExpression<'tree>),
CastType(CastType<'tree>),
CatchClause(CatchClause<'tree>),
ClassConstantAccessExpression(ClassConstantAccessExpression<'tree>),
ClassDeclaration(ClassDeclaration<'tree>),
ClassInterfaceClause(ClassInterfaceClause<'tree>),
CloneExpression(CloneExpression<'tree>),
ColonBlock(ColonBlock<'tree>),
CompoundStatement(CompoundStatement<'tree>),
ConditionalExpression(ConditionalExpression<'tree>),
ConstDeclaration(ConstDeclaration<'tree>),
ConstElement(ConstElement<'tree>),
ContinueStatement(ContinueStatement<'tree>),
DeclarationList(DeclarationList<'tree>),
DeclareDirective(DeclareDirective<'tree>),
DeclareStatement(DeclareStatement<'tree>),
DefaultStatement(DefaultStatement<'tree>),
DisjunctiveNormalFormType(DisjunctiveNormalFormType<'tree>),
DoStatement(DoStatement<'tree>),
DynamicVariableName(DynamicVariableName<'tree>),
EchoStatement(EchoStatement<'tree>),
ElseClause(ElseClause<'tree>),
ElseIfClause(ElseIfClause<'tree>),
EmptyStatement(EmptyStatement<'tree>),
EncapsedString(EncapsedString<'tree>),
EnumCase(EnumCase<'tree>),
EnumDeclaration(EnumDeclaration<'tree>),
EnumDeclarationList(EnumDeclarationList<'tree>),
ErrorSuppressionExpression(ErrorSuppressionExpression<'tree>),
ExitStatement(ExitStatement<'tree>),
ExpressionStatement(ExpressionStatement<'tree>),
FinalModifier(FinalModifier<'tree>),
FinallyClause(FinallyClause<'tree>),
ForStatement(ForStatement<'tree>),
ForeachStatement(ForeachStatement<'tree>),
FormalParameters(FormalParameters<'tree>),
FunctionCallExpression(FunctionCallExpression<'tree>),
FunctionDefinition(FunctionDefinition<'tree>),
FunctionStaticDeclaration(FunctionStaticDeclaration<'tree>),
GlobalDeclaration(GlobalDeclaration<'tree>),
GotoStatement(GotoStatement<'tree>),
Heredoc(Heredoc<'tree>),
HeredocBody(HeredocBody<'tree>),
IfStatement(IfStatement<'tree>),
IncludeExpression(IncludeExpression<'tree>),
IncludeOnceExpression(IncludeOnceExpression<'tree>),
InterfaceDeclaration(InterfaceDeclaration<'tree>),
IntersectionType(IntersectionType<'tree>),
ListLiteral(ListLiteral<'tree>),
MatchBlock(MatchBlock<'tree>),
MatchConditionList(MatchConditionList<'tree>),
MatchConditionalExpression(MatchConditionalExpression<'tree>),
MatchDefaultExpression(MatchDefaultExpression<'tree>),
MatchExpression(MatchExpression<'tree>),
MemberAccessExpression(MemberAccessExpression<'tree>),
MemberCallExpression(MemberCallExpression<'tree>),
MethodDeclaration(MethodDeclaration<'tree>),
Name(Name<'tree>),
NamedLabelStatement(NamedLabelStatement<'tree>),
NamedType(NamedType<'tree>),
NamespaceDefinition(NamespaceDefinition<'tree>),
NamespaceName(NamespaceName<'tree>),
NamespaceUseClause(NamespaceUseClause<'tree>),
NamespaceUseDeclaration(NamespaceUseDeclaration<'tree>),
NamespaceUseGroup(NamespaceUseGroup<'tree>),
Nowdoc(Nowdoc<'tree>),
NowdocBody(NowdocBody<'tree>),
Null(Null<'tree>),
NullsafeMemberAccessExpression(NullsafeMemberAccessExpression<'tree>),
NullsafeMemberCallExpression(NullsafeMemberCallExpression<'tree>),
ObjectCreationExpression(ObjectCreationExpression<'tree>),
OptionalType(OptionalType<'tree>),
Pair(Pair<'tree>),
ParenthesizedExpression(ParenthesizedExpression<'tree>),
PrimitiveType(PrimitiveType<'tree>),
PrintIntrinsic(PrintIntrinsic<'tree>),
Program(Program<'tree>),
PropertyDeclaration(PropertyDeclaration<'tree>),
PropertyElement(PropertyElement<'tree>),
PropertyHook(PropertyHook<'tree>),
PropertyHookList(PropertyHookList<'tree>),
PropertyPromotionParameter(PropertyPromotionParameter<'tree>),
QualifiedName(QualifiedName<'tree>),
ReadonlyModifier(ReadonlyModifier<'tree>),
ReferenceAssignmentExpression(ReferenceAssignmentExpression<'tree>),
ReferenceModifier(ReferenceModifier<'tree>),
RelativeName(RelativeName<'tree>),
RelativeScope(RelativeScope<'tree>),
RequireExpression(RequireExpression<'tree>),
RequireOnceExpression(RequireOnceExpression<'tree>),
ReturnStatement(ReturnStatement<'tree>),
ScopedCallExpression(ScopedCallExpression<'tree>),
ScopedPropertyAccessExpression(ScopedPropertyAccessExpression<'tree>),
SequenceExpression(SequenceExpression<'tree>),
ShellCommandExpression(ShellCommandExpression<'tree>),
SimpleParameter(SimpleParameter<'tree>),
StaticModifier(StaticModifier<'tree>),
StaticVariableDeclaration(StaticVariableDeclaration<'tree>),
String(String<'tree>),
StringContent(StringContent<'tree>),
SubscriptExpression(SubscriptExpression<'tree>),
SwitchBlock(SwitchBlock<'tree>),
SwitchStatement(SwitchStatement<'tree>),
Text(Text<'tree>),
TextInterpolation(TextInterpolation<'tree>),
ThrowExpression(ThrowExpression<'tree>),
TraitDeclaration(TraitDeclaration<'tree>),
TryStatement(TryStatement<'tree>),
TypeList(TypeList<'tree>),
UnaryOpExpression(UnaryOpExpression<'tree>),
UnionType(UnionType<'tree>),
UnsetStatement(UnsetStatement<'tree>),
UpdateExpression(UpdateExpression<'tree>),
UseAsClause(UseAsClause<'tree>),
UseDeclaration(UseDeclaration<'tree>),
UseInsteadOfClause(UseInsteadOfClause<'tree>),
UseList(UseList<'tree>),
VariableName(VariableName<'tree>),
VariadicParameter(VariadicParameter<'tree>),
VariadicPlaceholder(VariadicPlaceholder<'tree>),
VariadicUnpacking(VariadicUnpacking<'tree>),
VisibilityModifier(VisibilityModifier<'tree>),
WhileStatement(WhileStatement<'tree>),
YieldExpression(YieldExpression<'tree>),
BottomType(BottomType<'tree>),
Comment(Comment<'tree>),
EscapeSequence(EscapeSequence<'tree>),
Float(Float<'tree>),
HeredocEnd(HeredocEnd<'tree>),
HeredocStart(HeredocStart<'tree>),
Integer(Integer<'tree>),
NowdocString(NowdocString<'tree>),
Operation(Operation<'tree>),
PhpEndTag(PhpEndTag<'tree>),
PhpTag(PhpTag<'tree>),
VarModifier(VarModifier<'tree>),
Unknown(Node<'tree>),
}Variants§
Expression(Expression<'tree>)
Literal(Literal<'tree>)
PrimaryExpression(PrimaryExpression<'tree>)
Statement(Statement<'tree>)
Type(Type<'tree>)
AbstractModifier(AbstractModifier<'tree>)
AnonymousClass(AnonymousClass<'tree>)
AnonymousFunction(AnonymousFunction<'tree>)
AnonymousFunctionUseClause(AnonymousFunctionUseClause<'tree>)
Argument(Argument<'tree>)
Arguments(Arguments<'tree>)
ArrayCreationExpression(ArrayCreationExpression<'tree>)
ArrayElementInitializer(ArrayElementInitializer<'tree>)
ArrowFunction(ArrowFunction<'tree>)
AssignmentExpression(AssignmentExpression<'tree>)
Attribute(Attribute<'tree>)
AttributeGroup(AttributeGroup<'tree>)
AttributeList(AttributeList<'tree>)
AugmentedAssignmentExpression(AugmentedAssignmentExpression<'tree>)
BaseClause(BaseClause<'tree>)
BinaryExpression(BinaryExpression<'tree>)
Boolean(Boolean<'tree>)
BreakStatement(BreakStatement<'tree>)
ByRef(ByRef<'tree>)
CaseStatement(CaseStatement<'tree>)
CastExpression(CastExpression<'tree>)
CastType(CastType<'tree>)
CatchClause(CatchClause<'tree>)
ClassConstantAccessExpression(ClassConstantAccessExpression<'tree>)
ClassDeclaration(ClassDeclaration<'tree>)
ClassInterfaceClause(ClassInterfaceClause<'tree>)
CloneExpression(CloneExpression<'tree>)
ColonBlock(ColonBlock<'tree>)
CompoundStatement(CompoundStatement<'tree>)
ConditionalExpression(ConditionalExpression<'tree>)
ConstDeclaration(ConstDeclaration<'tree>)
ConstElement(ConstElement<'tree>)
ContinueStatement(ContinueStatement<'tree>)
DeclarationList(DeclarationList<'tree>)
DeclareDirective(DeclareDirective<'tree>)
DeclareStatement(DeclareStatement<'tree>)
DefaultStatement(DefaultStatement<'tree>)
DisjunctiveNormalFormType(DisjunctiveNormalFormType<'tree>)
DoStatement(DoStatement<'tree>)
DynamicVariableName(DynamicVariableName<'tree>)
EchoStatement(EchoStatement<'tree>)
ElseClause(ElseClause<'tree>)
ElseIfClause(ElseIfClause<'tree>)
EmptyStatement(EmptyStatement<'tree>)
EncapsedString(EncapsedString<'tree>)
EnumCase(EnumCase<'tree>)
EnumDeclaration(EnumDeclaration<'tree>)
EnumDeclarationList(EnumDeclarationList<'tree>)
ErrorSuppressionExpression(ErrorSuppressionExpression<'tree>)
ExitStatement(ExitStatement<'tree>)
ExpressionStatement(ExpressionStatement<'tree>)
FinalModifier(FinalModifier<'tree>)
FinallyClause(FinallyClause<'tree>)
ForStatement(ForStatement<'tree>)
ForeachStatement(ForeachStatement<'tree>)
FormalParameters(FormalParameters<'tree>)
FunctionCallExpression(FunctionCallExpression<'tree>)
FunctionDefinition(FunctionDefinition<'tree>)
FunctionStaticDeclaration(FunctionStaticDeclaration<'tree>)
GlobalDeclaration(GlobalDeclaration<'tree>)
GotoStatement(GotoStatement<'tree>)
Heredoc(Heredoc<'tree>)
HeredocBody(HeredocBody<'tree>)
IfStatement(IfStatement<'tree>)
IncludeExpression(IncludeExpression<'tree>)
IncludeOnceExpression(IncludeOnceExpression<'tree>)
InterfaceDeclaration(InterfaceDeclaration<'tree>)
IntersectionType(IntersectionType<'tree>)
ListLiteral(ListLiteral<'tree>)
MatchBlock(MatchBlock<'tree>)
MatchConditionList(MatchConditionList<'tree>)
MatchConditionalExpression(MatchConditionalExpression<'tree>)
MatchDefaultExpression(MatchDefaultExpression<'tree>)
MatchExpression(MatchExpression<'tree>)
MemberAccessExpression(MemberAccessExpression<'tree>)
MemberCallExpression(MemberCallExpression<'tree>)
MethodDeclaration(MethodDeclaration<'tree>)
Name(Name<'tree>)
NamedLabelStatement(NamedLabelStatement<'tree>)
NamedType(NamedType<'tree>)
NamespaceDefinition(NamespaceDefinition<'tree>)
NamespaceName(NamespaceName<'tree>)
NamespaceUseClause(NamespaceUseClause<'tree>)
NamespaceUseDeclaration(NamespaceUseDeclaration<'tree>)
NamespaceUseGroup(NamespaceUseGroup<'tree>)
Nowdoc(Nowdoc<'tree>)
NowdocBody(NowdocBody<'tree>)
Null(Null<'tree>)
NullsafeMemberAccessExpression(NullsafeMemberAccessExpression<'tree>)
NullsafeMemberCallExpression(NullsafeMemberCallExpression<'tree>)
ObjectCreationExpression(ObjectCreationExpression<'tree>)
OptionalType(OptionalType<'tree>)
Pair(Pair<'tree>)
ParenthesizedExpression(ParenthesizedExpression<'tree>)
PrimitiveType(PrimitiveType<'tree>)
PrintIntrinsic(PrintIntrinsic<'tree>)
Program(Program<'tree>)
PropertyDeclaration(PropertyDeclaration<'tree>)
PropertyElement(PropertyElement<'tree>)
PropertyHook(PropertyHook<'tree>)
PropertyHookList(PropertyHookList<'tree>)
PropertyPromotionParameter(PropertyPromotionParameter<'tree>)
QualifiedName(QualifiedName<'tree>)
ReadonlyModifier(ReadonlyModifier<'tree>)
ReferenceAssignmentExpression(ReferenceAssignmentExpression<'tree>)
ReferenceModifier(ReferenceModifier<'tree>)
RelativeName(RelativeName<'tree>)
RelativeScope(RelativeScope<'tree>)
RequireExpression(RequireExpression<'tree>)
RequireOnceExpression(RequireOnceExpression<'tree>)
ReturnStatement(ReturnStatement<'tree>)
ScopedCallExpression(ScopedCallExpression<'tree>)
ScopedPropertyAccessExpression(ScopedPropertyAccessExpression<'tree>)
SequenceExpression(SequenceExpression<'tree>)
ShellCommandExpression(ShellCommandExpression<'tree>)
SimpleParameter(SimpleParameter<'tree>)
StaticModifier(StaticModifier<'tree>)
StaticVariableDeclaration(StaticVariableDeclaration<'tree>)
String(String<'tree>)
StringContent(StringContent<'tree>)
SubscriptExpression(SubscriptExpression<'tree>)
SwitchBlock(SwitchBlock<'tree>)
SwitchStatement(SwitchStatement<'tree>)
Text(Text<'tree>)
TextInterpolation(TextInterpolation<'tree>)
ThrowExpression(ThrowExpression<'tree>)
TraitDeclaration(TraitDeclaration<'tree>)
TryStatement(TryStatement<'tree>)
TypeList(TypeList<'tree>)
UnaryOpExpression(UnaryOpExpression<'tree>)
UnionType(UnionType<'tree>)
UnsetStatement(UnsetStatement<'tree>)
UpdateExpression(UpdateExpression<'tree>)
UseAsClause(UseAsClause<'tree>)
UseDeclaration(UseDeclaration<'tree>)
UseInsteadOfClause(UseInsteadOfClause<'tree>)
UseList(UseList<'tree>)
VariableName(VariableName<'tree>)
VariadicParameter(VariadicParameter<'tree>)
VariadicPlaceholder(VariadicPlaceholder<'tree>)
VariadicUnpacking(VariadicUnpacking<'tree>)
VisibilityModifier(VisibilityModifier<'tree>)
WhileStatement(WhileStatement<'tree>)
YieldExpression(YieldExpression<'tree>)
BottomType(BottomType<'tree>)
Comment(Comment<'tree>)
EscapeSequence(EscapeSequence<'tree>)
Float(Float<'tree>)
HeredocEnd(HeredocEnd<'tree>)
HeredocStart(HeredocStart<'tree>)
Integer(Integer<'tree>)
NowdocString(NowdocString<'tree>)
Operation(Operation<'tree>)
PhpEndTag(PhpEndTag<'tree>)
PhpTag(PhpTag<'tree>)
VarModifier(VarModifier<'tree>)
Unknown(Node<'tree>)
Implementations§
Trait Implementations§
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