{"action":"created","comment":{"url":"https://api.github.com/repos/xamarin/xamarin-macios/pulls/comments/63420572","id":63420572,"diff_hunk":"@@ -0,0 +1,27 @@\n+using System;\n+using System.Runtime.InteropServices;\n+\n+namespace XamCore.Foundation {\n+\n+\tpublic partial class NSExpression {\n+\t\tbool hasFunction = false;","path":"src/Foundation/NSExpression.cs","position":7,"original_position":7,"commit_id":"05dcd9b8fc7e5dd23f799dbdbd9fe733f0dfe38b","original_commit_id":"05dcd9b8fc7e5dd23f799dbdbd9fe733f0dfe38b","user":{"login":"spouliot","id":260465,"avatar_url":"https://avatars.githubusercontent.com/u/260465?v=3","gravatar_id":"","url":"https://api.github.com/users/spouliot","html_url":"https://github.com/spouliot","followers_url":"https://api.github.com/users/spouliot/followers","following_url":"https://api.github.com/users/spouliot/following{/other_user}","gists_url":"https://api.github.com/users/spouliot/gists{/gist_id}","starred_url":"https://api.github.com/users/spouliot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spouliot/subscriptions","organizations_url":"https://api.github.com/users/spouliot/orgs","repos_url":"https://api.github.com/users/spouliot/repos","events_url":"https://api.github.com/users/spouliot/events{/privacy}","received_events_url":"https://api.github.com/users/spouliot/received_events","type":"User","site_admin":false},"body":"The problem with managed state is that it might not be set if the instance is surfaced from native code, i.e. when using the `.ctor(IntPtr)`. In that case it would mean the `Block` would be `null` when it should not be.\r\n\r\nFrom your commit message I assume that calling `Block` crash unless there's one ?","created_at":"2016-05-16T20:35:39Z","updated_at":"2016-05-16T20:35:39Z","html_url":"https://github.com/xamarin/xamarin-macios/pull/57#discussion_r63420572","pull_request_url":"https://api.github.com/repos/xamarin/xamarin-macios/pulls/57","_links":{"self":{"href":"https://api.github.com/repos/xamarin/xamarin-macios/pulls/comments/63420572"},"html":{"href":"https://github.com/xamarin/xamarin-macios/pull/57#discussion_r63420572"},"pull_request":{"href":"https://api.github.com/repos/xamarin/xamarin-macios/pulls/57"}}},"pull_request":{"url":"https://api.github.com/repos/xamarin/xamarin-macios/pulls/57","id":70223471,"html_url":"https://github.com/xamarin/xamarin-macios/pull/57","diff_url":"https://github.com/xamarin/xamarin-macios/pull/57.diff","patch_url":"https://github.com/xamarin/xamarin-macios/pull/57.patch","issue_url":"https://api.github.com/repos/xamarin/xamarin-macios/issues/57","number":57,"state":"open","locked":false,"title":"[Fix] Add missing selectors for NSExpression.","user":{"login":"mandel-macaque","id":2190086,"avatar_url":"https://avatars.githubusercontent.com/u/2190086?v=3","gravatar_id":"","url":"https://api.github.com/users/mandel-macaque","html_url":"https://github.com/mandel-macaque","followers_url":"https://api.github.com/users/mandel-macaque/followers","following_url":"https://api.github.com/users/mandel-macaque/following{/other_user}","gists_url":"https://api.github.com/users/mandel-macaque/gists{/gist_id}","starred_url":"https://api.github.com/users/mandel-macaque/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mandel-macaque/subscriptions","organizations_url":"https://api.github.com/users/mandel-macaque/orgs","repos_url":"https://api.github.com/users/mandel-macaque/repos","events_url":"https://api.github.com/users/mandel-macaque/events{/privacy}","received_events_url":"https://api.github.com/users/mandel-macaque/received_events","type":"User","site_admin":false},"body":"Added the missing static factory methods and the missing property. In\r\norder to give a clean API a new flag was added to the NSExpression class\r\nto track if the Block property does return a block or a null ptr. The\r\nidea is to avoid user from seeing an obj-c exception.\r\n\r\nThis commit fixes bug #35012:\r\n\r\nhttps://bugzilla.xamarin.com/show_bug.cgi?id=35012","created_at":"2016-05-16T16:37:20Z","updated_at":"2016-05-16T20:35:39Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2080115e7f7db5cf8a4ddf3cfb0e1b1d1826b30e","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/xamarin/xamarin-macios/pulls/57/commits","review_comments_url":"https://api.github.com/repos/xamarin/xamarin-macios/pulls/57/comments","review_comment_url":"https://api.github.com/repos/xamarin/xamarin-macios/pulls/comments{/number}","comments_url":"https://api.github.com/repos/xamarin/xamarin-macios/issues/57/comments","statuses_url":"https://api.github.com/repos/xamarin/xamarin-macios/statuses/05dcd9b8fc7e5dd23f799dbdbd9fe733f0dfe38b","head":{"label":"mandel-macaque:bug-35012","ref":"bug-35012","sha":"05dcd9b8fc7e5dd23f799dbdbd9fe733f0dfe38b","user":{"login":"mandel-macaque","id":2190086,"avatar_url":"https://avatars.githubusercontent.com/u/2190086?v=3","gravatar_id":"","url":"https://api.github.com/users/mandel-macaque","html_url":"https://github.com/mandel-macaque","followers_url":"https://api.github.com/users/mandel-macaque/followers","following_url":"https://api.github.com/users/mandel-macaque/following{/other_user}","gists_url":"https://api.github.com/users/mandel-macaque/gists{/gist_id}","starred_url":"https://api.github.com/users/mandel-macaque/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mandel-macaque/subscriptions","organizations_url":"https://api.github.com/users/mandel-macaque/orgs","repos_url":"https://api.github.com/users/mandel-macaque/repos","events_url":"https://api.github.com/users/mandel-macaque/events{/privacy}","received_events_url":"https://api.github.com/users/mandel-macaque/received_events","type":"User","site_admin":false},"repo":{"id":57903038,"name":"xamarin-macios","full_name":"mandel-macaque/xamarin-macios","owner":{"login":"mandel-macaque","id":2190086,"avatar_url":"https://avatars.githubusercontent.com/u/2190086?v=3","gravatar_id":"","url":"https://api.github.com/users/mandel-macaque","html_url":"https://github.com/mandel-macaque","followers_url":"https://api.github.com/users/mandel-macaque/followers","following_url":"https://api.github.com/users/mandel-macaque/following{/other_user}","gists_url":"https://api.github.com/users/mandel-macaque/gists{/gist_id}","starred_url":"https://api.github.com/users/mandel-macaque/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mandel-macaque/subscriptions","organizations_url":"https://api.github.com/users/mandel-macaque/orgs","repos_url":"https://api.github.com/users/mandel-macaque/repos","events_url":"https://api.github.com/users/mandel-macaque/events{/privacy}","received_events_url":"https://api.github.com/users/mandel-macaque/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mandel-macaque/xamarin-macios","description":"Bridges the worlds of .NET with the native APIs of Mac, iOS, tvOS, and watchOS.","fork":true,"url":"https://api.github.com/repos/mandel-macaque/xamarin-macios","forks_url":"https://api.github.com/repos/mandel-macaque/xamarin-macios/forks","keys_url":"https://api.github.com/repos/mandel-macaque/xamarin-macios/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mandel-macaque/xamarin-macios/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mandel-macaque/xamarin-macios/teams","hooks_url":"https://api.github.com/repos/mandel-macaque/xamarin-macios/hooks","issue_events_url":"https://api.github.com/repos/mandel-macaque/xamarin-macios/issues/events{/number}","events_url":"https://api.github.com/repos/mandel-macaque/xamarin-macios/events","assignees_url":"https://api.github.com/repos/mandel-macaque/xamarin-macios/assignees{/user}","branches_url":"https://api.github.com/repos/mandel-macaque/xamarin-macios/branches{/branch}","tags_url":"https://api.github.com/repos/mandel-macaque/xamarin-macios/tags","blobs_url":"https://api.github.com/repos/mandel-macaque/xamarin-macios/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mandel-macaque/xamarin-macios/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mandel-macaque/xamarin-macios/git/refs{/sha}","trees_url":"https://api.github.com/repos/mandel-macaque/xamarin-macios/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mandel-macaque/xamarin-macios/statuses/{sha}","languages_url":"https://api.github.com/repos/mandel-macaque/xamarin-macios/languages","stargazers_url":"https://api.github.com/repos/mandel-macaque/xamarin-macios/stargazers","contributors_url":"https://api.github.com/repos/mandel-macaque/xamarin-macios/contributors","subscribers_url":"https://api.github.com/repos/mandel-macaque/xamarin-macios/subscribers","subscription_url":"https://api.github.com/repos/mandel-macaque/xamarin-macios/subscription","commits_url":"https://api.github.com/repos/mandel-macaque/xamarin-macios/commits{/sha}","git_commits_url":"https://api.github.com/repos/mandel-macaque/xamarin-macios/git/commits{/sha}","comments_url":"https://api.github.com/repos/mandel-macaque/xamarin-macios/comments{/number}","issue_comment_url":"https://api.github.com/repos/mandel-macaque/xamarin-macios/issues/comments{/number}","contents_url":"https://api.github.com/repos/mandel-macaque/xamarin-macios/contents/{+path}","compare_url":"https://api.github.com/repos/mandel-macaque/xamarin-macios/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mandel-macaque/xamarin-macios/merges","archive_url":"https://api.github.com/repos/mandel-macaque/xamarin-macios/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mandel-macaque/xamarin-macios/downloads","issues_url":"https://api.github.com/repos/mandel-macaque/xamarin-macios/issues{/number}","pulls_url":"https://api.github.com/repos/mandel-macaque/xamarin-macios/pulls{/number}","milestones_url":"https://api.github.com/repos/mandel-macaque/xamarin-macios/milestones{/number}","notifications_url":"https://api.github.com/repos/mandel-macaque/xamarin-macios/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mandel-macaque/xamarin-macios/labels{/name}","releases_url":"https://api.github.com/repos/mandel-macaque/xamarin-macios/releases{/id}","deployments_url":"https://api.github.com/repos/mandel-macaque/xamarin-macios/deployments","created_at":"2016-05-02T16:14:33Z","updated_at":"2016-05-02T16:14:40Z","pushed_at":"2016-05-16T20:23:07Z","git_url":"git://github.com/mandel-macaque/xamarin-macios.git","ssh_url":"git@github.com:mandel-macaque/xamarin-macios.git","clone_url":"https://github.com/mandel-macaque/xamarin-macios.git","svn_url":"https://github.com/mandel-macaque/xamarin-macios","homepage":null,"size":13286,"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":"xamarin:master","ref":"master","sha":"7890768bc0db709948045da6e81d297d619efb84","user":{"login":"xamarin","id":790012,"avatar_url":"https://avatars.githubusercontent.com/u/790012?v=3","gravatar_id":"","url":"https://api.github.com/users/xamarin","html_url":"https://github.com/xamarin","followers_url":"https://api.github.com/users/xamarin/followers","following_url":"https://api.github.com/users/xamarin/following{/other_user}","gists_url":"https://api.github.com/users/xamarin/gists{/gist_id}","starred_url":"https://api.github.com/users/xamarin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xamarin/subscriptions","organizations_url":"https://api.github.com/users/xamarin/orgs","repos_url":"https://api.github.com/users/xamarin/repos","events_url":"https://api.github.com/users/xamarin/events{/privacy}","received_events_url":"https://api.github.com/users/xamarin/received_events","type":"Organization","site_admin":false},"repo":{"id":56710511,"name":"xamarin-macios","full_name":"xamarin/xamarin-macios","owner":{"login":"xamarin","id":790012,"avatar_url":"https://avatars.githubusercontent.com/u/790012?v=3","gravatar_id":"","url":"https://api.github.com/users/xamarin","html_url":"https://github.com/xamarin","followers_url":"https://api.github.com/users/xamarin/followers","following_url":"https://api.github.com/users/xamarin/following{/other_user}","gists_url":"https://api.github.com/users/xamarin/gists{/gist_id}","starred_url":"https://api.github.com/users/xamarin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xamarin/subscriptions","organizations_url":"https://api.github.com/users/xamarin/orgs","repos_url":"https://api.github.com/users/xamarin/repos","events_url":"https://api.github.com/users/xamarin/events{/privacy}","received_events_url":"https://api.github.com/users/xamarin/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/xamarin/xamarin-macios","description":"Bridges the worlds of .NET with the native APIs of Mac, iOS, tvOS, and watchOS.","fork":false,"url":"https://api.github.com/repos/xamarin/xamarin-macios","forks_url":"https://api.github.com/repos/xamarin/xamarin-macios/forks","keys_url":"https://api.github.com/repos/xamarin/xamarin-macios/keys{/key_id}","collaborators_url":"https://api.github.com/repos/xamarin/xamarin-macios/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/xamarin/xamarin-macios/teams","hooks_url":"https://api.github.com/repos/xamarin/xamarin-macios/hooks","issue_events_url":"https://api.github.com/repos/xamarin/xamarin-macios/issues/events{/number}","events_url":"https://api.github.com/repos/xamarin/xamarin-macios/events","assignees_url":"https://api.github.com/repos/xamarin/xamarin-macios/assignees{/user}","branches_url":"https://api.github.com/repos/xamarin/xamarin-macios/branches{/branch}","tags_url":"https://api.github.com/repos/xamarin/xamarin-macios/tags","blobs_url":"https://api.github.com/repos/xamarin/xamarin-macios/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/xamarin/xamarin-macios/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/xamarin/xamarin-macios/git/refs{/sha}","trees_url":"https://api.github.com/repos/xamarin/xamarin-macios/git/trees{/sha}","statuses_url":"https://api.github.com/repos/xamarin/xamarin-macios/statuses/{sha}","languages_url":"https://api.github.com/repos/xamarin/xamarin-macios/languages","stargazers_url":"https://api.github.com/repos/xamarin/xamarin-macios/stargazers","contributors_url":"https://api.github.com/repos/xamarin/xamarin-macios/contributors","subscribers_url":"https://api.github.com/repos/xamarin/xamarin-macios/subscribers","subscription_url":"https://api.github.com/repos/xamarin/xamarin-macios/subscription","commits_url":"https://api.github.com/repos/xamarin/xamarin-macios/commits{/sha}","git_commits_url":"https://api.github.com/repos/xamarin/xamarin-macios/git/commits{/sha}","comments_url":"https://api.github.com/repos/xamarin/xamarin-macios/comments{/number}","issue_comment_url":"https://api.github.com/repos/xamarin/xamarin-macios/issues/comments{/number}","contents_url":"https://api.github.com/repos/xamarin/xamarin-macios/contents/{+path}","compare_url":"https://api.github.com/repos/xamarin/xamarin-macios/compare/{base}...{head}","merges_url":"https://api.github.com/repos/xamarin/xamarin-macios/merges","archive_url":"https://api.github.com/repos/xamarin/xamarin-macios/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/xamarin/xamarin-macios/downloads","issues_url":"https://api.github.com/repos/xamarin/xamarin-macios/issues{/number}","pulls_url":"https://api.github.com/repos/xamarin/xamarin-macios/pulls{/number}","milestones_url":"https://api.github.com/repos/xamarin/xamarin-macios/milestones{/number}","notifications_url":"https://api.github.com/repos/xamarin/xamarin-macios/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/xamarin/xamarin-macios/labels{/name}","releases_url":"https://api.github.com/repos/xamarin/xamarin-macios/releases{/id}","deployments_url":"https://api.github.com/repos/xamarin/xamarin-macios/deployments","created_at":"2016-04-20T18:24:26Z","updated_at":"2016-05-16T08:05:57Z","pushed_at":"2016-05-16T20:23:07Z","git_url":"git://github.com/xamarin/xamarin-macios.git","ssh_url":"git@github.com:xamarin/xamarin-macios.git","clone_url":"https://github.com/xamarin/xamarin-macios.git","svn_url":"https://github.com/xamarin/xamarin-macios","homepage":null,"size":13531,"stargazers_count":545,"watchers_count":545,"language":"C#","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":71,"mirror_url":null,"open_issues_count":9,"forks":71,"open_issues":9,"watchers":545,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/xamarin/xamarin-macios/pulls/57"},"html":{"href":"https://github.com/xamarin/xamarin-macios/pull/57"},"issue":{"href":"https://api.github.com/repos/xamarin/xamarin-macios/issues/57"},"comments":{"href":"https://api.github.com/repos/xamarin/xamarin-macios/issues/57/comments"},"review_comments":{"href":"https://api.github.com/repos/xamarin/xamarin-macios/pulls/57/comments"},"review_comment":{"href":"https://api.github.com/repos/xamarin/xamarin-macios/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/xamarin/xamarin-macios/pulls/57/commits"},"statuses":{"href":"https://api.github.com/repos/xamarin/xamarin-macios/statuses/05dcd9b8fc7e5dd23f799dbdbd9fe733f0dfe38b"}}}}