From c0f609e92f9b641889beb323de404134556cda72 Mon Sep 17 00:00:00 2001 From: Brad Lewis <22850972+BradLewis@users.noreply.github.com> Date: Tue, 23 Sep 2025 09:37:18 -0400 Subject: Check file build tags before collecting symbols --- src/server/ast.odin | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/server/ast.odin') diff --git a/src/server/ast.odin b/src/server/ast.odin index 879693b..5548c23 100644 --- a/src/server/ast.odin +++ b/src/server/ast.odin @@ -528,10 +528,9 @@ collect_when_body :: proc( collect_globals :: proc(file: ast.File) -> []GlobalExpr { file_tags := parser.parse_file_tags(file, context.temp_allocator) - if file_tags.ignore { + if !should_collect_file(file_tags) { return {} } - exprs := make([dynamic]GlobalExpr, context.temp_allocator) defer shrink(&exprs) -- cgit v1.2.3