php-parser/node/expr/shell_exec.go
2017-12-28 01:23:32 +02:00

35 lines
464 B
Go

package expr
import (
"github.com/z7zmey/php-parser/node"
)
func (n ShellExec) Name() string {
return "ShellExec"
}
type ShellExec struct {
name string
parts []node.Node
}
func NewShellExec(parts []node.Node) node.Node {
return ShellExec{
"ShellExec",
parts,
}
}
func (n ShellExec) Walk(v node.Visitor) {
if v.Visit(n) == false {
return
}
if n.parts != nil {
vv := v.Children("parts")
for _, nn := range n.parts {
nn.Walk(vv)
}
}
}