stmt

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2020 License: MIT, MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Break

type Break struct {
	FreeFloating freefloating.Collection
	Position     *position.Position
	Expr         node.Node
}

Break node

func NewBreak

func NewBreak(Expr node.Node) *Break

NewBreak node constructor

func (*Break) GetFreeFloating

func (n *Break) GetFreeFloating() *freefloating.Collection

func (*Break) GetPosition

func (n *Break) GetPosition() *position.Position

GetPosition returns node positions

func (*Break) SetPosition

func (n *Break) SetPosition(p *position.Position)

SetPosition sets node position

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 {
	FreeFloating freefloating.Collection
	Position     *position.Position
	Cond         node.Node
	Stmts        []node.Node
}

Case node

func NewCase

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

NewCase node constructor

func (*Case) GetFreeFloating

func (n *Case) GetFreeFloating() *freefloating.Collection

func (*Case) GetPosition

func (n *Case) GetPosition() *position.Position

GetPosition returns node positions

func (*Case) SetPosition

func (n *Case) SetPosition(p *position.Position)

SetPosition sets node position

func (*Case) Walk

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

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

type CaseList

type CaseList struct {
	FreeFloating freefloating.Collection
	Position     *position.Position
	Cases        []node.Node
}

CaseList node

func NewCaseList

func NewCaseList(Cases []node.Node) *CaseList

NewCaseList node constructor

func (*CaseList) GetFreeFloating

func (n *CaseList) GetFreeFloating() *freefloating.Collection

func (*CaseList) GetPosition

func (n *CaseList) GetPosition() *position.Position

GetPosition returns node positions

func (*CaseList) SetPosition

func (n *CaseList) SetPosition(p *position.Position)

SetPosition sets node position

func (*CaseList) Walk

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

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

type Catch

type Catch struct {
	FreeFloating freefloating.Collection
	Position     *position.Position
	Types        []node.Node
	Variable     *node.SimpleVar
	Stmts        []node.Node
}

Catch node

func NewCatch

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

NewCatch node constructor

func (*Catch) GetFreeFloating

func (n *Catch) GetFreeFloating() *freefloating.Collection

func (*Catch) GetPosition

func (n *Catch) GetPosition() *position.Position

GetPosition returns node positions

func (*Catch) SetPosition

func (n *Catch) SetPosition(p *position.Position)

SetPosition sets node position

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 {
	FreeFloating  freefloating.Collection
	Position      *position.Position
	PhpDocComment string
	ClassName     *node.Identifier
	Modifiers     []*node.Identifier
	ArgumentList  *node.ArgumentList
	Extends       *ClassExtends
	Implements    *ClassImplements
	Stmts         []node.Node
}

Class node

func NewClass

func NewClass(ClassName *node.Identifier, Modifiers []*node.Identifier, ArgumentList *node.ArgumentList, Extends *ClassExtends, Implements *ClassImplements, Stmts []node.Node, PhpDocComment string) *Class

NewClass node constructor

func (*Class) GetFreeFloating

func (n *Class) GetFreeFloating() *freefloating.Collection

func (*Class) GetPosition

func (n *Class) GetPosition() *position.Position

GetPosition returns node positions

func (*Class) SetPosition

func (n *Class) SetPosition(p *position.Position)

SetPosition sets node position

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 {
	FreeFloating freefloating.Collection
	Position     *position.Position
	Modifiers    []*node.Identifier
	Consts       []node.Node
}

ClassConstList node

func NewClassConstList

func NewClassConstList(Modifiers []*node.Identifier, Consts []node.Node) *ClassConstList

NewClassConstList node constructor

func (*ClassConstList) GetFreeFloating

func (n *ClassConstList) GetFreeFloating() *freefloating.Collection

func (*ClassConstList) GetPosition

func (n *ClassConstList) GetPosition() *position.Position

GetPosition returns node positions

func (*ClassConstList) SetPosition

func (n *ClassConstList) SetPosition(p *position.Position)

SetPosition sets node position

func (*ClassConstList) Walk

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

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

type ClassExtends

type ClassExtends struct {
	FreeFloating freefloating.Collection
	Position     *position.Position
	ClassName    node.Node
}

ClassExtends node

func NewClassExtends

func NewClassExtends(className node.Node) *ClassExtends

NewClassExtends node constructor

func (*ClassExtends) GetFreeFloating

func (n *ClassExtends) GetFreeFloating() *freefloating.Collection

func (*ClassExtends) GetPosition

func (n *ClassExtends) GetPosition() *position.Position

GetPosition returns node positions

func (*ClassExtends) SetPosition

func (n *ClassExtends) SetPosition(p *position.Position)

SetPosition sets node position

func (*ClassExtends) Walk

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

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

type ClassImplements

type ClassImplements struct {
	FreeFloating   freefloating.Collection
	Position       *position.Position
	InterfaceNames []node.Node
}

ClassImplements node

func NewClassImplements

func NewClassImplements(interfaceNames []node.Node) *ClassImplements

NewClassImplements node constructor

func (*ClassImplements) GetFreeFloating

func (n *ClassImplements) GetFreeFloating() *freefloating.Collection

func (*ClassImplements) GetPosition

func (n *ClassImplements) GetPosition() *position.Position

GetPosition returns node positions

func (*ClassImplements) SetPosition

func (n *ClassImplements) SetPosition(p *position.Position)

SetPosition sets node position

func (*ClassImplements) Walk

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

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

type ClassMethod

type ClassMethod struct {
	FreeFloating  freefloating.Collection
	Position      *position.Position
	ReturnsRef    bool
	PhpDocComment string
	MethodName    *node.Identifier
	Modifiers     []*node.Identifier
	Params        []node.Node
	ReturnType    node.Node
	Stmt          node.Node
}

ClassMethod node

func NewClassMethod

func NewClassMethod(MethodName *node.Identifier, Modifiers []*node.Identifier, ReturnsRef bool, Params []node.Node, ReturnType node.Node, Stmt node.Node, PhpDocComment string) *ClassMethod

NewClassMethod node constructor

func (*ClassMethod) GetFreeFloating

func (n *ClassMethod) GetFreeFloating() *freefloating.Collection

func (*ClassMethod) GetPosition

func (n *ClassMethod) GetPosition() *position.Position

GetPosition returns node positions

func (*ClassMethod) SetPosition

func (n *ClassMethod) SetPosition(p *position.Position)

SetPosition sets node position

func (*ClassMethod) Walk

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

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

type ConstList

type ConstList struct {
	FreeFloating freefloating.Collection
	Position     *position.Position
	Consts       []node.Node
}

ConstList node

func NewConstList

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

NewConstList node constructor

func (*ConstList) GetFreeFloating

func (n *ConstList) GetFreeFloating() *freefloating.Collection

func (*ConstList) GetPosition

func (n *ConstList) GetPosition() *position.Position

GetPosition returns node positions

func (*ConstList) SetPosition

func (n *ConstList) SetPosition(p *position.Position)

SetPosition sets node position

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 {
	FreeFloating  freefloating.Collection
	Position      *position.Position
	PhpDocComment string
	ConstantName  *node.Identifier
	Expr          node.Node
}

Constant node

func NewConstant

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

NewConstant node constructor

func (*Constant) GetFreeFloating

func (n *Constant) GetFreeFloating() *freefloating.Collection

func (*Constant) GetPosition

func (n *Constant) GetPosition() *position.Position

GetPosition returns node positions

func (*Constant) SetPosition

func (n *Constant) SetPosition(p *position.Position)

SetPosition sets node position

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 {
	FreeFloating freefloating.Collection
	Position     *position.Position
	Expr         node.Node
}

Continue node

func NewContinue

func NewContinue(Expr node.Node) *Continue

NewContinue node constructor

func (*Continue) GetFreeFloating

func (n *Continue) GetFreeFloating() *freefloating.Collection

func (*Continue) GetPosition

func (n *Continue) GetPosition() *position.Position

GetPosition returns node positions

func (*Continue) SetPosition

func (n *Continue) SetPosition(p *position.Position)

SetPosition sets node position

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 {
	FreeFloating freefloating.Collection
	Position     *position.Position
	Consts       []node.Node
	Stmt         node.Node
	Alt          bool
}

Declare node

func NewDeclare

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

NewDeclare node constructor

func (*Declare) GetFreeFloating

func (n *Declare) GetFreeFloating() *freefloating.Collection

func (*Declare) GetPosition

func (n *Declare) GetPosition() *position.Position

GetPosition returns node positions

func (*Declare) SetPosition

func (n *Declare) SetPosition(p *position.Position)

SetPosition sets node position

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 {
	FreeFloating freefloating.Collection
	Position     *position.Position
	Stmts        []node.Node
}

Default node

func NewDefault

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

NewDefault node constructor

func (*Default) GetFreeFloating

func (n *Default) GetFreeFloating() *freefloating.Collection

func (*Default) GetPosition

func (n *Default) GetPosition() *position.Position

GetPosition returns node positions

func (*Default) SetPosition

func (n *Default) SetPosition(p *position.Position)

SetPosition sets node position

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 {
	FreeFloating freefloating.Collection
	Position     *position.Position
	Stmt         node.Node
	Cond         node.Node
}

Do node

func NewDo

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

NewDo node constructor

func (*Do) GetFreeFloating

func (n *Do) GetFreeFloating() *freefloating.Collection

func (*Do) GetPosition

func (n *Do) GetPosition() *position.Position

GetPosition returns node positions

func (*Do) SetPosition

func (n *Do) SetPosition(p *position.Position)

SetPosition sets node position

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 {
	FreeFloating freefloating.Collection
	Position     *position.Position
	Exprs        []node.Node
}

Echo node

func NewEcho

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

NewEcho node constructor

func (*Echo) GetFreeFloating

func (n *Echo) GetFreeFloating() *freefloating.Collection

func (*Echo) GetPosition

func (n *Echo) GetPosition() *position.Position

GetPosition returns node positions

func (*Echo) SetPosition

func (n *Echo) SetPosition(p *position.Position)

SetPosition sets node position

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 {
	FreeFloating freefloating.Collection
	Position     *position.Position
	Stmt         node.Node
	AltSyntax    bool // Whether alternative colon-style syntax is used
}

Else node

func NewElse

func NewElse(Stmt node.Node) *Else

NewElse node constructor

func (*Else) GetFreeFloating

func (n *Else) GetFreeFloating() *freefloating.Collection

func (*Else) GetPosition

func (n *Else) GetPosition() *position.Position

GetPosition returns node positions

func (*Else) SetPosition

func (n *Else) SetPosition(p *position.Position)

SetPosition sets node position

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 {
	FreeFloating freefloating.Collection
	Position     *position.Position
	Cond         node.Node
	Stmt         node.Node
	AltSyntax    bool // Whether alternative colon-style syntax is used
}

ElseIf node

func NewElseIf

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

NewElseIf node constructor

func (*ElseIf) GetFreeFloating

func (n *ElseIf) GetFreeFloating() *freefloating.Collection

func (*ElseIf) GetPosition

func (n *ElseIf) GetPosition() *position.Position

GetPosition returns node positions

func (*ElseIf) SetPosition

func (n *ElseIf) SetPosition(p *position.Position)

SetPosition sets node position

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 {
	FreeFloating freefloating.Collection
	Position     *position.Position
	Expr         node.Node
}

Expression node

func NewExpression

func NewExpression(Expr node.Node) *Expression

NewExpression node constructor

func (*Expression) GetFreeFloating

func (n *Expression) GetFreeFloating() *freefloating.Collection

func (*Expression) GetPosition

func (n *Expression) GetPosition() *position.Position

GetPosition returns node positions

func (*Expression) SetPosition

func (n *Expression) SetPosition(p *position.Position)

SetPosition sets node position

func (*Expression) Walk

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

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

type Finally

type Finally struct {
	FreeFloating freefloating.Collection
	Position     *position.Position
	Stmts        []node.Node
}

Finally node

func NewFinally

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

NewFinally node constructor

func (*Finally) GetFreeFloating

func (n *Finally) GetFreeFloating() *freefloating.Collection

func (*Finally) GetPosition

func (n *Finally) GetPosition() *position.Position

GetPosition returns node positions

func (*Finally) SetPosition

func (n *Finally) SetPosition(p *position.Position)

SetPosition sets node position

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 {
	FreeFloating freefloating.Collection
	Position     *position.Position
	Init         []node.Node
	Cond         []node.Node
	Loop         []node.Node
	Stmt         node.Node
	AltSyntax    bool // Whether alternative colon-style syntax is used
}

For node

func NewFor

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

NewFor node constructor

func (*For) GetFreeFloating

func (n *For) GetFreeFloating() *freefloating.Collection

func (*For) GetPosition

func (n *For) GetPosition() *position.Position

GetPosition returns node positions

func (*For) SetPosition

func (n *For) SetPosition(p *position.Position)

SetPosition sets node position

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 {
	FreeFloating freefloating.Collection
	Position     *position.Position
	Expr         node.Node
	Key          node.Node
	Variable     node.Node
	Stmt         node.Node
	AltSyntax    bool // Whether alternative colon-style syntax is used
}

Foreach node

func NewForeach

func NewForeach(Expr node.Node, Key node.Node, Variable node.Node, Stmt node.Node) *Foreach

NewForeach node constructor

func (*Foreach) GetFreeFloating

func (n *Foreach) GetFreeFloating() *freefloating.Collection

func (*Foreach) GetPosition

func (n *Foreach) GetPosition() *position.Position

GetPosition returns node positions

func (*Foreach) SetPosition

func (n *Foreach) SetPosition(p *position.Position)

SetPosition sets node position

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 {
	FreeFloating  freefloating.Collection
	Position      *position.Position
	ReturnsRef    bool
	PhpDocComment string
	FunctionName  *node.Identifier
	Params        []node.Node
	ReturnType    node.Node
	Stmts         []node.Node
}

Function node

func NewFunction

func NewFunction(FunctionName *node.Identifier, ReturnsRef bool, Params []node.Node, ReturnType node.Node, Stmts []node.Node, PhpDocComment string) *Function

NewFunction node constructor

func (*Function) GetFreeFloating

func (n *Function) GetFreeFloating() *freefloating.Collection

func (*Function) GetPosition

func (n *Function) GetPosition() *position.Position

GetPosition returns node positions

func (*Function) SetPosition

func (n *Function) SetPosition(p *position.Position)

SetPosition sets node position

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 {
	FreeFloating freefloating.Collection
	Position     *position.Position
	Vars         []node.Node
}

Global node

func NewGlobal

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

NewGlobal node constructor

func (*Global) GetFreeFloating

func (n *Global) GetFreeFloating() *freefloating.Collection

func (*Global) GetPosition

func (n *Global) GetPosition() *position.Position

GetPosition returns node positions

func (*Global) SetPosition

func (n *Global) SetPosition(p *position.Position)

SetPosition sets node position

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 {
	FreeFloating freefloating.Collection
	Position     *position.Position
	Label        *node.Identifier
}

Goto node

func NewGoto

func NewGoto(Label *node.Identifier) *Goto

NewGoto node constructor

func (*Goto) GetFreeFloating

func (n *Goto) GetFreeFloating() *freefloating.Collection

func (*Goto) GetPosition

func (n *Goto) GetPosition() *position.Position

GetPosition returns node positions

func (*Goto) SetPosition

func (n *Goto) SetPosition(p *position.Position)

SetPosition sets node position

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 {
	FreeFloating freefloating.Collection
	Position     *position.Position
	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 constructor

func (*GroupUse) GetFreeFloating

func (n *GroupUse) GetFreeFloating() *freefloating.Collection

func (*GroupUse) GetPosition

func (n *GroupUse) GetPosition() *position.Position

GetPosition returns node positions

func (*GroupUse) SetPosition

func (n *GroupUse) SetPosition(p *position.Position)

SetPosition sets node position

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 {
	FreeFloating freefloating.Collection
	Position     *position.Position
}

HaltCompiler node

func NewHaltCompiler

func NewHaltCompiler() *HaltCompiler

NewHaltCompiler node constructor

func (*HaltCompiler) GetFreeFloating

func (n *HaltCompiler) GetFreeFloating() *freefloating.Collection

func (*HaltCompiler) GetPosition

func (n *HaltCompiler) GetPosition() *position.Position

GetPosition returns node positions

func (*HaltCompiler) SetPosition

func (n *HaltCompiler) SetPosition(p *position.Position)

SetPosition sets node position

func (*HaltCompiler) Walk

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

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

type If

type If struct {
	FreeFloating freefloating.Collection
	Position     *position.Position
	Cond         node.Node
	Stmt         node.Node
	ElseIf       []node.Node
	Else         node.Node
	AltSyntax    bool // Whether alternative colon-style syntax is used
}

If node

func NewIf

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

NewIf node constructor

func (*If) AddElseIf

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

AddElseIf add ElseIf node and returns AltIf node

func (*If) GetFreeFloating

func (n *If) GetFreeFloating() *freefloating.Collection

func (*If) GetPosition

func (n *If) GetPosition() *position.Position

GetPosition returns node positions

func (*If) SetElse

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

SetElse set Else node and returns AltIf node

func (*If) SetPosition

func (n *If) SetPosition(p *position.Position)

SetPosition sets node position

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 {
	FreeFloating freefloating.Collection
	Position     *position.Position
	Value        string
}

InlineHtml node

func NewInlineHtml

func NewInlineHtml(Value string) *InlineHtml

NewInlineHtml node constructor

func (*InlineHtml) GetFreeFloating

func (n *InlineHtml) GetFreeFloating() *freefloating.Collection

func (*InlineHtml) GetPosition

func (n *InlineHtml) GetPosition() *position.Position

GetPosition returns node positions

func (*InlineHtml) SetPosition

func (n *InlineHtml) SetPosition(p *position.Position)

SetPosition sets node position

func (*InlineHtml) Walk

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

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

type Interface

type Interface struct {
	FreeFloating  freefloating.Collection
	Position      *position.Position
	PhpDocComment string
	InterfaceName *node.Identifier
	Extends       *InterfaceExtends
	Stmts         []node.Node
}

Interface node

func NewInterface

func NewInterface(InterfaceName *node.Identifier, Extends *InterfaceExtends, Stmts []node.Node, PhpDocComment string) *Interface

NewInterface node constructor

func (*Interface) GetFreeFloating

func (n *Interface) GetFreeFloating() *freefloating.Collection

func (*Interface) GetPosition

func (n *Interface) GetPosition() *position.Position

GetPosition returns node positions

func (*Interface) SetPosition

func (n *Interface) SetPosition(p *position.Position)

SetPosition sets node position

func (*Interface) Walk

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

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

type InterfaceExtends

type InterfaceExtends struct {
	FreeFloating   freefloating.Collection
	Position       *position.Position
	InterfaceNames []node.Node
}

InterfaceExtends node

func NewInterfaceExtends

func NewInterfaceExtends(InterfaceNames []node.Node) *InterfaceExtends

NewInterfaceExtends node constructor

func (*InterfaceExtends) GetFreeFloating

func (n *InterfaceExtends) GetFreeFloating() *freefloating.Collection

func (*InterfaceExtends) GetPosition

func (n *InterfaceExtends) GetPosition() *position.Position

GetPosition returns node positions

func (*InterfaceExtends) SetPosition

func (n *InterfaceExtends) SetPosition(p *position.Position)

SetPosition sets node position

func (*InterfaceExtends) Walk

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

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

type Label

type Label struct {
	FreeFloating freefloating.Collection
	Position     *position.Position
	LabelName    *node.Identifier
}

Label node

func NewLabel

func NewLabel(LabelName *node.Identifier) *Label

NewLabel node constructor

func (*Label) GetFreeFloating

func (n *Label) GetFreeFloating() *freefloating.Collection

func (*Label) GetPosition

func (n *Label) GetPosition() *position.Position

GetPosition returns node positions

func (*Label) SetPosition

func (n *Label) SetPosition(p *position.Position)

SetPosition sets node position

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 {
	FreeFloating  freefloating.Collection
	Position      *position.Position
	NamespaceName node.Node
	Stmts         []node.Node
}

Namespace node

func NewNamespace

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

NewNamespace node constructor

func (*Namespace) GetFreeFloating

func (n *Namespace) GetFreeFloating() *freefloating.Collection

func (*Namespace) GetPosition

func (n *Namespace) GetPosition() *position.Position

GetPosition returns node positions

func (*Namespace) SetPosition

func (n *Namespace) SetPosition(p *position.Position)

SetPosition sets node position

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 {
	FreeFloating freefloating.Collection
	Position     *position.Position
}

Nop node

func NewNop

func NewNop() *Nop

NewNop node constructor

func (*Nop) GetFreeFloating

func (n *Nop) GetFreeFloating() *freefloating.Collection

func (*Nop) GetPosition

func (n *Nop) GetPosition() *position.Position

GetPosition returns node positions

func (*Nop) SetPosition

func (n *Nop) SetPosition(p *position.Position)

SetPosition sets node position

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 {
	FreeFloating  freefloating.Collection
	Position      *position.Position
	PhpDocComment string
	Variable      *node.SimpleVar
	Expr          node.Node
}

Property node

func NewProperty

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

NewProperty node constructor

func (*Property) GetFreeFloating

func (n *Property) GetFreeFloating() *freefloating.Collection

func (*Property) GetPosition

func (n *Property) GetPosition() *position.Position

GetPosition returns node positions

func (*Property) SetPosition

func (n *Property) SetPosition(p *position.Position)

SetPosition sets node position

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 {
	FreeFloating freefloating.Collection
	Position     *position.Position
	Modifiers    []*node.Identifier
	Properties   []node.Node
}

PropertyList node

func NewPropertyList

func NewPropertyList(Modifiers []*node.Identifier, Properties []node.Node) *PropertyList

NewPropertyList node constructor

func (*PropertyList) GetFreeFloating

func (n *PropertyList) GetFreeFloating() *freefloating.Collection

func (*PropertyList) GetPosition

func (n *PropertyList) GetPosition() *position.Position

GetPosition returns node positions

func (*PropertyList) SetPosition

func (n *PropertyList) SetPosition(p *position.Position)

SetPosition sets node position

func (*PropertyList) Walk

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

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

type Return

type Return struct {
	FreeFloating freefloating.Collection
	Position     *position.Position
	Expr         node.Node
}

Return node

func NewReturn

func NewReturn(Expr node.Node) *Return

NewReturn node constructor

func (*Return) GetFreeFloating

func (n *Return) GetFreeFloating() *freefloating.Collection

func (*Return) GetPosition

func (n *Return) GetPosition() *position.Position

GetPosition returns node positions

func (*Return) SetPosition

func (n *Return) SetPosition(p *position.Position)

SetPosition sets node position

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 {
	FreeFloating freefloating.Collection
	Position     *position.Position
	Vars         []node.Node
}

Static node

func NewStatic

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

NewStatic node constructor

func (*Static) GetFreeFloating

func (n *Static) GetFreeFloating() *freefloating.Collection

func (*Static) GetPosition

func (n *Static) GetPosition() *position.Position

GetPosition returns node positions

func (*Static) SetPosition

func (n *Static) SetPosition(p *position.Position)

SetPosition sets node position

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 {
	FreeFloating freefloating.Collection
	Position     *position.Position
	Variable     *node.SimpleVar
	Expr         node.Node
}

StaticVar node

func NewStaticVar

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

NewStaticVar node constructor

func (*StaticVar) GetFreeFloating

func (n *StaticVar) GetFreeFloating() *freefloating.Collection

func (*StaticVar) GetPosition

func (n *StaticVar) GetPosition() *position.Position

GetPosition returns node positions

func (*StaticVar) SetPosition

func (n *StaticVar) SetPosition(p *position.Position)

SetPosition sets node position

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 {
	FreeFloating freefloating.Collection
	Position     *position.Position
	Stmts        []node.Node
}

StmtList node

func NewStmtList

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

NewStmtList node constructor

func (*StmtList) GetFreeFloating

func (n *StmtList) GetFreeFloating() *freefloating.Collection

func (*StmtList) GetPosition

func (n *StmtList) GetPosition() *position.Position

GetPosition returns node positions

func (*StmtList) SetPosition

func (n *StmtList) SetPosition(p *position.Position)

SetPosition sets node position

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 {
	FreeFloating freefloating.Collection
	Position     *position.Position
	Cond         node.Node
	CaseList     *CaseList
	AltSyntax    bool // Whether alternative colon-style syntax is used
}

Switch node

func NewSwitch

func NewSwitch(Cond node.Node, CaseList *CaseList) *Switch

NewSwitch node constructor

func (*Switch) GetFreeFloating

func (n *Switch) GetFreeFloating() *freefloating.Collection

func (*Switch) GetPosition

func (n *Switch) GetPosition() *position.Position

GetPosition returns node positions

func (*Switch) SetPosition

func (n *Switch) SetPosition(p *position.Position)

SetPosition sets node position

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 {
	FreeFloating freefloating.Collection
	Position     *position.Position
	Expr         node.Node
}

Throw node

func NewThrow

func NewThrow(Expr node.Node) *Throw

NewThrow node constructor

func (*Throw) GetFreeFloating

func (n *Throw) GetFreeFloating() *freefloating.Collection

func (*Throw) GetPosition

func (n *Throw) GetPosition() *position.Position

GetPosition returns node positions

func (*Throw) SetPosition

func (n *Throw) SetPosition(p *position.Position)

SetPosition sets node position

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 {
	FreeFloating  freefloating.Collection
	Position      *position.Position
	PhpDocComment string
	TraitName     *node.Identifier
	Stmts         []node.Node
}

Trait node

func NewTrait

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

NewTrait node constructor

func (*Trait) GetFreeFloating

func (n *Trait) GetFreeFloating() *freefloating.Collection

func (*Trait) GetPosition

func (n *Trait) GetPosition() *position.Position

GetPosition returns node positions

func (*Trait) SetPosition

func (n *Trait) SetPosition(p *position.Position)

SetPosition sets node position

func (*Trait) Walk

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

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

type TraitAdaptationList

type TraitAdaptationList struct {
	FreeFloating freefloating.Collection
	Position     *position.Position
	Adaptations  []node.Node
}

TraitAdaptationList node

func NewTraitAdaptationList

func NewTraitAdaptationList(Adaptations []node.Node) *TraitAdaptationList

NewTraitAdaptationList node constructor

func (*TraitAdaptationList) GetFreeFloating

func (n *TraitAdaptationList) GetFreeFloating() *freefloating.Collection

func (*TraitAdaptationList) GetPosition

func (n *TraitAdaptationList) GetPosition() *position.Position

GetPosition returns node positions

func (*TraitAdaptationList) SetPosition

func (n *TraitAdaptationList) SetPosition(p *position.Position)

SetPosition sets node position

func (*TraitAdaptationList) Walk

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

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

type TraitMethodRef

type TraitMethodRef struct {
	FreeFloating freefloating.Collection
	Position     *position.Position
	Trait        node.Node
	Method       *node.Identifier
}

TraitMethodRef node

func NewTraitMethodRef

func NewTraitMethodRef(Trait node.Node, Method *node.Identifier) *TraitMethodRef

NewTraitMethodRef node constructor

func (*TraitMethodRef) GetFreeFloating

func (n *TraitMethodRef) GetFreeFloating() *freefloating.Collection

func (*TraitMethodRef) GetPosition

func (n *TraitMethodRef) GetPosition() *position.Position

GetPosition returns node positions

func (*TraitMethodRef) SetPosition

func (n *TraitMethodRef) SetPosition(p *position.Position)

SetPosition sets node position

func (*TraitMethodRef) Walk

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

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

type TraitUse

type TraitUse struct {
	FreeFloating        freefloating.Collection
	Position            *position.Position
	Traits              []node.Node
	TraitAdaptationList node.Node
}

TraitUse node

func NewTraitUse

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

NewTraitUse node constructor

func (*TraitUse) GetFreeFloating

func (n *TraitUse) GetFreeFloating() *freefloating.Collection

func (*TraitUse) GetPosition

func (n *TraitUse) GetPosition() *position.Position

GetPosition returns node positions

func (*TraitUse) SetPosition

func (n *TraitUse) SetPosition(p *position.Position)

SetPosition sets node position

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 {
	FreeFloating freefloating.Collection
	Position     *position.Position
	Ref          node.Node
	Modifier     node.Node
	Alias        *node.Identifier
}

TraitUseAlias node

func NewTraitUseAlias

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

NewTraitUseAlias node constructor

func (*TraitUseAlias) GetFreeFloating

func (n *TraitUseAlias) GetFreeFloating() *freefloating.Collection

func (*TraitUseAlias) GetPosition

func (n *TraitUseAlias) GetPosition() *position.Position

GetPosition returns node positions

func (*TraitUseAlias) SetPosition

func (n *TraitUseAlias) SetPosition(p *position.Position)

SetPosition sets node position

func (*TraitUseAlias) Walk

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

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

type TraitUsePrecedence

type TraitUsePrecedence struct {
	FreeFloating freefloating.Collection
	Position     *position.Position
	Ref          node.Node
	Insteadof    []node.Node
}

TraitUsePrecedence node

func NewTraitUsePrecedence

func NewTraitUsePrecedence(Ref node.Node, Insteadof []node.Node) *TraitUsePrecedence

NewTraitUsePrecedence node constructor

func (*TraitUsePrecedence) GetFreeFloating

func (n *TraitUsePrecedence) GetFreeFloating() *freefloating.Collection

func (*TraitUsePrecedence) GetPosition

func (n *TraitUsePrecedence) GetPosition() *position.Position

GetPosition returns node positions

func (*TraitUsePrecedence) SetPosition

func (n *TraitUsePrecedence) SetPosition(p *position.Position)

SetPosition sets node position

func (*TraitUsePrecedence) Walk

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

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

type Try

type Try struct {
	FreeFloating freefloating.Collection
	Position     *position.Position
	Stmts        []node.Node
	Catches      []node.Node
	Finally      node.Node
}

Try node

func NewTry

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

NewTry node constructor

func (*Try) GetFreeFloating

func (n *Try) GetFreeFloating() *freefloating.Collection

func (*Try) GetPosition

func (n *Try) GetPosition() *position.Position

GetPosition returns node positions

func (*Try) SetPosition

func (n *Try) SetPosition(p *position.Position)

SetPosition sets node position

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 {
	FreeFloating freefloating.Collection
	Position     *position.Position
	Vars         []node.Node
}

Unset node

func NewUnset

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

NewUnset node constructor

func (*Unset) GetFreeFloating

func (n *Unset) GetFreeFloating() *freefloating.Collection

func (*Unset) GetPosition

func (n *Unset) GetPosition() *position.Position

GetPosition returns node positions

func (*Unset) SetPosition

func (n *Unset) SetPosition(p *position.Position)

SetPosition sets node position

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 {
	FreeFloating freefloating.Collection
	Position     *position.Position
	UseType      *node.Identifier
	Use          node.Node
	Alias        *node.Identifier
}

Use node

func NewUse

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

NewUse node constructor

func (*Use) GetFreeFloating

func (n *Use) GetFreeFloating() *freefloating.Collection

func (*Use) GetPosition

func (n *Use) GetPosition() *position.Position

GetPosition returns node positions

func (*Use) SetPosition

func (n *Use) SetPosition(p *position.Position)

SetPosition sets node position

func (*Use) SetUseType

func (n *Use) SetUseType(UseType *node.Identifier) 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 {
	FreeFloating freefloating.Collection
	Position     *position.Position
	UseType      node.Node
	Uses         []node.Node
}

UseList node

func NewUseList

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

NewUseList node constructor

func (*UseList) GetFreeFloating

func (n *UseList) GetFreeFloating() *freefloating.Collection

func (*UseList) GetPosition

func (n *UseList) GetPosition() *position.Position

GetPosition returns node positions

func (*UseList) SetPosition

func (n *UseList) SetPosition(p *position.Position)

SetPosition sets node position

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 {
	FreeFloating freefloating.Collection
	Position     *position.Position
	Cond         node.Node
	Stmt         node.Node
	AltSyntax    bool // Whether alternative colon-style syntax is used
}

While node

func NewWhile

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

NewWhile node constructor

func (*While) GetFreeFloating

func (n *While) GetFreeFloating() *freefloating.Collection

func (*While) GetPosition

func (n *While) GetPosition() *position.Position

GetPosition returns node positions

func (*While) SetPosition

func (n *While) SetPosition(p *position.Position)

SetPosition sets node position

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