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

v: show the number of processed bytes and lines for V source code with -stats

This commit is contained in:
Delyan Angelov
2021-04-07 18:12:27 +03:00
parent fef4e1e700
commit de5cf4ac5e
3 changed files with 10 additions and 0 deletions

View File

@@ -272,6 +272,8 @@ pub fn (mut p Parser) parse() ast.File {
return ast.File{
path: p.file_name
path_base: p.file_base
lines: p.scanner.line_nr
bytes: p.scanner.text.len
mod: module_decl
imports: p.ast_imports
imported_symbols: p.imported_symbols