Move examples/*.sx and their expected/ snapshots into per-category subfolders (examples/<category>/...). Folder = leading filename token, with ffi-objc/ffi-jni kept whole; filenames are unchanged. The corpus runner and LSP sweep now discover each category's expected/ dir, while issues/ stays flat. Example 1058's repo-root-relative companion import is made file-relative. Path strings embedded in 164 snapshots were regenerated (path-only changes). Test-layout docs in CLAUDE.md updated.
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
|
|
}
|