Documentation ¶
Index ¶
- type AltElse
- type AltElseIf
- type AltFor
- type AltForeach
- type AltIf
- type AltSwitch
- type AltWhile
- type Break
- type Case
- type Catch
- type Class
- type ClassConstList
- 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 Label
- type Namespace
- type Nop
- type Property
- type PropertyList
- type Return
- type Static
- type StaticVar
- type StmtList
- type Switch
- type Throw
- type Trait
- 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 AltElseIf ¶
AltElseIf node
func NewAltElseIf ¶
NewAltElseIf node constuctor
func (*AltElseIf) Attributes ¶
Attributes returns node attributes as map
type AltFor ¶ added in v0.2.0
AltFor node
func (*AltFor) Attributes ¶ added in v0.2.0
Attributes returns node attributes as map
type AltForeach ¶ added in v0.2.0
type AltForeach struct { ByRef bool Expr node.Node Key node.Node Variable node.Node Stmt node.Node }
AltForeach node
func NewAltForeach ¶ added in v0.2.0
func NewAltForeach(Expr node.Node, Key node.Node, Variable node.Node, Stmt node.Node, ByRef bool) *AltForeach
NewAltForeach node constuctor
func (*AltForeach) Attributes ¶ added in v0.2.0
func (n *AltForeach) Attributes() map[string]interface{}
Attributes returns node attributes as map
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 ¶
AltIf node
func (*AltIf) Attributes ¶
Attributes returns node attributes as map
type AltSwitch ¶ added in v0.2.0
AltSwitch node
func NewAltSwitch ¶ added in v0.2.0
NewAltSwitch node constuctor
func (*AltSwitch) Attributes ¶ added in v0.2.0
Attributes returns node attributes as map
type AltWhile ¶ added in v0.2.0
AltWhile node
func NewAltWhile ¶ added in v0.2.0
NewAltWhile node constuctor
func (*AltWhile) Attributes ¶ added in v0.2.0
Attributes returns node attributes as map
type Catch ¶
Catch node
func (*Catch) Attributes ¶
Attributes returns node attributes as map
type Class ¶
type Class struct { PhpDocComment string ClassName node.Node Modifiers []node.Node Args []node.Node Extends node.Node Implements []node.Node Stmts []node.Node }
Class node
func NewClass ¶
func NewClass(ClassName node.Node, Modifiers []node.Node, Args []node.Node, Extends node.Node, Implements []node.Node, Stmts []node.Node, PhpDocComment string) *Class
NewClass node constuctor
func (*Class) Attributes ¶
Attributes returns node attributes as map
type ClassConstList ¶
ClassConstList node
func NewClassConstList ¶
func NewClassConstList(Modifiers []node.Node, Consts []node.Node) *ClassConstList
NewClassConstList node constuctor
func (*ClassConstList) Attributes ¶
func (n *ClassConstList) Attributes() map[string]interface{}
Attributes returns node attributes as map
func (*ClassConstList) Walk ¶
func (n *ClassConstList) Walk(v walker.Visitor)
Walk traverses nodes Walk is invoked recursively until v.EnterNode returns true
type ClassMethod ¶
type ClassMethod struct { ReturnsRef bool PhpDocComment string MethodName node.Node Modifiers []node.Node Params []node.Node ReturnType node.Node Stmts []node.Node }
ClassMethod node
func NewClassMethod ¶
func NewClassMethod(MethodName node.Node, Modifiers []node.Node, ReturnsRef bool, Params []node.Node, ReturnType node.Node, Stmts []node.Node, PhpDocComment string) *ClassMethod
NewClassMethod node constuctor
func (*ClassMethod) Attributes ¶
func (n *ClassMethod) Attributes() map[string]interface{}
Attributes returns node attributes as map
func (*ClassMethod) Walk ¶
func (n *ClassMethod) Walk(v walker.Visitor)
Walk traverses nodes Walk is invoked recursively until v.EnterNode returns true
type ConstList ¶
ConstList node
func (*ConstList) Attributes ¶
Attributes returns node attributes as map
type Constant ¶
Constant node
func NewConstant ¶
NewConstant node constuctor
func (*Constant) Attributes ¶
Attributes returns node attributes as map
type Continue ¶
Continue node
func (*Continue) Attributes ¶
Attributes returns node attributes as map
type Declare ¶
Declare node
func NewDeclare ¶
NewDeclare node constuctor
func (*Declare) Attributes ¶
Attributes returns node attributes as map
type Expression ¶
Expression node
func (*Expression) Attributes ¶
func (n *Expression) Attributes() map[string]interface{}
Attributes returns node attributes as map
func (*Expression) Walk ¶
func (n *Expression) Walk(v walker.Visitor)
Walk traverses nodes Walk is invoked recursively until v.EnterNode returns true
type For ¶
For node
func (*For) Attributes ¶
Attributes returns node attributes as map
type Foreach ¶
Foreach node
func NewForeach ¶
func NewForeach(Expr node.Node, Key node.Node, Variable node.Node, Stmt node.Node, ByRef bool) *Foreach
NewForeach node constuctor
func (*Foreach) Attributes ¶
Attributes returns node attributes as map
type Function ¶
type Function struct { 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 constuctor
func (*Function) Attributes ¶
Attributes returns node attributes as map
type GroupUse ¶
GroupUse node
func NewGroupUse ¶
NewGroupUse node constuctor
func (*GroupUse) Attributes ¶
Attributes returns node attributes as map
func (*GroupUse) SetUseType ¶
SetUseType set use type and returns node
type HaltCompiler ¶
type HaltCompiler struct { }
HaltCompiler node
func (*HaltCompiler) Attributes ¶
func (n *HaltCompiler) Attributes() map[string]interface{}
Attributes returns node attributes as map
func (*HaltCompiler) Walk ¶
func (n *HaltCompiler) Walk(v walker.Visitor)
Walk traverses nodes Walk is invoked recursively until v.EnterNode returns true
type If ¶
If node
func (*If) Attributes ¶
Attributes returns node attributes as map
type InlineHtml ¶
type InlineHtml struct {
Value string
}
InlineHtml node
func (*InlineHtml) Attributes ¶
func (n *InlineHtml) Attributes() map[string]interface{}
Attributes returns node attributes as map
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 { PhpDocComment string InterfaceName node.Node Extends []node.Node Stmts []node.Node }
Interface node
func NewInterface ¶
func NewInterface(InterfaceName node.Node, Extends []node.Node, Stmts []node.Node, PhpDocComment string) *Interface
NewInterface node constuctor
func (*Interface) Attributes ¶
Attributes returns node attributes as map
type Namespace ¶
Namespace node
func NewNamespace ¶
NewNamespace node constuctor
func (*Namespace) Attributes ¶
Attributes returns node attributes as map
type Nop ¶
type Nop struct { }
Nop node
func (*Nop) Attributes ¶
Attributes returns node attributes as map
type Property ¶
Property node
func NewProperty ¶
NewProperty node constuctor
func (*Property) Attributes ¶
Attributes returns node attributes as map
type PropertyList ¶
PropertyList node
func NewPropertyList ¶
func NewPropertyList(Modifiers []node.Node, Properties []node.Node) *PropertyList
NewPropertyList node constuctor
func (*PropertyList) Attributes ¶
func (n *PropertyList) Attributes() map[string]interface{}
Attributes returns node attributes as map
func (*PropertyList) Walk ¶
func (n *PropertyList) Walk(v walker.Visitor)
Walk traverses nodes Walk is invoked recursively until v.EnterNode returns true
type StaticVar ¶
StaticVar node
func NewStaticVar ¶
NewStaticVar node constuctor
func (*StaticVar) Attributes ¶
Attributes returns node attributes as map
type StmtList ¶
StmtList node
func (*StmtList) Attributes ¶
Attributes returns node attributes as map
type Switch ¶
Switch node
func (*Switch) Attributes ¶
Attributes returns node attributes as map
type Trait ¶
Trait node
func (*Trait) Attributes ¶
Attributes returns node attributes as map
type TraitMethodRef ¶
TraitMethodRef node
func NewTraitMethodRef ¶
func NewTraitMethodRef(Trait node.Node, Method node.Node) *TraitMethodRef
NewTraitMethodRef node constuctor
func (*TraitMethodRef) Attributes ¶
func (n *TraitMethodRef) Attributes() map[string]interface{}
Attributes returns node attributes as map
func (*TraitMethodRef) Walk ¶
func (n *TraitMethodRef) Walk(v walker.Visitor)
Walk traverses nodes Walk is invoked recursively until v.EnterNode returns true
type TraitUse ¶
TraitUse node
func NewTraitUse ¶
NewTraitUse node constuctor
func (*TraitUse) Attributes ¶
Attributes returns node attributes as map
type TraitUseAlias ¶
TraitUseAlias node
func NewTraitUseAlias ¶
NewTraitUseAlias node constuctor
func (*TraitUseAlias) Attributes ¶
func (n *TraitUseAlias) Attributes() map[string]interface{}
Attributes returns node attributes as map
func (*TraitUseAlias) Walk ¶
func (n *TraitUseAlias) Walk(v walker.Visitor)
Walk traverses nodes Walk is invoked recursively until v.EnterNode returns true
type TraitUsePrecedence ¶
TraitUsePrecedence node
func NewTraitUsePrecedence ¶
func NewTraitUsePrecedence(Ref node.Node, Insteadof []node.Node) *TraitUsePrecedence
NewTraitUsePrecedence node constuctor
func (*TraitUsePrecedence) Attributes ¶
func (n *TraitUsePrecedence) Attributes() map[string]interface{}
Attributes returns node attributes as map
func (*TraitUsePrecedence) Walk ¶
func (n *TraitUsePrecedence) Walk(v walker.Visitor)
Walk traverses nodes Walk is invoked recursively until v.EnterNode returns true
type Try ¶
Try node
func (*Try) Attributes ¶
Attributes returns node attributes as map
type Use ¶
Use node
func (*Use) Attributes ¶
Attributes returns node attributes as map
func (*Use) SetUseType ¶
SetUseType set use type and returns node
type UseList ¶
UseList node
func NewUseList ¶
NewUseList node constuctor
func (*UseList) Attributes ¶
Attributes returns node attributes as map
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_catch.go
- n_class.go
- n_class_const_list.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_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_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