{"action":"created","comment":{"url":"https://api.github.com/repos/dlang-community/D-Scanner/pulls/comments/151854725","pull_request_review_id":77633278,"id":151854725,"diff_hunk":"@@ -211,6 +215,19 @@ private:\n \t\t}\n \t}\n \n+\tbool initializedFromNew(const Initializer initializer)\n+\t{\n+\t\tif (initializer.nonVoidInitializer &&\n+\t\t\tinitializer.nonVoidInitializer.assignExpression &&\n+\t\t\tcast(UnaryExpression) initializer.nonVoidInitializer.assignExpression)","path":"src/analysis/unmodified.d","position":26,"original_position":26,"commit_id":"fcde3a2b1e35a74b7b532566635aab93a2711661","original_commit_id":"fcde3a2b1e35a74b7b532566635aab93a2711661","user":{"login":"BBasile","id":16154339,"avatar_url":"https://avatars1.githubusercontent.com/u/16154339?v=4","gravatar_id":"","url":"https://api.github.com/users/BBasile","html_url":"https://github.com/BBasile","followers_url":"https://api.github.com/users/BBasile/followers","following_url":"https://api.github.com/users/BBasile/following{/other_user}","gists_url":"https://api.github.com/users/BBasile/gists{/gist_id}","starred_url":"https://api.github.com/users/BBasile/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BBasile/subscriptions","organizations_url":"https://api.github.com/users/BBasile/orgs","repos_url":"https://api.github.com/users/BBasile/repos","events_url":"https://api.github.com/users/BBasile/events{/privacy}","received_events_url":"https://api.github.com/users/BBasile/received_events","type":"User","site_admin":false},"body":"One day we will be able to write \r\n\r\n```d\r\nif (cast(UnaryExpression) initializer?.nonVoidInitializer?.assignExpression) {}\r\n```\r\n🙏 ","created_at":"2017-11-19T04:45:10Z","updated_at":"2017-11-19T04:45:10Z","html_url":"https://github.com/dlang-community/D-Scanner/pull/534#discussion_r151854725","pull_request_url":"https://api.github.com/repos/dlang-community/D-Scanner/pulls/534","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/dlang-community/D-Scanner/pulls/comments/151854725"},"html":{"href":"https://github.com/dlang-community/D-Scanner/pull/534#discussion_r151854725"},"pull_request":{"href":"https://api.github.com/repos/dlang-community/D-Scanner/pulls/534"}}},"pull_request":{"url":"https://api.github.com/repos/dlang-community/D-Scanner/pulls/534","id":153480907,"html_url":"https://github.com/dlang-community/D-Scanner/pull/534","diff_url":"https://github.com/dlang-community/D-Scanner/pull/534.diff","patch_url":"https://github.com/dlang-community/D-Scanner/pull/534.patch","issue_url":"https://api.github.com/repos/dlang-community/D-Scanner/issues/534","number":534,"state":"open","locked":false,"title":"fix #533 - \"Could be declared const\" should be avoided for declarations with \"new\"","user":{"login":"BBasile","id":16154339,"avatar_url":"https://avatars1.githubusercontent.com/u/16154339?v=4","gravatar_id":"","url":"https://api.github.com/users/BBasile","html_url":"https://github.com/BBasile","followers_url":"https://api.github.com/users/BBasile/followers","following_url":"https://api.github.com/users/BBasile/following{/other_user}","gists_url":"https://api.github.com/users/BBasile/gists{/gist_id}","starred_url":"https://api.github.com/users/BBasile/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BBasile/subscriptions","organizations_url":"https://api.github.com/users/BBasile/orgs","repos_url":"https://api.github.com/users/BBasile/repos","events_url":"https://api.github.com/users/BBasile/events{/privacy}","received_events_url":"https://api.github.com/users/BBasile/received_events","type":"User","site_admin":false},"body":"see #533 for rationale.","created_at":"2017-11-19T04:41:52Z","updated_at":"2017-11-19T04:45:10Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0bf954d521db83da13fe40e7868c52313dbf256e","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/dlang-community/D-Scanner/pulls/534/commits","review_comments_url":"https://api.github.com/repos/dlang-community/D-Scanner/pulls/534/comments","review_comment_url":"https://api.github.com/repos/dlang-community/D-Scanner/pulls/comments{/number}","comments_url":"https://api.github.com/repos/dlang-community/D-Scanner/issues/534/comments","statuses_url":"https://api.github.com/repos/dlang-community/D-Scanner/statuses/fcde3a2b1e35a74b7b532566635aab93a2711661","head":{"label":"BBasile:issue-533","ref":"issue-533","sha":"fcde3a2b1e35a74b7b532566635aab93a2711661","user":{"login":"BBasile","id":16154339,"avatar_url":"https://avatars1.githubusercontent.com/u/16154339?v=4","gravatar_id":"","url":"https://api.github.com/users/BBasile","html_url":"https://github.com/BBasile","followers_url":"https://api.github.com/users/BBasile/followers","following_url":"https://api.github.com/users/BBasile/following{/other_user}","gists_url":"https://api.github.com/users/BBasile/gists{/gist_id}","starred_url":"https://api.github.com/users/BBasile/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BBasile/subscriptions","organizations_url":"https://api.github.com/users/BBasile/orgs","repos_url":"https://api.github.com/users/BBasile/repos","events_url":"https://api.github.com/users/BBasile/events{/privacy}","received_events_url":"https://api.github.com/users/BBasile/received_events","type":"User","site_admin":false},"repo":{"id":109749590,"name":"D-Scanner","full_name":"BBasile/D-Scanner","owner":{"login":"BBasile","id":16154339,"avatar_url":"https://avatars1.githubusercontent.com/u/16154339?v=4","gravatar_id":"","url":"https://api.github.com/users/BBasile","html_url":"https://github.com/BBasile","followers_url":"https://api.github.com/users/BBasile/followers","following_url":"https://api.github.com/users/BBasile/following{/other_user}","gists_url":"https://api.github.com/users/BBasile/gists{/gist_id}","starred_url":"https://api.github.com/users/BBasile/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BBasile/subscriptions","organizations_url":"https://api.github.com/users/BBasile/orgs","repos_url":"https://api.github.com/users/BBasile/repos","events_url":"https://api.github.com/users/BBasile/events{/privacy}","received_events_url":"https://api.github.com/users/BBasile/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/BBasile/D-Scanner","description":"Swiss-army knife for D source code","fork":true,"url":"https://api.github.com/repos/BBasile/D-Scanner","forks_url":"https://api.github.com/repos/BBasile/D-Scanner/forks","keys_url":"https://api.github.com/repos/BBasile/D-Scanner/keys{/key_id}","collaborators_url":"https://api.github.com/repos/BBasile/D-Scanner/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/BBasile/D-Scanner/teams","hooks_url":"https://api.github.com/repos/BBasile/D-Scanner/hooks","issue_events_url":"https://api.github.com/repos/BBasile/D-Scanner/issues/events{/number}","events_url":"https://api.github.com/repos/BBasile/D-Scanner/events","assignees_url":"https://api.github.com/repos/BBasile/D-Scanner/assignees{/user}","branches_url":"https://api.github.com/repos/BBasile/D-Scanner/branches{/branch}","tags_url":"https://api.github.com/repos/BBasile/D-Scanner/tags","blobs_url":"https://api.github.com/repos/BBasile/D-Scanner/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/BBasile/D-Scanner/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/BBasile/D-Scanner/git/refs{/sha}","trees_url":"https://api.github.com/repos/BBasile/D-Scanner/git/trees{/sha}","statuses_url":"https://api.github.com/repos/BBasile/D-Scanner/statuses/{sha}","languages_url":"https://api.github.com/repos/BBasile/D-Scanner/languages","stargazers_url":"https://api.github.com/repos/BBasile/D-Scanner/stargazers","contributors_url":"https://api.github.com/repos/BBasile/D-Scanner/contributors","subscribers_url":"https://api.github.com/repos/BBasile/D-Scanner/subscribers","subscription_url":"https://api.github.com/repos/BBasile/D-Scanner/subscription","commits_url":"https://api.github.com/repos/BBasile/D-Scanner/commits{/sha}","git_commits_url":"https://api.github.com/repos/BBasile/D-Scanner/git/commits{/sha}","comments_url":"https://api.github.com/repos/BBasile/D-Scanner/comments{/number}","issue_comment_url":"https://api.github.com/repos/BBasile/D-Scanner/issues/comments{/number}","contents_url":"https://api.github.com/repos/BBasile/D-Scanner/contents/{+path}","compare_url":"https://api.github.com/repos/BBasile/D-Scanner/compare/{base}...{head}","merges_url":"https://api.github.com/repos/BBasile/D-Scanner/merges","archive_url":"https://api.github.com/repos/BBasile/D-Scanner/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/BBasile/D-Scanner/downloads","issues_url":"https://api.github.com/repos/BBasile/D-Scanner/issues{/number}","pulls_url":"https://api.github.com/repos/BBasile/D-Scanner/pulls{/number}","milestones_url":"https://api.github.com/repos/BBasile/D-Scanner/milestones{/number}","notifications_url":"https://api.github.com/repos/BBasile/D-Scanner/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/BBasile/D-Scanner/labels{/name}","releases_url":"https://api.github.com/repos/BBasile/D-Scanner/releases{/id}","deployments_url":"https://api.github.com/repos/BBasile/D-Scanner/deployments","created_at":"2017-11-06T21:03:14Z","updated_at":"2017-11-06T21:03:16Z","pushed_at":"2017-11-19T04:41:06Z","git_url":"git://github.com/BBasile/D-Scanner.git","ssh_url":"git@github.com:BBasile/D-Scanner.git","clone_url":"https://github.com/BBasile/D-Scanner.git","svn_url":"https://github.com/BBasile/D-Scanner","homepage":null,"size":3485,"stargazers_count":0,"watchers_count":0,"language":"D","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"dlang-community:master","ref":"master","sha":"668e2ba2e20cc013c0f7267efcbd11661b2e313a","user":{"login":"dlang-community","id":24511724,"avatar_url":"https://avatars1.githubusercontent.com/u/24511724?v=4","gravatar_id":"","url":"https://api.github.com/users/dlang-community","html_url":"https://github.com/dlang-community","followers_url":"https://api.github.com/users/dlang-community/followers","following_url":"https://api.github.com/users/dlang-community/following{/other_user}","gists_url":"https://api.github.com/users/dlang-community/gists{/gist_id}","starred_url":"https://api.github.com/users/dlang-community/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dlang-community/subscriptions","organizations_url":"https://api.github.com/users/dlang-community/orgs","repos_url":"https://api.github.com/users/dlang-community/repos","events_url":"https://api.github.com/users/dlang-community/events{/privacy}","received_events_url":"https://api.github.com/users/dlang-community/received_events","type":"Organization","site_admin":false},"repo":{"id":4096145,"name":"D-Scanner","full_name":"dlang-community/D-Scanner","owner":{"login":"dlang-community","id":24511724,"avatar_url":"https://avatars1.githubusercontent.com/u/24511724?v=4","gravatar_id":"","url":"https://api.github.com/users/dlang-community","html_url":"https://github.com/dlang-community","followers_url":"https://api.github.com/users/dlang-community/followers","following_url":"https://api.github.com/users/dlang-community/following{/other_user}","gists_url":"https://api.github.com/users/dlang-community/gists{/gist_id}","starred_url":"https://api.github.com/users/dlang-community/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dlang-community/subscriptions","organizations_url":"https://api.github.com/users/dlang-community/orgs","repos_url":"https://api.github.com/users/dlang-community/repos","events_url":"https://api.github.com/users/dlang-community/events{/privacy}","received_events_url":"https://api.github.com/users/dlang-community/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/dlang-community/D-Scanner","description":"Swiss-army knife for D source code","fork":false,"url":"https://api.github.com/repos/dlang-community/D-Scanner","forks_url":"https://api.github.com/repos/dlang-community/D-Scanner/forks","keys_url":"https://api.github.com/repos/dlang-community/D-Scanner/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dlang-community/D-Scanner/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dlang-community/D-Scanner/teams","hooks_url":"https://api.github.com/repos/dlang-community/D-Scanner/hooks","issue_events_url":"https://api.github.com/repos/dlang-community/D-Scanner/issues/events{/number}","events_url":"https://api.github.com/repos/dlang-community/D-Scanner/events","assignees_url":"https://api.github.com/repos/dlang-community/D-Scanner/assignees{/user}","branches_url":"https://api.github.com/repos/dlang-community/D-Scanner/branches{/branch}","tags_url":"https://api.github.com/repos/dlang-community/D-Scanner/tags","blobs_url":"https://api.github.com/repos/dlang-community/D-Scanner/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dlang-community/D-Scanner/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dlang-community/D-Scanner/git/refs{/sha}","trees_url":"https://api.github.com/repos/dlang-community/D-Scanner/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dlang-community/D-Scanner/statuses/{sha}","languages_url":"https://api.github.com/repos/dlang-community/D-Scanner/languages","stargazers_url":"https://api.github.com/repos/dlang-community/D-Scanner/stargazers","contributors_url":"https://api.github.com/repos/dlang-community/D-Scanner/contributors","subscribers_url":"https://api.github.com/repos/dlang-community/D-Scanner/subscribers","subscription_url":"https://api.github.com/repos/dlang-community/D-Scanner/subscription","commits_url":"https://api.github.com/repos/dlang-community/D-Scanner/commits{/sha}","git_commits_url":"https://api.github.com/repos/dlang-community/D-Scanner/git/commits{/sha}","comments_url":"https://api.github.com/repos/dlang-community/D-Scanner/comments{/number}","issue_comment_url":"https://api.github.com/repos/dlang-community/D-Scanner/issues/comments{/number}","contents_url":"https://api.github.com/repos/dlang-community/D-Scanner/contents/{+path}","compare_url":"https://api.github.com/repos/dlang-community/D-Scanner/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dlang-community/D-Scanner/merges","archive_url":"https://api.github.com/repos/dlang-community/D-Scanner/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dlang-community/D-Scanner/downloads","issues_url":"https://api.github.com/repos/dlang-community/D-Scanner/issues{/number}","pulls_url":"https://api.github.com/repos/dlang-community/D-Scanner/pulls{/number}","milestones_url":"https://api.github.com/repos/dlang-community/D-Scanner/milestones{/number}","notifications_url":"https://api.github.com/repos/dlang-community/D-Scanner/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dlang-community/D-Scanner/labels{/name}","releases_url":"https://api.github.com/repos/dlang-community/D-Scanner/releases{/id}","deployments_url":"https://api.github.com/repos/dlang-community/D-Scanner/deployments","created_at":"2012-04-21T13:04:35Z","updated_at":"2017-11-11T19:23:12Z","pushed_at":"2017-11-19T04:41:52Z","git_url":"git://github.com/dlang-community/D-Scanner.git","ssh_url":"git@github.com:dlang-community/D-Scanner.git","clone_url":"https://github.com/dlang-community/D-Scanner.git","svn_url":"https://github.com/dlang-community/D-Scanner","homepage":null,"size":3489,"stargazers_count":152,"watchers_count":152,"language":"D","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":55,"mirror_url":null,"archived":false,"open_issues_count":73,"forks":55,"open_issues":73,"watchers":152,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/dlang-community/D-Scanner/pulls/534"},"html":{"href":"https://github.com/dlang-community/D-Scanner/pull/534"},"issue":{"href":"https://api.github.com/repos/dlang-community/D-Scanner/issues/534"},"comments":{"href":"https://api.github.com/repos/dlang-community/D-Scanner/issues/534/comments"},"review_comments":{"href":"https://api.github.com/repos/dlang-community/D-Scanner/pulls/534/comments"},"review_comment":{"href":"https://api.github.com/repos/dlang-community/D-Scanner/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/dlang-community/D-Scanner/pulls/534/commits"},"statuses":{"href":"https://api.github.com/repos/dlang-community/D-Scanner/statuses/fcde3a2b1e35a74b7b532566635aab93a2711661"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"BBasile"}}