{"action":"created","comment":{"url":"https://api.github.com/repos/dotnet/roslyn/pulls/comments/27175946","id":27175946,"diff_hunk":"@@ -84,6 +84,25 @@ protected override LineColumnRule GetLineColumnRuleBetween(SyntaxTrivia trivia1,\n                     return LineColumnRule.PreserveLinesWithGivenIndentation(lines: insertNewLine ? 1 : 0);\n                 }\n \n+                /* All the cases are Trivia inside ArrayInitializers\n+                    case 1:  {\n+                                // This is a comment after the brace\n+                         <TriviaOfInterest>    2\n+                    case 2:  ,\n+                                // This is a comment after the comma of the ArrayInitializer\n+                         <TriviaOfInterest>    2\n+                    case 3:   <value>\n+                            // This is a comment after one of the values for the ArrayInitializer\n+                         <TriviaOfInterest>     ,\n+                    case 4: // This is a comment after one of the values for the ArrayInitializer\n+                         <TriviaOfInterest>     }\n+                */","path":"src/Workspaces/CSharp/Portable/Formatting/Engine/Trivia/CSharpTriviaFormatter.cs","position":16,"original_position":16,"commit_id":"58811b5dd89422fcf4bbd459916bb243fd31474c","original_commit_id":"58811b5dd89422fcf4bbd459916bb243fd31474c","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":"but if there is suppress operation over the token, this trivia format should never be called.","created_at":"2015-03-25T23:15:25Z","updated_at":"2015-03-25T23:15:25Z","html_url":"https://github.com/dotnet/roslyn/pull/1550#discussion_r27175946","pull_request_url":"https://api.github.com/repos/dotnet/roslyn/pulls/1550","_links":{"self":{"href":"https://api.github.com/repos/dotnet/roslyn/pulls/comments/27175946"},"html":{"href":"https://github.com/dotnet/roslyn/pull/1550#discussion_r27175946"},"pull_request":{"href":"https://api.github.com/repos/dotnet/roslyn/pulls/1550"}}},"pull_request":{"url":"https://api.github.com/repos/dotnet/roslyn/pulls/1550","id":31879006,"html_url":"https://github.com/dotnet/roslyn/pull/1550","diff_url":"https://github.com/dotnet/roslyn/pull/1550.diff","patch_url":"https://github.com/dotnet/roslyn/pull/1550.patch","issue_url":"https://api.github.com/repos/dotnet/roslyn/issues/1550","number":1550,"state":"open","locked":false,"title":"Format Trivia inside ArrayInitializer by preserving the existing format","user":{"login":"basoundr","id":10550513,"avatar_url":"https://avatars.githubusercontent.com/u/10550513?v=3","gravatar_id":"","url":"https://api.github.com/users/basoundr","html_url":"https://github.com/basoundr","followers_url":"https://api.github.com/users/basoundr/followers","following_url":"https://api.github.com/users/basoundr/following{/other_user}","gists_url":"https://api.github.com/users/basoundr/gists{/gist_id}","starred_url":"https://api.github.com/users/basoundr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/basoundr/subscriptions","organizations_url":"https://api.github.com/users/basoundr/orgs","repos_url":"https://api.github.com/users/basoundr/repos","events_url":"https://api.github.com/users/basoundr/events{/privacy}","received_events_url":"https://api.github.com/users/basoundr/received_events","type":"User","site_admin":false},"body":"Fix #939 : Array Initializers are custom formatted by the user hence the\r\ntrivia inside them should be formatted in such a way that we preserve\r\nthe custom format","created_at":"2015-03-24T23:03:02Z","updated_at":"2015-03-25T23:15:25Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f1e741d26ff334ca5c4d9114eea0a1edcbeec393","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/dotnet/roslyn/pulls/1550/commits","review_comments_url":"https://api.github.com/repos/dotnet/roslyn/pulls/1550/comments","review_comment_url":"https://api.github.com/repos/dotnet/roslyn/pulls/comments{/number}","comments_url":"https://api.github.com/repos/dotnet/roslyn/issues/1550/comments","statuses_url":"https://api.github.com/repos/dotnet/roslyn/statuses/58811b5dd89422fcf4bbd459916bb243fd31474c","head":{"label":"basoundr:fix939DontFormatInsideArrayInit","ref":"fix939DontFormatInsideArrayInit","sha":"58811b5dd89422fcf4bbd459916bb243fd31474c","user":{"login":"basoundr","id":10550513,"avatar_url":"https://avatars.githubusercontent.com/u/10550513?v=3","gravatar_id":"","url":"https://api.github.com/users/basoundr","html_url":"https://github.com/basoundr","followers_url":"https://api.github.com/users/basoundr/followers","following_url":"https://api.github.com/users/basoundr/following{/other_user}","gists_url":"https://api.github.com/users/basoundr/gists{/gist_id}","starred_url":"https://api.github.com/users/basoundr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/basoundr/subscriptions","organizations_url":"https://api.github.com/users/basoundr/orgs","repos_url":"https://api.github.com/users/basoundr/repos","events_url":"https://api.github.com/users/basoundr/events{/privacy}","received_events_url":"https://api.github.com/users/basoundr/received_events","type":"User","site_admin":false},"repo":{"id":30552118,"name":"roslyn","full_name":"basoundr/roslyn","owner":{"login":"basoundr","id":10550513,"avatar_url":"https://avatars.githubusercontent.com/u/10550513?v=3","gravatar_id":"","url":"https://api.github.com/users/basoundr","html_url":"https://github.com/basoundr","followers_url":"https://api.github.com/users/basoundr/followers","following_url":"https://api.github.com/users/basoundr/following{/other_user}","gists_url":"https://api.github.com/users/basoundr/gists{/gist_id}","starred_url":"https://api.github.com/users/basoundr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/basoundr/subscriptions","organizations_url":"https://api.github.com/users/basoundr/orgs","repos_url":"https://api.github.com/users/basoundr/repos","events_url":"https://api.github.com/users/basoundr/events{/privacy}","received_events_url":"https://api.github.com/users/basoundr/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/basoundr/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/basoundr/roslyn","forks_url":"https://api.github.com/repos/basoundr/roslyn/forks","keys_url":"https://api.github.com/repos/basoundr/roslyn/keys{/key_id}","collaborators_url":"https://api.github.com/repos/basoundr/roslyn/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/basoundr/roslyn/teams","hooks_url":"https://api.github.com/repos/basoundr/roslyn/hooks","issue_events_url":"https://api.github.com/repos/basoundr/roslyn/issues/events{/number}","events_url":"https://api.github.com/repos/basoundr/roslyn/events","assignees_url":"https://api.github.com/repos/basoundr/roslyn/assignees{/user}","branches_url":"https://api.github.com/repos/basoundr/roslyn/branches{/branch}","tags_url":"https://api.github.com/repos/basoundr/roslyn/tags","blobs_url":"https://api.github.com/repos/basoundr/roslyn/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/basoundr/roslyn/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/basoundr/roslyn/git/refs{/sha}","trees_url":"https://api.github.com/repos/basoundr/roslyn/git/trees{/sha}","statuses_url":"https://api.github.com/repos/basoundr/roslyn/statuses/{sha}","languages_url":"https://api.github.com/repos/basoundr/roslyn/languages","stargazers_url":"https://api.github.com/repos/basoundr/roslyn/stargazers","contributors_url":"https://api.github.com/repos/basoundr/roslyn/contributors","subscribers_url":"https://api.github.com/repos/basoundr/roslyn/subscribers","subscription_url":"https://api.github.com/repos/basoundr/roslyn/subscription","commits_url":"https://api.github.com/repos/basoundr/roslyn/commits{/sha}","git_commits_url":"https://api.github.com/repos/basoundr/roslyn/git/commits{/sha}","comments_url":"https://api.github.com/repos/basoundr/roslyn/comments{/number}","issue_comment_url":"https://api.github.com/repos/basoundr/roslyn/issues/comments{/number}","contents_url":"https://api.github.com/repos/basoundr/roslyn/contents/{+path}","compare_url":"https://api.github.com/repos/basoundr/roslyn/compare/{base}...{head}","merges_url":"https://api.github.com/repos/basoundr/roslyn/merges","archive_url":"https://api.github.com/repos/basoundr/roslyn/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/basoundr/roslyn/downloads","issues_url":"https://api.github.com/repos/basoundr/roslyn/issues{/number}","pulls_url":"https://api.github.com/repos/basoundr/roslyn/pulls{/number}","milestones_url":"https://api.github.com/repos/basoundr/roslyn/milestones{/number}","notifications_url":"https://api.github.com/repos/basoundr/roslyn/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/basoundr/roslyn/labels{/name}","releases_url":"https://api.github.com/repos/basoundr/roslyn/releases{/id}","created_at":"2015-02-09T18:50:00Z","updated_at":"2015-03-17T21:26:17Z","pushed_at":"2015-03-25T21:09:35Z","git_url":"git://github.com/basoundr/roslyn.git","ssh_url":"git@github.com:basoundr/roslyn.git","clone_url":"https://github.com/basoundr/roslyn.git","svn_url":"https://github.com/basoundr/roslyn","homepage":"","size":61257,"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":"0965742ec182c359fa8fafd4cf616123aa3ce6a9","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-03-25T23:06:27Z","pushed_at":"2015-03-25T23:10:20Z","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":97040,"stargazers_count":1620,"watchers_count":1620,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":337,"mirror_url":null,"open_issues_count":634,"forks":337,"open_issues":634,"watchers":1620,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/dotnet/roslyn/pulls/1550"},"html":{"href":"https://github.com/dotnet/roslyn/pull/1550"},"issue":{"href":"https://api.github.com/repos/dotnet/roslyn/issues/1550"},"comments":{"href":"https://api.github.com/repos/dotnet/roslyn/issues/1550/comments"},"review_comments":{"href":"https://api.github.com/repos/dotnet/roslyn/pulls/1550/comments"},"review_comment":{"href":"https://api.github.com/repos/dotnet/roslyn/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/dotnet/roslyn/pulls/1550/commits"},"statuses":{"href":"https://api.github.com/repos/dotnet/roslyn/statuses/58811b5dd89422fcf4bbd459916bb243fd31474c"}}}}