{"action":"created","comment":{"url":"https://api.github.com/repos/dlang/dmd/pulls/comments/165857278","pull_request_review_id":93857284,"id":165857278,"diff_hunk":"@@ -1869,6 +1880,11 @@ private bool parseCommandLine(const ref Strings arguments, const size_t argc, re\n                         goto Lnoarg;\n                     params.jsonfilename = p + 3 + (p[3] == '=');\n                     break;\n+                case 'q':\n+                    if (!p[3])\n+                        goto Lnoarg;","path":"src/dmd/mars.d","position":106,"original_position":106,"commit_id":"0f486ac4e145d111d0624fd724f17322ba747e74","original_commit_id":"0f486ac4e145d111d0624fd724f17322ba747e74","user":{"login":"wilzbach","id":4370550,"avatar_url":"https://avatars3.githubusercontent.com/u/4370550?v=4","gravatar_id":"","url":"https://api.github.com/users/wilzbach","html_url":"https://github.com/wilzbach","followers_url":"https://api.github.com/users/wilzbach/followers","following_url":"https://api.github.com/users/wilzbach/following{/other_user}","gists_url":"https://api.github.com/users/wilzbach/gists{/gist_id}","starred_url":"https://api.github.com/users/wilzbach/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wilzbach/subscriptions","organizations_url":"https://api.github.com/users/wilzbach/orgs","repos_url":"https://api.github.com/users/wilzbach/repos","events_url":"https://api.github.com/users/wilzbach/events{/privacy}","received_events_url":"https://api.github.com/users/wilzbach/received_events","type":"User","site_admin":false},"body":"test","created_at":"2018-02-04T20:48:58Z","updated_at":"2018-02-04T20:49:06Z","html_url":"https://github.com/dlang/dmd/pull/7838#discussion_r165857278","pull_request_url":"https://api.github.com/repos/dlang/dmd/pulls/7838","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/dlang/dmd/pulls/comments/165857278"},"html":{"href":"https://github.com/dlang/dmd/pull/7838#discussion_r165857278"},"pull_request":{"href":"https://api.github.com/repos/dlang/dmd/pulls/7838"}}},"pull_request":{"url":"https://api.github.com/repos/dlang/dmd/pulls/7838","id":167018819,"html_url":"https://github.com/dlang/dmd/pull/7838","diff_url":"https://github.com/dlang/dmd/pull/7838.diff","patch_url":"https://github.com/dlang/dmd/pull/7838.patch","issue_url":"https://api.github.com/repos/dlang/dmd/issues/7838","number":7838,"state":"open","locked":false,"title":"Added -Xq to query JSON output","user":{"login":"marler8997","id":304904,"avatar_url":"https://avatars1.githubusercontent.com/u/304904?v=4","gravatar_id":"","url":"https://api.github.com/users/marler8997","html_url":"https://github.com/marler8997","followers_url":"https://api.github.com/users/marler8997/followers","following_url":"https://api.github.com/users/marler8997/following{/other_user}","gists_url":"https://api.github.com/users/marler8997/gists{/gist_id}","starred_url":"https://api.github.com/users/marler8997/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marler8997/subscriptions","organizations_url":"https://api.github.com/users/marler8997/orgs","repos_url":"https://api.github.com/users/marler8997/repos","events_url":"https://api.github.com/users/marler8997/events{/privacy}","received_events_url":"https://api.github.com/users/marler8997/received_events","type":"User","site_admin":false},"body":"Adds a new option (hidden for now) that allows an application to select what it wants in the JSON output, i.e.\r\n```\r\ndmd -Xq=compilerInfo,semantics\r\n```\r\n\r\nThis would produce a JSON file looking like this:\r\n```\r\n{\r\n    \"compilerInfo\" : {\r\n        ...\r\n    },\r\n    \"semantics\": {\r\n        ...\r\n    }\r\n}\r\n```\r\n\r\nThe option is hidden because at the moment since the only users of the option (currently known) will be `rdmd` and `dub`.\r\n\r\nNOTE: The query string is intentionally implemented as a VERY SMALL subset of GraphQL.  The idea is that if more features are desired from GraphQL then the implementation can be expanded to support them. (i.e. introspection/subset filtering)\r\n\r\nNOTE: the `-probe` equivalent would be:\r\n```\r\ndmd -Xf- -Xq=compilerInfo\r\n```\r\nAlso note that this PR does allow a JSON query to occur with no source files.","created_at":"2018-02-04T16:55:18Z","updated_at":"2018-02-04T20:49:06Z","closed_at":null,"merged_at":null,"merge_commit_sha":"98dd9fed100038b905f86eb9602502db4d773a35","assignee":null,"assignees":[],"requested_reviewers":[{"login":"klickverbot","id":19335,"avatar_url":"https://avatars1.githubusercontent.com/u/19335?v=4","gravatar_id":"","url":"https://api.github.com/users/klickverbot","html_url":"https://github.com/klickverbot","followers_url":"https://api.github.com/users/klickverbot/followers","following_url":"https://api.github.com/users/klickverbot/following{/other_user}","gists_url":"https://api.github.com/users/klickverbot/gists{/gist_id}","starred_url":"https://api.github.com/users/klickverbot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/klickverbot/subscriptions","organizations_url":"https://api.github.com/users/klickverbot/orgs","repos_url":"https://api.github.com/users/klickverbot/repos","events_url":"https://api.github.com/users/klickverbot/events{/privacy}","received_events_url":"https://api.github.com/users/klickverbot/received_events","type":"User","site_admin":false},{"login":"MartinNowak","id":288976,"avatar_url":"https://avatars0.githubusercontent.com/u/288976?v=4","gravatar_id":"","url":"https://api.github.com/users/MartinNowak","html_url":"https://github.com/MartinNowak","followers_url":"https://api.github.com/users/MartinNowak/followers","following_url":"https://api.github.com/users/MartinNowak/following{/other_user}","gists_url":"https://api.github.com/users/MartinNowak/gists{/gist_id}","starred_url":"https://api.github.com/users/MartinNowak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MartinNowak/subscriptions","organizations_url":"https://api.github.com/users/MartinNowak/orgs","repos_url":"https://api.github.com/users/MartinNowak/repos","events_url":"https://api.github.com/users/MartinNowak/events{/privacy}","received_events_url":"https://api.github.com/users/MartinNowak/received_events","type":"User","site_admin":false},{"login":"ibuclaw","id":397929,"avatar_url":"https://avatars3.githubusercontent.com/u/397929?v=4","gravatar_id":"","url":"https://api.github.com/users/ibuclaw","html_url":"https://github.com/ibuclaw","followers_url":"https://api.github.com/users/ibuclaw/followers","following_url":"https://api.github.com/users/ibuclaw/following{/other_user}","gists_url":"https://api.github.com/users/ibuclaw/gists{/gist_id}","starred_url":"https://api.github.com/users/ibuclaw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ibuclaw/subscriptions","organizations_url":"https://api.github.com/users/ibuclaw/orgs","repos_url":"https://api.github.com/users/ibuclaw/repos","events_url":"https://api.github.com/users/ibuclaw/events{/privacy}","received_events_url":"https://api.github.com/users/ibuclaw/received_events","type":"User","site_admin":false},{"login":"WalterBright","id":568298,"avatar_url":"https://avatars0.githubusercontent.com/u/568298?v=4","gravatar_id":"","url":"https://api.github.com/users/WalterBright","html_url":"https://github.com/WalterBright","followers_url":"https://api.github.com/users/WalterBright/followers","following_url":"https://api.github.com/users/WalterBright/following{/other_user}","gists_url":"https://api.github.com/users/WalterBright/gists{/gist_id}","starred_url":"https://api.github.com/users/WalterBright/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WalterBright/subscriptions","organizations_url":"https://api.github.com/users/WalterBright/orgs","repos_url":"https://api.github.com/users/WalterBright/repos","events_url":"https://api.github.com/users/WalterBright/events{/privacy}","received_events_url":"https://api.github.com/users/WalterBright/received_events","type":"User","site_admin":false},{"login":"rainers","id":702284,"avatar_url":"https://avatars3.githubusercontent.com/u/702284?v=4","gravatar_id":"","url":"https://api.github.com/users/rainers","html_url":"https://github.com/rainers","followers_url":"https://api.github.com/users/rainers/followers","following_url":"https://api.github.com/users/rainers/following{/other_user}","gists_url":"https://api.github.com/users/rainers/gists{/gist_id}","starred_url":"https://api.github.com/users/rainers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rainers/subscriptions","organizations_url":"https://api.github.com/users/rainers/orgs","repos_url":"https://api.github.com/users/rainers/repos","events_url":"https://api.github.com/users/rainers/events{/privacy}","received_events_url":"https://api.github.com/users/rainers/received_events","type":"User","site_admin":false},{"login":"mathias-lang-sociomantic","id":11289420,"avatar_url":"https://avatars1.githubusercontent.com/u/11289420?v=4","gravatar_id":"","url":"https://api.github.com/users/mathias-lang-sociomantic","html_url":"https://github.com/mathias-lang-sociomantic","followers_url":"https://api.github.com/users/mathias-lang-sociomantic/followers","following_url":"https://api.github.com/users/mathias-lang-sociomantic/following{/other_user}","gists_url":"https://api.github.com/users/mathias-lang-sociomantic/gists{/gist_id}","starred_url":"https://api.github.com/users/mathias-lang-sociomantic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mathias-lang-sociomantic/subscriptions","organizations_url":"https://api.github.com/users/mathias-lang-sociomantic/orgs","repos_url":"https://api.github.com/users/mathias-lang-sociomantic/repos","events_url":"https://api.github.com/users/mathias-lang-sociomantic/events{/privacy}","received_events_url":"https://api.github.com/users/mathias-lang-sociomantic/received_events","type":"User","site_admin":false}],"requested_teams":[],"milestone":null,"commits_url":"https://api.github.com/repos/dlang/dmd/pulls/7838/commits","review_comments_url":"https://api.github.com/repos/dlang/dmd/pulls/7838/comments","review_comment_url":"https://api.github.com/repos/dlang/dmd/pulls/comments{/number}","comments_url":"https://api.github.com/repos/dlang/dmd/issues/7838/comments","statuses_url":"https://api.github.com/repos/dlang/dmd/statuses/0f486ac4e145d111d0624fd724f17322ba747e74","head":{"label":"marler8997:jsonQuery","ref":"jsonQuery","sha":"0f486ac4e145d111d0624fd724f17322ba747e74","user":{"login":"marler8997","id":304904,"avatar_url":"https://avatars1.githubusercontent.com/u/304904?v=4","gravatar_id":"","url":"https://api.github.com/users/marler8997","html_url":"https://github.com/marler8997","followers_url":"https://api.github.com/users/marler8997/followers","following_url":"https://api.github.com/users/marler8997/following{/other_user}","gists_url":"https://api.github.com/users/marler8997/gists{/gist_id}","starred_url":"https://api.github.com/users/marler8997/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marler8997/subscriptions","organizations_url":"https://api.github.com/users/marler8997/orgs","repos_url":"https://api.github.com/users/marler8997/repos","events_url":"https://api.github.com/users/marler8997/events{/privacy}","received_events_url":"https://api.github.com/users/marler8997/received_events","type":"User","site_admin":false},"repo":{"id":63926575,"name":"dmd","full_name":"marler8997/dmd","owner":{"login":"marler8997","id":304904,"avatar_url":"https://avatars1.githubusercontent.com/u/304904?v=4","gravatar_id":"","url":"https://api.github.com/users/marler8997","html_url":"https://github.com/marler8997","followers_url":"https://api.github.com/users/marler8997/followers","following_url":"https://api.github.com/users/marler8997/following{/other_user}","gists_url":"https://api.github.com/users/marler8997/gists{/gist_id}","starred_url":"https://api.github.com/users/marler8997/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marler8997/subscriptions","organizations_url":"https://api.github.com/users/marler8997/orgs","repos_url":"https://api.github.com/users/marler8997/repos","events_url":"https://api.github.com/users/marler8997/events{/privacy}","received_events_url":"https://api.github.com/users/marler8997/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/marler8997/dmd","description":"dmd D Programming Language compiler","fork":true,"url":"https://api.github.com/repos/marler8997/dmd","forks_url":"https://api.github.com/repos/marler8997/dmd/forks","keys_url":"https://api.github.com/repos/marler8997/dmd/keys{/key_id}","collaborators_url":"https://api.github.com/repos/marler8997/dmd/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/marler8997/dmd/teams","hooks_url":"https://api.github.com/repos/marler8997/dmd/hooks","issue_events_url":"https://api.github.com/repos/marler8997/dmd/issues/events{/number}","events_url":"https://api.github.com/repos/marler8997/dmd/events","assignees_url":"https://api.github.com/repos/marler8997/dmd/assignees{/user}","branches_url":"https://api.github.com/repos/marler8997/dmd/branches{/branch}","tags_url":"https://api.github.com/repos/marler8997/dmd/tags","blobs_url":"https://api.github.com/repos/marler8997/dmd/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/marler8997/dmd/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/marler8997/dmd/git/refs{/sha}","trees_url":"https://api.github.com/repos/marler8997/dmd/git/trees{/sha}","statuses_url":"https://api.github.com/repos/marler8997/dmd/statuses/{sha}","languages_url":"https://api.github.com/repos/marler8997/dmd/languages","stargazers_url":"https://api.github.com/repos/marler8997/dmd/stargazers","contributors_url":"https://api.github.com/repos/marler8997/dmd/contributors","subscribers_url":"https://api.github.com/repos/marler8997/dmd/subscribers","subscription_url":"https://api.github.com/repos/marler8997/dmd/subscription","commits_url":"https://api.github.com/repos/marler8997/dmd/commits{/sha}","git_commits_url":"https://api.github.com/repos/marler8997/dmd/git/commits{/sha}","comments_url":"https://api.github.com/repos/marler8997/dmd/comments{/number}","issue_comment_url":"https://api.github.com/repos/marler8997/dmd/issues/comments{/number}","contents_url":"https://api.github.com/repos/marler8997/dmd/contents/{+path}","compare_url":"https://api.github.com/repos/marler8997/dmd/compare/{base}...{head}","merges_url":"https://api.github.com/repos/marler8997/dmd/merges","archive_url":"https://api.github.com/repos/marler8997/dmd/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/marler8997/dmd/downloads","issues_url":"https://api.github.com/repos/marler8997/dmd/issues{/number}","pulls_url":"https://api.github.com/repos/marler8997/dmd/pulls{/number}","milestones_url":"https://api.github.com/repos/marler8997/dmd/milestones{/number}","notifications_url":"https://api.github.com/repos/marler8997/dmd/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/marler8997/dmd/labels{/name}","releases_url":"https://api.github.com/repos/marler8997/dmd/releases{/id}","deployments_url":"https://api.github.com/repos/marler8997/dmd/deployments","created_at":"2016-07-22T05:41:36Z","updated_at":"2016-07-22T05:41:43Z","pushed_at":"2018-02-04T17:42:41Z","git_url":"git://github.com/marler8997/dmd.git","ssh_url":"git@github.com:marler8997/dmd.git","clone_url":"https://github.com/marler8997/dmd.git","svn_url":"https://github.com/marler8997/dmd","homepage":"dlang.org","size":82194,"stargazers_count":0,"watchers_count":0,"language":"D","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"bsl-1.0","name":"Boost Software License 1.0","spdx_id":"BSL-1.0","url":"https://api.github.com/licenses/bsl-1.0"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"dlang:master","ref":"master","sha":"793a16ee61ddadc8ed1653300a8e9c8bc6b15002","user":{"login":"dlang","id":565913,"avatar_url":"https://avatars3.githubusercontent.com/u/565913?v=4","gravatar_id":"","url":"https://api.github.com/users/dlang","html_url":"https://github.com/dlang","followers_url":"https://api.github.com/users/dlang/followers","following_url":"https://api.github.com/users/dlang/following{/other_user}","gists_url":"https://api.github.com/users/dlang/gists{/gist_id}","starred_url":"https://api.github.com/users/dlang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dlang/subscriptions","organizations_url":"https://api.github.com/users/dlang/orgs","repos_url":"https://api.github.com/users/dlang/repos","events_url":"https://api.github.com/users/dlang/events{/privacy}","received_events_url":"https://api.github.com/users/dlang/received_events","type":"Organization","site_admin":false},"repo":{"id":1257070,"name":"dmd","full_name":"dlang/dmd","owner":{"login":"dlang","id":565913,"avatar_url":"https://avatars3.githubusercontent.com/u/565913?v=4","gravatar_id":"","url":"https://api.github.com/users/dlang","html_url":"https://github.com/dlang","followers_url":"https://api.github.com/users/dlang/followers","following_url":"https://api.github.com/users/dlang/following{/other_user}","gists_url":"https://api.github.com/users/dlang/gists{/gist_id}","starred_url":"https://api.github.com/users/dlang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dlang/subscriptions","organizations_url":"https://api.github.com/users/dlang/orgs","repos_url":"https://api.github.com/users/dlang/repos","events_url":"https://api.github.com/users/dlang/events{/privacy}","received_events_url":"https://api.github.com/users/dlang/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/dlang/dmd","description":"dmd D Programming Language compiler","fork":false,"url":"https://api.github.com/repos/dlang/dmd","forks_url":"https://api.github.com/repos/dlang/dmd/forks","keys_url":"https://api.github.com/repos/dlang/dmd/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dlang/dmd/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dlang/dmd/teams","hooks_url":"https://api.github.com/repos/dlang/dmd/hooks","issue_events_url":"https://api.github.com/repos/dlang/dmd/issues/events{/number}","events_url":"https://api.github.com/repos/dlang/dmd/events","assignees_url":"https://api.github.com/repos/dlang/dmd/assignees{/user}","branches_url":"https://api.github.com/repos/dlang/dmd/branches{/branch}","tags_url":"https://api.github.com/repos/dlang/dmd/tags","blobs_url":"https://api.github.com/repos/dlang/dmd/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dlang/dmd/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dlang/dmd/git/refs{/sha}","trees_url":"https://api.github.com/repos/dlang/dmd/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dlang/dmd/statuses/{sha}","languages_url":"https://api.github.com/repos/dlang/dmd/languages","stargazers_url":"https://api.github.com/repos/dlang/dmd/stargazers","contributors_url":"https://api.github.com/repos/dlang/dmd/contributors","subscribers_url":"https://api.github.com/repos/dlang/dmd/subscribers","subscription_url":"https://api.github.com/repos/dlang/dmd/subscription","commits_url":"https://api.github.com/repos/dlang/dmd/commits{/sha}","git_commits_url":"https://api.github.com/repos/dlang/dmd/git/commits{/sha}","comments_url":"https://api.github.com/repos/dlang/dmd/comments{/number}","issue_comment_url":"https://api.github.com/repos/dlang/dmd/issues/comments{/number}","contents_url":"https://api.github.com/repos/dlang/dmd/contents/{+path}","compare_url":"https://api.github.com/repos/dlang/dmd/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dlang/dmd/merges","archive_url":"https://api.github.com/repos/dlang/dmd/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dlang/dmd/downloads","issues_url":"https://api.github.com/repos/dlang/dmd/issues{/number}","pulls_url":"https://api.github.com/repos/dlang/dmd/pulls{/number}","milestones_url":"https://api.github.com/repos/dlang/dmd/milestones{/number}","notifications_url":"https://api.github.com/repos/dlang/dmd/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dlang/dmd/labels{/name}","releases_url":"https://api.github.com/repos/dlang/dmd/releases{/id}","deployments_url":"https://api.github.com/repos/dlang/dmd/deployments","created_at":"2011-01-15T06:53:53Z","updated_at":"2018-02-04T15:33:14Z","pushed_at":"2018-02-04T20:42:43Z","git_url":"git://github.com/dlang/dmd.git","ssh_url":"git@github.com:dlang/dmd.git","clone_url":"https://github.com/dlang/dmd.git","svn_url":"https://github.com/dlang/dmd","homepage":"dlang.org","size":85163,"stargazers_count":1740,"watchers_count":1740,"language":"D","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":436,"mirror_url":null,"archived":false,"open_issues_count":142,"license":{"key":"bsl-1.0","name":"Boost Software License 1.0","spdx_id":"BSL-1.0","url":"https://api.github.com/licenses/bsl-1.0"},"forks":436,"open_issues":142,"watchers":1740,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/dlang/dmd/pulls/7838"},"html":{"href":"https://github.com/dlang/dmd/pull/7838"},"issue":{"href":"https://api.github.com/repos/dlang/dmd/issues/7838"},"comments":{"href":"https://api.github.com/repos/dlang/dmd/issues/7838/comments"},"review_comments":{"href":"https://api.github.com/repos/dlang/dmd/pulls/7838/comments"},"review_comment":{"href":"https://api.github.com/repos/dlang/dmd/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/dlang/dmd/pulls/7838/commits"},"statuses":{"href":"https://api.github.com/repos/dlang/dmd/statuses/0f486ac4e145d111d0624fd724f17322ba747e74"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"wilzbach"}}