From 97145ca3a8914b10f431b9fca5c2e58e67a6bd79 Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Thu, 11 Sep 2025 12:47:47 +0300 Subject: [PATCH] v.builder: support `-d trace_type_symbols_after_checker` --- cmd/tools/vtest-all.v | 2 +- vlib/v/builder/builder.v | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/cmd/tools/vtest-all.v b/cmd/tools/vtest-all.v index 137dcb361b..4b2adf9e44 100644 --- a/cmd/tools/vtest-all.v +++ b/cmd/tools/vtest-all.v @@ -91,7 +91,7 @@ fn get_all_commands() []Command { rmfile: 'examples/hello_world' } res << Command{ - line: '${vexe} -W -Wimpure-v run examples/hello_world.v' + line: '${vexe} -W -Wimpure-v examples/hello_world.v' okmsg: 'V can compile hello world with the stricter `-W -Wimpure-v` mode .' rmfile: 'examples/hello_world' } diff --git a/vlib/v/builder/builder.v b/vlib/v/builder/builder.v index 0ab091f85b..d9f76c5e06 100644 --- a/vlib/v/builder/builder.v +++ b/vlib/v/builder/builder.v @@ -131,6 +131,11 @@ pub fn (mut b Builder) middle_stages() ! { b.checker.check_files(b.parsed_files) util.timing_measure('CHECK') + $if trace_type_symbols_after_checker ? { + for t, s in b.table.type_symbols { + println('> t: ${t:10} | s.mod: ${s.mod:-40} | s.name: ${'${s.name#[..30]}':-30} | s.is_builtin: ${s.is_builtin:6} | s.is_pub: ${s.is_pub}') + } + } if b.pref.dump_defines != '' { b.dump_defines() }