1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

cgen: inline

This commit is contained in:
ka-weihe 2020-04-09 00:35:13 +02:00 committed by GitHub
parent 3f480a358e
commit 77d41d03f5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -334,8 +334,12 @@ fn (g mut Gen) stmt(node ast.Stmt) {
g.gen_assign_stmt(it)
}
ast.Attr {
if it.name == 'inline' {
g.writeln(it.name)
} else {
g.writeln('//[$it.name]')
}
}
ast.Block {
g.writeln('{')
g.stmts(it.stmts)