{"action":"created","comment":{"url":"https://api.github.com/repos/krzysztofzablocki/Sourcery/pulls/comments/92919692","pull_request_review_id":13444854,"id":92919692,"diff_hunk":"@@ -14,10 +14,15 @@ class Type: NSObject {\n \n     /// Name in global scope \n     var name: String {\n-        guard let parentName = parentName else { return localName }\n+        guard let parentName = parent?.name else { return localName }\n         return \"\\(parentName).\\(localName)\"\n     }\n \n+    /// Is this type generic? regardless whether it's this type directly or one of its parent types\n+    var isGeneric: Bool {\n+        return (parent?.isGeneric ?? false) || hasGenericComponent","path":"Sourcery/Models/Type.swift","position":11,"original_position":11,"commit_id":"e45e976b6e131f7378dc4e7dfd50986912fb0fa1","original_commit_id":"e45e976b6e131f7378dc4e7dfd50986912fb0fa1","user":{"login":"krzysztofzablocki","id":1468993,"avatar_url":"https://avatars.githubusercontent.com/u/1468993?v=3","gravatar_id":"","url":"https://api.github.com/users/krzysztofzablocki","html_url":"https://github.com/krzysztofzablocki","followers_url":"https://api.github.com/users/krzysztofzablocki/followers","following_url":"https://api.github.com/users/krzysztofzablocki/following{/other_user}","gists_url":"https://api.github.com/users/krzysztofzablocki/gists{/gist_id}","starred_url":"https://api.github.com/users/krzysztofzablocki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/krzysztofzablocki/subscriptions","organizations_url":"https://api.github.com/users/krzysztofzablocki/orgs","repos_url":"https://api.github.com/users/krzysztofzablocki/repos","events_url":"https://api.github.com/users/krzysztofzablocki/events{/privacy}","received_events_url":"https://api.github.com/users/krzysztofzablocki/received_events","type":"User","site_admin":false},"body":"Before Swift 3 they couldn't, now they can ","created_at":"2016-12-17T10:57:10Z","updated_at":"2016-12-17T10:57:10Z","html_url":"https://github.com/krzysztofzablocki/Sourcery/pull/39#discussion_r92919692","pull_request_url":"https://api.github.com/repos/krzysztofzablocki/Sourcery/pulls/39","_links":{"self":{"href":"https://api.github.com/repos/krzysztofzablocki/Sourcery/pulls/comments/92919692"},"html":{"href":"https://github.com/krzysztofzablocki/Sourcery/pull/39#discussion_r92919692"},"pull_request":{"href":"https://api.github.com/repos/krzysztofzablocki/Sourcery/pulls/39"}}},"pull_request":{"url":"https://api.github.com/repos/krzysztofzablocki/Sourcery/pulls/39","id":98438280,"html_url":"https://github.com/krzysztofzablocki/Sourcery/pull/39","diff_url":"https://github.com/krzysztofzablocki/Sourcery/pull/39.diff","patch_url":"https://github.com/krzysztofzablocki/Sourcery/pull/39.patch","issue_url":"https://api.github.com/repos/krzysztofzablocki/Sourcery/issues/39","number":39,"state":"open","locked":false,"title":"Add isGeneric support","user":{"login":"krzysztofzablocki","id":1468993,"avatar_url":"https://avatars.githubusercontent.com/u/1468993?v=3","gravatar_id":"","url":"https://api.github.com/users/krzysztofzablocki","html_url":"https://github.com/krzysztofzablocki","followers_url":"https://api.github.com/users/krzysztofzablocki/followers","following_url":"https://api.github.com/users/krzysztofzablocki/following{/other_user}","gists_url":"https://api.github.com/users/krzysztofzablocki/gists{/gist_id}","starred_url":"https://api.github.com/users/krzysztofzablocki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/krzysztofzablocki/subscriptions","organizations_url":"https://api.github.com/users/krzysztofzablocki/orgs","repos_url":"https://api.github.com/users/krzysztofzablocki/repos","events_url":"https://api.github.com/users/krzysztofzablocki/events{/privacy}","received_events_url":"https://api.github.com/users/krzysztofzablocki/received_events","type":"User","site_admin":false},"body":"@ilyapuchka Since you have been so helpful, I've invited you to the project as a collaborator, hope that's ok :) \r\nCheck this PR out\r\n\r\nCloses #6 ","created_at":"2016-12-17T08:54:39Z","updated_at":"2016-12-17T10:57:10Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d8b996288e58d142f26aeff9746da2f58d4faecb","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/krzysztofzablocki/Sourcery/pulls/39/commits","review_comments_url":"https://api.github.com/repos/krzysztofzablocki/Sourcery/pulls/39/comments","review_comment_url":"https://api.github.com/repos/krzysztofzablocki/Sourcery/pulls/comments{/number}","comments_url":"https://api.github.com/repos/krzysztofzablocki/Sourcery/issues/39/comments","statuses_url":"https://api.github.com/repos/krzysztofzablocki/Sourcery/statuses/e45e976b6e131f7378dc4e7dfd50986912fb0fa1","head":{"label":"krzysztofzablocki:feature/generics","ref":"feature/generics","sha":"e45e976b6e131f7378dc4e7dfd50986912fb0fa1","user":{"login":"krzysztofzablocki","id":1468993,"avatar_url":"https://avatars.githubusercontent.com/u/1468993?v=3","gravatar_id":"","url":"https://api.github.com/users/krzysztofzablocki","html_url":"https://github.com/krzysztofzablocki","followers_url":"https://api.github.com/users/krzysztofzablocki/followers","following_url":"https://api.github.com/users/krzysztofzablocki/following{/other_user}","gists_url":"https://api.github.com/users/krzysztofzablocki/gists{/gist_id}","starred_url":"https://api.github.com/users/krzysztofzablocki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/krzysztofzablocki/subscriptions","organizations_url":"https://api.github.com/users/krzysztofzablocki/orgs","repos_url":"https://api.github.com/users/krzysztofzablocki/repos","events_url":"https://api.github.com/users/krzysztofzablocki/events{/privacy}","received_events_url":"https://api.github.com/users/krzysztofzablocki/received_events","type":"User","site_admin":false},"repo":{"id":76171100,"name":"Sourcery","full_name":"krzysztofzablocki/Sourcery","owner":{"login":"krzysztofzablocki","id":1468993,"avatar_url":"https://avatars.githubusercontent.com/u/1468993?v=3","gravatar_id":"","url":"https://api.github.com/users/krzysztofzablocki","html_url":"https://github.com/krzysztofzablocki","followers_url":"https://api.github.com/users/krzysztofzablocki/followers","following_url":"https://api.github.com/users/krzysztofzablocki/following{/other_user}","gists_url":"https://api.github.com/users/krzysztofzablocki/gists{/gist_id}","starred_url":"https://api.github.com/users/krzysztofzablocki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/krzysztofzablocki/subscriptions","organizations_url":"https://api.github.com/users/krzysztofzablocki/orgs","repos_url":"https://api.github.com/users/krzysztofzablocki/repos","events_url":"https://api.github.com/users/krzysztofzablocki/events{/privacy}","received_events_url":"https://api.github.com/users/krzysztofzablocki/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/krzysztofzablocki/Sourcery","description":"A tool that brings meta-programming to Swift, allowing you to code generate Swift code.","fork":false,"url":"https://api.github.com/repos/krzysztofzablocki/Sourcery","forks_url":"https://api.github.com/repos/krzysztofzablocki/Sourcery/forks","keys_url":"https://api.github.com/repos/krzysztofzablocki/Sourcery/keys{/key_id}","collaborators_url":"https://api.github.com/repos/krzysztofzablocki/Sourcery/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/krzysztofzablocki/Sourcery/teams","hooks_url":"https://api.github.com/repos/krzysztofzablocki/Sourcery/hooks","issue_events_url":"https://api.github.com/repos/krzysztofzablocki/Sourcery/issues/events{/number}","events_url":"https://api.github.com/repos/krzysztofzablocki/Sourcery/events","assignees_url":"https://api.github.com/repos/krzysztofzablocki/Sourcery/assignees{/user}","branches_url":"https://api.github.com/repos/krzysztofzablocki/Sourcery/branches{/branch}","tags_url":"https://api.github.com/repos/krzysztofzablocki/Sourcery/tags","blobs_url":"https://api.github.com/repos/krzysztofzablocki/Sourcery/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/krzysztofzablocki/Sourcery/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/krzysztofzablocki/Sourcery/git/refs{/sha}","trees_url":"https://api.github.com/repos/krzysztofzablocki/Sourcery/git/trees{/sha}","statuses_url":"https://api.github.com/repos/krzysztofzablocki/Sourcery/statuses/{sha}","languages_url":"https://api.github.com/repos/krzysztofzablocki/Sourcery/languages","stargazers_url":"https://api.github.com/repos/krzysztofzablocki/Sourcery/stargazers","contributors_url":"https://api.github.com/repos/krzysztofzablocki/Sourcery/contributors","subscribers_url":"https://api.github.com/repos/krzysztofzablocki/Sourcery/subscribers","subscription_url":"https://api.github.com/repos/krzysztofzablocki/Sourcery/subscription","commits_url":"https://api.github.com/repos/krzysztofzablocki/Sourcery/commits{/sha}","git_commits_url":"https://api.github.com/repos/krzysztofzablocki/Sourcery/git/commits{/sha}","comments_url":"https://api.github.com/repos/krzysztofzablocki/Sourcery/comments{/number}","issue_comment_url":"https://api.github.com/repos/krzysztofzablocki/Sourcery/issues/comments{/number}","contents_url":"https://api.github.com/repos/krzysztofzablocki/Sourcery/contents/{+path}","compare_url":"https://api.github.com/repos/krzysztofzablocki/Sourcery/compare/{base}...{head}","merges_url":"https://api.github.com/repos/krzysztofzablocki/Sourcery/merges","archive_url":"https://api.github.com/repos/krzysztofzablocki/Sourcery/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/krzysztofzablocki/Sourcery/downloads","issues_url":"https://api.github.com/repos/krzysztofzablocki/Sourcery/issues{/number}","pulls_url":"https://api.github.com/repos/krzysztofzablocki/Sourcery/pulls{/number}","milestones_url":"https://api.github.com/repos/krzysztofzablocki/Sourcery/milestones{/number}","notifications_url":"https://api.github.com/repos/krzysztofzablocki/Sourcery/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/krzysztofzablocki/Sourcery/labels{/name}","releases_url":"https://api.github.com/repos/krzysztofzablocki/Sourcery/releases{/id}","deployments_url":"https://api.github.com/repos/krzysztofzablocki/Sourcery/deployments","created_at":"2016-12-11T11:49:25Z","updated_at":"2016-12-17T10:49:31Z","pushed_at":"2016-12-17T08:54:39Z","git_url":"git://github.com/krzysztofzablocki/Sourcery.git","ssh_url":"git@github.com:krzysztofzablocki/Sourcery.git","clone_url":"https://github.com/krzysztofzablocki/Sourcery.git","svn_url":"https://github.com/krzysztofzablocki/Sourcery","homepage":"http://merowing.info","size":1921,"stargazers_count":1000,"watchers_count":1000,"language":"Swift","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":24,"mirror_url":null,"open_issues_count":14,"forks":24,"open_issues":14,"watchers":1000,"default_branch":"master"}},"base":{"label":"krzysztofzablocki:master","ref":"master","sha":"30c1efd47e42070223a0f3a6d092fed7c2994f70","user":{"login":"krzysztofzablocki","id":1468993,"avatar_url":"https://avatars.githubusercontent.com/u/1468993?v=3","gravatar_id":"","url":"https://api.github.com/users/krzysztofzablocki","html_url":"https://github.com/krzysztofzablocki","followers_url":"https://api.github.com/users/krzysztofzablocki/followers","following_url":"https://api.github.com/users/krzysztofzablocki/following{/other_user}","gists_url":"https://api.github.com/users/krzysztofzablocki/gists{/gist_id}","starred_url":"https://api.github.com/users/krzysztofzablocki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/krzysztofzablocki/subscriptions","organizations_url":"https://api.github.com/users/krzysztofzablocki/orgs","repos_url":"https://api.github.com/users/krzysztofzablocki/repos","events_url":"https://api.github.com/users/krzysztofzablocki/events{/privacy}","received_events_url":"https://api.github.com/users/krzysztofzablocki/received_events","type":"User","site_admin":false},"repo":{"id":76171100,"name":"Sourcery","full_name":"krzysztofzablocki/Sourcery","owner":{"login":"krzysztofzablocki","id":1468993,"avatar_url":"https://avatars.githubusercontent.com/u/1468993?v=3","gravatar_id":"","url":"https://api.github.com/users/krzysztofzablocki","html_url":"https://github.com/krzysztofzablocki","followers_url":"https://api.github.com/users/krzysztofzablocki/followers","following_url":"https://api.github.com/users/krzysztofzablocki/following{/other_user}","gists_url":"https://api.github.com/users/krzysztofzablocki/gists{/gist_id}","starred_url":"https://api.github.com/users/krzysztofzablocki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/krzysztofzablocki/subscriptions","organizations_url":"https://api.github.com/users/krzysztofzablocki/orgs","repos_url":"https://api.github.com/users/krzysztofzablocki/repos","events_url":"https://api.github.com/users/krzysztofzablocki/events{/privacy}","received_events_url":"https://api.github.com/users/krzysztofzablocki/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/krzysztofzablocki/Sourcery","description":"A tool that brings meta-programming to Swift, allowing you to code generate Swift code.","fork":false,"url":"https://api.github.com/repos/krzysztofzablocki/Sourcery","forks_url":"https://api.github.com/repos/krzysztofzablocki/Sourcery/forks","keys_url":"https://api.github.com/repos/krzysztofzablocki/Sourcery/keys{/key_id}","collaborators_url":"https://api.github.com/repos/krzysztofzablocki/Sourcery/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/krzysztofzablocki/Sourcery/teams","hooks_url":"https://api.github.com/repos/krzysztofzablocki/Sourcery/hooks","issue_events_url":"https://api.github.com/repos/krzysztofzablocki/Sourcery/issues/events{/number}","events_url":"https://api.github.com/repos/krzysztofzablocki/Sourcery/events","assignees_url":"https://api.github.com/repos/krzysztofzablocki/Sourcery/assignees{/user}","branches_url":"https://api.github.com/repos/krzysztofzablocki/Sourcery/branches{/branch}","tags_url":"https://api.github.com/repos/krzysztofzablocki/Sourcery/tags","blobs_url":"https://api.github.com/repos/krzysztofzablocki/Sourcery/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/krzysztofzablocki/Sourcery/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/krzysztofzablocki/Sourcery/git/refs{/sha}","trees_url":"https://api.github.com/repos/krzysztofzablocki/Sourcery/git/trees{/sha}","statuses_url":"https://api.github.com/repos/krzysztofzablocki/Sourcery/statuses/{sha}","languages_url":"https://api.github.com/repos/krzysztofzablocki/Sourcery/languages","stargazers_url":"https://api.github.com/repos/krzysztofzablocki/Sourcery/stargazers","contributors_url":"https://api.github.com/repos/krzysztofzablocki/Sourcery/contributors","subscribers_url":"https://api.github.com/repos/krzysztofzablocki/Sourcery/subscribers","subscription_url":"https://api.github.com/repos/krzysztofzablocki/Sourcery/subscription","commits_url":"https://api.github.com/repos/krzysztofzablocki/Sourcery/commits{/sha}","git_commits_url":"https://api.github.com/repos/krzysztofzablocki/Sourcery/git/commits{/sha}","comments_url":"https://api.github.com/repos/krzysztofzablocki/Sourcery/comments{/number}","issue_comment_url":"https://api.github.com/repos/krzysztofzablocki/Sourcery/issues/comments{/number}","contents_url":"https://api.github.com/repos/krzysztofzablocki/Sourcery/contents/{+path}","compare_url":"https://api.github.com/repos/krzysztofzablocki/Sourcery/compare/{base}...{head}","merges_url":"https://api.github.com/repos/krzysztofzablocki/Sourcery/merges","archive_url":"https://api.github.com/repos/krzysztofzablocki/Sourcery/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/krzysztofzablocki/Sourcery/downloads","issues_url":"https://api.github.com/repos/krzysztofzablocki/Sourcery/issues{/number}","pulls_url":"https://api.github.com/repos/krzysztofzablocki/Sourcery/pulls{/number}","milestones_url":"https://api.github.com/repos/krzysztofzablocki/Sourcery/milestones{/number}","notifications_url":"https://api.github.com/repos/krzysztofzablocki/Sourcery/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/krzysztofzablocki/Sourcery/labels{/name}","releases_url":"https://api.github.com/repos/krzysztofzablocki/Sourcery/releases{/id}","deployments_url":"https://api.github.com/repos/krzysztofzablocki/Sourcery/deployments","created_at":"2016-12-11T11:49:25Z","updated_at":"2016-12-17T10:49:31Z","pushed_at":"2016-12-17T08:54:39Z","git_url":"git://github.com/krzysztofzablocki/Sourcery.git","ssh_url":"git@github.com:krzysztofzablocki/Sourcery.git","clone_url":"https://github.com/krzysztofzablocki/Sourcery.git","svn_url":"https://github.com/krzysztofzablocki/Sourcery","homepage":"http://merowing.info","size":1921,"stargazers_count":1000,"watchers_count":1000,"language":"Swift","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":24,"mirror_url":null,"open_issues_count":14,"forks":24,"open_issues":14,"watchers":1000,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/krzysztofzablocki/Sourcery/pulls/39"},"html":{"href":"https://github.com/krzysztofzablocki/Sourcery/pull/39"},"issue":{"href":"https://api.github.com/repos/krzysztofzablocki/Sourcery/issues/39"},"comments":{"href":"https://api.github.com/repos/krzysztofzablocki/Sourcery/issues/39/comments"},"review_comments":{"href":"https://api.github.com/repos/krzysztofzablocki/Sourcery/pulls/39/comments"},"review_comment":{"href":"https://api.github.com/repos/krzysztofzablocki/Sourcery/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/krzysztofzablocki/Sourcery/pulls/39/commits"},"statuses":{"href":"https://api.github.com/repos/krzysztofzablocki/Sourcery/statuses/e45e976b6e131f7378dc4e7dfd50986912fb0fa1"}}}}
{"actor":{"display_login":"krzysztofzablocki"}}