(n *parser.Drop_stmtContext)
| 252 | } |
| 253 | |
| 254 | func (c *cc) convertDrop_stmtContext(n *parser.Drop_stmtContext) ast.Node { |
| 255 | if n.TABLE_() != nil || n.VIEW_() != nil { |
| 256 | name := ast.TableName{ |
| 257 | Name: identifier(n.Any_name().GetText()), |
| 258 | } |
| 259 | if n.Schema_name() != nil { |
| 260 | name.Schema = n.Schema_name().GetText() |
| 261 | } |
| 262 | |
| 263 | return &ast.DropTableStmt{ |
| 264 | IfExists: n.EXISTS_() != nil, |
| 265 | Tables: []*ast.TableName{&name}, |
| 266 | } |
| 267 | } |
| 268 | return todo("convertDrop_stmtContext", n) |
| 269 | } |
| 270 | |
| 271 | func (c *cc) convertFuncContext(n *parser.Expr_functionContext) ast.Node { |
| 272 | if name, ok := n.Qualified_function_name().(*parser.Qualified_function_nameContext); ok { |
no test coverage detected