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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user