cgen: minor cleanup of return_stmt (#9664)

pull/9667/head
yuyi 2021-04-10 16:55:34 +08:00 committed by GitHub
parent d54becf52e
commit 1bcc45f914
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -1232,7 +1232,7 @@ fn (mut g Gen) stmt(node ast.Stmt) {
g.writeln('// ast.Return free_end2')
}
*/
g.return_statement(node)
g.return_stmt(node)
}
ast.SqlStmt {
g.sql_stmt(node)
@ -4630,7 +4630,7 @@ fn (mut g Gen) gen_optional_error(target_type ast.Type, expr ast.Expr) {
g.write(' }')
}
fn (mut g Gen) return_statement(node ast.Return) {
fn (mut g Gen) return_stmt(node ast.Return) {
g.write_v_source_line_info(node.pos)
if node.exprs.len > 0 {
// skip `retun $vweb.html()`