{"action":"created","issue":{"url":"https://api.github.com/repos/apple/swift/issues/11564","repository_url":"https://api.github.com/repos/apple/swift","labels_url":"https://api.github.com/repos/apple/swift/issues/11564/labels{/name}","comments_url":"https://api.github.com/repos/apple/swift/issues/11564/comments","events_url":"https://api.github.com/repos/apple/swift/issues/11564/events","html_url":"https://github.com/apple/swift/pull/11564","id":252075517,"number":11564,"title":"[code-completion] Add Bool type context for if/guard/while conditions","user":{"login":"benlangmuir","id":3412956,"avatar_url":"https://avatars2.githubusercontent.com/u/3412956?v=4","gravatar_id":"","url":"https://api.github.com/users/benlangmuir","html_url":"https://github.com/benlangmuir","followers_url":"https://api.github.com/users/benlangmuir/followers","following_url":"https://api.github.com/users/benlangmuir/following{/other_user}","gists_url":"https://api.github.com/users/benlangmuir/gists{/gist_id}","starred_url":"https://api.github.com/users/benlangmuir/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benlangmuir/subscriptions","organizations_url":"https://api.github.com/users/benlangmuir/orgs","repos_url":"https://api.github.com/users/benlangmuir/repos","events_url":"https://api.github.com/users/benlangmuir/events{/privacy}","received_events_url":"https://api.github.com/users/benlangmuir/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2017-08-22T20:13:29Z","updated_at":"2017-08-23T00:03:24Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/apple/swift/pulls/11564","html_url":"https://github.com/apple/swift/pull/11564","diff_url":"https://github.com/apple/swift/pull/11564.diff","patch_url":"https://github.com/apple/swift/pull/11564.patch"},"body":"* Explanation: This adds a type context of `Bool` when code-completing in an `if/guard/while` statement condition (not including conditions that are bindings).\r\n* Scope: Affects priority of code-completions in boolean conditions on if/while/guard statements.\r\n* Radar: rdar://problem/26509084\r\n* Risk: Low; just extends existing code-completion type-relation code that we had for `repeat ... while` to consider more statement kinds.\r\n* Testing: Regression tests added."},"comment":{"url":"https://api.github.com/repos/apple/swift/issues/comments/324184161","html_url":"https://github.com/apple/swift/pull/11564#issuecomment-324184161","issue_url":"https://api.github.com/repos/apple/swift/issues/11564","id":324184161,"user":{"login":"benlangmuir","id":3412956,"avatar_url":"https://avatars2.githubusercontent.com/u/3412956?v=4","gravatar_id":"","url":"https://api.github.com/users/benlangmuir","html_url":"https://github.com/benlangmuir","followers_url":"https://api.github.com/users/benlangmuir/followers","following_url":"https://api.github.com/users/benlangmuir/following{/other_user}","gists_url":"https://api.github.com/users/benlangmuir/gists{/gist_id}","starred_url":"https://api.github.com/users/benlangmuir/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benlangmuir/subscriptions","organizations_url":"https://api.github.com/users/benlangmuir/orgs","repos_url":"https://api.github.com/users/benlangmuir/repos","events_url":"https://api.github.com/users/benlangmuir/events{/privacy}","received_events_url":"https://api.github.com/users/benlangmuir/received_events","type":"User","site_admin":false},"created_at":"2017-08-23T00:03:24Z","updated_at":"2017-08-23T00:03:24Z","body":"Aha, this had a dependency on https://github.com/apple/swift/pull/11562 that I didn't realize.  The parser change there is necessary or we just throw out the whole condition.  I'll rebase the PR since that was just merged."}}
{"actor":{"display_login":"benlangmuir"}}