php-parser/node/expr/shell_exec.go
2018-01-09 15:51:32 +02:00

35 lines
484 B
Go

package expr
import (
"github.com/z7zmey/php-parser/node"
)
type ShellExec struct {
Parts []node.Node
}
func NewShellExec(Parts []node.Node) *ShellExec {
return &ShellExec{
Parts,
}
}
func (n *ShellExec) Attributes() map[string]interface{} {
return nil
}
func (n *ShellExec) Walk(v node.Visitor) {
if v.EnterNode(n) == false {
return
}
if n.Parts != nil {
vv := v.GetChildrenVisitor("Parts")
for _, nn := range n.Parts {
nn.Walk(vv)
}
}
v.LeaveNode(n)
}