(n *parser.Expr_castContext)
| 1196 | } |
| 1197 | |
| 1198 | func (c *cc) convertCastExpr(n *parser.Expr_castContext) ast.Node { |
| 1199 | name := n.Type_name().GetText() |
| 1200 | return &ast.TypeCast{ |
| 1201 | Arg: c.convert(n.Expr()), |
| 1202 | TypeName: &ast.TypeName{ |
| 1203 | Name: name, |
| 1204 | Names: &ast.List{Items: []ast.Node{ |
| 1205 | NewIdentifier(name), |
| 1206 | }}, |
| 1207 | ArrayBounds: &ast.List{}, |
| 1208 | }, |
| 1209 | Location: n.GetStart().GetStart(), |
| 1210 | } |
| 1211 | } |
| 1212 | |
| 1213 | func (c *cc) convertCollateExpr(n *parser.Expr_collateContext) ast.Node { |
| 1214 | return &ast.CollateExpr{ |