(n *chast.IsNullExpr)
| 621 | } |
| 622 | |
| 623 | func (c *cc) convertIsNullExpr(n *chast.IsNullExpr) *ast.NullTest { |
| 624 | nullTest := &ast.NullTest{ |
| 625 | Arg: c.convertExpr(n.Expr), |
| 626 | Location: n.Pos().Offset, |
| 627 | } |
| 628 | if n.Not { |
| 629 | nullTest.Nulltesttype = ast.NullTestTypeIsNotNull |
| 630 | } else { |
| 631 | nullTest.Nulltesttype = ast.NullTestTypeIsNull |
| 632 | } |
| 633 | return nullTest |
| 634 | } |
| 635 | |
| 636 | func (c *cc) convertLikeExpr(n *chast.LikeExpr) *ast.A_Expr { |
| 637 | kind := ast.A_Expr_Kind(0) |
no test coverage detected