8 // Arithmetic represents a node where the result is arithmetic of
9 // two or more operands in the order given.
10 type Arithmetic struct {
16 func (n *Arithmetic) Accept(v Visitor) Node {
17 for i, expr := range n.Exprs {
18 n.Exprs[i] = expr.Accept(v)
24 func (n *Arithmetic) Pos() Pos {
28 func (n *Arithmetic) GoString() string {
29 return fmt.Sprintf("*%#v", *n)
32 func (n *Arithmetic) String() string {
34 for _, expr := range n.Exprs {
35 b.WriteString(fmt.Sprintf("%s", expr))
41 func (n *Arithmetic) Type(Scope) (Type, error) {