{"action":"created","issue":{"url":"https://api.github.com/repos/dotnet/roslyn/issues/11049","repository_url":"https://api.github.com/repos/dotnet/roslyn","labels_url":"https://api.github.com/repos/dotnet/roslyn/issues/11049/labels{/name}","comments_url":"https://api.github.com/repos/dotnet/roslyn/issues/11049/comments","events_url":"https://api.github.com/repos/dotnet/roslyn/issues/11049/events","html_url":"https://github.com/dotnet/roslyn/issues/11049","id":152938599,"number":11049,"title":"Find All References on a constructor, only finds explicit callers via : base()","user":{"login":"davkean","id":1103906,"avatar_url":"https://avatars.githubusercontent.com/u/1103906?v=3","gravatar_id":"","url":"https://api.github.com/users/davkean","html_url":"https://github.com/davkean","followers_url":"https://api.github.com/users/davkean/followers","following_url":"https://api.github.com/users/davkean/following{/other_user}","gists_url":"https://api.github.com/users/davkean/gists{/gist_id}","starred_url":"https://api.github.com/users/davkean/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davkean/subscriptions","organizations_url":"https://api.github.com/users/davkean/orgs","repos_url":"https://api.github.com/users/davkean/repos","events_url":"https://api.github.com/users/davkean/events{/privacy}","received_events_url":"https://api.github.com/users/davkean/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-05-04T06:22:39Z","updated_at":"2016-05-04T07:07:06Z","closed_at":null,"body":"1.\r\n\r\n``` C#\r\ninternal abstract class Abstract\r\n{\r\n    protected Abstract()\r\n    {\r\n    }\r\n}\r\n\r\ninternal abstract class Derived\r\n{\r\n    protected Derived()\r\n    {\r\n    }\r\n}\r\n```\r\n\r\nFind all references on Abstract's constructor.\r\n\r\nExpected: To find a usage from Derived()\r\nActual: No usages\r\n\r\n``` C#\r\ninternal abstract class Abstract\r\n{\r\n    protected Abstract()\r\n    {\r\n    }\r\n}\r\n\r\ninternal abstract class Derived\r\n{\r\n    protected Derived() : base()\r\n    {\r\n    }\r\n}\r\n```\r\n\r\nFind all references on Abstract's constructor.\r\n\r\nAs expected find expected usage from base() call."},"comment":{"url":"https://api.github.com/repos/dotnet/roslyn/issues/comments/216762412","html_url":"https://github.com/dotnet/roslyn/issues/11049#issuecomment-216762412","issue_url":"https://api.github.com/repos/dotnet/roslyn/issues/11049","id":216762412,"user":{"login":"CyrusNajmabadi","id":4564579,"avatar_url":"https://avatars.githubusercontent.com/u/4564579?v=3","gravatar_id":"","url":"https://api.github.com/users/CyrusNajmabadi","html_url":"https://github.com/CyrusNajmabadi","followers_url":"https://api.github.com/users/CyrusNajmabadi/followers","following_url":"https://api.github.com/users/CyrusNajmabadi/following{/other_user}","gists_url":"https://api.github.com/users/CyrusNajmabadi/gists{/gist_id}","starred_url":"https://api.github.com/users/CyrusNajmabadi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CyrusNajmabadi/subscriptions","organizations_url":"https://api.github.com/users/CyrusNajmabadi/orgs","repos_url":"https://api.github.com/users/CyrusNajmabadi/repos","events_url":"https://api.github.com/users/CyrusNajmabadi/events{/privacy}","received_events_url":"https://api.github.com/users/CyrusNajmabadi/received_events","type":"User","site_admin":false},"created_at":"2016-05-04T07:07:06Z","updated_at":"2016-05-04T07:07:06Z","body":"And, to be clear, the algorithm for this is:\r\n\r\nIf you're searching for a constructor, search immediately derived types and check all their constructors.  Now, we're lacking a good compiler API for asking what constructor a derived constructor chains to (in the absence of this/base).  We can write some reasonable heuristics, or we can get the compiler to expose this information."}}