GitNexus/docs/languages
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
..
c-ingestion-gaps.md docs: simplify guides and verify receiver gaps (#3694) 2026-10-23 09:06:03 +01:00
cobol-ingestion-gaps.md docs: simplify guides and verify receiver gaps (#3694) 2026-10-23 09:06:03 +01:00
cpp-ingestion-gaps.md docs: simplify guides and verify receiver gaps (#3694) 2026-10-23 09:06:03 +01:00
csharp-ingestion-gaps.md fix(csharp): capture array_type parameters to resolve indexElement calls (#4099) 2026-11-26 19:08:46 +00:00
dart-ingestion-gaps.md fix(ingestion): close resolver, import and benchmark review gaps (#3945) 2026-11-15 17:06:51 +00:00
go-ingestion-gaps.md docs: simplify guides and verify receiver gaps (#3694) 2026-10-23 09:06:03 +01:00
java-ingestion-gaps.md fix(java): match javac resolution and move fixtures into conformance (#4056) 2026-11-25 18:03:32 +00:00
javascript-ingestion-gaps.md docs: simplify guides and verify receiver gaps (#3694) 2026-10-23 09:06:03 +01:00
jupyter-notebook.md feat: index Jupyter notebooks as Python (#3381) 2026-09-27 05:54:37 +00:00
kotlin-ingestion-gaps.md docs: simplify guides and verify receiver gaps (#3694) 2026-10-23 09:06:03 +01:00
local-import-scoping.md fix(java): match javac resolution and move fixtures into conformance (#4056) 2026-11-25 18:03:32 +00:00
objective-c-ingestion-gaps.md docs: simplify guides and verify receiver gaps (#3694) 2026-10-23 09:06:03 +01:00
objective-c-provider.md feat(indexing): add Objective-C semantic indexing support (#3179) 2026-09-09 09:40:21 +00:00
php-ingestion-gaps.md fix(php): bind a PHPDoc @param to the declaring method, only for an unrebound formal (PHP-04) (#3877) 2026-11-12 19:36:52 +00:00
python-ingestion-gaps.md fix(python): find dependents of constants and passed functions (#3957) 2026-11-16 16:42:30 +00:00
r-ingestion-gaps.md feat(r): add R language support (#3513) 2026-11-19 17:16:27 +00:00
r-provider.md feat(r): add R language support (#3513) 2026-11-19 17:16:27 +00:00
README.md feat(r): add R language support (#3513) 2026-11-19 17:16:27 +00:00
receiver-resolution-audit.md fix(csharp): capture array_type parameters to resolve indexElement calls (#4099) 2026-11-26 19:08:46 +00:00
ruby-ingestion-gaps.md fix(ingestion): close resolver, import and benchmark review gaps (#3945) 2026-11-15 17:06:51 +00:00
rust-ingestion-gaps.md docs: simplify guides and verify receiver gaps (#3694) 2026-10-23 09:06:03 +01:00
swift-ingestion-gaps.md docs: simplify guides and verify receiver gaps (#3694) 2026-10-23 09:06:03 +01:00
typescript-ingestion-gaps.md docs: simplify guides and verify receiver gaps (#3694) 2026-10-23 09:06:03 +01:00
vue-ingestion-gaps.md docs: simplify guides and verify receiver gaps (#3694) 2026-10-23 09:06:03 +01:00
zig-ingestion-gaps.md docs: simplify guides and verify receiver gaps (#3694) 2026-10-23 09:06:03 +01:00

Language Ingestion Gap Inventories

These inventories are the starting point for language-specific plans. There is one <language>-ingestion-gaps.md file for each of the 19 languages in SCOPE_RESOLVERS. Names match provider directories; jvm is shared infrastructure, not another language.

Freshly audited on 2026-10-23 with production sources at c35806d24 and the accompanying benchmark changes. The measurement receipt records the commands, exact-target checks, newly executed exclusions and test limits. The baseline now covers 110 executable cases and 58 explicit N/A declarations. Parsing, imports, visibility, inheritance and incremental behavior still need separate evidence; these fixed receiver examples do not establish whole-language, CFG/PDG or rename completeness.

Inventories

Language First planning candidate
C Reproduce header ownership separately from pointer dispatch.
COBOL Measure procedure-pointer and structural-call paths separately.
C++ Substitute explicit template arguments into proven return types.
C# Trace typed array receivers and qualified nullable fields.
Dart Correct awaited-call ownership; trace indexed and generic receivers.
Go Expand ownership coverage beyond the passing receiver matrix.
Java Trace nested indexing of a User[][] parameter (JAVA-03).
JavaScript Preserve JSDoc container evidence for indexed receivers.
Kotlin Inventory companion and inherited-receiver limits.
Objective-C Add receiver measurements without weakening dynamic-dispatch boundaries.
PHP Retain PHPDoc container types and establish namespace owners.
Python Audit constructor-field and module ownership coverage.
R Type receivers beyond same-function constructors; revisit R-02 and R-12.
Ruby Isolated by #3871 (RUBY-01); add recall behind that guard.
Rust Measure conservative smart-pointer limits before widening them.
Swift Type indexed receivers, then revalidate historical reports.
TypeScript Revalidate deferred narrowing contracts.
Vue Type indexed receivers in SFC script blocks.
Zig Add matrix coverage for the delivered receiver forms.

Reading the evidence

Label Meaning
Measured gap A checked-in receiver cell lacks its call edge. Reproduce on the chosen base before fixing it.
Recorded gap / boundary The baseline notes, source contract or dedicated tests describe a limitation; it may be outside the shape matrix.
Negative control / deliberate limit An unresolved result protects precision. Do not make it resolve without new evidence of the exact target.
Coverage gap / audit A measurement is absent or coverage needs inventory. This does not establish a product bug.
Historical reports Older claims still need current positive and negative reproductions.

The receiver harness has separate states:

  • RESOLVES: the terminal call reaches its full expected declaration ID, with no same-named edge to a different owner. This proves only the supplied fixture.
  • WRONG-TARGET: at least one same-named call reaches another declaration, including any guessed edge from an untyped control.
  • VISIBLE-GAP: no matching edge, with a recorded receiver-unresolved drop. Some cells intentionally represent untyped negative controls.
  • INVISIBLE-GAP: neither the edge nor a counted receiver drop is recorded; drop counts cannot reveal this loss. An informational note from the shared receiver pass is not in any drop count, so consumers that derive impact bounds from counted unresolved receivers do not see it.
  • N/A: the harness declares this spelling inapplicable to its measurement. Read its reason before interpreting language support.
  • GRAMMAR-UNAVAILABLE: the parser did not load. No behavior was measured; this is not a product-gap verdict.

An all-N/A row (C or COBOL) does not mean complete ingestion. Vue now has an executable SFC row. Zig, Objective-C and R have dedicated tests but no row in this shape arm (R: the receiver corpus linked from its inventory). A fully resolving row also proves only its fixed examples. The baseline's count arm includes external and unknown receivers, so total drops are not an actionable bug count.

Turning an inventory into a plan

  1. Select a stable gap ID and pin the implementation base. Record a minimal source example, expected full target identity, observed edge/drop and relevant tests.
  2. Add a meaningful negative: a same-name decoy, unknown type, shadowed import or ambiguous owner. Keep intentional untyped controls unresolved.
  3. Locate the missing fact: parsing/capture, type extraction, declaration ownership, import binding, receiver folding or dispatch. Keep language rules in providers and shared resolution algorithms language-agnostic.
  4. Write the plan under docs/plans/, linking back to the gap ID. Define the smallest contract change, affected tests and corpus/benchmark comparisons. Follow the repository's impact-analysis and pre-commit change-analysis requirements.
  5. Run focused regressions and the receiver check before updating expectations. The harness documents build and cache requirements. Record grammar skips and measurement limits explicitly.
  6. Update the inventory with the merged PR, verified source revision and evidence. Close the specific item without marking the whole language complete.

Keep historical reports separate from measured gaps. When adding a registered language, add its inventory here; when refreshing a snapshot, update its source pin and explain intended baseline changes. Do not copy old green results as fresh runs.