diff options
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) |