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

feat(parser): add function to display AST statistics and fix Clippy warnings #7

Merged
merged 7 commits into from
Jan 5, 2025

Conversation

shahryarjb
Copy link
Collaborator

@shahryarjb shahryarjb commented Jan 5, 2025

In this PR, I have aimed to update the Rust dependencies and resolve all warnings previously raised by Clippy in the earlier version.

In this version, we provide limited support for the following:

assert_eq!(parsed.functions, 2);
assert_eq!(parsed.classes, 1);
assert_eq!(parsed.debuggers, 2);
assert_eq!(parsed.imports, 2);
assert_eq!(parsed.trys, 0);
assert_eq!(parsed.throws, 0);

Note:

I have not changed the version to allow any necessary build adjustments to be made. If this needs to be addressed, please let me know so I can update it, or feel free to handle it yourself.

After merging this, a few functions for working with the AST will need to be implemented. I will proceed to work on examples for them.

Please squash this pull request as it contains too many commits.

Thank you,
Shahryar

@shahryarjb shahryarjb added the enhancement New feature or request label Jan 5, 2025
@shahryarjb shahryarjb requested a review from zachdaniel January 5, 2025 12:45
@shahryarjb shahryarjb self-assigned this Jan 5, 2025
@zachdaniel zachdaniel merged commit 4904883 into ash-project:main Jan 5, 2025
18 checks passed
@shahryarjb shahryarjb deleted the new-parser-helper branch January 5, 2025 17:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants