refactor(ffi-linkage): Phase 9.2a — rename runtime-class TYPE names → Runtime* (Decision 5)
Mechanical, collision-free PascalCase renames (object-model axis, not linkage): ForeignClassDecl→RuntimeClassDecl, ForeignMethodDecl→RuntimeMethodDecl, ForeignClassMember→RuntimeClassMember, ForeignFieldDecl→RuntimeFieldDecl, ForeignRuntime→RuntimeKind, ForeignClassPrefix→RuntimeClassPrefix. Snapshot-neutral; suite green (646/444). Remaining 9.2: snake_case state (foreign_class_map, current_foreign_class, foreign_path [coupled to .sx hooks], the foreign_class_decl union variant) + the parse/lower/resolve fn names + ForeignClassDecl.is_foreign flag.
This commit is contained in:
@@ -187,7 +187,7 @@ test "deriveMethod respects #jni_method_descriptor override verbatim" {
|
||||
const self_ptr = try makePointer(aa, self_te);
|
||||
const ret = try makeTypeExpr(aa, "i32");
|
||||
|
||||
const method: ast.ForeignMethodDecl = .{
|
||||
const method: ast.RuntimeMethodDecl = .{
|
||||
.name = "weirdMethod",
|
||||
.params = &.{self_ptr},
|
||||
.param_names = &.{"self"},
|
||||
@@ -214,7 +214,7 @@ test "deriveMethod override bypasses unresolvable cross-class refs" {
|
||||
const unknown = try makeTypeExpr(aa, "UnknownClass");
|
||||
const unknown_ptr = try makePointer(aa, unknown);
|
||||
|
||||
const method: ast.ForeignMethodDecl = .{
|
||||
const method: ast.RuntimeMethodDecl = .{
|
||||
.name = "weirdMethod",
|
||||
.params = &.{self_ptr},
|
||||
.param_names = &.{"self"},
|
||||
@@ -245,7 +245,7 @@ test "deriveMethod chains *Foo returns and params" {
|
||||
const view_te = try makeTypeExpr(aa, "View");
|
||||
const view_ptr = try makePointer(aa, view_te);
|
||||
|
||||
const method: ast.ForeignMethodDecl = .{
|
||||
const method: ast.RuntimeMethodDecl = .{
|
||||
.name = "getDecorView",
|
||||
.params = &.{self_ptr},
|
||||
.param_names = &.{"self"},
|
||||
@@ -271,7 +271,7 @@ test "deriveMethod skips implicit self for instance methods" {
|
||||
const self_ptr = try makePointer(aa, self_te);
|
||||
const ret = try makeTypeExpr(aa, "i32");
|
||||
|
||||
const method: ast.ForeignMethodDecl = .{
|
||||
const method: ast.RuntimeMethodDecl = .{
|
||||
.name = "getId",
|
||||
.params = &.{self_ptr},
|
||||
.param_names = &.{"self"},
|
||||
@@ -293,7 +293,7 @@ test "deriveMethod for static method emits all params" {
|
||||
const n_ty = try makeTypeExpr(aa, "i32");
|
||||
const ret = try makeTypeExpr(aa, "i32");
|
||||
|
||||
const method: ast.ForeignMethodDecl = .{
|
||||
const method: ast.RuntimeMethodDecl = .{
|
||||
.name = "abs",
|
||||
.params = &.{n_ty},
|
||||
.param_names = &.{"n"},
|
||||
@@ -316,7 +316,7 @@ test "deriveMethod with multiple primitive params and void return" {
|
||||
const self_ptr = try makePointer(aa, self_te);
|
||||
const s = try makeTypeExpr(aa, "i32");
|
||||
|
||||
const method: ast.ForeignMethodDecl = .{
|
||||
const method: ast.RuntimeMethodDecl = .{
|
||||
.name = "setBounds",
|
||||
.params = &.{ self_ptr, s, s, s, s },
|
||||
.param_names = &.{ "self", "x", "y", "w", "h" },
|
||||
@@ -341,7 +341,7 @@ test "deriveMethod with slice param" {
|
||||
const src_slice = try makeSlice(aa, i8_te);
|
||||
const ret = try makeTypeExpr(aa, "i32");
|
||||
|
||||
const method: ast.ForeignMethodDecl = .{
|
||||
const method: ast.RuntimeMethodDecl = .{
|
||||
.name = "copy",
|
||||
.params = &.{ self_ptr, src_slice },
|
||||
.param_names = &.{ "self", "src" },
|
||||
|
||||
Reference in New Issue
Block a user