fmt: process attributes

pull/3831/head
Alexey 2020-02-24 19:18:14 +03:00 committed by GitHub
parent a3a7e0531a
commit 5918946feb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 0 deletions

View File

@ -112,6 +112,9 @@ fn (f mut Fmt) stmt(node ast.Stmt) {
} }
f.writeln('') f.writeln('')
} }
ast.Attr {
f.writeln('[$it.name]')
}
ast.BranchStmt { ast.BranchStmt {
match it.tok.kind { match it.tok.kind {
.key_break { .key_break {

View File

@ -41,6 +41,7 @@ fn new_user() User {
} }
} }
[inline]
fn fn_contains_range_expr() { fn fn_contains_range_expr() {
a := 1 in arr[0..2] a := 1 in arr[0..2]
} }

View File

@ -45,6 +45,8 @@ User
} }
} }
[inline]
fn fn_contains_range_expr() { fn fn_contains_range_expr() {
a:=1 in arr[0..2] a:=1 in arr[0..2]
} }