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

Refactor tree-walk functions into module #66

Open
gunnarx opened this issue Aug 11, 2023 · 0 comments
Open

Refactor tree-walk functions into module #66

gunnarx opened this issue Aug 11, 2023 · 0 comments
Labels

Comments

@gunnarx
Copy link
Collaborator

gunnarx commented Aug 11, 2023

The function that walks the type definition tree and calls an arbitrary callback for each node is useful for several things. Initially it was used to generate the type descriptions in the IFEX specifciation and therefore placed in ifex_ast_doc.py file, but it is now already used for other purposes.

It ought to be moved from the file name indicating "doc" to a generic module. When, or after, doing that it might be possible to improve the function further, and add additional helpers that do what the current code using the walk function actually wants to achieve (e.g. get a list of all types, or something similar).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant