Skip to content

Import Parsing #664

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

Merged
merged 11 commits into from
Feb 28, 2025
Merged

Import Parsing #664

merged 11 commits into from
Feb 28, 2025

Conversation

tawsifkamal
Copy link
Contributor

  • parses imports now during tree-sitter code_block parsing in parser.py

  • Deals with top-level + dynamic imports

  • for typescript dynamic imports, it will search for imports by using a mixture of get_all_descendants and get_first_descendant calls to search for the appropriate call_expression for imports

  • is_wrapped_in functionality now works!

  • added parent_of_types, changed is_dynamic to now use the correct strategy instead of traversing up tree sitter nodes
    CG-10504

@tawsifkamal tawsifkamal requested review from codegen-team and a team as code owners February 26, 2025 03:29
@CLAassistant
Copy link

CLAassistant commented Feb 26, 2025

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.
1 out of 2 committers have signed the CLA.

✅ tawsifkamal
❌ codegen-bot


codegen-bot seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

Copy link

codecov bot commented Feb 26, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

✅ All tests successful. No failed tests found.

Additional details and impacted files

@tawsifkamal tawsifkamal requested a review from a team as a code owner February 27, 2025 19:00
@tawsifkamal tawsifkamal requested review from jayhack and removed request for a team February 27, 2025 19:00
@tawsifkamal tawsifkamal merged commit 2f31a92 into develop Feb 28, 2025
15 of 18 checks passed
@tawsifkamal tawsifkamal deleted the tawsif/fix-imports branch February 28, 2025 01:33
Copy link
Contributor

🎉 This PR is included in version 0.42.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

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

Successfully merging this pull request may close these issues.

3 participants