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
[Bug]: C#: named tuple element names are emitted as type references #3796
The element NAMES of a named tuple type are treated as type names.
Steps to reproduce
Repro — `Reader.cs`:
namespace Demo
{
public class Reader
{
public static (int mode, string label) Read() => (1, "a");
}
}
Error output or graph output
Actual:
reader_demo_reader_read --references--> mode (return_type)
reader_demo_reader_read --references--> label (return_type)
with `mode` and `label` minted as location-less placeholder nodes.
Expected: no references for `mode` / `label` (they are element names; the element TYPES are
`int` and `string`). In tree-sitter-c-sharp the tuple element is a `tuple_element` with `type` and
`name` fields; only the `type` field should feed type-reference collection.
Impact: one 5-element tuple return in our codebase produced five junk "type" nodes, repeated in
every file that declares such a signature.
Graphify version
No response
Environment
graphify 0.9.67 (pip graphifyy), Python 3.13.1, Windows 10 (10.0.19045)
Activity
test(csharp): verify user-defined tuple element types stay referenced (…
fix(csharp): don't collect tuple element names as type references (#3796
test(csharp): verify user-defined tuple element types stay referenced (…
safishamsi commentedon Sep 27, 2026
Fixed in v0.9.70 (now on PyPI) by #3877 — thanks @KaiyiQuan.
Release: https://github.com/Graphify-Labs/graphify/releases/tag/v0.9.70