Skip to main content

Module ast

Module ast 

Source

Structs§

ArenaVec
Arena-allocated Vec. Thin newtype over bumpalo::collections::Vec that implements Serialize and Debug.
Arg
ArrayAccessExpr
ArrayElement
ArrowFunctionExpr
AssignExpr
Attribute
BinaryExpr
CallableCreateExpr
CatchClause
ClassConstDecl
ClassDecl
ClassMember
ClassModifiers
ClosureExpr
ClosureUseVar
Comment
A comment found in the source file.
ConstItem
DeclareStmt
DoWhileStmt
ElseIfBranch
EnumCase
EnumDecl
EnumMember
Expr
ForStmt
ForeachStmt
FunctionCallExpr
FunctionDecl
IfStmt
InterfaceDecl
MatchArm
MatchExpr
MethodCallExpr
MethodDecl
NamespaceDecl
NewExpr
NullCoalesceExpr
Param
Program
The root AST node representing a complete PHP file.
PropertyAccessExpr
PropertyDecl
PropertyHook
StaticAccessExpr
StaticMethodCallExpr
StaticVar
Stmt
SwitchCase
SwitchStmt
TernaryExpr
TraitAdaptation
TraitDecl
TraitUseDecl
TryCatchStmt
TypeHint
UnaryPostfixExpr
UnaryPrefixExpr
UseDecl
UseItem
WhileStmt
YieldExpr

Enums§

AssignOp
BinaryOp
BuiltinType
PHP built-in type keyword — zero-cost alternative to Name::Simple for the 20 reserved type names. One byte instead of a Cow<str> + Span in the AST.
CallableCreateKind
CastKind
ClassMemberKind
CommentKind
Distinguishes the four syntactic forms of PHP comment.
EnumMemberKind
ExprKind
IncludeKind
MagicConstKind
Name
A PHP name (identifier, qualified name, fully-qualified name, or relative name).
NameKind
NameStr
A name string that originates either from the source buffer (&'src str) or was constructed in the arena (&'arena str).
NamespaceBody
PropertyHookBody
PropertyHookKind
StmtKind
StringPart
TraitAdaptationKind
TypeHintKind
A PHP type hint.
UnaryPostfixOp
UnaryPrefixOp
UseKind
Visibility