(n *pcast.ByItem)
| 828 | } |
| 829 | |
| 830 | func (c *cc) convertByItem(n *pcast.ByItem) ast.Node { |
| 831 | switch n.Expr.(type) { |
| 832 | case *pcast.PositionExpr: |
| 833 | return c.convertPositionExpr(n.Expr.(*pcast.PositionExpr)) |
| 834 | case *pcast.ColumnNameExpr: |
| 835 | return c.convertColumnNameExpr(n.Expr.(*pcast.ColumnNameExpr)) |
| 836 | default: |
| 837 | return todo(n) |
| 838 | } |
| 839 | } |
| 840 | |
| 841 | func (c *cc) convertCaseExpr(n *pcast.CaseExpr) ast.Node { |
| 842 | if n == nil { |
no test coverage detected