pub enum TokenKind {
Show 190 variants
Function,
Class,
Interface,
Trait,
Extends,
Implements,
Enum,
If,
Else,
ElseIf,
EndIf,
Return,
Echo,
Print,
While,
Do,
For,
Foreach,
EndWhile,
EndFor,
EndForeach,
As,
Switch,
EndSwitch,
Case,
Default,
Break,
Continue,
Goto,
Insteadof,
Try,
Catch,
Finally,
Throw,
Public,
Protected,
Private,
Static,
Abstract,
Final,
Readonly,
PublicSet,
ProtectedSet,
PrivateSet,
Namespace,
Use,
Global,
New,
Clone,
InstanceOf,
Array,
Const,
Include,
IncludeOnce,
Require,
RequireOnce,
Eval,
Exit,
Die,
Empty,
Isset,
Unset,
List,
Yield,
YieldFrom,
Declare,
EndDeclare,
Match,
Fn,
HaltCompiler,
Attribute,
Line,
File,
Dir,
ClassC,
TraitC,
MethodC,
FuncC,
NsC,
PropertyC,
TypeBool,
TypeInt,
TypeFloat,
TypeString,
TypeObject,
TypeVoid,
TypeIterable,
TypeCallable,
TypeMixed,
TypeNever,
TypeNull,
TypeFalse,
TypeTrue,
IntCast,
FloatCast,
StringCast,
ArrayCast,
ObjectCast,
BoolCast,
UnsetCast,
VoidCast,
Identifier,
LNumber,
DNumber,
StringLiteral,
NumString,
StringVarname,
Variable,
InlineHtml,
EncapsedAndWhitespace,
DollarOpenCurlyBraces,
CurlyOpen,
Backtick,
DoubleQuote,
StartHeredoc,
EndHeredoc,
Dollar,
NsSeparator,
Comment,
DocComment,
Arrow,
NullSafeArrow,
DoubleArrow,
DoubleColon,
Ellipsis,
Plus,
Minus,
Asterisk,
Slash,
Percent,
Dot,
Pow,
Inc,
Dec,
Eq,
PlusEq,
MinusEq,
MulEq,
DivEq,
ModEq,
ConcatEq,
PowEq,
AndEq,
OrEq,
XorEq,
SlEq,
SrEq,
CoalesceEq,
EqEq,
EqEqEq,
Bang,
BangEq,
BangEqEq,
Lt,
LtEq,
Gt,
GtEq,
Spaceship,
Ampersand,
AmpersandFollowedByVarOrVararg,
AmpersandNotFollowedByVarOrVararg,
Pipe,
Caret,
BitNot,
Sl,
Sr,
AmpersandAmpersand,
PipePipe,
LogicalAnd,
LogicalOr,
LogicalXor,
Question,
Coalesce,
At,
SemiColon,
Colon,
Comma,
OpenBrace,
CloseBrace,
OpenParen,
CloseParen,
OpenBracket,
CloseBracket,
OpenTag,
OpenTagEcho,
CloseTag,
Eof,
Error,
AmpersandFollowedByVar,
AmpersandNotFollowedByVar,
}Variants§
Function
Class
Interface
Trait
Extends
Implements
Enum
If
Else
ElseIf
EndIf
Return
Echo
While
Do
For
Foreach
EndWhile
EndFor
EndForeach
As
Switch
EndSwitch
Case
Default
Break
Continue
Goto
Insteadof
Try
Catch
Finally
Throw
Public
Protected
Private
Static
Abstract
Final
Readonly
PublicSet
ProtectedSet
PrivateSet
Namespace
Use
Global
New
Clone
InstanceOf
Array
Const
Include
IncludeOnce
Require
RequireOnce
Eval
Exit
Die
Empty
Isset
Unset
List
Yield
YieldFrom
Declare
EndDeclare
Match
Fn
HaltCompiler
Attribute
Line
File
Dir
ClassC
TraitC
MethodC
FuncC
NsC
PropertyC
TypeBool
TypeInt
TypeFloat
TypeString
TypeObject
TypeVoid
TypeIterable
TypeCallable
TypeMixed
TypeNever
TypeNull
TypeFalse
TypeTrue
IntCast
FloatCast
StringCast
ArrayCast
ObjectCast
BoolCast
UnsetCast
VoidCast
Identifier
LNumber
DNumber
StringLiteral
NumString
StringVarname
Variable
InlineHtml
EncapsedAndWhitespace
DollarOpenCurlyBraces
CurlyOpen
Backtick
DoubleQuote
StartHeredoc
EndHeredoc
Dollar
NsSeparator
Comment
DocComment
Arrow
NullSafeArrow
DoubleArrow
DoubleColon
Ellipsis
Plus
Minus
Asterisk
Slash
Percent
Dot
Pow
Inc
Dec
Eq
PlusEq
MinusEq
MulEq
DivEq
ModEq
ConcatEq
PowEq
AndEq
OrEq
XorEq
SlEq
SrEq
CoalesceEq
EqEq
EqEqEq
Bang
BangEq
BangEqEq
Lt
LtEq
Gt
GtEq
Spaceship
Ampersand
AmpersandFollowedByVarOrVararg
AmpersandNotFollowedByVarOrVararg
Pipe
Caret
BitNot
Sl
Sr
AmpersandAmpersand
PipePipe
LogicalAnd
LogicalOr
LogicalXor
Question
Coalesce
At
SemiColon
Colon
Comma
OpenBrace
CloseBrace
OpenParen
CloseParen
OpenBracket
CloseBracket
OpenTag
OpenTagEcho
CloseTag
Eof
Error
AmpersandFollowedByVar
AmpersandNotFollowedByVar
Implementations§
Trait Implementations§
impl Copy for TokenKind
impl Eq for TokenKind
impl StructuralPartialEq for TokenKind
Auto Trait Implementations§
impl Freeze for TokenKind
impl RefUnwindSafe for TokenKind
impl Send for TokenKind
impl Sync for TokenKind
impl Unpin for TokenKind
impl UnwindSafe for TokenKind
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