{"action":"created","comment":{"url":"https://api.github.com/repos/facebook/remodel/pulls/comments/80851606","pull_request_review_id":1654174,"id":80851606,"diff_hunk":"@@ -243,14 +243,77 @@ function enumerationIsPublic(isPublic:boolean):(enumeration:ObjC.Enumeration) =>\n   };\n }\n \n+const NS_ASSUME_NONNULL_BEGIN:string = 'NS_ASSUME_NONNULL_BEGIN';\n+const NS_ASSUME_NONNULL_END:string = 'NS_ASSUME_NONNULL_END';\n+\n+function prefixClassMacros(classInfo:ObjC.Class):string[] {\n+  var macros:string[] = [];\n+  switch (classInfo.nullability) {\n+    case ObjC.ClassNullability.assumeNonnull:\n+      macros.push(NS_ASSUME_NONNULL_BEGIN);\n+      break;\n+    case ObjC.ClassNullability.default:\n+      break;\n+  }\n+  return macros;\n+}\n+\n+function postfixClassMacros(classInfo:ObjC.Class):string[] {\n+  var macros:string[] = [];\n+  switch (classInfo.nullability) {\n+    case ObjC.ClassNullability.assumeNonnull:\n+      macros.push(NS_ASSUME_NONNULL_END);\n+      break;\n+    case ObjC.ClassNullability.default:\n+      break;\n+  }\n+  return macros;\n+}\n+\n+function prefixBlockTypeMacros(blockType:ObjC.BlockType):string[] {\n+  var macros:string[] = [];\n+  switch (blockType.nullability) {\n+    case ObjC.ClassNullability.assumeNonnull:\n+      macros.push(NS_ASSUME_NONNULL_BEGIN);\n+      break;\n+    case ObjC.ClassNullability.default:\n+      break;\n+  }\n+  return macros;\n+}\n+\n+function postfixBlockTypeMacros(blockType:ObjC.BlockType):string[] {\n+  var macros:string[] = [];\n+  switch (blockType.nullability) {\n+    case ObjC.ClassNullability.assumeNonnull:\n+      macros.push(NS_ASSUME_NONNULL_END);","path":"src/objc-renderer.ts","position":47,"original_position":47,"commit_id":"64850ffa17683458f98704802e78925aaff01181","original_commit_id":"64850ffa17683458f98704802e78925aaff01181","user":{"login":"ColinCampbell","id":142777,"avatar_url":"https://avatars.githubusercontent.com/u/142777?v=3","gravatar_id":"","url":"https://api.github.com/users/ColinCampbell","html_url":"https://github.com/ColinCampbell","followers_url":"https://api.github.com/users/ColinCampbell/followers","following_url":"https://api.github.com/users/ColinCampbell/following{/other_user}","gists_url":"https://api.github.com/users/ColinCampbell/gists{/gist_id}","starred_url":"https://api.github.com/users/ColinCampbell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ColinCampbell/subscriptions","organizations_url":"https://api.github.com/users/ColinCampbell/orgs","repos_url":"https://api.github.com/users/ColinCampbell/repos","events_url":"https://api.github.com/users/ColinCampbell/events{/privacy}","received_events_url":"https://api.github.com/users/ColinCampbell/received_events","type":"User","site_admin":false},"body":"Samesies","created_at":"2016-09-28T06:44:22Z","updated_at":"2016-09-28T06:48:59Z","html_url":"https://github.com/facebook/remodel/pull/17#discussion_r80851606","pull_request_url":"https://api.github.com/repos/facebook/remodel/pulls/17","_links":{"self":{"href":"https://api.github.com/repos/facebook/remodel/pulls/comments/80851606"},"html":{"href":"https://github.com/facebook/remodel/pull/17#discussion_r80851606"},"pull_request":{"href":"https://api.github.com/repos/facebook/remodel/pulls/17"}}},"pull_request":{"url":"https://api.github.com/repos/facebook/remodel/pulls/17","id":84774191,"html_url":"https://github.com/facebook/remodel/pull/17","diff_url":"https://github.com/facebook/remodel/pull/17.diff","patch_url":"https://github.com/facebook/remodel/pull/17.patch","issue_url":"https://api.github.com/repos/facebook/remodel/issues/17","number":17,"state":"open","locked":false,"title":"Added plugin to to decorate output files with `NS_ASSUME_NONNULL_*` macros.","user":{"login":"GotEmB","id":760500,"avatar_url":"https://avatars.githubusercontent.com/u/760500?v=3","gravatar_id":"","url":"https://api.github.com/users/GotEmB","html_url":"https://github.com/GotEmB","followers_url":"https://api.github.com/users/GotEmB/followers","following_url":"https://api.github.com/users/GotEmB/following{/other_user}","gists_url":"https://api.github.com/users/GotEmB/gists{/gist_id}","starred_url":"https://api.github.com/users/GotEmB/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GotEmB/subscriptions","organizations_url":"https://api.github.com/users/GotEmB/orgs","repos_url":"https://api.github.com/users/GotEmB/repos","events_url":"https://api.github.com/users/GotEmB/events{/privacy}","received_events_url":"https://api.github.com/users/GotEmB/received_events","type":"User","site_admin":false},"body":"This PR adds a plugin, which when required will decorate your value object's interface and implementation with the `NS_ASSUME_NONNULL_BEGIN` and `NS_ASSUME_NONNULL_END` macros.","created_at":"2016-09-11T01:58:54Z","updated_at":"2016-09-28T06:48:59Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5e91682521a6cac7198e08c15be6a0590b58378e","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/facebook/remodel/pulls/17/commits","review_comments_url":"https://api.github.com/repos/facebook/remodel/pulls/17/comments","review_comment_url":"https://api.github.com/repos/facebook/remodel/pulls/comments{/number}","comments_url":"https://api.github.com/repos/facebook/remodel/issues/17/comments","statuses_url":"https://api.github.com/repos/facebook/remodel/statuses/64850ffa17683458f98704802e78925aaff01181","head":{"label":"GotEmB:gtm.assume_nonnull","ref":"gtm.assume_nonnull","sha":"64850ffa17683458f98704802e78925aaff01181","user":{"login":"GotEmB","id":760500,"avatar_url":"https://avatars.githubusercontent.com/u/760500?v=3","gravatar_id":"","url":"https://api.github.com/users/GotEmB","html_url":"https://github.com/GotEmB","followers_url":"https://api.github.com/users/GotEmB/followers","following_url":"https://api.github.com/users/GotEmB/following{/other_user}","gists_url":"https://api.github.com/users/GotEmB/gists{/gist_id}","starred_url":"https://api.github.com/users/GotEmB/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GotEmB/subscriptions","organizations_url":"https://api.github.com/users/GotEmB/orgs","repos_url":"https://api.github.com/users/GotEmB/repos","events_url":"https://api.github.com/users/GotEmB/events{/privacy}","received_events_url":"https://api.github.com/users/GotEmB/received_events","type":"User","site_admin":false},"repo":{"id":67899512,"name":"remodel","full_name":"GotEmB/remodel","owner":{"login":"GotEmB","id":760500,"avatar_url":"https://avatars.githubusercontent.com/u/760500?v=3","gravatar_id":"","url":"https://api.github.com/users/GotEmB","html_url":"https://github.com/GotEmB","followers_url":"https://api.github.com/users/GotEmB/followers","following_url":"https://api.github.com/users/GotEmB/following{/other_user}","gists_url":"https://api.github.com/users/GotEmB/gists{/gist_id}","starred_url":"https://api.github.com/users/GotEmB/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GotEmB/subscriptions","organizations_url":"https://api.github.com/users/GotEmB/orgs","repos_url":"https://api.github.com/users/GotEmB/repos","events_url":"https://api.github.com/users/GotEmB/events{/privacy}","received_events_url":"https://api.github.com/users/GotEmB/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/GotEmB/remodel","description":"Remodel is a tool that helps iOS and OS X developers avoid repetitive code by generating Objective-C models that support coding, value comparison, and immutability.","fork":true,"url":"https://api.github.com/repos/GotEmB/remodel","forks_url":"https://api.github.com/repos/GotEmB/remodel/forks","keys_url":"https://api.github.com/repos/GotEmB/remodel/keys{/key_id}","collaborators_url":"https://api.github.com/repos/GotEmB/remodel/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/GotEmB/remodel/teams","hooks_url":"https://api.github.com/repos/GotEmB/remodel/hooks","issue_events_url":"https://api.github.com/repos/GotEmB/remodel/issues/events{/number}","events_url":"https://api.github.com/repos/GotEmB/remodel/events","assignees_url":"https://api.github.com/repos/GotEmB/remodel/assignees{/user}","branches_url":"https://api.github.com/repos/GotEmB/remodel/branches{/branch}","tags_url":"https://api.github.com/repos/GotEmB/remodel/tags","blobs_url":"https://api.github.com/repos/GotEmB/remodel/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/GotEmB/remodel/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/GotEmB/remodel/git/refs{/sha}","trees_url":"https://api.github.com/repos/GotEmB/remodel/git/trees{/sha}","statuses_url":"https://api.github.com/repos/GotEmB/remodel/statuses/{sha}","languages_url":"https://api.github.com/repos/GotEmB/remodel/languages","stargazers_url":"https://api.github.com/repos/GotEmB/remodel/stargazers","contributors_url":"https://api.github.com/repos/GotEmB/remodel/contributors","subscribers_url":"https://api.github.com/repos/GotEmB/remodel/subscribers","subscription_url":"https://api.github.com/repos/GotEmB/remodel/subscription","commits_url":"https://api.github.com/repos/GotEmB/remodel/commits{/sha}","git_commits_url":"https://api.github.com/repos/GotEmB/remodel/git/commits{/sha}","comments_url":"https://api.github.com/repos/GotEmB/remodel/comments{/number}","issue_comment_url":"https://api.github.com/repos/GotEmB/remodel/issues/comments{/number}","contents_url":"https://api.github.com/repos/GotEmB/remodel/contents/{+path}","compare_url":"https://api.github.com/repos/GotEmB/remodel/compare/{base}...{head}","merges_url":"https://api.github.com/repos/GotEmB/remodel/merges","archive_url":"https://api.github.com/repos/GotEmB/remodel/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/GotEmB/remodel/downloads","issues_url":"https://api.github.com/repos/GotEmB/remodel/issues{/number}","pulls_url":"https://api.github.com/repos/GotEmB/remodel/pulls{/number}","milestones_url":"https://api.github.com/repos/GotEmB/remodel/milestones{/number}","notifications_url":"https://api.github.com/repos/GotEmB/remodel/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/GotEmB/remodel/labels{/name}","releases_url":"https://api.github.com/repos/GotEmB/remodel/releases{/id}","deployments_url":"https://api.github.com/repos/GotEmB/remodel/deployments","created_at":"2016-09-10T23:26:45Z","updated_at":"2016-09-10T23:26:47Z","pushed_at":"2016-09-21T09:48:58Z","git_url":"git://github.com/GotEmB/remodel.git","ssh_url":"git@github.com:GotEmB/remodel.git","clone_url":"https://github.com/GotEmB/remodel.git","svn_url":"https://github.com/GotEmB/remodel","homepage":null,"size":259,"stargazers_count":0,"watchers_count":0,"language":"TypeScript","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":"facebook:master","ref":"master","sha":"4f20b7e2d13aeddcc793f9db80914ff9593761b2","user":{"login":"facebook","id":69631,"avatar_url":"https://avatars.githubusercontent.com/u/69631?v=3","gravatar_id":"","url":"https://api.github.com/users/facebook","html_url":"https://github.com/facebook","followers_url":"https://api.github.com/users/facebook/followers","following_url":"https://api.github.com/users/facebook/following{/other_user}","gists_url":"https://api.github.com/users/facebook/gists{/gist_id}","starred_url":"https://api.github.com/users/facebook/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/facebook/subscriptions","organizations_url":"https://api.github.com/users/facebook/orgs","repos_url":"https://api.github.com/users/facebook/repos","events_url":"https://api.github.com/users/facebook/events{/privacy}","received_events_url":"https://api.github.com/users/facebook/received_events","type":"Organization","site_admin":false},"repo":{"id":56180683,"name":"remodel","full_name":"facebook/remodel","owner":{"login":"facebook","id":69631,"avatar_url":"https://avatars.githubusercontent.com/u/69631?v=3","gravatar_id":"","url":"https://api.github.com/users/facebook","html_url":"https://github.com/facebook","followers_url":"https://api.github.com/users/facebook/followers","following_url":"https://api.github.com/users/facebook/following{/other_user}","gists_url":"https://api.github.com/users/facebook/gists{/gist_id}","starred_url":"https://api.github.com/users/facebook/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/facebook/subscriptions","organizations_url":"https://api.github.com/users/facebook/orgs","repos_url":"https://api.github.com/users/facebook/repos","events_url":"https://api.github.com/users/facebook/events{/privacy}","received_events_url":"https://api.github.com/users/facebook/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/facebook/remodel","description":"Remodel is a tool that helps iOS and OS X developers avoid repetitive code by generating Objective-C models that support coding, value comparison, and immutability.","fork":false,"url":"https://api.github.com/repos/facebook/remodel","forks_url":"https://api.github.com/repos/facebook/remodel/forks","keys_url":"https://api.github.com/repos/facebook/remodel/keys{/key_id}","collaborators_url":"https://api.github.com/repos/facebook/remodel/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/facebook/remodel/teams","hooks_url":"https://api.github.com/repos/facebook/remodel/hooks","issue_events_url":"https://api.github.com/repos/facebook/remodel/issues/events{/number}","events_url":"https://api.github.com/repos/facebook/remodel/events","assignees_url":"https://api.github.com/repos/facebook/remodel/assignees{/user}","branches_url":"https://api.github.com/repos/facebook/remodel/branches{/branch}","tags_url":"https://api.github.com/repos/facebook/remodel/tags","blobs_url":"https://api.github.com/repos/facebook/remodel/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/facebook/remodel/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/facebook/remodel/git/refs{/sha}","trees_url":"https://api.github.com/repos/facebook/remodel/git/trees{/sha}","statuses_url":"https://api.github.com/repos/facebook/remodel/statuses/{sha}","languages_url":"https://api.github.com/repos/facebook/remodel/languages","stargazers_url":"https://api.github.com/repos/facebook/remodel/stargazers","contributors_url":"https://api.github.com/repos/facebook/remodel/contributors","subscribers_url":"https://api.github.com/repos/facebook/remodel/subscribers","subscription_url":"https://api.github.com/repos/facebook/remodel/subscription","commits_url":"https://api.github.com/repos/facebook/remodel/commits{/sha}","git_commits_url":"https://api.github.com/repos/facebook/remodel/git/commits{/sha}","comments_url":"https://api.github.com/repos/facebook/remodel/comments{/number}","issue_comment_url":"https://api.github.com/repos/facebook/remodel/issues/comments{/number}","contents_url":"https://api.github.com/repos/facebook/remodel/contents/{+path}","compare_url":"https://api.github.com/repos/facebook/remodel/compare/{base}...{head}","merges_url":"https://api.github.com/repos/facebook/remodel/merges","archive_url":"https://api.github.com/repos/facebook/remodel/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/facebook/remodel/downloads","issues_url":"https://api.github.com/repos/facebook/remodel/issues{/number}","pulls_url":"https://api.github.com/repos/facebook/remodel/pulls{/number}","milestones_url":"https://api.github.com/repos/facebook/remodel/milestones{/number}","notifications_url":"https://api.github.com/repos/facebook/remodel/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/facebook/remodel/labels{/name}","releases_url":"https://api.github.com/repos/facebook/remodel/releases{/id}","deployments_url":"https://api.github.com/repos/facebook/remodel/deployments","created_at":"2016-04-13T19:38:54Z","updated_at":"2016-09-28T04:46:24Z","pushed_at":"2016-09-21T09:48:59Z","git_url":"git://github.com/facebook/remodel.git","ssh_url":"git@github.com:facebook/remodel.git","clone_url":"https://github.com/facebook/remodel.git","svn_url":"https://github.com/facebook/remodel","homepage":null,"size":255,"stargazers_count":263,"watchers_count":263,"language":"TypeScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":28,"mirror_url":null,"open_issues_count":6,"forks":28,"open_issues":6,"watchers":263,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/facebook/remodel/pulls/17"},"html":{"href":"https://github.com/facebook/remodel/pull/17"},"issue":{"href":"https://api.github.com/repos/facebook/remodel/issues/17"},"comments":{"href":"https://api.github.com/repos/facebook/remodel/issues/17/comments"},"review_comments":{"href":"https://api.github.com/repos/facebook/remodel/pulls/17/comments"},"review_comment":{"href":"https://api.github.com/repos/facebook/remodel/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/facebook/remodel/pulls/17/commits"},"statuses":{"href":"https://api.github.com/repos/facebook/remodel/statuses/64850ffa17683458f98704802e78925aaff01181"}}}}
{"actor":{"display_login":"ColinCampbell"}}