expr

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2019 License: MIT Imports: 4 Imported by: 14

Documentation

Index

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 NewArray

func NewArray(Items []node.Node) *Array

NewArray node constructor

func (*Array) Attributes

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

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

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

GetPosition returns node positions

func (*Array) SetPosition added in v0.6.0

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

SetPosition sets node position

func (*Array) Walk

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

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

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

func NewArrayItem(Key node.Node, Val node.Node) *ArrayItem

NewArrayItem node constructor

func (*ArrayItem) Attributes

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

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

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

GetPosition returns node positions

func (*ArrayItem) SetPosition added in v0.6.0

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

SetPosition sets node position

func (*ArrayItem) Walk

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

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

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 NewClone

func NewClone(Expression node.Node) *Clone

NewClone node constructor

func (*Clone) Attributes

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

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

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

GetPosition returns node positions

func (*Clone) SetPosition added in v0.6.0

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

SetPosition sets node position

func (*Clone) Walk

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

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

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

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

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

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

GetPosition returns node positions

func (*Closure) SetPosition added in v0.6.0

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

SetPosition sets node position

func (*Closure) Walk

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

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

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 NewEmpty

func NewEmpty(Expression node.Node) *Empty

NewEmpty node constructor

func (*Empty) Attributes

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

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

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

GetPosition returns node positions

func (*Empty) SetPosition added in v0.6.0

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

SetPosition sets node position

func (*Empty) Walk

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

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

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 NewEval

func NewEval(Expression node.Node) *Eval

NewEval node constructor

func (*Eval) Attributes

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

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

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

GetPosition returns node positions

func (*Eval) SetPosition added in v0.6.0

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

SetPosition sets node position

func (*Eval) Walk

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

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

type Exit

type Exit struct {
	FreeFloating freefloating.Collection
	Die          bool
	Position     *position.Position
	Expr         node.Node
}

Exit node

func NewExit

func NewExit(Expr node.Node) *Exit

NewExit node constructor

func (*Exit) Attributes

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

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

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

GetPosition returns node positions

func (*Exit) SetPosition added in v0.6.0

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

SetPosition sets node position

func (*Exit) Walk

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

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

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 NewInclude

func NewInclude(Expression node.Node) *Include

NewInclude node constructor

func (*Include) Attributes

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

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

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

GetPosition returns node positions

func (*Include) SetPosition added in v0.6.0

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

SetPosition sets node position

func (*Include) Walk

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

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

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 NewIsset

func NewIsset(Variables []node.Node) *Isset

NewIsset node constructor

func (*Isset) Attributes

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

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

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

GetPosition returns node positions

func (*Isset) SetPosition added in v0.6.0

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

SetPosition sets node position

func (*Isset) Walk

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

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

type List

type List struct {
	FreeFloating freefloating.Collection
	Position     *position.Position
	Items        []node.Node
}

List node

func NewList

func NewList(Items []node.Node) *List

NewList node constructor

func (*List) Attributes

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

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

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

GetPosition returns node positions

func (*List) SetPosition added in v0.6.0

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

SetPosition sets node position

func (*List) Walk

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

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

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

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

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

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

GetPosition returns node positions

func (*New) SetPosition added in v0.6.0

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

SetPosition sets node position

func (*New) Walk

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

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

type PostDec

type PostDec struct {
	FreeFloating freefloating.Collection
	Position     *position.Position
	Variable     node.Node
}

PostDec node

func NewPostDec

func NewPostDec(Variable node.Node) *PostDec

NewPostDec node constructor

func (*PostDec) Attributes

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

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

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

GetPosition returns node positions

func (*PostDec) SetPosition added in v0.6.0

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

SetPosition sets node position

func (*PostDec) Walk

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

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

type PostInc

type PostInc struct {
	FreeFloating freefloating.Collection
	Position     *position.Position
	Variable     node.Node
}

PostInc node

func NewPostInc

func NewPostInc(Variable node.Node) *PostInc

NewPostInc node constructor

func (*PostInc) Attributes

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

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

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

GetPosition returns node positions

func (*PostInc) SetPosition added in v0.6.0

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

SetPosition sets node position

func (*PostInc) Walk

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

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

type PreDec

type PreDec struct {
	FreeFloating freefloating.Collection
	Position     *position.Position
	Variable     node.Node
}

PreDec node

func NewPreDec

func NewPreDec(Variable node.Node) *PreDec

NewPreDec node constructor

func (*PreDec) Attributes

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

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

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

GetPosition returns node positions

func (*PreDec) SetPosition added in v0.6.0

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

SetPosition sets node position

func (*PreDec) Walk

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

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

type PreInc

type PreInc struct {
	FreeFloating freefloating.Collection
	Position     *position.Position
	Variable     node.Node
}

PreInc node

func NewPreInc

func NewPreInc(Variable node.Node) *PreInc

NewPreInc node constructor

func (*PreInc) Attributes

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

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

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

GetPosition returns node positions

func (*PreInc) SetPosition added in v0.6.0

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

SetPosition sets node position

func (*PreInc) Walk

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

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

type Print

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

Print node

func NewPrint

func NewPrint(Expression node.Node) *Print

NewPrint node constructor

func (*Print) Attributes

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

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

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

GetPosition returns node positions

func (*Print) SetPosition added in v0.6.0

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

SetPosition sets node position

func (*Print) Walk

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

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

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

func NewReference(Variable node.Node) *Reference

NewReference node constructor

func (*Reference) Attributes added in v0.5.0

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

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

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

GetPosition returns node positions

func (*Reference) SetPosition added in v0.6.0

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

SetPosition sets node position

func (*Reference) Walk added in v0.5.0

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

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

type Require

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

Require node

func NewRequire

func NewRequire(Expression node.Node) *Require

NewRequire node constructor

func (*Require) Attributes

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

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

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

GetPosition returns node positions

func (*Require) SetPosition added in v0.6.0

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

SetPosition sets node position

func (*Require) Walk

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

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

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 NewShellExec

func NewShellExec(Parts []node.Node) *ShellExec

NewShellExec node constructor

func (*ShellExec) Attributes

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

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

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

GetPosition returns node positions

func (*ShellExec) SetPosition added in v0.6.0

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

SetPosition sets node position

func (*ShellExec) Walk

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

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

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 NewShortList

func NewShortList(Items []node.Node) *ShortList

NewShortList node constructor

func (*ShortList) Attributes

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

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

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

GetPosition returns node positions

func (*ShortList) SetPosition added in v0.6.0

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

SetPosition sets node position

func (*ShortList) Walk

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

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

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

func NewTernary(Condition node.Node, IfTrue node.Node, IfFalse node.Node) *Ternary

NewTernary node constructor

func (*Ternary) Attributes

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

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

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

GetPosition returns node positions

func (*Ternary) SetPosition added in v0.6.0

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

SetPosition sets node position

func (*Ternary) Walk

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

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

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

func NewUnaryPlus(Expression node.Node) *UnaryPlus

NewUnaryPlus node constructor

func (*UnaryPlus) Attributes

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

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

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

GetPosition returns node positions

func (*UnaryPlus) SetPosition added in v0.6.0

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

SetPosition sets node position

func (*UnaryPlus) Walk

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

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

type Variable

type Variable struct {
	FreeFloating freefloating.Collection
	Position     *position.Position
	VarName      node.Node
}

Variable node

func NewVariable

func NewVariable(VarName node.Node) *Variable

NewVariable node constructor

func (*Variable) Attributes

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

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

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

GetPosition returns node positions

func (*Variable) SetPosition added in v0.6.0

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

SetPosition sets node position

func (*Variable) SetVarName

func (n *Variable) SetVarName(VarName node.Node)

SetVarName reset var name

func (*Variable) Walk

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

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

type Yield

type Yield struct {
	FreeFloating freefloating.Collection
	Position     *position.Position
	Key          node.Node
	Value        node.Node
}

Yield node

func NewYield

func NewYield(Key node.Node, Value node.Node) *Yield

NewYield node constructor

func (*Yield) Attributes

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

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

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

GetPosition returns node positions

func (*Yield) SetPosition added in v0.6.0

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

SetPosition sets node position

func (*Yield) Walk

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

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

type YieldFrom

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

YieldFrom node

func NewYieldFrom

func NewYieldFrom(Expression node.Node) *YieldFrom

NewYieldFrom node constructor

func (*YieldFrom) Attributes

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

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

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

GetPosition returns node positions

func (*YieldFrom) SetPosition added in v0.6.0

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

SetPosition sets node position

func (*YieldFrom) Walk

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

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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