{"action":"created","comment":{"url":"https://api.github.com/repos/SwiftKit/Cuckoo/pulls/comments/80219209","id":80219209,"diff_hunk":"@@ -152,62 +152,35 @@ public struct Tokenizer {\n         }\n     }\n     \n-    private func tokenizeMethodParameters(methodName: String, _ representables: [SourceKitRepresentable]) -> [MethodParameter] {\n+    private func tokenizeMethodParameters(_ methodName: String, _ representables: [SourceKitRepresentable]) -> [MethodParameter] {\n         // Takes the string between `(` and `)`\n-        let parameters = methodName.componentsSeparatedByString(\"(\").last?.characters.dropLast(1).map { \"\\($0)\" }.joinWithSeparator(\"\")\n-        let parameterLabels: [String?] = parameters?.componentsSeparatedByString(\":\").map { $0 != \"_\" ? $0 : nil } ?? []\n+        let parameters = methodName.components(separatedBy: \"(\").last?.characters.dropLast(1).map { \"\\($0)\" }.joined(separator: \"\")\n+        let parameterLabels: [String?] = parameters?.components(separatedBy: \":\").map { $0 != \"_\" ? $0 : nil } ?? []\n         \n         return zip(parameterLabels, representables).flatMap(tokenizeMethodParameter)\n     }\n     \n-    private func tokenizeMethodParameter(label: String?, _ representable: SourceKitRepresentable) -> MethodParameter? {\n+    private func tokenizeMethodParameter(_ label: String?, _ representable: SourceKitRepresentable) -> MethodParameter? {","path":"Generator/Source/CuckooGeneratorFramework/Tokenizer.swift","position":85,"original_position":85,"commit_id":"a823f9bc2219e2d9a0ff27eb05eae1784c275839","original_commit_id":"a823f9bc2219e2d9a0ff27eb05eae1784c275839","user":{"login":"TadeasKriz","id":284197,"avatar_url":"https://avatars.githubusercontent.com/u/284197?v=3","gravatar_id":"","url":"https://api.github.com/users/TadeasKriz","html_url":"https://github.com/TadeasKriz","followers_url":"https://api.github.com/users/TadeasKriz/followers","following_url":"https://api.github.com/users/TadeasKriz/following{/other_user}","gists_url":"https://api.github.com/users/TadeasKriz/gists{/gist_id}","starred_url":"https://api.github.com/users/TadeasKriz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TadeasKriz/subscriptions","organizations_url":"https://api.github.com/users/TadeasKriz/orgs","repos_url":"https://api.github.com/users/TadeasKriz/repos","events_url":"https://api.github.com/users/TadeasKriz/events{/privacy}","received_events_url":"https://api.github.com/users/TadeasKriz/received_events","type":"User","site_admin":false},"body":"`tokenize(parameterLabel: String?, parameter: SourceKitRepresentable)`","created_at":"2016-09-23T10:25:16Z","updated_at":"2016-09-23T10:55:35Z","html_url":"https://github.com/SwiftKit/Cuckoo/pull/65#discussion_r80219209","pull_request_url":"https://api.github.com/repos/SwiftKit/Cuckoo/pulls/65","_links":{"self":{"href":"https://api.github.com/repos/SwiftKit/Cuckoo/pulls/comments/80219209"},"html":{"href":"https://github.com/SwiftKit/Cuckoo/pull/65#discussion_r80219209"},"pull_request":{"href":"https://api.github.com/repos/SwiftKit/Cuckoo/pulls/65"}}},"pull_request":{"url":"https://api.github.com/repos/SwiftKit/Cuckoo/pulls/65","id":86294907,"html_url":"https://github.com/SwiftKit/Cuckoo/pull/65","diff_url":"https://github.com/SwiftKit/Cuckoo/pull/65.diff","patch_url":"https://github.com/SwiftKit/Cuckoo/pull/65.patch","issue_url":"https://api.github.com/repos/SwiftKit/Cuckoo/issues/65","number":65,"state":"open","locked":false,"title":"Swift 3.0","user":{"login":"FilipDolnik","id":6750729,"avatar_url":"https://avatars.githubusercontent.com/u/6750729?v=3","gravatar_id":"","url":"https://api.github.com/users/FilipDolnik","html_url":"https://github.com/FilipDolnik","followers_url":"https://api.github.com/users/FilipDolnik/followers","following_url":"https://api.github.com/users/FilipDolnik/following{/other_user}","gists_url":"https://api.github.com/users/FilipDolnik/gists{/gist_id}","starred_url":"https://api.github.com/users/FilipDolnik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FilipDolnik/subscriptions","organizations_url":"https://api.github.com/users/FilipDolnik/orgs","repos_url":"https://api.github.com/users/FilipDolnik/repos","events_url":"https://api.github.com/users/FilipDolnik/events{/privacy}","received_events_url":"https://api.github.com/users/FilipDolnik/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-09-22T08:16:25Z","updated_at":"2016-09-23T10:55:35Z","closed_at":null,"merged_at":null,"merge_commit_sha":"25fce9a0ace4530409ff27e63462efd354cc6fa9","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/SwiftKit/Cuckoo/pulls/65/commits","review_comments_url":"https://api.github.com/repos/SwiftKit/Cuckoo/pulls/65/comments","review_comment_url":"https://api.github.com/repos/SwiftKit/Cuckoo/pulls/comments{/number}","comments_url":"https://api.github.com/repos/SwiftKit/Cuckoo/issues/65/comments","statuses_url":"https://api.github.com/repos/SwiftKit/Cuckoo/statuses/a823f9bc2219e2d9a0ff27eb05eae1784c275839","head":{"label":"SwiftKit:swift-3.0","ref":"swift-3.0","sha":"a823f9bc2219e2d9a0ff27eb05eae1784c275839","user":{"login":"SwiftKit","id":16580899,"avatar_url":"https://avatars.githubusercontent.com/u/16580899?v=3","gravatar_id":"","url":"https://api.github.com/users/SwiftKit","html_url":"https://github.com/SwiftKit","followers_url":"https://api.github.com/users/SwiftKit/followers","following_url":"https://api.github.com/users/SwiftKit/following{/other_user}","gists_url":"https://api.github.com/users/SwiftKit/gists{/gist_id}","starred_url":"https://api.github.com/users/SwiftKit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SwiftKit/subscriptions","organizations_url":"https://api.github.com/users/SwiftKit/orgs","repos_url":"https://api.github.com/users/SwiftKit/repos","events_url":"https://api.github.com/users/SwiftKit/events{/privacy}","received_events_url":"https://api.github.com/users/SwiftKit/received_events","type":"Organization","site_admin":false},"repo":{"id":49505307,"name":"Cuckoo","full_name":"SwiftKit/Cuckoo","owner":{"login":"SwiftKit","id":16580899,"avatar_url":"https://avatars.githubusercontent.com/u/16580899?v=3","gravatar_id":"","url":"https://api.github.com/users/SwiftKit","html_url":"https://github.com/SwiftKit","followers_url":"https://api.github.com/users/SwiftKit/followers","following_url":"https://api.github.com/users/SwiftKit/following{/other_user}","gists_url":"https://api.github.com/users/SwiftKit/gists{/gist_id}","starred_url":"https://api.github.com/users/SwiftKit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SwiftKit/subscriptions","organizations_url":"https://api.github.com/users/SwiftKit/orgs","repos_url":"https://api.github.com/users/SwiftKit/repos","events_url":"https://api.github.com/users/SwiftKit/events{/privacy}","received_events_url":"https://api.github.com/users/SwiftKit/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/SwiftKit/Cuckoo","description":"First boilerplate-free mocking framework for Swift!","fork":false,"url":"https://api.github.com/repos/SwiftKit/Cuckoo","forks_url":"https://api.github.com/repos/SwiftKit/Cuckoo/forks","keys_url":"https://api.github.com/repos/SwiftKit/Cuckoo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SwiftKit/Cuckoo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SwiftKit/Cuckoo/teams","hooks_url":"https://api.github.com/repos/SwiftKit/Cuckoo/hooks","issue_events_url":"https://api.github.com/repos/SwiftKit/Cuckoo/issues/events{/number}","events_url":"https://api.github.com/repos/SwiftKit/Cuckoo/events","assignees_url":"https://api.github.com/repos/SwiftKit/Cuckoo/assignees{/user}","branches_url":"https://api.github.com/repos/SwiftKit/Cuckoo/branches{/branch}","tags_url":"https://api.github.com/repos/SwiftKit/Cuckoo/tags","blobs_url":"https://api.github.com/repos/SwiftKit/Cuckoo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SwiftKit/Cuckoo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SwiftKit/Cuckoo/git/refs{/sha}","trees_url":"https://api.github.com/repos/SwiftKit/Cuckoo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SwiftKit/Cuckoo/statuses/{sha}","languages_url":"https://api.github.com/repos/SwiftKit/Cuckoo/languages","stargazers_url":"https://api.github.com/repos/SwiftKit/Cuckoo/stargazers","contributors_url":"https://api.github.com/repos/SwiftKit/Cuckoo/contributors","subscribers_url":"https://api.github.com/repos/SwiftKit/Cuckoo/subscribers","subscription_url":"https://api.github.com/repos/SwiftKit/Cuckoo/subscription","commits_url":"https://api.github.com/repos/SwiftKit/Cuckoo/commits{/sha}","git_commits_url":"https://api.github.com/repos/SwiftKit/Cuckoo/git/commits{/sha}","comments_url":"https://api.github.com/repos/SwiftKit/Cuckoo/comments{/number}","issue_comment_url":"https://api.github.com/repos/SwiftKit/Cuckoo/issues/comments{/number}","contents_url":"https://api.github.com/repos/SwiftKit/Cuckoo/contents/{+path}","compare_url":"https://api.github.com/repos/SwiftKit/Cuckoo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SwiftKit/Cuckoo/merges","archive_url":"https://api.github.com/repos/SwiftKit/Cuckoo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SwiftKit/Cuckoo/downloads","issues_url":"https://api.github.com/repos/SwiftKit/Cuckoo/issues{/number}","pulls_url":"https://api.github.com/repos/SwiftKit/Cuckoo/pulls{/number}","milestones_url":"https://api.github.com/repos/SwiftKit/Cuckoo/milestones{/number}","notifications_url":"https://api.github.com/repos/SwiftKit/Cuckoo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SwiftKit/Cuckoo/labels{/name}","releases_url":"https://api.github.com/repos/SwiftKit/Cuckoo/releases{/id}","deployments_url":"https://api.github.com/repos/SwiftKit/Cuckoo/deployments","created_at":"2016-01-12T14:30:36Z","updated_at":"2016-09-21T18:00:43Z","pushed_at":"2016-09-22T08:16:26Z","git_url":"git://github.com/SwiftKit/Cuckoo.git","ssh_url":"git@github.com:SwiftKit/Cuckoo.git","clone_url":"https://github.com/SwiftKit/Cuckoo.git","svn_url":"https://github.com/SwiftKit/Cuckoo","homepage":"","size":375,"stargazers_count":349,"watchers_count":349,"language":"Swift","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":15,"mirror_url":null,"open_issues_count":11,"forks":15,"open_issues":11,"watchers":349,"default_branch":"master"}},"base":{"label":"SwiftKit:master","ref":"master","sha":"24a983886cb86b88632e93a7777958509daa4e0f","user":{"login":"SwiftKit","id":16580899,"avatar_url":"https://avatars.githubusercontent.com/u/16580899?v=3","gravatar_id":"","url":"https://api.github.com/users/SwiftKit","html_url":"https://github.com/SwiftKit","followers_url":"https://api.github.com/users/SwiftKit/followers","following_url":"https://api.github.com/users/SwiftKit/following{/other_user}","gists_url":"https://api.github.com/users/SwiftKit/gists{/gist_id}","starred_url":"https://api.github.com/users/SwiftKit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SwiftKit/subscriptions","organizations_url":"https://api.github.com/users/SwiftKit/orgs","repos_url":"https://api.github.com/users/SwiftKit/repos","events_url":"https://api.github.com/users/SwiftKit/events{/privacy}","received_events_url":"https://api.github.com/users/SwiftKit/received_events","type":"Organization","site_admin":false},"repo":{"id":49505307,"name":"Cuckoo","full_name":"SwiftKit/Cuckoo","owner":{"login":"SwiftKit","id":16580899,"avatar_url":"https://avatars.githubusercontent.com/u/16580899?v=3","gravatar_id":"","url":"https://api.github.com/users/SwiftKit","html_url":"https://github.com/SwiftKit","followers_url":"https://api.github.com/users/SwiftKit/followers","following_url":"https://api.github.com/users/SwiftKit/following{/other_user}","gists_url":"https://api.github.com/users/SwiftKit/gists{/gist_id}","starred_url":"https://api.github.com/users/SwiftKit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SwiftKit/subscriptions","organizations_url":"https://api.github.com/users/SwiftKit/orgs","repos_url":"https://api.github.com/users/SwiftKit/repos","events_url":"https://api.github.com/users/SwiftKit/events{/privacy}","received_events_url":"https://api.github.com/users/SwiftKit/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/SwiftKit/Cuckoo","description":"First boilerplate-free mocking framework for Swift!","fork":false,"url":"https://api.github.com/repos/SwiftKit/Cuckoo","forks_url":"https://api.github.com/repos/SwiftKit/Cuckoo/forks","keys_url":"https://api.github.com/repos/SwiftKit/Cuckoo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SwiftKit/Cuckoo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SwiftKit/Cuckoo/teams","hooks_url":"https://api.github.com/repos/SwiftKit/Cuckoo/hooks","issue_events_url":"https://api.github.com/repos/SwiftKit/Cuckoo/issues/events{/number}","events_url":"https://api.github.com/repos/SwiftKit/Cuckoo/events","assignees_url":"https://api.github.com/repos/SwiftKit/Cuckoo/assignees{/user}","branches_url":"https://api.github.com/repos/SwiftKit/Cuckoo/branches{/branch}","tags_url":"https://api.github.com/repos/SwiftKit/Cuckoo/tags","blobs_url":"https://api.github.com/repos/SwiftKit/Cuckoo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SwiftKit/Cuckoo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SwiftKit/Cuckoo/git/refs{/sha}","trees_url":"https://api.github.com/repos/SwiftKit/Cuckoo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SwiftKit/Cuckoo/statuses/{sha}","languages_url":"https://api.github.com/repos/SwiftKit/Cuckoo/languages","stargazers_url":"https://api.github.com/repos/SwiftKit/Cuckoo/stargazers","contributors_url":"https://api.github.com/repos/SwiftKit/Cuckoo/contributors","subscribers_url":"https://api.github.com/repos/SwiftKit/Cuckoo/subscribers","subscription_url":"https://api.github.com/repos/SwiftKit/Cuckoo/subscription","commits_url":"https://api.github.com/repos/SwiftKit/Cuckoo/commits{/sha}","git_commits_url":"https://api.github.com/repos/SwiftKit/Cuckoo/git/commits{/sha}","comments_url":"https://api.github.com/repos/SwiftKit/Cuckoo/comments{/number}","issue_comment_url":"https://api.github.com/repos/SwiftKit/Cuckoo/issues/comments{/number}","contents_url":"https://api.github.com/repos/SwiftKit/Cuckoo/contents/{+path}","compare_url":"https://api.github.com/repos/SwiftKit/Cuckoo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SwiftKit/Cuckoo/merges","archive_url":"https://api.github.com/repos/SwiftKit/Cuckoo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SwiftKit/Cuckoo/downloads","issues_url":"https://api.github.com/repos/SwiftKit/Cuckoo/issues{/number}","pulls_url":"https://api.github.com/repos/SwiftKit/Cuckoo/pulls{/number}","milestones_url":"https://api.github.com/repos/SwiftKit/Cuckoo/milestones{/number}","notifications_url":"https://api.github.com/repos/SwiftKit/Cuckoo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SwiftKit/Cuckoo/labels{/name}","releases_url":"https://api.github.com/repos/SwiftKit/Cuckoo/releases{/id}","deployments_url":"https://api.github.com/repos/SwiftKit/Cuckoo/deployments","created_at":"2016-01-12T14:30:36Z","updated_at":"2016-09-21T18:00:43Z","pushed_at":"2016-09-22T08:16:26Z","git_url":"git://github.com/SwiftKit/Cuckoo.git","ssh_url":"git@github.com:SwiftKit/Cuckoo.git","clone_url":"https://github.com/SwiftKit/Cuckoo.git","svn_url":"https://github.com/SwiftKit/Cuckoo","homepage":"","size":375,"stargazers_count":349,"watchers_count":349,"language":"Swift","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":15,"mirror_url":null,"open_issues_count":11,"forks":15,"open_issues":11,"watchers":349,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/SwiftKit/Cuckoo/pulls/65"},"html":{"href":"https://github.com/SwiftKit/Cuckoo/pull/65"},"issue":{"href":"https://api.github.com/repos/SwiftKit/Cuckoo/issues/65"},"comments":{"href":"https://api.github.com/repos/SwiftKit/Cuckoo/issues/65/comments"},"review_comments":{"href":"https://api.github.com/repos/SwiftKit/Cuckoo/pulls/65/comments"},"review_comment":{"href":"https://api.github.com/repos/SwiftKit/Cuckoo/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/SwiftKit/Cuckoo/pulls/65/commits"},"statuses":{"href":"https://api.github.com/repos/SwiftKit/Cuckoo/statuses/a823f9bc2219e2d9a0ff27eb05eae1784c275839"}}}}
{"actor":{"display_login":"TadeasKriz"}}