Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Python3] return result instead of None in visitor #2184

Merged
merged 2 commits into from
Jan 1, 2018

Conversation

jkmar
Copy link
Contributor

@jkmar jkmar commented Dec 27, 2017

Previously ParseTreeVisitor in the visitChildren method returned None when it shouldn't visit the next child, so if you overrode the shouldVisitNextChild you would also have to override the visitChildren method only to change that return statement.

@ericvergnaud
Copy link
Contributor

Hi, thanks for this.
@parrt blessed

@parrt parrt added this to the 4.7.2 milestone Dec 30, 2017
@parrt
Copy link
Member

parrt commented Dec 30, 2017

Does the same Bug occur in Python 2 as well?

@ericvergnaud
Copy link
Contributor

ericvergnaud commented Jan 1, 2018 via email

@jkmar
Copy link
Contributor Author

jkmar commented Jan 1, 2018

@ericvergnaud sure, I've also applied the same fix to Python 2.

@parrt parrt merged commit 4cca8cd into antlr:master Jan 1, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants