{"action":"created","issue":{"url":"https://api.github.com/repos/nikic/PHP-Parser/issues/311","repository_url":"https://api.github.com/repos/nikic/PHP-Parser","labels_url":"https://api.github.com/repos/nikic/PHP-Parser/issues/311/labels{/name}","comments_url":"https://api.github.com/repos/nikic/PHP-Parser/issues/311/comments","events_url":"https://api.github.com/repos/nikic/PHP-Parser/issues/311/events","html_url":"https://github.com/nikic/PHP-Parser/issues/311","id":181839644,"number":311,"title":"GroupUse::prefix endFilePos is wrong","user":{"login":"felixfbecker","id":10532611,"avatar_url":"https://avatars.githubusercontent.com/u/10532611?v=3","gravatar_id":"","url":"https://api.github.com/users/felixfbecker","html_url":"https://github.com/felixfbecker","followers_url":"https://api.github.com/users/felixfbecker/followers","following_url":"https://api.github.com/users/felixfbecker/following{/other_user}","gists_url":"https://api.github.com/users/felixfbecker/gists{/gist_id}","starred_url":"https://api.github.com/users/felixfbecker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/felixfbecker/subscriptions","organizations_url":"https://api.github.com/users/felixfbecker/orgs","repos_url":"https://api.github.com/users/felixfbecker/repos","events_url":"https://api.github.com/users/felixfbecker/events{/privacy}","received_events_url":"https://api.github.com/users/felixfbecker/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-10-08T17:54:28Z","updated_at":"2016-10-08T22:04:29Z","closed_at":"2016-10-08T22:04:29Z","body":"This code:\r\n```php\r\nuse TestNamespace\\{TestTrait, TestInterface};\r\n```\r\n\r\nThe `GroupUse` Node will have a `prefix` property that is a `Name` node containing the name `TestNamespace`. It should range from column 5 to 18. Instead, it ranges the whole line (1 to 44), overlaying the other `UseUse` nodes.\r\nThis prevents me from implementing Goto Definition for `TestTrait` for example, because the node at the cursor position will always resolve to the `prefix` node."},"comment":{"url":"https://api.github.com/repos/nikic/PHP-Parser/issues/comments/252451033","html_url":"https://github.com/nikic/PHP-Parser/issues/311#issuecomment-252451033","issue_url":"https://api.github.com/repos/nikic/PHP-Parser/issues/311","id":252451033,"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":"2016-10-08T22:04:29Z","updated_at":"2016-10-08T22:04:29Z","body":"Fixed with https://github.com/nikic/PHP-Parser/commit/f6eb341b1573a348b941b67ff0a8c7faa53ce9ac. It's a bit of a tricky case because I had to inline the namespace name productions to avoid shift/reduce conflicts."}}
{"actor":{"display_login":"nikic"}}