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

fmt: process attributes

This commit is contained in:
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('')
}
ast.Attr {
f.writeln('[$it.name]')
}
ast.BranchStmt {
match it.tok.kind {
.key_break {

View File

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

View File

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