(n *pg.TypeCast)
| 2761 | } |
| 2762 | |
| 2763 | func convertTypeCast(n *pg.TypeCast) *ast.TypeCast { |
| 2764 | if n == nil { |
| 2765 | return nil |
| 2766 | } |
| 2767 | return &ast.TypeCast{ |
| 2768 | Arg: convertNode(n.Arg), |
| 2769 | TypeName: convertTypeName(n.TypeName), |
| 2770 | Location: int(n.Location), |
| 2771 | } |
| 2772 | } |
| 2773 | |
| 2774 | func convertTypeName(n *pg.TypeName) *ast.TypeName { |
| 2775 | if n == nil { |
no test coverage detected