()
| 627 | } |
| 628 | |
| 629 | func (s *CallExprNode) String() string { |
| 630 | arguments := "" |
| 631 | for i, expr := range s.Exprs { |
| 632 | if i > 0 { |
| 633 | arguments += ", " |
| 634 | } |
| 635 | arguments += expr.String() |
| 636 | } |
| 637 | return fmt.Sprintf("%s(%s)", s.BaseExpr, arguments) |
| 638 | } |
| 639 | |
| 640 | // TernaryExprNod represents a ternary expression, |
| 641 | // ex: expression '?' expression ':' expression |