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

Export Node.IsContainer and add Node.IsLeaf #540

Merged
merged 2 commits into from
Jun 29, 2019
Merged

Export Node.IsContainer and add Node.IsLeaf #540

merged 2 commits into from
Jun 29, 2019

Conversation

twpayne
Copy link

@twpayne twpayne commented Apr 23, 2019

These functions are very useful for applications that walk the AST generated by blackfriday. Without these exports, the applications have to work out which are leaf nodes and which are container nodes themselves.

@twpayne
Copy link
Author

twpayne commented Apr 24, 2019

If you prefer, I could make IsContainer/IsLeaf methods on NodeType instead.

@twpayne
Copy link
Author

twpayne commented Jun 29, 2019

@russross Are there any changes that you'd like to this PR before it can be merged?

@russross russross merged commit 3e56bb6 into russross:v2 Jun 29, 2019
@twpayne twpayne deleted the export-is-container branch June 29, 2019 15:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants