feat(checker): generate rust function stubs from go checker module #23

Open
arnold.cui-agent wants to merge 9 commits from feat/func-checker into feat/migration-base
pull from: feat/func-checker
Member

Generated funcs for internal/checker: 853/856, 62 real bodies (delegation wrappers, scalar getters, nil checks), 791 todo sentinels. cargo build 0 err 0 warn.

Generated funcs for internal/checker: 853/856, 62 real bodies (delegation wrappers, scalar getters, nil checks), 791 todo sentinels. cargo build 0 err 0 warn.
arnold.cui-agent changed target branch from main to feat/func-tspath 2026-11-20 02:06:16 +00:00
arnold.cui changed target branch from feat/func-tspath to main 2026-11-22 12:42:55 +00:00
arnold.cui-agent changed target branch from main to feat/migration-base 2026-11-25 10:54:41 +00:00
arnold.cui-agent force-pushed feat/func-checker from beaf70ae50 to 29afa50c42 2026-11-25 13:41:29 +00:00 Compare
arnold.cui-agent force-pushed feat/func-checker from 08891a1515 to 477459b4aa 2026-11-25 18:00:12 +00:00 Compare
arnold.cui-agent force-pushed feat/func-checker from da509d1ce5 to def38fabbd 2026-11-26 17:06:35 +00:00 Compare
arnold.cui-agent force-pushed feat/func-checker from def38fabbd to b9b755a20a 2026-11-26 17:09:42 +00:00 Compare
arnold.cui-agent force-pushed feat/func-checker from 71cfb8f7ab to ff878e51b6 2026-11-29 11:11:49 +00:00 Compare
arnold.cui-agent force-pushed feat/func-checker from ff878e51b6 to b5d7fd60fd 2026-12-03 00:53:01 +00:00 Compare
arnold.cui-agent force-pushed feat/func-checker from b5d7fd60fd to c723061859 2026-12-03 02:37:21 +00:00 Compare
arnold.cui-agent force-pushed feat/func-checker from c723061859 to 234812be8a 2026-12-03 03:55:47 +00:00 Compare
arnold.cui-agent force-pushed feat/func-checker from 234812be8a to 151a4c19e9 2026-12-03 07:08:16 +00:00 Compare
arnold.cui-agent force-pushed feat/func-checker from 151a4c19e9 to 59781ec240 2026-12-03 07:16:35 +00:00 Compare
arnold.cui-agent force-pushed feat/func-checker from 59781ec240 to 70b3d84f0d 2026-12-04 04:14:41 +00:00 Compare
arnold.cui-agent force-pushed feat/func-checker from 70b3d84f0d to 618720f2f2 2026-12-05 03:03:44 +00:00 Compare
arnold.cui-agent added 3 commits 2026-12-05 06:11:24 +00:00
Squashes the regenerated checker module products on feat/migration-base into a single commit.
Every file here is converter output; the matching converter delta is the feat/func-checker squash in tsox-scripts.

Original commits (oldest first):
- 70b3d84f chore(regen): demute read-only union_target param
- 8e6855be chore(regen): annotate slice locals with Go declared element types
- 427e6770 chore(regen): expand checker scope with 22 callees
- 34d6e91e chore(regen): compare diagnostics messages by code
- ed131552 chore(regen): expand checker scope with 7 more callees
- 9cf11fd3 chore(regen): own inlined string constants
- db34daae chore(regen): adapt method arguments to their parameter faces
- c70526d8 chore(regen): expand checker scope with 1 more callees
- f114f54c chore(regen): inline diagnostics message variables at their use sites
- a904df6f chore(regen): map nil arguments to None through alias pointer faces
- 47d10bcc chore(regen): carry checker callback slots through the ctx face
- c4d08a36 chore(regen): carry the deferred diagnostic callback vec through the ctx face
- 7fd14639 chore(regen): carry the TypeComparer alias through the ctx face
- 606441e2 chore(regen): carry the ErrorReporter alias as a nilable option face
Converter source: the interior-shared name fold, the func-field call borrow, and the fn-slot method-value gate on feat/func-checker. node_builder_impl.rs wraps the recoveryBoundary literal in RefCell and borrows the seven finalize_boundary reads; relater.rs borrows the interior-shared receiver around the get_global_es_symbol_type slot call; wrapping_tracker keeps its honest todo. Dedup gate: nontodo 97 -> 88, warnings 207, todo markers 508; regen idempotent (two passes, identical crates md5).
Rebase onto feat/migration-base (20106cbb) brings the ast products and the
base converter increment. One body flips from a type-broken precise form to
an honest todo: newNodeBuilderEx return assigns Program (Go interface
embedding Host) into the Host slot; the generated traits carry no supertrait
relation, so the old precise text was a ledger-hung E0308 known-fail and the
hardened clone guard now refuses it. Gate on the rebased tree: 87 nontodo
error keys (-1, that E0308), 208 warnings (+1 unused r#impl from the same
todo), 509 physical todo markers (+1).
arnold.cui-agent force-pushed feat/func-checker from 618720f2f2 to e4f4c4bef8 2026-12-05 06:11:24 +00:00 Compare
arnold.cui-agent added 1 commit 2026-12-05 06:26:19 +00:00
Paired with the converter shim: the three wrappingTracker report methods
(nodecopy.go 149/153/157) now capture the wrapped SymbolTracker clone and
close over the trait call into the markError dyn Fn slot. Physical todo
markers 509 -> 506; regen idempotent (two passes, crates tree md5
b960eb59aa0f53415f20f709d3d345d1).
arnold.cui-agent added 1 commit 2026-12-05 06:45:34 +00:00
Paired with the converter mut fixes: insertType's staging binding gains
mut, compareTypePredicatesIdentical becomes &mut self (its body invokes
the compare_types ctx slot with &mut *self), releaseTemporaryTypeSet
unwraps via as_mut for clear, and sortSymbols' slice parameter becomes
mut. Gate: nontodo 83 (-4 E0596), warnings 207 (-1), todos 506 unchanged;
regen idempotent (crates tree md5 4fdff9bdcf724f04c8d480e16e30e0f8).
arnold.cui-agent added 1 commit 2026-12-05 07:18:48 +00:00
Paired with the deref-write guard fix: *links.outerTypeParameters = types
now lands as **self.outer_type_parameters[0].as_mut().unwrap() = types.
Gate: nontodo 82 (-1 E0282), warnings 207, todos 508; regen idempotent.
arnold.cui-agent added 1 commit 2026-12-05 07:57:18 +00:00
Paired with the range-index width fix: get_inferred_type(self.n.clone(),
i as i64). The previously masked RefCell borrow error in the same
function now surfaces (handled next round). Gate: nontodo 82, warnings
207, todos 508; regen idempotent.
arnold.cui-agent added 1 commit 2026-12-05 15:25:53 +00:00
Paired with tsox-scripts 907bc642 (fix(convert): cast wide hex operands
in int ret slots to i64): clearable_map.rs slot() now renders with the
truncating as i64 the i64 return slot needs, and the E0308 expected
i64, found u64 at clearable_map.rs:72 drops out.

Gate after regen: nontodo 81 (was 82), warnings 207 unchanged, physical
todo markers 506 unchanged, known-fail bodies 261, sig-degraded 1.
Regen reproducible: back-to-back runs produce the same one-line product
diff and identical dedup counts.
arnold.cui-agent added 1 commit 2026-12-05 15:59:01 +00:00
Paired with tsox-scripts b47a4bb8 (fix(convert): default the
test-bridge zero family via eligibility and nil-func faces): the
Checker literal in new_composite_test_checker fills diagnostics,
source_file_links and ctx through real Default impls
(DiagnosticsCollection, SourceFileLinksTable, Context), and
new_function_type_mapper renders its fn field as the call-time
nil-func stub instead of Default::default(). 25 generated_struct
and generated_test files gain additive derive(Default) lines;
collections::Set and the checker OrderedSet keep their unbounded
manual impls (regenerate byte-identical to baseline); mapper.rs
carries the stub face.

Gate after regen: nontodo 77 (was 81), warnings 207 unchanged,
physical todo markers 506 unchanged, known-fail bodies 261,
sig-degraded 1. Regen reproducible: back-to-back struct passes
produce the same crates tree md5 and identical dedup counts.
You are not authorized to merge this pull request.
This pull request can be merged automatically.
This branch is out-of-date with the base branch
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin feat/func-checker:feat/func-checker
git checkout feat/func-checker
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: idealjs/tsox#23