pub enum PhpElementType {
Show 176 variants
Whitespace,
Newline,
Comment,
StringLiteral,
NumberLiteral,
BooleanLiteral,
NullLiteral,
Identifier,
Variable,
Abstract,
And,
Array,
As,
Break,
Callable,
Case,
Catch,
Class,
Clone,
Const,
Continue,
Declare,
Default,
Do,
Echo,
Else,
Elseif,
Empty,
Enddeclare,
Endfor,
Endforeach,
Endif,
Endswitch,
Endwhile,
Eval,
Exit,
Extends,
Final,
Finally,
For,
Foreach,
Function,
Global,
Goto,
If,
Implements,
Include,
IncludeOnce,
Instanceof,
Insteadof,
Interface,
Isset,
List,
Namespace,
New,
Or,
Print,
Private,
Protected,
Public,
Require,
RequireOnce,
Return,
Static,
Switch,
Throw,
Trait,
Try,
Unset,
Use,
Var,
While,
Xor,
Yield,
YieldFrom,
Plus,
Minus,
Multiply,
Divide,
Modulo,
Power,
Concat,
Equal,
Identical,
NotEqual,
NotIdentical,
Less,
Greater,
LessEqual,
GreaterEqual,
Spaceship,
LogicalAnd,
LogicalOr,
LogicalXor,
LogicalNot,
BitwiseAnd,
BitwiseOr,
BitwiseXor,
BitwiseNot,
LeftShift,
RightShift,
Assign,
PlusAssign,
MinusAssign,
MultiplyAssign,
DivideAssign,
ModuloAssign,
PowerAssign,
ConcatAssign,
BitwiseAndAssign,
BitwiseOrAssign,
BitwiseXorAssign,
LeftShiftAssign,
RightShiftAssign,
Increment,
Decrement,
Arrow,
DoubleArrow,
NullCoalesce,
NullCoalesceAssign,
Ellipsis,
LeftParen,
RightParen,
LeftBracket,
RightBracket,
LeftBrace,
RightBrace,
Semicolon,
Comma,
Dot,
Question,
Colon,
DoubleColon,
Backslash,
At,
Dollar,
OpenTag,
CloseTag,
EchoTag,
Eof,
Error,
Root,
ClassDef,
FunctionDef,
MethodDef,
PropertyDef,
ConstDef,
TraitDef,
InterfaceDef,
NamespaceDef,
UseStatement,
IfStatement,
WhileStatement,
DoWhileStatement,
ForStatement,
ForeachStatement,
SwitchStatement,
TryStatement,
CatchBlock,
FinallyBlock,
ExpressionStatement,
ReturnStatement,
ThrowStatement,
BreakStatement,
ContinueStatement,
EchoStatement,
GlobalStatement,
StaticStatement,
UnsetStatement,
CompoundStatement,
Literal,
ParenthesizedExpression,
CallExpression,
ArrayAccessExpression,
MemberAccessExpression,
BinaryExpression,
}Variants§
Whitespace
Newline
Comment
StringLiteral
NumberLiteral
BooleanLiteral
NullLiteral
Identifier
Variable
Abstract
And
Array
As
Break
Callable
Case
Catch
Class
Clone
Const
Continue
Declare
Default
Do
Echo
Else
Elseif
Empty
Enddeclare
Endfor
Endforeach
Endif
Endswitch
Endwhile
Eval
Exit
Extends
Final
Finally
For
Foreach
Function
Global
Goto
If
Implements
Include
IncludeOnce
Instanceof
Insteadof
Interface
Isset
List
Namespace
New
Or
Private
Protected
Public
Require
RequireOnce
Return
Static
Switch
Throw
Trait
Try
Unset
Use
Var
While
Xor
Yield
YieldFrom
Plus
Minus
Multiply
Divide
Modulo
Power
Concat
Equal
Identical
NotEqual
NotIdentical
Less
Greater
LessEqual
GreaterEqual
Spaceship
LogicalAnd
LogicalOr
LogicalXor
LogicalNot
BitwiseAnd
BitwiseOr
BitwiseXor
BitwiseNot
LeftShift
RightShift
Assign
PlusAssign
MinusAssign
MultiplyAssign
DivideAssign
ModuloAssign
PowerAssign
ConcatAssign
BitwiseAndAssign
BitwiseOrAssign
BitwiseXorAssign
LeftShiftAssign
RightShiftAssign
Increment
Decrement
Arrow
DoubleArrow
NullCoalesce
NullCoalesceAssign
Ellipsis
LeftParen
RightParen
LeftBracket
RightBracket
LeftBrace
RightBrace
Semicolon
Comma
Dot
Question
Colon
DoubleColon
Backslash
At
Dollar
OpenTag
CloseTag
EchoTag
Eof
Error
Root
ClassDef
FunctionDef
MethodDef
PropertyDef
ConstDef
TraitDef
InterfaceDef
NamespaceDef
UseStatement
IfStatement
WhileStatement
DoWhileStatement
ForStatement
ForeachStatement
SwitchStatement
TryStatement
CatchBlock
FinallyBlock
ExpressionStatement
ReturnStatement
ThrowStatement
BreakStatement
ContinueStatement
EchoStatement
GlobalStatement
StaticStatement
UnsetStatement
CompoundStatement
Literal
ParenthesizedExpression
CallExpression
ArrayAccessExpression
MemberAccessExpression
BinaryExpression
Trait Implementations§
Source§impl Clone for PhpElementType
impl Clone for PhpElementType
Source§fn clone(&self) -> PhpElementType
fn clone(&self) -> PhpElementType
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PhpElementType
impl Debug for PhpElementType
Source§impl<'de> Deserialize<'de> for PhpElementType
impl<'de> Deserialize<'de> for PhpElementType
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl ElementType for PhpElementType
impl ElementType for PhpElementType
Source§type Role = UniversalElementRole
type Role = UniversalElementRole
The associated role type for this element kind.
Source§fn is_role(&self, role: Self::Role) -> bool
fn is_role(&self, role: Self::Role) -> bool
Returns true if this element matches the specified language-specific role.
Source§fn is_universal(&self, role: UniversalElementRole) -> bool
fn is_universal(&self, role: UniversalElementRole) -> bool
Returns true if this element matches the specified universal role.
Source§impl From<PhpTokenType> for PhpElementType
impl From<PhpTokenType> for PhpElementType
Source§fn from(token: PhpTokenType) -> Self
fn from(token: PhpTokenType) -> Self
Converts to this type from the input type.
Source§impl Hash for PhpElementType
impl Hash for PhpElementType
Source§impl PartialEq for PhpElementType
impl PartialEq for PhpElementType
Source§impl Serialize for PhpElementType
impl Serialize for PhpElementType
impl Copy for PhpElementType
impl Eq for PhpElementType
impl StructuralPartialEq for PhpElementType
Auto Trait Implementations§
impl Freeze for PhpElementType
impl RefUnwindSafe for PhpElementType
impl Send for PhpElementType
impl Sync for PhpElementType
impl Unpin for PhpElementType
impl UnwindSafe for PhpElementType
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