refactor(ffi-linkage): Phase 9.2c — rename extern-ref validators → Extern (linkage)

checkForeignRefs→checkExternRefs, validateForeignRefs→validateExternRefs,
collectForeignRefTargets→collectExternRefTargets — these police 'extern LIB' library
references (linkage axis), so Extern not Runtime. Snapshot-neutral; suite green.
This commit is contained in:
agra
2026-06-15 09:03:35 +03:00
parent 5c8af6eb73
commit d27be42a93
2 changed files with 8 additions and 8 deletions

View File

@@ -302,7 +302,7 @@ pub const Compilation = struct {
// Every `#foreign <ref>` must name a #library constant or a named
// `#import c` unit — a typo'd ref otherwise resolves silently
// through whatever image happens to carry the symbol.
try c_import.validateForeignRefs(self.allocator, root, &self.diagnostics);
try c_import.validateExternRefs(self.allocator, root, &self.diagnostics);
if (self.diagnostics.hasErrors()) return error.CompileError;
var module = ir.Module.init(self.allocator);