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

Allow depth control for building ASTs #4

Closed
object88 opened this issue Aug 2, 2017 · 1 comment
Closed

Allow depth control for building ASTs #4

object88 opened this issue Aug 2, 2017 · 1 comment

Comments

@object88
Copy link
Owner

object88 commented Aug 2, 2017

The globals and imports commands traverse the entire AST tree, which may not be what the user is interested in. For example, the user may not care what the stdlib imports.

Suggested traversal levels:

  • shallow - just the specified package
  • local - just packages that have the same root (i.e., github.com/object88)
  • deep - all non-stdlib packages
  • complete - every package, regardless of source

Might also be interesting to add a numeric depth control, stopping the traversal after N steps.

@object88
Copy link
Owner Author

object88 commented Aug 9, 2017

See imports documentation for provided options.

@object88 object88 closed this as completed Aug 9, 2017
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

No branches or pull requests

1 participant