{"action":"created","comment":{"url":"https://api.github.com/repos/dotnet/roslyn/pulls/comments/29259173","id":29259173,"diff_hunk":"@@ -35,12 +37,35 @@ private static string GetBannerText(DocumentationCommentTriviaSyntax documentati\n             string text;\n             if (summaryElement != null)\n             {\n-                var summaryText = from xmlText in summaryElement.ChildNodes().OfType<XmlTextSyntax>()\n-                                  from tk in xmlText.TextTokens\n-                                  let s = tk.ToString().Trim()\n-                                  where s.Length > 0\n-                                  select s;\n-                text = prefix + \" <summary> \" + string.Join(\" \", summaryText);\n+                var sb = new StringBuilder(summaryElement.Span.Length);\n+                sb.Append(prefix);\n+                sb.Append(\" <summary>\");\n+                foreach (var node in summaryElement.ChildNodes())\n+                {\n+                    if (node is XmlTextSyntax)\n+                    {\n+                        var textTokens = ((XmlTextSyntax)node).TextTokens;\n+                        AppendTextTokens(sb, textTokens);\n+                    }\n+                    else if (node is XmlEmptyElementSyntax)\n+                    {\n+                        var e = (XmlEmptyElementSyntax)node;\n+                        var cref = e.Attributes.OfType<XmlCrefAttributeSyntax>().FirstOrDefault();\n+                        if (cref != null)","path":"src/EditorFeatures/CSharp/Outlining/Outliners/DocumentationCommentOutliner.cs","position":40,"original_position":40,"commit_id":"15c857193dc7be566cb537a9b2e6f5af0600da7a","original_commit_id":"15c857193dc7be566cb537a9b2e6f5af0600da7a","user":{"login":"rchande","id":3751401,"avatar_url":"https://avatars.githubusercontent.com/u/3751401?v=3","gravatar_id":"","url":"https://api.github.com/users/rchande","html_url":"https://github.com/rchande","followers_url":"https://api.github.com/users/rchande/followers","following_url":"https://api.github.com/users/rchande/following{/other_user}","gists_url":"https://api.github.com/users/rchande/gists{/gist_id}","starred_url":"https://api.github.com/users/rchande/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rchande/subscriptions","organizations_url":"https://api.github.com/users/rchande/orgs","repos_url":"https://api.github.com/users/rchande/repos","events_url":"https://api.github.com/users/rchande/events{/privacy}","received_events_url":"https://api.github.com/users/rchande/received_events","type":"User","site_admin":false},"body":"I know this bug is about crefs, but we want to do paramrefs and typeparamrefs too?","created_at":"2015-04-28T16:13:17Z","updated_at":"2015-04-28T16:13:17Z","html_url":"https://github.com/dotnet/roslyn/pull/2277#discussion_r29259173","pull_request_url":"https://api.github.com/repos/dotnet/roslyn/pulls/2277","_links":{"self":{"href":"https://api.github.com/repos/dotnet/roslyn/pulls/comments/29259173"},"html":{"href":"https://github.com/dotnet/roslyn/pull/2277#discussion_r29259173"},"pull_request":{"href":"https://api.github.com/repos/dotnet/roslyn/pulls/2277"}}},"pull_request":{"url":"https://api.github.com/repos/dotnet/roslyn/pulls/2277","id":34129692,"html_url":"https://github.com/dotnet/roslyn/pull/2277","diff_url":"https://github.com/dotnet/roslyn/pull/2277.diff","patch_url":"https://github.com/dotnet/roslyn/pull/2277.patch","issue_url":"https://api.github.com/repos/dotnet/roslyn/issues/2277","number":2277,"state":"open","locked":false,"title":"Include cref text in the outlining banner","user":{"login":"Pilchie","id":312835,"avatar_url":"https://avatars.githubusercontent.com/u/312835?v=3","gravatar_id":"","url":"https://api.github.com/users/Pilchie","html_url":"https://github.com/Pilchie","followers_url":"https://api.github.com/users/Pilchie/followers","following_url":"https://api.github.com/users/Pilchie/following{/other_user}","gists_url":"https://api.github.com/users/Pilchie/gists{/gist_id}","starred_url":"https://api.github.com/users/Pilchie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Pilchie/subscriptions","organizations_url":"https://api.github.com/users/Pilchie/orgs","repos_url":"https://api.github.com/users/Pilchie/repos","events_url":"https://api.github.com/users/Pilchie/events{/privacy}","received_events_url":"https://api.github.com/users/Pilchie/received_events","type":"User","site_admin":false},"body":"Fixes #2129.","created_at":"2015-04-26T20:48:10Z","updated_at":"2015-04-28T16:13:17Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9c64866f3e60d9bd8ad7c71475a0516ae4b7df3b","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/dotnet/roslyn/pulls/2277/commits","review_comments_url":"https://api.github.com/repos/dotnet/roslyn/pulls/2277/comments","review_comment_url":"https://api.github.com/repos/dotnet/roslyn/pulls/comments{/number}","comments_url":"https://api.github.com/repos/dotnet/roslyn/issues/2277/comments","statuses_url":"https://api.github.com/repos/dotnet/roslyn/statuses/15c857193dc7be566cb537a9b2e6f5af0600da7a","head":{"label":"Pilchie:Fix2129-XmlInOutlining","ref":"Fix2129-XmlInOutlining","sha":"15c857193dc7be566cb537a9b2e6f5af0600da7a","user":{"login":"Pilchie","id":312835,"avatar_url":"https://avatars.githubusercontent.com/u/312835?v=3","gravatar_id":"","url":"https://api.github.com/users/Pilchie","html_url":"https://github.com/Pilchie","followers_url":"https://api.github.com/users/Pilchie/followers","following_url":"https://api.github.com/users/Pilchie/following{/other_user}","gists_url":"https://api.github.com/users/Pilchie/gists{/gist_id}","starred_url":"https://api.github.com/users/Pilchie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Pilchie/subscriptions","organizations_url":"https://api.github.com/users/Pilchie/orgs","repos_url":"https://api.github.com/users/Pilchie/repos","events_url":"https://api.github.com/users/Pilchie/events{/privacy}","received_events_url":"https://api.github.com/users/Pilchie/received_events","type":"User","site_admin":false},"repo":{"id":29272236,"name":"roslyn","full_name":"Pilchie/roslyn","owner":{"login":"Pilchie","id":312835,"avatar_url":"https://avatars.githubusercontent.com/u/312835?v=3","gravatar_id":"","url":"https://api.github.com/users/Pilchie","html_url":"https://github.com/Pilchie","followers_url":"https://api.github.com/users/Pilchie/followers","following_url":"https://api.github.com/users/Pilchie/following{/other_user}","gists_url":"https://api.github.com/users/Pilchie/gists{/gist_id}","starred_url":"https://api.github.com/users/Pilchie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Pilchie/subscriptions","organizations_url":"https://api.github.com/users/Pilchie/orgs","repos_url":"https://api.github.com/users/Pilchie/repos","events_url":"https://api.github.com/users/Pilchie/events{/privacy}","received_events_url":"https://api.github.com/users/Pilchie/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Pilchie/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/Pilchie/roslyn","forks_url":"https://api.github.com/repos/Pilchie/roslyn/forks","keys_url":"https://api.github.com/repos/Pilchie/roslyn/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Pilchie/roslyn/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Pilchie/roslyn/teams","hooks_url":"https://api.github.com/repos/Pilchie/roslyn/hooks","issue_events_url":"https://api.github.com/repos/Pilchie/roslyn/issues/events{/number}","events_url":"https://api.github.com/repos/Pilchie/roslyn/events","assignees_url":"https://api.github.com/repos/Pilchie/roslyn/assignees{/user}","branches_url":"https://api.github.com/repos/Pilchie/roslyn/branches{/branch}","tags_url":"https://api.github.com/repos/Pilchie/roslyn/tags","blobs_url":"https://api.github.com/repos/Pilchie/roslyn/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Pilchie/roslyn/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Pilchie/roslyn/git/refs{/sha}","trees_url":"https://api.github.com/repos/Pilchie/roslyn/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Pilchie/roslyn/statuses/{sha}","languages_url":"https://api.github.com/repos/Pilchie/roslyn/languages","stargazers_url":"https://api.github.com/repos/Pilchie/roslyn/stargazers","contributors_url":"https://api.github.com/repos/Pilchie/roslyn/contributors","subscribers_url":"https://api.github.com/repos/Pilchie/roslyn/subscribers","subscription_url":"https://api.github.com/repos/Pilchie/roslyn/subscription","commits_url":"https://api.github.com/repos/Pilchie/roslyn/commits{/sha}","git_commits_url":"https://api.github.com/repos/Pilchie/roslyn/git/commits{/sha}","comments_url":"https://api.github.com/repos/Pilchie/roslyn/comments{/number}","issue_comment_url":"https://api.github.com/repos/Pilchie/roslyn/issues/comments{/number}","contents_url":"https://api.github.com/repos/Pilchie/roslyn/contents/{+path}","compare_url":"https://api.github.com/repos/Pilchie/roslyn/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Pilchie/roslyn/merges","archive_url":"https://api.github.com/repos/Pilchie/roslyn/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Pilchie/roslyn/downloads","issues_url":"https://api.github.com/repos/Pilchie/roslyn/issues{/number}","pulls_url":"https://api.github.com/repos/Pilchie/roslyn/pulls{/number}","milestones_url":"https://api.github.com/repos/Pilchie/roslyn/milestones{/number}","notifications_url":"https://api.github.com/repos/Pilchie/roslyn/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Pilchie/roslyn/labels{/name}","releases_url":"https://api.github.com/repos/Pilchie/roslyn/releases{/id}","created_at":"2015-01-15T00:05:23Z","updated_at":"2015-01-15T00:06:02Z","pushed_at":"2015-04-27T18:20:56Z","git_url":"git://github.com/Pilchie/roslyn.git","ssh_url":"git@github.com:Pilchie/roslyn.git","clone_url":"https://github.com/Pilchie/roslyn.git","svn_url":"https://github.com/Pilchie/roslyn","homepage":"","size":68085,"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":"5d3e5f33a6098a20ed90ae946b734c610b52ce37","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-04-28T15:45:34Z","pushed_at":"2015-04-28T15:51:12Z","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":116596,"stargazers_count":2022,"watchers_count":2022,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":436,"mirror_url":null,"open_issues_count":758,"forks":436,"open_issues":758,"watchers":2022,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/dotnet/roslyn/pulls/2277"},"html":{"href":"https://github.com/dotnet/roslyn/pull/2277"},"issue":{"href":"https://api.github.com/repos/dotnet/roslyn/issues/2277"},"comments":{"href":"https://api.github.com/repos/dotnet/roslyn/issues/2277/comments"},"review_comments":{"href":"https://api.github.com/repos/dotnet/roslyn/pulls/2277/comments"},"review_comment":{"href":"https://api.github.com/repos/dotnet/roslyn/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/dotnet/roslyn/pulls/2277/commits"},"statuses":{"href":"https://api.github.com/repos/dotnet/roslyn/statuses/15c857193dc7be566cb537a9b2e6f5af0600da7a"}}}}