diff options
| author | Brad Lewis <22850972+BradLewis@users.noreply.github.com> | 2025-09-23 09:37:18 -0400 |
|---|---|---|
| committer | Brad Lewis <22850972+BradLewis@users.noreply.github.com> | 2025-09-23 09:37:18 -0400 |
| commit | c0f609e92f9b641889beb323de404134556cda72 (patch) | |
| tree | 7bc5cec8f6e1ff98f54bf17b5245b4d5fed68459 /src/server/ast.odin | |
| parent | 9b55c466b91171ab3e5c0695d891e213e58cc16f (diff) | |
Check file build tags before collecting symbols
Diffstat (limited to 'src/server/ast.odin')
| -rw-r--r-- | src/server/ast.odin | 3 |
1 files changed, 1 insertions, 2 deletions
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) |