Skip to content

[Bug]: C#: calls inside getters, setters, indexers and operators produce no edge #5055

Open

Description

@rohit-jsfreaky

Pre-flight checks

  • I have checked the Troubleshooting section in the README

What happened?

In C#, calls made inside a property getter or setter, an indexer (this[int i]), or an operator (operator +, explicit operator int) produce no edge. Indexers and operators get no node, and the accessor bodies are never walked for calls.

On Newtonsoft.Json, Dapper and AutoMapper, Roslyn resolves 330 calls made from these members (144 from getters and setters, 186 from conversion operators). graphify links 0 of them.

Steps to reproduce

Money.cs

namespace Demo {
    public class Money {
        public static Money operator +(Money a, Money b) => Add(a, b);
        public static explicit operator int(Money m) => ToInt(m);
        public int this[int i] => Digit(i);
        public int Cents { get { return Load(); } }
        public int Twice() => 2;
        static Money Add(Money a, Money b) => a;
        static int ToInt(Money m) => 0;
        int Digit(int i) => i;
        int Load() => 0;
    }
}

Wallet.cs

namespace Demo { public class Wallet : Money { public int Sum => base.Twice(); } }

graphify update .

Error output or graph output

No calls edges at all. Expected:

operator +   -> Add()
operator int -> ToInt()
this[]       -> Digit()
Cents        -> Load()
Sum          -> Twice()

Graphify version

0.9.103

Operating System

Windows

Python Version

3.12

Installation Method

uv tool install (recommended)

Activity

  1. github-actions commented on Nov 6, 2026

    @github-actions

    Thanks for opening this issue, @rohit-jsfreaky. A maintainer will take a look soon.

    If you would like to discuss it in real time, come say hi on our Discord server. For longer-form questions and ideas there is also GitHub Discussions.

    To help us triage, please make sure the report includes what you expected, what actually happened, and the steps (and a small sample) to reproduce it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions