Commit 78e9c9a
feat(selfhost): checker step-2 milestone 2b — RS0002/RS0003 signature explicitness
check.rss now reproduces MISSING_RETURN_TYPE (RS0002) and MISSING_PARAMETER_TYPE
(RS0003), extending CHECKER_TARGET_CODES to 6 codes. Token predicates mirror the
analyzer faithfully:
- RS0002: no top-level `->` after the param list (check_return_type_explicit).
- RS0003: a param whose first token is a non-effect ident not followed by `:`
(parse_params → empty ty.name); effect-first / non-ident segments are malformed
and yield no Param, so they don't trigger it.
checker_parity_corpus byte-exact over 619 files, 0 code-mismatches, 0
run-failures. Scope: top-level fn decls (the only corpus trigger,
fail/missing-signature-pieces.rss); protocol/native-block methods noted as an
extension point.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent 6d14b18 commit 78e9c9a
5 files changed
Lines changed: 321 additions & 7 deletions
File tree
- crates/rsscript/src
- docs
- ledgers
- planning
- selfhost
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
503 | 503 | | |
504 | 504 | | |
505 | 505 | | |
506 | | - | |
| 506 | + | |
507 | 507 | | |
508 | 508 | | |
509 | 509 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
967 | 967 | | |
968 | 968 | | |
969 | 969 | | |
970 | | - | |
971 | | - | |
972 | | - | |
973 | | - | |
974 | | - | |
| 970 | + | |
| 971 | + | |
| 972 | + | |
| 973 | + | |
| 974 | + | |
| 975 | + | |
| 976 | + | |
| 977 | + | |
| 978 | + | |
| 979 | + | |
| 980 | + | |
| 981 | + | |
| 982 | + | |
| 983 | + | |
| 984 | + | |
975 | 985 | | |
976 | 986 | | |
977 | 987 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
| |||
0 commit comments