Documentation
¶
Index ¶
- Variables
- type Argument
- type Attribute
- type AttributeGroup
- type EnumCase
- type ExprArray
- type ExprArrayDimFetch
- type ExprArrayItem
- type ExprArrowFunction
- type ExprAssign
- type ExprAssignBitwiseAnd
- type ExprAssignBitwiseOr
- type ExprAssignBitwiseXor
- type ExprAssignCoalesce
- type ExprAssignConcat
- type ExprAssignDiv
- type ExprAssignMinus
- type ExprAssignMod
- type ExprAssignMul
- type ExprAssignPlus
- type ExprAssignPow
- type ExprAssignReference
- type ExprAssignShiftLeft
- type ExprAssignShiftRight
- type ExprBinaryBitwiseAnd
- type ExprBinaryBitwiseOr
- type ExprBinaryBitwiseXor
- type ExprBinaryBooleanAnd
- type ExprBinaryBooleanOr
- type ExprBinaryCoalesce
- type ExprBinaryConcat
- type ExprBinaryDiv
- type ExprBinaryEqual
- type ExprBinaryGreater
- type ExprBinaryGreaterOrEqual
- type ExprBinaryIdentical
- type ExprBinaryLogicalAnd
- type ExprBinaryLogicalOr
- type ExprBinaryLogicalXor
- type ExprBinaryMinus
- type ExprBinaryMod
- type ExprBinaryMul
- type ExprBinaryNotEqual
- type ExprBinaryNotIdentical
- type ExprBinaryPlus
- type ExprBinaryPow
- type ExprBinaryShiftLeft
- type ExprBinaryShiftRight
- type ExprBinarySmaller
- type ExprBinarySmallerOrEqual
- type ExprBinarySpaceship
- type ExprBitwiseNot
- type ExprBooleanNot
- type ExprBrackets
- type ExprCastArray
- type ExprCastBool
- type ExprCastDouble
- type ExprCastInt
- type ExprCastObject
- type ExprCastString
- type ExprCastUnset
- type ExprClassConstFetch
- type ExprClone
- type ExprClosure
- type ExprClosureUse
- type ExprConstFetch
- type ExprEmpty
- type ExprErrorSuppress
- type ExprEval
- type ExprExit
- type ExprFunctionCall
- type ExprInclude
- type ExprIncludeOnce
- type ExprInstanceOf
- type ExprIsset
- type ExprList
- type ExprMatch
- type ExprMethodCall
- type ExprNew
- type ExprNullsafeMethodCall
- type ExprNullsafePropertyFetch
- type ExprPostDec
- type ExprPostInc
- type ExprPreDec
- type ExprPreInc
- type ExprPrint
- type ExprPropertyFetch
- type ExprRequire
- type ExprRequireOnce
- type ExprShellExec
- type ExprStaticCall
- type ExprStaticPropertyFetch
- type ExprTernary
- type ExprThrow
- type ExprUnaryMinus
- type ExprUnaryPlus
- type ExprVariable
- type ExprYield
- type ExprYieldFrom
- type Identifier
- type Intersection
- type MatchArm
- type Name
- type NameFullyQualified
- type NamePart
- type NameRelative
- type Nullable
- type Parameter
- type Root
- type ScalarDnumber
- type ScalarEncapsed
- type ScalarEncapsedStringBrackets
- type ScalarEncapsedStringPart
- type ScalarEncapsedStringVar
- type ScalarHeredoc
- type ScalarLnumber
- type ScalarMagicConstant
- type ScalarString
- type StmtBreak
- type StmtCase
- type StmtCatch
- type StmtClass
- type StmtClassConstList
- type StmtClassMethod
- type StmtConstList
- type StmtConstant
- type StmtContinue
- type StmtDeclare
- type StmtDefault
- type StmtDo
- type StmtEcho
- type StmtElse
- type StmtElseIf
- type StmtEnum
- type StmtExpression
- type StmtFinally
- type StmtFor
- type StmtForeach
- type StmtFunction
- type StmtGlobal
- type StmtGoto
- type StmtGroupUseList
- type StmtHaltCompiler
- type StmtIf
- type StmtInlineHtml
- type StmtInterface
- type StmtLabel
- type StmtNamespace
- type StmtNop
- type StmtProperty
- type StmtPropertyList
- type StmtReturn
- type StmtStatic
- type StmtStaticVar
- type StmtStmtList
- type StmtSwitch
- type StmtThrow
- type StmtTrait
- type StmtTraitUse
- type StmtTraitUseAlias
- type StmtTraitUsePrecedence
- type StmtTry
- type StmtUnset
- type StmtUse
- type StmtUseList
- type StmtWhile
- type Type
- type Union
- type Vertex
- type Visitor
Constants ¶
This section is empty.
Variables ¶
var TypeToVisitorNameMap = map[string]string{
"Name": "NameName",
"NamePart": "NameNamePart",
"StmtGroupUseList": "StmtGroupUse",
"StmtUseList": "StmtUse",
"StmtUse": "StmtUseDeclaration",
}
The edge-case/overwrites, from node type name to their visitor function name.
Functions ¶
This section is empty.
Types ¶
type Argument ¶
type Argument struct {
Position *position.Position
Name Vertex
ColonTkn *token.Token
VariadicTkn *token.Token
AmpersandTkn *token.Token
Expr Vertex
}
Argument node
func (*Argument) GetPosition ¶
type Attribute ¶
type Attribute struct {
Position *position.Position
Name Vertex
OpenParenthesisTkn *token.Token
Args []Vertex
SeparatorTkns []*token.Token
CloseParenthesisTkn *token.Token
}
Attribute node
func (*Attribute) GetPosition ¶
type AttributeGroup ¶
type AttributeGroup struct {
Position *position.Position
OpenAttributeTkn *token.Token
Attrs []Vertex
SeparatorTkns []*token.Token
CloseAttributeTkn *token.Token
}
AttributeGroup node
func (*AttributeGroup) Accept ¶
func (n *AttributeGroup) Accept(v Visitor)
func (*AttributeGroup) GetPosition ¶
func (n *AttributeGroup) GetPosition() *position.Position
func (*AttributeGroup) GetType ¶
func (n *AttributeGroup) GetType() Type
type EnumCase ¶
type EnumCase struct {
Position *position.Position
AttrGroups []Vertex
CaseTkn *token.Token
Name Vertex
EqualTkn *token.Token
Expr Vertex
SemiColonTkn *token.Token
}
EnumCase node
func (*EnumCase) GetPosition ¶
type ExprArray ¶
type ExprArray struct {
Position *position.Position
ArrayTkn *token.Token
OpenBracketTkn *token.Token
Items []Vertex
SeparatorTkns []*token.Token
CloseBracketTkn *token.Token
}
ExprArray node
func (*ExprArray) GetPosition ¶
type ExprArrayDimFetch ¶
type ExprArrayDimFetch struct {
Position *position.Position
Var Vertex
OpenBracketTkn *token.Token
Dim Vertex
CloseBracketTkn *token.Token
}
ExprArrayDimFetch node
func (*ExprArrayDimFetch) Accept ¶
func (n *ExprArrayDimFetch) Accept(v Visitor)
func (*ExprArrayDimFetch) GetPosition ¶
func (n *ExprArrayDimFetch) GetPosition() *position.Position
func (*ExprArrayDimFetch) GetType ¶
func (n *ExprArrayDimFetch) GetType() Type
type ExprArrayItem ¶
type ExprArrayItem struct {
Position *position.Position
EllipsisTkn *token.Token
Key Vertex
DoubleArrowTkn *token.Token
AmpersandTkn *token.Token
Val Vertex
}
ExprArrayItem node
func (*ExprArrayItem) Accept ¶
func (n *ExprArrayItem) Accept(v Visitor)
func (*ExprArrayItem) GetPosition ¶
func (n *ExprArrayItem) GetPosition() *position.Position
func (*ExprArrayItem) GetType ¶
func (n *ExprArrayItem) GetType() Type
type ExprArrowFunction ¶
type ExprArrowFunction struct {
Position *position.Position
AttrGroups []Vertex
StaticTkn *token.Token
FnTkn *token.Token
AmpersandTkn *token.Token
OpenParenthesisTkn *token.Token
Params []Vertex
SeparatorTkns []*token.Token
CloseParenthesisTkn *token.Token
ColonTkn *token.Token
ReturnType Vertex
DoubleArrowTkn *token.Token
Expr Vertex
}
ExprArrowFunction node
func (*ExprArrowFunction) Accept ¶
func (n *ExprArrowFunction) Accept(v Visitor)
func (*ExprArrowFunction) GetPosition ¶
func (n *ExprArrowFunction) GetPosition() *position.Position
func (*ExprArrowFunction) GetType ¶
func (n *ExprArrowFunction) GetType() Type
type ExprAssign ¶
ExprAssign node
func (*ExprAssign) Accept ¶
func (n *ExprAssign) Accept(v Visitor)
func (*ExprAssign) GetPosition ¶
func (n *ExprAssign) GetPosition() *position.Position
func (*ExprAssign) GetType ¶
func (n *ExprAssign) GetType() Type
type ExprAssignBitwiseAnd ¶
type ExprAssignBitwiseAnd struct {
Position *position.Position
Var Vertex
EqualTkn *token.Token
Expr Vertex
}
ExprAssignBitwiseAnd node
func (*ExprAssignBitwiseAnd) Accept ¶
func (n *ExprAssignBitwiseAnd) Accept(v Visitor)
func (*ExprAssignBitwiseAnd) GetPosition ¶
func (n *ExprAssignBitwiseAnd) GetPosition() *position.Position
func (*ExprAssignBitwiseAnd) GetType ¶
func (n *ExprAssignBitwiseAnd) GetType() Type
type ExprAssignBitwiseOr ¶
type ExprAssignBitwiseOr struct {
Position *position.Position
Var Vertex
EqualTkn *token.Token
Expr Vertex
}
ExprAssignBitwiseOr node
func (*ExprAssignBitwiseOr) Accept ¶
func (n *ExprAssignBitwiseOr) Accept(v Visitor)
func (*ExprAssignBitwiseOr) GetPosition ¶
func (n *ExprAssignBitwiseOr) GetPosition() *position.Position
func (*ExprAssignBitwiseOr) GetType ¶
func (n *ExprAssignBitwiseOr) GetType() Type
type ExprAssignBitwiseXor ¶
type ExprAssignBitwiseXor struct {
Position *position.Position
Var Vertex
EqualTkn *token.Token
Expr Vertex
}
ExprAssignBitwiseXor node
func (*ExprAssignBitwiseXor) Accept ¶
func (n *ExprAssignBitwiseXor) Accept(v Visitor)
func (*ExprAssignBitwiseXor) GetPosition ¶
func (n *ExprAssignBitwiseXor) GetPosition() *position.Position
func (*ExprAssignBitwiseXor) GetType ¶
func (n *ExprAssignBitwiseXor) GetType() Type
type ExprAssignCoalesce ¶
type ExprAssignCoalesce struct {
Position *position.Position
Var Vertex
EqualTkn *token.Token
Expr Vertex
}
ExprAssignCoalesce node
func (*ExprAssignCoalesce) Accept ¶
func (n *ExprAssignCoalesce) Accept(v Visitor)
func (*ExprAssignCoalesce) GetPosition ¶
func (n *ExprAssignCoalesce) GetPosition() *position.Position
func (*ExprAssignCoalesce) GetType ¶
func (n *ExprAssignCoalesce) GetType() Type
type ExprAssignConcat ¶
type ExprAssignConcat struct {
Position *position.Position
Var Vertex
EqualTkn *token.Token
Expr Vertex
}
ExprAssignConcat node
func (*ExprAssignConcat) Accept ¶
func (n *ExprAssignConcat) Accept(v Visitor)
func (*ExprAssignConcat) GetPosition ¶
func (n *ExprAssignConcat) GetPosition() *position.Position
func (*ExprAssignConcat) GetType ¶
func (n *ExprAssignConcat) GetType() Type
type ExprAssignDiv ¶
type ExprAssignDiv struct {
Position *position.Position
Var Vertex
EqualTkn *token.Token
Expr Vertex
}
ExprAssignDiv node
func (*ExprAssignDiv) Accept ¶
func (n *ExprAssignDiv) Accept(v Visitor)
func (*ExprAssignDiv) GetPosition ¶
func (n *ExprAssignDiv) GetPosition() *position.Position
func (*ExprAssignDiv) GetType ¶
func (n *ExprAssignDiv) GetType() Type
type ExprAssignMinus ¶
type ExprAssignMinus struct {
Position *position.Position
Var Vertex
EqualTkn *token.Token
Expr Vertex
}
ExprAssignMinus node
func (*ExprAssignMinus) Accept ¶
func (n *ExprAssignMinus) Accept(v Visitor)
func (*ExprAssignMinus) GetPosition ¶
func (n *ExprAssignMinus) GetPosition() *position.Position
func (*ExprAssignMinus) GetType ¶
func (n *ExprAssignMinus) GetType() Type
type ExprAssignMod ¶
type ExprAssignMod struct {
Position *position.Position
Var Vertex
EqualTkn *token.Token
Expr Vertex
}
ExprAssignMod node
func (*ExprAssignMod) Accept ¶
func (n *ExprAssignMod) Accept(v Visitor)
func (*ExprAssignMod) GetPosition ¶
func (n *ExprAssignMod) GetPosition() *position.Position
func (*ExprAssignMod) GetType ¶
func (n *ExprAssignMod) GetType() Type
type ExprAssignMul ¶
type ExprAssignMul struct {
Position *position.Position
Var Vertex
EqualTkn *token.Token
Expr Vertex
}
ExprAssignMul node
func (*ExprAssignMul) Accept ¶
func (n *ExprAssignMul) Accept(v Visitor)
func (*ExprAssignMul) GetPosition ¶
func (n *ExprAssignMul) GetPosition() *position.Position
func (*ExprAssignMul) GetType ¶
func (n *ExprAssignMul) GetType() Type
type ExprAssignPlus ¶
type ExprAssignPlus struct {
Position *position.Position
Var Vertex
EqualTkn *token.Token
Expr Vertex
}
ExprAssignPlus node
func (*ExprAssignPlus) Accept ¶
func (n *ExprAssignPlus) Accept(v Visitor)
func (*ExprAssignPlus) GetPosition ¶
func (n *ExprAssignPlus) GetPosition() *position.Position
func (*ExprAssignPlus) GetType ¶
func (n *ExprAssignPlus) GetType() Type
type ExprAssignPow ¶
type ExprAssignPow struct {
Position *position.Position
Var Vertex
EqualTkn *token.Token
Expr Vertex
}
ExprAssignPow node
func (*ExprAssignPow) Accept ¶
func (n *ExprAssignPow) Accept(v Visitor)
func (*ExprAssignPow) GetPosition ¶
func (n *ExprAssignPow) GetPosition() *position.Position
func (*ExprAssignPow) GetType ¶
func (n *ExprAssignPow) GetType() Type
type ExprAssignReference ¶
type ExprAssignReference struct {
Position *position.Position
Var Vertex
EqualTkn *token.Token
AmpersandTkn *token.Token
Expr Vertex
}
ExprAssignReference node
func (*ExprAssignReference) Accept ¶
func (n *ExprAssignReference) Accept(v Visitor)
func (*ExprAssignReference) GetPosition ¶
func (n *ExprAssignReference) GetPosition() *position.Position
func (*ExprAssignReference) GetType ¶
func (n *ExprAssignReference) GetType() Type
type ExprAssignShiftLeft ¶
type ExprAssignShiftLeft struct {
Position *position.Position
Var Vertex
EqualTkn *token.Token
Expr Vertex
}
ExprAssignShiftLeft node
func (*ExprAssignShiftLeft) Accept ¶
func (n *ExprAssignShiftLeft) Accept(v Visitor)
func (*ExprAssignShiftLeft) GetPosition ¶
func (n *ExprAssignShiftLeft) GetPosition() *position.Position
func (*ExprAssignShiftLeft) GetType ¶
func (n *ExprAssignShiftLeft) GetType() Type
type ExprAssignShiftRight ¶
type ExprAssignShiftRight struct {
Position *position.Position
Var Vertex
EqualTkn *token.Token
Expr Vertex
}
ExprAssignShiftRight node
func (*ExprAssignShiftRight) Accept ¶
func (n *ExprAssignShiftRight) Accept(v Visitor)
func (*ExprAssignShiftRight) GetPosition ¶
func (n *ExprAssignShiftRight) GetPosition() *position.Position
func (*ExprAssignShiftRight) GetType ¶
func (n *ExprAssignShiftRight) GetType() Type
type ExprBinaryBitwiseAnd ¶
type ExprBinaryBitwiseAnd struct {
Position *position.Position
Left Vertex
OpTkn *token.Token
Right Vertex
}
ExprBinaryBitwiseAnd node
func (*ExprBinaryBitwiseAnd) Accept ¶
func (n *ExprBinaryBitwiseAnd) Accept(v Visitor)
func (*ExprBinaryBitwiseAnd) GetPosition ¶
func (n *ExprBinaryBitwiseAnd) GetPosition() *position.Position
func (*ExprBinaryBitwiseAnd) GetType ¶
func (n *ExprBinaryBitwiseAnd) GetType() Type
type ExprBinaryBitwiseOr ¶
type ExprBinaryBitwiseOr struct {
Position *position.Position
Left Vertex
OpTkn *token.Token
Right Vertex
}
ExprBinaryBitwiseOr node
func (*ExprBinaryBitwiseOr) Accept ¶
func (n *ExprBinaryBitwiseOr) Accept(v Visitor)
func (*ExprBinaryBitwiseOr) GetPosition ¶
func (n *ExprBinaryBitwiseOr) GetPosition() *position.Position
func (*ExprBinaryBitwiseOr) GetType ¶
func (n *ExprBinaryBitwiseOr) GetType() Type
type ExprBinaryBitwiseXor ¶
type ExprBinaryBitwiseXor struct {
Position *position.Position
Left Vertex
OpTkn *token.Token
Right Vertex
}
ExprBinaryBitwiseXor node
func (*ExprBinaryBitwiseXor) Accept ¶
func (n *ExprBinaryBitwiseXor) Accept(v Visitor)
func (*ExprBinaryBitwiseXor) GetPosition ¶
func (n *ExprBinaryBitwiseXor) GetPosition() *position.Position
func (*ExprBinaryBitwiseXor) GetType ¶
func (n *ExprBinaryBitwiseXor) GetType() Type
type ExprBinaryBooleanAnd ¶
type ExprBinaryBooleanAnd struct {
Position *position.Position
Left Vertex
OpTkn *token.Token
Right Vertex
}
ExprBinaryBooleanAnd node
func (*ExprBinaryBooleanAnd) Accept ¶
func (n *ExprBinaryBooleanAnd) Accept(v Visitor)
func (*ExprBinaryBooleanAnd) GetPosition ¶
func (n *ExprBinaryBooleanAnd) GetPosition() *position.Position
func (*ExprBinaryBooleanAnd) GetType ¶
func (n *ExprBinaryBooleanAnd) GetType() Type
type ExprBinaryBooleanOr ¶
type ExprBinaryBooleanOr struct {
Position *position.Position
Left Vertex
OpTkn *token.Token
Right Vertex
}
ExprBinaryBooleanOr node
func (*ExprBinaryBooleanOr) Accept ¶
func (n *ExprBinaryBooleanOr) Accept(v Visitor)
func (*ExprBinaryBooleanOr) GetPosition ¶
func (n *ExprBinaryBooleanOr) GetPosition() *position.Position
func (*ExprBinaryBooleanOr) GetType ¶
func (n *ExprBinaryBooleanOr) GetType() Type
type ExprBinaryCoalesce ¶
type ExprBinaryCoalesce struct {
Position *position.Position
Left Vertex
OpTkn *token.Token
Right Vertex
}
ExprBinaryCoalesce node
func (*ExprBinaryCoalesce) Accept ¶
func (n *ExprBinaryCoalesce) Accept(v Visitor)
func (*ExprBinaryCoalesce) GetPosition ¶
func (n *ExprBinaryCoalesce) GetPosition() *position.Position
func (*ExprBinaryCoalesce) GetType ¶
func (n *ExprBinaryCoalesce) GetType() Type
type ExprBinaryConcat ¶
type ExprBinaryConcat struct {
Position *position.Position
Left Vertex
OpTkn *token.Token
Right Vertex
}
ExprBinaryConcat node
func (*ExprBinaryConcat) Accept ¶
func (n *ExprBinaryConcat) Accept(v Visitor)
func (*ExprBinaryConcat) GetPosition ¶
func (n *ExprBinaryConcat) GetPosition() *position.Position
func (*ExprBinaryConcat) GetType ¶
func (n *ExprBinaryConcat) GetType() Type
type ExprBinaryDiv ¶
type ExprBinaryDiv struct {
Position *position.Position
Left Vertex
OpTkn *token.Token
Right Vertex
}
ExprBinaryDiv node
func (*ExprBinaryDiv) Accept ¶
func (n *ExprBinaryDiv) Accept(v Visitor)
func (*ExprBinaryDiv) GetPosition ¶
func (n *ExprBinaryDiv) GetPosition() *position.Position
func (*ExprBinaryDiv) GetType ¶
func (n *ExprBinaryDiv) GetType() Type
type ExprBinaryEqual ¶
type ExprBinaryEqual struct {
Position *position.Position
Left Vertex
OpTkn *token.Token
Right Vertex
}
ExprBinaryEqual node
func (*ExprBinaryEqual) Accept ¶
func (n *ExprBinaryEqual) Accept(v Visitor)
func (*ExprBinaryEqual) GetPosition ¶
func (n *ExprBinaryEqual) GetPosition() *position.Position
func (*ExprBinaryEqual) GetType ¶
func (n *ExprBinaryEqual) GetType() Type
type ExprBinaryGreater ¶
type ExprBinaryGreater struct {
Position *position.Position
Left Vertex
OpTkn *token.Token
Right Vertex
}
ExprBinaryGreater node
func (*ExprBinaryGreater) Accept ¶
func (n *ExprBinaryGreater) Accept(v Visitor)
func (*ExprBinaryGreater) GetPosition ¶
func (n *ExprBinaryGreater) GetPosition() *position.Position
func (*ExprBinaryGreater) GetType ¶
func (n *ExprBinaryGreater) GetType() Type
type ExprBinaryGreaterOrEqual ¶
type ExprBinaryGreaterOrEqual struct {
Position *position.Position
Left Vertex
OpTkn *token.Token
Right Vertex
}
ExprBinaryGreaterOrEqual node
func (*ExprBinaryGreaterOrEqual) Accept ¶
func (n *ExprBinaryGreaterOrEqual) Accept(v Visitor)
func (*ExprBinaryGreaterOrEqual) GetPosition ¶
func (n *ExprBinaryGreaterOrEqual) GetPosition() *position.Position
func (*ExprBinaryGreaterOrEqual) GetType ¶
func (n *ExprBinaryGreaterOrEqual) GetType() Type
type ExprBinaryIdentical ¶
type ExprBinaryIdentical struct {
Position *position.Position
Left Vertex
OpTkn *token.Token
Right Vertex
}
ExprBinaryIdentical node
func (*ExprBinaryIdentical) Accept ¶
func (n *ExprBinaryIdentical) Accept(v Visitor)
func (*ExprBinaryIdentical) GetPosition ¶
func (n *ExprBinaryIdentical) GetPosition() *position.Position
func (*ExprBinaryIdentical) GetType ¶
func (n *ExprBinaryIdentical) GetType() Type
type ExprBinaryLogicalAnd ¶
type ExprBinaryLogicalAnd struct {
Position *position.Position
Left Vertex
OpTkn *token.Token
Right Vertex
}
ExprBinaryLogicalAnd node
func (*ExprBinaryLogicalAnd) Accept ¶
func (n *ExprBinaryLogicalAnd) Accept(v Visitor)
func (*ExprBinaryLogicalAnd) GetPosition ¶
func (n *ExprBinaryLogicalAnd) GetPosition() *position.Position
func (*ExprBinaryLogicalAnd) GetType ¶
func (n *ExprBinaryLogicalAnd) GetType() Type
type ExprBinaryLogicalOr ¶
type ExprBinaryLogicalOr struct {
Position *position.Position
Left Vertex
OpTkn *token.Token
Right Vertex
}
ExprBinaryLogicalOr node
func (*ExprBinaryLogicalOr) Accept ¶
func (n *ExprBinaryLogicalOr) Accept(v Visitor)
func (*ExprBinaryLogicalOr) GetPosition ¶
func (n *ExprBinaryLogicalOr) GetPosition() *position.Position
func (*ExprBinaryLogicalOr) GetType ¶
func (n *ExprBinaryLogicalOr) GetType() Type
type ExprBinaryLogicalXor ¶
type ExprBinaryLogicalXor struct {
Position *position.Position
Left Vertex
OpTkn *token.Token
Right Vertex
}
ExprBinaryLogicalXor node
func (*ExprBinaryLogicalXor) Accept ¶
func (n *ExprBinaryLogicalXor) Accept(v Visitor)
func (*ExprBinaryLogicalXor) GetPosition ¶
func (n *ExprBinaryLogicalXor) GetPosition() *position.Position
func (*ExprBinaryLogicalXor) GetType ¶
func (n *ExprBinaryLogicalXor) GetType() Type
type ExprBinaryMinus ¶
type ExprBinaryMinus struct {
Position *position.Position
Left Vertex
OpTkn *token.Token
Right Vertex
}
ExprBinaryMinus node
func (*ExprBinaryMinus) Accept ¶
func (n *ExprBinaryMinus) Accept(v Visitor)
func (*ExprBinaryMinus) GetPosition ¶
func (n *ExprBinaryMinus) GetPosition() *position.Position
func (*ExprBinaryMinus) GetType ¶
func (n *ExprBinaryMinus) GetType() Type
type ExprBinaryMod ¶
type ExprBinaryMod struct {
Position *position.Position
Left Vertex
OpTkn *token.Token
Right Vertex
}
ExprBinaryMod node
func (*ExprBinaryMod) Accept ¶
func (n *ExprBinaryMod) Accept(v Visitor)
func (*ExprBinaryMod) GetPosition ¶
func (n *ExprBinaryMod) GetPosition() *position.Position
func (*ExprBinaryMod) GetType ¶
func (n *ExprBinaryMod) GetType() Type
type ExprBinaryMul ¶
type ExprBinaryMul struct {
Position *position.Position
Left Vertex
OpTkn *token.Token
Right Vertex
}
ExprBinaryMul node
func (*ExprBinaryMul) Accept ¶
func (n *ExprBinaryMul) Accept(v Visitor)
func (*ExprBinaryMul) GetPosition ¶
func (n *ExprBinaryMul) GetPosition() *position.Position
func (*ExprBinaryMul) GetType ¶
func (n *ExprBinaryMul) GetType() Type
type ExprBinaryNotEqual ¶
type ExprBinaryNotEqual struct {
Position *position.Position
Left Vertex
OpTkn *token.Token
Right Vertex
}
ExprBinaryNotEqual node
func (*ExprBinaryNotEqual) Accept ¶
func (n *ExprBinaryNotEqual) Accept(v Visitor)
func (*ExprBinaryNotEqual) GetPosition ¶
func (n *ExprBinaryNotEqual) GetPosition() *position.Position
func (*ExprBinaryNotEqual) GetType ¶
func (n *ExprBinaryNotEqual) GetType() Type
type ExprBinaryNotIdentical ¶
type ExprBinaryNotIdentical struct {
Position *position.Position
Left Vertex
OpTkn *token.Token
Right Vertex
}
ExprBinaryNotIdentical node
func (*ExprBinaryNotIdentical) Accept ¶
func (n *ExprBinaryNotIdentical) Accept(v Visitor)
func (*ExprBinaryNotIdentical) GetPosition ¶
func (n *ExprBinaryNotIdentical) GetPosition() *position.Position
func (*ExprBinaryNotIdentical) GetType ¶
func (n *ExprBinaryNotIdentical) GetType() Type
type ExprBinaryPlus ¶
type ExprBinaryPlus struct {
Position *position.Position
Left Vertex
OpTkn *token.Token
Right Vertex
}
ExprBinaryPlus node
func (*ExprBinaryPlus) Accept ¶
func (n *ExprBinaryPlus) Accept(v Visitor)
func (*ExprBinaryPlus) GetPosition ¶
func (n *ExprBinaryPlus) GetPosition() *position.Position
func (*ExprBinaryPlus) GetType ¶
func (n *ExprBinaryPlus) GetType() Type
type ExprBinaryPow ¶
type ExprBinaryPow struct {
Position *position.Position
Left Vertex
OpTkn *token.Token
Right Vertex
}
ExprBinaryPow node
func (*ExprBinaryPow) Accept ¶
func (n *ExprBinaryPow) Accept(v Visitor)
func (*ExprBinaryPow) GetPosition ¶
func (n *ExprBinaryPow) GetPosition() *position.Position
func (*ExprBinaryPow) GetType ¶
func (n *ExprBinaryPow) GetType() Type
type ExprBinaryShiftLeft ¶
type ExprBinaryShiftLeft struct {
Position *position.Position
Left Vertex
OpTkn *token.Token
Right Vertex
}
ExprBinaryShiftLeft node
func (*ExprBinaryShiftLeft) Accept ¶
func (n *ExprBinaryShiftLeft) Accept(v Visitor)
func (*ExprBinaryShiftLeft) GetPosition ¶
func (n *ExprBinaryShiftLeft) GetPosition() *position.Position
func (*ExprBinaryShiftLeft) GetType ¶
func (n *ExprBinaryShiftLeft) GetType() Type
type ExprBinaryShiftRight ¶
type ExprBinaryShiftRight struct {
Position *position.Position
Left Vertex
OpTkn *token.Token
Right Vertex
}
ExprBinaryShiftRight node
func (*ExprBinaryShiftRight) Accept ¶
func (n *ExprBinaryShiftRight) Accept(v Visitor)
func (*ExprBinaryShiftRight) GetPosition ¶
func (n *ExprBinaryShiftRight) GetPosition() *position.Position
func (*ExprBinaryShiftRight) GetType ¶
func (n *ExprBinaryShiftRight) GetType() Type
type ExprBinarySmaller ¶
type ExprBinarySmaller struct {
Position *position.Position
Left Vertex
OpTkn *token.Token
Right Vertex
}
ExprBinarySmaller node
func (*ExprBinarySmaller) Accept ¶
func (n *ExprBinarySmaller) Accept(v Visitor)
func (*ExprBinarySmaller) GetPosition ¶
func (n *ExprBinarySmaller) GetPosition() *position.Position
func (*ExprBinarySmaller) GetType ¶
func (n *ExprBinarySmaller) GetType() Type
type ExprBinarySmallerOrEqual ¶
type ExprBinarySmallerOrEqual struct {
Position *position.Position
Left Vertex
OpTkn *token.Token
Right Vertex
}
ExprBinarySmallerOrEqual node
func (*ExprBinarySmallerOrEqual) Accept ¶
func (n *ExprBinarySmallerOrEqual) Accept(v Visitor)
func (*ExprBinarySmallerOrEqual) GetPosition ¶
func (n *ExprBinarySmallerOrEqual) GetPosition() *position.Position
func (*ExprBinarySmallerOrEqual) GetType ¶
func (n *ExprBinarySmallerOrEqual) GetType() Type
type ExprBinarySpaceship ¶
type ExprBinarySpaceship struct {
Position *position.Position
Left Vertex
OpTkn *token.Token
Right Vertex
}
ExprBinarySpaceship node
func (*ExprBinarySpaceship) Accept ¶
func (n *ExprBinarySpaceship) Accept(v Visitor)
func (*ExprBinarySpaceship) GetPosition ¶
func (n *ExprBinarySpaceship) GetPosition() *position.Position
func (*ExprBinarySpaceship) GetType ¶
func (n *ExprBinarySpaceship) GetType() Type
type ExprBitwiseNot ¶
ExprBitwiseNot node
func (*ExprBitwiseNot) Accept ¶
func (n *ExprBitwiseNot) Accept(v Visitor)
func (*ExprBitwiseNot) GetPosition ¶
func (n *ExprBitwiseNot) GetPosition() *position.Position
func (*ExprBitwiseNot) GetType ¶
func (n *ExprBitwiseNot) GetType() Type
type ExprBooleanNot ¶
ExprBooleanNot node
func (*ExprBooleanNot) Accept ¶
func (n *ExprBooleanNot) Accept(v Visitor)
func (*ExprBooleanNot) GetPosition ¶
func (n *ExprBooleanNot) GetPosition() *position.Position
func (*ExprBooleanNot) GetType ¶
func (n *ExprBooleanNot) GetType() Type
type ExprBrackets ¶
type ExprBrackets struct {
Position *position.Position
OpenParenthesisTkn *token.Token
Expr Vertex
CloseParenthesisTkn *token.Token
}
func (*ExprBrackets) Accept ¶
func (n *ExprBrackets) Accept(v Visitor)
func (*ExprBrackets) GetPosition ¶
func (n *ExprBrackets) GetPosition() *position.Position
func (*ExprBrackets) GetType ¶
func (n *ExprBrackets) GetType() Type
type ExprCastArray ¶
ExprCastArray node
func (*ExprCastArray) Accept ¶
func (n *ExprCastArray) Accept(v Visitor)
func (*ExprCastArray) GetPosition ¶
func (n *ExprCastArray) GetPosition() *position.Position
func (*ExprCastArray) GetType ¶
func (n *ExprCastArray) GetType() Type
type ExprCastBool ¶
ExprCastBool node
func (*ExprCastBool) Accept ¶
func (n *ExprCastBool) Accept(v Visitor)
func (*ExprCastBool) GetPosition ¶
func (n *ExprCastBool) GetPosition() *position.Position
func (*ExprCastBool) GetType ¶
func (n *ExprCastBool) GetType() Type
type ExprCastDouble ¶
ExprCastDouble node
func (*ExprCastDouble) Accept ¶
func (n *ExprCastDouble) Accept(v Visitor)
func (*ExprCastDouble) GetPosition ¶
func (n *ExprCastDouble) GetPosition() *position.Position
func (*ExprCastDouble) GetType ¶
func (n *ExprCastDouble) GetType() Type
type ExprCastInt ¶
ExprCastInt node
func (*ExprCastInt) Accept ¶
func (n *ExprCastInt) Accept(v Visitor)
func (*ExprCastInt) GetPosition ¶
func (n *ExprCastInt) GetPosition() *position.Position
func (*ExprCastInt) GetType ¶
func (n *ExprCastInt) GetType() Type
type ExprCastObject ¶
ExprCastObject node
func (*ExprCastObject) Accept ¶
func (n *ExprCastObject) Accept(v Visitor)
func (*ExprCastObject) GetPosition ¶
func (n *ExprCastObject) GetPosition() *position.Position
func (*ExprCastObject) GetType ¶
func (n *ExprCastObject) GetType() Type
type ExprCastString ¶
ExprCastString node
func (*ExprCastString) Accept ¶
func (n *ExprCastString) Accept(v Visitor)
func (*ExprCastString) GetPosition ¶
func (n *ExprCastString) GetPosition() *position.Position
func (*ExprCastString) GetType ¶
func (n *ExprCastString) GetType() Type
type ExprCastUnset ¶
ExprCastUnset node
func (*ExprCastUnset) Accept ¶
func (n *ExprCastUnset) Accept(v Visitor)
func (*ExprCastUnset) GetPosition ¶
func (n *ExprCastUnset) GetPosition() *position.Position
func (*ExprCastUnset) GetType ¶
func (n *ExprCastUnset) GetType() Type
type ExprClassConstFetch ¶
type ExprClassConstFetch struct {
Position *position.Position
Class Vertex
DoubleColonTkn *token.Token
Const Vertex
}
ExprClassConstFetch node
func (*ExprClassConstFetch) Accept ¶
func (n *ExprClassConstFetch) Accept(v Visitor)
func (*ExprClassConstFetch) GetPosition ¶
func (n *ExprClassConstFetch) GetPosition() *position.Position
func (*ExprClassConstFetch) GetType ¶
func (n *ExprClassConstFetch) GetType() Type
type ExprClosure ¶
type ExprClosure struct {
Position *position.Position
AttrGroups []Vertex
StaticTkn *token.Token
FunctionTkn *token.Token
AmpersandTkn *token.Token
OpenParenthesisTkn *token.Token
Params []Vertex
SeparatorTkns []*token.Token
CloseParenthesisTkn *token.Token
UseTkn *token.Token
UseOpenParenthesisTkn *token.Token
Uses []Vertex
UseSeparatorTkns []*token.Token
UseCloseParenthesisTkn *token.Token
ColonTkn *token.Token
ReturnType Vertex
OpenCurlyBracketTkn *token.Token
Stmts []Vertex
CloseCurlyBracketTkn *token.Token
}
ExprClosure node
func (*ExprClosure) Accept ¶
func (n *ExprClosure) Accept(v Visitor)
func (*ExprClosure) GetPosition ¶
func (n *ExprClosure) GetPosition() *position.Position
func (*ExprClosure) GetType ¶
func (n *ExprClosure) GetType() Type
type ExprClosureUse ¶
ExprClosureUse node
func (*ExprClosureUse) Accept ¶
func (n *ExprClosureUse) Accept(v Visitor)
func (*ExprClosureUse) GetPosition ¶
func (n *ExprClosureUse) GetPosition() *position.Position
func (*ExprClosureUse) GetType ¶
func (n *ExprClosureUse) GetType() Type
type ExprConstFetch ¶
ExprConstFetch node
func (*ExprConstFetch) Accept ¶
func (n *ExprConstFetch) Accept(v Visitor)
func (*ExprConstFetch) GetPosition ¶
func (n *ExprConstFetch) GetPosition() *position.Position
func (*ExprConstFetch) GetType ¶
func (n *ExprConstFetch) GetType() Type
type ExprEmpty ¶
type ExprEmpty struct {
Position *position.Position
EmptyTkn *token.Token
OpenParenthesisTkn *token.Token
Expr Vertex
CloseParenthesisTkn *token.Token
}
ExprEmpty node
func (*ExprEmpty) GetPosition ¶
type ExprErrorSuppress ¶
ExprErrorSuppress node
func (*ExprErrorSuppress) Accept ¶
func (n *ExprErrorSuppress) Accept(v Visitor)
func (*ExprErrorSuppress) GetPosition ¶
func (n *ExprErrorSuppress) GetPosition() *position.Position
func (*ExprErrorSuppress) GetType ¶
func (n *ExprErrorSuppress) GetType() Type
type ExprEval ¶
type ExprEval struct {
Position *position.Position
EvalTkn *token.Token
OpenParenthesisTkn *token.Token
Expr Vertex
CloseParenthesisTkn *token.Token
}
ExprEval node
func (*ExprEval) GetPosition ¶
type ExprExit ¶
type ExprExit struct {
Position *position.Position
ExitTkn *token.Token
OpenParenthesisTkn *token.Token
Expr Vertex
CloseParenthesisTkn *token.Token
}
ExprExit node
func (*ExprExit) GetPosition ¶
type ExprFunctionCall ¶
type ExprFunctionCall struct {
Position *position.Position
Function Vertex
OpenParenthesisTkn *token.Token
Args []Vertex
SeparatorTkns []*token.Token
EllipsisTkn *token.Token
CloseParenthesisTkn *token.Token
}
ExprFunctionCall node
func (*ExprFunctionCall) Accept ¶
func (n *ExprFunctionCall) Accept(v Visitor)
func (*ExprFunctionCall) GetPosition ¶
func (n *ExprFunctionCall) GetPosition() *position.Position
func (*ExprFunctionCall) GetType ¶
func (n *ExprFunctionCall) GetType() Type
type ExprInclude ¶
ExprInclude node
func (*ExprInclude) Accept ¶
func (n *ExprInclude) Accept(v Visitor)
func (*ExprInclude) GetPosition ¶
func (n *ExprInclude) GetPosition() *position.Position
func (*ExprInclude) GetType ¶
func (n *ExprInclude) GetType() Type
type ExprIncludeOnce ¶
ExprIncludeOnce node
func (*ExprIncludeOnce) Accept ¶
func (n *ExprIncludeOnce) Accept(v Visitor)
func (*ExprIncludeOnce) GetPosition ¶
func (n *ExprIncludeOnce) GetPosition() *position.Position
func (*ExprIncludeOnce) GetType ¶
func (n *ExprIncludeOnce) GetType() Type
type ExprInstanceOf ¶
type ExprInstanceOf struct {
Position *position.Position
Expr Vertex
InstanceOfTkn *token.Token
Class Vertex
}
ExprInstanceOf node
func (*ExprInstanceOf) Accept ¶
func (n *ExprInstanceOf) Accept(v Visitor)
func (*ExprInstanceOf) GetPosition ¶
func (n *ExprInstanceOf) GetPosition() *position.Position
func (*ExprInstanceOf) GetType ¶
func (n *ExprInstanceOf) GetType() Type
type ExprIsset ¶
type ExprIsset struct {
Position *position.Position
IssetTkn *token.Token
OpenParenthesisTkn *token.Token
Vars []Vertex
SeparatorTkns []*token.Token
CloseParenthesisTkn *token.Token
}
ExprIsset node
func (*ExprIsset) GetPosition ¶
type ExprList ¶
type ExprList struct {
Position *position.Position
ListTkn *token.Token
OpenBracketTkn *token.Token
Items []Vertex
SeparatorTkns []*token.Token
CloseBracketTkn *token.Token
}
ExprList node
func (*ExprList) GetPosition ¶
type ExprMatch ¶
type ExprMatch struct {
Position *position.Position
MatchTkn *token.Token
OpenParenthesisTkn *token.Token
Expr Vertex
CloseParenthesisTkn *token.Token
OpenCurlyBracketTkn *token.Token
Arms []Vertex
SeparatorTkns []*token.Token
CloseCurlyBracketTkn *token.Token
}
ExprMatch node is match(expr) { list<MatchArm> }
func (*ExprMatch) GetPosition ¶
type ExprMethodCall ¶
type ExprMethodCall struct {
Position *position.Position
Var Vertex
ObjectOperatorTkn *token.Token
OpenCurlyBracketTkn *token.Token
Method Vertex
CloseCurlyBracketTkn *token.Token
OpenParenthesisTkn *token.Token
Args []Vertex
SeparatorTkns []*token.Token
EllipsisTkn *token.Token
CloseParenthesisTkn *token.Token
}
ExprMethodCall node
func (*ExprMethodCall) Accept ¶
func (n *ExprMethodCall) Accept(v Visitor)
func (*ExprMethodCall) GetPosition ¶
func (n *ExprMethodCall) GetPosition() *position.Position
func (*ExprMethodCall) GetType ¶
func (n *ExprMethodCall) GetType() Type
type ExprNew ¶
type ExprNew struct {
Position *position.Position
NewTkn *token.Token
Class Vertex
OpenParenthesisTkn *token.Token
Args []Vertex
SeparatorTkns []*token.Token
CloseParenthesisTkn *token.Token
}
ExprNew node
func (*ExprNew) GetPosition ¶
type ExprNullsafeMethodCall ¶
type ExprNullsafeMethodCall struct {
Position *position.Position
Var Vertex
ObjectOperatorTkn *token.Token
OpenCurlyBracketTkn *token.Token
Method Vertex
CloseCurlyBracketTkn *token.Token
OpenParenthesisTkn *token.Token
Args []Vertex
SeparatorTkns []*token.Token
EllipsisTkn *token.Token
CloseParenthesisTkn *token.Token
}
ExprNullsafeMethodCall node is $a?->methodName()
func (*ExprNullsafeMethodCall) Accept ¶
func (n *ExprNullsafeMethodCall) Accept(v Visitor)
func (*ExprNullsafeMethodCall) GetPosition ¶
func (n *ExprNullsafeMethodCall) GetPosition() *position.Position
func (*ExprNullsafeMethodCall) GetType ¶
func (n *ExprNullsafeMethodCall) GetType() Type
type ExprNullsafePropertyFetch ¶
type ExprNullsafePropertyFetch struct {
Position *position.Position
Var Vertex
ObjectOperatorTkn *token.Token
OpenCurlyBracketTkn *token.Token
Prop Vertex
CloseCurlyBracketTkn *token.Token
}
ExprNullsafePropertyFetch node
func (*ExprNullsafePropertyFetch) Accept ¶
func (n *ExprNullsafePropertyFetch) Accept(v Visitor)
func (*ExprNullsafePropertyFetch) GetPosition ¶
func (n *ExprNullsafePropertyFetch) GetPosition() *position.Position
func (*ExprNullsafePropertyFetch) GetType ¶
func (n *ExprNullsafePropertyFetch) GetType() Type
type ExprPostDec ¶
ExprPostDec node
func (*ExprPostDec) Accept ¶
func (n *ExprPostDec) Accept(v Visitor)
func (*ExprPostDec) GetPosition ¶
func (n *ExprPostDec) GetPosition() *position.Position
func (*ExprPostDec) GetType ¶
func (n *ExprPostDec) GetType() Type
type ExprPostInc ¶
ExprPostInc node
func (*ExprPostInc) Accept ¶
func (n *ExprPostInc) Accept(v Visitor)
func (*ExprPostInc) GetPosition ¶
func (n *ExprPostInc) GetPosition() *position.Position
func (*ExprPostInc) GetType ¶
func (n *ExprPostInc) GetType() Type
type ExprPreDec ¶
ExprPreDec node
func (*ExprPreDec) Accept ¶
func (n *ExprPreDec) Accept(v Visitor)
func (*ExprPreDec) GetPosition ¶
func (n *ExprPreDec) GetPosition() *position.Position
func (*ExprPreDec) GetType ¶
func (n *ExprPreDec) GetType() Type
type ExprPreInc ¶
ExprPreInc node
func (*ExprPreInc) Accept ¶
func (n *ExprPreInc) Accept(v Visitor)
func (*ExprPreInc) GetPosition ¶
func (n *ExprPreInc) GetPosition() *position.Position
func (*ExprPreInc) GetType ¶
func (n *ExprPreInc) GetType() Type
type ExprPropertyFetch ¶
type ExprPropertyFetch struct {
Position *position.Position
Var Vertex
ObjectOperatorTkn *token.Token
OpenCurlyBracketTkn *token.Token
Prop Vertex
CloseCurlyBracketTkn *token.Token
}
ExprPropertyFetch node
func (*ExprPropertyFetch) Accept ¶
func (n *ExprPropertyFetch) Accept(v Visitor)
func (*ExprPropertyFetch) GetPosition ¶
func (n *ExprPropertyFetch) GetPosition() *position.Position
func (*ExprPropertyFetch) GetType ¶
func (n *ExprPropertyFetch) GetType() Type
type ExprRequire ¶
ExprRequire node
func (*ExprRequire) Accept ¶
func (n *ExprRequire) Accept(v Visitor)
func (*ExprRequire) GetPosition ¶
func (n *ExprRequire) GetPosition() *position.Position
func (*ExprRequire) GetType ¶
func (n *ExprRequire) GetType() Type
type ExprRequireOnce ¶
ExprRequireOnce node
func (*ExprRequireOnce) Accept ¶
func (n *ExprRequireOnce) Accept(v Visitor)
func (*ExprRequireOnce) GetPosition ¶
func (n *ExprRequireOnce) GetPosition() *position.Position
func (*ExprRequireOnce) GetType ¶
func (n *ExprRequireOnce) GetType() Type
type ExprShellExec ¶
type ExprShellExec struct {
Position *position.Position
OpenBacktickTkn *token.Token
Parts []Vertex
CloseBacktickTkn *token.Token
}
ExprShellExec node
func (*ExprShellExec) Accept ¶
func (n *ExprShellExec) Accept(v Visitor)
func (*ExprShellExec) GetPosition ¶
func (n *ExprShellExec) GetPosition() *position.Position
func (*ExprShellExec) GetType ¶
func (n *ExprShellExec) GetType() Type
type ExprStaticCall ¶
type ExprStaticCall struct {
Position *position.Position
Class Vertex
DoubleColonTkn *token.Token
OpenCurlyBracketTkn *token.Token
Call Vertex
CloseCurlyBracketTkn *token.Token
OpenParenthesisTkn *token.Token
Args []Vertex
SeparatorTkns []*token.Token
EllipsisTkn *token.Token
CloseParenthesisTkn *token.Token
}
ExprStaticCall node
func (*ExprStaticCall) Accept ¶
func (n *ExprStaticCall) Accept(v Visitor)
func (*ExprStaticCall) GetPosition ¶
func (n *ExprStaticCall) GetPosition() *position.Position
func (*ExprStaticCall) GetType ¶
func (n *ExprStaticCall) GetType() Type
type ExprStaticPropertyFetch ¶
type ExprStaticPropertyFetch struct {
Position *position.Position
Class Vertex
DoubleColonTkn *token.Token
Prop Vertex
}
ExprStaticPropertyFetch node
func (*ExprStaticPropertyFetch) Accept ¶
func (n *ExprStaticPropertyFetch) Accept(v Visitor)
func (*ExprStaticPropertyFetch) GetPosition ¶
func (n *ExprStaticPropertyFetch) GetPosition() *position.Position
func (*ExprStaticPropertyFetch) GetType ¶
func (n *ExprStaticPropertyFetch) GetType() Type
type ExprTernary ¶
type ExprTernary struct {
Position *position.Position
Cond Vertex
QuestionTkn *token.Token
IfTrue Vertex
ColonTkn *token.Token
IfFalse Vertex
}
ExprTernary node
func (*ExprTernary) Accept ¶
func (n *ExprTernary) Accept(v Visitor)
func (*ExprTernary) GetPosition ¶
func (n *ExprTernary) GetPosition() *position.Position
func (*ExprTernary) GetType ¶
func (n *ExprTernary) GetType() Type
type ExprThrow ¶
type ExprThrow struct {
Position *position.Position
ThrowTkn *token.Token
Expr Vertex
SemiColonTkn *token.Token
}
ExprThrow node is 'throw Expr'
func (*ExprThrow) GetPosition ¶
type ExprUnaryMinus ¶
ExprUnaryMinus node
func (*ExprUnaryMinus) Accept ¶
func (n *ExprUnaryMinus) Accept(v Visitor)
func (*ExprUnaryMinus) GetPosition ¶
func (n *ExprUnaryMinus) GetPosition() *position.Position
func (*ExprUnaryMinus) GetType ¶
func (n *ExprUnaryMinus) GetType() Type
type ExprUnaryPlus ¶
ExprUnaryPlus node
func (*ExprUnaryPlus) Accept ¶
func (n *ExprUnaryPlus) Accept(v Visitor)
func (*ExprUnaryPlus) GetPosition ¶
func (n *ExprUnaryPlus) GetPosition() *position.Position
func (*ExprUnaryPlus) GetType ¶
func (n *ExprUnaryPlus) GetType() Type
type ExprVariable ¶
type ExprVariable struct {
Position *position.Position
DollarTkn *token.Token
OpenCurlyBracketTkn *token.Token
Name Vertex
CloseCurlyBracketTkn *token.Token
}
ExprVariable node
func (*ExprVariable) Accept ¶
func (n *ExprVariable) Accept(v Visitor)
func (*ExprVariable) GetPosition ¶
func (n *ExprVariable) GetPosition() *position.Position
func (*ExprVariable) GetType ¶
func (n *ExprVariable) GetType() Type
type ExprYield ¶
type ExprYield struct {
Position *position.Position
YieldTkn *token.Token
Key Vertex
DoubleArrowTkn *token.Token
Val Vertex
}
ExprYield node
func (*ExprYield) GetPosition ¶
type ExprYieldFrom ¶
ExprYieldFrom node
func (*ExprYieldFrom) Accept ¶
func (n *ExprYieldFrom) Accept(v Visitor)
func (*ExprYieldFrom) GetPosition ¶
func (n *ExprYieldFrom) GetPosition() *position.Position
func (*ExprYieldFrom) GetType ¶
func (n *ExprYieldFrom) GetType() Type
type Identifier ¶
Identifier node
func (*Identifier) Accept ¶
func (n *Identifier) Accept(v Visitor)
func (*Identifier) GetPosition ¶
func (n *Identifier) GetPosition() *position.Position
func (*Identifier) GetType ¶
func (n *Identifier) GetType() Type
type Intersection ¶
type Intersection struct {
Position *position.Position
Types []Vertex
SeparatorTkns []*token.Token
}
Intersection node is Expr&Expr1&...
func (*Intersection) Accept ¶
func (n *Intersection) Accept(v Visitor)
func (*Intersection) GetPosition ¶
func (n *Intersection) GetPosition() *position.Position
func (*Intersection) GetType ¶
func (n *Intersection) GetType() Type
type MatchArm ¶
type MatchArm struct {
Position *position.Position
DefaultTkn *token.Token
DefaultCommaTkn *token.Token
Exprs []Vertex
SeparatorTkns []*token.Token
DoubleArrowTkn *token.Token
ReturnExpr Vertex
}
MatchArm node is [expr, expr1, ...]|default => return_expr
func (*MatchArm) GetPosition ¶
type Name ¶
func (*Name) GetPosition ¶
type NameFullyQualified ¶
type NameFullyQualified struct {
Position *position.Position
NsSeparatorTkn *token.Token
Parts []Vertex
SeparatorTkns []*token.Token
}
func (*NameFullyQualified) Accept ¶
func (n *NameFullyQualified) Accept(v Visitor)
func (*NameFullyQualified) GetPosition ¶
func (n *NameFullyQualified) GetPosition() *position.Position
func (*NameFullyQualified) GetType ¶
func (n *NameFullyQualified) GetType() Type
type NamePart ¶
func (*NamePart) GetPosition ¶
type NameRelative ¶
type NameRelative struct {
Position *position.Position
NsTkn *token.Token
NsSeparatorTkn *token.Token
Parts []Vertex
SeparatorTkns []*token.Token
}
func (*NameRelative) Accept ¶
func (n *NameRelative) Accept(v Visitor)
func (*NameRelative) GetPosition ¶
func (n *NameRelative) GetPosition() *position.Position
func (*NameRelative) GetType ¶
func (n *NameRelative) GetType() Type
type Parameter ¶
type Parameter struct {
Position *position.Position
AttrGroups []Vertex
Modifiers []Vertex
Type Vertex
AmpersandTkn *token.Token
VariadicTkn *token.Token
Var Vertex
EqualTkn *token.Token
DefaultValue Vertex
}
Parameter node
func (*Parameter) GetPosition ¶
type ScalarDnumber ¶
ScalarDnumber node
func (*ScalarDnumber) Accept ¶
func (n *ScalarDnumber) Accept(v Visitor)
func (*ScalarDnumber) GetPosition ¶
func (n *ScalarDnumber) GetPosition() *position.Position
func (*ScalarDnumber) GetType ¶
func (n *ScalarDnumber) GetType() Type
type ScalarEncapsed ¶
type ScalarEncapsed struct {
Position *position.Position
OpenQuoteTkn *token.Token
Parts []Vertex
CloseQuoteTkn *token.Token
}
ScalarEncapsed node
func (*ScalarEncapsed) Accept ¶
func (n *ScalarEncapsed) Accept(v Visitor)
func (*ScalarEncapsed) GetPosition ¶
func (n *ScalarEncapsed) GetPosition() *position.Position
func (*ScalarEncapsed) GetType ¶
func (n *ScalarEncapsed) GetType() Type
type ScalarEncapsedStringBrackets ¶
type ScalarEncapsedStringBrackets struct {
Position *position.Position
OpenCurlyBracketTkn *token.Token
Var Vertex
CloseCurlyBracketTkn *token.Token
}
ScalarEncapsedStringVar node
func (*ScalarEncapsedStringBrackets) Accept ¶
func (n *ScalarEncapsedStringBrackets) Accept(v Visitor)
func (*ScalarEncapsedStringBrackets) GetPosition ¶
func (n *ScalarEncapsedStringBrackets) GetPosition() *position.Position
func (*ScalarEncapsedStringBrackets) GetType ¶
func (n *ScalarEncapsedStringBrackets) GetType() Type
type ScalarEncapsedStringPart ¶
type ScalarEncapsedStringPart struct {
Position *position.Position
EncapsedStrTkn *token.Token
Value []byte
}
ScalarEncapsedStringPart node
func (*ScalarEncapsedStringPart) Accept ¶
func (n *ScalarEncapsedStringPart) Accept(v Visitor)
func (*ScalarEncapsedStringPart) GetPosition ¶
func (n *ScalarEncapsedStringPart) GetPosition() *position.Position
func (*ScalarEncapsedStringPart) GetType ¶
func (n *ScalarEncapsedStringPart) GetType() Type
type ScalarEncapsedStringVar ¶
type ScalarEncapsedStringVar struct {
Position *position.Position
DollarOpenCurlyBracketTkn *token.Token
Name Vertex
OpenSquareBracketTkn *token.Token
Dim Vertex
CloseSquareBracketTkn *token.Token
CloseCurlyBracketTkn *token.Token
}
ScalarEncapsedStringVar node
func (*ScalarEncapsedStringVar) Accept ¶
func (n *ScalarEncapsedStringVar) Accept(v Visitor)
func (*ScalarEncapsedStringVar) GetPosition ¶
func (n *ScalarEncapsedStringVar) GetPosition() *position.Position
func (*ScalarEncapsedStringVar) GetType ¶
func (n *ScalarEncapsedStringVar) GetType() Type
type ScalarHeredoc ¶
type ScalarHeredoc struct {
Position *position.Position
OpenHeredocTkn *token.Token
Parts []Vertex
CloseHeredocTkn *token.Token
}
ScalarHeredoc node
func (*ScalarHeredoc) Accept ¶
func (n *ScalarHeredoc) Accept(v Visitor)
func (*ScalarHeredoc) GetPosition ¶
func (n *ScalarHeredoc) GetPosition() *position.Position
func (*ScalarHeredoc) GetType ¶
func (n *ScalarHeredoc) GetType() Type
type ScalarLnumber ¶
ScalarLnumber node
func (*ScalarLnumber) Accept ¶
func (n *ScalarLnumber) Accept(v Visitor)
func (*ScalarLnumber) GetPosition ¶
func (n *ScalarLnumber) GetPosition() *position.Position
func (*ScalarLnumber) GetType ¶
func (n *ScalarLnumber) GetType() Type
type ScalarMagicConstant ¶
type ScalarMagicConstant struct {
Position *position.Position
MagicConstTkn *token.Token
Value []byte
}
ScalarMagicConstant node
func (*ScalarMagicConstant) Accept ¶
func (n *ScalarMagicConstant) Accept(v Visitor)
func (*ScalarMagicConstant) GetPosition ¶
func (n *ScalarMagicConstant) GetPosition() *position.Position
func (*ScalarMagicConstant) GetType ¶
func (n *ScalarMagicConstant) GetType() Type
type ScalarString ¶
type ScalarString struct {
Position *position.Position
MinusTkn *token.Token
StringTkn *token.Token
Value []byte
}
ScalarString node
func (*ScalarString) Accept ¶
func (n *ScalarString) Accept(v Visitor)
func (*ScalarString) GetPosition ¶
func (n *ScalarString) GetPosition() *position.Position
func (*ScalarString) GetType ¶
func (n *ScalarString) GetType() Type
type StmtBreak ¶
type StmtBreak struct {
Position *position.Position
BreakTkn *token.Token
Expr Vertex
SemiColonTkn *token.Token
}
StmtBreak node
func (*StmtBreak) GetPosition ¶
type StmtCase ¶
type StmtCase struct {
Position *position.Position
CaseTkn *token.Token
Cond Vertex
CaseSeparatorTkn *token.Token
Stmts []Vertex
}
StmtCase node
func (*StmtCase) GetPosition ¶
type StmtCatch ¶
type StmtCatch struct {
Position *position.Position
CatchTkn *token.Token
OpenParenthesisTkn *token.Token
Types []Vertex
SeparatorTkns []*token.Token
Var Vertex
CloseParenthesisTkn *token.Token
OpenCurlyBracketTkn *token.Token
Stmts []Vertex
CloseCurlyBracketTkn *token.Token
}
StmtCatch node
func (*StmtCatch) GetPosition ¶
type StmtClass ¶
type StmtClass struct {
Position *position.Position
AttrGroups []Vertex
Modifiers []Vertex
ClassTkn *token.Token
Name Vertex
OpenParenthesisTkn *token.Token
Args []Vertex
SeparatorTkns []*token.Token
CloseParenthesisTkn *token.Token
ExtendsTkn *token.Token
Extends Vertex
ImplementsTkn *token.Token
Implements []Vertex
ImplementsSeparatorTkns []*token.Token
OpenCurlyBracketTkn *token.Token
Stmts []Vertex
CloseCurlyBracketTkn *token.Token
}
StmtClass node
func (*StmtClass) GetPosition ¶
type StmtClassConstList ¶
type StmtClassConstList struct {
Position *position.Position
AttrGroups []Vertex
Modifiers []Vertex
ConstTkn *token.Token
Consts []Vertex
SeparatorTkns []*token.Token
SemiColonTkn *token.Token
}
StmtClassConstList node
func (*StmtClassConstList) Accept ¶
func (n *StmtClassConstList) Accept(v Visitor)
func (*StmtClassConstList) GetPosition ¶
func (n *StmtClassConstList) GetPosition() *position.Position
func (*StmtClassConstList) GetType ¶
func (n *StmtClassConstList) GetType() Type
type StmtClassMethod ¶
type StmtClassMethod struct {
Position *position.Position
AttrGroups []Vertex
Modifiers []Vertex
FunctionTkn *token.Token
AmpersandTkn *token.Token
Name Vertex
OpenParenthesisTkn *token.Token
Params []Vertex
SeparatorTkns []*token.Token
CloseParenthesisTkn *token.Token
ColonTkn *token.Token
ReturnType Vertex
Stmt Vertex
}
StmtClassMethod node
func (*StmtClassMethod) Accept ¶
func (n *StmtClassMethod) Accept(v Visitor)
func (*StmtClassMethod) GetPosition ¶
func (n *StmtClassMethod) GetPosition() *position.Position
func (*StmtClassMethod) GetType ¶
func (n *StmtClassMethod) GetType() Type
type StmtConstList ¶
type StmtConstList struct {
Position *position.Position
ConstTkn *token.Token
Consts []Vertex
SeparatorTkns []*token.Token
SemiColonTkn *token.Token
}
StmtConstList node
func (*StmtConstList) Accept ¶
func (n *StmtConstList) Accept(v Visitor)
func (*StmtConstList) GetPosition ¶
func (n *StmtConstList) GetPosition() *position.Position
func (*StmtConstList) GetType ¶
func (n *StmtConstList) GetType() Type
type StmtConstant ¶
type StmtConstant struct {
Position *position.Position
Name Vertex
EqualTkn *token.Token
Expr Vertex
}
StmtConstant node
func (*StmtConstant) Accept ¶
func (n *StmtConstant) Accept(v Visitor)
func (*StmtConstant) GetPosition ¶
func (n *StmtConstant) GetPosition() *position.Position
func (*StmtConstant) GetType ¶
func (n *StmtConstant) GetType() Type
type StmtContinue ¶
type StmtContinue struct {
Position *position.Position
ContinueTkn *token.Token
Expr Vertex
SemiColonTkn *token.Token
}
StmtContinue node
func (*StmtContinue) Accept ¶
func (n *StmtContinue) Accept(v Visitor)
func (*StmtContinue) GetPosition ¶
func (n *StmtContinue) GetPosition() *position.Position
func (*StmtContinue) GetType ¶
func (n *StmtContinue) GetType() Type
type StmtDeclare ¶
type StmtDeclare struct {
Position *position.Position
DeclareTkn *token.Token
OpenParenthesisTkn *token.Token
Consts []Vertex
SeparatorTkns []*token.Token
CloseParenthesisTkn *token.Token
ColonTkn *token.Token
Stmt Vertex
EndDeclareTkn *token.Token
SemiColonTkn *token.Token
}
StmtDeclare node
func (*StmtDeclare) Accept ¶
func (n *StmtDeclare) Accept(v Visitor)
func (*StmtDeclare) GetPosition ¶
func (n *StmtDeclare) GetPosition() *position.Position
func (*StmtDeclare) GetType ¶
func (n *StmtDeclare) GetType() Type
type StmtDefault ¶
type StmtDefault struct {
Position *position.Position
DefaultTkn *token.Token
CaseSeparatorTkn *token.Token
Stmts []Vertex
}
StmtDefault node
func (*StmtDefault) Accept ¶
func (n *StmtDefault) Accept(v Visitor)
func (*StmtDefault) GetPosition ¶
func (n *StmtDefault) GetPosition() *position.Position
func (*StmtDefault) GetType ¶
func (n *StmtDefault) GetType() Type
type StmtDo ¶
type StmtDo struct {
Position *position.Position
DoTkn *token.Token
Stmt Vertex
WhileTkn *token.Token
OpenParenthesisTkn *token.Token
Cond Vertex
CloseParenthesisTkn *token.Token
SemiColonTkn *token.Token
}
StmtDo node
func (*StmtDo) GetPosition ¶
type StmtEcho ¶
type StmtEcho struct {
Position *position.Position
EchoTkn *token.Token
Exprs []Vertex
SeparatorTkns []*token.Token
SemiColonTkn *token.Token
}
StmtEcho node
func (*StmtEcho) GetPosition ¶
type StmtElse ¶
type StmtElse struct {
Position *position.Position
ElseTkn *token.Token
ColonTkn *token.Token
Stmt Vertex
}
StmtElse node
func (*StmtElse) GetPosition ¶
type StmtElseIf ¶
type StmtElseIf struct {
Position *position.Position
ElseIfTkn *token.Token
OpenParenthesisTkn *token.Token
Cond Vertex
CloseParenthesisTkn *token.Token
ColonTkn *token.Token
Stmt Vertex
}
StmtElseIf node
func (*StmtElseIf) Accept ¶
func (n *StmtElseIf) Accept(v Visitor)
func (*StmtElseIf) GetPosition ¶
func (n *StmtElseIf) GetPosition() *position.Position
func (*StmtElseIf) GetType ¶
func (n *StmtElseIf) GetType() Type
type StmtEnum ¶
type StmtEnum struct {
Position *position.Position
AttrGroups []Vertex
EnumTkn *token.Token
Name Vertex
ColonTkn *token.Token
Type Vertex
ImplementsTkn *token.Token
Implements []Vertex
ImplementsSeparatorTkns []*token.Token
OpenCurlyBracketTkn *token.Token
Stmts []Vertex
CloseCurlyBracketTkn *token.Token
}
StmtEnum node
func (*StmtEnum) GetPosition ¶
type StmtExpression ¶
StmtExpression node
func (*StmtExpression) Accept ¶
func (n *StmtExpression) Accept(v Visitor)
func (*StmtExpression) GetPosition ¶
func (n *StmtExpression) GetPosition() *position.Position
func (*StmtExpression) GetType ¶
func (n *StmtExpression) GetType() Type
type StmtFinally ¶
type StmtFinally struct {
Position *position.Position
FinallyTkn *token.Token
OpenCurlyBracketTkn *token.Token
Stmts []Vertex
CloseCurlyBracketTkn *token.Token
}
StmtFinally node
func (*StmtFinally) Accept ¶
func (n *StmtFinally) Accept(v Visitor)
func (*StmtFinally) GetPosition ¶
func (n *StmtFinally) GetPosition() *position.Position
func (*StmtFinally) GetType ¶
func (n *StmtFinally) GetType() Type
type StmtFor ¶
type StmtFor struct {
Position *position.Position
ForTkn *token.Token
OpenParenthesisTkn *token.Token
Init []Vertex
InitSeparatorTkns []*token.Token
InitSemiColonTkn *token.Token
Cond []Vertex
CondSeparatorTkns []*token.Token
CondSemiColonTkn *token.Token
Loop []Vertex
LoopSeparatorTkns []*token.Token
CloseParenthesisTkn *token.Token
ColonTkn *token.Token
Stmt Vertex
EndForTkn *token.Token
SemiColonTkn *token.Token
}
StmtFor node
func (*StmtFor) GetPosition ¶
type StmtForeach ¶
type StmtForeach struct {
Position *position.Position
ForeachTkn *token.Token
OpenParenthesisTkn *token.Token
Expr Vertex
AsTkn *token.Token
Key Vertex
DoubleArrowTkn *token.Token
AmpersandTkn *token.Token
Var Vertex
CloseParenthesisTkn *token.Token
ColonTkn *token.Token
Stmt Vertex
EndForeachTkn *token.Token
SemiColonTkn *token.Token
}
StmtForeach node
func (*StmtForeach) Accept ¶
func (n *StmtForeach) Accept(v Visitor)
func (*StmtForeach) GetPosition ¶
func (n *StmtForeach) GetPosition() *position.Position
func (*StmtForeach) GetType ¶
func (n *StmtForeach) GetType() Type
type StmtFunction ¶
type StmtFunction struct {
Position *position.Position
AttrGroups []Vertex
FunctionTkn *token.Token
AmpersandTkn *token.Token
Name Vertex
OpenParenthesisTkn *token.Token
Params []Vertex
SeparatorTkns []*token.Token
CloseParenthesisTkn *token.Token
ColonTkn *token.Token
ReturnType Vertex
OpenCurlyBracketTkn *token.Token
Stmts []Vertex
CloseCurlyBracketTkn *token.Token
}
StmtFunction node
func (*StmtFunction) Accept ¶
func (n *StmtFunction) Accept(v Visitor)
func (*StmtFunction) GetPosition ¶
func (n *StmtFunction) GetPosition() *position.Position
func (*StmtFunction) GetType ¶
func (n *StmtFunction) GetType() Type
type StmtGlobal ¶
type StmtGlobal struct {
Position *position.Position
GlobalTkn *token.Token
Vars []Vertex
SeparatorTkns []*token.Token
SemiColonTkn *token.Token
}
StmtGlobal node
func (*StmtGlobal) Accept ¶
func (n *StmtGlobal) Accept(v Visitor)
func (*StmtGlobal) GetPosition ¶
func (n *StmtGlobal) GetPosition() *position.Position
func (*StmtGlobal) GetType ¶
func (n *StmtGlobal) GetType() Type
type StmtGoto ¶
type StmtGoto struct {
Position *position.Position
GotoTkn *token.Token
Label Vertex
SemiColonTkn *token.Token
}
StmtGoto node
func (*StmtGoto) GetPosition ¶
type StmtGroupUseList ¶
type StmtGroupUseList struct {
Position *position.Position
UseTkn *token.Token
Type Vertex
LeadingNsSeparatorTkn *token.Token
Prefix Vertex
NsSeparatorTkn *token.Token
OpenCurlyBracketTkn *token.Token
Uses []Vertex
SeparatorTkns []*token.Token
CloseCurlyBracketTkn *token.Token
SemiColonTkn *token.Token
}
StmtGroupUseList node
func (*StmtGroupUseList) Accept ¶
func (n *StmtGroupUseList) Accept(v Visitor)
func (*StmtGroupUseList) GetPosition ¶
func (n *StmtGroupUseList) GetPosition() *position.Position
func (*StmtGroupUseList) GetType ¶
func (n *StmtGroupUseList) GetType() Type
type StmtHaltCompiler ¶
type StmtHaltCompiler struct {
Position *position.Position
HaltCompilerTkn *token.Token
OpenParenthesisTkn *token.Token
CloseParenthesisTkn *token.Token
SemiColonTkn *token.Token
}
StmtHaltCompiler node
func (*StmtHaltCompiler) Accept ¶
func (n *StmtHaltCompiler) Accept(v Visitor)
func (*StmtHaltCompiler) GetPosition ¶
func (n *StmtHaltCompiler) GetPosition() *position.Position
func (*StmtHaltCompiler) GetType ¶
func (n *StmtHaltCompiler) GetType() Type
type StmtIf ¶
type StmtIf struct {
Position *position.Position
IfTkn *token.Token
OpenParenthesisTkn *token.Token
Cond Vertex
CloseParenthesisTkn *token.Token
ColonTkn *token.Token
Stmt Vertex
ElseIf []Vertex
Else Vertex
EndIfTkn *token.Token
SemiColonTkn *token.Token
}
StmtIf node
func (*StmtIf) GetPosition ¶
type StmtInlineHtml ¶
StmtInlineHtml node
func (*StmtInlineHtml) Accept ¶
func (n *StmtInlineHtml) Accept(v Visitor)
func (*StmtInlineHtml) GetPosition ¶
func (n *StmtInlineHtml) GetPosition() *position.Position
func (*StmtInlineHtml) GetType ¶
func (n *StmtInlineHtml) GetType() Type
type StmtInterface ¶
type StmtInterface struct {
Position *position.Position
AttrGroups []Vertex
InterfaceTkn *token.Token
Name Vertex
ExtendsTkn *token.Token
Extends []Vertex
ExtendsSeparatorTkns []*token.Token
OpenCurlyBracketTkn *token.Token
Stmts []Vertex
CloseCurlyBracketTkn *token.Token
}
StmtInterface node
func (*StmtInterface) Accept ¶
func (n *StmtInterface) Accept(v Visitor)
func (*StmtInterface) GetPosition ¶
func (n *StmtInterface) GetPosition() *position.Position
func (*StmtInterface) GetType ¶
func (n *StmtInterface) GetType() Type
type StmtNamespace ¶
type StmtNamespace struct {
Position *position.Position
NsTkn *token.Token
Name Vertex
OpenCurlyBracketTkn *token.Token
Stmts []Vertex
CloseCurlyBracketTkn *token.Token
SemiColonTkn *token.Token
}
StmtNamespace node
func (*StmtNamespace) Accept ¶
func (n *StmtNamespace) Accept(v Visitor)
func (*StmtNamespace) GetPosition ¶
func (n *StmtNamespace) GetPosition() *position.Position
func (*StmtNamespace) GetType ¶
func (n *StmtNamespace) GetType() Type
type StmtProperty ¶
type StmtProperty struct {
Position *position.Position
Var Vertex
EqualTkn *token.Token
Expr Vertex
}
StmtProperty node
func (*StmtProperty) Accept ¶
func (n *StmtProperty) Accept(v Visitor)
func (*StmtProperty) GetPosition ¶
func (n *StmtProperty) GetPosition() *position.Position
func (*StmtProperty) GetType ¶
func (n *StmtProperty) GetType() Type
type StmtPropertyList ¶
type StmtPropertyList struct {
Position *position.Position
AttrGroups []Vertex
Modifiers []Vertex
Type Vertex
Props []Vertex
SeparatorTkns []*token.Token
SemiColonTkn *token.Token
}
StmtPropertyList node
func (*StmtPropertyList) Accept ¶
func (n *StmtPropertyList) Accept(v Visitor)
func (*StmtPropertyList) GetPosition ¶
func (n *StmtPropertyList) GetPosition() *position.Position
func (*StmtPropertyList) GetType ¶
func (n *StmtPropertyList) GetType() Type
type StmtReturn ¶
type StmtReturn struct {
Position *position.Position
ReturnTkn *token.Token
Expr Vertex
SemiColonTkn *token.Token
}
StmtReturn node
func (*StmtReturn) Accept ¶
func (n *StmtReturn) Accept(v Visitor)
func (*StmtReturn) GetPosition ¶
func (n *StmtReturn) GetPosition() *position.Position
func (*StmtReturn) GetType ¶
func (n *StmtReturn) GetType() Type
type StmtStatic ¶
type StmtStatic struct {
Position *position.Position
StaticTkn *token.Token
Vars []Vertex
SeparatorTkns []*token.Token
SemiColonTkn *token.Token
}
StmtStatic node
func (*StmtStatic) Accept ¶
func (n *StmtStatic) Accept(v Visitor)
func (*StmtStatic) GetPosition ¶
func (n *StmtStatic) GetPosition() *position.Position
func (*StmtStatic) GetType ¶
func (n *StmtStatic) GetType() Type
type StmtStaticVar ¶
type StmtStaticVar struct {
Position *position.Position
Var Vertex
EqualTkn *token.Token
Expr Vertex
}
StmtStaticVar node
func (*StmtStaticVar) Accept ¶
func (n *StmtStaticVar) Accept(v Visitor)
func (*StmtStaticVar) GetPosition ¶
func (n *StmtStaticVar) GetPosition() *position.Position
func (*StmtStaticVar) GetType ¶
func (n *StmtStaticVar) GetType() Type
type StmtStmtList ¶
type StmtStmtList struct {
Position *position.Position
OpenCurlyBracketTkn *token.Token
Stmts []Vertex
CloseCurlyBracketTkn *token.Token
}
StmtStmtList node
func (*StmtStmtList) Accept ¶
func (n *StmtStmtList) Accept(v Visitor)
func (*StmtStmtList) GetPosition ¶
func (n *StmtStmtList) GetPosition() *position.Position
func (*StmtStmtList) GetType ¶
func (n *StmtStmtList) GetType() Type
type StmtSwitch ¶
type StmtSwitch struct {
Position *position.Position
SwitchTkn *token.Token
OpenParenthesisTkn *token.Token
Cond Vertex
CloseParenthesisTkn *token.Token
ColonTkn *token.Token
OpenCurlyBracketTkn *token.Token
CaseSeparatorTkn *token.Token
Cases []Vertex
CloseCurlyBracketTkn *token.Token
EndSwitchTkn *token.Token
SemiColonTkn *token.Token
}
StmtSwitch node
func (*StmtSwitch) Accept ¶
func (n *StmtSwitch) Accept(v Visitor)
func (*StmtSwitch) GetPosition ¶
func (n *StmtSwitch) GetPosition() *position.Position
func (*StmtSwitch) GetType ¶
func (n *StmtSwitch) GetType() Type
type StmtThrow ¶
type StmtThrow struct {
Position *position.Position
ThrowTkn *token.Token
Expr Vertex
SemiColonTkn *token.Token
}
StmtThrow node
func (*StmtThrow) GetPosition ¶
type StmtTrait ¶
type StmtTrait struct {
Position *position.Position
AttrGroups []Vertex
TraitTkn *token.Token
Name Vertex
OpenCurlyBracketTkn *token.Token
Stmts []Vertex
CloseCurlyBracketTkn *token.Token
}
StmtTrait node
func (*StmtTrait) GetPosition ¶
type StmtTraitUse ¶
type StmtTraitUse struct {
Position *position.Position
UseTkn *token.Token
Traits []Vertex
SeparatorTkns []*token.Token
OpenCurlyBracketTkn *token.Token
Adaptations []Vertex
CloseCurlyBracketTkn *token.Token
SemiColonTkn *token.Token
}
StmtTraitUse node
func (*StmtTraitUse) Accept ¶
func (n *StmtTraitUse) Accept(v Visitor)
func (*StmtTraitUse) GetPosition ¶
func (n *StmtTraitUse) GetPosition() *position.Position
func (*StmtTraitUse) GetType ¶
func (n *StmtTraitUse) GetType() Type
type StmtTraitUseAlias ¶
type StmtTraitUseAlias struct {
Position *position.Position
Trait Vertex
DoubleColonTkn *token.Token
Method Vertex
AsTkn *token.Token
Modifier Vertex
Alias Vertex
SemiColonTkn *token.Token
}
StmtTraitUseAlias node
func (*StmtTraitUseAlias) Accept ¶
func (n *StmtTraitUseAlias) Accept(v Visitor)
func (*StmtTraitUseAlias) GetPosition ¶
func (n *StmtTraitUseAlias) GetPosition() *position.Position
func (*StmtTraitUseAlias) GetType ¶
func (n *StmtTraitUseAlias) GetType() Type
type StmtTraitUsePrecedence ¶
type StmtTraitUsePrecedence struct {
Position *position.Position
Trait Vertex
DoubleColonTkn *token.Token
Method Vertex
InsteadofTkn *token.Token
Insteadof []Vertex
SeparatorTkns []*token.Token
SemiColonTkn *token.Token
}
StmtTraitUsePrecedence node
func (*StmtTraitUsePrecedence) Accept ¶
func (n *StmtTraitUsePrecedence) Accept(v Visitor)
func (*StmtTraitUsePrecedence) GetPosition ¶
func (n *StmtTraitUsePrecedence) GetPosition() *position.Position
func (*StmtTraitUsePrecedence) GetType ¶
func (n *StmtTraitUsePrecedence) GetType() Type
type StmtTry ¶
type StmtTry struct {
Position *position.Position
TryTkn *token.Token
OpenCurlyBracketTkn *token.Token
Stmts []Vertex
CloseCurlyBracketTkn *token.Token
Catches []Vertex
Finally Vertex
}
StmtTry node
func (*StmtTry) GetPosition ¶
type StmtUnset ¶
type StmtUnset struct {
Position *position.Position
UnsetTkn *token.Token
OpenParenthesisTkn *token.Token
Vars []Vertex
SeparatorTkns []*token.Token
CloseParenthesisTkn *token.Token
SemiColonTkn *token.Token
}
StmtUnset node
func (*StmtUnset) GetPosition ¶
type StmtUse ¶
type StmtUse struct {
Position *position.Position
Type Vertex
NsSeparatorTkn *token.Token
Use Vertex
AsTkn *token.Token
Alias Vertex
}
StmtUse node
func (*StmtUse) GetPosition ¶
type StmtUseList ¶
type StmtUseList struct {
Position *position.Position
UseTkn *token.Token
Type Vertex
Uses []Vertex
SeparatorTkns []*token.Token
SemiColonTkn *token.Token
}
StmtUseList node
func (*StmtUseList) Accept ¶
func (n *StmtUseList) Accept(v Visitor)
func (*StmtUseList) GetPosition ¶
func (n *StmtUseList) GetPosition() *position.Position
func (*StmtUseList) GetType ¶
func (n *StmtUseList) GetType() Type
type StmtWhile ¶
type StmtWhile struct {
Position *position.Position
WhileTkn *token.Token
OpenParenthesisTkn *token.Token
Cond Vertex
CloseParenthesisTkn *token.Token
ColonTkn *token.Token
Stmt Vertex
EndWhileTkn *token.Token
SemiColonTkn *token.Token
}
StmtWhile node
func (*StmtWhile) GetPosition ¶
type Type ¶
type Type int
const ( TypeNone Type = iota TypeRoot TypeNullable TypeUnion TypeIntersection TypeParameter TypeIdentifier TypeArgument TypeAttribute TypeAttributeGroup TypeScalarDnumber TypeScalarEncapsed TypeScalarEncapsedStringPart TypeScalarEncapsedStringVar TypeScalarEncapsedStringBrackets TypeScalarHeredoc TypeScalarLnumber TypeScalarMagicConstant TypeScalarString TypeStmtBreak TypeStmtCase TypeStmtCatch TypeStmtEnum TypeEnumCase TypeStmtClass TypeStmtClassConstList TypeStmtClassMethod TypeStmtConstList TypeStmtConstant TypeStmtContinue TypeStmtDeclare TypeStmtDefault TypeStmtDo TypeStmtEcho TypeStmtElse TypeStmtElseIf TypeStmtExpression TypeStmtFinally TypeStmtFor TypeStmtForeach TypeStmtFunction TypeStmtGlobal TypeStmtGoto TypeStmtHaltCompiler TypeStmtIf TypeStmtInlineHtml TypeStmtInterface TypeStmtLabel TypeStmtNamespace TypeStmtNop TypeStmtProperty TypeStmtPropertyList TypeStmtReturn TypeStmtStatic TypeStmtStaticVar TypeStmtStmtList TypeStmtSwitch TypeStmtThrow TypeStmtTrait TypeStmtTraitUse TypeStmtTraitUseAlias TypeStmtTraitUsePrecedence TypeStmtTry TypeStmtUnset TypeStmtUseList TypeStmtGroupUseList TypeStmtUse TypeStmtWhile TypeExprArray TypeExprArrayDimFetch TypeExprArrayItem TypeExprArrowFunction TypeExprBitwiseNot TypeExprBooleanNot TypeExprBrackets TypeExprClassConstFetch TypeExprClone TypeExprClosure TypeExprClosureUse TypeExprConstFetch TypeExprEmpty TypeExprErrorSuppress TypeExprEval TypeExprExit TypeExprFunctionCall TypeExprInclude TypeExprIncludeOnce TypeExprInstanceOf TypeExprIsset TypeExprList TypeExprMethodCall TypeExprNullsafeMethodCall TypeExprNew TypeExprPostDec TypeExprPostInc TypeExprPreDec TypeExprPreInc TypeExprPrint TypeExprPropertyFetch TypeExprNullsafePropertyFetch TypeExprRequire TypeExprRequireOnce TypeExprShellExec TypeExprStaticCall TypeExprStaticPropertyFetch TypeExprTernary TypeExprUnaryMinus TypeExprUnaryPlus TypeExprVariable TypeExprYield TypeExprYieldFrom TypeExprCastArray TypeExprCastBool TypeExprCastDouble TypeExprCastInt TypeExprCastObject TypeExprCastString TypeExprCastUnset TypeExprAssign TypeExprAssignReference TypeExprAssignBitwiseAnd TypeExprAssignBitwiseOr TypeExprAssignBitwiseXor TypeExprAssignCoalesce TypeExprAssignConcat TypeExprAssignDiv TypeExprAssignMinus TypeExprAssignMod TypeExprAssignMul TypeExprAssignPlus TypeExprAssignPow TypeExprAssignShiftLeft TypeExprAssignShiftRight TypeExprBinaryBitwiseAnd TypeExprBinaryBitwiseOr TypeExprBinaryBitwiseXor TypeExprBinaryBooleanAnd TypeExprBinaryBooleanOr TypeExprBinaryCoalesce TypeExprBinaryConcat TypeExprBinaryDiv TypeExprBinaryEqual TypeExprBinaryGreater TypeExprBinaryGreaterOrEqual TypeExprBinaryIdentical TypeExprBinaryLogicalAnd TypeExprBinaryLogicalOr TypeExprBinaryLogicalXor TypeExprBinaryMinus TypeExprBinaryMod TypeExprBinaryMul TypeExprBinaryNotEqual TypeExprBinaryNotIdentical TypeExprBinaryPlus TypeExprBinaryPow TypeExprBinaryShiftLeft TypeExprBinaryShiftRight TypeExprBinarySmaller TypeExprBinarySmallerOrEqual TypeExprBinarySpaceship TypeExprMatch TypeExprThrow TypeMatchArm TypeName TypeNameFullyQualified TypeNameRelative TypeNamePart TypeCount )
type Visitor ¶
type Visitor interface {
Root(n *Root)
Nullable(n *Nullable)
Parameter(n *Parameter)
Identifier(n *Identifier)
Argument(n *Argument)
MatchArm(n *MatchArm)
Union(n *Union)
Intersection(n *Intersection)
Attribute(n *Attribute)
AttributeGroup(n *AttributeGroup)
StmtBreak(n *StmtBreak)
StmtCase(n *StmtCase)
StmtCatch(n *StmtCatch)
StmtEnum(n *StmtEnum)
EnumCase(n *EnumCase)
StmtClass(n *StmtClass)
StmtClassConstList(n *StmtClassConstList)
StmtClassMethod(n *StmtClassMethod)
StmtConstList(n *StmtConstList)
StmtConstant(n *StmtConstant)
StmtContinue(n *StmtContinue)
StmtDeclare(n *StmtDeclare)
StmtDefault(n *StmtDefault)
StmtDo(n *StmtDo)
StmtEcho(n *StmtEcho)
StmtElse(n *StmtElse)
StmtElseIf(n *StmtElseIf)
StmtExpression(n *StmtExpression)
StmtFinally(n *StmtFinally)
StmtFor(n *StmtFor)
StmtForeach(n *StmtForeach)
StmtFunction(n *StmtFunction)
StmtGlobal(n *StmtGlobal)
StmtGoto(n *StmtGoto)
StmtHaltCompiler(n *StmtHaltCompiler)
StmtIf(n *StmtIf)
StmtInlineHtml(n *StmtInlineHtml)
StmtInterface(n *StmtInterface)
StmtLabel(n *StmtLabel)
StmtNamespace(n *StmtNamespace)
StmtNop(n *StmtNop)
StmtProperty(n *StmtProperty)
StmtPropertyList(n *StmtPropertyList)
StmtReturn(n *StmtReturn)
StmtStatic(n *StmtStatic)
StmtStaticVar(n *StmtStaticVar)
StmtStmtList(n *StmtStmtList)
StmtSwitch(n *StmtSwitch)
StmtThrow(n *StmtThrow)
StmtTrait(n *StmtTrait)
StmtTraitUse(n *StmtTraitUse)
StmtTraitUseAlias(n *StmtTraitUseAlias)
StmtTraitUsePrecedence(n *StmtTraitUsePrecedence)
StmtTry(n *StmtTry)
StmtUnset(n *StmtUnset)
StmtUse(n *StmtUseList)
StmtGroupUse(n *StmtGroupUseList)
StmtUseDeclaration(n *StmtUse)
StmtWhile(n *StmtWhile)
ExprArray(n *ExprArray)
ExprArrayDimFetch(n *ExprArrayDimFetch)
ExprArrayItem(n *ExprArrayItem)
ExprArrowFunction(n *ExprArrowFunction)
ExprBrackets(n *ExprBrackets)
ExprBitwiseNot(n *ExprBitwiseNot)
ExprBooleanNot(n *ExprBooleanNot)
ExprClassConstFetch(n *ExprClassConstFetch)
ExprClone(n *ExprClone)
ExprClosure(n *ExprClosure)
ExprClosureUse(n *ExprClosureUse)
ExprConstFetch(n *ExprConstFetch)
ExprEmpty(n *ExprEmpty)
ExprErrorSuppress(n *ExprErrorSuppress)
ExprEval(n *ExprEval)
ExprExit(n *ExprExit)
ExprFunctionCall(n *ExprFunctionCall)
ExprInclude(n *ExprInclude)
ExprIncludeOnce(n *ExprIncludeOnce)
ExprInstanceOf(n *ExprInstanceOf)
ExprIsset(n *ExprIsset)
ExprList(n *ExprList)
ExprMethodCall(n *ExprMethodCall)
ExprNullsafeMethodCall(n *ExprNullsafeMethodCall)
ExprMatch(n *ExprMatch)
ExprNew(n *ExprNew)
ExprPostDec(n *ExprPostDec)
ExprPostInc(n *ExprPostInc)
ExprPreDec(n *ExprPreDec)
ExprPreInc(n *ExprPreInc)
ExprPrint(n *ExprPrint)
ExprPropertyFetch(n *ExprPropertyFetch)
ExprNullsafePropertyFetch(n *ExprNullsafePropertyFetch)
ExprRequire(n *ExprRequire)
ExprRequireOnce(n *ExprRequireOnce)
ExprShellExec(n *ExprShellExec)
ExprStaticCall(n *ExprStaticCall)
ExprStaticPropertyFetch(n *ExprStaticPropertyFetch)
ExprTernary(n *ExprTernary)
ExprThrow(n *ExprThrow)
ExprUnaryMinus(n *ExprUnaryMinus)
ExprUnaryPlus(n *ExprUnaryPlus)
ExprVariable(n *ExprVariable)
ExprYield(n *ExprYield)
ExprYieldFrom(n *ExprYieldFrom)
ExprAssign(n *ExprAssign)
ExprAssignReference(n *ExprAssignReference)
ExprAssignBitwiseAnd(n *ExprAssignBitwiseAnd)
ExprAssignBitwiseOr(n *ExprAssignBitwiseOr)
ExprAssignBitwiseXor(n *ExprAssignBitwiseXor)
ExprAssignCoalesce(n *ExprAssignCoalesce)
ExprAssignConcat(n *ExprAssignConcat)
ExprAssignDiv(n *ExprAssignDiv)
ExprAssignMinus(n *ExprAssignMinus)
ExprAssignMod(n *ExprAssignMod)
ExprAssignMul(n *ExprAssignMul)
ExprAssignPlus(n *ExprAssignPlus)
ExprAssignPow(n *ExprAssignPow)
ExprAssignShiftLeft(n *ExprAssignShiftLeft)
ExprAssignShiftRight(n *ExprAssignShiftRight)
ExprBinaryBitwiseAnd(n *ExprBinaryBitwiseAnd)
ExprBinaryBitwiseOr(n *ExprBinaryBitwiseOr)
ExprBinaryBitwiseXor(n *ExprBinaryBitwiseXor)
ExprBinaryBooleanAnd(n *ExprBinaryBooleanAnd)
ExprBinaryBooleanOr(n *ExprBinaryBooleanOr)
ExprBinaryCoalesce(n *ExprBinaryCoalesce)
ExprBinaryConcat(n *ExprBinaryConcat)
ExprBinaryDiv(n *ExprBinaryDiv)
ExprBinaryEqual(n *ExprBinaryEqual)
ExprBinaryGreater(n *ExprBinaryGreater)
ExprBinaryGreaterOrEqual(n *ExprBinaryGreaterOrEqual)
ExprBinaryIdentical(n *ExprBinaryIdentical)
ExprBinaryLogicalAnd(n *ExprBinaryLogicalAnd)
ExprBinaryLogicalOr(n *ExprBinaryLogicalOr)
ExprBinaryLogicalXor(n *ExprBinaryLogicalXor)
ExprBinaryMinus(n *ExprBinaryMinus)
ExprBinaryMod(n *ExprBinaryMod)
ExprBinaryMul(n *ExprBinaryMul)
ExprBinaryNotEqual(n *ExprBinaryNotEqual)
ExprBinaryNotIdentical(n *ExprBinaryNotIdentical)
ExprBinaryPlus(n *ExprBinaryPlus)
ExprBinaryPow(n *ExprBinaryPow)
ExprBinaryShiftLeft(n *ExprBinaryShiftLeft)
ExprBinaryShiftRight(n *ExprBinaryShiftRight)
ExprBinarySmaller(n *ExprBinarySmaller)
ExprBinarySmallerOrEqual(n *ExprBinarySmallerOrEqual)
ExprBinarySpaceship(n *ExprBinarySpaceship)
ExprCastArray(n *ExprCastArray)
ExprCastBool(n *ExprCastBool)
ExprCastDouble(n *ExprCastDouble)
ExprCastInt(n *ExprCastInt)
ExprCastObject(n *ExprCastObject)
ExprCastString(n *ExprCastString)
ExprCastUnset(n *ExprCastUnset)
ScalarDnumber(n *ScalarDnumber)
ScalarEncapsed(n *ScalarEncapsed)
ScalarEncapsedStringPart(n *ScalarEncapsedStringPart)
ScalarEncapsedStringVar(n *ScalarEncapsedStringVar)
ScalarEncapsedStringBrackets(n *ScalarEncapsedStringBrackets)
ScalarHeredoc(n *ScalarHeredoc)
ScalarLnumber(n *ScalarLnumber)
ScalarMagicConstant(n *ScalarMagicConstant)
ScalarString(n *ScalarString)
NameName(n *Name)
NameFullyQualified(n *NameFullyQualified)
NameRelative(n *NameRelative)
NameNamePart(n *NamePart)
}