{"action":"created","issue":{"url":"https://api.github.com/repos/dotnet/roslyn/issues/6480","labels_url":"https://api.github.com/repos/dotnet/roslyn/issues/6480/labels{/name}","comments_url":"https://api.github.com/repos/dotnet/roslyn/issues/6480/comments","events_url":"https://api.github.com/repos/dotnet/roslyn/issues/6480/events","html_url":"https://github.com/dotnet/roslyn/pull/6480","id":114371602,"number":6480,"title":"System C# analyzer to detect fields or locals that could be declared with more specific types","user":{"login":"JohnHamby","id":10982715,"avatar_url":"https://avatars.githubusercontent.com/u/10982715?v=3","gravatar_id":"","url":"https://api.github.com/users/JohnHamby","html_url":"https://github.com/JohnHamby","followers_url":"https://api.github.com/users/JohnHamby/followers","following_url":"https://api.github.com/users/JohnHamby/following{/other_user}","gists_url":"https://api.github.com/users/JohnHamby/gists{/gist_id}","starred_url":"https://api.github.com/users/JohnHamby/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JohnHamby/subscriptions","organizations_url":"https://api.github.com/users/JohnHamby/orgs","repos_url":"https://api.github.com/users/JohnHamby/repos","events_url":"https://api.github.com/users/JohnHamby/events{/privacy}","received_events_url":"https://api.github.com/users/JohnHamby/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/dotnet/roslyn/labels/Area-Analyzers","name":"Area-Analyzers","color":"5319e7"},{"url":"https://api.github.com/repos/dotnet/roslyn/labels/Area-Compilers","name":"Area-Compilers","color":"5319e7"},{"url":"https://api.github.com/repos/dotnet/roslyn/labels/cla-already-signed","name":"cla-already-signed","color":"009800"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-10-30T23:17:33Z","updated_at":"2015-11-09T22:49:11Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/dotnet/roslyn/pulls/6480","html_url":"https://github.com/dotnet/roslyn/pull/6480","diff_url":"https://github.com/dotnet/roslyn/pull/6480.diff","patch_url":"https://github.com/dotnet/roslyn/pull/6480.patch"},"body":"This change set adds another System C# analyzer as a test of IOperation in analyzer actions.\r\n\r\nNo fixes or additions to the analyzer infrastructure were necessary, but there are a couple of changes to language infrastructure for generating IOperation nodes:\r\n  1) The C# member semantic model always failed to produce a bound node for a member initializer. (This was a bug.)\r\n  2) The VB member semantic model produces a wrapper node for a member initializer rather than the bound node for the initializer expression itself, so turning that node into an IOperation needs to unwrap the expression.\r\n\r\nThe VB and C# engines have asymmetrical treatment of member initializers--VB produces a bound node for the \"= expr\" that wraps the node for \"expr\", while C# does not. This seems like a spurious difference.\r\n\r\n@mavasani @srivatsn @heejaechang  for the analyzer.\r\n@gafter @AlekseyTs for the language infrastructure."},"comment":{"url":"https://api.github.com/repos/dotnet/roslyn/issues/comments/155223628","html_url":"https://github.com/dotnet/roslyn/pull/6480#issuecomment-155223628","issue_url":"https://api.github.com/repos/dotnet/roslyn/issues/6480","id":155223628,"user":{"login":"AlekseyTs","id":10522107,"avatar_url":"https://avatars.githubusercontent.com/u/10522107?v=3","gravatar_id":"","url":"https://api.github.com/users/AlekseyTs","html_url":"https://github.com/AlekseyTs","followers_url":"https://api.github.com/users/AlekseyTs/followers","following_url":"https://api.github.com/users/AlekseyTs/following{/other_user}","gists_url":"https://api.github.com/users/AlekseyTs/gists{/gist_id}","starred_url":"https://api.github.com/users/AlekseyTs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlekseyTs/subscriptions","organizations_url":"https://api.github.com/users/AlekseyTs/orgs","repos_url":"https://api.github.com/users/AlekseyTs/repos","events_url":"https://api.github.com/users/AlekseyTs/events{/privacy}","received_events_url":"https://api.github.com/users/AlekseyTs/received_events","type":"User","site_admin":false},"created_at":"2015-11-09T22:49:11Z","updated_at":"2015-11-09T22:49:11Z","body":"LGTM"}}