package node import ( "fmt" "github.com/z7zmey/php-parser/token" "io" ) type NodeExprShellExec struct { *SimpleNode startToken token.Token endToken token.Token parts []Node } func NewNodeExprShellExec(startToken token.Token, parts []Node, endToken token.Token) Node { return NodeExprShellExec{ &SimpleNode{Name: "NodeExprShellExec", Attributes: make(map[string]string)}, startToken, endToken, parts, } } func (n NodeExprShellExec) Print(out io.Writer, indent string) { fmt.Fprintf(out, "\n%v%v [%d %d]", indent, n.Name, n.startToken.StartLine, n.endToken.EndLine) fmt.Fprintf(out, "\n%vparts:", indent+" ",) for _, nn := range n.parts { nn.Print(out, indent+" ") } }