mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
cleanup
This commit is contained in:
parent
4ac1beda55
commit
cbd0e7bea0
@ -29,7 +29,7 @@ fn (mut c Checker) sql_expr(mut node ast.SqlExpr) ast.Type {
|
||||
if !c.ensure_type_exists(node.table_expr.typ, node.pos) {
|
||||
return ast.void_type
|
||||
}
|
||||
mut table_sym := c.table.sym(c.unwrap_generic(node.table_expr.typ))
|
||||
table_sym := c.table.sym(c.unwrap_generic(node.table_expr.typ))
|
||||
|
||||
if !c.check_orm_table_expr_type(node.table_expr) {
|
||||
return ast.void_type
|
||||
|
@ -25,7 +25,7 @@ fn (mut p Parser) sql_expr() ast.Expr {
|
||||
}
|
||||
|
||||
table_pos := p.tok.pos()
|
||||
mut table_type := p.parse_type() // `User`
|
||||
table_type := p.parse_type() // `User`
|
||||
|
||||
mut where_expr := ast.empty_expr
|
||||
has_where := p.tok.kind == .name && p.tok.lit == 'where'
|
||||
|
Loading…
Reference in New Issue
Block a user