cgen: inline

pull/4304/head
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
1 changed files with 5 additions and 1 deletions

View File

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