src/: ~21 capital-Foreign comments the case-sensitive verify grep missed (Foreign-class→Runtime-class, Foreign path→Runtime path, Foreign decls→Extern decls, FOREIGN function→extern function) across calls/inst/ffi_objc/jni_descriptor/emit_llvm/ c_import/lower.*/ops. src 'foreign' now = ONLY the hash_foreign token + 4 rejection messages (9.0-delete targets). examples/*.sx comments → extern/runtime-class (1219 stdout regen; KEPT 1176). docs/inline-asm-design + debugger purged. Comments only — no build impact. 9.0 ratified: DELETE hash_foreign token next.
26 lines
863 B
Plaintext
26 lines
863 B
Plaintext
// Phase 2 step 2.4 (PLAN-FFI.md): xfail then green for the `#extends`
|
|
// and `#implements` body items inside a `#jni_class` declaration.
|
|
//
|
|
// `#extends Alias;` declares a single-inheritance superclass reference
|
|
// using the sx-side alias name (not the runtime Java path — that lives
|
|
// in the alias's own `#jni_class(...)` directive arg). `#implements
|
|
// Alias;` is repeatable and records interface conformance.
|
|
//
|
|
// Step 2.4 introduces `hash_extends` and `hash_implements` tokens and
|
|
// refactors `JniClassDecl.methods` into a `members` tagged union that
|
|
// holds method/extends/implements variants.
|
|
|
|
#import "modules/std.sx";
|
|
|
|
View :: #jni_class("android/view/View") extern { }
|
|
|
|
Window :: #jni_class("android/view/Window") extern {
|
|
#extends View;
|
|
getDecorView :: (self: *Self) -> *View;
|
|
}
|
|
|
|
main :: () -> i32 {
|
|
print("parse-only ok\n");
|
|
0
|
|
}
|