| ... | ... | @@ -2277,12 +2277,10 @@ pub fn initWipNav(dwarf: *Dwarf, pt: Zcu.PerThread, nav_index: InternPool.Nav.In |
| 2277 | 2277 | => DW.ACCESS.private, |
| 2278 | 2278 | _ => if (decl_extra.name.isNamedTest(file.zir)) |
| 2279 | 2279 | DW.ACCESS.private |
| 2280 | | else if (parent_namespace_ptr.pub_decls.containsContext(nav_index, .{ .zcu = zcu })) |
| 2280 | else if (decl_extra.flags.is_pub) |
| 2281 | 2281 | DW.ACCESS.public |
| 2282 | | else if (parent_namespace_ptr.priv_decls.containsContext(nav_index, .{ .zcu = zcu })) |
| 2283 | | DW.ACCESS.private |
| 2284 | 2282 | else |
| 2285 | | unreachable, |
| 2283 | DW.ACCESS.private, |
| 2286 | 2284 | }, |
| 2287 | 2285 | }; |
| 2288 | 2286 | } else .{ zcu.fileRootType(inst_info.file), DW.ACCESS.private }; |
| ... | ... | @@ -2326,12 +2324,10 @@ pub fn initWipNav(dwarf: *Dwarf, pt: Zcu.PerThread, nav_index: InternPool.Nav.In |
| 2326 | 2324 | => DW.ACCESS.private, |
| 2327 | 2325 | _ => if (decl_extra.name.isNamedTest(file.zir)) |
| 2328 | 2326 | DW.ACCESS.private |
| 2329 | | else if (parent_namespace_ptr.pub_decls.containsContext(nav_index, .{ .zcu = zcu })) |
| 2327 | else if (decl_extra.flags.is_pub) |
| 2330 | 2328 | DW.ACCESS.public |
| 2331 | | else if (parent_namespace_ptr.priv_decls.containsContext(nav_index, .{ .zcu = zcu })) |
| 2332 | | DW.ACCESS.private |
| 2333 | 2329 | else |
| 2334 | | unreachable, |
| 2330 | DW.ACCESS.private, |
| 2335 | 2331 | }, |
| 2336 | 2332 | }; |
| 2337 | 2333 | } else .{ zcu.fileRootType(inst_info.file), DW.ACCESS.private }; |
| ... | ... | @@ -2373,12 +2369,10 @@ pub fn initWipNav(dwarf: *Dwarf, pt: Zcu.PerThread, nav_index: InternPool.Nav.In |
| 2373 | 2369 | => DW.ACCESS.private, |
| 2374 | 2370 | _ => if (decl_extra.name.isNamedTest(file.zir)) |
| 2375 | 2371 | DW.ACCESS.private |
| 2376 | | else if (parent_namespace_ptr.pub_decls.containsContext(nav_index, .{ .zcu = zcu })) |
| 2372 | else if (decl_extra.flags.is_pub) |
| 2377 | 2373 | DW.ACCESS.public |
| 2378 | | else if (parent_namespace_ptr.priv_decls.containsContext(nav_index, .{ .zcu = zcu })) |
| 2379 | | DW.ACCESS.private |
| 2380 | 2374 | else |
| 2381 | | unreachable, |
| 2375 | DW.ACCESS.private, |
| 2382 | 2376 | }, |
| 2383 | 2377 | }; |
| 2384 | 2378 | } else .{ zcu.fileRootType(inst_info.file), DW.ACCESS.private }; |
| ... | ... | @@ -2624,12 +2618,7 @@ pub fn updateComptimeNav(dwarf: *Dwarf, pt: Zcu.PerThread, nav_index: InternPool |
| 2624 | 2618 | const parent_namespace_ptr = ip.namespacePtr(ip.getCau(cau).namespace); |
| 2625 | 2619 | break :parent .{ |
| 2626 | 2620 | parent_namespace_ptr.owner_type, |
| 2627 | | if (parent_namespace_ptr.pub_decls.containsContext(nav_index, .{ .zcu = zcu })) |
| 2628 | | DW.ACCESS.public |
| 2629 | | else if (parent_namespace_ptr.priv_decls.containsContext(nav_index, .{ .zcu = zcu })) |
| 2630 | | DW.ACCESS.private |
| 2631 | | else |
| 2632 | | unreachable, |
| 2621 | if (decl_extra.data.flags.is_pub) DW.ACCESS.public else DW.ACCESS.private, |
| 2633 | 2622 | }; |
| 2634 | 2623 | } else .{ zcu.fileRootType(inst_info.file), DW.ACCESS.private }; |
| 2635 | 2624 | |