You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Unused parameter warning: get_first_call_arg's source in extractors/javascript.rs #1867
While rebuilding the native crate for an unrelated change (issue #1753), `cargo build --lib` emits:
```
warning: unused variable: `source`
--> crates/codegraph-core/src/extractors/javascript.rs:2499:48
|
2499 | fn get_first_call_arg<'a>(call_node: &'a Node, source: &[u8]) -> Option<Node<'a>> {
| ^^^^^^ help: if this is intentional, prefix it with an underscore: `_source`
```
This is pre-existing (unrelated to #1753's points-to solver config threading) — introduced by commit 3e8035d ("fix: gate Array.from's callback arg by position, not just callee name"). Low priority: either the `source` parameter should be prefixed with `_` if intentionally unused, or removed from the signature (and all call sites) if truly dead.
Duplicate of #1817 — same get_first_call_arg unused source parameter warning in crates/codegraph-core/src/extractors/javascript.rs, just re-discovered independently at a shifted line number. The fix already exists as commit c0e7eae8 ("fix(native): remove unused source param from get_first_call_arg") on branch fix/issue-1817-unused-source-param-on-get-first-call-arg-in, open as PR #1960. Verified directly: the function signature in the current stacked-branch tree already has no source parameter, and a dedicated test block covers all three call sites. No further work needed here — closing as duplicate once #1960 merges.
PR #1960 (fix(native): remove unused source param from get_first_call_arg) merged on 2026-07-09, closing the duplicate #1817 this issue was tracking. Verified against current main: get_first_call_arg in crates/codegraph-core/src/extractors/javascript.rs no longer takes a source parameter. Closing as duplicate/already resolved — no further work needed.
Activity
carlos-alm commentedon Jul 8, 2026
Duplicate of #1817 — same
get_first_call_argunusedsourceparameter warning incrates/codegraph-core/src/extractors/javascript.rs, just re-discovered independently at a shifted line number. The fix already exists as commitc0e7eae8("fix(native): remove unused source param from get_first_call_arg") on branchfix/issue-1817-unused-source-param-on-get-first-call-arg-in, open as PR #1960. Verified directly: the function signature in the current stacked-branch tree already has nosourceparameter, and a dedicated test block covers all three call sites. No further work needed here — closing as duplicate once #1960 merges.carlos-alm commentedon Jul 30, 2026
PR #1960 (fix(native): remove unused source param from get_first_call_arg) merged on 2026-07-09, closing the duplicate #1817 this issue was tracking. Verified against current
main:get_first_call_argincrates/codegraph-core/src/extractors/javascript.rsno longer takes asourceparameter. Closing as duplicate/already resolved — no further work needed.fix(ci): add non-blocking reminder for non-closing issue references i…