mirror of
https://github.com/abhigyanpatwari/GitNexus.git
synced 2026-11-27 22:38:50 +00:00
* 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
|
||
|---|---|---|
| .. | ||
| languages | ||
| optimize | ||
| plans | ||
| solutions/performance-issues | ||
| cli-reference.md | ||
| deployment.md | ||
| editor-setup.md | ||
| mcp-reference.md | ||
| wiki-generation.md | ||