mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
fix prod build
This commit is contained in:
parent
1dd6491a2f
commit
53f8ae6517
@ -3208,7 +3208,6 @@ fn todo_remove() {
|
||||
|
||||
fn (p mut Parser) check_if_parser_is_stuck(parsing_cycle u64, parsing_start_ticks i64){
|
||||
// QTODO
|
||||
/*
|
||||
if p.prev_stuck_token_idx == p.token_idx {
|
||||
// many many cycles have passed with no progress :-( ...
|
||||
eprintln('Parsing is [probably] stuck. Cycle: ${parsing_cycle:12ld} .')
|
||||
@ -3225,5 +3224,4 @@ Please create a GitHub issue: https://github.com/vlang/v/issues/new/choose
|
||||
}
|
||||
}
|
||||
p.prev_stuck_token_idx = p.token_idx
|
||||
*/
|
||||
}
|
||||
|
@ -447,15 +447,13 @@ pub fn (c mut Checker) match_expr(node mut ast.MatchExpr) table.Type {
|
||||
// If the last statement is an expression, return its type
|
||||
if block.stmts.len > 0 {
|
||||
match block.stmts[block.stmts.len - 1] {
|
||||
ast.ExprStmt {
|
||||
a := 0
|
||||
// TODO: ask alex about this
|
||||
// typ := c.expr(it.expr)
|
||||
// type_sym := c.table.get_type_symbol(typ)
|
||||
// p.warn('match expr ret $type_sym.name')
|
||||
// node.typ = typ
|
||||
// return typ
|
||||
}
|
||||
ast.ExprStmt {}
|
||||
// TODO: ask alex about this
|
||||
// typ := c.expr(it.expr)
|
||||
// type_sym := c.table.get_type_symbol(typ)
|
||||
// p.warn('match expr ret $type_sym.name')
|
||||
// node.typ = typ
|
||||
// return typ
|
||||
else {}
|
||||
}
|
||||
}
|
||||
|
@ -633,7 +633,6 @@ pub fn (p mut Parser) expr(precedence int) (ast.Expr,table.Type) {
|
||||
}
|
||||
// Map `{"age": 20}` or `{ x | foo:bar, a:10 }`
|
||||
.lcbr {
|
||||
p.warn('kek')
|
||||
p.next()
|
||||
if p.tok.kind == .str {
|
||||
for p.tok.kind != .rcbr && p.tok.kind != .eof {
|
||||
|
Loading…
Reference in New Issue
Block a user