{"action":"created","issue":{"url":"https://api.github.com/repos/antlr/antlr4-python2/issues/52","labels_url":"https://api.github.com/repos/antlr/antlr4-python2/issues/52/labels{/name}","comments_url":"https://api.github.com/repos/antlr/antlr4-python2/issues/52/comments","events_url":"https://api.github.com/repos/antlr/antlr4-python2/issues/52/events","html_url":"https://github.com/antlr/antlr4-python2/pull/52","id":83722555,"number":52,"title":"Added optional 'types' arg to ParserRuleContext.getChildren()","user":{"login":"RedTailedHawk","id":8505928,"avatar_url":"https://avatars.githubusercontent.com/u/8505928?v=3","gravatar_id":"","url":"https://api.github.com/users/RedTailedHawk","html_url":"https://github.com/RedTailedHawk","followers_url":"https://api.github.com/users/RedTailedHawk/followers","following_url":"https://api.github.com/users/RedTailedHawk/following{/other_user}","gists_url":"https://api.github.com/users/RedTailedHawk/gists{/gist_id}","starred_url":"https://api.github.com/users/RedTailedHawk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RedTailedHawk/subscriptions","organizations_url":"https://api.github.com/users/RedTailedHawk/orgs","repos_url":"https://api.github.com/users/RedTailedHawk/repos","events_url":"https://api.github.com/users/RedTailedHawk/events{/privacy}","received_events_url":"https://api.github.com/users/RedTailedHawk/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-06-01T22:26:51Z","updated_at":"2015-06-02T13:54:52Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/antlr/antlr4-python2/pulls/52","html_url":"https://github.com/antlr/antlr4-python2/pull/52","diff_url":"https://github.com/antlr/antlr4-python2/pull/52.diff","patch_url":"https://github.com/antlr/antlr4-python2/pull/52.patch"},"body":"This makes it easier to filter the children based on a list of types, instead of having to use the 'predicate' arg with several 'isinstance() or isinstance()' function calls.  For example:\r\n\r\n````\r\nchildren_to_process = ctx.getChildren(types = [myParser.ThisContext, myParser.ThatContext])]\r\n\r\n````\r\n\r\n-Larry\r\n"},"comment":{"url":"https://api.github.com/repos/antlr/antlr4-python2/issues/comments/107963694","html_url":"https://github.com/antlr/antlr4-python2/pull/52#issuecomment-107963694","issue_url":"https://api.github.com/repos/antlr/antlr4-python2/issues/52","id":107963694,"user":{"login":"RedTailedHawk","id":8505928,"avatar_url":"https://avatars.githubusercontent.com/u/8505928?v=3","gravatar_id":"","url":"https://api.github.com/users/RedTailedHawk","html_url":"https://github.com/RedTailedHawk","followers_url":"https://api.github.com/users/RedTailedHawk/followers","following_url":"https://api.github.com/users/RedTailedHawk/following{/other_user}","gists_url":"https://api.github.com/users/RedTailedHawk/gists{/gist_id}","starred_url":"https://api.github.com/users/RedTailedHawk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RedTailedHawk/subscriptions","organizations_url":"https://api.github.com/users/RedTailedHawk/orgs","repos_url":"https://api.github.com/users/RedTailedHawk/repos","events_url":"https://api.github.com/users/RedTailedHawk/events{/privacy}","received_events_url":"https://api.github.com/users/RedTailedHawk/received_events","type":"User","site_admin":false},"created_at":"2015-06-02T13:54:52Z","updated_at":"2015-06-02T13:54:52Z","body":"OK I'll give that a shot.  Sure, close the PR.  Thanks.\r\n"}}