Expand description
Strongly-typed AST types for PHP, generated from tree-sitter-php’s node-types.json.
Structs§
- Abstract
Modifier - Anonymous
Class - Anonymous
Function - Anonymous
Function UseClause - Argument
- Arguments
- Array
Creation Expression - Array
Element Initializer - Arrow
Function - Assignment
Expression - Attribute
- Attribute
Group - Attribute
List - Augmented
Assignment Expression - Base
Clause - Binary
Expression - Boolean
- Bottom
Type - Break
Statement - ByRef
- Case
Statement - Cast
Expression - Cast
Type - Catch
Clause - Class
Constant Access Expression - Class
Declaration - Class
Interface Clause - Clone
Expression - Colon
Block - Comment
- Compound
Statement - Conditional
Expression - Const
Declaration - Const
Element - Continue
Statement - Declaration
List - Declare
Directive - Declare
Statement - Default
Statement - Disjunctive
Normal Form Type - DoStatement
- Dynamic
Variable Name - Echo
Statement - Else
Clause - Else
IfClause - Empty
Statement - Encapsed
String - Enum
Case - Enum
Declaration - Enum
Declaration List - Error
Suppression Expression - Escape
Sequence - Exit
Statement - Expression
Statement - Final
Modifier - Finally
Clause - Float
- ForStatement
- Foreach
Statement - Formal
Parameters - Function
Call Expression - Function
Definition - Function
Static Declaration - Global
Declaration - Goto
Statement - Heredoc
- Heredoc
Body - Heredoc
End - Heredoc
Start - IfStatement
- Include
Expression - Include
Once Expression - Integer
- Interface
Declaration - Intersection
Type - List
Literal - Match
Block - Match
Condition List - Match
Conditional Expression - Match
Default Expression - Match
Expression - Member
Access Expression - Member
Call Expression - Method
Declaration - Name
- Named
Label Statement - Named
Type - Namespace
Definition - Namespace
Name - Namespace
UseClause - Namespace
UseDeclaration - Namespace
UseGroup - Nowdoc
- Nowdoc
Body - Nowdoc
String - Null
- Nullsafe
Member Access Expression - Nullsafe
Member Call Expression - Object
Creation Expression - Operation
- Optional
Type - Pair
- Parenthesized
Expression - PhpEnd
Tag - PhpTag
- Primitive
Type - Print
Intrinsic - Program
- Property
Declaration - Property
Element - Property
Hook - Property
Hook List - Property
Promotion Parameter - Qualified
Name - Readonly
Modifier - Reference
Assignment Expression - Reference
Modifier - Relative
Name - Relative
Scope - Require
Expression - Require
Once Expression - Return
Statement - Scoped
Call Expression - Scoped
Property Access Expression - Sequence
Expression - Shell
Command Expression - Simple
Parameter - Span
- Static
Modifier - Static
Variable Declaration - String
- String
Content - Subscript
Expression - Switch
Block - Switch
Statement - Text
- Text
Interpolation - Throw
Expression - Trait
Declaration - TryStatement
- Type
List - Unary
OpExpression - Union
Type - Unset
Statement - Update
Expression - UseAs
Clause - UseDeclaration
- UseInstead
OfClause - UseList
- VarModifier
- Variable
Name - Variadic
Parameter - Variadic
Placeholder - Variadic
Unpacking - Visibility
Modifier - While
Statement - Yield
Expression
Enums§
- Anonymous
Class Children - Anonymous
Function Return Type - Anonymous
Function UseClause Children - AnyNode
- Argument
Children - Arguments
Children - Array
Element Initializer Children - Arrow
Function Return Type - Assignment
Expression Left - Attribute
Children - Augmented
Assignment Expression Left - Augmented
Assignment Expression Operator - Base
Clause Children - Binary
Expression Operator - Binary
Expression Right - ByRef
Children - Cast
Expression Value - Class
Constant Access Expression Children - Class
Declaration Children - Class
Interface Clause Children - Const
Declaration Children - Const
Element Children - Declaration
List Children - Declare
Statement Children - Disjunctive
Normal Form Type Children - Dynamic
Variable Name Children - Echo
Statement Children - Else
Clause Body - Else
IfClause Body - Encapsed
String Children - Enum
Declaration Children - Enum
Declaration List Children - Expression
- ForStatement
Condition - ForStatement
Initialize - ForStatement
Update - Foreach
Statement Body - Foreach
Statement Children - Formal
Parameters Children - Function
Call Expression Function - Function
Definition Return Type - Global
Declaration Children - Heredoc
Body Children - IfStatement
Alternative - IfStatement
Body - Intersection
Type Children - List
Literal Children - Literal
- Match
Block Children - Member
Access Expression Name - Member
Access Expression Object - Member
Call Expression Name - Member
Call Expression Object - Method
Declaration Children - Method
Declaration Return Type - Named
Type Children - Namespace
UseClause Children - Namespace
UseClause Type - Namespace
UseDeclaration Children - Namespace
UseDeclaration Type - Nullsafe
Member Access Expression Name - Nullsafe
Member Access Expression Object - Nullsafe
Member Call Expression Name - Nullsafe
Member Call Expression Object - Object
Creation Expression Children - Optional
Type Children - Pair
Children - Parse
Error - Primary
Expression - Program
Children - Property
Declaration Children - Property
Hook Body - Property
Promotion Parameter Name - Qualified
Name Prefix - Reference
Assignment Expression Left - Relative
Name Prefix - Scoped
Call Expression Name - Scoped
Call Expression Scope - Scoped
Property Access Expression Name - Scoped
Property Access Expression Scope - Sequence
Expression Children - Shell
Command Expression Children - Statement
- String
Children - Subscript
Expression Children - Switch
Block Children - Text
Interpolation Children - TryStatement
Children - Type
- Unary
OpExpression Operator - Union
Type Children - Unset
Statement Children - Update
Expression Argument - Update
Expression Operator - UseAs
Clause Children - UseDeclaration
Children - UseInstead
OfClause Children - UseList
Children - While
Statement Body - Yield
Expression Children