Skip to content

Export Node.IsContainer and add Node.IsLeaf#540

Merged
russross merged 2 commits intorussross:v2from
twpayne:export-is-container
Jun 29, 2019
Merged

Export Node.IsContainer and add Node.IsLeaf#540
russross merged 2 commits intorussross:v2from
twpayne:export-is-container

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