(n *chast.Parameter)
| 518 | } |
| 519 | |
| 520 | func (c *cc) convertParameter(n *chast.Parameter) ast.Node { |
| 521 | c.paramCount++ |
| 522 | // Use the parameter name if available |
| 523 | name := n.Name |
| 524 | if name == "" { |
| 525 | name = strconv.Itoa(c.paramCount) |
| 526 | } |
| 527 | return &ast.ParamRef{ |
| 528 | Number: c.paramCount, |
| 529 | Location: n.Pos().Offset, |
| 530 | } |
| 531 | } |
| 532 | |
| 533 | func (c *cc) convertAsterisk(n *chast.Asterisk) *ast.ColumnRef { |
| 534 | fields := &ast.List{} |