String returns a short representation of this expression.
()
| 10414 | |
| 10415 | // String returns a short representation of this expression. |
| 10416 | func (obj *ExprCall) String() string { |
| 10417 | var s []string |
| 10418 | for _, x := range obj.Args { |
| 10419 | s = append(s, x.String()) |
| 10420 | } |
| 10421 | name := obj.Name |
| 10422 | if obj.Name == "" && obj.Anon != nil { |
| 10423 | name = "<anon>" |
| 10424 | } |
| 10425 | return "call:" + name + "(" + strings.Join(s, ", ") + ")" |
| 10426 | } |
| 10427 | |
| 10428 | // Apply is a general purpose iterator method that operates on any AST node. It |
| 10429 | // is not used as the primary AST traversal function because it is less readable |