1
0
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:
Delyan Angelov 2021-02-05 16:41:55 +02:00
parent 16dffc7c1d
commit 867d96a077
No known key found for this signature in database
GPG Key ID: 66886C0F12D595ED

View File

@ -11,7 +11,7 @@ fn (mut c Checker) mark_used(ast_files []ast.File) {
// c.is_recursive = true
// 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{
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
//
// eprintln('>>> c.table.used_fns: $c.table.used_fns')
util.timing_measure(@STRUCT + '.' + @FN)
util.timing_measure(@METHOD)
// println(walker.used_fns)
// c.walk(ast_files)