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.
21 lines
658 B
Plaintext
21 lines
658 B
Plaintext
// Phase 2 step 2.2 (PLAN-FFI.md): xfail then green for the instance
|
|
// method body item inside a `#jni_class` declaration.
|
|
//
|
|
// `name :: (self: *Self, args...) -> Ret;` is the shape — semicolon
|
|
// terminated (extern declaration, no body). The 2.1 parser only
|
|
// accepts an empty body; step 2.2 extends `parseJniClassDecl` to
|
|
// loop over body items and collect method declarations.
|
|
|
|
#import "modules/std.sx";
|
|
|
|
// `Self` here refers to the enclosing `View` type — resolved at
|
|
// 2.x sema, not at parse time.
|
|
View :: #jni_class("android/view/View") extern {
|
|
getId :: (self: *Self) -> i32;
|
|
}
|
|
|
|
main :: () -> i32 {
|
|
print("parse-only ok\n");
|
|
0
|
|
}
|