(n *pg.CreateFunctionStmt)
| 1087 | } |
| 1088 | |
| 1089 | func convertCreateFunctionStmt(n *pg.CreateFunctionStmt) *ast.CreateFunctionStmt { |
| 1090 | if n == nil { |
| 1091 | return nil |
| 1092 | } |
| 1093 | rel, err := parseRelationFromNodes(n.Funcname) |
| 1094 | if err != nil { |
| 1095 | panic(err) |
| 1096 | } |
| 1097 | return &ast.CreateFunctionStmt{ |
| 1098 | Replace: n.Replace, |
| 1099 | Func: rel.FuncName(), |
| 1100 | Params: convertSlice(n.Parameters), |
| 1101 | ReturnType: convertTypeName(n.ReturnType), |
| 1102 | Options: convertSlice(n.Options), |
| 1103 | } |
| 1104 | } |
| 1105 | |
| 1106 | func convertCreateOpClassItem(n *pg.CreateOpClassItem) *ast.CreateOpClassItem { |
| 1107 | if n == nil { |
no test coverage detected