(n *chast.InExpr)
| 598 | } |
| 599 | |
| 600 | func (c *cc) convertInExpr(n *chast.InExpr) *ast.In { |
| 601 | in := &ast.In{ |
| 602 | Expr: c.convertExpr(n.Expr), |
| 603 | Not: n.Not, |
| 604 | Location: n.Pos().Offset, |
| 605 | } |
| 606 | |
| 607 | // Convert the list |
| 608 | if len(n.List) > 0 { |
| 609 | in.List = make([]ast.Node, 0, len(n.List)) |
| 610 | for _, item := range n.List { |
| 611 | in.List = append(in.List, c.convertExpr(item)) |
| 612 | } |
| 613 | } |
| 614 | |
| 615 | // Handle subquery |
| 616 | if n.Query != nil { |
| 617 | in.Sel = c.convert(n.Query) |
| 618 | } |
| 619 | |
| 620 | return in |
| 621 | } |
| 622 | |
| 623 | func (c *cc) convertIsNullExpr(n *chast.IsNullExpr) *ast.NullTest { |
| 624 | nullTest := &ast.NullTest{ |
no test coverage detected