Skip to main content

Crate treesitter_types_php

Crate treesitter_types_php 

Source
Expand description

Strongly-typed AST types for PHP, generated from tree-sitter-php’s node-types.json.

Structs§

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

Enums§

AnonymousClassChildren
AnonymousFunctionReturnType
AnonymousFunctionUseClauseChildren
AnyNode
ArgumentChildren
ArgumentsChildren
ArrayElementInitializerChildren
ArrowFunctionReturnType
AssignmentExpressionLeft
AttributeChildren
AugmentedAssignmentExpressionLeft
AugmentedAssignmentExpressionOperator
BaseClauseChildren
BinaryExpressionOperator
BinaryExpressionRight
ByRefChildren
CastExpressionValue
ClassConstantAccessExpressionChildren
ClassDeclarationChildren
ClassInterfaceClauseChildren
ConstDeclarationChildren
ConstElementChildren
DeclarationListChildren
DeclareStatementChildren
DisjunctiveNormalFormTypeChildren
DynamicVariableNameChildren
EchoStatementChildren
ElseClauseBody
ElseIfClauseBody
EncapsedStringChildren
EnumDeclarationChildren
EnumDeclarationListChildren
Expression
ForStatementCondition
ForStatementInitialize
ForStatementUpdate
ForeachStatementBody
ForeachStatementChildren
FormalParametersChildren
FunctionCallExpressionFunction
FunctionDefinitionReturnType
GlobalDeclarationChildren
HeredocBodyChildren
IfStatementAlternative
IfStatementBody
IntersectionTypeChildren
ListLiteralChildren
Literal
MatchBlockChildren
MemberAccessExpressionName
MemberAccessExpressionObject
MemberCallExpressionName
MemberCallExpressionObject
MethodDeclarationChildren
MethodDeclarationReturnType
NamedTypeChildren
NamespaceUseClauseChildren
NamespaceUseClauseType
NamespaceUseDeclarationChildren
NamespaceUseDeclarationType
NullsafeMemberAccessExpressionName
NullsafeMemberAccessExpressionObject
NullsafeMemberCallExpressionName
NullsafeMemberCallExpressionObject
ObjectCreationExpressionChildren
OptionalTypeChildren
PairChildren
ParseError
PrimaryExpression
ProgramChildren
PropertyDeclarationChildren
PropertyHookBody
PropertyPromotionParameterName
QualifiedNamePrefix
ReferenceAssignmentExpressionLeft
RelativeNamePrefix
ScopedCallExpressionName
ScopedCallExpressionScope
ScopedPropertyAccessExpressionName
ScopedPropertyAccessExpressionScope
SequenceExpressionChildren
ShellCommandExpressionChildren
Statement
StringChildren
SubscriptExpressionChildren
SwitchBlockChildren
TextInterpolationChildren
TryStatementChildren
Type
UnaryOpExpressionOperator
UnionTypeChildren
UnsetStatementChildren
UpdateExpressionArgument
UpdateExpressionOperator
UseAsClauseChildren
UseDeclarationChildren
UseInsteadOfClauseChildren
UseListChildren
WhileStatementBody
YieldExpressionChildren

Traits§

FromNode
Every generated struct and enum implements this.
LeafNode
Implemented by every generated leaf type (identifiers, literals, etc.)
Spanned
Implemented by every generated type that has a source location.