checker: wrap print_backtraces with if is_verbose (#9595)
parent
a016ac39c0
commit
98e1dd4b22
|
@ -3421,8 +3421,10 @@ fn (mut c Checker) stmt(node ast.Stmt) {
|
||||||
// c.expected_type = ast.void_type
|
// c.expected_type = ast.void_type
|
||||||
match mut node {
|
match mut node {
|
||||||
ast.EmptyStmt {
|
ast.EmptyStmt {
|
||||||
print_backtrace()
|
if c.pref.is_verbose {
|
||||||
eprintln('Checker.stmt() EmptyStmt')
|
eprintln('Checker.stmt() EmptyStmt')
|
||||||
|
print_backtrace()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
ast.NodeError {}
|
ast.NodeError {}
|
||||||
ast.AsmStmt {
|
ast.AsmStmt {
|
||||||
|
@ -4023,7 +4025,6 @@ pub fn (mut c Checker) expr(node ast.Expr) ast.Type {
|
||||||
match mut node {
|
match mut node {
|
||||||
ast.NodeError {}
|
ast.NodeError {}
|
||||||
ast.EmptyExpr {
|
ast.EmptyExpr {
|
||||||
print_backtrace()
|
|
||||||
c.error('checker.expr(): unhandled EmptyExpr', token.Position{})
|
c.error('checker.expr(): unhandled EmptyExpr', token.Position{})
|
||||||
}
|
}
|
||||||
ast.CTempVar {
|
ast.CTempVar {
|
||||||
|
|
Loading…
Reference in New Issue