Documentation
¶
Index ¶
- type AltElse
- type AltElseIf
- type AltFor
- type AltForeach
- type AltIf
- func (n *AltIf) AddElseIf(ElseIf node.Node) node.Node
- func (n *AltIf) Attributes() map[string]interface{}
- func (n *AltIf) GetFreeFloating() *freefloating.Collection
- func (n *AltIf) GetPosition() *position.Position
- func (n *AltIf) SetElse(Else node.Node) node.Node
- func (n *AltIf) SetPosition(p *position.Position)
- func (n *AltIf) Walk(v walker.Visitor)
- type AltSwitch
- type AltWhile
- 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
- func (n *GroupUse) Attributes() map[string]interface{}
- func (n *GroupUse) GetFreeFloating() *freefloating.Collection
- func (n *GroupUse) GetPosition() *position.Position
- func (n *GroupUse) SetPosition(p *position.Position)
- func (n *GroupUse) SetUseType(UseType node.Node) node.Node
- func (n *GroupUse) Walk(v walker.Visitor)
- type HaltCompiler
- type If
- func (n *If) AddElseIf(ElseIf node.Node) node.Node
- func (n *If) Attributes() map[string]interface{}
- func (n *If) GetFreeFloating() *freefloating.Collection
- func (n *If) GetPosition() *position.Position
- func (n *If) SetElse(Else node.Node) node.Node
- func (n *If) SetPosition(p *position.Position)
- func (n *If) Walk(v walker.Visitor)
- type InlineHtml
- type Interface
- type InterfaceExtends
- func (n *InterfaceExtends) Attributes() map[string]interface{}
- func (n *InterfaceExtends) GetFreeFloating() *freefloating.Collection
- func (n *InterfaceExtends) GetPosition() *position.Position
- func (n *InterfaceExtends) SetPosition(p *position.Position)
- func (n *InterfaceExtends) Walk(v walker.Visitor)
- 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
- func (n *TraitAdaptationList) Attributes() map[string]interface{}
- func (n *TraitAdaptationList) GetFreeFloating() *freefloating.Collection
- func (n *TraitAdaptationList) GetPosition() *position.Position
- func (n *TraitAdaptationList) SetPosition(p *position.Position)
- func (n *TraitAdaptationList) Walk(v walker.Visitor)
- type TraitMethodRef
- type TraitUse
- type TraitUseAlias
- type TraitUsePrecedence
- func (n *TraitUsePrecedence) Attributes() map[string]interface{}
- func (n *TraitUsePrecedence) GetFreeFloating() *freefloating.Collection
- func (n *TraitUsePrecedence) GetPosition() *position.Position
- func (n *TraitUsePrecedence) SetPosition(p *position.Position)
- func (n *TraitUsePrecedence) Walk(v walker.Visitor)
- 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 AltElse ¶
type AltElse struct { FreeFloating freefloating.Collection Position *position.Position Stmt node.Node }
AltElse node
func (*AltElse) Attributes ¶
Attributes returns node attributes as map
func (*AltElse) GetFreeFloating ¶ added in v0.6.0
func (n *AltElse) GetFreeFloating() *freefloating.Collection
func (*AltElse) GetPosition ¶ added in v0.6.0
GetPosition returns node positions
func (*AltElse) SetPosition ¶ added in v0.6.0
SetPosition sets node position
type AltElseIf ¶
type AltElseIf struct { FreeFloating freefloating.Collection Position *position.Position Cond node.Node Stmt node.Node }
AltElseIf node
func NewAltElseIf ¶
NewAltElseIf node constructor
func (*AltElseIf) Attributes ¶
Attributes returns node attributes as map
func (*AltElseIf) GetFreeFloating ¶ added in v0.6.0
func (n *AltElseIf) GetFreeFloating() *freefloating.Collection
func (*AltElseIf) GetPosition ¶ added in v0.6.0
GetPosition returns node positions
func (*AltElseIf) SetPosition ¶ added in v0.6.0
SetPosition sets node position
type AltFor ¶ added in v0.2.0
type AltFor struct { FreeFloating freefloating.Collection Position *position.Position Init []node.Node Cond []node.Node Loop []node.Node Stmt node.Node }
AltFor node
func (*AltFor) Attributes ¶ added in v0.2.0
Attributes returns node attributes as map
func (*AltFor) GetFreeFloating ¶ added in v0.6.0
func (n *AltFor) GetFreeFloating() *freefloating.Collection
func (*AltFor) GetPosition ¶ added in v0.6.0
GetPosition returns node positions
func (*AltFor) SetPosition ¶ added in v0.6.0
SetPosition sets node position
type AltForeach ¶ added in v0.2.0
type AltForeach struct { FreeFloating freefloating.Collection Position *position.Position Expr node.Node Key node.Node Variable node.Node Stmt node.Node }
AltForeach node
func NewAltForeach ¶ added in v0.2.0
NewAltForeach node constructor
func (*AltForeach) Attributes ¶ added in v0.2.0
func (n *AltForeach) Attributes() map[string]interface{}
Attributes returns node attributes as map
func (*AltForeach) GetFreeFloating ¶ added in v0.6.0
func (n *AltForeach) GetFreeFloating() *freefloating.Collection
func (*AltForeach) GetPosition ¶ added in v0.6.0
func (n *AltForeach) GetPosition() *position.Position
GetPosition returns node positions
func (*AltForeach) SetPosition ¶ added in v0.6.0
func (n *AltForeach) SetPosition(p *position.Position)
SetPosition sets node position
func (*AltForeach) Walk ¶ added in v0.2.0
func (n *AltForeach) Walk(v walker.Visitor)
Walk traverses nodes Walk is invoked recursively until v.EnterNode returns true
type AltIf ¶
type AltIf struct { FreeFloating freefloating.Collection Position *position.Position Cond node.Node Stmt node.Node ElseIf []node.Node Else node.Node }
AltIf node
func (*AltIf) Attributes ¶
Attributes returns node attributes as map
func (*AltIf) GetFreeFloating ¶ added in v0.6.0
func (n *AltIf) GetFreeFloating() *freefloating.Collection
func (*AltIf) GetPosition ¶ added in v0.6.0
GetPosition returns node positions
func (*AltIf) SetPosition ¶ added in v0.6.0
SetPosition sets node position
type AltSwitch ¶ added in v0.2.0
type AltSwitch struct { FreeFloating freefloating.Collection Position *position.Position Cond node.Node CaseList *CaseList }
AltSwitch node
func NewAltSwitch ¶ added in v0.2.0
NewAltSwitch node constructor
func (*AltSwitch) Attributes ¶ added in v0.2.0
Attributes returns node attributes as map
func (*AltSwitch) GetFreeFloating ¶ added in v0.6.0
func (n *AltSwitch) GetFreeFloating() *freefloating.Collection
func (*AltSwitch) GetPosition ¶ added in v0.6.0
GetPosition returns node positions
func (*AltSwitch) SetPosition ¶ added in v0.6.0
SetPosition sets node position
type AltWhile ¶ added in v0.2.0
type AltWhile struct { FreeFloating freefloating.Collection Position *position.Position Cond node.Node Stmt node.Node }
AltWhile node
func NewAltWhile ¶ added in v0.2.0
NewAltWhile node constructor
func (*AltWhile) Attributes ¶ added in v0.2.0
Attributes returns node attributes as map
func (*AltWhile) GetFreeFloating ¶ added in v0.6.0
func (n *AltWhile) GetFreeFloating() *freefloating.Collection
func (*AltWhile) GetPosition ¶ added in v0.6.0
GetPosition returns node positions
func (*AltWhile) SetPosition ¶ added in v0.6.0
SetPosition sets node position
type Break ¶
type Break struct { FreeFloating freefloating.Collection Position *position.Position Expr node.Node }
Break node
func (*Break) Attributes ¶
Attributes returns node attributes as map
func (*Break) GetFreeFloating ¶ added in v0.6.0
func (n *Break) GetFreeFloating() *freefloating.Collection
func (*Break) GetPosition ¶ added in v0.6.0
GetPosition returns node positions
func (*Break) SetPosition ¶ added in v0.6.0
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) Attributes ¶
Attributes returns node attributes as map
func (*Case) GetFreeFloating ¶ added in v0.6.0
func (n *Case) GetFreeFloating() *freefloating.Collection
func (*Case) GetPosition ¶ added in v0.6.0
GetPosition returns node positions
func (*Case) SetPosition ¶ added in v0.6.0
SetPosition sets node position
type CaseList ¶ added in v0.5.0
type CaseList struct { FreeFloating freefloating.Collection Position *position.Position Cases []node.Node }
CaseList node
func NewCaseList ¶ added in v0.5.0
NewCaseList node constructor
func (*CaseList) Attributes ¶ added in v0.5.0
Attributes returns node attributes as map
func (*CaseList) GetFreeFloating ¶ added in v0.6.0
func (n *CaseList) GetFreeFloating() *freefloating.Collection
func (*CaseList) GetPosition ¶ added in v0.6.0
GetPosition returns node positions
func (*CaseList) SetPosition ¶ added in v0.6.0
SetPosition sets node position
type Catch ¶
type Catch struct { FreeFloating freefloating.Collection Position *position.Position Types []node.Node Variable node.Node Stmts []node.Node }
Catch node
func (*Catch) Attributes ¶
Attributes returns node attributes as map
func (*Catch) GetFreeFloating ¶ added in v0.6.0
func (n *Catch) GetFreeFloating() *freefloating.Collection
func (*Catch) GetPosition ¶ added in v0.6.0
GetPosition returns node positions
func (*Catch) SetPosition ¶ added in v0.6.0
SetPosition sets node position
type Class ¶
type Class struct { FreeFloating freefloating.Collection Position *position.Position PhpDocComment string ClassName node.Node Modifiers []node.Node ArgumentList *node.ArgumentList Extends *ClassExtends Implements *ClassImplements Stmts []node.Node }
Class node
func NewClass ¶
func NewClass(ClassName node.Node, Modifiers []node.Node, ArgumentList *node.ArgumentList, Extends *ClassExtends, Implements *ClassImplements, Stmts []node.Node, PhpDocComment string) *Class
NewClass node constructor
func (*Class) Attributes ¶
Attributes returns node attributes as map
func (*Class) GetFreeFloating ¶ added in v0.6.0
func (n *Class) GetFreeFloating() *freefloating.Collection
func (*Class) GetPosition ¶ added in v0.6.0
GetPosition returns node positions
func (*Class) SetPosition ¶ added in v0.6.0
SetPosition sets node position
type ClassConstList ¶
type ClassConstList struct { FreeFloating freefloating.Collection Position *position.Position Modifiers []node.Node Consts []node.Node }
ClassConstList node
func NewClassConstList ¶
func NewClassConstList(Modifiers []node.Node, Consts []node.Node) *ClassConstList
NewClassConstList node constructor
func (*ClassConstList) Attributes ¶
func (n *ClassConstList) Attributes() map[string]interface{}
Attributes returns node attributes as map
func (*ClassConstList) GetFreeFloating ¶ added in v0.6.0
func (n *ClassConstList) GetFreeFloating() *freefloating.Collection
func (*ClassConstList) GetPosition ¶ added in v0.6.0
func (n *ClassConstList) GetPosition() *position.Position
GetPosition returns node positions
func (*ClassConstList) SetPosition ¶ added in v0.6.0
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 ¶ added in v0.5.0
type ClassExtends struct { FreeFloating freefloating.Collection Position *position.Position ClassName node.Node }
ClassExtends node
func NewClassExtends ¶ added in v0.5.0
func NewClassExtends(className node.Node) *ClassExtends
NewClassExtends node constructor
func (*ClassExtends) Attributes ¶ added in v0.5.0
func (n *ClassExtends) Attributes() map[string]interface{}
Attributes returns node attributes as map
func (*ClassExtends) GetFreeFloating ¶ added in v0.6.0
func (n *ClassExtends) GetFreeFloating() *freefloating.Collection
func (*ClassExtends) GetPosition ¶ added in v0.6.0
func (n *ClassExtends) GetPosition() *position.Position
GetPosition returns node positions
func (*ClassExtends) SetPosition ¶ added in v0.6.0
func (n *ClassExtends) SetPosition(p *position.Position)
SetPosition sets node position
func (*ClassExtends) Walk ¶ added in v0.5.0
func (n *ClassExtends) Walk(v walker.Visitor)
Walk traverses nodes Walk is invoked recursively until v.EnterNode returns true
type ClassImplements ¶ added in v0.5.0
type ClassImplements struct { FreeFloating freefloating.Collection Position *position.Position InterfaceNames []node.Node }
ClassImplements node
func NewClassImplements ¶ added in v0.5.0
func NewClassImplements(interfaceNames []node.Node) *ClassImplements
NewClassImplements node constructor
func (*ClassImplements) Attributes ¶ added in v0.5.0
func (n *ClassImplements) Attributes() map[string]interface{}
Attributes returns node attributes as map
func (*ClassImplements) GetFreeFloating ¶ added in v0.6.0
func (n *ClassImplements) GetFreeFloating() *freefloating.Collection
func (*ClassImplements) GetPosition ¶ added in v0.6.0
func (n *ClassImplements) GetPosition() *position.Position
GetPosition returns node positions
func (*ClassImplements) SetPosition ¶ added in v0.6.0
func (n *ClassImplements) SetPosition(p *position.Position)
SetPosition sets node position
func (*ClassImplements) Walk ¶ added in v0.5.0
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.Node Modifiers []node.Node Params []node.Node ReturnType node.Node Stmt node.Node }
ClassMethod node
func NewClassMethod ¶
func NewClassMethod(MethodName node.Node, Modifiers []node.Node, ReturnsRef bool, Params []node.Node, ReturnType node.Node, Stmt node.Node, PhpDocComment string) *ClassMethod
NewClassMethod node constructor
func (*ClassMethod) Attributes ¶
func (n *ClassMethod) Attributes() map[string]interface{}
Attributes returns node attributes as map
func (*ClassMethod) GetFreeFloating ¶ added in v0.6.0
func (n *ClassMethod) GetFreeFloating() *freefloating.Collection
func (*ClassMethod) GetPosition ¶ added in v0.6.0
func (n *ClassMethod) GetPosition() *position.Position
GetPosition returns node positions
func (*ClassMethod) SetPosition ¶ added in v0.6.0
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) Attributes ¶
Attributes returns node attributes as map
func (*ConstList) GetFreeFloating ¶ added in v0.6.0
func (n *ConstList) GetFreeFloating() *freefloating.Collection
func (*ConstList) GetPosition ¶ added in v0.6.0
GetPosition returns node positions
func (*ConstList) SetPosition ¶ added in v0.6.0
SetPosition sets node position
type Constant ¶
type Constant struct { FreeFloating freefloating.Collection Position *position.Position PhpDocComment string ConstantName node.Node Expr node.Node }
Constant node
func NewConstant ¶
NewConstant node constructor
func (*Constant) Attributes ¶
Attributes returns node attributes as map
func (*Constant) GetFreeFloating ¶ added in v0.6.0
func (n *Constant) GetFreeFloating() *freefloating.Collection
func (*Constant) GetPosition ¶ added in v0.6.0
GetPosition returns node positions
func (*Constant) SetPosition ¶ added in v0.6.0
SetPosition sets node position
type Continue ¶
type Continue struct { FreeFloating freefloating.Collection Position *position.Position Expr node.Node }
Continue node
func (*Continue) Attributes ¶
Attributes returns node attributes as map
func (*Continue) GetFreeFloating ¶ added in v0.6.0
func (n *Continue) GetFreeFloating() *freefloating.Collection
func (*Continue) GetPosition ¶ added in v0.6.0
GetPosition returns node positions
func (*Continue) SetPosition ¶ added in v0.6.0
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) Attributes ¶
Attributes returns node attributes as map
func (*Declare) GetFreeFloating ¶ added in v0.6.0
func (n *Declare) GetFreeFloating() *freefloating.Collection
func (*Declare) GetPosition ¶ added in v0.6.0
GetPosition returns node positions
func (*Declare) SetPosition ¶ added in v0.6.0
SetPosition sets node position
type Default ¶
type Default struct { FreeFloating freefloating.Collection Position *position.Position Stmts []node.Node }
Default node
func (*Default) Attributes ¶
Attributes returns node attributes as map
func (*Default) GetFreeFloating ¶ added in v0.6.0
func (n *Default) GetFreeFloating() *freefloating.Collection
func (*Default) GetPosition ¶ added in v0.6.0
GetPosition returns node positions
func (*Default) SetPosition ¶ added in v0.6.0
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) Attributes ¶
Attributes returns node attributes as map
func (*Do) GetFreeFloating ¶ added in v0.6.0
func (n *Do) GetFreeFloating() *freefloating.Collection
func (*Do) GetPosition ¶ added in v0.6.0
GetPosition returns node positions
func (*Do) SetPosition ¶ added in v0.6.0
SetPosition sets node position
type Echo ¶
type Echo struct { FreeFloating freefloating.Collection Position *position.Position Exprs []node.Node }
Echo node
func (*Echo) Attributes ¶
Attributes returns node attributes as map
func (*Echo) GetFreeFloating ¶ added in v0.6.0
func (n *Echo) GetFreeFloating() *freefloating.Collection
func (*Echo) GetPosition ¶ added in v0.6.0
GetPosition returns node positions
func (*Echo) SetPosition ¶ added in v0.6.0
SetPosition sets node position
type Else ¶
type Else struct { FreeFloating freefloating.Collection Position *position.Position Stmt node.Node }
Else node
func (*Else) Attributes ¶
Attributes returns node attributes as map
func (*Else) GetFreeFloating ¶ added in v0.6.0
func (n *Else) GetFreeFloating() *freefloating.Collection
func (*Else) GetPosition ¶ added in v0.6.0
GetPosition returns node positions
func (*Else) SetPosition ¶ added in v0.6.0
SetPosition sets node position
type ElseIf ¶
type ElseIf struct { FreeFloating freefloating.Collection Position *position.Position Cond node.Node Stmt node.Node }
ElseIf node
func (*ElseIf) Attributes ¶
Attributes returns node attributes as map
func (*ElseIf) GetFreeFloating ¶ added in v0.6.0
func (n *ElseIf) GetFreeFloating() *freefloating.Collection
func (*ElseIf) GetPosition ¶ added in v0.6.0
GetPosition returns node positions
func (*ElseIf) SetPosition ¶ added in v0.6.0
SetPosition sets node position
type Expression ¶
type Expression struct { FreeFloating freefloating.Collection Position *position.Position Expr node.Node }
Expression node
func (*Expression) Attributes ¶
func (n *Expression) Attributes() map[string]interface{}
Attributes returns node attributes as map
func (*Expression) GetFreeFloating ¶ added in v0.6.0
func (n *Expression) GetFreeFloating() *freefloating.Collection
func (*Expression) GetPosition ¶ added in v0.6.0
func (n *Expression) GetPosition() *position.Position
GetPosition returns node positions
func (*Expression) SetPosition ¶ added in v0.6.0
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) Attributes ¶
Attributes returns node attributes as map
func (*Finally) GetFreeFloating ¶ added in v0.6.0
func (n *Finally) GetFreeFloating() *freefloating.Collection
func (*Finally) GetPosition ¶ added in v0.6.0
GetPosition returns node positions
func (*Finally) SetPosition ¶ added in v0.6.0
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 }
For node
func (*For) Attributes ¶
Attributes returns node attributes as map
func (*For) GetFreeFloating ¶ added in v0.6.0
func (n *For) GetFreeFloating() *freefloating.Collection
func (*For) GetPosition ¶ added in v0.6.0
GetPosition returns node positions
func (*For) SetPosition ¶ added in v0.6.0
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 }
Foreach node
func NewForeach ¶
NewForeach node constructor
func (*Foreach) Attributes ¶
Attributes returns node attributes as map
func (*Foreach) GetFreeFloating ¶ added in v0.6.0
func (n *Foreach) GetFreeFloating() *freefloating.Collection
func (*Foreach) GetPosition ¶ added in v0.6.0
GetPosition returns node positions
func (*Foreach) SetPosition ¶ added in v0.6.0
SetPosition sets node position
type Function ¶
type Function struct { FreeFloating freefloating.Collection Position *position.Position ReturnsRef bool PhpDocComment string FunctionName node.Node Params []node.Node ReturnType node.Node Stmts []node.Node }
Function node
func NewFunction ¶
func NewFunction(FunctionName node.Node, ReturnsRef bool, Params []node.Node, ReturnType node.Node, Stmts []node.Node, PhpDocComment string) *Function
NewFunction node constructor
func (*Function) Attributes ¶
Attributes returns node attributes as map
func (*Function) GetFreeFloating ¶ added in v0.6.0
func (n *Function) GetFreeFloating() *freefloating.Collection
func (*Function) GetPosition ¶ added in v0.6.0
GetPosition returns node positions
func (*Function) SetPosition ¶ added in v0.6.0
SetPosition sets node position
type Global ¶
type Global struct { FreeFloating freefloating.Collection Position *position.Position Vars []node.Node }
Global node
func (*Global) Attributes ¶
Attributes returns node attributes as map
func (*Global) GetFreeFloating ¶ added in v0.6.0
func (n *Global) GetFreeFloating() *freefloating.Collection
func (*Global) GetPosition ¶ added in v0.6.0
GetPosition returns node positions
func (*Global) SetPosition ¶ added in v0.6.0
SetPosition sets node position
type Goto ¶
type Goto struct { FreeFloating freefloating.Collection Position *position.Position Label node.Node }
Goto node
func (*Goto) Attributes ¶
Attributes returns node attributes as map
func (*Goto) GetFreeFloating ¶ added in v0.6.0
func (n *Goto) GetFreeFloating() *freefloating.Collection
func (*Goto) GetPosition ¶ added in v0.6.0
GetPosition returns node positions
func (*Goto) SetPosition ¶ added in v0.6.0
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) Attributes ¶
Attributes returns node attributes as map
func (*GroupUse) GetFreeFloating ¶ added in v0.6.0
func (n *GroupUse) GetFreeFloating() *freefloating.Collection
func (*GroupUse) GetPosition ¶ added in v0.6.0
GetPosition returns node positions
func (*GroupUse) SetPosition ¶ added in v0.6.0
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) Attributes ¶
func (n *HaltCompiler) Attributes() map[string]interface{}
Attributes returns node attributes as map
func (*HaltCompiler) GetFreeFloating ¶ added in v0.6.0
func (n *HaltCompiler) GetFreeFloating() *freefloating.Collection
func (*HaltCompiler) GetPosition ¶ added in v0.6.0
func (n *HaltCompiler) GetPosition() *position.Position
GetPosition returns node positions
func (*HaltCompiler) SetPosition ¶ added in v0.6.0
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 Else node.Node }
If node
func (*If) Attributes ¶
Attributes returns node attributes as map
func (*If) GetFreeFloating ¶ added in v0.6.0
func (n *If) GetFreeFloating() *freefloating.Collection
func (*If) GetPosition ¶ added in v0.6.0
GetPosition returns node positions
func (*If) SetPosition ¶ added in v0.6.0
SetPosition sets node position
type InlineHtml ¶
type InlineHtml struct { FreeFloating freefloating.Collection Position *position.Position Value string }
InlineHtml node
func (*InlineHtml) Attributes ¶
func (n *InlineHtml) Attributes() map[string]interface{}
Attributes returns node attributes as map
func (*InlineHtml) GetFreeFloating ¶ added in v0.6.0
func (n *InlineHtml) GetFreeFloating() *freefloating.Collection
func (*InlineHtml) GetPosition ¶ added in v0.6.0
func (n *InlineHtml) GetPosition() *position.Position
GetPosition returns node positions
func (*InlineHtml) SetPosition ¶ added in v0.6.0
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.Node Extends *InterfaceExtends Stmts []node.Node }
Interface node
func NewInterface ¶
func NewInterface(InterfaceName node.Node, Extends *InterfaceExtends, Stmts []node.Node, PhpDocComment string) *Interface
NewInterface node constructor
func (*Interface) Attributes ¶
Attributes returns node attributes as map
func (*Interface) GetFreeFloating ¶ added in v0.6.0
func (n *Interface) GetFreeFloating() *freefloating.Collection
func (*Interface) GetPosition ¶ added in v0.6.0
GetPosition returns node positions
func (*Interface) SetPosition ¶ added in v0.6.0
SetPosition sets node position
type InterfaceExtends ¶ added in v0.5.0
type InterfaceExtends struct { FreeFloating freefloating.Collection Position *position.Position InterfaceNames []node.Node }
InterfaceExtends node
func NewInterfaceExtends ¶ added in v0.5.0
func NewInterfaceExtends(InterfaceNames []node.Node) *InterfaceExtends
NewInterfaceExtends node constructor
func (*InterfaceExtends) Attributes ¶ added in v0.5.0
func (n *InterfaceExtends) Attributes() map[string]interface{}
Attributes returns node attributes as map
func (*InterfaceExtends) GetFreeFloating ¶ added in v0.6.0
func (n *InterfaceExtends) GetFreeFloating() *freefloating.Collection
func (*InterfaceExtends) GetPosition ¶ added in v0.6.0
func (n *InterfaceExtends) GetPosition() *position.Position
GetPosition returns node positions
func (*InterfaceExtends) SetPosition ¶ added in v0.6.0
func (n *InterfaceExtends) SetPosition(p *position.Position)
SetPosition sets node position
func (*InterfaceExtends) Walk ¶ added in v0.5.0
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.Node }
Label node
func (*Label) Attributes ¶
Attributes returns node attributes as map
func (*Label) GetFreeFloating ¶ added in v0.6.0
func (n *Label) GetFreeFloating() *freefloating.Collection
func (*Label) GetPosition ¶ added in v0.6.0
GetPosition returns node positions
func (*Label) SetPosition ¶ added in v0.6.0
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) Attributes ¶
Attributes returns node attributes as map
func (*Namespace) GetFreeFloating ¶ added in v0.6.0
func (n *Namespace) GetFreeFloating() *freefloating.Collection
func (*Namespace) GetPosition ¶ added in v0.6.0
GetPosition returns node positions
func (*Namespace) SetPosition ¶ added in v0.6.0
SetPosition sets node position
type Nop ¶
type Nop struct { FreeFloating freefloating.Collection Position *position.Position }
Nop node
func (*Nop) Attributes ¶
Attributes returns node attributes as map
func (*Nop) GetFreeFloating ¶ added in v0.6.0
func (n *Nop) GetFreeFloating() *freefloating.Collection
func (*Nop) GetPosition ¶ added in v0.6.0
GetPosition returns node positions
func (*Nop) SetPosition ¶ added in v0.6.0
SetPosition sets node position
type Property ¶
type Property struct { FreeFloating freefloating.Collection Position *position.Position PhpDocComment string Variable node.Node Expr node.Node }
Property node
func NewProperty ¶
NewProperty node constructor
func (*Property) Attributes ¶
Attributes returns node attributes as map
func (*Property) GetFreeFloating ¶ added in v0.6.0
func (n *Property) GetFreeFloating() *freefloating.Collection
func (*Property) GetPosition ¶ added in v0.6.0
GetPosition returns node positions
func (*Property) SetPosition ¶ added in v0.6.0
SetPosition sets node position
type PropertyList ¶
type PropertyList struct { FreeFloating freefloating.Collection Position *position.Position Modifiers []node.Node Properties []node.Node }
PropertyList node
func NewPropertyList ¶
func NewPropertyList(Modifiers []node.Node, Properties []node.Node) *PropertyList
NewPropertyList node constructor
func (*PropertyList) Attributes ¶
func (n *PropertyList) Attributes() map[string]interface{}
Attributes returns node attributes as map
func (*PropertyList) GetFreeFloating ¶ added in v0.6.0
func (n *PropertyList) GetFreeFloating() *freefloating.Collection
func (*PropertyList) GetPosition ¶ added in v0.6.0
func (n *PropertyList) GetPosition() *position.Position
GetPosition returns node positions
func (*PropertyList) SetPosition ¶ added in v0.6.0
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) Attributes ¶
Attributes returns node attributes as map
func (*Return) GetFreeFloating ¶ added in v0.6.0
func (n *Return) GetFreeFloating() *freefloating.Collection
func (*Return) GetPosition ¶ added in v0.6.0
GetPosition returns node positions
func (*Return) SetPosition ¶ added in v0.6.0
SetPosition sets node position
type Static ¶
type Static struct { FreeFloating freefloating.Collection Position *position.Position Vars []node.Node }
Static node
func (*Static) Attributes ¶
Attributes returns node attributes as map
func (*Static) GetFreeFloating ¶ added in v0.6.0
func (n *Static) GetFreeFloating() *freefloating.Collection
func (*Static) GetPosition ¶ added in v0.6.0
GetPosition returns node positions
func (*Static) SetPosition ¶ added in v0.6.0
SetPosition sets node position
type StaticVar ¶
type StaticVar struct { FreeFloating freefloating.Collection Position *position.Position Variable node.Node Expr node.Node }
StaticVar node
func NewStaticVar ¶
NewStaticVar node constructor
func (*StaticVar) Attributes ¶
Attributes returns node attributes as map
func (*StaticVar) GetFreeFloating ¶ added in v0.6.0
func (n *StaticVar) GetFreeFloating() *freefloating.Collection
func (*StaticVar) GetPosition ¶ added in v0.6.0
GetPosition returns node positions
func (*StaticVar) SetPosition ¶ added in v0.6.0
SetPosition sets node position
type StmtList ¶
type StmtList struct { FreeFloating freefloating.Collection Position *position.Position Stmts []node.Node }
StmtList node
func (*StmtList) Attributes ¶
Attributes returns node attributes as map
func (*StmtList) GetFreeFloating ¶ added in v0.6.0
func (n *StmtList) GetFreeFloating() *freefloating.Collection
func (*StmtList) GetPosition ¶ added in v0.6.0
GetPosition returns node positions
func (*StmtList) SetPosition ¶ added in v0.6.0
SetPosition sets node position
type Switch ¶
type Switch struct { FreeFloating freefloating.Collection Position *position.Position Cond node.Node CaseList *CaseList }
Switch node
func (*Switch) Attributes ¶
Attributes returns node attributes as map
func (*Switch) GetFreeFloating ¶ added in v0.6.0
func (n *Switch) GetFreeFloating() *freefloating.Collection
func (*Switch) GetPosition ¶ added in v0.6.0
GetPosition returns node positions
func (*Switch) SetPosition ¶ added in v0.6.0
SetPosition sets node position
type Throw ¶
type Throw struct { FreeFloating freefloating.Collection Position *position.Position Expr node.Node }
Throw node
func (*Throw) Attributes ¶
Attributes returns node attributes as map
func (*Throw) GetFreeFloating ¶ added in v0.6.0
func (n *Throw) GetFreeFloating() *freefloating.Collection
func (*Throw) GetPosition ¶ added in v0.6.0
GetPosition returns node positions
func (*Throw) SetPosition ¶ added in v0.6.0
SetPosition sets node position
type Trait ¶
type Trait struct { FreeFloating freefloating.Collection Position *position.Position PhpDocComment string TraitName node.Node Stmts []node.Node }
Trait node
func (*Trait) Attributes ¶
Attributes returns node attributes as map
func (*Trait) GetFreeFloating ¶ added in v0.6.0
func (n *Trait) GetFreeFloating() *freefloating.Collection
func (*Trait) GetPosition ¶ added in v0.6.0
GetPosition returns node positions
func (*Trait) SetPosition ¶ added in v0.6.0
SetPosition sets node position
type TraitAdaptationList ¶ added in v0.5.0
type TraitAdaptationList struct { FreeFloating freefloating.Collection Position *position.Position Adaptations []node.Node }
TraitAdaptationList node
func NewTraitAdaptationList ¶ added in v0.5.0
func NewTraitAdaptationList(Adaptations []node.Node) *TraitAdaptationList
NewTraitAdaptationList node constructor
func (*TraitAdaptationList) Attributes ¶ added in v0.5.0
func (n *TraitAdaptationList) Attributes() map[string]interface{}
Attributes returns node attributes as map
func (*TraitAdaptationList) GetFreeFloating ¶ added in v0.6.0
func (n *TraitAdaptationList) GetFreeFloating() *freefloating.Collection
func (*TraitAdaptationList) GetPosition ¶ added in v0.6.0
func (n *TraitAdaptationList) GetPosition() *position.Position
GetPosition returns node positions
func (*TraitAdaptationList) SetPosition ¶ added in v0.6.0
func (n *TraitAdaptationList) SetPosition(p *position.Position)
SetPosition sets node position
func (*TraitAdaptationList) Walk ¶ added in v0.5.0
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.Node }
TraitMethodRef node
func NewTraitMethodRef ¶
func NewTraitMethodRef(Trait node.Node, Method node.Node) *TraitMethodRef
NewTraitMethodRef node constructor
func (*TraitMethodRef) Attributes ¶
func (n *TraitMethodRef) Attributes() map[string]interface{}
Attributes returns node attributes as map
func (*TraitMethodRef) GetFreeFloating ¶ added in v0.6.0
func (n *TraitMethodRef) GetFreeFloating() *freefloating.Collection
func (*TraitMethodRef) GetPosition ¶ added in v0.6.0
func (n *TraitMethodRef) GetPosition() *position.Position
GetPosition returns node positions
func (*TraitMethodRef) SetPosition ¶ added in v0.6.0
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) Attributes ¶
Attributes returns node attributes as map
func (*TraitUse) GetFreeFloating ¶ added in v0.6.0
func (n *TraitUse) GetFreeFloating() *freefloating.Collection
func (*TraitUse) GetPosition ¶ added in v0.6.0
GetPosition returns node positions
func (*TraitUse) SetPosition ¶ added in v0.6.0
SetPosition sets node position
type TraitUseAlias ¶
type TraitUseAlias struct { FreeFloating freefloating.Collection Position *position.Position Ref node.Node Modifier node.Node Alias node.Node }
TraitUseAlias node
func NewTraitUseAlias ¶
NewTraitUseAlias node constructor
func (*TraitUseAlias) Attributes ¶
func (n *TraitUseAlias) Attributes() map[string]interface{}
Attributes returns node attributes as map
func (*TraitUseAlias) GetFreeFloating ¶ added in v0.6.0
func (n *TraitUseAlias) GetFreeFloating() *freefloating.Collection
func (*TraitUseAlias) GetPosition ¶ added in v0.6.0
func (n *TraitUseAlias) GetPosition() *position.Position
GetPosition returns node positions
func (*TraitUseAlias) SetPosition ¶ added in v0.6.0
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) Attributes ¶
func (n *TraitUsePrecedence) Attributes() map[string]interface{}
Attributes returns node attributes as map
func (*TraitUsePrecedence) GetFreeFloating ¶ added in v0.6.0
func (n *TraitUsePrecedence) GetFreeFloating() *freefloating.Collection
func (*TraitUsePrecedence) GetPosition ¶ added in v0.6.0
func (n *TraitUsePrecedence) GetPosition() *position.Position
GetPosition returns node positions
func (*TraitUsePrecedence) SetPosition ¶ added in v0.6.0
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) Attributes ¶
Attributes returns node attributes as map
func (*Try) GetFreeFloating ¶ added in v0.6.0
func (n *Try) GetFreeFloating() *freefloating.Collection
func (*Try) GetPosition ¶ added in v0.6.0
GetPosition returns node positions
func (*Try) SetPosition ¶ added in v0.6.0
SetPosition sets node position
type Unset ¶
type Unset struct { FreeFloating freefloating.Collection Position *position.Position Vars []node.Node }
Unset node
func (*Unset) Attributes ¶
Attributes returns node attributes as map
func (*Unset) GetFreeFloating ¶ added in v0.6.0
func (n *Unset) GetFreeFloating() *freefloating.Collection
func (*Unset) GetPosition ¶ added in v0.6.0
GetPosition returns node positions
func (*Unset) SetPosition ¶ added in v0.6.0
SetPosition sets node position
type Use ¶
type Use struct { FreeFloating freefloating.Collection Position *position.Position UseType node.Node Use node.Node Alias node.Node }
Use node
func (*Use) Attributes ¶
Attributes returns node attributes as map
func (*Use) GetFreeFloating ¶ added in v0.6.0
func (n *Use) GetFreeFloating() *freefloating.Collection
func (*Use) GetPosition ¶ added in v0.6.0
GetPosition returns node positions
func (*Use) SetPosition ¶ added in v0.6.0
SetPosition sets node position
func (*Use) SetUseType ¶
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) Attributes ¶
Attributes returns node attributes as map
func (*UseList) GetFreeFloating ¶ added in v0.6.0
func (n *UseList) GetFreeFloating() *freefloating.Collection
func (*UseList) GetPosition ¶ added in v0.6.0
GetPosition returns node positions
func (*UseList) SetPosition ¶ added in v0.6.0
SetPosition sets node position
type While ¶
type While struct { FreeFloating freefloating.Collection Position *position.Position Cond node.Node Stmt node.Node }
While node
func (*While) Attributes ¶
Attributes returns node attributes as map
func (*While) GetFreeFloating ¶ added in v0.6.0
func (n *While) GetFreeFloating() *freefloating.Collection
func (*While) GetPosition ¶ added in v0.6.0
GetPosition returns node positions
func (*While) SetPosition ¶ added in v0.6.0
SetPosition sets node position
Source Files
¶
- n_alt_else.go
- n_alt_else_if.go
- n_alt_for.go
- n_alt_foreach.go
- n_alt_if.go
- n_alt_switch.go
- n_alt_while.go
- 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