cgen: add unsafe block braces and comments in generated code (#5674)
parent
0fb28eb42e
commit
cda9240632
|
@ -836,7 +836,9 @@ fn (mut g Gen) stmt(node ast.Stmt) {
|
||||||
g.writeln('// TypeDecl')
|
g.writeln('// TypeDecl')
|
||||||
}
|
}
|
||||||
ast.UnsafeStmt {
|
ast.UnsafeStmt {
|
||||||
|
g.writeln('{ // Unsafe block')
|
||||||
g.stmts(node.stmts)
|
g.stmts(node.stmts)
|
||||||
|
g.writeln('}')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
g.stmt_path_pos.delete(g.stmt_path_pos.len - 1)
|
g.stmt_path_pos.delete(g.stmt_path_pos.len - 1)
|
||||||
|
|
Loading…
Reference in New Issue