GitNexus/docs
Rubén Molina 154b0b5ffe
fix(csharp): capture array_type parameters to resolve indexElement calls (#4099)
* test(csharp): expect array-typed parameter element calls to resolve (#4098)

repos[0].Save() and repos?[0].Save() on a User[] parameter should reach
User.Save. Fails until the C# query captures array_type parameters.

* fix(csharp): capture array_type parameters to resolve indexElement calls

C# parameters typed T[] emitted no @type-binding.parameter capture, so
repos[0].Save() on a User[] parameter was dropped as an unresolved
receiver. Add an (array_type) parameter pattern; the existing
elementTypeOf index route already peels User[] to User.

- Golden: two new capture groups, both Main(string[] args).
- Receiver-resolution baseline: csharp.indexElement VISIBLE-GAP ->
  RESOLVES; count arm unchanged.

Closes #4098

* fix(csharp): bind array parameters only for scoped owners and plain elements

Review follow-up for #4099.

- Restrict the array_type parameter pattern to method, constructor,
  local-function, operator and conversion-operator parameter lists, and
  to identifier or predefined-type elements. Generic elements
  (Box<User>[], Cell<User>[,]) produced wrong-owner CALLS edges, and
  delegate/indexer/anonymous-method/lambda parameters leaked their
  binding to same-named receivers in other files.
- Add csharp-array-parameter-binding.test.ts: exact User.Save against a
  same-named Repo field decoy, plus no-target rows for the direct array
  call, jagged and rank arrays, generic elements, and the delegate leak
  through params and lambda parameters.
- Re-baseline bench/scope-capture csharp: 3720a3d2 (2899 groups) ->
  38c6dc76 (2901 groups), the two Main(string[] args) parameters. Base
  control at 50228e1 reproduces the prior value.
- Docs: flip indexElement in csharp-ingestion-gaps.md, mark CSHARP-01
  resolved with the remaining shapes, add the C# move to the audit and
  BASELINE.md.

* test(csharp): document why params arrays stay unbound in CSHARP-01 rows

params T[] has no parameter node in tree-sitter-c-sharp, so the array
pattern cannot match it; say so in the test contract. Also describe the
decoy member names accurately.

---------

Co-authored-by: Molinadev30 <187445262+Molinadev30@users.noreply.github.com>
2026-11-26 19:08:46 +00:00
..
languages fix(csharp): capture array_type parameters to resolve indexElement calls (#4099) 2026-11-26 19:08:46 +00:00
optimize fix(analyze): enforce parser-worker heap caps and stop charging workers the main heap (#4045) 2026-11-24 20:25:03 +00:00
plans feat: add the test scenario map and a Vitest 5 mutation runner (#3686) 2026-10-27 16:46:58 +00:00
solutions/performance-issues perf(core): speed up HTTP embedding resume by reusing verified file hashes (#4040) 2026-11-23 08:47:27 +00:00
cli-reference.md fix(analyze): enforce parser-worker heap caps and stop charging workers the main heap (#4045) 2026-11-24 20:25:03 +00:00
deployment.md feat(web): resolve a root-relative GITNEXUS_BACKEND_URL against the page origin (#3640) 2026-10-24 08:45:24 +01:00
editor-setup.md fix(hooks): read a shell search past npx, sudo and git grep (#4024) 2026-11-20 15:17:47 +00:00
mcp-reference.md fix(mcp): avoid Git scans and repeated metadata parsing during discovery (#4000) 2026-11-19 10:34:02 +00:00
wiki-generation.md fix(sonar): repair the main-branch scan (#4076) 2026-11-25 08:40:15 +00:00