{"action":"created","issue":{"url":"https://api.github.com/repos/nikic/PHP-Parser/issues/310","repository_url":"https://api.github.com/repos/nikic/PHP-Parser","labels_url":"https://api.github.com/repos/nikic/PHP-Parser/issues/310/labels{/name}","comments_url":"https://api.github.com/repos/nikic/PHP-Parser/issues/310/comments","events_url":"https://api.github.com/repos/nikic/PHP-Parser/issues/310/events","html_url":"https://github.com/nikic/PHP-Parser/issues/310","id":181753981,"number":310,"title":"Aborting Traversal (like a break statement in a loop)","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":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-10-07T19:51:58Z","updated_at":"2016-12-07T17:29:51Z","closed_at":null,"body":"I'm traversing the AST to find a specific node. As soon as I have it, I would like to abort the traversal by returning something like `NodeTraverser::BREAK`, like a break statement in a loop. Need this for both `enterNode` and `leaveNode`\n"},"comment":{"url":"https://api.github.com/repos/nikic/PHP-Parser/issues/comments/265513822","html_url":"https://github.com/nikic/PHP-Parser/issues/310#issuecomment-265513822","issue_url":"https://api.github.com/repos/nikic/PHP-Parser/issues/310","id":265513822,"user":{"login":"martinsik","id":238765,"avatar_url":"https://avatars.githubusercontent.com/u/238765?v=3","gravatar_id":"","url":"https://api.github.com/users/martinsik","html_url":"https://github.com/martinsik","followers_url":"https://api.github.com/users/martinsik/followers","following_url":"https://api.github.com/users/martinsik/following{/other_user}","gists_url":"https://api.github.com/users/martinsik/gists{/gist_id}","starred_url":"https://api.github.com/users/martinsik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/martinsik/subscriptions","organizations_url":"https://api.github.com/users/martinsik/orgs","repos_url":"https://api.github.com/users/martinsik/repos","events_url":"https://api.github.com/users/martinsik/events{/privacy}","received_events_url":"https://api.github.com/users/martinsik/received_events","type":"User","site_admin":false},"created_at":"2016-12-07T17:29:51Z","updated_at":"2016-12-07T17:29:51Z","body":"Isn't this already resolved by `NodeTraverser ::DONT_TRAVERSE_CHILDREN`?\r\n\r\nhttps://github.com/nikic/PHP-Parser/blob/master/lib/PhpParser/NodeTraverser.php#L100"}}
{"actor":{"display_login":"martinsik"}}