{"action":"created","comment":{"url":"https://api.github.com/repos/dotnet/roslyn/pulls/comments/65752155","id":65752155,"diff_hunk":"@@ -76,22 +79,78 @@ protected override bool CanFind(IMethodSymbol symbol)\n                 {\n                     return true;\n                 }\n+                else if (methodSymbol.Parameters.IsDefaultOrEmpty\n+                    && syntaxFactsService.IsConstructorToken(t))\n+                {\n+                    var containingType = semanticModel.GetEnclosingNamedType(t.SpanStart, cancellationToken);\n+                    return containingType != null\n+                        && containingType.BaseType != null\n+                        && containingType.BaseType.Name == typeName;\n+                }\n \n                 return false;\n             };\n \n             var tokens = await document.GetConstructorInitializerTokensAsync(cancellationToken).ConfigureAwait(false);\n+            var ctorTokens = await document.GetConstructorTokensAsync(cancellationToken).ConfigureAwait(false);","path":"src/Workspaces/Core/Portable/FindSymbols/FindReferences/Finders/ConstructorInitializerSymbolReferenceFinder.cs","position":36,"original_position":36,"commit_id":"ac7dac3fd8ff71cfb69107fdbb97c5f10348cff5","original_commit_id":"ac7dac3fd8ff71cfb69107fdbb97c5f10348cff5","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},"body":"Why the tokens?  Why not the Constructor declaration node itself?","created_at":"2016-06-03T18:13:11Z","updated_at":"2016-06-03T18:13:11Z","html_url":"https://github.com/dotnet/roslyn/pull/11743#discussion_r65752155","pull_request_url":"https://api.github.com/repos/dotnet/roslyn/pulls/11743","_links":{"self":{"href":"https://api.github.com/repos/dotnet/roslyn/pulls/comments/65752155"},"html":{"href":"https://github.com/dotnet/roslyn/pull/11743#discussion_r65752155"},"pull_request":{"href":"https://api.github.com/repos/dotnet/roslyn/pulls/11743"}}},"pull_request":{"url":"https://api.github.com/repos/dotnet/roslyn/pulls/11743","id":72537644,"html_url":"https://github.com/dotnet/roslyn/pull/11743","diff_url":"https://github.com/dotnet/roslyn/pull/11743.diff","patch_url":"https://github.com/dotnet/roslyn/pull/11743.patch","issue_url":"https://api.github.com/repos/dotnet/roslyn/issues/11743","number":11743,"state":"open","locked":false,"title":"Default constructor reference: fix issue #11049","user":{"login":"zanqi","id":2538192,"avatar_url":"https://avatars.githubusercontent.com/u/2538192?v=3","gravatar_id":"","url":"https://api.github.com/users/zanqi","html_url":"https://github.com/zanqi","followers_url":"https://api.github.com/users/zanqi/followers","following_url":"https://api.github.com/users/zanqi/following{/other_user}","gists_url":"https://api.github.com/users/zanqi/gists{/gist_id}","starred_url":"https://api.github.com/users/zanqi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zanqi/subscriptions","organizations_url":"https://api.github.com/users/zanqi/orgs","repos_url":"https://api.github.com/users/zanqi/repos","events_url":"https://api.github.com/users/zanqi/events{/privacy}","received_events_url":"https://api.github.com/users/zanqi/received_events","type":"User","site_admin":false},"body":"Add the logic into the finder. Fix issue #11049","created_at":"2016-06-03T16:56:08Z","updated_at":"2016-06-03T18:13:11Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/dotnet/roslyn/pulls/11743/commits","review_comments_url":"https://api.github.com/repos/dotnet/roslyn/pulls/11743/comments","review_comment_url":"https://api.github.com/repos/dotnet/roslyn/pulls/comments{/number}","comments_url":"https://api.github.com/repos/dotnet/roslyn/issues/11743/comments","statuses_url":"https://api.github.com/repos/dotnet/roslyn/statuses/ac7dac3fd8ff71cfb69107fdbb97c5f10348cff5","head":{"label":"zanqi:DefaultCtorReference","ref":"DefaultCtorReference","sha":"ac7dac3fd8ff71cfb69107fdbb97c5f10348cff5","user":{"login":"zanqi","id":2538192,"avatar_url":"https://avatars.githubusercontent.com/u/2538192?v=3","gravatar_id":"","url":"https://api.github.com/users/zanqi","html_url":"https://github.com/zanqi","followers_url":"https://api.github.com/users/zanqi/followers","following_url":"https://api.github.com/users/zanqi/following{/other_user}","gists_url":"https://api.github.com/users/zanqi/gists{/gist_id}","starred_url":"https://api.github.com/users/zanqi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zanqi/subscriptions","organizations_url":"https://api.github.com/users/zanqi/orgs","repos_url":"https://api.github.com/users/zanqi/repos","events_url":"https://api.github.com/users/zanqi/events{/privacy}","received_events_url":"https://api.github.com/users/zanqi/received_events","type":"User","site_admin":false},"repo":{"id":30537024,"name":"roslyn","full_name":"zanqi/roslyn","owner":{"login":"zanqi","id":2538192,"avatar_url":"https://avatars.githubusercontent.com/u/2538192?v=3","gravatar_id":"","url":"https://api.github.com/users/zanqi","html_url":"https://github.com/zanqi","followers_url":"https://api.github.com/users/zanqi/followers","following_url":"https://api.github.com/users/zanqi/following{/other_user}","gists_url":"https://api.github.com/users/zanqi/gists{/gist_id}","starred_url":"https://api.github.com/users/zanqi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zanqi/subscriptions","organizations_url":"https://api.github.com/users/zanqi/orgs","repos_url":"https://api.github.com/users/zanqi/repos","events_url":"https://api.github.com/users/zanqi/events{/privacy}","received_events_url":"https://api.github.com/users/zanqi/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/zanqi/roslyn","description":"The .NET Compiler Platform (\"Roslyn\") provides open-source C# and Visual Basic compilers with rich code analysis APIs.","fork":true,"url":"https://api.github.com/repos/zanqi/roslyn","forks_url":"https://api.github.com/repos/zanqi/roslyn/forks","keys_url":"https://api.github.com/repos/zanqi/roslyn/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zanqi/roslyn/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zanqi/roslyn/teams","hooks_url":"https://api.github.com/repos/zanqi/roslyn/hooks","issue_events_url":"https://api.github.com/repos/zanqi/roslyn/issues/events{/number}","events_url":"https://api.github.com/repos/zanqi/roslyn/events","assignees_url":"https://api.github.com/repos/zanqi/roslyn/assignees{/user}","branches_url":"https://api.github.com/repos/zanqi/roslyn/branches{/branch}","tags_url":"https://api.github.com/repos/zanqi/roslyn/tags","blobs_url":"https://api.github.com/repos/zanqi/roslyn/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zanqi/roslyn/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zanqi/roslyn/git/refs{/sha}","trees_url":"https://api.github.com/repos/zanqi/roslyn/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zanqi/roslyn/statuses/{sha}","languages_url":"https://api.github.com/repos/zanqi/roslyn/languages","stargazers_url":"https://api.github.com/repos/zanqi/roslyn/stargazers","contributors_url":"https://api.github.com/repos/zanqi/roslyn/contributors","subscribers_url":"https://api.github.com/repos/zanqi/roslyn/subscribers","subscription_url":"https://api.github.com/repos/zanqi/roslyn/subscription","commits_url":"https://api.github.com/repos/zanqi/roslyn/commits{/sha}","git_commits_url":"https://api.github.com/repos/zanqi/roslyn/git/commits{/sha}","comments_url":"https://api.github.com/repos/zanqi/roslyn/comments{/number}","issue_comment_url":"https://api.github.com/repos/zanqi/roslyn/issues/comments{/number}","contents_url":"https://api.github.com/repos/zanqi/roslyn/contents/{+path}","compare_url":"https://api.github.com/repos/zanqi/roslyn/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zanqi/roslyn/merges","archive_url":"https://api.github.com/repos/zanqi/roslyn/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zanqi/roslyn/downloads","issues_url":"https://api.github.com/repos/zanqi/roslyn/issues{/number}","pulls_url":"https://api.github.com/repos/zanqi/roslyn/pulls{/number}","milestones_url":"https://api.github.com/repos/zanqi/roslyn/milestones{/number}","notifications_url":"https://api.github.com/repos/zanqi/roslyn/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zanqi/roslyn/labels{/name}","releases_url":"https://api.github.com/repos/zanqi/roslyn/releases{/id}","deployments_url":"https://api.github.com/repos/zanqi/roslyn/deployments","created_at":"2015-02-09T13:28:28Z","updated_at":"2015-02-09T13:28:56Z","pushed_at":"2016-06-03T16:45:42Z","git_url":"git://github.com/zanqi/roslyn.git","ssh_url":"git@github.com:zanqi/roslyn.git","clone_url":"https://github.com/zanqi/roslyn.git","svn_url":"https://github.com/zanqi/roslyn","homepage":"","size":142688,"stargazers_count":0,"watchers_count":0,"language":"C#","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"dotnet:master","ref":"master","sha":"e49822fd1a61272965939eab3d64d40096b1e7c0","user":{"login":"dotnet","id":9141961,"avatar_url":"https://avatars.githubusercontent.com/u/9141961?v=3","gravatar_id":"","url":"https://api.github.com/users/dotnet","html_url":"https://github.com/dotnet","followers_url":"https://api.github.com/users/dotnet/followers","following_url":"https://api.github.com/users/dotnet/following{/other_user}","gists_url":"https://api.github.com/users/dotnet/gists{/gist_id}","starred_url":"https://api.github.com/users/dotnet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dotnet/subscriptions","organizations_url":"https://api.github.com/users/dotnet/orgs","repos_url":"https://api.github.com/users/dotnet/repos","events_url":"https://api.github.com/users/dotnet/events{/privacy}","received_events_url":"https://api.github.com/users/dotnet/received_events","type":"Organization","site_admin":false},"repo":{"id":29078997,"name":"roslyn","full_name":"dotnet/roslyn","owner":{"login":"dotnet","id":9141961,"avatar_url":"https://avatars.githubusercontent.com/u/9141961?v=3","gravatar_id":"","url":"https://api.github.com/users/dotnet","html_url":"https://github.com/dotnet","followers_url":"https://api.github.com/users/dotnet/followers","following_url":"https://api.github.com/users/dotnet/following{/other_user}","gists_url":"https://api.github.com/users/dotnet/gists{/gist_id}","starred_url":"https://api.github.com/users/dotnet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dotnet/subscriptions","organizations_url":"https://api.github.com/users/dotnet/orgs","repos_url":"https://api.github.com/users/dotnet/repos","events_url":"https://api.github.com/users/dotnet/events{/privacy}","received_events_url":"https://api.github.com/users/dotnet/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/dotnet/roslyn","description":"The .NET Compiler Platform (\"Roslyn\") provides open-source C# and Visual Basic compilers with rich code analysis APIs.","fork":false,"url":"https://api.github.com/repos/dotnet/roslyn","forks_url":"https://api.github.com/repos/dotnet/roslyn/forks","keys_url":"https://api.github.com/repos/dotnet/roslyn/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dotnet/roslyn/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dotnet/roslyn/teams","hooks_url":"https://api.github.com/repos/dotnet/roslyn/hooks","issue_events_url":"https://api.github.com/repos/dotnet/roslyn/issues/events{/number}","events_url":"https://api.github.com/repos/dotnet/roslyn/events","assignees_url":"https://api.github.com/repos/dotnet/roslyn/assignees{/user}","branches_url":"https://api.github.com/repos/dotnet/roslyn/branches{/branch}","tags_url":"https://api.github.com/repos/dotnet/roslyn/tags","blobs_url":"https://api.github.com/repos/dotnet/roslyn/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dotnet/roslyn/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dotnet/roslyn/git/refs{/sha}","trees_url":"https://api.github.com/repos/dotnet/roslyn/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dotnet/roslyn/statuses/{sha}","languages_url":"https://api.github.com/repos/dotnet/roslyn/languages","stargazers_url":"https://api.github.com/repos/dotnet/roslyn/stargazers","contributors_url":"https://api.github.com/repos/dotnet/roslyn/contributors","subscribers_url":"https://api.github.com/repos/dotnet/roslyn/subscribers","subscription_url":"https://api.github.com/repos/dotnet/roslyn/subscription","commits_url":"https://api.github.com/repos/dotnet/roslyn/commits{/sha}","git_commits_url":"https://api.github.com/repos/dotnet/roslyn/git/commits{/sha}","comments_url":"https://api.github.com/repos/dotnet/roslyn/comments{/number}","issue_comment_url":"https://api.github.com/repos/dotnet/roslyn/issues/comments{/number}","contents_url":"https://api.github.com/repos/dotnet/roslyn/contents/{+path}","compare_url":"https://api.github.com/repos/dotnet/roslyn/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dotnet/roslyn/merges","archive_url":"https://api.github.com/repos/dotnet/roslyn/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dotnet/roslyn/downloads","issues_url":"https://api.github.com/repos/dotnet/roslyn/issues{/number}","pulls_url":"https://api.github.com/repos/dotnet/roslyn/pulls{/number}","milestones_url":"https://api.github.com/repos/dotnet/roslyn/milestones{/number}","notifications_url":"https://api.github.com/repos/dotnet/roslyn/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dotnet/roslyn/labels{/name}","releases_url":"https://api.github.com/repos/dotnet/roslyn/releases{/id}","deployments_url":"https://api.github.com/repos/dotnet/roslyn/deployments","created_at":"2015-01-11T02:39:03Z","updated_at":"2016-06-03T15:26:17Z","pushed_at":"2016-06-03T18:01:50Z","git_url":"git://github.com/dotnet/roslyn.git","ssh_url":"git@github.com:dotnet/roslyn.git","clone_url":"https://github.com/dotnet/roslyn.git","svn_url":"https://github.com/dotnet/roslyn","homepage":"","size":298654,"stargazers_count":5282,"watchers_count":5282,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1319,"mirror_url":null,"open_issues_count":2850,"forks":1319,"open_issues":2850,"watchers":5282,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/dotnet/roslyn/pulls/11743"},"html":{"href":"https://github.com/dotnet/roslyn/pull/11743"},"issue":{"href":"https://api.github.com/repos/dotnet/roslyn/issues/11743"},"comments":{"href":"https://api.github.com/repos/dotnet/roslyn/issues/11743/comments"},"review_comments":{"href":"https://api.github.com/repos/dotnet/roslyn/pulls/11743/comments"},"review_comment":{"href":"https://api.github.com/repos/dotnet/roslyn/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/dotnet/roslyn/pulls/11743/commits"},"statuses":{"href":"https://api.github.com/repos/dotnet/roslyn/statuses/ac7dac3fd8ff71cfb69107fdbb97c5f10348cff5"}}}}
{"actor":{"display_login":"CyrusNajmabadi"}}