refactor(ffi-linkage): Phase 9.2b — rename runtime-class fns + state → runtime_* / is_reference
The runtime-class object-model identifiers (Decision 5): parse/lower/find/resolve/ register/stamp fns Foreign→Runtime (parseRuntimeClassDecl, lowerRuntimeMethodCall, findRuntimeMethodInChain, resolveRuntimeMethodReturnType, registerRuntimeClassDecl, runtimeClassStructType, runtimeKindForOffset, …); state foreign_class_map→ runtime_class_map, current_foreign_class/_method→current_runtime_*, the foreign_class_decl union variant→runtime_class_decl, foreign_method/static/instance/ class→runtime_*; and the reference-vs-define flag is_foreign→is_reference (+ is_foreign_eff→is_reference_eff) now that it only lives on RuntimeClassDecl. Snapshot-neutral; suite green (646/444). Remaining 9.2: the foreign_path family (coupled .sx hooks: jni_main_foreign_path_at spans build.sx/bundle.sx/compiler_hooks.zig/specs.md) + the extern-ref validators (checkForeignRefs etc. → Extern, linkage not runtime) + bare 'foreign' comments.
This commit is contained in:
@@ -211,7 +211,7 @@ pub const UnknownTypeChecker = struct {
|
||||
}
|
||||
}
|
||||
},
|
||||
.foreign_class_decl => |fcd| {
|
||||
.runtime_class_decl => |fcd| {
|
||||
// The sx-side alias (left of `::`) is a user-chosen name, so a
|
||||
// reserved spelling is rejected like any other type decl (0089).
|
||||
self.checkDeclName(node, fcd.name, fcd.is_raw);
|
||||
@@ -394,7 +394,7 @@ pub const UnknownTypeChecker = struct {
|
||||
else => {},
|
||||
}
|
||||
}
|
||||
var it_fc = self.index.foreign_class_map.keyIterator();
|
||||
var it_fc = self.index.runtime_class_map.keyIterator();
|
||||
while (it_fc.next()) |k| out.put(k.*, {}) catch {};
|
||||
var it_tmpl = self.index.struct_template_map.keyIterator();
|
||||
while (it_tmpl.next()) |k| out.put(k.*, {}) catch {};
|
||||
|
||||
Reference in New Issue
Block a user