Documentation ¶
Index ¶
- type Break
- type Case
- type CaseList
- type Catch
- type Class
- type ClassConstList
- type ClassExtends
- type ClassImplements
- type ClassMethod
- type ConstList
- type Constant
- type Continue
- type Declare
- type Default
- type Do
- type Echo
- type Else
- type ElseIf
- type Expression
- type Finally
- type For
- type Foreach
- type Function
- type Global
- type Goto
- type GroupUse
- type HaltCompiler
- type If
- type InlineHtml
- type Interface
- type InterfaceExtends
- type Label
- type Namespace
- type Nop
- type Property
- type PropertyList
- type Return
- type Static
- type StaticVar
- type StmtList
- type Switch
- type Throw
- type Trait
- type TraitAdaptationList
- type TraitMethodRef
- type TraitUse
- type TraitUseAlias
- type TraitUsePrecedence
- type Try
- type Unset
- type Use
- type UseList
- type While
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Break ¶
type Break struct { FreeFloating freefloating.Collection Position *position.Position Expr node.Node }
Break node
func (*Break) GetFreeFloating ¶
func (n *Break) GetFreeFloating() *freefloating.Collection
func (*Break) GetPosition ¶
GetPosition returns node positions
func (*Break) SetPosition ¶
SetPosition sets node position
type Case ¶
type Case struct { FreeFloating freefloating.Collection Position *position.Position Cond node.Node Stmts []node.Node }
Case node
func (*Case) GetFreeFloating ¶
func (n *Case) GetFreeFloating() *freefloating.Collection
func (*Case) GetPosition ¶
GetPosition returns node positions
func (*Case) SetPosition ¶
SetPosition sets node position
type CaseList ¶
type CaseList struct { FreeFloating freefloating.Collection Position *position.Position Cases []node.Node }
CaseList node
func (*CaseList) GetFreeFloating ¶
func (n *CaseList) GetFreeFloating() *freefloating.Collection
func (*CaseList) GetPosition ¶
GetPosition returns node positions
func (*CaseList) SetPosition ¶
SetPosition sets node position
type Catch ¶
type Catch struct { FreeFloating freefloating.Collection Position *position.Position Types []node.Node Variable *node.SimpleVar Stmts []node.Node }
Catch node
func (*Catch) GetFreeFloating ¶
func (n *Catch) GetFreeFloating() *freefloating.Collection
func (*Catch) GetPosition ¶
GetPosition returns node positions
func (*Catch) SetPosition ¶
SetPosition sets node position
type Class ¶
type Class struct { FreeFloating freefloating.Collection Position *position.Position PhpDocComment string ClassName *node.Identifier Modifiers []*node.Identifier ArgumentList *node.ArgumentList Extends *ClassExtends Implements *ClassImplements Stmts []node.Node }
Class node
func NewClass ¶
func NewClass(ClassName *node.Identifier, Modifiers []*node.Identifier, ArgumentList *node.ArgumentList, Extends *ClassExtends, Implements *ClassImplements, Stmts []node.Node, PhpDocComment string) *Class
NewClass node constructor
func (*Class) GetFreeFloating ¶
func (n *Class) GetFreeFloating() *freefloating.Collection
func (*Class) GetPosition ¶
GetPosition returns node positions
func (*Class) SetPosition ¶
SetPosition sets node position
type ClassConstList ¶
type ClassConstList struct { FreeFloating freefloating.Collection Position *position.Position Modifiers []*node.Identifier Consts []node.Node }
ClassConstList node
func NewClassConstList ¶
func NewClassConstList(Modifiers []*node.Identifier, Consts []node.Node) *ClassConstList
NewClassConstList node constructor
func (*ClassConstList) GetFreeFloating ¶
func (n *ClassConstList) GetFreeFloating() *freefloating.Collection
func (*ClassConstList) GetPosition ¶
func (n *ClassConstList) GetPosition() *position.Position
GetPosition returns node positions
func (*ClassConstList) SetPosition ¶
func (n *ClassConstList) SetPosition(p *position.Position)
SetPosition sets node position
func (*ClassConstList) Walk ¶
func (n *ClassConstList) Walk(v walker.Visitor)
Walk traverses nodes Walk is invoked recursively until v.EnterNode returns true
type ClassExtends ¶
type ClassExtends struct { FreeFloating freefloating.Collection Position *position.Position ClassName node.Node }
ClassExtends node
func NewClassExtends ¶
func NewClassExtends(className node.Node) *ClassExtends
NewClassExtends node constructor
func (*ClassExtends) GetFreeFloating ¶
func (n *ClassExtends) GetFreeFloating() *freefloating.Collection
func (*ClassExtends) GetPosition ¶
func (n *ClassExtends) GetPosition() *position.Position
GetPosition returns node positions
func (*ClassExtends) SetPosition ¶
func (n *ClassExtends) SetPosition(p *position.Position)
SetPosition sets node position
func (*ClassExtends) Walk ¶
func (n *ClassExtends) Walk(v walker.Visitor)
Walk traverses nodes Walk is invoked recursively until v.EnterNode returns true
type ClassImplements ¶
type ClassImplements struct { FreeFloating freefloating.Collection Position *position.Position InterfaceNames []node.Node }
ClassImplements node
func NewClassImplements ¶
func NewClassImplements(interfaceNames []node.Node) *ClassImplements
NewClassImplements node constructor
func (*ClassImplements) GetFreeFloating ¶
func (n *ClassImplements) GetFreeFloating() *freefloating.Collection
func (*ClassImplements) GetPosition ¶
func (n *ClassImplements) GetPosition() *position.Position
GetPosition returns node positions
func (*ClassImplements) SetPosition ¶
func (n *ClassImplements) SetPosition(p *position.Position)
SetPosition sets node position
func (*ClassImplements) Walk ¶
func (n *ClassImplements) Walk(v walker.Visitor)
Walk traverses nodes Walk is invoked recursively until v.EnterNode returns true
type ClassMethod ¶
type ClassMethod struct { FreeFloating freefloating.Collection Position *position.Position ReturnsRef bool PhpDocComment string MethodName *node.Identifier Modifiers []*node.Identifier Params []node.Node ReturnType node.Node Stmt node.Node }
ClassMethod node
func NewClassMethod ¶
func NewClassMethod(MethodName *node.Identifier, Modifiers []*node.Identifier, ReturnsRef bool, Params []node.Node, ReturnType node.Node, Stmt node.Node, PhpDocComment string) *ClassMethod
NewClassMethod node constructor
func (*ClassMethod) GetFreeFloating ¶
func (n *ClassMethod) GetFreeFloating() *freefloating.Collection
func (*ClassMethod) GetPosition ¶
func (n *ClassMethod) GetPosition() *position.Position
GetPosition returns node positions
func (*ClassMethod) SetPosition ¶
func (n *ClassMethod) SetPosition(p *position.Position)
SetPosition sets node position
func (*ClassMethod) Walk ¶
func (n *ClassMethod) Walk(v walker.Visitor)
Walk traverses nodes Walk is invoked recursively until v.EnterNode returns true
type ConstList ¶
type ConstList struct { FreeFloating freefloating.Collection Position *position.Position Consts []node.Node }
ConstList node
func (*ConstList) GetFreeFloating ¶
func (n *ConstList) GetFreeFloating() *freefloating.Collection
func (*ConstList) GetPosition ¶
GetPosition returns node positions
func (*ConstList) SetPosition ¶
SetPosition sets node position
type Constant ¶
type Constant struct { FreeFloating freefloating.Collection Position *position.Position PhpDocComment string ConstantName *node.Identifier Expr node.Node }
Constant node
func NewConstant ¶
NewConstant node constructor
func (*Constant) GetFreeFloating ¶
func (n *Constant) GetFreeFloating() *freefloating.Collection
func (*Constant) GetPosition ¶
GetPosition returns node positions
func (*Constant) SetPosition ¶
SetPosition sets node position
type Continue ¶
type Continue struct { FreeFloating freefloating.Collection Position *position.Position Expr node.Node }
Continue node
func (*Continue) GetFreeFloating ¶
func (n *Continue) GetFreeFloating() *freefloating.Collection
func (*Continue) GetPosition ¶
GetPosition returns node positions
func (*Continue) SetPosition ¶
SetPosition sets node position
type Declare ¶
type Declare struct { FreeFloating freefloating.Collection Position *position.Position Consts []node.Node Stmt node.Node Alt bool }
Declare node
func NewDeclare ¶
NewDeclare node constructor
func (*Declare) GetFreeFloating ¶
func (n *Declare) GetFreeFloating() *freefloating.Collection
func (*Declare) GetPosition ¶
GetPosition returns node positions
func (*Declare) SetPosition ¶
SetPosition sets node position
type Default ¶
type Default struct { FreeFloating freefloating.Collection Position *position.Position Stmts []node.Node }
Default node
func (*Default) GetFreeFloating ¶
func (n *Default) GetFreeFloating() *freefloating.Collection
func (*Default) GetPosition ¶
GetPosition returns node positions
func (*Default) SetPosition ¶
SetPosition sets node position
type Do ¶
type Do struct { FreeFloating freefloating.Collection Position *position.Position Stmt node.Node Cond node.Node }
Do node
func (*Do) GetFreeFloating ¶
func (n *Do) GetFreeFloating() *freefloating.Collection
func (*Do) GetPosition ¶
GetPosition returns node positions
func (*Do) SetPosition ¶
SetPosition sets node position
type Echo ¶
type Echo struct { FreeFloating freefloating.Collection Position *position.Position Exprs []node.Node }
Echo node
func (*Echo) GetFreeFloating ¶
func (n *Echo) GetFreeFloating() *freefloating.Collection
func (*Echo) GetPosition ¶
GetPosition returns node positions
func (*Echo) SetPosition ¶
SetPosition sets node position
type Else ¶
type Else struct { FreeFloating freefloating.Collection Position *position.Position Stmt node.Node AltSyntax bool // Whether alternative colon-style syntax is used }
Else node
func (*Else) GetFreeFloating ¶
func (n *Else) GetFreeFloating() *freefloating.Collection
func (*Else) GetPosition ¶
GetPosition returns node positions
func (*Else) SetPosition ¶
SetPosition sets node position
type ElseIf ¶
type ElseIf struct { FreeFloating freefloating.Collection Position *position.Position Cond node.Node Stmt node.Node AltSyntax bool // Whether alternative colon-style syntax is used Merged bool // Whether it's a result of "else if" merging }
ElseIf node
func (*ElseIf) GetFreeFloating ¶
func (n *ElseIf) GetFreeFloating() *freefloating.Collection
func (*ElseIf) GetPosition ¶
GetPosition returns node positions
func (*ElseIf) SetPosition ¶
SetPosition sets node position
type Expression ¶
type Expression struct { FreeFloating freefloating.Collection Position *position.Position Expr node.Node }
Expression node
func (*Expression) GetFreeFloating ¶
func (n *Expression) GetFreeFloating() *freefloating.Collection
func (*Expression) GetPosition ¶
func (n *Expression) GetPosition() *position.Position
GetPosition returns node positions
func (*Expression) SetPosition ¶
func (n *Expression) SetPosition(p *position.Position)
SetPosition sets node position
func (*Expression) Walk ¶
func (n *Expression) Walk(v walker.Visitor)
Walk traverses nodes Walk is invoked recursively until v.EnterNode returns true
type Finally ¶
type Finally struct { FreeFloating freefloating.Collection Position *position.Position Stmts []node.Node }
Finally node
func (*Finally) GetFreeFloating ¶
func (n *Finally) GetFreeFloating() *freefloating.Collection
func (*Finally) GetPosition ¶
GetPosition returns node positions
func (*Finally) SetPosition ¶
SetPosition sets node position
type For ¶
type For struct { FreeFloating freefloating.Collection Position *position.Position Init []node.Node Cond []node.Node Loop []node.Node Stmt node.Node AltSyntax bool // Whether alternative colon-style syntax is used }
For node
func (*For) GetFreeFloating ¶
func (n *For) GetFreeFloating() *freefloating.Collection
func (*For) GetPosition ¶
GetPosition returns node positions
func (*For) SetPosition ¶
SetPosition sets node position
type Foreach ¶
type Foreach struct { FreeFloating freefloating.Collection Position *position.Position Expr node.Node Key node.Node Variable node.Node Stmt node.Node AltSyntax bool // Whether alternative colon-style syntax is used }
Foreach node
func NewForeach ¶
NewForeach node constructor
func (*Foreach) GetFreeFloating ¶
func (n *Foreach) GetFreeFloating() *freefloating.Collection
func (*Foreach) GetPosition ¶
GetPosition returns node positions
func (*Foreach) SetPosition ¶
SetPosition sets node position
type Function ¶
type Function struct { FreeFloating freefloating.Collection Position *position.Position ReturnsRef bool PhpDocComment string FunctionName *node.Identifier Params []node.Node ReturnType node.Node Stmts []node.Node }
Function node
func NewFunction ¶
func NewFunction(FunctionName *node.Identifier, ReturnsRef bool, Params []node.Node, ReturnType node.Node, Stmts []node.Node, PhpDocComment string) *Function
NewFunction node constructor
func (*Function) GetFreeFloating ¶
func (n *Function) GetFreeFloating() *freefloating.Collection
func (*Function) GetPosition ¶
GetPosition returns node positions
func (*Function) SetPosition ¶
SetPosition sets node position
type Global ¶
type Global struct { FreeFloating freefloating.Collection Position *position.Position Vars []node.Node }
Global node
func (*Global) GetFreeFloating ¶
func (n *Global) GetFreeFloating() *freefloating.Collection
func (*Global) GetPosition ¶
GetPosition returns node positions
func (*Global) SetPosition ¶
SetPosition sets node position
type Goto ¶
type Goto struct { FreeFloating freefloating.Collection Position *position.Position Label *node.Identifier }
Goto node
func (*Goto) GetFreeFloating ¶
func (n *Goto) GetFreeFloating() *freefloating.Collection
func (*Goto) GetPosition ¶
GetPosition returns node positions
func (*Goto) SetPosition ¶
SetPosition sets node position
type GroupUse ¶
type GroupUse struct { FreeFloating freefloating.Collection Position *position.Position UseType node.Node Prefix node.Node UseList []node.Node }
GroupUse node
func NewGroupUse ¶
NewGroupUse node constructor
func (*GroupUse) GetFreeFloating ¶
func (n *GroupUse) GetFreeFloating() *freefloating.Collection
func (*GroupUse) GetPosition ¶
GetPosition returns node positions
func (*GroupUse) SetPosition ¶
SetPosition sets node position
func (*GroupUse) SetUseType ¶
SetUseType set use type and returns node
type HaltCompiler ¶
type HaltCompiler struct { FreeFloating freefloating.Collection Position *position.Position }
HaltCompiler node
func (*HaltCompiler) GetFreeFloating ¶
func (n *HaltCompiler) GetFreeFloating() *freefloating.Collection
func (*HaltCompiler) GetPosition ¶
func (n *HaltCompiler) GetPosition() *position.Position
GetPosition returns node positions
func (*HaltCompiler) SetPosition ¶
func (n *HaltCompiler) SetPosition(p *position.Position)
SetPosition sets node position
func (*HaltCompiler) Walk ¶
func (n *HaltCompiler) Walk(v walker.Visitor)
Walk traverses nodes Walk is invoked recursively until v.EnterNode returns true
type If ¶
type If struct { FreeFloating freefloating.Collection Position *position.Position Cond node.Node Stmt node.Node ElseIf []node.Node // Always []*ElseIf Else node.Node AltSyntax bool // Whether alternative colon-style syntax is used }
If node
func (*If) GetFreeFloating ¶
func (n *If) GetFreeFloating() *freefloating.Collection
func (*If) GetPosition ¶
GetPosition returns node positions
func (*If) SetPosition ¶
SetPosition sets node position
type InlineHtml ¶
type InlineHtml struct { FreeFloating freefloating.Collection Position *position.Position Value string }
InlineHtml node
func (*InlineHtml) GetFreeFloating ¶
func (n *InlineHtml) GetFreeFloating() *freefloating.Collection
func (*InlineHtml) GetPosition ¶
func (n *InlineHtml) GetPosition() *position.Position
GetPosition returns node positions
func (*InlineHtml) SetPosition ¶
func (n *InlineHtml) SetPosition(p *position.Position)
SetPosition sets node position
func (*InlineHtml) Walk ¶
func (n *InlineHtml) Walk(v walker.Visitor)
Walk traverses nodes Walk is invoked recursively until v.EnterNode returns true
type Interface ¶
type Interface struct { FreeFloating freefloating.Collection Position *position.Position PhpDocComment string InterfaceName *node.Identifier Extends *InterfaceExtends Stmts []node.Node }
Interface node
func NewInterface ¶
func NewInterface(InterfaceName *node.Identifier, Extends *InterfaceExtends, Stmts []node.Node, PhpDocComment string) *Interface
NewInterface node constructor
func (*Interface) GetFreeFloating ¶
func (n *Interface) GetFreeFloating() *freefloating.Collection
func (*Interface) GetPosition ¶
GetPosition returns node positions
func (*Interface) SetPosition ¶
SetPosition sets node position
type InterfaceExtends ¶
type InterfaceExtends struct { FreeFloating freefloating.Collection Position *position.Position InterfaceNames []node.Node }
InterfaceExtends node
func NewInterfaceExtends ¶
func NewInterfaceExtends(InterfaceNames []node.Node) *InterfaceExtends
NewInterfaceExtends node constructor
func (*InterfaceExtends) GetFreeFloating ¶
func (n *InterfaceExtends) GetFreeFloating() *freefloating.Collection
func (*InterfaceExtends) GetPosition ¶
func (n *InterfaceExtends) GetPosition() *position.Position
GetPosition returns node positions
func (*InterfaceExtends) SetPosition ¶
func (n *InterfaceExtends) SetPosition(p *position.Position)
SetPosition sets node position
func (*InterfaceExtends) Walk ¶
func (n *InterfaceExtends) Walk(v walker.Visitor)
Walk traverses nodes Walk is invoked recursively until v.EnterNode returns true
type Label ¶
type Label struct { FreeFloating freefloating.Collection Position *position.Position LabelName *node.Identifier }
Label node
func (*Label) GetFreeFloating ¶
func (n *Label) GetFreeFloating() *freefloating.Collection
func (*Label) GetPosition ¶
GetPosition returns node positions
func (*Label) SetPosition ¶
SetPosition sets node position
type Namespace ¶
type Namespace struct { FreeFloating freefloating.Collection Position *position.Position NamespaceName node.Node Stmts []node.Node }
Namespace node
func NewNamespace ¶
NewNamespace node constructor
func (*Namespace) GetFreeFloating ¶
func (n *Namespace) GetFreeFloating() *freefloating.Collection
func (*Namespace) GetPosition ¶
GetPosition returns node positions
func (*Namespace) SetPosition ¶
SetPosition sets node position
type Nop ¶
type Nop struct { FreeFloating freefloating.Collection Position *position.Position }
Nop node
func (*Nop) GetFreeFloating ¶
func (n *Nop) GetFreeFloating() *freefloating.Collection
func (*Nop) GetPosition ¶
GetPosition returns node positions
func (*Nop) SetPosition ¶
SetPosition sets node position
type Property ¶
type Property struct { FreeFloating freefloating.Collection Position *position.Position PhpDocComment string Variable *node.SimpleVar Expr node.Node }
Property node
func NewProperty ¶
NewProperty node constructor
func (*Property) GetFreeFloating ¶
func (n *Property) GetFreeFloating() *freefloating.Collection
func (*Property) GetPosition ¶
GetPosition returns node positions
func (*Property) SetPosition ¶
SetPosition sets node position
type PropertyList ¶
type PropertyList struct { FreeFloating freefloating.Collection Position *position.Position Modifiers []*node.Identifier Type node.Node Properties []node.Node }
PropertyList node
func NewPropertyList ¶
func NewPropertyList(Modifiers []*node.Identifier, Type node.Node, Properties []node.Node) *PropertyList
NewPropertyList node constructor
func (*PropertyList) GetFreeFloating ¶
func (n *PropertyList) GetFreeFloating() *freefloating.Collection
func (*PropertyList) GetPosition ¶
func (n *PropertyList) GetPosition() *position.Position
GetPosition returns node positions
func (*PropertyList) SetPosition ¶
func (n *PropertyList) SetPosition(p *position.Position)
SetPosition sets node position
func (*PropertyList) Walk ¶
func (n *PropertyList) Walk(v walker.Visitor)
Walk traverses nodes Walk is invoked recursively until v.EnterNode returns true
type Return ¶
type Return struct { FreeFloating freefloating.Collection Position *position.Position Expr node.Node }
Return node
func (*Return) GetFreeFloating ¶
func (n *Return) GetFreeFloating() *freefloating.Collection
func (*Return) GetPosition ¶
GetPosition returns node positions
func (*Return) SetPosition ¶
SetPosition sets node position
type Static ¶
type Static struct { FreeFloating freefloating.Collection Position *position.Position Vars []node.Node }
Static node
func (*Static) GetFreeFloating ¶
func (n *Static) GetFreeFloating() *freefloating.Collection
func (*Static) GetPosition ¶
GetPosition returns node positions
func (*Static) SetPosition ¶
SetPosition sets node position
type StaticVar ¶
type StaticVar struct { FreeFloating freefloating.Collection Position *position.Position Variable *node.SimpleVar Expr node.Node }
StaticVar node
func NewStaticVar ¶
NewStaticVar node constructor
func (*StaticVar) GetFreeFloating ¶
func (n *StaticVar) GetFreeFloating() *freefloating.Collection
func (*StaticVar) GetPosition ¶
GetPosition returns node positions
func (*StaticVar) SetPosition ¶
SetPosition sets node position
type StmtList ¶
type StmtList struct { FreeFloating freefloating.Collection Position *position.Position Stmts []node.Node }
StmtList node
func (*StmtList) GetFreeFloating ¶
func (n *StmtList) GetFreeFloating() *freefloating.Collection
func (*StmtList) GetPosition ¶
GetPosition returns node positions
func (*StmtList) SetPosition ¶
SetPosition sets node position
type Switch ¶
type Switch struct { FreeFloating freefloating.Collection Position *position.Position Cond node.Node CaseList *CaseList AltSyntax bool // Whether alternative colon-style syntax is used }
Switch node
func (*Switch) GetFreeFloating ¶
func (n *Switch) GetFreeFloating() *freefloating.Collection
func (*Switch) GetPosition ¶
GetPosition returns node positions
func (*Switch) SetPosition ¶
SetPosition sets node position
type Throw ¶
type Throw struct { FreeFloating freefloating.Collection Position *position.Position Expr node.Node }
Throw node
func (*Throw) GetFreeFloating ¶
func (n *Throw) GetFreeFloating() *freefloating.Collection
func (*Throw) GetPosition ¶
GetPosition returns node positions
func (*Throw) SetPosition ¶
SetPosition sets node position
type Trait ¶
type Trait struct { FreeFloating freefloating.Collection Position *position.Position PhpDocComment string TraitName *node.Identifier Stmts []node.Node }
Trait node
func (*Trait) GetFreeFloating ¶
func (n *Trait) GetFreeFloating() *freefloating.Collection
func (*Trait) GetPosition ¶
GetPosition returns node positions
func (*Trait) SetPosition ¶
SetPosition sets node position
type TraitAdaptationList ¶
type TraitAdaptationList struct { FreeFloating freefloating.Collection Position *position.Position Adaptations []node.Node }
TraitAdaptationList node
func NewTraitAdaptationList ¶
func NewTraitAdaptationList(Adaptations []node.Node) *TraitAdaptationList
NewTraitAdaptationList node constructor
func (*TraitAdaptationList) GetFreeFloating ¶
func (n *TraitAdaptationList) GetFreeFloating() *freefloating.Collection
func (*TraitAdaptationList) GetPosition ¶
func (n *TraitAdaptationList) GetPosition() *position.Position
GetPosition returns node positions
func (*TraitAdaptationList) SetPosition ¶
func (n *TraitAdaptationList) SetPosition(p *position.Position)
SetPosition sets node position
func (*TraitAdaptationList) Walk ¶
func (n *TraitAdaptationList) Walk(v walker.Visitor)
Walk traverses nodes Walk is invoked recursively until v.EnterNode returns true
type TraitMethodRef ¶
type TraitMethodRef struct { FreeFloating freefloating.Collection Position *position.Position Trait node.Node Method *node.Identifier }
TraitMethodRef node
func NewTraitMethodRef ¶
func NewTraitMethodRef(Trait node.Node, Method *node.Identifier) *TraitMethodRef
NewTraitMethodRef node constructor
func (*TraitMethodRef) GetFreeFloating ¶
func (n *TraitMethodRef) GetFreeFloating() *freefloating.Collection
func (*TraitMethodRef) GetPosition ¶
func (n *TraitMethodRef) GetPosition() *position.Position
GetPosition returns node positions
func (*TraitMethodRef) SetPosition ¶
func (n *TraitMethodRef) SetPosition(p *position.Position)
SetPosition sets node position
func (*TraitMethodRef) Walk ¶
func (n *TraitMethodRef) Walk(v walker.Visitor)
Walk traverses nodes Walk is invoked recursively until v.EnterNode returns true
type TraitUse ¶
type TraitUse struct { FreeFloating freefloating.Collection Position *position.Position Traits []node.Node TraitAdaptationList node.Node }
TraitUse node
func NewTraitUse ¶
NewTraitUse node constructor
func (*TraitUse) GetFreeFloating ¶
func (n *TraitUse) GetFreeFloating() *freefloating.Collection
func (*TraitUse) GetPosition ¶
GetPosition returns node positions
func (*TraitUse) SetPosition ¶
SetPosition sets node position
type TraitUseAlias ¶
type TraitUseAlias struct { FreeFloating freefloating.Collection Position *position.Position Ref node.Node Modifier node.Node Alias *node.Identifier }
TraitUseAlias node
func NewTraitUseAlias ¶
func NewTraitUseAlias(Ref node.Node, Modifier node.Node, Alias *node.Identifier) *TraitUseAlias
NewTraitUseAlias node constructor
func (*TraitUseAlias) GetFreeFloating ¶
func (n *TraitUseAlias) GetFreeFloating() *freefloating.Collection
func (*TraitUseAlias) GetPosition ¶
func (n *TraitUseAlias) GetPosition() *position.Position
GetPosition returns node positions
func (*TraitUseAlias) SetPosition ¶
func (n *TraitUseAlias) SetPosition(p *position.Position)
SetPosition sets node position
func (*TraitUseAlias) Walk ¶
func (n *TraitUseAlias) Walk(v walker.Visitor)
Walk traverses nodes Walk is invoked recursively until v.EnterNode returns true
type TraitUsePrecedence ¶
type TraitUsePrecedence struct { FreeFloating freefloating.Collection Position *position.Position Ref node.Node Insteadof []node.Node }
TraitUsePrecedence node
func NewTraitUsePrecedence ¶
func NewTraitUsePrecedence(Ref node.Node, Insteadof []node.Node) *TraitUsePrecedence
NewTraitUsePrecedence node constructor
func (*TraitUsePrecedence) GetFreeFloating ¶
func (n *TraitUsePrecedence) GetFreeFloating() *freefloating.Collection
func (*TraitUsePrecedence) GetPosition ¶
func (n *TraitUsePrecedence) GetPosition() *position.Position
GetPosition returns node positions
func (*TraitUsePrecedence) SetPosition ¶
func (n *TraitUsePrecedence) SetPosition(p *position.Position)
SetPosition sets node position
func (*TraitUsePrecedence) Walk ¶
func (n *TraitUsePrecedence) Walk(v walker.Visitor)
Walk traverses nodes Walk is invoked recursively until v.EnterNode returns true
type Try ¶
type Try struct { FreeFloating freefloating.Collection Position *position.Position Stmts []node.Node Catches []node.Node Finally node.Node }
Try node
func (*Try) GetFreeFloating ¶
func (n *Try) GetFreeFloating() *freefloating.Collection
func (*Try) GetPosition ¶
GetPosition returns node positions
func (*Try) SetPosition ¶
SetPosition sets node position
type Unset ¶
type Unset struct { FreeFloating freefloating.Collection Position *position.Position Vars []node.Node }
Unset node
func (*Unset) GetFreeFloating ¶
func (n *Unset) GetFreeFloating() *freefloating.Collection
func (*Unset) GetPosition ¶
GetPosition returns node positions
func (*Unset) SetPosition ¶
SetPosition sets node position
type Use ¶
type Use struct { FreeFloating freefloating.Collection Position *position.Position UseType *node.Identifier Use node.Node Alias *node.Identifier }
Use node
func (*Use) GetFreeFloating ¶
func (n *Use) GetFreeFloating() *freefloating.Collection
func (*Use) GetPosition ¶
GetPosition returns node positions
func (*Use) SetPosition ¶
SetPosition sets node position
func (*Use) SetUseType ¶
func (n *Use) SetUseType(UseType *node.Identifier) node.Node
SetUseType set use type and returns node
type UseList ¶
type UseList struct { FreeFloating freefloating.Collection Position *position.Position UseType node.Node Uses []node.Node }
UseList node
func NewUseList ¶
NewUseList node constructor
func (*UseList) GetFreeFloating ¶
func (n *UseList) GetFreeFloating() *freefloating.Collection
func (*UseList) GetPosition ¶
GetPosition returns node positions
func (*UseList) SetPosition ¶
SetPosition sets node position
type While ¶
type While struct { FreeFloating freefloating.Collection Position *position.Position Cond node.Node Stmt node.Node AltSyntax bool // Whether alternative colon-style syntax is used }
While node
func (*While) GetFreeFloating ¶
func (n *While) GetFreeFloating() *freefloating.Collection
func (*While) GetPosition ¶
GetPosition returns node positions
func (*While) SetPosition ¶
SetPosition sets node position
Source Files ¶
- n_break.go
- n_case.go
- n_case_list.go
- n_catch.go
- n_class.go
- n_class_const_list.go
- n_class_extends.go
- n_class_implements.go
- n_class_method.go
- n_const_list.go
- n_constant.go
- n_continue.go
- n_declare.go
- n_default.go
- n_do.go
- n_echo.go
- n_else.go
- n_else_if.go
- n_expression.go
- n_finally.go
- n_for.go
- n_foreach.go
- n_function.go
- n_global.go
- n_goto.go
- n_group_use.go
- n_halt_compiler.go
- n_if.go
- n_inline_html.go
- n_interface.go
- n_interface_extends.go
- n_label.go
- n_namespace.go
- n_nop.go
- n_property.go
- n_property_list.go
- n_return.go
- n_static.go
- n_static_var.go
- n_stmt_list.go
- n_switch.go
- n_throw.go
- n_trait.go
- n_trait_adaptation_list.go
- n_trait_method_ref.go
- n_trait_use.go
- n_trait_use_alias.go
- n_trait_use_precedence.go
- n_try.go
- n_unset.go
- n_use.go
- n_use_list.go
- n_while.go