mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
checker: use @METHOD for util.timing_start in Checker.mark_used/1
This commit is contained in:
parent
16dffc7c1d
commit
867d96a077
@ -11,7 +11,7 @@ fn (mut c Checker) mark_used(ast_files []ast.File) {
|
|||||||
// c.is_recursive = true
|
// c.is_recursive = true
|
||||||
// c.fn_decl(mut c.table2.main_fn_decl_node)
|
// c.fn_decl(mut c.table2.main_fn_decl_node)
|
||||||
|
|
||||||
util.timing_start(@STRUCT + '.' + @FN)
|
util.timing_start(@METHOD)
|
||||||
mut walker := mark_used_walker.Walker{
|
mut walker := mark_used_walker.Walker{
|
||||||
files: ast_files
|
files: ast_files
|
||||||
}
|
}
|
||||||
@ -101,7 +101,7 @@ fn (mut c Checker) mark_used(ast_files []ast.File) {
|
|||||||
c.table.used_fns['main.can_use_relative_paths'] = true
|
c.table.used_fns['main.can_use_relative_paths'] = true
|
||||||
//
|
//
|
||||||
// eprintln('>>> c.table.used_fns: $c.table.used_fns')
|
// eprintln('>>> c.table.used_fns: $c.table.used_fns')
|
||||||
util.timing_measure(@STRUCT + '.' + @FN)
|
util.timing_measure(@METHOD)
|
||||||
|
|
||||||
// println(walker.used_fns)
|
// println(walker.used_fns)
|
||||||
// c.walk(ast_files)
|
// c.walk(ast_files)
|
||||||
|
Loading…
Reference in New Issue
Block a user