stmt

package
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 1, 2018 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AltElse

type AltElse struct {
	Stmt node.Node
}

AltElse node

func NewAltElse

func NewAltElse(Stmt node.Node) *AltElse

NewAltElse node constuctor

func (*AltElse) Attributes

func (n *AltElse) Attributes() map[string]interface{}

Attributes returns node attributes as map

func (*AltElse) Walk

func (n *AltElse) Walk(v walker.Visitor)

Walk traverses nodes Walk is invoked recursively until v.EnterNode returns true

type AltElseIf

type AltElseIf struct {
	Cond node.Node
	Stmt node.Node
}

AltElseIf node

func NewAltElseIf

func NewAltElseIf(Cond node.Node, Stmt node.Node) *AltElseIf

NewAltElseIf node constuctor

func (*AltElseIf) Attributes

func (n *AltElseIf) Attributes() map[string]interface{}

Attributes returns node attributes as map

func (*AltElseIf) Walk

func (n *AltElseIf) Walk(v walker.Visitor)

Walk traverses nodes Walk is invoked recursively until v.EnterNode returns true

type AltFor added in v0.2.0

type AltFor struct {
	Init []node.Node
	Cond []node.Node
	Loop []node.Node
	Stmt node.Node
}

AltFor node

func NewAltFor added in v0.2.0

func NewAltFor(Init []node.Node, Cond []node.Node, Loop []node.Node, Stmt node.Node) *AltFor

NewAltFor node constuctor

func (*AltFor) Attributes added in v0.2.0

func (n *AltFor) Attributes() map[string]interface{}

Attributes returns node attributes as map

func (*AltFor) Walk added in v0.2.0

func (n *AltFor) Walk(v walker.Visitor)

Walk traverses nodes Walk is invoked recursively until v.EnterNode returns true

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

type AltIf struct {
	Cond   node.Node
	Stmt   node.Node
	ElseIf []node.Node
	Else   node.Node
}

AltIf node

func NewAltIf

func NewAltIf(Cond node.Node, Stmt node.Node, ElseIf []node.Node, Else node.Node) *AltIf

NewAltIf node constuctor

func (*AltIf) AddElseIf

func (n *AltIf) AddElseIf(ElseIf node.Node) node.Node

AddElseIf add AltElseIf node and returns AltIf node

func (*AltIf) Attributes

func (n *AltIf) Attributes() map[string]interface{}

Attributes returns node attributes as map

func (*AltIf) SetElse

func (n *AltIf) SetElse(Else node.Node) node.Node

SetElse set AltElse node and returns AltIf node

func (*AltIf) Walk

func (n *AltIf) Walk(v walker.Visitor)

Walk traverses nodes Walk is invoked recursively until v.EnterNode returns true

type AltSwitch added in v0.2.0

type AltSwitch struct {
	Cond  node.Node
	Cases []node.Node
}

AltSwitch node

func NewAltSwitch added in v0.2.0

func NewAltSwitch(Cond node.Node, Cases []node.Node) *AltSwitch

NewAltSwitch node constuctor

func (*AltSwitch) Attributes added in v0.2.0

func (n *AltSwitch) Attributes() map[string]interface{}

Attributes returns node attributes as map

func (*AltSwitch) Walk added in v0.2.0

func (n *AltSwitch) Walk(v walker.Visitor)

Walk traverses nodes Walk is invoked recursively until v.EnterNode returns true

type AltWhile added in v0.2.0

type AltWhile struct {
	Cond node.Node
	Stmt node.Node
}

AltWhile node

func NewAltWhile added in v0.2.0

func NewAltWhile(Cond node.Node, Stmt node.Node) *AltWhile

NewAltWhile node constuctor

func (*AltWhile) Attributes added in v0.2.0

func (n *AltWhile) Attributes() map[string]interface{}

Attributes returns node attributes as map

func (*AltWhile) Walk added in v0.2.0

func (n *AltWhile) Walk(v walker.Visitor)

Walk traverses nodes Walk is invoked recursively until v.EnterNode returns true

type Break

type Break struct {
	Expr node.Node
}

Break node

func NewBreak

func NewBreak(Expr node.Node) *Break

NewBreak node constuctor

func (*Break) Attributes

func (n *Break) Attributes() map[string]interface{}

Attributes returns node attributes as map

func (*Break) Walk

func (n *Break) Walk(v walker.Visitor)

Walk traverses nodes Walk is invoked recursively until v.EnterNode returns true

type Case

type Case struct {
	Cond  node.Node
	Stmts []node.Node
}

Case node

func NewCase

func NewCase(Cond node.Node, Stmts []node.Node) *Case

NewCase node constuctor

func (*Case) Attributes

func (n *Case) Attributes() map[string]interface{}

Attributes returns node attributes as map

func (*Case) Walk

func (n *Case) Walk(v walker.Visitor)

Walk traverses nodes Walk is invoked recursively until v.EnterNode returns true

type Catch

type Catch struct {
	Types    []node.Node
	Variable node.Node
	Stmts    []node.Node
}

Catch node

func NewCatch

func NewCatch(Types []node.Node, Variable node.Node, Stmts []node.Node) *Catch

NewCatch node constuctor

func (*Catch) Attributes

func (n *Catch) Attributes() map[string]interface{}

Attributes returns node attributes as map

func (*Catch) Walk

func (n *Catch) Walk(v walker.Visitor)

Walk traverses nodes Walk is invoked recursively until v.EnterNode returns true

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

func (n *Class) Attributes() map[string]interface{}

Attributes returns node attributes as map

func (*Class) Walk

func (n *Class) Walk(v walker.Visitor)

Walk traverses nodes Walk is invoked recursively until v.EnterNode returns true

type ClassConstList

type ClassConstList struct {
	Modifiers []node.Node
	Consts    []node.Node
}

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

type ConstList struct {
	Consts []node.Node
}

ConstList node

func NewConstList

func NewConstList(Consts []node.Node) *ConstList

NewConstList node constuctor

func (*ConstList) Attributes

func (n *ConstList) Attributes() map[string]interface{}

Attributes returns node attributes as map

func (*ConstList) Walk

func (n *ConstList) Walk(v walker.Visitor)

Walk traverses nodes Walk is invoked recursively until v.EnterNode returns true

type Constant

type Constant struct {
	PhpDocComment string
	ConstantName  node.Node
	Expr          node.Node
}

Constant node

func NewConstant

func NewConstant(ConstantName node.Node, Expr node.Node, PhpDocComment string) *Constant

NewConstant node constuctor

func (*Constant) Attributes

func (n *Constant) Attributes() map[string]interface{}

Attributes returns node attributes as map

func (*Constant) Walk

func (n *Constant) Walk(v walker.Visitor)

Walk traverses nodes Walk is invoked recursively until v.EnterNode returns true

type Continue

type Continue struct {
	Expr node.Node
}

Continue node

func NewContinue

func NewContinue(Expr node.Node) *Continue

NewContinue node constuctor

func (*Continue) Attributes

func (n *Continue) Attributes() map[string]interface{}

Attributes returns node attributes as map

func (*Continue) Walk

func (n *Continue) Walk(v walker.Visitor)

Walk traverses nodes Walk is invoked recursively until v.EnterNode returns true

type Declare

type Declare struct {
	Consts []node.Node
	Stmt   node.Node
}

Declare node

func NewDeclare

func NewDeclare(Consts []node.Node, Stmt node.Node) *Declare

NewDeclare node constuctor

func (*Declare) Attributes

func (n *Declare) Attributes() map[string]interface{}

Attributes returns node attributes as map

func (*Declare) Walk

func (n *Declare) Walk(v walker.Visitor)

Walk traverses nodes Walk is invoked recursively until v.EnterNode returns true

type Default

type Default struct {
	Stmts []node.Node
}

Default node

func NewDefault

func NewDefault(Stmts []node.Node) *Default

NewDefault node constuctor

func (*Default) Attributes

func (n *Default) Attributes() map[string]interface{}

Attributes returns node attributes as map

func (*Default) Walk

func (n *Default) Walk(v walker.Visitor)

Walk traverses nodes Walk is invoked recursively until v.EnterNode returns true

type Do

type Do struct {
	Stmt node.Node
	Cond node.Node
}

Do node

func NewDo

func NewDo(Stmt node.Node, Cond node.Node) *Do

NewDo node constuctor

func (*Do) Attributes

func (n *Do) Attributes() map[string]interface{}

Attributes returns node attributes as map

func (*Do) Walk

func (n *Do) Walk(v walker.Visitor)

Walk traverses nodes Walk is invoked recursively until v.EnterNode returns true

type Echo

type Echo struct {
	Exprs []node.Node
}

Echo node

func NewEcho

func NewEcho(Exprs []node.Node) *Echo

NewEcho node constuctor

func (*Echo) Attributes

func (n *Echo) Attributes() map[string]interface{}

Attributes returns node attributes as map

func (*Echo) Walk

func (n *Echo) Walk(v walker.Visitor)

Walk traverses nodes Walk is invoked recursively until v.EnterNode returns true

type Else

type Else struct {
	Stmt node.Node
}

Else node

func NewElse

func NewElse(Stmt node.Node) *Else

NewElse node constuctor

func (*Else) Attributes

func (n *Else) Attributes() map[string]interface{}

Attributes returns node attributes as map

func (*Else) Walk

func (n *Else) Walk(v walker.Visitor)

Walk traverses nodes Walk is invoked recursively until v.EnterNode returns true

type ElseIf

type ElseIf struct {
	Cond node.Node
	Stmt node.Node
}

ElseIf node

func NewElseIf

func NewElseIf(Cond node.Node, Stmt node.Node) *ElseIf

NewElseIf node constuctor

func (*ElseIf) Attributes

func (n *ElseIf) Attributes() map[string]interface{}

Attributes returns node attributes as map

func (*ElseIf) Walk

func (n *ElseIf) Walk(v walker.Visitor)

Walk traverses nodes Walk is invoked recursively until v.EnterNode returns true

type Expression

type Expression struct {
	Expr node.Node
}

Expression node

func NewExpression

func NewExpression(Expr node.Node) *Expression

NewExpression node constuctor

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 Finally

type Finally struct {
	Stmts []node.Node
}

Finally node

func NewFinally

func NewFinally(Stmts []node.Node) *Finally

NewFinally node constuctor

func (*Finally) Attributes

func (n *Finally) Attributes() map[string]interface{}

Attributes returns node attributes as map

func (*Finally) Walk

func (n *Finally) Walk(v walker.Visitor)

Walk traverses nodes Walk is invoked recursively until v.EnterNode returns true

type For

type For struct {
	Init []node.Node
	Cond []node.Node
	Loop []node.Node
	Stmt node.Node
}

For node

func NewFor

func NewFor(Init []node.Node, Cond []node.Node, Loop []node.Node, Stmt node.Node) *For

NewFor node constuctor

func (*For) Attributes

func (n *For) Attributes() map[string]interface{}

Attributes returns node attributes as map

func (*For) Walk

func (n *For) Walk(v walker.Visitor)

Walk traverses nodes Walk is invoked recursively until v.EnterNode returns true

type Foreach

type Foreach struct {
	ByRef    bool
	Expr     node.Node
	Key      node.Node
	Variable node.Node
	Stmt     node.Node
}

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

func (n *Foreach) Attributes() map[string]interface{}

Attributes returns node attributes as map

func (*Foreach) Walk

func (n *Foreach) Walk(v walker.Visitor)

Walk traverses nodes Walk is invoked recursively until v.EnterNode returns true

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

func (n *Function) Attributes() map[string]interface{}

Attributes returns node attributes as map

func (*Function) Walk

func (n *Function) Walk(v walker.Visitor)

Walk traverses nodes Walk is invoked recursively until v.EnterNode returns true

type Global

type Global struct {
	Vars []node.Node
}

Global node

func NewGlobal

func NewGlobal(Vars []node.Node) *Global

NewGlobal node constuctor

func (*Global) Attributes

func (n *Global) Attributes() map[string]interface{}

Attributes returns node attributes as map

func (*Global) Walk

func (n *Global) Walk(v walker.Visitor)

Walk traverses nodes Walk is invoked recursively until v.EnterNode returns true

type Goto

type Goto struct {
	Label node.Node
}

Goto node

func NewGoto

func NewGoto(Label node.Node) *Goto

NewGoto node constuctor

func (*Goto) Attributes

func (n *Goto) Attributes() map[string]interface{}

Attributes returns node attributes as map

func (*Goto) Walk

func (n *Goto) Walk(v walker.Visitor)

Walk traverses nodes Walk is invoked recursively until v.EnterNode returns true

type GroupUse

type GroupUse struct {
	UseType node.Node
	Prefix  node.Node
	UseList []node.Node
}

GroupUse node

func NewGroupUse

func NewGroupUse(UseType node.Node, Prefix node.Node, UseList []node.Node) *GroupUse

NewGroupUse node constuctor

func (*GroupUse) Attributes

func (n *GroupUse) Attributes() map[string]interface{}

Attributes returns node attributes as map

func (*GroupUse) SetUseType

func (n *GroupUse) SetUseType(UseType node.Node) node.Node

SetUseType set use type and returns node

func (*GroupUse) Walk

func (n *GroupUse) Walk(v walker.Visitor)

Walk traverses nodes Walk is invoked recursively until v.EnterNode returns true

type HaltCompiler

type HaltCompiler struct {
}

HaltCompiler node

func NewHaltCompiler

func NewHaltCompiler() *HaltCompiler

NewHaltCompiler node constuctor

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

type If struct {
	Cond   node.Node
	Stmt   node.Node
	ElseIf []node.Node
	Else   node.Node
}

If node

func NewIf

func NewIf(Cond node.Node, Stmt node.Node, ElseIf []node.Node, Else node.Node) *If

NewIf node constuctor

func (*If) AddElseIf

func (n *If) AddElseIf(ElseIf node.Node) node.Node

AddElseIf add ElseIf node and returns AltIf node

func (*If) Attributes

func (n *If) Attributes() map[string]interface{}

Attributes returns node attributes as map

func (*If) SetElse

func (n *If) SetElse(Else node.Node) node.Node

SetElse set Else node and returns AltIf node

func (*If) Walk

func (n *If) Walk(v walker.Visitor)

Walk traverses nodes Walk is invoked recursively until v.EnterNode returns true

type InlineHtml

type InlineHtml struct {
	Value string
}

InlineHtml node

func NewInlineHtml

func NewInlineHtml(Value string) *InlineHtml

NewInlineHtml node constuctor

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

func (n *Interface) Attributes() map[string]interface{}

Attributes returns node attributes as map

func (*Interface) Walk

func (n *Interface) Walk(v walker.Visitor)

Walk traverses nodes Walk is invoked recursively until v.EnterNode returns true

type Label

type Label struct {
	LabelName node.Node
}

Label node

func NewLabel

func NewLabel(LabelName node.Node) *Label

NewLabel node constuctor

func (*Label) Attributes

func (n *Label) Attributes() map[string]interface{}

Attributes returns node attributes as map

func (*Label) Walk

func (n *Label) Walk(v walker.Visitor)

Walk traverses nodes Walk is invoked recursively until v.EnterNode returns true

type Namespace

type Namespace struct {
	NamespaceName node.Node
	Stmts         []node.Node
}

Namespace node

func NewNamespace

func NewNamespace(NamespaceName node.Node, Stmts []node.Node) *Namespace

NewNamespace node constuctor

func (*Namespace) Attributes

func (n *Namespace) Attributes() map[string]interface{}

Attributes returns node attributes as map

func (*Namespace) Walk

func (n *Namespace) Walk(v walker.Visitor)

Walk traverses nodes Walk is invoked recursively until v.EnterNode returns true

type Nop

type Nop struct {
}

Nop node

func NewNop

func NewNop() *Nop

NewNop node constuctor

func (*Nop) Attributes

func (n *Nop) Attributes() map[string]interface{}

Attributes returns node attributes as map

func (*Nop) Walk

func (n *Nop) Walk(v walker.Visitor)

Walk traverses nodes Walk is invoked recursively until v.EnterNode returns true

type Property

type Property struct {
	PhpDocComment string
	Variable      node.Node
	Expr          node.Node
}

Property node

func NewProperty

func NewProperty(Variable node.Node, Expr node.Node, PhpDocComment string) *Property

NewProperty node constuctor

func (*Property) Attributes

func (n *Property) Attributes() map[string]interface{}

Attributes returns node attributes as map

func (*Property) Walk

func (n *Property) Walk(v walker.Visitor)

Walk traverses nodes Walk is invoked recursively until v.EnterNode returns true

type PropertyList

type PropertyList struct {
	Modifiers  []node.Node
	Properties []node.Node
}

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 Return

type Return struct {
	Expr node.Node
}

Return node

func NewReturn

func NewReturn(Expr node.Node) *Return

NewReturn node constuctor

func (*Return) Attributes

func (n *Return) Attributes() map[string]interface{}

Attributes returns node attributes as map

func (*Return) Walk

func (n *Return) Walk(v walker.Visitor)

Walk traverses nodes Walk is invoked recursively until v.EnterNode returns true

type Static

type Static struct {
	Vars []node.Node
}

Static node

func NewStatic

func NewStatic(Vars []node.Node) *Static

NewStatic node constuctor

func (*Static) Attributes

func (n *Static) Attributes() map[string]interface{}

Attributes returns node attributes as map

func (*Static) Walk

func (n *Static) Walk(v walker.Visitor)

Walk traverses nodes Walk is invoked recursively until v.EnterNode returns true

type StaticVar

type StaticVar struct {
	Variable node.Node
	Expr     node.Node
}

StaticVar node

func NewStaticVar

func NewStaticVar(Variable node.Node, Expr node.Node) *StaticVar

NewStaticVar node constuctor

func (*StaticVar) Attributes

func (n *StaticVar) Attributes() map[string]interface{}

Attributes returns node attributes as map

func (*StaticVar) Walk

func (n *StaticVar) Walk(v walker.Visitor)

Walk traverses nodes Walk is invoked recursively until v.EnterNode returns true

type StmtList

type StmtList struct {
	Stmts []node.Node
}

StmtList node

func NewStmtList

func NewStmtList(Stmts []node.Node) *StmtList

NewStmtList node constuctor

func (*StmtList) Attributes

func (n *StmtList) Attributes() map[string]interface{}

Attributes returns node attributes as map

func (*StmtList) Walk

func (n *StmtList) Walk(v walker.Visitor)

Walk traverses nodes Walk is invoked recursively until v.EnterNode returns true

type Switch

type Switch struct {
	Cond  node.Node
	Cases []node.Node
}

Switch node

func NewSwitch

func NewSwitch(Cond node.Node, Cases []node.Node) *Switch

NewSwitch node constuctor

func (*Switch) Attributes

func (n *Switch) Attributes() map[string]interface{}

Attributes returns node attributes as map

func (*Switch) Walk

func (n *Switch) Walk(v walker.Visitor)

Walk traverses nodes Walk is invoked recursively until v.EnterNode returns true

type Throw

type Throw struct {
	Expr node.Node
}

Throw node

func NewThrow

func NewThrow(Expr node.Node) *Throw

NewThrow node constuctor

func (*Throw) Attributes

func (n *Throw) Attributes() map[string]interface{}

Attributes returns node attributes as map

func (*Throw) Walk

func (n *Throw) Walk(v walker.Visitor)

Walk traverses nodes Walk is invoked recursively until v.EnterNode returns true

type Trait

type Trait struct {
	PhpDocComment string
	TraitName     node.Node
	Stmts         []node.Node
}

Trait node

func NewTrait

func NewTrait(TraitName node.Node, Stmts []node.Node, PhpDocComment string) *Trait

NewTrait node constuctor

func (*Trait) Attributes

func (n *Trait) Attributes() map[string]interface{}

Attributes returns node attributes as map

func (*Trait) Walk

func (n *Trait) Walk(v walker.Visitor)

Walk traverses nodes Walk is invoked recursively until v.EnterNode returns true

type TraitMethodRef

type TraitMethodRef struct {
	Trait  node.Node
	Method node.Node
}

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

type TraitUse struct {
	Traits      []node.Node
	Adaptations []node.Node
}

TraitUse node

func NewTraitUse

func NewTraitUse(Traits []node.Node, Adaptations []node.Node) *TraitUse

NewTraitUse node constuctor

func (*TraitUse) Attributes

func (n *TraitUse) Attributes() map[string]interface{}

Attributes returns node attributes as map

func (*TraitUse) Walk

func (n *TraitUse) Walk(v walker.Visitor)

Walk traverses nodes Walk is invoked recursively until v.EnterNode returns true

type TraitUseAlias

type TraitUseAlias struct {
	Ref      node.Node
	Modifier node.Node
	Alias    node.Node
}

TraitUseAlias node

func NewTraitUseAlias

func NewTraitUseAlias(Ref node.Node, Modifier node.Node, Alias node.Node) *TraitUseAlias

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

type TraitUsePrecedence struct {
	Ref       node.Node
	Insteadof []node.Node
}

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

type Try struct {
	Stmts   []node.Node
	Catches []node.Node
	Finally node.Node
}

Try node

func NewTry

func NewTry(Stmts []node.Node, Catches []node.Node, Finally node.Node) *Try

NewTry node constuctor

func (*Try) Attributes

func (n *Try) Attributes() map[string]interface{}

Attributes returns node attributes as map

func (*Try) Walk

func (n *Try) Walk(v walker.Visitor)

Walk traverses nodes Walk is invoked recursively until v.EnterNode returns true

type Unset

type Unset struct {
	Vars []node.Node
}

Unset node

func NewUnset

func NewUnset(Vars []node.Node) *Unset

NewUnset node constuctor

func (*Unset) Attributes

func (n *Unset) Attributes() map[string]interface{}

Attributes returns node attributes as map

func (*Unset) Walk

func (n *Unset) Walk(v walker.Visitor)

Walk traverses nodes Walk is invoked recursively until v.EnterNode returns true

type Use

type Use struct {
	UseType node.Node
	Use     node.Node
	Alias   node.Node
}

Use node

func NewUse

func NewUse(UseType node.Node, use node.Node, Alias node.Node) *Use

NewUse node constuctor

func (*Use) Attributes

func (n *Use) Attributes() map[string]interface{}

Attributes returns node attributes as map

func (*Use) SetUseType

func (n *Use) SetUseType(UseType node.Node) node.Node

SetUseType set use type and returns node

func (*Use) Walk

func (n *Use) Walk(v walker.Visitor)

Walk traverses nodes Walk is invoked recursively until v.EnterNode returns true

type UseList

type UseList struct {
	UseType node.Node
	Uses    []node.Node
}

UseList node

func NewUseList

func NewUseList(UseType node.Node, Uses []node.Node) *UseList

NewUseList node constuctor

func (*UseList) Attributes

func (n *UseList) Attributes() map[string]interface{}

Attributes returns node attributes as map

func (*UseList) Walk

func (n *UseList) Walk(v walker.Visitor)

Walk traverses nodes Walk is invoked recursively until v.EnterNode returns true

type While

type While struct {
	Cond node.Node
	Stmt node.Node
}

While node

func NewWhile

func NewWhile(Cond node.Node, Stmt node.Node) *While

NewWhile node constuctor

func (*While) Attributes

func (n *While) Attributes() map[string]interface{}

Attributes returns node attributes as map

func (*While) Walk

func (n *While) Walk(v walker.Visitor)

Walk traverses nodes Walk is invoked recursively until v.EnterNode returns true

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL