{"action":"created","comment":{"url":"https://api.github.com/repos/dotnet/roslyn/pulls/comments/42553316","id":42553316,"diff_hunk":"@@ -59,12 +60,20 @@ internal class SyntacticQuickInfoProvider : AbstractQuickInfoProvider\n                 return null;\n             }\n \n-            // If the open brace is the first token of the node (like in the case of a block node or\n-            // an accessor list node), then walk up one higher so we can show more useful context\n-            // (like the method a block belongs to).\n-            if (parent.GetFirstToken() == openBrace)\n+            var spanStart = parent.SpanStart;\n+            var spanEnd = openBrace.Span.End;\n+\n+            // If the parent is a scope block, check and include nearby comments around the open brace","path":"src/EditorFeatures/CSharp/QuickInfo/SyntacticQuickInfoProvider.cs","position":18,"original_position":18,"commit_id":"afe76d15fe727911b3f5f3d7933ce9f55ec5576e","original_commit_id":"afe76d15fe727911b3f5f3d7933ce9f55ec5576e","user":{"login":"amcasey","id":10508071,"avatar_url":"https://avatars.githubusercontent.com/u/10508071?v=3","gravatar_id":"","url":"https://api.github.com/users/amcasey","html_url":"https://github.com/amcasey","followers_url":"https://api.github.com/users/amcasey/followers","following_url":"https://api.github.com/users/amcasey/following{/other_user}","gists_url":"https://api.github.com/users/amcasey/gists{/gist_id}","starred_url":"https://api.github.com/users/amcasey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amcasey/subscriptions","organizations_url":"https://api.github.com/users/amcasey/orgs","repos_url":"https://api.github.com/users/amcasey/repos","events_url":"https://api.github.com/users/amcasey/events{/privacy}","received_events_url":"https://api.github.com/users/amcasey/received_events","type":"User","site_admin":false},"body":"Assuming that \"floating\" means \"top-level\", yes I believe they're allowed in ```SourceCodeKind.Script```.  @tmat can confirm (or you could try it :)).","created_at":"2015-10-20T20:58:44Z","updated_at":"2015-10-20T20:58:44Z","html_url":"https://github.com/dotnet/roslyn/pull/6062#discussion_r42553316","pull_request_url":"https://api.github.com/repos/dotnet/roslyn/pulls/6062","_links":{"self":{"href":"https://api.github.com/repos/dotnet/roslyn/pulls/comments/42553316"},"html":{"href":"https://github.com/dotnet/roslyn/pull/6062#discussion_r42553316"},"pull_request":{"href":"https://api.github.com/repos/dotnet/roslyn/pulls/6062"}}},"pull_request":{"url":"https://api.github.com/repos/dotnet/roslyn/pulls/6062","id":47877603,"html_url":"https://github.com/dotnet/roslyn/pull/6062","diff_url":"https://github.com/dotnet/roslyn/pull/6062.diff","patch_url":"https://github.com/dotnet/roslyn/pull/6062.patch","issue_url":"https://api.github.com/repos/dotnet/roslyn/issues/6062","number":6062,"state":"open","locked":false,"title":"Show nearby comments in QuickInfo for scope blocks.","user":{"login":"diryboy","id":159110,"avatar_url":"https://avatars.githubusercontent.com/u/159110?v=3","gravatar_id":"","url":"https://api.github.com/users/diryboy","html_url":"https://github.com/diryboy","followers_url":"https://api.github.com/users/diryboy/followers","following_url":"https://api.github.com/users/diryboy/following{/other_user}","gists_url":"https://api.github.com/users/diryboy/gists{/gist_id}","starred_url":"https://api.github.com/users/diryboy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/diryboy/subscriptions","organizations_url":"https://api.github.com/users/diryboy/orgs","repos_url":"https://api.github.com/users/diryboy/repos","events_url":"https://api.github.com/users/diryboy/events{/privacy}","received_events_url":"https://api.github.com/users/diryboy/received_events","type":"User","site_admin":false},"body":"Fixes #325","created_at":"2015-10-16T07:11:46Z","updated_at":"2015-10-20T20:58:44Z","closed_at":null,"merged_at":null,"merge_commit_sha":"961aff7b058b3c360e6d81c68042b07a34b02dcf","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/dotnet/roslyn/pulls/6062/commits","review_comments_url":"https://api.github.com/repos/dotnet/roslyn/pulls/6062/comments","review_comment_url":"https://api.github.com/repos/dotnet/roslyn/pulls/comments{/number}","comments_url":"https://api.github.com/repos/dotnet/roslyn/issues/6062/comments","statuses_url":"https://api.github.com/repos/dotnet/roslyn/statuses/afe76d15fe727911b3f5f3d7933ce9f55ec5576e","head":{"label":"diryboy:FixQuickInfoForScopeBlocks","ref":"FixQuickInfoForScopeBlocks","sha":"afe76d15fe727911b3f5f3d7933ce9f55ec5576e","user":{"login":"diryboy","id":159110,"avatar_url":"https://avatars.githubusercontent.com/u/159110?v=3","gravatar_id":"","url":"https://api.github.com/users/diryboy","html_url":"https://github.com/diryboy","followers_url":"https://api.github.com/users/diryboy/followers","following_url":"https://api.github.com/users/diryboy/following{/other_user}","gists_url":"https://api.github.com/users/diryboy/gists{/gist_id}","starred_url":"https://api.github.com/users/diryboy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/diryboy/subscriptions","organizations_url":"https://api.github.com/users/diryboy/orgs","repos_url":"https://api.github.com/users/diryboy/repos","events_url":"https://api.github.com/users/diryboy/events{/privacy}","received_events_url":"https://api.github.com/users/diryboy/received_events","type":"User","site_admin":false},"repo":{"id":39498532,"name":"roslyn","full_name":"diryboy/roslyn","owner":{"login":"diryboy","id":159110,"avatar_url":"https://avatars.githubusercontent.com/u/159110?v=3","gravatar_id":"","url":"https://api.github.com/users/diryboy","html_url":"https://github.com/diryboy","followers_url":"https://api.github.com/users/diryboy/followers","following_url":"https://api.github.com/users/diryboy/following{/other_user}","gists_url":"https://api.github.com/users/diryboy/gists{/gist_id}","starred_url":"https://api.github.com/users/diryboy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/diryboy/subscriptions","organizations_url":"https://api.github.com/users/diryboy/orgs","repos_url":"https://api.github.com/users/diryboy/repos","events_url":"https://api.github.com/users/diryboy/events{/privacy}","received_events_url":"https://api.github.com/users/diryboy/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/diryboy/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/diryboy/roslyn","forks_url":"https://api.github.com/repos/diryboy/roslyn/forks","keys_url":"https://api.github.com/repos/diryboy/roslyn/keys{/key_id}","collaborators_url":"https://api.github.com/repos/diryboy/roslyn/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/diryboy/roslyn/teams","hooks_url":"https://api.github.com/repos/diryboy/roslyn/hooks","issue_events_url":"https://api.github.com/repos/diryboy/roslyn/issues/events{/number}","events_url":"https://api.github.com/repos/diryboy/roslyn/events","assignees_url":"https://api.github.com/repos/diryboy/roslyn/assignees{/user}","branches_url":"https://api.github.com/repos/diryboy/roslyn/branches{/branch}","tags_url":"https://api.github.com/repos/diryboy/roslyn/tags","blobs_url":"https://api.github.com/repos/diryboy/roslyn/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/diryboy/roslyn/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/diryboy/roslyn/git/refs{/sha}","trees_url":"https://api.github.com/repos/diryboy/roslyn/git/trees{/sha}","statuses_url":"https://api.github.com/repos/diryboy/roslyn/statuses/{sha}","languages_url":"https://api.github.com/repos/diryboy/roslyn/languages","stargazers_url":"https://api.github.com/repos/diryboy/roslyn/stargazers","contributors_url":"https://api.github.com/repos/diryboy/roslyn/contributors","subscribers_url":"https://api.github.com/repos/diryboy/roslyn/subscribers","subscription_url":"https://api.github.com/repos/diryboy/roslyn/subscription","commits_url":"https://api.github.com/repos/diryboy/roslyn/commits{/sha}","git_commits_url":"https://api.github.com/repos/diryboy/roslyn/git/commits{/sha}","comments_url":"https://api.github.com/repos/diryboy/roslyn/comments{/number}","issue_comment_url":"https://api.github.com/repos/diryboy/roslyn/issues/comments{/number}","contents_url":"https://api.github.com/repos/diryboy/roslyn/contents/{+path}","compare_url":"https://api.github.com/repos/diryboy/roslyn/compare/{base}...{head}","merges_url":"https://api.github.com/repos/diryboy/roslyn/merges","archive_url":"https://api.github.com/repos/diryboy/roslyn/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/diryboy/roslyn/downloads","issues_url":"https://api.github.com/repos/diryboy/roslyn/issues{/number}","pulls_url":"https://api.github.com/repos/diryboy/roslyn/pulls{/number}","milestones_url":"https://api.github.com/repos/diryboy/roslyn/milestones{/number}","notifications_url":"https://api.github.com/repos/diryboy/roslyn/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/diryboy/roslyn/labels{/name}","releases_url":"https://api.github.com/repos/diryboy/roslyn/releases{/id}","created_at":"2015-07-22T09:50:45Z","updated_at":"2015-07-22T09:51:16Z","pushed_at":"2015-10-20T03:07:42Z","git_url":"git://github.com/diryboy/roslyn.git","ssh_url":"git@github.com:diryboy/roslyn.git","clone_url":"https://github.com/diryboy/roslyn.git","svn_url":"https://github.com/diryboy/roslyn","homepage":"","size":104370,"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":"46840ea705883d7ea2c04e62d32d53170f1acad6","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-20T17:45:18Z","pushed_at":"2015-10-20T20:29:44Z","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":213005,"stargazers_count":3546,"watchers_count":3546,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":830,"mirror_url":null,"open_issues_count":1548,"forks":830,"open_issues":1548,"watchers":3546,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/dotnet/roslyn/pulls/6062"},"html":{"href":"https://github.com/dotnet/roslyn/pull/6062"},"issue":{"href":"https://api.github.com/repos/dotnet/roslyn/issues/6062"},"comments":{"href":"https://api.github.com/repos/dotnet/roslyn/issues/6062/comments"},"review_comments":{"href":"https://api.github.com/repos/dotnet/roslyn/pulls/6062/comments"},"review_comment":{"href":"https://api.github.com/repos/dotnet/roslyn/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/dotnet/roslyn/pulls/6062/commits"},"statuses":{"href":"https://api.github.com/repos/dotnet/roslyn/statuses/afe76d15fe727911b3f5f3d7933ce9f55ec5576e"}}}}