package expr import ( "github.com/z7zmey/php-parser/node" ) type StaticCall struct { attributes map[string]interface{} position *node.Position Class node.Node Call node.Node Arguments []node.Node } func NewStaticCall(Class node.Node, Call node.Node, Arguments []node.Node) node.Node { return &StaticCall{ map[string]interface{}{}, nil, Class, Call, Arguments, } } func (n StaticCall) Attributes() map[string]interface{} { return n.attributes } func (n StaticCall) Position() *node.Position { return n.position } func (n StaticCall) SetPosition(p *node.Position) node.Node { n.position = p return n } func (n StaticCall) Walk(v node.Visitor) { if v.EnterNode(n) == false { return } if n.Class != nil { vv := v.GetChildrenVisitor("Class") n.Class.Walk(vv) } if n.Call != nil { vv := v.GetChildrenVisitor("Call") n.Call.Walk(vv) } if n.Arguments != nil { vv := v.GetChildrenVisitor("Arguments") for _, nn := range n.Arguments { nn.Walk(vv) } } v.LeaveNode(n) }