Skip to content

[Bug]: C#: constructors are not nodes, so new X(), this(...) and base(...) never reach the overload they call #5053

Open

Description

@rohit-jsfreaky

Pre-flight checks

  • I have checked the Troubleshooting section in the README

What happened?

C# constructors are not nodes. So:

On Newtonsoft.Json, Dapper and AutoMapper, compared with what Roslyn resolves, the ctor kind is 474 of 710, and 0 of the 130 base(...) / this(...) initializer calls are linked.

Steps to reproduce

Repo.cs

namespace Demo {
    public class Base { public Base(int a) { } public Base(string a, int b) { } }
    public class Repo : Base {
        public Repo() : this(1, 2) { }
        public Repo(int a, int b) : base("s", a) { Log(); }
        void Log() { }
    }
}

User.cs

namespace Demo { public class User { public void Go() { var r = new Repo(1, 2); } } }

graphify update .

Error output or graph output

.Go() -> Repo
Repo  -> .Log()

Expected:

.Go()          -> Repo(int, int)
Repo()         -> Repo(int, int)     (this(...))
Repo(int, int) -> Base(string, int)  (base(...))
Repo(int, int) -> .Log()

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