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

fmt: initial support for -debug

This commit is contained in:
Delyan Angelov
2020-05-04 17:22:41 +03:00
parent 23df9b052e
commit 5eb71c4a13
5 changed files with 18 additions and 8 deletions

View File

@@ -152,7 +152,7 @@ fn (foptions &FormatOptions) format_file(file string) {
parent: 0
})
// checker.check(file_ast)
formatted_content := fmt.fmt(file_ast, table)
formatted_content := fmt.fmt(file_ast, table, foptions.is_debug)
file_name := os.file_name(file)
vfmt_output_path := os.join_path(os.temp_dir(), 'vfmt_' + file_name)
os.write_file(vfmt_output_path, formatted_content)