{"action":"created","comment":{"url":"https://api.github.com/repos/dotnet/roslyn/pulls/comments/41316110","id":41316110,"diff_hunk":"@@ -508,16 +511,26 @@ Namespace Microsoft.CodeAnalysis.CodeCleanup.Providers\n                             End If\n \n                         Else\n-                            Dim ifDirective = TryCast(originalParent, IfDirectiveTriviaSyntax)\n-                            If ifDirective IsNot Nothing Then\n-                                Dim previousToken = ifDirective.Condition.GetLastToken(includeZeroWidth:=True)\n-                                Dim nextToken = ifDirective.GetLastToken.GetNextToken\n+                            Dim regularElseIf = TryCast(originalParent, ElseIfStatementSyntax)\n+                            If regularElseIf IsNot Nothing Then\n+                                Dim previousToken = regularElseIf.Condition.GetLastToken(includeZeroWidth:=True)\n+                                Dim nextToken = regularElseIf.GetLastToken.GetNextToken","path":"src/Workspaces/VisualBasic/Portable/CodeCleanup/Providers/AddMissingTokensCodeCleanupProvider.vb","position":32,"original_position":32,"commit_id":"6a31c0dd7ba187dbfdc73033a573b82f56d27b1a","original_commit_id":"6a31c0dd7ba187dbfdc73033a573b82f56d27b1a","user":{"login":"heejaechang","id":1333179,"avatar_url":"https://avatars.githubusercontent.com/u/1333179?v=3","gravatar_id":"","url":"https://api.github.com/users/heejaechang","html_url":"https://github.com/heejaechang","followers_url":"https://api.github.com/users/heejaechang/followers","following_url":"https://api.github.com/users/heejaechang/following{/other_user}","gists_url":"https://api.github.com/users/heejaechang/gists{/gist_id}","starred_url":"https://api.github.com/users/heejaechang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/heejaechang/subscriptions","organizations_url":"https://api.github.com/users/heejaechang/orgs","repos_url":"https://api.github.com/users/heejaechang/repos","events_url":"https://api.github.com/users/heejaechang/events{/privacy}","received_events_url":"https://api.github.com/users/heejaechang/received_events","type":"User","site_admin":false},"body":"I can't remember but probably due to EOL being attached to non-zero width token.","created_at":"2015-10-06T20:18:24Z","updated_at":"2015-10-06T20:18:24Z","html_url":"https://github.com/dotnet/roslyn/pull/5727#discussion_r41316110","pull_request_url":"https://api.github.com/repos/dotnet/roslyn/pulls/5727","_links":{"self":{"href":"https://api.github.com/repos/dotnet/roslyn/pulls/comments/41316110"},"html":{"href":"https://github.com/dotnet/roslyn/pull/5727#discussion_r41316110"},"pull_request":{"href":"https://api.github.com/repos/dotnet/roslyn/pulls/5727"}}},"pull_request":{"url":"https://api.github.com/repos/dotnet/roslyn/pulls/5727","id":46948799,"html_url":"https://github.com/dotnet/roslyn/pull/5727","diff_url":"https://github.com/dotnet/roslyn/pull/5727.diff","patch_url":"https://github.com/dotnet/roslyn/pull/5727.patch","issue_url":"https://api.github.com/repos/dotnet/roslyn/issues/5727","number":5727,"state":"open","locked":false,"title":"Fix for #3119","user":{"login":"MattGertz","id":10520126,"avatar_url":"https://avatars.githubusercontent.com/u/10520126?v=3","gravatar_id":"","url":"https://api.github.com/users/MattGertz","html_url":"https://github.com/MattGertz","followers_url":"https://api.github.com/users/MattGertz/followers","following_url":"https://api.github.com/users/MattGertz/following{/other_user}","gists_url":"https://api.github.com/users/MattGertz/gists{/gist_id}","starred_url":"https://api.github.com/users/MattGertz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MattGertz/subscriptions","organizations_url":"https://api.github.com/users/MattGertz/orgs","repos_url":"https://api.github.com/users/MattGertz/repos","events_url":"https://api.github.com/users/MattGertz/events{/privacy}","received_events_url":"https://api.github.com/users/MattGertz/received_events","type":"User","site_admin":false},"body":"@dotnet/roslyn-ide Please review.  \r\n\r\nNote I considered factoring out the code common to If, If Directive, and ElseIf, but on consideration decided not to since (a) nothing else would ever need to use it and (b) inlining seemed better anyway.","created_at":"2015-10-06T19:48:39Z","updated_at":"2015-10-06T20:18:24Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e5021390ec03edfdd98ad331f81d6440a654f2e6","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/dotnet/roslyn/pulls/5727/commits","review_comments_url":"https://api.github.com/repos/dotnet/roslyn/pulls/5727/comments","review_comment_url":"https://api.github.com/repos/dotnet/roslyn/pulls/comments{/number}","comments_url":"https://api.github.com/repos/dotnet/roslyn/issues/5727/comments","statuses_url":"https://api.github.com/repos/dotnet/roslyn/statuses/6a31c0dd7ba187dbfdc73033a573b82f56d27b1a","head":{"label":"MattGertz:master","ref":"master","sha":"6a31c0dd7ba187dbfdc73033a573b82f56d27b1a","user":{"login":"MattGertz","id":10520126,"avatar_url":"https://avatars.githubusercontent.com/u/10520126?v=3","gravatar_id":"","url":"https://api.github.com/users/MattGertz","html_url":"https://github.com/MattGertz","followers_url":"https://api.github.com/users/MattGertz/followers","following_url":"https://api.github.com/users/MattGertz/following{/other_user}","gists_url":"https://api.github.com/users/MattGertz/gists{/gist_id}","starred_url":"https://api.github.com/users/MattGertz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MattGertz/subscriptions","organizations_url":"https://api.github.com/users/MattGertz/orgs","repos_url":"https://api.github.com/users/MattGertz/repos","events_url":"https://api.github.com/users/MattGertz/events{/privacy}","received_events_url":"https://api.github.com/users/MattGertz/received_events","type":"User","site_admin":false},"repo":{"id":42198811,"name":"roslyn","full_name":"MattGertz/roslyn","owner":{"login":"MattGertz","id":10520126,"avatar_url":"https://avatars.githubusercontent.com/u/10520126?v=3","gravatar_id":"","url":"https://api.github.com/users/MattGertz","html_url":"https://github.com/MattGertz","followers_url":"https://api.github.com/users/MattGertz/followers","following_url":"https://api.github.com/users/MattGertz/following{/other_user}","gists_url":"https://api.github.com/users/MattGertz/gists{/gist_id}","starred_url":"https://api.github.com/users/MattGertz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MattGertz/subscriptions","organizations_url":"https://api.github.com/users/MattGertz/orgs","repos_url":"https://api.github.com/users/MattGertz/repos","events_url":"https://api.github.com/users/MattGertz/events{/privacy}","received_events_url":"https://api.github.com/users/MattGertz/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/MattGertz/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/MattGertz/roslyn","forks_url":"https://api.github.com/repos/MattGertz/roslyn/forks","keys_url":"https://api.github.com/repos/MattGertz/roslyn/keys{/key_id}","collaborators_url":"https://api.github.com/repos/MattGertz/roslyn/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/MattGertz/roslyn/teams","hooks_url":"https://api.github.com/repos/MattGertz/roslyn/hooks","issue_events_url":"https://api.github.com/repos/MattGertz/roslyn/issues/events{/number}","events_url":"https://api.github.com/repos/MattGertz/roslyn/events","assignees_url":"https://api.github.com/repos/MattGertz/roslyn/assignees{/user}","branches_url":"https://api.github.com/repos/MattGertz/roslyn/branches{/branch}","tags_url":"https://api.github.com/repos/MattGertz/roslyn/tags","blobs_url":"https://api.github.com/repos/MattGertz/roslyn/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/MattGertz/roslyn/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/MattGertz/roslyn/git/refs{/sha}","trees_url":"https://api.github.com/repos/MattGertz/roslyn/git/trees{/sha}","statuses_url":"https://api.github.com/repos/MattGertz/roslyn/statuses/{sha}","languages_url":"https://api.github.com/repos/MattGertz/roslyn/languages","stargazers_url":"https://api.github.com/repos/MattGertz/roslyn/stargazers","contributors_url":"https://api.github.com/repos/MattGertz/roslyn/contributors","subscribers_url":"https://api.github.com/repos/MattGertz/roslyn/subscribers","subscription_url":"https://api.github.com/repos/MattGertz/roslyn/subscription","commits_url":"https://api.github.com/repos/MattGertz/roslyn/commits{/sha}","git_commits_url":"https://api.github.com/repos/MattGertz/roslyn/git/commits{/sha}","comments_url":"https://api.github.com/repos/MattGertz/roslyn/comments{/number}","issue_comment_url":"https://api.github.com/repos/MattGertz/roslyn/issues/comments{/number}","contents_url":"https://api.github.com/repos/MattGertz/roslyn/contents/{+path}","compare_url":"https://api.github.com/repos/MattGertz/roslyn/compare/{base}...{head}","merges_url":"https://api.github.com/repos/MattGertz/roslyn/merges","archive_url":"https://api.github.com/repos/MattGertz/roslyn/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/MattGertz/roslyn/downloads","issues_url":"https://api.github.com/repos/MattGertz/roslyn/issues{/number}","pulls_url":"https://api.github.com/repos/MattGertz/roslyn/pulls{/number}","milestones_url":"https://api.github.com/repos/MattGertz/roslyn/milestones{/number}","notifications_url":"https://api.github.com/repos/MattGertz/roslyn/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/MattGertz/roslyn/labels{/name}","releases_url":"https://api.github.com/repos/MattGertz/roslyn/releases{/id}","created_at":"2015-09-09T19:06:04Z","updated_at":"2015-09-09T19:06:33Z","pushed_at":"2015-10-06T19:43:22Z","git_url":"git://github.com/MattGertz/roslyn.git","ssh_url":"git@github.com:MattGertz/roslyn.git","clone_url":"https://github.com/MattGertz/roslyn.git","svn_url":"https://github.com/MattGertz/roslyn","homepage":"","size":97422,"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":"30ef30de5b626b2a31caf76dd10c03d3161cf41b","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-10-06T18:36:14Z","pushed_at":"2015-10-06T20:13:39Z","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":203162,"stargazers_count":3432,"watchers_count":3432,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":803,"mirror_url":null,"open_issues_count":1506,"forks":803,"open_issues":1506,"watchers":3432,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/dotnet/roslyn/pulls/5727"},"html":{"href":"https://github.com/dotnet/roslyn/pull/5727"},"issue":{"href":"https://api.github.com/repos/dotnet/roslyn/issues/5727"},"comments":{"href":"https://api.github.com/repos/dotnet/roslyn/issues/5727/comments"},"review_comments":{"href":"https://api.github.com/repos/dotnet/roslyn/pulls/5727/comments"},"review_comment":{"href":"https://api.github.com/repos/dotnet/roslyn/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/dotnet/roslyn/pulls/5727/commits"},"statuses":{"href":"https://api.github.com/repos/dotnet/roslyn/statuses/6a31c0dd7ba187dbfdc73033a573b82f56d27b1a"}}}}