Documentation ¶
Index ¶
- type Array
- type ArrayDimFetch
- type ArrayItem
- type BitwiseNot
- type BooleanNot
- type ClassConstFetch
- type Clone
- type Closure
- type ClosureUse
- type ConstFetch
- type Empty
- type ErrorSuppress
- type Eval
- type Exit
- type FunctionCall
- type Include
- type IncludeOnce
- type InstanceOf
- type Isset
- type List
- type MethodCall
- type New
- type PostDec
- type PostInc
- type PreDec
- type PreInc
- type Print
- type PropertyFetch
- type Reference
- type Require
- type RequireOnce
- type ShellExec
- type ShortArray
- type ShortList
- type StaticCall
- type StaticPropertyFetch
- func (n *StaticPropertyFetch) Attributes() map[string]interface{}
- func (n *StaticPropertyFetch) GetFreeFloating() *freefloating.Collection
- func (n *StaticPropertyFetch) GetPosition() *position.Position
- func (n *StaticPropertyFetch) SetPosition(p *position.Position)
- func (n *StaticPropertyFetch) Walk(v walker.Visitor)
- type Ternary
- type UnaryMinus
- type UnaryPlus
- type Variable
- func (n *Variable) Attributes() map[string]interface{}
- func (n *Variable) GetFreeFloating() *freefloating.Collection
- func (n *Variable) GetPosition() *position.Position
- func (n *Variable) SetPosition(p *position.Position)
- func (n *Variable) SetVarName(VarName node.Node)
- func (n *Variable) Walk(v walker.Visitor)
- type Yield
- type YieldFrom
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Array ¶
type Array struct { FreeFloating freefloating.Collection Position *position.Position Items []node.Node }
Array node
func (*Array) Attributes ¶
Attributes returns node attributes as map
func (*Array) GetFreeFloating ¶ added in v0.6.0
func (n *Array) GetFreeFloating() *freefloating.Collection
func (*Array) GetPosition ¶ added in v0.6.0
GetPosition returns node positions
func (*Array) SetPosition ¶ added in v0.6.0
SetPosition sets node position
type ArrayDimFetch ¶
type ArrayDimFetch struct { FreeFloating freefloating.Collection Position *position.Position Variable node.Node Dim node.Node }
ArrayDimFetch node
func NewArrayDimFetch ¶
func NewArrayDimFetch(Variable node.Node, Dim node.Node) *ArrayDimFetch
NewArrayDimFetch node constructor
func (*ArrayDimFetch) Attributes ¶
func (n *ArrayDimFetch) Attributes() map[string]interface{}
Attributes returns node attributes as map
func (*ArrayDimFetch) GetFreeFloating ¶ added in v0.6.0
func (n *ArrayDimFetch) GetFreeFloating() *freefloating.Collection
func (*ArrayDimFetch) GetPosition ¶ added in v0.6.0
func (n *ArrayDimFetch) GetPosition() *position.Position
GetPosition returns node positions
func (*ArrayDimFetch) SetPosition ¶ added in v0.6.0
func (n *ArrayDimFetch) SetPosition(p *position.Position)
SetPosition sets node position
func (*ArrayDimFetch) Walk ¶
func (n *ArrayDimFetch) Walk(v walker.Visitor)
Walk traverses nodes Walk is invoked recursively until v.EnterNode returns true
type ArrayItem ¶
type ArrayItem struct { FreeFloating freefloating.Collection Position *position.Position Key node.Node Val node.Node }
ArrayItem node
func NewArrayItem ¶
NewArrayItem node constructor
func (*ArrayItem) Attributes ¶
Attributes returns node attributes as map
func (*ArrayItem) GetFreeFloating ¶ added in v0.6.0
func (n *ArrayItem) GetFreeFloating() *freefloating.Collection
func (*ArrayItem) GetPosition ¶ added in v0.6.0
GetPosition returns node positions
func (*ArrayItem) SetPosition ¶ added in v0.6.0
SetPosition sets node position
type BitwiseNot ¶
type BitwiseNot struct { FreeFloating freefloating.Collection Position *position.Position Expr node.Node }
BitwiseNot node
func NewBitwiseNot ¶
func NewBitwiseNot(Expression node.Node) *BitwiseNot
NewBitwiseNot node constructor
func (*BitwiseNot) Attributes ¶
func (n *BitwiseNot) Attributes() map[string]interface{}
Attributes returns node attributes as map
func (*BitwiseNot) GetFreeFloating ¶ added in v0.6.0
func (n *BitwiseNot) GetFreeFloating() *freefloating.Collection
func (*BitwiseNot) GetPosition ¶ added in v0.6.0
func (n *BitwiseNot) GetPosition() *position.Position
GetPosition returns node positions
func (*BitwiseNot) SetPosition ¶ added in v0.6.0
func (n *BitwiseNot) SetPosition(p *position.Position)
SetPosition sets node position
func (*BitwiseNot) Walk ¶
func (n *BitwiseNot) Walk(v walker.Visitor)
Walk traverses nodes Walk is invoked recursively until v.EnterNode returns true
type BooleanNot ¶
type BooleanNot struct { FreeFloating freefloating.Collection Position *position.Position Expr node.Node }
BooleanNot node
func NewBooleanNot ¶
func NewBooleanNot(Expression node.Node) *BooleanNot
NewBooleanNot node constructor
func (*BooleanNot) Attributes ¶
func (n *BooleanNot) Attributes() map[string]interface{}
Attributes returns node attributes as map
func (*BooleanNot) GetFreeFloating ¶ added in v0.6.0
func (n *BooleanNot) GetFreeFloating() *freefloating.Collection
func (*BooleanNot) GetPosition ¶ added in v0.6.0
func (n *BooleanNot) GetPosition() *position.Position
GetPosition returns node positions
func (*BooleanNot) SetPosition ¶ added in v0.6.0
func (n *BooleanNot) SetPosition(p *position.Position)
SetPosition sets node position
func (*BooleanNot) Walk ¶
func (n *BooleanNot) Walk(v walker.Visitor)
Walk traverses nodes Walk is invoked recursively until v.EnterNode returns true
type ClassConstFetch ¶
type ClassConstFetch struct { FreeFloating freefloating.Collection Position *position.Position Class node.Node ConstantName node.Node }
ClassConstFetch node
func NewClassConstFetch ¶
func NewClassConstFetch(Class node.Node, ConstantName node.Node) *ClassConstFetch
NewClassConstFetch node constructor
func (*ClassConstFetch) Attributes ¶
func (n *ClassConstFetch) Attributes() map[string]interface{}
Attributes returns node attributes as map
func (*ClassConstFetch) GetFreeFloating ¶ added in v0.6.0
func (n *ClassConstFetch) GetFreeFloating() *freefloating.Collection
func (*ClassConstFetch) GetPosition ¶ added in v0.6.0
func (n *ClassConstFetch) GetPosition() *position.Position
GetPosition returns node positions
func (*ClassConstFetch) SetPosition ¶ added in v0.6.0
func (n *ClassConstFetch) SetPosition(p *position.Position)
SetPosition sets node position
func (*ClassConstFetch) Walk ¶
func (n *ClassConstFetch) Walk(v walker.Visitor)
Walk traverses nodes Walk is invoked recursively until v.EnterNode returns true
type Clone ¶
type Clone struct { FreeFloating freefloating.Collection Position *position.Position Expr node.Node }
Clone node
func (*Clone) Attributes ¶
Attributes returns node attributes as map
func (*Clone) GetFreeFloating ¶ added in v0.6.0
func (n *Clone) GetFreeFloating() *freefloating.Collection
func (*Clone) GetPosition ¶ added in v0.6.0
GetPosition returns node positions
func (*Clone) SetPosition ¶ added in v0.6.0
SetPosition sets node position
type Closure ¶
type Closure struct { FreeFloating freefloating.Collection Position *position.Position ReturnsRef bool Static bool PhpDocComment string Params []node.Node ClosureUse *ClosureUse ReturnType node.Node Stmts []node.Node }
Closure node
func NewClosure ¶
func NewClosure(Params []node.Node, ClosureUse *ClosureUse, ReturnType node.Node, Stmts []node.Node, Static bool, ReturnsRef bool, PhpDocComment string) *Closure
NewClosure node constructor
func (*Closure) Attributes ¶
Attributes returns node attributes as map
func (*Closure) GetFreeFloating ¶ added in v0.6.0
func (n *Closure) GetFreeFloating() *freefloating.Collection
func (*Closure) GetPosition ¶ added in v0.6.0
GetPosition returns node positions
func (*Closure) SetPosition ¶ added in v0.6.0
SetPosition sets node position
type ClosureUse ¶ added in v0.2.0
type ClosureUse struct { FreeFloating freefloating.Collection Position *position.Position Uses []node.Node }
ClosureUse node
func NewClosureUse ¶ added in v0.2.0
func NewClosureUse(Uses []node.Node) *ClosureUse
NewClosureUse node constructor
func (*ClosureUse) Attributes ¶ added in v0.2.0
func (n *ClosureUse) Attributes() map[string]interface{}
Attributes returns node attributes as map
func (*ClosureUse) GetFreeFloating ¶ added in v0.6.0
func (n *ClosureUse) GetFreeFloating() *freefloating.Collection
func (*ClosureUse) GetPosition ¶ added in v0.6.0
func (n *ClosureUse) GetPosition() *position.Position
GetPosition returns node positions
func (*ClosureUse) SetPosition ¶ added in v0.6.0
func (n *ClosureUse) SetPosition(p *position.Position)
SetPosition sets node position
func (*ClosureUse) Walk ¶ added in v0.2.0
func (n *ClosureUse) Walk(v walker.Visitor)
Walk traverses nodes Walk is invoked recursively until v.EnterNode returns true
type ConstFetch ¶
type ConstFetch struct { FreeFloating freefloating.Collection Position *position.Position Constant node.Node }
ConstFetch node
func NewConstFetch ¶
func NewConstFetch(Constant node.Node) *ConstFetch
NewConstFetch node constructor
func (*ConstFetch) Attributes ¶
func (n *ConstFetch) Attributes() map[string]interface{}
Attributes returns node attributes as map
func (*ConstFetch) GetFreeFloating ¶ added in v0.6.0
func (n *ConstFetch) GetFreeFloating() *freefloating.Collection
func (*ConstFetch) GetPosition ¶ added in v0.6.0
func (n *ConstFetch) GetPosition() *position.Position
GetPosition returns node positions
func (*ConstFetch) SetPosition ¶ added in v0.6.0
func (n *ConstFetch) SetPosition(p *position.Position)
SetPosition sets node position
func (*ConstFetch) Walk ¶
func (n *ConstFetch) Walk(v walker.Visitor)
Walk traverses nodes Walk is invoked recursively until v.EnterNode returns true
type Empty ¶
type Empty struct { FreeFloating freefloating.Collection Position *position.Position Expr node.Node }
Empty node
func (*Empty) Attributes ¶
Attributes returns node attributes as map
func (*Empty) GetFreeFloating ¶ added in v0.6.0
func (n *Empty) GetFreeFloating() *freefloating.Collection
func (*Empty) GetPosition ¶ added in v0.6.0
GetPosition returns node positions
func (*Empty) SetPosition ¶ added in v0.6.0
SetPosition sets node position
type ErrorSuppress ¶
type ErrorSuppress struct { FreeFloating freefloating.Collection Position *position.Position Expr node.Node }
ErrorSuppress node
func NewErrorSuppress ¶
func NewErrorSuppress(Expression node.Node) *ErrorSuppress
NewErrorSuppress node constructor
func (*ErrorSuppress) Attributes ¶
func (n *ErrorSuppress) Attributes() map[string]interface{}
Attributes returns node attributes as map
func (*ErrorSuppress) GetFreeFloating ¶ added in v0.6.0
func (n *ErrorSuppress) GetFreeFloating() *freefloating.Collection
func (*ErrorSuppress) GetPosition ¶ added in v0.6.0
func (n *ErrorSuppress) GetPosition() *position.Position
GetPosition returns node positions
func (*ErrorSuppress) SetPosition ¶ added in v0.6.0
func (n *ErrorSuppress) SetPosition(p *position.Position)
SetPosition sets node position
func (*ErrorSuppress) Walk ¶
func (n *ErrorSuppress) Walk(v walker.Visitor)
Walk traverses nodes Walk is invoked recursively until v.EnterNode returns true
type Eval ¶
type Eval struct { FreeFloating freefloating.Collection Position *position.Position Expr node.Node }
Eval node
func (*Eval) Attributes ¶
Attributes returns node attributes as map
func (*Eval) GetFreeFloating ¶ added in v0.6.0
func (n *Eval) GetFreeFloating() *freefloating.Collection
func (*Eval) GetPosition ¶ added in v0.6.0
GetPosition returns node positions
func (*Eval) SetPosition ¶ added in v0.6.0
SetPosition sets node position
type Exit ¶
type Exit struct { FreeFloating freefloating.Collection Die bool Position *position.Position Expr node.Node }
Exit node
func (*Exit) Attributes ¶
Attributes returns node attributes as map
func (*Exit) GetFreeFloating ¶ added in v0.6.0
func (n *Exit) GetFreeFloating() *freefloating.Collection
func (*Exit) GetPosition ¶ added in v0.6.0
GetPosition returns node positions
func (*Exit) SetPosition ¶ added in v0.6.0
SetPosition sets node position
type FunctionCall ¶
type FunctionCall struct { FreeFloating freefloating.Collection Position *position.Position Function node.Node ArgumentList *node.ArgumentList }
FunctionCall node
func NewFunctionCall ¶
func NewFunctionCall(Function node.Node, ArgumentList *node.ArgumentList) *FunctionCall
NewFunctionCall node constructor
func (*FunctionCall) Attributes ¶
func (n *FunctionCall) Attributes() map[string]interface{}
Attributes returns node attributes as map
func (*FunctionCall) GetFreeFloating ¶ added in v0.6.0
func (n *FunctionCall) GetFreeFloating() *freefloating.Collection
func (*FunctionCall) GetPosition ¶ added in v0.6.0
func (n *FunctionCall) GetPosition() *position.Position
GetPosition returns node positions
func (*FunctionCall) SetPosition ¶ added in v0.6.0
func (n *FunctionCall) SetPosition(p *position.Position)
SetPosition sets node position
func (*FunctionCall) Walk ¶
func (n *FunctionCall) Walk(v walker.Visitor)
Walk traverses nodes Walk is invoked recursively until v.EnterNode returns true
type Include ¶
type Include struct { FreeFloating freefloating.Collection Position *position.Position Expr node.Node }
Include node
func (*Include) Attributes ¶
Attributes returns node attributes as map
func (*Include) GetFreeFloating ¶ added in v0.6.0
func (n *Include) GetFreeFloating() *freefloating.Collection
func (*Include) GetPosition ¶ added in v0.6.0
GetPosition returns node positions
func (*Include) SetPosition ¶ added in v0.6.0
SetPosition sets node position
type IncludeOnce ¶
type IncludeOnce struct { FreeFloating freefloating.Collection Position *position.Position Expr node.Node }
IncludeOnce node
func NewIncludeOnce ¶
func NewIncludeOnce(Expression node.Node) *IncludeOnce
NewIncludeOnce node constructor
func (*IncludeOnce) Attributes ¶
func (n *IncludeOnce) Attributes() map[string]interface{}
Attributes returns node attributes as map
func (*IncludeOnce) GetFreeFloating ¶ added in v0.6.0
func (n *IncludeOnce) GetFreeFloating() *freefloating.Collection
func (*IncludeOnce) GetPosition ¶ added in v0.6.0
func (n *IncludeOnce) GetPosition() *position.Position
GetPosition returns node positions
func (*IncludeOnce) SetPosition ¶ added in v0.6.0
func (n *IncludeOnce) SetPosition(p *position.Position)
SetPosition sets node position
func (*IncludeOnce) Walk ¶
func (n *IncludeOnce) Walk(v walker.Visitor)
Walk traverses nodes Walk is invoked recursively until v.EnterNode returns true
type InstanceOf ¶
type InstanceOf struct { FreeFloating freefloating.Collection Position *position.Position Expr node.Node Class node.Node }
InstanceOf node
func NewInstanceOf ¶
func NewInstanceOf(Expr node.Node, Class node.Node) *InstanceOf
NewInstanceOf node constructor
func (*InstanceOf) Attributes ¶
func (n *InstanceOf) Attributes() map[string]interface{}
Attributes returns node attributes as map
func (*InstanceOf) GetFreeFloating ¶ added in v0.6.0
func (n *InstanceOf) GetFreeFloating() *freefloating.Collection
func (*InstanceOf) GetPosition ¶ added in v0.6.0
func (n *InstanceOf) GetPosition() *position.Position
GetPosition returns node positions
func (*InstanceOf) SetPosition ¶ added in v0.6.0
func (n *InstanceOf) SetPosition(p *position.Position)
SetPosition sets node position
func (*InstanceOf) Walk ¶
func (n *InstanceOf) Walk(v walker.Visitor)
Walk traverses nodes Walk is invoked recursively until v.EnterNode returns true
type Isset ¶
type Isset struct { FreeFloating freefloating.Collection Position *position.Position Variables []node.Node }
Isset node
func (*Isset) Attributes ¶
Attributes returns node attributes as map
func (*Isset) GetFreeFloating ¶ added in v0.6.0
func (n *Isset) GetFreeFloating() *freefloating.Collection
func (*Isset) GetPosition ¶ added in v0.6.0
GetPosition returns node positions
func (*Isset) SetPosition ¶ added in v0.6.0
SetPosition sets node position
type List ¶
type List struct { FreeFloating freefloating.Collection Position *position.Position Items []node.Node }
List node
func (*List) Attributes ¶
Attributes returns node attributes as map
func (*List) GetFreeFloating ¶ added in v0.6.0
func (n *List) GetFreeFloating() *freefloating.Collection
func (*List) GetPosition ¶ added in v0.6.0
GetPosition returns node positions
func (*List) SetPosition ¶ added in v0.6.0
SetPosition sets node position
type MethodCall ¶
type MethodCall struct { FreeFloating freefloating.Collection Position *position.Position Variable node.Node Method node.Node ArgumentList *node.ArgumentList }
MethodCall node
func NewMethodCall ¶
func NewMethodCall(Variable node.Node, Method node.Node, ArgumentList *node.ArgumentList) *MethodCall
NewMethodCall node constructor
func (*MethodCall) Attributes ¶
func (n *MethodCall) Attributes() map[string]interface{}
Attributes returns node attributes as map
func (*MethodCall) GetFreeFloating ¶ added in v0.6.0
func (n *MethodCall) GetFreeFloating() *freefloating.Collection
func (*MethodCall) GetPosition ¶ added in v0.6.0
func (n *MethodCall) GetPosition() *position.Position
GetPosition returns node positions
func (*MethodCall) SetPosition ¶ added in v0.6.0
func (n *MethodCall) SetPosition(p *position.Position)
SetPosition sets node position
func (*MethodCall) Walk ¶
func (n *MethodCall) Walk(v walker.Visitor)
Walk traverses nodes Walk is invoked recursively until v.EnterNode returns true
type New ¶
type New struct { FreeFloating freefloating.Collection Position *position.Position Class node.Node ArgumentList *node.ArgumentList }
New node
func NewNew ¶
func NewNew(Class node.Node, ArgumentList *node.ArgumentList) *New
NewNew node constructor
func (*New) Attributes ¶
Attributes returns node attributes as map
func (*New) GetFreeFloating ¶ added in v0.6.0
func (n *New) GetFreeFloating() *freefloating.Collection
func (*New) GetPosition ¶ added in v0.6.0
GetPosition returns node positions
func (*New) SetPosition ¶ added in v0.6.0
SetPosition sets node position
type PostDec ¶
type PostDec struct { FreeFloating freefloating.Collection Position *position.Position Variable node.Node }
PostDec node
func (*PostDec) Attributes ¶
Attributes returns node attributes as map
func (*PostDec) GetFreeFloating ¶ added in v0.6.0
func (n *PostDec) GetFreeFloating() *freefloating.Collection
func (*PostDec) GetPosition ¶ added in v0.6.0
GetPosition returns node positions
func (*PostDec) SetPosition ¶ added in v0.6.0
SetPosition sets node position
type PostInc ¶
type PostInc struct { FreeFloating freefloating.Collection Position *position.Position Variable node.Node }
PostInc node
func (*PostInc) Attributes ¶
Attributes returns node attributes as map
func (*PostInc) GetFreeFloating ¶ added in v0.6.0
func (n *PostInc) GetFreeFloating() *freefloating.Collection
func (*PostInc) GetPosition ¶ added in v0.6.0
GetPosition returns node positions
func (*PostInc) SetPosition ¶ added in v0.6.0
SetPosition sets node position
type PreDec ¶
type PreDec struct { FreeFloating freefloating.Collection Position *position.Position Variable node.Node }
PreDec node
func (*PreDec) Attributes ¶
Attributes returns node attributes as map
func (*PreDec) GetFreeFloating ¶ added in v0.6.0
func (n *PreDec) GetFreeFloating() *freefloating.Collection
func (*PreDec) GetPosition ¶ added in v0.6.0
GetPosition returns node positions
func (*PreDec) SetPosition ¶ added in v0.6.0
SetPosition sets node position
type PreInc ¶
type PreInc struct { FreeFloating freefloating.Collection Position *position.Position Variable node.Node }
PreInc node
func (*PreInc) Attributes ¶
Attributes returns node attributes as map
func (*PreInc) GetFreeFloating ¶ added in v0.6.0
func (n *PreInc) GetFreeFloating() *freefloating.Collection
func (*PreInc) GetPosition ¶ added in v0.6.0
GetPosition returns node positions
func (*PreInc) SetPosition ¶ added in v0.6.0
SetPosition sets node position
type Print ¶
type Print struct { FreeFloating freefloating.Collection Position *position.Position Expr node.Node }
Print node
func (*Print) Attributes ¶
Attributes returns node attributes as map
func (*Print) GetFreeFloating ¶ added in v0.6.0
func (n *Print) GetFreeFloating() *freefloating.Collection
func (*Print) GetPosition ¶ added in v0.6.0
GetPosition returns node positions
func (*Print) SetPosition ¶ added in v0.6.0
SetPosition sets node position
type PropertyFetch ¶
type PropertyFetch struct { FreeFloating freefloating.Collection Position *position.Position Variable node.Node Property node.Node }
PropertyFetch node
func NewPropertyFetch ¶
func NewPropertyFetch(Variable node.Node, Property node.Node) *PropertyFetch
NewPropertyFetch node constructor
func (*PropertyFetch) Attributes ¶
func (n *PropertyFetch) Attributes() map[string]interface{}
Attributes returns node attributes as map
func (*PropertyFetch) GetFreeFloating ¶ added in v0.6.0
func (n *PropertyFetch) GetFreeFloating() *freefloating.Collection
func (*PropertyFetch) GetPosition ¶ added in v0.6.0
func (n *PropertyFetch) GetPosition() *position.Position
GetPosition returns node positions
func (*PropertyFetch) SetPosition ¶ added in v0.6.0
func (n *PropertyFetch) SetPosition(p *position.Position)
SetPosition sets node position
func (*PropertyFetch) Walk ¶
func (n *PropertyFetch) Walk(v walker.Visitor)
Walk traverses nodes Walk is invoked recursively until v.EnterNode returns true
type Reference ¶ added in v0.5.0
type Reference struct { FreeFloating freefloating.Collection Position *position.Position Variable node.Node }
Reference node
func NewReference ¶ added in v0.5.0
NewReference node constructor
func (*Reference) Attributes ¶ added in v0.5.0
Attributes returns node attributes as map
func (*Reference) GetFreeFloating ¶ added in v0.6.0
func (n *Reference) GetFreeFloating() *freefloating.Collection
func (*Reference) GetPosition ¶ added in v0.6.0
GetPosition returns node positions
func (*Reference) SetPosition ¶ added in v0.6.0
SetPosition sets node position
type Require ¶
type Require struct { FreeFloating freefloating.Collection Position *position.Position Expr node.Node }
Require node
func (*Require) Attributes ¶
Attributes returns node attributes as map
func (*Require) GetFreeFloating ¶ added in v0.6.0
func (n *Require) GetFreeFloating() *freefloating.Collection
func (*Require) GetPosition ¶ added in v0.6.0
GetPosition returns node positions
func (*Require) SetPosition ¶ added in v0.6.0
SetPosition sets node position
type RequireOnce ¶
type RequireOnce struct { FreeFloating freefloating.Collection Position *position.Position Expr node.Node }
RequireOnce node
func NewRequireOnce ¶
func NewRequireOnce(Expression node.Node) *RequireOnce
NewRequireOnce node constructor
func (*RequireOnce) Attributes ¶
func (n *RequireOnce) Attributes() map[string]interface{}
Attributes returns node attributes as map
func (*RequireOnce) GetFreeFloating ¶ added in v0.6.0
func (n *RequireOnce) GetFreeFloating() *freefloating.Collection
func (*RequireOnce) GetPosition ¶ added in v0.6.0
func (n *RequireOnce) GetPosition() *position.Position
GetPosition returns node positions
func (*RequireOnce) SetPosition ¶ added in v0.6.0
func (n *RequireOnce) SetPosition(p *position.Position)
SetPosition sets node position
func (*RequireOnce) Walk ¶
func (n *RequireOnce) Walk(v walker.Visitor)
Walk traverses nodes Walk is invoked recursively until v.EnterNode returns true
type ShellExec ¶
type ShellExec struct { FreeFloating freefloating.Collection Position *position.Position Parts []node.Node }
ShellExec node
func (*ShellExec) Attributes ¶
Attributes returns node attributes as map
func (*ShellExec) GetFreeFloating ¶ added in v0.6.0
func (n *ShellExec) GetFreeFloating() *freefloating.Collection
func (*ShellExec) GetPosition ¶ added in v0.6.0
GetPosition returns node positions
func (*ShellExec) SetPosition ¶ added in v0.6.0
SetPosition sets node position
type ShortArray ¶
type ShortArray struct { FreeFloating freefloating.Collection Position *position.Position Items []node.Node }
ShortArray node
func NewShortArray ¶
func NewShortArray(Items []node.Node) *ShortArray
NewShortArray node constructor
func (*ShortArray) Attributes ¶
func (n *ShortArray) Attributes() map[string]interface{}
Attributes returns node attributes as map
func (*ShortArray) GetFreeFloating ¶ added in v0.6.0
func (n *ShortArray) GetFreeFloating() *freefloating.Collection
func (*ShortArray) GetPosition ¶ added in v0.6.0
func (n *ShortArray) GetPosition() *position.Position
GetPosition returns node positions
func (*ShortArray) SetPosition ¶ added in v0.6.0
func (n *ShortArray) SetPosition(p *position.Position)
SetPosition sets node position
func (*ShortArray) Walk ¶
func (n *ShortArray) Walk(v walker.Visitor)
Walk traverses nodes Walk is invoked recursively until v.EnterNode returns true
type ShortList ¶
type ShortList struct { FreeFloating freefloating.Collection Position *position.Position Items []node.Node }
ShortList node
func (*ShortList) Attributes ¶
Attributes returns node attributes as map
func (*ShortList) GetFreeFloating ¶ added in v0.6.0
func (n *ShortList) GetFreeFloating() *freefloating.Collection
func (*ShortList) GetPosition ¶ added in v0.6.0
GetPosition returns node positions
func (*ShortList) SetPosition ¶ added in v0.6.0
SetPosition sets node position
type StaticCall ¶
type StaticCall struct { FreeFloating freefloating.Collection Position *position.Position Class node.Node Call node.Node ArgumentList *node.ArgumentList }
StaticCall node
func NewStaticCall ¶
func NewStaticCall(Class node.Node, Call node.Node, ArgumentList *node.ArgumentList) *StaticCall
NewStaticCall node constructor
func (*StaticCall) Attributes ¶
func (n *StaticCall) Attributes() map[string]interface{}
Attributes returns node attributes as map
func (*StaticCall) GetFreeFloating ¶ added in v0.6.0
func (n *StaticCall) GetFreeFloating() *freefloating.Collection
func (*StaticCall) GetPosition ¶ added in v0.6.0
func (n *StaticCall) GetPosition() *position.Position
GetPosition returns node positions
func (*StaticCall) SetPosition ¶ added in v0.6.0
func (n *StaticCall) SetPosition(p *position.Position)
SetPosition sets node position
func (*StaticCall) Walk ¶
func (n *StaticCall) Walk(v walker.Visitor)
Walk traverses nodes Walk is invoked recursively until v.EnterNode returns true
type StaticPropertyFetch ¶
type StaticPropertyFetch struct { FreeFloating freefloating.Collection Position *position.Position Class node.Node Property node.Node }
StaticPropertyFetch node
func NewStaticPropertyFetch ¶
func NewStaticPropertyFetch(Class node.Node, Property node.Node) *StaticPropertyFetch
NewStaticPropertyFetch node constructor
func (*StaticPropertyFetch) Attributes ¶
func (n *StaticPropertyFetch) Attributes() map[string]interface{}
Attributes returns node attributes as map
func (*StaticPropertyFetch) GetFreeFloating ¶ added in v0.6.0
func (n *StaticPropertyFetch) GetFreeFloating() *freefloating.Collection
func (*StaticPropertyFetch) GetPosition ¶ added in v0.6.0
func (n *StaticPropertyFetch) GetPosition() *position.Position
GetPosition returns node positions
func (*StaticPropertyFetch) SetPosition ¶ added in v0.6.0
func (n *StaticPropertyFetch) SetPosition(p *position.Position)
SetPosition sets node position
func (*StaticPropertyFetch) Walk ¶
func (n *StaticPropertyFetch) Walk(v walker.Visitor)
Walk traverses nodes Walk is invoked recursively until v.EnterNode returns true
type Ternary ¶
type Ternary struct { FreeFloating freefloating.Collection Position *position.Position Condition node.Node IfTrue node.Node IfFalse node.Node }
Ternary node
func NewTernary ¶
NewTernary node constructor
func (*Ternary) Attributes ¶
Attributes returns node attributes as map
func (*Ternary) GetFreeFloating ¶ added in v0.6.0
func (n *Ternary) GetFreeFloating() *freefloating.Collection
func (*Ternary) GetPosition ¶ added in v0.6.0
GetPosition returns node positions
func (*Ternary) SetPosition ¶ added in v0.6.0
SetPosition sets node position
type UnaryMinus ¶
type UnaryMinus struct { FreeFloating freefloating.Collection Position *position.Position Expr node.Node }
UnaryMinus node
func NewUnaryMinus ¶
func NewUnaryMinus(Expression node.Node) *UnaryMinus
NewUnaryMinus node constructor
func (*UnaryMinus) Attributes ¶
func (n *UnaryMinus) Attributes() map[string]interface{}
Attributes returns node attributes as map
func (*UnaryMinus) GetFreeFloating ¶ added in v0.6.0
func (n *UnaryMinus) GetFreeFloating() *freefloating.Collection
func (*UnaryMinus) GetPosition ¶ added in v0.6.0
func (n *UnaryMinus) GetPosition() *position.Position
GetPosition returns node positions
func (*UnaryMinus) SetPosition ¶ added in v0.6.0
func (n *UnaryMinus) SetPosition(p *position.Position)
SetPosition sets node position
func (*UnaryMinus) Walk ¶
func (n *UnaryMinus) Walk(v walker.Visitor)
Walk traverses nodes Walk is invoked recursively until v.EnterNode returns true
type UnaryPlus ¶
type UnaryPlus struct { FreeFloating freefloating.Collection Position *position.Position Expr node.Node }
UnaryPlus node
func NewUnaryPlus ¶
NewUnaryPlus node constructor
func (*UnaryPlus) Attributes ¶
Attributes returns node attributes as map
func (*UnaryPlus) GetFreeFloating ¶ added in v0.6.0
func (n *UnaryPlus) GetFreeFloating() *freefloating.Collection
func (*UnaryPlus) GetPosition ¶ added in v0.6.0
GetPosition returns node positions
func (*UnaryPlus) SetPosition ¶ added in v0.6.0
SetPosition sets node position
type Variable ¶
type Variable struct { FreeFloating freefloating.Collection Position *position.Position VarName node.Node }
Variable node
func (*Variable) Attributes ¶
Attributes returns node attributes as map
func (*Variable) GetFreeFloating ¶ added in v0.6.0
func (n *Variable) GetFreeFloating() *freefloating.Collection
func (*Variable) GetPosition ¶ added in v0.6.0
GetPosition returns node positions
func (*Variable) SetPosition ¶ added in v0.6.0
SetPosition sets node position
func (*Variable) SetVarName ¶
SetVarName reset var name
type Yield ¶
type Yield struct { FreeFloating freefloating.Collection Position *position.Position Key node.Node Value node.Node }
Yield node
func (*Yield) Attributes ¶
Attributes returns node attributes as map
func (*Yield) GetFreeFloating ¶ added in v0.6.0
func (n *Yield) GetFreeFloating() *freefloating.Collection
func (*Yield) GetPosition ¶ added in v0.6.0
GetPosition returns node positions
func (*Yield) SetPosition ¶ added in v0.6.0
SetPosition sets node position
type YieldFrom ¶
type YieldFrom struct { FreeFloating freefloating.Collection Position *position.Position Expr node.Node }
YieldFrom node
func NewYieldFrom ¶
NewYieldFrom node constructor
func (*YieldFrom) Attributes ¶
Attributes returns node attributes as map
func (*YieldFrom) GetFreeFloating ¶ added in v0.6.0
func (n *YieldFrom) GetFreeFloating() *freefloating.Collection
func (*YieldFrom) GetPosition ¶ added in v0.6.0
GetPosition returns node positions
func (*YieldFrom) SetPosition ¶ added in v0.6.0
SetPosition sets node position
Source Files ¶
- n_array.go
- n_array_dim_fetch.go
- n_array_item.go
- n_bitwise_not.go
- n_boolean_not.go
- n_class_const_fetch.go
- n_clone.go
- n_closure.go
- n_closure_use.go
- n_const_fetch.go
- n_empty.go
- n_error_suppress.go
- n_eval.go
- n_exit.go
- n_function_call.go
- n_include.go
- n_include_once.go
- n_instance_of.go
- n_isset.go
- n_list.go
- n_method_call.go
- n_new.go
- n_post_dec.go
- n_post_inc.go
- n_pre_dec.go
- n_pre_inc.go
- n_print.go
- n_property_fetch.go
- n_reference.go
- n_require.go
- n_require_once.go
- n_shell_exec.go
- n_short_array.go
- n_short_list.go
- n_static_call.go
- n_static_property_fetch.go
- n_ternary.go
- n_unary_minus.go
- n_unary_plus.go
- n_variable.go
- n_yield.go
- n_yield_from.go