Repository navigation
Call-graph reference: JavaScript via tsc allowJs (Part of #3781) - #6392
Merged
Merged
Conversation
…3781) ts_callgraph.js gains a --js mode (.js/.cjs/.mjs, allowJs) that resolves CommonJS assignment declarations (exports.f = function, module.exports = function); a javascript entry in callgraph_refs.REFERENCES, its baseline, a fixture test and docs. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Owner
Author
|
No description provided. |
squid-protocol
marked this pull request as ready for review
October 24, 2026 07:00
squid-protocol
enabled auto-merge (squash)
October 24, 2026 07:02
Owner
Author
|
Waiting on an owner decision (asked privately, 2026-10-24). Nothing is needed from contributors; work resumes once it is answered. |
squid-protocol
added a commit
that referenced
this pull request
Oct 24, 2026
…dit (Part of #3781) (#6468) Adds the call-javascript gate to lane 1 (after call-typescript, same tsc), the baseline to paths:, and re-measures the baseline: engine changes since #6392 moved it (judged 16 -> 414, recall 55.2 -> 77.8, precision 100 -> 99.3), so the committed numbers would have failed the first CI run. Co-authored-by: Claude Sonnet 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of #3781 (epic #3772). Adds the JavaScript call-graph reference: the TypeScript checker with
allowJs(ts_callgraph.js --js) overexpressjs/express, already pinned intests/import_graph_corpus.json.Class / Sibling gaps
Class: onboarding a CommonJS/untyped reference whose declaration shapes (
exports.f = function,module.exports = function,x.prototype.m = function,.cjs/.mjs) must be named as the engine names them. All handled by onefunctionOfextension and one registry entry. Sibling gaps: the CI wiring (graph-accuracy-audit.ymlgate step andpaths:for the new baseline) needsallow_workflows, so it is a remaining slice; Go/Java/C++/Rust (#3782-#3785) use other mechanisms; JSX/Flow-typed JS is untested.First numbers (vs tsc (allowJs) 6.0.2, express)
unconfirmed)resolved_outside, e.g.this.set(...),this.route(...); 1 same-name)The untyped checker resolves few edges (29 in 341 defs):
this.x()and calls on untyped parameters get none. That is the reference's blind spot, reported asunconfirmed, not engine error. Not yet hand-checked against source beyond the triage samples; no issues filed.Verification
callgraph_check.py: java, javascript, typescript gates and 356 tests PASS, lint PASS; pyan3, crucible and tree-sitter steps could not run here (pyan3 not installed, language-crucible not found in this worktree's sibling path). No engine code changed.call_graph_resolution.py typescript --ciOK (TS mode output unchanged by construction; its committed baseline lags main).pr_gates.py --fast: 7/7.Remaining slices
.github/workflows/graph-accuracy-audit.ymlgate step + baseline inpaths:(needsallow_workflows);docs/function_call_graph.mdnumbers; triage of the 12resolved_outsidelinks against source.🤖 Generated with Claude Code