(n *chast.Identifier)
| 374 | } |
| 375 | |
| 376 | func (c *cc) convertIdentifier(n *chast.Identifier) *ast.ColumnRef { |
| 377 | fields := &ast.List{} |
| 378 | for _, part := range n.Parts { |
| 379 | fields.Items = append(fields.Items, NewIdentifier(part)) |
| 380 | } |
| 381 | return &ast.ColumnRef{ |
| 382 | Fields: fields, |
| 383 | Location: n.Pos().Offset, |
| 384 | } |
| 385 | } |
| 386 | |
| 387 | func (c *cc) convertLiteral(n *chast.Literal) *ast.A_Const { |
| 388 | switch n.Type { |
no test coverage detected