{"action":"created","issue":{"url":"https://api.github.com/repos/glayzzle/php-parser/issues/138","repository_url":"https://api.github.com/repos/glayzzle/php-parser","labels_url":"https://api.github.com/repos/glayzzle/php-parser/issues/138/labels{/name}","comments_url":"https://api.github.com/repos/glayzzle/php-parser/issues/138/comments","events_url":"https://api.github.com/repos/glayzzle/php-parser/issues/138/events","html_url":"https://github.com/glayzzle/php-parser/issues/138","id":306940158,"number":138,"title":"Better handle `<?php` and `?>` tags","user":{"login":"evilebottnawi","id":4567934,"avatar_url":"https://avatars3.githubusercontent.com/u/4567934?v=4","gravatar_id":"","url":"https://api.github.com/users/evilebottnawi","html_url":"https://github.com/evilebottnawi","followers_url":"https://api.github.com/users/evilebottnawi/followers","following_url":"https://api.github.com/users/evilebottnawi/following{/other_user}","gists_url":"https://api.github.com/users/evilebottnawi/gists{/gist_id}","starred_url":"https://api.github.com/users/evilebottnawi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/evilebottnawi/subscriptions","organizations_url":"https://api.github.com/users/evilebottnawi/orgs","repos_url":"https://api.github.com/users/evilebottnawi/repos","events_url":"https://api.github.com/users/evilebottnawi/events{/privacy}","received_events_url":"https://api.github.com/users/evilebottnawi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-03-20T16:24:34Z","updated_at":"2018-03-23T19:29:57Z","closed_at":null,"author_association":"NONE","body":"We have problem when printing statement and inline nodes.\r\nExample:\r\n```php\r\n<?php echo 'test'; ?>\r\n<?php\r\necho 'test;\r\necho 'test';\r\necho 'test';\r\n?>\r\n```\r\nWe need information when `php` tag opening and closing. Any idea how best we can get this information? Maybe add `node.hasOpenTag` and `node.hasCloseTag` (or maybe best names). It is allow output all tags as is.\r\n```php\r\n<?php if (...): ?>\r\n  <div>foo</div>\r\n<?php endif; ?>\r\n```\r\nBut, for `control` structure it is not good solution :disappointed: \r\n\r\n----\r\n\r\nMaybe you can export `tags` array as `comment` with position? I think it will be solve our problem :+1: "},"comment":{"url":"https://api.github.com/repos/glayzzle/php-parser/issues/comments/375774886","html_url":"https://github.com/glayzzle/php-parser/issues/138#issuecomment-375774886","issue_url":"https://api.github.com/repos/glayzzle/php-parser/issues/138","id":375774886,"user":{"login":"ichiriac","id":173203,"avatar_url":"https://avatars2.githubusercontent.com/u/173203?v=4","gravatar_id":"","url":"https://api.github.com/users/ichiriac","html_url":"https://github.com/ichiriac","followers_url":"https://api.github.com/users/ichiriac/followers","following_url":"https://api.github.com/users/ichiriac/following{/other_user}","gists_url":"https://api.github.com/users/ichiriac/gists{/gist_id}","starred_url":"https://api.github.com/users/ichiriac/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ichiriac/subscriptions","organizations_url":"https://api.github.com/users/ichiriac/orgs","repos_url":"https://api.github.com/users/ichiriac/repos","events_url":"https://api.github.com/users/ichiriac/events{/privacy}","received_events_url":"https://api.github.com/users/ichiriac/received_events","type":"User","site_admin":false},"created_at":"2018-03-23T19:29:57Z","updated_at":"2018-03-23T19:29:57Z","author_association":"OWNER","body":"I could provide an option in order to export tokens into an array, so it would be more generic. By joining all tokens you have exactly the same output as the original file.\r\n\r\nThe implementation is compliant with this function : http://php.net/manual/en/function.token-get-all.php"}}
{"actor":{"display_login":"ichiriac"}}