{"action":"created","comment":{"url":"https://api.github.com/repos/dotnet/roslyn/pulls/comments/32480085","id":32480085,"diff_hunk":"@@ -534,24 +534,26 @@ private static bool AtEndOfIncompleteStringOrCharLiteral(SyntaxToken token, int\n             }\n \n             var token = syntaxTree.FindTokenOrEndToken(position, cancellationToken);\n-            var text = syntaxTree.GetText(cancellationToken);\n-            var lineContainingPosition = text.Lines.IndexOf(position);\n             if (token.Kind() == SyntaxKind.EndOfFileToken)\n             {\n+                var text = syntaxTree.GetText(cancellationToken);\n+                var lineContainingPosition = text.Lines.IndexOf(position);\n                 var triviaList = token.LeadingTrivia;\n                 foreach (var triviaTok in triviaList.Reverse())\n                 {\n-                    if (triviaTok.HasStructure)\n+                    var triviaLine = text.Lines.IndexOf(triviaTok.SpanStart);\n+                    if (triviaLine <= lineContainingPosition)","path":"src/Workspaces/CSharp/Portable/Extensions/SyntaxTreeExtensions.cs","position":15,"original_position":15,"commit_id":"649960f477edf6133f668523651a05cd6cb54ca7","original_commit_id":"649960f477edf6133f668523651a05cd6cb54ca7","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":"Deliberate change from `<` to `<=`?","created_at":"2015-06-15T23:59:29Z","updated_at":"2015-06-15T23:59:29Z","html_url":"https://github.com/dotnet/roslyn/pull/3515#discussion_r32480085","pull_request_url":"https://api.github.com/repos/dotnet/roslyn/pulls/3515","_links":{"self":{"href":"https://api.github.com/repos/dotnet/roslyn/pulls/comments/32480085"},"html":{"href":"https://github.com/dotnet/roslyn/pull/3515#discussion_r32480085"},"pull_request":{"href":"https://api.github.com/repos/dotnet/roslyn/pulls/3515"}}},"pull_request":{"url":"https://api.github.com/repos/dotnet/roslyn/pulls/3515","id":37742771,"html_url":"https://github.com/dotnet/roslyn/pull/3515","diff_url":"https://github.com/dotnet/roslyn/pull/3515.diff","patch_url":"https://github.com/dotnet/roslyn/pull/3515.patch","issue_url":"https://api.github.com/repos/dotnet/roslyn/issues/3515","number":3515,"state":"open","locked":false,"title":"Address performance of smart indenter at end of file with inactive regions","user":{"login":"pharring","id":9952654,"avatar_url":"https://avatars.githubusercontent.com/u/9952654?v=3","gravatar_id":"","url":"https://api.github.com/users/pharring","html_url":"https://github.com/pharring","followers_url":"https://api.github.com/users/pharring/followers","following_url":"https://api.github.com/users/pharring/following{/other_user}","gists_url":"https://api.github.com/users/pharring/gists{/gist_id}","starred_url":"https://api.github.com/users/pharring/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pharring/subscriptions","organizations_url":"https://api.github.com/users/pharring/orgs","repos_url":"https://api.github.com/users/pharring/repos","events_url":"https://api.github.com/users/pharring/events{/privacy}","received_events_url":"https://api.github.com/users/pharring/received_events","type":"User","site_admin":false},"body":"Customer reported performance issue navigating through a file with lots of inactive regions.","created_at":"2015-06-15T22:33:38Z","updated_at":"2015-06-15T23:59:29Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ab6ff9fc9d5d43cc2821b3efe74f8f596584dcd1","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/dotnet/roslyn/pulls/3515/commits","review_comments_url":"https://api.github.com/repos/dotnet/roslyn/pulls/3515/comments","review_comment_url":"https://api.github.com/repos/dotnet/roslyn/pulls/comments{/number}","comments_url":"https://api.github.com/repos/dotnet/roslyn/issues/3515/comments","statuses_url":"https://api.github.com/repos/dotnet/roslyn/statuses/649960f477edf6133f668523651a05cd6cb54ca7","head":{"label":"pharring:SmartIndentPerf","ref":"SmartIndentPerf","sha":"649960f477edf6133f668523651a05cd6cb54ca7","user":{"login":"pharring","id":9952654,"avatar_url":"https://avatars.githubusercontent.com/u/9952654?v=3","gravatar_id":"","url":"https://api.github.com/users/pharring","html_url":"https://github.com/pharring","followers_url":"https://api.github.com/users/pharring/followers","following_url":"https://api.github.com/users/pharring/following{/other_user}","gists_url":"https://api.github.com/users/pharring/gists{/gist_id}","starred_url":"https://api.github.com/users/pharring/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pharring/subscriptions","organizations_url":"https://api.github.com/users/pharring/orgs","repos_url":"https://api.github.com/users/pharring/repos","events_url":"https://api.github.com/users/pharring/events{/privacy}","received_events_url":"https://api.github.com/users/pharring/received_events","type":"User","site_admin":false},"repo":{"id":30550474,"name":"roslyn","full_name":"pharring/roslyn","owner":{"login":"pharring","id":9952654,"avatar_url":"https://avatars.githubusercontent.com/u/9952654?v=3","gravatar_id":"","url":"https://api.github.com/users/pharring","html_url":"https://github.com/pharring","followers_url":"https://api.github.com/users/pharring/followers","following_url":"https://api.github.com/users/pharring/following{/other_user}","gists_url":"https://api.github.com/users/pharring/gists{/gist_id}","starred_url":"https://api.github.com/users/pharring/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pharring/subscriptions","organizations_url":"https://api.github.com/users/pharring/orgs","repos_url":"https://api.github.com/users/pharring/repos","events_url":"https://api.github.com/users/pharring/events{/privacy}","received_events_url":"https://api.github.com/users/pharring/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/pharring/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/pharring/roslyn","forks_url":"https://api.github.com/repos/pharring/roslyn/forks","keys_url":"https://api.github.com/repos/pharring/roslyn/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pharring/roslyn/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pharring/roslyn/teams","hooks_url":"https://api.github.com/repos/pharring/roslyn/hooks","issue_events_url":"https://api.github.com/repos/pharring/roslyn/issues/events{/number}","events_url":"https://api.github.com/repos/pharring/roslyn/events","assignees_url":"https://api.github.com/repos/pharring/roslyn/assignees{/user}","branches_url":"https://api.github.com/repos/pharring/roslyn/branches{/branch}","tags_url":"https://api.github.com/repos/pharring/roslyn/tags","blobs_url":"https://api.github.com/repos/pharring/roslyn/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pharring/roslyn/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pharring/roslyn/git/refs{/sha}","trees_url":"https://api.github.com/repos/pharring/roslyn/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pharring/roslyn/statuses/{sha}","languages_url":"https://api.github.com/repos/pharring/roslyn/languages","stargazers_url":"https://api.github.com/repos/pharring/roslyn/stargazers","contributors_url":"https://api.github.com/repos/pharring/roslyn/contributors","subscribers_url":"https://api.github.com/repos/pharring/roslyn/subscribers","subscription_url":"https://api.github.com/repos/pharring/roslyn/subscription","commits_url":"https://api.github.com/repos/pharring/roslyn/commits{/sha}","git_commits_url":"https://api.github.com/repos/pharring/roslyn/git/commits{/sha}","comments_url":"https://api.github.com/repos/pharring/roslyn/comments{/number}","issue_comment_url":"https://api.github.com/repos/pharring/roslyn/issues/comments{/number}","contents_url":"https://api.github.com/repos/pharring/roslyn/contents/{+path}","compare_url":"https://api.github.com/repos/pharring/roslyn/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pharring/roslyn/merges","archive_url":"https://api.github.com/repos/pharring/roslyn/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pharring/roslyn/downloads","issues_url":"https://api.github.com/repos/pharring/roslyn/issues{/number}","pulls_url":"https://api.github.com/repos/pharring/roslyn/pulls{/number}","milestones_url":"https://api.github.com/repos/pharring/roslyn/milestones{/number}","notifications_url":"https://api.github.com/repos/pharring/roslyn/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pharring/roslyn/labels{/name}","releases_url":"https://api.github.com/repos/pharring/roslyn/releases{/id}","created_at":"2015-02-09T18:13:42Z","updated_at":"2015-05-08T20:24:08Z","pushed_at":"2015-06-15T22:32:14Z","git_url":"git://github.com/pharring/roslyn.git","ssh_url":"git@github.com:pharring/roslyn.git","clone_url":"https://github.com/pharring/roslyn.git","svn_url":"https://github.com/pharring/roslyn","homepage":"","size":82499,"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":"d1509153fea82b66b717adae8b1ce1bf2332a4f3","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-06-15T21:24:13Z","pushed_at":"2015-06-15T23:42:40Z","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":143060,"stargazers_count":2500,"watchers_count":2500,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":538,"mirror_url":null,"open_issues_count":952,"forks":538,"open_issues":952,"watchers":2500,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/dotnet/roslyn/pulls/3515"},"html":{"href":"https://github.com/dotnet/roslyn/pull/3515"},"issue":{"href":"https://api.github.com/repos/dotnet/roslyn/issues/3515"},"comments":{"href":"https://api.github.com/repos/dotnet/roslyn/issues/3515/comments"},"review_comments":{"href":"https://api.github.com/repos/dotnet/roslyn/pulls/3515/comments"},"review_comment":{"href":"https://api.github.com/repos/dotnet/roslyn/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/dotnet/roslyn/pulls/3515/commits"},"statuses":{"href":"https://api.github.com/repos/dotnet/roslyn/statuses/649960f477edf6133f668523651a05cd6cb54ca7"}}}}