{"action":"created","comment":{"url":"https://api.github.com/repos/dotnet/roslyn/pulls/comments/25380917","id":25380917,"diff_hunk":"@@ -134,10 +117,39 @@ protected virtual bool BlockOverlapsHiddenPosition(SyntaxNode block, Cancellatio\n                     }\n                 }\n             }\n+            else if (state.InExpressionBodiedMemberContext)\n+            {\n+                await CreateConstantFieldActionsAsync(state, actions, cancellationToken).ConfigureAwait(false);\n+                actions.Add(CreateAction(state, allOccurrences: false, isConstant: state.IsConstant, isLocal: true, isQueryLocal: false));\n+                actions.Add(CreateAction(state, allOccurrences: true, isConstant: state.IsConstant, isLocal: true, isQueryLocal: false));\n+            }","path":"src/Features/Core/IntroduceVariable/AbstractIntroduceVariableService.cs","position":44,"original_position":44,"commit_id":"9458328d8c3a9ce41434c4b508a8d761b5027cde","original_commit_id":"9458328d8c3a9ce41434c4b508a8d761b5027cde","user":{"login":"balajikris","id":4213867,"avatar_url":"https://avatars.githubusercontent.com/u/4213867?v=3","gravatar_id":"","url":"https://api.github.com/users/balajikris","html_url":"https://github.com/balajikris","followers_url":"https://api.github.com/users/balajikris/followers","following_url":"https://api.github.com/users/balajikris/following{/other_user}","gists_url":"https://api.github.com/users/balajikris/gists{/gist_id}","starred_url":"https://api.github.com/users/balajikris/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/balajikris/subscriptions","organizations_url":"https://api.github.com/users/balajikris/orgs","repos_url":"https://api.github.com/users/balajikris/repos","events_url":"https://api.github.com/users/balajikris/events{/privacy}","received_events_url":"https://api.github.com/users/balajikris/received_events","type":"User","site_admin":false},"body":"@dpoeschl Actions are created differently based on the context we're in.. What would the else (default) case do, if it can't construct or offer a generic action? Is throwing worth here?","created_at":"2015-02-25T21:29:38Z","updated_at":"2015-02-25T21:29:38Z","html_url":"https://github.com/dotnet/roslyn/pull/774#discussion_r25380917","pull_request_url":"https://api.github.com/repos/dotnet/roslyn/pulls/774","_links":{"self":{"href":"https://api.github.com/repos/dotnet/roslyn/pulls/comments/25380917"},"html":{"href":"https://github.com/dotnet/roslyn/pull/774#discussion_r25380917"},"pull_request":{"href":"https://api.github.com/repos/dotnet/roslyn/pulls/774"}}},"pull_request":{"url":"https://api.github.com/repos/dotnet/roslyn/pulls/774","id":29783248,"html_url":"https://github.com/dotnet/roslyn/pull/774","diff_url":"https://github.com/dotnet/roslyn/pull/774.diff","patch_url":"https://github.com/dotnet/roslyn/pull/774.patch","issue_url":"https://api.github.com/repos/dotnet/roslyn/issues/774","number":774,"state":"open","locked":false,"title":"Support Introduce Variable refactoring in expression bodied members","user":{"login":"balajikris","id":4213867,"avatar_url":"https://avatars.githubusercontent.com/u/4213867?v=3","gravatar_id":"","url":"https://api.github.com/users/balajikris","html_url":"https://github.com/balajikris","followers_url":"https://api.github.com/users/balajikris/followers","following_url":"https://api.github.com/users/balajikris/following{/other_user}","gists_url":"https://api.github.com/users/balajikris/gists{/gist_id}","starred_url":"https://api.github.com/users/balajikris/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/balajikris/subscriptions","organizations_url":"https://api.github.com/users/balajikris/orgs","repos_url":"https://api.github.com/users/balajikris/repos","events_url":"https://api.github.com/users/balajikris/events{/privacy}","received_events_url":"https://api.github.com/users/balajikris/received_events","type":"User","site_admin":false},"body":"This PR implements support for Introduce Variable refactoring in Expression Bodied Members in C#. Added unit tests for the same. \r\n\r\nAssociated with #528. Will address Extract Method in a separate PR.","created_at":"2015-02-23T02:43:28Z","updated_at":"2015-02-25T21:29:38Z","closed_at":null,"merged_at":null,"merge_commit_sha":"910b05d88800f65ed440ece5a1a85d0527550c4a","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/dotnet/roslyn/pulls/774/commits","review_comments_url":"https://api.github.com/repos/dotnet/roslyn/pulls/774/comments","review_comment_url":"https://api.github.com/repos/dotnet/roslyn/pulls/comments{/number}","comments_url":"https://api.github.com/repos/dotnet/roslyn/issues/774/comments","statuses_url":"https://api.github.com/repos/dotnet/roslyn/statuses/9458328d8c3a9ce41434c4b508a8d761b5027cde","head":{"label":"balajikris:RefactoringBugsInExpressionBodiedMembers","ref":"RefactoringBugsInExpressionBodiedMembers","sha":"9458328d8c3a9ce41434c4b508a8d761b5027cde","user":{"login":"balajikris","id":4213867,"avatar_url":"https://avatars.githubusercontent.com/u/4213867?v=3","gravatar_id":"","url":"https://api.github.com/users/balajikris","html_url":"https://github.com/balajikris","followers_url":"https://api.github.com/users/balajikris/followers","following_url":"https://api.github.com/users/balajikris/following{/other_user}","gists_url":"https://api.github.com/users/balajikris/gists{/gist_id}","starred_url":"https://api.github.com/users/balajikris/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/balajikris/subscriptions","organizations_url":"https://api.github.com/users/balajikris/orgs","repos_url":"https://api.github.com/users/balajikris/repos","events_url":"https://api.github.com/users/balajikris/events{/privacy}","received_events_url":"https://api.github.com/users/balajikris/received_events","type":"User","site_admin":false},"repo":{"id":30552969,"name":"roslyn","full_name":"balajikris/roslyn","owner":{"login":"balajikris","id":4213867,"avatar_url":"https://avatars.githubusercontent.com/u/4213867?v=3","gravatar_id":"","url":"https://api.github.com/users/balajikris","html_url":"https://github.com/balajikris","followers_url":"https://api.github.com/users/balajikris/followers","following_url":"https://api.github.com/users/balajikris/following{/other_user}","gists_url":"https://api.github.com/users/balajikris/gists{/gist_id}","starred_url":"https://api.github.com/users/balajikris/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/balajikris/subscriptions","organizations_url":"https://api.github.com/users/balajikris/orgs","repos_url":"https://api.github.com/users/balajikris/repos","events_url":"https://api.github.com/users/balajikris/events{/privacy}","received_events_url":"https://api.github.com/users/balajikris/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/balajikris/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/balajikris/roslyn","forks_url":"https://api.github.com/repos/balajikris/roslyn/forks","keys_url":"https://api.github.com/repos/balajikris/roslyn/keys{/key_id}","collaborators_url":"https://api.github.com/repos/balajikris/roslyn/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/balajikris/roslyn/teams","hooks_url":"https://api.github.com/repos/balajikris/roslyn/hooks","issue_events_url":"https://api.github.com/repos/balajikris/roslyn/issues/events{/number}","events_url":"https://api.github.com/repos/balajikris/roslyn/events","assignees_url":"https://api.github.com/repos/balajikris/roslyn/assignees{/user}","branches_url":"https://api.github.com/repos/balajikris/roslyn/branches{/branch}","tags_url":"https://api.github.com/repos/balajikris/roslyn/tags","blobs_url":"https://api.github.com/repos/balajikris/roslyn/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/balajikris/roslyn/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/balajikris/roslyn/git/refs{/sha}","trees_url":"https://api.github.com/repos/balajikris/roslyn/git/trees{/sha}","statuses_url":"https://api.github.com/repos/balajikris/roslyn/statuses/{sha}","languages_url":"https://api.github.com/repos/balajikris/roslyn/languages","stargazers_url":"https://api.github.com/repos/balajikris/roslyn/stargazers","contributors_url":"https://api.github.com/repos/balajikris/roslyn/contributors","subscribers_url":"https://api.github.com/repos/balajikris/roslyn/subscribers","subscription_url":"https://api.github.com/repos/balajikris/roslyn/subscription","commits_url":"https://api.github.com/repos/balajikris/roslyn/commits{/sha}","git_commits_url":"https://api.github.com/repos/balajikris/roslyn/git/commits{/sha}","comments_url":"https://api.github.com/repos/balajikris/roslyn/comments{/number}","issue_comment_url":"https://api.github.com/repos/balajikris/roslyn/issues/comments{/number}","contents_url":"https://api.github.com/repos/balajikris/roslyn/contents/{+path}","compare_url":"https://api.github.com/repos/balajikris/roslyn/compare/{base}...{head}","merges_url":"https://api.github.com/repos/balajikris/roslyn/merges","archive_url":"https://api.github.com/repos/balajikris/roslyn/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/balajikris/roslyn/downloads","issues_url":"https://api.github.com/repos/balajikris/roslyn/issues{/number}","pulls_url":"https://api.github.com/repos/balajikris/roslyn/pulls{/number}","milestones_url":"https://api.github.com/repos/balajikris/roslyn/milestones{/number}","notifications_url":"https://api.github.com/repos/balajikris/roslyn/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/balajikris/roslyn/labels{/name}","releases_url":"https://api.github.com/repos/balajikris/roslyn/releases{/id}","created_at":"2015-02-09T19:08:10Z","updated_at":"2015-02-19T23:09:19Z","pushed_at":"2015-02-23T02:34:00Z","git_url":"git://github.com/balajikris/roslyn.git","ssh_url":"git@github.com:balajikris/roslyn.git","clone_url":"https://github.com/balajikris/roslyn.git","svn_url":"https://github.com/balajikris/roslyn","homepage":"","size":51570,"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":"be3aa7ef1e4479a7ba7221ef4ec7a467d219d51e","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}","created_at":"2015-01-11T02:39:03Z","updated_at":"2015-02-25T21:22:57Z","pushed_at":"2015-02-25T21:22:57Z","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":74148,"stargazers_count":1297,"watchers_count":1297,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":251,"mirror_url":null,"open_issues_count":465,"forks":251,"open_issues":465,"watchers":1297,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/dotnet/roslyn/pulls/774"},"html":{"href":"https://github.com/dotnet/roslyn/pull/774"},"issue":{"href":"https://api.github.com/repos/dotnet/roslyn/issues/774"},"comments":{"href":"https://api.github.com/repos/dotnet/roslyn/issues/774/comments"},"review_comments":{"href":"https://api.github.com/repos/dotnet/roslyn/pulls/774/comments"},"review_comment":{"href":"https://api.github.com/repos/dotnet/roslyn/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/dotnet/roslyn/pulls/774/commits"},"statuses":{"href":"https://api.github.com/repos/dotnet/roslyn/statuses/9458328d8c3a9ce41434c4b508a8d761b5027cde"}}}}