{"action":"created","comment":{"url":"https://api.github.com/repos/dotnet/roslyn/pulls/comments/47136463","id":47136463,"diff_hunk":"@@ -145,6 +146,22 @@ Namespace Microsoft.CodeAnalysis.VisualBasic.Extensions\n             Return trivia.IsKind(SyntaxKind.SkippedTokensTrivia)\n         End Function\n \n+        <Extension()>\n+        Public Function IsGlobalStatementContext(syntaxTree As SyntaxTree, position As Integer, cancellationToken As CancellationToken) As Boolean\n+            If Not syntaxTree.IsInteractiveOrScript() Then\n+                Return False\n+            End If\n+\n+            Dim token As SyntaxToken = syntaxTree.FindTokenOnLeftOfPosition(position, cancellationToken).GetPreviousTokenIfTouchingWord(position)\n+\n+            If token.IsKind(SyntaxKind.None) Then","path":"src/Workspaces/VisualBasic/Portable/Extensions/SyntaxTreeExtensions.vb","position":20,"original_position":20,"commit_id":"ae7bb993ac15d8751f22b41aaf882eec596a3903","original_commit_id":"ae7bb993ac15d8751f22b41aaf882eec596a3903","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":"What case does this address?  It looks like it might be trying to cover BOF, but I'm not sure.","created_at":"2015-12-09T19:10:51Z","updated_at":"2015-12-09T19:10:51Z","html_url":"https://github.com/dotnet/roslyn/pull/7302#discussion_r47136463","pull_request_url":"https://api.github.com/repos/dotnet/roslyn/pulls/7302","_links":{"self":{"href":"https://api.github.com/repos/dotnet/roslyn/pulls/comments/47136463"},"html":{"href":"https://github.com/dotnet/roslyn/pull/7302#discussion_r47136463"},"pull_request":{"href":"https://api.github.com/repos/dotnet/roslyn/pulls/7302"}}},"pull_request":{"url":"https://api.github.com/repos/dotnet/roslyn/pulls/7302","id":52909260,"html_url":"https://github.com/dotnet/roslyn/pull/7302","diff_url":"https://github.com/dotnet/roslyn/pull/7302.diff","patch_url":"https://github.com/dotnet/roslyn/pull/7302.patch","issue_url":"https://api.github.com/repos/dotnet/roslyn/issues/7302","number":7302,"state":"open","locked":false,"title":"Submission completions and intellisense","user":{"login":"drognanar","id":3418274,"avatar_url":"https://avatars.githubusercontent.com/u/3418274?v=3","gravatar_id":"","url":"https://api.github.com/users/drognanar","html_url":"https://github.com/drognanar","followers_url":"https://api.github.com/users/drognanar/followers","following_url":"https://api.github.com/users/drognanar/following{/other_user}","gists_url":"https://api.github.com/users/drognanar/gists{/gist_id}","starred_url":"https://api.github.com/users/drognanar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drognanar/subscriptions","organizations_url":"https://api.github.com/users/drognanar/orgs","repos_url":"https://api.github.com/users/drognanar/repos","events_url":"https://api.github.com/users/drognanar/events{/privacy}","received_events_url":"https://api.github.com/users/drognanar/received_events","type":"User","site_admin":false},"body":"Implements IsSubmissionComplete for Visual Sasic that allows to write multi line statements such as `Function`, `Class`, `Sub`, `#if` statements inside of vbi.\r\n\r\nAdds intellisense support to display suggestions for expressions in top level scope (`Action`, `Console`, `DateTime`, etc...)","created_at":"2015-12-07T22:16:22Z","updated_at":"2015-12-09T19:10:51Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c847684edbdd6d34e6b13cdee537afea953bf9b1","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/dotnet/roslyn/pulls/7302/commits","review_comments_url":"https://api.github.com/repos/dotnet/roslyn/pulls/7302/comments","review_comment_url":"https://api.github.com/repos/dotnet/roslyn/pulls/comments{/number}","comments_url":"https://api.github.com/repos/dotnet/roslyn/issues/7302/comments","statuses_url":"https://api.github.com/repos/dotnet/roslyn/statuses/ae7bb993ac15d8751f22b41aaf882eec596a3903","head":{"label":"drognanar:vbsubmissioncomplete","ref":"vbsubmissioncomplete","sha":"ae7bb993ac15d8751f22b41aaf882eec596a3903","user":{"login":"drognanar","id":3418274,"avatar_url":"https://avatars.githubusercontent.com/u/3418274?v=3","gravatar_id":"","url":"https://api.github.com/users/drognanar","html_url":"https://github.com/drognanar","followers_url":"https://api.github.com/users/drognanar/followers","following_url":"https://api.github.com/users/drognanar/following{/other_user}","gists_url":"https://api.github.com/users/drognanar/gists{/gist_id}","starred_url":"https://api.github.com/users/drognanar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drognanar/subscriptions","organizations_url":"https://api.github.com/users/drognanar/orgs","repos_url":"https://api.github.com/users/drognanar/repos","events_url":"https://api.github.com/users/drognanar/events{/privacy}","received_events_url":"https://api.github.com/users/drognanar/received_events","type":"User","site_admin":false},"repo":{"id":45070113,"name":"roslyn","full_name":"drognanar/roslyn","owner":{"login":"drognanar","id":3418274,"avatar_url":"https://avatars.githubusercontent.com/u/3418274?v=3","gravatar_id":"","url":"https://api.github.com/users/drognanar","html_url":"https://github.com/drognanar","followers_url":"https://api.github.com/users/drognanar/followers","following_url":"https://api.github.com/users/drognanar/following{/other_user}","gists_url":"https://api.github.com/users/drognanar/gists{/gist_id}","starred_url":"https://api.github.com/users/drognanar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drognanar/subscriptions","organizations_url":"https://api.github.com/users/drognanar/orgs","repos_url":"https://api.github.com/users/drognanar/repos","events_url":"https://api.github.com/users/drognanar/events{/privacy}","received_events_url":"https://api.github.com/users/drognanar/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/drognanar/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/drognanar/roslyn","forks_url":"https://api.github.com/repos/drognanar/roslyn/forks","keys_url":"https://api.github.com/repos/drognanar/roslyn/keys{/key_id}","collaborators_url":"https://api.github.com/repos/drognanar/roslyn/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/drognanar/roslyn/teams","hooks_url":"https://api.github.com/repos/drognanar/roslyn/hooks","issue_events_url":"https://api.github.com/repos/drognanar/roslyn/issues/events{/number}","events_url":"https://api.github.com/repos/drognanar/roslyn/events","assignees_url":"https://api.github.com/repos/drognanar/roslyn/assignees{/user}","branches_url":"https://api.github.com/repos/drognanar/roslyn/branches{/branch}","tags_url":"https://api.github.com/repos/drognanar/roslyn/tags","blobs_url":"https://api.github.com/repos/drognanar/roslyn/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/drognanar/roslyn/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/drognanar/roslyn/git/refs{/sha}","trees_url":"https://api.github.com/repos/drognanar/roslyn/git/trees{/sha}","statuses_url":"https://api.github.com/repos/drognanar/roslyn/statuses/{sha}","languages_url":"https://api.github.com/repos/drognanar/roslyn/languages","stargazers_url":"https://api.github.com/repos/drognanar/roslyn/stargazers","contributors_url":"https://api.github.com/repos/drognanar/roslyn/contributors","subscribers_url":"https://api.github.com/repos/drognanar/roslyn/subscribers","subscription_url":"https://api.github.com/repos/drognanar/roslyn/subscription","commits_url":"https://api.github.com/repos/drognanar/roslyn/commits{/sha}","git_commits_url":"https://api.github.com/repos/drognanar/roslyn/git/commits{/sha}","comments_url":"https://api.github.com/repos/drognanar/roslyn/comments{/number}","issue_comment_url":"https://api.github.com/repos/drognanar/roslyn/issues/comments{/number}","contents_url":"https://api.github.com/repos/drognanar/roslyn/contents/{+path}","compare_url":"https://api.github.com/repos/drognanar/roslyn/compare/{base}...{head}","merges_url":"https://api.github.com/repos/drognanar/roslyn/merges","archive_url":"https://api.github.com/repos/drognanar/roslyn/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/drognanar/roslyn/downloads","issues_url":"https://api.github.com/repos/drognanar/roslyn/issues{/number}","pulls_url":"https://api.github.com/repos/drognanar/roslyn/pulls{/number}","milestones_url":"https://api.github.com/repos/drognanar/roslyn/milestones{/number}","notifications_url":"https://api.github.com/repos/drognanar/roslyn/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/drognanar/roslyn/labels{/name}","releases_url":"https://api.github.com/repos/drognanar/roslyn/releases{/id}","created_at":"2015-10-27T21:07:49Z","updated_at":"2015-10-27T21:08:34Z","pushed_at":"2015-12-09T18:07:39Z","git_url":"git://github.com/drognanar/roslyn.git","ssh_url":"git@github.com:drognanar/roslyn.git","clone_url":"https://github.com/drognanar/roslyn.git","svn_url":"https://github.com/drognanar/roslyn","homepage":"","size":121366,"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":"7b5b28e993d272a347243d29c425ce444c6ab779","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-12-09T18:34:40Z","pushed_at":"2015-12-09T18:52:17Z","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":143423,"stargazers_count":3952,"watchers_count":3952,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":969,"mirror_url":null,"open_issues_count":1778,"forks":969,"open_issues":1778,"watchers":3952,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/dotnet/roslyn/pulls/7302"},"html":{"href":"https://github.com/dotnet/roslyn/pull/7302"},"issue":{"href":"https://api.github.com/repos/dotnet/roslyn/issues/7302"},"comments":{"href":"https://api.github.com/repos/dotnet/roslyn/issues/7302/comments"},"review_comments":{"href":"https://api.github.com/repos/dotnet/roslyn/pulls/7302/comments"},"review_comment":{"href":"https://api.github.com/repos/dotnet/roslyn/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/dotnet/roslyn/pulls/7302/commits"},"statuses":{"href":"https://api.github.com/repos/dotnet/roslyn/statuses/ae7bb993ac15d8751f22b41aaf882eec596a3903"}}}}