mirror of
https://github.com/odin-lang/Odin.git
synced 2026-06-16 23:31:13 +00:00
Merge pull request #6844 from astenmark/fix-6811-private-file-drops-tests
Fix #6811: collect @(test) procs from #+private file by iterating c->…
This commit is contained in:
@@ -2875,9 +2875,11 @@ gb_internal void collect_testing_procedures_of_package(Checker *c, AstPackage *p
|
||||
InternedString interned = string_interner_insert(str_lit("Test_Signature"), 0, &hash);
|
||||
Entity *test_signature = scope_lookup_current(testing_scope, interned, hash);
|
||||
|
||||
Scope *s = pkg->scope;
|
||||
for (auto const &entry : s->elements) {
|
||||
Entity *e = entry.value;
|
||||
for_array(i, c->info.entities) {
|
||||
Entity *e = c->info.entities[i];
|
||||
if (e->pkg != pkg) {
|
||||
continue;
|
||||
}
|
||||
if (e->kind != Entity_Procedure) {
|
||||
continue;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user