package ast import ( "fmt" ) // Concat represents a node where the result of two or more expressions are // concatenated. The result of all expressions must be a string. type Concat struct { Exprs []Node Posx Pos } func (n *Concat) Accept(v Visitor) { for _, n := range n.Exprs { n.Accept(v) } v(n) } func (n *Concat) Pos() Pos { return n.Posx } func (n *Concat) GoString() string { return fmt.Sprintf("*%#v", *n) }