{"action":"created","issue":{"url":"https://api.github.com/repos/nikic/php-ast/issues/4","labels_url":"https://api.github.com/repos/nikic/php-ast/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/nikic/php-ast/issues/4/comments","events_url":"https://api.github.com/repos/nikic/php-ast/issues/4/events","html_url":"https://github.com/nikic/php-ast/issues/4","id":54272280,"number":4,"title":"Will this module return t_comments? ","user":{"login":"dericofilho","id":138827,"avatar_url":"https://avatars.githubusercontent.com/u/138827?v=3","gravatar_id":"","url":"https://api.github.com/users/dericofilho","html_url":"https://github.com/dericofilho","followers_url":"https://api.github.com/users/dericofilho/followers","following_url":"https://api.github.com/users/dericofilho/following{/other_user}","gists_url":"https://api.github.com/users/dericofilho/gists{/gist_id}","starred_url":"https://api.github.com/users/dericofilho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dericofilho/subscriptions","organizations_url":"https://api.github.com/users/dericofilho/orgs","repos_url":"https://api.github.com/users/dericofilho/repos","events_url":"https://api.github.com/users/dericofilho/events{/privacy}","received_events_url":"https://api.github.com/users/dericofilho/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-01-14T01:17:18Z","updated_at":"2015-01-14T09:34:46Z","closed_at":null,"body":"In nikic/php-parser, for instance, it strips comments while generating the tree. Now that PHP 7 will likely be implemented using ASTs, I wonder whether comments will be kept. "},"comment":{"url":"https://api.github.com/repos/nikic/php-ast/issues/comments/69890541","html_url":"https://github.com/nikic/php-ast/issues/4#issuecomment-69890541","issue_url":"https://api.github.com/repos/nikic/php-ast/issues/4","id":69890541,"user":{"login":"nikic","id":216080,"avatar_url":"https://avatars.githubusercontent.com/u/216080?v=3","gravatar_id":"","url":"https://api.github.com/users/nikic","html_url":"https://github.com/nikic","followers_url":"https://api.github.com/users/nikic/followers","following_url":"https://api.github.com/users/nikic/following{/other_user}","gists_url":"https://api.github.com/users/nikic/gists{/gist_id}","starred_url":"https://api.github.com/users/nikic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nikic/subscriptions","organizations_url":"https://api.github.com/users/nikic/orgs","repos_url":"https://api.github.com/users/nikic/repos","events_url":"https://api.github.com/users/nikic/events{/privacy}","received_events_url":"https://api.github.com/users/nikic/received_events","type":"User","site_admin":false},"created_at":"2015-01-14T09:34:46Z","updated_at":"2015-01-14T09:34:46Z","body":"Nope, this is still an abstract tree. You'll get doc comments for declarations, but everything else is discarded.\r\n\r\nIt would be nice to at least retain comments to the same degree as nikic/php-parser does, i.e. collect all comments above a node. Otherwise things like `/** @var */` declarations can't be handled, which could be problematic for some applications."}}